Skip to content

Commit

Permalink
Release 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jan 14, 2025
1 parent eef0da1 commit df35a87
Show file tree
Hide file tree
Showing 213 changed files with 2,970 additions and 821 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vapi-ai/server-sdk",
"version": "0.2.2",
"version": "0.3.0",
"private": false,
"repository": "https://github.com/VapiAI/server-sdk-typescript",
"main": "./index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/analytics/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export class Analytics {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vapi-ai/server-sdk",
"X-Fern-SDK-Version": "0.2.2",
"User-Agent": "@vapi-ai/server-sdk/0.2.2",
"X-Fern-SDK-Version": "0.3.0",
"User-Agent": "@vapi-ai/server-sdk/0.3.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down
20 changes: 10 additions & 10 deletions src/api/resources/assistants/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ export class Assistants {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vapi-ai/server-sdk",
"X-Fern-SDK-Version": "0.2.2",
"User-Agent": "@vapi-ai/server-sdk/0.2.2",
"X-Fern-SDK-Version": "0.3.0",
"User-Agent": "@vapi-ai/server-sdk/0.3.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -153,8 +153,8 @@ export class Assistants {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vapi-ai/server-sdk",
"X-Fern-SDK-Version": "0.2.2",
"User-Agent": "@vapi-ai/server-sdk/0.2.2",
"X-Fern-SDK-Version": "0.3.0",
"User-Agent": "@vapi-ai/server-sdk/0.3.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -207,8 +207,8 @@ export class Assistants {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vapi-ai/server-sdk",
"X-Fern-SDK-Version": "0.2.2",
"User-Agent": "@vapi-ai/server-sdk/0.2.2",
"X-Fern-SDK-Version": "0.3.0",
"User-Agent": "@vapi-ai/server-sdk/0.3.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -260,8 +260,8 @@ export class Assistants {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vapi-ai/server-sdk",
"X-Fern-SDK-Version": "0.2.2",
"User-Agent": "@vapi-ai/server-sdk/0.2.2",
"X-Fern-SDK-Version": "0.3.0",
"User-Agent": "@vapi-ai/server-sdk/0.3.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -318,8 +318,8 @@ export class Assistants {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vapi-ai/server-sdk",
"X-Fern-SDK-Version": "0.2.2",
"User-Agent": "@vapi-ai/server-sdk/0.2.2",
"X-Fern-SDK-Version": "0.3.0",
"User-Agent": "@vapi-ai/server-sdk/0.3.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ export interface UpdateAssistantDto {
modelOutputInMessagesEnabled?: boolean;
/** These are the configurations to be passed to the transport providers of assistant's calls, like Twilio. You can store multiple configurations for different transport providers. For a call, only the configuration matching the call transport provider is used. */
transportConfigurations?: Vapi.TransportConfigurationTwilio[];
/** These are dynamic credentials that will be used for the assistant calls. By default, all the credentials are available for use in the call but you can supplement an additional credentials using this. Dynamic credentials override existing credentials. */
credentials?: Vapi.UpdateAssistantDtoCredentialsItem[];
/**
* This is the name of the assistant.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as Vapi from "../../../index";

export type UpdateAssistantDtoCredentialsItem =
| Vapi.CreateAnthropicCredentialDto
| Vapi.CreateAnyscaleCredentialDto
| Vapi.CreateAssemblyAiCredentialDto
| Vapi.CreateAzureOpenAiCredentialDto
| Vapi.CreateAzureCredentialDto
| Vapi.CreateByoSipTrunkCredentialDto
| Vapi.CreateCartesiaCredentialDto
| Vapi.CreateCloudflareCredentialDto
| Vapi.CreateCustomLlmCredentialDto
| Vapi.CreateDeepgramCredentialDto
| Vapi.CreateDeepInfraCredentialDto
| Vapi.CreateDeepSeekCredentialDto
| Vapi.CreateElevenLabsCredentialDto
| Vapi.CreateGcpCredentialDto
| Vapi.CreateGladiaCredentialDto
| Vapi.CreateGoHighLevelCredentialDto
| Vapi.CreateGroqCredentialDto
| Vapi.CreateLangfuseCredentialDto
| Vapi.CreateLmntCredentialDto
| Vapi.CreateMakeCredentialDto
| Vapi.CreateOpenAiCredentialDto
| Vapi.CreateOpenRouterCredentialDto
| Vapi.CreatePerplexityAiCredentialDto
| Vapi.CreatePlayHtCredentialDto
| Vapi.CreateRimeAiCredentialDto
| Vapi.CreateRunpodCredentialDto
| Vapi.CreateS3CredentialDto
| Vapi.CreateSmallestAiCredentialDto
| Vapi.CreateTavusCredentialDto
| Vapi.CreateTogetherAiCredentialDto
| Vapi.CreateTwilioCredentialDto
| Vapi.CreateVonageCredentialDto
| Vapi.CreateWebhookCredentialDto
| Vapi.CreateXAiCredentialDto;
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export type UpdateAssistantDtoModel =
| Vapi.GoogleModel
| Vapi.GroqModel
| Vapi.InflectionAiModel
| Vapi.DeepSeekModel
| Vapi.OpenAiModel
| Vapi.OpenRouterModel
| Vapi.PerplexityAiModel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import * as Vapi from "../../../index";
*/
export type UpdateAssistantDtoTranscriber =
| Vapi.AssemblyAiTranscriber
| Vapi.AzureSpeechTranscriber
| Vapi.CustomTranscriber
| Vapi.DeepgramTranscriber
| Vapi.GladiaTranscriber
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ export type UpdateAssistantDtoVoice =
| Vapi.OpenAiVoice
| Vapi.PlayHtVoice
| Vapi.RimeAiVoice
| Vapi.SmallestAiVoice
| Vapi.TavusVoice;
1 change: 1 addition & 0 deletions src/api/resources/assistants/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ export * from "./UpdateAssistantDtoFirstMessageMode";
export * from "./UpdateAssistantDtoClientMessagesItem";
export * from "./UpdateAssistantDtoServerMessagesItem";
export * from "./UpdateAssistantDtoBackgroundSound";
export * from "./UpdateAssistantDtoCredentialsItem";
24 changes: 12 additions & 12 deletions src/api/resources/blocks/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ export class Blocks {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vapi-ai/server-sdk",
"X-Fern-SDK-Version": "0.2.2",
"User-Agent": "@vapi-ai/server-sdk/0.2.2",
"X-Fern-SDK-Version": "0.3.0",
"User-Agent": "@vapi-ai/server-sdk/0.3.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -153,8 +153,8 @@ export class Blocks {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vapi-ai/server-sdk",
"X-Fern-SDK-Version": "0.2.2",
"User-Agent": "@vapi-ai/server-sdk/0.2.2",
"X-Fern-SDK-Version": "0.3.0",
"User-Agent": "@vapi-ai/server-sdk/0.3.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -207,8 +207,8 @@ export class Blocks {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vapi-ai/server-sdk",
"X-Fern-SDK-Version": "0.2.2",
"User-Agent": "@vapi-ai/server-sdk/0.2.2",
"X-Fern-SDK-Version": "0.3.0",
"User-Agent": "@vapi-ai/server-sdk/0.3.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -260,8 +260,8 @@ export class Blocks {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vapi-ai/server-sdk",
"X-Fern-SDK-Version": "0.2.2",
"User-Agent": "@vapi-ai/server-sdk/0.2.2",
"X-Fern-SDK-Version": "0.3.0",
"User-Agent": "@vapi-ai/server-sdk/0.3.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -300,12 +300,12 @@ export class Blocks {

/**
* @param {string} id
* @param {Vapi.UpdateBlockDto} request
* @param {Vapi.BlocksUpdateRequest} request
* @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
*/
public async update(
id: string,
request: Vapi.UpdateBlockDto = {},
request: Vapi.BlocksUpdateRequest,
requestOptions?: Blocks.RequestOptions
): Promise<Vapi.BlocksUpdateResponse> {
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand All @@ -318,8 +318,8 @@ export class Blocks {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vapi-ai/server-sdk",
"X-Fern-SDK-Version": "0.2.2",
"User-Agent": "@vapi-ai/server-sdk/0.2.2",
"X-Fern-SDK-Version": "0.3.0",
"User-Agent": "@vapi-ai/server-sdk/0.3.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down
1 change: 0 additions & 1 deletion src/api/resources/blocks/client/requests/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { type BlocksListRequest } from "./BlocksListRequest";
export { type UpdateBlockDto } from "./UpdateBlockDto";
10 changes: 10 additions & 0 deletions src/api/resources/blocks/types/BlocksUpdateRequest.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.
*/

import * as Vapi from "../../../index";

export type BlocksUpdateRequest =
| Vapi.UpdateConversationBlockDto
| Vapi.UpdateToolCallBlockDto
| Vapi.UpdateWorkflowBlockDto;
7 changes: 0 additions & 7 deletions src/api/resources/blocks/types/UpdateBlockDtoStepsItem.ts

This file was deleted.

4 changes: 1 addition & 3 deletions src/api/resources/blocks/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@ export * from "./BlocksCreateRequest";
export * from "./BlocksCreateResponse";
export * from "./BlocksGetResponse";
export * from "./BlocksDeleteResponse";
export * from "./UpdateBlockDtoMessagesItem";
export * from "./UpdateBlockDtoTool";
export * from "./UpdateBlockDtoStepsItem";
export * from "./BlocksUpdateRequest";
export * from "./BlocksUpdateResponse";
20 changes: 10 additions & 10 deletions src/api/resources/calls/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ export class Calls {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vapi-ai/server-sdk",
"X-Fern-SDK-Version": "0.2.2",
"User-Agent": "@vapi-ai/server-sdk/0.2.2",
"X-Fern-SDK-Version": "0.3.0",
"User-Agent": "@vapi-ai/server-sdk/0.3.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -165,8 +165,8 @@ export class Calls {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vapi-ai/server-sdk",
"X-Fern-SDK-Version": "0.2.2",
"User-Agent": "@vapi-ai/server-sdk/0.2.2",
"X-Fern-SDK-Version": "0.3.0",
"User-Agent": "@vapi-ai/server-sdk/0.3.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -219,8 +219,8 @@ export class Calls {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vapi-ai/server-sdk",
"X-Fern-SDK-Version": "0.2.2",
"User-Agent": "@vapi-ai/server-sdk/0.2.2",
"X-Fern-SDK-Version": "0.3.0",
"User-Agent": "@vapi-ai/server-sdk/0.3.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -272,8 +272,8 @@ export class Calls {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vapi-ai/server-sdk",
"X-Fern-SDK-Version": "0.2.2",
"User-Agent": "@vapi-ai/server-sdk/0.2.2",
"X-Fern-SDK-Version": "0.3.0",
"User-Agent": "@vapi-ai/server-sdk/0.3.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -330,8 +330,8 @@ export class Calls {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vapi-ai/server-sdk",
"X-Fern-SDK-Version": "0.2.2",
"User-Agent": "@vapi-ai/server-sdk/0.2.2",
"X-Fern-SDK-Version": "0.3.0",
"User-Agent": "@vapi-ai/server-sdk/0.3.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down
20 changes: 10 additions & 10 deletions src/api/resources/files/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ export class Files {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vapi-ai/server-sdk",
"X-Fern-SDK-Version": "0.2.2",
"User-Agent": "@vapi-ai/server-sdk/0.2.2",
"X-Fern-SDK-Version": "0.3.0",
"User-Agent": "@vapi-ai/server-sdk/0.3.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -104,8 +104,8 @@ export class Files {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vapi-ai/server-sdk",
"X-Fern-SDK-Version": "0.2.2",
"User-Agent": "@vapi-ai/server-sdk/0.2.2",
"X-Fern-SDK-Version": "0.3.0",
"User-Agent": "@vapi-ai/server-sdk/0.3.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
..._maybeEncodedRequest.headers,
Expand Down Expand Up @@ -164,8 +164,8 @@ export class Files {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vapi-ai/server-sdk",
"X-Fern-SDK-Version": "0.2.2",
"User-Agent": "@vapi-ai/server-sdk/0.2.2",
"X-Fern-SDK-Version": "0.3.0",
"User-Agent": "@vapi-ai/server-sdk/0.3.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -217,8 +217,8 @@ export class Files {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vapi-ai/server-sdk",
"X-Fern-SDK-Version": "0.2.2",
"User-Agent": "@vapi-ai/server-sdk/0.2.2",
"X-Fern-SDK-Version": "0.3.0",
"User-Agent": "@vapi-ai/server-sdk/0.3.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down Expand Up @@ -275,8 +275,8 @@ export class Files {
Authorization: await this._getAuthorizationHeader(),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@vapi-ai/server-sdk",
"X-Fern-SDK-Version": "0.2.2",
"User-Agent": "@vapi-ai/server-sdk/0.2.2",
"X-Fern-SDK-Version": "0.3.0",
"User-Agent": "@vapi-ai/server-sdk/0.3.0",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
...requestOptions?.headers,
Expand Down
Loading

0 comments on commit df35a87

Please sign in to comment.