Skip to content

Commit

Permalink
Release 0.0.17
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Aug 26, 2023
1 parent 6a0eb99 commit 6cc8db1
Show file tree
Hide file tree
Showing 21 changed files with 410 additions and 38 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.16",
"version": "0.0.17",
"private": false,
"repository": "https://github.com/vocodedev/vocode-api-node",
"main": "./index.js",
Expand Down
7 changes: 7 additions & 0 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { Actions } from "./api/resources/actions/client/Client";
import { Agents } from "./api/resources/agents/client/Client";
import { Voices } from "./api/resources/voices/client/Client";
import { Webhooks } from "./api/resources/webhooks/client/Client";
import { Prompts } from "./api/resources/prompts/client/Client";

export declare namespace VocodeClient {
interface Options {
Expand Down Expand Up @@ -63,4 +64,10 @@ export class VocodeClient {
public get webhooks(): Webhooks {
return (this._webhooks ??= new Webhooks(this._options));
}

protected _prompts: Prompts | undefined;

public get prompts(): Prompts {
return (this._prompts ??= new Prompts(this._options));
}
}
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.16",
"X-Fern-SDK-Version": "0.0.17",
},
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.16",
"X-Fern-SDK-Version": "0.0.17",
},
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.16",
"X-Fern-SDK-Version": "0.0.17",
},
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.16",
"X-Fern-SDK-Version": "0.0.17",
},
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.16",
"X-Fern-SDK-Version": "0.0.17",
},
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.16",
"X-Fern-SDK-Version": "0.0.17",
},
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.16",
"X-Fern-SDK-Version": "0.0.17",
},
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.16",
"X-Fern-SDK-Version": "0.0.17",
},
contentType: "application/json",
queryParameters: _queryParams,
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.16",
"X-Fern-SDK-Version": "0.0.17",
},
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.16",
"X-Fern-SDK-Version": "0.0.17",
},
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.16",
"X-Fern-SDK-Version": "0.0.17",
},
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.16",
"X-Fern-SDK-Version": "0.0.17",
},
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.16",
"X-Fern-SDK-Version": "0.0.17",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down
2 changes: 2 additions & 0 deletions src/api/resources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ export * as actions from "./actions";
export * as agents from "./agents";
export * as voices from "./voices";
export * as webhooks from "./webhooks";
export * as prompts from "./prompts";
export * from "./numbers/client/requests";
export * from "./calls/client/requests";
export * from "./actions/client/requests";
export * from "./agents/client/requests";
export * from "./voices/client/requests";
export * from "./webhooks/client/requests";
export * from "./prompts/client/requests";
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.16",
"X-Fern-SDK-Version": "0.0.17",
},
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.16",
"X-Fern-SDK-Version": "0.0.17",
},
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.16",
"X-Fern-SDK-Version": "0.0.17",
},
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.16",
"X-Fern-SDK-Version": "0.0.17",
},
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.16",
"X-Fern-SDK-Version": "0.0.17",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down
Loading

0 comments on commit 6cc8db1

Please sign in to comment.