Skip to content

Commit

Permalink
Release 0.0.16
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Aug 26, 2023
1 parent fe7e564 commit 6a0eb99
Show file tree
Hide file tree
Showing 42 changed files with 408 additions and 42 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vocode/vocode-api",
"version": "0.0.15",
"version": "0.0.16",
"private": false,
"repository": "https://github.com/vocodedev/vocode-api-node",
"main": "./index.js",
Expand Down
8 changes: 4 additions & 4 deletions src/api/resources/actions/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class Actions {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -110,7 +110,7 @@ export class Actions {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -173,7 +173,7 @@ export class Actions {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
body: await serializers.ActionParamsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
Expand Down Expand Up @@ -239,7 +239,7 @@ export class Actions {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down
8 changes: 4 additions & 4 deletions src/api/resources/agents/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class Agents {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -110,7 +110,7 @@ export class Agents {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -173,7 +173,7 @@ export class Agents {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
body: await serializers.AgentParams.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
Expand Down Expand Up @@ -239,7 +239,7 @@ export class Agents {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/agents/client/requests/AgentParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import * as Vocode from "../../../..";

export interface AgentParams {
prompt: string;
prompt: Vocode.AgentParamsPrompt;
language?: Vocode.Language;
actions?: Vocode.AgentParamsActionsItem[];
voice: Vocode.AgentParamsVoice;
Expand Down
10 changes: 5 additions & 5 deletions src/api/resources/calls/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class Calls {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -113,7 +113,7 @@ export class Calls {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -179,7 +179,7 @@ export class Calls {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -242,7 +242,7 @@ export class Calls {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
body: await serializers.CreateCallRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
Expand Down Expand Up @@ -308,7 +308,7 @@ export class Calls {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down
10 changes: 5 additions & 5 deletions src/api/resources/numbers/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class Numbers {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -113,7 +113,7 @@ export class Numbers {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -173,7 +173,7 @@ export class Numbers {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
timeoutMs: 60000,
Expand Down Expand Up @@ -226,7 +226,7 @@ export class Numbers {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -293,7 +293,7 @@ export class Numbers {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/usage/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class Usage {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
timeoutMs: 60000,
Expand Down
8 changes: 4 additions & 4 deletions src/api/resources/voices/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class Voices {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -110,7 +110,7 @@ export class Voices {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -173,7 +173,7 @@ export class Voices {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
body: await serializers.VoiceParamsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
Expand Down Expand Up @@ -239,7 +239,7 @@ export class Voices {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down
8 changes: 4 additions & 4 deletions src/api/resources/webhooks/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class Webhooks {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -110,7 +110,7 @@ export class Webhooks {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -173,7 +173,7 @@ export class Webhooks {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
body: await serializers.WebhookParams.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
Expand Down Expand Up @@ -239,7 +239,7 @@ export class Webhooks {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vocode/vocode-api",
"X-Fern-SDK-Version": "0.0.15",
"X-Fern-SDK-Version": "0.0.16",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down
2 changes: 1 addition & 1 deletion src/api/types/Agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as Vocode from "..";
export interface Agent {
id: string;
userId: string;
prompt: string;
prompt: Vocode.Prompt;
language?: Vocode.Language;
actions: Vocode.AgentActionsItem[];
voice: Vocode.AgentVoice;
Expand Down
7 changes: 7 additions & 0 deletions src/api/types/AgentParamsPrompt.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as Vocode from "..";

export type AgentParamsPrompt = string | Vocode.PromptParams;
2 changes: 1 addition & 1 deletion src/api/types/AgentUpdateParamsPrompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

import * as Vocode from "..";

export type AgentUpdateParamsPrompt = string | Vocode.Undefined;
export type AgentUpdateParamsPrompt = string | Vocode.PromptUpdateParams | Vocode.Undefined;
12 changes: 12 additions & 0 deletions src/api/types/CollectField.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as Vocode from "..";

export interface CollectField {
fieldType: Vocode.CollectFieldFieldType;
label: string;
name: string;
description?: string;
}
10 changes: 10 additions & 0 deletions src/api/types/CollectFieldFieldType.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export type CollectFieldFieldType = "field_type_email" | "field_type_address";

export const CollectFieldFieldType = {
FieldTypeEmail: "field_type_email",
FieldTypeAddress: "field_type_address",
} as const;
2 changes: 1 addition & 1 deletion src/api/types/CreateCallAgentParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import * as Vocode from "..";

export interface CreateCallAgentParams {
prompt: string;
prompt: Vocode.CreateCallAgentParamsPrompt;
language?: Vocode.Language;
actions?: Vocode.CreateCallAgentParamsActionsItem[];
voice?: Vocode.CreateCallAgentParamsVoice;
Expand Down
7 changes: 7 additions & 0 deletions src/api/types/CreateCallAgentParamsPrompt.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as Vocode from "..";

export type CreateCallAgentParamsPrompt = string | Vocode.PromptParams;
2 changes: 1 addition & 1 deletion src/api/types/NormalizedAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as Vocode from "..";
export interface NormalizedAgent {
id: string;
userId: string;
prompt: string;
prompt: Vocode.NormalizedAgentPrompt;
language?: Vocode.Language;
actions: string[];
voice: string;
Expand Down
7 changes: 7 additions & 0 deletions src/api/types/NormalizedAgentPrompt.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as Vocode from "..";

export type NormalizedAgentPrompt = string | Vocode.PromptParams;
13 changes: 13 additions & 0 deletions src/api/types/Prompt.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as Vocode from "..";

export interface Prompt {
id: string;
userId: string;
content: string;
collectFields?: Vocode.CollectField[];
contextEndpoint?: string;
}
11 changes: 11 additions & 0 deletions src/api/types/PromptParams.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as Vocode from "..";

export interface PromptParams {
content: string;
collectFields?: Vocode.CollectField[];
contextEndpoint?: string;
}
11 changes: 11 additions & 0 deletions src/api/types/PromptUpdateParams.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as Vocode from "..";

export interface PromptUpdateParams {
content?: Vocode.PromptUpdateParamsContent;
collectFields?: Vocode.PromptUpdateParamsCollectFields;
contextEndpoint?: Vocode.PromptUpdateParamsContextEndpoint;
}
7 changes: 7 additions & 0 deletions src/api/types/PromptUpdateParamsCollectFields.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as Vocode from "..";

export type PromptUpdateParamsCollectFields = Vocode.CollectField[] | Vocode.Undefined;
7 changes: 7 additions & 0 deletions src/api/types/PromptUpdateParamsContent.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as Vocode from "..";

export type PromptUpdateParamsContent = string | Vocode.Undefined;
Loading

0 comments on commit 6a0eb99

Please sign in to comment.