diff --git a/package.json b/package.json index 7ce4ffac..fec19a95 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vapi-ai/server-sdk", - "version": "0.10.3", + "version": "0.10.4", "private": false, "repository": "github:VapiAI/server-sdk-typescript", "type": "commonjs", diff --git a/src/Client.ts b/src/Client.ts index 71a2b14c..eda0231a 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -26,7 +26,7 @@ export declare namespace VapiClient { baseUrl?: core.Supplier; token: core.Supplier; /** Additional headers to include in requests. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; fetcher?: core.FetchFunction; } @@ -40,7 +40,7 @@ export declare namespace VapiClient { /** Additional query string parameters to include in the request. */ queryParams?: Record; /** Additional headers to include in the request. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; } } @@ -67,8 +67,8 @@ export class VapiClient { { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.10.3", - "User-Agent": "@vapi-ai/server-sdk/0.10.3", + "X-Fern-SDK-Version": "0.10.4", + "User-Agent": "@vapi-ai/server-sdk/0.10.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/analytics/client/Client.ts b/src/api/resources/analytics/client/Client.ts index 495cfeb1..64bab232 100644 --- a/src/api/resources/analytics/client/Client.ts +++ b/src/api/resources/analytics/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace Analytics { baseUrl?: core.Supplier; token: core.Supplier; /** Additional headers to include in requests. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; fetcher?: core.FetchFunction; } @@ -29,7 +29,7 @@ export declare namespace Analytics { /** Additional query string parameters to include in the request. */ queryParams?: Record; /** Additional headers to include in the request. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; } } diff --git a/src/api/resources/assistants/client/Client.ts b/src/api/resources/assistants/client/Client.ts index b3c99f3f..7b68dac5 100644 --- a/src/api/resources/assistants/client/Client.ts +++ b/src/api/resources/assistants/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace Assistants { baseUrl?: core.Supplier; token: core.Supplier; /** Additional headers to include in requests. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; fetcher?: core.FetchFunction; } @@ -29,7 +29,7 @@ export declare namespace Assistants { /** Additional query string parameters to include in the request. */ queryParams?: Record; /** Additional headers to include in the request. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; } } diff --git a/src/api/resources/assistants/client/requests/UpdateAssistantDto.ts b/src/api/resources/assistants/client/requests/UpdateAssistantDto.ts index 08065255..2f7cb373 100644 --- a/src/api/resources/assistants/client/requests/UpdateAssistantDto.ts +++ b/src/api/resources/assistants/client/requests/UpdateAssistantDto.ts @@ -10,11 +10,11 @@ import * as Vapi from "../../../../index.js"; */ export interface UpdateAssistantDto { /** These are the options for the assistant's transcriber. */ - transcriber?: UpdateAssistantDto.Transcriber; + transcriber?: Vapi.UpdateAssistantDtoTranscriber; /** These are the options for the assistant's LLM. */ - model?: UpdateAssistantDto.Model; + model?: Vapi.UpdateAssistantDtoModel; /** These are the options for the assistant's voice. */ - voice?: UpdateAssistantDto.Voice; + voice?: Vapi.UpdateAssistantDtoVoice; /** * This is the first message that the assistant will say. This can also be a URL to a containerized audio file (mp3, wav, etc.). * @@ -32,17 +32,17 @@ export interface UpdateAssistantDto { * * @default 'assistant-speaks-first' */ - firstMessageMode?: UpdateAssistantDto.FirstMessageMode; + firstMessageMode?: Vapi.UpdateAssistantDtoFirstMessageMode; /** * These are the settings to configure or disable voicemail detection. Alternatively, voicemail detection can be configured using the model.tools=[VoicemailTool]. * This uses Twilio's built-in detection while the VoicemailTool relies on the model to detect if a voicemail was reached. * You can use neither of them, one of them, or both of them. By default, Twilio built-in detection is enabled while VoicemailTool is not. */ - voicemailDetection?: UpdateAssistantDto.VoicemailDetection; + voicemailDetection?: Vapi.UpdateAssistantDtoVoicemailDetection; /** These are the messages that will be sent to your Client SDKs. Default is conversation-update,function-call,hang,model-output,speech-update,status-update,transfer-update,transcript,tool-calls,user-interrupted,voice-input,workflow.node.started. You can check the shape of the messages in ClientMessage schema. */ - clientMessages?: UpdateAssistantDto.ClientMessages.Item[]; + clientMessages?: Vapi.UpdateAssistantDtoClientMessagesItem[]; /** These are the messages that will be sent to your Server URL. Default is conversation-update,end-of-call-report,function-call,hang,speech-update,status-update,tool-calls,transfer-destination-request,handoff-destination-request,user-interrupted. You can check the shape of the messages in ServerMessage schema. */ - serverMessages?: UpdateAssistantDto.ServerMessages.Item[]; + serverMessages?: Vapi.UpdateAssistantDtoServerMessagesItem[]; /** * This is the maximum number of seconds that the call will last. When the call reaches this duration, it will be ended. * @@ -53,7 +53,7 @@ export interface UpdateAssistantDto { * This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. * You can also provide a custom sound by providing a URL to an audio file. */ - backgroundSound?: UpdateAssistantDto.BackgroundSound; + backgroundSound?: Vapi.UpdateAssistantDtoBackgroundSound; /** * This determines whether the model's output is used in conversation history rather than the transcription of assistant's speech. * @@ -71,9 +71,9 @@ export interface UpdateAssistantDto { */ observabilityPlan?: Vapi.LangfuseObservabilityPlan; /** 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?: UpdateAssistantDto.Credentials.Item[]; + credentials?: Vapi.UpdateAssistantDtoCredentialsItem[]; /** This is a set of actions that will be performed on certain events. */ - hooks?: UpdateAssistantDto.Hooks.Item[]; + hooks?: Vapi.UpdateAssistantDtoHooksItem[]; /** * This is the name of the assistant. * @@ -157,260 +157,3 @@ export interface UpdateAssistantDto { server?: Vapi.Server; keypadInputPlan?: Vapi.KeypadInputPlan; } - -export namespace UpdateAssistantDto { - /** - * These are the options for the assistant's transcriber. - */ - export type Transcriber = - | Vapi.AssemblyAiTranscriber - | Vapi.AzureSpeechTranscriber - | Vapi.CustomTranscriber - | Vapi.DeepgramTranscriber - | Vapi.ElevenLabsTranscriber - | Vapi.GladiaTranscriber - | Vapi.GoogleTranscriber - | Vapi.SpeechmaticsTranscriber - | Vapi.TalkscriberTranscriber - | Vapi.OpenAiTranscriber - | Vapi.CartesiaTranscriber; - /** - * These are the options for the assistant's LLM. - */ - export type Model = - | Vapi.AnthropicModel - | Vapi.AnyscaleModel - | Vapi.CerebrasModel - | Vapi.CustomLlmModel - | Vapi.DeepInfraModel - | Vapi.DeepSeekModel - | Vapi.GoogleModel - | Vapi.GroqModel - | Vapi.InflectionAiModel - | Vapi.OpenAiModel - | Vapi.OpenRouterModel - | Vapi.PerplexityAiModel - | Vapi.TogetherAiModel - | Vapi.XaiModel; - /** - * These are the options for the assistant's voice. - */ - export type Voice = - | Vapi.AzureVoice - | Vapi.CartesiaVoice - | Vapi.CustomVoice - | Vapi.DeepgramVoice - | Vapi.ElevenLabsVoice - | Vapi.HumeVoice - | Vapi.LmntVoice - | Vapi.NeuphonicVoice - | Vapi.OpenAiVoice - | Vapi.PlayHtVoice - | Vapi.RimeAiVoice - | Vapi.SmallestAiVoice - | Vapi.TavusVoice - | Vapi.VapiVoice - | Vapi.SesameVoice - | Vapi.InworldVoice - | Vapi.MinimaxVoice; - /** - * This is the mode for the first message. Default is 'assistant-speaks-first'. - * - * Use: - * - 'assistant-speaks-first' to have the assistant speak first. - * - 'assistant-waits-for-user' to have the assistant wait for the user to speak first. - * - 'assistant-speaks-first-with-model-generated-message' to have the assistant speak first with a message generated by the model based on the conversation state. (`assistant.model.messages` at call start, `call.messages` at squad transfer points). - * - * @default 'assistant-speaks-first' - */ - export type FirstMessageMode = - | "assistant-speaks-first" - | "assistant-speaks-first-with-model-generated-message" - | "assistant-waits-for-user"; - export const FirstMessageMode = { - AssistantSpeaksFirst: "assistant-speaks-first", - AssistantSpeaksFirstWithModelGeneratedMessage: "assistant-speaks-first-with-model-generated-message", - AssistantWaitsForUser: "assistant-waits-for-user", - } as const; - /** - * These are the settings to configure or disable voicemail detection. Alternatively, voicemail detection can be configured using the model.tools=[VoicemailTool]. - * This uses Twilio's built-in detection while the VoicemailTool relies on the model to detect if a voicemail was reached. - * You can use neither of them, one of them, or both of them. By default, Twilio built-in detection is enabled while VoicemailTool is not. - */ - export type VoicemailDetection = - | Vapi.GoogleVoicemailDetectionPlan - | Vapi.OpenAiVoicemailDetectionPlan - | Vapi.TwilioVoicemailDetectionPlan - | Vapi.VapiVoicemailDetectionPlan; - export type ClientMessages = ClientMessages.Item[]; - - export namespace ClientMessages { - export type Item = - | "conversation-update" - | "function-call" - | "function-call-result" - | "hang" - | "language-changed" - | "metadata" - | "model-output" - | "speech-update" - | "status-update" - | "transcript" - | "tool-calls" - | "tool-calls-result" - | "tool.completed" - | "transfer-update" - | "user-interrupted" - | "voice-input" - | "workflow.node.started"; - export const Item = { - ConversationUpdate: "conversation-update", - FunctionCall: "function-call", - FunctionCallResult: "function-call-result", - Hang: "hang", - LanguageChanged: "language-changed", - Metadata: "metadata", - ModelOutput: "model-output", - SpeechUpdate: "speech-update", - StatusUpdate: "status-update", - Transcript: "transcript", - ToolCalls: "tool-calls", - ToolCallsResult: "tool-calls-result", - ToolCompleted: "tool.completed", - TransferUpdate: "transfer-update", - UserInterrupted: "user-interrupted", - VoiceInput: "voice-input", - WorkflowNodeStarted: "workflow.node.started", - } as const; - } - - export type ServerMessages = ServerMessages.Item[]; - - export namespace ServerMessages { - export type Item = - | "conversation-update" - | "end-of-call-report" - | "function-call" - | "hang" - | "language-changed" - | "language-change-detected" - | "model-output" - | "phone-call-control" - | "speech-update" - | "status-update" - | "transcript" - | 'transcript[transcriptType="final"]' - | "tool-calls" - | "transfer-destination-request" - | "handoff-destination-request" - | "transfer-update" - | "user-interrupted" - | "voice-input" - | "chat.created" - | "chat.deleted" - | "session.created" - | "session.updated" - | "session.deleted" - | "call.deleted" - | "call.delete.failed"; - export const Item = { - ConversationUpdate: "conversation-update", - EndOfCallReport: "end-of-call-report", - FunctionCall: "function-call", - Hang: "hang", - LanguageChanged: "language-changed", - LanguageChangeDetected: "language-change-detected", - ModelOutput: "model-output", - PhoneCallControl: "phone-call-control", - SpeechUpdate: "speech-update", - StatusUpdate: "status-update", - Transcript: "transcript", - TranscriptTranscriptTypeFinal: 'transcript[transcriptType="final"]', - ToolCalls: "tool-calls", - TransferDestinationRequest: "transfer-destination-request", - HandoffDestinationRequest: "handoff-destination-request", - TransferUpdate: "transfer-update", - UserInterrupted: "user-interrupted", - VoiceInput: "voice-input", - ChatCreated: "chat.created", - ChatDeleted: "chat.deleted", - SessionCreated: "session.created", - SessionUpdated: "session.updated", - SessionDeleted: "session.deleted", - CallDeleted: "call.deleted", - CallDeleteFailed: "call.delete.failed", - } as const; - } - - /** - * This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. - * You can also provide a custom sound by providing a URL to an audio file. - */ - export type BackgroundSound = ("off" | "office") | string; - export type Credentials = Credentials.Item[]; - - export namespace Credentials { - export type Item = - | Vapi.CreateElevenLabsCredentialDto - | Vapi.CreateAnthropicCredentialDto - | Vapi.CreateAnyscaleCredentialDto - | Vapi.CreateAssemblyAiCredentialDto - | Vapi.CreateAzureOpenAiCredentialDto - | Vapi.CreateAzureCredentialDto - | Vapi.CreateByoSipTrunkCredentialDto - | Vapi.CreateCartesiaCredentialDto - | Vapi.CreateCerebrasCredentialDto - | Vapi.CreateCloudflareCredentialDto - | Vapi.CreateCustomLlmCredentialDto - | Vapi.CreateDeepgramCredentialDto - | Vapi.CreateDeepInfraCredentialDto - | Vapi.CreateDeepSeekCredentialDto - | Vapi.CreateGcpCredentialDto - | Vapi.CreateGladiaCredentialDto - | Vapi.CreateGoHighLevelCredentialDto - | Vapi.CreateGoogleCredentialDto - | Vapi.CreateGroqCredentialDto - | Vapi.CreateInflectionAiCredentialDto - | Vapi.CreateLangfuseCredentialDto - | Vapi.CreateLmntCredentialDto - | Vapi.CreateMakeCredentialDto - | Vapi.CreateOpenAiCredentialDto - | Vapi.CreateOpenRouterCredentialDto - | Vapi.CreatePerplexityAiCredentialDto - | Vapi.CreatePlayHtCredentialDto - | Vapi.CreateRimeAiCredentialDto - | Vapi.CreateRunpodCredentialDto - | Vapi.CreateS3CredentialDto - | Vapi.CreateSupabaseCredentialDto - | Vapi.CreateSmallestAiCredentialDto - | Vapi.CreateTavusCredentialDto - | Vapi.CreateTogetherAiCredentialDto - | Vapi.CreateTwilioCredentialDto - | Vapi.CreateVonageCredentialDto - | Vapi.CreateWebhookCredentialDto - | Vapi.CreateCustomCredentialDto - | Vapi.CreateXAiCredentialDto - | Vapi.CreateNeuphonicCredentialDto - | Vapi.CreateHumeCredentialDto - | Vapi.CreateMistralCredentialDto - | Vapi.CreateSpeechmaticsCredentialDto - | Vapi.CreateTrieveCredentialDto - | Vapi.CreateGoogleCalendarOAuth2ClientCredentialDto - | Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDto - | Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDto - | Vapi.CreateSlackOAuth2AuthorizationCredentialDto - | Vapi.CreateGoHighLevelMcpCredentialDto - | Vapi.CreateInworldCredentialDto - | Vapi.CreateMinimaxCredentialDto; - } - - export type Hooks = Hooks.Item[]; - - export namespace Hooks { - export type Item = - | Vapi.CallHookCallEnding - | Vapi.CallHookAssistantSpeechInterrupted - | Vapi.CallHookCustomerSpeechInterrupted - | Vapi.CallHookCustomerSpeechTimeout; - } -} diff --git a/src/api/resources/assistants/index.ts b/src/api/resources/assistants/index.ts index 914b8c3c..f095e147 100644 --- a/src/api/resources/assistants/index.ts +++ b/src/api/resources/assistants/index.ts @@ -1 +1,2 @@ +export * from "./types/index.js"; export * from "./client/index.js"; diff --git a/src/api/resources/assistants/types/UpdateAssistantDtoBackgroundSound.ts b/src/api/resources/assistants/types/UpdateAssistantDtoBackgroundSound.ts new file mode 100644 index 00000000..ab21a2ff --- /dev/null +++ b/src/api/resources/assistants/types/UpdateAssistantDtoBackgroundSound.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../../../index.js"; + +/** + * This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. + * You can also provide a custom sound by providing a URL to an audio file. + */ +export type UpdateAssistantDtoBackgroundSound = Vapi.UpdateAssistantDtoBackgroundSoundZero | string; diff --git a/src/api/resources/assistants/types/UpdateAssistantDtoBackgroundSoundZero.ts b/src/api/resources/assistants/types/UpdateAssistantDtoBackgroundSoundZero.ts new file mode 100644 index 00000000..07c4e26c --- /dev/null +++ b/src/api/resources/assistants/types/UpdateAssistantDtoBackgroundSoundZero.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type UpdateAssistantDtoBackgroundSoundZero = "off" | "office"; +export const UpdateAssistantDtoBackgroundSoundZero = { + Off: "off", + Office: "office", +} as const; diff --git a/src/api/resources/assistants/types/UpdateAssistantDtoClientMessagesItem.ts b/src/api/resources/assistants/types/UpdateAssistantDtoClientMessagesItem.ts new file mode 100644 index 00000000..2dafca2e --- /dev/null +++ b/src/api/resources/assistants/types/UpdateAssistantDtoClientMessagesItem.ts @@ -0,0 +1,41 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type UpdateAssistantDtoClientMessagesItem = + | "conversation-update" + | "function-call" + | "function-call-result" + | "hang" + | "language-changed" + | "metadata" + | "model-output" + | "speech-update" + | "status-update" + | "transcript" + | "tool-calls" + | "tool-calls-result" + | "tool.completed" + | "transfer-update" + | "user-interrupted" + | "voice-input" + | "workflow.node.started"; +export const UpdateAssistantDtoClientMessagesItem = { + ConversationUpdate: "conversation-update", + FunctionCall: "function-call", + FunctionCallResult: "function-call-result", + Hang: "hang", + LanguageChanged: "language-changed", + Metadata: "metadata", + ModelOutput: "model-output", + SpeechUpdate: "speech-update", + StatusUpdate: "status-update", + Transcript: "transcript", + ToolCalls: "tool-calls", + ToolCallsResult: "tool-calls-result", + ToolCompleted: "tool.completed", + TransferUpdate: "transfer-update", + UserInterrupted: "user-interrupted", + VoiceInput: "voice-input", + WorkflowNodeStarted: "workflow.node.started", +} as const; diff --git a/src/api/resources/assistants/types/UpdateAssistantDtoCredentialsItem.ts b/src/api/resources/assistants/types/UpdateAssistantDtoCredentialsItem.ts new file mode 100644 index 00000000..8967fc33 --- /dev/null +++ b/src/api/resources/assistants/types/UpdateAssistantDtoCredentialsItem.ts @@ -0,0 +1,58 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../../../index.js"; + +export type UpdateAssistantDtoCredentialsItem = + | Vapi.CreateElevenLabsCredentialDto + | Vapi.CreateAnthropicCredentialDto + | Vapi.CreateAnyscaleCredentialDto + | Vapi.CreateAssemblyAiCredentialDto + | Vapi.CreateAzureOpenAiCredentialDto + | Vapi.CreateAzureCredentialDto + | Vapi.CreateByoSipTrunkCredentialDto + | Vapi.CreateCartesiaCredentialDto + | Vapi.CreateCerebrasCredentialDto + | Vapi.CreateCloudflareCredentialDto + | Vapi.CreateCustomLlmCredentialDto + | Vapi.CreateDeepgramCredentialDto + | Vapi.CreateDeepInfraCredentialDto + | Vapi.CreateDeepSeekCredentialDto + | Vapi.CreateGcpCredentialDto + | Vapi.CreateGladiaCredentialDto + | Vapi.CreateGoHighLevelCredentialDto + | Vapi.CreateGoogleCredentialDto + | Vapi.CreateGroqCredentialDto + | Vapi.CreateInflectionAiCredentialDto + | Vapi.CreateLangfuseCredentialDto + | Vapi.CreateLmntCredentialDto + | Vapi.CreateMakeCredentialDto + | Vapi.CreateOpenAiCredentialDto + | Vapi.CreateOpenRouterCredentialDto + | Vapi.CreatePerplexityAiCredentialDto + | Vapi.CreatePlayHtCredentialDto + | Vapi.CreateRimeAiCredentialDto + | Vapi.CreateRunpodCredentialDto + | Vapi.CreateS3CredentialDto + | Vapi.CreateSupabaseCredentialDto + | Vapi.CreateSmallestAiCredentialDto + | Vapi.CreateTavusCredentialDto + | Vapi.CreateTogetherAiCredentialDto + | Vapi.CreateTwilioCredentialDto + | Vapi.CreateVonageCredentialDto + | Vapi.CreateWebhookCredentialDto + | Vapi.CreateCustomCredentialDto + | Vapi.CreateXAiCredentialDto + | Vapi.CreateNeuphonicCredentialDto + | Vapi.CreateHumeCredentialDto + | Vapi.CreateMistralCredentialDto + | Vapi.CreateSpeechmaticsCredentialDto + | Vapi.CreateTrieveCredentialDto + | Vapi.CreateGoogleCalendarOAuth2ClientCredentialDto + | Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDto + | Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDto + | Vapi.CreateSlackOAuth2AuthorizationCredentialDto + | Vapi.CreateGoHighLevelMcpCredentialDto + | Vapi.CreateInworldCredentialDto + | Vapi.CreateMinimaxCredentialDto; diff --git a/src/api/resources/assistants/types/UpdateAssistantDtoFirstMessageMode.ts b/src/api/resources/assistants/types/UpdateAssistantDtoFirstMessageMode.ts new file mode 100644 index 00000000..72dc2e18 --- /dev/null +++ b/src/api/resources/assistants/types/UpdateAssistantDtoFirstMessageMode.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the mode for the first message. Default is 'assistant-speaks-first'. + * + * Use: + * - 'assistant-speaks-first' to have the assistant speak first. + * - 'assistant-waits-for-user' to have the assistant wait for the user to speak first. + * - 'assistant-speaks-first-with-model-generated-message' to have the assistant speak first with a message generated by the model based on the conversation state. (`assistant.model.messages` at call start, `call.messages` at squad transfer points). + * + * @default 'assistant-speaks-first' + */ +export type UpdateAssistantDtoFirstMessageMode = + | "assistant-speaks-first" + | "assistant-speaks-first-with-model-generated-message" + | "assistant-waits-for-user"; +export const UpdateAssistantDtoFirstMessageMode = { + AssistantSpeaksFirst: "assistant-speaks-first", + AssistantSpeaksFirstWithModelGeneratedMessage: "assistant-speaks-first-with-model-generated-message", + AssistantWaitsForUser: "assistant-waits-for-user", +} as const; diff --git a/src/api/resources/assistants/types/UpdateAssistantDtoHooksItem.ts b/src/api/resources/assistants/types/UpdateAssistantDtoHooksItem.ts new file mode 100644 index 00000000..549ff105 --- /dev/null +++ b/src/api/resources/assistants/types/UpdateAssistantDtoHooksItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../../../index.js"; + +export type UpdateAssistantDtoHooksItem = + | Vapi.CallHookCallEnding + | Vapi.CallHookAssistantSpeechInterrupted + | Vapi.CallHookCustomerSpeechInterrupted + | Vapi.CallHookCustomerSpeechTimeout; diff --git a/src/api/resources/assistants/types/UpdateAssistantDtoModel.ts b/src/api/resources/assistants/types/UpdateAssistantDtoModel.ts new file mode 100644 index 00000000..150161d4 --- /dev/null +++ b/src/api/resources/assistants/types/UpdateAssistantDtoModel.ts @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../../../index.js"; + +/** + * These are the options for the assistant's LLM. + */ +export type UpdateAssistantDtoModel = + | Vapi.AnthropicModel + | Vapi.AnyscaleModel + | Vapi.CerebrasModel + | Vapi.CustomLlmModel + | Vapi.DeepInfraModel + | Vapi.DeepSeekModel + | Vapi.GoogleModel + | Vapi.GroqModel + | Vapi.InflectionAiModel + | Vapi.OpenAiModel + | Vapi.OpenRouterModel + | Vapi.PerplexityAiModel + | Vapi.TogetherAiModel + | Vapi.XaiModel; diff --git a/src/api/resources/assistants/types/UpdateAssistantDtoServerMessagesItem.ts b/src/api/resources/assistants/types/UpdateAssistantDtoServerMessagesItem.ts new file mode 100644 index 00000000..d9f24fa2 --- /dev/null +++ b/src/api/resources/assistants/types/UpdateAssistantDtoServerMessagesItem.ts @@ -0,0 +1,57 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type UpdateAssistantDtoServerMessagesItem = + | "conversation-update" + | "end-of-call-report" + | "function-call" + | "hang" + | "language-changed" + | "language-change-detected" + | "model-output" + | "phone-call-control" + | "speech-update" + | "status-update" + | "transcript" + | 'transcript[transcriptType="final"]' + | "tool-calls" + | "transfer-destination-request" + | "handoff-destination-request" + | "transfer-update" + | "user-interrupted" + | "voice-input" + | "chat.created" + | "chat.deleted" + | "session.created" + | "session.updated" + | "session.deleted" + | "call.deleted" + | "call.delete.failed"; +export const UpdateAssistantDtoServerMessagesItem = { + ConversationUpdate: "conversation-update", + EndOfCallReport: "end-of-call-report", + FunctionCall: "function-call", + Hang: "hang", + LanguageChanged: "language-changed", + LanguageChangeDetected: "language-change-detected", + ModelOutput: "model-output", + PhoneCallControl: "phone-call-control", + SpeechUpdate: "speech-update", + StatusUpdate: "status-update", + Transcript: "transcript", + TranscriptTranscriptTypeFinal: 'transcript[transcriptType="final"]', + ToolCalls: "tool-calls", + TransferDestinationRequest: "transfer-destination-request", + HandoffDestinationRequest: "handoff-destination-request", + TransferUpdate: "transfer-update", + UserInterrupted: "user-interrupted", + VoiceInput: "voice-input", + ChatCreated: "chat.created", + ChatDeleted: "chat.deleted", + SessionCreated: "session.created", + SessionUpdated: "session.updated", + SessionDeleted: "session.deleted", + CallDeleted: "call.deleted", + CallDeleteFailed: "call.delete.failed", +} as const; diff --git a/src/api/resources/assistants/types/UpdateAssistantDtoTranscriber.ts b/src/api/resources/assistants/types/UpdateAssistantDtoTranscriber.ts new file mode 100644 index 00000000..b3d47ad6 --- /dev/null +++ b/src/api/resources/assistants/types/UpdateAssistantDtoTranscriber.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../../../index.js"; + +/** + * These are the options for the assistant's transcriber. + */ +export type UpdateAssistantDtoTranscriber = + | Vapi.AssemblyAiTranscriber + | Vapi.AzureSpeechTranscriber + | Vapi.CustomTranscriber + | Vapi.DeepgramTranscriber + | Vapi.ElevenLabsTranscriber + | Vapi.GladiaTranscriber + | Vapi.GoogleTranscriber + | Vapi.SpeechmaticsTranscriber + | Vapi.TalkscriberTranscriber + | Vapi.OpenAiTranscriber + | Vapi.CartesiaTranscriber; diff --git a/src/api/resources/assistants/types/UpdateAssistantDtoVoice.ts b/src/api/resources/assistants/types/UpdateAssistantDtoVoice.ts new file mode 100644 index 00000000..a602f955 --- /dev/null +++ b/src/api/resources/assistants/types/UpdateAssistantDtoVoice.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../../../index.js"; + +/** + * These are the options for the assistant's voice. + */ +export type UpdateAssistantDtoVoice = + | Vapi.AzureVoice + | Vapi.CartesiaVoice + | Vapi.CustomVoice + | Vapi.DeepgramVoice + | Vapi.ElevenLabsVoice + | Vapi.HumeVoice + | Vapi.LmntVoice + | Vapi.NeuphonicVoice + | Vapi.OpenAiVoice + | Vapi.PlayHtVoice + | Vapi.RimeAiVoice + | Vapi.SmallestAiVoice + | Vapi.TavusVoice + | Vapi.VapiVoice + | Vapi.SesameVoice + | Vapi.InworldVoice + | Vapi.MinimaxVoice; diff --git a/src/api/resources/assistants/types/UpdateAssistantDtoVoicemailDetection.ts b/src/api/resources/assistants/types/UpdateAssistantDtoVoicemailDetection.ts new file mode 100644 index 00000000..2ef0920f --- /dev/null +++ b/src/api/resources/assistants/types/UpdateAssistantDtoVoicemailDetection.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../../../index.js"; + +/** + * These are the settings to configure or disable voicemail detection. Alternatively, voicemail detection can be configured using the model.tools=[VoicemailTool]. + * This uses Twilio's built-in detection while the VoicemailTool relies on the model to detect if a voicemail was reached. + * You can use neither of them, one of them, or both of them. By default, Twilio built-in detection is enabled while VoicemailTool is not. + */ +export type UpdateAssistantDtoVoicemailDetection = + | Vapi.GoogleVoicemailDetectionPlan + | Vapi.OpenAiVoicemailDetectionPlan + | Vapi.TwilioVoicemailDetectionPlan + | Vapi.VapiVoicemailDetectionPlan; diff --git a/src/api/resources/assistants/types/index.ts b/src/api/resources/assistants/types/index.ts new file mode 100644 index 00000000..bd103f41 --- /dev/null +++ b/src/api/resources/assistants/types/index.ts @@ -0,0 +1,11 @@ +export * from "./UpdateAssistantDtoTranscriber.js"; +export * from "./UpdateAssistantDtoModel.js"; +export * from "./UpdateAssistantDtoVoice.js"; +export * from "./UpdateAssistantDtoFirstMessageMode.js"; +export * from "./UpdateAssistantDtoVoicemailDetection.js"; +export * from "./UpdateAssistantDtoClientMessagesItem.js"; +export * from "./UpdateAssistantDtoServerMessagesItem.js"; +export * from "./UpdateAssistantDtoBackgroundSoundZero.js"; +export * from "./UpdateAssistantDtoBackgroundSound.js"; +export * from "./UpdateAssistantDtoCredentialsItem.js"; +export * from "./UpdateAssistantDtoHooksItem.js"; diff --git a/src/api/resources/calls/client/Client.ts b/src/api/resources/calls/client/Client.ts index fbbe623d..ee6591d1 100644 --- a/src/api/resources/calls/client/Client.ts +++ b/src/api/resources/calls/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Calls { baseUrl?: core.Supplier; token: core.Supplier; /** Additional headers to include in requests. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; fetcher?: core.FetchFunction; } @@ -30,7 +30,7 @@ export declare namespace Calls { /** Additional query string parameters to include in the request. */ queryParams?: Record; /** Additional headers to include in the request. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; } } diff --git a/src/api/resources/calls/types/CallControllerFindAllPaginatedRequestStructuredOutputsValue.ts b/src/api/resources/calls/types/CallControllerFindAllPaginatedRequestStructuredOutputsValue.ts new file mode 100644 index 00000000..0ca6755d --- /dev/null +++ b/src/api/resources/calls/types/CallControllerFindAllPaginatedRequestStructuredOutputsValue.ts @@ -0,0 +1,22 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface CallControllerFindAllPaginatedRequestStructuredOutputsValue { + /** Equal to */ + eq?: string; + /** Not equal to */ + neq?: string; + /** Greater than */ + gt?: string; + /** Greater than or equal to */ + gte?: string; + /** Less than */ + lt?: string; + /** Less than or equal to */ + lte?: string; + /** Contains */ + contains?: string; + /** Not contains */ + notContains?: string; +} diff --git a/src/api/resources/calls/types/index.ts b/src/api/resources/calls/types/index.ts index 6c58adba..cbd3c93c 100644 --- a/src/api/resources/calls/types/index.ts +++ b/src/api/resources/calls/types/index.ts @@ -1,2 +1,3 @@ export * from "./CallsCreateResponse.js"; +export * from "./CallControllerFindAllPaginatedRequestStructuredOutputsValue.js"; export * from "./CallControllerFindAllPaginatedRequestSortOrder.js"; diff --git a/src/api/resources/campaigns/client/Client.ts b/src/api/resources/campaigns/client/Client.ts index b9f90854..e9c44870 100644 --- a/src/api/resources/campaigns/client/Client.ts +++ b/src/api/resources/campaigns/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace Campaigns { baseUrl?: core.Supplier; token: core.Supplier; /** Additional headers to include in requests. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; fetcher?: core.FetchFunction; } @@ -29,7 +29,7 @@ export declare namespace Campaigns { /** Additional query string parameters to include in the request. */ queryParams?: Record; /** Additional headers to include in the request. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; } } diff --git a/src/api/resources/chats/client/Client.ts b/src/api/resources/chats/client/Client.ts index 78358c19..4edd0650 100644 --- a/src/api/resources/chats/client/Client.ts +++ b/src/api/resources/chats/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace Chats { baseUrl?: core.Supplier; token: core.Supplier; /** Additional headers to include in requests. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; fetcher?: core.FetchFunction; } @@ -29,7 +29,7 @@ export declare namespace Chats { /** Additional query string parameters to include in the request. */ queryParams?: Record; /** Additional headers to include in the request. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; } } diff --git a/src/api/resources/chats/client/requests/CreateChatDto.ts b/src/api/resources/chats/client/requests/CreateChatDto.ts index 0fc6f017..5a56f2bc 100644 --- a/src/api/resources/chats/client/requests/CreateChatDto.ts +++ b/src/api/resources/chats/client/requests/CreateChatDto.ts @@ -36,7 +36,7 @@ export interface CreateChatDto { * Can be a string or an array of chat messages. * This field is REQUIRED for chat creation. */ - input: CreateChatDto.Input; + input: Vapi.CreateChatDtoInput; /** * This is a flag that determines whether the response should be streamed. * When true, the response will be sent as chunks of text. @@ -56,14 +56,3 @@ export interface CreateChatDto { */ transport?: Vapi.TwilioSmsChatTransport; } - -export namespace CreateChatDto { - /** - * This is the input text for the chat. - * Can be a string or an array of chat messages. - * This field is REQUIRED for chat creation. - */ - export type Input = - | string - | (Vapi.SystemMessage | Vapi.UserMessage | Vapi.AssistantMessage | Vapi.ToolMessage | Vapi.DeveloperMessage)[]; -} diff --git a/src/api/resources/chats/client/requests/OpenAiResponsesRequest.ts b/src/api/resources/chats/client/requests/OpenAiResponsesRequest.ts index 4678ce6d..1df698c0 100644 --- a/src/api/resources/chats/client/requests/OpenAiResponsesRequest.ts +++ b/src/api/resources/chats/client/requests/OpenAiResponsesRequest.ts @@ -36,7 +36,7 @@ export interface OpenAiResponsesRequest { * Can be a string or an array of chat messages. * This field is REQUIRED for chat creation. */ - input: OpenAiResponsesRequest.Input; + input: Vapi.OpenAiResponsesRequestInput; /** Whether to stream the response or not. */ stream?: boolean; /** @@ -53,14 +53,3 @@ export interface OpenAiResponsesRequest { */ transport?: Vapi.TwilioSmsChatTransport; } - -export namespace OpenAiResponsesRequest { - /** - * This is the input text for the chat. - * Can be a string or an array of chat messages. - * This field is REQUIRED for chat creation. - */ - export type Input = - | string - | (Vapi.SystemMessage | Vapi.UserMessage | Vapi.AssistantMessage | Vapi.ToolMessage | Vapi.DeveloperMessage)[]; -} diff --git a/src/api/resources/chats/types/CreateChatDtoInput.ts b/src/api/resources/chats/types/CreateChatDtoInput.ts new file mode 100644 index 00000000..1cf027f3 --- /dev/null +++ b/src/api/resources/chats/types/CreateChatDtoInput.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../../../index.js"; + +/** + * This is the input text for the chat. + * Can be a string or an array of chat messages. + * This field is REQUIRED for chat creation. + */ +export type CreateChatDtoInput = string | Vapi.CreateChatDtoInputItem[]; diff --git a/src/api/resources/chats/types/CreateChatDtoInputItem.ts b/src/api/resources/chats/types/CreateChatDtoInputItem.ts new file mode 100644 index 00000000..89d67f41 --- /dev/null +++ b/src/api/resources/chats/types/CreateChatDtoInputItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../../../index.js"; + +export type CreateChatDtoInputItem = + | Vapi.SystemMessage + | Vapi.UserMessage + | Vapi.AssistantMessage + | Vapi.ToolMessage + | Vapi.DeveloperMessage; diff --git a/src/api/resources/chats/types/OpenAiResponsesRequestInput.ts b/src/api/resources/chats/types/OpenAiResponsesRequestInput.ts new file mode 100644 index 00000000..a093cadb --- /dev/null +++ b/src/api/resources/chats/types/OpenAiResponsesRequestInput.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../../../index.js"; + +/** + * This is the input text for the chat. + * Can be a string or an array of chat messages. + * This field is REQUIRED for chat creation. + */ +export type OpenAiResponsesRequestInput = string | Vapi.OpenAiResponsesRequestInputItem[]; diff --git a/src/api/resources/chats/types/OpenAiResponsesRequestInputItem.ts b/src/api/resources/chats/types/OpenAiResponsesRequestInputItem.ts new file mode 100644 index 00000000..fc341ce3 --- /dev/null +++ b/src/api/resources/chats/types/OpenAiResponsesRequestInputItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../../../index.js"; + +export type OpenAiResponsesRequestInputItem = + | Vapi.SystemMessage + | Vapi.UserMessage + | Vapi.AssistantMessage + | Vapi.ToolMessage + | Vapi.DeveloperMessage; diff --git a/src/api/resources/chats/types/index.ts b/src/api/resources/chats/types/index.ts index 51b58f88..9cb2518e 100644 --- a/src/api/resources/chats/types/index.ts +++ b/src/api/resources/chats/types/index.ts @@ -1,3 +1,7 @@ export * from "./ChatsListRequestSortOrder.js"; +export * from "./CreateChatDtoInputItem.js"; +export * from "./CreateChatDtoInput.js"; export * from "./ChatsCreateResponse.js"; +export * from "./OpenAiResponsesRequestInputItem.js"; +export * from "./OpenAiResponsesRequestInput.js"; export * from "./ChatsCreateResponseResponse.js"; diff --git a/src/api/resources/eval/client/Client.ts b/src/api/resources/eval/client/Client.ts index b268cd44..7e491caf 100644 --- a/src/api/resources/eval/client/Client.ts +++ b/src/api/resources/eval/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace Eval { baseUrl?: core.Supplier; token: core.Supplier; /** Additional headers to include in requests. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; fetcher?: core.FetchFunction; } @@ -29,7 +29,7 @@ export declare namespace Eval { /** Additional query string parameters to include in the request. */ queryParams?: Record; /** Additional headers to include in the request. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; } } diff --git a/src/api/resources/eval/client/requests/CreateEvalRunDto.ts b/src/api/resources/eval/client/requests/CreateEvalRunDto.ts index b75e649c..b0b4926a 100644 --- a/src/api/resources/eval/client/requests/CreateEvalRunDto.ts +++ b/src/api/resources/eval/client/requests/CreateEvalRunDto.ts @@ -16,14 +16,7 @@ export interface CreateEvalRunDto { /** This is the transient eval that will be run */ eval?: Vapi.CreateEvalDto; /** This is the target that will be run against the eval */ - target: CreateEvalRunDto.Target; + target: Vapi.CreateEvalRunDtoTarget; /** This is the id of the eval that will be run. */ evalId?: string; } - -export namespace CreateEvalRunDto { - /** - * This is the target that will be run against the eval - */ - export type Target = Vapi.EvalRunTargetAssistant | Vapi.EvalRunTargetSquad; -} diff --git a/src/api/resources/eval/client/requests/UpdateEvalDto.ts b/src/api/resources/eval/client/requests/UpdateEvalDto.ts index 7807f7ae..df024b82 100644 --- a/src/api/resources/eval/client/requests/UpdateEvalDto.ts +++ b/src/api/resources/eval/client/requests/UpdateEvalDto.ts @@ -16,7 +16,7 @@ export interface UpdateEvalDto { * * Evaluation Messages are used as checkpoints in the flow where the model's response to previous conversation needs to be evaluated to check the content and tool calls */ - messages?: UpdateEvalDto.Messages.Item[]; + messages?: Vapi.UpdateEvalDtoMessagesItem[]; /** * This is the name of the eval. * It helps identify what the eval is checking for. @@ -33,16 +33,3 @@ export interface UpdateEvalDto { */ type?: "chat.mockConversation"; } - -export namespace UpdateEvalDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ChatEvalAssistantMessageMock - | Vapi.ChatEvalSystemMessageMock - | Vapi.ChatEvalToolResponseMessageMock - | Vapi.ChatEvalUserMessageMock - | Vapi.ChatEvalAssistantMessageEvaluation; - } -} diff --git a/src/api/resources/eval/types/CreateEvalRunDtoTarget.ts b/src/api/resources/eval/types/CreateEvalRunDtoTarget.ts new file mode 100644 index 00000000..1a4119e3 --- /dev/null +++ b/src/api/resources/eval/types/CreateEvalRunDtoTarget.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../../../index.js"; + +/** + * This is the target that will be run against the eval + */ +export type CreateEvalRunDtoTarget = Vapi.EvalRunTargetAssistant | Vapi.EvalRunTargetSquad; diff --git a/src/api/resources/eval/types/UpdateEvalDtoMessagesItem.ts b/src/api/resources/eval/types/UpdateEvalDtoMessagesItem.ts new file mode 100644 index 00000000..f0b356ed --- /dev/null +++ b/src/api/resources/eval/types/UpdateEvalDtoMessagesItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../../../index.js"; + +export type UpdateEvalDtoMessagesItem = + | Vapi.ChatEvalAssistantMessageMock + | Vapi.ChatEvalSystemMessageMock + | Vapi.ChatEvalToolResponseMessageMock + | Vapi.ChatEvalUserMessageMock + | Vapi.ChatEvalAssistantMessageEvaluation; diff --git a/src/api/resources/eval/types/index.ts b/src/api/resources/eval/types/index.ts index c1281dff..c6ac48f7 100644 --- a/src/api/resources/eval/types/index.ts +++ b/src/api/resources/eval/types/index.ts @@ -1,2 +1,4 @@ export * from "./EvalControllerGetPaginatedRequestSortOrder.js"; +export * from "./UpdateEvalDtoMessagesItem.js"; export * from "./EvalControllerGetRunsPaginatedRequestSortOrder.js"; +export * from "./CreateEvalRunDtoTarget.js"; diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts index 7f5806d3..8839e262 100644 --- a/src/api/resources/files/client/Client.ts +++ b/src/api/resources/files/client/Client.ts @@ -16,7 +16,7 @@ export declare namespace Files { baseUrl?: core.Supplier; token: core.Supplier; /** Additional headers to include in requests. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; fetcher?: core.FetchFunction; } @@ -30,7 +30,7 @@ export declare namespace Files { /** Additional query string parameters to include in the request. */ queryParams?: Record; /** Additional headers to include in the request. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; } } diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts index 424d60ea..741867fb 100644 --- a/src/api/resources/index.ts +++ b/src/api/resources/index.ts @@ -1,3 +1,5 @@ +export * as assistants from "./assistants/index.js"; +export * from "./assistants/types/index.js"; export * as calls from "./calls/index.js"; export * from "./calls/types/index.js"; export * as chats from "./chats/index.js"; @@ -16,7 +18,6 @@ export * as eval from "./eval/index.js"; export * from "./eval/types/index.js"; export * as providerResources from "./providerResources/index.js"; export * from "./providerResources/types/index.js"; -export * as assistants from "./assistants/index.js"; export * as squads from "./squads/index.js"; export * as files from "./files/index.js"; export * as analytics from "./analytics/index.js"; diff --git a/src/api/resources/phoneNumbers/client/Client.ts b/src/api/resources/phoneNumbers/client/Client.ts index 9de7341d..ac4e1c22 100644 --- a/src/api/resources/phoneNumbers/client/Client.ts +++ b/src/api/resources/phoneNumbers/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace PhoneNumbers { baseUrl?: core.Supplier; token: core.Supplier; /** Additional headers to include in requests. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; fetcher?: core.FetchFunction; } @@ -29,7 +29,7 @@ export declare namespace PhoneNumbers { /** Additional query string parameters to include in the request. */ queryParams?: Record; /** Additional headers to include in the request. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; } } diff --git a/src/api/resources/providerResources/client/Client.ts b/src/api/resources/providerResources/client/Client.ts index e37c524b..84b20d23 100644 --- a/src/api/resources/providerResources/client/Client.ts +++ b/src/api/resources/providerResources/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace ProviderResources { baseUrl?: core.Supplier; token: core.Supplier; /** Additional headers to include in requests. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; fetcher?: core.FetchFunction; } @@ -29,7 +29,7 @@ export declare namespace ProviderResources { /** Additional query string parameters to include in the request. */ queryParams?: Record; /** Additional headers to include in the request. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; } } diff --git a/src/api/resources/sessions/client/Client.ts b/src/api/resources/sessions/client/Client.ts index 32f3d4ac..d6ccbc1c 100644 --- a/src/api/resources/sessions/client/Client.ts +++ b/src/api/resources/sessions/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace Sessions { baseUrl?: core.Supplier; token: core.Supplier; /** Additional headers to include in requests. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; fetcher?: core.FetchFunction; } @@ -29,7 +29,7 @@ export declare namespace Sessions { /** Additional query string parameters to include in the request. */ queryParams?: Record; /** Additional headers to include in the request. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; } } diff --git a/src/api/resources/sessions/client/requests/CreateSessionDto.ts b/src/api/resources/sessions/client/requests/CreateSessionDto.ts index 31229958..f11b6ce3 100644 --- a/src/api/resources/sessions/client/requests/CreateSessionDto.ts +++ b/src/api/resources/sessions/client/requests/CreateSessionDto.ts @@ -12,7 +12,7 @@ export interface CreateSessionDto { /** This is a user-defined name for the session. Maximum length is 40 characters. */ name?: string; /** This is the current status of the session. Can be either 'active' or 'completed'. */ - status?: CreateSessionDto.Status; + status?: Vapi.CreateSessionDtoStatus; /** Session expiration time in seconds. Defaults to 24 hours (86400 seconds) if not set. */ expirationSeconds?: number; /** This is the ID of the assistant associated with this session. Use this when referencing an existing assistant. */ @@ -30,7 +30,7 @@ export interface CreateSessionDto { */ squad?: Vapi.CreateSquadDto; /** This is an array of chat messages in the session. */ - messages?: CreateSessionDto.Messages.Item[]; + messages?: Vapi.CreateSessionDtoMessagesItem[]; /** This is the customer information associated with this session. */ customer?: Vapi.CreateCustomerDto; /** This is the ID of the phone number associated with this session. */ @@ -38,24 +38,3 @@ export interface CreateSessionDto { /** This is the phone number configuration for this session. */ phoneNumber?: Vapi.ImportTwilioPhoneNumberDto; } - -export namespace CreateSessionDto { - /** - * This is the current status of the session. Can be either 'active' or 'completed'. - */ - export type Status = "active" | "completed"; - export const Status = { - Active: "active", - Completed: "completed", - } as const; - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.SystemMessage - | Vapi.UserMessage - | Vapi.AssistantMessage - | Vapi.ToolMessage - | Vapi.DeveloperMessage; - } -} diff --git a/src/api/resources/sessions/client/requests/UpdateSessionDto.ts b/src/api/resources/sessions/client/requests/UpdateSessionDto.ts index 03678875..7a5121b3 100644 --- a/src/api/resources/sessions/client/requests/UpdateSessionDto.ts +++ b/src/api/resources/sessions/client/requests/UpdateSessionDto.ts @@ -12,30 +12,9 @@ export interface UpdateSessionDto { /** This is the new name for the session. Maximum length is 40 characters. */ name?: string; /** This is the new status for the session. */ - status?: UpdateSessionDto.Status; + status?: Vapi.UpdateSessionDtoStatus; /** Session expiration time in seconds. Defaults to 24 hours (86400 seconds) if not set. */ expirationSeconds?: number; /** This is the updated array of chat messages. */ - messages?: UpdateSessionDto.Messages.Item[]; -} - -export namespace UpdateSessionDto { - /** - * This is the new status for the session. - */ - export type Status = "active" | "completed"; - export const Status = { - Active: "active", - Completed: "completed", - } as const; - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.SystemMessage - | Vapi.UserMessage - | Vapi.AssistantMessage - | Vapi.ToolMessage - | Vapi.DeveloperMessage; - } + messages?: Vapi.UpdateSessionDtoMessagesItem[]; } diff --git a/src/api/resources/sessions/types/CreateSessionDtoMessagesItem.ts b/src/api/resources/sessions/types/CreateSessionDtoMessagesItem.ts new file mode 100644 index 00000000..3c52cbf2 --- /dev/null +++ b/src/api/resources/sessions/types/CreateSessionDtoMessagesItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../../../index.js"; + +export type CreateSessionDtoMessagesItem = + | Vapi.SystemMessage + | Vapi.UserMessage + | Vapi.AssistantMessage + | Vapi.ToolMessage + | Vapi.DeveloperMessage; diff --git a/src/api/resources/sessions/types/CreateSessionDtoStatus.ts b/src/api/resources/sessions/types/CreateSessionDtoStatus.ts new file mode 100644 index 00000000..a7950b98 --- /dev/null +++ b/src/api/resources/sessions/types/CreateSessionDtoStatus.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the current status of the session. Can be either 'active' or 'completed'. + */ +export type CreateSessionDtoStatus = "active" | "completed"; +export const CreateSessionDtoStatus = { + Active: "active", + Completed: "completed", +} as const; diff --git a/src/api/resources/sessions/types/UpdateSessionDtoMessagesItem.ts b/src/api/resources/sessions/types/UpdateSessionDtoMessagesItem.ts new file mode 100644 index 00000000..89b2045e --- /dev/null +++ b/src/api/resources/sessions/types/UpdateSessionDtoMessagesItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../../../index.js"; + +export type UpdateSessionDtoMessagesItem = + | Vapi.SystemMessage + | Vapi.UserMessage + | Vapi.AssistantMessage + | Vapi.ToolMessage + | Vapi.DeveloperMessage; diff --git a/src/api/resources/sessions/types/UpdateSessionDtoStatus.ts b/src/api/resources/sessions/types/UpdateSessionDtoStatus.ts new file mode 100644 index 00000000..064ab2cf --- /dev/null +++ b/src/api/resources/sessions/types/UpdateSessionDtoStatus.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the new status for the session. + */ +export type UpdateSessionDtoStatus = "active" | "completed"; +export const UpdateSessionDtoStatus = { + Active: "active", + Completed: "completed", +} as const; diff --git a/src/api/resources/sessions/types/index.ts b/src/api/resources/sessions/types/index.ts index 6e895215..a14f8866 100644 --- a/src/api/resources/sessions/types/index.ts +++ b/src/api/resources/sessions/types/index.ts @@ -1 +1,5 @@ export * from "./SessionsListRequestSortOrder.js"; +export * from "./CreateSessionDtoStatus.js"; +export * from "./CreateSessionDtoMessagesItem.js"; +export * from "./UpdateSessionDtoStatus.js"; +export * from "./UpdateSessionDtoMessagesItem.js"; diff --git a/src/api/resources/squads/client/Client.ts b/src/api/resources/squads/client/Client.ts index 9b006c8e..b1ef1c0b 100644 --- a/src/api/resources/squads/client/Client.ts +++ b/src/api/resources/squads/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace Squads { baseUrl?: core.Supplier; token: core.Supplier; /** Additional headers to include in requests. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; fetcher?: core.FetchFunction; } @@ -29,7 +29,7 @@ export declare namespace Squads { /** Additional query string parameters to include in the request. */ queryParams?: Record; /** Additional headers to include in the request. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; } } diff --git a/src/api/resources/structuredOutputs/client/Client.ts b/src/api/resources/structuredOutputs/client/Client.ts index a0b9f5ff..78370bcc 100644 --- a/src/api/resources/structuredOutputs/client/Client.ts +++ b/src/api/resources/structuredOutputs/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace StructuredOutputs { baseUrl?: core.Supplier; token: core.Supplier; /** Additional headers to include in requests. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; fetcher?: core.FetchFunction; } @@ -29,7 +29,7 @@ export declare namespace StructuredOutputs { /** Additional query string parameters to include in the request. */ queryParams?: Record; /** Additional headers to include in the request. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; } } diff --git a/src/api/resources/structuredOutputs/client/requests/CreateStructuredOutputDto.ts b/src/api/resources/structuredOutputs/client/requests/CreateStructuredOutputDto.ts index 718f3670..01201afc 100644 --- a/src/api/resources/structuredOutputs/client/requests/CreateStructuredOutputDto.ts +++ b/src/api/resources/structuredOutputs/client/requests/CreateStructuredOutputDto.ts @@ -29,7 +29,7 @@ export interface CreateStructuredOutputDto { * If model is not specified, GPT-4.1 will be used by default for extraction, utilizing default system and user prompts. * If messages or required fields are not specified, the default system and user prompts will be used. */ - model?: CreateStructuredOutputDto.Model; + model?: Vapi.CreateStructuredOutputDtoModel; /** This is the name of the structured output. */ name: string; /** @@ -63,26 +63,3 @@ export interface CreateStructuredOutputDto { */ workflowIds?: string[]; } - -export namespace CreateStructuredOutputDto { - /** - * This is the model that will be used to extract the structured output. - * - * To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - * Between the system or user messages, you must reference either 'transcript' or 'messages' with the '{{}}' syntax to access the conversation history. - * Between the system or user messages, you must reference a variation of the structured output with the '{{}}' syntax to access the structured output definition. - * i.e.: - * {{structuredOutput}} - * {{structuredOutput.name}} - * {{structuredOutput.description}} - * {{structuredOutput.schema}} - * - * If model is not specified, GPT-4.1 will be used by default for extraction, utilizing default system and user prompts. - * If messages or required fields are not specified, the default system and user prompts will be used. - */ - export type Model = - | Vapi.WorkflowOpenAiModel - | Vapi.WorkflowAnthropicModel - | Vapi.WorkflowGoogleModel - | Vapi.WorkflowCustomModel; -} diff --git a/src/api/resources/structuredOutputs/client/requests/UpdateStructuredOutputDto.ts b/src/api/resources/structuredOutputs/client/requests/UpdateStructuredOutputDto.ts index 7602dfca..fd4ee6c6 100644 --- a/src/api/resources/structuredOutputs/client/requests/UpdateStructuredOutputDto.ts +++ b/src/api/resources/structuredOutputs/client/requests/UpdateStructuredOutputDto.ts @@ -27,7 +27,7 @@ export interface UpdateStructuredOutputDto { * If model is not specified, GPT-4.1 will be used by default for extraction, utilizing default system and user prompts. * If messages or required fields are not specified, the default system and user prompts will be used. */ - model?: UpdateStructuredOutputDto.Model; + model?: Vapi.UpdateStructuredOutputDtoModel; /** This is the name of the structured output. */ name?: string; /** @@ -61,26 +61,3 @@ export interface UpdateStructuredOutputDto { */ schema?: Vapi.JsonSchema; } - -export namespace UpdateStructuredOutputDto { - /** - * This is the model that will be used to extract the structured output. - * - * To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - * Between the system or user messages, you must reference either 'transcript' or 'messages' with the '{{}}' syntax to access the conversation history. - * Between the system or user messages, you must reference a variation of the structured output with the '{{}}' syntax to access the structured output definition. - * i.e.: - * {{structuredOutput}} - * {{structuredOutput.name}} - * {{structuredOutput.description}} - * {{structuredOutput.schema}} - * - * If model is not specified, GPT-4.1 will be used by default for extraction, utilizing default system and user prompts. - * If messages or required fields are not specified, the default system and user prompts will be used. - */ - export type Model = - | Vapi.WorkflowOpenAiModel - | Vapi.WorkflowAnthropicModel - | Vapi.WorkflowGoogleModel - | Vapi.WorkflowCustomModel; -} diff --git a/src/api/resources/structuredOutputs/types/CreateStructuredOutputDtoModel.ts b/src/api/resources/structuredOutputs/types/CreateStructuredOutputDtoModel.ts new file mode 100644 index 00000000..52cec2a9 --- /dev/null +++ b/src/api/resources/structuredOutputs/types/CreateStructuredOutputDtoModel.ts @@ -0,0 +1,26 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../../../index.js"; + +/** + * This is the model that will be used to extract the structured output. + * + * To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. + * Between the system or user messages, you must reference either 'transcript' or 'messages' with the '{{}}' syntax to access the conversation history. + * Between the system or user messages, you must reference a variation of the structured output with the '{{}}' syntax to access the structured output definition. + * i.e.: + * {{structuredOutput}} + * {{structuredOutput.name}} + * {{structuredOutput.description}} + * {{structuredOutput.schema}} + * + * If model is not specified, GPT-4.1 will be used by default for extraction, utilizing default system and user prompts. + * If messages or required fields are not specified, the default system and user prompts will be used. + */ +export type CreateStructuredOutputDtoModel = + | Vapi.WorkflowOpenAiModel + | Vapi.WorkflowAnthropicModel + | Vapi.WorkflowGoogleModel + | Vapi.WorkflowCustomModel; diff --git a/src/api/resources/structuredOutputs/types/UpdateStructuredOutputDtoModel.ts b/src/api/resources/structuredOutputs/types/UpdateStructuredOutputDtoModel.ts new file mode 100644 index 00000000..bd724ad1 --- /dev/null +++ b/src/api/resources/structuredOutputs/types/UpdateStructuredOutputDtoModel.ts @@ -0,0 +1,26 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../../../index.js"; + +/** + * This is the model that will be used to extract the structured output. + * + * To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. + * Between the system or user messages, you must reference either 'transcript' or 'messages' with the '{{}}' syntax to access the conversation history. + * Between the system or user messages, you must reference a variation of the structured output with the '{{}}' syntax to access the structured output definition. + * i.e.: + * {{structuredOutput}} + * {{structuredOutput.name}} + * {{structuredOutput.description}} + * {{structuredOutput.schema}} + * + * If model is not specified, GPT-4.1 will be used by default for extraction, utilizing default system and user prompts. + * If messages or required fields are not specified, the default system and user prompts will be used. + */ +export type UpdateStructuredOutputDtoModel = + | Vapi.WorkflowOpenAiModel + | Vapi.WorkflowAnthropicModel + | Vapi.WorkflowGoogleModel + | Vapi.WorkflowCustomModel; diff --git a/src/api/resources/structuredOutputs/types/index.ts b/src/api/resources/structuredOutputs/types/index.ts index 14b85cc4..14028a45 100644 --- a/src/api/resources/structuredOutputs/types/index.ts +++ b/src/api/resources/structuredOutputs/types/index.ts @@ -1 +1,3 @@ export * from "./StructuredOutputControllerFindAllRequestSortOrder.js"; +export * from "./CreateStructuredOutputDtoModel.js"; +export * from "./UpdateStructuredOutputDtoModel.js"; diff --git a/src/api/resources/tools/client/Client.ts b/src/api/resources/tools/client/Client.ts index 1365f725..6dce218a 100644 --- a/src/api/resources/tools/client/Client.ts +++ b/src/api/resources/tools/client/Client.ts @@ -15,7 +15,7 @@ export declare namespace Tools { baseUrl?: core.Supplier; token: core.Supplier; /** Additional headers to include in requests. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; fetcher?: core.FetchFunction; } @@ -29,7 +29,7 @@ export declare namespace Tools { /** Additional query string parameters to include in the request. */ queryParams?: Record; /** Additional headers to include in the request. */ - headers?: Record | undefined>; + headers?: Record | null | undefined>; } } diff --git a/src/api/types/AnalysisCost.ts b/src/api/types/AnalysisCost.ts index ba6657f8..9526a52e 100644 --- a/src/api/types/AnalysisCost.ts +++ b/src/api/types/AnalysisCost.ts @@ -2,11 +2,13 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface AnalysisCost { /** This is the type of cost, always 'analysis' for this class. */ type: "analysis"; /** This is the type of analysis performed. */ - analysisType: AnalysisCost.AnalysisType; + analysisType: Vapi.AnalysisCostAnalysisType; /** This is the model that was used to perform the analysis. */ model: Record; /** This is the number of prompt tokens used in the analysis. */ @@ -16,16 +18,3 @@ export interface AnalysisCost { /** This is the cost of the component in USD. */ cost: number; } - -export namespace AnalysisCost { - /** - * This is the type of analysis performed. - */ - export type AnalysisType = "summary" | "structuredData" | "successEvaluation" | "structuredOutput"; - export const AnalysisType = { - Summary: "summary", - StructuredData: "structuredData", - SuccessEvaluation: "successEvaluation", - StructuredOutput: "structuredOutput", - } as const; -} diff --git a/src/api/types/AnalysisCostAnalysisType.ts b/src/api/types/AnalysisCostAnalysisType.ts new file mode 100644 index 00000000..7d4e94b6 --- /dev/null +++ b/src/api/types/AnalysisCostAnalysisType.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the type of analysis performed. + */ +export type AnalysisCostAnalysisType = "summary" | "structuredData" | "successEvaluation" | "structuredOutput"; +export const AnalysisCostAnalysisType = { + Summary: "summary", + StructuredData: "structuredData", + SuccessEvaluation: "successEvaluation", + StructuredOutput: "structuredOutput", +} as const; diff --git a/src/api/types/AnalyticsOperation.ts b/src/api/types/AnalyticsOperation.ts index 5b376989..d3c62c2e 100644 --- a/src/api/types/AnalyticsOperation.ts +++ b/src/api/types/AnalyticsOperation.ts @@ -2,62 +2,13 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface AnalyticsOperation { /** This is the aggregation operation you want to perform. */ - operation: AnalyticsOperation.Operation; + operation: Vapi.AnalyticsOperationOperation; /** This is the columns you want to perform the aggregation operation on. */ - column: AnalyticsOperation.Column; + column: Vapi.AnalyticsOperationColumn; /** This is the alias for column name returned. Defaults to `${operation}${column}`. */ alias?: string; } - -export namespace AnalyticsOperation { - /** - * This is the aggregation operation you want to perform. - */ - export type Operation = "sum" | "avg" | "count" | "min" | "max" | "history"; - export const Operation = { - Sum: "sum", - Avg: "avg", - Count: "count", - Min: "min", - Max: "max", - History: "history", - } as const; - /** - * This is the columns you want to perform the aggregation operation on. - */ - export type Column = - | "id" - | "cost" - | "costBreakdown.llm" - | "costBreakdown.stt" - | "costBreakdown.tts" - | "costBreakdown.vapi" - | "costBreakdown.transport" - | "costBreakdown.analysisBreakdown.summary" - | "costBreakdown.transcriber" - | "costBreakdown.ttsCharacters" - | "costBreakdown.llmPromptTokens" - | "costBreakdown.llmCompletionTokens" - | "duration" - | "concurrency" - | "minutesUsed"; - export const Column = { - Id: "id", - Cost: "cost", - CostBreakdownLlm: "costBreakdown.llm", - CostBreakdownStt: "costBreakdown.stt", - CostBreakdownTts: "costBreakdown.tts", - CostBreakdownVapi: "costBreakdown.vapi", - CostBreakdownTransport: "costBreakdown.transport", - CostBreakdownAnalysisBreakdownSummary: "costBreakdown.analysisBreakdown.summary", - CostBreakdownTranscriber: "costBreakdown.transcriber", - CostBreakdownTtsCharacters: "costBreakdown.ttsCharacters", - CostBreakdownLlmPromptTokens: "costBreakdown.llmPromptTokens", - CostBreakdownLlmCompletionTokens: "costBreakdown.llmCompletionTokens", - Duration: "duration", - Concurrency: "concurrency", - MinutesUsed: "minutesUsed", - } as const; -} diff --git a/src/api/types/AnalyticsOperationColumn.ts b/src/api/types/AnalyticsOperationColumn.ts new file mode 100644 index 00000000..6181dd74 --- /dev/null +++ b/src/api/types/AnalyticsOperationColumn.ts @@ -0,0 +1,40 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the columns you want to perform the aggregation operation on. + */ +export type AnalyticsOperationColumn = + | "id" + | "cost" + | "costBreakdown.llm" + | "costBreakdown.stt" + | "costBreakdown.tts" + | "costBreakdown.vapi" + | "costBreakdown.transport" + | "costBreakdown.analysisBreakdown.summary" + | "costBreakdown.transcriber" + | "costBreakdown.ttsCharacters" + | "costBreakdown.llmPromptTokens" + | "costBreakdown.llmCompletionTokens" + | "duration" + | "concurrency" + | "minutesUsed"; +export const AnalyticsOperationColumn = { + Id: "id", + Cost: "cost", + CostBreakdownLlm: "costBreakdown.llm", + CostBreakdownStt: "costBreakdown.stt", + CostBreakdownTts: "costBreakdown.tts", + CostBreakdownVapi: "costBreakdown.vapi", + CostBreakdownTransport: "costBreakdown.transport", + CostBreakdownAnalysisBreakdownSummary: "costBreakdown.analysisBreakdown.summary", + CostBreakdownTranscriber: "costBreakdown.transcriber", + CostBreakdownTtsCharacters: "costBreakdown.ttsCharacters", + CostBreakdownLlmPromptTokens: "costBreakdown.llmPromptTokens", + CostBreakdownLlmCompletionTokens: "costBreakdown.llmCompletionTokens", + Duration: "duration", + Concurrency: "concurrency", + MinutesUsed: "minutesUsed", +} as const; diff --git a/src/api/types/AnalyticsOperationOperation.ts b/src/api/types/AnalyticsOperationOperation.ts new file mode 100644 index 00000000..d27cc64b --- /dev/null +++ b/src/api/types/AnalyticsOperationOperation.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the aggregation operation you want to perform. + */ +export type AnalyticsOperationOperation = "sum" | "avg" | "count" | "min" | "max" | "history"; +export const AnalyticsOperationOperation = { + Sum: "sum", + Avg: "avg", + Count: "count", + Min: "min", + Max: "max", + History: "history", +} as const; diff --git a/src/api/types/AnalyticsQuery.ts b/src/api/types/AnalyticsQuery.ts index 30a24202..6d6c8484 100644 --- a/src/api/types/AnalyticsQuery.ts +++ b/src/api/types/AnalyticsQuery.ts @@ -6,9 +6,9 @@ import * as Vapi from "../index.js"; export interface AnalyticsQuery { /** This is the table you want to query. */ - table: AnalyticsQuery.Table; + table: Vapi.AnalyticsQueryTable; /** This is the list of columns you want to group by. */ - groupBy?: AnalyticsQuery.GroupBy.Item[]; + groupBy?: Vapi.AnalyticsQueryGroupByItem[]; /** This is the list of variable value keys you want to group by. */ groupByVariableValue?: Vapi.VariableValueGroupBy[]; /** This is the name of the query. This will be used to identify the query in the response. */ @@ -18,26 +18,3 @@ export interface AnalyticsQuery { /** This is the list of operations you want to perform. */ operations: Vapi.AnalyticsOperation[]; } - -export namespace AnalyticsQuery { - /** - * This is the table you want to query. - */ - export type Table = "call" | "subscription"; - export const Table = { - Call: "call", - Subscription: "subscription", - } as const; - export type GroupBy = GroupBy.Item[]; - - export namespace GroupBy { - export type Item = "type" | "assistantId" | "endedReason" | "analysis.successEvaluation" | "status"; - export const Item = { - Type: "type", - AssistantId: "assistantId", - EndedReason: "endedReason", - AnalysisSuccessEvaluation: "analysis.successEvaluation", - Status: "status", - } as const; - } -} diff --git a/src/api/types/AnalyticsQueryGroupByItem.ts b/src/api/types/AnalyticsQueryGroupByItem.ts new file mode 100644 index 00000000..80f50ae3 --- /dev/null +++ b/src/api/types/AnalyticsQueryGroupByItem.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type AnalyticsQueryGroupByItem = + | "type" + | "assistantId" + | "endedReason" + | "analysis.successEvaluation" + | "status"; +export const AnalyticsQueryGroupByItem = { + Type: "type", + AssistantId: "assistantId", + EndedReason: "endedReason", + AnalysisSuccessEvaluation: "analysis.successEvaluation", + Status: "status", +} as const; diff --git a/src/api/types/AnalyticsQueryTable.ts b/src/api/types/AnalyticsQueryTable.ts new file mode 100644 index 00000000..0df39327 --- /dev/null +++ b/src/api/types/AnalyticsQueryTable.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the table you want to query. + */ +export type AnalyticsQueryTable = "call" | "subscription"; +export const AnalyticsQueryTable = { + Call: "call", + Subscription: "subscription", +} as const; diff --git a/src/api/types/AnthropicModel.ts b/src/api/types/AnthropicModel.ts index 9b2dfeea..a4f0b0fc 100644 --- a/src/api/types/AnthropicModel.ts +++ b/src/api/types/AnthropicModel.ts @@ -12,7 +12,7 @@ export interface AnthropicModel { * * Both `tools` and `toolIds` can be used together. */ - tools?: AnthropicModel.Tools.Item[]; + tools?: Vapi.AnthropicModelToolsItem[]; /** * These are the tools that the assistant can use during the call. To use transient tools, use `tools`. * @@ -22,7 +22,7 @@ export interface AnthropicModel { /** These are the options for the knowledge base. */ knowledgeBase?: Vapi.CreateCustomKnowledgeBaseDto; /** The specific Anthropic/Claude model that will be used. */ - model: AnthropicModel.Model; + model: Vapi.AnthropicModelModel; /** The provider identifier for Anthropic. */ provider: "anthropic"; /** @@ -52,60 +52,3 @@ export interface AnthropicModel { */ numFastTurns?: number; } - -export namespace AnthropicModel { - export type Tools = Tools.Item[]; - - export namespace Tools { - export type Item = - | Vapi.CreateApiRequestToolDto - | Vapi.CreateBashToolDto - | Vapi.CreateComputerToolDto - | Vapi.CreateDtmfToolDto - | Vapi.CreateEndCallToolDto - | Vapi.CreateFunctionToolDto - | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto - | Vapi.CreateGoHighLevelCalendarEventCreateToolDto - | Vapi.CreateGoHighLevelContactCreateToolDto - | Vapi.CreateGoHighLevelContactGetToolDto - | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto - | Vapi.CreateGoogleCalendarCreateEventToolDto - | Vapi.CreateGoogleSheetsRowAppendToolDto - | Vapi.CreateHandoffToolDto - | Vapi.CreateMcpToolDto - | Vapi.CreateQueryToolDto - | Vapi.CreateSlackSendMessageToolDto - | Vapi.CreateSmsToolDto - | Vapi.CreateTextEditorToolDto - | Vapi.CreateTransferCallToolDto; - } - - /** - * The specific Anthropic/Claude model that will be used. - */ - export type Model = - | "claude-3-opus-20240229" - | "claude-3-sonnet-20240229" - | "claude-3-haiku-20240307" - | "claude-3-5-sonnet-20240620" - | "claude-3-5-sonnet-20241022" - | "claude-3-5-haiku-20241022" - | "claude-3-7-sonnet-20250219" - | "claude-opus-4-20250514" - | "claude-sonnet-4-20250514" - | "claude-sonnet-4-5-20250929" - | "claude-haiku-4-5-20251001"; - export const Model = { - Claude3Opus20240229: "claude-3-opus-20240229", - Claude3Sonnet20240229: "claude-3-sonnet-20240229", - Claude3Haiku20240307: "claude-3-haiku-20240307", - Claude35Sonnet20240620: "claude-3-5-sonnet-20240620", - Claude35Sonnet20241022: "claude-3-5-sonnet-20241022", - Claude35Haiku20241022: "claude-3-5-haiku-20241022", - Claude37Sonnet20250219: "claude-3-7-sonnet-20250219", - ClaudeOpus420250514: "claude-opus-4-20250514", - ClaudeSonnet420250514: "claude-sonnet-4-20250514", - ClaudeSonnet4520250929: "claude-sonnet-4-5-20250929", - ClaudeHaiku4520251001: "claude-haiku-4-5-20251001", - } as const; -} diff --git a/src/api/types/AnthropicModelModel.ts b/src/api/types/AnthropicModelModel.ts new file mode 100644 index 00000000..8ab1ab38 --- /dev/null +++ b/src/api/types/AnthropicModelModel.ts @@ -0,0 +1,32 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * The specific Anthropic/Claude model that will be used. + */ +export type AnthropicModelModel = + | "claude-3-opus-20240229" + | "claude-3-sonnet-20240229" + | "claude-3-haiku-20240307" + | "claude-3-5-sonnet-20240620" + | "claude-3-5-sonnet-20241022" + | "claude-3-5-haiku-20241022" + | "claude-3-7-sonnet-20250219" + | "claude-opus-4-20250514" + | "claude-sonnet-4-20250514" + | "claude-sonnet-4-5-20250929" + | "claude-haiku-4-5-20251001"; +export const AnthropicModelModel = { + Claude3Opus20240229: "claude-3-opus-20240229", + Claude3Sonnet20240229: "claude-3-sonnet-20240229", + Claude3Haiku20240307: "claude-3-haiku-20240307", + Claude35Sonnet20240620: "claude-3-5-sonnet-20240620", + Claude35Sonnet20241022: "claude-3-5-sonnet-20241022", + Claude35Haiku20241022: "claude-3-5-haiku-20241022", + Claude37Sonnet20250219: "claude-3-7-sonnet-20250219", + ClaudeOpus420250514: "claude-opus-4-20250514", + ClaudeSonnet420250514: "claude-sonnet-4-20250514", + ClaudeSonnet4520250929: "claude-sonnet-4-5-20250929", + ClaudeHaiku4520251001: "claude-haiku-4-5-20251001", +} as const; diff --git a/src/api/types/AnthropicModelToolsItem.ts b/src/api/types/AnthropicModelToolsItem.ts new file mode 100644 index 00000000..c585ce36 --- /dev/null +++ b/src/api/types/AnthropicModelToolsItem.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type AnthropicModelToolsItem = + | Vapi.CreateApiRequestToolDto + | Vapi.CreateBashToolDto + | Vapi.CreateComputerToolDto + | Vapi.CreateDtmfToolDto + | Vapi.CreateEndCallToolDto + | Vapi.CreateFunctionToolDto + | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto + | Vapi.CreateGoHighLevelCalendarEventCreateToolDto + | Vapi.CreateGoHighLevelContactCreateToolDto + | Vapi.CreateGoHighLevelContactGetToolDto + | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto + | Vapi.CreateGoogleCalendarCreateEventToolDto + | Vapi.CreateGoogleSheetsRowAppendToolDto + | Vapi.CreateHandoffToolDto + | Vapi.CreateMcpToolDto + | Vapi.CreateQueryToolDto + | Vapi.CreateSlackSendMessageToolDto + | Vapi.CreateSmsToolDto + | Vapi.CreateTextEditorToolDto + | Vapi.CreateTransferCallToolDto; diff --git a/src/api/types/AnyscaleModel.ts b/src/api/types/AnyscaleModel.ts index fe953ca5..8f2c97f1 100644 --- a/src/api/types/AnyscaleModel.ts +++ b/src/api/types/AnyscaleModel.ts @@ -12,7 +12,7 @@ export interface AnyscaleModel { * * Both `tools` and `toolIds` can be used together. */ - tools?: AnyscaleModel.Tools.Item[]; + tools?: Vapi.AnyscaleModelToolsItem[]; /** * These are the tools that the assistant can use during the call. To use transient tools, use `tools`. * @@ -45,31 +45,3 @@ export interface AnyscaleModel { */ numFastTurns?: number; } - -export namespace AnyscaleModel { - export type Tools = Tools.Item[]; - - export namespace Tools { - export type Item = - | Vapi.CreateApiRequestToolDto - | Vapi.CreateBashToolDto - | Vapi.CreateComputerToolDto - | Vapi.CreateDtmfToolDto - | Vapi.CreateEndCallToolDto - | Vapi.CreateFunctionToolDto - | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto - | Vapi.CreateGoHighLevelCalendarEventCreateToolDto - | Vapi.CreateGoHighLevelContactCreateToolDto - | Vapi.CreateGoHighLevelContactGetToolDto - | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto - | Vapi.CreateGoogleCalendarCreateEventToolDto - | Vapi.CreateGoogleSheetsRowAppendToolDto - | Vapi.CreateHandoffToolDto - | Vapi.CreateMcpToolDto - | Vapi.CreateQueryToolDto - | Vapi.CreateSlackSendMessageToolDto - | Vapi.CreateSmsToolDto - | Vapi.CreateTextEditorToolDto - | Vapi.CreateTransferCallToolDto; - } -} diff --git a/src/api/types/AnyscaleModelToolsItem.ts b/src/api/types/AnyscaleModelToolsItem.ts new file mode 100644 index 00000000..a3a81aa0 --- /dev/null +++ b/src/api/types/AnyscaleModelToolsItem.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type AnyscaleModelToolsItem = + | Vapi.CreateApiRequestToolDto + | Vapi.CreateBashToolDto + | Vapi.CreateComputerToolDto + | Vapi.CreateDtmfToolDto + | Vapi.CreateEndCallToolDto + | Vapi.CreateFunctionToolDto + | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto + | Vapi.CreateGoHighLevelCalendarEventCreateToolDto + | Vapi.CreateGoHighLevelContactCreateToolDto + | Vapi.CreateGoHighLevelContactGetToolDto + | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto + | Vapi.CreateGoogleCalendarCreateEventToolDto + | Vapi.CreateGoogleSheetsRowAppendToolDto + | Vapi.CreateHandoffToolDto + | Vapi.CreateMcpToolDto + | Vapi.CreateQueryToolDto + | Vapi.CreateSlackSendMessageToolDto + | Vapi.CreateSmsToolDto + | Vapi.CreateTextEditorToolDto + | Vapi.CreateTransferCallToolDto; diff --git a/src/api/types/ApiRequestTool.ts b/src/api/types/ApiRequestTool.ts index bad81959..65bf08b0 100644 --- a/src/api/types/ApiRequestTool.ts +++ b/src/api/types/ApiRequestTool.ts @@ -10,9 +10,9 @@ export interface ApiRequestTool { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: ApiRequestTool.Messages.Item[]; + messages?: Vapi.ApiRequestToolMessagesItem[]; type: "apiRequest"; - method: ApiRequestTool.Method; + method: Vapi.ApiRequestToolMethod; /** * This is the timeout in seconds for the request. Defaults to 20 seconds. * @@ -287,24 +287,3 @@ export interface ApiRequestTool { */ variableExtractionPlan?: Vapi.VariableExtractionPlan; } - -export namespace ApiRequestTool { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } - - export type Method = "POST" | "GET" | "PUT" | "PATCH" | "DELETE"; - export const Method = { - Post: "POST", - Get: "GET", - Put: "PUT", - Patch: "PATCH", - Delete: "DELETE", - } as const; -} diff --git a/src/api/types/ApiRequestToolMessagesItem.ts b/src/api/types/ApiRequestToolMessagesItem.ts new file mode 100644 index 00000000..04dd6f16 --- /dev/null +++ b/src/api/types/ApiRequestToolMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type ApiRequestToolMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/ApiRequestToolMethod.ts b/src/api/types/ApiRequestToolMethod.ts new file mode 100644 index 00000000..0cf18d5e --- /dev/null +++ b/src/api/types/ApiRequestToolMethod.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type ApiRequestToolMethod = "POST" | "GET" | "PUT" | "PATCH" | "DELETE"; +export const ApiRequestToolMethod = { + Post: "POST", + Get: "GET", + Put: "PUT", + Patch: "PATCH", + Delete: "DELETE", +} as const; diff --git a/src/api/types/Artifact.ts b/src/api/types/Artifact.ts index fd3e9dac..e631d338 100644 --- a/src/api/types/Artifact.ts +++ b/src/api/types/Artifact.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface Artifact { /** These are the messages that were spoken during the call. */ - messages?: Artifact.Messages.Item[]; + messages?: Vapi.ArtifactMessagesItem[]; /** These are the messages that were spoken during the call, formatted for OpenAI. */ messagesOpenAIFormatted?: Vapi.OpenAiMessage[]; /** This is the recording url for the call. To enable, set `assistant.artifactPlan.recordingEnabled`. */ @@ -39,16 +39,3 @@ export interface Artifact { /** These are the transfer records from warm transfers, including destinations, transcripts, and status. */ transfers?: string[]; } - -export namespace Artifact { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.UserMessage - | Vapi.SystemMessage - | Vapi.BotMessage - | Vapi.ToolCallMessage - | Vapi.ToolCallResultMessage; - } -} diff --git a/src/api/types/ArtifactMessagesItem.ts b/src/api/types/ArtifactMessagesItem.ts new file mode 100644 index 00000000..3bb36914 --- /dev/null +++ b/src/api/types/ArtifactMessagesItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type ArtifactMessagesItem = + | Vapi.UserMessage + | Vapi.SystemMessage + | Vapi.BotMessage + | Vapi.ToolCallMessage + | Vapi.ToolCallResultMessage; diff --git a/src/api/types/ArtifactPlan.ts b/src/api/types/ArtifactPlan.ts index 913136a4..3295bfdd 100644 --- a/src/api/types/ArtifactPlan.ts +++ b/src/api/types/ArtifactPlan.ts @@ -22,7 +22,7 @@ export interface ArtifactPlan { * * @default 'wav;l16' */ - recordingFormat?: ArtifactPlan.RecordingFormat; + recordingFormat?: Vapi.ArtifactPlanRecordingFormat; /** * This determines whether to use custom storage (S3 or GCP) for call recordings when storage credentials are configured. * @@ -127,16 +127,3 @@ export interface ArtifactPlan { */ loggingPath?: string; } - -export namespace ArtifactPlan { - /** - * This determines the format of the recording. Defaults to `wav;l16`. - * - * @default 'wav;l16' - */ - export type RecordingFormat = "wav;l16" | "mp3"; - export const RecordingFormat = { - WavL16: "wav;l16", - Mp3: "mp3", - } as const; -} diff --git a/src/api/types/ArtifactPlanRecordingFormat.ts b/src/api/types/ArtifactPlanRecordingFormat.ts new file mode 100644 index 00000000..a68123f4 --- /dev/null +++ b/src/api/types/ArtifactPlanRecordingFormat.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This determines the format of the recording. Defaults to `wav;l16`. + * + * @default 'wav;l16' + */ +export type ArtifactPlanRecordingFormat = "wav;l16" | "mp3"; +export const ArtifactPlanRecordingFormat = { + WavL16: "wav;l16", + Mp3: "mp3", +} as const; diff --git a/src/api/types/Assistant.ts b/src/api/types/Assistant.ts index d109f1c3..379e8376 100644 --- a/src/api/types/Assistant.ts +++ b/src/api/types/Assistant.ts @@ -6,11 +6,11 @@ import * as Vapi from "../index.js"; export interface Assistant { /** These are the options for the assistant's transcriber. */ - transcriber?: Assistant.Transcriber; + transcriber?: Vapi.AssistantTranscriber; /** These are the options for the assistant's LLM. */ - model?: Assistant.Model; + model?: Vapi.AssistantModel; /** These are the options for the assistant's voice. */ - voice?: Assistant.Voice; + voice?: Vapi.AssistantVoice; /** * This is the first message that the assistant will say. This can also be a URL to a containerized audio file (mp3, wav, etc.). * @@ -28,17 +28,17 @@ export interface Assistant { * * @default 'assistant-speaks-first' */ - firstMessageMode?: Assistant.FirstMessageMode; + firstMessageMode?: Vapi.AssistantFirstMessageMode; /** * These are the settings to configure or disable voicemail detection. Alternatively, voicemail detection can be configured using the model.tools=[VoicemailTool]. * This uses Twilio's built-in detection while the VoicemailTool relies on the model to detect if a voicemail was reached. * You can use neither of them, one of them, or both of them. By default, Twilio built-in detection is enabled while VoicemailTool is not. */ - voicemailDetection?: Assistant.VoicemailDetection; + voicemailDetection?: Vapi.AssistantVoicemailDetection; /** These are the messages that will be sent to your Client SDKs. Default is conversation-update,function-call,hang,model-output,speech-update,status-update,transfer-update,transcript,tool-calls,user-interrupted,voice-input,workflow.node.started. You can check the shape of the messages in ClientMessage schema. */ - clientMessages?: Assistant.ClientMessages.Item[]; + clientMessages?: Vapi.AssistantClientMessagesItem[]; /** These are the messages that will be sent to your Server URL. Default is conversation-update,end-of-call-report,function-call,hang,speech-update,status-update,tool-calls,transfer-destination-request,handoff-destination-request,user-interrupted. You can check the shape of the messages in ServerMessage schema. */ - serverMessages?: Assistant.ServerMessages.Item[]; + serverMessages?: Vapi.AssistantServerMessagesItem[]; /** * This is the maximum number of seconds that the call will last. When the call reaches this duration, it will be ended. * @@ -49,7 +49,7 @@ export interface Assistant { * This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. * You can also provide a custom sound by providing a URL to an audio file. */ - backgroundSound?: Assistant.BackgroundSound; + backgroundSound?: Vapi.AssistantBackgroundSound; /** * This determines whether the model's output is used in conversation history rather than the transcription of assistant's speech. * @@ -67,9 +67,9 @@ export interface Assistant { */ observabilityPlan?: Vapi.LangfuseObservabilityPlan; /** 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?: Assistant.Credentials.Item[]; + credentials?: Vapi.AssistantCredentialsItem[]; /** This is a set of actions that will be performed on certain events. */ - hooks?: Assistant.Hooks.Item[]; + hooks?: Vapi.AssistantHooksItem[]; /** * This is the name of the assistant. * @@ -161,260 +161,3 @@ export interface Assistant { /** This is the ISO 8601 date-time string of when the assistant was last updated. */ updatedAt: string; } - -export namespace Assistant { - /** - * These are the options for the assistant's transcriber. - */ - export type Transcriber = - | Vapi.AssemblyAiTranscriber - | Vapi.AzureSpeechTranscriber - | Vapi.CustomTranscriber - | Vapi.DeepgramTranscriber - | Vapi.ElevenLabsTranscriber - | Vapi.GladiaTranscriber - | Vapi.GoogleTranscriber - | Vapi.SpeechmaticsTranscriber - | Vapi.TalkscriberTranscriber - | Vapi.OpenAiTranscriber - | Vapi.CartesiaTranscriber; - /** - * These are the options for the assistant's LLM. - */ - export type Model = - | Vapi.AnthropicModel - | Vapi.AnyscaleModel - | Vapi.CerebrasModel - | Vapi.CustomLlmModel - | Vapi.DeepInfraModel - | Vapi.DeepSeekModel - | Vapi.GoogleModel - | Vapi.GroqModel - | Vapi.InflectionAiModel - | Vapi.OpenAiModel - | Vapi.OpenRouterModel - | Vapi.PerplexityAiModel - | Vapi.TogetherAiModel - | Vapi.XaiModel; - /** - * These are the options for the assistant's voice. - */ - export type Voice = - | Vapi.AzureVoice - | Vapi.CartesiaVoice - | Vapi.CustomVoice - | Vapi.DeepgramVoice - | Vapi.ElevenLabsVoice - | Vapi.HumeVoice - | Vapi.LmntVoice - | Vapi.NeuphonicVoice - | Vapi.OpenAiVoice - | Vapi.PlayHtVoice - | Vapi.RimeAiVoice - | Vapi.SmallestAiVoice - | Vapi.TavusVoice - | Vapi.VapiVoice - | Vapi.SesameVoice - | Vapi.InworldVoice - | Vapi.MinimaxVoice; - /** - * This is the mode for the first message. Default is 'assistant-speaks-first'. - * - * Use: - * - 'assistant-speaks-first' to have the assistant speak first. - * - 'assistant-waits-for-user' to have the assistant wait for the user to speak first. - * - 'assistant-speaks-first-with-model-generated-message' to have the assistant speak first with a message generated by the model based on the conversation state. (`assistant.model.messages` at call start, `call.messages` at squad transfer points). - * - * @default 'assistant-speaks-first' - */ - export type FirstMessageMode = - | "assistant-speaks-first" - | "assistant-speaks-first-with-model-generated-message" - | "assistant-waits-for-user"; - export const FirstMessageMode = { - AssistantSpeaksFirst: "assistant-speaks-first", - AssistantSpeaksFirstWithModelGeneratedMessage: "assistant-speaks-first-with-model-generated-message", - AssistantWaitsForUser: "assistant-waits-for-user", - } as const; - /** - * These are the settings to configure or disable voicemail detection. Alternatively, voicemail detection can be configured using the model.tools=[VoicemailTool]. - * This uses Twilio's built-in detection while the VoicemailTool relies on the model to detect if a voicemail was reached. - * You can use neither of them, one of them, or both of them. By default, Twilio built-in detection is enabled while VoicemailTool is not. - */ - export type VoicemailDetection = - | Vapi.GoogleVoicemailDetectionPlan - | Vapi.OpenAiVoicemailDetectionPlan - | Vapi.TwilioVoicemailDetectionPlan - | Vapi.VapiVoicemailDetectionPlan; - export type ClientMessages = ClientMessages.Item[]; - - export namespace ClientMessages { - export type Item = - | "conversation-update" - | "function-call" - | "function-call-result" - | "hang" - | "language-changed" - | "metadata" - | "model-output" - | "speech-update" - | "status-update" - | "transcript" - | "tool-calls" - | "tool-calls-result" - | "tool.completed" - | "transfer-update" - | "user-interrupted" - | "voice-input" - | "workflow.node.started"; - export const Item = { - ConversationUpdate: "conversation-update", - FunctionCall: "function-call", - FunctionCallResult: "function-call-result", - Hang: "hang", - LanguageChanged: "language-changed", - Metadata: "metadata", - ModelOutput: "model-output", - SpeechUpdate: "speech-update", - StatusUpdate: "status-update", - Transcript: "transcript", - ToolCalls: "tool-calls", - ToolCallsResult: "tool-calls-result", - ToolCompleted: "tool.completed", - TransferUpdate: "transfer-update", - UserInterrupted: "user-interrupted", - VoiceInput: "voice-input", - WorkflowNodeStarted: "workflow.node.started", - } as const; - } - - export type ServerMessages = ServerMessages.Item[]; - - export namespace ServerMessages { - export type Item = - | "conversation-update" - | "end-of-call-report" - | "function-call" - | "hang" - | "language-changed" - | "language-change-detected" - | "model-output" - | "phone-call-control" - | "speech-update" - | "status-update" - | "transcript" - | 'transcript[transcriptType="final"]' - | "tool-calls" - | "transfer-destination-request" - | "handoff-destination-request" - | "transfer-update" - | "user-interrupted" - | "voice-input" - | "chat.created" - | "chat.deleted" - | "session.created" - | "session.updated" - | "session.deleted" - | "call.deleted" - | "call.delete.failed"; - export const Item = { - ConversationUpdate: "conversation-update", - EndOfCallReport: "end-of-call-report", - FunctionCall: "function-call", - Hang: "hang", - LanguageChanged: "language-changed", - LanguageChangeDetected: "language-change-detected", - ModelOutput: "model-output", - PhoneCallControl: "phone-call-control", - SpeechUpdate: "speech-update", - StatusUpdate: "status-update", - Transcript: "transcript", - TranscriptTranscriptTypeFinal: 'transcript[transcriptType="final"]', - ToolCalls: "tool-calls", - TransferDestinationRequest: "transfer-destination-request", - HandoffDestinationRequest: "handoff-destination-request", - TransferUpdate: "transfer-update", - UserInterrupted: "user-interrupted", - VoiceInput: "voice-input", - ChatCreated: "chat.created", - ChatDeleted: "chat.deleted", - SessionCreated: "session.created", - SessionUpdated: "session.updated", - SessionDeleted: "session.deleted", - CallDeleted: "call.deleted", - CallDeleteFailed: "call.delete.failed", - } as const; - } - - /** - * This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. - * You can also provide a custom sound by providing a URL to an audio file. - */ - export type BackgroundSound = ("off" | "office") | string; - export type Credentials = Credentials.Item[]; - - export namespace Credentials { - export type Item = - | Vapi.CreateElevenLabsCredentialDto - | Vapi.CreateAnthropicCredentialDto - | Vapi.CreateAnyscaleCredentialDto - | Vapi.CreateAssemblyAiCredentialDto - | Vapi.CreateAzureOpenAiCredentialDto - | Vapi.CreateAzureCredentialDto - | Vapi.CreateByoSipTrunkCredentialDto - | Vapi.CreateCartesiaCredentialDto - | Vapi.CreateCerebrasCredentialDto - | Vapi.CreateCloudflareCredentialDto - | Vapi.CreateCustomLlmCredentialDto - | Vapi.CreateDeepgramCredentialDto - | Vapi.CreateDeepInfraCredentialDto - | Vapi.CreateDeepSeekCredentialDto - | Vapi.CreateGcpCredentialDto - | Vapi.CreateGladiaCredentialDto - | Vapi.CreateGoHighLevelCredentialDto - | Vapi.CreateGoogleCredentialDto - | Vapi.CreateGroqCredentialDto - | Vapi.CreateInflectionAiCredentialDto - | Vapi.CreateLangfuseCredentialDto - | Vapi.CreateLmntCredentialDto - | Vapi.CreateMakeCredentialDto - | Vapi.CreateOpenAiCredentialDto - | Vapi.CreateOpenRouterCredentialDto - | Vapi.CreatePerplexityAiCredentialDto - | Vapi.CreatePlayHtCredentialDto - | Vapi.CreateRimeAiCredentialDto - | Vapi.CreateRunpodCredentialDto - | Vapi.CreateS3CredentialDto - | Vapi.CreateSupabaseCredentialDto - | Vapi.CreateSmallestAiCredentialDto - | Vapi.CreateTavusCredentialDto - | Vapi.CreateTogetherAiCredentialDto - | Vapi.CreateTwilioCredentialDto - | Vapi.CreateVonageCredentialDto - | Vapi.CreateWebhookCredentialDto - | Vapi.CreateCustomCredentialDto - | Vapi.CreateXAiCredentialDto - | Vapi.CreateNeuphonicCredentialDto - | Vapi.CreateHumeCredentialDto - | Vapi.CreateMistralCredentialDto - | Vapi.CreateSpeechmaticsCredentialDto - | Vapi.CreateTrieveCredentialDto - | Vapi.CreateGoogleCalendarOAuth2ClientCredentialDto - | Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDto - | Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDto - | Vapi.CreateSlackOAuth2AuthorizationCredentialDto - | Vapi.CreateGoHighLevelMcpCredentialDto - | Vapi.CreateInworldCredentialDto - | Vapi.CreateMinimaxCredentialDto; - } - - export type Hooks = Hooks.Item[]; - - export namespace Hooks { - export type Item = - | Vapi.CallHookCallEnding - | Vapi.CallHookAssistantSpeechInterrupted - | Vapi.CallHookCustomerSpeechInterrupted - | Vapi.CallHookCustomerSpeechTimeout; - } -} diff --git a/src/api/types/AssistantBackgroundSound.ts b/src/api/types/AssistantBackgroundSound.ts new file mode 100644 index 00000000..e2c8f5e6 --- /dev/null +++ b/src/api/types/AssistantBackgroundSound.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. + * You can also provide a custom sound by providing a URL to an audio file. + */ +export type AssistantBackgroundSound = Vapi.AssistantBackgroundSoundZero | string; diff --git a/src/api/types/AssistantBackgroundSoundZero.ts b/src/api/types/AssistantBackgroundSoundZero.ts new file mode 100644 index 00000000..ac69bdff --- /dev/null +++ b/src/api/types/AssistantBackgroundSoundZero.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type AssistantBackgroundSoundZero = "off" | "office"; +export const AssistantBackgroundSoundZero = { + Off: "off", + Office: "office", +} as const; diff --git a/src/api/types/AssistantClientMessagesItem.ts b/src/api/types/AssistantClientMessagesItem.ts new file mode 100644 index 00000000..c6fd6e02 --- /dev/null +++ b/src/api/types/AssistantClientMessagesItem.ts @@ -0,0 +1,41 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type AssistantClientMessagesItem = + | "conversation-update" + | "function-call" + | "function-call-result" + | "hang" + | "language-changed" + | "metadata" + | "model-output" + | "speech-update" + | "status-update" + | "transcript" + | "tool-calls" + | "tool-calls-result" + | "tool.completed" + | "transfer-update" + | "user-interrupted" + | "voice-input" + | "workflow.node.started"; +export const AssistantClientMessagesItem = { + ConversationUpdate: "conversation-update", + FunctionCall: "function-call", + FunctionCallResult: "function-call-result", + Hang: "hang", + LanguageChanged: "language-changed", + Metadata: "metadata", + ModelOutput: "model-output", + SpeechUpdate: "speech-update", + StatusUpdate: "status-update", + Transcript: "transcript", + ToolCalls: "tool-calls", + ToolCallsResult: "tool-calls-result", + ToolCompleted: "tool.completed", + TransferUpdate: "transfer-update", + UserInterrupted: "user-interrupted", + VoiceInput: "voice-input", + WorkflowNodeStarted: "workflow.node.started", +} as const; diff --git a/src/api/types/AssistantCredentialsItem.ts b/src/api/types/AssistantCredentialsItem.ts new file mode 100644 index 00000000..bc78d8dd --- /dev/null +++ b/src/api/types/AssistantCredentialsItem.ts @@ -0,0 +1,58 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type AssistantCredentialsItem = + | Vapi.CreateElevenLabsCredentialDto + | Vapi.CreateAnthropicCredentialDto + | Vapi.CreateAnyscaleCredentialDto + | Vapi.CreateAssemblyAiCredentialDto + | Vapi.CreateAzureOpenAiCredentialDto + | Vapi.CreateAzureCredentialDto + | Vapi.CreateByoSipTrunkCredentialDto + | Vapi.CreateCartesiaCredentialDto + | Vapi.CreateCerebrasCredentialDto + | Vapi.CreateCloudflareCredentialDto + | Vapi.CreateCustomLlmCredentialDto + | Vapi.CreateDeepgramCredentialDto + | Vapi.CreateDeepInfraCredentialDto + | Vapi.CreateDeepSeekCredentialDto + | Vapi.CreateGcpCredentialDto + | Vapi.CreateGladiaCredentialDto + | Vapi.CreateGoHighLevelCredentialDto + | Vapi.CreateGoogleCredentialDto + | Vapi.CreateGroqCredentialDto + | Vapi.CreateInflectionAiCredentialDto + | Vapi.CreateLangfuseCredentialDto + | Vapi.CreateLmntCredentialDto + | Vapi.CreateMakeCredentialDto + | Vapi.CreateOpenAiCredentialDto + | Vapi.CreateOpenRouterCredentialDto + | Vapi.CreatePerplexityAiCredentialDto + | Vapi.CreatePlayHtCredentialDto + | Vapi.CreateRimeAiCredentialDto + | Vapi.CreateRunpodCredentialDto + | Vapi.CreateS3CredentialDto + | Vapi.CreateSupabaseCredentialDto + | Vapi.CreateSmallestAiCredentialDto + | Vapi.CreateTavusCredentialDto + | Vapi.CreateTogetherAiCredentialDto + | Vapi.CreateTwilioCredentialDto + | Vapi.CreateVonageCredentialDto + | Vapi.CreateWebhookCredentialDto + | Vapi.CreateCustomCredentialDto + | Vapi.CreateXAiCredentialDto + | Vapi.CreateNeuphonicCredentialDto + | Vapi.CreateHumeCredentialDto + | Vapi.CreateMistralCredentialDto + | Vapi.CreateSpeechmaticsCredentialDto + | Vapi.CreateTrieveCredentialDto + | Vapi.CreateGoogleCalendarOAuth2ClientCredentialDto + | Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDto + | Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDto + | Vapi.CreateSlackOAuth2AuthorizationCredentialDto + | Vapi.CreateGoHighLevelMcpCredentialDto + | Vapi.CreateInworldCredentialDto + | Vapi.CreateMinimaxCredentialDto; diff --git a/src/api/types/AssistantFirstMessageMode.ts b/src/api/types/AssistantFirstMessageMode.ts new file mode 100644 index 00000000..ca182399 --- /dev/null +++ b/src/api/types/AssistantFirstMessageMode.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the mode for the first message. Default is 'assistant-speaks-first'. + * + * Use: + * - 'assistant-speaks-first' to have the assistant speak first. + * - 'assistant-waits-for-user' to have the assistant wait for the user to speak first. + * - 'assistant-speaks-first-with-model-generated-message' to have the assistant speak first with a message generated by the model based on the conversation state. (`assistant.model.messages` at call start, `call.messages` at squad transfer points). + * + * @default 'assistant-speaks-first' + */ +export type AssistantFirstMessageMode = + | "assistant-speaks-first" + | "assistant-speaks-first-with-model-generated-message" + | "assistant-waits-for-user"; +export const AssistantFirstMessageMode = { + AssistantSpeaksFirst: "assistant-speaks-first", + AssistantSpeaksFirstWithModelGeneratedMessage: "assistant-speaks-first-with-model-generated-message", + AssistantWaitsForUser: "assistant-waits-for-user", +} as const; diff --git a/src/api/types/AssistantHooksItem.ts b/src/api/types/AssistantHooksItem.ts new file mode 100644 index 00000000..ccd75140 --- /dev/null +++ b/src/api/types/AssistantHooksItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type AssistantHooksItem = + | Vapi.CallHookCallEnding + | Vapi.CallHookAssistantSpeechInterrupted + | Vapi.CallHookCustomerSpeechInterrupted + | Vapi.CallHookCustomerSpeechTimeout; diff --git a/src/api/types/AssistantMessageJudgePlanAi.ts b/src/api/types/AssistantMessageJudgePlanAi.ts index fcb59859..66ca478d 100644 --- a/src/api/types/AssistantMessageJudgePlanAi.ts +++ b/src/api/types/AssistantMessageJudgePlanAi.ts @@ -15,7 +15,7 @@ export interface AssistantMessageJudgePlanAi { * * The LLM-Judge must respond with "pass" or "fail" and only those two responses are allowed. */ - model: AssistantMessageJudgePlanAi.Model; + model: Vapi.AssistantMessageJudgePlanAiModel; /** * This is the type of the judge plan. * Use 'ai' to evaluate the assistant message content using LLM-as-a-judge. @@ -23,17 +23,3 @@ export interface AssistantMessageJudgePlanAi { */ type: "ai"; } - -export namespace AssistantMessageJudgePlanAi { - /** - * This is the model to use for the LLM-as-a-judge. - * If not provided, will default to the assistant's model. - * - * The instructions on how to evaluate the model output with this LLM-Judge must be passed as a system message in the messages array of the model. - * - * The Mock conversation can be passed to the LLM-Judge to evaluate using the prompt {{messages}} and will be evaluated as a LiquidJS Variable. To access and judge only the last message, use {{messages[-1]}} - * - * The LLM-Judge must respond with "pass" or "fail" and only those two responses are allowed. - */ - export type Model = Vapi.EvalOpenAiModel | Vapi.EvalAnthropicModel | Vapi.EvalGoogleModel | Vapi.EvalCustomModel; -} diff --git a/src/api/types/AssistantMessageJudgePlanAiModel.ts b/src/api/types/AssistantMessageJudgePlanAiModel.ts new file mode 100644 index 00000000..cf8b6d36 --- /dev/null +++ b/src/api/types/AssistantMessageJudgePlanAiModel.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the model to use for the LLM-as-a-judge. + * If not provided, will default to the assistant's model. + * + * The instructions on how to evaluate the model output with this LLM-Judge must be passed as a system message in the messages array of the model. + * + * The Mock conversation can be passed to the LLM-Judge to evaluate using the prompt {{messages}} and will be evaluated as a LiquidJS Variable. To access and judge only the last message, use {{messages[-1]}} + * + * The LLM-Judge must respond with "pass" or "fail" and only those two responses are allowed. + */ +export type AssistantMessageJudgePlanAiModel = + | Vapi.EvalOpenAiModel + | Vapi.EvalAnthropicModel + | Vapi.EvalGoogleModel + | Vapi.EvalCustomModel; diff --git a/src/api/types/AssistantModel.ts b/src/api/types/AssistantModel.ts new file mode 100644 index 00000000..01064016 --- /dev/null +++ b/src/api/types/AssistantModel.ts @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * These are the options for the assistant's LLM. + */ +export type AssistantModel = + | Vapi.AnthropicModel + | Vapi.AnyscaleModel + | Vapi.CerebrasModel + | Vapi.CustomLlmModel + | Vapi.DeepInfraModel + | Vapi.DeepSeekModel + | Vapi.GoogleModel + | Vapi.GroqModel + | Vapi.InflectionAiModel + | Vapi.OpenAiModel + | Vapi.OpenRouterModel + | Vapi.PerplexityAiModel + | Vapi.TogetherAiModel + | Vapi.XaiModel; diff --git a/src/api/types/AssistantOverrides.ts b/src/api/types/AssistantOverrides.ts index 3a46e40c..3fcc2fa4 100644 --- a/src/api/types/AssistantOverrides.ts +++ b/src/api/types/AssistantOverrides.ts @@ -6,11 +6,11 @@ import * as Vapi from "../index.js"; export interface AssistantOverrides { /** These are the options for the assistant's transcriber. */ - transcriber?: AssistantOverrides.Transcriber; + transcriber?: Vapi.AssistantOverridesTranscriber; /** These are the options for the assistant's LLM. */ - model?: AssistantOverrides.Model; + model?: Vapi.AssistantOverridesModel; /** These are the options for the assistant's voice. */ - voice?: AssistantOverrides.Voice; + voice?: Vapi.AssistantOverridesVoice; /** * This is the first message that the assistant will say. This can also be a URL to a containerized audio file (mp3, wav, etc.). * @@ -28,17 +28,17 @@ export interface AssistantOverrides { * * @default 'assistant-speaks-first' */ - firstMessageMode?: AssistantOverrides.FirstMessageMode; + firstMessageMode?: Vapi.AssistantOverridesFirstMessageMode; /** * These are the settings to configure or disable voicemail detection. Alternatively, voicemail detection can be configured using the model.tools=[VoicemailTool]. * This uses Twilio's built-in detection while the VoicemailTool relies on the model to detect if a voicemail was reached. * You can use neither of them, one of them, or both of them. By default, Twilio built-in detection is enabled while VoicemailTool is not. */ - voicemailDetection?: AssistantOverrides.VoicemailDetection; + voicemailDetection?: Vapi.AssistantOverridesVoicemailDetection; /** These are the messages that will be sent to your Client SDKs. Default is conversation-update,function-call,hang,model-output,speech-update,status-update,transfer-update,transcript,tool-calls,user-interrupted,voice-input,workflow.node.started. You can check the shape of the messages in ClientMessage schema. */ - clientMessages?: AssistantOverrides.ClientMessages.Item[]; + clientMessages?: Vapi.AssistantOverridesClientMessagesItem[]; /** These are the messages that will be sent to your Server URL. Default is conversation-update,end-of-call-report,function-call,hang,speech-update,status-update,tool-calls,transfer-destination-request,handoff-destination-request,user-interrupted. You can check the shape of the messages in ServerMessage schema. */ - serverMessages?: AssistantOverrides.ServerMessages.Item[]; + serverMessages?: Vapi.AssistantOverridesServerMessagesItem[]; /** * This is the maximum number of seconds that the call will last. When the call reaches this duration, it will be ended. * @@ -49,7 +49,7 @@ export interface AssistantOverrides { * This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. * You can also provide a custom sound by providing a URL to an audio file. */ - backgroundSound?: AssistantOverrides.BackgroundSound; + backgroundSound?: Vapi.AssistantOverridesBackgroundSound; /** * This determines whether the model's output is used in conversation history rather than the transcription of assistant's speech. * @@ -67,10 +67,10 @@ export interface AssistantOverrides { */ observabilityPlan?: Vapi.LangfuseObservabilityPlan; /** 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?: AssistantOverrides.Credentials.Item[]; + credentials?: Vapi.AssistantOverridesCredentialsItem[]; /** This is a set of actions that will be performed on certain events. */ - hooks?: AssistantOverrides.Hooks.Item[]; - "tools:append"?: AssistantOverrides.ToolsAppend.Item[]; + hooks?: Vapi.AssistantOverridesHooksItem[]; + "tools:append"?: Vapi.AssistantOverridesToolsAppendItem[]; /** * These are values that will be used to replace the template variables in the assistant messages and other text-based fields. * This uses LiquidJS syntax. https://liquidjs.com/tutorials/intro-to-liquid.html @@ -164,286 +164,3 @@ export interface AssistantOverrides { server?: Vapi.Server; keypadInputPlan?: Vapi.KeypadInputPlan; } - -export namespace AssistantOverrides { - /** - * These are the options for the assistant's transcriber. - */ - export type Transcriber = - | Vapi.AssemblyAiTranscriber - | Vapi.AzureSpeechTranscriber - | Vapi.CustomTranscriber - | Vapi.DeepgramTranscriber - | Vapi.ElevenLabsTranscriber - | Vapi.GladiaTranscriber - | Vapi.GoogleTranscriber - | Vapi.SpeechmaticsTranscriber - | Vapi.TalkscriberTranscriber - | Vapi.OpenAiTranscriber - | Vapi.CartesiaTranscriber; - /** - * These are the options for the assistant's LLM. - */ - export type Model = - | Vapi.AnthropicModel - | Vapi.AnyscaleModel - | Vapi.CerebrasModel - | Vapi.CustomLlmModel - | Vapi.DeepInfraModel - | Vapi.DeepSeekModel - | Vapi.GoogleModel - | Vapi.GroqModel - | Vapi.InflectionAiModel - | Vapi.OpenAiModel - | Vapi.OpenRouterModel - | Vapi.PerplexityAiModel - | Vapi.TogetherAiModel - | Vapi.XaiModel; - /** - * These are the options for the assistant's voice. - */ - export type Voice = - | Vapi.AzureVoice - | Vapi.CartesiaVoice - | Vapi.CustomVoice - | Vapi.DeepgramVoice - | Vapi.ElevenLabsVoice - | Vapi.HumeVoice - | Vapi.LmntVoice - | Vapi.NeuphonicVoice - | Vapi.OpenAiVoice - | Vapi.PlayHtVoice - | Vapi.RimeAiVoice - | Vapi.SmallestAiVoice - | Vapi.TavusVoice - | Vapi.VapiVoice - | Vapi.SesameVoice - | Vapi.InworldVoice - | Vapi.MinimaxVoice; - /** - * This is the mode for the first message. Default is 'assistant-speaks-first'. - * - * Use: - * - 'assistant-speaks-first' to have the assistant speak first. - * - 'assistant-waits-for-user' to have the assistant wait for the user to speak first. - * - 'assistant-speaks-first-with-model-generated-message' to have the assistant speak first with a message generated by the model based on the conversation state. (`assistant.model.messages` at call start, `call.messages` at squad transfer points). - * - * @default 'assistant-speaks-first' - */ - export type FirstMessageMode = - | "assistant-speaks-first" - | "assistant-speaks-first-with-model-generated-message" - | "assistant-waits-for-user"; - export const FirstMessageMode = { - AssistantSpeaksFirst: "assistant-speaks-first", - AssistantSpeaksFirstWithModelGeneratedMessage: "assistant-speaks-first-with-model-generated-message", - AssistantWaitsForUser: "assistant-waits-for-user", - } as const; - /** - * These are the settings to configure or disable voicemail detection. Alternatively, voicemail detection can be configured using the model.tools=[VoicemailTool]. - * This uses Twilio's built-in detection while the VoicemailTool relies on the model to detect if a voicemail was reached. - * You can use neither of them, one of them, or both of them. By default, Twilio built-in detection is enabled while VoicemailTool is not. - */ - export type VoicemailDetection = - | Vapi.GoogleVoicemailDetectionPlan - | Vapi.OpenAiVoicemailDetectionPlan - | Vapi.TwilioVoicemailDetectionPlan - | Vapi.VapiVoicemailDetectionPlan; - export type ClientMessages = ClientMessages.Item[]; - - export namespace ClientMessages { - export type Item = - | "conversation-update" - | "function-call" - | "function-call-result" - | "hang" - | "language-changed" - | "metadata" - | "model-output" - | "speech-update" - | "status-update" - | "transcript" - | "tool-calls" - | "tool-calls-result" - | "tool.completed" - | "transfer-update" - | "user-interrupted" - | "voice-input" - | "workflow.node.started"; - export const Item = { - ConversationUpdate: "conversation-update", - FunctionCall: "function-call", - FunctionCallResult: "function-call-result", - Hang: "hang", - LanguageChanged: "language-changed", - Metadata: "metadata", - ModelOutput: "model-output", - SpeechUpdate: "speech-update", - StatusUpdate: "status-update", - Transcript: "transcript", - ToolCalls: "tool-calls", - ToolCallsResult: "tool-calls-result", - ToolCompleted: "tool.completed", - TransferUpdate: "transfer-update", - UserInterrupted: "user-interrupted", - VoiceInput: "voice-input", - WorkflowNodeStarted: "workflow.node.started", - } as const; - } - - export type ServerMessages = ServerMessages.Item[]; - - export namespace ServerMessages { - export type Item = - | "conversation-update" - | "end-of-call-report" - | "function-call" - | "hang" - | "language-changed" - | "language-change-detected" - | "model-output" - | "phone-call-control" - | "speech-update" - | "status-update" - | "transcript" - | 'transcript[transcriptType="final"]' - | "tool-calls" - | "transfer-destination-request" - | "handoff-destination-request" - | "transfer-update" - | "user-interrupted" - | "voice-input" - | "chat.created" - | "chat.deleted" - | "session.created" - | "session.updated" - | "session.deleted" - | "call.deleted" - | "call.delete.failed"; - export const Item = { - ConversationUpdate: "conversation-update", - EndOfCallReport: "end-of-call-report", - FunctionCall: "function-call", - Hang: "hang", - LanguageChanged: "language-changed", - LanguageChangeDetected: "language-change-detected", - ModelOutput: "model-output", - PhoneCallControl: "phone-call-control", - SpeechUpdate: "speech-update", - StatusUpdate: "status-update", - Transcript: "transcript", - TranscriptTranscriptTypeFinal: 'transcript[transcriptType="final"]', - ToolCalls: "tool-calls", - TransferDestinationRequest: "transfer-destination-request", - HandoffDestinationRequest: "handoff-destination-request", - TransferUpdate: "transfer-update", - UserInterrupted: "user-interrupted", - VoiceInput: "voice-input", - ChatCreated: "chat.created", - ChatDeleted: "chat.deleted", - SessionCreated: "session.created", - SessionUpdated: "session.updated", - SessionDeleted: "session.deleted", - CallDeleted: "call.deleted", - CallDeleteFailed: "call.delete.failed", - } as const; - } - - /** - * This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. - * You can also provide a custom sound by providing a URL to an audio file. - */ - export type BackgroundSound = ("off" | "office") | string; - export type Credentials = Credentials.Item[]; - - export namespace Credentials { - export type Item = - | Vapi.CreateElevenLabsCredentialDto - | Vapi.CreateAnthropicCredentialDto - | Vapi.CreateAnyscaleCredentialDto - | Vapi.CreateAssemblyAiCredentialDto - | Vapi.CreateAzureOpenAiCredentialDto - | Vapi.CreateAzureCredentialDto - | Vapi.CreateByoSipTrunkCredentialDto - | Vapi.CreateCartesiaCredentialDto - | Vapi.CreateCerebrasCredentialDto - | Vapi.CreateCloudflareCredentialDto - | Vapi.CreateCustomLlmCredentialDto - | Vapi.CreateDeepgramCredentialDto - | Vapi.CreateDeepInfraCredentialDto - | Vapi.CreateDeepSeekCredentialDto - | Vapi.CreateGcpCredentialDto - | Vapi.CreateGladiaCredentialDto - | Vapi.CreateGoHighLevelCredentialDto - | Vapi.CreateGoogleCredentialDto - | Vapi.CreateGroqCredentialDto - | Vapi.CreateInflectionAiCredentialDto - | Vapi.CreateLangfuseCredentialDto - | Vapi.CreateLmntCredentialDto - | Vapi.CreateMakeCredentialDto - | Vapi.CreateOpenAiCredentialDto - | Vapi.CreateOpenRouterCredentialDto - | Vapi.CreatePerplexityAiCredentialDto - | Vapi.CreatePlayHtCredentialDto - | Vapi.CreateRimeAiCredentialDto - | Vapi.CreateRunpodCredentialDto - | Vapi.CreateS3CredentialDto - | Vapi.CreateSupabaseCredentialDto - | Vapi.CreateSmallestAiCredentialDto - | Vapi.CreateTavusCredentialDto - | Vapi.CreateTogetherAiCredentialDto - | Vapi.CreateTwilioCredentialDto - | Vapi.CreateVonageCredentialDto - | Vapi.CreateWebhookCredentialDto - | Vapi.CreateCustomCredentialDto - | Vapi.CreateXAiCredentialDto - | Vapi.CreateNeuphonicCredentialDto - | Vapi.CreateHumeCredentialDto - | Vapi.CreateMistralCredentialDto - | Vapi.CreateSpeechmaticsCredentialDto - | Vapi.CreateTrieveCredentialDto - | Vapi.CreateGoogleCalendarOAuth2ClientCredentialDto - | Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDto - | Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDto - | Vapi.CreateSlackOAuth2AuthorizationCredentialDto - | Vapi.CreateGoHighLevelMcpCredentialDto - | Vapi.CreateInworldCredentialDto - | Vapi.CreateMinimaxCredentialDto; - } - - export type Hooks = Hooks.Item[]; - - export namespace Hooks { - export type Item = - | Vapi.CallHookCallEnding - | Vapi.CallHookAssistantSpeechInterrupted - | Vapi.CallHookCustomerSpeechInterrupted - | Vapi.CallHookCustomerSpeechTimeout; - } - - export type ToolsAppend = ToolsAppend.Item[]; - - export namespace ToolsAppend { - export type Item = - | Vapi.CreateApiRequestToolDto - | Vapi.CreateBashToolDto - | Vapi.CreateComputerToolDto - | Vapi.CreateDtmfToolDto - | Vapi.CreateEndCallToolDto - | Vapi.CreateFunctionToolDto - | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto - | Vapi.CreateGoHighLevelCalendarEventCreateToolDto - | Vapi.CreateGoHighLevelContactCreateToolDto - | Vapi.CreateGoHighLevelContactGetToolDto - | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto - | Vapi.CreateGoogleCalendarCreateEventToolDto - | Vapi.CreateGoogleSheetsRowAppendToolDto - | Vapi.CreateHandoffToolDto - | Vapi.CreateMcpToolDto - | Vapi.CreateQueryToolDto - | Vapi.CreateSlackSendMessageToolDto - | Vapi.CreateSmsToolDto - | Vapi.CreateTextEditorToolDto - | Vapi.CreateTransferCallToolDto; - } -} diff --git a/src/api/types/AssistantOverridesBackgroundSound.ts b/src/api/types/AssistantOverridesBackgroundSound.ts new file mode 100644 index 00000000..66847734 --- /dev/null +++ b/src/api/types/AssistantOverridesBackgroundSound.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. + * You can also provide a custom sound by providing a URL to an audio file. + */ +export type AssistantOverridesBackgroundSound = Vapi.AssistantOverridesBackgroundSoundZero | string; diff --git a/src/api/types/AssistantOverridesBackgroundSoundZero.ts b/src/api/types/AssistantOverridesBackgroundSoundZero.ts new file mode 100644 index 00000000..d8a0c4d9 --- /dev/null +++ b/src/api/types/AssistantOverridesBackgroundSoundZero.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type AssistantOverridesBackgroundSoundZero = "off" | "office"; +export const AssistantOverridesBackgroundSoundZero = { + Off: "off", + Office: "office", +} as const; diff --git a/src/api/types/AssistantOverridesClientMessagesItem.ts b/src/api/types/AssistantOverridesClientMessagesItem.ts new file mode 100644 index 00000000..4c205aac --- /dev/null +++ b/src/api/types/AssistantOverridesClientMessagesItem.ts @@ -0,0 +1,41 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type AssistantOverridesClientMessagesItem = + | "conversation-update" + | "function-call" + | "function-call-result" + | "hang" + | "language-changed" + | "metadata" + | "model-output" + | "speech-update" + | "status-update" + | "transcript" + | "tool-calls" + | "tool-calls-result" + | "tool.completed" + | "transfer-update" + | "user-interrupted" + | "voice-input" + | "workflow.node.started"; +export const AssistantOverridesClientMessagesItem = { + ConversationUpdate: "conversation-update", + FunctionCall: "function-call", + FunctionCallResult: "function-call-result", + Hang: "hang", + LanguageChanged: "language-changed", + Metadata: "metadata", + ModelOutput: "model-output", + SpeechUpdate: "speech-update", + StatusUpdate: "status-update", + Transcript: "transcript", + ToolCalls: "tool-calls", + ToolCallsResult: "tool-calls-result", + ToolCompleted: "tool.completed", + TransferUpdate: "transfer-update", + UserInterrupted: "user-interrupted", + VoiceInput: "voice-input", + WorkflowNodeStarted: "workflow.node.started", +} as const; diff --git a/src/api/types/AssistantOverridesCredentialsItem.ts b/src/api/types/AssistantOverridesCredentialsItem.ts new file mode 100644 index 00000000..2f1ea0db --- /dev/null +++ b/src/api/types/AssistantOverridesCredentialsItem.ts @@ -0,0 +1,58 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type AssistantOverridesCredentialsItem = + | Vapi.CreateElevenLabsCredentialDto + | Vapi.CreateAnthropicCredentialDto + | Vapi.CreateAnyscaleCredentialDto + | Vapi.CreateAssemblyAiCredentialDto + | Vapi.CreateAzureOpenAiCredentialDto + | Vapi.CreateAzureCredentialDto + | Vapi.CreateByoSipTrunkCredentialDto + | Vapi.CreateCartesiaCredentialDto + | Vapi.CreateCerebrasCredentialDto + | Vapi.CreateCloudflareCredentialDto + | Vapi.CreateCustomLlmCredentialDto + | Vapi.CreateDeepgramCredentialDto + | Vapi.CreateDeepInfraCredentialDto + | Vapi.CreateDeepSeekCredentialDto + | Vapi.CreateGcpCredentialDto + | Vapi.CreateGladiaCredentialDto + | Vapi.CreateGoHighLevelCredentialDto + | Vapi.CreateGoogleCredentialDto + | Vapi.CreateGroqCredentialDto + | Vapi.CreateInflectionAiCredentialDto + | Vapi.CreateLangfuseCredentialDto + | Vapi.CreateLmntCredentialDto + | Vapi.CreateMakeCredentialDto + | Vapi.CreateOpenAiCredentialDto + | Vapi.CreateOpenRouterCredentialDto + | Vapi.CreatePerplexityAiCredentialDto + | Vapi.CreatePlayHtCredentialDto + | Vapi.CreateRimeAiCredentialDto + | Vapi.CreateRunpodCredentialDto + | Vapi.CreateS3CredentialDto + | Vapi.CreateSupabaseCredentialDto + | Vapi.CreateSmallestAiCredentialDto + | Vapi.CreateTavusCredentialDto + | Vapi.CreateTogetherAiCredentialDto + | Vapi.CreateTwilioCredentialDto + | Vapi.CreateVonageCredentialDto + | Vapi.CreateWebhookCredentialDto + | Vapi.CreateCustomCredentialDto + | Vapi.CreateXAiCredentialDto + | Vapi.CreateNeuphonicCredentialDto + | Vapi.CreateHumeCredentialDto + | Vapi.CreateMistralCredentialDto + | Vapi.CreateSpeechmaticsCredentialDto + | Vapi.CreateTrieveCredentialDto + | Vapi.CreateGoogleCalendarOAuth2ClientCredentialDto + | Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDto + | Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDto + | Vapi.CreateSlackOAuth2AuthorizationCredentialDto + | Vapi.CreateGoHighLevelMcpCredentialDto + | Vapi.CreateInworldCredentialDto + | Vapi.CreateMinimaxCredentialDto; diff --git a/src/api/types/AssistantOverridesFirstMessageMode.ts b/src/api/types/AssistantOverridesFirstMessageMode.ts new file mode 100644 index 00000000..7e246df5 --- /dev/null +++ b/src/api/types/AssistantOverridesFirstMessageMode.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the mode for the first message. Default is 'assistant-speaks-first'. + * + * Use: + * - 'assistant-speaks-first' to have the assistant speak first. + * - 'assistant-waits-for-user' to have the assistant wait for the user to speak first. + * - 'assistant-speaks-first-with-model-generated-message' to have the assistant speak first with a message generated by the model based on the conversation state. (`assistant.model.messages` at call start, `call.messages` at squad transfer points). + * + * @default 'assistant-speaks-first' + */ +export type AssistantOverridesFirstMessageMode = + | "assistant-speaks-first" + | "assistant-speaks-first-with-model-generated-message" + | "assistant-waits-for-user"; +export const AssistantOverridesFirstMessageMode = { + AssistantSpeaksFirst: "assistant-speaks-first", + AssistantSpeaksFirstWithModelGeneratedMessage: "assistant-speaks-first-with-model-generated-message", + AssistantWaitsForUser: "assistant-waits-for-user", +} as const; diff --git a/src/api/types/AssistantOverridesHooksItem.ts b/src/api/types/AssistantOverridesHooksItem.ts new file mode 100644 index 00000000..f68dc797 --- /dev/null +++ b/src/api/types/AssistantOverridesHooksItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type AssistantOverridesHooksItem = + | Vapi.CallHookCallEnding + | Vapi.CallHookAssistantSpeechInterrupted + | Vapi.CallHookCustomerSpeechInterrupted + | Vapi.CallHookCustomerSpeechTimeout; diff --git a/src/api/types/AssistantOverridesModel.ts b/src/api/types/AssistantOverridesModel.ts new file mode 100644 index 00000000..7c4df335 --- /dev/null +++ b/src/api/types/AssistantOverridesModel.ts @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * These are the options for the assistant's LLM. + */ +export type AssistantOverridesModel = + | Vapi.AnthropicModel + | Vapi.AnyscaleModel + | Vapi.CerebrasModel + | Vapi.CustomLlmModel + | Vapi.DeepInfraModel + | Vapi.DeepSeekModel + | Vapi.GoogleModel + | Vapi.GroqModel + | Vapi.InflectionAiModel + | Vapi.OpenAiModel + | Vapi.OpenRouterModel + | Vapi.PerplexityAiModel + | Vapi.TogetherAiModel + | Vapi.XaiModel; diff --git a/src/api/types/AssistantOverridesServerMessagesItem.ts b/src/api/types/AssistantOverridesServerMessagesItem.ts new file mode 100644 index 00000000..85093a48 --- /dev/null +++ b/src/api/types/AssistantOverridesServerMessagesItem.ts @@ -0,0 +1,57 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type AssistantOverridesServerMessagesItem = + | "conversation-update" + | "end-of-call-report" + | "function-call" + | "hang" + | "language-changed" + | "language-change-detected" + | "model-output" + | "phone-call-control" + | "speech-update" + | "status-update" + | "transcript" + | 'transcript[transcriptType="final"]' + | "tool-calls" + | "transfer-destination-request" + | "handoff-destination-request" + | "transfer-update" + | "user-interrupted" + | "voice-input" + | "chat.created" + | "chat.deleted" + | "session.created" + | "session.updated" + | "session.deleted" + | "call.deleted" + | "call.delete.failed"; +export const AssistantOverridesServerMessagesItem = { + ConversationUpdate: "conversation-update", + EndOfCallReport: "end-of-call-report", + FunctionCall: "function-call", + Hang: "hang", + LanguageChanged: "language-changed", + LanguageChangeDetected: "language-change-detected", + ModelOutput: "model-output", + PhoneCallControl: "phone-call-control", + SpeechUpdate: "speech-update", + StatusUpdate: "status-update", + Transcript: "transcript", + TranscriptTranscriptTypeFinal: 'transcript[transcriptType="final"]', + ToolCalls: "tool-calls", + TransferDestinationRequest: "transfer-destination-request", + HandoffDestinationRequest: "handoff-destination-request", + TransferUpdate: "transfer-update", + UserInterrupted: "user-interrupted", + VoiceInput: "voice-input", + ChatCreated: "chat.created", + ChatDeleted: "chat.deleted", + SessionCreated: "session.created", + SessionUpdated: "session.updated", + SessionDeleted: "session.deleted", + CallDeleted: "call.deleted", + CallDeleteFailed: "call.delete.failed", +} as const; diff --git a/src/api/types/AssistantOverridesToolsAppendItem.ts b/src/api/types/AssistantOverridesToolsAppendItem.ts new file mode 100644 index 00000000..4117c0cd --- /dev/null +++ b/src/api/types/AssistantOverridesToolsAppendItem.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type AssistantOverridesToolsAppendItem = + | Vapi.CreateApiRequestToolDto + | Vapi.CreateBashToolDto + | Vapi.CreateComputerToolDto + | Vapi.CreateDtmfToolDto + | Vapi.CreateEndCallToolDto + | Vapi.CreateFunctionToolDto + | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto + | Vapi.CreateGoHighLevelCalendarEventCreateToolDto + | Vapi.CreateGoHighLevelContactCreateToolDto + | Vapi.CreateGoHighLevelContactGetToolDto + | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto + | Vapi.CreateGoogleCalendarCreateEventToolDto + | Vapi.CreateGoogleSheetsRowAppendToolDto + | Vapi.CreateHandoffToolDto + | Vapi.CreateMcpToolDto + | Vapi.CreateQueryToolDto + | Vapi.CreateSlackSendMessageToolDto + | Vapi.CreateSmsToolDto + | Vapi.CreateTextEditorToolDto + | Vapi.CreateTransferCallToolDto; diff --git a/src/api/types/AssistantOverridesTranscriber.ts b/src/api/types/AssistantOverridesTranscriber.ts new file mode 100644 index 00000000..8ed7602f --- /dev/null +++ b/src/api/types/AssistantOverridesTranscriber.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * These are the options for the assistant's transcriber. + */ +export type AssistantOverridesTranscriber = + | Vapi.AssemblyAiTranscriber + | Vapi.AzureSpeechTranscriber + | Vapi.CustomTranscriber + | Vapi.DeepgramTranscriber + | Vapi.ElevenLabsTranscriber + | Vapi.GladiaTranscriber + | Vapi.GoogleTranscriber + | Vapi.SpeechmaticsTranscriber + | Vapi.TalkscriberTranscriber + | Vapi.OpenAiTranscriber + | Vapi.CartesiaTranscriber; diff --git a/src/api/types/AssistantOverridesVoice.ts b/src/api/types/AssistantOverridesVoice.ts new file mode 100644 index 00000000..c52966cd --- /dev/null +++ b/src/api/types/AssistantOverridesVoice.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * These are the options for the assistant's voice. + */ +export type AssistantOverridesVoice = + | Vapi.AzureVoice + | Vapi.CartesiaVoice + | Vapi.CustomVoice + | Vapi.DeepgramVoice + | Vapi.ElevenLabsVoice + | Vapi.HumeVoice + | Vapi.LmntVoice + | Vapi.NeuphonicVoice + | Vapi.OpenAiVoice + | Vapi.PlayHtVoice + | Vapi.RimeAiVoice + | Vapi.SmallestAiVoice + | Vapi.TavusVoice + | Vapi.VapiVoice + | Vapi.SesameVoice + | Vapi.InworldVoice + | Vapi.MinimaxVoice; diff --git a/src/api/types/AssistantOverridesVoicemailDetection.ts b/src/api/types/AssistantOverridesVoicemailDetection.ts new file mode 100644 index 00000000..e99b3cdb --- /dev/null +++ b/src/api/types/AssistantOverridesVoicemailDetection.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * These are the settings to configure or disable voicemail detection. Alternatively, voicemail detection can be configured using the model.tools=[VoicemailTool]. + * This uses Twilio's built-in detection while the VoicemailTool relies on the model to detect if a voicemail was reached. + * You can use neither of them, one of them, or both of them. By default, Twilio built-in detection is enabled while VoicemailTool is not. + */ +export type AssistantOverridesVoicemailDetection = + | Vapi.GoogleVoicemailDetectionPlan + | Vapi.OpenAiVoicemailDetectionPlan + | Vapi.TwilioVoicemailDetectionPlan + | Vapi.VapiVoicemailDetectionPlan; diff --git a/src/api/types/AssistantServerMessagesItem.ts b/src/api/types/AssistantServerMessagesItem.ts new file mode 100644 index 00000000..7187d833 --- /dev/null +++ b/src/api/types/AssistantServerMessagesItem.ts @@ -0,0 +1,57 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type AssistantServerMessagesItem = + | "conversation-update" + | "end-of-call-report" + | "function-call" + | "hang" + | "language-changed" + | "language-change-detected" + | "model-output" + | "phone-call-control" + | "speech-update" + | "status-update" + | "transcript" + | 'transcript[transcriptType="final"]' + | "tool-calls" + | "transfer-destination-request" + | "handoff-destination-request" + | "transfer-update" + | "user-interrupted" + | "voice-input" + | "chat.created" + | "chat.deleted" + | "session.created" + | "session.updated" + | "session.deleted" + | "call.deleted" + | "call.delete.failed"; +export const AssistantServerMessagesItem = { + ConversationUpdate: "conversation-update", + EndOfCallReport: "end-of-call-report", + FunctionCall: "function-call", + Hang: "hang", + LanguageChanged: "language-changed", + LanguageChangeDetected: "language-change-detected", + ModelOutput: "model-output", + PhoneCallControl: "phone-call-control", + SpeechUpdate: "speech-update", + StatusUpdate: "status-update", + Transcript: "transcript", + TranscriptTranscriptTypeFinal: 'transcript[transcriptType="final"]', + ToolCalls: "tool-calls", + TransferDestinationRequest: "transfer-destination-request", + HandoffDestinationRequest: "handoff-destination-request", + TransferUpdate: "transfer-update", + UserInterrupted: "user-interrupted", + VoiceInput: "voice-input", + ChatCreated: "chat.created", + ChatDeleted: "chat.deleted", + SessionCreated: "session.created", + SessionUpdated: "session.updated", + SessionDeleted: "session.deleted", + CallDeleted: "call.deleted", + CallDeleteFailed: "call.delete.failed", +} as const; diff --git a/src/api/types/AssistantTranscriber.ts b/src/api/types/AssistantTranscriber.ts new file mode 100644 index 00000000..0c602005 --- /dev/null +++ b/src/api/types/AssistantTranscriber.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * These are the options for the assistant's transcriber. + */ +export type AssistantTranscriber = + | Vapi.AssemblyAiTranscriber + | Vapi.AzureSpeechTranscriber + | Vapi.CustomTranscriber + | Vapi.DeepgramTranscriber + | Vapi.ElevenLabsTranscriber + | Vapi.GladiaTranscriber + | Vapi.GoogleTranscriber + | Vapi.SpeechmaticsTranscriber + | Vapi.TalkscriberTranscriber + | Vapi.OpenAiTranscriber + | Vapi.CartesiaTranscriber; diff --git a/src/api/types/AssistantVoice.ts b/src/api/types/AssistantVoice.ts new file mode 100644 index 00000000..d3be78f1 --- /dev/null +++ b/src/api/types/AssistantVoice.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * These are the options for the assistant's voice. + */ +export type AssistantVoice = + | Vapi.AzureVoice + | Vapi.CartesiaVoice + | Vapi.CustomVoice + | Vapi.DeepgramVoice + | Vapi.ElevenLabsVoice + | Vapi.HumeVoice + | Vapi.LmntVoice + | Vapi.NeuphonicVoice + | Vapi.OpenAiVoice + | Vapi.PlayHtVoice + | Vapi.RimeAiVoice + | Vapi.SmallestAiVoice + | Vapi.TavusVoice + | Vapi.VapiVoice + | Vapi.SesameVoice + | Vapi.InworldVoice + | Vapi.MinimaxVoice; diff --git a/src/api/types/AssistantVoicemailDetection.ts b/src/api/types/AssistantVoicemailDetection.ts new file mode 100644 index 00000000..87dd82ae --- /dev/null +++ b/src/api/types/AssistantVoicemailDetection.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * These are the settings to configure or disable voicemail detection. Alternatively, voicemail detection can be configured using the model.tools=[VoicemailTool]. + * This uses Twilio's built-in detection while the VoicemailTool relies on the model to detect if a voicemail was reached. + * You can use neither of them, one of them, or both of them. By default, Twilio built-in detection is enabled while VoicemailTool is not. + */ +export type AssistantVoicemailDetection = + | Vapi.GoogleVoicemailDetectionPlan + | Vapi.OpenAiVoicemailDetectionPlan + | Vapi.TwilioVoicemailDetectionPlan + | Vapi.VapiVoicemailDetectionPlan; diff --git a/src/api/types/AzureCredential.ts b/src/api/types/AzureCredential.ts index c20fe856..f4e96003 100644 --- a/src/api/types/AzureCredential.ts +++ b/src/api/types/AzureCredential.ts @@ -7,9 +7,9 @@ import * as Vapi from "../index.js"; export interface AzureCredential { provider: "azure"; /** This is the service being used in Azure. */ - service: AzureCredential.Service; + service: Vapi.AzureCredentialService; /** This is the region of the Azure resource. */ - region?: AzureCredential.Region; + region?: Vapi.AzureCredentialRegion; /** This is not returned in the API. */ apiKey?: string; /** This is the order in which this storage provider is tried during upload retries. Lower numbers are tried first in increasing order. */ @@ -27,56 +27,3 @@ export interface AzureCredential { /** This is the bucket plan that can be provided to store call artifacts in Azure Blob Storage. */ bucketPlan?: Vapi.AzureBlobStorageBucketPlan; } - -export namespace AzureCredential { - /** - * This is the service being used in Azure. - */ - export type Service = "speech" | "blob_storage"; - export const Service = { - Speech: "speech", - BlobStorage: "blob_storage", - } as const; - /** - * This is the region of the Azure resource. - */ - export type Region = - | "australia" - | "canadaeast" - | "canadacentral" - | "eastus2" - | "eastus" - | "france" - | "india" - | "japaneast" - | "japanwest" - | "uaenorth" - | "northcentralus" - | "norway" - | "southcentralus" - | "swedencentral" - | "switzerland" - | "uk" - | "westus" - | "westus3"; - export const Region = { - Australia: "australia", - Canadaeast: "canadaeast", - Canadacentral: "canadacentral", - Eastus2: "eastus2", - Eastus: "eastus", - France: "france", - India: "india", - Japaneast: "japaneast", - Japanwest: "japanwest", - Uaenorth: "uaenorth", - Northcentralus: "northcentralus", - Norway: "norway", - Southcentralus: "southcentralus", - Swedencentral: "swedencentral", - Switzerland: "switzerland", - Uk: "uk", - Westus: "westus", - Westus3: "westus3", - } as const; -} diff --git a/src/api/types/AzureCredentialRegion.ts b/src/api/types/AzureCredentialRegion.ts new file mode 100644 index 00000000..aaa91951 --- /dev/null +++ b/src/api/types/AzureCredentialRegion.ts @@ -0,0 +1,46 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the region of the Azure resource. + */ +export type AzureCredentialRegion = + | "australia" + | "canadaeast" + | "canadacentral" + | "eastus2" + | "eastus" + | "france" + | "india" + | "japaneast" + | "japanwest" + | "uaenorth" + | "northcentralus" + | "norway" + | "southcentralus" + | "swedencentral" + | "switzerland" + | "uk" + | "westus" + | "westus3"; +export const AzureCredentialRegion = { + Australia: "australia", + Canadaeast: "canadaeast", + Canadacentral: "canadacentral", + Eastus2: "eastus2", + Eastus: "eastus", + France: "france", + India: "india", + Japaneast: "japaneast", + Japanwest: "japanwest", + Uaenorth: "uaenorth", + Northcentralus: "northcentralus", + Norway: "norway", + Southcentralus: "southcentralus", + Swedencentral: "swedencentral", + Switzerland: "switzerland", + Uk: "uk", + Westus: "westus", + Westus3: "westus3", +} as const; diff --git a/src/api/types/AzureCredentialService.ts b/src/api/types/AzureCredentialService.ts new file mode 100644 index 00000000..086f0e74 --- /dev/null +++ b/src/api/types/AzureCredentialService.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the service being used in Azure. + */ +export type AzureCredentialService = "speech" | "blob_storage"; +export const AzureCredentialService = { + Speech: "speech", + BlobStorage: "blob_storage", +} as const; diff --git a/src/api/types/AzureOpenAiCredential.ts b/src/api/types/AzureOpenAiCredential.ts index f7c12af3..001e114a 100644 --- a/src/api/types/AzureOpenAiCredential.ts +++ b/src/api/types/AzureOpenAiCredential.ts @@ -2,10 +2,12 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface AzureOpenAiCredential { provider: "azure-openai"; - region: AzureOpenAiCredential.Region; - models: AzureOpenAiCredential.Models.Item[]; + region: Vapi.AzureOpenAiCredentialRegion; + models: Vapi.AzureOpenAiCredentialModelsItem[]; /** This is not returned in the API. */ openAIKey: string; /** This is not returned in the API. */ @@ -22,84 +24,3 @@ export interface AzureOpenAiCredential { name?: string; openAIEndpoint: string; } - -export namespace AzureOpenAiCredential { - export type Region = - | "australia" - | "canadaeast" - | "canadacentral" - | "eastus2" - | "eastus" - | "france" - | "india" - | "japaneast" - | "japanwest" - | "uaenorth" - | "northcentralus" - | "norway" - | "southcentralus" - | "swedencentral" - | "switzerland" - | "uk" - | "westus" - | "westus3"; - export const Region = { - Australia: "australia", - Canadaeast: "canadaeast", - Canadacentral: "canadacentral", - Eastus2: "eastus2", - Eastus: "eastus", - France: "france", - India: "india", - Japaneast: "japaneast", - Japanwest: "japanwest", - Uaenorth: "uaenorth", - Northcentralus: "northcentralus", - Norway: "norway", - Southcentralus: "southcentralus", - Swedencentral: "swedencentral", - Switzerland: "switzerland", - Uk: "uk", - Westus: "westus", - Westus3: "westus3", - } as const; - export type Models = Models.Item[]; - - export namespace Models { - export type Item = - | "gpt-5" - | "gpt-5-mini" - | "gpt-5-nano" - | "gpt-4.1-2025-04-14" - | "gpt-4.1-mini-2025-04-14" - | "gpt-4.1-nano-2025-04-14" - | "gpt-4o-2024-11-20" - | "gpt-4o-2024-08-06" - | "gpt-4o-2024-05-13" - | "gpt-4o-mini-2024-07-18" - | "gpt-4-turbo-2024-04-09" - | "gpt-4-0125-preview" - | "gpt-4-1106-preview" - | "gpt-4-0613" - | "gpt-35-turbo-0125" - | "gpt-35-turbo-1106"; - export const Item = { - Gpt5: "gpt-5", - Gpt5Mini: "gpt-5-mini", - Gpt5Nano: "gpt-5-nano", - Gpt4120250414: "gpt-4.1-2025-04-14", - Gpt41Mini20250414: "gpt-4.1-mini-2025-04-14", - Gpt41Nano20250414: "gpt-4.1-nano-2025-04-14", - Gpt4O20241120: "gpt-4o-2024-11-20", - Gpt4O20240806: "gpt-4o-2024-08-06", - Gpt4O20240513: "gpt-4o-2024-05-13", - Gpt4OMini20240718: "gpt-4o-mini-2024-07-18", - Gpt4Turbo20240409: "gpt-4-turbo-2024-04-09", - Gpt40125Preview: "gpt-4-0125-preview", - Gpt41106Preview: "gpt-4-1106-preview", - Gpt40613: "gpt-4-0613", - Gpt35Turbo0125: "gpt-35-turbo-0125", - Gpt35Turbo1106: "gpt-35-turbo-1106", - } as const; - } -} diff --git a/src/api/types/AzureOpenAiCredentialModelsItem.ts b/src/api/types/AzureOpenAiCredentialModelsItem.ts new file mode 100644 index 00000000..f9bc22b6 --- /dev/null +++ b/src/api/types/AzureOpenAiCredentialModelsItem.ts @@ -0,0 +1,39 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type AzureOpenAiCredentialModelsItem = + | "gpt-5" + | "gpt-5-mini" + | "gpt-5-nano" + | "gpt-4.1-2025-04-14" + | "gpt-4.1-mini-2025-04-14" + | "gpt-4.1-nano-2025-04-14" + | "gpt-4o-2024-11-20" + | "gpt-4o-2024-08-06" + | "gpt-4o-2024-05-13" + | "gpt-4o-mini-2024-07-18" + | "gpt-4-turbo-2024-04-09" + | "gpt-4-0125-preview" + | "gpt-4-1106-preview" + | "gpt-4-0613" + | "gpt-35-turbo-0125" + | "gpt-35-turbo-1106"; +export const AzureOpenAiCredentialModelsItem = { + Gpt5: "gpt-5", + Gpt5Mini: "gpt-5-mini", + Gpt5Nano: "gpt-5-nano", + Gpt4120250414: "gpt-4.1-2025-04-14", + Gpt41Mini20250414: "gpt-4.1-mini-2025-04-14", + Gpt41Nano20250414: "gpt-4.1-nano-2025-04-14", + Gpt4O20241120: "gpt-4o-2024-11-20", + Gpt4O20240806: "gpt-4o-2024-08-06", + Gpt4O20240513: "gpt-4o-2024-05-13", + Gpt4OMini20240718: "gpt-4o-mini-2024-07-18", + Gpt4Turbo20240409: "gpt-4-turbo-2024-04-09", + Gpt40125Preview: "gpt-4-0125-preview", + Gpt41106Preview: "gpt-4-1106-preview", + Gpt40613: "gpt-4-0613", + Gpt35Turbo0125: "gpt-35-turbo-0125", + Gpt35Turbo1106: "gpt-35-turbo-1106", +} as const; diff --git a/src/api/types/AzureOpenAiCredentialRegion.ts b/src/api/types/AzureOpenAiCredentialRegion.ts new file mode 100644 index 00000000..0b0b0788 --- /dev/null +++ b/src/api/types/AzureOpenAiCredentialRegion.ts @@ -0,0 +1,43 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type AzureOpenAiCredentialRegion = + | "australia" + | "canadaeast" + | "canadacentral" + | "eastus2" + | "eastus" + | "france" + | "india" + | "japaneast" + | "japanwest" + | "uaenorth" + | "northcentralus" + | "norway" + | "southcentralus" + | "swedencentral" + | "switzerland" + | "uk" + | "westus" + | "westus3"; +export const AzureOpenAiCredentialRegion = { + Australia: "australia", + Canadaeast: "canadaeast", + Canadacentral: "canadacentral", + Eastus2: "eastus2", + Eastus: "eastus", + France: "france", + India: "india", + Japaneast: "japaneast", + Japanwest: "japanwest", + Uaenorth: "uaenorth", + Northcentralus: "northcentralus", + Norway: "norway", + Southcentralus: "southcentralus", + Swedencentral: "swedencentral", + Switzerland: "switzerland", + Uk: "uk", + Westus: "westus", + Westus3: "westus3", +} as const; diff --git a/src/api/types/AzureSpeechTranscriber.ts b/src/api/types/AzureSpeechTranscriber.ts index db60411b..37e6681e 100644 --- a/src/api/types/AzureSpeechTranscriber.ts +++ b/src/api/types/AzureSpeechTranscriber.ts @@ -8,9 +8,9 @@ export interface AzureSpeechTranscriber { /** This is the transcription provider that will be used. */ provider: "azure"; /** This is the language that will be set for the transcription. The list of languages Azure supports can be found here: https://learn.microsoft.com/en-us/azure/ai-services/speech-service/language-support?tabs=stt */ - language?: AzureSpeechTranscriber.Language; + language?: Vapi.AzureSpeechTranscriberLanguage; /** Controls how phrase boundaries are detected, enabling either simple time/silence heuristics or more advanced semantic segmentation. */ - segmentationStrategy?: AzureSpeechTranscriber.SegmentationStrategy; + segmentationStrategy?: Vapi.AzureSpeechTranscriberSegmentationStrategy; /** Duration of detected silence after which the service finalizes a phrase. Configure to adjust sensitivity to pauses in speech. */ segmentationSilenceTimeoutMs?: number; /** Maximum duration a segment can reach before being cut off when using time-based segmentation. */ @@ -18,307 +18,3 @@ export interface AzureSpeechTranscriber { /** This is the plan for voice provider fallbacks in the event that the primary voice provider fails. */ fallbackPlan?: Vapi.FallbackTranscriberPlan; } - -export namespace AzureSpeechTranscriber { - /** - * This is the language that will be set for the transcription. The list of languages Azure supports can be found here: https://learn.microsoft.com/en-us/azure/ai-services/speech-service/language-support?tabs=stt - */ - export type Language = - | "af-ZA" - | "am-ET" - | "ar-AE" - | "ar-BH" - | "ar-DZ" - | "ar-EG" - | "ar-IL" - | "ar-IQ" - | "ar-JO" - | "ar-KW" - | "ar-LB" - | "ar-LY" - | "ar-MA" - | "ar-OM" - | "ar-PS" - | "ar-QA" - | "ar-SA" - | "ar-SY" - | "ar-TN" - | "ar-YE" - | "az-AZ" - | "bg-BG" - | "bn-IN" - | "bs-BA" - | "ca-ES" - | "cs-CZ" - | "cy-GB" - | "da-DK" - | "de-AT" - | "de-CH" - | "de-DE" - | "el-GR" - | "en-AU" - | "en-CA" - | "en-GB" - | "en-GH" - | "en-HK" - | "en-IE" - | "en-IN" - | "en-KE" - | "en-NG" - | "en-NZ" - | "en-PH" - | "en-SG" - | "en-TZ" - | "en-US" - | "en-ZA" - | "es-AR" - | "es-BO" - | "es-CL" - | "es-CO" - | "es-CR" - | "es-CU" - | "es-DO" - | "es-EC" - | "es-ES" - | "es-GQ" - | "es-GT" - | "es-HN" - | "es-MX" - | "es-NI" - | "es-PA" - | "es-PE" - | "es-PR" - | "es-PY" - | "es-SV" - | "es-US" - | "es-UY" - | "es-VE" - | "et-EE" - | "eu-ES" - | "fa-IR" - | "fi-FI" - | "fil-PH" - | "fr-BE" - | "fr-CA" - | "fr-CH" - | "fr-FR" - | "ga-IE" - | "gl-ES" - | "gu-IN" - | "he-IL" - | "hi-IN" - | "hr-HR" - | "hu-HU" - | "hy-AM" - | "id-ID" - | "is-IS" - | "it-CH" - | "it-IT" - | "ja-JP" - | "jv-ID" - | "ka-GE" - | "kk-KZ" - | "km-KH" - | "kn-IN" - | "ko-KR" - | "lo-LA" - | "lt-LT" - | "lv-LV" - | "mk-MK" - | "ml-IN" - | "mn-MN" - | "mr-IN" - | "ms-MY" - | "mt-MT" - | "my-MM" - | "nb-NO" - | "ne-NP" - | "nl-BE" - | "nl-NL" - | "pa-IN" - | "pl-PL" - | "ps-AF" - | "pt-BR" - | "pt-PT" - | "ro-RO" - | "ru-RU" - | "si-LK" - | "sk-SK" - | "sl-SI" - | "so-SO" - | "sq-AL" - | "sr-RS" - | "sv-SE" - | "sw-KE" - | "sw-TZ" - | "ta-IN" - | "te-IN" - | "th-TH" - | "tr-TR" - | "uk-UA" - | "ur-IN" - | "uz-UZ" - | "vi-VN" - | "wuu-CN" - | "yue-CN" - | "zh-CN" - | "zh-CN-shandong" - | "zh-CN-sichuan" - | "zh-HK" - | "zh-TW" - | "zu-ZA"; - export const Language = { - AfZa: "af-ZA", - AmEt: "am-ET", - ArAe: "ar-AE", - ArBh: "ar-BH", - ArDz: "ar-DZ", - ArEg: "ar-EG", - ArIl: "ar-IL", - ArIq: "ar-IQ", - ArJo: "ar-JO", - ArKw: "ar-KW", - ArLb: "ar-LB", - ArLy: "ar-LY", - ArMa: "ar-MA", - ArOm: "ar-OM", - ArPs: "ar-PS", - ArQa: "ar-QA", - ArSa: "ar-SA", - ArSy: "ar-SY", - ArTn: "ar-TN", - ArYe: "ar-YE", - AzAz: "az-AZ", - BgBg: "bg-BG", - BnIn: "bn-IN", - BsBa: "bs-BA", - CaEs: "ca-ES", - CsCz: "cs-CZ", - CyGb: "cy-GB", - DaDk: "da-DK", - DeAt: "de-AT", - DeCh: "de-CH", - DeDe: "de-DE", - ElGr: "el-GR", - EnAu: "en-AU", - EnCa: "en-CA", - EnGb: "en-GB", - EnGh: "en-GH", - EnHk: "en-HK", - EnIe: "en-IE", - EnIn: "en-IN", - EnKe: "en-KE", - EnNg: "en-NG", - EnNz: "en-NZ", - EnPh: "en-PH", - EnSg: "en-SG", - EnTz: "en-TZ", - EnUs: "en-US", - EnZa: "en-ZA", - EsAr: "es-AR", - EsBo: "es-BO", - EsCl: "es-CL", - EsCo: "es-CO", - EsCr: "es-CR", - EsCu: "es-CU", - EsDo: "es-DO", - EsEc: "es-EC", - EsEs: "es-ES", - EsGq: "es-GQ", - EsGt: "es-GT", - EsHn: "es-HN", - EsMx: "es-MX", - EsNi: "es-NI", - EsPa: "es-PA", - EsPe: "es-PE", - EsPr: "es-PR", - EsPy: "es-PY", - EsSv: "es-SV", - EsUs: "es-US", - EsUy: "es-UY", - EsVe: "es-VE", - EtEe: "et-EE", - EuEs: "eu-ES", - FaIr: "fa-IR", - FiFi: "fi-FI", - FilPh: "fil-PH", - FrBe: "fr-BE", - FrCa: "fr-CA", - FrCh: "fr-CH", - FrFr: "fr-FR", - GaIe: "ga-IE", - GlEs: "gl-ES", - GuIn: "gu-IN", - HeIl: "he-IL", - HiIn: "hi-IN", - HrHr: "hr-HR", - HuHu: "hu-HU", - HyAm: "hy-AM", - IdId: "id-ID", - IsIs: "is-IS", - ItCh: "it-CH", - ItIt: "it-IT", - JaJp: "ja-JP", - JvId: "jv-ID", - KaGe: "ka-GE", - KkKz: "kk-KZ", - KmKh: "km-KH", - KnIn: "kn-IN", - KoKr: "ko-KR", - LoLa: "lo-LA", - LtLt: "lt-LT", - LvLv: "lv-LV", - MkMk: "mk-MK", - MlIn: "ml-IN", - MnMn: "mn-MN", - MrIn: "mr-IN", - MsMy: "ms-MY", - MtMt: "mt-MT", - MyMm: "my-MM", - NbNo: "nb-NO", - NeNp: "ne-NP", - NlBe: "nl-BE", - NlNl: "nl-NL", - PaIn: "pa-IN", - PlPl: "pl-PL", - PsAf: "ps-AF", - PtBr: "pt-BR", - PtPt: "pt-PT", - RoRo: "ro-RO", - RuRu: "ru-RU", - SiLk: "si-LK", - SkSk: "sk-SK", - SlSi: "sl-SI", - SoSo: "so-SO", - SqAl: "sq-AL", - SrRs: "sr-RS", - SvSe: "sv-SE", - SwKe: "sw-KE", - SwTz: "sw-TZ", - TaIn: "ta-IN", - TeIn: "te-IN", - ThTh: "th-TH", - TrTr: "tr-TR", - UkUa: "uk-UA", - UrIn: "ur-IN", - UzUz: "uz-UZ", - ViVn: "vi-VN", - WuuCn: "wuu-CN", - YueCn: "yue-CN", - ZhCn: "zh-CN", - ZhCnShandong: "zh-CN-shandong", - ZhCnSichuan: "zh-CN-sichuan", - ZhHk: "zh-HK", - ZhTw: "zh-TW", - ZuZa: "zu-ZA", - } as const; - /** - * Controls how phrase boundaries are detected, enabling either simple time/silence heuristics or more advanced semantic segmentation. - */ - export type SegmentationStrategy = "Default" | "Time" | "Semantic"; - export const SegmentationStrategy = { - Default: "Default", - Time: "Time", - Semantic: "Semantic", - } as const; -} diff --git a/src/api/types/AzureSpeechTranscriberLanguage.ts b/src/api/types/AzureSpeechTranscriberLanguage.ts new file mode 100644 index 00000000..ee491348 --- /dev/null +++ b/src/api/types/AzureSpeechTranscriberLanguage.ts @@ -0,0 +1,296 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the language that will be set for the transcription. The list of languages Azure supports can be found here: https://learn.microsoft.com/en-us/azure/ai-services/speech-service/language-support?tabs=stt + */ +export type AzureSpeechTranscriberLanguage = + | "af-ZA" + | "am-ET" + | "ar-AE" + | "ar-BH" + | "ar-DZ" + | "ar-EG" + | "ar-IL" + | "ar-IQ" + | "ar-JO" + | "ar-KW" + | "ar-LB" + | "ar-LY" + | "ar-MA" + | "ar-OM" + | "ar-PS" + | "ar-QA" + | "ar-SA" + | "ar-SY" + | "ar-TN" + | "ar-YE" + | "az-AZ" + | "bg-BG" + | "bn-IN" + | "bs-BA" + | "ca-ES" + | "cs-CZ" + | "cy-GB" + | "da-DK" + | "de-AT" + | "de-CH" + | "de-DE" + | "el-GR" + | "en-AU" + | "en-CA" + | "en-GB" + | "en-GH" + | "en-HK" + | "en-IE" + | "en-IN" + | "en-KE" + | "en-NG" + | "en-NZ" + | "en-PH" + | "en-SG" + | "en-TZ" + | "en-US" + | "en-ZA" + | "es-AR" + | "es-BO" + | "es-CL" + | "es-CO" + | "es-CR" + | "es-CU" + | "es-DO" + | "es-EC" + | "es-ES" + | "es-GQ" + | "es-GT" + | "es-HN" + | "es-MX" + | "es-NI" + | "es-PA" + | "es-PE" + | "es-PR" + | "es-PY" + | "es-SV" + | "es-US" + | "es-UY" + | "es-VE" + | "et-EE" + | "eu-ES" + | "fa-IR" + | "fi-FI" + | "fil-PH" + | "fr-BE" + | "fr-CA" + | "fr-CH" + | "fr-FR" + | "ga-IE" + | "gl-ES" + | "gu-IN" + | "he-IL" + | "hi-IN" + | "hr-HR" + | "hu-HU" + | "hy-AM" + | "id-ID" + | "is-IS" + | "it-CH" + | "it-IT" + | "ja-JP" + | "jv-ID" + | "ka-GE" + | "kk-KZ" + | "km-KH" + | "kn-IN" + | "ko-KR" + | "lo-LA" + | "lt-LT" + | "lv-LV" + | "mk-MK" + | "ml-IN" + | "mn-MN" + | "mr-IN" + | "ms-MY" + | "mt-MT" + | "my-MM" + | "nb-NO" + | "ne-NP" + | "nl-BE" + | "nl-NL" + | "pa-IN" + | "pl-PL" + | "ps-AF" + | "pt-BR" + | "pt-PT" + | "ro-RO" + | "ru-RU" + | "si-LK" + | "sk-SK" + | "sl-SI" + | "so-SO" + | "sq-AL" + | "sr-RS" + | "sv-SE" + | "sw-KE" + | "sw-TZ" + | "ta-IN" + | "te-IN" + | "th-TH" + | "tr-TR" + | "uk-UA" + | "ur-IN" + | "uz-UZ" + | "vi-VN" + | "wuu-CN" + | "yue-CN" + | "zh-CN" + | "zh-CN-shandong" + | "zh-CN-sichuan" + | "zh-HK" + | "zh-TW" + | "zu-ZA"; +export const AzureSpeechTranscriberLanguage = { + AfZa: "af-ZA", + AmEt: "am-ET", + ArAe: "ar-AE", + ArBh: "ar-BH", + ArDz: "ar-DZ", + ArEg: "ar-EG", + ArIl: "ar-IL", + ArIq: "ar-IQ", + ArJo: "ar-JO", + ArKw: "ar-KW", + ArLb: "ar-LB", + ArLy: "ar-LY", + ArMa: "ar-MA", + ArOm: "ar-OM", + ArPs: "ar-PS", + ArQa: "ar-QA", + ArSa: "ar-SA", + ArSy: "ar-SY", + ArTn: "ar-TN", + ArYe: "ar-YE", + AzAz: "az-AZ", + BgBg: "bg-BG", + BnIn: "bn-IN", + BsBa: "bs-BA", + CaEs: "ca-ES", + CsCz: "cs-CZ", + CyGb: "cy-GB", + DaDk: "da-DK", + DeAt: "de-AT", + DeCh: "de-CH", + DeDe: "de-DE", + ElGr: "el-GR", + EnAu: "en-AU", + EnCa: "en-CA", + EnGb: "en-GB", + EnGh: "en-GH", + EnHk: "en-HK", + EnIe: "en-IE", + EnIn: "en-IN", + EnKe: "en-KE", + EnNg: "en-NG", + EnNz: "en-NZ", + EnPh: "en-PH", + EnSg: "en-SG", + EnTz: "en-TZ", + EnUs: "en-US", + EnZa: "en-ZA", + EsAr: "es-AR", + EsBo: "es-BO", + EsCl: "es-CL", + EsCo: "es-CO", + EsCr: "es-CR", + EsCu: "es-CU", + EsDo: "es-DO", + EsEc: "es-EC", + EsEs: "es-ES", + EsGq: "es-GQ", + EsGt: "es-GT", + EsHn: "es-HN", + EsMx: "es-MX", + EsNi: "es-NI", + EsPa: "es-PA", + EsPe: "es-PE", + EsPr: "es-PR", + EsPy: "es-PY", + EsSv: "es-SV", + EsUs: "es-US", + EsUy: "es-UY", + EsVe: "es-VE", + EtEe: "et-EE", + EuEs: "eu-ES", + FaIr: "fa-IR", + FiFi: "fi-FI", + FilPh: "fil-PH", + FrBe: "fr-BE", + FrCa: "fr-CA", + FrCh: "fr-CH", + FrFr: "fr-FR", + GaIe: "ga-IE", + GlEs: "gl-ES", + GuIn: "gu-IN", + HeIl: "he-IL", + HiIn: "hi-IN", + HrHr: "hr-HR", + HuHu: "hu-HU", + HyAm: "hy-AM", + IdId: "id-ID", + IsIs: "is-IS", + ItCh: "it-CH", + ItIt: "it-IT", + JaJp: "ja-JP", + JvId: "jv-ID", + KaGe: "ka-GE", + KkKz: "kk-KZ", + KmKh: "km-KH", + KnIn: "kn-IN", + KoKr: "ko-KR", + LoLa: "lo-LA", + LtLt: "lt-LT", + LvLv: "lv-LV", + MkMk: "mk-MK", + MlIn: "ml-IN", + MnMn: "mn-MN", + MrIn: "mr-IN", + MsMy: "ms-MY", + MtMt: "mt-MT", + MyMm: "my-MM", + NbNo: "nb-NO", + NeNp: "ne-NP", + NlBe: "nl-BE", + NlNl: "nl-NL", + PaIn: "pa-IN", + PlPl: "pl-PL", + PsAf: "ps-AF", + PtBr: "pt-BR", + PtPt: "pt-PT", + RoRo: "ro-RO", + RuRu: "ru-RU", + SiLk: "si-LK", + SkSk: "sk-SK", + SlSi: "sl-SI", + SoSo: "so-SO", + SqAl: "sq-AL", + SrRs: "sr-RS", + SvSe: "sv-SE", + SwKe: "sw-KE", + SwTz: "sw-TZ", + TaIn: "ta-IN", + TeIn: "te-IN", + ThTh: "th-TH", + TrTr: "tr-TR", + UkUa: "uk-UA", + UrIn: "ur-IN", + UzUz: "uz-UZ", + ViVn: "vi-VN", + WuuCn: "wuu-CN", + YueCn: "yue-CN", + ZhCn: "zh-CN", + ZhCnShandong: "zh-CN-shandong", + ZhCnSichuan: "zh-CN-sichuan", + ZhHk: "zh-HK", + ZhTw: "zh-TW", + ZuZa: "zu-ZA", +} as const; diff --git a/src/api/types/AzureSpeechTranscriberSegmentationStrategy.ts b/src/api/types/AzureSpeechTranscriberSegmentationStrategy.ts new file mode 100644 index 00000000..22f957fb --- /dev/null +++ b/src/api/types/AzureSpeechTranscriberSegmentationStrategy.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Controls how phrase boundaries are detected, enabling either simple time/silence heuristics or more advanced semantic segmentation. + */ +export type AzureSpeechTranscriberSegmentationStrategy = "Default" | "Time" | "Semantic"; +export const AzureSpeechTranscriberSegmentationStrategy = { + Default: "Default", + Time: "Time", + Semantic: "Semantic", +} as const; diff --git a/src/api/types/AzureVoice.ts b/src/api/types/AzureVoice.ts index 856f05bc..c745b0a0 100644 --- a/src/api/types/AzureVoice.ts +++ b/src/api/types/AzureVoice.ts @@ -10,7 +10,7 @@ export interface AzureVoice { /** This is the voice provider that will be used. */ provider: "azure"; /** This is the provider-specific ID that will be used. */ - voiceId: AzureVoice.VoiceId; + voiceId: Vapi.AzureVoiceId; /** This is the plan for chunking the model output before it is sent to the voice provider. */ chunkPlan?: Vapi.ChunkPlan; /** This is the speed multiplier that will be used. */ @@ -18,10 +18,3 @@ export interface AzureVoice { /** This is the plan for voice provider fallbacks in the event that the primary voice provider fails. */ fallbackPlan?: Vapi.FallbackPlan; } - -export namespace AzureVoice { - /** - * This is the provider-specific ID that will be used. - */ - export type VoiceId = ("andrew" | "brian" | "emma") | string; -} diff --git a/src/api/types/AzureVoiceId.ts b/src/api/types/AzureVoiceId.ts new file mode 100644 index 00000000..7da23e7e --- /dev/null +++ b/src/api/types/AzureVoiceId.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the provider-specific ID that will be used. + */ +export type AzureVoiceId = Vapi.AzureVoiceIdEnum | string; diff --git a/src/api/types/AzureVoiceIdEnum.ts b/src/api/types/AzureVoiceIdEnum.ts new file mode 100644 index 00000000..77b85333 --- /dev/null +++ b/src/api/types/AzureVoiceIdEnum.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type AzureVoiceIdEnum = "andrew" | "brian" | "emma"; +export const AzureVoiceIdEnum = { + Andrew: "andrew", + Brian: "brian", + Emma: "emma", +} as const; diff --git a/src/api/types/BashTool.ts b/src/api/types/BashTool.ts index b1d89aa8..aaa71953 100644 --- a/src/api/types/BashTool.ts +++ b/src/api/types/BashTool.ts @@ -10,7 +10,7 @@ export interface BashTool { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: BashTool.Messages.Item[]; + messages?: Vapi.BashToolMessagesItem[]; type: "bash"; /** The sub type of tool. */ subType: "bash_20241022"; @@ -117,15 +117,3 @@ export interface BashTool { /** The name of the tool, fixed to 'bash' */ name: "bash"; } - -export namespace BashTool { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/BashToolMessagesItem.ts b/src/api/types/BashToolMessagesItem.ts new file mode 100644 index 00000000..b28f0009 --- /dev/null +++ b/src/api/types/BashToolMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type BashToolMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/BashToolWithToolCall.ts b/src/api/types/BashToolWithToolCall.ts index 73d75704..19049fbe 100644 --- a/src/api/types/BashToolWithToolCall.ts +++ b/src/api/types/BashToolWithToolCall.ts @@ -10,7 +10,7 @@ export interface BashToolWithToolCall { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: BashToolWithToolCall.Messages.Item[]; + messages?: Vapi.BashToolWithToolCallMessagesItem[]; /** The type of tool. "bash" for Bash tool. */ type: "bash"; /** The sub type of tool. */ @@ -111,15 +111,3 @@ export interface BashToolWithToolCall { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace BashToolWithToolCall { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/BashToolWithToolCallMessagesItem.ts b/src/api/types/BashToolWithToolCallMessagesItem.ts new file mode 100644 index 00000000..3c19ebbc --- /dev/null +++ b/src/api/types/BashToolWithToolCallMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type BashToolWithToolCallMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/ByoPhoneNumber.ts b/src/api/types/ByoPhoneNumber.ts index 334721e3..28957378 100644 --- a/src/api/types/ByoPhoneNumber.ts +++ b/src/api/types/ByoPhoneNumber.ts @@ -13,9 +13,9 @@ export interface ByoPhoneNumber { * * If this is not set and above conditions are met, the inbound call is hung up with an error message. */ - fallbackDestination?: ByoPhoneNumber.FallbackDestination; + fallbackDestination?: Vapi.ByoPhoneNumberFallbackDestination; /** This is the hooks that will be used for incoming calls to this phone number. */ - hooks?: ByoPhoneNumber.Hooks.Item[]; + hooks?: Vapi.ByoPhoneNumberHooksItem[]; provider: "byo-phone-number"; /** * This is the flag to toggle the E164 check for the `number` field. This is an advanced property which should be used if you know your use case requires it. @@ -38,7 +38,7 @@ export interface ByoPhoneNumber { /** This is the ISO 8601 date-time string of when the phone number was last updated. */ updatedAt: string; /** This is the status of the phone number. */ - status?: ByoPhoneNumber.Status; + status?: Vapi.ByoPhoneNumberStatus; /** This is the name of the phone number. This is just for your own reference. */ name?: string; /** @@ -78,30 +78,3 @@ export interface ByoPhoneNumber { */ credentialId: string; } - -export namespace ByoPhoneNumber { - /** - * This is the fallback destination an inbound call will be transferred to if: - * 1. `assistantId` is not set - * 2. `squadId` is not set - * 3. and, `assistant-request` message to the `serverUrl` fails - * - * If this is not set and above conditions are met, the inbound call is hung up with an error message. - */ - export type FallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; - export type Hooks = Hooks.Item[]; - - export namespace Hooks { - export type Item = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; - } - - /** - * This is the status of the phone number. - */ - export type Status = "active" | "activating" | "blocked"; - export const Status = { - Active: "active", - Activating: "activating", - Blocked: "blocked", - } as const; -} diff --git a/src/api/types/ByoPhoneNumberFallbackDestination.ts b/src/api/types/ByoPhoneNumberFallbackDestination.ts new file mode 100644 index 00000000..c639349e --- /dev/null +++ b/src/api/types/ByoPhoneNumberFallbackDestination.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the fallback destination an inbound call will be transferred to if: + * 1. `assistantId` is not set + * 2. `squadId` is not set + * 3. and, `assistant-request` message to the `serverUrl` fails + * + * If this is not set and above conditions are met, the inbound call is hung up with an error message. + */ +export type ByoPhoneNumberFallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; diff --git a/src/api/types/ByoPhoneNumberHooksItem.ts b/src/api/types/ByoPhoneNumberHooksItem.ts new file mode 100644 index 00000000..213e0c87 --- /dev/null +++ b/src/api/types/ByoPhoneNumberHooksItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type ByoPhoneNumberHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; diff --git a/src/api/types/ByoPhoneNumberStatus.ts b/src/api/types/ByoPhoneNumberStatus.ts new file mode 100644 index 00000000..7a49efec --- /dev/null +++ b/src/api/types/ByoPhoneNumberStatus.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the status of the phone number. + */ +export type ByoPhoneNumberStatus = "active" | "activating" | "blocked"; +export const ByoPhoneNumberStatus = { + Active: "active", + Activating: "activating", + Blocked: "blocked", +} as const; diff --git a/src/api/types/Call.ts b/src/api/types/Call.ts index 4fac1db0..338c8bdd 100644 --- a/src/api/types/Call.ts +++ b/src/api/types/Call.ts @@ -6,28 +6,28 @@ import * as Vapi from "../index.js"; export interface Call { /** This is the type of call. */ - type?: Call.Type; + type?: Vapi.CallType; /** These are the costs of individual components of the call in USD. */ - costs?: Call.Costs.Item[]; - messages?: Call.Messages.Item[]; + costs?: Vapi.CallCostsItem[]; + messages?: Vapi.CallMessagesItem[]; /** * This is the provider of the call. * * Only relevant for `outboundPhoneCall` and `inboundPhoneCall` type. */ - phoneCallProvider?: Call.PhoneCallProvider; + phoneCallProvider?: Vapi.CallPhoneCallProvider; /** * This is the transport of the phone call. * * Only relevant for `outboundPhoneCall` and `inboundPhoneCall` type. */ - phoneCallTransport?: Call.PhoneCallTransport; + phoneCallTransport?: Vapi.CallPhoneCallTransport; /** This is the status of the call. */ - status?: Call.Status; + status?: Vapi.CallStatus; /** This is the explanation for how the call ended. */ - endedReason?: Call.EndedReason; + endedReason?: Vapi.CallEndedReason; /** This is the destination where the call ended up being transferred to. If the call was not transferred, this will be empty. */ - destination?: Call.Destination; + destination?: Vapi.CallDestination; /** This is the unique identifier for the call. */ id: string; /** This is the unique identifier for the org that this call belongs to. */ @@ -151,1367 +151,3 @@ export interface Call { /** This is the transport of the call. */ transport?: Record; } - -export namespace Call { - /** - * This is the type of call. - */ - export type Type = "inboundPhoneCall" | "outboundPhoneCall" | "webCall" | "vapi.websocketCall"; - export const Type = { - InboundPhoneCall: "inboundPhoneCall", - OutboundPhoneCall: "outboundPhoneCall", - WebCall: "webCall", - VapiWebsocketCall: "vapi.websocketCall", - } as const; - export type Costs = Costs.Item[]; - - export namespace Costs { - export type Item = - | Vapi.TransportCost - | Vapi.TranscriberCost - | Vapi.ModelCost - | Vapi.VoiceCost - | Vapi.VapiCost - | Vapi.VoicemailDetectionCost - | Vapi.AnalysisCost - | Vapi.KnowledgeBaseCost; - } - - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.UserMessage - | Vapi.SystemMessage - | Vapi.BotMessage - | Vapi.ToolCallMessage - | Vapi.ToolCallResultMessage; - } - - /** - * This is the provider of the call. - * - * Only relevant for `outboundPhoneCall` and `inboundPhoneCall` type. - */ - export type PhoneCallProvider = "twilio" | "vonage" | "vapi" | "telnyx"; - export const PhoneCallProvider = { - Twilio: "twilio", - Vonage: "vonage", - Vapi: "vapi", - Telnyx: "telnyx", - } as const; - /** - * This is the transport of the phone call. - * - * Only relevant for `outboundPhoneCall` and `inboundPhoneCall` type. - */ - export type PhoneCallTransport = "sip" | "pstn"; - export const PhoneCallTransport = { - Sip: "sip", - Pstn: "pstn", - } as const; - /** - * This is the status of the call. - */ - export type Status = - | "scheduled" - | "queued" - | "ringing" - | "in-progress" - | "forwarding" - | "ended" - | "not-found" - | "deletion-failed"; - export const Status = { - Scheduled: "scheduled", - Queued: "queued", - Ringing: "ringing", - InProgress: "in-progress", - Forwarding: "forwarding", - Ended: "ended", - NotFound: "not-found", - DeletionFailed: "deletion-failed", - } as const; - /** - * This is the explanation for how the call ended. - */ - export type EndedReason = - | "call-start-error-neither-assistant-nor-server-set" - | "assistant-request-failed" - | "assistant-request-returned-error" - | "assistant-request-returned-unspeakable-error" - | "assistant-request-returned-invalid-assistant" - | "assistant-request-returned-no-assistant" - | "assistant-request-returned-forwarding-phone-number" - | "scheduled-call-deleted" - | "call.start.error-vapifault-get-org" - | "call.start.error-vapifault-get-subscription" - | "call.start.error-get-assistant" - | "call.start.error-get-phone-number" - | "call.start.error-get-customer" - | "call.start.error-get-resources-validation" - | "call.start.error-vapi-number-international" - | "call.start.error-vapi-number-outbound-daily-limit" - | "call.start.error-get-transport" - | "call.start.error-subscription-wallet-does-not-exist" - | "call.start.error-fraud-check-failed" - | "call.start.error-subscription-frozen" - | "call.start.error-subscription-insufficient-credits" - | "call.start.error-subscription-upgrade-failed" - | "call.start.error-subscription-concurrency-limit-reached" - | "call.start.error-enterprise-feature-not-available-recording-consent" - | "assistant-not-valid" - | "call.start.error-vapifault-database-error" - | "assistant-not-found" - | "pipeline-error-openai-voice-failed" - | "pipeline-error-cartesia-voice-failed" - | "pipeline-error-deepgram-voice-failed" - | "pipeline-error-eleven-labs-voice-failed" - | "pipeline-error-playht-voice-failed" - | "pipeline-error-lmnt-voice-failed" - | "pipeline-error-azure-voice-failed" - | "pipeline-error-rime-ai-voice-failed" - | "pipeline-error-smallest-ai-voice-failed" - | "pipeline-error-neuphonic-voice-failed" - | "pipeline-error-hume-voice-failed" - | "pipeline-error-sesame-voice-failed" - | "pipeline-error-inworld-voice-failed" - | "pipeline-error-minimax-voice-failed" - | "pipeline-error-tavus-video-failed" - | "call.in-progress.error-vapifault-openai-voice-failed" - | "call.in-progress.error-vapifault-cartesia-voice-failed" - | "call.in-progress.error-vapifault-deepgram-voice-failed" - | "call.in-progress.error-vapifault-eleven-labs-voice-failed" - | "call.in-progress.error-vapifault-playht-voice-failed" - | "call.in-progress.error-vapifault-lmnt-voice-failed" - | "call.in-progress.error-vapifault-azure-voice-failed" - | "call.in-progress.error-vapifault-rime-ai-voice-failed" - | "call.in-progress.error-vapifault-smallest-ai-voice-failed" - | "call.in-progress.error-vapifault-neuphonic-voice-failed" - | "call.in-progress.error-vapifault-hume-voice-failed" - | "call.in-progress.error-vapifault-sesame-voice-failed" - | "call.in-progress.error-vapifault-inworld-voice-failed" - | "call.in-progress.error-vapifault-minimax-voice-failed" - | "call.in-progress.error-vapifault-tavus-video-failed" - | "pipeline-error-vapi-llm-failed" - | "pipeline-error-vapi-400-bad-request-validation-failed" - | "pipeline-error-vapi-401-unauthorized" - | "pipeline-error-vapi-403-model-access-denied" - | "pipeline-error-vapi-429-exceeded-quota" - | "pipeline-error-vapi-500-server-error" - | "pipeline-error-vapi-503-server-overloaded-error" - | "call.in-progress.error-providerfault-vapi-llm-failed" - | "call.in-progress.error-vapifault-vapi-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-vapi-401-unauthorized" - | "call.in-progress.error-vapifault-vapi-403-model-access-denied" - | "call.in-progress.error-vapifault-vapi-429-exceeded-quota" - | "call.in-progress.error-providerfault-vapi-500-server-error" - | "call.in-progress.error-providerfault-vapi-503-server-overloaded-error" - | "pipeline-error-deepgram-transcriber-failed" - | "pipeline-error-deepgram-transcriber-api-key-missing" - | "call.in-progress.error-vapifault-deepgram-transcriber-failed" - | "pipeline-error-gladia-transcriber-failed" - | "call.in-progress.error-vapifault-gladia-transcriber-failed" - | "pipeline-error-speechmatics-transcriber-failed" - | "call.in-progress.error-vapifault-speechmatics-transcriber-failed" - | "pipeline-error-assembly-ai-transcriber-failed" - | "pipeline-error-assembly-ai-returning-400-insufficent-funds" - | "pipeline-error-assembly-ai-returning-400-paid-only-feature" - | "pipeline-error-assembly-ai-returning-401-invalid-credentials" - | "pipeline-error-assembly-ai-returning-500-invalid-schema" - | "pipeline-error-assembly-ai-returning-500-word-boost-parsing-failed" - | "call.in-progress.error-vapifault-assembly-ai-transcriber-failed" - | "call.in-progress.error-vapifault-assembly-ai-returning-400-insufficent-funds" - | "call.in-progress.error-vapifault-assembly-ai-returning-400-paid-only-feature" - | "call.in-progress.error-vapifault-assembly-ai-returning-401-invalid-credentials" - | "call.in-progress.error-vapifault-assembly-ai-returning-500-invalid-schema" - | "call.in-progress.error-vapifault-assembly-ai-returning-500-word-boost-parsing-failed" - | "pipeline-error-talkscriber-transcriber-failed" - | "call.in-progress.error-vapifault-talkscriber-transcriber-failed" - | "pipeline-error-azure-speech-transcriber-failed" - | "call.in-progress.error-vapifault-azure-speech-transcriber-failed" - | "call.in-progress.error-pipeline-no-available-llm-model" - | "worker-shutdown" - | "vonage-disconnected" - | "vonage-failed-to-connect-call" - | "vonage-completed" - | "phone-call-provider-bypass-enabled-but-no-call-received" - | "call.in-progress.error-providerfault-transport-never-connected" - | "call.in-progress.error-vapifault-worker-not-available" - | "call.in-progress.error-vapifault-transport-never-connected" - | "call.in-progress.error-vapifault-transport-connected-but-call-not-active" - | "call.in-progress.error-vapifault-call-started-but-connection-to-transport-missing" - | "call.in-progress.error-vapifault-worker-died" - | "call.in-progress.twilio-completed-call" - | "call.in-progress.sip-completed-call" - | "call.in-progress.error-providerfault-openai-llm-failed" - | "call.in-progress.error-providerfault-azure-openai-llm-failed" - | "call.in-progress.error-providerfault-groq-llm-failed" - | "call.in-progress.error-providerfault-google-llm-failed" - | "call.in-progress.error-providerfault-xai-llm-failed" - | "call.in-progress.error-providerfault-mistral-llm-failed" - | "call.in-progress.error-providerfault-inflection-ai-llm-failed" - | "call.in-progress.error-providerfault-cerebras-llm-failed" - | "call.in-progress.error-providerfault-deep-seek-llm-failed" - | "call.in-progress.error-vapifault-chat-pipeline-failed-to-start" - | "pipeline-error-openai-400-bad-request-validation-failed" - | "pipeline-error-openai-401-unauthorized" - | "pipeline-error-openai-401-incorrect-api-key" - | "pipeline-error-openai-401-account-not-in-organization" - | "pipeline-error-openai-403-model-access-denied" - | "pipeline-error-openai-429-exceeded-quota" - | "pipeline-error-openai-429-rate-limit-reached" - | "pipeline-error-openai-500-server-error" - | "pipeline-error-openai-503-server-overloaded-error" - | "pipeline-error-openai-llm-failed" - | "call.in-progress.error-vapifault-openai-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-openai-401-unauthorized" - | "call.in-progress.error-vapifault-openai-401-incorrect-api-key" - | "call.in-progress.error-vapifault-openai-401-account-not-in-organization" - | "call.in-progress.error-vapifault-openai-403-model-access-denied" - | "call.in-progress.error-vapifault-openai-429-exceeded-quota" - | "call.in-progress.error-vapifault-openai-429-rate-limit-reached" - | "call.in-progress.error-providerfault-openai-500-server-error" - | "call.in-progress.error-providerfault-openai-503-server-overloaded-error" - | "pipeline-error-azure-openai-400-bad-request-validation-failed" - | "pipeline-error-azure-openai-401-unauthorized" - | "pipeline-error-azure-openai-403-model-access-denied" - | "pipeline-error-azure-openai-429-exceeded-quota" - | "pipeline-error-azure-openai-500-server-error" - | "pipeline-error-azure-openai-503-server-overloaded-error" - | "pipeline-error-azure-openai-llm-failed" - | "call.in-progress.error-vapifault-azure-openai-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-azure-openai-401-unauthorized" - | "call.in-progress.error-vapifault-azure-openai-403-model-access-denied" - | "call.in-progress.error-vapifault-azure-openai-429-exceeded-quota" - | "call.in-progress.error-providerfault-azure-openai-500-server-error" - | "call.in-progress.error-providerfault-azure-openai-503-server-overloaded-error" - | "pipeline-error-google-400-bad-request-validation-failed" - | "pipeline-error-google-401-unauthorized" - | "pipeline-error-google-403-model-access-denied" - | "pipeline-error-google-429-exceeded-quota" - | "pipeline-error-google-500-server-error" - | "pipeline-error-google-503-server-overloaded-error" - | "pipeline-error-google-llm-failed" - | "call.in-progress.error-vapifault-google-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-google-401-unauthorized" - | "call.in-progress.error-vapifault-google-403-model-access-denied" - | "call.in-progress.error-vapifault-google-429-exceeded-quota" - | "call.in-progress.error-providerfault-google-500-server-error" - | "call.in-progress.error-providerfault-google-503-server-overloaded-error" - | "pipeline-error-xai-400-bad-request-validation-failed" - | "pipeline-error-xai-401-unauthorized" - | "pipeline-error-xai-403-model-access-denied" - | "pipeline-error-xai-429-exceeded-quota" - | "pipeline-error-xai-500-server-error" - | "pipeline-error-xai-503-server-overloaded-error" - | "pipeline-error-xai-llm-failed" - | "call.in-progress.error-vapifault-xai-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-xai-401-unauthorized" - | "call.in-progress.error-vapifault-xai-403-model-access-denied" - | "call.in-progress.error-vapifault-xai-429-exceeded-quota" - | "call.in-progress.error-providerfault-xai-500-server-error" - | "call.in-progress.error-providerfault-xai-503-server-overloaded-error" - | "pipeline-error-mistral-400-bad-request-validation-failed" - | "pipeline-error-mistral-401-unauthorized" - | "pipeline-error-mistral-403-model-access-denied" - | "pipeline-error-mistral-429-exceeded-quota" - | "pipeline-error-mistral-500-server-error" - | "pipeline-error-mistral-503-server-overloaded-error" - | "pipeline-error-mistral-llm-failed" - | "call.in-progress.error-vapifault-mistral-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-mistral-401-unauthorized" - | "call.in-progress.error-vapifault-mistral-403-model-access-denied" - | "call.in-progress.error-vapifault-mistral-429-exceeded-quota" - | "call.in-progress.error-providerfault-mistral-500-server-error" - | "call.in-progress.error-providerfault-mistral-503-server-overloaded-error" - | "pipeline-error-inflection-ai-400-bad-request-validation-failed" - | "pipeline-error-inflection-ai-401-unauthorized" - | "pipeline-error-inflection-ai-403-model-access-denied" - | "pipeline-error-inflection-ai-429-exceeded-quota" - | "pipeline-error-inflection-ai-500-server-error" - | "pipeline-error-inflection-ai-503-server-overloaded-error" - | "pipeline-error-inflection-ai-llm-failed" - | "call.in-progress.error-vapifault-inflection-ai-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-inflection-ai-401-unauthorized" - | "call.in-progress.error-vapifault-inflection-ai-403-model-access-denied" - | "call.in-progress.error-vapifault-inflection-ai-429-exceeded-quota" - | "call.in-progress.error-providerfault-inflection-ai-500-server-error" - | "call.in-progress.error-providerfault-inflection-ai-503-server-overloaded-error" - | "pipeline-error-deep-seek-400-bad-request-validation-failed" - | "pipeline-error-deep-seek-401-unauthorized" - | "pipeline-error-deep-seek-403-model-access-denied" - | "pipeline-error-deep-seek-429-exceeded-quota" - | "pipeline-error-deep-seek-500-server-error" - | "pipeline-error-deep-seek-503-server-overloaded-error" - | "pipeline-error-deep-seek-llm-failed" - | "call.in-progress.error-vapifault-deep-seek-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-deep-seek-401-unauthorized" - | "call.in-progress.error-vapifault-deep-seek-403-model-access-denied" - | "call.in-progress.error-vapifault-deep-seek-429-exceeded-quota" - | "call.in-progress.error-providerfault-deep-seek-500-server-error" - | "call.in-progress.error-providerfault-deep-seek-503-server-overloaded-error" - | "pipeline-error-groq-400-bad-request-validation-failed" - | "pipeline-error-groq-401-unauthorized" - | "pipeline-error-groq-403-model-access-denied" - | "pipeline-error-groq-429-exceeded-quota" - | "pipeline-error-groq-500-server-error" - | "pipeline-error-groq-503-server-overloaded-error" - | "pipeline-error-groq-llm-failed" - | "call.in-progress.error-vapifault-groq-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-groq-401-unauthorized" - | "call.in-progress.error-vapifault-groq-403-model-access-denied" - | "call.in-progress.error-vapifault-groq-429-exceeded-quota" - | "call.in-progress.error-providerfault-groq-500-server-error" - | "call.in-progress.error-providerfault-groq-503-server-overloaded-error" - | "pipeline-error-cerebras-400-bad-request-validation-failed" - | "pipeline-error-cerebras-401-unauthorized" - | "pipeline-error-cerebras-403-model-access-denied" - | "pipeline-error-cerebras-429-exceeded-quota" - | "pipeline-error-cerebras-500-server-error" - | "pipeline-error-cerebras-503-server-overloaded-error" - | "pipeline-error-cerebras-llm-failed" - | "call.in-progress.error-vapifault-cerebras-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-cerebras-401-unauthorized" - | "call.in-progress.error-vapifault-cerebras-403-model-access-denied" - | "call.in-progress.error-vapifault-cerebras-429-exceeded-quota" - | "call.in-progress.error-providerfault-cerebras-500-server-error" - | "call.in-progress.error-providerfault-cerebras-503-server-overloaded-error" - | "pipeline-error-anthropic-400-bad-request-validation-failed" - | "pipeline-error-anthropic-401-unauthorized" - | "pipeline-error-anthropic-403-model-access-denied" - | "pipeline-error-anthropic-429-exceeded-quota" - | "pipeline-error-anthropic-500-server-error" - | "pipeline-error-anthropic-503-server-overloaded-error" - | "pipeline-error-anthropic-llm-failed" - | "call.in-progress.error-providerfault-anthropic-llm-failed" - | "call.in-progress.error-vapifault-anthropic-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-anthropic-401-unauthorized" - | "call.in-progress.error-vapifault-anthropic-403-model-access-denied" - | "call.in-progress.error-vapifault-anthropic-429-exceeded-quota" - | "call.in-progress.error-providerfault-anthropic-500-server-error" - | "call.in-progress.error-providerfault-anthropic-503-server-overloaded-error" - | "pipeline-error-anthropic-bedrock-400-bad-request-validation-failed" - | "pipeline-error-anthropic-bedrock-401-unauthorized" - | "pipeline-error-anthropic-bedrock-403-model-access-denied" - | "pipeline-error-anthropic-bedrock-429-exceeded-quota" - | "pipeline-error-anthropic-bedrock-500-server-error" - | "pipeline-error-anthropic-bedrock-503-server-overloaded-error" - | "pipeline-error-anthropic-bedrock-llm-failed" - | "call.in-progress.error-providerfault-anthropic-bedrock-llm-failed" - | "call.in-progress.error-vapifault-anthropic-bedrock-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-anthropic-bedrock-401-unauthorized" - | "call.in-progress.error-vapifault-anthropic-bedrock-403-model-access-denied" - | "call.in-progress.error-vapifault-anthropic-bedrock-429-exceeded-quota" - | "call.in-progress.error-providerfault-anthropic-bedrock-500-server-error" - | "call.in-progress.error-providerfault-anthropic-bedrock-503-server-overloaded-error" - | "pipeline-error-anthropic-vertex-400-bad-request-validation-failed" - | "pipeline-error-anthropic-vertex-401-unauthorized" - | "pipeline-error-anthropic-vertex-403-model-access-denied" - | "pipeline-error-anthropic-vertex-429-exceeded-quota" - | "pipeline-error-anthropic-vertex-500-server-error" - | "pipeline-error-anthropic-vertex-503-server-overloaded-error" - | "pipeline-error-anthropic-vertex-llm-failed" - | "call.in-progress.error-providerfault-anthropic-vertex-llm-failed" - | "call.in-progress.error-vapifault-anthropic-vertex-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-anthropic-vertex-401-unauthorized" - | "call.in-progress.error-vapifault-anthropic-vertex-403-model-access-denied" - | "call.in-progress.error-vapifault-anthropic-vertex-429-exceeded-quota" - | "call.in-progress.error-providerfault-anthropic-vertex-500-server-error" - | "call.in-progress.error-providerfault-anthropic-vertex-503-server-overloaded-error" - | "pipeline-error-together-ai-400-bad-request-validation-failed" - | "pipeline-error-together-ai-401-unauthorized" - | "pipeline-error-together-ai-403-model-access-denied" - | "pipeline-error-together-ai-429-exceeded-quota" - | "pipeline-error-together-ai-500-server-error" - | "pipeline-error-together-ai-503-server-overloaded-error" - | "pipeline-error-together-ai-llm-failed" - | "call.in-progress.error-providerfault-together-ai-llm-failed" - | "call.in-progress.error-vapifault-together-ai-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-together-ai-401-unauthorized" - | "call.in-progress.error-vapifault-together-ai-403-model-access-denied" - | "call.in-progress.error-vapifault-together-ai-429-exceeded-quota" - | "call.in-progress.error-providerfault-together-ai-500-server-error" - | "call.in-progress.error-providerfault-together-ai-503-server-overloaded-error" - | "pipeline-error-anyscale-400-bad-request-validation-failed" - | "pipeline-error-anyscale-401-unauthorized" - | "pipeline-error-anyscale-403-model-access-denied" - | "pipeline-error-anyscale-429-exceeded-quota" - | "pipeline-error-anyscale-500-server-error" - | "pipeline-error-anyscale-503-server-overloaded-error" - | "pipeline-error-anyscale-llm-failed" - | "call.in-progress.error-providerfault-anyscale-llm-failed" - | "call.in-progress.error-vapifault-anyscale-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-anyscale-401-unauthorized" - | "call.in-progress.error-vapifault-anyscale-403-model-access-denied" - | "call.in-progress.error-vapifault-anyscale-429-exceeded-quota" - | "call.in-progress.error-providerfault-anyscale-500-server-error" - | "call.in-progress.error-providerfault-anyscale-503-server-overloaded-error" - | "pipeline-error-openrouter-400-bad-request-validation-failed" - | "pipeline-error-openrouter-401-unauthorized" - | "pipeline-error-openrouter-403-model-access-denied" - | "pipeline-error-openrouter-429-exceeded-quota" - | "pipeline-error-openrouter-500-server-error" - | "pipeline-error-openrouter-503-server-overloaded-error" - | "pipeline-error-openrouter-llm-failed" - | "call.in-progress.error-providerfault-openrouter-llm-failed" - | "call.in-progress.error-vapifault-openrouter-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-openrouter-401-unauthorized" - | "call.in-progress.error-vapifault-openrouter-403-model-access-denied" - | "call.in-progress.error-vapifault-openrouter-429-exceeded-quota" - | "call.in-progress.error-providerfault-openrouter-500-server-error" - | "call.in-progress.error-providerfault-openrouter-503-server-overloaded-error" - | "pipeline-error-perplexity-ai-400-bad-request-validation-failed" - | "pipeline-error-perplexity-ai-401-unauthorized" - | "pipeline-error-perplexity-ai-403-model-access-denied" - | "pipeline-error-perplexity-ai-429-exceeded-quota" - | "pipeline-error-perplexity-ai-500-server-error" - | "pipeline-error-perplexity-ai-503-server-overloaded-error" - | "pipeline-error-perplexity-ai-llm-failed" - | "call.in-progress.error-providerfault-perplexity-ai-llm-failed" - | "call.in-progress.error-vapifault-perplexity-ai-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-perplexity-ai-401-unauthorized" - | "call.in-progress.error-vapifault-perplexity-ai-403-model-access-denied" - | "call.in-progress.error-vapifault-perplexity-ai-429-exceeded-quota" - | "call.in-progress.error-providerfault-perplexity-ai-500-server-error" - | "call.in-progress.error-providerfault-perplexity-ai-503-server-overloaded-error" - | "pipeline-error-deepinfra-400-bad-request-validation-failed" - | "pipeline-error-deepinfra-401-unauthorized" - | "pipeline-error-deepinfra-403-model-access-denied" - | "pipeline-error-deepinfra-429-exceeded-quota" - | "pipeline-error-deepinfra-500-server-error" - | "pipeline-error-deepinfra-503-server-overloaded-error" - | "pipeline-error-deepinfra-llm-failed" - | "call.in-progress.error-providerfault-deepinfra-llm-failed" - | "call.in-progress.error-vapifault-deepinfra-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-deepinfra-401-unauthorized" - | "call.in-progress.error-vapifault-deepinfra-403-model-access-denied" - | "call.in-progress.error-vapifault-deepinfra-429-exceeded-quota" - | "call.in-progress.error-providerfault-deepinfra-500-server-error" - | "call.in-progress.error-providerfault-deepinfra-503-server-overloaded-error" - | "pipeline-error-runpod-400-bad-request-validation-failed" - | "pipeline-error-runpod-401-unauthorized" - | "pipeline-error-runpod-403-model-access-denied" - | "pipeline-error-runpod-429-exceeded-quota" - | "pipeline-error-runpod-500-server-error" - | "pipeline-error-runpod-503-server-overloaded-error" - | "pipeline-error-runpod-llm-failed" - | "call.in-progress.error-providerfault-runpod-llm-failed" - | "call.in-progress.error-vapifault-runpod-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-runpod-401-unauthorized" - | "call.in-progress.error-vapifault-runpod-403-model-access-denied" - | "call.in-progress.error-vapifault-runpod-429-exceeded-quota" - | "call.in-progress.error-providerfault-runpod-500-server-error" - | "call.in-progress.error-providerfault-runpod-503-server-overloaded-error" - | "pipeline-error-custom-llm-400-bad-request-validation-failed" - | "pipeline-error-custom-llm-401-unauthorized" - | "pipeline-error-custom-llm-403-model-access-denied" - | "pipeline-error-custom-llm-429-exceeded-quota" - | "pipeline-error-custom-llm-500-server-error" - | "pipeline-error-custom-llm-503-server-overloaded-error" - | "pipeline-error-custom-llm-llm-failed" - | "call.in-progress.error-providerfault-custom-llm-llm-failed" - | "call.in-progress.error-vapifault-custom-llm-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-custom-llm-401-unauthorized" - | "call.in-progress.error-vapifault-custom-llm-403-model-access-denied" - | "call.in-progress.error-vapifault-custom-llm-429-exceeded-quota" - | "call.in-progress.error-providerfault-custom-llm-500-server-error" - | "call.in-progress.error-providerfault-custom-llm-503-server-overloaded-error" - | "pipeline-error-custom-voice-failed" - | "pipeline-error-cartesia-socket-hang-up" - | "pipeline-error-cartesia-requested-payment" - | "pipeline-error-cartesia-500-server-error" - | "pipeline-error-cartesia-502-server-error" - | "pipeline-error-cartesia-503-server-error" - | "pipeline-error-cartesia-522-server-error" - | "call.in-progress.error-vapifault-cartesia-socket-hang-up" - | "call.in-progress.error-vapifault-cartesia-requested-payment" - | "call.in-progress.error-providerfault-cartesia-500-server-error" - | "call.in-progress.error-providerfault-cartesia-503-server-error" - | "call.in-progress.error-providerfault-cartesia-522-server-error" - | "pipeline-error-eleven-labs-voice-not-found" - | "pipeline-error-eleven-labs-quota-exceeded" - | "pipeline-error-eleven-labs-unauthorized-access" - | "pipeline-error-eleven-labs-unauthorized-to-access-model" - | "pipeline-error-eleven-labs-professional-voices-only-for-creator-plus" - | "pipeline-error-eleven-labs-blocked-free-plan-and-requested-upgrade" - | "pipeline-error-eleven-labs-blocked-concurrent-requests-and-requested-upgrade" - | "pipeline-error-eleven-labs-blocked-using-instant-voice-clone-and-requested-upgrade" - | "pipeline-error-eleven-labs-system-busy-and-requested-upgrade" - | "pipeline-error-eleven-labs-voice-not-fine-tuned" - | "pipeline-error-eleven-labs-invalid-api-key" - | "pipeline-error-eleven-labs-invalid-voice-samples" - | "pipeline-error-eleven-labs-voice-disabled-by-owner" - | "pipeline-error-eleven-labs-vapi-voice-disabled-by-owner" - | "pipeline-error-eleven-labs-blocked-account-in-probation" - | "pipeline-error-eleven-labs-blocked-content-against-their-policy" - | "pipeline-error-eleven-labs-missing-samples-for-voice-clone" - | "pipeline-error-eleven-labs-voice-not-fine-tuned-and-cannot-be-used" - | "pipeline-error-eleven-labs-voice-not-allowed-for-free-users" - | "pipeline-error-eleven-labs-max-character-limit-exceeded" - | "pipeline-error-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification" - | "pipeline-error-eleven-labs-500-server-error" - | "pipeline-error-eleven-labs-503-server-error" - | "call.in-progress.error-vapifault-eleven-labs-voice-not-found" - | "call.in-progress.error-vapifault-eleven-labs-quota-exceeded" - | "call.in-progress.error-vapifault-eleven-labs-unauthorized-access" - | "call.in-progress.error-vapifault-eleven-labs-unauthorized-to-access-model" - | "call.in-progress.error-vapifault-eleven-labs-professional-voices-only-for-creator-plus" - | "call.in-progress.error-vapifault-eleven-labs-blocked-free-plan-and-requested-upgrade" - | "call.in-progress.error-vapifault-eleven-labs-blocked-concurrent-requests-and-requested-upgrade" - | "call.in-progress.error-vapifault-eleven-labs-blocked-using-instant-voice-clone-and-requested-upgrade" - | "call.in-progress.error-vapifault-eleven-labs-system-busy-and-requested-upgrade" - | "call.in-progress.error-vapifault-eleven-labs-voice-not-fine-tuned" - | "call.in-progress.error-vapifault-eleven-labs-invalid-api-key" - | "call.in-progress.error-vapifault-eleven-labs-invalid-voice-samples" - | "call.in-progress.error-vapifault-eleven-labs-voice-disabled-by-owner" - | "call.in-progress.error-vapifault-eleven-labs-blocked-account-in-probation" - | "call.in-progress.error-vapifault-eleven-labs-blocked-content-against-their-policy" - | "call.in-progress.error-vapifault-eleven-labs-missing-samples-for-voice-clone" - | "call.in-progress.error-vapifault-eleven-labs-voice-not-fine-tuned-and-cannot-be-used" - | "call.in-progress.error-vapifault-eleven-labs-voice-not-allowed-for-free-users" - | "call.in-progress.error-vapifault-eleven-labs-max-character-limit-exceeded" - | "call.in-progress.error-vapifault-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification" - | "call.in-progress.error-providerfault-eleven-labs-500-server-error" - | "call.in-progress.error-providerfault-eleven-labs-503-server-error" - | "pipeline-error-playht-request-timed-out" - | "pipeline-error-playht-invalid-voice" - | "pipeline-error-playht-unexpected-error" - | "pipeline-error-playht-out-of-credits" - | "pipeline-error-playht-invalid-emotion" - | "pipeline-error-playht-voice-must-be-a-valid-voice-manifest-uri" - | "pipeline-error-playht-401-unauthorized" - | "pipeline-error-playht-403-forbidden-out-of-characters" - | "pipeline-error-playht-403-forbidden-api-access-not-available" - | "pipeline-error-playht-429-exceeded-quota" - | "pipeline-error-playht-502-gateway-error" - | "pipeline-error-playht-504-gateway-error" - | "call.in-progress.error-vapifault-playht-request-timed-out" - | "call.in-progress.error-vapifault-playht-invalid-voice" - | "call.in-progress.error-vapifault-playht-unexpected-error" - | "call.in-progress.error-vapifault-playht-out-of-credits" - | "call.in-progress.error-vapifault-playht-invalid-emotion" - | "call.in-progress.error-vapifault-playht-voice-must-be-a-valid-voice-manifest-uri" - | "call.in-progress.error-vapifault-playht-401-unauthorized" - | "call.in-progress.error-vapifault-playht-403-forbidden-out-of-characters" - | "call.in-progress.error-vapifault-playht-403-forbidden-api-access-not-available" - | "call.in-progress.error-vapifault-playht-429-exceeded-quota" - | "call.in-progress.error-providerfault-playht-502-gateway-error" - | "call.in-progress.error-providerfault-playht-504-gateway-error" - | "pipeline-error-custom-transcriber-failed" - | "call.in-progress.error-vapifault-custom-transcriber-failed" - | "pipeline-error-eleven-labs-transcriber-failed" - | "call.in-progress.error-vapifault-eleven-labs-transcriber-failed" - | "pipeline-error-deepgram-returning-400-no-such-model-language-tier-combination" - | "pipeline-error-deepgram-returning-401-invalid-credentials" - | "pipeline-error-deepgram-returning-403-model-access-denied" - | "pipeline-error-deepgram-returning-404-not-found" - | "pipeline-error-deepgram-returning-500-invalid-json" - | "pipeline-error-deepgram-returning-502-network-error" - | "pipeline-error-deepgram-returning-502-bad-gateway-ehostunreach" - | "pipeline-error-deepgram-returning-econnreset" - | "call.in-progress.error-vapifault-deepgram-returning-400-no-such-model-language-tier-combination" - | "call.in-progress.error-vapifault-deepgram-returning-401-invalid-credentials" - | "call.in-progress.error-vapifault-deepgram-returning-404-not-found" - | "call.in-progress.error-vapifault-deepgram-returning-403-model-access-denied" - | "call.in-progress.error-providerfault-deepgram-returning-500-invalid-json" - | "call.in-progress.error-providerfault-deepgram-returning-502-network-error" - | "call.in-progress.error-providerfault-deepgram-returning-502-bad-gateway-ehostunreach" - | "pipeline-error-google-transcriber-failed" - | "call.in-progress.error-vapifault-google-transcriber-failed" - | "pipeline-error-openai-transcriber-failed" - | "call.in-progress.error-vapifault-openai-transcriber-failed" - | "call.in-progress.error-warm-transfer-max-duration" - | "call.in-progress.error-warm-transfer-assistant-cancelled" - | "call.in-progress.error-warm-transfer-silence-timeout" - | "call.in-progress.error-warm-transfer-microphone-timeout" - | "call.in-progress.error-warm-transfer-hang-timeout" - | "call.in-progress.error-warm-transfer-idle-timeout" - | "assistant-ended-call" - | "assistant-said-end-call-phrase" - | "assistant-ended-call-with-hangup-task" - | "assistant-ended-call-after-message-spoken" - | "assistant-forwarded-call" - | "assistant-join-timed-out" - | "call.in-progress.error-assistant-did-not-receive-customer-audio" - | "call.in-progress.error-transfer-failed" - | "customer-busy" - | "customer-ended-call" - | "customer-ended-call-before-warm-transfer" - | "customer-ended-call-after-warm-transfer-attempt" - | "customer-did-not-answer" - | "customer-did-not-give-microphone-permission" - | "exceeded-max-duration" - | "manually-canceled" - | "phone-call-provider-closed-websocket" - | "call.forwarding.operator-busy" - | "silence-timed-out" - | "call.in-progress.error-sip-inbound-call-failed-to-connect" - | "call.in-progress.error-providerfault-outbound-sip-403-forbidden" - | "call.in-progress.error-providerfault-outbound-sip-407-proxy-authentication-required" - | "call.in-progress.error-providerfault-outbound-sip-503-service-unavailable" - | "call.in-progress.error-providerfault-outbound-sip-480-temporarily-unavailable" - | "call.in-progress.error-sip-outbound-call-failed-to-connect" - | "call.ringing.hook-executed-say" - | "call.ringing.hook-executed-transfer" - | "call.ending.hook-executed-say" - | "call.ending.hook-executed-transfer" - | "call.ringing.sip-inbound-caller-hungup-before-call-connect" - | "call.ringing.error-sip-inbound-call-failed-to-connect" - | "twilio-failed-to-connect-call" - | "twilio-reported-customer-misdialed" - | "vonage-rejected" - | "voicemail" - | "call-deleted"; - export const EndedReason = { - CallStartErrorNeitherAssistantNorServerSet: "call-start-error-neither-assistant-nor-server-set", - AssistantRequestFailed: "assistant-request-failed", - AssistantRequestReturnedError: "assistant-request-returned-error", - AssistantRequestReturnedUnspeakableError: "assistant-request-returned-unspeakable-error", - AssistantRequestReturnedInvalidAssistant: "assistant-request-returned-invalid-assistant", - AssistantRequestReturnedNoAssistant: "assistant-request-returned-no-assistant", - AssistantRequestReturnedForwardingPhoneNumber: "assistant-request-returned-forwarding-phone-number", - ScheduledCallDeleted: "scheduled-call-deleted", - CallStartErrorVapifaultGetOrg: "call.start.error-vapifault-get-org", - CallStartErrorVapifaultGetSubscription: "call.start.error-vapifault-get-subscription", - CallStartErrorGetAssistant: "call.start.error-get-assistant", - CallStartErrorGetPhoneNumber: "call.start.error-get-phone-number", - CallStartErrorGetCustomer: "call.start.error-get-customer", - CallStartErrorGetResourcesValidation: "call.start.error-get-resources-validation", - CallStartErrorVapiNumberInternational: "call.start.error-vapi-number-international", - CallStartErrorVapiNumberOutboundDailyLimit: "call.start.error-vapi-number-outbound-daily-limit", - CallStartErrorGetTransport: "call.start.error-get-transport", - CallStartErrorSubscriptionWalletDoesNotExist: "call.start.error-subscription-wallet-does-not-exist", - CallStartErrorFraudCheckFailed: "call.start.error-fraud-check-failed", - CallStartErrorSubscriptionFrozen: "call.start.error-subscription-frozen", - CallStartErrorSubscriptionInsufficientCredits: "call.start.error-subscription-insufficient-credits", - CallStartErrorSubscriptionUpgradeFailed: "call.start.error-subscription-upgrade-failed", - CallStartErrorSubscriptionConcurrencyLimitReached: "call.start.error-subscription-concurrency-limit-reached", - CallStartErrorEnterpriseFeatureNotAvailableRecordingConsent: - "call.start.error-enterprise-feature-not-available-recording-consent", - AssistantNotValid: "assistant-not-valid", - CallStartErrorVapifaultDatabaseError: "call.start.error-vapifault-database-error", - AssistantNotFound: "assistant-not-found", - PipelineErrorOpenaiVoiceFailed: "pipeline-error-openai-voice-failed", - PipelineErrorCartesiaVoiceFailed: "pipeline-error-cartesia-voice-failed", - PipelineErrorDeepgramVoiceFailed: "pipeline-error-deepgram-voice-failed", - PipelineErrorElevenLabsVoiceFailed: "pipeline-error-eleven-labs-voice-failed", - PipelineErrorPlayhtVoiceFailed: "pipeline-error-playht-voice-failed", - PipelineErrorLmntVoiceFailed: "pipeline-error-lmnt-voice-failed", - PipelineErrorAzureVoiceFailed: "pipeline-error-azure-voice-failed", - PipelineErrorRimeAiVoiceFailed: "pipeline-error-rime-ai-voice-failed", - PipelineErrorSmallestAiVoiceFailed: "pipeline-error-smallest-ai-voice-failed", - PipelineErrorNeuphonicVoiceFailed: "pipeline-error-neuphonic-voice-failed", - PipelineErrorHumeVoiceFailed: "pipeline-error-hume-voice-failed", - PipelineErrorSesameVoiceFailed: "pipeline-error-sesame-voice-failed", - PipelineErrorInworldVoiceFailed: "pipeline-error-inworld-voice-failed", - PipelineErrorMinimaxVoiceFailed: "pipeline-error-minimax-voice-failed", - PipelineErrorTavusVideoFailed: "pipeline-error-tavus-video-failed", - CallInProgressErrorVapifaultOpenaiVoiceFailed: "call.in-progress.error-vapifault-openai-voice-failed", - CallInProgressErrorVapifaultCartesiaVoiceFailed: "call.in-progress.error-vapifault-cartesia-voice-failed", - CallInProgressErrorVapifaultDeepgramVoiceFailed: "call.in-progress.error-vapifault-deepgram-voice-failed", - CallInProgressErrorVapifaultElevenLabsVoiceFailed: "call.in-progress.error-vapifault-eleven-labs-voice-failed", - CallInProgressErrorVapifaultPlayhtVoiceFailed: "call.in-progress.error-vapifault-playht-voice-failed", - CallInProgressErrorVapifaultLmntVoiceFailed: "call.in-progress.error-vapifault-lmnt-voice-failed", - CallInProgressErrorVapifaultAzureVoiceFailed: "call.in-progress.error-vapifault-azure-voice-failed", - CallInProgressErrorVapifaultRimeAiVoiceFailed: "call.in-progress.error-vapifault-rime-ai-voice-failed", - CallInProgressErrorVapifaultSmallestAiVoiceFailed: "call.in-progress.error-vapifault-smallest-ai-voice-failed", - CallInProgressErrorVapifaultNeuphonicVoiceFailed: "call.in-progress.error-vapifault-neuphonic-voice-failed", - CallInProgressErrorVapifaultHumeVoiceFailed: "call.in-progress.error-vapifault-hume-voice-failed", - CallInProgressErrorVapifaultSesameVoiceFailed: "call.in-progress.error-vapifault-sesame-voice-failed", - CallInProgressErrorVapifaultInworldVoiceFailed: "call.in-progress.error-vapifault-inworld-voice-failed", - CallInProgressErrorVapifaultMinimaxVoiceFailed: "call.in-progress.error-vapifault-minimax-voice-failed", - CallInProgressErrorVapifaultTavusVideoFailed: "call.in-progress.error-vapifault-tavus-video-failed", - PipelineErrorVapiLlmFailed: "pipeline-error-vapi-llm-failed", - PipelineErrorVapi400BadRequestValidationFailed: "pipeline-error-vapi-400-bad-request-validation-failed", - PipelineErrorVapi401Unauthorized: "pipeline-error-vapi-401-unauthorized", - PipelineErrorVapi403ModelAccessDenied: "pipeline-error-vapi-403-model-access-denied", - PipelineErrorVapi429ExceededQuota: "pipeline-error-vapi-429-exceeded-quota", - PipelineErrorVapi500ServerError: "pipeline-error-vapi-500-server-error", - PipelineErrorVapi503ServerOverloadedError: "pipeline-error-vapi-503-server-overloaded-error", - CallInProgressErrorProviderfaultVapiLlmFailed: "call.in-progress.error-providerfault-vapi-llm-failed", - CallInProgressErrorVapifaultVapi400BadRequestValidationFailed: - "call.in-progress.error-vapifault-vapi-400-bad-request-validation-failed", - CallInProgressErrorVapifaultVapi401Unauthorized: "call.in-progress.error-vapifault-vapi-401-unauthorized", - CallInProgressErrorVapifaultVapi403ModelAccessDenied: - "call.in-progress.error-vapifault-vapi-403-model-access-denied", - CallInProgressErrorVapifaultVapi429ExceededQuota: "call.in-progress.error-vapifault-vapi-429-exceeded-quota", - CallInProgressErrorProviderfaultVapi500ServerError: - "call.in-progress.error-providerfault-vapi-500-server-error", - CallInProgressErrorProviderfaultVapi503ServerOverloadedError: - "call.in-progress.error-providerfault-vapi-503-server-overloaded-error", - PipelineErrorDeepgramTranscriberFailed: "pipeline-error-deepgram-transcriber-failed", - PipelineErrorDeepgramTranscriberApiKeyMissing: "pipeline-error-deepgram-transcriber-api-key-missing", - CallInProgressErrorVapifaultDeepgramTranscriberFailed: - "call.in-progress.error-vapifault-deepgram-transcriber-failed", - PipelineErrorGladiaTranscriberFailed: "pipeline-error-gladia-transcriber-failed", - CallInProgressErrorVapifaultGladiaTranscriberFailed: - "call.in-progress.error-vapifault-gladia-transcriber-failed", - PipelineErrorSpeechmaticsTranscriberFailed: "pipeline-error-speechmatics-transcriber-failed", - CallInProgressErrorVapifaultSpeechmaticsTranscriberFailed: - "call.in-progress.error-vapifault-speechmatics-transcriber-failed", - PipelineErrorAssemblyAiTranscriberFailed: "pipeline-error-assembly-ai-transcriber-failed", - PipelineErrorAssemblyAiReturning400InsufficentFunds: - "pipeline-error-assembly-ai-returning-400-insufficent-funds", - PipelineErrorAssemblyAiReturning400PaidOnlyFeature: - "pipeline-error-assembly-ai-returning-400-paid-only-feature", - PipelineErrorAssemblyAiReturning401InvalidCredentials: - "pipeline-error-assembly-ai-returning-401-invalid-credentials", - PipelineErrorAssemblyAiReturning500InvalidSchema: "pipeline-error-assembly-ai-returning-500-invalid-schema", - PipelineErrorAssemblyAiReturning500WordBoostParsingFailed: - "pipeline-error-assembly-ai-returning-500-word-boost-parsing-failed", - CallInProgressErrorVapifaultAssemblyAiTranscriberFailed: - "call.in-progress.error-vapifault-assembly-ai-transcriber-failed", - CallInProgressErrorVapifaultAssemblyAiReturning400InsufficentFunds: - "call.in-progress.error-vapifault-assembly-ai-returning-400-insufficent-funds", - CallInProgressErrorVapifaultAssemblyAiReturning400PaidOnlyFeature: - "call.in-progress.error-vapifault-assembly-ai-returning-400-paid-only-feature", - CallInProgressErrorVapifaultAssemblyAiReturning401InvalidCredentials: - "call.in-progress.error-vapifault-assembly-ai-returning-401-invalid-credentials", - CallInProgressErrorVapifaultAssemblyAiReturning500InvalidSchema: - "call.in-progress.error-vapifault-assembly-ai-returning-500-invalid-schema", - CallInProgressErrorVapifaultAssemblyAiReturning500WordBoostParsingFailed: - "call.in-progress.error-vapifault-assembly-ai-returning-500-word-boost-parsing-failed", - PipelineErrorTalkscriberTranscriberFailed: "pipeline-error-talkscriber-transcriber-failed", - CallInProgressErrorVapifaultTalkscriberTranscriberFailed: - "call.in-progress.error-vapifault-talkscriber-transcriber-failed", - PipelineErrorAzureSpeechTranscriberFailed: "pipeline-error-azure-speech-transcriber-failed", - CallInProgressErrorVapifaultAzureSpeechTranscriberFailed: - "call.in-progress.error-vapifault-azure-speech-transcriber-failed", - CallInProgressErrorPipelineNoAvailableLlmModel: "call.in-progress.error-pipeline-no-available-llm-model", - WorkerShutdown: "worker-shutdown", - VonageDisconnected: "vonage-disconnected", - VonageFailedToConnectCall: "vonage-failed-to-connect-call", - VonageCompleted: "vonage-completed", - PhoneCallProviderBypassEnabledButNoCallReceived: "phone-call-provider-bypass-enabled-but-no-call-received", - CallInProgressErrorProviderfaultTransportNeverConnected: - "call.in-progress.error-providerfault-transport-never-connected", - CallInProgressErrorVapifaultWorkerNotAvailable: "call.in-progress.error-vapifault-worker-not-available", - CallInProgressErrorVapifaultTransportNeverConnected: - "call.in-progress.error-vapifault-transport-never-connected", - CallInProgressErrorVapifaultTransportConnectedButCallNotActive: - "call.in-progress.error-vapifault-transport-connected-but-call-not-active", - CallInProgressErrorVapifaultCallStartedButConnectionToTransportMissing: - "call.in-progress.error-vapifault-call-started-but-connection-to-transport-missing", - CallInProgressErrorVapifaultWorkerDied: "call.in-progress.error-vapifault-worker-died", - CallInProgressTwilioCompletedCall: "call.in-progress.twilio-completed-call", - CallInProgressSipCompletedCall: "call.in-progress.sip-completed-call", - CallInProgressErrorProviderfaultOpenaiLlmFailed: "call.in-progress.error-providerfault-openai-llm-failed", - CallInProgressErrorProviderfaultAzureOpenaiLlmFailed: - "call.in-progress.error-providerfault-azure-openai-llm-failed", - CallInProgressErrorProviderfaultGroqLlmFailed: "call.in-progress.error-providerfault-groq-llm-failed", - CallInProgressErrorProviderfaultGoogleLlmFailed: "call.in-progress.error-providerfault-google-llm-failed", - CallInProgressErrorProviderfaultXaiLlmFailed: "call.in-progress.error-providerfault-xai-llm-failed", - CallInProgressErrorProviderfaultMistralLlmFailed: "call.in-progress.error-providerfault-mistral-llm-failed", - CallInProgressErrorProviderfaultInflectionAiLlmFailed: - "call.in-progress.error-providerfault-inflection-ai-llm-failed", - CallInProgressErrorProviderfaultCerebrasLlmFailed: "call.in-progress.error-providerfault-cerebras-llm-failed", - CallInProgressErrorProviderfaultDeepSeekLlmFailed: "call.in-progress.error-providerfault-deep-seek-llm-failed", - CallInProgressErrorVapifaultChatPipelineFailedToStart: - "call.in-progress.error-vapifault-chat-pipeline-failed-to-start", - PipelineErrorOpenai400BadRequestValidationFailed: "pipeline-error-openai-400-bad-request-validation-failed", - PipelineErrorOpenai401Unauthorized: "pipeline-error-openai-401-unauthorized", - PipelineErrorOpenai401IncorrectApiKey: "pipeline-error-openai-401-incorrect-api-key", - PipelineErrorOpenai401AccountNotInOrganization: "pipeline-error-openai-401-account-not-in-organization", - PipelineErrorOpenai403ModelAccessDenied: "pipeline-error-openai-403-model-access-denied", - PipelineErrorOpenai429ExceededQuota: "pipeline-error-openai-429-exceeded-quota", - PipelineErrorOpenai429RateLimitReached: "pipeline-error-openai-429-rate-limit-reached", - PipelineErrorOpenai500ServerError: "pipeline-error-openai-500-server-error", - PipelineErrorOpenai503ServerOverloadedError: "pipeline-error-openai-503-server-overloaded-error", - PipelineErrorOpenaiLlmFailed: "pipeline-error-openai-llm-failed", - CallInProgressErrorVapifaultOpenai400BadRequestValidationFailed: - "call.in-progress.error-vapifault-openai-400-bad-request-validation-failed", - CallInProgressErrorVapifaultOpenai401Unauthorized: "call.in-progress.error-vapifault-openai-401-unauthorized", - CallInProgressErrorVapifaultOpenai401IncorrectApiKey: - "call.in-progress.error-vapifault-openai-401-incorrect-api-key", - CallInProgressErrorVapifaultOpenai401AccountNotInOrganization: - "call.in-progress.error-vapifault-openai-401-account-not-in-organization", - CallInProgressErrorVapifaultOpenai403ModelAccessDenied: - "call.in-progress.error-vapifault-openai-403-model-access-denied", - CallInProgressErrorVapifaultOpenai429ExceededQuota: - "call.in-progress.error-vapifault-openai-429-exceeded-quota", - CallInProgressErrorVapifaultOpenai429RateLimitReached: - "call.in-progress.error-vapifault-openai-429-rate-limit-reached", - CallInProgressErrorProviderfaultOpenai500ServerError: - "call.in-progress.error-providerfault-openai-500-server-error", - CallInProgressErrorProviderfaultOpenai503ServerOverloadedError: - "call.in-progress.error-providerfault-openai-503-server-overloaded-error", - PipelineErrorAzureOpenai400BadRequestValidationFailed: - "pipeline-error-azure-openai-400-bad-request-validation-failed", - PipelineErrorAzureOpenai401Unauthorized: "pipeline-error-azure-openai-401-unauthorized", - PipelineErrorAzureOpenai403ModelAccessDenied: "pipeline-error-azure-openai-403-model-access-denied", - PipelineErrorAzureOpenai429ExceededQuota: "pipeline-error-azure-openai-429-exceeded-quota", - PipelineErrorAzureOpenai500ServerError: "pipeline-error-azure-openai-500-server-error", - PipelineErrorAzureOpenai503ServerOverloadedError: "pipeline-error-azure-openai-503-server-overloaded-error", - PipelineErrorAzureOpenaiLlmFailed: "pipeline-error-azure-openai-llm-failed", - CallInProgressErrorVapifaultAzureOpenai400BadRequestValidationFailed: - "call.in-progress.error-vapifault-azure-openai-400-bad-request-validation-failed", - CallInProgressErrorVapifaultAzureOpenai401Unauthorized: - "call.in-progress.error-vapifault-azure-openai-401-unauthorized", - CallInProgressErrorVapifaultAzureOpenai403ModelAccessDenied: - "call.in-progress.error-vapifault-azure-openai-403-model-access-denied", - CallInProgressErrorVapifaultAzureOpenai429ExceededQuota: - "call.in-progress.error-vapifault-azure-openai-429-exceeded-quota", - CallInProgressErrorProviderfaultAzureOpenai500ServerError: - "call.in-progress.error-providerfault-azure-openai-500-server-error", - CallInProgressErrorProviderfaultAzureOpenai503ServerOverloadedError: - "call.in-progress.error-providerfault-azure-openai-503-server-overloaded-error", - PipelineErrorGoogle400BadRequestValidationFailed: "pipeline-error-google-400-bad-request-validation-failed", - PipelineErrorGoogle401Unauthorized: "pipeline-error-google-401-unauthorized", - PipelineErrorGoogle403ModelAccessDenied: "pipeline-error-google-403-model-access-denied", - PipelineErrorGoogle429ExceededQuota: "pipeline-error-google-429-exceeded-quota", - PipelineErrorGoogle500ServerError: "pipeline-error-google-500-server-error", - PipelineErrorGoogle503ServerOverloadedError: "pipeline-error-google-503-server-overloaded-error", - PipelineErrorGoogleLlmFailed: "pipeline-error-google-llm-failed", - CallInProgressErrorVapifaultGoogle400BadRequestValidationFailed: - "call.in-progress.error-vapifault-google-400-bad-request-validation-failed", - CallInProgressErrorVapifaultGoogle401Unauthorized: "call.in-progress.error-vapifault-google-401-unauthorized", - CallInProgressErrorVapifaultGoogle403ModelAccessDenied: - "call.in-progress.error-vapifault-google-403-model-access-denied", - CallInProgressErrorVapifaultGoogle429ExceededQuota: - "call.in-progress.error-vapifault-google-429-exceeded-quota", - CallInProgressErrorProviderfaultGoogle500ServerError: - "call.in-progress.error-providerfault-google-500-server-error", - CallInProgressErrorProviderfaultGoogle503ServerOverloadedError: - "call.in-progress.error-providerfault-google-503-server-overloaded-error", - PipelineErrorXai400BadRequestValidationFailed: "pipeline-error-xai-400-bad-request-validation-failed", - PipelineErrorXai401Unauthorized: "pipeline-error-xai-401-unauthorized", - PipelineErrorXai403ModelAccessDenied: "pipeline-error-xai-403-model-access-denied", - PipelineErrorXai429ExceededQuota: "pipeline-error-xai-429-exceeded-quota", - PipelineErrorXai500ServerError: "pipeline-error-xai-500-server-error", - PipelineErrorXai503ServerOverloadedError: "pipeline-error-xai-503-server-overloaded-error", - PipelineErrorXaiLlmFailed: "pipeline-error-xai-llm-failed", - CallInProgressErrorVapifaultXai400BadRequestValidationFailed: - "call.in-progress.error-vapifault-xai-400-bad-request-validation-failed", - CallInProgressErrorVapifaultXai401Unauthorized: "call.in-progress.error-vapifault-xai-401-unauthorized", - CallInProgressErrorVapifaultXai403ModelAccessDenied: - "call.in-progress.error-vapifault-xai-403-model-access-denied", - CallInProgressErrorVapifaultXai429ExceededQuota: "call.in-progress.error-vapifault-xai-429-exceeded-quota", - CallInProgressErrorProviderfaultXai500ServerError: "call.in-progress.error-providerfault-xai-500-server-error", - CallInProgressErrorProviderfaultXai503ServerOverloadedError: - "call.in-progress.error-providerfault-xai-503-server-overloaded-error", - PipelineErrorMistral400BadRequestValidationFailed: "pipeline-error-mistral-400-bad-request-validation-failed", - PipelineErrorMistral401Unauthorized: "pipeline-error-mistral-401-unauthorized", - PipelineErrorMistral403ModelAccessDenied: "pipeline-error-mistral-403-model-access-denied", - PipelineErrorMistral429ExceededQuota: "pipeline-error-mistral-429-exceeded-quota", - PipelineErrorMistral500ServerError: "pipeline-error-mistral-500-server-error", - PipelineErrorMistral503ServerOverloadedError: "pipeline-error-mistral-503-server-overloaded-error", - PipelineErrorMistralLlmFailed: "pipeline-error-mistral-llm-failed", - CallInProgressErrorVapifaultMistral400BadRequestValidationFailed: - "call.in-progress.error-vapifault-mistral-400-bad-request-validation-failed", - CallInProgressErrorVapifaultMistral401Unauthorized: "call.in-progress.error-vapifault-mistral-401-unauthorized", - CallInProgressErrorVapifaultMistral403ModelAccessDenied: - "call.in-progress.error-vapifault-mistral-403-model-access-denied", - CallInProgressErrorVapifaultMistral429ExceededQuota: - "call.in-progress.error-vapifault-mistral-429-exceeded-quota", - CallInProgressErrorProviderfaultMistral500ServerError: - "call.in-progress.error-providerfault-mistral-500-server-error", - CallInProgressErrorProviderfaultMistral503ServerOverloadedError: - "call.in-progress.error-providerfault-mistral-503-server-overloaded-error", - PipelineErrorInflectionAi400BadRequestValidationFailed: - "pipeline-error-inflection-ai-400-bad-request-validation-failed", - PipelineErrorInflectionAi401Unauthorized: "pipeline-error-inflection-ai-401-unauthorized", - PipelineErrorInflectionAi403ModelAccessDenied: "pipeline-error-inflection-ai-403-model-access-denied", - PipelineErrorInflectionAi429ExceededQuota: "pipeline-error-inflection-ai-429-exceeded-quota", - PipelineErrorInflectionAi500ServerError: "pipeline-error-inflection-ai-500-server-error", - PipelineErrorInflectionAi503ServerOverloadedError: "pipeline-error-inflection-ai-503-server-overloaded-error", - PipelineErrorInflectionAiLlmFailed: "pipeline-error-inflection-ai-llm-failed", - CallInProgressErrorVapifaultInflectionAi400BadRequestValidationFailed: - "call.in-progress.error-vapifault-inflection-ai-400-bad-request-validation-failed", - CallInProgressErrorVapifaultInflectionAi401Unauthorized: - "call.in-progress.error-vapifault-inflection-ai-401-unauthorized", - CallInProgressErrorVapifaultInflectionAi403ModelAccessDenied: - "call.in-progress.error-vapifault-inflection-ai-403-model-access-denied", - CallInProgressErrorVapifaultInflectionAi429ExceededQuota: - "call.in-progress.error-vapifault-inflection-ai-429-exceeded-quota", - CallInProgressErrorProviderfaultInflectionAi500ServerError: - "call.in-progress.error-providerfault-inflection-ai-500-server-error", - CallInProgressErrorProviderfaultInflectionAi503ServerOverloadedError: - "call.in-progress.error-providerfault-inflection-ai-503-server-overloaded-error", - PipelineErrorDeepSeek400BadRequestValidationFailed: - "pipeline-error-deep-seek-400-bad-request-validation-failed", - PipelineErrorDeepSeek401Unauthorized: "pipeline-error-deep-seek-401-unauthorized", - PipelineErrorDeepSeek403ModelAccessDenied: "pipeline-error-deep-seek-403-model-access-denied", - PipelineErrorDeepSeek429ExceededQuota: "pipeline-error-deep-seek-429-exceeded-quota", - PipelineErrorDeepSeek500ServerError: "pipeline-error-deep-seek-500-server-error", - PipelineErrorDeepSeek503ServerOverloadedError: "pipeline-error-deep-seek-503-server-overloaded-error", - PipelineErrorDeepSeekLlmFailed: "pipeline-error-deep-seek-llm-failed", - CallInProgressErrorVapifaultDeepSeek400BadRequestValidationFailed: - "call.in-progress.error-vapifault-deep-seek-400-bad-request-validation-failed", - CallInProgressErrorVapifaultDeepSeek401Unauthorized: - "call.in-progress.error-vapifault-deep-seek-401-unauthorized", - CallInProgressErrorVapifaultDeepSeek403ModelAccessDenied: - "call.in-progress.error-vapifault-deep-seek-403-model-access-denied", - CallInProgressErrorVapifaultDeepSeek429ExceededQuota: - "call.in-progress.error-vapifault-deep-seek-429-exceeded-quota", - CallInProgressErrorProviderfaultDeepSeek500ServerError: - "call.in-progress.error-providerfault-deep-seek-500-server-error", - CallInProgressErrorProviderfaultDeepSeek503ServerOverloadedError: - "call.in-progress.error-providerfault-deep-seek-503-server-overloaded-error", - PipelineErrorGroq400BadRequestValidationFailed: "pipeline-error-groq-400-bad-request-validation-failed", - PipelineErrorGroq401Unauthorized: "pipeline-error-groq-401-unauthorized", - PipelineErrorGroq403ModelAccessDenied: "pipeline-error-groq-403-model-access-denied", - PipelineErrorGroq429ExceededQuota: "pipeline-error-groq-429-exceeded-quota", - PipelineErrorGroq500ServerError: "pipeline-error-groq-500-server-error", - PipelineErrorGroq503ServerOverloadedError: "pipeline-error-groq-503-server-overloaded-error", - PipelineErrorGroqLlmFailed: "pipeline-error-groq-llm-failed", - CallInProgressErrorVapifaultGroq400BadRequestValidationFailed: - "call.in-progress.error-vapifault-groq-400-bad-request-validation-failed", - CallInProgressErrorVapifaultGroq401Unauthorized: "call.in-progress.error-vapifault-groq-401-unauthorized", - CallInProgressErrorVapifaultGroq403ModelAccessDenied: - "call.in-progress.error-vapifault-groq-403-model-access-denied", - CallInProgressErrorVapifaultGroq429ExceededQuota: "call.in-progress.error-vapifault-groq-429-exceeded-quota", - CallInProgressErrorProviderfaultGroq500ServerError: - "call.in-progress.error-providerfault-groq-500-server-error", - CallInProgressErrorProviderfaultGroq503ServerOverloadedError: - "call.in-progress.error-providerfault-groq-503-server-overloaded-error", - PipelineErrorCerebras400BadRequestValidationFailed: "pipeline-error-cerebras-400-bad-request-validation-failed", - PipelineErrorCerebras401Unauthorized: "pipeline-error-cerebras-401-unauthorized", - PipelineErrorCerebras403ModelAccessDenied: "pipeline-error-cerebras-403-model-access-denied", - PipelineErrorCerebras429ExceededQuota: "pipeline-error-cerebras-429-exceeded-quota", - PipelineErrorCerebras500ServerError: "pipeline-error-cerebras-500-server-error", - PipelineErrorCerebras503ServerOverloadedError: "pipeline-error-cerebras-503-server-overloaded-error", - PipelineErrorCerebrasLlmFailed: "pipeline-error-cerebras-llm-failed", - CallInProgressErrorVapifaultCerebras400BadRequestValidationFailed: - "call.in-progress.error-vapifault-cerebras-400-bad-request-validation-failed", - CallInProgressErrorVapifaultCerebras401Unauthorized: - "call.in-progress.error-vapifault-cerebras-401-unauthorized", - CallInProgressErrorVapifaultCerebras403ModelAccessDenied: - "call.in-progress.error-vapifault-cerebras-403-model-access-denied", - CallInProgressErrorVapifaultCerebras429ExceededQuota: - "call.in-progress.error-vapifault-cerebras-429-exceeded-quota", - CallInProgressErrorProviderfaultCerebras500ServerError: - "call.in-progress.error-providerfault-cerebras-500-server-error", - CallInProgressErrorProviderfaultCerebras503ServerOverloadedError: - "call.in-progress.error-providerfault-cerebras-503-server-overloaded-error", - PipelineErrorAnthropic400BadRequestValidationFailed: - "pipeline-error-anthropic-400-bad-request-validation-failed", - PipelineErrorAnthropic401Unauthorized: "pipeline-error-anthropic-401-unauthorized", - PipelineErrorAnthropic403ModelAccessDenied: "pipeline-error-anthropic-403-model-access-denied", - PipelineErrorAnthropic429ExceededQuota: "pipeline-error-anthropic-429-exceeded-quota", - PipelineErrorAnthropic500ServerError: "pipeline-error-anthropic-500-server-error", - PipelineErrorAnthropic503ServerOverloadedError: "pipeline-error-anthropic-503-server-overloaded-error", - PipelineErrorAnthropicLlmFailed: "pipeline-error-anthropic-llm-failed", - CallInProgressErrorProviderfaultAnthropicLlmFailed: "call.in-progress.error-providerfault-anthropic-llm-failed", - CallInProgressErrorVapifaultAnthropic400BadRequestValidationFailed: - "call.in-progress.error-vapifault-anthropic-400-bad-request-validation-failed", - CallInProgressErrorVapifaultAnthropic401Unauthorized: - "call.in-progress.error-vapifault-anthropic-401-unauthorized", - CallInProgressErrorVapifaultAnthropic403ModelAccessDenied: - "call.in-progress.error-vapifault-anthropic-403-model-access-denied", - CallInProgressErrorVapifaultAnthropic429ExceededQuota: - "call.in-progress.error-vapifault-anthropic-429-exceeded-quota", - CallInProgressErrorProviderfaultAnthropic500ServerError: - "call.in-progress.error-providerfault-anthropic-500-server-error", - CallInProgressErrorProviderfaultAnthropic503ServerOverloadedError: - "call.in-progress.error-providerfault-anthropic-503-server-overloaded-error", - PipelineErrorAnthropicBedrock400BadRequestValidationFailed: - "pipeline-error-anthropic-bedrock-400-bad-request-validation-failed", - PipelineErrorAnthropicBedrock401Unauthorized: "pipeline-error-anthropic-bedrock-401-unauthorized", - PipelineErrorAnthropicBedrock403ModelAccessDenied: "pipeline-error-anthropic-bedrock-403-model-access-denied", - PipelineErrorAnthropicBedrock429ExceededQuota: "pipeline-error-anthropic-bedrock-429-exceeded-quota", - PipelineErrorAnthropicBedrock500ServerError: "pipeline-error-anthropic-bedrock-500-server-error", - PipelineErrorAnthropicBedrock503ServerOverloadedError: - "pipeline-error-anthropic-bedrock-503-server-overloaded-error", - PipelineErrorAnthropicBedrockLlmFailed: "pipeline-error-anthropic-bedrock-llm-failed", - CallInProgressErrorProviderfaultAnthropicBedrockLlmFailed: - "call.in-progress.error-providerfault-anthropic-bedrock-llm-failed", - CallInProgressErrorVapifaultAnthropicBedrock400BadRequestValidationFailed: - "call.in-progress.error-vapifault-anthropic-bedrock-400-bad-request-validation-failed", - CallInProgressErrorVapifaultAnthropicBedrock401Unauthorized: - "call.in-progress.error-vapifault-anthropic-bedrock-401-unauthorized", - CallInProgressErrorVapifaultAnthropicBedrock403ModelAccessDenied: - "call.in-progress.error-vapifault-anthropic-bedrock-403-model-access-denied", - CallInProgressErrorVapifaultAnthropicBedrock429ExceededQuota: - "call.in-progress.error-vapifault-anthropic-bedrock-429-exceeded-quota", - CallInProgressErrorProviderfaultAnthropicBedrock500ServerError: - "call.in-progress.error-providerfault-anthropic-bedrock-500-server-error", - CallInProgressErrorProviderfaultAnthropicBedrock503ServerOverloadedError: - "call.in-progress.error-providerfault-anthropic-bedrock-503-server-overloaded-error", - PipelineErrorAnthropicVertex400BadRequestValidationFailed: - "pipeline-error-anthropic-vertex-400-bad-request-validation-failed", - PipelineErrorAnthropicVertex401Unauthorized: "pipeline-error-anthropic-vertex-401-unauthorized", - PipelineErrorAnthropicVertex403ModelAccessDenied: "pipeline-error-anthropic-vertex-403-model-access-denied", - PipelineErrorAnthropicVertex429ExceededQuota: "pipeline-error-anthropic-vertex-429-exceeded-quota", - PipelineErrorAnthropicVertex500ServerError: "pipeline-error-anthropic-vertex-500-server-error", - PipelineErrorAnthropicVertex503ServerOverloadedError: - "pipeline-error-anthropic-vertex-503-server-overloaded-error", - PipelineErrorAnthropicVertexLlmFailed: "pipeline-error-anthropic-vertex-llm-failed", - CallInProgressErrorProviderfaultAnthropicVertexLlmFailed: - "call.in-progress.error-providerfault-anthropic-vertex-llm-failed", - CallInProgressErrorVapifaultAnthropicVertex400BadRequestValidationFailed: - "call.in-progress.error-vapifault-anthropic-vertex-400-bad-request-validation-failed", - CallInProgressErrorVapifaultAnthropicVertex401Unauthorized: - "call.in-progress.error-vapifault-anthropic-vertex-401-unauthorized", - CallInProgressErrorVapifaultAnthropicVertex403ModelAccessDenied: - "call.in-progress.error-vapifault-anthropic-vertex-403-model-access-denied", - CallInProgressErrorVapifaultAnthropicVertex429ExceededQuota: - "call.in-progress.error-vapifault-anthropic-vertex-429-exceeded-quota", - CallInProgressErrorProviderfaultAnthropicVertex500ServerError: - "call.in-progress.error-providerfault-anthropic-vertex-500-server-error", - CallInProgressErrorProviderfaultAnthropicVertex503ServerOverloadedError: - "call.in-progress.error-providerfault-anthropic-vertex-503-server-overloaded-error", - PipelineErrorTogetherAi400BadRequestValidationFailed: - "pipeline-error-together-ai-400-bad-request-validation-failed", - PipelineErrorTogetherAi401Unauthorized: "pipeline-error-together-ai-401-unauthorized", - PipelineErrorTogetherAi403ModelAccessDenied: "pipeline-error-together-ai-403-model-access-denied", - PipelineErrorTogetherAi429ExceededQuota: "pipeline-error-together-ai-429-exceeded-quota", - PipelineErrorTogetherAi500ServerError: "pipeline-error-together-ai-500-server-error", - PipelineErrorTogetherAi503ServerOverloadedError: "pipeline-error-together-ai-503-server-overloaded-error", - PipelineErrorTogetherAiLlmFailed: "pipeline-error-together-ai-llm-failed", - CallInProgressErrorProviderfaultTogetherAiLlmFailed: - "call.in-progress.error-providerfault-together-ai-llm-failed", - CallInProgressErrorVapifaultTogetherAi400BadRequestValidationFailed: - "call.in-progress.error-vapifault-together-ai-400-bad-request-validation-failed", - CallInProgressErrorVapifaultTogetherAi401Unauthorized: - "call.in-progress.error-vapifault-together-ai-401-unauthorized", - CallInProgressErrorVapifaultTogetherAi403ModelAccessDenied: - "call.in-progress.error-vapifault-together-ai-403-model-access-denied", - CallInProgressErrorVapifaultTogetherAi429ExceededQuota: - "call.in-progress.error-vapifault-together-ai-429-exceeded-quota", - CallInProgressErrorProviderfaultTogetherAi500ServerError: - "call.in-progress.error-providerfault-together-ai-500-server-error", - CallInProgressErrorProviderfaultTogetherAi503ServerOverloadedError: - "call.in-progress.error-providerfault-together-ai-503-server-overloaded-error", - PipelineErrorAnyscale400BadRequestValidationFailed: "pipeline-error-anyscale-400-bad-request-validation-failed", - PipelineErrorAnyscale401Unauthorized: "pipeline-error-anyscale-401-unauthorized", - PipelineErrorAnyscale403ModelAccessDenied: "pipeline-error-anyscale-403-model-access-denied", - PipelineErrorAnyscale429ExceededQuota: "pipeline-error-anyscale-429-exceeded-quota", - PipelineErrorAnyscale500ServerError: "pipeline-error-anyscale-500-server-error", - PipelineErrorAnyscale503ServerOverloadedError: "pipeline-error-anyscale-503-server-overloaded-error", - PipelineErrorAnyscaleLlmFailed: "pipeline-error-anyscale-llm-failed", - CallInProgressErrorProviderfaultAnyscaleLlmFailed: "call.in-progress.error-providerfault-anyscale-llm-failed", - CallInProgressErrorVapifaultAnyscale400BadRequestValidationFailed: - "call.in-progress.error-vapifault-anyscale-400-bad-request-validation-failed", - CallInProgressErrorVapifaultAnyscale401Unauthorized: - "call.in-progress.error-vapifault-anyscale-401-unauthorized", - CallInProgressErrorVapifaultAnyscale403ModelAccessDenied: - "call.in-progress.error-vapifault-anyscale-403-model-access-denied", - CallInProgressErrorVapifaultAnyscale429ExceededQuota: - "call.in-progress.error-vapifault-anyscale-429-exceeded-quota", - CallInProgressErrorProviderfaultAnyscale500ServerError: - "call.in-progress.error-providerfault-anyscale-500-server-error", - CallInProgressErrorProviderfaultAnyscale503ServerOverloadedError: - "call.in-progress.error-providerfault-anyscale-503-server-overloaded-error", - PipelineErrorOpenrouter400BadRequestValidationFailed: - "pipeline-error-openrouter-400-bad-request-validation-failed", - PipelineErrorOpenrouter401Unauthorized: "pipeline-error-openrouter-401-unauthorized", - PipelineErrorOpenrouter403ModelAccessDenied: "pipeline-error-openrouter-403-model-access-denied", - PipelineErrorOpenrouter429ExceededQuota: "pipeline-error-openrouter-429-exceeded-quota", - PipelineErrorOpenrouter500ServerError: "pipeline-error-openrouter-500-server-error", - PipelineErrorOpenrouter503ServerOverloadedError: "pipeline-error-openrouter-503-server-overloaded-error", - PipelineErrorOpenrouterLlmFailed: "pipeline-error-openrouter-llm-failed", - CallInProgressErrorProviderfaultOpenrouterLlmFailed: - "call.in-progress.error-providerfault-openrouter-llm-failed", - CallInProgressErrorVapifaultOpenrouter400BadRequestValidationFailed: - "call.in-progress.error-vapifault-openrouter-400-bad-request-validation-failed", - CallInProgressErrorVapifaultOpenrouter401Unauthorized: - "call.in-progress.error-vapifault-openrouter-401-unauthorized", - CallInProgressErrorVapifaultOpenrouter403ModelAccessDenied: - "call.in-progress.error-vapifault-openrouter-403-model-access-denied", - CallInProgressErrorVapifaultOpenrouter429ExceededQuota: - "call.in-progress.error-vapifault-openrouter-429-exceeded-quota", - CallInProgressErrorProviderfaultOpenrouter500ServerError: - "call.in-progress.error-providerfault-openrouter-500-server-error", - CallInProgressErrorProviderfaultOpenrouter503ServerOverloadedError: - "call.in-progress.error-providerfault-openrouter-503-server-overloaded-error", - PipelineErrorPerplexityAi400BadRequestValidationFailed: - "pipeline-error-perplexity-ai-400-bad-request-validation-failed", - PipelineErrorPerplexityAi401Unauthorized: "pipeline-error-perplexity-ai-401-unauthorized", - PipelineErrorPerplexityAi403ModelAccessDenied: "pipeline-error-perplexity-ai-403-model-access-denied", - PipelineErrorPerplexityAi429ExceededQuota: "pipeline-error-perplexity-ai-429-exceeded-quota", - PipelineErrorPerplexityAi500ServerError: "pipeline-error-perplexity-ai-500-server-error", - PipelineErrorPerplexityAi503ServerOverloadedError: "pipeline-error-perplexity-ai-503-server-overloaded-error", - PipelineErrorPerplexityAiLlmFailed: "pipeline-error-perplexity-ai-llm-failed", - CallInProgressErrorProviderfaultPerplexityAiLlmFailed: - "call.in-progress.error-providerfault-perplexity-ai-llm-failed", - CallInProgressErrorVapifaultPerplexityAi400BadRequestValidationFailed: - "call.in-progress.error-vapifault-perplexity-ai-400-bad-request-validation-failed", - CallInProgressErrorVapifaultPerplexityAi401Unauthorized: - "call.in-progress.error-vapifault-perplexity-ai-401-unauthorized", - CallInProgressErrorVapifaultPerplexityAi403ModelAccessDenied: - "call.in-progress.error-vapifault-perplexity-ai-403-model-access-denied", - CallInProgressErrorVapifaultPerplexityAi429ExceededQuota: - "call.in-progress.error-vapifault-perplexity-ai-429-exceeded-quota", - CallInProgressErrorProviderfaultPerplexityAi500ServerError: - "call.in-progress.error-providerfault-perplexity-ai-500-server-error", - CallInProgressErrorProviderfaultPerplexityAi503ServerOverloadedError: - "call.in-progress.error-providerfault-perplexity-ai-503-server-overloaded-error", - PipelineErrorDeepinfra400BadRequestValidationFailed: - "pipeline-error-deepinfra-400-bad-request-validation-failed", - PipelineErrorDeepinfra401Unauthorized: "pipeline-error-deepinfra-401-unauthorized", - PipelineErrorDeepinfra403ModelAccessDenied: "pipeline-error-deepinfra-403-model-access-denied", - PipelineErrorDeepinfra429ExceededQuota: "pipeline-error-deepinfra-429-exceeded-quota", - PipelineErrorDeepinfra500ServerError: "pipeline-error-deepinfra-500-server-error", - PipelineErrorDeepinfra503ServerOverloadedError: "pipeline-error-deepinfra-503-server-overloaded-error", - PipelineErrorDeepinfraLlmFailed: "pipeline-error-deepinfra-llm-failed", - CallInProgressErrorProviderfaultDeepinfraLlmFailed: "call.in-progress.error-providerfault-deepinfra-llm-failed", - CallInProgressErrorVapifaultDeepinfra400BadRequestValidationFailed: - "call.in-progress.error-vapifault-deepinfra-400-bad-request-validation-failed", - CallInProgressErrorVapifaultDeepinfra401Unauthorized: - "call.in-progress.error-vapifault-deepinfra-401-unauthorized", - CallInProgressErrorVapifaultDeepinfra403ModelAccessDenied: - "call.in-progress.error-vapifault-deepinfra-403-model-access-denied", - CallInProgressErrorVapifaultDeepinfra429ExceededQuota: - "call.in-progress.error-vapifault-deepinfra-429-exceeded-quota", - CallInProgressErrorProviderfaultDeepinfra500ServerError: - "call.in-progress.error-providerfault-deepinfra-500-server-error", - CallInProgressErrorProviderfaultDeepinfra503ServerOverloadedError: - "call.in-progress.error-providerfault-deepinfra-503-server-overloaded-error", - PipelineErrorRunpod400BadRequestValidationFailed: "pipeline-error-runpod-400-bad-request-validation-failed", - PipelineErrorRunpod401Unauthorized: "pipeline-error-runpod-401-unauthorized", - PipelineErrorRunpod403ModelAccessDenied: "pipeline-error-runpod-403-model-access-denied", - PipelineErrorRunpod429ExceededQuota: "pipeline-error-runpod-429-exceeded-quota", - PipelineErrorRunpod500ServerError: "pipeline-error-runpod-500-server-error", - PipelineErrorRunpod503ServerOverloadedError: "pipeline-error-runpod-503-server-overloaded-error", - PipelineErrorRunpodLlmFailed: "pipeline-error-runpod-llm-failed", - CallInProgressErrorProviderfaultRunpodLlmFailed: "call.in-progress.error-providerfault-runpod-llm-failed", - CallInProgressErrorVapifaultRunpod400BadRequestValidationFailed: - "call.in-progress.error-vapifault-runpod-400-bad-request-validation-failed", - CallInProgressErrorVapifaultRunpod401Unauthorized: "call.in-progress.error-vapifault-runpod-401-unauthorized", - CallInProgressErrorVapifaultRunpod403ModelAccessDenied: - "call.in-progress.error-vapifault-runpod-403-model-access-denied", - CallInProgressErrorVapifaultRunpod429ExceededQuota: - "call.in-progress.error-vapifault-runpod-429-exceeded-quota", - CallInProgressErrorProviderfaultRunpod500ServerError: - "call.in-progress.error-providerfault-runpod-500-server-error", - CallInProgressErrorProviderfaultRunpod503ServerOverloadedError: - "call.in-progress.error-providerfault-runpod-503-server-overloaded-error", - PipelineErrorCustomLlm400BadRequestValidationFailed: - "pipeline-error-custom-llm-400-bad-request-validation-failed", - PipelineErrorCustomLlm401Unauthorized: "pipeline-error-custom-llm-401-unauthorized", - PipelineErrorCustomLlm403ModelAccessDenied: "pipeline-error-custom-llm-403-model-access-denied", - PipelineErrorCustomLlm429ExceededQuota: "pipeline-error-custom-llm-429-exceeded-quota", - PipelineErrorCustomLlm500ServerError: "pipeline-error-custom-llm-500-server-error", - PipelineErrorCustomLlm503ServerOverloadedError: "pipeline-error-custom-llm-503-server-overloaded-error", - PipelineErrorCustomLlmLlmFailed: "pipeline-error-custom-llm-llm-failed", - CallInProgressErrorProviderfaultCustomLlmLlmFailed: - "call.in-progress.error-providerfault-custom-llm-llm-failed", - CallInProgressErrorVapifaultCustomLlm400BadRequestValidationFailed: - "call.in-progress.error-vapifault-custom-llm-400-bad-request-validation-failed", - CallInProgressErrorVapifaultCustomLlm401Unauthorized: - "call.in-progress.error-vapifault-custom-llm-401-unauthorized", - CallInProgressErrorVapifaultCustomLlm403ModelAccessDenied: - "call.in-progress.error-vapifault-custom-llm-403-model-access-denied", - CallInProgressErrorVapifaultCustomLlm429ExceededQuota: - "call.in-progress.error-vapifault-custom-llm-429-exceeded-quota", - CallInProgressErrorProviderfaultCustomLlm500ServerError: - "call.in-progress.error-providerfault-custom-llm-500-server-error", - CallInProgressErrorProviderfaultCustomLlm503ServerOverloadedError: - "call.in-progress.error-providerfault-custom-llm-503-server-overloaded-error", - PipelineErrorCustomVoiceFailed: "pipeline-error-custom-voice-failed", - PipelineErrorCartesiaSocketHangUp: "pipeline-error-cartesia-socket-hang-up", - PipelineErrorCartesiaRequestedPayment: "pipeline-error-cartesia-requested-payment", - PipelineErrorCartesia500ServerError: "pipeline-error-cartesia-500-server-error", - PipelineErrorCartesia502ServerError: "pipeline-error-cartesia-502-server-error", - PipelineErrorCartesia503ServerError: "pipeline-error-cartesia-503-server-error", - PipelineErrorCartesia522ServerError: "pipeline-error-cartesia-522-server-error", - CallInProgressErrorVapifaultCartesiaSocketHangUp: "call.in-progress.error-vapifault-cartesia-socket-hang-up", - CallInProgressErrorVapifaultCartesiaRequestedPayment: - "call.in-progress.error-vapifault-cartesia-requested-payment", - CallInProgressErrorProviderfaultCartesia500ServerError: - "call.in-progress.error-providerfault-cartesia-500-server-error", - CallInProgressErrorProviderfaultCartesia503ServerError: - "call.in-progress.error-providerfault-cartesia-503-server-error", - CallInProgressErrorProviderfaultCartesia522ServerError: - "call.in-progress.error-providerfault-cartesia-522-server-error", - PipelineErrorElevenLabsVoiceNotFound: "pipeline-error-eleven-labs-voice-not-found", - PipelineErrorElevenLabsQuotaExceeded: "pipeline-error-eleven-labs-quota-exceeded", - PipelineErrorElevenLabsUnauthorizedAccess: "pipeline-error-eleven-labs-unauthorized-access", - PipelineErrorElevenLabsUnauthorizedToAccessModel: "pipeline-error-eleven-labs-unauthorized-to-access-model", - PipelineErrorElevenLabsProfessionalVoicesOnlyForCreatorPlus: - "pipeline-error-eleven-labs-professional-voices-only-for-creator-plus", - PipelineErrorElevenLabsBlockedFreePlanAndRequestedUpgrade: - "pipeline-error-eleven-labs-blocked-free-plan-and-requested-upgrade", - PipelineErrorElevenLabsBlockedConcurrentRequestsAndRequestedUpgrade: - "pipeline-error-eleven-labs-blocked-concurrent-requests-and-requested-upgrade", - PipelineErrorElevenLabsBlockedUsingInstantVoiceCloneAndRequestedUpgrade: - "pipeline-error-eleven-labs-blocked-using-instant-voice-clone-and-requested-upgrade", - PipelineErrorElevenLabsSystemBusyAndRequestedUpgrade: - "pipeline-error-eleven-labs-system-busy-and-requested-upgrade", - PipelineErrorElevenLabsVoiceNotFineTuned: "pipeline-error-eleven-labs-voice-not-fine-tuned", - PipelineErrorElevenLabsInvalidApiKey: "pipeline-error-eleven-labs-invalid-api-key", - PipelineErrorElevenLabsInvalidVoiceSamples: "pipeline-error-eleven-labs-invalid-voice-samples", - PipelineErrorElevenLabsVoiceDisabledByOwner: "pipeline-error-eleven-labs-voice-disabled-by-owner", - PipelineErrorElevenLabsVapiVoiceDisabledByOwner: "pipeline-error-eleven-labs-vapi-voice-disabled-by-owner", - PipelineErrorElevenLabsBlockedAccountInProbation: "pipeline-error-eleven-labs-blocked-account-in-probation", - PipelineErrorElevenLabsBlockedContentAgainstTheirPolicy: - "pipeline-error-eleven-labs-blocked-content-against-their-policy", - PipelineErrorElevenLabsMissingSamplesForVoiceClone: - "pipeline-error-eleven-labs-missing-samples-for-voice-clone", - PipelineErrorElevenLabsVoiceNotFineTunedAndCannotBeUsed: - "pipeline-error-eleven-labs-voice-not-fine-tuned-and-cannot-be-used", - PipelineErrorElevenLabsVoiceNotAllowedForFreeUsers: - "pipeline-error-eleven-labs-voice-not-allowed-for-free-users", - PipelineErrorElevenLabsMaxCharacterLimitExceeded: "pipeline-error-eleven-labs-max-character-limit-exceeded", - PipelineErrorElevenLabsBlockedVoicePotentiallyAgainstTermsOfServiceAndAwaitingVerification: - "pipeline-error-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification", - PipelineErrorElevenLabs500ServerError: "pipeline-error-eleven-labs-500-server-error", - PipelineErrorElevenLabs503ServerError: "pipeline-error-eleven-labs-503-server-error", - CallInProgressErrorVapifaultElevenLabsVoiceNotFound: - "call.in-progress.error-vapifault-eleven-labs-voice-not-found", - CallInProgressErrorVapifaultElevenLabsQuotaExceeded: - "call.in-progress.error-vapifault-eleven-labs-quota-exceeded", - CallInProgressErrorVapifaultElevenLabsUnauthorizedAccess: - "call.in-progress.error-vapifault-eleven-labs-unauthorized-access", - CallInProgressErrorVapifaultElevenLabsUnauthorizedToAccessModel: - "call.in-progress.error-vapifault-eleven-labs-unauthorized-to-access-model", - CallInProgressErrorVapifaultElevenLabsProfessionalVoicesOnlyForCreatorPlus: - "call.in-progress.error-vapifault-eleven-labs-professional-voices-only-for-creator-plus", - CallInProgressErrorVapifaultElevenLabsBlockedFreePlanAndRequestedUpgrade: - "call.in-progress.error-vapifault-eleven-labs-blocked-free-plan-and-requested-upgrade", - CallInProgressErrorVapifaultElevenLabsBlockedConcurrentRequestsAndRequestedUpgrade: - "call.in-progress.error-vapifault-eleven-labs-blocked-concurrent-requests-and-requested-upgrade", - CallInProgressErrorVapifaultElevenLabsBlockedUsingInstantVoiceCloneAndRequestedUpgrade: - "call.in-progress.error-vapifault-eleven-labs-blocked-using-instant-voice-clone-and-requested-upgrade", - CallInProgressErrorVapifaultElevenLabsSystemBusyAndRequestedUpgrade: - "call.in-progress.error-vapifault-eleven-labs-system-busy-and-requested-upgrade", - CallInProgressErrorVapifaultElevenLabsVoiceNotFineTuned: - "call.in-progress.error-vapifault-eleven-labs-voice-not-fine-tuned", - CallInProgressErrorVapifaultElevenLabsInvalidApiKey: - "call.in-progress.error-vapifault-eleven-labs-invalid-api-key", - CallInProgressErrorVapifaultElevenLabsInvalidVoiceSamples: - "call.in-progress.error-vapifault-eleven-labs-invalid-voice-samples", - CallInProgressErrorVapifaultElevenLabsVoiceDisabledByOwner: - "call.in-progress.error-vapifault-eleven-labs-voice-disabled-by-owner", - CallInProgressErrorVapifaultElevenLabsBlockedAccountInProbation: - "call.in-progress.error-vapifault-eleven-labs-blocked-account-in-probation", - CallInProgressErrorVapifaultElevenLabsBlockedContentAgainstTheirPolicy: - "call.in-progress.error-vapifault-eleven-labs-blocked-content-against-their-policy", - CallInProgressErrorVapifaultElevenLabsMissingSamplesForVoiceClone: - "call.in-progress.error-vapifault-eleven-labs-missing-samples-for-voice-clone", - CallInProgressErrorVapifaultElevenLabsVoiceNotFineTunedAndCannotBeUsed: - "call.in-progress.error-vapifault-eleven-labs-voice-not-fine-tuned-and-cannot-be-used", - CallInProgressErrorVapifaultElevenLabsVoiceNotAllowedForFreeUsers: - "call.in-progress.error-vapifault-eleven-labs-voice-not-allowed-for-free-users", - CallInProgressErrorVapifaultElevenLabsMaxCharacterLimitExceeded: - "call.in-progress.error-vapifault-eleven-labs-max-character-limit-exceeded", - CallInProgressErrorVapifaultElevenLabsBlockedVoicePotentiallyAgainstTermsOfServiceAndAwaitingVerification: - "call.in-progress.error-vapifault-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification", - CallInProgressErrorProviderfaultElevenLabs500ServerError: - "call.in-progress.error-providerfault-eleven-labs-500-server-error", - CallInProgressErrorProviderfaultElevenLabs503ServerError: - "call.in-progress.error-providerfault-eleven-labs-503-server-error", - PipelineErrorPlayhtRequestTimedOut: "pipeline-error-playht-request-timed-out", - PipelineErrorPlayhtInvalidVoice: "pipeline-error-playht-invalid-voice", - PipelineErrorPlayhtUnexpectedError: "pipeline-error-playht-unexpected-error", - PipelineErrorPlayhtOutOfCredits: "pipeline-error-playht-out-of-credits", - PipelineErrorPlayhtInvalidEmotion: "pipeline-error-playht-invalid-emotion", - PipelineErrorPlayhtVoiceMustBeAValidVoiceManifestUri: - "pipeline-error-playht-voice-must-be-a-valid-voice-manifest-uri", - PipelineErrorPlayht401Unauthorized: "pipeline-error-playht-401-unauthorized", - PipelineErrorPlayht403ForbiddenOutOfCharacters: "pipeline-error-playht-403-forbidden-out-of-characters", - PipelineErrorPlayht403ForbiddenApiAccessNotAvailable: - "pipeline-error-playht-403-forbidden-api-access-not-available", - PipelineErrorPlayht429ExceededQuota: "pipeline-error-playht-429-exceeded-quota", - PipelineErrorPlayht502GatewayError: "pipeline-error-playht-502-gateway-error", - PipelineErrorPlayht504GatewayError: "pipeline-error-playht-504-gateway-error", - CallInProgressErrorVapifaultPlayhtRequestTimedOut: "call.in-progress.error-vapifault-playht-request-timed-out", - CallInProgressErrorVapifaultPlayhtInvalidVoice: "call.in-progress.error-vapifault-playht-invalid-voice", - CallInProgressErrorVapifaultPlayhtUnexpectedError: "call.in-progress.error-vapifault-playht-unexpected-error", - CallInProgressErrorVapifaultPlayhtOutOfCredits: "call.in-progress.error-vapifault-playht-out-of-credits", - CallInProgressErrorVapifaultPlayhtInvalidEmotion: "call.in-progress.error-vapifault-playht-invalid-emotion", - CallInProgressErrorVapifaultPlayhtVoiceMustBeAValidVoiceManifestUri: - "call.in-progress.error-vapifault-playht-voice-must-be-a-valid-voice-manifest-uri", - CallInProgressErrorVapifaultPlayht401Unauthorized: "call.in-progress.error-vapifault-playht-401-unauthorized", - CallInProgressErrorVapifaultPlayht403ForbiddenOutOfCharacters: - "call.in-progress.error-vapifault-playht-403-forbidden-out-of-characters", - CallInProgressErrorVapifaultPlayht403ForbiddenApiAccessNotAvailable: - "call.in-progress.error-vapifault-playht-403-forbidden-api-access-not-available", - CallInProgressErrorVapifaultPlayht429ExceededQuota: - "call.in-progress.error-vapifault-playht-429-exceeded-quota", - CallInProgressErrorProviderfaultPlayht502GatewayError: - "call.in-progress.error-providerfault-playht-502-gateway-error", - CallInProgressErrorProviderfaultPlayht504GatewayError: - "call.in-progress.error-providerfault-playht-504-gateway-error", - PipelineErrorCustomTranscriberFailed: "pipeline-error-custom-transcriber-failed", - CallInProgressErrorVapifaultCustomTranscriberFailed: - "call.in-progress.error-vapifault-custom-transcriber-failed", - PipelineErrorElevenLabsTranscriberFailed: "pipeline-error-eleven-labs-transcriber-failed", - CallInProgressErrorVapifaultElevenLabsTranscriberFailed: - "call.in-progress.error-vapifault-eleven-labs-transcriber-failed", - PipelineErrorDeepgramReturning400NoSuchModelLanguageTierCombination: - "pipeline-error-deepgram-returning-400-no-such-model-language-tier-combination", - PipelineErrorDeepgramReturning401InvalidCredentials: - "pipeline-error-deepgram-returning-401-invalid-credentials", - PipelineErrorDeepgramReturning403ModelAccessDenied: "pipeline-error-deepgram-returning-403-model-access-denied", - PipelineErrorDeepgramReturning404NotFound: "pipeline-error-deepgram-returning-404-not-found", - PipelineErrorDeepgramReturning500InvalidJson: "pipeline-error-deepgram-returning-500-invalid-json", - PipelineErrorDeepgramReturning502NetworkError: "pipeline-error-deepgram-returning-502-network-error", - PipelineErrorDeepgramReturning502BadGatewayEhostunreach: - "pipeline-error-deepgram-returning-502-bad-gateway-ehostunreach", - PipelineErrorDeepgramReturningEconnreset: "pipeline-error-deepgram-returning-econnreset", - CallInProgressErrorVapifaultDeepgramReturning400NoSuchModelLanguageTierCombination: - "call.in-progress.error-vapifault-deepgram-returning-400-no-such-model-language-tier-combination", - CallInProgressErrorVapifaultDeepgramReturning401InvalidCredentials: - "call.in-progress.error-vapifault-deepgram-returning-401-invalid-credentials", - CallInProgressErrorVapifaultDeepgramReturning404NotFound: - "call.in-progress.error-vapifault-deepgram-returning-404-not-found", - CallInProgressErrorVapifaultDeepgramReturning403ModelAccessDenied: - "call.in-progress.error-vapifault-deepgram-returning-403-model-access-denied", - CallInProgressErrorProviderfaultDeepgramReturning500InvalidJson: - "call.in-progress.error-providerfault-deepgram-returning-500-invalid-json", - CallInProgressErrorProviderfaultDeepgramReturning502NetworkError: - "call.in-progress.error-providerfault-deepgram-returning-502-network-error", - CallInProgressErrorProviderfaultDeepgramReturning502BadGatewayEhostunreach: - "call.in-progress.error-providerfault-deepgram-returning-502-bad-gateway-ehostunreach", - PipelineErrorGoogleTranscriberFailed: "pipeline-error-google-transcriber-failed", - CallInProgressErrorVapifaultGoogleTranscriberFailed: - "call.in-progress.error-vapifault-google-transcriber-failed", - PipelineErrorOpenaiTranscriberFailed: "pipeline-error-openai-transcriber-failed", - CallInProgressErrorVapifaultOpenaiTranscriberFailed: - "call.in-progress.error-vapifault-openai-transcriber-failed", - CallInProgressErrorWarmTransferMaxDuration: "call.in-progress.error-warm-transfer-max-duration", - CallInProgressErrorWarmTransferAssistantCancelled: "call.in-progress.error-warm-transfer-assistant-cancelled", - CallInProgressErrorWarmTransferSilenceTimeout: "call.in-progress.error-warm-transfer-silence-timeout", - CallInProgressErrorWarmTransferMicrophoneTimeout: "call.in-progress.error-warm-transfer-microphone-timeout", - CallInProgressErrorWarmTransferHangTimeout: "call.in-progress.error-warm-transfer-hang-timeout", - CallInProgressErrorWarmTransferIdleTimeout: "call.in-progress.error-warm-transfer-idle-timeout", - AssistantEndedCall: "assistant-ended-call", - AssistantSaidEndCallPhrase: "assistant-said-end-call-phrase", - AssistantEndedCallWithHangupTask: "assistant-ended-call-with-hangup-task", - AssistantEndedCallAfterMessageSpoken: "assistant-ended-call-after-message-spoken", - AssistantForwardedCall: "assistant-forwarded-call", - AssistantJoinTimedOut: "assistant-join-timed-out", - CallInProgressErrorAssistantDidNotReceiveCustomerAudio: - "call.in-progress.error-assistant-did-not-receive-customer-audio", - CallInProgressErrorTransferFailed: "call.in-progress.error-transfer-failed", - CustomerBusy: "customer-busy", - CustomerEndedCall: "customer-ended-call", - CustomerEndedCallBeforeWarmTransfer: "customer-ended-call-before-warm-transfer", - CustomerEndedCallAfterWarmTransferAttempt: "customer-ended-call-after-warm-transfer-attempt", - CustomerDidNotAnswer: "customer-did-not-answer", - CustomerDidNotGiveMicrophonePermission: "customer-did-not-give-microphone-permission", - ExceededMaxDuration: "exceeded-max-duration", - ManuallyCanceled: "manually-canceled", - PhoneCallProviderClosedWebsocket: "phone-call-provider-closed-websocket", - CallForwardingOperatorBusy: "call.forwarding.operator-busy", - SilenceTimedOut: "silence-timed-out", - CallInProgressErrorSipInboundCallFailedToConnect: "call.in-progress.error-sip-inbound-call-failed-to-connect", - CallInProgressErrorProviderfaultOutboundSip403Forbidden: - "call.in-progress.error-providerfault-outbound-sip-403-forbidden", - CallInProgressErrorProviderfaultOutboundSip407ProxyAuthenticationRequired: - "call.in-progress.error-providerfault-outbound-sip-407-proxy-authentication-required", - CallInProgressErrorProviderfaultOutboundSip503ServiceUnavailable: - "call.in-progress.error-providerfault-outbound-sip-503-service-unavailable", - CallInProgressErrorProviderfaultOutboundSip480TemporarilyUnavailable: - "call.in-progress.error-providerfault-outbound-sip-480-temporarily-unavailable", - CallInProgressErrorSipOutboundCallFailedToConnect: "call.in-progress.error-sip-outbound-call-failed-to-connect", - CallRingingHookExecutedSay: "call.ringing.hook-executed-say", - CallRingingHookExecutedTransfer: "call.ringing.hook-executed-transfer", - CallEndingHookExecutedSay: "call.ending.hook-executed-say", - CallEndingHookExecutedTransfer: "call.ending.hook-executed-transfer", - CallRingingSipInboundCallerHungupBeforeCallConnect: - "call.ringing.sip-inbound-caller-hungup-before-call-connect", - CallRingingErrorSipInboundCallFailedToConnect: "call.ringing.error-sip-inbound-call-failed-to-connect", - TwilioFailedToConnectCall: "twilio-failed-to-connect-call", - TwilioReportedCustomerMisdialed: "twilio-reported-customer-misdialed", - VonageRejected: "vonage-rejected", - Voicemail: "voicemail", - CallDeleted: "call-deleted", - } as const; - /** - * This is the destination where the call ended up being transferred to. If the call was not transferred, this will be empty. - */ - export type Destination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; -} diff --git a/src/api/types/CallCostsItem.ts b/src/api/types/CallCostsItem.ts new file mode 100644 index 00000000..bd9a47f2 --- /dev/null +++ b/src/api/types/CallCostsItem.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CallCostsItem = + | Vapi.TransportCost + | Vapi.TranscriberCost + | Vapi.ModelCost + | Vapi.VoiceCost + | Vapi.VapiCost + | Vapi.VoicemailDetectionCost + | Vapi.AnalysisCost + | Vapi.KnowledgeBaseCost; diff --git a/src/api/types/CallDestination.ts b/src/api/types/CallDestination.ts new file mode 100644 index 00000000..d3f17837 --- /dev/null +++ b/src/api/types/CallDestination.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the destination where the call ended up being transferred to. If the call was not transferred, this will be empty. + */ +export type CallDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; diff --git a/src/api/types/CallEndedReason.ts b/src/api/types/CallEndedReason.ts new file mode 100644 index 00000000..18106695 --- /dev/null +++ b/src/api/types/CallEndedReason.ts @@ -0,0 +1,1245 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the explanation for how the call ended. + */ +export type CallEndedReason = + | "call-start-error-neither-assistant-nor-server-set" + | "assistant-request-failed" + | "assistant-request-returned-error" + | "assistant-request-returned-unspeakable-error" + | "assistant-request-returned-invalid-assistant" + | "assistant-request-returned-no-assistant" + | "assistant-request-returned-forwarding-phone-number" + | "scheduled-call-deleted" + | "call.start.error-vapifault-get-org" + | "call.start.error-vapifault-get-subscription" + | "call.start.error-get-assistant" + | "call.start.error-get-phone-number" + | "call.start.error-get-customer" + | "call.start.error-get-resources-validation" + | "call.start.error-vapi-number-international" + | "call.start.error-vapi-number-outbound-daily-limit" + | "call.start.error-get-transport" + | "call.start.error-subscription-wallet-does-not-exist" + | "call.start.error-fraud-check-failed" + | "call.start.error-subscription-frozen" + | "call.start.error-subscription-insufficient-credits" + | "call.start.error-subscription-upgrade-failed" + | "call.start.error-subscription-concurrency-limit-reached" + | "call.start.error-enterprise-feature-not-available-recording-consent" + | "assistant-not-valid" + | "call.start.error-vapifault-database-error" + | "assistant-not-found" + | "pipeline-error-openai-voice-failed" + | "pipeline-error-cartesia-voice-failed" + | "pipeline-error-deepgram-voice-failed" + | "pipeline-error-eleven-labs-voice-failed" + | "pipeline-error-playht-voice-failed" + | "pipeline-error-lmnt-voice-failed" + | "pipeline-error-azure-voice-failed" + | "pipeline-error-rime-ai-voice-failed" + | "pipeline-error-smallest-ai-voice-failed" + | "pipeline-error-neuphonic-voice-failed" + | "pipeline-error-hume-voice-failed" + | "pipeline-error-sesame-voice-failed" + | "pipeline-error-inworld-voice-failed" + | "pipeline-error-minimax-voice-failed" + | "pipeline-error-tavus-video-failed" + | "call.in-progress.error-vapifault-openai-voice-failed" + | "call.in-progress.error-vapifault-cartesia-voice-failed" + | "call.in-progress.error-vapifault-deepgram-voice-failed" + | "call.in-progress.error-vapifault-eleven-labs-voice-failed" + | "call.in-progress.error-vapifault-playht-voice-failed" + | "call.in-progress.error-vapifault-lmnt-voice-failed" + | "call.in-progress.error-vapifault-azure-voice-failed" + | "call.in-progress.error-vapifault-rime-ai-voice-failed" + | "call.in-progress.error-vapifault-smallest-ai-voice-failed" + | "call.in-progress.error-vapifault-neuphonic-voice-failed" + | "call.in-progress.error-vapifault-hume-voice-failed" + | "call.in-progress.error-vapifault-sesame-voice-failed" + | "call.in-progress.error-vapifault-inworld-voice-failed" + | "call.in-progress.error-vapifault-minimax-voice-failed" + | "call.in-progress.error-vapifault-tavus-video-failed" + | "pipeline-error-vapi-llm-failed" + | "pipeline-error-vapi-400-bad-request-validation-failed" + | "pipeline-error-vapi-401-unauthorized" + | "pipeline-error-vapi-403-model-access-denied" + | "pipeline-error-vapi-429-exceeded-quota" + | "pipeline-error-vapi-500-server-error" + | "pipeline-error-vapi-503-server-overloaded-error" + | "call.in-progress.error-providerfault-vapi-llm-failed" + | "call.in-progress.error-vapifault-vapi-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-vapi-401-unauthorized" + | "call.in-progress.error-vapifault-vapi-403-model-access-denied" + | "call.in-progress.error-vapifault-vapi-429-exceeded-quota" + | "call.in-progress.error-providerfault-vapi-500-server-error" + | "call.in-progress.error-providerfault-vapi-503-server-overloaded-error" + | "pipeline-error-deepgram-transcriber-failed" + | "pipeline-error-deepgram-transcriber-api-key-missing" + | "call.in-progress.error-vapifault-deepgram-transcriber-failed" + | "pipeline-error-gladia-transcriber-failed" + | "call.in-progress.error-vapifault-gladia-transcriber-failed" + | "pipeline-error-speechmatics-transcriber-failed" + | "call.in-progress.error-vapifault-speechmatics-transcriber-failed" + | "pipeline-error-assembly-ai-transcriber-failed" + | "pipeline-error-assembly-ai-returning-400-insufficent-funds" + | "pipeline-error-assembly-ai-returning-400-paid-only-feature" + | "pipeline-error-assembly-ai-returning-401-invalid-credentials" + | "pipeline-error-assembly-ai-returning-500-invalid-schema" + | "pipeline-error-assembly-ai-returning-500-word-boost-parsing-failed" + | "call.in-progress.error-vapifault-assembly-ai-transcriber-failed" + | "call.in-progress.error-vapifault-assembly-ai-returning-400-insufficent-funds" + | "call.in-progress.error-vapifault-assembly-ai-returning-400-paid-only-feature" + | "call.in-progress.error-vapifault-assembly-ai-returning-401-invalid-credentials" + | "call.in-progress.error-vapifault-assembly-ai-returning-500-invalid-schema" + | "call.in-progress.error-vapifault-assembly-ai-returning-500-word-boost-parsing-failed" + | "pipeline-error-talkscriber-transcriber-failed" + | "call.in-progress.error-vapifault-talkscriber-transcriber-failed" + | "pipeline-error-azure-speech-transcriber-failed" + | "call.in-progress.error-vapifault-azure-speech-transcriber-failed" + | "call.in-progress.error-pipeline-no-available-llm-model" + | "worker-shutdown" + | "vonage-disconnected" + | "vonage-failed-to-connect-call" + | "vonage-completed" + | "phone-call-provider-bypass-enabled-but-no-call-received" + | "call.in-progress.error-providerfault-transport-never-connected" + | "call.in-progress.error-vapifault-worker-not-available" + | "call.in-progress.error-vapifault-transport-never-connected" + | "call.in-progress.error-vapifault-transport-connected-but-call-not-active" + | "call.in-progress.error-vapifault-call-started-but-connection-to-transport-missing" + | "call.in-progress.error-vapifault-worker-died" + | "call.in-progress.twilio-completed-call" + | "call.in-progress.sip-completed-call" + | "call.in-progress.error-providerfault-openai-llm-failed" + | "call.in-progress.error-providerfault-azure-openai-llm-failed" + | "call.in-progress.error-providerfault-groq-llm-failed" + | "call.in-progress.error-providerfault-google-llm-failed" + | "call.in-progress.error-providerfault-xai-llm-failed" + | "call.in-progress.error-providerfault-mistral-llm-failed" + | "call.in-progress.error-providerfault-inflection-ai-llm-failed" + | "call.in-progress.error-providerfault-cerebras-llm-failed" + | "call.in-progress.error-providerfault-deep-seek-llm-failed" + | "call.in-progress.error-vapifault-chat-pipeline-failed-to-start" + | "pipeline-error-openai-400-bad-request-validation-failed" + | "pipeline-error-openai-401-unauthorized" + | "pipeline-error-openai-401-incorrect-api-key" + | "pipeline-error-openai-401-account-not-in-organization" + | "pipeline-error-openai-403-model-access-denied" + | "pipeline-error-openai-429-exceeded-quota" + | "pipeline-error-openai-429-rate-limit-reached" + | "pipeline-error-openai-500-server-error" + | "pipeline-error-openai-503-server-overloaded-error" + | "pipeline-error-openai-llm-failed" + | "call.in-progress.error-vapifault-openai-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-openai-401-unauthorized" + | "call.in-progress.error-vapifault-openai-401-incorrect-api-key" + | "call.in-progress.error-vapifault-openai-401-account-not-in-organization" + | "call.in-progress.error-vapifault-openai-403-model-access-denied" + | "call.in-progress.error-vapifault-openai-429-exceeded-quota" + | "call.in-progress.error-vapifault-openai-429-rate-limit-reached" + | "call.in-progress.error-providerfault-openai-500-server-error" + | "call.in-progress.error-providerfault-openai-503-server-overloaded-error" + | "pipeline-error-azure-openai-400-bad-request-validation-failed" + | "pipeline-error-azure-openai-401-unauthorized" + | "pipeline-error-azure-openai-403-model-access-denied" + | "pipeline-error-azure-openai-429-exceeded-quota" + | "pipeline-error-azure-openai-500-server-error" + | "pipeline-error-azure-openai-503-server-overloaded-error" + | "pipeline-error-azure-openai-llm-failed" + | "call.in-progress.error-vapifault-azure-openai-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-azure-openai-401-unauthorized" + | "call.in-progress.error-vapifault-azure-openai-403-model-access-denied" + | "call.in-progress.error-vapifault-azure-openai-429-exceeded-quota" + | "call.in-progress.error-providerfault-azure-openai-500-server-error" + | "call.in-progress.error-providerfault-azure-openai-503-server-overloaded-error" + | "pipeline-error-google-400-bad-request-validation-failed" + | "pipeline-error-google-401-unauthorized" + | "pipeline-error-google-403-model-access-denied" + | "pipeline-error-google-429-exceeded-quota" + | "pipeline-error-google-500-server-error" + | "pipeline-error-google-503-server-overloaded-error" + | "pipeline-error-google-llm-failed" + | "call.in-progress.error-vapifault-google-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-google-401-unauthorized" + | "call.in-progress.error-vapifault-google-403-model-access-denied" + | "call.in-progress.error-vapifault-google-429-exceeded-quota" + | "call.in-progress.error-providerfault-google-500-server-error" + | "call.in-progress.error-providerfault-google-503-server-overloaded-error" + | "pipeline-error-xai-400-bad-request-validation-failed" + | "pipeline-error-xai-401-unauthorized" + | "pipeline-error-xai-403-model-access-denied" + | "pipeline-error-xai-429-exceeded-quota" + | "pipeline-error-xai-500-server-error" + | "pipeline-error-xai-503-server-overloaded-error" + | "pipeline-error-xai-llm-failed" + | "call.in-progress.error-vapifault-xai-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-xai-401-unauthorized" + | "call.in-progress.error-vapifault-xai-403-model-access-denied" + | "call.in-progress.error-vapifault-xai-429-exceeded-quota" + | "call.in-progress.error-providerfault-xai-500-server-error" + | "call.in-progress.error-providerfault-xai-503-server-overloaded-error" + | "pipeline-error-mistral-400-bad-request-validation-failed" + | "pipeline-error-mistral-401-unauthorized" + | "pipeline-error-mistral-403-model-access-denied" + | "pipeline-error-mistral-429-exceeded-quota" + | "pipeline-error-mistral-500-server-error" + | "pipeline-error-mistral-503-server-overloaded-error" + | "pipeline-error-mistral-llm-failed" + | "call.in-progress.error-vapifault-mistral-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-mistral-401-unauthorized" + | "call.in-progress.error-vapifault-mistral-403-model-access-denied" + | "call.in-progress.error-vapifault-mistral-429-exceeded-quota" + | "call.in-progress.error-providerfault-mistral-500-server-error" + | "call.in-progress.error-providerfault-mistral-503-server-overloaded-error" + | "pipeline-error-inflection-ai-400-bad-request-validation-failed" + | "pipeline-error-inflection-ai-401-unauthorized" + | "pipeline-error-inflection-ai-403-model-access-denied" + | "pipeline-error-inflection-ai-429-exceeded-quota" + | "pipeline-error-inflection-ai-500-server-error" + | "pipeline-error-inflection-ai-503-server-overloaded-error" + | "pipeline-error-inflection-ai-llm-failed" + | "call.in-progress.error-vapifault-inflection-ai-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-inflection-ai-401-unauthorized" + | "call.in-progress.error-vapifault-inflection-ai-403-model-access-denied" + | "call.in-progress.error-vapifault-inflection-ai-429-exceeded-quota" + | "call.in-progress.error-providerfault-inflection-ai-500-server-error" + | "call.in-progress.error-providerfault-inflection-ai-503-server-overloaded-error" + | "pipeline-error-deep-seek-400-bad-request-validation-failed" + | "pipeline-error-deep-seek-401-unauthorized" + | "pipeline-error-deep-seek-403-model-access-denied" + | "pipeline-error-deep-seek-429-exceeded-quota" + | "pipeline-error-deep-seek-500-server-error" + | "pipeline-error-deep-seek-503-server-overloaded-error" + | "pipeline-error-deep-seek-llm-failed" + | "call.in-progress.error-vapifault-deep-seek-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-deep-seek-401-unauthorized" + | "call.in-progress.error-vapifault-deep-seek-403-model-access-denied" + | "call.in-progress.error-vapifault-deep-seek-429-exceeded-quota" + | "call.in-progress.error-providerfault-deep-seek-500-server-error" + | "call.in-progress.error-providerfault-deep-seek-503-server-overloaded-error" + | "pipeline-error-groq-400-bad-request-validation-failed" + | "pipeline-error-groq-401-unauthorized" + | "pipeline-error-groq-403-model-access-denied" + | "pipeline-error-groq-429-exceeded-quota" + | "pipeline-error-groq-500-server-error" + | "pipeline-error-groq-503-server-overloaded-error" + | "pipeline-error-groq-llm-failed" + | "call.in-progress.error-vapifault-groq-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-groq-401-unauthorized" + | "call.in-progress.error-vapifault-groq-403-model-access-denied" + | "call.in-progress.error-vapifault-groq-429-exceeded-quota" + | "call.in-progress.error-providerfault-groq-500-server-error" + | "call.in-progress.error-providerfault-groq-503-server-overloaded-error" + | "pipeline-error-cerebras-400-bad-request-validation-failed" + | "pipeline-error-cerebras-401-unauthorized" + | "pipeline-error-cerebras-403-model-access-denied" + | "pipeline-error-cerebras-429-exceeded-quota" + | "pipeline-error-cerebras-500-server-error" + | "pipeline-error-cerebras-503-server-overloaded-error" + | "pipeline-error-cerebras-llm-failed" + | "call.in-progress.error-vapifault-cerebras-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-cerebras-401-unauthorized" + | "call.in-progress.error-vapifault-cerebras-403-model-access-denied" + | "call.in-progress.error-vapifault-cerebras-429-exceeded-quota" + | "call.in-progress.error-providerfault-cerebras-500-server-error" + | "call.in-progress.error-providerfault-cerebras-503-server-overloaded-error" + | "pipeline-error-anthropic-400-bad-request-validation-failed" + | "pipeline-error-anthropic-401-unauthorized" + | "pipeline-error-anthropic-403-model-access-denied" + | "pipeline-error-anthropic-429-exceeded-quota" + | "pipeline-error-anthropic-500-server-error" + | "pipeline-error-anthropic-503-server-overloaded-error" + | "pipeline-error-anthropic-llm-failed" + | "call.in-progress.error-providerfault-anthropic-llm-failed" + | "call.in-progress.error-vapifault-anthropic-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-anthropic-401-unauthorized" + | "call.in-progress.error-vapifault-anthropic-403-model-access-denied" + | "call.in-progress.error-vapifault-anthropic-429-exceeded-quota" + | "call.in-progress.error-providerfault-anthropic-500-server-error" + | "call.in-progress.error-providerfault-anthropic-503-server-overloaded-error" + | "pipeline-error-anthropic-bedrock-400-bad-request-validation-failed" + | "pipeline-error-anthropic-bedrock-401-unauthorized" + | "pipeline-error-anthropic-bedrock-403-model-access-denied" + | "pipeline-error-anthropic-bedrock-429-exceeded-quota" + | "pipeline-error-anthropic-bedrock-500-server-error" + | "pipeline-error-anthropic-bedrock-503-server-overloaded-error" + | "pipeline-error-anthropic-bedrock-llm-failed" + | "call.in-progress.error-providerfault-anthropic-bedrock-llm-failed" + | "call.in-progress.error-vapifault-anthropic-bedrock-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-anthropic-bedrock-401-unauthorized" + | "call.in-progress.error-vapifault-anthropic-bedrock-403-model-access-denied" + | "call.in-progress.error-vapifault-anthropic-bedrock-429-exceeded-quota" + | "call.in-progress.error-providerfault-anthropic-bedrock-500-server-error" + | "call.in-progress.error-providerfault-anthropic-bedrock-503-server-overloaded-error" + | "pipeline-error-anthropic-vertex-400-bad-request-validation-failed" + | "pipeline-error-anthropic-vertex-401-unauthorized" + | "pipeline-error-anthropic-vertex-403-model-access-denied" + | "pipeline-error-anthropic-vertex-429-exceeded-quota" + | "pipeline-error-anthropic-vertex-500-server-error" + | "pipeline-error-anthropic-vertex-503-server-overloaded-error" + | "pipeline-error-anthropic-vertex-llm-failed" + | "call.in-progress.error-providerfault-anthropic-vertex-llm-failed" + | "call.in-progress.error-vapifault-anthropic-vertex-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-anthropic-vertex-401-unauthorized" + | "call.in-progress.error-vapifault-anthropic-vertex-403-model-access-denied" + | "call.in-progress.error-vapifault-anthropic-vertex-429-exceeded-quota" + | "call.in-progress.error-providerfault-anthropic-vertex-500-server-error" + | "call.in-progress.error-providerfault-anthropic-vertex-503-server-overloaded-error" + | "pipeline-error-together-ai-400-bad-request-validation-failed" + | "pipeline-error-together-ai-401-unauthorized" + | "pipeline-error-together-ai-403-model-access-denied" + | "pipeline-error-together-ai-429-exceeded-quota" + | "pipeline-error-together-ai-500-server-error" + | "pipeline-error-together-ai-503-server-overloaded-error" + | "pipeline-error-together-ai-llm-failed" + | "call.in-progress.error-providerfault-together-ai-llm-failed" + | "call.in-progress.error-vapifault-together-ai-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-together-ai-401-unauthorized" + | "call.in-progress.error-vapifault-together-ai-403-model-access-denied" + | "call.in-progress.error-vapifault-together-ai-429-exceeded-quota" + | "call.in-progress.error-providerfault-together-ai-500-server-error" + | "call.in-progress.error-providerfault-together-ai-503-server-overloaded-error" + | "pipeline-error-anyscale-400-bad-request-validation-failed" + | "pipeline-error-anyscale-401-unauthorized" + | "pipeline-error-anyscale-403-model-access-denied" + | "pipeline-error-anyscale-429-exceeded-quota" + | "pipeline-error-anyscale-500-server-error" + | "pipeline-error-anyscale-503-server-overloaded-error" + | "pipeline-error-anyscale-llm-failed" + | "call.in-progress.error-providerfault-anyscale-llm-failed" + | "call.in-progress.error-vapifault-anyscale-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-anyscale-401-unauthorized" + | "call.in-progress.error-vapifault-anyscale-403-model-access-denied" + | "call.in-progress.error-vapifault-anyscale-429-exceeded-quota" + | "call.in-progress.error-providerfault-anyscale-500-server-error" + | "call.in-progress.error-providerfault-anyscale-503-server-overloaded-error" + | "pipeline-error-openrouter-400-bad-request-validation-failed" + | "pipeline-error-openrouter-401-unauthorized" + | "pipeline-error-openrouter-403-model-access-denied" + | "pipeline-error-openrouter-429-exceeded-quota" + | "pipeline-error-openrouter-500-server-error" + | "pipeline-error-openrouter-503-server-overloaded-error" + | "pipeline-error-openrouter-llm-failed" + | "call.in-progress.error-providerfault-openrouter-llm-failed" + | "call.in-progress.error-vapifault-openrouter-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-openrouter-401-unauthorized" + | "call.in-progress.error-vapifault-openrouter-403-model-access-denied" + | "call.in-progress.error-vapifault-openrouter-429-exceeded-quota" + | "call.in-progress.error-providerfault-openrouter-500-server-error" + | "call.in-progress.error-providerfault-openrouter-503-server-overloaded-error" + | "pipeline-error-perplexity-ai-400-bad-request-validation-failed" + | "pipeline-error-perplexity-ai-401-unauthorized" + | "pipeline-error-perplexity-ai-403-model-access-denied" + | "pipeline-error-perplexity-ai-429-exceeded-quota" + | "pipeline-error-perplexity-ai-500-server-error" + | "pipeline-error-perplexity-ai-503-server-overloaded-error" + | "pipeline-error-perplexity-ai-llm-failed" + | "call.in-progress.error-providerfault-perplexity-ai-llm-failed" + | "call.in-progress.error-vapifault-perplexity-ai-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-perplexity-ai-401-unauthorized" + | "call.in-progress.error-vapifault-perplexity-ai-403-model-access-denied" + | "call.in-progress.error-vapifault-perplexity-ai-429-exceeded-quota" + | "call.in-progress.error-providerfault-perplexity-ai-500-server-error" + | "call.in-progress.error-providerfault-perplexity-ai-503-server-overloaded-error" + | "pipeline-error-deepinfra-400-bad-request-validation-failed" + | "pipeline-error-deepinfra-401-unauthorized" + | "pipeline-error-deepinfra-403-model-access-denied" + | "pipeline-error-deepinfra-429-exceeded-quota" + | "pipeline-error-deepinfra-500-server-error" + | "pipeline-error-deepinfra-503-server-overloaded-error" + | "pipeline-error-deepinfra-llm-failed" + | "call.in-progress.error-providerfault-deepinfra-llm-failed" + | "call.in-progress.error-vapifault-deepinfra-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-deepinfra-401-unauthorized" + | "call.in-progress.error-vapifault-deepinfra-403-model-access-denied" + | "call.in-progress.error-vapifault-deepinfra-429-exceeded-quota" + | "call.in-progress.error-providerfault-deepinfra-500-server-error" + | "call.in-progress.error-providerfault-deepinfra-503-server-overloaded-error" + | "pipeline-error-runpod-400-bad-request-validation-failed" + | "pipeline-error-runpod-401-unauthorized" + | "pipeline-error-runpod-403-model-access-denied" + | "pipeline-error-runpod-429-exceeded-quota" + | "pipeline-error-runpod-500-server-error" + | "pipeline-error-runpod-503-server-overloaded-error" + | "pipeline-error-runpod-llm-failed" + | "call.in-progress.error-providerfault-runpod-llm-failed" + | "call.in-progress.error-vapifault-runpod-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-runpod-401-unauthorized" + | "call.in-progress.error-vapifault-runpod-403-model-access-denied" + | "call.in-progress.error-vapifault-runpod-429-exceeded-quota" + | "call.in-progress.error-providerfault-runpod-500-server-error" + | "call.in-progress.error-providerfault-runpod-503-server-overloaded-error" + | "pipeline-error-custom-llm-400-bad-request-validation-failed" + | "pipeline-error-custom-llm-401-unauthorized" + | "pipeline-error-custom-llm-403-model-access-denied" + | "pipeline-error-custom-llm-429-exceeded-quota" + | "pipeline-error-custom-llm-500-server-error" + | "pipeline-error-custom-llm-503-server-overloaded-error" + | "pipeline-error-custom-llm-llm-failed" + | "call.in-progress.error-providerfault-custom-llm-llm-failed" + | "call.in-progress.error-vapifault-custom-llm-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-custom-llm-401-unauthorized" + | "call.in-progress.error-vapifault-custom-llm-403-model-access-denied" + | "call.in-progress.error-vapifault-custom-llm-429-exceeded-quota" + | "call.in-progress.error-providerfault-custom-llm-500-server-error" + | "call.in-progress.error-providerfault-custom-llm-503-server-overloaded-error" + | "pipeline-error-custom-voice-failed" + | "pipeline-error-cartesia-socket-hang-up" + | "pipeline-error-cartesia-requested-payment" + | "pipeline-error-cartesia-500-server-error" + | "pipeline-error-cartesia-502-server-error" + | "pipeline-error-cartesia-503-server-error" + | "pipeline-error-cartesia-522-server-error" + | "call.in-progress.error-vapifault-cartesia-socket-hang-up" + | "call.in-progress.error-vapifault-cartesia-requested-payment" + | "call.in-progress.error-providerfault-cartesia-500-server-error" + | "call.in-progress.error-providerfault-cartesia-503-server-error" + | "call.in-progress.error-providerfault-cartesia-522-server-error" + | "pipeline-error-eleven-labs-voice-not-found" + | "pipeline-error-eleven-labs-quota-exceeded" + | "pipeline-error-eleven-labs-unauthorized-access" + | "pipeline-error-eleven-labs-unauthorized-to-access-model" + | "pipeline-error-eleven-labs-professional-voices-only-for-creator-plus" + | "pipeline-error-eleven-labs-blocked-free-plan-and-requested-upgrade" + | "pipeline-error-eleven-labs-blocked-concurrent-requests-and-requested-upgrade" + | "pipeline-error-eleven-labs-blocked-using-instant-voice-clone-and-requested-upgrade" + | "pipeline-error-eleven-labs-system-busy-and-requested-upgrade" + | "pipeline-error-eleven-labs-voice-not-fine-tuned" + | "pipeline-error-eleven-labs-invalid-api-key" + | "pipeline-error-eleven-labs-invalid-voice-samples" + | "pipeline-error-eleven-labs-voice-disabled-by-owner" + | "pipeline-error-eleven-labs-vapi-voice-disabled-by-owner" + | "pipeline-error-eleven-labs-blocked-account-in-probation" + | "pipeline-error-eleven-labs-blocked-content-against-their-policy" + | "pipeline-error-eleven-labs-missing-samples-for-voice-clone" + | "pipeline-error-eleven-labs-voice-not-fine-tuned-and-cannot-be-used" + | "pipeline-error-eleven-labs-voice-not-allowed-for-free-users" + | "pipeline-error-eleven-labs-max-character-limit-exceeded" + | "pipeline-error-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification" + | "pipeline-error-eleven-labs-500-server-error" + | "pipeline-error-eleven-labs-503-server-error" + | "call.in-progress.error-vapifault-eleven-labs-voice-not-found" + | "call.in-progress.error-vapifault-eleven-labs-quota-exceeded" + | "call.in-progress.error-vapifault-eleven-labs-unauthorized-access" + | "call.in-progress.error-vapifault-eleven-labs-unauthorized-to-access-model" + | "call.in-progress.error-vapifault-eleven-labs-professional-voices-only-for-creator-plus" + | "call.in-progress.error-vapifault-eleven-labs-blocked-free-plan-and-requested-upgrade" + | "call.in-progress.error-vapifault-eleven-labs-blocked-concurrent-requests-and-requested-upgrade" + | "call.in-progress.error-vapifault-eleven-labs-blocked-using-instant-voice-clone-and-requested-upgrade" + | "call.in-progress.error-vapifault-eleven-labs-system-busy-and-requested-upgrade" + | "call.in-progress.error-vapifault-eleven-labs-voice-not-fine-tuned" + | "call.in-progress.error-vapifault-eleven-labs-invalid-api-key" + | "call.in-progress.error-vapifault-eleven-labs-invalid-voice-samples" + | "call.in-progress.error-vapifault-eleven-labs-voice-disabled-by-owner" + | "call.in-progress.error-vapifault-eleven-labs-blocked-account-in-probation" + | "call.in-progress.error-vapifault-eleven-labs-blocked-content-against-their-policy" + | "call.in-progress.error-vapifault-eleven-labs-missing-samples-for-voice-clone" + | "call.in-progress.error-vapifault-eleven-labs-voice-not-fine-tuned-and-cannot-be-used" + | "call.in-progress.error-vapifault-eleven-labs-voice-not-allowed-for-free-users" + | "call.in-progress.error-vapifault-eleven-labs-max-character-limit-exceeded" + | "call.in-progress.error-vapifault-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification" + | "call.in-progress.error-providerfault-eleven-labs-500-server-error" + | "call.in-progress.error-providerfault-eleven-labs-503-server-error" + | "pipeline-error-playht-request-timed-out" + | "pipeline-error-playht-invalid-voice" + | "pipeline-error-playht-unexpected-error" + | "pipeline-error-playht-out-of-credits" + | "pipeline-error-playht-invalid-emotion" + | "pipeline-error-playht-voice-must-be-a-valid-voice-manifest-uri" + | "pipeline-error-playht-401-unauthorized" + | "pipeline-error-playht-403-forbidden-out-of-characters" + | "pipeline-error-playht-403-forbidden-api-access-not-available" + | "pipeline-error-playht-429-exceeded-quota" + | "pipeline-error-playht-502-gateway-error" + | "pipeline-error-playht-504-gateway-error" + | "call.in-progress.error-vapifault-playht-request-timed-out" + | "call.in-progress.error-vapifault-playht-invalid-voice" + | "call.in-progress.error-vapifault-playht-unexpected-error" + | "call.in-progress.error-vapifault-playht-out-of-credits" + | "call.in-progress.error-vapifault-playht-invalid-emotion" + | "call.in-progress.error-vapifault-playht-voice-must-be-a-valid-voice-manifest-uri" + | "call.in-progress.error-vapifault-playht-401-unauthorized" + | "call.in-progress.error-vapifault-playht-403-forbidden-out-of-characters" + | "call.in-progress.error-vapifault-playht-403-forbidden-api-access-not-available" + | "call.in-progress.error-vapifault-playht-429-exceeded-quota" + | "call.in-progress.error-providerfault-playht-502-gateway-error" + | "call.in-progress.error-providerfault-playht-504-gateway-error" + | "pipeline-error-custom-transcriber-failed" + | "call.in-progress.error-vapifault-custom-transcriber-failed" + | "pipeline-error-eleven-labs-transcriber-failed" + | "call.in-progress.error-vapifault-eleven-labs-transcriber-failed" + | "pipeline-error-deepgram-returning-400-no-such-model-language-tier-combination" + | "pipeline-error-deepgram-returning-401-invalid-credentials" + | "pipeline-error-deepgram-returning-403-model-access-denied" + | "pipeline-error-deepgram-returning-404-not-found" + | "pipeline-error-deepgram-returning-500-invalid-json" + | "pipeline-error-deepgram-returning-502-network-error" + | "pipeline-error-deepgram-returning-502-bad-gateway-ehostunreach" + | "pipeline-error-deepgram-returning-econnreset" + | "call.in-progress.error-vapifault-deepgram-returning-400-no-such-model-language-tier-combination" + | "call.in-progress.error-vapifault-deepgram-returning-401-invalid-credentials" + | "call.in-progress.error-vapifault-deepgram-returning-404-not-found" + | "call.in-progress.error-vapifault-deepgram-returning-403-model-access-denied" + | "call.in-progress.error-providerfault-deepgram-returning-500-invalid-json" + | "call.in-progress.error-providerfault-deepgram-returning-502-network-error" + | "call.in-progress.error-providerfault-deepgram-returning-502-bad-gateway-ehostunreach" + | "pipeline-error-google-transcriber-failed" + | "call.in-progress.error-vapifault-google-transcriber-failed" + | "pipeline-error-openai-transcriber-failed" + | "call.in-progress.error-vapifault-openai-transcriber-failed" + | "call.in-progress.error-warm-transfer-max-duration" + | "call.in-progress.error-warm-transfer-assistant-cancelled" + | "call.in-progress.error-warm-transfer-silence-timeout" + | "call.in-progress.error-warm-transfer-microphone-timeout" + | "call.in-progress.error-warm-transfer-hang-timeout" + | "call.in-progress.error-warm-transfer-idle-timeout" + | "assistant-ended-call" + | "assistant-said-end-call-phrase" + | "assistant-ended-call-with-hangup-task" + | "assistant-ended-call-after-message-spoken" + | "assistant-forwarded-call" + | "assistant-join-timed-out" + | "call.in-progress.error-assistant-did-not-receive-customer-audio" + | "call.in-progress.error-transfer-failed" + | "customer-busy" + | "customer-ended-call" + | "customer-ended-call-before-warm-transfer" + | "customer-ended-call-after-warm-transfer-attempt" + | "customer-did-not-answer" + | "customer-did-not-give-microphone-permission" + | "exceeded-max-duration" + | "manually-canceled" + | "phone-call-provider-closed-websocket" + | "call.forwarding.operator-busy" + | "silence-timed-out" + | "call.in-progress.error-sip-inbound-call-failed-to-connect" + | "call.in-progress.error-providerfault-outbound-sip-403-forbidden" + | "call.in-progress.error-providerfault-outbound-sip-407-proxy-authentication-required" + | "call.in-progress.error-providerfault-outbound-sip-503-service-unavailable" + | "call.in-progress.error-providerfault-outbound-sip-480-temporarily-unavailable" + | "call.in-progress.error-sip-outbound-call-failed-to-connect" + | "call.ringing.hook-executed-say" + | "call.ringing.hook-executed-transfer" + | "call.ending.hook-executed-say" + | "call.ending.hook-executed-transfer" + | "call.ringing.sip-inbound-caller-hungup-before-call-connect" + | "call.ringing.error-sip-inbound-call-failed-to-connect" + | "twilio-failed-to-connect-call" + | "twilio-reported-customer-misdialed" + | "vonage-rejected" + | "voicemail" + | "call-deleted"; +export const CallEndedReason = { + CallStartErrorNeitherAssistantNorServerSet: "call-start-error-neither-assistant-nor-server-set", + AssistantRequestFailed: "assistant-request-failed", + AssistantRequestReturnedError: "assistant-request-returned-error", + AssistantRequestReturnedUnspeakableError: "assistant-request-returned-unspeakable-error", + AssistantRequestReturnedInvalidAssistant: "assistant-request-returned-invalid-assistant", + AssistantRequestReturnedNoAssistant: "assistant-request-returned-no-assistant", + AssistantRequestReturnedForwardingPhoneNumber: "assistant-request-returned-forwarding-phone-number", + ScheduledCallDeleted: "scheduled-call-deleted", + CallStartErrorVapifaultGetOrg: "call.start.error-vapifault-get-org", + CallStartErrorVapifaultGetSubscription: "call.start.error-vapifault-get-subscription", + CallStartErrorGetAssistant: "call.start.error-get-assistant", + CallStartErrorGetPhoneNumber: "call.start.error-get-phone-number", + CallStartErrorGetCustomer: "call.start.error-get-customer", + CallStartErrorGetResourcesValidation: "call.start.error-get-resources-validation", + CallStartErrorVapiNumberInternational: "call.start.error-vapi-number-international", + CallStartErrorVapiNumberOutboundDailyLimit: "call.start.error-vapi-number-outbound-daily-limit", + CallStartErrorGetTransport: "call.start.error-get-transport", + CallStartErrorSubscriptionWalletDoesNotExist: "call.start.error-subscription-wallet-does-not-exist", + CallStartErrorFraudCheckFailed: "call.start.error-fraud-check-failed", + CallStartErrorSubscriptionFrozen: "call.start.error-subscription-frozen", + CallStartErrorSubscriptionInsufficientCredits: "call.start.error-subscription-insufficient-credits", + CallStartErrorSubscriptionUpgradeFailed: "call.start.error-subscription-upgrade-failed", + CallStartErrorSubscriptionConcurrencyLimitReached: "call.start.error-subscription-concurrency-limit-reached", + CallStartErrorEnterpriseFeatureNotAvailableRecordingConsent: + "call.start.error-enterprise-feature-not-available-recording-consent", + AssistantNotValid: "assistant-not-valid", + CallStartErrorVapifaultDatabaseError: "call.start.error-vapifault-database-error", + AssistantNotFound: "assistant-not-found", + PipelineErrorOpenaiVoiceFailed: "pipeline-error-openai-voice-failed", + PipelineErrorCartesiaVoiceFailed: "pipeline-error-cartesia-voice-failed", + PipelineErrorDeepgramVoiceFailed: "pipeline-error-deepgram-voice-failed", + PipelineErrorElevenLabsVoiceFailed: "pipeline-error-eleven-labs-voice-failed", + PipelineErrorPlayhtVoiceFailed: "pipeline-error-playht-voice-failed", + PipelineErrorLmntVoiceFailed: "pipeline-error-lmnt-voice-failed", + PipelineErrorAzureVoiceFailed: "pipeline-error-azure-voice-failed", + PipelineErrorRimeAiVoiceFailed: "pipeline-error-rime-ai-voice-failed", + PipelineErrorSmallestAiVoiceFailed: "pipeline-error-smallest-ai-voice-failed", + PipelineErrorNeuphonicVoiceFailed: "pipeline-error-neuphonic-voice-failed", + PipelineErrorHumeVoiceFailed: "pipeline-error-hume-voice-failed", + PipelineErrorSesameVoiceFailed: "pipeline-error-sesame-voice-failed", + PipelineErrorInworldVoiceFailed: "pipeline-error-inworld-voice-failed", + PipelineErrorMinimaxVoiceFailed: "pipeline-error-minimax-voice-failed", + PipelineErrorTavusVideoFailed: "pipeline-error-tavus-video-failed", + CallInProgressErrorVapifaultOpenaiVoiceFailed: "call.in-progress.error-vapifault-openai-voice-failed", + CallInProgressErrorVapifaultCartesiaVoiceFailed: "call.in-progress.error-vapifault-cartesia-voice-failed", + CallInProgressErrorVapifaultDeepgramVoiceFailed: "call.in-progress.error-vapifault-deepgram-voice-failed", + CallInProgressErrorVapifaultElevenLabsVoiceFailed: "call.in-progress.error-vapifault-eleven-labs-voice-failed", + CallInProgressErrorVapifaultPlayhtVoiceFailed: "call.in-progress.error-vapifault-playht-voice-failed", + CallInProgressErrorVapifaultLmntVoiceFailed: "call.in-progress.error-vapifault-lmnt-voice-failed", + CallInProgressErrorVapifaultAzureVoiceFailed: "call.in-progress.error-vapifault-azure-voice-failed", + CallInProgressErrorVapifaultRimeAiVoiceFailed: "call.in-progress.error-vapifault-rime-ai-voice-failed", + CallInProgressErrorVapifaultSmallestAiVoiceFailed: "call.in-progress.error-vapifault-smallest-ai-voice-failed", + CallInProgressErrorVapifaultNeuphonicVoiceFailed: "call.in-progress.error-vapifault-neuphonic-voice-failed", + CallInProgressErrorVapifaultHumeVoiceFailed: "call.in-progress.error-vapifault-hume-voice-failed", + CallInProgressErrorVapifaultSesameVoiceFailed: "call.in-progress.error-vapifault-sesame-voice-failed", + CallInProgressErrorVapifaultInworldVoiceFailed: "call.in-progress.error-vapifault-inworld-voice-failed", + CallInProgressErrorVapifaultMinimaxVoiceFailed: "call.in-progress.error-vapifault-minimax-voice-failed", + CallInProgressErrorVapifaultTavusVideoFailed: "call.in-progress.error-vapifault-tavus-video-failed", + PipelineErrorVapiLlmFailed: "pipeline-error-vapi-llm-failed", + PipelineErrorVapi400BadRequestValidationFailed: "pipeline-error-vapi-400-bad-request-validation-failed", + PipelineErrorVapi401Unauthorized: "pipeline-error-vapi-401-unauthorized", + PipelineErrorVapi403ModelAccessDenied: "pipeline-error-vapi-403-model-access-denied", + PipelineErrorVapi429ExceededQuota: "pipeline-error-vapi-429-exceeded-quota", + PipelineErrorVapi500ServerError: "pipeline-error-vapi-500-server-error", + PipelineErrorVapi503ServerOverloadedError: "pipeline-error-vapi-503-server-overloaded-error", + CallInProgressErrorProviderfaultVapiLlmFailed: "call.in-progress.error-providerfault-vapi-llm-failed", + CallInProgressErrorVapifaultVapi400BadRequestValidationFailed: + "call.in-progress.error-vapifault-vapi-400-bad-request-validation-failed", + CallInProgressErrorVapifaultVapi401Unauthorized: "call.in-progress.error-vapifault-vapi-401-unauthorized", + CallInProgressErrorVapifaultVapi403ModelAccessDenied: + "call.in-progress.error-vapifault-vapi-403-model-access-denied", + CallInProgressErrorVapifaultVapi429ExceededQuota: "call.in-progress.error-vapifault-vapi-429-exceeded-quota", + CallInProgressErrorProviderfaultVapi500ServerError: "call.in-progress.error-providerfault-vapi-500-server-error", + CallInProgressErrorProviderfaultVapi503ServerOverloadedError: + "call.in-progress.error-providerfault-vapi-503-server-overloaded-error", + PipelineErrorDeepgramTranscriberFailed: "pipeline-error-deepgram-transcriber-failed", + PipelineErrorDeepgramTranscriberApiKeyMissing: "pipeline-error-deepgram-transcriber-api-key-missing", + CallInProgressErrorVapifaultDeepgramTranscriberFailed: + "call.in-progress.error-vapifault-deepgram-transcriber-failed", + PipelineErrorGladiaTranscriberFailed: "pipeline-error-gladia-transcriber-failed", + CallInProgressErrorVapifaultGladiaTranscriberFailed: "call.in-progress.error-vapifault-gladia-transcriber-failed", + PipelineErrorSpeechmaticsTranscriberFailed: "pipeline-error-speechmatics-transcriber-failed", + CallInProgressErrorVapifaultSpeechmaticsTranscriberFailed: + "call.in-progress.error-vapifault-speechmatics-transcriber-failed", + PipelineErrorAssemblyAiTranscriberFailed: "pipeline-error-assembly-ai-transcriber-failed", + PipelineErrorAssemblyAiReturning400InsufficentFunds: "pipeline-error-assembly-ai-returning-400-insufficent-funds", + PipelineErrorAssemblyAiReturning400PaidOnlyFeature: "pipeline-error-assembly-ai-returning-400-paid-only-feature", + PipelineErrorAssemblyAiReturning401InvalidCredentials: + "pipeline-error-assembly-ai-returning-401-invalid-credentials", + PipelineErrorAssemblyAiReturning500InvalidSchema: "pipeline-error-assembly-ai-returning-500-invalid-schema", + PipelineErrorAssemblyAiReturning500WordBoostParsingFailed: + "pipeline-error-assembly-ai-returning-500-word-boost-parsing-failed", + CallInProgressErrorVapifaultAssemblyAiTranscriberFailed: + "call.in-progress.error-vapifault-assembly-ai-transcriber-failed", + CallInProgressErrorVapifaultAssemblyAiReturning400InsufficentFunds: + "call.in-progress.error-vapifault-assembly-ai-returning-400-insufficent-funds", + CallInProgressErrorVapifaultAssemblyAiReturning400PaidOnlyFeature: + "call.in-progress.error-vapifault-assembly-ai-returning-400-paid-only-feature", + CallInProgressErrorVapifaultAssemblyAiReturning401InvalidCredentials: + "call.in-progress.error-vapifault-assembly-ai-returning-401-invalid-credentials", + CallInProgressErrorVapifaultAssemblyAiReturning500InvalidSchema: + "call.in-progress.error-vapifault-assembly-ai-returning-500-invalid-schema", + CallInProgressErrorVapifaultAssemblyAiReturning500WordBoostParsingFailed: + "call.in-progress.error-vapifault-assembly-ai-returning-500-word-boost-parsing-failed", + PipelineErrorTalkscriberTranscriberFailed: "pipeline-error-talkscriber-transcriber-failed", + CallInProgressErrorVapifaultTalkscriberTranscriberFailed: + "call.in-progress.error-vapifault-talkscriber-transcriber-failed", + PipelineErrorAzureSpeechTranscriberFailed: "pipeline-error-azure-speech-transcriber-failed", + CallInProgressErrorVapifaultAzureSpeechTranscriberFailed: + "call.in-progress.error-vapifault-azure-speech-transcriber-failed", + CallInProgressErrorPipelineNoAvailableLlmModel: "call.in-progress.error-pipeline-no-available-llm-model", + WorkerShutdown: "worker-shutdown", + VonageDisconnected: "vonage-disconnected", + VonageFailedToConnectCall: "vonage-failed-to-connect-call", + VonageCompleted: "vonage-completed", + PhoneCallProviderBypassEnabledButNoCallReceived: "phone-call-provider-bypass-enabled-but-no-call-received", + CallInProgressErrorProviderfaultTransportNeverConnected: + "call.in-progress.error-providerfault-transport-never-connected", + CallInProgressErrorVapifaultWorkerNotAvailable: "call.in-progress.error-vapifault-worker-not-available", + CallInProgressErrorVapifaultTransportNeverConnected: "call.in-progress.error-vapifault-transport-never-connected", + CallInProgressErrorVapifaultTransportConnectedButCallNotActive: + "call.in-progress.error-vapifault-transport-connected-but-call-not-active", + CallInProgressErrorVapifaultCallStartedButConnectionToTransportMissing: + "call.in-progress.error-vapifault-call-started-but-connection-to-transport-missing", + CallInProgressErrorVapifaultWorkerDied: "call.in-progress.error-vapifault-worker-died", + CallInProgressTwilioCompletedCall: "call.in-progress.twilio-completed-call", + CallInProgressSipCompletedCall: "call.in-progress.sip-completed-call", + CallInProgressErrorProviderfaultOpenaiLlmFailed: "call.in-progress.error-providerfault-openai-llm-failed", + CallInProgressErrorProviderfaultAzureOpenaiLlmFailed: + "call.in-progress.error-providerfault-azure-openai-llm-failed", + CallInProgressErrorProviderfaultGroqLlmFailed: "call.in-progress.error-providerfault-groq-llm-failed", + CallInProgressErrorProviderfaultGoogleLlmFailed: "call.in-progress.error-providerfault-google-llm-failed", + CallInProgressErrorProviderfaultXaiLlmFailed: "call.in-progress.error-providerfault-xai-llm-failed", + CallInProgressErrorProviderfaultMistralLlmFailed: "call.in-progress.error-providerfault-mistral-llm-failed", + CallInProgressErrorProviderfaultInflectionAiLlmFailed: + "call.in-progress.error-providerfault-inflection-ai-llm-failed", + CallInProgressErrorProviderfaultCerebrasLlmFailed: "call.in-progress.error-providerfault-cerebras-llm-failed", + CallInProgressErrorProviderfaultDeepSeekLlmFailed: "call.in-progress.error-providerfault-deep-seek-llm-failed", + CallInProgressErrorVapifaultChatPipelineFailedToStart: + "call.in-progress.error-vapifault-chat-pipeline-failed-to-start", + PipelineErrorOpenai400BadRequestValidationFailed: "pipeline-error-openai-400-bad-request-validation-failed", + PipelineErrorOpenai401Unauthorized: "pipeline-error-openai-401-unauthorized", + PipelineErrorOpenai401IncorrectApiKey: "pipeline-error-openai-401-incorrect-api-key", + PipelineErrorOpenai401AccountNotInOrganization: "pipeline-error-openai-401-account-not-in-organization", + PipelineErrorOpenai403ModelAccessDenied: "pipeline-error-openai-403-model-access-denied", + PipelineErrorOpenai429ExceededQuota: "pipeline-error-openai-429-exceeded-quota", + PipelineErrorOpenai429RateLimitReached: "pipeline-error-openai-429-rate-limit-reached", + PipelineErrorOpenai500ServerError: "pipeline-error-openai-500-server-error", + PipelineErrorOpenai503ServerOverloadedError: "pipeline-error-openai-503-server-overloaded-error", + PipelineErrorOpenaiLlmFailed: "pipeline-error-openai-llm-failed", + CallInProgressErrorVapifaultOpenai400BadRequestValidationFailed: + "call.in-progress.error-vapifault-openai-400-bad-request-validation-failed", + CallInProgressErrorVapifaultOpenai401Unauthorized: "call.in-progress.error-vapifault-openai-401-unauthorized", + CallInProgressErrorVapifaultOpenai401IncorrectApiKey: + "call.in-progress.error-vapifault-openai-401-incorrect-api-key", + CallInProgressErrorVapifaultOpenai401AccountNotInOrganization: + "call.in-progress.error-vapifault-openai-401-account-not-in-organization", + CallInProgressErrorVapifaultOpenai403ModelAccessDenied: + "call.in-progress.error-vapifault-openai-403-model-access-denied", + CallInProgressErrorVapifaultOpenai429ExceededQuota: "call.in-progress.error-vapifault-openai-429-exceeded-quota", + CallInProgressErrorVapifaultOpenai429RateLimitReached: + "call.in-progress.error-vapifault-openai-429-rate-limit-reached", + CallInProgressErrorProviderfaultOpenai500ServerError: + "call.in-progress.error-providerfault-openai-500-server-error", + CallInProgressErrorProviderfaultOpenai503ServerOverloadedError: + "call.in-progress.error-providerfault-openai-503-server-overloaded-error", + PipelineErrorAzureOpenai400BadRequestValidationFailed: + "pipeline-error-azure-openai-400-bad-request-validation-failed", + PipelineErrorAzureOpenai401Unauthorized: "pipeline-error-azure-openai-401-unauthorized", + PipelineErrorAzureOpenai403ModelAccessDenied: "pipeline-error-azure-openai-403-model-access-denied", + PipelineErrorAzureOpenai429ExceededQuota: "pipeline-error-azure-openai-429-exceeded-quota", + PipelineErrorAzureOpenai500ServerError: "pipeline-error-azure-openai-500-server-error", + PipelineErrorAzureOpenai503ServerOverloadedError: "pipeline-error-azure-openai-503-server-overloaded-error", + PipelineErrorAzureOpenaiLlmFailed: "pipeline-error-azure-openai-llm-failed", + CallInProgressErrorVapifaultAzureOpenai400BadRequestValidationFailed: + "call.in-progress.error-vapifault-azure-openai-400-bad-request-validation-failed", + CallInProgressErrorVapifaultAzureOpenai401Unauthorized: + "call.in-progress.error-vapifault-azure-openai-401-unauthorized", + CallInProgressErrorVapifaultAzureOpenai403ModelAccessDenied: + "call.in-progress.error-vapifault-azure-openai-403-model-access-denied", + CallInProgressErrorVapifaultAzureOpenai429ExceededQuota: + "call.in-progress.error-vapifault-azure-openai-429-exceeded-quota", + CallInProgressErrorProviderfaultAzureOpenai500ServerError: + "call.in-progress.error-providerfault-azure-openai-500-server-error", + CallInProgressErrorProviderfaultAzureOpenai503ServerOverloadedError: + "call.in-progress.error-providerfault-azure-openai-503-server-overloaded-error", + PipelineErrorGoogle400BadRequestValidationFailed: "pipeline-error-google-400-bad-request-validation-failed", + PipelineErrorGoogle401Unauthorized: "pipeline-error-google-401-unauthorized", + PipelineErrorGoogle403ModelAccessDenied: "pipeline-error-google-403-model-access-denied", + PipelineErrorGoogle429ExceededQuota: "pipeline-error-google-429-exceeded-quota", + PipelineErrorGoogle500ServerError: "pipeline-error-google-500-server-error", + PipelineErrorGoogle503ServerOverloadedError: "pipeline-error-google-503-server-overloaded-error", + PipelineErrorGoogleLlmFailed: "pipeline-error-google-llm-failed", + CallInProgressErrorVapifaultGoogle400BadRequestValidationFailed: + "call.in-progress.error-vapifault-google-400-bad-request-validation-failed", + CallInProgressErrorVapifaultGoogle401Unauthorized: "call.in-progress.error-vapifault-google-401-unauthorized", + CallInProgressErrorVapifaultGoogle403ModelAccessDenied: + "call.in-progress.error-vapifault-google-403-model-access-denied", + CallInProgressErrorVapifaultGoogle429ExceededQuota: "call.in-progress.error-vapifault-google-429-exceeded-quota", + CallInProgressErrorProviderfaultGoogle500ServerError: + "call.in-progress.error-providerfault-google-500-server-error", + CallInProgressErrorProviderfaultGoogle503ServerOverloadedError: + "call.in-progress.error-providerfault-google-503-server-overloaded-error", + PipelineErrorXai400BadRequestValidationFailed: "pipeline-error-xai-400-bad-request-validation-failed", + PipelineErrorXai401Unauthorized: "pipeline-error-xai-401-unauthorized", + PipelineErrorXai403ModelAccessDenied: "pipeline-error-xai-403-model-access-denied", + PipelineErrorXai429ExceededQuota: "pipeline-error-xai-429-exceeded-quota", + PipelineErrorXai500ServerError: "pipeline-error-xai-500-server-error", + PipelineErrorXai503ServerOverloadedError: "pipeline-error-xai-503-server-overloaded-error", + PipelineErrorXaiLlmFailed: "pipeline-error-xai-llm-failed", + CallInProgressErrorVapifaultXai400BadRequestValidationFailed: + "call.in-progress.error-vapifault-xai-400-bad-request-validation-failed", + CallInProgressErrorVapifaultXai401Unauthorized: "call.in-progress.error-vapifault-xai-401-unauthorized", + CallInProgressErrorVapifaultXai403ModelAccessDenied: "call.in-progress.error-vapifault-xai-403-model-access-denied", + CallInProgressErrorVapifaultXai429ExceededQuota: "call.in-progress.error-vapifault-xai-429-exceeded-quota", + CallInProgressErrorProviderfaultXai500ServerError: "call.in-progress.error-providerfault-xai-500-server-error", + CallInProgressErrorProviderfaultXai503ServerOverloadedError: + "call.in-progress.error-providerfault-xai-503-server-overloaded-error", + PipelineErrorMistral400BadRequestValidationFailed: "pipeline-error-mistral-400-bad-request-validation-failed", + PipelineErrorMistral401Unauthorized: "pipeline-error-mistral-401-unauthorized", + PipelineErrorMistral403ModelAccessDenied: "pipeline-error-mistral-403-model-access-denied", + PipelineErrorMistral429ExceededQuota: "pipeline-error-mistral-429-exceeded-quota", + PipelineErrorMistral500ServerError: "pipeline-error-mistral-500-server-error", + PipelineErrorMistral503ServerOverloadedError: "pipeline-error-mistral-503-server-overloaded-error", + PipelineErrorMistralLlmFailed: "pipeline-error-mistral-llm-failed", + CallInProgressErrorVapifaultMistral400BadRequestValidationFailed: + "call.in-progress.error-vapifault-mistral-400-bad-request-validation-failed", + CallInProgressErrorVapifaultMistral401Unauthorized: "call.in-progress.error-vapifault-mistral-401-unauthorized", + CallInProgressErrorVapifaultMistral403ModelAccessDenied: + "call.in-progress.error-vapifault-mistral-403-model-access-denied", + CallInProgressErrorVapifaultMistral429ExceededQuota: "call.in-progress.error-vapifault-mistral-429-exceeded-quota", + CallInProgressErrorProviderfaultMistral500ServerError: + "call.in-progress.error-providerfault-mistral-500-server-error", + CallInProgressErrorProviderfaultMistral503ServerOverloadedError: + "call.in-progress.error-providerfault-mistral-503-server-overloaded-error", + PipelineErrorInflectionAi400BadRequestValidationFailed: + "pipeline-error-inflection-ai-400-bad-request-validation-failed", + PipelineErrorInflectionAi401Unauthorized: "pipeline-error-inflection-ai-401-unauthorized", + PipelineErrorInflectionAi403ModelAccessDenied: "pipeline-error-inflection-ai-403-model-access-denied", + PipelineErrorInflectionAi429ExceededQuota: "pipeline-error-inflection-ai-429-exceeded-quota", + PipelineErrorInflectionAi500ServerError: "pipeline-error-inflection-ai-500-server-error", + PipelineErrorInflectionAi503ServerOverloadedError: "pipeline-error-inflection-ai-503-server-overloaded-error", + PipelineErrorInflectionAiLlmFailed: "pipeline-error-inflection-ai-llm-failed", + CallInProgressErrorVapifaultInflectionAi400BadRequestValidationFailed: + "call.in-progress.error-vapifault-inflection-ai-400-bad-request-validation-failed", + CallInProgressErrorVapifaultInflectionAi401Unauthorized: + "call.in-progress.error-vapifault-inflection-ai-401-unauthorized", + CallInProgressErrorVapifaultInflectionAi403ModelAccessDenied: + "call.in-progress.error-vapifault-inflection-ai-403-model-access-denied", + CallInProgressErrorVapifaultInflectionAi429ExceededQuota: + "call.in-progress.error-vapifault-inflection-ai-429-exceeded-quota", + CallInProgressErrorProviderfaultInflectionAi500ServerError: + "call.in-progress.error-providerfault-inflection-ai-500-server-error", + CallInProgressErrorProviderfaultInflectionAi503ServerOverloadedError: + "call.in-progress.error-providerfault-inflection-ai-503-server-overloaded-error", + PipelineErrorDeepSeek400BadRequestValidationFailed: "pipeline-error-deep-seek-400-bad-request-validation-failed", + PipelineErrorDeepSeek401Unauthorized: "pipeline-error-deep-seek-401-unauthorized", + PipelineErrorDeepSeek403ModelAccessDenied: "pipeline-error-deep-seek-403-model-access-denied", + PipelineErrorDeepSeek429ExceededQuota: "pipeline-error-deep-seek-429-exceeded-quota", + PipelineErrorDeepSeek500ServerError: "pipeline-error-deep-seek-500-server-error", + PipelineErrorDeepSeek503ServerOverloadedError: "pipeline-error-deep-seek-503-server-overloaded-error", + PipelineErrorDeepSeekLlmFailed: "pipeline-error-deep-seek-llm-failed", + CallInProgressErrorVapifaultDeepSeek400BadRequestValidationFailed: + "call.in-progress.error-vapifault-deep-seek-400-bad-request-validation-failed", + CallInProgressErrorVapifaultDeepSeek401Unauthorized: "call.in-progress.error-vapifault-deep-seek-401-unauthorized", + CallInProgressErrorVapifaultDeepSeek403ModelAccessDenied: + "call.in-progress.error-vapifault-deep-seek-403-model-access-denied", + CallInProgressErrorVapifaultDeepSeek429ExceededQuota: + "call.in-progress.error-vapifault-deep-seek-429-exceeded-quota", + CallInProgressErrorProviderfaultDeepSeek500ServerError: + "call.in-progress.error-providerfault-deep-seek-500-server-error", + CallInProgressErrorProviderfaultDeepSeek503ServerOverloadedError: + "call.in-progress.error-providerfault-deep-seek-503-server-overloaded-error", + PipelineErrorGroq400BadRequestValidationFailed: "pipeline-error-groq-400-bad-request-validation-failed", + PipelineErrorGroq401Unauthorized: "pipeline-error-groq-401-unauthorized", + PipelineErrorGroq403ModelAccessDenied: "pipeline-error-groq-403-model-access-denied", + PipelineErrorGroq429ExceededQuota: "pipeline-error-groq-429-exceeded-quota", + PipelineErrorGroq500ServerError: "pipeline-error-groq-500-server-error", + PipelineErrorGroq503ServerOverloadedError: "pipeline-error-groq-503-server-overloaded-error", + PipelineErrorGroqLlmFailed: "pipeline-error-groq-llm-failed", + CallInProgressErrorVapifaultGroq400BadRequestValidationFailed: + "call.in-progress.error-vapifault-groq-400-bad-request-validation-failed", + CallInProgressErrorVapifaultGroq401Unauthorized: "call.in-progress.error-vapifault-groq-401-unauthorized", + CallInProgressErrorVapifaultGroq403ModelAccessDenied: + "call.in-progress.error-vapifault-groq-403-model-access-denied", + CallInProgressErrorVapifaultGroq429ExceededQuota: "call.in-progress.error-vapifault-groq-429-exceeded-quota", + CallInProgressErrorProviderfaultGroq500ServerError: "call.in-progress.error-providerfault-groq-500-server-error", + CallInProgressErrorProviderfaultGroq503ServerOverloadedError: + "call.in-progress.error-providerfault-groq-503-server-overloaded-error", + PipelineErrorCerebras400BadRequestValidationFailed: "pipeline-error-cerebras-400-bad-request-validation-failed", + PipelineErrorCerebras401Unauthorized: "pipeline-error-cerebras-401-unauthorized", + PipelineErrorCerebras403ModelAccessDenied: "pipeline-error-cerebras-403-model-access-denied", + PipelineErrorCerebras429ExceededQuota: "pipeline-error-cerebras-429-exceeded-quota", + PipelineErrorCerebras500ServerError: "pipeline-error-cerebras-500-server-error", + PipelineErrorCerebras503ServerOverloadedError: "pipeline-error-cerebras-503-server-overloaded-error", + PipelineErrorCerebrasLlmFailed: "pipeline-error-cerebras-llm-failed", + CallInProgressErrorVapifaultCerebras400BadRequestValidationFailed: + "call.in-progress.error-vapifault-cerebras-400-bad-request-validation-failed", + CallInProgressErrorVapifaultCerebras401Unauthorized: "call.in-progress.error-vapifault-cerebras-401-unauthorized", + CallInProgressErrorVapifaultCerebras403ModelAccessDenied: + "call.in-progress.error-vapifault-cerebras-403-model-access-denied", + CallInProgressErrorVapifaultCerebras429ExceededQuota: + "call.in-progress.error-vapifault-cerebras-429-exceeded-quota", + CallInProgressErrorProviderfaultCerebras500ServerError: + "call.in-progress.error-providerfault-cerebras-500-server-error", + CallInProgressErrorProviderfaultCerebras503ServerOverloadedError: + "call.in-progress.error-providerfault-cerebras-503-server-overloaded-error", + PipelineErrorAnthropic400BadRequestValidationFailed: "pipeline-error-anthropic-400-bad-request-validation-failed", + PipelineErrorAnthropic401Unauthorized: "pipeline-error-anthropic-401-unauthorized", + PipelineErrorAnthropic403ModelAccessDenied: "pipeline-error-anthropic-403-model-access-denied", + PipelineErrorAnthropic429ExceededQuota: "pipeline-error-anthropic-429-exceeded-quota", + PipelineErrorAnthropic500ServerError: "pipeline-error-anthropic-500-server-error", + PipelineErrorAnthropic503ServerOverloadedError: "pipeline-error-anthropic-503-server-overloaded-error", + PipelineErrorAnthropicLlmFailed: "pipeline-error-anthropic-llm-failed", + CallInProgressErrorProviderfaultAnthropicLlmFailed: "call.in-progress.error-providerfault-anthropic-llm-failed", + CallInProgressErrorVapifaultAnthropic400BadRequestValidationFailed: + "call.in-progress.error-vapifault-anthropic-400-bad-request-validation-failed", + CallInProgressErrorVapifaultAnthropic401Unauthorized: "call.in-progress.error-vapifault-anthropic-401-unauthorized", + CallInProgressErrorVapifaultAnthropic403ModelAccessDenied: + "call.in-progress.error-vapifault-anthropic-403-model-access-denied", + CallInProgressErrorVapifaultAnthropic429ExceededQuota: + "call.in-progress.error-vapifault-anthropic-429-exceeded-quota", + CallInProgressErrorProviderfaultAnthropic500ServerError: + "call.in-progress.error-providerfault-anthropic-500-server-error", + CallInProgressErrorProviderfaultAnthropic503ServerOverloadedError: + "call.in-progress.error-providerfault-anthropic-503-server-overloaded-error", + PipelineErrorAnthropicBedrock400BadRequestValidationFailed: + "pipeline-error-anthropic-bedrock-400-bad-request-validation-failed", + PipelineErrorAnthropicBedrock401Unauthorized: "pipeline-error-anthropic-bedrock-401-unauthorized", + PipelineErrorAnthropicBedrock403ModelAccessDenied: "pipeline-error-anthropic-bedrock-403-model-access-denied", + PipelineErrorAnthropicBedrock429ExceededQuota: "pipeline-error-anthropic-bedrock-429-exceeded-quota", + PipelineErrorAnthropicBedrock500ServerError: "pipeline-error-anthropic-bedrock-500-server-error", + PipelineErrorAnthropicBedrock503ServerOverloadedError: + "pipeline-error-anthropic-bedrock-503-server-overloaded-error", + PipelineErrorAnthropicBedrockLlmFailed: "pipeline-error-anthropic-bedrock-llm-failed", + CallInProgressErrorProviderfaultAnthropicBedrockLlmFailed: + "call.in-progress.error-providerfault-anthropic-bedrock-llm-failed", + CallInProgressErrorVapifaultAnthropicBedrock400BadRequestValidationFailed: + "call.in-progress.error-vapifault-anthropic-bedrock-400-bad-request-validation-failed", + CallInProgressErrorVapifaultAnthropicBedrock401Unauthorized: + "call.in-progress.error-vapifault-anthropic-bedrock-401-unauthorized", + CallInProgressErrorVapifaultAnthropicBedrock403ModelAccessDenied: + "call.in-progress.error-vapifault-anthropic-bedrock-403-model-access-denied", + CallInProgressErrorVapifaultAnthropicBedrock429ExceededQuota: + "call.in-progress.error-vapifault-anthropic-bedrock-429-exceeded-quota", + CallInProgressErrorProviderfaultAnthropicBedrock500ServerError: + "call.in-progress.error-providerfault-anthropic-bedrock-500-server-error", + CallInProgressErrorProviderfaultAnthropicBedrock503ServerOverloadedError: + "call.in-progress.error-providerfault-anthropic-bedrock-503-server-overloaded-error", + PipelineErrorAnthropicVertex400BadRequestValidationFailed: + "pipeline-error-anthropic-vertex-400-bad-request-validation-failed", + PipelineErrorAnthropicVertex401Unauthorized: "pipeline-error-anthropic-vertex-401-unauthorized", + PipelineErrorAnthropicVertex403ModelAccessDenied: "pipeline-error-anthropic-vertex-403-model-access-denied", + PipelineErrorAnthropicVertex429ExceededQuota: "pipeline-error-anthropic-vertex-429-exceeded-quota", + PipelineErrorAnthropicVertex500ServerError: "pipeline-error-anthropic-vertex-500-server-error", + PipelineErrorAnthropicVertex503ServerOverloadedError: "pipeline-error-anthropic-vertex-503-server-overloaded-error", + PipelineErrorAnthropicVertexLlmFailed: "pipeline-error-anthropic-vertex-llm-failed", + CallInProgressErrorProviderfaultAnthropicVertexLlmFailed: + "call.in-progress.error-providerfault-anthropic-vertex-llm-failed", + CallInProgressErrorVapifaultAnthropicVertex400BadRequestValidationFailed: + "call.in-progress.error-vapifault-anthropic-vertex-400-bad-request-validation-failed", + CallInProgressErrorVapifaultAnthropicVertex401Unauthorized: + "call.in-progress.error-vapifault-anthropic-vertex-401-unauthorized", + CallInProgressErrorVapifaultAnthropicVertex403ModelAccessDenied: + "call.in-progress.error-vapifault-anthropic-vertex-403-model-access-denied", + CallInProgressErrorVapifaultAnthropicVertex429ExceededQuota: + "call.in-progress.error-vapifault-anthropic-vertex-429-exceeded-quota", + CallInProgressErrorProviderfaultAnthropicVertex500ServerError: + "call.in-progress.error-providerfault-anthropic-vertex-500-server-error", + CallInProgressErrorProviderfaultAnthropicVertex503ServerOverloadedError: + "call.in-progress.error-providerfault-anthropic-vertex-503-server-overloaded-error", + PipelineErrorTogetherAi400BadRequestValidationFailed: + "pipeline-error-together-ai-400-bad-request-validation-failed", + PipelineErrorTogetherAi401Unauthorized: "pipeline-error-together-ai-401-unauthorized", + PipelineErrorTogetherAi403ModelAccessDenied: "pipeline-error-together-ai-403-model-access-denied", + PipelineErrorTogetherAi429ExceededQuota: "pipeline-error-together-ai-429-exceeded-quota", + PipelineErrorTogetherAi500ServerError: "pipeline-error-together-ai-500-server-error", + PipelineErrorTogetherAi503ServerOverloadedError: "pipeline-error-together-ai-503-server-overloaded-error", + PipelineErrorTogetherAiLlmFailed: "pipeline-error-together-ai-llm-failed", + CallInProgressErrorProviderfaultTogetherAiLlmFailed: "call.in-progress.error-providerfault-together-ai-llm-failed", + CallInProgressErrorVapifaultTogetherAi400BadRequestValidationFailed: + "call.in-progress.error-vapifault-together-ai-400-bad-request-validation-failed", + CallInProgressErrorVapifaultTogetherAi401Unauthorized: + "call.in-progress.error-vapifault-together-ai-401-unauthorized", + CallInProgressErrorVapifaultTogetherAi403ModelAccessDenied: + "call.in-progress.error-vapifault-together-ai-403-model-access-denied", + CallInProgressErrorVapifaultTogetherAi429ExceededQuota: + "call.in-progress.error-vapifault-together-ai-429-exceeded-quota", + CallInProgressErrorProviderfaultTogetherAi500ServerError: + "call.in-progress.error-providerfault-together-ai-500-server-error", + CallInProgressErrorProviderfaultTogetherAi503ServerOverloadedError: + "call.in-progress.error-providerfault-together-ai-503-server-overloaded-error", + PipelineErrorAnyscale400BadRequestValidationFailed: "pipeline-error-anyscale-400-bad-request-validation-failed", + PipelineErrorAnyscale401Unauthorized: "pipeline-error-anyscale-401-unauthorized", + PipelineErrorAnyscale403ModelAccessDenied: "pipeline-error-anyscale-403-model-access-denied", + PipelineErrorAnyscale429ExceededQuota: "pipeline-error-anyscale-429-exceeded-quota", + PipelineErrorAnyscale500ServerError: "pipeline-error-anyscale-500-server-error", + PipelineErrorAnyscale503ServerOverloadedError: "pipeline-error-anyscale-503-server-overloaded-error", + PipelineErrorAnyscaleLlmFailed: "pipeline-error-anyscale-llm-failed", + CallInProgressErrorProviderfaultAnyscaleLlmFailed: "call.in-progress.error-providerfault-anyscale-llm-failed", + CallInProgressErrorVapifaultAnyscale400BadRequestValidationFailed: + "call.in-progress.error-vapifault-anyscale-400-bad-request-validation-failed", + CallInProgressErrorVapifaultAnyscale401Unauthorized: "call.in-progress.error-vapifault-anyscale-401-unauthorized", + CallInProgressErrorVapifaultAnyscale403ModelAccessDenied: + "call.in-progress.error-vapifault-anyscale-403-model-access-denied", + CallInProgressErrorVapifaultAnyscale429ExceededQuota: + "call.in-progress.error-vapifault-anyscale-429-exceeded-quota", + CallInProgressErrorProviderfaultAnyscale500ServerError: + "call.in-progress.error-providerfault-anyscale-500-server-error", + CallInProgressErrorProviderfaultAnyscale503ServerOverloadedError: + "call.in-progress.error-providerfault-anyscale-503-server-overloaded-error", + PipelineErrorOpenrouter400BadRequestValidationFailed: "pipeline-error-openrouter-400-bad-request-validation-failed", + PipelineErrorOpenrouter401Unauthorized: "pipeline-error-openrouter-401-unauthorized", + PipelineErrorOpenrouter403ModelAccessDenied: "pipeline-error-openrouter-403-model-access-denied", + PipelineErrorOpenrouter429ExceededQuota: "pipeline-error-openrouter-429-exceeded-quota", + PipelineErrorOpenrouter500ServerError: "pipeline-error-openrouter-500-server-error", + PipelineErrorOpenrouter503ServerOverloadedError: "pipeline-error-openrouter-503-server-overloaded-error", + PipelineErrorOpenrouterLlmFailed: "pipeline-error-openrouter-llm-failed", + CallInProgressErrorProviderfaultOpenrouterLlmFailed: "call.in-progress.error-providerfault-openrouter-llm-failed", + CallInProgressErrorVapifaultOpenrouter400BadRequestValidationFailed: + "call.in-progress.error-vapifault-openrouter-400-bad-request-validation-failed", + CallInProgressErrorVapifaultOpenrouter401Unauthorized: + "call.in-progress.error-vapifault-openrouter-401-unauthorized", + CallInProgressErrorVapifaultOpenrouter403ModelAccessDenied: + "call.in-progress.error-vapifault-openrouter-403-model-access-denied", + CallInProgressErrorVapifaultOpenrouter429ExceededQuota: + "call.in-progress.error-vapifault-openrouter-429-exceeded-quota", + CallInProgressErrorProviderfaultOpenrouter500ServerError: + "call.in-progress.error-providerfault-openrouter-500-server-error", + CallInProgressErrorProviderfaultOpenrouter503ServerOverloadedError: + "call.in-progress.error-providerfault-openrouter-503-server-overloaded-error", + PipelineErrorPerplexityAi400BadRequestValidationFailed: + "pipeline-error-perplexity-ai-400-bad-request-validation-failed", + PipelineErrorPerplexityAi401Unauthorized: "pipeline-error-perplexity-ai-401-unauthorized", + PipelineErrorPerplexityAi403ModelAccessDenied: "pipeline-error-perplexity-ai-403-model-access-denied", + PipelineErrorPerplexityAi429ExceededQuota: "pipeline-error-perplexity-ai-429-exceeded-quota", + PipelineErrorPerplexityAi500ServerError: "pipeline-error-perplexity-ai-500-server-error", + PipelineErrorPerplexityAi503ServerOverloadedError: "pipeline-error-perplexity-ai-503-server-overloaded-error", + PipelineErrorPerplexityAiLlmFailed: "pipeline-error-perplexity-ai-llm-failed", + CallInProgressErrorProviderfaultPerplexityAiLlmFailed: + "call.in-progress.error-providerfault-perplexity-ai-llm-failed", + CallInProgressErrorVapifaultPerplexityAi400BadRequestValidationFailed: + "call.in-progress.error-vapifault-perplexity-ai-400-bad-request-validation-failed", + CallInProgressErrorVapifaultPerplexityAi401Unauthorized: + "call.in-progress.error-vapifault-perplexity-ai-401-unauthorized", + CallInProgressErrorVapifaultPerplexityAi403ModelAccessDenied: + "call.in-progress.error-vapifault-perplexity-ai-403-model-access-denied", + CallInProgressErrorVapifaultPerplexityAi429ExceededQuota: + "call.in-progress.error-vapifault-perplexity-ai-429-exceeded-quota", + CallInProgressErrorProviderfaultPerplexityAi500ServerError: + "call.in-progress.error-providerfault-perplexity-ai-500-server-error", + CallInProgressErrorProviderfaultPerplexityAi503ServerOverloadedError: + "call.in-progress.error-providerfault-perplexity-ai-503-server-overloaded-error", + PipelineErrorDeepinfra400BadRequestValidationFailed: "pipeline-error-deepinfra-400-bad-request-validation-failed", + PipelineErrorDeepinfra401Unauthorized: "pipeline-error-deepinfra-401-unauthorized", + PipelineErrorDeepinfra403ModelAccessDenied: "pipeline-error-deepinfra-403-model-access-denied", + PipelineErrorDeepinfra429ExceededQuota: "pipeline-error-deepinfra-429-exceeded-quota", + PipelineErrorDeepinfra500ServerError: "pipeline-error-deepinfra-500-server-error", + PipelineErrorDeepinfra503ServerOverloadedError: "pipeline-error-deepinfra-503-server-overloaded-error", + PipelineErrorDeepinfraLlmFailed: "pipeline-error-deepinfra-llm-failed", + CallInProgressErrorProviderfaultDeepinfraLlmFailed: "call.in-progress.error-providerfault-deepinfra-llm-failed", + CallInProgressErrorVapifaultDeepinfra400BadRequestValidationFailed: + "call.in-progress.error-vapifault-deepinfra-400-bad-request-validation-failed", + CallInProgressErrorVapifaultDeepinfra401Unauthorized: "call.in-progress.error-vapifault-deepinfra-401-unauthorized", + CallInProgressErrorVapifaultDeepinfra403ModelAccessDenied: + "call.in-progress.error-vapifault-deepinfra-403-model-access-denied", + CallInProgressErrorVapifaultDeepinfra429ExceededQuota: + "call.in-progress.error-vapifault-deepinfra-429-exceeded-quota", + CallInProgressErrorProviderfaultDeepinfra500ServerError: + "call.in-progress.error-providerfault-deepinfra-500-server-error", + CallInProgressErrorProviderfaultDeepinfra503ServerOverloadedError: + "call.in-progress.error-providerfault-deepinfra-503-server-overloaded-error", + PipelineErrorRunpod400BadRequestValidationFailed: "pipeline-error-runpod-400-bad-request-validation-failed", + PipelineErrorRunpod401Unauthorized: "pipeline-error-runpod-401-unauthorized", + PipelineErrorRunpod403ModelAccessDenied: "pipeline-error-runpod-403-model-access-denied", + PipelineErrorRunpod429ExceededQuota: "pipeline-error-runpod-429-exceeded-quota", + PipelineErrorRunpod500ServerError: "pipeline-error-runpod-500-server-error", + PipelineErrorRunpod503ServerOverloadedError: "pipeline-error-runpod-503-server-overloaded-error", + PipelineErrorRunpodLlmFailed: "pipeline-error-runpod-llm-failed", + CallInProgressErrorProviderfaultRunpodLlmFailed: "call.in-progress.error-providerfault-runpod-llm-failed", + CallInProgressErrorVapifaultRunpod400BadRequestValidationFailed: + "call.in-progress.error-vapifault-runpod-400-bad-request-validation-failed", + CallInProgressErrorVapifaultRunpod401Unauthorized: "call.in-progress.error-vapifault-runpod-401-unauthorized", + CallInProgressErrorVapifaultRunpod403ModelAccessDenied: + "call.in-progress.error-vapifault-runpod-403-model-access-denied", + CallInProgressErrorVapifaultRunpod429ExceededQuota: "call.in-progress.error-vapifault-runpod-429-exceeded-quota", + CallInProgressErrorProviderfaultRunpod500ServerError: + "call.in-progress.error-providerfault-runpod-500-server-error", + CallInProgressErrorProviderfaultRunpod503ServerOverloadedError: + "call.in-progress.error-providerfault-runpod-503-server-overloaded-error", + PipelineErrorCustomLlm400BadRequestValidationFailed: "pipeline-error-custom-llm-400-bad-request-validation-failed", + PipelineErrorCustomLlm401Unauthorized: "pipeline-error-custom-llm-401-unauthorized", + PipelineErrorCustomLlm403ModelAccessDenied: "pipeline-error-custom-llm-403-model-access-denied", + PipelineErrorCustomLlm429ExceededQuota: "pipeline-error-custom-llm-429-exceeded-quota", + PipelineErrorCustomLlm500ServerError: "pipeline-error-custom-llm-500-server-error", + PipelineErrorCustomLlm503ServerOverloadedError: "pipeline-error-custom-llm-503-server-overloaded-error", + PipelineErrorCustomLlmLlmFailed: "pipeline-error-custom-llm-llm-failed", + CallInProgressErrorProviderfaultCustomLlmLlmFailed: "call.in-progress.error-providerfault-custom-llm-llm-failed", + CallInProgressErrorVapifaultCustomLlm400BadRequestValidationFailed: + "call.in-progress.error-vapifault-custom-llm-400-bad-request-validation-failed", + CallInProgressErrorVapifaultCustomLlm401Unauthorized: + "call.in-progress.error-vapifault-custom-llm-401-unauthorized", + CallInProgressErrorVapifaultCustomLlm403ModelAccessDenied: + "call.in-progress.error-vapifault-custom-llm-403-model-access-denied", + CallInProgressErrorVapifaultCustomLlm429ExceededQuota: + "call.in-progress.error-vapifault-custom-llm-429-exceeded-quota", + CallInProgressErrorProviderfaultCustomLlm500ServerError: + "call.in-progress.error-providerfault-custom-llm-500-server-error", + CallInProgressErrorProviderfaultCustomLlm503ServerOverloadedError: + "call.in-progress.error-providerfault-custom-llm-503-server-overloaded-error", + PipelineErrorCustomVoiceFailed: "pipeline-error-custom-voice-failed", + PipelineErrorCartesiaSocketHangUp: "pipeline-error-cartesia-socket-hang-up", + PipelineErrorCartesiaRequestedPayment: "pipeline-error-cartesia-requested-payment", + PipelineErrorCartesia500ServerError: "pipeline-error-cartesia-500-server-error", + PipelineErrorCartesia502ServerError: "pipeline-error-cartesia-502-server-error", + PipelineErrorCartesia503ServerError: "pipeline-error-cartesia-503-server-error", + PipelineErrorCartesia522ServerError: "pipeline-error-cartesia-522-server-error", + CallInProgressErrorVapifaultCartesiaSocketHangUp: "call.in-progress.error-vapifault-cartesia-socket-hang-up", + CallInProgressErrorVapifaultCartesiaRequestedPayment: "call.in-progress.error-vapifault-cartesia-requested-payment", + CallInProgressErrorProviderfaultCartesia500ServerError: + "call.in-progress.error-providerfault-cartesia-500-server-error", + CallInProgressErrorProviderfaultCartesia503ServerError: + "call.in-progress.error-providerfault-cartesia-503-server-error", + CallInProgressErrorProviderfaultCartesia522ServerError: + "call.in-progress.error-providerfault-cartesia-522-server-error", + PipelineErrorElevenLabsVoiceNotFound: "pipeline-error-eleven-labs-voice-not-found", + PipelineErrorElevenLabsQuotaExceeded: "pipeline-error-eleven-labs-quota-exceeded", + PipelineErrorElevenLabsUnauthorizedAccess: "pipeline-error-eleven-labs-unauthorized-access", + PipelineErrorElevenLabsUnauthorizedToAccessModel: "pipeline-error-eleven-labs-unauthorized-to-access-model", + PipelineErrorElevenLabsProfessionalVoicesOnlyForCreatorPlus: + "pipeline-error-eleven-labs-professional-voices-only-for-creator-plus", + PipelineErrorElevenLabsBlockedFreePlanAndRequestedUpgrade: + "pipeline-error-eleven-labs-blocked-free-plan-and-requested-upgrade", + PipelineErrorElevenLabsBlockedConcurrentRequestsAndRequestedUpgrade: + "pipeline-error-eleven-labs-blocked-concurrent-requests-and-requested-upgrade", + PipelineErrorElevenLabsBlockedUsingInstantVoiceCloneAndRequestedUpgrade: + "pipeline-error-eleven-labs-blocked-using-instant-voice-clone-and-requested-upgrade", + PipelineErrorElevenLabsSystemBusyAndRequestedUpgrade: + "pipeline-error-eleven-labs-system-busy-and-requested-upgrade", + PipelineErrorElevenLabsVoiceNotFineTuned: "pipeline-error-eleven-labs-voice-not-fine-tuned", + PipelineErrorElevenLabsInvalidApiKey: "pipeline-error-eleven-labs-invalid-api-key", + PipelineErrorElevenLabsInvalidVoiceSamples: "pipeline-error-eleven-labs-invalid-voice-samples", + PipelineErrorElevenLabsVoiceDisabledByOwner: "pipeline-error-eleven-labs-voice-disabled-by-owner", + PipelineErrorElevenLabsVapiVoiceDisabledByOwner: "pipeline-error-eleven-labs-vapi-voice-disabled-by-owner", + PipelineErrorElevenLabsBlockedAccountInProbation: "pipeline-error-eleven-labs-blocked-account-in-probation", + PipelineErrorElevenLabsBlockedContentAgainstTheirPolicy: + "pipeline-error-eleven-labs-blocked-content-against-their-policy", + PipelineErrorElevenLabsMissingSamplesForVoiceClone: "pipeline-error-eleven-labs-missing-samples-for-voice-clone", + PipelineErrorElevenLabsVoiceNotFineTunedAndCannotBeUsed: + "pipeline-error-eleven-labs-voice-not-fine-tuned-and-cannot-be-used", + PipelineErrorElevenLabsVoiceNotAllowedForFreeUsers: "pipeline-error-eleven-labs-voice-not-allowed-for-free-users", + PipelineErrorElevenLabsMaxCharacterLimitExceeded: "pipeline-error-eleven-labs-max-character-limit-exceeded", + PipelineErrorElevenLabsBlockedVoicePotentiallyAgainstTermsOfServiceAndAwaitingVerification: + "pipeline-error-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification", + PipelineErrorElevenLabs500ServerError: "pipeline-error-eleven-labs-500-server-error", + PipelineErrorElevenLabs503ServerError: "pipeline-error-eleven-labs-503-server-error", + CallInProgressErrorVapifaultElevenLabsVoiceNotFound: "call.in-progress.error-vapifault-eleven-labs-voice-not-found", + CallInProgressErrorVapifaultElevenLabsQuotaExceeded: "call.in-progress.error-vapifault-eleven-labs-quota-exceeded", + CallInProgressErrorVapifaultElevenLabsUnauthorizedAccess: + "call.in-progress.error-vapifault-eleven-labs-unauthorized-access", + CallInProgressErrorVapifaultElevenLabsUnauthorizedToAccessModel: + "call.in-progress.error-vapifault-eleven-labs-unauthorized-to-access-model", + CallInProgressErrorVapifaultElevenLabsProfessionalVoicesOnlyForCreatorPlus: + "call.in-progress.error-vapifault-eleven-labs-professional-voices-only-for-creator-plus", + CallInProgressErrorVapifaultElevenLabsBlockedFreePlanAndRequestedUpgrade: + "call.in-progress.error-vapifault-eleven-labs-blocked-free-plan-and-requested-upgrade", + CallInProgressErrorVapifaultElevenLabsBlockedConcurrentRequestsAndRequestedUpgrade: + "call.in-progress.error-vapifault-eleven-labs-blocked-concurrent-requests-and-requested-upgrade", + CallInProgressErrorVapifaultElevenLabsBlockedUsingInstantVoiceCloneAndRequestedUpgrade: + "call.in-progress.error-vapifault-eleven-labs-blocked-using-instant-voice-clone-and-requested-upgrade", + CallInProgressErrorVapifaultElevenLabsSystemBusyAndRequestedUpgrade: + "call.in-progress.error-vapifault-eleven-labs-system-busy-and-requested-upgrade", + CallInProgressErrorVapifaultElevenLabsVoiceNotFineTuned: + "call.in-progress.error-vapifault-eleven-labs-voice-not-fine-tuned", + CallInProgressErrorVapifaultElevenLabsInvalidApiKey: "call.in-progress.error-vapifault-eleven-labs-invalid-api-key", + CallInProgressErrorVapifaultElevenLabsInvalidVoiceSamples: + "call.in-progress.error-vapifault-eleven-labs-invalid-voice-samples", + CallInProgressErrorVapifaultElevenLabsVoiceDisabledByOwner: + "call.in-progress.error-vapifault-eleven-labs-voice-disabled-by-owner", + CallInProgressErrorVapifaultElevenLabsBlockedAccountInProbation: + "call.in-progress.error-vapifault-eleven-labs-blocked-account-in-probation", + CallInProgressErrorVapifaultElevenLabsBlockedContentAgainstTheirPolicy: + "call.in-progress.error-vapifault-eleven-labs-blocked-content-against-their-policy", + CallInProgressErrorVapifaultElevenLabsMissingSamplesForVoiceClone: + "call.in-progress.error-vapifault-eleven-labs-missing-samples-for-voice-clone", + CallInProgressErrorVapifaultElevenLabsVoiceNotFineTunedAndCannotBeUsed: + "call.in-progress.error-vapifault-eleven-labs-voice-not-fine-tuned-and-cannot-be-used", + CallInProgressErrorVapifaultElevenLabsVoiceNotAllowedForFreeUsers: + "call.in-progress.error-vapifault-eleven-labs-voice-not-allowed-for-free-users", + CallInProgressErrorVapifaultElevenLabsMaxCharacterLimitExceeded: + "call.in-progress.error-vapifault-eleven-labs-max-character-limit-exceeded", + CallInProgressErrorVapifaultElevenLabsBlockedVoicePotentiallyAgainstTermsOfServiceAndAwaitingVerification: + "call.in-progress.error-vapifault-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification", + CallInProgressErrorProviderfaultElevenLabs500ServerError: + "call.in-progress.error-providerfault-eleven-labs-500-server-error", + CallInProgressErrorProviderfaultElevenLabs503ServerError: + "call.in-progress.error-providerfault-eleven-labs-503-server-error", + PipelineErrorPlayhtRequestTimedOut: "pipeline-error-playht-request-timed-out", + PipelineErrorPlayhtInvalidVoice: "pipeline-error-playht-invalid-voice", + PipelineErrorPlayhtUnexpectedError: "pipeline-error-playht-unexpected-error", + PipelineErrorPlayhtOutOfCredits: "pipeline-error-playht-out-of-credits", + PipelineErrorPlayhtInvalidEmotion: "pipeline-error-playht-invalid-emotion", + PipelineErrorPlayhtVoiceMustBeAValidVoiceManifestUri: + "pipeline-error-playht-voice-must-be-a-valid-voice-manifest-uri", + PipelineErrorPlayht401Unauthorized: "pipeline-error-playht-401-unauthorized", + PipelineErrorPlayht403ForbiddenOutOfCharacters: "pipeline-error-playht-403-forbidden-out-of-characters", + PipelineErrorPlayht403ForbiddenApiAccessNotAvailable: + "pipeline-error-playht-403-forbidden-api-access-not-available", + PipelineErrorPlayht429ExceededQuota: "pipeline-error-playht-429-exceeded-quota", + PipelineErrorPlayht502GatewayError: "pipeline-error-playht-502-gateway-error", + PipelineErrorPlayht504GatewayError: "pipeline-error-playht-504-gateway-error", + CallInProgressErrorVapifaultPlayhtRequestTimedOut: "call.in-progress.error-vapifault-playht-request-timed-out", + CallInProgressErrorVapifaultPlayhtInvalidVoice: "call.in-progress.error-vapifault-playht-invalid-voice", + CallInProgressErrorVapifaultPlayhtUnexpectedError: "call.in-progress.error-vapifault-playht-unexpected-error", + CallInProgressErrorVapifaultPlayhtOutOfCredits: "call.in-progress.error-vapifault-playht-out-of-credits", + CallInProgressErrorVapifaultPlayhtInvalidEmotion: "call.in-progress.error-vapifault-playht-invalid-emotion", + CallInProgressErrorVapifaultPlayhtVoiceMustBeAValidVoiceManifestUri: + "call.in-progress.error-vapifault-playht-voice-must-be-a-valid-voice-manifest-uri", + CallInProgressErrorVapifaultPlayht401Unauthorized: "call.in-progress.error-vapifault-playht-401-unauthorized", + CallInProgressErrorVapifaultPlayht403ForbiddenOutOfCharacters: + "call.in-progress.error-vapifault-playht-403-forbidden-out-of-characters", + CallInProgressErrorVapifaultPlayht403ForbiddenApiAccessNotAvailable: + "call.in-progress.error-vapifault-playht-403-forbidden-api-access-not-available", + CallInProgressErrorVapifaultPlayht429ExceededQuota: "call.in-progress.error-vapifault-playht-429-exceeded-quota", + CallInProgressErrorProviderfaultPlayht502GatewayError: + "call.in-progress.error-providerfault-playht-502-gateway-error", + CallInProgressErrorProviderfaultPlayht504GatewayError: + "call.in-progress.error-providerfault-playht-504-gateway-error", + PipelineErrorCustomTranscriberFailed: "pipeline-error-custom-transcriber-failed", + CallInProgressErrorVapifaultCustomTranscriberFailed: "call.in-progress.error-vapifault-custom-transcriber-failed", + PipelineErrorElevenLabsTranscriberFailed: "pipeline-error-eleven-labs-transcriber-failed", + CallInProgressErrorVapifaultElevenLabsTranscriberFailed: + "call.in-progress.error-vapifault-eleven-labs-transcriber-failed", + PipelineErrorDeepgramReturning400NoSuchModelLanguageTierCombination: + "pipeline-error-deepgram-returning-400-no-such-model-language-tier-combination", + PipelineErrorDeepgramReturning401InvalidCredentials: "pipeline-error-deepgram-returning-401-invalid-credentials", + PipelineErrorDeepgramReturning403ModelAccessDenied: "pipeline-error-deepgram-returning-403-model-access-denied", + PipelineErrorDeepgramReturning404NotFound: "pipeline-error-deepgram-returning-404-not-found", + PipelineErrorDeepgramReturning500InvalidJson: "pipeline-error-deepgram-returning-500-invalid-json", + PipelineErrorDeepgramReturning502NetworkError: "pipeline-error-deepgram-returning-502-network-error", + PipelineErrorDeepgramReturning502BadGatewayEhostunreach: + "pipeline-error-deepgram-returning-502-bad-gateway-ehostunreach", + PipelineErrorDeepgramReturningEconnreset: "pipeline-error-deepgram-returning-econnreset", + CallInProgressErrorVapifaultDeepgramReturning400NoSuchModelLanguageTierCombination: + "call.in-progress.error-vapifault-deepgram-returning-400-no-such-model-language-tier-combination", + CallInProgressErrorVapifaultDeepgramReturning401InvalidCredentials: + "call.in-progress.error-vapifault-deepgram-returning-401-invalid-credentials", + CallInProgressErrorVapifaultDeepgramReturning404NotFound: + "call.in-progress.error-vapifault-deepgram-returning-404-not-found", + CallInProgressErrorVapifaultDeepgramReturning403ModelAccessDenied: + "call.in-progress.error-vapifault-deepgram-returning-403-model-access-denied", + CallInProgressErrorProviderfaultDeepgramReturning500InvalidJson: + "call.in-progress.error-providerfault-deepgram-returning-500-invalid-json", + CallInProgressErrorProviderfaultDeepgramReturning502NetworkError: + "call.in-progress.error-providerfault-deepgram-returning-502-network-error", + CallInProgressErrorProviderfaultDeepgramReturning502BadGatewayEhostunreach: + "call.in-progress.error-providerfault-deepgram-returning-502-bad-gateway-ehostunreach", + PipelineErrorGoogleTranscriberFailed: "pipeline-error-google-transcriber-failed", + CallInProgressErrorVapifaultGoogleTranscriberFailed: "call.in-progress.error-vapifault-google-transcriber-failed", + PipelineErrorOpenaiTranscriberFailed: "pipeline-error-openai-transcriber-failed", + CallInProgressErrorVapifaultOpenaiTranscriberFailed: "call.in-progress.error-vapifault-openai-transcriber-failed", + CallInProgressErrorWarmTransferMaxDuration: "call.in-progress.error-warm-transfer-max-duration", + CallInProgressErrorWarmTransferAssistantCancelled: "call.in-progress.error-warm-transfer-assistant-cancelled", + CallInProgressErrorWarmTransferSilenceTimeout: "call.in-progress.error-warm-transfer-silence-timeout", + CallInProgressErrorWarmTransferMicrophoneTimeout: "call.in-progress.error-warm-transfer-microphone-timeout", + CallInProgressErrorWarmTransferHangTimeout: "call.in-progress.error-warm-transfer-hang-timeout", + CallInProgressErrorWarmTransferIdleTimeout: "call.in-progress.error-warm-transfer-idle-timeout", + AssistantEndedCall: "assistant-ended-call", + AssistantSaidEndCallPhrase: "assistant-said-end-call-phrase", + AssistantEndedCallWithHangupTask: "assistant-ended-call-with-hangup-task", + AssistantEndedCallAfterMessageSpoken: "assistant-ended-call-after-message-spoken", + AssistantForwardedCall: "assistant-forwarded-call", + AssistantJoinTimedOut: "assistant-join-timed-out", + CallInProgressErrorAssistantDidNotReceiveCustomerAudio: + "call.in-progress.error-assistant-did-not-receive-customer-audio", + CallInProgressErrorTransferFailed: "call.in-progress.error-transfer-failed", + CustomerBusy: "customer-busy", + CustomerEndedCall: "customer-ended-call", + CustomerEndedCallBeforeWarmTransfer: "customer-ended-call-before-warm-transfer", + CustomerEndedCallAfterWarmTransferAttempt: "customer-ended-call-after-warm-transfer-attempt", + CustomerDidNotAnswer: "customer-did-not-answer", + CustomerDidNotGiveMicrophonePermission: "customer-did-not-give-microphone-permission", + ExceededMaxDuration: "exceeded-max-duration", + ManuallyCanceled: "manually-canceled", + PhoneCallProviderClosedWebsocket: "phone-call-provider-closed-websocket", + CallForwardingOperatorBusy: "call.forwarding.operator-busy", + SilenceTimedOut: "silence-timed-out", + CallInProgressErrorSipInboundCallFailedToConnect: "call.in-progress.error-sip-inbound-call-failed-to-connect", + CallInProgressErrorProviderfaultOutboundSip403Forbidden: + "call.in-progress.error-providerfault-outbound-sip-403-forbidden", + CallInProgressErrorProviderfaultOutboundSip407ProxyAuthenticationRequired: + "call.in-progress.error-providerfault-outbound-sip-407-proxy-authentication-required", + CallInProgressErrorProviderfaultOutboundSip503ServiceUnavailable: + "call.in-progress.error-providerfault-outbound-sip-503-service-unavailable", + CallInProgressErrorProviderfaultOutboundSip480TemporarilyUnavailable: + "call.in-progress.error-providerfault-outbound-sip-480-temporarily-unavailable", + CallInProgressErrorSipOutboundCallFailedToConnect: "call.in-progress.error-sip-outbound-call-failed-to-connect", + CallRingingHookExecutedSay: "call.ringing.hook-executed-say", + CallRingingHookExecutedTransfer: "call.ringing.hook-executed-transfer", + CallEndingHookExecutedSay: "call.ending.hook-executed-say", + CallEndingHookExecutedTransfer: "call.ending.hook-executed-transfer", + CallRingingSipInboundCallerHungupBeforeCallConnect: "call.ringing.sip-inbound-caller-hungup-before-call-connect", + CallRingingErrorSipInboundCallFailedToConnect: "call.ringing.error-sip-inbound-call-failed-to-connect", + TwilioFailedToConnectCall: "twilio-failed-to-connect-call", + TwilioReportedCustomerMisdialed: "twilio-reported-customer-misdialed", + VonageRejected: "vonage-rejected", + Voicemail: "voicemail", + CallDeleted: "call-deleted", +} as const; diff --git a/src/api/types/CallHookAssistantSpeechInterrupted.ts b/src/api/types/CallHookAssistantSpeechInterrupted.ts index 8ec24557..ea057296 100644 --- a/src/api/types/CallHookAssistantSpeechInterrupted.ts +++ b/src/api/types/CallHookAssistantSpeechInterrupted.ts @@ -8,13 +8,5 @@ export interface CallHookAssistantSpeechInterrupted { /** This is the event that triggers this hook */ on: "assistant.speech.interrupted"; /** This is the set of actions to perform when the hook triggers */ - do: CallHookAssistantSpeechInterrupted.Do.Item[]; -} - -export namespace CallHookAssistantSpeechInterrupted { - export type Do = Do.Item[]; - - export namespace Do { - export type Item = Vapi.SayHookAction | Vapi.ToolCallHookAction; - } + do: Vapi.CallHookAssistantSpeechInterruptedDoItem[]; } diff --git a/src/api/types/CallHookAssistantSpeechInterruptedDoItem.ts b/src/api/types/CallHookAssistantSpeechInterruptedDoItem.ts new file mode 100644 index 00000000..394156c9 --- /dev/null +++ b/src/api/types/CallHookAssistantSpeechInterruptedDoItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CallHookAssistantSpeechInterruptedDoItem = Vapi.SayHookAction | Vapi.ToolCallHookAction; diff --git a/src/api/types/CallHookCustomerSpeechInterrupted.ts b/src/api/types/CallHookCustomerSpeechInterrupted.ts index f6e2cd5b..2ed82cbb 100644 --- a/src/api/types/CallHookCustomerSpeechInterrupted.ts +++ b/src/api/types/CallHookCustomerSpeechInterrupted.ts @@ -8,13 +8,5 @@ export interface CallHookCustomerSpeechInterrupted { /** This is the event that triggers this hook */ on: "customer.speech.interrupted"; /** This is the set of actions to perform when the hook triggers */ - do: CallHookCustomerSpeechInterrupted.Do.Item[]; -} - -export namespace CallHookCustomerSpeechInterrupted { - export type Do = Do.Item[]; - - export namespace Do { - export type Item = Vapi.SayHookAction | Vapi.ToolCallHookAction; - } + do: Vapi.CallHookCustomerSpeechInterruptedDoItem[]; } diff --git a/src/api/types/CallHookCustomerSpeechInterruptedDoItem.ts b/src/api/types/CallHookCustomerSpeechInterruptedDoItem.ts new file mode 100644 index 00000000..8f24b1f4 --- /dev/null +++ b/src/api/types/CallHookCustomerSpeechInterruptedDoItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CallHookCustomerSpeechInterruptedDoItem = Vapi.SayHookAction | Vapi.ToolCallHookAction; diff --git a/src/api/types/CallHookCustomerSpeechTimeout.ts b/src/api/types/CallHookCustomerSpeechTimeout.ts index 0cc1f035..76462c7e 100644 --- a/src/api/types/CallHookCustomerSpeechTimeout.ts +++ b/src/api/types/CallHookCustomerSpeechTimeout.ts @@ -8,7 +8,7 @@ export interface CallHookCustomerSpeechTimeout { /** Must be either "customer.speech.timeout" or match the pattern "customer.speech.timeout[property=value]" */ on: string; /** This is the set of actions to perform when the hook triggers */ - do: CallHookCustomerSpeechTimeout.Do.Item[]; + do: Vapi.CallHookCustomerSpeechTimeoutDoItem[]; /** This is the set of filters that must match for the hook to trigger */ options?: Vapi.CustomerSpeechTimeoutOptions; /** @@ -19,11 +19,3 @@ export interface CallHookCustomerSpeechTimeout { */ name?: string; } - -export namespace CallHookCustomerSpeechTimeout { - export type Do = Do.Item[]; - - export namespace Do { - export type Item = Vapi.SayHookAction | Vapi.ToolCallHookAction; - } -} diff --git a/src/api/types/CallHookCustomerSpeechTimeoutDoItem.ts b/src/api/types/CallHookCustomerSpeechTimeoutDoItem.ts new file mode 100644 index 00000000..36d7e534 --- /dev/null +++ b/src/api/types/CallHookCustomerSpeechTimeoutDoItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CallHookCustomerSpeechTimeoutDoItem = Vapi.SayHookAction | Vapi.ToolCallHookAction; diff --git a/src/api/types/CallMessagesItem.ts b/src/api/types/CallMessagesItem.ts new file mode 100644 index 00000000..3256783c --- /dev/null +++ b/src/api/types/CallMessagesItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CallMessagesItem = + | Vapi.UserMessage + | Vapi.SystemMessage + | Vapi.BotMessage + | Vapi.ToolCallMessage + | Vapi.ToolCallResultMessage; diff --git a/src/api/types/CallPhoneCallProvider.ts b/src/api/types/CallPhoneCallProvider.ts new file mode 100644 index 00000000..33b1e715 --- /dev/null +++ b/src/api/types/CallPhoneCallProvider.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the provider of the call. + * + * Only relevant for `outboundPhoneCall` and `inboundPhoneCall` type. + */ +export type CallPhoneCallProvider = "twilio" | "vonage" | "vapi" | "telnyx"; +export const CallPhoneCallProvider = { + Twilio: "twilio", + Vonage: "vonage", + Vapi: "vapi", + Telnyx: "telnyx", +} as const; diff --git a/src/api/types/CallPhoneCallTransport.ts b/src/api/types/CallPhoneCallTransport.ts new file mode 100644 index 00000000..1339232c --- /dev/null +++ b/src/api/types/CallPhoneCallTransport.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the transport of the phone call. + * + * Only relevant for `outboundPhoneCall` and `inboundPhoneCall` type. + */ +export type CallPhoneCallTransport = "sip" | "pstn"; +export const CallPhoneCallTransport = { + Sip: "sip", + Pstn: "pstn", +} as const; diff --git a/src/api/types/CallStatus.ts b/src/api/types/CallStatus.ts new file mode 100644 index 00000000..d2926db0 --- /dev/null +++ b/src/api/types/CallStatus.ts @@ -0,0 +1,26 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the status of the call. + */ +export type CallStatus = + | "scheduled" + | "queued" + | "ringing" + | "in-progress" + | "forwarding" + | "ended" + | "not-found" + | "deletion-failed"; +export const CallStatus = { + Scheduled: "scheduled", + Queued: "queued", + Ringing: "ringing", + InProgress: "in-progress", + Forwarding: "forwarding", + Ended: "ended", + NotFound: "not-found", + DeletionFailed: "deletion-failed", +} as const; diff --git a/src/api/types/CallType.ts b/src/api/types/CallType.ts new file mode 100644 index 00000000..3529d9d9 --- /dev/null +++ b/src/api/types/CallType.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the type of call. + */ +export type CallType = "inboundPhoneCall" | "outboundPhoneCall" | "webCall" | "vapi.websocketCall"; +export const CallType = { + InboundPhoneCall: "inboundPhoneCall", + OutboundPhoneCall: "outboundPhoneCall", + WebCall: "webCall", + VapiWebsocketCall: "vapi.websocketCall", +} as const; diff --git a/src/api/types/Campaign.ts b/src/api/types/Campaign.ts index 4e6f8621..2e88d34f 100644 --- a/src/api/types/Campaign.ts +++ b/src/api/types/Campaign.ts @@ -6,9 +6,9 @@ import * as Vapi from "../index.js"; export interface Campaign { /** This is the status of the campaign. */ - status: Campaign.Status; + status: Vapi.CampaignStatus; /** This is the explanation for how the campaign ended. */ - endedReason?: Campaign.EndedReason; + endedReason?: Vapi.CampaignEndedReason; /** This is the name of the campaign. This is just for your own reference. */ name: string; /** This is the assistant ID that will be used for the campaign calls. Note: Either assistantId or workflowId can be used, but not both. */ @@ -42,27 +42,3 @@ export interface Campaign { /** This is the number of calls that have ended. */ callsCounterEnded: number; } - -export namespace Campaign { - /** - * This is the status of the campaign. - */ - export type Status = "scheduled" | "in-progress" | "ended"; - export const Status = { - Scheduled: "scheduled", - InProgress: "in-progress", - Ended: "ended", - } as const; - /** - * This is the explanation for how the campaign ended. - */ - export type EndedReason = - | "campaign.scheduled.ended-by-user" - | "campaign.in-progress.ended-by-user" - | "campaign.ended.success"; - export const EndedReason = { - CampaignScheduledEndedByUser: "campaign.scheduled.ended-by-user", - CampaignInProgressEndedByUser: "campaign.in-progress.ended-by-user", - CampaignEndedSuccess: "campaign.ended.success", - } as const; -} diff --git a/src/api/types/CampaignEndedReason.ts b/src/api/types/CampaignEndedReason.ts new file mode 100644 index 00000000..707878a9 --- /dev/null +++ b/src/api/types/CampaignEndedReason.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the explanation for how the campaign ended. + */ +export type CampaignEndedReason = + | "campaign.scheduled.ended-by-user" + | "campaign.in-progress.ended-by-user" + | "campaign.ended.success"; +export const CampaignEndedReason = { + CampaignScheduledEndedByUser: "campaign.scheduled.ended-by-user", + CampaignInProgressEndedByUser: "campaign.in-progress.ended-by-user", + CampaignEndedSuccess: "campaign.ended.success", +} as const; diff --git a/src/api/types/CampaignStatus.ts b/src/api/types/CampaignStatus.ts new file mode 100644 index 00000000..b56edf75 --- /dev/null +++ b/src/api/types/CampaignStatus.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the status of the campaign. + */ +export type CampaignStatus = "scheduled" | "in-progress" | "ended"; +export const CampaignStatus = { + Scheduled: "scheduled", + InProgress: "in-progress", + Ended: "ended", +} as const; diff --git a/src/api/types/CartesiaExperimentalControls.ts b/src/api/types/CartesiaExperimentalControls.ts index 80cd0f6e..29a6b7d9 100644 --- a/src/api/types/CartesiaExperimentalControls.ts +++ b/src/api/types/CartesiaExperimentalControls.ts @@ -2,54 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -export interface CartesiaExperimentalControls { - speed?: CartesiaExperimentalControls.Speed; - emotion?: CartesiaExperimentalControls.Emotion; -} +import * as Vapi from "../index.js"; -export namespace CartesiaExperimentalControls { - export type Speed = ("slowest" | "slow" | "normal" | "fast" | "fastest") | number; - export type Emotion = - | "anger:lowest" - | "anger:low" - | "anger:high" - | "anger:highest" - | "positivity:lowest" - | "positivity:low" - | "positivity:high" - | "positivity:highest" - | "surprise:lowest" - | "surprise:low" - | "surprise:high" - | "surprise:highest" - | "sadness:lowest" - | "sadness:low" - | "sadness:high" - | "sadness:highest" - | "curiosity:lowest" - | "curiosity:low" - | "curiosity:high" - | "curiosity:highest"; - export const Emotion = { - AngerLowest: "anger:lowest", - AngerLow: "anger:low", - AngerHigh: "anger:high", - AngerHighest: "anger:highest", - PositivityLowest: "positivity:lowest", - PositivityLow: "positivity:low", - PositivityHigh: "positivity:high", - PositivityHighest: "positivity:highest", - SurpriseLowest: "surprise:lowest", - SurpriseLow: "surprise:low", - SurpriseHigh: "surprise:high", - SurpriseHighest: "surprise:highest", - SadnessLowest: "sadness:lowest", - SadnessLow: "sadness:low", - SadnessHigh: "sadness:high", - SadnessHighest: "sadness:highest", - CuriosityLowest: "curiosity:lowest", - CuriosityLow: "curiosity:low", - CuriosityHigh: "curiosity:high", - CuriosityHighest: "curiosity:highest", - } as const; +export interface CartesiaExperimentalControls { + speed?: Vapi.CartesiaSpeedControl; + emotion?: Vapi.CartesiaExperimentalControlsEmotion; } diff --git a/src/api/types/CartesiaExperimentalControlsEmotion.ts b/src/api/types/CartesiaExperimentalControlsEmotion.ts new file mode 100644 index 00000000..2c6d9bed --- /dev/null +++ b/src/api/types/CartesiaExperimentalControlsEmotion.ts @@ -0,0 +1,47 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CartesiaExperimentalControlsEmotion = + | "anger:lowest" + | "anger:low" + | "anger:high" + | "anger:highest" + | "positivity:lowest" + | "positivity:low" + | "positivity:high" + | "positivity:highest" + | "surprise:lowest" + | "surprise:low" + | "surprise:high" + | "surprise:highest" + | "sadness:lowest" + | "sadness:low" + | "sadness:high" + | "sadness:highest" + | "curiosity:lowest" + | "curiosity:low" + | "curiosity:high" + | "curiosity:highest"; +export const CartesiaExperimentalControlsEmotion = { + AngerLowest: "anger:lowest", + AngerLow: "anger:low", + AngerHigh: "anger:high", + AngerHighest: "anger:highest", + PositivityLowest: "positivity:lowest", + PositivityLow: "positivity:low", + PositivityHigh: "positivity:high", + PositivityHighest: "positivity:highest", + SurpriseLowest: "surprise:lowest", + SurpriseLow: "surprise:low", + SurpriseHigh: "surprise:high", + SurpriseHighest: "surprise:highest", + SadnessLowest: "sadness:lowest", + SadnessLow: "sadness:low", + SadnessHigh: "sadness:high", + SadnessHighest: "sadness:highest", + CuriosityLowest: "curiosity:lowest", + CuriosityLow: "curiosity:low", + CuriosityHigh: "curiosity:high", + CuriosityHighest: "curiosity:highest", +} as const; diff --git a/src/api/types/CartesiaExperimentalControlsSpeed.ts b/src/api/types/CartesiaExperimentalControlsSpeed.ts new file mode 100644 index 00000000..bbba8cff --- /dev/null +++ b/src/api/types/CartesiaExperimentalControlsSpeed.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CartesiaExperimentalControlsSpeed = "slowest" | "slow" | "normal" | "fast" | "fastest"; +export const CartesiaExperimentalControlsSpeed = { + Slowest: "slowest", + Slow: "slow", + Normal: "normal", + Fast: "fast", + Fastest: "fastest", +} as const; diff --git a/src/api/types/CartesiaSpeedControl.ts b/src/api/types/CartesiaSpeedControl.ts new file mode 100644 index 00000000..d371d676 --- /dev/null +++ b/src/api/types/CartesiaSpeedControl.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CartesiaSpeedControl = Vapi.CartesiaExperimentalControlsSpeed | number; diff --git a/src/api/types/CartesiaTranscriber.ts b/src/api/types/CartesiaTranscriber.ts index 28b34d7d..4ac1f679 100644 --- a/src/api/types/CartesiaTranscriber.ts +++ b/src/api/types/CartesiaTranscriber.ts @@ -7,383 +7,7 @@ import * as Vapi from "../index.js"; export interface CartesiaTranscriber { provider: "cartesia"; model?: "ink-whisper"; - language?: CartesiaTranscriber.Language; + language?: Vapi.CartesiaTranscriberLanguage; /** This is the plan for voice provider fallbacks in the event that the primary voice provider fails. */ fallbackPlan?: Vapi.FallbackTranscriberPlan; } - -export namespace CartesiaTranscriber { - export type Language = - | "aa" - | "ab" - | "ae" - | "af" - | "ak" - | "am" - | "an" - | "ar" - | "as" - | "av" - | "ay" - | "az" - | "ba" - | "be" - | "bg" - | "bh" - | "bi" - | "bm" - | "bn" - | "bo" - | "br" - | "bs" - | "ca" - | "ce" - | "ch" - | "co" - | "cr" - | "cs" - | "cu" - | "cv" - | "cy" - | "da" - | "de" - | "dv" - | "dz" - | "ee" - | "el" - | "en" - | "eo" - | "es" - | "et" - | "eu" - | "fa" - | "ff" - | "fi" - | "fj" - | "fo" - | "fr" - | "fy" - | "ga" - | "gd" - | "gl" - | "gn" - | "gu" - | "gv" - | "ha" - | "he" - | "hi" - | "ho" - | "hr" - | "ht" - | "hu" - | "hy" - | "hz" - | "ia" - | "id" - | "ie" - | "ig" - | "ii" - | "ik" - | "io" - | "is" - | "it" - | "iu" - | "ja" - | "jv" - | "ka" - | "kg" - | "ki" - | "kj" - | "kk" - | "kl" - | "km" - | "kn" - | "ko" - | "kr" - | "ks" - | "ku" - | "kv" - | "kw" - | "ky" - | "la" - | "lb" - | "lg" - | "li" - | "ln" - | "lo" - | "lt" - | "lu" - | "lv" - | "mg" - | "mh" - | "mi" - | "mk" - | "ml" - | "mn" - | "mr" - | "ms" - | "mt" - | "my" - | "na" - | "nb" - | "nd" - | "ne" - | "ng" - | "nl" - | "nn" - | "no" - | "nr" - | "nv" - | "ny" - | "oc" - | "oj" - | "om" - | "or" - | "os" - | "pa" - | "pi" - | "pl" - | "ps" - | "pt" - | "qu" - | "rm" - | "rn" - | "ro" - | "ru" - | "rw" - | "sa" - | "sc" - | "sd" - | "se" - | "sg" - | "si" - | "sk" - | "sl" - | "sm" - | "sn" - | "so" - | "sq" - | "sr" - | "ss" - | "st" - | "su" - | "sv" - | "sw" - | "ta" - | "te" - | "tg" - | "th" - | "ti" - | "tk" - | "tl" - | "tn" - | "to" - | "tr" - | "ts" - | "tt" - | "tw" - | "ty" - | "ug" - | "uk" - | "ur" - | "uz" - | "ve" - | "vi" - | "vo" - | "wa" - | "wo" - | "xh" - | "yi" - | "yue" - | "yo" - | "za" - | "zh" - | "zu"; - export const Language = { - Aa: "aa", - Ab: "ab", - Ae: "ae", - Af: "af", - Ak: "ak", - Am: "am", - An: "an", - Ar: "ar", - As: "as", - Av: "av", - Ay: "ay", - Az: "az", - Ba: "ba", - Be: "be", - Bg: "bg", - Bh: "bh", - Bi: "bi", - Bm: "bm", - Bn: "bn", - Bo: "bo", - Br: "br", - Bs: "bs", - Ca: "ca", - Ce: "ce", - Ch: "ch", - Co: "co", - Cr: "cr", - Cs: "cs", - Cu: "cu", - Cv: "cv", - Cy: "cy", - Da: "da", - De: "de", - Dv: "dv", - Dz: "dz", - Ee: "ee", - El: "el", - En: "en", - Eo: "eo", - Es: "es", - Et: "et", - Eu: "eu", - Fa: "fa", - Ff: "ff", - Fi: "fi", - Fj: "fj", - Fo: "fo", - Fr: "fr", - Fy: "fy", - Ga: "ga", - Gd: "gd", - Gl: "gl", - Gn: "gn", - Gu: "gu", - Gv: "gv", - Ha: "ha", - He: "he", - Hi: "hi", - Ho: "ho", - Hr: "hr", - Ht: "ht", - Hu: "hu", - Hy: "hy", - Hz: "hz", - Ia: "ia", - Id: "id", - Ie: "ie", - Ig: "ig", - Ii: "ii", - Ik: "ik", - Io: "io", - Is: "is", - It: "it", - Iu: "iu", - Ja: "ja", - Jv: "jv", - Ka: "ka", - Kg: "kg", - Ki: "ki", - Kj: "kj", - Kk: "kk", - Kl: "kl", - Km: "km", - Kn: "kn", - Ko: "ko", - Kr: "kr", - Ks: "ks", - Ku: "ku", - Kv: "kv", - Kw: "kw", - Ky: "ky", - La: "la", - Lb: "lb", - Lg: "lg", - Li: "li", - Ln: "ln", - Lo: "lo", - Lt: "lt", - Lu: "lu", - Lv: "lv", - Mg: "mg", - Mh: "mh", - Mi: "mi", - Mk: "mk", - Ml: "ml", - Mn: "mn", - Mr: "mr", - Ms: "ms", - Mt: "mt", - My: "my", - Na: "na", - Nb: "nb", - Nd: "nd", - Ne: "ne", - Ng: "ng", - Nl: "nl", - Nn: "nn", - No: "no", - Nr: "nr", - Nv: "nv", - Ny: "ny", - Oc: "oc", - Oj: "oj", - Om: "om", - Or: "or", - Os: "os", - Pa: "pa", - Pi: "pi", - Pl: "pl", - Ps: "ps", - Pt: "pt", - Qu: "qu", - Rm: "rm", - Rn: "rn", - Ro: "ro", - Ru: "ru", - Rw: "rw", - Sa: "sa", - Sc: "sc", - Sd: "sd", - Se: "se", - Sg: "sg", - Si: "si", - Sk: "sk", - Sl: "sl", - Sm: "sm", - Sn: "sn", - So: "so", - Sq: "sq", - Sr: "sr", - Ss: "ss", - St: "st", - Su: "su", - Sv: "sv", - Sw: "sw", - Ta: "ta", - Te: "te", - Tg: "tg", - Th: "th", - Ti: "ti", - Tk: "tk", - Tl: "tl", - Tn: "tn", - To: "to", - Tr: "tr", - Ts: "ts", - Tt: "tt", - Tw: "tw", - Ty: "ty", - Ug: "ug", - Uk: "uk", - Ur: "ur", - Uz: "uz", - Ve: "ve", - Vi: "vi", - Vo: "vo", - Wa: "wa", - Wo: "wo", - Xh: "xh", - Yi: "yi", - Yue: "yue", - Yo: "yo", - Za: "za", - Zh: "zh", - Zu: "zu", - } as const; -} diff --git a/src/api/types/CartesiaTranscriberLanguage.ts b/src/api/types/CartesiaTranscriberLanguage.ts new file mode 100644 index 00000000..73f155ba --- /dev/null +++ b/src/api/types/CartesiaTranscriberLanguage.ts @@ -0,0 +1,377 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CartesiaTranscriberLanguage = + | "aa" + | "ab" + | "ae" + | "af" + | "ak" + | "am" + | "an" + | "ar" + | "as" + | "av" + | "ay" + | "az" + | "ba" + | "be" + | "bg" + | "bh" + | "bi" + | "bm" + | "bn" + | "bo" + | "br" + | "bs" + | "ca" + | "ce" + | "ch" + | "co" + | "cr" + | "cs" + | "cu" + | "cv" + | "cy" + | "da" + | "de" + | "dv" + | "dz" + | "ee" + | "el" + | "en" + | "eo" + | "es" + | "et" + | "eu" + | "fa" + | "ff" + | "fi" + | "fj" + | "fo" + | "fr" + | "fy" + | "ga" + | "gd" + | "gl" + | "gn" + | "gu" + | "gv" + | "ha" + | "he" + | "hi" + | "ho" + | "hr" + | "ht" + | "hu" + | "hy" + | "hz" + | "ia" + | "id" + | "ie" + | "ig" + | "ii" + | "ik" + | "io" + | "is" + | "it" + | "iu" + | "ja" + | "jv" + | "ka" + | "kg" + | "ki" + | "kj" + | "kk" + | "kl" + | "km" + | "kn" + | "ko" + | "kr" + | "ks" + | "ku" + | "kv" + | "kw" + | "ky" + | "la" + | "lb" + | "lg" + | "li" + | "ln" + | "lo" + | "lt" + | "lu" + | "lv" + | "mg" + | "mh" + | "mi" + | "mk" + | "ml" + | "mn" + | "mr" + | "ms" + | "mt" + | "my" + | "na" + | "nb" + | "nd" + | "ne" + | "ng" + | "nl" + | "nn" + | "no" + | "nr" + | "nv" + | "ny" + | "oc" + | "oj" + | "om" + | "or" + | "os" + | "pa" + | "pi" + | "pl" + | "ps" + | "pt" + | "qu" + | "rm" + | "rn" + | "ro" + | "ru" + | "rw" + | "sa" + | "sc" + | "sd" + | "se" + | "sg" + | "si" + | "sk" + | "sl" + | "sm" + | "sn" + | "so" + | "sq" + | "sr" + | "ss" + | "st" + | "su" + | "sv" + | "sw" + | "ta" + | "te" + | "tg" + | "th" + | "ti" + | "tk" + | "tl" + | "tn" + | "to" + | "tr" + | "ts" + | "tt" + | "tw" + | "ty" + | "ug" + | "uk" + | "ur" + | "uz" + | "ve" + | "vi" + | "vo" + | "wa" + | "wo" + | "xh" + | "yi" + | "yue" + | "yo" + | "za" + | "zh" + | "zu"; +export const CartesiaTranscriberLanguage = { + Aa: "aa", + Ab: "ab", + Ae: "ae", + Af: "af", + Ak: "ak", + Am: "am", + An: "an", + Ar: "ar", + As: "as", + Av: "av", + Ay: "ay", + Az: "az", + Ba: "ba", + Be: "be", + Bg: "bg", + Bh: "bh", + Bi: "bi", + Bm: "bm", + Bn: "bn", + Bo: "bo", + Br: "br", + Bs: "bs", + Ca: "ca", + Ce: "ce", + Ch: "ch", + Co: "co", + Cr: "cr", + Cs: "cs", + Cu: "cu", + Cv: "cv", + Cy: "cy", + Da: "da", + De: "de", + Dv: "dv", + Dz: "dz", + Ee: "ee", + El: "el", + En: "en", + Eo: "eo", + Es: "es", + Et: "et", + Eu: "eu", + Fa: "fa", + Ff: "ff", + Fi: "fi", + Fj: "fj", + Fo: "fo", + Fr: "fr", + Fy: "fy", + Ga: "ga", + Gd: "gd", + Gl: "gl", + Gn: "gn", + Gu: "gu", + Gv: "gv", + Ha: "ha", + He: "he", + Hi: "hi", + Ho: "ho", + Hr: "hr", + Ht: "ht", + Hu: "hu", + Hy: "hy", + Hz: "hz", + Ia: "ia", + Id: "id", + Ie: "ie", + Ig: "ig", + Ii: "ii", + Ik: "ik", + Io: "io", + Is: "is", + It: "it", + Iu: "iu", + Ja: "ja", + Jv: "jv", + Ka: "ka", + Kg: "kg", + Ki: "ki", + Kj: "kj", + Kk: "kk", + Kl: "kl", + Km: "km", + Kn: "kn", + Ko: "ko", + Kr: "kr", + Ks: "ks", + Ku: "ku", + Kv: "kv", + Kw: "kw", + Ky: "ky", + La: "la", + Lb: "lb", + Lg: "lg", + Li: "li", + Ln: "ln", + Lo: "lo", + Lt: "lt", + Lu: "lu", + Lv: "lv", + Mg: "mg", + Mh: "mh", + Mi: "mi", + Mk: "mk", + Ml: "ml", + Mn: "mn", + Mr: "mr", + Ms: "ms", + Mt: "mt", + My: "my", + Na: "na", + Nb: "nb", + Nd: "nd", + Ne: "ne", + Ng: "ng", + Nl: "nl", + Nn: "nn", + No: "no", + Nr: "nr", + Nv: "nv", + Ny: "ny", + Oc: "oc", + Oj: "oj", + Om: "om", + Or: "or", + Os: "os", + Pa: "pa", + Pi: "pi", + Pl: "pl", + Ps: "ps", + Pt: "pt", + Qu: "qu", + Rm: "rm", + Rn: "rn", + Ro: "ro", + Ru: "ru", + Rw: "rw", + Sa: "sa", + Sc: "sc", + Sd: "sd", + Se: "se", + Sg: "sg", + Si: "si", + Sk: "sk", + Sl: "sl", + Sm: "sm", + Sn: "sn", + So: "so", + Sq: "sq", + Sr: "sr", + Ss: "ss", + St: "st", + Su: "su", + Sv: "sv", + Sw: "sw", + Ta: "ta", + Te: "te", + Tg: "tg", + Th: "th", + Ti: "ti", + Tk: "tk", + Tl: "tl", + Tn: "tn", + To: "to", + Tr: "tr", + Ts: "ts", + Tt: "tt", + Tw: "tw", + Ty: "ty", + Ug: "ug", + Uk: "uk", + Ur: "ur", + Uz: "uz", + Ve: "ve", + Vi: "vi", + Vo: "vo", + Wa: "wa", + Wo: "wo", + Xh: "xh", + Yi: "yi", + Yue: "yue", + Yo: "yo", + Za: "za", + Zh: "zh", + Zu: "zu", +} as const; diff --git a/src/api/types/CartesiaVoice.ts b/src/api/types/CartesiaVoice.ts index d9d70e96..ae1ad116 100644 --- a/src/api/types/CartesiaVoice.ts +++ b/src/api/types/CartesiaVoice.ts @@ -12,9 +12,9 @@ export interface CartesiaVoice { /** The ID of the particular voice you want to use. */ voiceId: string; /** This is the model that will be used. This is optional and will default to the correct model for the voiceId. */ - model?: CartesiaVoice.Model; + model?: Vapi.CartesiaVoiceModel; /** This is the language that will be used. This is optional and will default to the correct language for the voiceId. */ - language?: CartesiaVoice.Language; + language?: Vapi.CartesiaVoiceLanguage; /** Experimental controls for Cartesia voice generation */ experimentalControls?: Vapi.CartesiaExperimentalControls; /** This is the plan for chunking the model output before it is sent to the voice provider. */ @@ -22,53 +22,3 @@ export interface CartesiaVoice { /** This is the plan for voice provider fallbacks in the event that the primary voice provider fails. */ fallbackPlan?: Vapi.FallbackPlan; } - -export namespace CartesiaVoice { - /** - * This is the model that will be used. This is optional and will default to the correct model for the voiceId. - */ - export type Model = "sonic-2" | "sonic-english" | "sonic-multilingual" | "sonic-preview" | "sonic"; - export const Model = { - Sonic2: "sonic-2", - SonicEnglish: "sonic-english", - SonicMultilingual: "sonic-multilingual", - SonicPreview: "sonic-preview", - Sonic: "sonic", - } as const; - /** - * This is the language that will be used. This is optional and will default to the correct language for the voiceId. - */ - export type Language = - | "en" - | "de" - | "es" - | "fr" - | "ja" - | "pt" - | "zh" - | "hi" - | "it" - | "ko" - | "nl" - | "pl" - | "ru" - | "sv" - | "tr"; - export const Language = { - En: "en", - De: "de", - Es: "es", - Fr: "fr", - Ja: "ja", - Pt: "pt", - Zh: "zh", - Hi: "hi", - It: "it", - Ko: "ko", - Nl: "nl", - Pl: "pl", - Ru: "ru", - Sv: "sv", - Tr: "tr", - } as const; -} diff --git a/src/api/types/CartesiaVoiceLanguage.ts b/src/api/types/CartesiaVoiceLanguage.ts new file mode 100644 index 00000000..b3da3bfb --- /dev/null +++ b/src/api/types/CartesiaVoiceLanguage.ts @@ -0,0 +1,40 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the language that will be used. This is optional and will default to the correct language for the voiceId. + */ +export type CartesiaVoiceLanguage = + | "en" + | "de" + | "es" + | "fr" + | "ja" + | "pt" + | "zh" + | "hi" + | "it" + | "ko" + | "nl" + | "pl" + | "ru" + | "sv" + | "tr"; +export const CartesiaVoiceLanguage = { + En: "en", + De: "de", + Es: "es", + Fr: "fr", + Ja: "ja", + Pt: "pt", + Zh: "zh", + Hi: "hi", + It: "it", + Ko: "ko", + Nl: "nl", + Pl: "pl", + Ru: "ru", + Sv: "sv", + Tr: "tr", +} as const; diff --git a/src/api/types/CartesiaVoiceModel.ts b/src/api/types/CartesiaVoiceModel.ts new file mode 100644 index 00000000..2f9b7cb4 --- /dev/null +++ b/src/api/types/CartesiaVoiceModel.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the model that will be used. This is optional and will default to the correct model for the voiceId. + */ +export type CartesiaVoiceModel = "sonic-2" | "sonic-english" | "sonic-multilingual" | "sonic-preview" | "sonic"; +export const CartesiaVoiceModel = { + Sonic2: "sonic-2", + SonicEnglish: "sonic-english", + SonicMultilingual: "sonic-multilingual", + SonicPreview: "sonic-preview", + Sonic: "sonic", +} as const; diff --git a/src/api/types/CerebrasModel.ts b/src/api/types/CerebrasModel.ts index 677a582b..16da28c7 100644 --- a/src/api/types/CerebrasModel.ts +++ b/src/api/types/CerebrasModel.ts @@ -12,7 +12,7 @@ export interface CerebrasModel { * * Both `tools` and `toolIds` can be used together. */ - tools?: CerebrasModel.Tools.Item[]; + tools?: Vapi.CerebrasModelToolsItem[]; /** * These are the tools that the assistant can use during the call. To use transient tools, use `tools`. * @@ -22,7 +22,7 @@ export interface CerebrasModel { /** These are the options for the knowledge base. */ knowledgeBase?: Vapi.CreateCustomKnowledgeBaseDto; /** This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b */ - model: CerebrasModel.Model; + model: Vapi.CerebrasModelModel; provider: "cerebras"; /** This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency. */ temperature?: number; @@ -45,40 +45,3 @@ export interface CerebrasModel { */ numFastTurns?: number; } - -export namespace CerebrasModel { - export type Tools = Tools.Item[]; - - export namespace Tools { - export type Item = - | Vapi.CreateApiRequestToolDto - | Vapi.CreateBashToolDto - | Vapi.CreateComputerToolDto - | Vapi.CreateDtmfToolDto - | Vapi.CreateEndCallToolDto - | Vapi.CreateFunctionToolDto - | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto - | Vapi.CreateGoHighLevelCalendarEventCreateToolDto - | Vapi.CreateGoHighLevelContactCreateToolDto - | Vapi.CreateGoHighLevelContactGetToolDto - | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto - | Vapi.CreateGoogleCalendarCreateEventToolDto - | Vapi.CreateGoogleSheetsRowAppendToolDto - | Vapi.CreateHandoffToolDto - | Vapi.CreateMcpToolDto - | Vapi.CreateQueryToolDto - | Vapi.CreateSlackSendMessageToolDto - | Vapi.CreateSmsToolDto - | Vapi.CreateTextEditorToolDto - | Vapi.CreateTransferCallToolDto; - } - - /** - * This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b - */ - export type Model = "llama3.1-8b" | "llama-3.3-70b"; - export const Model = { - Llama318B: "llama3.1-8b", - Llama3370B: "llama-3.3-70b", - } as const; -} diff --git a/src/api/types/CerebrasModelModel.ts b/src/api/types/CerebrasModelModel.ts new file mode 100644 index 00000000..976f3cc1 --- /dev/null +++ b/src/api/types/CerebrasModelModel.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b + */ +export type CerebrasModelModel = "llama3.1-8b" | "llama-3.3-70b"; +export const CerebrasModelModel = { + Llama318B: "llama3.1-8b", + Llama3370B: "llama-3.3-70b", +} as const; diff --git a/src/api/types/CerebrasModelToolsItem.ts b/src/api/types/CerebrasModelToolsItem.ts new file mode 100644 index 00000000..05ccaca2 --- /dev/null +++ b/src/api/types/CerebrasModelToolsItem.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CerebrasModelToolsItem = + | Vapi.CreateApiRequestToolDto + | Vapi.CreateBashToolDto + | Vapi.CreateComputerToolDto + | Vapi.CreateDtmfToolDto + | Vapi.CreateEndCallToolDto + | Vapi.CreateFunctionToolDto + | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto + | Vapi.CreateGoHighLevelCalendarEventCreateToolDto + | Vapi.CreateGoHighLevelContactCreateToolDto + | Vapi.CreateGoHighLevelContactGetToolDto + | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto + | Vapi.CreateGoogleCalendarCreateEventToolDto + | Vapi.CreateGoogleSheetsRowAppendToolDto + | Vapi.CreateHandoffToolDto + | Vapi.CreateMcpToolDto + | Vapi.CreateQueryToolDto + | Vapi.CreateSlackSendMessageToolDto + | Vapi.CreateSmsToolDto + | Vapi.CreateTextEditorToolDto + | Vapi.CreateTransferCallToolDto; diff --git a/src/api/types/Chat.ts b/src/api/types/Chat.ts index 2b6424cd..45f6ac7a 100644 --- a/src/api/types/Chat.ts +++ b/src/api/types/Chat.ts @@ -29,7 +29,7 @@ export interface Chat { * This is the input text for the chat. * Can be a string or an array of chat messages. */ - input?: Chat.Input; + input?: Vapi.ChatInput; /** * This is a flag that determines whether the response should be streamed. * When true, the response will be sent as chunks of text. @@ -49,52 +49,15 @@ export interface Chat { * This is an array of messages used as context for the chat. * Used to provide message history for multi-turn conversations. */ - messages?: Chat.Messages.Item[]; + messages?: Vapi.ChatMessagesItem[]; /** This is the output messages generated by the system in response to the input. */ - output?: Chat.Output.Item[]; + output?: Vapi.ChatOutputItem[]; /** This is the ISO 8601 date-time string of when the chat was created. */ createdAt: string; /** This is the ISO 8601 date-time string of when the chat was last updated. */ updatedAt: string; /** These are the costs of individual components of the chat in USD. */ - costs?: Chat.Costs.Item[]; + costs?: Vapi.ChatCostsItem[]; /** This is the cost of the chat in USD. */ cost?: number; } - -export namespace Chat { - /** - * This is the input text for the chat. - * Can be a string or an array of chat messages. - */ - export type Input = - | string - | (Vapi.SystemMessage | Vapi.UserMessage | Vapi.AssistantMessage | Vapi.ToolMessage | Vapi.DeveloperMessage)[]; - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.SystemMessage - | Vapi.UserMessage - | Vapi.AssistantMessage - | Vapi.ToolMessage - | Vapi.DeveloperMessage; - } - - export type Output = Output.Item[]; - - export namespace Output { - export type Item = - | Vapi.SystemMessage - | Vapi.UserMessage - | Vapi.AssistantMessage - | Vapi.ToolMessage - | Vapi.DeveloperMessage; - } - - export type Costs = Costs.Item[]; - - export namespace Costs { - export type Item = Vapi.ModelCost | Vapi.ChatCost; - } -} diff --git a/src/api/types/ChatCostsItem.ts b/src/api/types/ChatCostsItem.ts new file mode 100644 index 00000000..61fdbf86 --- /dev/null +++ b/src/api/types/ChatCostsItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type ChatCostsItem = Vapi.ModelCost | Vapi.ChatCost; diff --git a/src/api/types/ChatEvalAssistantMessageEvaluation.ts b/src/api/types/ChatEvalAssistantMessageEvaluation.ts index a9b54b1c..40807c22 100644 --- a/src/api/types/ChatEvalAssistantMessageEvaluation.ts +++ b/src/api/types/ChatEvalAssistantMessageEvaluation.ts @@ -15,21 +15,10 @@ export interface ChatEvalAssistantMessageEvaluation { * This is the judge plan that instructs how to evaluate the assistant message. * The assistant message can be evaluated against fixed content (exact match or RegEx) or with an LLM-as-judge by defining the evaluation criteria in a prompt. */ - judgePlan: ChatEvalAssistantMessageEvaluation.JudgePlan; + judgePlan: Vapi.ChatEvalAssistantMessageEvaluationJudgePlan; /** * This is the plan for how the overall evaluation will proceed after the assistant message is evaluated. * This lets you configure whether to stop the evaluation if this message fails, and whether to override any content for future turns */ continuePlan?: Vapi.AssistantMessageEvaluationContinuePlan; } - -export namespace ChatEvalAssistantMessageEvaluation { - /** - * This is the judge plan that instructs how to evaluate the assistant message. - * The assistant message can be evaluated against fixed content (exact match or RegEx) or with an LLM-as-judge by defining the evaluation criteria in a prompt. - */ - export type JudgePlan = - | Vapi.AssistantMessageJudgePlanExact - | Vapi.AssistantMessageJudgePlanRegex - | Vapi.AssistantMessageJudgePlanAi; -} diff --git a/src/api/types/ChatEvalAssistantMessageEvaluationJudgePlan.ts b/src/api/types/ChatEvalAssistantMessageEvaluationJudgePlan.ts new file mode 100644 index 00000000..1f8f101b --- /dev/null +++ b/src/api/types/ChatEvalAssistantMessageEvaluationJudgePlan.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the judge plan that instructs how to evaluate the assistant message. + * The assistant message can be evaluated against fixed content (exact match or RegEx) or with an LLM-as-judge by defining the evaluation criteria in a prompt. + */ +export type ChatEvalAssistantMessageEvaluationJudgePlan = + | Vapi.AssistantMessageJudgePlanExact + | Vapi.AssistantMessageJudgePlanRegex + | Vapi.AssistantMessageJudgePlanAi; diff --git a/src/api/types/ChatInput.ts b/src/api/types/ChatInput.ts new file mode 100644 index 00000000..e3715607 --- /dev/null +++ b/src/api/types/ChatInput.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the input text for the chat. + * Can be a string or an array of chat messages. + */ +export type ChatInput = string | Vapi.ChatInputItem[]; diff --git a/src/api/types/ChatInputItem.ts b/src/api/types/ChatInputItem.ts new file mode 100644 index 00000000..ab6c7455 --- /dev/null +++ b/src/api/types/ChatInputItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type ChatInputItem = + | Vapi.SystemMessage + | Vapi.UserMessage + | Vapi.AssistantMessage + | Vapi.ToolMessage + | Vapi.DeveloperMessage; diff --git a/src/api/types/ChatMessagesItem.ts b/src/api/types/ChatMessagesItem.ts new file mode 100644 index 00000000..2f04960c --- /dev/null +++ b/src/api/types/ChatMessagesItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type ChatMessagesItem = + | Vapi.SystemMessage + | Vapi.UserMessage + | Vapi.AssistantMessage + | Vapi.ToolMessage + | Vapi.DeveloperMessage; diff --git a/src/api/types/ChatOutputItem.ts b/src/api/types/ChatOutputItem.ts new file mode 100644 index 00000000..bbcaebcc --- /dev/null +++ b/src/api/types/ChatOutputItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type ChatOutputItem = + | Vapi.SystemMessage + | Vapi.UserMessage + | Vapi.AssistantMessage + | Vapi.ToolMessage + | Vapi.DeveloperMessage; diff --git a/src/api/types/ClientInboundMessage.ts b/src/api/types/ClientInboundMessage.ts index 821ced55..cb39b133 100644 --- a/src/api/types/ClientInboundMessage.ts +++ b/src/api/types/ClientInboundMessage.ts @@ -6,17 +6,5 @@ import * as Vapi from "../index.js"; export interface ClientInboundMessage { /** These are the messages that can be sent from client-side SDKs to control the call. */ - message: ClientInboundMessage.Message; -} - -export namespace ClientInboundMessage { - /** - * These are the messages that can be sent from client-side SDKs to control the call. - */ - export type Message = - | Vapi.ClientInboundMessageAddMessage - | Vapi.ClientInboundMessageControl - | Vapi.ClientInboundMessageSay - | Vapi.ClientInboundMessageEndCall - | Vapi.ClientInboundMessageTransfer; + message: Vapi.ClientInboundMessageMessage; } diff --git a/src/api/types/ClientInboundMessageControl.ts b/src/api/types/ClientInboundMessageControl.ts index a445c9a3..c26a0b4b 100644 --- a/src/api/types/ClientInboundMessageControl.ts +++ b/src/api/types/ClientInboundMessageControl.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface ClientInboundMessageControl { /** * This is the type of the message. Send "control" message to control the assistant. `control` options are: @@ -13,24 +15,5 @@ export interface ClientInboundMessageControl { */ type: "control"; /** This is the control action */ - control: ClientInboundMessageControl.Control; -} - -export namespace ClientInboundMessageControl { - /** - * This is the control action - */ - export type Control = - | "mute-assistant" - | "unmute-assistant" - | "mute-customer" - | "unmute-customer" - | "say-first-message"; - export const Control = { - MuteAssistant: "mute-assistant", - UnmuteAssistant: "unmute-assistant", - MuteCustomer: "mute-customer", - UnmuteCustomer: "unmute-customer", - SayFirstMessage: "say-first-message", - } as const; + control: Vapi.ClientInboundMessageControlControl; } diff --git a/src/api/types/ClientInboundMessageControlControl.ts b/src/api/types/ClientInboundMessageControlControl.ts new file mode 100644 index 00000000..91f95686 --- /dev/null +++ b/src/api/types/ClientInboundMessageControlControl.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the control action + */ +export type ClientInboundMessageControlControl = + | "mute-assistant" + | "unmute-assistant" + | "mute-customer" + | "unmute-customer" + | "say-first-message"; +export const ClientInboundMessageControlControl = { + MuteAssistant: "mute-assistant", + UnmuteAssistant: "unmute-assistant", + MuteCustomer: "mute-customer", + UnmuteCustomer: "unmute-customer", + SayFirstMessage: "say-first-message", +} as const; diff --git a/src/api/types/ClientInboundMessageMessage.ts b/src/api/types/ClientInboundMessageMessage.ts new file mode 100644 index 00000000..2a41b195 --- /dev/null +++ b/src/api/types/ClientInboundMessageMessage.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * These are the messages that can be sent from client-side SDKs to control the call. + */ +export type ClientInboundMessageMessage = + | Vapi.ClientInboundMessageAddMessage + | Vapi.ClientInboundMessageControl + | Vapi.ClientInboundMessageSay + | Vapi.ClientInboundMessageEndCall + | Vapi.ClientInboundMessageTransfer; diff --git a/src/api/types/ClientInboundMessageTransfer.ts b/src/api/types/ClientInboundMessageTransfer.ts index 63535975..64c5d2f5 100644 --- a/src/api/types/ClientInboundMessageTransfer.ts +++ b/src/api/types/ClientInboundMessageTransfer.ts @@ -8,14 +8,7 @@ export interface ClientInboundMessageTransfer { /** This is the type of the message. Send "transfer" message to transfer the call to a destination. */ type: "transfer"; /** This is the destination to transfer the call to. */ - destination?: ClientInboundMessageTransfer.Destination; + destination?: Vapi.ClientInboundMessageTransferDestination; /** This is the content to say. */ content?: string; } - -export namespace ClientInboundMessageTransfer { - /** - * This is the destination to transfer the call to. - */ - export type Destination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; -} diff --git a/src/api/types/ClientInboundMessageTransferDestination.ts b/src/api/types/ClientInboundMessageTransferDestination.ts new file mode 100644 index 00000000..43d9e30a --- /dev/null +++ b/src/api/types/ClientInboundMessageTransferDestination.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the destination to transfer the call to. + */ +export type ClientInboundMessageTransferDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; diff --git a/src/api/types/ClientMessage.ts b/src/api/types/ClientMessage.ts index dee12e4c..0d29fe44 100644 --- a/src/api/types/ClientMessage.ts +++ b/src/api/types/ClientMessage.ts @@ -6,32 +6,5 @@ import * as Vapi from "../index.js"; export interface ClientMessage { /** These are all the messages that can be sent to the client-side SDKs during the call. Configure the messages you'd like to receive in `assistant.clientMessages`. */ - message: ClientMessage.Message; -} - -export namespace ClientMessage { - /** - * These are all the messages that can be sent to the client-side SDKs during the call. Configure the messages you'd like to receive in `assistant.clientMessages`. - */ - export type Message = - | Vapi.ClientMessageWorkflowNodeStarted - | Vapi.ClientMessageConversationUpdate - | Vapi.ClientMessageHang - | Vapi.ClientMessageMetadata - | Vapi.ClientMessageModelOutput - | Vapi.ClientMessageSpeechUpdate - | Vapi.ClientMessageTranscript - | Vapi.ClientMessageToolCalls - | Vapi.ClientMessageToolCallsResult - | Vapi.ClientMessageTransferUpdate - | Vapi.ClientMessageUserInterrupted - | Vapi.ClientMessageLanguageChangeDetected - | Vapi.ClientMessageVoiceInput - | Vapi.ClientMessageChatCreated - | Vapi.ClientMessageChatDeleted - | Vapi.ClientMessageSessionCreated - | Vapi.ClientMessageSessionUpdated - | Vapi.ClientMessageSessionDeleted - | Vapi.ClientMessageCallDeleted - | Vapi.ClientMessageCallDeleteFailed; + message: Vapi.ClientMessageMessage; } diff --git a/src/api/types/ClientMessageCallDeleteFailed.ts b/src/api/types/ClientMessageCallDeleteFailed.ts index ec8e5f78..c75e79c7 100644 --- a/src/api/types/ClientMessageCallDeleteFailed.ts +++ b/src/api/types/ClientMessageCallDeleteFailed.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ClientMessageCallDeleteFailed { /** This is the phone number that the message is associated with. */ - phoneNumber?: ClientMessageCallDeleteFailed.PhoneNumber; + phoneNumber?: Vapi.ClientMessageCallDeleteFailedPhoneNumber; /** This is the type of the message. "call.deleted" is sent when a call is deleted. */ type: "call.delete.failed"; /** This is the timestamp of the message. */ @@ -18,15 +18,3 @@ export interface ClientMessageCallDeleteFailed { /** This is the assistant that the message is associated with. */ assistant?: Vapi.CreateAssistantDto; } - -export namespace ClientMessageCallDeleteFailed { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ClientMessageCallDeleteFailedPhoneNumber.ts b/src/api/types/ClientMessageCallDeleteFailedPhoneNumber.ts new file mode 100644 index 00000000..beb54654 --- /dev/null +++ b/src/api/types/ClientMessageCallDeleteFailedPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ClientMessageCallDeleteFailedPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ClientMessageCallDeleted.ts b/src/api/types/ClientMessageCallDeleted.ts index e6e1be22..23331be2 100644 --- a/src/api/types/ClientMessageCallDeleted.ts +++ b/src/api/types/ClientMessageCallDeleted.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ClientMessageCallDeleted { /** This is the phone number that the message is associated with. */ - phoneNumber?: ClientMessageCallDeleted.PhoneNumber; + phoneNumber?: Vapi.ClientMessageCallDeletedPhoneNumber; /** This is the type of the message. "call.deleted" is sent when a call is deleted. */ type: "call.deleted"; /** This is the timestamp of the message. */ @@ -18,15 +18,3 @@ export interface ClientMessageCallDeleted { /** This is the assistant that the message is associated with. */ assistant?: Vapi.CreateAssistantDto; } - -export namespace ClientMessageCallDeleted { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ClientMessageCallDeletedPhoneNumber.ts b/src/api/types/ClientMessageCallDeletedPhoneNumber.ts new file mode 100644 index 00000000..f5b3f6ba --- /dev/null +++ b/src/api/types/ClientMessageCallDeletedPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ClientMessageCallDeletedPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ClientMessageChatCreated.ts b/src/api/types/ClientMessageChatCreated.ts index 8f7f9106..cca7608e 100644 --- a/src/api/types/ClientMessageChatCreated.ts +++ b/src/api/types/ClientMessageChatCreated.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ClientMessageChatCreated { /** This is the phone number that the message is associated with. */ - phoneNumber?: ClientMessageChatCreated.PhoneNumber; + phoneNumber?: Vapi.ClientMessageChatCreatedPhoneNumber; /** This is the type of the message. "chat.created" is sent when a new chat is created. */ type: "chat.created"; /** This is the timestamp of the message. */ @@ -20,15 +20,3 @@ export interface ClientMessageChatCreated { /** This is the chat that was created. */ chat: Vapi.Chat; } - -export namespace ClientMessageChatCreated { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ClientMessageChatCreatedPhoneNumber.ts b/src/api/types/ClientMessageChatCreatedPhoneNumber.ts new file mode 100644 index 00000000..3f83bdb1 --- /dev/null +++ b/src/api/types/ClientMessageChatCreatedPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ClientMessageChatCreatedPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ClientMessageChatDeleted.ts b/src/api/types/ClientMessageChatDeleted.ts index 5b9cef69..8f60ea2c 100644 --- a/src/api/types/ClientMessageChatDeleted.ts +++ b/src/api/types/ClientMessageChatDeleted.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ClientMessageChatDeleted { /** This is the phone number that the message is associated with. */ - phoneNumber?: ClientMessageChatDeleted.PhoneNumber; + phoneNumber?: Vapi.ClientMessageChatDeletedPhoneNumber; /** This is the type of the message. "chat.deleted" is sent when a chat is deleted. */ type: "chat.deleted"; /** This is the timestamp of the message. */ @@ -20,15 +20,3 @@ export interface ClientMessageChatDeleted { /** This is the chat that was deleted. */ chat: Vapi.Chat; } - -export namespace ClientMessageChatDeleted { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ClientMessageChatDeletedPhoneNumber.ts b/src/api/types/ClientMessageChatDeletedPhoneNumber.ts new file mode 100644 index 00000000..6165988a --- /dev/null +++ b/src/api/types/ClientMessageChatDeletedPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ClientMessageChatDeletedPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ClientMessageConversationUpdate.ts b/src/api/types/ClientMessageConversationUpdate.ts index b210eb2e..69ec167d 100644 --- a/src/api/types/ClientMessageConversationUpdate.ts +++ b/src/api/types/ClientMessageConversationUpdate.ts @@ -6,11 +6,11 @@ import * as Vapi from "../index.js"; export interface ClientMessageConversationUpdate { /** This is the phone number that the message is associated with. */ - phoneNumber?: ClientMessageConversationUpdate.PhoneNumber; + phoneNumber?: Vapi.ClientMessageConversationUpdatePhoneNumber; /** This is the type of the message. "conversation-update" is sent when an update is committed to the conversation history. */ type: "conversation-update"; /** This is the most up-to-date conversation history at the time the message is sent. */ - messages?: ClientMessageConversationUpdate.Messages.Item[]; + messages?: Vapi.ClientMessageConversationUpdateMessagesItem[]; /** This is the most up-to-date conversation history at the time the message is sent, formatted for OpenAI. */ messagesOpenAIFormatted: Vapi.OpenAiMessage[]; /** This is the timestamp of the message. */ @@ -22,25 +22,3 @@ export interface ClientMessageConversationUpdate { /** This is the assistant that the message is associated with. */ assistant?: Vapi.CreateAssistantDto; } - -export namespace ClientMessageConversationUpdate { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.UserMessage - | Vapi.SystemMessage - | Vapi.BotMessage - | Vapi.ToolCallMessage - | Vapi.ToolCallResultMessage; - } -} diff --git a/src/api/types/ClientMessageConversationUpdateMessagesItem.ts b/src/api/types/ClientMessageConversationUpdateMessagesItem.ts new file mode 100644 index 00000000..7936f71b --- /dev/null +++ b/src/api/types/ClientMessageConversationUpdateMessagesItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type ClientMessageConversationUpdateMessagesItem = + | Vapi.UserMessage + | Vapi.SystemMessage + | Vapi.BotMessage + | Vapi.ToolCallMessage + | Vapi.ToolCallResultMessage; diff --git a/src/api/types/ClientMessageConversationUpdatePhoneNumber.ts b/src/api/types/ClientMessageConversationUpdatePhoneNumber.ts new file mode 100644 index 00000000..4e154492 --- /dev/null +++ b/src/api/types/ClientMessageConversationUpdatePhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ClientMessageConversationUpdatePhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ClientMessageHang.ts b/src/api/types/ClientMessageHang.ts index 94fb50b6..31dacd9e 100644 --- a/src/api/types/ClientMessageHang.ts +++ b/src/api/types/ClientMessageHang.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ClientMessageHang { /** This is the phone number that the message is associated with. */ - phoneNumber?: ClientMessageHang.PhoneNumber; + phoneNumber?: Vapi.ClientMessageHangPhoneNumber; /** * This is the type of the message. "hang" is sent when the assistant is hanging due to a delay. The delay can be caused by many factors, such as: * - the model is too slow to respond @@ -24,15 +24,3 @@ export interface ClientMessageHang { /** This is the assistant that the message is associated with. */ assistant?: Vapi.CreateAssistantDto; } - -export namespace ClientMessageHang { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ClientMessageHangPhoneNumber.ts b/src/api/types/ClientMessageHangPhoneNumber.ts new file mode 100644 index 00000000..5ebf6572 --- /dev/null +++ b/src/api/types/ClientMessageHangPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ClientMessageHangPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ClientMessageLanguageChangeDetected.ts b/src/api/types/ClientMessageLanguageChangeDetected.ts index a995a8b0..2ba095cf 100644 --- a/src/api/types/ClientMessageLanguageChangeDetected.ts +++ b/src/api/types/ClientMessageLanguageChangeDetected.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ClientMessageLanguageChangeDetected { /** This is the phone number that the message is associated with. */ - phoneNumber?: ClientMessageLanguageChangeDetected.PhoneNumber; + phoneNumber?: Vapi.ClientMessageLanguageChangeDetectedPhoneNumber; /** This is the type of the message. "language-change-detected" is sent when the transcriber is automatically switched based on the detected language. */ type: "language-change-detected"; /** This is the timestamp of the message. */ @@ -20,15 +20,3 @@ export interface ClientMessageLanguageChangeDetected { /** This is the language the transcriber is switched to. */ language: string; } - -export namespace ClientMessageLanguageChangeDetected { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ClientMessageLanguageChangeDetectedPhoneNumber.ts b/src/api/types/ClientMessageLanguageChangeDetectedPhoneNumber.ts new file mode 100644 index 00000000..1ac83510 --- /dev/null +++ b/src/api/types/ClientMessageLanguageChangeDetectedPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ClientMessageLanguageChangeDetectedPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ClientMessageMessage.ts b/src/api/types/ClientMessageMessage.ts new file mode 100644 index 00000000..8bf6761c --- /dev/null +++ b/src/api/types/ClientMessageMessage.ts @@ -0,0 +1,30 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * These are all the messages that can be sent to the client-side SDKs during the call. Configure the messages you'd like to receive in `assistant.clientMessages`. + */ +export type ClientMessageMessage = + | Vapi.ClientMessageWorkflowNodeStarted + | Vapi.ClientMessageConversationUpdate + | Vapi.ClientMessageHang + | Vapi.ClientMessageMetadata + | Vapi.ClientMessageModelOutput + | Vapi.ClientMessageSpeechUpdate + | Vapi.ClientMessageTranscript + | Vapi.ClientMessageToolCalls + | Vapi.ClientMessageToolCallsResult + | Vapi.ClientMessageTransferUpdate + | Vapi.ClientMessageUserInterrupted + | Vapi.ClientMessageLanguageChangeDetected + | Vapi.ClientMessageVoiceInput + | Vapi.ClientMessageChatCreated + | Vapi.ClientMessageChatDeleted + | Vapi.ClientMessageSessionCreated + | Vapi.ClientMessageSessionUpdated + | Vapi.ClientMessageSessionDeleted + | Vapi.ClientMessageCallDeleted + | Vapi.ClientMessageCallDeleteFailed; diff --git a/src/api/types/ClientMessageMetadata.ts b/src/api/types/ClientMessageMetadata.ts index 14fd2e4d..12db9b0c 100644 --- a/src/api/types/ClientMessageMetadata.ts +++ b/src/api/types/ClientMessageMetadata.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ClientMessageMetadata { /** This is the phone number that the message is associated with. */ - phoneNumber?: ClientMessageMetadata.PhoneNumber; + phoneNumber?: Vapi.ClientMessageMetadataPhoneNumber; /** This is the type of the message. "metadata" is sent to forward metadata to the client. */ type: "metadata"; /** This is the timestamp of the message. */ @@ -20,15 +20,3 @@ export interface ClientMessageMetadata { /** This is the metadata content */ metadata: string; } - -export namespace ClientMessageMetadata { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ClientMessageMetadataPhoneNumber.ts b/src/api/types/ClientMessageMetadataPhoneNumber.ts new file mode 100644 index 00000000..ae074fe8 --- /dev/null +++ b/src/api/types/ClientMessageMetadataPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ClientMessageMetadataPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ClientMessageModelOutput.ts b/src/api/types/ClientMessageModelOutput.ts index 6801cd7a..2a2d5a33 100644 --- a/src/api/types/ClientMessageModelOutput.ts +++ b/src/api/types/ClientMessageModelOutput.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ClientMessageModelOutput { /** This is the phone number that the message is associated with. */ - phoneNumber?: ClientMessageModelOutput.PhoneNumber; + phoneNumber?: Vapi.ClientMessageModelOutputPhoneNumber; /** This is the type of the message. "model-output" is sent as the model outputs tokens. */ type: "model-output"; /** This is the timestamp of the message. */ @@ -20,15 +20,3 @@ export interface ClientMessageModelOutput { /** This is the output of the model. It can be a token or tool call. */ output: Record; } - -export namespace ClientMessageModelOutput { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ClientMessageModelOutputPhoneNumber.ts b/src/api/types/ClientMessageModelOutputPhoneNumber.ts new file mode 100644 index 00000000..e6ed36bf --- /dev/null +++ b/src/api/types/ClientMessageModelOutputPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ClientMessageModelOutputPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ClientMessageSessionCreated.ts b/src/api/types/ClientMessageSessionCreated.ts index bed362f6..2a7ff2ac 100644 --- a/src/api/types/ClientMessageSessionCreated.ts +++ b/src/api/types/ClientMessageSessionCreated.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ClientMessageSessionCreated { /** This is the phone number that the message is associated with. */ - phoneNumber?: ClientMessageSessionCreated.PhoneNumber; + phoneNumber?: Vapi.ClientMessageSessionCreatedPhoneNumber; /** This is the type of the message. "session.created" is sent when a new session is created. */ type: "session.created"; /** This is the timestamp of the message. */ @@ -20,15 +20,3 @@ export interface ClientMessageSessionCreated { /** This is the session that was created. */ session: Vapi.Session; } - -export namespace ClientMessageSessionCreated { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ClientMessageSessionCreatedPhoneNumber.ts b/src/api/types/ClientMessageSessionCreatedPhoneNumber.ts new file mode 100644 index 00000000..1ab7f1bb --- /dev/null +++ b/src/api/types/ClientMessageSessionCreatedPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ClientMessageSessionCreatedPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ClientMessageSessionDeleted.ts b/src/api/types/ClientMessageSessionDeleted.ts index 1f260c7d..4d968cb3 100644 --- a/src/api/types/ClientMessageSessionDeleted.ts +++ b/src/api/types/ClientMessageSessionDeleted.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ClientMessageSessionDeleted { /** This is the phone number that the message is associated with. */ - phoneNumber?: ClientMessageSessionDeleted.PhoneNumber; + phoneNumber?: Vapi.ClientMessageSessionDeletedPhoneNumber; /** This is the type of the message. "session.deleted" is sent when a session is deleted. */ type: "session.deleted"; /** This is the timestamp of the message. */ @@ -20,15 +20,3 @@ export interface ClientMessageSessionDeleted { /** This is the session that was deleted. */ session: Vapi.Session; } - -export namespace ClientMessageSessionDeleted { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ClientMessageSessionDeletedPhoneNumber.ts b/src/api/types/ClientMessageSessionDeletedPhoneNumber.ts new file mode 100644 index 00000000..260b7a6a --- /dev/null +++ b/src/api/types/ClientMessageSessionDeletedPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ClientMessageSessionDeletedPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ClientMessageSessionUpdated.ts b/src/api/types/ClientMessageSessionUpdated.ts index f1b2b0fb..633fb0ba 100644 --- a/src/api/types/ClientMessageSessionUpdated.ts +++ b/src/api/types/ClientMessageSessionUpdated.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ClientMessageSessionUpdated { /** This is the phone number that the message is associated with. */ - phoneNumber?: ClientMessageSessionUpdated.PhoneNumber; + phoneNumber?: Vapi.ClientMessageSessionUpdatedPhoneNumber; /** This is the type of the message. "session.updated" is sent when a session is updated. */ type: "session.updated"; /** This is the timestamp of the message. */ @@ -20,15 +20,3 @@ export interface ClientMessageSessionUpdated { /** This is the session that was updated. */ session: Vapi.Session; } - -export namespace ClientMessageSessionUpdated { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ClientMessageSessionUpdatedPhoneNumber.ts b/src/api/types/ClientMessageSessionUpdatedPhoneNumber.ts new file mode 100644 index 00000000..d4d8d9c9 --- /dev/null +++ b/src/api/types/ClientMessageSessionUpdatedPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ClientMessageSessionUpdatedPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ClientMessageSpeechUpdate.ts b/src/api/types/ClientMessageSpeechUpdate.ts index 67369851..c53acdd9 100644 --- a/src/api/types/ClientMessageSpeechUpdate.ts +++ b/src/api/types/ClientMessageSpeechUpdate.ts @@ -6,13 +6,13 @@ import * as Vapi from "../index.js"; export interface ClientMessageSpeechUpdate { /** This is the phone number that the message is associated with. */ - phoneNumber?: ClientMessageSpeechUpdate.PhoneNumber; + phoneNumber?: Vapi.ClientMessageSpeechUpdatePhoneNumber; /** This is the type of the message. "speech-update" is sent whenever assistant or user start or stop speaking. */ type: "speech-update"; /** This is the status of the speech update. */ - status: ClientMessageSpeechUpdate.Status; + status: Vapi.ClientMessageSpeechUpdateStatus; /** This is the role which the speech update is for. */ - role: ClientMessageSpeechUpdate.Role; + role: Vapi.ClientMessageSpeechUpdateRole; /** This is the turn number of the speech update (0-indexed). */ turn?: number; /** This is the timestamp of the message. */ @@ -24,31 +24,3 @@ export interface ClientMessageSpeechUpdate { /** This is the assistant that the message is associated with. */ assistant?: Vapi.CreateAssistantDto; } - -export namespace ClientMessageSpeechUpdate { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; - /** - * This is the status of the speech update. - */ - export type Status = "started" | "stopped"; - export const Status = { - Started: "started", - Stopped: "stopped", - } as const; - /** - * This is the role which the speech update is for. - */ - export type Role = "assistant" | "user"; - export const Role = { - Assistant: "assistant", - User: "user", - } as const; -} diff --git a/src/api/types/ClientMessageSpeechUpdatePhoneNumber.ts b/src/api/types/ClientMessageSpeechUpdatePhoneNumber.ts new file mode 100644 index 00000000..d5b9ab0f --- /dev/null +++ b/src/api/types/ClientMessageSpeechUpdatePhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ClientMessageSpeechUpdatePhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ClientMessageSpeechUpdateRole.ts b/src/api/types/ClientMessageSpeechUpdateRole.ts new file mode 100644 index 00000000..f4d826d9 --- /dev/null +++ b/src/api/types/ClientMessageSpeechUpdateRole.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the role which the speech update is for. + */ +export type ClientMessageSpeechUpdateRole = "assistant" | "user"; +export const ClientMessageSpeechUpdateRole = { + Assistant: "assistant", + User: "user", +} as const; diff --git a/src/api/types/ClientMessageSpeechUpdateStatus.ts b/src/api/types/ClientMessageSpeechUpdateStatus.ts new file mode 100644 index 00000000..c5368c7c --- /dev/null +++ b/src/api/types/ClientMessageSpeechUpdateStatus.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the status of the speech update. + */ +export type ClientMessageSpeechUpdateStatus = "started" | "stopped"; +export const ClientMessageSpeechUpdateStatus = { + Started: "started", + Stopped: "stopped", +} as const; diff --git a/src/api/types/ClientMessageToolCalls.ts b/src/api/types/ClientMessageToolCalls.ts index 9b363cde..5471cb30 100644 --- a/src/api/types/ClientMessageToolCalls.ts +++ b/src/api/types/ClientMessageToolCalls.ts @@ -6,11 +6,11 @@ import * as Vapi from "../index.js"; export interface ClientMessageToolCalls { /** This is the phone number that the message is associated with. */ - phoneNumber?: ClientMessageToolCalls.PhoneNumber; + phoneNumber?: Vapi.ClientMessageToolCallsPhoneNumber; /** This is the type of the message. "tool-calls" is sent to call a tool. */ type?: "tool-calls"; /** This is the list of tools calls that the model is requesting along with the original tool configuration. */ - toolWithToolCallList: ClientMessageToolCalls.ToolWithToolCallList.Item[]; + toolWithToolCallList: Vapi.ClientMessageToolCallsToolWithToolCallListItem[]; /** This is the timestamp of the message. */ timestamp?: number; /** This is the call that the message is associated with. */ @@ -22,27 +22,3 @@ export interface ClientMessageToolCalls { /** This is the list of tool calls that the model is requesting. */ toolCallList: Vapi.ToolCall[]; } - -export namespace ClientMessageToolCalls { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; - export type ToolWithToolCallList = ToolWithToolCallList.Item[]; - - export namespace ToolWithToolCallList { - export type Item = - | Vapi.FunctionToolWithToolCall - | Vapi.GhlToolWithToolCall - | Vapi.MakeToolWithToolCall - | Vapi.BashToolWithToolCall - | Vapi.ComputerToolWithToolCall - | Vapi.TextEditorToolWithToolCall - | Vapi.GoogleCalendarCreateEventToolWithToolCall; - } -} diff --git a/src/api/types/ClientMessageToolCallsPhoneNumber.ts b/src/api/types/ClientMessageToolCallsPhoneNumber.ts new file mode 100644 index 00000000..afddd61b --- /dev/null +++ b/src/api/types/ClientMessageToolCallsPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ClientMessageToolCallsPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ClientMessageToolCallsResult.ts b/src/api/types/ClientMessageToolCallsResult.ts index de1a9073..e716cdd2 100644 --- a/src/api/types/ClientMessageToolCallsResult.ts +++ b/src/api/types/ClientMessageToolCallsResult.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ClientMessageToolCallsResult { /** This is the phone number that the message is associated with. */ - phoneNumber?: ClientMessageToolCallsResult.PhoneNumber; + phoneNumber?: Vapi.ClientMessageToolCallsResultPhoneNumber; /** This is the type of the message. "tool-calls-result" is sent to forward the result of a tool call to the client. */ type: "tool-calls-result"; /** This is the timestamp of the message. */ @@ -20,15 +20,3 @@ export interface ClientMessageToolCallsResult { /** This is the result of the tool call. */ toolCallResult: Record; } - -export namespace ClientMessageToolCallsResult { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ClientMessageToolCallsResultPhoneNumber.ts b/src/api/types/ClientMessageToolCallsResultPhoneNumber.ts new file mode 100644 index 00000000..039114c4 --- /dev/null +++ b/src/api/types/ClientMessageToolCallsResultPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ClientMessageToolCallsResultPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ClientMessageToolCallsToolWithToolCallListItem.ts b/src/api/types/ClientMessageToolCallsToolWithToolCallListItem.ts new file mode 100644 index 00000000..88b694e4 --- /dev/null +++ b/src/api/types/ClientMessageToolCallsToolWithToolCallListItem.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type ClientMessageToolCallsToolWithToolCallListItem = + | Vapi.FunctionToolWithToolCall + | Vapi.GhlToolWithToolCall + | Vapi.MakeToolWithToolCall + | Vapi.BashToolWithToolCall + | Vapi.ComputerToolWithToolCall + | Vapi.TextEditorToolWithToolCall + | Vapi.GoogleCalendarCreateEventToolWithToolCall; diff --git a/src/api/types/ClientMessageTranscript.ts b/src/api/types/ClientMessageTranscript.ts index 897f4112..8fddbffb 100644 --- a/src/api/types/ClientMessageTranscript.ts +++ b/src/api/types/ClientMessageTranscript.ts @@ -6,9 +6,9 @@ import * as Vapi from "../index.js"; export interface ClientMessageTranscript { /** This is the phone number that the message is associated with. */ - phoneNumber?: ClientMessageTranscript.PhoneNumber; + phoneNumber?: Vapi.ClientMessageTranscriptPhoneNumber; /** This is the type of the message. "transcript" is sent as transcriber outputs partial or final transcript. */ - type: ClientMessageTranscript.Type; + type: Vapi.ClientMessageTranscriptType; /** This is the timestamp of the message. */ timestamp?: number; /** This is the call that the message is associated with. */ @@ -18,9 +18,9 @@ export interface ClientMessageTranscript { /** This is the assistant that the message is associated with. */ assistant?: Vapi.CreateAssistantDto; /** This is the role for which the transcript is for. */ - role: ClientMessageTranscript.Role; + role: Vapi.ClientMessageTranscriptRole; /** This is the type of the transcript. */ - transcriptType: ClientMessageTranscript.TranscriptType; + transcriptType: Vapi.ClientMessageTranscriptTranscriptType; /** This is the transcript content. */ transcript: string; /** Indicates if the transcript was filtered for security reasons. */ @@ -30,39 +30,3 @@ export interface ClientMessageTranscript { /** The original transcript before filtering (only included if content was filtered). */ originalTranscript?: string; } - -export namespace ClientMessageTranscript { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; - /** - * This is the type of the message. "transcript" is sent as transcriber outputs partial or final transcript. - */ - export type Type = "transcript" | 'transcript[transcriptType="final"]'; - export const Type = { - Transcript: "transcript", - TranscriptTranscriptTypeFinal: 'transcript[transcriptType="final"]', - } as const; - /** - * This is the role for which the transcript is for. - */ - export type Role = "assistant" | "user"; - export const Role = { - Assistant: "assistant", - User: "user", - } as const; - /** - * This is the type of the transcript. - */ - export type TranscriptType = "partial" | "final"; - export const TranscriptType = { - Partial: "partial", - Final: "final", - } as const; -} diff --git a/src/api/types/ClientMessageTranscriptPhoneNumber.ts b/src/api/types/ClientMessageTranscriptPhoneNumber.ts new file mode 100644 index 00000000..02983eae --- /dev/null +++ b/src/api/types/ClientMessageTranscriptPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ClientMessageTranscriptPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ClientMessageTranscriptRole.ts b/src/api/types/ClientMessageTranscriptRole.ts new file mode 100644 index 00000000..4f93604d --- /dev/null +++ b/src/api/types/ClientMessageTranscriptRole.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the role for which the transcript is for. + */ +export type ClientMessageTranscriptRole = "assistant" | "user"; +export const ClientMessageTranscriptRole = { + Assistant: "assistant", + User: "user", +} as const; diff --git a/src/api/types/ClientMessageTranscriptTranscriptType.ts b/src/api/types/ClientMessageTranscriptTranscriptType.ts new file mode 100644 index 00000000..b9254e5f --- /dev/null +++ b/src/api/types/ClientMessageTranscriptTranscriptType.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the type of the transcript. + */ +export type ClientMessageTranscriptTranscriptType = "partial" | "final"; +export const ClientMessageTranscriptTranscriptType = { + Partial: "partial", + Final: "final", +} as const; diff --git a/src/api/types/ClientMessageTranscriptType.ts b/src/api/types/ClientMessageTranscriptType.ts new file mode 100644 index 00000000..8ce0d79a --- /dev/null +++ b/src/api/types/ClientMessageTranscriptType.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the type of the message. "transcript" is sent as transcriber outputs partial or final transcript. + */ +export type ClientMessageTranscriptType = "transcript" | 'transcript[transcriptType="final"]'; +export const ClientMessageTranscriptType = { + Transcript: "transcript", + TranscriptTranscriptTypeFinal: 'transcript[transcriptType="final"]', +} as const; diff --git a/src/api/types/ClientMessageTransferUpdate.ts b/src/api/types/ClientMessageTransferUpdate.ts index 6e53ca5e..c3ca42dd 100644 --- a/src/api/types/ClientMessageTransferUpdate.ts +++ b/src/api/types/ClientMessageTransferUpdate.ts @@ -6,11 +6,11 @@ import * as Vapi from "../index.js"; export interface ClientMessageTransferUpdate { /** This is the phone number that the message is associated with. */ - phoneNumber?: ClientMessageTransferUpdate.PhoneNumber; + phoneNumber?: Vapi.ClientMessageTransferUpdatePhoneNumber; /** This is the type of the message. "transfer-update" is sent whenever a transfer happens. */ type: "transfer-update"; /** This is the destination of the transfer. */ - destination?: ClientMessageTransferUpdate.Destination; + destination?: Vapi.ClientMessageTransferUpdateDestination; /** This is the timestamp of the message. */ timestamp?: number; /** This is the call that the message is associated with. */ @@ -28,22 +28,3 @@ export interface ClientMessageTransferUpdate { /** This is the step that the conversation moved from. = */ fromStepRecord?: Record; } - -export namespace ClientMessageTransferUpdate { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; - /** - * This is the destination of the transfer. - */ - export type Destination = - | Vapi.TransferDestinationAssistant - | Vapi.TransferDestinationNumber - | Vapi.TransferDestinationSip; -} diff --git a/src/api/types/ClientMessageTransferUpdateDestination.ts b/src/api/types/ClientMessageTransferUpdateDestination.ts new file mode 100644 index 00000000..dcb892e9 --- /dev/null +++ b/src/api/types/ClientMessageTransferUpdateDestination.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the destination of the transfer. + */ +export type ClientMessageTransferUpdateDestination = + | Vapi.TransferDestinationAssistant + | Vapi.TransferDestinationNumber + | Vapi.TransferDestinationSip; diff --git a/src/api/types/ClientMessageTransferUpdatePhoneNumber.ts b/src/api/types/ClientMessageTransferUpdatePhoneNumber.ts new file mode 100644 index 00000000..6884b8bf --- /dev/null +++ b/src/api/types/ClientMessageTransferUpdatePhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ClientMessageTransferUpdatePhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ClientMessageUserInterrupted.ts b/src/api/types/ClientMessageUserInterrupted.ts index 59d72e9e..cb4f5676 100644 --- a/src/api/types/ClientMessageUserInterrupted.ts +++ b/src/api/types/ClientMessageUserInterrupted.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ClientMessageUserInterrupted { /** This is the phone number that the message is associated with. */ - phoneNumber?: ClientMessageUserInterrupted.PhoneNumber; + phoneNumber?: Vapi.ClientMessageUserInterruptedPhoneNumber; /** This is the type of the message. "user-interrupted" is sent when the user interrupts the assistant. */ type: "user-interrupted"; /** This is the timestamp of the message. */ @@ -18,15 +18,3 @@ export interface ClientMessageUserInterrupted { /** This is the assistant that the message is associated with. */ assistant?: Vapi.CreateAssistantDto; } - -export namespace ClientMessageUserInterrupted { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ClientMessageUserInterruptedPhoneNumber.ts b/src/api/types/ClientMessageUserInterruptedPhoneNumber.ts new file mode 100644 index 00000000..1172bcf0 --- /dev/null +++ b/src/api/types/ClientMessageUserInterruptedPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ClientMessageUserInterruptedPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ClientMessageVoiceInput.ts b/src/api/types/ClientMessageVoiceInput.ts index 6ef9f8e6..afb4a20d 100644 --- a/src/api/types/ClientMessageVoiceInput.ts +++ b/src/api/types/ClientMessageVoiceInput.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ClientMessageVoiceInput { /** This is the phone number that the message is associated with. */ - phoneNumber?: ClientMessageVoiceInput.PhoneNumber; + phoneNumber?: Vapi.ClientMessageVoiceInputPhoneNumber; /** This is the type of the message. "voice-input" is sent when a generation is requested from voice provider. */ type: "voice-input"; /** This is the timestamp of the message. */ @@ -20,15 +20,3 @@ export interface ClientMessageVoiceInput { /** This is the voice input content */ input: string; } - -export namespace ClientMessageVoiceInput { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ClientMessageVoiceInputPhoneNumber.ts b/src/api/types/ClientMessageVoiceInputPhoneNumber.ts new file mode 100644 index 00000000..d52abaab --- /dev/null +++ b/src/api/types/ClientMessageVoiceInputPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ClientMessageVoiceInputPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ClientMessageWorkflowNodeStarted.ts b/src/api/types/ClientMessageWorkflowNodeStarted.ts index 9d0c1469..d89c5ed4 100644 --- a/src/api/types/ClientMessageWorkflowNodeStarted.ts +++ b/src/api/types/ClientMessageWorkflowNodeStarted.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ClientMessageWorkflowNodeStarted { /** This is the phone number that the message is associated with. */ - phoneNumber?: ClientMessageWorkflowNodeStarted.PhoneNumber; + phoneNumber?: Vapi.ClientMessageWorkflowNodeStartedPhoneNumber; /** This is the type of the message. "workflow.node.started" is sent when the active node changes. */ type: "workflow.node.started"; /** This is the timestamp of the message. */ @@ -20,15 +20,3 @@ export interface ClientMessageWorkflowNodeStarted { /** This is the active node. */ node: Record; } - -export namespace ClientMessageWorkflowNodeStarted { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ClientMessageWorkflowNodeStartedPhoneNumber.ts b/src/api/types/ClientMessageWorkflowNodeStartedPhoneNumber.ts new file mode 100644 index 00000000..efac414e --- /dev/null +++ b/src/api/types/ClientMessageWorkflowNodeStartedPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ClientMessageWorkflowNodeStartedPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/CompliancePlan.ts b/src/api/types/CompliancePlan.ts index 9600df7f..2782b6e5 100644 --- a/src/api/types/CompliancePlan.ts +++ b/src/api/types/CompliancePlan.ts @@ -17,9 +17,5 @@ export interface CompliancePlan { pciEnabled?: boolean; /** This is the security filter plan for the assistant. It allows filtering of transcripts for security threats before sending to LLM. */ securityFilterPlan?: Vapi.SecurityFilterPlan; - recordingConsentPlan?: CompliancePlan.RecordingConsentPlan; -} - -export namespace CompliancePlan { - export type RecordingConsentPlan = Vapi.RecordingConsentPlanStayOnLine | Vapi.RecordingConsentPlanVerbal; + recordingConsentPlan?: Vapi.CompliancePlanRecordingConsentPlan; } diff --git a/src/api/types/CompliancePlanRecordingConsentPlan.ts b/src/api/types/CompliancePlanRecordingConsentPlan.ts new file mode 100644 index 00000000..7b1fc5d6 --- /dev/null +++ b/src/api/types/CompliancePlanRecordingConsentPlan.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CompliancePlanRecordingConsentPlan = Vapi.RecordingConsentPlanStayOnLine | Vapi.RecordingConsentPlanVerbal; diff --git a/src/api/types/ComputerTool.ts b/src/api/types/ComputerTool.ts index f0abda09..e0470d59 100644 --- a/src/api/types/ComputerTool.ts +++ b/src/api/types/ComputerTool.ts @@ -10,7 +10,7 @@ export interface ComputerTool { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: ComputerTool.Messages.Item[]; + messages?: Vapi.ComputerToolMessagesItem[]; type: "computer"; /** The sub type of tool. */ subType: "computer_20241022"; @@ -123,15 +123,3 @@ export interface ComputerTool { /** Optional display number */ displayNumber?: number; } - -export namespace ComputerTool { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/ComputerToolMessagesItem.ts b/src/api/types/ComputerToolMessagesItem.ts new file mode 100644 index 00000000..0f646b5c --- /dev/null +++ b/src/api/types/ComputerToolMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type ComputerToolMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/ComputerToolWithToolCall.ts b/src/api/types/ComputerToolWithToolCall.ts index 61463196..1f90fdb5 100644 --- a/src/api/types/ComputerToolWithToolCall.ts +++ b/src/api/types/ComputerToolWithToolCall.ts @@ -10,7 +10,7 @@ export interface ComputerToolWithToolCall { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: ComputerToolWithToolCall.Messages.Item[]; + messages?: Vapi.ComputerToolWithToolCallMessagesItem[]; /** The type of tool. "computer" for Computer tool. */ type: "computer"; /** The sub type of tool. */ @@ -117,15 +117,3 @@ export interface ComputerToolWithToolCall { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace ComputerToolWithToolCall { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/ComputerToolWithToolCallMessagesItem.ts b/src/api/types/ComputerToolWithToolCallMessagesItem.ts new file mode 100644 index 00000000..f490a9da --- /dev/null +++ b/src/api/types/ComputerToolWithToolCallMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type ComputerToolWithToolCallMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/Condition.ts b/src/api/types/Condition.ts index 42b1697b..f177294b 100644 --- a/src/api/types/Condition.ts +++ b/src/api/types/Condition.ts @@ -2,26 +2,13 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface Condition { /** This is the operator you want to use to compare the parameter and value. */ - operator: Condition.Operator; + operator: Vapi.ConditionOperator; /** This is the name of the parameter that you want to check. */ param: string; /** This is the value you want to compare against the parameter. */ value: string; } - -export namespace Condition { - /** - * This is the operator you want to use to compare the parameter and value. - */ - export type Operator = "eq" | "neq" | "gt" | "gte" | "lt" | "lte"; - export const Operator = { - Eq: "eq", - Neq: "neq", - Gt: "gt", - Gte: "gte", - Lt: "lt", - Lte: "lte", - } as const; -} diff --git a/src/api/types/ConditionOperator.ts b/src/api/types/ConditionOperator.ts new file mode 100644 index 00000000..2083062a --- /dev/null +++ b/src/api/types/ConditionOperator.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the operator you want to use to compare the parameter and value. + */ +export type ConditionOperator = "eq" | "neq" | "gt" | "gte" | "lt" | "lte"; +export const ConditionOperator = { + Eq: "eq", + Neq: "neq", + Gt: "gt", + Gte: "gte", + Lt: "lt", + Lte: "lte", +} as const; diff --git a/src/api/types/ConversationNode.ts b/src/api/types/ConversationNode.ts index 7b0db5d2..09537138 100644 --- a/src/api/types/ConversationNode.ts +++ b/src/api/types/ConversationNode.ts @@ -21,25 +21,25 @@ export interface ConversationNode { * * This overrides `workflow.model`. */ - model?: ConversationNode.Model; + model?: Vapi.ConversationNodeModel; /** * This is the transcriber for the node. * * This overrides `workflow.transcriber`. */ - transcriber?: ConversationNode.Transcriber; + transcriber?: Vapi.ConversationNodeTranscriber; /** * This is the voice for the node. * * This overrides `workflow.voice`. */ - voice?: ConversationNode.Voice; + voice?: Vapi.ConversationNodeVoice; /** * These are the tools that the conversation node can use during the call. To use existing tools, use `toolIds`. * * Both `tools` and `toolIds` can be used together. */ - tools?: ConversationNode.Tools.Item[]; + tools?: Vapi.ConversationNodeToolsItem[]; /** * These are the tools that the conversation node can use during the call. To use transient tools, use `tools`. * @@ -105,81 +105,3 @@ export interface ConversationNode { /** This is for metadata you want to store on the task. */ metadata?: Record; } - -export namespace ConversationNode { - /** - * This is the model for the node. - * - * This overrides `workflow.model`. - */ - export type Model = - | Vapi.WorkflowOpenAiModel - | Vapi.WorkflowAnthropicModel - | Vapi.WorkflowGoogleModel - | Vapi.WorkflowCustomModel; - /** - * This is the transcriber for the node. - * - * This overrides `workflow.transcriber`. - */ - export type Transcriber = - | Vapi.AssemblyAiTranscriber - | Vapi.AzureSpeechTranscriber - | Vapi.CustomTranscriber - | Vapi.DeepgramTranscriber - | Vapi.ElevenLabsTranscriber - | Vapi.GladiaTranscriber - | Vapi.GoogleTranscriber - | Vapi.SpeechmaticsTranscriber - | Vapi.TalkscriberTranscriber - | Vapi.OpenAiTranscriber - | Vapi.CartesiaTranscriber; - /** - * This is the voice for the node. - * - * This overrides `workflow.voice`. - */ - export type Voice = - | Vapi.AzureVoice - | Vapi.CartesiaVoice - | Vapi.CustomVoice - | Vapi.DeepgramVoice - | Vapi.ElevenLabsVoice - | Vapi.HumeVoice - | Vapi.LmntVoice - | Vapi.NeuphonicVoice - | Vapi.OpenAiVoice - | Vapi.PlayHtVoice - | Vapi.RimeAiVoice - | Vapi.SmallestAiVoice - | Vapi.TavusVoice - | Vapi.VapiVoice - | Vapi.SesameVoice - | Vapi.InworldVoice - | Vapi.MinimaxVoice; - export type Tools = Tools.Item[]; - - export namespace Tools { - export type Item = - | Vapi.CreateApiRequestToolDto - | Vapi.CreateBashToolDto - | Vapi.CreateComputerToolDto - | Vapi.CreateDtmfToolDto - | Vapi.CreateEndCallToolDto - | Vapi.CreateFunctionToolDto - | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto - | Vapi.CreateGoHighLevelCalendarEventCreateToolDto - | Vapi.CreateGoHighLevelContactCreateToolDto - | Vapi.CreateGoHighLevelContactGetToolDto - | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto - | Vapi.CreateGoogleCalendarCreateEventToolDto - | Vapi.CreateGoogleSheetsRowAppendToolDto - | Vapi.CreateHandoffToolDto - | Vapi.CreateMcpToolDto - | Vapi.CreateQueryToolDto - | Vapi.CreateSlackSendMessageToolDto - | Vapi.CreateSmsToolDto - | Vapi.CreateTextEditorToolDto - | Vapi.CreateTransferCallToolDto; - } -} diff --git a/src/api/types/ConversationNodeModel.ts b/src/api/types/ConversationNodeModel.ts new file mode 100644 index 00000000..334be0db --- /dev/null +++ b/src/api/types/ConversationNodeModel.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the model for the node. + * + * This overrides `workflow.model`. + */ +export type ConversationNodeModel = + | Vapi.WorkflowOpenAiModel + | Vapi.WorkflowAnthropicModel + | Vapi.WorkflowGoogleModel + | Vapi.WorkflowCustomModel; diff --git a/src/api/types/ConversationNodeToolsItem.ts b/src/api/types/ConversationNodeToolsItem.ts new file mode 100644 index 00000000..ddd92eb0 --- /dev/null +++ b/src/api/types/ConversationNodeToolsItem.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type ConversationNodeToolsItem = + | Vapi.CreateApiRequestToolDto + | Vapi.CreateBashToolDto + | Vapi.CreateComputerToolDto + | Vapi.CreateDtmfToolDto + | Vapi.CreateEndCallToolDto + | Vapi.CreateFunctionToolDto + | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto + | Vapi.CreateGoHighLevelCalendarEventCreateToolDto + | Vapi.CreateGoHighLevelContactCreateToolDto + | Vapi.CreateGoHighLevelContactGetToolDto + | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto + | Vapi.CreateGoogleCalendarCreateEventToolDto + | Vapi.CreateGoogleSheetsRowAppendToolDto + | Vapi.CreateHandoffToolDto + | Vapi.CreateMcpToolDto + | Vapi.CreateQueryToolDto + | Vapi.CreateSlackSendMessageToolDto + | Vapi.CreateSmsToolDto + | Vapi.CreateTextEditorToolDto + | Vapi.CreateTransferCallToolDto; diff --git a/src/api/types/ConversationNodeTranscriber.ts b/src/api/types/ConversationNodeTranscriber.ts new file mode 100644 index 00000000..456ce512 --- /dev/null +++ b/src/api/types/ConversationNodeTranscriber.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the transcriber for the node. + * + * This overrides `workflow.transcriber`. + */ +export type ConversationNodeTranscriber = + | Vapi.AssemblyAiTranscriber + | Vapi.AzureSpeechTranscriber + | Vapi.CustomTranscriber + | Vapi.DeepgramTranscriber + | Vapi.ElevenLabsTranscriber + | Vapi.GladiaTranscriber + | Vapi.GoogleTranscriber + | Vapi.SpeechmaticsTranscriber + | Vapi.TalkscriberTranscriber + | Vapi.OpenAiTranscriber + | Vapi.CartesiaTranscriber; diff --git a/src/api/types/ConversationNodeVoice.ts b/src/api/types/ConversationNodeVoice.ts new file mode 100644 index 00000000..5a1ef0bb --- /dev/null +++ b/src/api/types/ConversationNodeVoice.ts @@ -0,0 +1,29 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the voice for the node. + * + * This overrides `workflow.voice`. + */ +export type ConversationNodeVoice = + | Vapi.AzureVoice + | Vapi.CartesiaVoice + | Vapi.CustomVoice + | Vapi.DeepgramVoice + | Vapi.ElevenLabsVoice + | Vapi.HumeVoice + | Vapi.LmntVoice + | Vapi.NeuphonicVoice + | Vapi.OpenAiVoice + | Vapi.PlayHtVoice + | Vapi.RimeAiVoice + | Vapi.SmallestAiVoice + | Vapi.TavusVoice + | Vapi.VapiVoice + | Vapi.SesameVoice + | Vapi.InworldVoice + | Vapi.MinimaxVoice; diff --git a/src/api/types/CreateApiRequestToolDto.ts b/src/api/types/CreateApiRequestToolDto.ts index 3c32b225..dd96e49f 100644 --- a/src/api/types/CreateApiRequestToolDto.ts +++ b/src/api/types/CreateApiRequestToolDto.ts @@ -10,9 +10,9 @@ export interface CreateApiRequestToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: CreateApiRequestToolDto.Messages.Item[]; + messages?: Vapi.CreateApiRequestToolDtoMessagesItem[]; type: "apiRequest"; - method: CreateApiRequestToolDto.Method; + method: Vapi.CreateApiRequestToolDtoMethod; /** * This is the timeout in seconds for the request. Defaults to 20 seconds. * @@ -279,24 +279,3 @@ export interface CreateApiRequestToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace CreateApiRequestToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } - - export type Method = "POST" | "GET" | "PUT" | "PATCH" | "DELETE"; - export const Method = { - Post: "POST", - Get: "GET", - Put: "PUT", - Patch: "PATCH", - Delete: "DELETE", - } as const; -} diff --git a/src/api/types/CreateApiRequestToolDtoMessagesItem.ts b/src/api/types/CreateApiRequestToolDtoMessagesItem.ts new file mode 100644 index 00000000..607dd2df --- /dev/null +++ b/src/api/types/CreateApiRequestToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateApiRequestToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/CreateApiRequestToolDtoMethod.ts b/src/api/types/CreateApiRequestToolDtoMethod.ts new file mode 100644 index 00000000..5d52d585 --- /dev/null +++ b/src/api/types/CreateApiRequestToolDtoMethod.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CreateApiRequestToolDtoMethod = "POST" | "GET" | "PUT" | "PATCH" | "DELETE"; +export const CreateApiRequestToolDtoMethod = { + Post: "POST", + Get: "GET", + Put: "PUT", + Patch: "PATCH", + Delete: "DELETE", +} as const; diff --git a/src/api/types/CreateAssistantDto.ts b/src/api/types/CreateAssistantDto.ts index be11b367..291dc672 100644 --- a/src/api/types/CreateAssistantDto.ts +++ b/src/api/types/CreateAssistantDto.ts @@ -6,11 +6,11 @@ import * as Vapi from "../index.js"; export interface CreateAssistantDto { /** These are the options for the assistant's transcriber. */ - transcriber?: CreateAssistantDto.Transcriber; + transcriber?: Vapi.CreateAssistantDtoTranscriber; /** These are the options for the assistant's LLM. */ - model?: CreateAssistantDto.Model; + model?: Vapi.CreateAssistantDtoModel; /** These are the options for the assistant's voice. */ - voice?: CreateAssistantDto.Voice; + voice?: Vapi.CreateAssistantDtoVoice; /** * This is the first message that the assistant will say. This can also be a URL to a containerized audio file (mp3, wav, etc.). * @@ -28,17 +28,17 @@ export interface CreateAssistantDto { * * @default 'assistant-speaks-first' */ - firstMessageMode?: CreateAssistantDto.FirstMessageMode; + firstMessageMode?: Vapi.CreateAssistantDtoFirstMessageMode; /** * These are the settings to configure or disable voicemail detection. Alternatively, voicemail detection can be configured using the model.tools=[VoicemailTool]. * This uses Twilio's built-in detection while the VoicemailTool relies on the model to detect if a voicemail was reached. * You can use neither of them, one of them, or both of them. By default, Twilio built-in detection is enabled while VoicemailTool is not. */ - voicemailDetection?: CreateAssistantDto.VoicemailDetection; + voicemailDetection?: Vapi.CreateAssistantDtoVoicemailDetection; /** These are the messages that will be sent to your Client SDKs. Default is conversation-update,function-call,hang,model-output,speech-update,status-update,transfer-update,transcript,tool-calls,user-interrupted,voice-input,workflow.node.started. You can check the shape of the messages in ClientMessage schema. */ - clientMessages?: CreateAssistantDto.ClientMessages.Item[]; + clientMessages?: Vapi.CreateAssistantDtoClientMessagesItem[]; /** These are the messages that will be sent to your Server URL. Default is conversation-update,end-of-call-report,function-call,hang,speech-update,status-update,tool-calls,transfer-destination-request,handoff-destination-request,user-interrupted. You can check the shape of the messages in ServerMessage schema. */ - serverMessages?: CreateAssistantDto.ServerMessages.Item[]; + serverMessages?: Vapi.CreateAssistantDtoServerMessagesItem[]; /** * This is the maximum number of seconds that the call will last. When the call reaches this duration, it will be ended. * @@ -49,7 +49,7 @@ export interface CreateAssistantDto { * This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. * You can also provide a custom sound by providing a URL to an audio file. */ - backgroundSound?: CreateAssistantDto.BackgroundSound; + backgroundSound?: Vapi.CreateAssistantDtoBackgroundSound; /** * This determines whether the model's output is used in conversation history rather than the transcription of assistant's speech. * @@ -67,9 +67,9 @@ export interface CreateAssistantDto { */ observabilityPlan?: Vapi.LangfuseObservabilityPlan; /** 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?: CreateAssistantDto.Credentials.Item[]; + credentials?: Vapi.CreateAssistantDtoCredentialsItem[]; /** This is a set of actions that will be performed on certain events. */ - hooks?: CreateAssistantDto.Hooks.Item[]; + hooks?: Vapi.CreateAssistantDtoHooksItem[]; /** * This is the name of the assistant. * @@ -153,260 +153,3 @@ export interface CreateAssistantDto { server?: Vapi.Server; keypadInputPlan?: Vapi.KeypadInputPlan; } - -export namespace CreateAssistantDto { - /** - * These are the options for the assistant's transcriber. - */ - export type Transcriber = - | Vapi.AssemblyAiTranscriber - | Vapi.AzureSpeechTranscriber - | Vapi.CustomTranscriber - | Vapi.DeepgramTranscriber - | Vapi.ElevenLabsTranscriber - | Vapi.GladiaTranscriber - | Vapi.GoogleTranscriber - | Vapi.SpeechmaticsTranscriber - | Vapi.TalkscriberTranscriber - | Vapi.OpenAiTranscriber - | Vapi.CartesiaTranscriber; - /** - * These are the options for the assistant's LLM. - */ - export type Model = - | Vapi.AnthropicModel - | Vapi.AnyscaleModel - | Vapi.CerebrasModel - | Vapi.CustomLlmModel - | Vapi.DeepInfraModel - | Vapi.DeepSeekModel - | Vapi.GoogleModel - | Vapi.GroqModel - | Vapi.InflectionAiModel - | Vapi.OpenAiModel - | Vapi.OpenRouterModel - | Vapi.PerplexityAiModel - | Vapi.TogetherAiModel - | Vapi.XaiModel; - /** - * These are the options for the assistant's voice. - */ - export type Voice = - | Vapi.AzureVoice - | Vapi.CartesiaVoice - | Vapi.CustomVoice - | Vapi.DeepgramVoice - | Vapi.ElevenLabsVoice - | Vapi.HumeVoice - | Vapi.LmntVoice - | Vapi.NeuphonicVoice - | Vapi.OpenAiVoice - | Vapi.PlayHtVoice - | Vapi.RimeAiVoice - | Vapi.SmallestAiVoice - | Vapi.TavusVoice - | Vapi.VapiVoice - | Vapi.SesameVoice - | Vapi.InworldVoice - | Vapi.MinimaxVoice; - /** - * This is the mode for the first message. Default is 'assistant-speaks-first'. - * - * Use: - * - 'assistant-speaks-first' to have the assistant speak first. - * - 'assistant-waits-for-user' to have the assistant wait for the user to speak first. - * - 'assistant-speaks-first-with-model-generated-message' to have the assistant speak first with a message generated by the model based on the conversation state. (`assistant.model.messages` at call start, `call.messages` at squad transfer points). - * - * @default 'assistant-speaks-first' - */ - export type FirstMessageMode = - | "assistant-speaks-first" - | "assistant-speaks-first-with-model-generated-message" - | "assistant-waits-for-user"; - export const FirstMessageMode = { - AssistantSpeaksFirst: "assistant-speaks-first", - AssistantSpeaksFirstWithModelGeneratedMessage: "assistant-speaks-first-with-model-generated-message", - AssistantWaitsForUser: "assistant-waits-for-user", - } as const; - /** - * These are the settings to configure or disable voicemail detection. Alternatively, voicemail detection can be configured using the model.tools=[VoicemailTool]. - * This uses Twilio's built-in detection while the VoicemailTool relies on the model to detect if a voicemail was reached. - * You can use neither of them, one of them, or both of them. By default, Twilio built-in detection is enabled while VoicemailTool is not. - */ - export type VoicemailDetection = - | Vapi.GoogleVoicemailDetectionPlan - | Vapi.OpenAiVoicemailDetectionPlan - | Vapi.TwilioVoicemailDetectionPlan - | Vapi.VapiVoicemailDetectionPlan; - export type ClientMessages = ClientMessages.Item[]; - - export namespace ClientMessages { - export type Item = - | "conversation-update" - | "function-call" - | "function-call-result" - | "hang" - | "language-changed" - | "metadata" - | "model-output" - | "speech-update" - | "status-update" - | "transcript" - | "tool-calls" - | "tool-calls-result" - | "tool.completed" - | "transfer-update" - | "user-interrupted" - | "voice-input" - | "workflow.node.started"; - export const Item = { - ConversationUpdate: "conversation-update", - FunctionCall: "function-call", - FunctionCallResult: "function-call-result", - Hang: "hang", - LanguageChanged: "language-changed", - Metadata: "metadata", - ModelOutput: "model-output", - SpeechUpdate: "speech-update", - StatusUpdate: "status-update", - Transcript: "transcript", - ToolCalls: "tool-calls", - ToolCallsResult: "tool-calls-result", - ToolCompleted: "tool.completed", - TransferUpdate: "transfer-update", - UserInterrupted: "user-interrupted", - VoiceInput: "voice-input", - WorkflowNodeStarted: "workflow.node.started", - } as const; - } - - export type ServerMessages = ServerMessages.Item[]; - - export namespace ServerMessages { - export type Item = - | "conversation-update" - | "end-of-call-report" - | "function-call" - | "hang" - | "language-changed" - | "language-change-detected" - | "model-output" - | "phone-call-control" - | "speech-update" - | "status-update" - | "transcript" - | 'transcript[transcriptType="final"]' - | "tool-calls" - | "transfer-destination-request" - | "handoff-destination-request" - | "transfer-update" - | "user-interrupted" - | "voice-input" - | "chat.created" - | "chat.deleted" - | "session.created" - | "session.updated" - | "session.deleted" - | "call.deleted" - | "call.delete.failed"; - export const Item = { - ConversationUpdate: "conversation-update", - EndOfCallReport: "end-of-call-report", - FunctionCall: "function-call", - Hang: "hang", - LanguageChanged: "language-changed", - LanguageChangeDetected: "language-change-detected", - ModelOutput: "model-output", - PhoneCallControl: "phone-call-control", - SpeechUpdate: "speech-update", - StatusUpdate: "status-update", - Transcript: "transcript", - TranscriptTranscriptTypeFinal: 'transcript[transcriptType="final"]', - ToolCalls: "tool-calls", - TransferDestinationRequest: "transfer-destination-request", - HandoffDestinationRequest: "handoff-destination-request", - TransferUpdate: "transfer-update", - UserInterrupted: "user-interrupted", - VoiceInput: "voice-input", - ChatCreated: "chat.created", - ChatDeleted: "chat.deleted", - SessionCreated: "session.created", - SessionUpdated: "session.updated", - SessionDeleted: "session.deleted", - CallDeleted: "call.deleted", - CallDeleteFailed: "call.delete.failed", - } as const; - } - - /** - * This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. - * You can also provide a custom sound by providing a URL to an audio file. - */ - export type BackgroundSound = ("off" | "office") | string; - export type Credentials = Credentials.Item[]; - - export namespace Credentials { - export type Item = - | Vapi.CreateElevenLabsCredentialDto - | Vapi.CreateAnthropicCredentialDto - | Vapi.CreateAnyscaleCredentialDto - | Vapi.CreateAssemblyAiCredentialDto - | Vapi.CreateAzureOpenAiCredentialDto - | Vapi.CreateAzureCredentialDto - | Vapi.CreateByoSipTrunkCredentialDto - | Vapi.CreateCartesiaCredentialDto - | Vapi.CreateCerebrasCredentialDto - | Vapi.CreateCloudflareCredentialDto - | Vapi.CreateCustomLlmCredentialDto - | Vapi.CreateDeepgramCredentialDto - | Vapi.CreateDeepInfraCredentialDto - | Vapi.CreateDeepSeekCredentialDto - | Vapi.CreateGcpCredentialDto - | Vapi.CreateGladiaCredentialDto - | Vapi.CreateGoHighLevelCredentialDto - | Vapi.CreateGoogleCredentialDto - | Vapi.CreateGroqCredentialDto - | Vapi.CreateInflectionAiCredentialDto - | Vapi.CreateLangfuseCredentialDto - | Vapi.CreateLmntCredentialDto - | Vapi.CreateMakeCredentialDto - | Vapi.CreateOpenAiCredentialDto - | Vapi.CreateOpenRouterCredentialDto - | Vapi.CreatePerplexityAiCredentialDto - | Vapi.CreatePlayHtCredentialDto - | Vapi.CreateRimeAiCredentialDto - | Vapi.CreateRunpodCredentialDto - | Vapi.CreateS3CredentialDto - | Vapi.CreateSupabaseCredentialDto - | Vapi.CreateSmallestAiCredentialDto - | Vapi.CreateTavusCredentialDto - | Vapi.CreateTogetherAiCredentialDto - | Vapi.CreateTwilioCredentialDto - | Vapi.CreateVonageCredentialDto - | Vapi.CreateWebhookCredentialDto - | Vapi.CreateCustomCredentialDto - | Vapi.CreateXAiCredentialDto - | Vapi.CreateNeuphonicCredentialDto - | Vapi.CreateHumeCredentialDto - | Vapi.CreateMistralCredentialDto - | Vapi.CreateSpeechmaticsCredentialDto - | Vapi.CreateTrieveCredentialDto - | Vapi.CreateGoogleCalendarOAuth2ClientCredentialDto - | Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDto - | Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDto - | Vapi.CreateSlackOAuth2AuthorizationCredentialDto - | Vapi.CreateGoHighLevelMcpCredentialDto - | Vapi.CreateInworldCredentialDto - | Vapi.CreateMinimaxCredentialDto; - } - - export type Hooks = Hooks.Item[]; - - export namespace Hooks { - export type Item = - | Vapi.CallHookCallEnding - | Vapi.CallHookAssistantSpeechInterrupted - | Vapi.CallHookCustomerSpeechInterrupted - | Vapi.CallHookCustomerSpeechTimeout; - } -} diff --git a/src/api/types/CreateAssistantDtoBackgroundSound.ts b/src/api/types/CreateAssistantDtoBackgroundSound.ts new file mode 100644 index 00000000..58e0c8b7 --- /dev/null +++ b/src/api/types/CreateAssistantDtoBackgroundSound.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. + * You can also provide a custom sound by providing a URL to an audio file. + */ +export type CreateAssistantDtoBackgroundSound = Vapi.CreateAssistantDtoBackgroundSoundZero | string; diff --git a/src/api/types/CreateAssistantDtoBackgroundSoundZero.ts b/src/api/types/CreateAssistantDtoBackgroundSoundZero.ts new file mode 100644 index 00000000..4c1328c7 --- /dev/null +++ b/src/api/types/CreateAssistantDtoBackgroundSoundZero.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CreateAssistantDtoBackgroundSoundZero = "off" | "office"; +export const CreateAssistantDtoBackgroundSoundZero = { + Off: "off", + Office: "office", +} as const; diff --git a/src/api/types/CreateAssistantDtoClientMessagesItem.ts b/src/api/types/CreateAssistantDtoClientMessagesItem.ts new file mode 100644 index 00000000..a51fd10a --- /dev/null +++ b/src/api/types/CreateAssistantDtoClientMessagesItem.ts @@ -0,0 +1,41 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CreateAssistantDtoClientMessagesItem = + | "conversation-update" + | "function-call" + | "function-call-result" + | "hang" + | "language-changed" + | "metadata" + | "model-output" + | "speech-update" + | "status-update" + | "transcript" + | "tool-calls" + | "tool-calls-result" + | "tool.completed" + | "transfer-update" + | "user-interrupted" + | "voice-input" + | "workflow.node.started"; +export const CreateAssistantDtoClientMessagesItem = { + ConversationUpdate: "conversation-update", + FunctionCall: "function-call", + FunctionCallResult: "function-call-result", + Hang: "hang", + LanguageChanged: "language-changed", + Metadata: "metadata", + ModelOutput: "model-output", + SpeechUpdate: "speech-update", + StatusUpdate: "status-update", + Transcript: "transcript", + ToolCalls: "tool-calls", + ToolCallsResult: "tool-calls-result", + ToolCompleted: "tool.completed", + TransferUpdate: "transfer-update", + UserInterrupted: "user-interrupted", + VoiceInput: "voice-input", + WorkflowNodeStarted: "workflow.node.started", +} as const; diff --git a/src/api/types/CreateAssistantDtoCredentialsItem.ts b/src/api/types/CreateAssistantDtoCredentialsItem.ts new file mode 100644 index 00000000..2bebfd05 --- /dev/null +++ b/src/api/types/CreateAssistantDtoCredentialsItem.ts @@ -0,0 +1,58 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateAssistantDtoCredentialsItem = + | Vapi.CreateElevenLabsCredentialDto + | Vapi.CreateAnthropicCredentialDto + | Vapi.CreateAnyscaleCredentialDto + | Vapi.CreateAssemblyAiCredentialDto + | Vapi.CreateAzureOpenAiCredentialDto + | Vapi.CreateAzureCredentialDto + | Vapi.CreateByoSipTrunkCredentialDto + | Vapi.CreateCartesiaCredentialDto + | Vapi.CreateCerebrasCredentialDto + | Vapi.CreateCloudflareCredentialDto + | Vapi.CreateCustomLlmCredentialDto + | Vapi.CreateDeepgramCredentialDto + | Vapi.CreateDeepInfraCredentialDto + | Vapi.CreateDeepSeekCredentialDto + | Vapi.CreateGcpCredentialDto + | Vapi.CreateGladiaCredentialDto + | Vapi.CreateGoHighLevelCredentialDto + | Vapi.CreateGoogleCredentialDto + | Vapi.CreateGroqCredentialDto + | Vapi.CreateInflectionAiCredentialDto + | Vapi.CreateLangfuseCredentialDto + | Vapi.CreateLmntCredentialDto + | Vapi.CreateMakeCredentialDto + | Vapi.CreateOpenAiCredentialDto + | Vapi.CreateOpenRouterCredentialDto + | Vapi.CreatePerplexityAiCredentialDto + | Vapi.CreatePlayHtCredentialDto + | Vapi.CreateRimeAiCredentialDto + | Vapi.CreateRunpodCredentialDto + | Vapi.CreateS3CredentialDto + | Vapi.CreateSupabaseCredentialDto + | Vapi.CreateSmallestAiCredentialDto + | Vapi.CreateTavusCredentialDto + | Vapi.CreateTogetherAiCredentialDto + | Vapi.CreateTwilioCredentialDto + | Vapi.CreateVonageCredentialDto + | Vapi.CreateWebhookCredentialDto + | Vapi.CreateCustomCredentialDto + | Vapi.CreateXAiCredentialDto + | Vapi.CreateNeuphonicCredentialDto + | Vapi.CreateHumeCredentialDto + | Vapi.CreateMistralCredentialDto + | Vapi.CreateSpeechmaticsCredentialDto + | Vapi.CreateTrieveCredentialDto + | Vapi.CreateGoogleCalendarOAuth2ClientCredentialDto + | Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDto + | Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDto + | Vapi.CreateSlackOAuth2AuthorizationCredentialDto + | Vapi.CreateGoHighLevelMcpCredentialDto + | Vapi.CreateInworldCredentialDto + | Vapi.CreateMinimaxCredentialDto; diff --git a/src/api/types/CreateAssistantDtoFirstMessageMode.ts b/src/api/types/CreateAssistantDtoFirstMessageMode.ts new file mode 100644 index 00000000..d1d30460 --- /dev/null +++ b/src/api/types/CreateAssistantDtoFirstMessageMode.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the mode for the first message. Default is 'assistant-speaks-first'. + * + * Use: + * - 'assistant-speaks-first' to have the assistant speak first. + * - 'assistant-waits-for-user' to have the assistant wait for the user to speak first. + * - 'assistant-speaks-first-with-model-generated-message' to have the assistant speak first with a message generated by the model based on the conversation state. (`assistant.model.messages` at call start, `call.messages` at squad transfer points). + * + * @default 'assistant-speaks-first' + */ +export type CreateAssistantDtoFirstMessageMode = + | "assistant-speaks-first" + | "assistant-speaks-first-with-model-generated-message" + | "assistant-waits-for-user"; +export const CreateAssistantDtoFirstMessageMode = { + AssistantSpeaksFirst: "assistant-speaks-first", + AssistantSpeaksFirstWithModelGeneratedMessage: "assistant-speaks-first-with-model-generated-message", + AssistantWaitsForUser: "assistant-waits-for-user", +} as const; diff --git a/src/api/types/CreateAssistantDtoHooksItem.ts b/src/api/types/CreateAssistantDtoHooksItem.ts new file mode 100644 index 00000000..ce2e65da --- /dev/null +++ b/src/api/types/CreateAssistantDtoHooksItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateAssistantDtoHooksItem = + | Vapi.CallHookCallEnding + | Vapi.CallHookAssistantSpeechInterrupted + | Vapi.CallHookCustomerSpeechInterrupted + | Vapi.CallHookCustomerSpeechTimeout; diff --git a/src/api/types/CreateAssistantDtoModel.ts b/src/api/types/CreateAssistantDtoModel.ts new file mode 100644 index 00000000..cbbc6fa6 --- /dev/null +++ b/src/api/types/CreateAssistantDtoModel.ts @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * These are the options for the assistant's LLM. + */ +export type CreateAssistantDtoModel = + | Vapi.AnthropicModel + | Vapi.AnyscaleModel + | Vapi.CerebrasModel + | Vapi.CustomLlmModel + | Vapi.DeepInfraModel + | Vapi.DeepSeekModel + | Vapi.GoogleModel + | Vapi.GroqModel + | Vapi.InflectionAiModel + | Vapi.OpenAiModel + | Vapi.OpenRouterModel + | Vapi.PerplexityAiModel + | Vapi.TogetherAiModel + | Vapi.XaiModel; diff --git a/src/api/types/CreateAssistantDtoServerMessagesItem.ts b/src/api/types/CreateAssistantDtoServerMessagesItem.ts new file mode 100644 index 00000000..73134a3a --- /dev/null +++ b/src/api/types/CreateAssistantDtoServerMessagesItem.ts @@ -0,0 +1,57 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CreateAssistantDtoServerMessagesItem = + | "conversation-update" + | "end-of-call-report" + | "function-call" + | "hang" + | "language-changed" + | "language-change-detected" + | "model-output" + | "phone-call-control" + | "speech-update" + | "status-update" + | "transcript" + | 'transcript[transcriptType="final"]' + | "tool-calls" + | "transfer-destination-request" + | "handoff-destination-request" + | "transfer-update" + | "user-interrupted" + | "voice-input" + | "chat.created" + | "chat.deleted" + | "session.created" + | "session.updated" + | "session.deleted" + | "call.deleted" + | "call.delete.failed"; +export const CreateAssistantDtoServerMessagesItem = { + ConversationUpdate: "conversation-update", + EndOfCallReport: "end-of-call-report", + FunctionCall: "function-call", + Hang: "hang", + LanguageChanged: "language-changed", + LanguageChangeDetected: "language-change-detected", + ModelOutput: "model-output", + PhoneCallControl: "phone-call-control", + SpeechUpdate: "speech-update", + StatusUpdate: "status-update", + Transcript: "transcript", + TranscriptTranscriptTypeFinal: 'transcript[transcriptType="final"]', + ToolCalls: "tool-calls", + TransferDestinationRequest: "transfer-destination-request", + HandoffDestinationRequest: "handoff-destination-request", + TransferUpdate: "transfer-update", + UserInterrupted: "user-interrupted", + VoiceInput: "voice-input", + ChatCreated: "chat.created", + ChatDeleted: "chat.deleted", + SessionCreated: "session.created", + SessionUpdated: "session.updated", + SessionDeleted: "session.deleted", + CallDeleted: "call.deleted", + CallDeleteFailed: "call.delete.failed", +} as const; diff --git a/src/api/types/CreateAssistantDtoTranscriber.ts b/src/api/types/CreateAssistantDtoTranscriber.ts new file mode 100644 index 00000000..ac0cb430 --- /dev/null +++ b/src/api/types/CreateAssistantDtoTranscriber.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * These are the options for the assistant's transcriber. + */ +export type CreateAssistantDtoTranscriber = + | Vapi.AssemblyAiTranscriber + | Vapi.AzureSpeechTranscriber + | Vapi.CustomTranscriber + | Vapi.DeepgramTranscriber + | Vapi.ElevenLabsTranscriber + | Vapi.GladiaTranscriber + | Vapi.GoogleTranscriber + | Vapi.SpeechmaticsTranscriber + | Vapi.TalkscriberTranscriber + | Vapi.OpenAiTranscriber + | Vapi.CartesiaTranscriber; diff --git a/src/api/types/CreateAssistantDtoVoice.ts b/src/api/types/CreateAssistantDtoVoice.ts new file mode 100644 index 00000000..50cf7943 --- /dev/null +++ b/src/api/types/CreateAssistantDtoVoice.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * These are the options for the assistant's voice. + */ +export type CreateAssistantDtoVoice = + | Vapi.AzureVoice + | Vapi.CartesiaVoice + | Vapi.CustomVoice + | Vapi.DeepgramVoice + | Vapi.ElevenLabsVoice + | Vapi.HumeVoice + | Vapi.LmntVoice + | Vapi.NeuphonicVoice + | Vapi.OpenAiVoice + | Vapi.PlayHtVoice + | Vapi.RimeAiVoice + | Vapi.SmallestAiVoice + | Vapi.TavusVoice + | Vapi.VapiVoice + | Vapi.SesameVoice + | Vapi.InworldVoice + | Vapi.MinimaxVoice; diff --git a/src/api/types/CreateAssistantDtoVoicemailDetection.ts b/src/api/types/CreateAssistantDtoVoicemailDetection.ts new file mode 100644 index 00000000..15a35004 --- /dev/null +++ b/src/api/types/CreateAssistantDtoVoicemailDetection.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * These are the settings to configure or disable voicemail detection. Alternatively, voicemail detection can be configured using the model.tools=[VoicemailTool]. + * This uses Twilio's built-in detection while the VoicemailTool relies on the model to detect if a voicemail was reached. + * You can use neither of them, one of them, or both of them. By default, Twilio built-in detection is enabled while VoicemailTool is not. + */ +export type CreateAssistantDtoVoicemailDetection = + | Vapi.GoogleVoicemailDetectionPlan + | Vapi.OpenAiVoicemailDetectionPlan + | Vapi.TwilioVoicemailDetectionPlan + | Vapi.VapiVoicemailDetectionPlan; diff --git a/src/api/types/CreateAzureCredentialDto.ts b/src/api/types/CreateAzureCredentialDto.ts index cedfe2a2..d93b3a07 100644 --- a/src/api/types/CreateAzureCredentialDto.ts +++ b/src/api/types/CreateAzureCredentialDto.ts @@ -7,9 +7,9 @@ import * as Vapi from "../index.js"; export interface CreateAzureCredentialDto { provider: "azure"; /** This is the service being used in Azure. */ - service: CreateAzureCredentialDto.Service; + service: Vapi.CreateAzureCredentialDtoService; /** This is the region of the Azure resource. */ - region?: CreateAzureCredentialDto.Region; + region?: Vapi.CreateAzureCredentialDtoRegion; /** This is not returned in the API. */ apiKey?: string; /** This is the order in which this storage provider is tried during upload retries. Lower numbers are tried first in increasing order. */ @@ -19,56 +19,3 @@ export interface CreateAzureCredentialDto { /** This is the name of credential. This is just for your reference. */ name?: string; } - -export namespace CreateAzureCredentialDto { - /** - * This is the service being used in Azure. - */ - export type Service = "speech" | "blob_storage"; - export const Service = { - Speech: "speech", - BlobStorage: "blob_storage", - } as const; - /** - * This is the region of the Azure resource. - */ - export type Region = - | "australia" - | "canadaeast" - | "canadacentral" - | "eastus2" - | "eastus" - | "france" - | "india" - | "japaneast" - | "japanwest" - | "uaenorth" - | "northcentralus" - | "norway" - | "southcentralus" - | "swedencentral" - | "switzerland" - | "uk" - | "westus" - | "westus3"; - export const Region = { - Australia: "australia", - Canadaeast: "canadaeast", - Canadacentral: "canadacentral", - Eastus2: "eastus2", - Eastus: "eastus", - France: "france", - India: "india", - Japaneast: "japaneast", - Japanwest: "japanwest", - Uaenorth: "uaenorth", - Northcentralus: "northcentralus", - Norway: "norway", - Southcentralus: "southcentralus", - Swedencentral: "swedencentral", - Switzerland: "switzerland", - Uk: "uk", - Westus: "westus", - Westus3: "westus3", - } as const; -} diff --git a/src/api/types/CreateAzureCredentialDtoRegion.ts b/src/api/types/CreateAzureCredentialDtoRegion.ts new file mode 100644 index 00000000..62204a0e --- /dev/null +++ b/src/api/types/CreateAzureCredentialDtoRegion.ts @@ -0,0 +1,46 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the region of the Azure resource. + */ +export type CreateAzureCredentialDtoRegion = + | "australia" + | "canadaeast" + | "canadacentral" + | "eastus2" + | "eastus" + | "france" + | "india" + | "japaneast" + | "japanwest" + | "uaenorth" + | "northcentralus" + | "norway" + | "southcentralus" + | "swedencentral" + | "switzerland" + | "uk" + | "westus" + | "westus3"; +export const CreateAzureCredentialDtoRegion = { + Australia: "australia", + Canadaeast: "canadaeast", + Canadacentral: "canadacentral", + Eastus2: "eastus2", + Eastus: "eastus", + France: "france", + India: "india", + Japaneast: "japaneast", + Japanwest: "japanwest", + Uaenorth: "uaenorth", + Northcentralus: "northcentralus", + Norway: "norway", + Southcentralus: "southcentralus", + Swedencentral: "swedencentral", + Switzerland: "switzerland", + Uk: "uk", + Westus: "westus", + Westus3: "westus3", +} as const; diff --git a/src/api/types/CreateAzureCredentialDtoService.ts b/src/api/types/CreateAzureCredentialDtoService.ts new file mode 100644 index 00000000..d2e93fa9 --- /dev/null +++ b/src/api/types/CreateAzureCredentialDtoService.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the service being used in Azure. + */ +export type CreateAzureCredentialDtoService = "speech" | "blob_storage"; +export const CreateAzureCredentialDtoService = { + Speech: "speech", + BlobStorage: "blob_storage", +} as const; diff --git a/src/api/types/CreateAzureOpenAiCredentialDto.ts b/src/api/types/CreateAzureOpenAiCredentialDto.ts index 67605b29..658658bf 100644 --- a/src/api/types/CreateAzureOpenAiCredentialDto.ts +++ b/src/api/types/CreateAzureOpenAiCredentialDto.ts @@ -2,10 +2,12 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface CreateAzureOpenAiCredentialDto { provider: "azure-openai"; - region: CreateAzureOpenAiCredentialDto.Region; - models: CreateAzureOpenAiCredentialDto.Models.Item[]; + region: Vapi.CreateAzureOpenAiCredentialDtoRegion; + models: Vapi.CreateAzureOpenAiCredentialDtoModelsItem[]; /** This is not returned in the API. */ openAIKey: string; /** This is not returned in the API. */ @@ -14,84 +16,3 @@ export interface CreateAzureOpenAiCredentialDto { /** This is the name of credential. This is just for your reference. */ name?: string; } - -export namespace CreateAzureOpenAiCredentialDto { - export type Region = - | "australia" - | "canadaeast" - | "canadacentral" - | "eastus2" - | "eastus" - | "france" - | "india" - | "japaneast" - | "japanwest" - | "uaenorth" - | "northcentralus" - | "norway" - | "southcentralus" - | "swedencentral" - | "switzerland" - | "uk" - | "westus" - | "westus3"; - export const Region = { - Australia: "australia", - Canadaeast: "canadaeast", - Canadacentral: "canadacentral", - Eastus2: "eastus2", - Eastus: "eastus", - France: "france", - India: "india", - Japaneast: "japaneast", - Japanwest: "japanwest", - Uaenorth: "uaenorth", - Northcentralus: "northcentralus", - Norway: "norway", - Southcentralus: "southcentralus", - Swedencentral: "swedencentral", - Switzerland: "switzerland", - Uk: "uk", - Westus: "westus", - Westus3: "westus3", - } as const; - export type Models = Models.Item[]; - - export namespace Models { - export type Item = - | "gpt-5" - | "gpt-5-mini" - | "gpt-5-nano" - | "gpt-4.1-2025-04-14" - | "gpt-4.1-mini-2025-04-14" - | "gpt-4.1-nano-2025-04-14" - | "gpt-4o-2024-11-20" - | "gpt-4o-2024-08-06" - | "gpt-4o-2024-05-13" - | "gpt-4o-mini-2024-07-18" - | "gpt-4-turbo-2024-04-09" - | "gpt-4-0125-preview" - | "gpt-4-1106-preview" - | "gpt-4-0613" - | "gpt-35-turbo-0125" - | "gpt-35-turbo-1106"; - export const Item = { - Gpt5: "gpt-5", - Gpt5Mini: "gpt-5-mini", - Gpt5Nano: "gpt-5-nano", - Gpt4120250414: "gpt-4.1-2025-04-14", - Gpt41Mini20250414: "gpt-4.1-mini-2025-04-14", - Gpt41Nano20250414: "gpt-4.1-nano-2025-04-14", - Gpt4O20241120: "gpt-4o-2024-11-20", - Gpt4O20240806: "gpt-4o-2024-08-06", - Gpt4O20240513: "gpt-4o-2024-05-13", - Gpt4OMini20240718: "gpt-4o-mini-2024-07-18", - Gpt4Turbo20240409: "gpt-4-turbo-2024-04-09", - Gpt40125Preview: "gpt-4-0125-preview", - Gpt41106Preview: "gpt-4-1106-preview", - Gpt40613: "gpt-4-0613", - Gpt35Turbo0125: "gpt-35-turbo-0125", - Gpt35Turbo1106: "gpt-35-turbo-1106", - } as const; - } -} diff --git a/src/api/types/CreateAzureOpenAiCredentialDtoModelsItem.ts b/src/api/types/CreateAzureOpenAiCredentialDtoModelsItem.ts new file mode 100644 index 00000000..7e9a4389 --- /dev/null +++ b/src/api/types/CreateAzureOpenAiCredentialDtoModelsItem.ts @@ -0,0 +1,39 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CreateAzureOpenAiCredentialDtoModelsItem = + | "gpt-5" + | "gpt-5-mini" + | "gpt-5-nano" + | "gpt-4.1-2025-04-14" + | "gpt-4.1-mini-2025-04-14" + | "gpt-4.1-nano-2025-04-14" + | "gpt-4o-2024-11-20" + | "gpt-4o-2024-08-06" + | "gpt-4o-2024-05-13" + | "gpt-4o-mini-2024-07-18" + | "gpt-4-turbo-2024-04-09" + | "gpt-4-0125-preview" + | "gpt-4-1106-preview" + | "gpt-4-0613" + | "gpt-35-turbo-0125" + | "gpt-35-turbo-1106"; +export const CreateAzureOpenAiCredentialDtoModelsItem = { + Gpt5: "gpt-5", + Gpt5Mini: "gpt-5-mini", + Gpt5Nano: "gpt-5-nano", + Gpt4120250414: "gpt-4.1-2025-04-14", + Gpt41Mini20250414: "gpt-4.1-mini-2025-04-14", + Gpt41Nano20250414: "gpt-4.1-nano-2025-04-14", + Gpt4O20241120: "gpt-4o-2024-11-20", + Gpt4O20240806: "gpt-4o-2024-08-06", + Gpt4O20240513: "gpt-4o-2024-05-13", + Gpt4OMini20240718: "gpt-4o-mini-2024-07-18", + Gpt4Turbo20240409: "gpt-4-turbo-2024-04-09", + Gpt40125Preview: "gpt-4-0125-preview", + Gpt41106Preview: "gpt-4-1106-preview", + Gpt40613: "gpt-4-0613", + Gpt35Turbo0125: "gpt-35-turbo-0125", + Gpt35Turbo1106: "gpt-35-turbo-1106", +} as const; diff --git a/src/api/types/CreateAzureOpenAiCredentialDtoRegion.ts b/src/api/types/CreateAzureOpenAiCredentialDtoRegion.ts new file mode 100644 index 00000000..b6b2980e --- /dev/null +++ b/src/api/types/CreateAzureOpenAiCredentialDtoRegion.ts @@ -0,0 +1,43 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CreateAzureOpenAiCredentialDtoRegion = + | "australia" + | "canadaeast" + | "canadacentral" + | "eastus2" + | "eastus" + | "france" + | "india" + | "japaneast" + | "japanwest" + | "uaenorth" + | "northcentralus" + | "norway" + | "southcentralus" + | "swedencentral" + | "switzerland" + | "uk" + | "westus" + | "westus3"; +export const CreateAzureOpenAiCredentialDtoRegion = { + Australia: "australia", + Canadaeast: "canadaeast", + Canadacentral: "canadacentral", + Eastus2: "eastus2", + Eastus: "eastus", + France: "france", + India: "india", + Japaneast: "japaneast", + Japanwest: "japanwest", + Uaenorth: "uaenorth", + Northcentralus: "northcentralus", + Norway: "norway", + Southcentralus: "southcentralus", + Swedencentral: "swedencentral", + Switzerland: "switzerland", + Uk: "uk", + Westus: "westus", + Westus3: "westus3", +} as const; diff --git a/src/api/types/CreateBashToolDto.ts b/src/api/types/CreateBashToolDto.ts index 5ca8925e..dea9d6a6 100644 --- a/src/api/types/CreateBashToolDto.ts +++ b/src/api/types/CreateBashToolDto.ts @@ -10,7 +10,7 @@ export interface CreateBashToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: CreateBashToolDto.Messages.Item[]; + messages?: Vapi.CreateBashToolDtoMessagesItem[]; type: "bash"; /** The sub type of tool. */ subType: "bash_20241022"; @@ -109,15 +109,3 @@ export interface CreateBashToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace CreateBashToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/CreateBashToolDtoMessagesItem.ts b/src/api/types/CreateBashToolDtoMessagesItem.ts new file mode 100644 index 00000000..52217a08 --- /dev/null +++ b/src/api/types/CreateBashToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateBashToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/CreateByoPhoneNumberDto.ts b/src/api/types/CreateByoPhoneNumberDto.ts index 69781f4d..1f21b3e1 100644 --- a/src/api/types/CreateByoPhoneNumberDto.ts +++ b/src/api/types/CreateByoPhoneNumberDto.ts @@ -13,9 +13,9 @@ export interface CreateByoPhoneNumberDto { * * If this is not set and above conditions are met, the inbound call is hung up with an error message. */ - fallbackDestination?: CreateByoPhoneNumberDto.FallbackDestination; + fallbackDestination?: Vapi.CreateByoPhoneNumberDtoFallbackDestination; /** This is the hooks that will be used for incoming calls to this phone number. */ - hooks?: CreateByoPhoneNumberDto.Hooks.Item[]; + hooks?: Vapi.CreateByoPhoneNumberDtoHooksItem[]; provider: "byo-phone-number"; /** * This is the flag to toggle the E164 check for the `number` field. This is an advanced property which should be used if you know your use case requires it. @@ -68,20 +68,3 @@ export interface CreateByoPhoneNumberDto { */ server?: Vapi.Server; } - -export namespace CreateByoPhoneNumberDto { - /** - * This is the fallback destination an inbound call will be transferred to if: - * 1. `assistantId` is not set - * 2. `squadId` is not set - * 3. and, `assistant-request` message to the `serverUrl` fails - * - * If this is not set and above conditions are met, the inbound call is hung up with an error message. - */ - export type FallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; - export type Hooks = Hooks.Item[]; - - export namespace Hooks { - export type Item = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; - } -} diff --git a/src/api/types/CreateByoPhoneNumberDtoFallbackDestination.ts b/src/api/types/CreateByoPhoneNumberDtoFallbackDestination.ts new file mode 100644 index 00000000..f0545aa3 --- /dev/null +++ b/src/api/types/CreateByoPhoneNumberDtoFallbackDestination.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the fallback destination an inbound call will be transferred to if: + * 1. `assistantId` is not set + * 2. `squadId` is not set + * 3. and, `assistant-request` message to the `serverUrl` fails + * + * If this is not set and above conditions are met, the inbound call is hung up with an error message. + */ +export type CreateByoPhoneNumberDtoFallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; diff --git a/src/api/types/CreateByoPhoneNumberDtoHooksItem.ts b/src/api/types/CreateByoPhoneNumberDtoHooksItem.ts new file mode 100644 index 00000000..166a2dd2 --- /dev/null +++ b/src/api/types/CreateByoPhoneNumberDtoHooksItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateByoPhoneNumberDtoHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; diff --git a/src/api/types/CreateComputerToolDto.ts b/src/api/types/CreateComputerToolDto.ts index 2c093c34..100c7d59 100644 --- a/src/api/types/CreateComputerToolDto.ts +++ b/src/api/types/CreateComputerToolDto.ts @@ -10,7 +10,7 @@ export interface CreateComputerToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: CreateComputerToolDto.Messages.Item[]; + messages?: Vapi.CreateComputerToolDtoMessagesItem[]; type: "computer"; /** The sub type of tool. */ subType: "computer_20241022"; @@ -115,15 +115,3 @@ export interface CreateComputerToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace CreateComputerToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/CreateComputerToolDtoMessagesItem.ts b/src/api/types/CreateComputerToolDtoMessagesItem.ts new file mode 100644 index 00000000..4b74950f --- /dev/null +++ b/src/api/types/CreateComputerToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateComputerToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/CreateCustomCredentialDto.ts b/src/api/types/CreateCustomCredentialDto.ts index cbf24c72..19748ff2 100644 --- a/src/api/types/CreateCustomCredentialDto.ts +++ b/src/api/types/CreateCustomCredentialDto.ts @@ -7,17 +7,7 @@ import * as Vapi from "../index.js"; export interface CreateCustomCredentialDto { provider: "custom-credential"; /** This is the authentication plan. Supports OAuth2 RFC 6749, HMAC signing, and Bearer authentication. */ - authenticationPlan: CreateCustomCredentialDto.AuthenticationPlan; + authenticationPlan: Vapi.CreateCustomCredentialDtoAuthenticationPlan; /** This is the name of credential. This is just for your reference. */ name?: string; } - -export namespace CreateCustomCredentialDto { - /** - * This is the authentication plan. Supports OAuth2 RFC 6749, HMAC signing, and Bearer authentication. - */ - export type AuthenticationPlan = - | Vapi.OAuth2AuthenticationPlan - | Vapi.HmacAuthenticationPlan - | Vapi.BearerAuthenticationPlan; -} diff --git a/src/api/types/CreateCustomCredentialDtoAuthenticationPlan.ts b/src/api/types/CreateCustomCredentialDtoAuthenticationPlan.ts new file mode 100644 index 00000000..9312d4f5 --- /dev/null +++ b/src/api/types/CreateCustomCredentialDtoAuthenticationPlan.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the authentication plan. Supports OAuth2 RFC 6749, HMAC signing, and Bearer authentication. + */ +export type CreateCustomCredentialDtoAuthenticationPlan = + | Vapi.OAuth2AuthenticationPlan + | Vapi.HmacAuthenticationPlan + | Vapi.BearerAuthenticationPlan; diff --git a/src/api/types/CreateDtmfToolDto.ts b/src/api/types/CreateDtmfToolDto.ts index 4cadf71e..6b61f551 100644 --- a/src/api/types/CreateDtmfToolDto.ts +++ b/src/api/types/CreateDtmfToolDto.ts @@ -10,7 +10,7 @@ export interface CreateDtmfToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: CreateDtmfToolDto.Messages.Item[]; + messages?: Vapi.CreateDtmfToolDtoMessagesItem[]; type: "dtmf"; /** * This is the plan to reject a tool call based on the conversation state. @@ -94,15 +94,3 @@ export interface CreateDtmfToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace CreateDtmfToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/CreateDtmfToolDtoMessagesItem.ts b/src/api/types/CreateDtmfToolDtoMessagesItem.ts new file mode 100644 index 00000000..1c3c72a2 --- /dev/null +++ b/src/api/types/CreateDtmfToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateDtmfToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/CreateEndCallToolDto.ts b/src/api/types/CreateEndCallToolDto.ts index 0279fdd6..55c1dbff 100644 --- a/src/api/types/CreateEndCallToolDto.ts +++ b/src/api/types/CreateEndCallToolDto.ts @@ -10,7 +10,7 @@ export interface CreateEndCallToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: CreateEndCallToolDto.Messages.Item[]; + messages?: Vapi.CreateEndCallToolDtoMessagesItem[]; type: "endCall"; /** * This is the plan to reject a tool call based on the conversation state. @@ -94,15 +94,3 @@ export interface CreateEndCallToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace CreateEndCallToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/CreateEndCallToolDtoMessagesItem.ts b/src/api/types/CreateEndCallToolDtoMessagesItem.ts new file mode 100644 index 00000000..f32e8e78 --- /dev/null +++ b/src/api/types/CreateEndCallToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateEndCallToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/CreateEvalDto.ts b/src/api/types/CreateEvalDto.ts index c160d147..86940afa 100644 --- a/src/api/types/CreateEvalDto.ts +++ b/src/api/types/CreateEvalDto.ts @@ -12,7 +12,7 @@ export interface CreateEvalDto { * * Evaluation Messages are used as checkpoints in the flow where the model's response to previous conversation needs to be evaluated to check the content and tool calls */ - messages: CreateEvalDto.Messages.Item[]; + messages: Vapi.CreateEvalDtoMessagesItem[]; /** * This is the name of the eval. * It helps identify what the eval is checking for. @@ -29,16 +29,3 @@ export interface CreateEvalDto { */ type: "chat.mockConversation"; } - -export namespace CreateEvalDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ChatEvalAssistantMessageMock - | Vapi.ChatEvalSystemMessageMock - | Vapi.ChatEvalToolResponseMessageMock - | Vapi.ChatEvalUserMessageMock - | Vapi.ChatEvalAssistantMessageEvaluation; - } -} diff --git a/src/api/types/CreateEvalDtoMessagesItem.ts b/src/api/types/CreateEvalDtoMessagesItem.ts new file mode 100644 index 00000000..e7009102 --- /dev/null +++ b/src/api/types/CreateEvalDtoMessagesItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateEvalDtoMessagesItem = + | Vapi.ChatEvalAssistantMessageMock + | Vapi.ChatEvalSystemMessageMock + | Vapi.ChatEvalToolResponseMessageMock + | Vapi.ChatEvalUserMessageMock + | Vapi.ChatEvalAssistantMessageEvaluation; diff --git a/src/api/types/CreateFunctionToolDto.ts b/src/api/types/CreateFunctionToolDto.ts index db2772bb..31ebd10b 100644 --- a/src/api/types/CreateFunctionToolDto.ts +++ b/src/api/types/CreateFunctionToolDto.ts @@ -10,7 +10,7 @@ export interface CreateFunctionToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: CreateFunctionToolDto.Messages.Item[]; + messages?: Vapi.CreateFunctionToolDtoMessagesItem[]; type: "function"; /** * This determines if the tool is async. @@ -117,15 +117,3 @@ export interface CreateFunctionToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace CreateFunctionToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/CreateFunctionToolDtoMessagesItem.ts b/src/api/types/CreateFunctionToolDtoMessagesItem.ts new file mode 100644 index 00000000..f379fa2d --- /dev/null +++ b/src/api/types/CreateFunctionToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateFunctionToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/CreateGhlToolDto.ts b/src/api/types/CreateGhlToolDto.ts index 31108257..93ccc469 100644 --- a/src/api/types/CreateGhlToolDto.ts +++ b/src/api/types/CreateGhlToolDto.ts @@ -10,7 +10,7 @@ export interface CreateGhlToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: CreateGhlToolDto.Messages.Item[]; + messages?: Vapi.CreateGhlToolDtoMessagesItem[]; /** The type of tool. "ghl" for GHL tool. */ type: "ghl"; metadata: Vapi.GhlToolMetadata; @@ -96,15 +96,3 @@ export interface CreateGhlToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace CreateGhlToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/CreateGhlToolDtoMessagesItem.ts b/src/api/types/CreateGhlToolDtoMessagesItem.ts new file mode 100644 index 00000000..02e14c77 --- /dev/null +++ b/src/api/types/CreateGhlToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateGhlToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/CreateGoHighLevelCalendarAvailabilityToolDto.ts b/src/api/types/CreateGoHighLevelCalendarAvailabilityToolDto.ts index 773bf83f..e799b783 100644 --- a/src/api/types/CreateGoHighLevelCalendarAvailabilityToolDto.ts +++ b/src/api/types/CreateGoHighLevelCalendarAvailabilityToolDto.ts @@ -10,7 +10,7 @@ export interface CreateGoHighLevelCalendarAvailabilityToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: CreateGoHighLevelCalendarAvailabilityToolDto.Messages.Item[]; + messages?: Vapi.CreateGoHighLevelCalendarAvailabilityToolDtoMessagesItem[]; type: "gohighlevel.calendar.availability.check"; /** * This is the plan to reject a tool call based on the conversation state. @@ -94,15 +94,3 @@ export interface CreateGoHighLevelCalendarAvailabilityToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace CreateGoHighLevelCalendarAvailabilityToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/CreateGoHighLevelCalendarAvailabilityToolDtoMessagesItem.ts b/src/api/types/CreateGoHighLevelCalendarAvailabilityToolDtoMessagesItem.ts new file mode 100644 index 00000000..142e8571 --- /dev/null +++ b/src/api/types/CreateGoHighLevelCalendarAvailabilityToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateGoHighLevelCalendarAvailabilityToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/CreateGoHighLevelCalendarEventCreateToolDto.ts b/src/api/types/CreateGoHighLevelCalendarEventCreateToolDto.ts index 050a6329..a68a220a 100644 --- a/src/api/types/CreateGoHighLevelCalendarEventCreateToolDto.ts +++ b/src/api/types/CreateGoHighLevelCalendarEventCreateToolDto.ts @@ -10,7 +10,7 @@ export interface CreateGoHighLevelCalendarEventCreateToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: CreateGoHighLevelCalendarEventCreateToolDto.Messages.Item[]; + messages?: Vapi.CreateGoHighLevelCalendarEventCreateToolDtoMessagesItem[]; type: "gohighlevel.calendar.event.create"; /** * This is the plan to reject a tool call based on the conversation state. @@ -94,15 +94,3 @@ export interface CreateGoHighLevelCalendarEventCreateToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace CreateGoHighLevelCalendarEventCreateToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/CreateGoHighLevelCalendarEventCreateToolDtoMessagesItem.ts b/src/api/types/CreateGoHighLevelCalendarEventCreateToolDtoMessagesItem.ts new file mode 100644 index 00000000..91aada37 --- /dev/null +++ b/src/api/types/CreateGoHighLevelCalendarEventCreateToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateGoHighLevelCalendarEventCreateToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/CreateGoHighLevelContactCreateToolDto.ts b/src/api/types/CreateGoHighLevelContactCreateToolDto.ts index 44c69c3c..75eb3d7c 100644 --- a/src/api/types/CreateGoHighLevelContactCreateToolDto.ts +++ b/src/api/types/CreateGoHighLevelContactCreateToolDto.ts @@ -10,7 +10,7 @@ export interface CreateGoHighLevelContactCreateToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: CreateGoHighLevelContactCreateToolDto.Messages.Item[]; + messages?: Vapi.CreateGoHighLevelContactCreateToolDtoMessagesItem[]; type: "gohighlevel.contact.create"; /** * This is the plan to reject a tool call based on the conversation state. @@ -94,15 +94,3 @@ export interface CreateGoHighLevelContactCreateToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace CreateGoHighLevelContactCreateToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/CreateGoHighLevelContactCreateToolDtoMessagesItem.ts b/src/api/types/CreateGoHighLevelContactCreateToolDtoMessagesItem.ts new file mode 100644 index 00000000..22c7fb82 --- /dev/null +++ b/src/api/types/CreateGoHighLevelContactCreateToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateGoHighLevelContactCreateToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/CreateGoHighLevelContactGetToolDto.ts b/src/api/types/CreateGoHighLevelContactGetToolDto.ts index bf81cb13..c9fdb7c2 100644 --- a/src/api/types/CreateGoHighLevelContactGetToolDto.ts +++ b/src/api/types/CreateGoHighLevelContactGetToolDto.ts @@ -10,7 +10,7 @@ export interface CreateGoHighLevelContactGetToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: CreateGoHighLevelContactGetToolDto.Messages.Item[]; + messages?: Vapi.CreateGoHighLevelContactGetToolDtoMessagesItem[]; type: "gohighlevel.contact.get"; /** * This is the plan to reject a tool call based on the conversation state. @@ -94,15 +94,3 @@ export interface CreateGoHighLevelContactGetToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace CreateGoHighLevelContactGetToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/CreateGoHighLevelContactGetToolDtoMessagesItem.ts b/src/api/types/CreateGoHighLevelContactGetToolDtoMessagesItem.ts new file mode 100644 index 00000000..8cacca66 --- /dev/null +++ b/src/api/types/CreateGoHighLevelContactGetToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateGoHighLevelContactGetToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/CreateGoogleCalendarCheckAvailabilityToolDto.ts b/src/api/types/CreateGoogleCalendarCheckAvailabilityToolDto.ts index 9c91e7b4..84621d31 100644 --- a/src/api/types/CreateGoogleCalendarCheckAvailabilityToolDto.ts +++ b/src/api/types/CreateGoogleCalendarCheckAvailabilityToolDto.ts @@ -10,7 +10,7 @@ export interface CreateGoogleCalendarCheckAvailabilityToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: CreateGoogleCalendarCheckAvailabilityToolDto.Messages.Item[]; + messages?: Vapi.CreateGoogleCalendarCheckAvailabilityToolDtoMessagesItem[]; type: "google.calendar.availability.check"; /** * This is the plan to reject a tool call based on the conversation state. @@ -94,15 +94,3 @@ export interface CreateGoogleCalendarCheckAvailabilityToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace CreateGoogleCalendarCheckAvailabilityToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/CreateGoogleCalendarCheckAvailabilityToolDtoMessagesItem.ts b/src/api/types/CreateGoogleCalendarCheckAvailabilityToolDtoMessagesItem.ts new file mode 100644 index 00000000..fcd34e0f --- /dev/null +++ b/src/api/types/CreateGoogleCalendarCheckAvailabilityToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateGoogleCalendarCheckAvailabilityToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/CreateGoogleCalendarCreateEventToolDto.ts b/src/api/types/CreateGoogleCalendarCreateEventToolDto.ts index 5f75b7bd..798a88de 100644 --- a/src/api/types/CreateGoogleCalendarCreateEventToolDto.ts +++ b/src/api/types/CreateGoogleCalendarCreateEventToolDto.ts @@ -10,7 +10,7 @@ export interface CreateGoogleCalendarCreateEventToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: CreateGoogleCalendarCreateEventToolDto.Messages.Item[]; + messages?: Vapi.CreateGoogleCalendarCreateEventToolDtoMessagesItem[]; type: "google.calendar.event.create"; /** * This is the plan to reject a tool call based on the conversation state. @@ -94,15 +94,3 @@ export interface CreateGoogleCalendarCreateEventToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace CreateGoogleCalendarCreateEventToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/CreateGoogleCalendarCreateEventToolDtoMessagesItem.ts b/src/api/types/CreateGoogleCalendarCreateEventToolDtoMessagesItem.ts new file mode 100644 index 00000000..089bd104 --- /dev/null +++ b/src/api/types/CreateGoogleCalendarCreateEventToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateGoogleCalendarCreateEventToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/CreateGoogleSheetsRowAppendToolDto.ts b/src/api/types/CreateGoogleSheetsRowAppendToolDto.ts index 80b29f08..d740cb24 100644 --- a/src/api/types/CreateGoogleSheetsRowAppendToolDto.ts +++ b/src/api/types/CreateGoogleSheetsRowAppendToolDto.ts @@ -10,7 +10,7 @@ export interface CreateGoogleSheetsRowAppendToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: CreateGoogleSheetsRowAppendToolDto.Messages.Item[]; + messages?: Vapi.CreateGoogleSheetsRowAppendToolDtoMessagesItem[]; type: "google.sheets.row.append"; /** * This is the plan to reject a tool call based on the conversation state. @@ -94,15 +94,3 @@ export interface CreateGoogleSheetsRowAppendToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace CreateGoogleSheetsRowAppendToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/CreateGoogleSheetsRowAppendToolDtoMessagesItem.ts b/src/api/types/CreateGoogleSheetsRowAppendToolDtoMessagesItem.ts new file mode 100644 index 00000000..47113f8b --- /dev/null +++ b/src/api/types/CreateGoogleSheetsRowAppendToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateGoogleSheetsRowAppendToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/CreateHandoffToolDto.ts b/src/api/types/CreateHandoffToolDto.ts index d01bbd21..0ee840a5 100644 --- a/src/api/types/CreateHandoffToolDto.ts +++ b/src/api/types/CreateHandoffToolDto.ts @@ -10,7 +10,7 @@ export interface CreateHandoffToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: CreateHandoffToolDto.Messages.Item[]; + messages?: Vapi.CreateHandoffToolDtoMessagesItem[]; type: "handoff"; /** * These are the destinations that the call can be handed off to. @@ -181,7 +181,7 @@ export interface CreateHandoffToolDto { * * The properties `customerAreaCode`, `customerIntent`, and `customerSentiment` will be passed to the server in the webhook request body. */ - destinations?: CreateHandoffToolDto.Destinations.Item[]; + destinations?: Vapi.CreateHandoffToolDtoDestinationsItem[]; /** * This is the optional function definition that will be passed to the LLM. * If this is not defined, we will construct this based on the other properties. @@ -366,21 +366,3 @@ export interface CreateHandoffToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace CreateHandoffToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } - - export type Destinations = Destinations.Item[]; - - export namespace Destinations { - export type Item = Vapi.HandoffDestinationAssistant | Vapi.HandoffDestinationDynamic; - } -} diff --git a/src/api/types/CreateHandoffToolDtoDestinationsItem.ts b/src/api/types/CreateHandoffToolDtoDestinationsItem.ts new file mode 100644 index 00000000..51aab04a --- /dev/null +++ b/src/api/types/CreateHandoffToolDtoDestinationsItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateHandoffToolDtoDestinationsItem = Vapi.HandoffDestinationAssistant | Vapi.HandoffDestinationDynamic; diff --git a/src/api/types/CreateHandoffToolDtoMessagesItem.ts b/src/api/types/CreateHandoffToolDtoMessagesItem.ts new file mode 100644 index 00000000..185d883c --- /dev/null +++ b/src/api/types/CreateHandoffToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateHandoffToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/CreateMakeToolDto.ts b/src/api/types/CreateMakeToolDto.ts index 5153803b..8cb0868a 100644 --- a/src/api/types/CreateMakeToolDto.ts +++ b/src/api/types/CreateMakeToolDto.ts @@ -10,7 +10,7 @@ export interface CreateMakeToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: CreateMakeToolDto.Messages.Item[]; + messages?: Vapi.CreateMakeToolDtoMessagesItem[]; /** The type of tool. "make" for Make tool. */ type: "make"; metadata: Vapi.MakeToolMetadata; @@ -96,15 +96,3 @@ export interface CreateMakeToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace CreateMakeToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/CreateMakeToolDtoMessagesItem.ts b/src/api/types/CreateMakeToolDtoMessagesItem.ts new file mode 100644 index 00000000..2473d59d --- /dev/null +++ b/src/api/types/CreateMakeToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateMakeToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/CreateMcpToolDto.ts b/src/api/types/CreateMcpToolDto.ts index f20c7ceb..5cdac87a 100644 --- a/src/api/types/CreateMcpToolDto.ts +++ b/src/api/types/CreateMcpToolDto.ts @@ -10,7 +10,7 @@ export interface CreateMcpToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: CreateMcpToolDto.Messages.Item[]; + messages?: Vapi.CreateMcpToolDtoMessagesItem[]; type: "mcp"; /** * This is the server where a `tool-calls` webhook will be sent. @@ -106,15 +106,3 @@ export interface CreateMcpToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace CreateMcpToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/CreateMcpToolDtoMessagesItem.ts b/src/api/types/CreateMcpToolDtoMessagesItem.ts new file mode 100644 index 00000000..cde9db30 --- /dev/null +++ b/src/api/types/CreateMcpToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateMcpToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/CreateOrgDto.ts b/src/api/types/CreateOrgDto.ts index 0392fad1..34c16e4b 100644 --- a/src/api/types/CreateOrgDto.ts +++ b/src/api/types/CreateOrgDto.ts @@ -16,7 +16,7 @@ export interface CreateOrgDto { /** This is the name of the org. This is just for your own reference. */ name?: string; /** This is the channel of the org. There is the cluster the API traffic for the org will be directed. */ - channel?: CreateOrgDto.Channel; + channel?: Vapi.CreateOrgDtoChannel; /** This is the monthly billing limit for the org. To go beyond $1000/mo, please contact us at support@vapi.ai. */ billingLimit?: number; /** @@ -41,14 +41,3 @@ export interface CreateOrgDto { */ compliancePlan?: Vapi.CompliancePlan; } - -export namespace CreateOrgDto { - /** - * This is the channel of the org. There is the cluster the API traffic for the org will be directed. - */ - export type Channel = "default" | "weekly"; - export const Channel = { - Default: "default", - Weekly: "weekly", - } as const; -} diff --git a/src/api/types/CreateOrgDtoChannel.ts b/src/api/types/CreateOrgDtoChannel.ts new file mode 100644 index 00000000..a8e0c576 --- /dev/null +++ b/src/api/types/CreateOrgDtoChannel.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the channel of the org. There is the cluster the API traffic for the org will be directed. + */ +export type CreateOrgDtoChannel = "default" | "weekly"; +export const CreateOrgDtoChannel = { + Default: "default", + Weekly: "weekly", +} as const; diff --git a/src/api/types/CreateOutputToolDto.ts b/src/api/types/CreateOutputToolDto.ts index 5b9aee5c..f0be4336 100644 --- a/src/api/types/CreateOutputToolDto.ts +++ b/src/api/types/CreateOutputToolDto.ts @@ -10,7 +10,7 @@ export interface CreateOutputToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: CreateOutputToolDto.Messages.Item[]; + messages?: Vapi.CreateOutputToolDtoMessagesItem[]; /** The type of tool. "output" for Output tool. */ type: "output"; /** @@ -95,15 +95,3 @@ export interface CreateOutputToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace CreateOutputToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/CreateOutputToolDtoMessagesItem.ts b/src/api/types/CreateOutputToolDtoMessagesItem.ts new file mode 100644 index 00000000..00f5aaac --- /dev/null +++ b/src/api/types/CreateOutputToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateOutputToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/CreateQueryToolDto.ts b/src/api/types/CreateQueryToolDto.ts index f7e0f310..4ba659f1 100644 --- a/src/api/types/CreateQueryToolDto.ts +++ b/src/api/types/CreateQueryToolDto.ts @@ -10,7 +10,7 @@ export interface CreateQueryToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: CreateQueryToolDto.Messages.Item[]; + messages?: Vapi.CreateQueryToolDtoMessagesItem[]; type: "query"; /** The knowledge bases to query */ knowledgeBases?: Vapi.KnowledgeBase[]; @@ -96,15 +96,3 @@ export interface CreateQueryToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace CreateQueryToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/CreateQueryToolDtoMessagesItem.ts b/src/api/types/CreateQueryToolDtoMessagesItem.ts new file mode 100644 index 00000000..88af00ee --- /dev/null +++ b/src/api/types/CreateQueryToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateQueryToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/CreateSlackSendMessageToolDto.ts b/src/api/types/CreateSlackSendMessageToolDto.ts index a369f5f8..bc9c85cd 100644 --- a/src/api/types/CreateSlackSendMessageToolDto.ts +++ b/src/api/types/CreateSlackSendMessageToolDto.ts @@ -10,7 +10,7 @@ export interface CreateSlackSendMessageToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: CreateSlackSendMessageToolDto.Messages.Item[]; + messages?: Vapi.CreateSlackSendMessageToolDtoMessagesItem[]; type: "slack.message.send"; /** * This is the plan to reject a tool call based on the conversation state. @@ -94,15 +94,3 @@ export interface CreateSlackSendMessageToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace CreateSlackSendMessageToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/CreateSlackSendMessageToolDtoMessagesItem.ts b/src/api/types/CreateSlackSendMessageToolDtoMessagesItem.ts new file mode 100644 index 00000000..6ef5128a --- /dev/null +++ b/src/api/types/CreateSlackSendMessageToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateSlackSendMessageToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/CreateSmsToolDto.ts b/src/api/types/CreateSmsToolDto.ts index bf681cd1..490d19d8 100644 --- a/src/api/types/CreateSmsToolDto.ts +++ b/src/api/types/CreateSmsToolDto.ts @@ -10,7 +10,7 @@ export interface CreateSmsToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: CreateSmsToolDto.Messages.Item[]; + messages?: Vapi.CreateSmsToolDtoMessagesItem[]; type: "sms"; /** * This is the plan to reject a tool call based on the conversation state. @@ -94,15 +94,3 @@ export interface CreateSmsToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace CreateSmsToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/CreateSmsToolDtoMessagesItem.ts b/src/api/types/CreateSmsToolDtoMessagesItem.ts new file mode 100644 index 00000000..066810a6 --- /dev/null +++ b/src/api/types/CreateSmsToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateSmsToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/CreateTelnyxPhoneNumberDto.ts b/src/api/types/CreateTelnyxPhoneNumberDto.ts index 2156f2a8..be3b891f 100644 --- a/src/api/types/CreateTelnyxPhoneNumberDto.ts +++ b/src/api/types/CreateTelnyxPhoneNumberDto.ts @@ -13,9 +13,9 @@ export interface CreateTelnyxPhoneNumberDto { * * If this is not set and above conditions are met, the inbound call is hung up with an error message. */ - fallbackDestination?: CreateTelnyxPhoneNumberDto.FallbackDestination; + fallbackDestination?: Vapi.CreateTelnyxPhoneNumberDtoFallbackDestination; /** This is the hooks that will be used for incoming calls to this phone number. */ - hooks?: CreateTelnyxPhoneNumberDto.Hooks.Item[]; + hooks?: Vapi.CreateTelnyxPhoneNumberDtoHooksItem[]; provider: "telnyx"; /** These are the digits of the phone number you own on your Telnyx. */ number: string; @@ -52,20 +52,3 @@ export interface CreateTelnyxPhoneNumberDto { */ server?: Vapi.Server; } - -export namespace CreateTelnyxPhoneNumberDto { - /** - * This is the fallback destination an inbound call will be transferred to if: - * 1. `assistantId` is not set - * 2. `squadId` is not set - * 3. and, `assistant-request` message to the `serverUrl` fails - * - * If this is not set and above conditions are met, the inbound call is hung up with an error message. - */ - export type FallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; - export type Hooks = Hooks.Item[]; - - export namespace Hooks { - export type Item = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; - } -} diff --git a/src/api/types/CreateTelnyxPhoneNumberDtoFallbackDestination.ts b/src/api/types/CreateTelnyxPhoneNumberDtoFallbackDestination.ts new file mode 100644 index 00000000..73fc380e --- /dev/null +++ b/src/api/types/CreateTelnyxPhoneNumberDtoFallbackDestination.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the fallback destination an inbound call will be transferred to if: + * 1. `assistantId` is not set + * 2. `squadId` is not set + * 3. and, `assistant-request` message to the `serverUrl` fails + * + * If this is not set and above conditions are met, the inbound call is hung up with an error message. + */ +export type CreateTelnyxPhoneNumberDtoFallbackDestination = + | Vapi.TransferDestinationNumber + | Vapi.TransferDestinationSip; diff --git a/src/api/types/CreateTelnyxPhoneNumberDtoHooksItem.ts b/src/api/types/CreateTelnyxPhoneNumberDtoHooksItem.ts new file mode 100644 index 00000000..90217721 --- /dev/null +++ b/src/api/types/CreateTelnyxPhoneNumberDtoHooksItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateTelnyxPhoneNumberDtoHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; diff --git a/src/api/types/CreateTextEditorToolDto.ts b/src/api/types/CreateTextEditorToolDto.ts index b0473882..c56701e6 100644 --- a/src/api/types/CreateTextEditorToolDto.ts +++ b/src/api/types/CreateTextEditorToolDto.ts @@ -10,7 +10,7 @@ export interface CreateTextEditorToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: CreateTextEditorToolDto.Messages.Item[]; + messages?: Vapi.CreateTextEditorToolDtoMessagesItem[]; type: "textEditor"; /** The sub type of tool. */ subType: "text_editor_20241022"; @@ -109,15 +109,3 @@ export interface CreateTextEditorToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace CreateTextEditorToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/CreateTextEditorToolDtoMessagesItem.ts b/src/api/types/CreateTextEditorToolDtoMessagesItem.ts new file mode 100644 index 00000000..42be8b9a --- /dev/null +++ b/src/api/types/CreateTextEditorToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateTextEditorToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/CreateTokenDto.ts b/src/api/types/CreateTokenDto.ts index 8cf6be87..9dc19674 100644 --- a/src/api/types/CreateTokenDto.ts +++ b/src/api/types/CreateTokenDto.ts @@ -6,20 +6,9 @@ import * as Vapi from "../index.js"; export interface CreateTokenDto { /** This is the tag for the token. It represents its scope. */ - tag?: CreateTokenDto.Tag; + tag?: Vapi.CreateTokenDtoTag; /** This is the name of the token. This is just for your own reference. */ name?: string; /** This are the restrictions for the token. */ restrictions?: Vapi.TokenRestrictions; } - -export namespace CreateTokenDto { - /** - * This is the tag for the token. It represents its scope. - */ - export type Tag = "private" | "public"; - export const Tag = { - Private: "private", - Public: "public", - } as const; -} diff --git a/src/api/types/CreateTokenDtoTag.ts b/src/api/types/CreateTokenDtoTag.ts new file mode 100644 index 00000000..df5c76ce --- /dev/null +++ b/src/api/types/CreateTokenDtoTag.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the tag for the token. It represents its scope. + */ +export type CreateTokenDtoTag = "private" | "public"; +export const CreateTokenDtoTag = { + Private: "private", + Public: "public", +} as const; diff --git a/src/api/types/CreateToolTemplateDto.ts b/src/api/types/CreateToolTemplateDto.ts index 7939b5a5..5a4d6069 100644 --- a/src/api/types/CreateToolTemplateDto.ts +++ b/src/api/types/CreateToolTemplateDto.ts @@ -5,57 +5,12 @@ import * as Vapi from "../index.js"; export interface CreateToolTemplateDto { - details?: CreateToolTemplateDto.Details; - providerDetails?: CreateToolTemplateDto.ProviderDetails; + details?: Vapi.CreateToolTemplateDtoDetails; + providerDetails?: Vapi.CreateToolTemplateDtoProviderDetails; metadata?: Vapi.ToolTemplateMetadata; - visibility?: CreateToolTemplateDto.Visibility; + visibility?: Vapi.CreateToolTemplateDtoVisibility; type: "tool"; /** The name of the template. This is just for your own reference. */ name?: string; - provider?: CreateToolTemplateDto.Provider; -} - -export namespace CreateToolTemplateDto { - export type Details = - | Vapi.CreateApiRequestToolDto - | Vapi.CreateBashToolDto - | Vapi.CreateComputerToolDto - | Vapi.CreateDtmfToolDto - | Vapi.CreateEndCallToolDto - | Vapi.CreateFunctionToolDto - | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto - | Vapi.CreateGoHighLevelCalendarEventCreateToolDto - | Vapi.CreateGoHighLevelContactCreateToolDto - | Vapi.CreateGoHighLevelContactGetToolDto - | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto - | Vapi.CreateGoogleCalendarCreateEventToolDto - | Vapi.CreateGoogleSheetsRowAppendToolDto - | Vapi.CreateHandoffToolDto - | Vapi.CreateMcpToolDto - | Vapi.CreateQueryToolDto - | Vapi.CreateSlackSendMessageToolDto - | Vapi.CreateSmsToolDto - | Vapi.CreateTextEditorToolDto - | Vapi.CreateTransferCallToolDto; - export type ProviderDetails = - | Vapi.MakeToolProviderDetails - | Vapi.GhlToolProviderDetails - | Vapi.FunctionToolProviderDetails - | Vapi.GoogleCalendarCreateEventToolProviderDetails - | Vapi.GoogleSheetsRowAppendToolProviderDetails - | Vapi.GoHighLevelCalendarAvailabilityToolProviderDetails - | Vapi.GoHighLevelCalendarEventCreateToolProviderDetails - | Vapi.GoHighLevelContactCreateToolProviderDetails - | Vapi.GoHighLevelContactGetToolProviderDetails; - export type Visibility = "public" | "private"; - export const Visibility = { - Public: "public", - Private: "private", - } as const; - export type Provider = "make" | "gohighlevel" | "function"; - export const Provider = { - Make: "make", - Gohighlevel: "gohighlevel", - Function: "function", - } as const; + provider?: Vapi.CreateToolTemplateDtoProvider; } diff --git a/src/api/types/CreateToolTemplateDtoDetails.ts b/src/api/types/CreateToolTemplateDtoDetails.ts new file mode 100644 index 00000000..3edf89c3 --- /dev/null +++ b/src/api/types/CreateToolTemplateDtoDetails.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateToolTemplateDtoDetails = + | Vapi.CreateApiRequestToolDto + | Vapi.CreateBashToolDto + | Vapi.CreateComputerToolDto + | Vapi.CreateDtmfToolDto + | Vapi.CreateEndCallToolDto + | Vapi.CreateFunctionToolDto + | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto + | Vapi.CreateGoHighLevelCalendarEventCreateToolDto + | Vapi.CreateGoHighLevelContactCreateToolDto + | Vapi.CreateGoHighLevelContactGetToolDto + | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto + | Vapi.CreateGoogleCalendarCreateEventToolDto + | Vapi.CreateGoogleSheetsRowAppendToolDto + | Vapi.CreateHandoffToolDto + | Vapi.CreateMcpToolDto + | Vapi.CreateQueryToolDto + | Vapi.CreateSlackSendMessageToolDto + | Vapi.CreateSmsToolDto + | Vapi.CreateTextEditorToolDto + | Vapi.CreateTransferCallToolDto; diff --git a/src/api/types/CreateToolTemplateDtoProvider.ts b/src/api/types/CreateToolTemplateDtoProvider.ts new file mode 100644 index 00000000..c9fde390 --- /dev/null +++ b/src/api/types/CreateToolTemplateDtoProvider.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CreateToolTemplateDtoProvider = "make" | "gohighlevel" | "function"; +export const CreateToolTemplateDtoProvider = { + Make: "make", + Gohighlevel: "gohighlevel", + Function: "function", +} as const; diff --git a/src/api/types/CreateToolTemplateDtoProviderDetails.ts b/src/api/types/CreateToolTemplateDtoProviderDetails.ts new file mode 100644 index 00000000..f6da82a8 --- /dev/null +++ b/src/api/types/CreateToolTemplateDtoProviderDetails.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateToolTemplateDtoProviderDetails = + | Vapi.MakeToolProviderDetails + | Vapi.GhlToolProviderDetails + | Vapi.FunctionToolProviderDetails + | Vapi.GoogleCalendarCreateEventToolProviderDetails + | Vapi.GoogleSheetsRowAppendToolProviderDetails + | Vapi.GoHighLevelCalendarAvailabilityToolProviderDetails + | Vapi.GoHighLevelCalendarEventCreateToolProviderDetails + | Vapi.GoHighLevelContactCreateToolProviderDetails + | Vapi.GoHighLevelContactGetToolProviderDetails; diff --git a/src/api/types/CreateToolTemplateDtoVisibility.ts b/src/api/types/CreateToolTemplateDtoVisibility.ts new file mode 100644 index 00000000..c9c335ff --- /dev/null +++ b/src/api/types/CreateToolTemplateDtoVisibility.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CreateToolTemplateDtoVisibility = "public" | "private"; +export const CreateToolTemplateDtoVisibility = { + Public: "public", + Private: "private", +} as const; diff --git a/src/api/types/CreateTransferCallToolDto.ts b/src/api/types/CreateTransferCallToolDto.ts index b04dff18..42e86a76 100644 --- a/src/api/types/CreateTransferCallToolDto.ts +++ b/src/api/types/CreateTransferCallToolDto.ts @@ -10,10 +10,10 @@ export interface CreateTransferCallToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: CreateTransferCallToolDto.Messages.Item[]; + messages?: Vapi.CreateTransferCallToolDtoMessagesItem[]; type: "transferCall"; /** These are the destinations that the call can be transferred to. If no destinations are provided, server.url will be used to get the transfer destination once the tool is called. */ - destinations?: CreateTransferCallToolDto.Destinations.Item[]; + destinations?: Vapi.CreateTransferCallToolDtoDestinationsItem[]; /** * This is the plan to reject a tool call based on the conversation state. * @@ -96,24 +96,3 @@ export interface CreateTransferCallToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace CreateTransferCallToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } - - export type Destinations = Destinations.Item[]; - - export namespace Destinations { - export type Item = - | Vapi.TransferDestinationAssistant - | Vapi.TransferDestinationNumber - | Vapi.TransferDestinationSip; - } -} diff --git a/src/api/types/CreateTransferCallToolDtoDestinationsItem.ts b/src/api/types/CreateTransferCallToolDtoDestinationsItem.ts new file mode 100644 index 00000000..fd02e05a --- /dev/null +++ b/src/api/types/CreateTransferCallToolDtoDestinationsItem.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateTransferCallToolDtoDestinationsItem = + | Vapi.TransferDestinationAssistant + | Vapi.TransferDestinationNumber + | Vapi.TransferDestinationSip; diff --git a/src/api/types/CreateTransferCallToolDtoMessagesItem.ts b/src/api/types/CreateTransferCallToolDtoMessagesItem.ts new file mode 100644 index 00000000..36e8f8ef --- /dev/null +++ b/src/api/types/CreateTransferCallToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateTransferCallToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/CreateTwilioPhoneNumberDto.ts b/src/api/types/CreateTwilioPhoneNumberDto.ts index 95f726a5..b95d8a21 100644 --- a/src/api/types/CreateTwilioPhoneNumberDto.ts +++ b/src/api/types/CreateTwilioPhoneNumberDto.ts @@ -13,9 +13,9 @@ export interface CreateTwilioPhoneNumberDto { * * If this is not set and above conditions are met, the inbound call is hung up with an error message. */ - fallbackDestination?: CreateTwilioPhoneNumberDto.FallbackDestination; + fallbackDestination?: Vapi.CreateTwilioPhoneNumberDtoFallbackDestination; /** This is the hooks that will be used for incoming calls to this phone number. */ - hooks?: CreateTwilioPhoneNumberDto.Hooks.Item[]; + hooks?: Vapi.CreateTwilioPhoneNumberDtoHooksItem[]; provider: "twilio"; /** * Controls whether Vapi sets the messaging webhook URL on the Twilio number during import. @@ -67,20 +67,3 @@ export interface CreateTwilioPhoneNumberDto { */ server?: Vapi.Server; } - -export namespace CreateTwilioPhoneNumberDto { - /** - * This is the fallback destination an inbound call will be transferred to if: - * 1. `assistantId` is not set - * 2. `squadId` is not set - * 3. and, `assistant-request` message to the `serverUrl` fails - * - * If this is not set and above conditions are met, the inbound call is hung up with an error message. - */ - export type FallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; - export type Hooks = Hooks.Item[]; - - export namespace Hooks { - export type Item = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; - } -} diff --git a/src/api/types/CreateTwilioPhoneNumberDtoFallbackDestination.ts b/src/api/types/CreateTwilioPhoneNumberDtoFallbackDestination.ts new file mode 100644 index 00000000..59563d04 --- /dev/null +++ b/src/api/types/CreateTwilioPhoneNumberDtoFallbackDestination.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the fallback destination an inbound call will be transferred to if: + * 1. `assistantId` is not set + * 2. `squadId` is not set + * 3. and, `assistant-request` message to the `serverUrl` fails + * + * If this is not set and above conditions are met, the inbound call is hung up with an error message. + */ +export type CreateTwilioPhoneNumberDtoFallbackDestination = + | Vapi.TransferDestinationNumber + | Vapi.TransferDestinationSip; diff --git a/src/api/types/CreateTwilioPhoneNumberDtoHooksItem.ts b/src/api/types/CreateTwilioPhoneNumberDtoHooksItem.ts new file mode 100644 index 00000000..94095e7d --- /dev/null +++ b/src/api/types/CreateTwilioPhoneNumberDtoHooksItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateTwilioPhoneNumberDtoHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; diff --git a/src/api/types/CreateVapiPhoneNumberDto.ts b/src/api/types/CreateVapiPhoneNumberDto.ts index 96e89c56..cd103ca4 100644 --- a/src/api/types/CreateVapiPhoneNumberDto.ts +++ b/src/api/types/CreateVapiPhoneNumberDto.ts @@ -13,9 +13,9 @@ export interface CreateVapiPhoneNumberDto { * * If this is not set and above conditions are met, the inbound call is hung up with an error message. */ - fallbackDestination?: CreateVapiPhoneNumberDto.FallbackDestination; + fallbackDestination?: Vapi.CreateVapiPhoneNumberDtoFallbackDestination; /** This is the hooks that will be used for incoming calls to this phone number. */ - hooks?: CreateVapiPhoneNumberDto.Hooks.Item[]; + hooks?: Vapi.CreateVapiPhoneNumberDtoHooksItem[]; provider: "vapi"; /** This is the area code of the phone number to purchase. */ numberDesiredAreaCode?: string; @@ -62,20 +62,3 @@ export interface CreateVapiPhoneNumberDto { */ server?: Vapi.Server; } - -export namespace CreateVapiPhoneNumberDto { - /** - * This is the fallback destination an inbound call will be transferred to if: - * 1. `assistantId` is not set - * 2. `squadId` is not set - * 3. and, `assistant-request` message to the `serverUrl` fails - * - * If this is not set and above conditions are met, the inbound call is hung up with an error message. - */ - export type FallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; - export type Hooks = Hooks.Item[]; - - export namespace Hooks { - export type Item = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; - } -} diff --git a/src/api/types/CreateVapiPhoneNumberDtoFallbackDestination.ts b/src/api/types/CreateVapiPhoneNumberDtoFallbackDestination.ts new file mode 100644 index 00000000..8754417f --- /dev/null +++ b/src/api/types/CreateVapiPhoneNumberDtoFallbackDestination.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the fallback destination an inbound call will be transferred to if: + * 1. `assistantId` is not set + * 2. `squadId` is not set + * 3. and, `assistant-request` message to the `serverUrl` fails + * + * If this is not set and above conditions are met, the inbound call is hung up with an error message. + */ +export type CreateVapiPhoneNumberDtoFallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; diff --git a/src/api/types/CreateVapiPhoneNumberDtoHooksItem.ts b/src/api/types/CreateVapiPhoneNumberDtoHooksItem.ts new file mode 100644 index 00000000..f408d763 --- /dev/null +++ b/src/api/types/CreateVapiPhoneNumberDtoHooksItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateVapiPhoneNumberDtoHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; diff --git a/src/api/types/CreateVoicemailToolDto.ts b/src/api/types/CreateVoicemailToolDto.ts index 5c60d99f..179f9451 100644 --- a/src/api/types/CreateVoicemailToolDto.ts +++ b/src/api/types/CreateVoicemailToolDto.ts @@ -10,7 +10,7 @@ export interface CreateVoicemailToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: CreateVoicemailToolDto.Messages.Item[]; + messages?: Vapi.CreateVoicemailToolDtoMessagesItem[]; /** The type of tool. "voicemail" for Voicemail tool. */ type: "voicemail"; /** @@ -101,15 +101,3 @@ export interface CreateVoicemailToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace CreateVoicemailToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/CreateVoicemailToolDtoMessagesItem.ts b/src/api/types/CreateVoicemailToolDtoMessagesItem.ts new file mode 100644 index 00000000..2fb4b724 --- /dev/null +++ b/src/api/types/CreateVoicemailToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateVoicemailToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/CreateVonagePhoneNumberDto.ts b/src/api/types/CreateVonagePhoneNumberDto.ts index 2695e544..d39a390b 100644 --- a/src/api/types/CreateVonagePhoneNumberDto.ts +++ b/src/api/types/CreateVonagePhoneNumberDto.ts @@ -13,9 +13,9 @@ export interface CreateVonagePhoneNumberDto { * * If this is not set and above conditions are met, the inbound call is hung up with an error message. */ - fallbackDestination?: CreateVonagePhoneNumberDto.FallbackDestination; + fallbackDestination?: Vapi.CreateVonagePhoneNumberDtoFallbackDestination; /** This is the hooks that will be used for incoming calls to this phone number. */ - hooks?: CreateVonagePhoneNumberDto.Hooks.Item[]; + hooks?: Vapi.CreateVonagePhoneNumberDtoHooksItem[]; provider: "vonage"; /** These are the digits of the phone number you own on your Vonage. */ number: string; @@ -52,20 +52,3 @@ export interface CreateVonagePhoneNumberDto { */ server?: Vapi.Server; } - -export namespace CreateVonagePhoneNumberDto { - /** - * This is the fallback destination an inbound call will be transferred to if: - * 1. `assistantId` is not set - * 2. `squadId` is not set - * 3. and, `assistant-request` message to the `serverUrl` fails - * - * If this is not set and above conditions are met, the inbound call is hung up with an error message. - */ - export type FallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; - export type Hooks = Hooks.Item[]; - - export namespace Hooks { - export type Item = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; - } -} diff --git a/src/api/types/CreateVonagePhoneNumberDtoFallbackDestination.ts b/src/api/types/CreateVonagePhoneNumberDtoFallbackDestination.ts new file mode 100644 index 00000000..fda5865d --- /dev/null +++ b/src/api/types/CreateVonagePhoneNumberDtoFallbackDestination.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the fallback destination an inbound call will be transferred to if: + * 1. `assistantId` is not set + * 2. `squadId` is not set + * 3. and, `assistant-request` message to the `serverUrl` fails + * + * If this is not set and above conditions are met, the inbound call is hung up with an error message. + */ +export type CreateVonagePhoneNumberDtoFallbackDestination = + | Vapi.TransferDestinationNumber + | Vapi.TransferDestinationSip; diff --git a/src/api/types/CreateVonagePhoneNumberDtoHooksItem.ts b/src/api/types/CreateVonagePhoneNumberDtoHooksItem.ts new file mode 100644 index 00000000..11b4f4bb --- /dev/null +++ b/src/api/types/CreateVonagePhoneNumberDtoHooksItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateVonagePhoneNumberDtoHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; diff --git a/src/api/types/CreateWebChatDto.ts b/src/api/types/CreateWebChatDto.ts index dd9520bf..5ea76b9a 100644 --- a/src/api/types/CreateWebChatDto.ts +++ b/src/api/types/CreateWebChatDto.ts @@ -27,7 +27,7 @@ export interface CreateWebChatDto { * This is the input text for the chat. * Can be a string or an array of chat messages. */ - input: CreateWebChatDto.Input; + input: Vapi.CreateWebChatDtoInput; /** * This is a flag that determines whether the response should be streamed. * When true, the response will be sent as chunks of text. @@ -40,13 +40,3 @@ export interface CreateWebChatDto { */ sessionEnd?: boolean; } - -export namespace CreateWebChatDto { - /** - * This is the input text for the chat. - * Can be a string or an array of chat messages. - */ - export type Input = - | string - | (Vapi.SystemMessage | Vapi.UserMessage | Vapi.AssistantMessage | Vapi.ToolMessage | Vapi.DeveloperMessage)[]; -} diff --git a/src/api/types/CreateWebChatDtoInput.ts b/src/api/types/CreateWebChatDtoInput.ts new file mode 100644 index 00000000..e1ffaa45 --- /dev/null +++ b/src/api/types/CreateWebChatDtoInput.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the input text for the chat. + * Can be a string or an array of chat messages. + */ +export type CreateWebChatDtoInput = string | Vapi.CreateWebChatDtoInputItem[]; diff --git a/src/api/types/CreateWebChatDtoInputItem.ts b/src/api/types/CreateWebChatDtoInputItem.ts new file mode 100644 index 00000000..b22f49fb --- /dev/null +++ b/src/api/types/CreateWebChatDtoInputItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateWebChatDtoInputItem = + | Vapi.SystemMessage + | Vapi.UserMessage + | Vapi.AssistantMessage + | Vapi.ToolMessage + | Vapi.DeveloperMessage; diff --git a/src/api/types/CreateWebhookCredentialDto.ts b/src/api/types/CreateWebhookCredentialDto.ts index 108c8aed..5a180a8d 100644 --- a/src/api/types/CreateWebhookCredentialDto.ts +++ b/src/api/types/CreateWebhookCredentialDto.ts @@ -7,17 +7,7 @@ import * as Vapi from "../index.js"; export interface CreateWebhookCredentialDto { provider: "webhook"; /** This is the authentication plan. Supports OAuth2 RFC 6749, HMAC signing, and Bearer authentication. */ - authenticationPlan: CreateWebhookCredentialDto.AuthenticationPlan; + authenticationPlan: Vapi.CreateWebhookCredentialDtoAuthenticationPlan; /** This is the name of credential. This is just for your reference. */ name?: string; } - -export namespace CreateWebhookCredentialDto { - /** - * This is the authentication plan. Supports OAuth2 RFC 6749, HMAC signing, and Bearer authentication. - */ - export type AuthenticationPlan = - | Vapi.OAuth2AuthenticationPlan - | Vapi.HmacAuthenticationPlan - | Vapi.BearerAuthenticationPlan; -} diff --git a/src/api/types/CreateWebhookCredentialDtoAuthenticationPlan.ts b/src/api/types/CreateWebhookCredentialDtoAuthenticationPlan.ts new file mode 100644 index 00000000..40109671 --- /dev/null +++ b/src/api/types/CreateWebhookCredentialDtoAuthenticationPlan.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the authentication plan. Supports OAuth2 RFC 6749, HMAC signing, and Bearer authentication. + */ +export type CreateWebhookCredentialDtoAuthenticationPlan = + | Vapi.OAuth2AuthenticationPlan + | Vapi.HmacAuthenticationPlan + | Vapi.BearerAuthenticationPlan; diff --git a/src/api/types/CreateWorkflowDto.ts b/src/api/types/CreateWorkflowDto.ts index 243d6452..fa4aa816 100644 --- a/src/api/types/CreateWorkflowDto.ts +++ b/src/api/types/CreateWorkflowDto.ts @@ -5,25 +5,25 @@ import * as Vapi from "../index.js"; export interface CreateWorkflowDto { - nodes: CreateWorkflowDto.Nodes.Item[]; + nodes: Vapi.CreateWorkflowDtoNodesItem[]; /** * This is the model for the workflow. * * This can be overridden at node level using `nodes[n].model`. */ - model?: CreateWorkflowDto.Model; + model?: Vapi.CreateWorkflowDtoModel; /** * This is the transcriber for the workflow. * * This can be overridden at node level using `nodes[n].transcriber`. */ - transcriber?: CreateWorkflowDto.Transcriber; + transcriber?: Vapi.CreateWorkflowDtoTranscriber; /** * This is the voice for the workflow. * * This can be overridden at node level using `nodes[n].voice`. */ - voice?: CreateWorkflowDto.Voice; + voice?: Vapi.CreateWorkflowDtoVoice; /** * This is the plan for observability of workflow's calls. * @@ -34,13 +34,13 @@ export interface CreateWorkflowDto { * This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. * You can also provide a custom sound by providing a URL to an audio file. */ - backgroundSound?: CreateWorkflowDto.BackgroundSound; + backgroundSound?: Vapi.CreateWorkflowDtoBackgroundSound; /** This is a set of actions that will be performed on certain events. */ - hooks?: CreateWorkflowDto.Hooks.Item[]; + hooks?: Vapi.CreateWorkflowDtoHooksItem[]; /** These are dynamic credentials that will be used for the workflow 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?: CreateWorkflowDto.Credentials.Item[]; + credentials?: Vapi.CreateWorkflowDtoCredentialsItem[]; /** This is the voicemail detection plan for the workflow. */ - voicemailDetection?: CreateWorkflowDto.VoicemailDetection; + voicemailDetection?: Vapi.CreateWorkflowDtoVoicemailDetection; /** * This is the maximum duration of the call in seconds. * @@ -120,142 +120,3 @@ export interface CreateWorkflowDto { */ voicemailMessage?: string; } - -export namespace CreateWorkflowDto { - export type Nodes = Nodes.Item[]; - - export namespace Nodes { - export type Item = Vapi.ConversationNode | Vapi.ToolNode; - } - - /** - * This is the model for the workflow. - * - * This can be overridden at node level using `nodes[n].model`. - */ - export type Model = - | Vapi.WorkflowOpenAiModel - | Vapi.WorkflowAnthropicModel - | Vapi.WorkflowGoogleModel - | Vapi.WorkflowCustomModel; - /** - * This is the transcriber for the workflow. - * - * This can be overridden at node level using `nodes[n].transcriber`. - */ - export type Transcriber = - | Vapi.AssemblyAiTranscriber - | Vapi.AzureSpeechTranscriber - | Vapi.CustomTranscriber - | Vapi.DeepgramTranscriber - | Vapi.ElevenLabsTranscriber - | Vapi.GladiaTranscriber - | Vapi.GoogleTranscriber - | Vapi.SpeechmaticsTranscriber - | Vapi.TalkscriberTranscriber - | Vapi.OpenAiTranscriber - | Vapi.CartesiaTranscriber; - /** - * This is the voice for the workflow. - * - * This can be overridden at node level using `nodes[n].voice`. - */ - export type Voice = - | Vapi.AzureVoice - | Vapi.CartesiaVoice - | Vapi.CustomVoice - | Vapi.DeepgramVoice - | Vapi.ElevenLabsVoice - | Vapi.HumeVoice - | Vapi.LmntVoice - | Vapi.NeuphonicVoice - | Vapi.OpenAiVoice - | Vapi.PlayHtVoice - | Vapi.RimeAiVoice - | Vapi.SmallestAiVoice - | Vapi.TavusVoice - | Vapi.VapiVoice - | Vapi.SesameVoice - | Vapi.InworldVoice - | Vapi.MinimaxVoice; - /** - * This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. - * You can also provide a custom sound by providing a URL to an audio file. - */ - export type BackgroundSound = ("off" | "office") | string; - export type Hooks = Hooks.Item[]; - - export namespace Hooks { - export type Item = - | Vapi.CallHookCallEnding - | Vapi.CallHookAssistantSpeechInterrupted - | Vapi.CallHookCustomerSpeechInterrupted - | Vapi.CallHookCustomerSpeechTimeout; - } - - export type Credentials = Credentials.Item[]; - - export namespace Credentials { - export type Item = - | Vapi.CreateElevenLabsCredentialDto - | Vapi.CreateAnthropicCredentialDto - | Vapi.CreateAnyscaleCredentialDto - | Vapi.CreateAssemblyAiCredentialDto - | Vapi.CreateAzureOpenAiCredentialDto - | Vapi.CreateAzureCredentialDto - | Vapi.CreateByoSipTrunkCredentialDto - | Vapi.CreateCartesiaCredentialDto - | Vapi.CreateCerebrasCredentialDto - | Vapi.CreateCloudflareCredentialDto - | Vapi.CreateCustomLlmCredentialDto - | Vapi.CreateDeepgramCredentialDto - | Vapi.CreateDeepInfraCredentialDto - | Vapi.CreateDeepSeekCredentialDto - | Vapi.CreateGcpCredentialDto - | Vapi.CreateGladiaCredentialDto - | Vapi.CreateGoHighLevelCredentialDto - | Vapi.CreateGoogleCredentialDto - | Vapi.CreateGroqCredentialDto - | Vapi.CreateInflectionAiCredentialDto - | Vapi.CreateLangfuseCredentialDto - | Vapi.CreateLmntCredentialDto - | Vapi.CreateMakeCredentialDto - | Vapi.CreateOpenAiCredentialDto - | Vapi.CreateOpenRouterCredentialDto - | Vapi.CreatePerplexityAiCredentialDto - | Vapi.CreatePlayHtCredentialDto - | Vapi.CreateRimeAiCredentialDto - | Vapi.CreateRunpodCredentialDto - | Vapi.CreateS3CredentialDto - | Vapi.CreateSupabaseCredentialDto - | Vapi.CreateSmallestAiCredentialDto - | Vapi.CreateTavusCredentialDto - | Vapi.CreateTogetherAiCredentialDto - | Vapi.CreateTwilioCredentialDto - | Vapi.CreateVonageCredentialDto - | Vapi.CreateWebhookCredentialDto - | Vapi.CreateCustomCredentialDto - | Vapi.CreateXAiCredentialDto - | Vapi.CreateNeuphonicCredentialDto - | Vapi.CreateHumeCredentialDto - | Vapi.CreateMistralCredentialDto - | Vapi.CreateSpeechmaticsCredentialDto - | Vapi.CreateTrieveCredentialDto - | Vapi.CreateGoogleCalendarOAuth2ClientCredentialDto - | Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDto - | Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDto - | Vapi.CreateSlackOAuth2AuthorizationCredentialDto - | Vapi.CreateGoHighLevelMcpCredentialDto - | Vapi.CreateInworldCredentialDto - | Vapi.CreateMinimaxCredentialDto; - } - - /** - * This is the voicemail detection plan for the workflow. - */ - export type VoicemailDetection = - | Vapi.GoogleVoicemailDetectionPlan - | Vapi.OpenAiVoicemailDetectionPlan - | Vapi.TwilioVoicemailDetectionPlan - | Vapi.VapiVoicemailDetectionPlan; -} diff --git a/src/api/types/CreateWorkflowDtoBackgroundSound.ts b/src/api/types/CreateWorkflowDtoBackgroundSound.ts new file mode 100644 index 00000000..9bd84ebc --- /dev/null +++ b/src/api/types/CreateWorkflowDtoBackgroundSound.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. + * You can also provide a custom sound by providing a URL to an audio file. + */ +export type CreateWorkflowDtoBackgroundSound = Vapi.CreateWorkflowDtoBackgroundSoundZero | string; diff --git a/src/api/types/CreateWorkflowDtoBackgroundSoundZero.ts b/src/api/types/CreateWorkflowDtoBackgroundSoundZero.ts new file mode 100644 index 00000000..c7590159 --- /dev/null +++ b/src/api/types/CreateWorkflowDtoBackgroundSoundZero.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CreateWorkflowDtoBackgroundSoundZero = "off" | "office"; +export const CreateWorkflowDtoBackgroundSoundZero = { + Off: "off", + Office: "office", +} as const; diff --git a/src/api/types/CreateWorkflowDtoCredentialsItem.ts b/src/api/types/CreateWorkflowDtoCredentialsItem.ts new file mode 100644 index 00000000..8f87651c --- /dev/null +++ b/src/api/types/CreateWorkflowDtoCredentialsItem.ts @@ -0,0 +1,58 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateWorkflowDtoCredentialsItem = + | Vapi.CreateElevenLabsCredentialDto + | Vapi.CreateAnthropicCredentialDto + | Vapi.CreateAnyscaleCredentialDto + | Vapi.CreateAssemblyAiCredentialDto + | Vapi.CreateAzureOpenAiCredentialDto + | Vapi.CreateAzureCredentialDto + | Vapi.CreateByoSipTrunkCredentialDto + | Vapi.CreateCartesiaCredentialDto + | Vapi.CreateCerebrasCredentialDto + | Vapi.CreateCloudflareCredentialDto + | Vapi.CreateCustomLlmCredentialDto + | Vapi.CreateDeepgramCredentialDto + | Vapi.CreateDeepInfraCredentialDto + | Vapi.CreateDeepSeekCredentialDto + | Vapi.CreateGcpCredentialDto + | Vapi.CreateGladiaCredentialDto + | Vapi.CreateGoHighLevelCredentialDto + | Vapi.CreateGoogleCredentialDto + | Vapi.CreateGroqCredentialDto + | Vapi.CreateInflectionAiCredentialDto + | Vapi.CreateLangfuseCredentialDto + | Vapi.CreateLmntCredentialDto + | Vapi.CreateMakeCredentialDto + | Vapi.CreateOpenAiCredentialDto + | Vapi.CreateOpenRouterCredentialDto + | Vapi.CreatePerplexityAiCredentialDto + | Vapi.CreatePlayHtCredentialDto + | Vapi.CreateRimeAiCredentialDto + | Vapi.CreateRunpodCredentialDto + | Vapi.CreateS3CredentialDto + | Vapi.CreateSupabaseCredentialDto + | Vapi.CreateSmallestAiCredentialDto + | Vapi.CreateTavusCredentialDto + | Vapi.CreateTogetherAiCredentialDto + | Vapi.CreateTwilioCredentialDto + | Vapi.CreateVonageCredentialDto + | Vapi.CreateWebhookCredentialDto + | Vapi.CreateCustomCredentialDto + | Vapi.CreateXAiCredentialDto + | Vapi.CreateNeuphonicCredentialDto + | Vapi.CreateHumeCredentialDto + | Vapi.CreateMistralCredentialDto + | Vapi.CreateSpeechmaticsCredentialDto + | Vapi.CreateTrieveCredentialDto + | Vapi.CreateGoogleCalendarOAuth2ClientCredentialDto + | Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDto + | Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDto + | Vapi.CreateSlackOAuth2AuthorizationCredentialDto + | Vapi.CreateGoHighLevelMcpCredentialDto + | Vapi.CreateInworldCredentialDto + | Vapi.CreateMinimaxCredentialDto; diff --git a/src/api/types/CreateWorkflowDtoHooksItem.ts b/src/api/types/CreateWorkflowDtoHooksItem.ts new file mode 100644 index 00000000..e5672138 --- /dev/null +++ b/src/api/types/CreateWorkflowDtoHooksItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateWorkflowDtoHooksItem = + | Vapi.CallHookCallEnding + | Vapi.CallHookAssistantSpeechInterrupted + | Vapi.CallHookCustomerSpeechInterrupted + | Vapi.CallHookCustomerSpeechTimeout; diff --git a/src/api/types/CreateWorkflowDtoModel.ts b/src/api/types/CreateWorkflowDtoModel.ts new file mode 100644 index 00000000..cf99ba3c --- /dev/null +++ b/src/api/types/CreateWorkflowDtoModel.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the model for the workflow. + * + * This can be overridden at node level using `nodes[n].model`. + */ +export type CreateWorkflowDtoModel = + | Vapi.WorkflowOpenAiModel + | Vapi.WorkflowAnthropicModel + | Vapi.WorkflowGoogleModel + | Vapi.WorkflowCustomModel; diff --git a/src/api/types/CreateWorkflowDtoNodesItem.ts b/src/api/types/CreateWorkflowDtoNodesItem.ts new file mode 100644 index 00000000..f8496b8f --- /dev/null +++ b/src/api/types/CreateWorkflowDtoNodesItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CreateWorkflowDtoNodesItem = Vapi.ConversationNode | Vapi.ToolNode; diff --git a/src/api/types/CreateWorkflowDtoTranscriber.ts b/src/api/types/CreateWorkflowDtoTranscriber.ts new file mode 100644 index 00000000..0013bac0 --- /dev/null +++ b/src/api/types/CreateWorkflowDtoTranscriber.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the transcriber for the workflow. + * + * This can be overridden at node level using `nodes[n].transcriber`. + */ +export type CreateWorkflowDtoTranscriber = + | Vapi.AssemblyAiTranscriber + | Vapi.AzureSpeechTranscriber + | Vapi.CustomTranscriber + | Vapi.DeepgramTranscriber + | Vapi.ElevenLabsTranscriber + | Vapi.GladiaTranscriber + | Vapi.GoogleTranscriber + | Vapi.SpeechmaticsTranscriber + | Vapi.TalkscriberTranscriber + | Vapi.OpenAiTranscriber + | Vapi.CartesiaTranscriber; diff --git a/src/api/types/CreateWorkflowDtoVoice.ts b/src/api/types/CreateWorkflowDtoVoice.ts new file mode 100644 index 00000000..89ace574 --- /dev/null +++ b/src/api/types/CreateWorkflowDtoVoice.ts @@ -0,0 +1,29 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the voice for the workflow. + * + * This can be overridden at node level using `nodes[n].voice`. + */ +export type CreateWorkflowDtoVoice = + | Vapi.AzureVoice + | Vapi.CartesiaVoice + | Vapi.CustomVoice + | Vapi.DeepgramVoice + | Vapi.ElevenLabsVoice + | Vapi.HumeVoice + | Vapi.LmntVoice + | Vapi.NeuphonicVoice + | Vapi.OpenAiVoice + | Vapi.PlayHtVoice + | Vapi.RimeAiVoice + | Vapi.SmallestAiVoice + | Vapi.TavusVoice + | Vapi.VapiVoice + | Vapi.SesameVoice + | Vapi.InworldVoice + | Vapi.MinimaxVoice; diff --git a/src/api/types/CreateWorkflowDtoVoicemailDetection.ts b/src/api/types/CreateWorkflowDtoVoicemailDetection.ts new file mode 100644 index 00000000..e876cb6b --- /dev/null +++ b/src/api/types/CreateWorkflowDtoVoicemailDetection.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the voicemail detection plan for the workflow. + */ +export type CreateWorkflowDtoVoicemailDetection = + | Vapi.GoogleVoicemailDetectionPlan + | Vapi.OpenAiVoicemailDetectionPlan + | Vapi.TwilioVoicemailDetectionPlan + | Vapi.VapiVoicemailDetectionPlan; diff --git a/src/api/types/CredentialWebhookDto.ts b/src/api/types/CredentialWebhookDto.ts index e787005f..4a333b7c 100644 --- a/src/api/types/CredentialWebhookDto.ts +++ b/src/api/types/CredentialWebhookDto.ts @@ -5,11 +5,11 @@ import * as Vapi from "../index.js"; export interface CredentialWebhookDto { - type: CredentialWebhookDto.Type; - operation: CredentialWebhookDto.Operation; + type: Vapi.CredentialWebhookDtoType; + operation: Vapi.CredentialWebhookDtoOperation; from: string; connectionId: string; - authMode: CredentialWebhookDto.AuthMode; + authMode: Vapi.CredentialWebhookDtoAuthMode; providerConfigKey: string; provider: string; environment: string; @@ -17,24 +17,3 @@ export interface CredentialWebhookDto { endUser: Vapi.CredentialEndUser; error?: Vapi.CredentialSessionError; } - -export namespace CredentialWebhookDto { - export type Type = "auth" | "sync" | "forward"; - export const Type = { - Auth: "auth", - Sync: "sync", - Forward: "forward", - } as const; - export type Operation = "creation" | "override" | "refresh"; - export const Operation = { - Creation: "creation", - Override: "override", - Refresh: "refresh", - } as const; - export type AuthMode = "OAUTH2" | "API_KEY" | "BASIC"; - export const AuthMode = { - Oauth2: "OAUTH2", - ApiKey: "API_KEY", - Basic: "BASIC", - } as const; -} diff --git a/src/api/types/CredentialWebhookDtoAuthMode.ts b/src/api/types/CredentialWebhookDtoAuthMode.ts new file mode 100644 index 00000000..3f40d4ef --- /dev/null +++ b/src/api/types/CredentialWebhookDtoAuthMode.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CredentialWebhookDtoAuthMode = "OAUTH2" | "API_KEY" | "BASIC"; +export const CredentialWebhookDtoAuthMode = { + Oauth2: "OAUTH2", + ApiKey: "API_KEY", + Basic: "BASIC", +} as const; diff --git a/src/api/types/CredentialWebhookDtoOperation.ts b/src/api/types/CredentialWebhookDtoOperation.ts new file mode 100644 index 00000000..b35f3b98 --- /dev/null +++ b/src/api/types/CredentialWebhookDtoOperation.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CredentialWebhookDtoOperation = "creation" | "override" | "refresh"; +export const CredentialWebhookDtoOperation = { + Creation: "creation", + Override: "override", + Refresh: "refresh", +} as const; diff --git a/src/api/types/CredentialWebhookDtoType.ts b/src/api/types/CredentialWebhookDtoType.ts new file mode 100644 index 00000000..fdb47fbc --- /dev/null +++ b/src/api/types/CredentialWebhookDtoType.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CredentialWebhookDtoType = "auth" | "sync" | "forward"; +export const CredentialWebhookDtoType = { + Auth: "auth", + Sync: "sync", + Forward: "forward", +} as const; diff --git a/src/api/types/CustomCredential.ts b/src/api/types/CustomCredential.ts index 84ee8d36..944fac45 100644 --- a/src/api/types/CustomCredential.ts +++ b/src/api/types/CustomCredential.ts @@ -7,7 +7,7 @@ import * as Vapi from "../index.js"; export interface CustomCredential { provider: "custom-credential"; /** This is the authentication plan. Supports OAuth2 RFC 6749, HMAC signing, and Bearer authentication. */ - authenticationPlan: CustomCredential.AuthenticationPlan; + authenticationPlan: Vapi.CustomCredentialAuthenticationPlan; /** This is the unique identifier for the credential. */ id: string; /** This is the unique identifier for the org that this credential belongs to. */ @@ -21,13 +21,3 @@ export interface CustomCredential { /** This is the name of credential. This is just for your reference. */ name?: string; } - -export namespace CustomCredential { - /** - * This is the authentication plan. Supports OAuth2 RFC 6749, HMAC signing, and Bearer authentication. - */ - export type AuthenticationPlan = - | Vapi.OAuth2AuthenticationPlan - | Vapi.HmacAuthenticationPlan - | Vapi.BearerAuthenticationPlan; -} diff --git a/src/api/types/CustomCredentialAuthenticationPlan.ts b/src/api/types/CustomCredentialAuthenticationPlan.ts new file mode 100644 index 00000000..cf8cdf37 --- /dev/null +++ b/src/api/types/CustomCredentialAuthenticationPlan.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the authentication plan. Supports OAuth2 RFC 6749, HMAC signing, and Bearer authentication. + */ +export type CustomCredentialAuthenticationPlan = + | Vapi.OAuth2AuthenticationPlan + | Vapi.HmacAuthenticationPlan + | Vapi.BearerAuthenticationPlan; diff --git a/src/api/types/CustomEndpointingModelSmartEndpointingPlan.ts b/src/api/types/CustomEndpointingModelSmartEndpointingPlan.ts index 7238d989..dd5221c0 100644 --- a/src/api/types/CustomEndpointingModelSmartEndpointingPlan.ts +++ b/src/api/types/CustomEndpointingModelSmartEndpointingPlan.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface CustomEndpointingModelSmartEndpointingPlan { /** This is the provider for the smart endpointing plan. Use `custom-endpointing-model` for custom endpointing providers that are not natively supported. */ - provider: CustomEndpointingModelSmartEndpointingPlan.Provider; + provider: Vapi.CustomEndpointingModelSmartEndpointingPlanProvider; /** * This is where the endpointing request will be sent. If not provided, will be sent to `assistant.server`. If that does not exist either, will be sent to `org.server`. * @@ -39,15 +39,3 @@ export interface CustomEndpointingModelSmartEndpointingPlan { */ server?: Vapi.Server; } - -export namespace CustomEndpointingModelSmartEndpointingPlan { - /** - * This is the provider for the smart endpointing plan. Use `custom-endpointing-model` for custom endpointing providers that are not natively supported. - */ - export type Provider = "vapi" | "livekit" | "custom-endpointing-model"; - export const Provider = { - Vapi: "vapi", - Livekit: "livekit", - CustomEndpointingModel: "custom-endpointing-model", - } as const; -} diff --git a/src/api/types/CustomEndpointingModelSmartEndpointingPlanProvider.ts b/src/api/types/CustomEndpointingModelSmartEndpointingPlanProvider.ts new file mode 100644 index 00000000..5cb535ef --- /dev/null +++ b/src/api/types/CustomEndpointingModelSmartEndpointingPlanProvider.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the provider for the smart endpointing plan. Use `custom-endpointing-model` for custom endpointing providers that are not natively supported. + */ +export type CustomEndpointingModelSmartEndpointingPlanProvider = "vapi" | "livekit" | "custom-endpointing-model"; +export const CustomEndpointingModelSmartEndpointingPlanProvider = { + Vapi: "vapi", + Livekit: "livekit", + CustomEndpointingModel: "custom-endpointing-model", +} as const; diff --git a/src/api/types/CustomLlmModel.ts b/src/api/types/CustomLlmModel.ts index bda37266..ea74ced3 100644 --- a/src/api/types/CustomLlmModel.ts +++ b/src/api/types/CustomLlmModel.ts @@ -12,7 +12,7 @@ export interface CustomLlmModel { * * Both `tools` and `toolIds` can be used together. */ - tools?: CustomLlmModel.Tools.Item[]; + tools?: Vapi.CustomLlmModelToolsItem[]; /** * These are the tools that the assistant can use during the call. To use transient tools, use `tools`. * @@ -34,7 +34,7 @@ export interface CustomLlmModel { * * Default is `variable`. */ - metadataSendMode?: CustomLlmModel.MetadataSendMode; + metadataSendMode?: Vapi.CustomLlmModelMetadataSendMode; /** Custom headers to send with requests. These headers can override default OpenAI headers except for Authorization (which should be specified using a custom-llm credential). */ headers?: Record; /** These is the URL we'll use for the OpenAI client's `baseURL`. Ex. https://openrouter.ai/api/v1 */ @@ -69,49 +69,3 @@ export interface CustomLlmModel { */ numFastTurns?: number; } - -export namespace CustomLlmModel { - export type Tools = Tools.Item[]; - - export namespace Tools { - export type Item = - | Vapi.CreateApiRequestToolDto - | Vapi.CreateBashToolDto - | Vapi.CreateComputerToolDto - | Vapi.CreateDtmfToolDto - | Vapi.CreateEndCallToolDto - | Vapi.CreateFunctionToolDto - | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto - | Vapi.CreateGoHighLevelCalendarEventCreateToolDto - | Vapi.CreateGoHighLevelContactCreateToolDto - | Vapi.CreateGoHighLevelContactGetToolDto - | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto - | Vapi.CreateGoogleCalendarCreateEventToolDto - | Vapi.CreateGoogleSheetsRowAppendToolDto - | Vapi.CreateHandoffToolDto - | Vapi.CreateMcpToolDto - | Vapi.CreateQueryToolDto - | Vapi.CreateSlackSendMessageToolDto - | Vapi.CreateSmsToolDto - | Vapi.CreateTextEditorToolDto - | Vapi.CreateTransferCallToolDto; - } - - /** - * This determines whether metadata is sent in requests to the custom provider. - * - * - `off` will not send any metadata. payload will look like `{ messages }` - * - `variable` will send `assistant.metadata` as a variable on the payload. payload will look like `{ messages, metadata }` - * - `destructured` will send `assistant.metadata` fields directly on the payload. payload will look like `{ messages, ...metadata }` - * - * Further, `variable` and `destructured` will send `call`, `phoneNumber`, and `customer` objects in the payload. - * - * Default is `variable`. - */ - export type MetadataSendMode = "off" | "variable" | "destructured"; - export const MetadataSendMode = { - Off: "off", - Variable: "variable", - Destructured: "destructured", - } as const; -} diff --git a/src/api/types/CustomLlmModelMetadataSendMode.ts b/src/api/types/CustomLlmModelMetadataSendMode.ts new file mode 100644 index 00000000..f84b21b3 --- /dev/null +++ b/src/api/types/CustomLlmModelMetadataSendMode.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This determines whether metadata is sent in requests to the custom provider. + * + * - `off` will not send any metadata. payload will look like `{ messages }` + * - `variable` will send `assistant.metadata` as a variable on the payload. payload will look like `{ messages, metadata }` + * - `destructured` will send `assistant.metadata` fields directly on the payload. payload will look like `{ messages, ...metadata }` + * + * Further, `variable` and `destructured` will send `call`, `phoneNumber`, and `customer` objects in the payload. + * + * Default is `variable`. + */ +export type CustomLlmModelMetadataSendMode = "off" | "variable" | "destructured"; +export const CustomLlmModelMetadataSendMode = { + Off: "off", + Variable: "variable", + Destructured: "destructured", +} as const; diff --git a/src/api/types/CustomLlmModelToolsItem.ts b/src/api/types/CustomLlmModelToolsItem.ts new file mode 100644 index 00000000..fcf423b9 --- /dev/null +++ b/src/api/types/CustomLlmModelToolsItem.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type CustomLlmModelToolsItem = + | Vapi.CreateApiRequestToolDto + | Vapi.CreateBashToolDto + | Vapi.CreateComputerToolDto + | Vapi.CreateDtmfToolDto + | Vapi.CreateEndCallToolDto + | Vapi.CreateFunctionToolDto + | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto + | Vapi.CreateGoHighLevelCalendarEventCreateToolDto + | Vapi.CreateGoHighLevelContactCreateToolDto + | Vapi.CreateGoHighLevelContactGetToolDto + | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto + | Vapi.CreateGoogleCalendarCreateEventToolDto + | Vapi.CreateGoogleSheetsRowAppendToolDto + | Vapi.CreateHandoffToolDto + | Vapi.CreateMcpToolDto + | Vapi.CreateQueryToolDto + | Vapi.CreateSlackSendMessageToolDto + | Vapi.CreateSmsToolDto + | Vapi.CreateTextEditorToolDto + | Vapi.CreateTransferCallToolDto; diff --git a/src/api/types/DeepInfraModel.ts b/src/api/types/DeepInfraModel.ts index 48abdf63..3328c76a 100644 --- a/src/api/types/DeepInfraModel.ts +++ b/src/api/types/DeepInfraModel.ts @@ -12,7 +12,7 @@ export interface DeepInfraModel { * * Both `tools` and `toolIds` can be used together. */ - tools?: DeepInfraModel.Tools.Item[]; + tools?: Vapi.DeepInfraModelToolsItem[]; /** * These are the tools that the assistant can use during the call. To use transient tools, use `tools`. * @@ -45,31 +45,3 @@ export interface DeepInfraModel { */ numFastTurns?: number; } - -export namespace DeepInfraModel { - export type Tools = Tools.Item[]; - - export namespace Tools { - export type Item = - | Vapi.CreateApiRequestToolDto - | Vapi.CreateBashToolDto - | Vapi.CreateComputerToolDto - | Vapi.CreateDtmfToolDto - | Vapi.CreateEndCallToolDto - | Vapi.CreateFunctionToolDto - | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto - | Vapi.CreateGoHighLevelCalendarEventCreateToolDto - | Vapi.CreateGoHighLevelContactCreateToolDto - | Vapi.CreateGoHighLevelContactGetToolDto - | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto - | Vapi.CreateGoogleCalendarCreateEventToolDto - | Vapi.CreateGoogleSheetsRowAppendToolDto - | Vapi.CreateHandoffToolDto - | Vapi.CreateMcpToolDto - | Vapi.CreateQueryToolDto - | Vapi.CreateSlackSendMessageToolDto - | Vapi.CreateSmsToolDto - | Vapi.CreateTextEditorToolDto - | Vapi.CreateTransferCallToolDto; - } -} diff --git a/src/api/types/DeepInfraModelToolsItem.ts b/src/api/types/DeepInfraModelToolsItem.ts new file mode 100644 index 00000000..03113739 --- /dev/null +++ b/src/api/types/DeepInfraModelToolsItem.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type DeepInfraModelToolsItem = + | Vapi.CreateApiRequestToolDto + | Vapi.CreateBashToolDto + | Vapi.CreateComputerToolDto + | Vapi.CreateDtmfToolDto + | Vapi.CreateEndCallToolDto + | Vapi.CreateFunctionToolDto + | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto + | Vapi.CreateGoHighLevelCalendarEventCreateToolDto + | Vapi.CreateGoHighLevelContactCreateToolDto + | Vapi.CreateGoHighLevelContactGetToolDto + | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto + | Vapi.CreateGoogleCalendarCreateEventToolDto + | Vapi.CreateGoogleSheetsRowAppendToolDto + | Vapi.CreateHandoffToolDto + | Vapi.CreateMcpToolDto + | Vapi.CreateQueryToolDto + | Vapi.CreateSlackSendMessageToolDto + | Vapi.CreateSmsToolDto + | Vapi.CreateTextEditorToolDto + | Vapi.CreateTransferCallToolDto; diff --git a/src/api/types/DeepSeekModel.ts b/src/api/types/DeepSeekModel.ts index 1c973646..ec87bcea 100644 --- a/src/api/types/DeepSeekModel.ts +++ b/src/api/types/DeepSeekModel.ts @@ -12,7 +12,7 @@ export interface DeepSeekModel { * * Both `tools` and `toolIds` can be used together. */ - tools?: DeepSeekModel.Tools.Item[]; + tools?: Vapi.DeepSeekModelToolsItem[]; /** * These are the tools that the assistant can use during the call. To use transient tools, use `tools`. * @@ -22,7 +22,7 @@ export interface DeepSeekModel { /** These are the options for the knowledge base. */ knowledgeBase?: Vapi.CreateCustomKnowledgeBaseDto; /** This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b */ - model: DeepSeekModel.Model; + model: Vapi.DeepSeekModelModel; provider: "deep-seek"; /** This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency. */ temperature?: number; @@ -45,40 +45,3 @@ export interface DeepSeekModel { */ numFastTurns?: number; } - -export namespace DeepSeekModel { - export type Tools = Tools.Item[]; - - export namespace Tools { - export type Item = - | Vapi.CreateApiRequestToolDto - | Vapi.CreateBashToolDto - | Vapi.CreateComputerToolDto - | Vapi.CreateDtmfToolDto - | Vapi.CreateEndCallToolDto - | Vapi.CreateFunctionToolDto - | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto - | Vapi.CreateGoHighLevelCalendarEventCreateToolDto - | Vapi.CreateGoHighLevelContactCreateToolDto - | Vapi.CreateGoHighLevelContactGetToolDto - | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto - | Vapi.CreateGoogleCalendarCreateEventToolDto - | Vapi.CreateGoogleSheetsRowAppendToolDto - | Vapi.CreateHandoffToolDto - | Vapi.CreateMcpToolDto - | Vapi.CreateQueryToolDto - | Vapi.CreateSlackSendMessageToolDto - | Vapi.CreateSmsToolDto - | Vapi.CreateTextEditorToolDto - | Vapi.CreateTransferCallToolDto; - } - - /** - * This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b - */ - export type Model = "deepseek-chat" | "deepseek-reasoner"; - export const Model = { - DeepseekChat: "deepseek-chat", - DeepseekReasoner: "deepseek-reasoner", - } as const; -} diff --git a/src/api/types/DeepSeekModelModel.ts b/src/api/types/DeepSeekModelModel.ts new file mode 100644 index 00000000..3a57a0c3 --- /dev/null +++ b/src/api/types/DeepSeekModelModel.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b + */ +export type DeepSeekModelModel = "deepseek-chat" | "deepseek-reasoner"; +export const DeepSeekModelModel = { + DeepseekChat: "deepseek-chat", + DeepseekReasoner: "deepseek-reasoner", +} as const; diff --git a/src/api/types/DeepSeekModelToolsItem.ts b/src/api/types/DeepSeekModelToolsItem.ts new file mode 100644 index 00000000..600b8429 --- /dev/null +++ b/src/api/types/DeepSeekModelToolsItem.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type DeepSeekModelToolsItem = + | Vapi.CreateApiRequestToolDto + | Vapi.CreateBashToolDto + | Vapi.CreateComputerToolDto + | Vapi.CreateDtmfToolDto + | Vapi.CreateEndCallToolDto + | Vapi.CreateFunctionToolDto + | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto + | Vapi.CreateGoHighLevelCalendarEventCreateToolDto + | Vapi.CreateGoHighLevelContactCreateToolDto + | Vapi.CreateGoHighLevelContactGetToolDto + | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto + | Vapi.CreateGoogleCalendarCreateEventToolDto + | Vapi.CreateGoogleSheetsRowAppendToolDto + | Vapi.CreateHandoffToolDto + | Vapi.CreateMcpToolDto + | Vapi.CreateQueryToolDto + | Vapi.CreateSlackSendMessageToolDto + | Vapi.CreateSmsToolDto + | Vapi.CreateTextEditorToolDto + | Vapi.CreateTransferCallToolDto; diff --git a/src/api/types/DeepgramVoice.ts b/src/api/types/DeepgramVoice.ts index db2c2125..5501d850 100644 --- a/src/api/types/DeepgramVoice.ts +++ b/src/api/types/DeepgramVoice.ts @@ -10,9 +10,9 @@ export interface DeepgramVoice { /** This is the voice provider that will be used. */ provider: "deepgram"; /** This is the provider-specific ID that will be used. */ - voiceId: DeepgramVoice.VoiceId; + voiceId: Vapi.DeepgramVoiceId; /** This is the model that will be used. Defaults to 'aura-2' when not specified. */ - model?: DeepgramVoice.Model; + model?: Vapi.DeepgramVoiceModel; /** * If set to true, this will add mip_opt_out=true as a query parameter of all API requests. See https://developers.deepgram.com/docs/the-deepgram-model-improvement-partnership-program#want-to-opt-out * @@ -26,130 +26,3 @@ export interface DeepgramVoice { /** This is the plan for voice provider fallbacks in the event that the primary voice provider fails. */ fallbackPlan?: Vapi.FallbackPlan; } - -export namespace DeepgramVoice { - /** - * This is the provider-specific ID that will be used. - */ - export type VoiceId = - | "asteria" - | "luna" - | "stella" - | "athena" - | "hera" - | "orion" - | "arcas" - | "perseus" - | "angus" - | "orpheus" - | "helios" - | "zeus" - | "thalia" - | "andromeda" - | "helena" - | "apollo" - | "aries" - | "amalthea" - | "atlas" - | "aurora" - | "callista" - | "cora" - | "cordelia" - | "delia" - | "draco" - | "electra" - | "harmonia" - | "hermes" - | "hyperion" - | "iris" - | "janus" - | "juno" - | "jupiter" - | "mars" - | "minerva" - | "neptune" - | "odysseus" - | "ophelia" - | "pandora" - | "phoebe" - | "pluto" - | "saturn" - | "selene" - | "theia" - | "vesta" - | "celeste" - | "estrella" - | "nestor" - | "sirio" - | "carina" - | "alvaro" - | "diana" - | "aquila" - | "selena" - | "javier"; - export const VoiceId = { - Asteria: "asteria", - Luna: "luna", - Stella: "stella", - Athena: "athena", - Hera: "hera", - Orion: "orion", - Arcas: "arcas", - Perseus: "perseus", - Angus: "angus", - Orpheus: "orpheus", - Helios: "helios", - Zeus: "zeus", - Thalia: "thalia", - Andromeda: "andromeda", - Helena: "helena", - Apollo: "apollo", - Aries: "aries", - Amalthea: "amalthea", - Atlas: "atlas", - Aurora: "aurora", - Callista: "callista", - Cora: "cora", - Cordelia: "cordelia", - Delia: "delia", - Draco: "draco", - Electra: "electra", - Harmonia: "harmonia", - Hermes: "hermes", - Hyperion: "hyperion", - Iris: "iris", - Janus: "janus", - Juno: "juno", - Jupiter: "jupiter", - Mars: "mars", - Minerva: "minerva", - Neptune: "neptune", - Odysseus: "odysseus", - Ophelia: "ophelia", - Pandora: "pandora", - Phoebe: "phoebe", - Pluto: "pluto", - Saturn: "saturn", - Selene: "selene", - Theia: "theia", - Vesta: "vesta", - Celeste: "celeste", - Estrella: "estrella", - Nestor: "nestor", - Sirio: "sirio", - Carina: "carina", - Alvaro: "alvaro", - Diana: "diana", - Aquila: "aquila", - Selena: "selena", - Javier: "javier", - } as const; - /** - * This is the model that will be used. Defaults to 'aura-2' when not specified. - */ - export type Model = "aura" | "aura-2"; - export const Model = { - Aura: "aura", - Aura2: "aura-2", - } as const; -} diff --git a/src/api/types/DeepgramVoiceId.ts b/src/api/types/DeepgramVoiceId.ts new file mode 100644 index 00000000..f311adcc --- /dev/null +++ b/src/api/types/DeepgramVoiceId.ts @@ -0,0 +1,120 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the provider-specific ID that will be used. + */ +export type DeepgramVoiceId = + | "asteria" + | "luna" + | "stella" + | "athena" + | "hera" + | "orion" + | "arcas" + | "perseus" + | "angus" + | "orpheus" + | "helios" + | "zeus" + | "thalia" + | "andromeda" + | "helena" + | "apollo" + | "aries" + | "amalthea" + | "atlas" + | "aurora" + | "callista" + | "cora" + | "cordelia" + | "delia" + | "draco" + | "electra" + | "harmonia" + | "hermes" + | "hyperion" + | "iris" + | "janus" + | "juno" + | "jupiter" + | "mars" + | "minerva" + | "neptune" + | "odysseus" + | "ophelia" + | "pandora" + | "phoebe" + | "pluto" + | "saturn" + | "selene" + | "theia" + | "vesta" + | "celeste" + | "estrella" + | "nestor" + | "sirio" + | "carina" + | "alvaro" + | "diana" + | "aquila" + | "selena" + | "javier"; +export const DeepgramVoiceId = { + Asteria: "asteria", + Luna: "luna", + Stella: "stella", + Athena: "athena", + Hera: "hera", + Orion: "orion", + Arcas: "arcas", + Perseus: "perseus", + Angus: "angus", + Orpheus: "orpheus", + Helios: "helios", + Zeus: "zeus", + Thalia: "thalia", + Andromeda: "andromeda", + Helena: "helena", + Apollo: "apollo", + Aries: "aries", + Amalthea: "amalthea", + Atlas: "atlas", + Aurora: "aurora", + Callista: "callista", + Cora: "cora", + Cordelia: "cordelia", + Delia: "delia", + Draco: "draco", + Electra: "electra", + Harmonia: "harmonia", + Hermes: "hermes", + Hyperion: "hyperion", + Iris: "iris", + Janus: "janus", + Juno: "juno", + Jupiter: "jupiter", + Mars: "mars", + Minerva: "minerva", + Neptune: "neptune", + Odysseus: "odysseus", + Ophelia: "ophelia", + Pandora: "pandora", + Phoebe: "phoebe", + Pluto: "pluto", + Saturn: "saturn", + Selene: "selene", + Theia: "theia", + Vesta: "vesta", + Celeste: "celeste", + Estrella: "estrella", + Nestor: "nestor", + Sirio: "sirio", + Carina: "carina", + Alvaro: "alvaro", + Diana: "diana", + Aquila: "aquila", + Selena: "selena", + Javier: "javier", +} as const; diff --git a/src/api/types/DeepgramVoiceModel.ts b/src/api/types/DeepgramVoiceModel.ts new file mode 100644 index 00000000..8e14ffb8 --- /dev/null +++ b/src/api/types/DeepgramVoiceModel.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the model that will be used. Defaults to 'aura-2' when not specified. + */ +export type DeepgramVoiceModel = "aura" | "aura-2"; +export const DeepgramVoiceModel = { + Aura: "aura", + Aura2: "aura-2", +} as const; diff --git a/src/api/types/DtmfTool.ts b/src/api/types/DtmfTool.ts index 6ae69d84..16f86438 100644 --- a/src/api/types/DtmfTool.ts +++ b/src/api/types/DtmfTool.ts @@ -10,7 +10,7 @@ export interface DtmfTool { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: DtmfTool.Messages.Item[]; + messages?: Vapi.DtmfToolMessagesItem[]; type: "dtmf"; /** This is the unique identifier for the tool. */ id: string; @@ -102,15 +102,3 @@ export interface DtmfTool { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace DtmfTool { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/DtmfToolMessagesItem.ts b/src/api/types/DtmfToolMessagesItem.ts new file mode 100644 index 00000000..d477252a --- /dev/null +++ b/src/api/types/DtmfToolMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type DtmfToolMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/ElevenLabsPronunciationDictionary.ts b/src/api/types/ElevenLabsPronunciationDictionary.ts index 84525501..4f01bb8d 100644 --- a/src/api/types/ElevenLabsPronunciationDictionary.ts +++ b/src/api/types/ElevenLabsPronunciationDictionary.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface ElevenLabsPronunciationDictionary { /** The ID of the pronunciation dictionary */ pronunciationDictionaryId: string; @@ -16,19 +18,7 @@ export interface ElevenLabsPronunciationDictionary { /** The number of rules in this version */ versionRulesNum: number; /** The permission level on this resource */ - permissionOnResource?: ElevenLabsPronunciationDictionary.PermissionOnResource; + permissionOnResource?: Vapi.ElevenLabsPronunciationDictionaryPermissionOnResource; /** The description of the pronunciation dictionary */ description?: string; } - -export namespace ElevenLabsPronunciationDictionary { - /** - * The permission level on this resource - */ - export type PermissionOnResource = "admin" | "editor" | "viewer"; - export const PermissionOnResource = { - Admin: "admin", - Editor: "editor", - Viewer: "viewer", - } as const; -} diff --git a/src/api/types/ElevenLabsPronunciationDictionaryPermissionOnResource.ts b/src/api/types/ElevenLabsPronunciationDictionaryPermissionOnResource.ts new file mode 100644 index 00000000..3216d699 --- /dev/null +++ b/src/api/types/ElevenLabsPronunciationDictionaryPermissionOnResource.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * The permission level on this resource + */ +export type ElevenLabsPronunciationDictionaryPermissionOnResource = "admin" | "editor" | "viewer"; +export const ElevenLabsPronunciationDictionaryPermissionOnResource = { + Admin: "admin", + Editor: "editor", + Viewer: "viewer", +} as const; diff --git a/src/api/types/ElevenLabsTranscriber.ts b/src/api/types/ElevenLabsTranscriber.ts index 4c5cde62..8b948bdc 100644 --- a/src/api/types/ElevenLabsTranscriber.ts +++ b/src/api/types/ElevenLabsTranscriber.ts @@ -9,383 +9,7 @@ export interface ElevenLabsTranscriber { provider: "11labs"; /** This is the model that will be used for the transcription. */ model?: "scribe_v1"; - language?: ElevenLabsTranscriber.Language; + language?: Vapi.ElevenLabsTranscriberLanguage; /** This is the plan for voice provider fallbacks in the event that the primary voice provider fails. */ fallbackPlan?: Vapi.FallbackTranscriberPlan; } - -export namespace ElevenLabsTranscriber { - export type Language = - | "aa" - | "ab" - | "ae" - | "af" - | "ak" - | "am" - | "an" - | "ar" - | "as" - | "av" - | "ay" - | "az" - | "ba" - | "be" - | "bg" - | "bh" - | "bi" - | "bm" - | "bn" - | "bo" - | "br" - | "bs" - | "ca" - | "ce" - | "ch" - | "co" - | "cr" - | "cs" - | "cu" - | "cv" - | "cy" - | "da" - | "de" - | "dv" - | "dz" - | "ee" - | "el" - | "en" - | "eo" - | "es" - | "et" - | "eu" - | "fa" - | "ff" - | "fi" - | "fj" - | "fo" - | "fr" - | "fy" - | "ga" - | "gd" - | "gl" - | "gn" - | "gu" - | "gv" - | "ha" - | "he" - | "hi" - | "ho" - | "hr" - | "ht" - | "hu" - | "hy" - | "hz" - | "ia" - | "id" - | "ie" - | "ig" - | "ii" - | "ik" - | "io" - | "is" - | "it" - | "iu" - | "ja" - | "jv" - | "ka" - | "kg" - | "ki" - | "kj" - | "kk" - | "kl" - | "km" - | "kn" - | "ko" - | "kr" - | "ks" - | "ku" - | "kv" - | "kw" - | "ky" - | "la" - | "lb" - | "lg" - | "li" - | "ln" - | "lo" - | "lt" - | "lu" - | "lv" - | "mg" - | "mh" - | "mi" - | "mk" - | "ml" - | "mn" - | "mr" - | "ms" - | "mt" - | "my" - | "na" - | "nb" - | "nd" - | "ne" - | "ng" - | "nl" - | "nn" - | "no" - | "nr" - | "nv" - | "ny" - | "oc" - | "oj" - | "om" - | "or" - | "os" - | "pa" - | "pi" - | "pl" - | "ps" - | "pt" - | "qu" - | "rm" - | "rn" - | "ro" - | "ru" - | "rw" - | "sa" - | "sc" - | "sd" - | "se" - | "sg" - | "si" - | "sk" - | "sl" - | "sm" - | "sn" - | "so" - | "sq" - | "sr" - | "ss" - | "st" - | "su" - | "sv" - | "sw" - | "ta" - | "te" - | "tg" - | "th" - | "ti" - | "tk" - | "tl" - | "tn" - | "to" - | "tr" - | "ts" - | "tt" - | "tw" - | "ty" - | "ug" - | "uk" - | "ur" - | "uz" - | "ve" - | "vi" - | "vo" - | "wa" - | "wo" - | "xh" - | "yi" - | "yue" - | "yo" - | "za" - | "zh" - | "zu"; - export const Language = { - Aa: "aa", - Ab: "ab", - Ae: "ae", - Af: "af", - Ak: "ak", - Am: "am", - An: "an", - Ar: "ar", - As: "as", - Av: "av", - Ay: "ay", - Az: "az", - Ba: "ba", - Be: "be", - Bg: "bg", - Bh: "bh", - Bi: "bi", - Bm: "bm", - Bn: "bn", - Bo: "bo", - Br: "br", - Bs: "bs", - Ca: "ca", - Ce: "ce", - Ch: "ch", - Co: "co", - Cr: "cr", - Cs: "cs", - Cu: "cu", - Cv: "cv", - Cy: "cy", - Da: "da", - De: "de", - Dv: "dv", - Dz: "dz", - Ee: "ee", - El: "el", - En: "en", - Eo: "eo", - Es: "es", - Et: "et", - Eu: "eu", - Fa: "fa", - Ff: "ff", - Fi: "fi", - Fj: "fj", - Fo: "fo", - Fr: "fr", - Fy: "fy", - Ga: "ga", - Gd: "gd", - Gl: "gl", - Gn: "gn", - Gu: "gu", - Gv: "gv", - Ha: "ha", - He: "he", - Hi: "hi", - Ho: "ho", - Hr: "hr", - Ht: "ht", - Hu: "hu", - Hy: "hy", - Hz: "hz", - Ia: "ia", - Id: "id", - Ie: "ie", - Ig: "ig", - Ii: "ii", - Ik: "ik", - Io: "io", - Is: "is", - It: "it", - Iu: "iu", - Ja: "ja", - Jv: "jv", - Ka: "ka", - Kg: "kg", - Ki: "ki", - Kj: "kj", - Kk: "kk", - Kl: "kl", - Km: "km", - Kn: "kn", - Ko: "ko", - Kr: "kr", - Ks: "ks", - Ku: "ku", - Kv: "kv", - Kw: "kw", - Ky: "ky", - La: "la", - Lb: "lb", - Lg: "lg", - Li: "li", - Ln: "ln", - Lo: "lo", - Lt: "lt", - Lu: "lu", - Lv: "lv", - Mg: "mg", - Mh: "mh", - Mi: "mi", - Mk: "mk", - Ml: "ml", - Mn: "mn", - Mr: "mr", - Ms: "ms", - Mt: "mt", - My: "my", - Na: "na", - Nb: "nb", - Nd: "nd", - Ne: "ne", - Ng: "ng", - Nl: "nl", - Nn: "nn", - No: "no", - Nr: "nr", - Nv: "nv", - Ny: "ny", - Oc: "oc", - Oj: "oj", - Om: "om", - Or: "or", - Os: "os", - Pa: "pa", - Pi: "pi", - Pl: "pl", - Ps: "ps", - Pt: "pt", - Qu: "qu", - Rm: "rm", - Rn: "rn", - Ro: "ro", - Ru: "ru", - Rw: "rw", - Sa: "sa", - Sc: "sc", - Sd: "sd", - Se: "se", - Sg: "sg", - Si: "si", - Sk: "sk", - Sl: "sl", - Sm: "sm", - Sn: "sn", - So: "so", - Sq: "sq", - Sr: "sr", - Ss: "ss", - St: "st", - Su: "su", - Sv: "sv", - Sw: "sw", - Ta: "ta", - Te: "te", - Tg: "tg", - Th: "th", - Ti: "ti", - Tk: "tk", - Tl: "tl", - Tn: "tn", - To: "to", - Tr: "tr", - Ts: "ts", - Tt: "tt", - Tw: "tw", - Ty: "ty", - Ug: "ug", - Uk: "uk", - Ur: "ur", - Uz: "uz", - Ve: "ve", - Vi: "vi", - Vo: "vo", - Wa: "wa", - Wo: "wo", - Xh: "xh", - Yi: "yi", - Yue: "yue", - Yo: "yo", - Za: "za", - Zh: "zh", - Zu: "zu", - } as const; -} diff --git a/src/api/types/ElevenLabsTranscriberLanguage.ts b/src/api/types/ElevenLabsTranscriberLanguage.ts new file mode 100644 index 00000000..e5f9f650 --- /dev/null +++ b/src/api/types/ElevenLabsTranscriberLanguage.ts @@ -0,0 +1,377 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type ElevenLabsTranscriberLanguage = + | "aa" + | "ab" + | "ae" + | "af" + | "ak" + | "am" + | "an" + | "ar" + | "as" + | "av" + | "ay" + | "az" + | "ba" + | "be" + | "bg" + | "bh" + | "bi" + | "bm" + | "bn" + | "bo" + | "br" + | "bs" + | "ca" + | "ce" + | "ch" + | "co" + | "cr" + | "cs" + | "cu" + | "cv" + | "cy" + | "da" + | "de" + | "dv" + | "dz" + | "ee" + | "el" + | "en" + | "eo" + | "es" + | "et" + | "eu" + | "fa" + | "ff" + | "fi" + | "fj" + | "fo" + | "fr" + | "fy" + | "ga" + | "gd" + | "gl" + | "gn" + | "gu" + | "gv" + | "ha" + | "he" + | "hi" + | "ho" + | "hr" + | "ht" + | "hu" + | "hy" + | "hz" + | "ia" + | "id" + | "ie" + | "ig" + | "ii" + | "ik" + | "io" + | "is" + | "it" + | "iu" + | "ja" + | "jv" + | "ka" + | "kg" + | "ki" + | "kj" + | "kk" + | "kl" + | "km" + | "kn" + | "ko" + | "kr" + | "ks" + | "ku" + | "kv" + | "kw" + | "ky" + | "la" + | "lb" + | "lg" + | "li" + | "ln" + | "lo" + | "lt" + | "lu" + | "lv" + | "mg" + | "mh" + | "mi" + | "mk" + | "ml" + | "mn" + | "mr" + | "ms" + | "mt" + | "my" + | "na" + | "nb" + | "nd" + | "ne" + | "ng" + | "nl" + | "nn" + | "no" + | "nr" + | "nv" + | "ny" + | "oc" + | "oj" + | "om" + | "or" + | "os" + | "pa" + | "pi" + | "pl" + | "ps" + | "pt" + | "qu" + | "rm" + | "rn" + | "ro" + | "ru" + | "rw" + | "sa" + | "sc" + | "sd" + | "se" + | "sg" + | "si" + | "sk" + | "sl" + | "sm" + | "sn" + | "so" + | "sq" + | "sr" + | "ss" + | "st" + | "su" + | "sv" + | "sw" + | "ta" + | "te" + | "tg" + | "th" + | "ti" + | "tk" + | "tl" + | "tn" + | "to" + | "tr" + | "ts" + | "tt" + | "tw" + | "ty" + | "ug" + | "uk" + | "ur" + | "uz" + | "ve" + | "vi" + | "vo" + | "wa" + | "wo" + | "xh" + | "yi" + | "yue" + | "yo" + | "za" + | "zh" + | "zu"; +export const ElevenLabsTranscriberLanguage = { + Aa: "aa", + Ab: "ab", + Ae: "ae", + Af: "af", + Ak: "ak", + Am: "am", + An: "an", + Ar: "ar", + As: "as", + Av: "av", + Ay: "ay", + Az: "az", + Ba: "ba", + Be: "be", + Bg: "bg", + Bh: "bh", + Bi: "bi", + Bm: "bm", + Bn: "bn", + Bo: "bo", + Br: "br", + Bs: "bs", + Ca: "ca", + Ce: "ce", + Ch: "ch", + Co: "co", + Cr: "cr", + Cs: "cs", + Cu: "cu", + Cv: "cv", + Cy: "cy", + Da: "da", + De: "de", + Dv: "dv", + Dz: "dz", + Ee: "ee", + El: "el", + En: "en", + Eo: "eo", + Es: "es", + Et: "et", + Eu: "eu", + Fa: "fa", + Ff: "ff", + Fi: "fi", + Fj: "fj", + Fo: "fo", + Fr: "fr", + Fy: "fy", + Ga: "ga", + Gd: "gd", + Gl: "gl", + Gn: "gn", + Gu: "gu", + Gv: "gv", + Ha: "ha", + He: "he", + Hi: "hi", + Ho: "ho", + Hr: "hr", + Ht: "ht", + Hu: "hu", + Hy: "hy", + Hz: "hz", + Ia: "ia", + Id: "id", + Ie: "ie", + Ig: "ig", + Ii: "ii", + Ik: "ik", + Io: "io", + Is: "is", + It: "it", + Iu: "iu", + Ja: "ja", + Jv: "jv", + Ka: "ka", + Kg: "kg", + Ki: "ki", + Kj: "kj", + Kk: "kk", + Kl: "kl", + Km: "km", + Kn: "kn", + Ko: "ko", + Kr: "kr", + Ks: "ks", + Ku: "ku", + Kv: "kv", + Kw: "kw", + Ky: "ky", + La: "la", + Lb: "lb", + Lg: "lg", + Li: "li", + Ln: "ln", + Lo: "lo", + Lt: "lt", + Lu: "lu", + Lv: "lv", + Mg: "mg", + Mh: "mh", + Mi: "mi", + Mk: "mk", + Ml: "ml", + Mn: "mn", + Mr: "mr", + Ms: "ms", + Mt: "mt", + My: "my", + Na: "na", + Nb: "nb", + Nd: "nd", + Ne: "ne", + Ng: "ng", + Nl: "nl", + Nn: "nn", + No: "no", + Nr: "nr", + Nv: "nv", + Ny: "ny", + Oc: "oc", + Oj: "oj", + Om: "om", + Or: "or", + Os: "os", + Pa: "pa", + Pi: "pi", + Pl: "pl", + Ps: "ps", + Pt: "pt", + Qu: "qu", + Rm: "rm", + Rn: "rn", + Ro: "ro", + Ru: "ru", + Rw: "rw", + Sa: "sa", + Sc: "sc", + Sd: "sd", + Se: "se", + Sg: "sg", + Si: "si", + Sk: "sk", + Sl: "sl", + Sm: "sm", + Sn: "sn", + So: "so", + Sq: "sq", + Sr: "sr", + Ss: "ss", + St: "st", + Su: "su", + Sv: "sv", + Sw: "sw", + Ta: "ta", + Te: "te", + Tg: "tg", + Th: "th", + Ti: "ti", + Tk: "tk", + Tl: "tl", + Tn: "tn", + To: "to", + Tr: "tr", + Ts: "ts", + Tt: "tt", + Tw: "tw", + Ty: "ty", + Ug: "ug", + Uk: "uk", + Ur: "ur", + Uz: "uz", + Ve: "ve", + Vi: "vi", + Vo: "vo", + Wa: "wa", + Wo: "wo", + Xh: "xh", + Yi: "yi", + Yue: "yue", + Yo: "yo", + Za: "za", + Zh: "zh", + Zu: "zu", +} as const; diff --git a/src/api/types/ElevenLabsVoice.ts b/src/api/types/ElevenLabsVoice.ts index 735f0ea3..01f01dd0 100644 --- a/src/api/types/ElevenLabsVoice.ts +++ b/src/api/types/ElevenLabsVoice.ts @@ -10,7 +10,7 @@ export interface ElevenLabsVoice { /** This is the voice provider that will be used. */ provider: "11labs"; /** This is the provider-specific ID that will be used. Ensure the Voice is present in your 11Labs Voice Library. */ - voiceId: ElevenLabsVoice.VoiceId; + voiceId: Vapi.ElevenLabsVoiceId; /** Defines the stability for voice settings. */ stability?: number; /** Defines the similarity boost for voice settings. */ @@ -32,7 +32,7 @@ export interface ElevenLabsVoice { /** Defines the auto mode for voice settings. Defaults to false. */ autoMode?: boolean; /** This is the model that will be used. Defaults to 'eleven_turbo_v2' if not specified. */ - model?: ElevenLabsVoice.Model; + model?: Vapi.ElevenLabsVoiceModel; /** This is the language (ISO 639-1) that is enforced for the model. Currently only Turbo v2.5 supports language enforcement. For other models, an error will be returned if language code is provided. */ language?: string; /** This is the plan for chunking the model output before it is sent to the voice provider. */ @@ -42,46 +42,3 @@ export interface ElevenLabsVoice { /** This is the plan for voice provider fallbacks in the event that the primary voice provider fails. */ fallbackPlan?: Vapi.FallbackPlan; } - -export namespace ElevenLabsVoice { - /** - * This is the provider-specific ID that will be used. Ensure the Voice is present in your 11Labs Voice Library. - */ - export type VoiceId = - | ( - | "burt" - | "marissa" - | "andrea" - | "sarah" - | "phillip" - | "steve" - | "joseph" - | "myra" - | "paula" - | "ryan" - | "drew" - | "paul" - | "mrb" - | "matilda" - | "mark" - ) - | string; - /** - * This is the model that will be used. Defaults to 'eleven_turbo_v2' if not specified. - */ - export type Model = - | "eleven_multilingual_v2" - | "eleven_turbo_v2" - | "eleven_turbo_v2_5" - | "eleven_flash_v2" - | "eleven_flash_v2_5" - | "eleven_monolingual_v1"; - export const Model = { - ElevenMultilingualV2: "eleven_multilingual_v2", - ElevenTurboV2: "eleven_turbo_v2", - ElevenTurboV25: "eleven_turbo_v2_5", - ElevenFlashV2: "eleven_flash_v2", - ElevenFlashV25: "eleven_flash_v2_5", - ElevenMonolingualV1: "eleven_monolingual_v1", - } as const; -} diff --git a/src/api/types/ElevenLabsVoiceId.ts b/src/api/types/ElevenLabsVoiceId.ts new file mode 100644 index 00000000..1ec7c565 --- /dev/null +++ b/src/api/types/ElevenLabsVoiceId.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the provider-specific ID that will be used. Ensure the Voice is present in your 11Labs Voice Library. + */ +export type ElevenLabsVoiceId = Vapi.ElevenLabsVoiceIdEnum | string; diff --git a/src/api/types/ElevenLabsVoiceIdEnum.ts b/src/api/types/ElevenLabsVoiceIdEnum.ts new file mode 100644 index 00000000..aa237d5a --- /dev/null +++ b/src/api/types/ElevenLabsVoiceIdEnum.ts @@ -0,0 +1,37 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type ElevenLabsVoiceIdEnum = + | "burt" + | "marissa" + | "andrea" + | "sarah" + | "phillip" + | "steve" + | "joseph" + | "myra" + | "paula" + | "ryan" + | "drew" + | "paul" + | "mrb" + | "matilda" + | "mark"; +export const ElevenLabsVoiceIdEnum = { + Burt: "burt", + Marissa: "marissa", + Andrea: "andrea", + Sarah: "sarah", + Phillip: "phillip", + Steve: "steve", + Joseph: "joseph", + Myra: "myra", + Paula: "paula", + Ryan: "ryan", + Drew: "drew", + Paul: "paul", + Mrb: "mrb", + Matilda: "matilda", + Mark: "mark", +} as const; diff --git a/src/api/types/ElevenLabsVoiceModel.ts b/src/api/types/ElevenLabsVoiceModel.ts new file mode 100644 index 00000000..3cf833d4 --- /dev/null +++ b/src/api/types/ElevenLabsVoiceModel.ts @@ -0,0 +1,22 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the model that will be used. Defaults to 'eleven_turbo_v2' if not specified. + */ +export type ElevenLabsVoiceModel = + | "eleven_multilingual_v2" + | "eleven_turbo_v2" + | "eleven_turbo_v2_5" + | "eleven_flash_v2" + | "eleven_flash_v2_5" + | "eleven_monolingual_v1"; +export const ElevenLabsVoiceModel = { + ElevenMultilingualV2: "eleven_multilingual_v2", + ElevenTurboV2: "eleven_turbo_v2", + ElevenTurboV25: "eleven_turbo_v2_5", + ElevenFlashV2: "eleven_flash_v2", + ElevenFlashV25: "eleven_flash_v2_5", + ElevenMonolingualV1: "eleven_monolingual_v1", +} as const; diff --git a/src/api/types/EndCallTool.ts b/src/api/types/EndCallTool.ts index 6bc4bcc8..b0c125c9 100644 --- a/src/api/types/EndCallTool.ts +++ b/src/api/types/EndCallTool.ts @@ -10,7 +10,7 @@ export interface EndCallTool { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: EndCallTool.Messages.Item[]; + messages?: Vapi.EndCallToolMessagesItem[]; type: "endCall"; /** This is the unique identifier for the tool. */ id: string; @@ -102,15 +102,3 @@ export interface EndCallTool { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace EndCallTool { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/EndCallToolMessagesItem.ts b/src/api/types/EndCallToolMessagesItem.ts new file mode 100644 index 00000000..edbe3b03 --- /dev/null +++ b/src/api/types/EndCallToolMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type EndCallToolMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/Eval.ts b/src/api/types/Eval.ts index 8c0d05d9..c22611a6 100644 --- a/src/api/types/Eval.ts +++ b/src/api/types/Eval.ts @@ -12,7 +12,7 @@ export interface Eval { * * Evaluation Messages are used as checkpoints in the flow where the model's response to previous conversation needs to be evaluated to check the content and tool calls */ - messages: Eval.Messages.Item[]; + messages: Vapi.EvalMessagesItem[]; id: string; orgId: string; createdAt: string; @@ -33,16 +33,3 @@ export interface Eval { */ type: "chat.mockConversation"; } - -export namespace Eval { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ChatEvalAssistantMessageMock - | Vapi.ChatEvalSystemMessageMock - | Vapi.ChatEvalToolResponseMessageMock - | Vapi.ChatEvalUserMessageMock - | Vapi.ChatEvalAssistantMessageEvaluation; - } -} diff --git a/src/api/types/EvalAnthropicModel.ts b/src/api/types/EvalAnthropicModel.ts index 52c366c5..1418593c 100644 --- a/src/api/types/EvalAnthropicModel.ts +++ b/src/api/types/EvalAnthropicModel.ts @@ -8,7 +8,7 @@ export interface EvalAnthropicModel { /** This is the provider of the model (`anthropic`). */ provider: "anthropic"; /** This is the specific model that will be used. */ - model: EvalAnthropicModel.Model; + model: Vapi.EvalAnthropicModelModel; /** * This is the optional configuration for Anthropic's thinking feature. * @@ -24,34 +24,3 @@ export interface EvalAnthropicModel { */ maxTokens?: number; } - -export namespace EvalAnthropicModel { - /** - * This is the specific model that will be used. - */ - export type Model = - | "claude-3-opus-20240229" - | "claude-3-sonnet-20240229" - | "claude-3-haiku-20240307" - | "claude-3-5-sonnet-20240620" - | "claude-3-5-sonnet-20241022" - | "claude-3-5-haiku-20241022" - | "claude-3-7-sonnet-20250219" - | "claude-opus-4-20250514" - | "claude-sonnet-4-20250514" - | "claude-sonnet-4-5-20250929" - | "claude-haiku-4-5-20251001"; - export const Model = { - Claude3Opus20240229: "claude-3-opus-20240229", - Claude3Sonnet20240229: "claude-3-sonnet-20240229", - Claude3Haiku20240307: "claude-3-haiku-20240307", - Claude35Sonnet20240620: "claude-3-5-sonnet-20240620", - Claude35Sonnet20241022: "claude-3-5-sonnet-20241022", - Claude35Haiku20241022: "claude-3-5-haiku-20241022", - Claude37Sonnet20250219: "claude-3-7-sonnet-20250219", - ClaudeOpus420250514: "claude-opus-4-20250514", - ClaudeSonnet420250514: "claude-sonnet-4-20250514", - ClaudeSonnet4520250929: "claude-sonnet-4-5-20250929", - ClaudeHaiku4520251001: "claude-haiku-4-5-20251001", - } as const; -} diff --git a/src/api/types/EvalAnthropicModelModel.ts b/src/api/types/EvalAnthropicModelModel.ts new file mode 100644 index 00000000..e8051597 --- /dev/null +++ b/src/api/types/EvalAnthropicModelModel.ts @@ -0,0 +1,32 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the specific model that will be used. + */ +export type EvalAnthropicModelModel = + | "claude-3-opus-20240229" + | "claude-3-sonnet-20240229" + | "claude-3-haiku-20240307" + | "claude-3-5-sonnet-20240620" + | "claude-3-5-sonnet-20241022" + | "claude-3-5-haiku-20241022" + | "claude-3-7-sonnet-20250219" + | "claude-opus-4-20250514" + | "claude-sonnet-4-20250514" + | "claude-sonnet-4-5-20250929" + | "claude-haiku-4-5-20251001"; +export const EvalAnthropicModelModel = { + Claude3Opus20240229: "claude-3-opus-20240229", + Claude3Sonnet20240229: "claude-3-sonnet-20240229", + Claude3Haiku20240307: "claude-3-haiku-20240307", + Claude35Sonnet20240620: "claude-3-5-sonnet-20240620", + Claude35Sonnet20241022: "claude-3-5-sonnet-20241022", + Claude35Haiku20241022: "claude-3-5-haiku-20241022", + Claude37Sonnet20250219: "claude-3-7-sonnet-20250219", + ClaudeOpus420250514: "claude-opus-4-20250514", + ClaudeSonnet420250514: "claude-sonnet-4-20250514", + ClaudeSonnet4520250929: "claude-sonnet-4-5-20250929", + ClaudeHaiku4520251001: "claude-haiku-4-5-20251001", +} as const; diff --git a/src/api/types/EvalGoogleModel.ts b/src/api/types/EvalGoogleModel.ts index 13394093..d09b137b 100644 --- a/src/api/types/EvalGoogleModel.ts +++ b/src/api/types/EvalGoogleModel.ts @@ -2,11 +2,13 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface EvalGoogleModel { /** This is the provider of the model (`google`). */ provider: "google"; /** This is the name of the model. Ex. gpt-4o */ - model: EvalGoogleModel.Model; + model: Vapi.EvalGoogleModelModel; /** This is the temperature of the model. For LLM-as-a-judge, it's recommended to set it between 0 - 0.3 to avoid hallucinations and ensure the model judges the output correctly based on the instructions. */ temperature?: number; /** @@ -15,40 +17,3 @@ export interface EvalGoogleModel { */ maxTokens?: number; } - -export namespace EvalGoogleModel { - /** - * This is the name of the model. Ex. gpt-4o - */ - export type Model = - | "gemini-2.5-pro" - | "gemini-2.5-flash" - | "gemini-2.5-flash-lite" - | "gemini-2.0-flash-thinking-exp" - | "gemini-2.0-pro-exp-02-05" - | "gemini-2.0-flash" - | "gemini-2.0-flash-lite" - | "gemini-2.0-flash-exp" - | "gemini-2.0-flash-realtime-exp" - | "gemini-1.5-flash" - | "gemini-1.5-flash-002" - | "gemini-1.5-pro" - | "gemini-1.5-pro-002" - | "gemini-1.0-pro"; - export const Model = { - Gemini25Pro: "gemini-2.5-pro", - Gemini25Flash: "gemini-2.5-flash", - Gemini25FlashLite: "gemini-2.5-flash-lite", - Gemini20FlashThinkingExp: "gemini-2.0-flash-thinking-exp", - Gemini20ProExp0205: "gemini-2.0-pro-exp-02-05", - Gemini20Flash: "gemini-2.0-flash", - Gemini20FlashLite: "gemini-2.0-flash-lite", - Gemini20FlashExp: "gemini-2.0-flash-exp", - Gemini20FlashRealtimeExp: "gemini-2.0-flash-realtime-exp", - Gemini15Flash: "gemini-1.5-flash", - Gemini15Flash002: "gemini-1.5-flash-002", - Gemini15Pro: "gemini-1.5-pro", - Gemini15Pro002: "gemini-1.5-pro-002", - Gemini10Pro: "gemini-1.0-pro", - } as const; -} diff --git a/src/api/types/EvalGoogleModelModel.ts b/src/api/types/EvalGoogleModelModel.ts new file mode 100644 index 00000000..83ce52a7 --- /dev/null +++ b/src/api/types/EvalGoogleModelModel.ts @@ -0,0 +1,38 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the name of the model. Ex. gpt-4o + */ +export type EvalGoogleModelModel = + | "gemini-2.5-pro" + | "gemini-2.5-flash" + | "gemini-2.5-flash-lite" + | "gemini-2.0-flash-thinking-exp" + | "gemini-2.0-pro-exp-02-05" + | "gemini-2.0-flash" + | "gemini-2.0-flash-lite" + | "gemini-2.0-flash-exp" + | "gemini-2.0-flash-realtime-exp" + | "gemini-1.5-flash" + | "gemini-1.5-flash-002" + | "gemini-1.5-pro" + | "gemini-1.5-pro-002" + | "gemini-1.0-pro"; +export const EvalGoogleModelModel = { + Gemini25Pro: "gemini-2.5-pro", + Gemini25Flash: "gemini-2.5-flash", + Gemini25FlashLite: "gemini-2.5-flash-lite", + Gemini20FlashThinkingExp: "gemini-2.0-flash-thinking-exp", + Gemini20ProExp0205: "gemini-2.0-pro-exp-02-05", + Gemini20Flash: "gemini-2.0-flash", + Gemini20FlashLite: "gemini-2.0-flash-lite", + Gemini20FlashExp: "gemini-2.0-flash-exp", + Gemini20FlashRealtimeExp: "gemini-2.0-flash-realtime-exp", + Gemini15Flash: "gemini-1.5-flash", + Gemini15Flash002: "gemini-1.5-flash-002", + Gemini15Pro: "gemini-1.5-pro", + Gemini15Pro002: "gemini-1.5-pro-002", + Gemini10Pro: "gemini-1.0-pro", +} as const; diff --git a/src/api/types/EvalGroqModel.ts b/src/api/types/EvalGroqModel.ts index a857ce9d..3a1e5dec 100644 --- a/src/api/types/EvalGroqModel.ts +++ b/src/api/types/EvalGroqModel.ts @@ -2,11 +2,13 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface EvalGroqModel { /** This is the provider of the model (`groq`). */ provider: "groq"; /** This is the name of the model. Ex. gpt-4o */ - model: EvalGroqModel.Model; + model: Vapi.EvalGroqModelModel; /** This is the temperature of the model. For LLM-as-a-judge, it's recommended to set it between 0 - 0.3 to avoid hallucinations and ensure the model judges the output correctly based on the instructions. */ temperature?: number; /** @@ -15,42 +17,3 @@ export interface EvalGroqModel { */ maxTokens?: number; } - -export namespace EvalGroqModel { - /** - * This is the name of the model. Ex. gpt-4o - */ - export type Model = - | "openai/gpt-oss-20b" - | "openai/gpt-oss-120b" - | "deepseek-r1-distill-llama-70b" - | "llama-3.3-70b-versatile" - | "llama-3.1-405b-reasoning" - | "llama-3.1-8b-instant" - | "llama3-8b-8192" - | "llama3-70b-8192" - | "gemma2-9b-it" - | "moonshotai/kimi-k2-instruct-0905" - | "meta-llama/llama-4-maverick-17b-128e-instruct" - | "meta-llama/llama-4-scout-17b-16e-instruct" - | "mistral-saba-24b" - | "compound-beta" - | "compound-beta-mini"; - export const Model = { - OpenaiGptOss20B: "openai/gpt-oss-20b", - OpenaiGptOss120B: "openai/gpt-oss-120b", - DeepseekR1DistillLlama70B: "deepseek-r1-distill-llama-70b", - Llama3370BVersatile: "llama-3.3-70b-versatile", - Llama31405BReasoning: "llama-3.1-405b-reasoning", - Llama318BInstant: "llama-3.1-8b-instant", - Llama38B8192: "llama3-8b-8192", - Llama370B8192: "llama3-70b-8192", - Gemma29BIt: "gemma2-9b-it", - MoonshotaiKimiK2Instruct0905: "moonshotai/kimi-k2-instruct-0905", - MetaLlamaLlama4Maverick17B128EInstruct: "meta-llama/llama-4-maverick-17b-128e-instruct", - MetaLlamaLlama4Scout17B16EInstruct: "meta-llama/llama-4-scout-17b-16e-instruct", - MistralSaba24B: "mistral-saba-24b", - CompoundBeta: "compound-beta", - CompoundBetaMini: "compound-beta-mini", - } as const; -} diff --git a/src/api/types/EvalGroqModelModel.ts b/src/api/types/EvalGroqModelModel.ts new file mode 100644 index 00000000..56e57c92 --- /dev/null +++ b/src/api/types/EvalGroqModelModel.ts @@ -0,0 +1,40 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the name of the model. Ex. gpt-4o + */ +export type EvalGroqModelModel = + | "openai/gpt-oss-20b" + | "openai/gpt-oss-120b" + | "deepseek-r1-distill-llama-70b" + | "llama-3.3-70b-versatile" + | "llama-3.1-405b-reasoning" + | "llama-3.1-8b-instant" + | "llama3-8b-8192" + | "llama3-70b-8192" + | "gemma2-9b-it" + | "moonshotai/kimi-k2-instruct-0905" + | "meta-llama/llama-4-maverick-17b-128e-instruct" + | "meta-llama/llama-4-scout-17b-16e-instruct" + | "mistral-saba-24b" + | "compound-beta" + | "compound-beta-mini"; +export const EvalGroqModelModel = { + OpenaiGptOss20B: "openai/gpt-oss-20b", + OpenaiGptOss120B: "openai/gpt-oss-120b", + DeepseekR1DistillLlama70B: "deepseek-r1-distill-llama-70b", + Llama3370BVersatile: "llama-3.3-70b-versatile", + Llama31405BReasoning: "llama-3.1-405b-reasoning", + Llama318BInstant: "llama-3.1-8b-instant", + Llama38B8192: "llama3-8b-8192", + Llama370B8192: "llama3-70b-8192", + Gemma29BIt: "gemma2-9b-it", + MoonshotaiKimiK2Instruct0905: "moonshotai/kimi-k2-instruct-0905", + MetaLlamaLlama4Maverick17B128EInstruct: "meta-llama/llama-4-maverick-17b-128e-instruct", + MetaLlamaLlama4Scout17B16EInstruct: "meta-llama/llama-4-scout-17b-16e-instruct", + MistralSaba24B: "mistral-saba-24b", + CompoundBeta: "compound-beta", + CompoundBetaMini: "compound-beta-mini", +} as const; diff --git a/src/api/types/EvalMessagesItem.ts b/src/api/types/EvalMessagesItem.ts new file mode 100644 index 00000000..4726041f --- /dev/null +++ b/src/api/types/EvalMessagesItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type EvalMessagesItem = + | Vapi.ChatEvalAssistantMessageMock + | Vapi.ChatEvalSystemMessageMock + | Vapi.ChatEvalToolResponseMessageMock + | Vapi.ChatEvalUserMessageMock + | Vapi.ChatEvalAssistantMessageEvaluation; diff --git a/src/api/types/EvalModelListOptions.ts b/src/api/types/EvalModelListOptions.ts index 1114a28a..a8d12739 100644 --- a/src/api/types/EvalModelListOptions.ts +++ b/src/api/types/EvalModelListOptions.ts @@ -2,21 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface EvalModelListOptions { /** This is the provider of the model. */ - provider: EvalModelListOptions.Provider; -} - -export namespace EvalModelListOptions { - /** - * This is the provider of the model. - */ - export type Provider = "openai" | "anthropic" | "google" | "groq" | "custom-llm"; - export const Provider = { - Openai: "openai", - Anthropic: "anthropic", - Google: "google", - Groq: "groq", - CustomLlm: "custom-llm", - } as const; + provider: Vapi.EvalModelListOptionsProvider; } diff --git a/src/api/types/EvalModelListOptionsProvider.ts b/src/api/types/EvalModelListOptionsProvider.ts new file mode 100644 index 00000000..d79256ef --- /dev/null +++ b/src/api/types/EvalModelListOptionsProvider.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the provider of the model. + */ +export type EvalModelListOptionsProvider = "openai" | "anthropic" | "google" | "groq" | "custom-llm"; +export const EvalModelListOptionsProvider = { + Openai: "openai", + Anthropic: "anthropic", + Google: "google", + Groq: "groq", + CustomLlm: "custom-llm", +} as const; diff --git a/src/api/types/EvalOpenAiModel.ts b/src/api/types/EvalOpenAiModel.ts index 897d0f20..13d2a9cb 100644 --- a/src/api/types/EvalOpenAiModel.ts +++ b/src/api/types/EvalOpenAiModel.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface EvalOpenAiModel { /** This is the provider of the model (`openai`). */ provider: "openai"; @@ -11,7 +13,7 @@ export interface EvalOpenAiModel { * When using Vapi OpenAI or your own Azure Credentials, you have the option to specify the region for the selected model. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest region that make sense. * This is helpful when you are required to comply with Data Residency rules. Learn more about Azure regions here https://azure.microsoft.com/en-us/explore/global-infrastructure/data-residency/. */ - model: EvalOpenAiModel.Model; + model: Vapi.EvalOpenAiModelModel; /** This is the temperature of the model. For LLM-as-a-judge, it's recommended to set it between 0 - 0.3 to avoid hallucinations and ensure the model judges the output correctly based on the instructions. */ temperature?: number; /** @@ -20,201 +22,3 @@ export interface EvalOpenAiModel { */ maxTokens?: number; } - -export namespace EvalOpenAiModel { - /** - * This is the OpenAI model that will be used. - * - * When using Vapi OpenAI or your own Azure Credentials, you have the option to specify the region for the selected model. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest region that make sense. - * This is helpful when you are required to comply with Data Residency rules. Learn more about Azure regions here https://azure.microsoft.com/en-us/explore/global-infrastructure/data-residency/. - */ - export type Model = - | "gpt-5" - | "gpt-5-mini" - | "gpt-5-nano" - | "gpt-4.1-2025-04-14" - | "gpt-4.1-mini-2025-04-14" - | "gpt-4.1-nano-2025-04-14" - | "gpt-4.1" - | "gpt-4.1-mini" - | "gpt-4.1-nano" - | "chatgpt-4o-latest" - | "o3" - | "o3-mini" - | "o4-mini" - | "o1-mini" - | "o1-mini-2024-09-12" - | "gpt-4o-mini-2024-07-18" - | "gpt-4o-mini" - | "gpt-4o" - | "gpt-4o-2024-05-13" - | "gpt-4o-2024-08-06" - | "gpt-4o-2024-11-20" - | "gpt-4-turbo" - | "gpt-4-turbo-2024-04-09" - | "gpt-4-turbo-preview" - | "gpt-4-0125-preview" - | "gpt-4-1106-preview" - | "gpt-4" - | "gpt-4-0613" - | "gpt-3.5-turbo" - | "gpt-3.5-turbo-0125" - | "gpt-3.5-turbo-1106" - | "gpt-3.5-turbo-16k" - | "gpt-3.5-turbo-0613" - | "gpt-4.1-2025-04-14:westus" - | "gpt-4.1-2025-04-14:eastus2" - | "gpt-4.1-2025-04-14:eastus" - | "gpt-4.1-2025-04-14:westus3" - | "gpt-4.1-2025-04-14:northcentralus" - | "gpt-4.1-2025-04-14:southcentralus" - | "gpt-4.1-mini-2025-04-14:westus" - | "gpt-4.1-mini-2025-04-14:eastus2" - | "gpt-4.1-mini-2025-04-14:eastus" - | "gpt-4.1-mini-2025-04-14:westus3" - | "gpt-4.1-mini-2025-04-14:northcentralus" - | "gpt-4.1-mini-2025-04-14:southcentralus" - | "gpt-4.1-nano-2025-04-14:westus" - | "gpt-4.1-nano-2025-04-14:eastus2" - | "gpt-4.1-nano-2025-04-14:westus3" - | "gpt-4.1-nano-2025-04-14:northcentralus" - | "gpt-4.1-nano-2025-04-14:southcentralus" - | "gpt-4o-2024-11-20:swedencentral" - | "gpt-4o-2024-11-20:westus" - | "gpt-4o-2024-11-20:eastus2" - | "gpt-4o-2024-11-20:eastus" - | "gpt-4o-2024-11-20:westus3" - | "gpt-4o-2024-11-20:southcentralus" - | "gpt-4o-2024-08-06:westus" - | "gpt-4o-2024-08-06:westus3" - | "gpt-4o-2024-08-06:eastus" - | "gpt-4o-2024-08-06:eastus2" - | "gpt-4o-2024-08-06:northcentralus" - | "gpt-4o-2024-08-06:southcentralus" - | "gpt-4o-mini-2024-07-18:westus" - | "gpt-4o-mini-2024-07-18:westus3" - | "gpt-4o-mini-2024-07-18:eastus" - | "gpt-4o-mini-2024-07-18:eastus2" - | "gpt-4o-mini-2024-07-18:northcentralus" - | "gpt-4o-mini-2024-07-18:southcentralus" - | "gpt-4o-2024-05-13:eastus2" - | "gpt-4o-2024-05-13:eastus" - | "gpt-4o-2024-05-13:northcentralus" - | "gpt-4o-2024-05-13:southcentralus" - | "gpt-4o-2024-05-13:westus3" - | "gpt-4o-2024-05-13:westus" - | "gpt-4-turbo-2024-04-09:eastus2" - | "gpt-4-0125-preview:eastus" - | "gpt-4-0125-preview:northcentralus" - | "gpt-4-0125-preview:southcentralus" - | "gpt-4-1106-preview:australia" - | "gpt-4-1106-preview:canadaeast" - | "gpt-4-1106-preview:france" - | "gpt-4-1106-preview:india" - | "gpt-4-1106-preview:norway" - | "gpt-4-1106-preview:swedencentral" - | "gpt-4-1106-preview:uk" - | "gpt-4-1106-preview:westus" - | "gpt-4-1106-preview:westus3" - | "gpt-4-0613:canadaeast" - | "gpt-3.5-turbo-0125:canadaeast" - | "gpt-3.5-turbo-0125:northcentralus" - | "gpt-3.5-turbo-0125:southcentralus" - | "gpt-3.5-turbo-1106:canadaeast" - | "gpt-3.5-turbo-1106:westus"; - export const Model = { - Gpt5: "gpt-5", - Gpt5Mini: "gpt-5-mini", - Gpt5Nano: "gpt-5-nano", - Gpt4120250414: "gpt-4.1-2025-04-14", - Gpt41Mini20250414: "gpt-4.1-mini-2025-04-14", - Gpt41Nano20250414: "gpt-4.1-nano-2025-04-14", - Gpt41: "gpt-4.1", - Gpt41Mini: "gpt-4.1-mini", - Gpt41Nano: "gpt-4.1-nano", - Chatgpt4OLatest: "chatgpt-4o-latest", - O3: "o3", - O3Mini: "o3-mini", - O4Mini: "o4-mini", - O1Mini: "o1-mini", - O1Mini20240912: "o1-mini-2024-09-12", - Gpt4OMini20240718: "gpt-4o-mini-2024-07-18", - Gpt4OMini: "gpt-4o-mini", - Gpt4O: "gpt-4o", - Gpt4O20240513: "gpt-4o-2024-05-13", - Gpt4O20240806: "gpt-4o-2024-08-06", - Gpt4O20241120: "gpt-4o-2024-11-20", - Gpt4Turbo: "gpt-4-turbo", - Gpt4Turbo20240409: "gpt-4-turbo-2024-04-09", - Gpt4TurboPreview: "gpt-4-turbo-preview", - Gpt40125Preview: "gpt-4-0125-preview", - Gpt41106Preview: "gpt-4-1106-preview", - Gpt4: "gpt-4", - Gpt40613: "gpt-4-0613", - Gpt35Turbo: "gpt-3.5-turbo", - Gpt35Turbo0125: "gpt-3.5-turbo-0125", - Gpt35Turbo1106: "gpt-3.5-turbo-1106", - Gpt35Turbo16K: "gpt-3.5-turbo-16k", - Gpt35Turbo0613: "gpt-3.5-turbo-0613", - Gpt4120250414Westus: "gpt-4.1-2025-04-14:westus", - Gpt4120250414Eastus2: "gpt-4.1-2025-04-14:eastus2", - Gpt4120250414Eastus: "gpt-4.1-2025-04-14:eastus", - Gpt4120250414Westus3: "gpt-4.1-2025-04-14:westus3", - Gpt4120250414Northcentralus: "gpt-4.1-2025-04-14:northcentralus", - Gpt4120250414Southcentralus: "gpt-4.1-2025-04-14:southcentralus", - Gpt41Mini20250414Westus: "gpt-4.1-mini-2025-04-14:westus", - Gpt41Mini20250414Eastus2: "gpt-4.1-mini-2025-04-14:eastus2", - Gpt41Mini20250414Eastus: "gpt-4.1-mini-2025-04-14:eastus", - Gpt41Mini20250414Westus3: "gpt-4.1-mini-2025-04-14:westus3", - Gpt41Mini20250414Northcentralus: "gpt-4.1-mini-2025-04-14:northcentralus", - Gpt41Mini20250414Southcentralus: "gpt-4.1-mini-2025-04-14:southcentralus", - Gpt41Nano20250414Westus: "gpt-4.1-nano-2025-04-14:westus", - Gpt41Nano20250414Eastus2: "gpt-4.1-nano-2025-04-14:eastus2", - Gpt41Nano20250414Westus3: "gpt-4.1-nano-2025-04-14:westus3", - Gpt41Nano20250414Northcentralus: "gpt-4.1-nano-2025-04-14:northcentralus", - Gpt41Nano20250414Southcentralus: "gpt-4.1-nano-2025-04-14:southcentralus", - Gpt4O20241120Swedencentral: "gpt-4o-2024-11-20:swedencentral", - Gpt4O20241120Westus: "gpt-4o-2024-11-20:westus", - Gpt4O20241120Eastus2: "gpt-4o-2024-11-20:eastus2", - Gpt4O20241120Eastus: "gpt-4o-2024-11-20:eastus", - Gpt4O20241120Westus3: "gpt-4o-2024-11-20:westus3", - Gpt4O20241120Southcentralus: "gpt-4o-2024-11-20:southcentralus", - Gpt4O20240806Westus: "gpt-4o-2024-08-06:westus", - Gpt4O20240806Westus3: "gpt-4o-2024-08-06:westus3", - Gpt4O20240806Eastus: "gpt-4o-2024-08-06:eastus", - Gpt4O20240806Eastus2: "gpt-4o-2024-08-06:eastus2", - Gpt4O20240806Northcentralus: "gpt-4o-2024-08-06:northcentralus", - Gpt4O20240806Southcentralus: "gpt-4o-2024-08-06:southcentralus", - Gpt4OMini20240718Westus: "gpt-4o-mini-2024-07-18:westus", - Gpt4OMini20240718Westus3: "gpt-4o-mini-2024-07-18:westus3", - Gpt4OMini20240718Eastus: "gpt-4o-mini-2024-07-18:eastus", - Gpt4OMini20240718Eastus2: "gpt-4o-mini-2024-07-18:eastus2", - Gpt4OMini20240718Northcentralus: "gpt-4o-mini-2024-07-18:northcentralus", - Gpt4OMini20240718Southcentralus: "gpt-4o-mini-2024-07-18:southcentralus", - Gpt4O20240513Eastus2: "gpt-4o-2024-05-13:eastus2", - Gpt4O20240513Eastus: "gpt-4o-2024-05-13:eastus", - Gpt4O20240513Northcentralus: "gpt-4o-2024-05-13:northcentralus", - Gpt4O20240513Southcentralus: "gpt-4o-2024-05-13:southcentralus", - Gpt4O20240513Westus3: "gpt-4o-2024-05-13:westus3", - Gpt4O20240513Westus: "gpt-4o-2024-05-13:westus", - Gpt4Turbo20240409Eastus2: "gpt-4-turbo-2024-04-09:eastus2", - Gpt40125PreviewEastus: "gpt-4-0125-preview:eastus", - Gpt40125PreviewNorthcentralus: "gpt-4-0125-preview:northcentralus", - Gpt40125PreviewSouthcentralus: "gpt-4-0125-preview:southcentralus", - Gpt41106PreviewAustralia: "gpt-4-1106-preview:australia", - Gpt41106PreviewCanadaeast: "gpt-4-1106-preview:canadaeast", - Gpt41106PreviewFrance: "gpt-4-1106-preview:france", - Gpt41106PreviewIndia: "gpt-4-1106-preview:india", - Gpt41106PreviewNorway: "gpt-4-1106-preview:norway", - Gpt41106PreviewSwedencentral: "gpt-4-1106-preview:swedencentral", - Gpt41106PreviewUk: "gpt-4-1106-preview:uk", - Gpt41106PreviewWestus: "gpt-4-1106-preview:westus", - Gpt41106PreviewWestus3: "gpt-4-1106-preview:westus3", - Gpt40613Canadaeast: "gpt-4-0613:canadaeast", - Gpt35Turbo0125Canadaeast: "gpt-3.5-turbo-0125:canadaeast", - Gpt35Turbo0125Northcentralus: "gpt-3.5-turbo-0125:northcentralus", - Gpt35Turbo0125Southcentralus: "gpt-3.5-turbo-0125:southcentralus", - Gpt35Turbo1106Canadaeast: "gpt-3.5-turbo-1106:canadaeast", - Gpt35Turbo1106Westus: "gpt-3.5-turbo-1106:westus", - } as const; -} diff --git a/src/api/types/EvalOpenAiModelModel.ts b/src/api/types/EvalOpenAiModelModel.ts new file mode 100644 index 00000000..5ae40ac0 --- /dev/null +++ b/src/api/types/EvalOpenAiModelModel.ts @@ -0,0 +1,199 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the OpenAI model that will be used. + * + * When using Vapi OpenAI or your own Azure Credentials, you have the option to specify the region for the selected model. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest region that make sense. + * This is helpful when you are required to comply with Data Residency rules. Learn more about Azure regions here https://azure.microsoft.com/en-us/explore/global-infrastructure/data-residency/. + */ +export type EvalOpenAiModelModel = + | "gpt-5" + | "gpt-5-mini" + | "gpt-5-nano" + | "gpt-4.1-2025-04-14" + | "gpt-4.1-mini-2025-04-14" + | "gpt-4.1-nano-2025-04-14" + | "gpt-4.1" + | "gpt-4.1-mini" + | "gpt-4.1-nano" + | "chatgpt-4o-latest" + | "o3" + | "o3-mini" + | "o4-mini" + | "o1-mini" + | "o1-mini-2024-09-12" + | "gpt-4o-mini-2024-07-18" + | "gpt-4o-mini" + | "gpt-4o" + | "gpt-4o-2024-05-13" + | "gpt-4o-2024-08-06" + | "gpt-4o-2024-11-20" + | "gpt-4-turbo" + | "gpt-4-turbo-2024-04-09" + | "gpt-4-turbo-preview" + | "gpt-4-0125-preview" + | "gpt-4-1106-preview" + | "gpt-4" + | "gpt-4-0613" + | "gpt-3.5-turbo" + | "gpt-3.5-turbo-0125" + | "gpt-3.5-turbo-1106" + | "gpt-3.5-turbo-16k" + | "gpt-3.5-turbo-0613" + | "gpt-4.1-2025-04-14:westus" + | "gpt-4.1-2025-04-14:eastus2" + | "gpt-4.1-2025-04-14:eastus" + | "gpt-4.1-2025-04-14:westus3" + | "gpt-4.1-2025-04-14:northcentralus" + | "gpt-4.1-2025-04-14:southcentralus" + | "gpt-4.1-mini-2025-04-14:westus" + | "gpt-4.1-mini-2025-04-14:eastus2" + | "gpt-4.1-mini-2025-04-14:eastus" + | "gpt-4.1-mini-2025-04-14:westus3" + | "gpt-4.1-mini-2025-04-14:northcentralus" + | "gpt-4.1-mini-2025-04-14:southcentralus" + | "gpt-4.1-nano-2025-04-14:westus" + | "gpt-4.1-nano-2025-04-14:eastus2" + | "gpt-4.1-nano-2025-04-14:westus3" + | "gpt-4.1-nano-2025-04-14:northcentralus" + | "gpt-4.1-nano-2025-04-14:southcentralus" + | "gpt-4o-2024-11-20:swedencentral" + | "gpt-4o-2024-11-20:westus" + | "gpt-4o-2024-11-20:eastus2" + | "gpt-4o-2024-11-20:eastus" + | "gpt-4o-2024-11-20:westus3" + | "gpt-4o-2024-11-20:southcentralus" + | "gpt-4o-2024-08-06:westus" + | "gpt-4o-2024-08-06:westus3" + | "gpt-4o-2024-08-06:eastus" + | "gpt-4o-2024-08-06:eastus2" + | "gpt-4o-2024-08-06:northcentralus" + | "gpt-4o-2024-08-06:southcentralus" + | "gpt-4o-mini-2024-07-18:westus" + | "gpt-4o-mini-2024-07-18:westus3" + | "gpt-4o-mini-2024-07-18:eastus" + | "gpt-4o-mini-2024-07-18:eastus2" + | "gpt-4o-mini-2024-07-18:northcentralus" + | "gpt-4o-mini-2024-07-18:southcentralus" + | "gpt-4o-2024-05-13:eastus2" + | "gpt-4o-2024-05-13:eastus" + | "gpt-4o-2024-05-13:northcentralus" + | "gpt-4o-2024-05-13:southcentralus" + | "gpt-4o-2024-05-13:westus3" + | "gpt-4o-2024-05-13:westus" + | "gpt-4-turbo-2024-04-09:eastus2" + | "gpt-4-0125-preview:eastus" + | "gpt-4-0125-preview:northcentralus" + | "gpt-4-0125-preview:southcentralus" + | "gpt-4-1106-preview:australia" + | "gpt-4-1106-preview:canadaeast" + | "gpt-4-1106-preview:france" + | "gpt-4-1106-preview:india" + | "gpt-4-1106-preview:norway" + | "gpt-4-1106-preview:swedencentral" + | "gpt-4-1106-preview:uk" + | "gpt-4-1106-preview:westus" + | "gpt-4-1106-preview:westus3" + | "gpt-4-0613:canadaeast" + | "gpt-3.5-turbo-0125:canadaeast" + | "gpt-3.5-turbo-0125:northcentralus" + | "gpt-3.5-turbo-0125:southcentralus" + | "gpt-3.5-turbo-1106:canadaeast" + | "gpt-3.5-turbo-1106:westus"; +export const EvalOpenAiModelModel = { + Gpt5: "gpt-5", + Gpt5Mini: "gpt-5-mini", + Gpt5Nano: "gpt-5-nano", + Gpt4120250414: "gpt-4.1-2025-04-14", + Gpt41Mini20250414: "gpt-4.1-mini-2025-04-14", + Gpt41Nano20250414: "gpt-4.1-nano-2025-04-14", + Gpt41: "gpt-4.1", + Gpt41Mini: "gpt-4.1-mini", + Gpt41Nano: "gpt-4.1-nano", + Chatgpt4OLatest: "chatgpt-4o-latest", + O3: "o3", + O3Mini: "o3-mini", + O4Mini: "o4-mini", + O1Mini: "o1-mini", + O1Mini20240912: "o1-mini-2024-09-12", + Gpt4OMini20240718: "gpt-4o-mini-2024-07-18", + Gpt4OMini: "gpt-4o-mini", + Gpt4O: "gpt-4o", + Gpt4O20240513: "gpt-4o-2024-05-13", + Gpt4O20240806: "gpt-4o-2024-08-06", + Gpt4O20241120: "gpt-4o-2024-11-20", + Gpt4Turbo: "gpt-4-turbo", + Gpt4Turbo20240409: "gpt-4-turbo-2024-04-09", + Gpt4TurboPreview: "gpt-4-turbo-preview", + Gpt40125Preview: "gpt-4-0125-preview", + Gpt41106Preview: "gpt-4-1106-preview", + Gpt4: "gpt-4", + Gpt40613: "gpt-4-0613", + Gpt35Turbo: "gpt-3.5-turbo", + Gpt35Turbo0125: "gpt-3.5-turbo-0125", + Gpt35Turbo1106: "gpt-3.5-turbo-1106", + Gpt35Turbo16K: "gpt-3.5-turbo-16k", + Gpt35Turbo0613: "gpt-3.5-turbo-0613", + Gpt4120250414Westus: "gpt-4.1-2025-04-14:westus", + Gpt4120250414Eastus2: "gpt-4.1-2025-04-14:eastus2", + Gpt4120250414Eastus: "gpt-4.1-2025-04-14:eastus", + Gpt4120250414Westus3: "gpt-4.1-2025-04-14:westus3", + Gpt4120250414Northcentralus: "gpt-4.1-2025-04-14:northcentralus", + Gpt4120250414Southcentralus: "gpt-4.1-2025-04-14:southcentralus", + Gpt41Mini20250414Westus: "gpt-4.1-mini-2025-04-14:westus", + Gpt41Mini20250414Eastus2: "gpt-4.1-mini-2025-04-14:eastus2", + Gpt41Mini20250414Eastus: "gpt-4.1-mini-2025-04-14:eastus", + Gpt41Mini20250414Westus3: "gpt-4.1-mini-2025-04-14:westus3", + Gpt41Mini20250414Northcentralus: "gpt-4.1-mini-2025-04-14:northcentralus", + Gpt41Mini20250414Southcentralus: "gpt-4.1-mini-2025-04-14:southcentralus", + Gpt41Nano20250414Westus: "gpt-4.1-nano-2025-04-14:westus", + Gpt41Nano20250414Eastus2: "gpt-4.1-nano-2025-04-14:eastus2", + Gpt41Nano20250414Westus3: "gpt-4.1-nano-2025-04-14:westus3", + Gpt41Nano20250414Northcentralus: "gpt-4.1-nano-2025-04-14:northcentralus", + Gpt41Nano20250414Southcentralus: "gpt-4.1-nano-2025-04-14:southcentralus", + Gpt4O20241120Swedencentral: "gpt-4o-2024-11-20:swedencentral", + Gpt4O20241120Westus: "gpt-4o-2024-11-20:westus", + Gpt4O20241120Eastus2: "gpt-4o-2024-11-20:eastus2", + Gpt4O20241120Eastus: "gpt-4o-2024-11-20:eastus", + Gpt4O20241120Westus3: "gpt-4o-2024-11-20:westus3", + Gpt4O20241120Southcentralus: "gpt-4o-2024-11-20:southcentralus", + Gpt4O20240806Westus: "gpt-4o-2024-08-06:westus", + Gpt4O20240806Westus3: "gpt-4o-2024-08-06:westus3", + Gpt4O20240806Eastus: "gpt-4o-2024-08-06:eastus", + Gpt4O20240806Eastus2: "gpt-4o-2024-08-06:eastus2", + Gpt4O20240806Northcentralus: "gpt-4o-2024-08-06:northcentralus", + Gpt4O20240806Southcentralus: "gpt-4o-2024-08-06:southcentralus", + Gpt4OMini20240718Westus: "gpt-4o-mini-2024-07-18:westus", + Gpt4OMini20240718Westus3: "gpt-4o-mini-2024-07-18:westus3", + Gpt4OMini20240718Eastus: "gpt-4o-mini-2024-07-18:eastus", + Gpt4OMini20240718Eastus2: "gpt-4o-mini-2024-07-18:eastus2", + Gpt4OMini20240718Northcentralus: "gpt-4o-mini-2024-07-18:northcentralus", + Gpt4OMini20240718Southcentralus: "gpt-4o-mini-2024-07-18:southcentralus", + Gpt4O20240513Eastus2: "gpt-4o-2024-05-13:eastus2", + Gpt4O20240513Eastus: "gpt-4o-2024-05-13:eastus", + Gpt4O20240513Northcentralus: "gpt-4o-2024-05-13:northcentralus", + Gpt4O20240513Southcentralus: "gpt-4o-2024-05-13:southcentralus", + Gpt4O20240513Westus3: "gpt-4o-2024-05-13:westus3", + Gpt4O20240513Westus: "gpt-4o-2024-05-13:westus", + Gpt4Turbo20240409Eastus2: "gpt-4-turbo-2024-04-09:eastus2", + Gpt40125PreviewEastus: "gpt-4-0125-preview:eastus", + Gpt40125PreviewNorthcentralus: "gpt-4-0125-preview:northcentralus", + Gpt40125PreviewSouthcentralus: "gpt-4-0125-preview:southcentralus", + Gpt41106PreviewAustralia: "gpt-4-1106-preview:australia", + Gpt41106PreviewCanadaeast: "gpt-4-1106-preview:canadaeast", + Gpt41106PreviewFrance: "gpt-4-1106-preview:france", + Gpt41106PreviewIndia: "gpt-4-1106-preview:india", + Gpt41106PreviewNorway: "gpt-4-1106-preview:norway", + Gpt41106PreviewSwedencentral: "gpt-4-1106-preview:swedencentral", + Gpt41106PreviewUk: "gpt-4-1106-preview:uk", + Gpt41106PreviewWestus: "gpt-4-1106-preview:westus", + Gpt41106PreviewWestus3: "gpt-4-1106-preview:westus3", + Gpt40613Canadaeast: "gpt-4-0613:canadaeast", + Gpt35Turbo0125Canadaeast: "gpt-3.5-turbo-0125:canadaeast", + Gpt35Turbo0125Northcentralus: "gpt-3.5-turbo-0125:northcentralus", + Gpt35Turbo0125Southcentralus: "gpt-3.5-turbo-0125:southcentralus", + Gpt35Turbo1106Canadaeast: "gpt-3.5-turbo-1106:canadaeast", + Gpt35Turbo1106Westus: "gpt-3.5-turbo-1106:westus", +} as const; diff --git a/src/api/types/EvalRun.ts b/src/api/types/EvalRun.ts index d03c5695..ba9fdaf6 100644 --- a/src/api/types/EvalRun.ts +++ b/src/api/types/EvalRun.ts @@ -9,7 +9,7 @@ export interface EvalRun { * This is the status of the eval run. When an eval run is created, the status is 'running'. * When the eval run is completed, the status is 'ended'. */ - status: EvalRun.Status; + status: Vapi.EvalRunStatus; /** * This is the reason for the eval run to end. * When the eval run is completed normally i.e end of mock conversation, the status is 'mockConversation.done'. @@ -18,11 +18,11 @@ export interface EvalRun { * When the eval run is cancelled by the user, the status is 'cancelled'. * When the eval run is cancelled by Vapi for any reason, the status is 'aborted'. */ - endedReason: EvalRun.EndedReason; + endedReason: Vapi.EvalRunEndedReason; /** This is the transient eval that will be run */ eval?: Vapi.CreateEvalDto; /** This is the target that will be run against the eval */ - target: EvalRun.Target; + target: Vapi.EvalRunTarget; id: string; orgId: string; createdAt: string; @@ -43,36 +43,3 @@ export interface EvalRun { /** This is the id of the eval that will be run. */ evalId?: string; } - -export namespace EvalRun { - /** - * This is the status of the eval run. When an eval run is created, the status is 'running'. - * When the eval run is completed, the status is 'ended'. - */ - export type Status = "running" | "ended" | "queued"; - export const Status = { - Running: "running", - Ended: "ended", - Queued: "queued", - } as const; - /** - * This is the reason for the eval run to end. - * When the eval run is completed normally i.e end of mock conversation, the status is 'mockConversation.done'. - * When the eval fails due to an error like Chat error or incorrect configuration, the status is 'error'. - * When the eval runs for too long, due to model issues or tool call issues, the status is 'timeout'. - * When the eval run is cancelled by the user, the status is 'cancelled'. - * When the eval run is cancelled by Vapi for any reason, the status is 'aborted'. - */ - export type EndedReason = "mockConversation.done" | "error" | "timeout" | "cancelled" | "aborted"; - export const EndedReason = { - MockConversationDone: "mockConversation.done", - Error: "error", - Timeout: "timeout", - Cancelled: "cancelled", - Aborted: "aborted", - } as const; - /** - * This is the target that will be run against the eval - */ - export type Target = Vapi.EvalRunTargetAssistant | Vapi.EvalRunTargetSquad; -} diff --git a/src/api/types/EvalRunEndedReason.ts b/src/api/types/EvalRunEndedReason.ts new file mode 100644 index 00000000..ebd5e4c6 --- /dev/null +++ b/src/api/types/EvalRunEndedReason.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the reason for the eval run to end. + * When the eval run is completed normally i.e end of mock conversation, the status is 'mockConversation.done'. + * When the eval fails due to an error like Chat error or incorrect configuration, the status is 'error'. + * When the eval runs for too long, due to model issues or tool call issues, the status is 'timeout'. + * When the eval run is cancelled by the user, the status is 'cancelled'. + * When the eval run is cancelled by Vapi for any reason, the status is 'aborted'. + */ +export type EvalRunEndedReason = "mockConversation.done" | "error" | "timeout" | "cancelled" | "aborted"; +export const EvalRunEndedReason = { + MockConversationDone: "mockConversation.done", + Error: "error", + Timeout: "timeout", + Cancelled: "cancelled", + Aborted: "aborted", +} as const; diff --git a/src/api/types/EvalRunResult.ts b/src/api/types/EvalRunResult.ts index ea2d219d..6939c93c 100644 --- a/src/api/types/EvalRunResult.ts +++ b/src/api/types/EvalRunResult.ts @@ -10,36 +10,14 @@ export interface EvalRunResult { * The status is only 'pass' or 'fail' for an eval run result. * Currently, An eval is considered `pass` only if all the Assistant Judge messages are evaluated to pass. */ - status: EvalRunResult.Status; + status: Vapi.EvalRunResultStatus; /** * This is the messages of the eval run result. * It contains the user/system messages */ - messages: EvalRunResult.Messages.Item[]; + messages: Vapi.EvalRunResultMessagesItem[]; /** This is the start time of the eval run result. */ startedAt: string; /** This is the end time of the eval run result. */ endedAt: string; } - -export namespace EvalRunResult { - /** - * This is the status of the eval run result. - * The status is only 'pass' or 'fail' for an eval run result. - * Currently, An eval is considered `pass` only if all the Assistant Judge messages are evaluated to pass. - */ - export type Status = "pass" | "fail"; - export const Status = { - Pass: "pass", - Fail: "fail", - } as const; - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ChatEvalUserMessageMock - | Vapi.ChatEvalSystemMessageMock - | Vapi.ChatEvalToolResponseMessageMock - | Vapi.ChatEvalAssistantMessageMock; - } -} diff --git a/src/api/types/EvalRunResultMessagesItem.ts b/src/api/types/EvalRunResultMessagesItem.ts new file mode 100644 index 00000000..e4dfb4b7 --- /dev/null +++ b/src/api/types/EvalRunResultMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type EvalRunResultMessagesItem = + | Vapi.ChatEvalUserMessageMock + | Vapi.ChatEvalSystemMessageMock + | Vapi.ChatEvalToolResponseMessageMock + | Vapi.ChatEvalAssistantMessageMock; diff --git a/src/api/types/EvalRunResultStatus.ts b/src/api/types/EvalRunResultStatus.ts new file mode 100644 index 00000000..5d2dcfec --- /dev/null +++ b/src/api/types/EvalRunResultStatus.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the status of the eval run result. + * The status is only 'pass' or 'fail' for an eval run result. + * Currently, An eval is considered `pass` only if all the Assistant Judge messages are evaluated to pass. + */ +export type EvalRunResultStatus = "pass" | "fail"; +export const EvalRunResultStatus = { + Pass: "pass", + Fail: "fail", +} as const; diff --git a/src/api/types/EvalRunStatus.ts b/src/api/types/EvalRunStatus.ts new file mode 100644 index 00000000..bdc283ad --- /dev/null +++ b/src/api/types/EvalRunStatus.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the status of the eval run. When an eval run is created, the status is 'running'. + * When the eval run is completed, the status is 'ended'. + */ +export type EvalRunStatus = "running" | "ended" | "queued"; +export const EvalRunStatus = { + Running: "running", + Ended: "ended", + Queued: "queued", +} as const; diff --git a/src/api/types/EvalRunTarget.ts b/src/api/types/EvalRunTarget.ts new file mode 100644 index 00000000..80da69c4 --- /dev/null +++ b/src/api/types/EvalRunTarget.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the target that will be run against the eval + */ +export type EvalRunTarget = Vapi.EvalRunTargetAssistant | Vapi.EvalRunTargetSquad; diff --git a/src/api/types/EvalUserEditable.ts b/src/api/types/EvalUserEditable.ts index a3f297e0..dfcaa9b4 100644 --- a/src/api/types/EvalUserEditable.ts +++ b/src/api/types/EvalUserEditable.ts @@ -12,7 +12,7 @@ export interface EvalUserEditable { * * Evaluation Messages are used as checkpoints in the flow where the model's response to previous conversation needs to be evaluated to check the content and tool calls */ - messages: EvalUserEditable.Messages.Item[]; + messages: Vapi.EvalUserEditableMessagesItem[]; /** * This is the name of the eval. * It helps identify what the eval is checking for. @@ -29,16 +29,3 @@ export interface EvalUserEditable { */ type: "chat.mockConversation"; } - -export namespace EvalUserEditable { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ChatEvalAssistantMessageMock - | Vapi.ChatEvalSystemMessageMock - | Vapi.ChatEvalToolResponseMessageMock - | Vapi.ChatEvalUserMessageMock - | Vapi.ChatEvalAssistantMessageEvaluation; - } -} diff --git a/src/api/types/EvalUserEditableMessagesItem.ts b/src/api/types/EvalUserEditableMessagesItem.ts new file mode 100644 index 00000000..769803e9 --- /dev/null +++ b/src/api/types/EvalUserEditableMessagesItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type EvalUserEditableMessagesItem = + | Vapi.ChatEvalAssistantMessageMock + | Vapi.ChatEvalSystemMessageMock + | Vapi.ChatEvalToolResponseMessageMock + | Vapi.ChatEvalUserMessageMock + | Vapi.ChatEvalAssistantMessageEvaluation; diff --git a/src/api/types/FallbackAzureSpeechTranscriber.ts b/src/api/types/FallbackAzureSpeechTranscriber.ts index f09e8f69..32198b2f 100644 --- a/src/api/types/FallbackAzureSpeechTranscriber.ts +++ b/src/api/types/FallbackAzureSpeechTranscriber.ts @@ -2,319 +2,17 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface FallbackAzureSpeechTranscriber { /** This is the transcription provider that will be used. */ provider: "azure"; /** This is the language that will be set for the transcription. The list of languages Azure supports can be found here: https://learn.microsoft.com/en-us/azure/ai-services/speech-service/language-support?tabs=stt */ - language?: FallbackAzureSpeechTranscriber.Language; + language?: Vapi.FallbackAzureSpeechTranscriberLanguage; /** Controls how phrase boundaries are detected, enabling either simple time/silence heuristics or more advanced semantic segmentation. */ - segmentationStrategy?: FallbackAzureSpeechTranscriber.SegmentationStrategy; + segmentationStrategy?: Vapi.FallbackAzureSpeechTranscriberSegmentationStrategy; /** Duration of detected silence after which the service finalizes a phrase. Configure to adjust sensitivity to pauses in speech. */ segmentationSilenceTimeoutMs?: number; /** Maximum duration a segment can reach before being cut off when using time-based segmentation. */ segmentationMaximumTimeMs?: number; } - -export namespace FallbackAzureSpeechTranscriber { - /** - * This is the language that will be set for the transcription. The list of languages Azure supports can be found here: https://learn.microsoft.com/en-us/azure/ai-services/speech-service/language-support?tabs=stt - */ - export type Language = - | "af-ZA" - | "am-ET" - | "ar-AE" - | "ar-BH" - | "ar-DZ" - | "ar-EG" - | "ar-IL" - | "ar-IQ" - | "ar-JO" - | "ar-KW" - | "ar-LB" - | "ar-LY" - | "ar-MA" - | "ar-OM" - | "ar-PS" - | "ar-QA" - | "ar-SA" - | "ar-SY" - | "ar-TN" - | "ar-YE" - | "az-AZ" - | "bg-BG" - | "bn-IN" - | "bs-BA" - | "ca-ES" - | "cs-CZ" - | "cy-GB" - | "da-DK" - | "de-AT" - | "de-CH" - | "de-DE" - | "el-GR" - | "en-AU" - | "en-CA" - | "en-GB" - | "en-GH" - | "en-HK" - | "en-IE" - | "en-IN" - | "en-KE" - | "en-NG" - | "en-NZ" - | "en-PH" - | "en-SG" - | "en-TZ" - | "en-US" - | "en-ZA" - | "es-AR" - | "es-BO" - | "es-CL" - | "es-CO" - | "es-CR" - | "es-CU" - | "es-DO" - | "es-EC" - | "es-ES" - | "es-GQ" - | "es-GT" - | "es-HN" - | "es-MX" - | "es-NI" - | "es-PA" - | "es-PE" - | "es-PR" - | "es-PY" - | "es-SV" - | "es-US" - | "es-UY" - | "es-VE" - | "et-EE" - | "eu-ES" - | "fa-IR" - | "fi-FI" - | "fil-PH" - | "fr-BE" - | "fr-CA" - | "fr-CH" - | "fr-FR" - | "ga-IE" - | "gl-ES" - | "gu-IN" - | "he-IL" - | "hi-IN" - | "hr-HR" - | "hu-HU" - | "hy-AM" - | "id-ID" - | "is-IS" - | "it-CH" - | "it-IT" - | "ja-JP" - | "jv-ID" - | "ka-GE" - | "kk-KZ" - | "km-KH" - | "kn-IN" - | "ko-KR" - | "lo-LA" - | "lt-LT" - | "lv-LV" - | "mk-MK" - | "ml-IN" - | "mn-MN" - | "mr-IN" - | "ms-MY" - | "mt-MT" - | "my-MM" - | "nb-NO" - | "ne-NP" - | "nl-BE" - | "nl-NL" - | "pa-IN" - | "pl-PL" - | "ps-AF" - | "pt-BR" - | "pt-PT" - | "ro-RO" - | "ru-RU" - | "si-LK" - | "sk-SK" - | "sl-SI" - | "so-SO" - | "sq-AL" - | "sr-RS" - | "sv-SE" - | "sw-KE" - | "sw-TZ" - | "ta-IN" - | "te-IN" - | "th-TH" - | "tr-TR" - | "uk-UA" - | "ur-IN" - | "uz-UZ" - | "vi-VN" - | "wuu-CN" - | "yue-CN" - | "zh-CN" - | "zh-CN-shandong" - | "zh-CN-sichuan" - | "zh-HK" - | "zh-TW" - | "zu-ZA"; - export const Language = { - AfZa: "af-ZA", - AmEt: "am-ET", - ArAe: "ar-AE", - ArBh: "ar-BH", - ArDz: "ar-DZ", - ArEg: "ar-EG", - ArIl: "ar-IL", - ArIq: "ar-IQ", - ArJo: "ar-JO", - ArKw: "ar-KW", - ArLb: "ar-LB", - ArLy: "ar-LY", - ArMa: "ar-MA", - ArOm: "ar-OM", - ArPs: "ar-PS", - ArQa: "ar-QA", - ArSa: "ar-SA", - ArSy: "ar-SY", - ArTn: "ar-TN", - ArYe: "ar-YE", - AzAz: "az-AZ", - BgBg: "bg-BG", - BnIn: "bn-IN", - BsBa: "bs-BA", - CaEs: "ca-ES", - CsCz: "cs-CZ", - CyGb: "cy-GB", - DaDk: "da-DK", - DeAt: "de-AT", - DeCh: "de-CH", - DeDe: "de-DE", - ElGr: "el-GR", - EnAu: "en-AU", - EnCa: "en-CA", - EnGb: "en-GB", - EnGh: "en-GH", - EnHk: "en-HK", - EnIe: "en-IE", - EnIn: "en-IN", - EnKe: "en-KE", - EnNg: "en-NG", - EnNz: "en-NZ", - EnPh: "en-PH", - EnSg: "en-SG", - EnTz: "en-TZ", - EnUs: "en-US", - EnZa: "en-ZA", - EsAr: "es-AR", - EsBo: "es-BO", - EsCl: "es-CL", - EsCo: "es-CO", - EsCr: "es-CR", - EsCu: "es-CU", - EsDo: "es-DO", - EsEc: "es-EC", - EsEs: "es-ES", - EsGq: "es-GQ", - EsGt: "es-GT", - EsHn: "es-HN", - EsMx: "es-MX", - EsNi: "es-NI", - EsPa: "es-PA", - EsPe: "es-PE", - EsPr: "es-PR", - EsPy: "es-PY", - EsSv: "es-SV", - EsUs: "es-US", - EsUy: "es-UY", - EsVe: "es-VE", - EtEe: "et-EE", - EuEs: "eu-ES", - FaIr: "fa-IR", - FiFi: "fi-FI", - FilPh: "fil-PH", - FrBe: "fr-BE", - FrCa: "fr-CA", - FrCh: "fr-CH", - FrFr: "fr-FR", - GaIe: "ga-IE", - GlEs: "gl-ES", - GuIn: "gu-IN", - HeIl: "he-IL", - HiIn: "hi-IN", - HrHr: "hr-HR", - HuHu: "hu-HU", - HyAm: "hy-AM", - IdId: "id-ID", - IsIs: "is-IS", - ItCh: "it-CH", - ItIt: "it-IT", - JaJp: "ja-JP", - JvId: "jv-ID", - KaGe: "ka-GE", - KkKz: "kk-KZ", - KmKh: "km-KH", - KnIn: "kn-IN", - KoKr: "ko-KR", - LoLa: "lo-LA", - LtLt: "lt-LT", - LvLv: "lv-LV", - MkMk: "mk-MK", - MlIn: "ml-IN", - MnMn: "mn-MN", - MrIn: "mr-IN", - MsMy: "ms-MY", - MtMt: "mt-MT", - MyMm: "my-MM", - NbNo: "nb-NO", - NeNp: "ne-NP", - NlBe: "nl-BE", - NlNl: "nl-NL", - PaIn: "pa-IN", - PlPl: "pl-PL", - PsAf: "ps-AF", - PtBr: "pt-BR", - PtPt: "pt-PT", - RoRo: "ro-RO", - RuRu: "ru-RU", - SiLk: "si-LK", - SkSk: "sk-SK", - SlSi: "sl-SI", - SoSo: "so-SO", - SqAl: "sq-AL", - SrRs: "sr-RS", - SvSe: "sv-SE", - SwKe: "sw-KE", - SwTz: "sw-TZ", - TaIn: "ta-IN", - TeIn: "te-IN", - ThTh: "th-TH", - TrTr: "tr-TR", - UkUa: "uk-UA", - UrIn: "ur-IN", - UzUz: "uz-UZ", - ViVn: "vi-VN", - WuuCn: "wuu-CN", - YueCn: "yue-CN", - ZhCn: "zh-CN", - ZhCnShandong: "zh-CN-shandong", - ZhCnSichuan: "zh-CN-sichuan", - ZhHk: "zh-HK", - ZhTw: "zh-TW", - ZuZa: "zu-ZA", - } as const; - /** - * Controls how phrase boundaries are detected, enabling either simple time/silence heuristics or more advanced semantic segmentation. - */ - export type SegmentationStrategy = "Default" | "Time" | "Semantic"; - export const SegmentationStrategy = { - Default: "Default", - Time: "Time", - Semantic: "Semantic", - } as const; -} diff --git a/src/api/types/FallbackAzureSpeechTranscriberLanguage.ts b/src/api/types/FallbackAzureSpeechTranscriberLanguage.ts new file mode 100644 index 00000000..9f5c4790 --- /dev/null +++ b/src/api/types/FallbackAzureSpeechTranscriberLanguage.ts @@ -0,0 +1,296 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the language that will be set for the transcription. The list of languages Azure supports can be found here: https://learn.microsoft.com/en-us/azure/ai-services/speech-service/language-support?tabs=stt + */ +export type FallbackAzureSpeechTranscriberLanguage = + | "af-ZA" + | "am-ET" + | "ar-AE" + | "ar-BH" + | "ar-DZ" + | "ar-EG" + | "ar-IL" + | "ar-IQ" + | "ar-JO" + | "ar-KW" + | "ar-LB" + | "ar-LY" + | "ar-MA" + | "ar-OM" + | "ar-PS" + | "ar-QA" + | "ar-SA" + | "ar-SY" + | "ar-TN" + | "ar-YE" + | "az-AZ" + | "bg-BG" + | "bn-IN" + | "bs-BA" + | "ca-ES" + | "cs-CZ" + | "cy-GB" + | "da-DK" + | "de-AT" + | "de-CH" + | "de-DE" + | "el-GR" + | "en-AU" + | "en-CA" + | "en-GB" + | "en-GH" + | "en-HK" + | "en-IE" + | "en-IN" + | "en-KE" + | "en-NG" + | "en-NZ" + | "en-PH" + | "en-SG" + | "en-TZ" + | "en-US" + | "en-ZA" + | "es-AR" + | "es-BO" + | "es-CL" + | "es-CO" + | "es-CR" + | "es-CU" + | "es-DO" + | "es-EC" + | "es-ES" + | "es-GQ" + | "es-GT" + | "es-HN" + | "es-MX" + | "es-NI" + | "es-PA" + | "es-PE" + | "es-PR" + | "es-PY" + | "es-SV" + | "es-US" + | "es-UY" + | "es-VE" + | "et-EE" + | "eu-ES" + | "fa-IR" + | "fi-FI" + | "fil-PH" + | "fr-BE" + | "fr-CA" + | "fr-CH" + | "fr-FR" + | "ga-IE" + | "gl-ES" + | "gu-IN" + | "he-IL" + | "hi-IN" + | "hr-HR" + | "hu-HU" + | "hy-AM" + | "id-ID" + | "is-IS" + | "it-CH" + | "it-IT" + | "ja-JP" + | "jv-ID" + | "ka-GE" + | "kk-KZ" + | "km-KH" + | "kn-IN" + | "ko-KR" + | "lo-LA" + | "lt-LT" + | "lv-LV" + | "mk-MK" + | "ml-IN" + | "mn-MN" + | "mr-IN" + | "ms-MY" + | "mt-MT" + | "my-MM" + | "nb-NO" + | "ne-NP" + | "nl-BE" + | "nl-NL" + | "pa-IN" + | "pl-PL" + | "ps-AF" + | "pt-BR" + | "pt-PT" + | "ro-RO" + | "ru-RU" + | "si-LK" + | "sk-SK" + | "sl-SI" + | "so-SO" + | "sq-AL" + | "sr-RS" + | "sv-SE" + | "sw-KE" + | "sw-TZ" + | "ta-IN" + | "te-IN" + | "th-TH" + | "tr-TR" + | "uk-UA" + | "ur-IN" + | "uz-UZ" + | "vi-VN" + | "wuu-CN" + | "yue-CN" + | "zh-CN" + | "zh-CN-shandong" + | "zh-CN-sichuan" + | "zh-HK" + | "zh-TW" + | "zu-ZA"; +export const FallbackAzureSpeechTranscriberLanguage = { + AfZa: "af-ZA", + AmEt: "am-ET", + ArAe: "ar-AE", + ArBh: "ar-BH", + ArDz: "ar-DZ", + ArEg: "ar-EG", + ArIl: "ar-IL", + ArIq: "ar-IQ", + ArJo: "ar-JO", + ArKw: "ar-KW", + ArLb: "ar-LB", + ArLy: "ar-LY", + ArMa: "ar-MA", + ArOm: "ar-OM", + ArPs: "ar-PS", + ArQa: "ar-QA", + ArSa: "ar-SA", + ArSy: "ar-SY", + ArTn: "ar-TN", + ArYe: "ar-YE", + AzAz: "az-AZ", + BgBg: "bg-BG", + BnIn: "bn-IN", + BsBa: "bs-BA", + CaEs: "ca-ES", + CsCz: "cs-CZ", + CyGb: "cy-GB", + DaDk: "da-DK", + DeAt: "de-AT", + DeCh: "de-CH", + DeDe: "de-DE", + ElGr: "el-GR", + EnAu: "en-AU", + EnCa: "en-CA", + EnGb: "en-GB", + EnGh: "en-GH", + EnHk: "en-HK", + EnIe: "en-IE", + EnIn: "en-IN", + EnKe: "en-KE", + EnNg: "en-NG", + EnNz: "en-NZ", + EnPh: "en-PH", + EnSg: "en-SG", + EnTz: "en-TZ", + EnUs: "en-US", + EnZa: "en-ZA", + EsAr: "es-AR", + EsBo: "es-BO", + EsCl: "es-CL", + EsCo: "es-CO", + EsCr: "es-CR", + EsCu: "es-CU", + EsDo: "es-DO", + EsEc: "es-EC", + EsEs: "es-ES", + EsGq: "es-GQ", + EsGt: "es-GT", + EsHn: "es-HN", + EsMx: "es-MX", + EsNi: "es-NI", + EsPa: "es-PA", + EsPe: "es-PE", + EsPr: "es-PR", + EsPy: "es-PY", + EsSv: "es-SV", + EsUs: "es-US", + EsUy: "es-UY", + EsVe: "es-VE", + EtEe: "et-EE", + EuEs: "eu-ES", + FaIr: "fa-IR", + FiFi: "fi-FI", + FilPh: "fil-PH", + FrBe: "fr-BE", + FrCa: "fr-CA", + FrCh: "fr-CH", + FrFr: "fr-FR", + GaIe: "ga-IE", + GlEs: "gl-ES", + GuIn: "gu-IN", + HeIl: "he-IL", + HiIn: "hi-IN", + HrHr: "hr-HR", + HuHu: "hu-HU", + HyAm: "hy-AM", + IdId: "id-ID", + IsIs: "is-IS", + ItCh: "it-CH", + ItIt: "it-IT", + JaJp: "ja-JP", + JvId: "jv-ID", + KaGe: "ka-GE", + KkKz: "kk-KZ", + KmKh: "km-KH", + KnIn: "kn-IN", + KoKr: "ko-KR", + LoLa: "lo-LA", + LtLt: "lt-LT", + LvLv: "lv-LV", + MkMk: "mk-MK", + MlIn: "ml-IN", + MnMn: "mn-MN", + MrIn: "mr-IN", + MsMy: "ms-MY", + MtMt: "mt-MT", + MyMm: "my-MM", + NbNo: "nb-NO", + NeNp: "ne-NP", + NlBe: "nl-BE", + NlNl: "nl-NL", + PaIn: "pa-IN", + PlPl: "pl-PL", + PsAf: "ps-AF", + PtBr: "pt-BR", + PtPt: "pt-PT", + RoRo: "ro-RO", + RuRu: "ru-RU", + SiLk: "si-LK", + SkSk: "sk-SK", + SlSi: "sl-SI", + SoSo: "so-SO", + SqAl: "sq-AL", + SrRs: "sr-RS", + SvSe: "sv-SE", + SwKe: "sw-KE", + SwTz: "sw-TZ", + TaIn: "ta-IN", + TeIn: "te-IN", + ThTh: "th-TH", + TrTr: "tr-TR", + UkUa: "uk-UA", + UrIn: "ur-IN", + UzUz: "uz-UZ", + ViVn: "vi-VN", + WuuCn: "wuu-CN", + YueCn: "yue-CN", + ZhCn: "zh-CN", + ZhCnShandong: "zh-CN-shandong", + ZhCnSichuan: "zh-CN-sichuan", + ZhHk: "zh-HK", + ZhTw: "zh-TW", + ZuZa: "zu-ZA", +} as const; diff --git a/src/api/types/FallbackAzureSpeechTranscriberSegmentationStrategy.ts b/src/api/types/FallbackAzureSpeechTranscriberSegmentationStrategy.ts new file mode 100644 index 00000000..c0545209 --- /dev/null +++ b/src/api/types/FallbackAzureSpeechTranscriberSegmentationStrategy.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Controls how phrase boundaries are detected, enabling either simple time/silence heuristics or more advanced semantic segmentation. + */ +export type FallbackAzureSpeechTranscriberSegmentationStrategy = "Default" | "Time" | "Semantic"; +export const FallbackAzureSpeechTranscriberSegmentationStrategy = { + Default: "Default", + Time: "Time", + Semantic: "Semantic", +} as const; diff --git a/src/api/types/FallbackAzureVoice.ts b/src/api/types/FallbackAzureVoice.ts index 3c0adc04..6ed684b6 100644 --- a/src/api/types/FallbackAzureVoice.ts +++ b/src/api/types/FallbackAzureVoice.ts @@ -10,17 +10,10 @@ export interface FallbackAzureVoice { /** This is the voice provider that will be used. */ provider: "azure"; /** This is the provider-specific ID that will be used. */ - voiceId: FallbackAzureVoice.VoiceId; + voiceId: Vapi.FallbackAzureVoiceId; /** This is the speed multiplier that will be used. */ speed?: number; /** This is the plan for chunking the model output before it is sent to the voice provider. */ chunkPlan?: Vapi.ChunkPlan; oneOf?: unknown; } - -export namespace FallbackAzureVoice { - /** - * This is the provider-specific ID that will be used. - */ - export type VoiceId = ("andrew" | "brian" | "emma") | string; -} diff --git a/src/api/types/FallbackAzureVoiceId.ts b/src/api/types/FallbackAzureVoiceId.ts new file mode 100644 index 00000000..dd5dc5c2 --- /dev/null +++ b/src/api/types/FallbackAzureVoiceId.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the provider-specific ID that will be used. + */ +export type FallbackAzureVoiceId = Vapi.FallbackAzureVoiceVoiceId | string; diff --git a/src/api/types/FallbackAzureVoiceVoiceId.ts b/src/api/types/FallbackAzureVoiceVoiceId.ts new file mode 100644 index 00000000..d432bee9 --- /dev/null +++ b/src/api/types/FallbackAzureVoiceVoiceId.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type FallbackAzureVoiceVoiceId = "andrew" | "brian" | "emma"; +export const FallbackAzureVoiceVoiceId = { + Andrew: "andrew", + Brian: "brian", + Emma: "emma", +} as const; diff --git a/src/api/types/FallbackCartesiaTranscriber.ts b/src/api/types/FallbackCartesiaTranscriber.ts index 976c9c08..7979c6f9 100644 --- a/src/api/types/FallbackCartesiaTranscriber.ts +++ b/src/api/types/FallbackCartesiaTranscriber.ts @@ -2,384 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface FallbackCartesiaTranscriber { provider: "cartesia"; model?: "ink-whisper"; - language?: FallbackCartesiaTranscriber.Language; -} - -export namespace FallbackCartesiaTranscriber { - export type Language = - | "aa" - | "ab" - | "ae" - | "af" - | "ak" - | "am" - | "an" - | "ar" - | "as" - | "av" - | "ay" - | "az" - | "ba" - | "be" - | "bg" - | "bh" - | "bi" - | "bm" - | "bn" - | "bo" - | "br" - | "bs" - | "ca" - | "ce" - | "ch" - | "co" - | "cr" - | "cs" - | "cu" - | "cv" - | "cy" - | "da" - | "de" - | "dv" - | "dz" - | "ee" - | "el" - | "en" - | "eo" - | "es" - | "et" - | "eu" - | "fa" - | "ff" - | "fi" - | "fj" - | "fo" - | "fr" - | "fy" - | "ga" - | "gd" - | "gl" - | "gn" - | "gu" - | "gv" - | "ha" - | "he" - | "hi" - | "ho" - | "hr" - | "ht" - | "hu" - | "hy" - | "hz" - | "ia" - | "id" - | "ie" - | "ig" - | "ii" - | "ik" - | "io" - | "is" - | "it" - | "iu" - | "ja" - | "jv" - | "ka" - | "kg" - | "ki" - | "kj" - | "kk" - | "kl" - | "km" - | "kn" - | "ko" - | "kr" - | "ks" - | "ku" - | "kv" - | "kw" - | "ky" - | "la" - | "lb" - | "lg" - | "li" - | "ln" - | "lo" - | "lt" - | "lu" - | "lv" - | "mg" - | "mh" - | "mi" - | "mk" - | "ml" - | "mn" - | "mr" - | "ms" - | "mt" - | "my" - | "na" - | "nb" - | "nd" - | "ne" - | "ng" - | "nl" - | "nn" - | "no" - | "nr" - | "nv" - | "ny" - | "oc" - | "oj" - | "om" - | "or" - | "os" - | "pa" - | "pi" - | "pl" - | "ps" - | "pt" - | "qu" - | "rm" - | "rn" - | "ro" - | "ru" - | "rw" - | "sa" - | "sc" - | "sd" - | "se" - | "sg" - | "si" - | "sk" - | "sl" - | "sm" - | "sn" - | "so" - | "sq" - | "sr" - | "ss" - | "st" - | "su" - | "sv" - | "sw" - | "ta" - | "te" - | "tg" - | "th" - | "ti" - | "tk" - | "tl" - | "tn" - | "to" - | "tr" - | "ts" - | "tt" - | "tw" - | "ty" - | "ug" - | "uk" - | "ur" - | "uz" - | "ve" - | "vi" - | "vo" - | "wa" - | "wo" - | "xh" - | "yi" - | "yue" - | "yo" - | "za" - | "zh" - | "zu"; - export const Language = { - Aa: "aa", - Ab: "ab", - Ae: "ae", - Af: "af", - Ak: "ak", - Am: "am", - An: "an", - Ar: "ar", - As: "as", - Av: "av", - Ay: "ay", - Az: "az", - Ba: "ba", - Be: "be", - Bg: "bg", - Bh: "bh", - Bi: "bi", - Bm: "bm", - Bn: "bn", - Bo: "bo", - Br: "br", - Bs: "bs", - Ca: "ca", - Ce: "ce", - Ch: "ch", - Co: "co", - Cr: "cr", - Cs: "cs", - Cu: "cu", - Cv: "cv", - Cy: "cy", - Da: "da", - De: "de", - Dv: "dv", - Dz: "dz", - Ee: "ee", - El: "el", - En: "en", - Eo: "eo", - Es: "es", - Et: "et", - Eu: "eu", - Fa: "fa", - Ff: "ff", - Fi: "fi", - Fj: "fj", - Fo: "fo", - Fr: "fr", - Fy: "fy", - Ga: "ga", - Gd: "gd", - Gl: "gl", - Gn: "gn", - Gu: "gu", - Gv: "gv", - Ha: "ha", - He: "he", - Hi: "hi", - Ho: "ho", - Hr: "hr", - Ht: "ht", - Hu: "hu", - Hy: "hy", - Hz: "hz", - Ia: "ia", - Id: "id", - Ie: "ie", - Ig: "ig", - Ii: "ii", - Ik: "ik", - Io: "io", - Is: "is", - It: "it", - Iu: "iu", - Ja: "ja", - Jv: "jv", - Ka: "ka", - Kg: "kg", - Ki: "ki", - Kj: "kj", - Kk: "kk", - Kl: "kl", - Km: "km", - Kn: "kn", - Ko: "ko", - Kr: "kr", - Ks: "ks", - Ku: "ku", - Kv: "kv", - Kw: "kw", - Ky: "ky", - La: "la", - Lb: "lb", - Lg: "lg", - Li: "li", - Ln: "ln", - Lo: "lo", - Lt: "lt", - Lu: "lu", - Lv: "lv", - Mg: "mg", - Mh: "mh", - Mi: "mi", - Mk: "mk", - Ml: "ml", - Mn: "mn", - Mr: "mr", - Ms: "ms", - Mt: "mt", - My: "my", - Na: "na", - Nb: "nb", - Nd: "nd", - Ne: "ne", - Ng: "ng", - Nl: "nl", - Nn: "nn", - No: "no", - Nr: "nr", - Nv: "nv", - Ny: "ny", - Oc: "oc", - Oj: "oj", - Om: "om", - Or: "or", - Os: "os", - Pa: "pa", - Pi: "pi", - Pl: "pl", - Ps: "ps", - Pt: "pt", - Qu: "qu", - Rm: "rm", - Rn: "rn", - Ro: "ro", - Ru: "ru", - Rw: "rw", - Sa: "sa", - Sc: "sc", - Sd: "sd", - Se: "se", - Sg: "sg", - Si: "si", - Sk: "sk", - Sl: "sl", - Sm: "sm", - Sn: "sn", - So: "so", - Sq: "sq", - Sr: "sr", - Ss: "ss", - St: "st", - Su: "su", - Sv: "sv", - Sw: "sw", - Ta: "ta", - Te: "te", - Tg: "tg", - Th: "th", - Ti: "ti", - Tk: "tk", - Tl: "tl", - Tn: "tn", - To: "to", - Tr: "tr", - Ts: "ts", - Tt: "tt", - Tw: "tw", - Ty: "ty", - Ug: "ug", - Uk: "uk", - Ur: "ur", - Uz: "uz", - Ve: "ve", - Vi: "vi", - Vo: "vo", - Wa: "wa", - Wo: "wo", - Xh: "xh", - Yi: "yi", - Yue: "yue", - Yo: "yo", - Za: "za", - Zh: "zh", - Zu: "zu", - } as const; + language?: Vapi.FallbackCartesiaTranscriberLanguage; } diff --git a/src/api/types/FallbackCartesiaTranscriberLanguage.ts b/src/api/types/FallbackCartesiaTranscriberLanguage.ts new file mode 100644 index 00000000..b4ba2347 --- /dev/null +++ b/src/api/types/FallbackCartesiaTranscriberLanguage.ts @@ -0,0 +1,377 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type FallbackCartesiaTranscriberLanguage = + | "aa" + | "ab" + | "ae" + | "af" + | "ak" + | "am" + | "an" + | "ar" + | "as" + | "av" + | "ay" + | "az" + | "ba" + | "be" + | "bg" + | "bh" + | "bi" + | "bm" + | "bn" + | "bo" + | "br" + | "bs" + | "ca" + | "ce" + | "ch" + | "co" + | "cr" + | "cs" + | "cu" + | "cv" + | "cy" + | "da" + | "de" + | "dv" + | "dz" + | "ee" + | "el" + | "en" + | "eo" + | "es" + | "et" + | "eu" + | "fa" + | "ff" + | "fi" + | "fj" + | "fo" + | "fr" + | "fy" + | "ga" + | "gd" + | "gl" + | "gn" + | "gu" + | "gv" + | "ha" + | "he" + | "hi" + | "ho" + | "hr" + | "ht" + | "hu" + | "hy" + | "hz" + | "ia" + | "id" + | "ie" + | "ig" + | "ii" + | "ik" + | "io" + | "is" + | "it" + | "iu" + | "ja" + | "jv" + | "ka" + | "kg" + | "ki" + | "kj" + | "kk" + | "kl" + | "km" + | "kn" + | "ko" + | "kr" + | "ks" + | "ku" + | "kv" + | "kw" + | "ky" + | "la" + | "lb" + | "lg" + | "li" + | "ln" + | "lo" + | "lt" + | "lu" + | "lv" + | "mg" + | "mh" + | "mi" + | "mk" + | "ml" + | "mn" + | "mr" + | "ms" + | "mt" + | "my" + | "na" + | "nb" + | "nd" + | "ne" + | "ng" + | "nl" + | "nn" + | "no" + | "nr" + | "nv" + | "ny" + | "oc" + | "oj" + | "om" + | "or" + | "os" + | "pa" + | "pi" + | "pl" + | "ps" + | "pt" + | "qu" + | "rm" + | "rn" + | "ro" + | "ru" + | "rw" + | "sa" + | "sc" + | "sd" + | "se" + | "sg" + | "si" + | "sk" + | "sl" + | "sm" + | "sn" + | "so" + | "sq" + | "sr" + | "ss" + | "st" + | "su" + | "sv" + | "sw" + | "ta" + | "te" + | "tg" + | "th" + | "ti" + | "tk" + | "tl" + | "tn" + | "to" + | "tr" + | "ts" + | "tt" + | "tw" + | "ty" + | "ug" + | "uk" + | "ur" + | "uz" + | "ve" + | "vi" + | "vo" + | "wa" + | "wo" + | "xh" + | "yi" + | "yue" + | "yo" + | "za" + | "zh" + | "zu"; +export const FallbackCartesiaTranscriberLanguage = { + Aa: "aa", + Ab: "ab", + Ae: "ae", + Af: "af", + Ak: "ak", + Am: "am", + An: "an", + Ar: "ar", + As: "as", + Av: "av", + Ay: "ay", + Az: "az", + Ba: "ba", + Be: "be", + Bg: "bg", + Bh: "bh", + Bi: "bi", + Bm: "bm", + Bn: "bn", + Bo: "bo", + Br: "br", + Bs: "bs", + Ca: "ca", + Ce: "ce", + Ch: "ch", + Co: "co", + Cr: "cr", + Cs: "cs", + Cu: "cu", + Cv: "cv", + Cy: "cy", + Da: "da", + De: "de", + Dv: "dv", + Dz: "dz", + Ee: "ee", + El: "el", + En: "en", + Eo: "eo", + Es: "es", + Et: "et", + Eu: "eu", + Fa: "fa", + Ff: "ff", + Fi: "fi", + Fj: "fj", + Fo: "fo", + Fr: "fr", + Fy: "fy", + Ga: "ga", + Gd: "gd", + Gl: "gl", + Gn: "gn", + Gu: "gu", + Gv: "gv", + Ha: "ha", + He: "he", + Hi: "hi", + Ho: "ho", + Hr: "hr", + Ht: "ht", + Hu: "hu", + Hy: "hy", + Hz: "hz", + Ia: "ia", + Id: "id", + Ie: "ie", + Ig: "ig", + Ii: "ii", + Ik: "ik", + Io: "io", + Is: "is", + It: "it", + Iu: "iu", + Ja: "ja", + Jv: "jv", + Ka: "ka", + Kg: "kg", + Ki: "ki", + Kj: "kj", + Kk: "kk", + Kl: "kl", + Km: "km", + Kn: "kn", + Ko: "ko", + Kr: "kr", + Ks: "ks", + Ku: "ku", + Kv: "kv", + Kw: "kw", + Ky: "ky", + La: "la", + Lb: "lb", + Lg: "lg", + Li: "li", + Ln: "ln", + Lo: "lo", + Lt: "lt", + Lu: "lu", + Lv: "lv", + Mg: "mg", + Mh: "mh", + Mi: "mi", + Mk: "mk", + Ml: "ml", + Mn: "mn", + Mr: "mr", + Ms: "ms", + Mt: "mt", + My: "my", + Na: "na", + Nb: "nb", + Nd: "nd", + Ne: "ne", + Ng: "ng", + Nl: "nl", + Nn: "nn", + No: "no", + Nr: "nr", + Nv: "nv", + Ny: "ny", + Oc: "oc", + Oj: "oj", + Om: "om", + Or: "or", + Os: "os", + Pa: "pa", + Pi: "pi", + Pl: "pl", + Ps: "ps", + Pt: "pt", + Qu: "qu", + Rm: "rm", + Rn: "rn", + Ro: "ro", + Ru: "ru", + Rw: "rw", + Sa: "sa", + Sc: "sc", + Sd: "sd", + Se: "se", + Sg: "sg", + Si: "si", + Sk: "sk", + Sl: "sl", + Sm: "sm", + Sn: "sn", + So: "so", + Sq: "sq", + Sr: "sr", + Ss: "ss", + St: "st", + Su: "su", + Sv: "sv", + Sw: "sw", + Ta: "ta", + Te: "te", + Tg: "tg", + Th: "th", + Ti: "ti", + Tk: "tk", + Tl: "tl", + Tn: "tn", + To: "to", + Tr: "tr", + Ts: "ts", + Tt: "tt", + Tw: "tw", + Ty: "ty", + Ug: "ug", + Uk: "uk", + Ur: "ur", + Uz: "uz", + Ve: "ve", + Vi: "vi", + Vo: "vo", + Wa: "wa", + Wo: "wo", + Xh: "xh", + Yi: "yi", + Yue: "yue", + Yo: "yo", + Za: "za", + Zh: "zh", + Zu: "zu", +} as const; diff --git a/src/api/types/FallbackCartesiaVoice.ts b/src/api/types/FallbackCartesiaVoice.ts index a015a932..bca51440 100644 --- a/src/api/types/FallbackCartesiaVoice.ts +++ b/src/api/types/FallbackCartesiaVoice.ts @@ -12,61 +12,11 @@ export interface FallbackCartesiaVoice { /** The ID of the particular voice you want to use. */ voiceId: string; /** This is the model that will be used. This is optional and will default to the correct model for the voiceId. */ - model?: FallbackCartesiaVoice.Model; + model?: Vapi.FallbackCartesiaVoiceModel; /** This is the language that will be used. This is optional and will default to the correct language for the voiceId. */ - language?: FallbackCartesiaVoice.Language; + language?: Vapi.FallbackCartesiaVoiceLanguage; /** Experimental controls for Cartesia voice generation */ experimentalControls?: Vapi.CartesiaExperimentalControls; /** This is the plan for chunking the model output before it is sent to the voice provider. */ chunkPlan?: Vapi.ChunkPlan; } - -export namespace FallbackCartesiaVoice { - /** - * This is the model that will be used. This is optional and will default to the correct model for the voiceId. - */ - export type Model = "sonic-2" | "sonic-english" | "sonic-multilingual" | "sonic-preview" | "sonic"; - export const Model = { - Sonic2: "sonic-2", - SonicEnglish: "sonic-english", - SonicMultilingual: "sonic-multilingual", - SonicPreview: "sonic-preview", - Sonic: "sonic", - } as const; - /** - * This is the language that will be used. This is optional and will default to the correct language for the voiceId. - */ - export type Language = - | "en" - | "de" - | "es" - | "fr" - | "ja" - | "pt" - | "zh" - | "hi" - | "it" - | "ko" - | "nl" - | "pl" - | "ru" - | "sv" - | "tr"; - export const Language = { - En: "en", - De: "de", - Es: "es", - Fr: "fr", - Ja: "ja", - Pt: "pt", - Zh: "zh", - Hi: "hi", - It: "it", - Ko: "ko", - Nl: "nl", - Pl: "pl", - Ru: "ru", - Sv: "sv", - Tr: "tr", - } as const; -} diff --git a/src/api/types/FallbackCartesiaVoiceLanguage.ts b/src/api/types/FallbackCartesiaVoiceLanguage.ts new file mode 100644 index 00000000..a9fcba39 --- /dev/null +++ b/src/api/types/FallbackCartesiaVoiceLanguage.ts @@ -0,0 +1,40 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the language that will be used. This is optional and will default to the correct language for the voiceId. + */ +export type FallbackCartesiaVoiceLanguage = + | "en" + | "de" + | "es" + | "fr" + | "ja" + | "pt" + | "zh" + | "hi" + | "it" + | "ko" + | "nl" + | "pl" + | "ru" + | "sv" + | "tr"; +export const FallbackCartesiaVoiceLanguage = { + En: "en", + De: "de", + Es: "es", + Fr: "fr", + Ja: "ja", + Pt: "pt", + Zh: "zh", + Hi: "hi", + It: "it", + Ko: "ko", + Nl: "nl", + Pl: "pl", + Ru: "ru", + Sv: "sv", + Tr: "tr", +} as const; diff --git a/src/api/types/FallbackCartesiaVoiceModel.ts b/src/api/types/FallbackCartesiaVoiceModel.ts new file mode 100644 index 00000000..cd720a49 --- /dev/null +++ b/src/api/types/FallbackCartesiaVoiceModel.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the model that will be used. This is optional and will default to the correct model for the voiceId. + */ +export type FallbackCartesiaVoiceModel = "sonic-2" | "sonic-english" | "sonic-multilingual" | "sonic-preview" | "sonic"; +export const FallbackCartesiaVoiceModel = { + Sonic2: "sonic-2", + SonicEnglish: "sonic-english", + SonicMultilingual: "sonic-multilingual", + SonicPreview: "sonic-preview", + Sonic: "sonic", +} as const; diff --git a/src/api/types/FallbackDeepgramVoice.ts b/src/api/types/FallbackDeepgramVoice.ts index c32b2e09..bf144450 100644 --- a/src/api/types/FallbackDeepgramVoice.ts +++ b/src/api/types/FallbackDeepgramVoice.ts @@ -10,9 +10,9 @@ export interface FallbackDeepgramVoice { /** This is the voice provider that will be used. */ provider: "deepgram"; /** This is the provider-specific ID that will be used. */ - voiceId: FallbackDeepgramVoice.VoiceId; + voiceId: Vapi.FallbackDeepgramVoiceId; /** This is the model that will be used. Defaults to 'aura-2' when not specified. */ - model?: FallbackDeepgramVoice.Model; + model?: Vapi.FallbackDeepgramVoiceModel; /** * If set to true, this will add mip_opt_out=true as a query parameter of all API requests. See https://developers.deepgram.com/docs/the-deepgram-model-improvement-partnership-program#want-to-opt-out * @@ -24,130 +24,3 @@ export interface FallbackDeepgramVoice { /** This is the plan for chunking the model output before it is sent to the voice provider. */ chunkPlan?: Vapi.ChunkPlan; } - -export namespace FallbackDeepgramVoice { - /** - * This is the provider-specific ID that will be used. - */ - export type VoiceId = - | "asteria" - | "luna" - | "stella" - | "athena" - | "hera" - | "orion" - | "arcas" - | "perseus" - | "angus" - | "orpheus" - | "helios" - | "zeus" - | "thalia" - | "andromeda" - | "helena" - | "apollo" - | "aries" - | "amalthea" - | "atlas" - | "aurora" - | "callista" - | "cora" - | "cordelia" - | "delia" - | "draco" - | "electra" - | "harmonia" - | "hermes" - | "hyperion" - | "iris" - | "janus" - | "juno" - | "jupiter" - | "mars" - | "minerva" - | "neptune" - | "odysseus" - | "ophelia" - | "pandora" - | "phoebe" - | "pluto" - | "saturn" - | "selene" - | "theia" - | "vesta" - | "celeste" - | "estrella" - | "nestor" - | "sirio" - | "carina" - | "alvaro" - | "diana" - | "aquila" - | "selena" - | "javier"; - export const VoiceId = { - Asteria: "asteria", - Luna: "luna", - Stella: "stella", - Athena: "athena", - Hera: "hera", - Orion: "orion", - Arcas: "arcas", - Perseus: "perseus", - Angus: "angus", - Orpheus: "orpheus", - Helios: "helios", - Zeus: "zeus", - Thalia: "thalia", - Andromeda: "andromeda", - Helena: "helena", - Apollo: "apollo", - Aries: "aries", - Amalthea: "amalthea", - Atlas: "atlas", - Aurora: "aurora", - Callista: "callista", - Cora: "cora", - Cordelia: "cordelia", - Delia: "delia", - Draco: "draco", - Electra: "electra", - Harmonia: "harmonia", - Hermes: "hermes", - Hyperion: "hyperion", - Iris: "iris", - Janus: "janus", - Juno: "juno", - Jupiter: "jupiter", - Mars: "mars", - Minerva: "minerva", - Neptune: "neptune", - Odysseus: "odysseus", - Ophelia: "ophelia", - Pandora: "pandora", - Phoebe: "phoebe", - Pluto: "pluto", - Saturn: "saturn", - Selene: "selene", - Theia: "theia", - Vesta: "vesta", - Celeste: "celeste", - Estrella: "estrella", - Nestor: "nestor", - Sirio: "sirio", - Carina: "carina", - Alvaro: "alvaro", - Diana: "diana", - Aquila: "aquila", - Selena: "selena", - Javier: "javier", - } as const; - /** - * This is the model that will be used. Defaults to 'aura-2' when not specified. - */ - export type Model = "aura" | "aura-2"; - export const Model = { - Aura: "aura", - Aura2: "aura-2", - } as const; -} diff --git a/src/api/types/FallbackDeepgramVoiceId.ts b/src/api/types/FallbackDeepgramVoiceId.ts new file mode 100644 index 00000000..e82d3fa2 --- /dev/null +++ b/src/api/types/FallbackDeepgramVoiceId.ts @@ -0,0 +1,120 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the provider-specific ID that will be used. + */ +export type FallbackDeepgramVoiceId = + | "asteria" + | "luna" + | "stella" + | "athena" + | "hera" + | "orion" + | "arcas" + | "perseus" + | "angus" + | "orpheus" + | "helios" + | "zeus" + | "thalia" + | "andromeda" + | "helena" + | "apollo" + | "aries" + | "amalthea" + | "atlas" + | "aurora" + | "callista" + | "cora" + | "cordelia" + | "delia" + | "draco" + | "electra" + | "harmonia" + | "hermes" + | "hyperion" + | "iris" + | "janus" + | "juno" + | "jupiter" + | "mars" + | "minerva" + | "neptune" + | "odysseus" + | "ophelia" + | "pandora" + | "phoebe" + | "pluto" + | "saturn" + | "selene" + | "theia" + | "vesta" + | "celeste" + | "estrella" + | "nestor" + | "sirio" + | "carina" + | "alvaro" + | "diana" + | "aquila" + | "selena" + | "javier"; +export const FallbackDeepgramVoiceId = { + Asteria: "asteria", + Luna: "luna", + Stella: "stella", + Athena: "athena", + Hera: "hera", + Orion: "orion", + Arcas: "arcas", + Perseus: "perseus", + Angus: "angus", + Orpheus: "orpheus", + Helios: "helios", + Zeus: "zeus", + Thalia: "thalia", + Andromeda: "andromeda", + Helena: "helena", + Apollo: "apollo", + Aries: "aries", + Amalthea: "amalthea", + Atlas: "atlas", + Aurora: "aurora", + Callista: "callista", + Cora: "cora", + Cordelia: "cordelia", + Delia: "delia", + Draco: "draco", + Electra: "electra", + Harmonia: "harmonia", + Hermes: "hermes", + Hyperion: "hyperion", + Iris: "iris", + Janus: "janus", + Juno: "juno", + Jupiter: "jupiter", + Mars: "mars", + Minerva: "minerva", + Neptune: "neptune", + Odysseus: "odysseus", + Ophelia: "ophelia", + Pandora: "pandora", + Phoebe: "phoebe", + Pluto: "pluto", + Saturn: "saturn", + Selene: "selene", + Theia: "theia", + Vesta: "vesta", + Celeste: "celeste", + Estrella: "estrella", + Nestor: "nestor", + Sirio: "sirio", + Carina: "carina", + Alvaro: "alvaro", + Diana: "diana", + Aquila: "aquila", + Selena: "selena", + Javier: "javier", +} as const; diff --git a/src/api/types/FallbackDeepgramVoiceModel.ts b/src/api/types/FallbackDeepgramVoiceModel.ts new file mode 100644 index 00000000..a3e5822d --- /dev/null +++ b/src/api/types/FallbackDeepgramVoiceModel.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the model that will be used. Defaults to 'aura-2' when not specified. + */ +export type FallbackDeepgramVoiceModel = "aura" | "aura-2"; +export const FallbackDeepgramVoiceModel = { + Aura: "aura", + Aura2: "aura-2", +} as const; diff --git a/src/api/types/FallbackElevenLabsTranscriber.ts b/src/api/types/FallbackElevenLabsTranscriber.ts index 1ca989e2..efb97678 100644 --- a/src/api/types/FallbackElevenLabsTranscriber.ts +++ b/src/api/types/FallbackElevenLabsTranscriber.ts @@ -2,386 +2,12 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface FallbackElevenLabsTranscriber { /** This is the transcription provider that will be used. */ provider: "11labs"; /** This is the model that will be used for the transcription. */ model?: "scribe_v1"; - language?: FallbackElevenLabsTranscriber.Language; -} - -export namespace FallbackElevenLabsTranscriber { - export type Language = - | "aa" - | "ab" - | "ae" - | "af" - | "ak" - | "am" - | "an" - | "ar" - | "as" - | "av" - | "ay" - | "az" - | "ba" - | "be" - | "bg" - | "bh" - | "bi" - | "bm" - | "bn" - | "bo" - | "br" - | "bs" - | "ca" - | "ce" - | "ch" - | "co" - | "cr" - | "cs" - | "cu" - | "cv" - | "cy" - | "da" - | "de" - | "dv" - | "dz" - | "ee" - | "el" - | "en" - | "eo" - | "es" - | "et" - | "eu" - | "fa" - | "ff" - | "fi" - | "fj" - | "fo" - | "fr" - | "fy" - | "ga" - | "gd" - | "gl" - | "gn" - | "gu" - | "gv" - | "ha" - | "he" - | "hi" - | "ho" - | "hr" - | "ht" - | "hu" - | "hy" - | "hz" - | "ia" - | "id" - | "ie" - | "ig" - | "ii" - | "ik" - | "io" - | "is" - | "it" - | "iu" - | "ja" - | "jv" - | "ka" - | "kg" - | "ki" - | "kj" - | "kk" - | "kl" - | "km" - | "kn" - | "ko" - | "kr" - | "ks" - | "ku" - | "kv" - | "kw" - | "ky" - | "la" - | "lb" - | "lg" - | "li" - | "ln" - | "lo" - | "lt" - | "lu" - | "lv" - | "mg" - | "mh" - | "mi" - | "mk" - | "ml" - | "mn" - | "mr" - | "ms" - | "mt" - | "my" - | "na" - | "nb" - | "nd" - | "ne" - | "ng" - | "nl" - | "nn" - | "no" - | "nr" - | "nv" - | "ny" - | "oc" - | "oj" - | "om" - | "or" - | "os" - | "pa" - | "pi" - | "pl" - | "ps" - | "pt" - | "qu" - | "rm" - | "rn" - | "ro" - | "ru" - | "rw" - | "sa" - | "sc" - | "sd" - | "se" - | "sg" - | "si" - | "sk" - | "sl" - | "sm" - | "sn" - | "so" - | "sq" - | "sr" - | "ss" - | "st" - | "su" - | "sv" - | "sw" - | "ta" - | "te" - | "tg" - | "th" - | "ti" - | "tk" - | "tl" - | "tn" - | "to" - | "tr" - | "ts" - | "tt" - | "tw" - | "ty" - | "ug" - | "uk" - | "ur" - | "uz" - | "ve" - | "vi" - | "vo" - | "wa" - | "wo" - | "xh" - | "yi" - | "yue" - | "yo" - | "za" - | "zh" - | "zu"; - export const Language = { - Aa: "aa", - Ab: "ab", - Ae: "ae", - Af: "af", - Ak: "ak", - Am: "am", - An: "an", - Ar: "ar", - As: "as", - Av: "av", - Ay: "ay", - Az: "az", - Ba: "ba", - Be: "be", - Bg: "bg", - Bh: "bh", - Bi: "bi", - Bm: "bm", - Bn: "bn", - Bo: "bo", - Br: "br", - Bs: "bs", - Ca: "ca", - Ce: "ce", - Ch: "ch", - Co: "co", - Cr: "cr", - Cs: "cs", - Cu: "cu", - Cv: "cv", - Cy: "cy", - Da: "da", - De: "de", - Dv: "dv", - Dz: "dz", - Ee: "ee", - El: "el", - En: "en", - Eo: "eo", - Es: "es", - Et: "et", - Eu: "eu", - Fa: "fa", - Ff: "ff", - Fi: "fi", - Fj: "fj", - Fo: "fo", - Fr: "fr", - Fy: "fy", - Ga: "ga", - Gd: "gd", - Gl: "gl", - Gn: "gn", - Gu: "gu", - Gv: "gv", - Ha: "ha", - He: "he", - Hi: "hi", - Ho: "ho", - Hr: "hr", - Ht: "ht", - Hu: "hu", - Hy: "hy", - Hz: "hz", - Ia: "ia", - Id: "id", - Ie: "ie", - Ig: "ig", - Ii: "ii", - Ik: "ik", - Io: "io", - Is: "is", - It: "it", - Iu: "iu", - Ja: "ja", - Jv: "jv", - Ka: "ka", - Kg: "kg", - Ki: "ki", - Kj: "kj", - Kk: "kk", - Kl: "kl", - Km: "km", - Kn: "kn", - Ko: "ko", - Kr: "kr", - Ks: "ks", - Ku: "ku", - Kv: "kv", - Kw: "kw", - Ky: "ky", - La: "la", - Lb: "lb", - Lg: "lg", - Li: "li", - Ln: "ln", - Lo: "lo", - Lt: "lt", - Lu: "lu", - Lv: "lv", - Mg: "mg", - Mh: "mh", - Mi: "mi", - Mk: "mk", - Ml: "ml", - Mn: "mn", - Mr: "mr", - Ms: "ms", - Mt: "mt", - My: "my", - Na: "na", - Nb: "nb", - Nd: "nd", - Ne: "ne", - Ng: "ng", - Nl: "nl", - Nn: "nn", - No: "no", - Nr: "nr", - Nv: "nv", - Ny: "ny", - Oc: "oc", - Oj: "oj", - Om: "om", - Or: "or", - Os: "os", - Pa: "pa", - Pi: "pi", - Pl: "pl", - Ps: "ps", - Pt: "pt", - Qu: "qu", - Rm: "rm", - Rn: "rn", - Ro: "ro", - Ru: "ru", - Rw: "rw", - Sa: "sa", - Sc: "sc", - Sd: "sd", - Se: "se", - Sg: "sg", - Si: "si", - Sk: "sk", - Sl: "sl", - Sm: "sm", - Sn: "sn", - So: "so", - Sq: "sq", - Sr: "sr", - Ss: "ss", - St: "st", - Su: "su", - Sv: "sv", - Sw: "sw", - Ta: "ta", - Te: "te", - Tg: "tg", - Th: "th", - Ti: "ti", - Tk: "tk", - Tl: "tl", - Tn: "tn", - To: "to", - Tr: "tr", - Ts: "ts", - Tt: "tt", - Tw: "tw", - Ty: "ty", - Ug: "ug", - Uk: "uk", - Ur: "ur", - Uz: "uz", - Ve: "ve", - Vi: "vi", - Vo: "vo", - Wa: "wa", - Wo: "wo", - Xh: "xh", - Yi: "yi", - Yue: "yue", - Yo: "yo", - Za: "za", - Zh: "zh", - Zu: "zu", - } as const; + language?: Vapi.FallbackElevenLabsTranscriberLanguage; } diff --git a/src/api/types/FallbackElevenLabsTranscriberLanguage.ts b/src/api/types/FallbackElevenLabsTranscriberLanguage.ts new file mode 100644 index 00000000..e0a7af58 --- /dev/null +++ b/src/api/types/FallbackElevenLabsTranscriberLanguage.ts @@ -0,0 +1,377 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type FallbackElevenLabsTranscriberLanguage = + | "aa" + | "ab" + | "ae" + | "af" + | "ak" + | "am" + | "an" + | "ar" + | "as" + | "av" + | "ay" + | "az" + | "ba" + | "be" + | "bg" + | "bh" + | "bi" + | "bm" + | "bn" + | "bo" + | "br" + | "bs" + | "ca" + | "ce" + | "ch" + | "co" + | "cr" + | "cs" + | "cu" + | "cv" + | "cy" + | "da" + | "de" + | "dv" + | "dz" + | "ee" + | "el" + | "en" + | "eo" + | "es" + | "et" + | "eu" + | "fa" + | "ff" + | "fi" + | "fj" + | "fo" + | "fr" + | "fy" + | "ga" + | "gd" + | "gl" + | "gn" + | "gu" + | "gv" + | "ha" + | "he" + | "hi" + | "ho" + | "hr" + | "ht" + | "hu" + | "hy" + | "hz" + | "ia" + | "id" + | "ie" + | "ig" + | "ii" + | "ik" + | "io" + | "is" + | "it" + | "iu" + | "ja" + | "jv" + | "ka" + | "kg" + | "ki" + | "kj" + | "kk" + | "kl" + | "km" + | "kn" + | "ko" + | "kr" + | "ks" + | "ku" + | "kv" + | "kw" + | "ky" + | "la" + | "lb" + | "lg" + | "li" + | "ln" + | "lo" + | "lt" + | "lu" + | "lv" + | "mg" + | "mh" + | "mi" + | "mk" + | "ml" + | "mn" + | "mr" + | "ms" + | "mt" + | "my" + | "na" + | "nb" + | "nd" + | "ne" + | "ng" + | "nl" + | "nn" + | "no" + | "nr" + | "nv" + | "ny" + | "oc" + | "oj" + | "om" + | "or" + | "os" + | "pa" + | "pi" + | "pl" + | "ps" + | "pt" + | "qu" + | "rm" + | "rn" + | "ro" + | "ru" + | "rw" + | "sa" + | "sc" + | "sd" + | "se" + | "sg" + | "si" + | "sk" + | "sl" + | "sm" + | "sn" + | "so" + | "sq" + | "sr" + | "ss" + | "st" + | "su" + | "sv" + | "sw" + | "ta" + | "te" + | "tg" + | "th" + | "ti" + | "tk" + | "tl" + | "tn" + | "to" + | "tr" + | "ts" + | "tt" + | "tw" + | "ty" + | "ug" + | "uk" + | "ur" + | "uz" + | "ve" + | "vi" + | "vo" + | "wa" + | "wo" + | "xh" + | "yi" + | "yue" + | "yo" + | "za" + | "zh" + | "zu"; +export const FallbackElevenLabsTranscriberLanguage = { + Aa: "aa", + Ab: "ab", + Ae: "ae", + Af: "af", + Ak: "ak", + Am: "am", + An: "an", + Ar: "ar", + As: "as", + Av: "av", + Ay: "ay", + Az: "az", + Ba: "ba", + Be: "be", + Bg: "bg", + Bh: "bh", + Bi: "bi", + Bm: "bm", + Bn: "bn", + Bo: "bo", + Br: "br", + Bs: "bs", + Ca: "ca", + Ce: "ce", + Ch: "ch", + Co: "co", + Cr: "cr", + Cs: "cs", + Cu: "cu", + Cv: "cv", + Cy: "cy", + Da: "da", + De: "de", + Dv: "dv", + Dz: "dz", + Ee: "ee", + El: "el", + En: "en", + Eo: "eo", + Es: "es", + Et: "et", + Eu: "eu", + Fa: "fa", + Ff: "ff", + Fi: "fi", + Fj: "fj", + Fo: "fo", + Fr: "fr", + Fy: "fy", + Ga: "ga", + Gd: "gd", + Gl: "gl", + Gn: "gn", + Gu: "gu", + Gv: "gv", + Ha: "ha", + He: "he", + Hi: "hi", + Ho: "ho", + Hr: "hr", + Ht: "ht", + Hu: "hu", + Hy: "hy", + Hz: "hz", + Ia: "ia", + Id: "id", + Ie: "ie", + Ig: "ig", + Ii: "ii", + Ik: "ik", + Io: "io", + Is: "is", + It: "it", + Iu: "iu", + Ja: "ja", + Jv: "jv", + Ka: "ka", + Kg: "kg", + Ki: "ki", + Kj: "kj", + Kk: "kk", + Kl: "kl", + Km: "km", + Kn: "kn", + Ko: "ko", + Kr: "kr", + Ks: "ks", + Ku: "ku", + Kv: "kv", + Kw: "kw", + Ky: "ky", + La: "la", + Lb: "lb", + Lg: "lg", + Li: "li", + Ln: "ln", + Lo: "lo", + Lt: "lt", + Lu: "lu", + Lv: "lv", + Mg: "mg", + Mh: "mh", + Mi: "mi", + Mk: "mk", + Ml: "ml", + Mn: "mn", + Mr: "mr", + Ms: "ms", + Mt: "mt", + My: "my", + Na: "na", + Nb: "nb", + Nd: "nd", + Ne: "ne", + Ng: "ng", + Nl: "nl", + Nn: "nn", + No: "no", + Nr: "nr", + Nv: "nv", + Ny: "ny", + Oc: "oc", + Oj: "oj", + Om: "om", + Or: "or", + Os: "os", + Pa: "pa", + Pi: "pi", + Pl: "pl", + Ps: "ps", + Pt: "pt", + Qu: "qu", + Rm: "rm", + Rn: "rn", + Ro: "ro", + Ru: "ru", + Rw: "rw", + Sa: "sa", + Sc: "sc", + Sd: "sd", + Se: "se", + Sg: "sg", + Si: "si", + Sk: "sk", + Sl: "sl", + Sm: "sm", + Sn: "sn", + So: "so", + Sq: "sq", + Sr: "sr", + Ss: "ss", + St: "st", + Su: "su", + Sv: "sv", + Sw: "sw", + Ta: "ta", + Te: "te", + Tg: "tg", + Th: "th", + Ti: "ti", + Tk: "tk", + Tl: "tl", + Tn: "tn", + To: "to", + Tr: "tr", + Ts: "ts", + Tt: "tt", + Tw: "tw", + Ty: "ty", + Ug: "ug", + Uk: "uk", + Ur: "ur", + Uz: "uz", + Ve: "ve", + Vi: "vi", + Vo: "vo", + Wa: "wa", + Wo: "wo", + Xh: "xh", + Yi: "yi", + Yue: "yue", + Yo: "yo", + Za: "za", + Zh: "zh", + Zu: "zu", +} as const; diff --git a/src/api/types/FallbackElevenLabsVoice.ts b/src/api/types/FallbackElevenLabsVoice.ts index 3c0aa288..d41ffb8c 100644 --- a/src/api/types/FallbackElevenLabsVoice.ts +++ b/src/api/types/FallbackElevenLabsVoice.ts @@ -10,7 +10,7 @@ export interface FallbackElevenLabsVoice { /** This is the voice provider that will be used. */ provider: "11labs"; /** This is the provider-specific ID that will be used. Ensure the Voice is present in your 11Labs Voice Library. */ - voiceId: FallbackElevenLabsVoice.VoiceId; + voiceId: Vapi.FallbackElevenLabsVoiceId; /** Defines the stability for voice settings. */ stability?: number; /** Defines the similarity boost for voice settings. */ @@ -32,7 +32,7 @@ export interface FallbackElevenLabsVoice { /** Defines the auto mode for voice settings. Defaults to false. */ autoMode?: boolean; /** This is the model that will be used. Defaults to 'eleven_turbo_v2' if not specified. */ - model?: FallbackElevenLabsVoice.Model; + model?: Vapi.FallbackElevenLabsVoiceModel; /** This is the language (ISO 639-1) that is enforced for the model. Currently only Turbo v2.5 supports language enforcement. For other models, an error will be returned if language code is provided. */ language?: string; /** This is the pronunciation dictionary locators to use. */ @@ -40,46 +40,3 @@ export interface FallbackElevenLabsVoice { /** This is the plan for chunking the model output before it is sent to the voice provider. */ chunkPlan?: Vapi.ChunkPlan; } - -export namespace FallbackElevenLabsVoice { - /** - * This is the provider-specific ID that will be used. Ensure the Voice is present in your 11Labs Voice Library. - */ - export type VoiceId = - | ( - | "burt" - | "marissa" - | "andrea" - | "sarah" - | "phillip" - | "steve" - | "joseph" - | "myra" - | "paula" - | "ryan" - | "drew" - | "paul" - | "mrb" - | "matilda" - | "mark" - ) - | string; - /** - * This is the model that will be used. Defaults to 'eleven_turbo_v2' if not specified. - */ - export type Model = - | "eleven_multilingual_v2" - | "eleven_turbo_v2" - | "eleven_turbo_v2_5" - | "eleven_flash_v2" - | "eleven_flash_v2_5" - | "eleven_monolingual_v1"; - export const Model = { - ElevenMultilingualV2: "eleven_multilingual_v2", - ElevenTurboV2: "eleven_turbo_v2", - ElevenTurboV25: "eleven_turbo_v2_5", - ElevenFlashV2: "eleven_flash_v2", - ElevenFlashV25: "eleven_flash_v2_5", - ElevenMonolingualV1: "eleven_monolingual_v1", - } as const; -} diff --git a/src/api/types/FallbackElevenLabsVoiceId.ts b/src/api/types/FallbackElevenLabsVoiceId.ts new file mode 100644 index 00000000..351783a3 --- /dev/null +++ b/src/api/types/FallbackElevenLabsVoiceId.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the provider-specific ID that will be used. Ensure the Voice is present in your 11Labs Voice Library. + */ +export type FallbackElevenLabsVoiceId = Vapi.FallbackElevenLabsVoiceIdEnum | string; diff --git a/src/api/types/FallbackElevenLabsVoiceIdEnum.ts b/src/api/types/FallbackElevenLabsVoiceIdEnum.ts new file mode 100644 index 00000000..bedb94fb --- /dev/null +++ b/src/api/types/FallbackElevenLabsVoiceIdEnum.ts @@ -0,0 +1,37 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type FallbackElevenLabsVoiceIdEnum = + | "burt" + | "marissa" + | "andrea" + | "sarah" + | "phillip" + | "steve" + | "joseph" + | "myra" + | "paula" + | "ryan" + | "drew" + | "paul" + | "mrb" + | "matilda" + | "mark"; +export const FallbackElevenLabsVoiceIdEnum = { + Burt: "burt", + Marissa: "marissa", + Andrea: "andrea", + Sarah: "sarah", + Phillip: "phillip", + Steve: "steve", + Joseph: "joseph", + Myra: "myra", + Paula: "paula", + Ryan: "ryan", + Drew: "drew", + Paul: "paul", + Mrb: "mrb", + Matilda: "matilda", + Mark: "mark", +} as const; diff --git a/src/api/types/FallbackElevenLabsVoiceModel.ts b/src/api/types/FallbackElevenLabsVoiceModel.ts new file mode 100644 index 00000000..4c4684b2 --- /dev/null +++ b/src/api/types/FallbackElevenLabsVoiceModel.ts @@ -0,0 +1,22 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the model that will be used. Defaults to 'eleven_turbo_v2' if not specified. + */ +export type FallbackElevenLabsVoiceModel = + | "eleven_multilingual_v2" + | "eleven_turbo_v2" + | "eleven_turbo_v2_5" + | "eleven_flash_v2" + | "eleven_flash_v2_5" + | "eleven_monolingual_v1"; +export const FallbackElevenLabsVoiceModel = { + ElevenMultilingualV2: "eleven_multilingual_v2", + ElevenTurboV2: "eleven_turbo_v2", + ElevenTurboV25: "eleven_turbo_v2_5", + ElevenFlashV2: "eleven_flash_v2", + ElevenFlashV25: "eleven_flash_v2_5", + ElevenMonolingualV1: "eleven_monolingual_v1", +} as const; diff --git a/src/api/types/FallbackGladiaTranscriber.ts b/src/api/types/FallbackGladiaTranscriber.ts index ac5ff07d..d914cb68 100644 --- a/src/api/types/FallbackGladiaTranscriber.ts +++ b/src/api/types/FallbackGladiaTranscriber.ts @@ -8,13 +8,13 @@ export interface FallbackGladiaTranscriber { /** This is the transcription provider that will be used. */ provider: "gladia"; /** This is the Gladia model that will be used. Default is 'fast' */ - model?: FallbackGladiaTranscriber.Model; + model?: Vapi.FallbackGladiaTranscriberModel; /** Defines how the transcription model detects the audio language. Default value is 'automatic single language'. */ - languageBehaviour?: FallbackGladiaTranscriber.LanguageBehaviour; + languageBehaviour?: Vapi.FallbackGladiaTranscriberLanguageBehaviour; /** Defines the language to use for the transcription. Required when languageBehaviour is 'manual'. */ - language?: FallbackGladiaTranscriber.Language; + language?: Vapi.FallbackGladiaTranscriberLanguage; /** Defines the languages to use for the transcription. Required when languageBehaviour is 'manual'. */ - languages?: FallbackGladiaTranscriber.Languages; + languages?: Vapi.FallbackGladiaTranscriberLanguages; /** * Provides a custom vocabulary to the model to improve accuracy of transcribing context specific words, technical terms, names, etc. If empty, this argument is ignored. * ⚠️ Warning ⚠️: Please be aware that the transcription_hint field has a character limit of 600. If you provide a transcription_hint longer than 600 characters, it will be automatically truncated to meet this limit. @@ -39,438 +39,7 @@ export interface FallbackGladiaTranscriber { /** Custom vocabulary configuration */ customVocabularyConfig?: Vapi.GladiaCustomVocabularyConfigDto; /** Region for processing audio (us-west or eu-west) */ - region?: FallbackGladiaTranscriber.Region; + region?: Vapi.FallbackGladiaTranscriberRegion; /** Enable partial transcripts for low-latency streaming transcription */ receivePartialTranscripts?: boolean; } - -export namespace FallbackGladiaTranscriber { - export type Model = "fast" | "accurate" | "solaria-1"; - export const Model = { - Fast: "fast", - Accurate: "accurate", - Solaria1: "solaria-1", - } as const; - export type LanguageBehaviour = "manual" | "automatic single language" | "automatic multiple languages"; - export const LanguageBehaviour = { - Manual: "manual", - AutomaticSingleLanguage: "automatic single language", - AutomaticMultipleLanguages: "automatic multiple languages", - } as const; - /** - * Defines the language to use for the transcription. Required when languageBehaviour is 'manual'. - */ - export type Language = - | "af" - | "sq" - | "am" - | "ar" - | "hy" - | "as" - | "az" - | "ba" - | "eu" - | "be" - | "bn" - | "bs" - | "br" - | "bg" - | "ca" - | "zh" - | "hr" - | "cs" - | "da" - | "nl" - | "en" - | "et" - | "fo" - | "fi" - | "fr" - | "gl" - | "ka" - | "de" - | "el" - | "gu" - | "ht" - | "ha" - | "haw" - | "he" - | "hi" - | "hu" - | "is" - | "id" - | "it" - | "ja" - | "jv" - | "kn" - | "kk" - | "km" - | "ko" - | "lo" - | "la" - | "lv" - | "ln" - | "lt" - | "lb" - | "mk" - | "mg" - | "ms" - | "ml" - | "mt" - | "mi" - | "mr" - | "mn" - | "my" - | "ne" - | "no" - | "nn" - | "oc" - | "ps" - | "fa" - | "pl" - | "pt" - | "pa" - | "ro" - | "ru" - | "sa" - | "sr" - | "sn" - | "sd" - | "si" - | "sk" - | "sl" - | "so" - | "es" - | "su" - | "sw" - | "sv" - | "tl" - | "tg" - | "ta" - | "tt" - | "te" - | "th" - | "bo" - | "tr" - | "tk" - | "uk" - | "ur" - | "uz" - | "vi" - | "cy" - | "yi" - | "yo"; - export const Language = { - Af: "af", - Sq: "sq", - Am: "am", - Ar: "ar", - Hy: "hy", - As: "as", - Az: "az", - Ba: "ba", - Eu: "eu", - Be: "be", - Bn: "bn", - Bs: "bs", - Br: "br", - Bg: "bg", - Ca: "ca", - Zh: "zh", - Hr: "hr", - Cs: "cs", - Da: "da", - Nl: "nl", - En: "en", - Et: "et", - Fo: "fo", - Fi: "fi", - Fr: "fr", - Gl: "gl", - Ka: "ka", - De: "de", - El: "el", - Gu: "gu", - Ht: "ht", - Ha: "ha", - Haw: "haw", - He: "he", - Hi: "hi", - Hu: "hu", - Is: "is", - Id: "id", - It: "it", - Ja: "ja", - Jv: "jv", - Kn: "kn", - Kk: "kk", - Km: "km", - Ko: "ko", - Lo: "lo", - La: "la", - Lv: "lv", - Ln: "ln", - Lt: "lt", - Lb: "lb", - Mk: "mk", - Mg: "mg", - Ms: "ms", - Ml: "ml", - Mt: "mt", - Mi: "mi", - Mr: "mr", - Mn: "mn", - My: "my", - Ne: "ne", - No: "no", - Nn: "nn", - Oc: "oc", - Ps: "ps", - Fa: "fa", - Pl: "pl", - Pt: "pt", - Pa: "pa", - Ro: "ro", - Ru: "ru", - Sa: "sa", - Sr: "sr", - Sn: "sn", - Sd: "sd", - Si: "si", - Sk: "sk", - Sl: "sl", - So: "so", - Es: "es", - Su: "su", - Sw: "sw", - Sv: "sv", - Tl: "tl", - Tg: "tg", - Ta: "ta", - Tt: "tt", - Te: "te", - Th: "th", - Bo: "bo", - Tr: "tr", - Tk: "tk", - Uk: "uk", - Ur: "ur", - Uz: "uz", - Vi: "vi", - Cy: "cy", - Yi: "yi", - Yo: "yo", - } as const; - /** - * Defines the languages to use for the transcription. Required when languageBehaviour is 'manual'. - */ - export type Languages = - | "af" - | "sq" - | "am" - | "ar" - | "hy" - | "as" - | "az" - | "ba" - | "eu" - | "be" - | "bn" - | "bs" - | "br" - | "bg" - | "ca" - | "zh" - | "hr" - | "cs" - | "da" - | "nl" - | "en" - | "et" - | "fo" - | "fi" - | "fr" - | "gl" - | "ka" - | "de" - | "el" - | "gu" - | "ht" - | "ha" - | "haw" - | "he" - | "hi" - | "hu" - | "is" - | "id" - | "it" - | "ja" - | "jv" - | "kn" - | "kk" - | "km" - | "ko" - | "lo" - | "la" - | "lv" - | "ln" - | "lt" - | "lb" - | "mk" - | "mg" - | "ms" - | "ml" - | "mt" - | "mi" - | "mr" - | "mn" - | "my" - | "ne" - | "no" - | "nn" - | "oc" - | "ps" - | "fa" - | "pl" - | "pt" - | "pa" - | "ro" - | "ru" - | "sa" - | "sr" - | "sn" - | "sd" - | "si" - | "sk" - | "sl" - | "so" - | "es" - | "su" - | "sw" - | "sv" - | "tl" - | "tg" - | "ta" - | "tt" - | "te" - | "th" - | "bo" - | "tr" - | "tk" - | "uk" - | "ur" - | "uz" - | "vi" - | "cy" - | "yi" - | "yo"; - export const Languages = { - Af: "af", - Sq: "sq", - Am: "am", - Ar: "ar", - Hy: "hy", - As: "as", - Az: "az", - Ba: "ba", - Eu: "eu", - Be: "be", - Bn: "bn", - Bs: "bs", - Br: "br", - Bg: "bg", - Ca: "ca", - Zh: "zh", - Hr: "hr", - Cs: "cs", - Da: "da", - Nl: "nl", - En: "en", - Et: "et", - Fo: "fo", - Fi: "fi", - Fr: "fr", - Gl: "gl", - Ka: "ka", - De: "de", - El: "el", - Gu: "gu", - Ht: "ht", - Ha: "ha", - Haw: "haw", - He: "he", - Hi: "hi", - Hu: "hu", - Is: "is", - Id: "id", - It: "it", - Ja: "ja", - Jv: "jv", - Kn: "kn", - Kk: "kk", - Km: "km", - Ko: "ko", - Lo: "lo", - La: "la", - Lv: "lv", - Ln: "ln", - Lt: "lt", - Lb: "lb", - Mk: "mk", - Mg: "mg", - Ms: "ms", - Ml: "ml", - Mt: "mt", - Mi: "mi", - Mr: "mr", - Mn: "mn", - My: "my", - Ne: "ne", - No: "no", - Nn: "nn", - Oc: "oc", - Ps: "ps", - Fa: "fa", - Pl: "pl", - Pt: "pt", - Pa: "pa", - Ro: "ro", - Ru: "ru", - Sa: "sa", - Sr: "sr", - Sn: "sn", - Sd: "sd", - Si: "si", - Sk: "sk", - Sl: "sl", - So: "so", - Es: "es", - Su: "su", - Sw: "sw", - Sv: "sv", - Tl: "tl", - Tg: "tg", - Ta: "ta", - Tt: "tt", - Te: "te", - Th: "th", - Bo: "bo", - Tr: "tr", - Tk: "tk", - Uk: "uk", - Ur: "ur", - Uz: "uz", - Vi: "vi", - Cy: "cy", - Yi: "yi", - Yo: "yo", - } as const; - /** - * Region for processing audio (us-west or eu-west) - */ - export type Region = "us-west" | "eu-west"; - export const Region = { - UsWest: "us-west", - EuWest: "eu-west", - } as const; -} diff --git a/src/api/types/FallbackGladiaTranscriberLanguage.ts b/src/api/types/FallbackGladiaTranscriberLanguage.ts new file mode 100644 index 00000000..70aef500 --- /dev/null +++ b/src/api/types/FallbackGladiaTranscriberLanguage.ts @@ -0,0 +1,208 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Defines the language to use for the transcription. Required when languageBehaviour is 'manual'. + */ +export type FallbackGladiaTranscriberLanguage = + | "af" + | "sq" + | "am" + | "ar" + | "hy" + | "as" + | "az" + | "ba" + | "eu" + | "be" + | "bn" + | "bs" + | "br" + | "bg" + | "ca" + | "zh" + | "hr" + | "cs" + | "da" + | "nl" + | "en" + | "et" + | "fo" + | "fi" + | "fr" + | "gl" + | "ka" + | "de" + | "el" + | "gu" + | "ht" + | "ha" + | "haw" + | "he" + | "hi" + | "hu" + | "is" + | "id" + | "it" + | "ja" + | "jv" + | "kn" + | "kk" + | "km" + | "ko" + | "lo" + | "la" + | "lv" + | "ln" + | "lt" + | "lb" + | "mk" + | "mg" + | "ms" + | "ml" + | "mt" + | "mi" + | "mr" + | "mn" + | "my" + | "ne" + | "no" + | "nn" + | "oc" + | "ps" + | "fa" + | "pl" + | "pt" + | "pa" + | "ro" + | "ru" + | "sa" + | "sr" + | "sn" + | "sd" + | "si" + | "sk" + | "sl" + | "so" + | "es" + | "su" + | "sw" + | "sv" + | "tl" + | "tg" + | "ta" + | "tt" + | "te" + | "th" + | "bo" + | "tr" + | "tk" + | "uk" + | "ur" + | "uz" + | "vi" + | "cy" + | "yi" + | "yo"; +export const FallbackGladiaTranscriberLanguage = { + Af: "af", + Sq: "sq", + Am: "am", + Ar: "ar", + Hy: "hy", + As: "as", + Az: "az", + Ba: "ba", + Eu: "eu", + Be: "be", + Bn: "bn", + Bs: "bs", + Br: "br", + Bg: "bg", + Ca: "ca", + Zh: "zh", + Hr: "hr", + Cs: "cs", + Da: "da", + Nl: "nl", + En: "en", + Et: "et", + Fo: "fo", + Fi: "fi", + Fr: "fr", + Gl: "gl", + Ka: "ka", + De: "de", + El: "el", + Gu: "gu", + Ht: "ht", + Ha: "ha", + Haw: "haw", + He: "he", + Hi: "hi", + Hu: "hu", + Is: "is", + Id: "id", + It: "it", + Ja: "ja", + Jv: "jv", + Kn: "kn", + Kk: "kk", + Km: "km", + Ko: "ko", + Lo: "lo", + La: "la", + Lv: "lv", + Ln: "ln", + Lt: "lt", + Lb: "lb", + Mk: "mk", + Mg: "mg", + Ms: "ms", + Ml: "ml", + Mt: "mt", + Mi: "mi", + Mr: "mr", + Mn: "mn", + My: "my", + Ne: "ne", + No: "no", + Nn: "nn", + Oc: "oc", + Ps: "ps", + Fa: "fa", + Pl: "pl", + Pt: "pt", + Pa: "pa", + Ro: "ro", + Ru: "ru", + Sa: "sa", + Sr: "sr", + Sn: "sn", + Sd: "sd", + Si: "si", + Sk: "sk", + Sl: "sl", + So: "so", + Es: "es", + Su: "su", + Sw: "sw", + Sv: "sv", + Tl: "tl", + Tg: "tg", + Ta: "ta", + Tt: "tt", + Te: "te", + Th: "th", + Bo: "bo", + Tr: "tr", + Tk: "tk", + Uk: "uk", + Ur: "ur", + Uz: "uz", + Vi: "vi", + Cy: "cy", + Yi: "yi", + Yo: "yo", +} as const; diff --git a/src/api/types/FallbackGladiaTranscriberLanguageBehaviour.ts b/src/api/types/FallbackGladiaTranscriberLanguageBehaviour.ts new file mode 100644 index 00000000..55f2ae8f --- /dev/null +++ b/src/api/types/FallbackGladiaTranscriberLanguageBehaviour.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type FallbackGladiaTranscriberLanguageBehaviour = + | "manual" + | "automatic single language" + | "automatic multiple languages"; +export const FallbackGladiaTranscriberLanguageBehaviour = { + Manual: "manual", + AutomaticSingleLanguage: "automatic single language", + AutomaticMultipleLanguages: "automatic multiple languages", +} as const; diff --git a/src/api/types/FallbackGladiaTranscriberLanguages.ts b/src/api/types/FallbackGladiaTranscriberLanguages.ts new file mode 100644 index 00000000..24ad00fc --- /dev/null +++ b/src/api/types/FallbackGladiaTranscriberLanguages.ts @@ -0,0 +1,208 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Defines the languages to use for the transcription. Required when languageBehaviour is 'manual'. + */ +export type FallbackGladiaTranscriberLanguages = + | "af" + | "sq" + | "am" + | "ar" + | "hy" + | "as" + | "az" + | "ba" + | "eu" + | "be" + | "bn" + | "bs" + | "br" + | "bg" + | "ca" + | "zh" + | "hr" + | "cs" + | "da" + | "nl" + | "en" + | "et" + | "fo" + | "fi" + | "fr" + | "gl" + | "ka" + | "de" + | "el" + | "gu" + | "ht" + | "ha" + | "haw" + | "he" + | "hi" + | "hu" + | "is" + | "id" + | "it" + | "ja" + | "jv" + | "kn" + | "kk" + | "km" + | "ko" + | "lo" + | "la" + | "lv" + | "ln" + | "lt" + | "lb" + | "mk" + | "mg" + | "ms" + | "ml" + | "mt" + | "mi" + | "mr" + | "mn" + | "my" + | "ne" + | "no" + | "nn" + | "oc" + | "ps" + | "fa" + | "pl" + | "pt" + | "pa" + | "ro" + | "ru" + | "sa" + | "sr" + | "sn" + | "sd" + | "si" + | "sk" + | "sl" + | "so" + | "es" + | "su" + | "sw" + | "sv" + | "tl" + | "tg" + | "ta" + | "tt" + | "te" + | "th" + | "bo" + | "tr" + | "tk" + | "uk" + | "ur" + | "uz" + | "vi" + | "cy" + | "yi" + | "yo"; +export const FallbackGladiaTranscriberLanguages = { + Af: "af", + Sq: "sq", + Am: "am", + Ar: "ar", + Hy: "hy", + As: "as", + Az: "az", + Ba: "ba", + Eu: "eu", + Be: "be", + Bn: "bn", + Bs: "bs", + Br: "br", + Bg: "bg", + Ca: "ca", + Zh: "zh", + Hr: "hr", + Cs: "cs", + Da: "da", + Nl: "nl", + En: "en", + Et: "et", + Fo: "fo", + Fi: "fi", + Fr: "fr", + Gl: "gl", + Ka: "ka", + De: "de", + El: "el", + Gu: "gu", + Ht: "ht", + Ha: "ha", + Haw: "haw", + He: "he", + Hi: "hi", + Hu: "hu", + Is: "is", + Id: "id", + It: "it", + Ja: "ja", + Jv: "jv", + Kn: "kn", + Kk: "kk", + Km: "km", + Ko: "ko", + Lo: "lo", + La: "la", + Lv: "lv", + Ln: "ln", + Lt: "lt", + Lb: "lb", + Mk: "mk", + Mg: "mg", + Ms: "ms", + Ml: "ml", + Mt: "mt", + Mi: "mi", + Mr: "mr", + Mn: "mn", + My: "my", + Ne: "ne", + No: "no", + Nn: "nn", + Oc: "oc", + Ps: "ps", + Fa: "fa", + Pl: "pl", + Pt: "pt", + Pa: "pa", + Ro: "ro", + Ru: "ru", + Sa: "sa", + Sr: "sr", + Sn: "sn", + Sd: "sd", + Si: "si", + Sk: "sk", + Sl: "sl", + So: "so", + Es: "es", + Su: "su", + Sw: "sw", + Sv: "sv", + Tl: "tl", + Tg: "tg", + Ta: "ta", + Tt: "tt", + Te: "te", + Th: "th", + Bo: "bo", + Tr: "tr", + Tk: "tk", + Uk: "uk", + Ur: "ur", + Uz: "uz", + Vi: "vi", + Cy: "cy", + Yi: "yi", + Yo: "yo", +} as const; diff --git a/src/api/types/FallbackGladiaTranscriberModel.ts b/src/api/types/FallbackGladiaTranscriberModel.ts new file mode 100644 index 00000000..0ea89c28 --- /dev/null +++ b/src/api/types/FallbackGladiaTranscriberModel.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type FallbackGladiaTranscriberModel = "fast" | "accurate" | "solaria-1"; +export const FallbackGladiaTranscriberModel = { + Fast: "fast", + Accurate: "accurate", + Solaria1: "solaria-1", +} as const; diff --git a/src/api/types/FallbackGladiaTranscriberRegion.ts b/src/api/types/FallbackGladiaTranscriberRegion.ts new file mode 100644 index 00000000..8ced160a --- /dev/null +++ b/src/api/types/FallbackGladiaTranscriberRegion.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Region for processing audio (us-west or eu-west) + */ +export type FallbackGladiaTranscriberRegion = "us-west" | "eu-west"; +export const FallbackGladiaTranscriberRegion = { + UsWest: "us-west", + EuWest: "eu-west", +} as const; diff --git a/src/api/types/FallbackGoogleTranscriber.ts b/src/api/types/FallbackGoogleTranscriber.ts index 335f4b65..9c1bfa38 100644 --- a/src/api/types/FallbackGoogleTranscriber.ts +++ b/src/api/types/FallbackGoogleTranscriber.ts @@ -2,132 +2,13 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface FallbackGoogleTranscriber { /** This is the transcription provider that will be used. */ provider: "google"; /** This is the model that will be used for the transcription. */ - model?: FallbackGoogleTranscriber.Model; + model?: Vapi.FallbackGoogleTranscriberModel; /** This is the language that will be set for the transcription. */ - language?: FallbackGoogleTranscriber.Language; -} - -export namespace FallbackGoogleTranscriber { - /** - * This is the model that will be used for the transcription. - */ - export type Model = - | "gemini-2.5-pro" - | "gemini-2.5-flash" - | "gemini-2.5-flash-lite" - | "gemini-2.0-flash-thinking-exp" - | "gemini-2.0-pro-exp-02-05" - | "gemini-2.0-flash" - | "gemini-2.0-flash-lite" - | "gemini-2.0-flash-exp" - | "gemini-2.0-flash-realtime-exp" - | "gemini-1.5-flash" - | "gemini-1.5-flash-002" - | "gemini-1.5-pro" - | "gemini-1.5-pro-002" - | "gemini-1.0-pro"; - export const Model = { - Gemini25Pro: "gemini-2.5-pro", - Gemini25Flash: "gemini-2.5-flash", - Gemini25FlashLite: "gemini-2.5-flash-lite", - Gemini20FlashThinkingExp: "gemini-2.0-flash-thinking-exp", - Gemini20ProExp0205: "gemini-2.0-pro-exp-02-05", - Gemini20Flash: "gemini-2.0-flash", - Gemini20FlashLite: "gemini-2.0-flash-lite", - Gemini20FlashExp: "gemini-2.0-flash-exp", - Gemini20FlashRealtimeExp: "gemini-2.0-flash-realtime-exp", - Gemini15Flash: "gemini-1.5-flash", - Gemini15Flash002: "gemini-1.5-flash-002", - Gemini15Pro: "gemini-1.5-pro", - Gemini15Pro002: "gemini-1.5-pro-002", - Gemini10Pro: "gemini-1.0-pro", - } as const; - /** - * This is the language that will be set for the transcription. - */ - export type Language = - | "Multilingual" - | "Arabic" - | "Bengali" - | "Bulgarian" - | "Chinese" - | "Croatian" - | "Czech" - | "Danish" - | "Dutch" - | "English" - | "Estonian" - | "Finnish" - | "French" - | "German" - | "Greek" - | "Hebrew" - | "Hindi" - | "Hungarian" - | "Indonesian" - | "Italian" - | "Japanese" - | "Korean" - | "Latvian" - | "Lithuanian" - | "Norwegian" - | "Polish" - | "Portuguese" - | "Romanian" - | "Russian" - | "Serbian" - | "Slovak" - | "Slovenian" - | "Spanish" - | "Swahili" - | "Swedish" - | "Thai" - | "Turkish" - | "Ukrainian" - | "Vietnamese"; - export const Language = { - Multilingual: "Multilingual", - Arabic: "Arabic", - Bengali: "Bengali", - Bulgarian: "Bulgarian", - Chinese: "Chinese", - Croatian: "Croatian", - Czech: "Czech", - Danish: "Danish", - Dutch: "Dutch", - English: "English", - Estonian: "Estonian", - Finnish: "Finnish", - French: "French", - German: "German", - Greek: "Greek", - Hebrew: "Hebrew", - Hindi: "Hindi", - Hungarian: "Hungarian", - Indonesian: "Indonesian", - Italian: "Italian", - Japanese: "Japanese", - Korean: "Korean", - Latvian: "Latvian", - Lithuanian: "Lithuanian", - Norwegian: "Norwegian", - Polish: "Polish", - Portuguese: "Portuguese", - Romanian: "Romanian", - Russian: "Russian", - Serbian: "Serbian", - Slovak: "Slovak", - Slovenian: "Slovenian", - Spanish: "Spanish", - Swahili: "Swahili", - Swedish: "Swedish", - Thai: "Thai", - Turkish: "Turkish", - Ukrainian: "Ukrainian", - Vietnamese: "Vietnamese", - } as const; + language?: Vapi.FallbackGoogleTranscriberLanguage; } diff --git a/src/api/types/FallbackGoogleTranscriberLanguage.ts b/src/api/types/FallbackGoogleTranscriberLanguage.ts new file mode 100644 index 00000000..6497459e --- /dev/null +++ b/src/api/types/FallbackGoogleTranscriberLanguage.ts @@ -0,0 +1,88 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the language that will be set for the transcription. + */ +export type FallbackGoogleTranscriberLanguage = + | "Multilingual" + | "Arabic" + | "Bengali" + | "Bulgarian" + | "Chinese" + | "Croatian" + | "Czech" + | "Danish" + | "Dutch" + | "English" + | "Estonian" + | "Finnish" + | "French" + | "German" + | "Greek" + | "Hebrew" + | "Hindi" + | "Hungarian" + | "Indonesian" + | "Italian" + | "Japanese" + | "Korean" + | "Latvian" + | "Lithuanian" + | "Norwegian" + | "Polish" + | "Portuguese" + | "Romanian" + | "Russian" + | "Serbian" + | "Slovak" + | "Slovenian" + | "Spanish" + | "Swahili" + | "Swedish" + | "Thai" + | "Turkish" + | "Ukrainian" + | "Vietnamese"; +export const FallbackGoogleTranscriberLanguage = { + Multilingual: "Multilingual", + Arabic: "Arabic", + Bengali: "Bengali", + Bulgarian: "Bulgarian", + Chinese: "Chinese", + Croatian: "Croatian", + Czech: "Czech", + Danish: "Danish", + Dutch: "Dutch", + English: "English", + Estonian: "Estonian", + Finnish: "Finnish", + French: "French", + German: "German", + Greek: "Greek", + Hebrew: "Hebrew", + Hindi: "Hindi", + Hungarian: "Hungarian", + Indonesian: "Indonesian", + Italian: "Italian", + Japanese: "Japanese", + Korean: "Korean", + Latvian: "Latvian", + Lithuanian: "Lithuanian", + Norwegian: "Norwegian", + Polish: "Polish", + Portuguese: "Portuguese", + Romanian: "Romanian", + Russian: "Russian", + Serbian: "Serbian", + Slovak: "Slovak", + Slovenian: "Slovenian", + Spanish: "Spanish", + Swahili: "Swahili", + Swedish: "Swedish", + Thai: "Thai", + Turkish: "Turkish", + Ukrainian: "Ukrainian", + Vietnamese: "Vietnamese", +} as const; diff --git a/src/api/types/FallbackGoogleTranscriberModel.ts b/src/api/types/FallbackGoogleTranscriberModel.ts new file mode 100644 index 00000000..90c515a8 --- /dev/null +++ b/src/api/types/FallbackGoogleTranscriberModel.ts @@ -0,0 +1,38 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the model that will be used for the transcription. + */ +export type FallbackGoogleTranscriberModel = + | "gemini-2.5-pro" + | "gemini-2.5-flash" + | "gemini-2.5-flash-lite" + | "gemini-2.0-flash-thinking-exp" + | "gemini-2.0-pro-exp-02-05" + | "gemini-2.0-flash" + | "gemini-2.0-flash-lite" + | "gemini-2.0-flash-exp" + | "gemini-2.0-flash-realtime-exp" + | "gemini-1.5-flash" + | "gemini-1.5-flash-002" + | "gemini-1.5-pro" + | "gemini-1.5-pro-002" + | "gemini-1.0-pro"; +export const FallbackGoogleTranscriberModel = { + Gemini25Pro: "gemini-2.5-pro", + Gemini25Flash: "gemini-2.5-flash", + Gemini25FlashLite: "gemini-2.5-flash-lite", + Gemini20FlashThinkingExp: "gemini-2.0-flash-thinking-exp", + Gemini20ProExp0205: "gemini-2.0-pro-exp-02-05", + Gemini20Flash: "gemini-2.0-flash", + Gemini20FlashLite: "gemini-2.0-flash-lite", + Gemini20FlashExp: "gemini-2.0-flash-exp", + Gemini20FlashRealtimeExp: "gemini-2.0-flash-realtime-exp", + Gemini15Flash: "gemini-1.5-flash", + Gemini15Flash002: "gemini-1.5-flash-002", + Gemini15Pro: "gemini-1.5-pro", + Gemini15Pro002: "gemini-1.5-pro-002", + Gemini10Pro: "gemini-1.0-pro", +} as const; diff --git a/src/api/types/FallbackHumeVoice.ts b/src/api/types/FallbackHumeVoice.ts index 56f22dc9..bef8f49d 100644 --- a/src/api/types/FallbackHumeVoice.ts +++ b/src/api/types/FallbackHumeVoice.ts @@ -10,7 +10,7 @@ export interface FallbackHumeVoice { /** This is the voice provider that will be used. */ provider: "hume"; /** This is the model that will be used. */ - model?: FallbackHumeVoice.Model; + model?: Vapi.FallbackHumeVoiceModel; /** The ID of the particular voice you want to use. */ voiceId: string; /** Indicates whether the chosen voice is a preset Hume AI voice or a custom voice. */ @@ -25,14 +25,3 @@ export interface FallbackHumeVoice { /** This is the plan for chunking the model output before it is sent to the voice provider. */ chunkPlan?: Vapi.ChunkPlan; } - -export namespace FallbackHumeVoice { - /** - * This is the model that will be used. - */ - export type Model = "octave" | "octave2"; - export const Model = { - Octave: "octave", - Octave2: "octave2", - } as const; -} diff --git a/src/api/types/FallbackHumeVoiceModel.ts b/src/api/types/FallbackHumeVoiceModel.ts new file mode 100644 index 00000000..c589dd15 --- /dev/null +++ b/src/api/types/FallbackHumeVoiceModel.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the model that will be used. + */ +export type FallbackHumeVoiceModel = "octave" | "octave2"; +export const FallbackHumeVoiceModel = { + Octave: "octave", + Octave2: "octave2", +} as const; diff --git a/src/api/types/FallbackInworldVoice.ts b/src/api/types/FallbackInworldVoice.ts index ca2b04d0..ce251273 100644 --- a/src/api/types/FallbackInworldVoice.ts +++ b/src/api/types/FallbackInworldVoice.ts @@ -23,148 +23,11 @@ export interface FallbackInworldVoice { * • pt: Heitor, Maitê * • es: Diego, Lupita, Miguel, Rafael */ - voiceId: FallbackInworldVoice.VoiceId; + voiceId: Vapi.FallbackInworldVoiceVoiceId; /** This is the model that will be used. */ model?: "inworld-tts-1"; /** Language code for Inworld TTS synthesis */ - languageCode?: FallbackInworldVoice.LanguageCode; + languageCode?: Vapi.FallbackInworldVoiceLanguageCode; /** This is the plan for chunking the model output before it is sent to the voice provider. */ chunkPlan?: Vapi.ChunkPlan; } - -export namespace FallbackInworldVoice { - /** - * Available voices by language: - * • en: Alex, Ashley, Craig, Deborah, Dennis, Edward, Elizabeth, Hades, Julia, Pixie, Mark, Olivia, Priya, Ronald, Sarah, Shaun, Theodore, Timothy, Wendy, Dominus - * • zh: Yichen, Xiaoyin, Xinyi, Jing - * • nl: Erik, Katrien, Lennart, Lore - * • fr: Alain, Hélène, Mathieu, Étienne - * • de: Johanna, Josef - * • it: Gianni, Orietta - * • ja: Asuka, Satoshi - * • ko: Hyunwoo, Minji, Seojun, Yoona - * • pl: Szymon, Wojciech - * • pt: Heitor, Maitê - * • es: Diego, Lupita, Miguel, Rafael - */ - export type VoiceId = - | "Alex" - | "Ashley" - | "Craig" - | "Deborah" - | "Dennis" - | "Edward" - | "Elizabeth" - | "Hades" - | "Julia" - | "Pixie" - | "Mark" - | "Olivia" - | "Priya" - | "Ronald" - | "Sarah" - | "Shaun" - | "Theodore" - | "Timothy" - | "Wendy" - | "Dominus" - | "Yichen" - | "Xiaoyin" - | "Xinyi" - | "Jing" - | "Erik" - | "Katrien" - | "Lennart" - | "Lore" - | "Alain" - | "H\u00E9l\u00E8ne" - | "Mathieu" - | "\u00C9tienne" - | "Johanna" - | "Josef" - | "Gianni" - | "Orietta" - | "Asuka" - | "Satoshi" - | "Hyunwoo" - | "Minji" - | "Seojun" - | "Yoona" - | "Szymon" - | "Wojciech" - | "Heitor" - | "Mait\u00EA" - | "Diego" - | "Lupita" - | "Miguel" - | "Rafael"; - export const VoiceId = { - Alex: "Alex", - Ashley: "Ashley", - Craig: "Craig", - Deborah: "Deborah", - Dennis: "Dennis", - Edward: "Edward", - Elizabeth: "Elizabeth", - Hades: "Hades", - Julia: "Julia", - Pixie: "Pixie", - Mark: "Mark", - Olivia: "Olivia", - Priya: "Priya", - Ronald: "Ronald", - Sarah: "Sarah", - Shaun: "Shaun", - Theodore: "Theodore", - Timothy: "Timothy", - Wendy: "Wendy", - Dominus: "Dominus", - Yichen: "Yichen", - Xiaoyin: "Xiaoyin", - Xinyi: "Xinyi", - Jing: "Jing", - Erik: "Erik", - Katrien: "Katrien", - Lennart: "Lennart", - Lore: "Lore", - Alain: "Alain", - Helene: "H\u00E9l\u00E8ne", - Mathieu: "Mathieu", - Etienne: "\u00C9tienne", - Johanna: "Johanna", - Josef: "Josef", - Gianni: "Gianni", - Orietta: "Orietta", - Asuka: "Asuka", - Satoshi: "Satoshi", - Hyunwoo: "Hyunwoo", - Minji: "Minji", - Seojun: "Seojun", - Yoona: "Yoona", - Szymon: "Szymon", - Wojciech: "Wojciech", - Heitor: "Heitor", - Maite: "Mait\u00EA", - Diego: "Diego", - Lupita: "Lupita", - Miguel: "Miguel", - Rafael: "Rafael", - } as const; - /** - * Language code for Inworld TTS synthesis - */ - export type LanguageCode = "en" | "zh" | "ko" | "nl" | "fr" | "es" | "ja" | "de" | "it" | "pl" | "pt"; - export const LanguageCode = { - En: "en", - Zh: "zh", - Ko: "ko", - Nl: "nl", - Fr: "fr", - Es: "es", - Ja: "ja", - De: "de", - It: "it", - Pl: "pl", - Pt: "pt", - } as const; -} diff --git a/src/api/types/FallbackInworldVoiceLanguageCode.ts b/src/api/types/FallbackInworldVoiceLanguageCode.ts new file mode 100644 index 00000000..56ed52bb --- /dev/null +++ b/src/api/types/FallbackInworldVoiceLanguageCode.ts @@ -0,0 +1,32 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Language code for Inworld TTS synthesis + */ +export type FallbackInworldVoiceLanguageCode = + | "en" + | "zh" + | "ko" + | "nl" + | "fr" + | "es" + | "ja" + | "de" + | "it" + | "pl" + | "pt"; +export const FallbackInworldVoiceLanguageCode = { + En: "en", + Zh: "zh", + Ko: "ko", + Nl: "nl", + Fr: "fr", + Es: "es", + Ja: "ja", + De: "de", + It: "it", + Pl: "pl", + Pt: "pt", +} as const; diff --git a/src/api/types/FallbackInworldVoiceVoiceId.ts b/src/api/types/FallbackInworldVoiceVoiceId.ts new file mode 100644 index 00000000..9a16b5ef --- /dev/null +++ b/src/api/types/FallbackInworldVoiceVoiceId.ts @@ -0,0 +1,121 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Available voices by language: + * • en: Alex, Ashley, Craig, Deborah, Dennis, Edward, Elizabeth, Hades, Julia, Pixie, Mark, Olivia, Priya, Ronald, Sarah, Shaun, Theodore, Timothy, Wendy, Dominus + * • zh: Yichen, Xiaoyin, Xinyi, Jing + * • nl: Erik, Katrien, Lennart, Lore + * • fr: Alain, Hélène, Mathieu, Étienne + * • de: Johanna, Josef + * • it: Gianni, Orietta + * • ja: Asuka, Satoshi + * • ko: Hyunwoo, Minji, Seojun, Yoona + * • pl: Szymon, Wojciech + * • pt: Heitor, Maitê + * • es: Diego, Lupita, Miguel, Rafael + */ +export type FallbackInworldVoiceVoiceId = + | "Alex" + | "Ashley" + | "Craig" + | "Deborah" + | "Dennis" + | "Edward" + | "Elizabeth" + | "Hades" + | "Julia" + | "Pixie" + | "Mark" + | "Olivia" + | "Priya" + | "Ronald" + | "Sarah" + | "Shaun" + | "Theodore" + | "Timothy" + | "Wendy" + | "Dominus" + | "Yichen" + | "Xiaoyin" + | "Xinyi" + | "Jing" + | "Erik" + | "Katrien" + | "Lennart" + | "Lore" + | "Alain" + | "H\u00E9l\u00E8ne" + | "Mathieu" + | "\u00C9tienne" + | "Johanna" + | "Josef" + | "Gianni" + | "Orietta" + | "Asuka" + | "Satoshi" + | "Hyunwoo" + | "Minji" + | "Seojun" + | "Yoona" + | "Szymon" + | "Wojciech" + | "Heitor" + | "Mait\u00EA" + | "Diego" + | "Lupita" + | "Miguel" + | "Rafael"; +export const FallbackInworldVoiceVoiceId = { + Alex: "Alex", + Ashley: "Ashley", + Craig: "Craig", + Deborah: "Deborah", + Dennis: "Dennis", + Edward: "Edward", + Elizabeth: "Elizabeth", + Hades: "Hades", + Julia: "Julia", + Pixie: "Pixie", + Mark: "Mark", + Olivia: "Olivia", + Priya: "Priya", + Ronald: "Ronald", + Sarah: "Sarah", + Shaun: "Shaun", + Theodore: "Theodore", + Timothy: "Timothy", + Wendy: "Wendy", + Dominus: "Dominus", + Yichen: "Yichen", + Xiaoyin: "Xiaoyin", + Xinyi: "Xinyi", + Jing: "Jing", + Erik: "Erik", + Katrien: "Katrien", + Lennart: "Lennart", + Lore: "Lore", + Alain: "Alain", + Helene: "H\u00E9l\u00E8ne", + Mathieu: "Mathieu", + Etienne: "\u00C9tienne", + Johanna: "Johanna", + Josef: "Josef", + Gianni: "Gianni", + Orietta: "Orietta", + Asuka: "Asuka", + Satoshi: "Satoshi", + Hyunwoo: "Hyunwoo", + Minji: "Minji", + Seojun: "Seojun", + Yoona: "Yoona", + Szymon: "Szymon", + Wojciech: "Wojciech", + Heitor: "Heitor", + Maite: "Mait\u00EA", + Diego: "Diego", + Lupita: "Lupita", + Miguel: "Miguel", + Rafael: "Rafael", +} as const; diff --git a/src/api/types/FallbackLmntVoice.ts b/src/api/types/FallbackLmntVoice.ts index 81cf97af..70aec505 100644 --- a/src/api/types/FallbackLmntVoice.ts +++ b/src/api/types/FallbackLmntVoice.ts @@ -10,441 +10,11 @@ export interface FallbackLmntVoice { /** This is the voice provider that will be used. */ provider: "lmnt"; /** This is the provider-specific ID that will be used. */ - voiceId: FallbackLmntVoice.VoiceId; + voiceId: Vapi.FallbackLmntVoiceId; /** This is the speed multiplier that will be used. */ speed?: number; /** Two letter ISO 639-1 language code. Use "auto" for auto-detection. */ - language?: FallbackLmntVoice.Language; + language?: Vapi.FallbackLmntVoiceLanguage; /** This is the plan for chunking the model output before it is sent to the voice provider. */ chunkPlan?: Vapi.ChunkPlan; } - -export namespace FallbackLmntVoice { - /** - * This is the provider-specific ID that will be used. - */ - export type VoiceId = - | ( - | "amy" - | "ansel" - | "autumn" - | "ava" - | "brandon" - | "caleb" - | "cassian" - | "chloe" - | "dalton" - | "daniel" - | "dustin" - | "elowen" - | "evander" - | "huxley" - | "james" - | "juniper" - | "kennedy" - | "lauren" - | "leah" - | "lily" - | "lucas" - | "magnus" - | "miles" - | "morgan" - | "natalie" - | "nathan" - | "noah" - | "nyssa" - | "oliver" - | "paige" - | "ryan" - | "sadie" - | "sophie" - | "stella" - | "terrence" - | "tyler" - | "vesper" - | "violet" - | "warrick" - | "zain" - | "zeke" - | "zoe" - ) - | string; - /** - * Two letter ISO 639-1 language code. Use "auto" for auto-detection. - */ - export type Language = - | "aa" - | "ab" - | "ae" - | "af" - | "ak" - | "am" - | "an" - | "ar" - | "as" - | "av" - | "ay" - | "az" - | "ba" - | "be" - | "bg" - | "bh" - | "bi" - | "bm" - | "bn" - | "bo" - | "br" - | "bs" - | "ca" - | "ce" - | "ch" - | "co" - | "cr" - | "cs" - | "cu" - | "cv" - | "cy" - | "da" - | "de" - | "dv" - | "dz" - | "ee" - | "el" - | "en" - | "eo" - | "es" - | "et" - | "eu" - | "fa" - | "ff" - | "fi" - | "fj" - | "fo" - | "fr" - | "fy" - | "ga" - | "gd" - | "gl" - | "gn" - | "gu" - | "gv" - | "ha" - | "he" - | "hi" - | "ho" - | "hr" - | "ht" - | "hu" - | "hy" - | "hz" - | "ia" - | "id" - | "ie" - | "ig" - | "ii" - | "ik" - | "io" - | "is" - | "it" - | "iu" - | "ja" - | "jv" - | "ka" - | "kg" - | "ki" - | "kj" - | "kk" - | "kl" - | "km" - | "kn" - | "ko" - | "kr" - | "ks" - | "ku" - | "kv" - | "kw" - | "ky" - | "la" - | "lb" - | "lg" - | "li" - | "ln" - | "lo" - | "lt" - | "lu" - | "lv" - | "mg" - | "mh" - | "mi" - | "mk" - | "ml" - | "mn" - | "mr" - | "ms" - | "mt" - | "my" - | "na" - | "nb" - | "nd" - | "ne" - | "ng" - | "nl" - | "nn" - | "no" - | "nr" - | "nv" - | "ny" - | "oc" - | "oj" - | "om" - | "or" - | "os" - | "pa" - | "pi" - | "pl" - | "ps" - | "pt" - | "qu" - | "rm" - | "rn" - | "ro" - | "ru" - | "rw" - | "sa" - | "sc" - | "sd" - | "se" - | "sg" - | "si" - | "sk" - | "sl" - | "sm" - | "sn" - | "so" - | "sq" - | "sr" - | "ss" - | "st" - | "su" - | "sv" - | "sw" - | "ta" - | "te" - | "tg" - | "th" - | "ti" - | "tk" - | "tl" - | "tn" - | "to" - | "tr" - | "ts" - | "tt" - | "tw" - | "ty" - | "ug" - | "uk" - | "ur" - | "uz" - | "ve" - | "vi" - | "vo" - | "wa" - | "wo" - | "xh" - | "yi" - | "yue" - | "yo" - | "za" - | "zh" - | "zu" - | "auto"; - export const Language = { - Aa: "aa", - Ab: "ab", - Ae: "ae", - Af: "af", - Ak: "ak", - Am: "am", - An: "an", - Ar: "ar", - As: "as", - Av: "av", - Ay: "ay", - Az: "az", - Ba: "ba", - Be: "be", - Bg: "bg", - Bh: "bh", - Bi: "bi", - Bm: "bm", - Bn: "bn", - Bo: "bo", - Br: "br", - Bs: "bs", - Ca: "ca", - Ce: "ce", - Ch: "ch", - Co: "co", - Cr: "cr", - Cs: "cs", - Cu: "cu", - Cv: "cv", - Cy: "cy", - Da: "da", - De: "de", - Dv: "dv", - Dz: "dz", - Ee: "ee", - El: "el", - En: "en", - Eo: "eo", - Es: "es", - Et: "et", - Eu: "eu", - Fa: "fa", - Ff: "ff", - Fi: "fi", - Fj: "fj", - Fo: "fo", - Fr: "fr", - Fy: "fy", - Ga: "ga", - Gd: "gd", - Gl: "gl", - Gn: "gn", - Gu: "gu", - Gv: "gv", - Ha: "ha", - He: "he", - Hi: "hi", - Ho: "ho", - Hr: "hr", - Ht: "ht", - Hu: "hu", - Hy: "hy", - Hz: "hz", - Ia: "ia", - Id: "id", - Ie: "ie", - Ig: "ig", - Ii: "ii", - Ik: "ik", - Io: "io", - Is: "is", - It: "it", - Iu: "iu", - Ja: "ja", - Jv: "jv", - Ka: "ka", - Kg: "kg", - Ki: "ki", - Kj: "kj", - Kk: "kk", - Kl: "kl", - Km: "km", - Kn: "kn", - Ko: "ko", - Kr: "kr", - Ks: "ks", - Ku: "ku", - Kv: "kv", - Kw: "kw", - Ky: "ky", - La: "la", - Lb: "lb", - Lg: "lg", - Li: "li", - Ln: "ln", - Lo: "lo", - Lt: "lt", - Lu: "lu", - Lv: "lv", - Mg: "mg", - Mh: "mh", - Mi: "mi", - Mk: "mk", - Ml: "ml", - Mn: "mn", - Mr: "mr", - Ms: "ms", - Mt: "mt", - My: "my", - Na: "na", - Nb: "nb", - Nd: "nd", - Ne: "ne", - Ng: "ng", - Nl: "nl", - Nn: "nn", - No: "no", - Nr: "nr", - Nv: "nv", - Ny: "ny", - Oc: "oc", - Oj: "oj", - Om: "om", - Or: "or", - Os: "os", - Pa: "pa", - Pi: "pi", - Pl: "pl", - Ps: "ps", - Pt: "pt", - Qu: "qu", - Rm: "rm", - Rn: "rn", - Ro: "ro", - Ru: "ru", - Rw: "rw", - Sa: "sa", - Sc: "sc", - Sd: "sd", - Se: "se", - Sg: "sg", - Si: "si", - Sk: "sk", - Sl: "sl", - Sm: "sm", - Sn: "sn", - So: "so", - Sq: "sq", - Sr: "sr", - Ss: "ss", - St: "st", - Su: "su", - Sv: "sv", - Sw: "sw", - Ta: "ta", - Te: "te", - Tg: "tg", - Th: "th", - Ti: "ti", - Tk: "tk", - Tl: "tl", - Tn: "tn", - To: "to", - Tr: "tr", - Ts: "ts", - Tt: "tt", - Tw: "tw", - Ty: "ty", - Ug: "ug", - Uk: "uk", - Ur: "ur", - Uz: "uz", - Ve: "ve", - Vi: "vi", - Vo: "vo", - Wa: "wa", - Wo: "wo", - Xh: "xh", - Yi: "yi", - Yue: "yue", - Yo: "yo", - Za: "za", - Zh: "zh", - Zu: "zu", - Auto: "auto", - } as const; -} diff --git a/src/api/types/FallbackLmntVoiceId.ts b/src/api/types/FallbackLmntVoiceId.ts new file mode 100644 index 00000000..7105bd46 --- /dev/null +++ b/src/api/types/FallbackLmntVoiceId.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the provider-specific ID that will be used. + */ +export type FallbackLmntVoiceId = Vapi.FallbackLmntVoiceIdEnum | string; diff --git a/src/api/types/FallbackLmntVoiceIdEnum.ts b/src/api/types/FallbackLmntVoiceIdEnum.ts new file mode 100644 index 00000000..157aad83 --- /dev/null +++ b/src/api/types/FallbackLmntVoiceIdEnum.ts @@ -0,0 +1,91 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type FallbackLmntVoiceIdEnum = + | "amy" + | "ansel" + | "autumn" + | "ava" + | "brandon" + | "caleb" + | "cassian" + | "chloe" + | "dalton" + | "daniel" + | "dustin" + | "elowen" + | "evander" + | "huxley" + | "james" + | "juniper" + | "kennedy" + | "lauren" + | "leah" + | "lily" + | "lucas" + | "magnus" + | "miles" + | "morgan" + | "natalie" + | "nathan" + | "noah" + | "nyssa" + | "oliver" + | "paige" + | "ryan" + | "sadie" + | "sophie" + | "stella" + | "terrence" + | "tyler" + | "vesper" + | "violet" + | "warrick" + | "zain" + | "zeke" + | "zoe"; +export const FallbackLmntVoiceIdEnum = { + Amy: "amy", + Ansel: "ansel", + Autumn: "autumn", + Ava: "ava", + Brandon: "brandon", + Caleb: "caleb", + Cassian: "cassian", + Chloe: "chloe", + Dalton: "dalton", + Daniel: "daniel", + Dustin: "dustin", + Elowen: "elowen", + Evander: "evander", + Huxley: "huxley", + James: "james", + Juniper: "juniper", + Kennedy: "kennedy", + Lauren: "lauren", + Leah: "leah", + Lily: "lily", + Lucas: "lucas", + Magnus: "magnus", + Miles: "miles", + Morgan: "morgan", + Natalie: "natalie", + Nathan: "nathan", + Noah: "noah", + Nyssa: "nyssa", + Oliver: "oliver", + Paige: "paige", + Ryan: "ryan", + Sadie: "sadie", + Sophie: "sophie", + Stella: "stella", + Terrence: "terrence", + Tyler: "tyler", + Vesper: "vesper", + Violet: "violet", + Warrick: "warrick", + Zain: "zain", + Zeke: "zeke", + Zoe: "zoe", +} as const; diff --git a/src/api/types/FallbackLmntVoiceLanguage.ts b/src/api/types/FallbackLmntVoiceLanguage.ts new file mode 100644 index 00000000..00c8fd7a --- /dev/null +++ b/src/api/types/FallbackLmntVoiceLanguage.ts @@ -0,0 +1,382 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Two letter ISO 639-1 language code. Use "auto" for auto-detection. + */ +export type FallbackLmntVoiceLanguage = + | "aa" + | "ab" + | "ae" + | "af" + | "ak" + | "am" + | "an" + | "ar" + | "as" + | "av" + | "ay" + | "az" + | "ba" + | "be" + | "bg" + | "bh" + | "bi" + | "bm" + | "bn" + | "bo" + | "br" + | "bs" + | "ca" + | "ce" + | "ch" + | "co" + | "cr" + | "cs" + | "cu" + | "cv" + | "cy" + | "da" + | "de" + | "dv" + | "dz" + | "ee" + | "el" + | "en" + | "eo" + | "es" + | "et" + | "eu" + | "fa" + | "ff" + | "fi" + | "fj" + | "fo" + | "fr" + | "fy" + | "ga" + | "gd" + | "gl" + | "gn" + | "gu" + | "gv" + | "ha" + | "he" + | "hi" + | "ho" + | "hr" + | "ht" + | "hu" + | "hy" + | "hz" + | "ia" + | "id" + | "ie" + | "ig" + | "ii" + | "ik" + | "io" + | "is" + | "it" + | "iu" + | "ja" + | "jv" + | "ka" + | "kg" + | "ki" + | "kj" + | "kk" + | "kl" + | "km" + | "kn" + | "ko" + | "kr" + | "ks" + | "ku" + | "kv" + | "kw" + | "ky" + | "la" + | "lb" + | "lg" + | "li" + | "ln" + | "lo" + | "lt" + | "lu" + | "lv" + | "mg" + | "mh" + | "mi" + | "mk" + | "ml" + | "mn" + | "mr" + | "ms" + | "mt" + | "my" + | "na" + | "nb" + | "nd" + | "ne" + | "ng" + | "nl" + | "nn" + | "no" + | "nr" + | "nv" + | "ny" + | "oc" + | "oj" + | "om" + | "or" + | "os" + | "pa" + | "pi" + | "pl" + | "ps" + | "pt" + | "qu" + | "rm" + | "rn" + | "ro" + | "ru" + | "rw" + | "sa" + | "sc" + | "sd" + | "se" + | "sg" + | "si" + | "sk" + | "sl" + | "sm" + | "sn" + | "so" + | "sq" + | "sr" + | "ss" + | "st" + | "su" + | "sv" + | "sw" + | "ta" + | "te" + | "tg" + | "th" + | "ti" + | "tk" + | "tl" + | "tn" + | "to" + | "tr" + | "ts" + | "tt" + | "tw" + | "ty" + | "ug" + | "uk" + | "ur" + | "uz" + | "ve" + | "vi" + | "vo" + | "wa" + | "wo" + | "xh" + | "yi" + | "yue" + | "yo" + | "za" + | "zh" + | "zu" + | "auto"; +export const FallbackLmntVoiceLanguage = { + Aa: "aa", + Ab: "ab", + Ae: "ae", + Af: "af", + Ak: "ak", + Am: "am", + An: "an", + Ar: "ar", + As: "as", + Av: "av", + Ay: "ay", + Az: "az", + Ba: "ba", + Be: "be", + Bg: "bg", + Bh: "bh", + Bi: "bi", + Bm: "bm", + Bn: "bn", + Bo: "bo", + Br: "br", + Bs: "bs", + Ca: "ca", + Ce: "ce", + Ch: "ch", + Co: "co", + Cr: "cr", + Cs: "cs", + Cu: "cu", + Cv: "cv", + Cy: "cy", + Da: "da", + De: "de", + Dv: "dv", + Dz: "dz", + Ee: "ee", + El: "el", + En: "en", + Eo: "eo", + Es: "es", + Et: "et", + Eu: "eu", + Fa: "fa", + Ff: "ff", + Fi: "fi", + Fj: "fj", + Fo: "fo", + Fr: "fr", + Fy: "fy", + Ga: "ga", + Gd: "gd", + Gl: "gl", + Gn: "gn", + Gu: "gu", + Gv: "gv", + Ha: "ha", + He: "he", + Hi: "hi", + Ho: "ho", + Hr: "hr", + Ht: "ht", + Hu: "hu", + Hy: "hy", + Hz: "hz", + Ia: "ia", + Id: "id", + Ie: "ie", + Ig: "ig", + Ii: "ii", + Ik: "ik", + Io: "io", + Is: "is", + It: "it", + Iu: "iu", + Ja: "ja", + Jv: "jv", + Ka: "ka", + Kg: "kg", + Ki: "ki", + Kj: "kj", + Kk: "kk", + Kl: "kl", + Km: "km", + Kn: "kn", + Ko: "ko", + Kr: "kr", + Ks: "ks", + Ku: "ku", + Kv: "kv", + Kw: "kw", + Ky: "ky", + La: "la", + Lb: "lb", + Lg: "lg", + Li: "li", + Ln: "ln", + Lo: "lo", + Lt: "lt", + Lu: "lu", + Lv: "lv", + Mg: "mg", + Mh: "mh", + Mi: "mi", + Mk: "mk", + Ml: "ml", + Mn: "mn", + Mr: "mr", + Ms: "ms", + Mt: "mt", + My: "my", + Na: "na", + Nb: "nb", + Nd: "nd", + Ne: "ne", + Ng: "ng", + Nl: "nl", + Nn: "nn", + No: "no", + Nr: "nr", + Nv: "nv", + Ny: "ny", + Oc: "oc", + Oj: "oj", + Om: "om", + Or: "or", + Os: "os", + Pa: "pa", + Pi: "pi", + Pl: "pl", + Ps: "ps", + Pt: "pt", + Qu: "qu", + Rm: "rm", + Rn: "rn", + Ro: "ro", + Ru: "ru", + Rw: "rw", + Sa: "sa", + Sc: "sc", + Sd: "sd", + Se: "se", + Sg: "sg", + Si: "si", + Sk: "sk", + Sl: "sl", + Sm: "sm", + Sn: "sn", + So: "so", + Sq: "sq", + Sr: "sr", + Ss: "ss", + St: "st", + Su: "su", + Sv: "sv", + Sw: "sw", + Ta: "ta", + Te: "te", + Tg: "tg", + Th: "th", + Ti: "ti", + Tk: "tk", + Tl: "tl", + Tn: "tn", + To: "to", + Tr: "tr", + Ts: "ts", + Tt: "tt", + Tw: "tw", + Ty: "ty", + Ug: "ug", + Uk: "uk", + Ur: "ur", + Uz: "uz", + Ve: "ve", + Vi: "vi", + Vo: "vo", + Wa: "wa", + Wo: "wo", + Xh: "xh", + Yi: "yi", + Yue: "yue", + Yo: "yo", + Za: "za", + Zh: "zh", + Zu: "zu", + Auto: "auto", +} as const; diff --git a/src/api/types/FallbackMinimaxVoice.ts b/src/api/types/FallbackMinimaxVoice.ts index b45ce524..08451358 100644 --- a/src/api/types/FallbackMinimaxVoice.ts +++ b/src/api/types/FallbackMinimaxVoice.ts @@ -18,7 +18,7 @@ export interface FallbackMinimaxVoice { * * @default "speech-02-turbo" */ - model?: FallbackMinimaxVoice.Model; + model?: Vapi.FallbackMinimaxVoiceModel; /** * The emotion to use for the voice. If not provided, will use auto-detect mode. * Options include: 'happy', 'sad', 'angry', 'fearful', 'surprised', 'disgusted', 'neutral' @@ -40,123 +40,11 @@ export interface FallbackMinimaxVoice { */ volume?: number; /** The region for Minimax API. Defaults to "worldwide". */ - region?: FallbackMinimaxVoice.Region; + region?: Vapi.FallbackMinimaxVoiceRegion; /** Language hint for MiniMax T2A. Example: yue (Cantonese), zh (Chinese), en (English). */ - languageBoost?: FallbackMinimaxVoice.LanguageBoost; + languageBoost?: Vapi.FallbackMinimaxVoiceLanguageBoost; /** Enable MiniMax text normalization to improve number reading and formatting. */ textNormalizationEnabled?: boolean; /** This is the plan for chunking the model output before it is sent to the voice provider. */ chunkPlan?: Vapi.ChunkPlan; } - -export namespace FallbackMinimaxVoice { - /** - * This is the model that will be used. Options are 'speech-02-hd' and 'speech-02-turbo'. - * speech-02-hd is optimized for high-fidelity applications like voiceovers and audiobooks. - * speech-02-turbo is designed for real-time applications with low latency. - * - * @default "speech-02-turbo" - */ - export type Model = "speech-02-hd" | "speech-02-turbo" | "speech-2.5-turbo-preview"; - export const Model = { - Speech02Hd: "speech-02-hd", - Speech02Turbo: "speech-02-turbo", - Speech25TurboPreview: "speech-2.5-turbo-preview", - } as const; - /** - * The region for Minimax API. Defaults to "worldwide". - */ - export type Region = "worldwide" | "china"; - export const Region = { - Worldwide: "worldwide", - China: "china", - } as const; - /** - * Language hint for MiniMax T2A. Example: yue (Cantonese), zh (Chinese), en (English). - */ - export type LanguageBoost = - | "Chinese" - | "Chinese,Yue" - | "English" - | "Arabic" - | "Russian" - | "Spanish" - | "French" - | "Portuguese" - | "German" - | "Turkish" - | "Dutch" - | "Ukrainian" - | "Vietnamese" - | "Indonesian" - | "Japanese" - | "Italian" - | "Korean" - | "Thai" - | "Polish" - | "Romanian" - | "Greek" - | "Czech" - | "Finnish" - | "Hindi" - | "Bulgarian" - | "Danish" - | "Hebrew" - | "Malay" - | "Persian" - | "Slovak" - | "Swedish" - | "Croatian" - | "Filipino" - | "Hungarian" - | "Norwegian" - | "Slovenian" - | "Catalan" - | "Nynorsk" - | "Tamil" - | "Afrikaans" - | "auto"; - export const LanguageBoost = { - Chinese: "Chinese", - ChineseYue: "Chinese,Yue", - English: "English", - Arabic: "Arabic", - Russian: "Russian", - Spanish: "Spanish", - French: "French", - Portuguese: "Portuguese", - German: "German", - Turkish: "Turkish", - Dutch: "Dutch", - Ukrainian: "Ukrainian", - Vietnamese: "Vietnamese", - Indonesian: "Indonesian", - Japanese: "Japanese", - Italian: "Italian", - Korean: "Korean", - Thai: "Thai", - Polish: "Polish", - Romanian: "Romanian", - Greek: "Greek", - Czech: "Czech", - Finnish: "Finnish", - Hindi: "Hindi", - Bulgarian: "Bulgarian", - Danish: "Danish", - Hebrew: "Hebrew", - Malay: "Malay", - Persian: "Persian", - Slovak: "Slovak", - Swedish: "Swedish", - Croatian: "Croatian", - Filipino: "Filipino", - Hungarian: "Hungarian", - Norwegian: "Norwegian", - Slovenian: "Slovenian", - Catalan: "Catalan", - Nynorsk: "Nynorsk", - Tamil: "Tamil", - Afrikaans: "Afrikaans", - Auto: "auto", - } as const; -} diff --git a/src/api/types/FallbackMinimaxVoiceLanguageBoost.ts b/src/api/types/FallbackMinimaxVoiceLanguageBoost.ts new file mode 100644 index 00000000..bf50cfc5 --- /dev/null +++ b/src/api/types/FallbackMinimaxVoiceLanguageBoost.ts @@ -0,0 +1,92 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Language hint for MiniMax T2A. Example: yue (Cantonese), zh (Chinese), en (English). + */ +export type FallbackMinimaxVoiceLanguageBoost = + | "Chinese" + | "Chinese,Yue" + | "English" + | "Arabic" + | "Russian" + | "Spanish" + | "French" + | "Portuguese" + | "German" + | "Turkish" + | "Dutch" + | "Ukrainian" + | "Vietnamese" + | "Indonesian" + | "Japanese" + | "Italian" + | "Korean" + | "Thai" + | "Polish" + | "Romanian" + | "Greek" + | "Czech" + | "Finnish" + | "Hindi" + | "Bulgarian" + | "Danish" + | "Hebrew" + | "Malay" + | "Persian" + | "Slovak" + | "Swedish" + | "Croatian" + | "Filipino" + | "Hungarian" + | "Norwegian" + | "Slovenian" + | "Catalan" + | "Nynorsk" + | "Tamil" + | "Afrikaans" + | "auto"; +export const FallbackMinimaxVoiceLanguageBoost = { + Chinese: "Chinese", + ChineseYue: "Chinese,Yue", + English: "English", + Arabic: "Arabic", + Russian: "Russian", + Spanish: "Spanish", + French: "French", + Portuguese: "Portuguese", + German: "German", + Turkish: "Turkish", + Dutch: "Dutch", + Ukrainian: "Ukrainian", + Vietnamese: "Vietnamese", + Indonesian: "Indonesian", + Japanese: "Japanese", + Italian: "Italian", + Korean: "Korean", + Thai: "Thai", + Polish: "Polish", + Romanian: "Romanian", + Greek: "Greek", + Czech: "Czech", + Finnish: "Finnish", + Hindi: "Hindi", + Bulgarian: "Bulgarian", + Danish: "Danish", + Hebrew: "Hebrew", + Malay: "Malay", + Persian: "Persian", + Slovak: "Slovak", + Swedish: "Swedish", + Croatian: "Croatian", + Filipino: "Filipino", + Hungarian: "Hungarian", + Norwegian: "Norwegian", + Slovenian: "Slovenian", + Catalan: "Catalan", + Nynorsk: "Nynorsk", + Tamil: "Tamil", + Afrikaans: "Afrikaans", + Auto: "auto", +} as const; diff --git a/src/api/types/FallbackMinimaxVoiceModel.ts b/src/api/types/FallbackMinimaxVoiceModel.ts new file mode 100644 index 00000000..8421a0c0 --- /dev/null +++ b/src/api/types/FallbackMinimaxVoiceModel.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the model that will be used. Options are 'speech-02-hd' and 'speech-02-turbo'. + * speech-02-hd is optimized for high-fidelity applications like voiceovers and audiobooks. + * speech-02-turbo is designed for real-time applications with low latency. + * + * @default "speech-02-turbo" + */ +export type FallbackMinimaxVoiceModel = "speech-02-hd" | "speech-02-turbo" | "speech-2.5-turbo-preview"; +export const FallbackMinimaxVoiceModel = { + Speech02Hd: "speech-02-hd", + Speech02Turbo: "speech-02-turbo", + Speech25TurboPreview: "speech-2.5-turbo-preview", +} as const; diff --git a/src/api/types/FallbackMinimaxVoiceRegion.ts b/src/api/types/FallbackMinimaxVoiceRegion.ts new file mode 100644 index 00000000..4f52526a --- /dev/null +++ b/src/api/types/FallbackMinimaxVoiceRegion.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * The region for Minimax API. Defaults to "worldwide". + */ +export type FallbackMinimaxVoiceRegion = "worldwide" | "china"; +export const FallbackMinimaxVoiceRegion = { + Worldwide: "worldwide", + China: "china", +} as const; diff --git a/src/api/types/FallbackNeuphonicVoice.ts b/src/api/types/FallbackNeuphonicVoice.ts index 9a3d603d..ec81493c 100644 --- a/src/api/types/FallbackNeuphonicVoice.ts +++ b/src/api/types/FallbackNeuphonicVoice.ts @@ -12,7 +12,7 @@ export interface FallbackNeuphonicVoice { /** This is the provider-specific ID that will be used. */ voiceId: string; /** This is the model that will be used. Defaults to 'neu_fast' if not specified. */ - model?: FallbackNeuphonicVoice.Model; + model?: Vapi.FallbackNeuphonicVoiceModel; /** This is the language (ISO 639-1) that is enforced for the model. */ language: Record; /** This is the speed multiplier that will be used. */ @@ -20,14 +20,3 @@ export interface FallbackNeuphonicVoice { /** This is the plan for chunking the model output before it is sent to the voice provider. */ chunkPlan?: Vapi.ChunkPlan; } - -export namespace FallbackNeuphonicVoice { - /** - * This is the model that will be used. Defaults to 'neu_fast' if not specified. - */ - export type Model = "neu_hq" | "neu_fast"; - export const Model = { - NeuHq: "neu_hq", - NeuFast: "neu_fast", - } as const; -} diff --git a/src/api/types/FallbackNeuphonicVoiceModel.ts b/src/api/types/FallbackNeuphonicVoiceModel.ts new file mode 100644 index 00000000..a2c40da7 --- /dev/null +++ b/src/api/types/FallbackNeuphonicVoiceModel.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the model that will be used. Defaults to 'neu_fast' if not specified. + */ +export type FallbackNeuphonicVoiceModel = "neu_hq" | "neu_fast"; +export const FallbackNeuphonicVoiceModel = { + NeuHq: "neu_hq", + NeuFast: "neu_fast", +} as const; diff --git a/src/api/types/FallbackOpenAiTranscriber.ts b/src/api/types/FallbackOpenAiTranscriber.ts index 5c57e0cb..30f303a3 100644 --- a/src/api/types/FallbackOpenAiTranscriber.ts +++ b/src/api/types/FallbackOpenAiTranscriber.ts @@ -2,142 +2,13 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface FallbackOpenAiTranscriber { /** This is the transcription provider that will be used. */ provider: "openai"; /** This is the model that will be used for the transcription. */ - model: FallbackOpenAiTranscriber.Model; + model: Vapi.FallbackOpenAiTranscriberModel; /** This is the language that will be set for the transcription. */ - language?: FallbackOpenAiTranscriber.Language; -} - -export namespace FallbackOpenAiTranscriber { - /** - * This is the model that will be used for the transcription. - */ - export type Model = "gpt-4o-transcribe" | "gpt-4o-mini-transcribe"; - export const Model = { - Gpt4OTranscribe: "gpt-4o-transcribe", - Gpt4OMiniTranscribe: "gpt-4o-mini-transcribe", - } as const; - /** - * This is the language that will be set for the transcription. - */ - export type Language = - | "af" - | "ar" - | "hy" - | "az" - | "be" - | "bs" - | "bg" - | "ca" - | "zh" - | "hr" - | "cs" - | "da" - | "nl" - | "en" - | "et" - | "fi" - | "fr" - | "gl" - | "de" - | "el" - | "he" - | "hi" - | "hu" - | "is" - | "id" - | "it" - | "ja" - | "kn" - | "kk" - | "ko" - | "lv" - | "lt" - | "mk" - | "ms" - | "mr" - | "mi" - | "ne" - | "no" - | "fa" - | "pl" - | "pt" - | "ro" - | "ru" - | "sr" - | "sk" - | "sl" - | "es" - | "sw" - | "sv" - | "tl" - | "ta" - | "th" - | "tr" - | "uk" - | "ur" - | "vi" - | "cy"; - export const Language = { - Af: "af", - Ar: "ar", - Hy: "hy", - Az: "az", - Be: "be", - Bs: "bs", - Bg: "bg", - Ca: "ca", - Zh: "zh", - Hr: "hr", - Cs: "cs", - Da: "da", - Nl: "nl", - En: "en", - Et: "et", - Fi: "fi", - Fr: "fr", - Gl: "gl", - De: "de", - El: "el", - He: "he", - Hi: "hi", - Hu: "hu", - Is: "is", - Id: "id", - It: "it", - Ja: "ja", - Kn: "kn", - Kk: "kk", - Ko: "ko", - Lv: "lv", - Lt: "lt", - Mk: "mk", - Ms: "ms", - Mr: "mr", - Mi: "mi", - Ne: "ne", - No: "no", - Fa: "fa", - Pl: "pl", - Pt: "pt", - Ro: "ro", - Ru: "ru", - Sr: "sr", - Sk: "sk", - Sl: "sl", - Es: "es", - Sw: "sw", - Sv: "sv", - Tl: "tl", - Ta: "ta", - Th: "th", - Tr: "tr", - Uk: "uk", - Ur: "ur", - Vi: "vi", - Cy: "cy", - } as const; + language?: Vapi.FallbackOpenAiTranscriberLanguage; } diff --git a/src/api/types/FallbackOpenAiTranscriberLanguage.ts b/src/api/types/FallbackOpenAiTranscriberLanguage.ts new file mode 100644 index 00000000..a7d78d3c --- /dev/null +++ b/src/api/types/FallbackOpenAiTranscriberLanguage.ts @@ -0,0 +1,124 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the language that will be set for the transcription. + */ +export type FallbackOpenAiTranscriberLanguage = + | "af" + | "ar" + | "hy" + | "az" + | "be" + | "bs" + | "bg" + | "ca" + | "zh" + | "hr" + | "cs" + | "da" + | "nl" + | "en" + | "et" + | "fi" + | "fr" + | "gl" + | "de" + | "el" + | "he" + | "hi" + | "hu" + | "is" + | "id" + | "it" + | "ja" + | "kn" + | "kk" + | "ko" + | "lv" + | "lt" + | "mk" + | "ms" + | "mr" + | "mi" + | "ne" + | "no" + | "fa" + | "pl" + | "pt" + | "ro" + | "ru" + | "sr" + | "sk" + | "sl" + | "es" + | "sw" + | "sv" + | "tl" + | "ta" + | "th" + | "tr" + | "uk" + | "ur" + | "vi" + | "cy"; +export const FallbackOpenAiTranscriberLanguage = { + Af: "af", + Ar: "ar", + Hy: "hy", + Az: "az", + Be: "be", + Bs: "bs", + Bg: "bg", + Ca: "ca", + Zh: "zh", + Hr: "hr", + Cs: "cs", + Da: "da", + Nl: "nl", + En: "en", + Et: "et", + Fi: "fi", + Fr: "fr", + Gl: "gl", + De: "de", + El: "el", + He: "he", + Hi: "hi", + Hu: "hu", + Is: "is", + Id: "id", + It: "it", + Ja: "ja", + Kn: "kn", + Kk: "kk", + Ko: "ko", + Lv: "lv", + Lt: "lt", + Mk: "mk", + Ms: "ms", + Mr: "mr", + Mi: "mi", + Ne: "ne", + No: "no", + Fa: "fa", + Pl: "pl", + Pt: "pt", + Ro: "ro", + Ru: "ru", + Sr: "sr", + Sk: "sk", + Sl: "sl", + Es: "es", + Sw: "sw", + Sv: "sv", + Tl: "tl", + Ta: "ta", + Th: "th", + Tr: "tr", + Uk: "uk", + Ur: "ur", + Vi: "vi", + Cy: "cy", +} as const; diff --git a/src/api/types/FallbackOpenAiTranscriberModel.ts b/src/api/types/FallbackOpenAiTranscriberModel.ts new file mode 100644 index 00000000..f3e9bd51 --- /dev/null +++ b/src/api/types/FallbackOpenAiTranscriberModel.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the model that will be used for the transcription. + */ +export type FallbackOpenAiTranscriberModel = "gpt-4o-transcribe" | "gpt-4o-mini-transcribe"; +export const FallbackOpenAiTranscriberModel = { + Gpt4OTranscribe: "gpt-4o-transcribe", + Gpt4OMiniTranscribe: "gpt-4o-mini-transcribe", +} as const; diff --git a/src/api/types/FallbackOpenAiVoice.ts b/src/api/types/FallbackOpenAiVoice.ts index 01ba118e..9978386c 100644 --- a/src/api/types/FallbackOpenAiVoice.ts +++ b/src/api/types/FallbackOpenAiVoice.ts @@ -13,9 +13,9 @@ export interface FallbackOpenAiVoice { * This is the provider-specific ID that will be used. * Please note that ash, ballad, coral, sage, and verse may only be used with realtime models. */ - voiceId: FallbackOpenAiVoice.VoiceId; + voiceId: Vapi.FallbackOpenAiVoiceId; /** This is the model that will be used for text-to-speech. */ - model?: FallbackOpenAiVoice.Model; + model?: Vapi.FallbackOpenAiVoiceModel; /** * This is a prompt that allows you to control the voice of your generated audio. * Does not work with 'tts-1' or 'tts-1-hd' models. @@ -26,20 +26,3 @@ export interface FallbackOpenAiVoice { /** This is the plan for chunking the model output before it is sent to the voice provider. */ chunkPlan?: Vapi.ChunkPlan; } - -export namespace FallbackOpenAiVoice { - /** - * This is the provider-specific ID that will be used. - * Please note that ash, ballad, coral, sage, and verse may only be used with realtime models. - */ - export type VoiceId = ("alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer" | "marin" | "cedar") | string; - /** - * This is the model that will be used for text-to-speech. - */ - export type Model = "tts-1" | "tts-1-hd" | "gpt-4o-mini-tts"; - export const Model = { - Tts1: "tts-1", - Tts1Hd: "tts-1-hd", - Gpt4OMiniTts: "gpt-4o-mini-tts", - } as const; -} diff --git a/src/api/types/FallbackOpenAiVoiceId.ts b/src/api/types/FallbackOpenAiVoiceId.ts new file mode 100644 index 00000000..4e4d35b2 --- /dev/null +++ b/src/api/types/FallbackOpenAiVoiceId.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the provider-specific ID that will be used. + * Please note that ash, ballad, coral, sage, and verse may only be used with realtime models. + */ +export type FallbackOpenAiVoiceId = Vapi.FallbackOpenAiVoiceIdEnum | string; diff --git a/src/api/types/FallbackOpenAiVoiceIdEnum.ts b/src/api/types/FallbackOpenAiVoiceIdEnum.ts new file mode 100644 index 00000000..66e5bc30 --- /dev/null +++ b/src/api/types/FallbackOpenAiVoiceIdEnum.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type FallbackOpenAiVoiceIdEnum = "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer" | "marin" | "cedar"; +export const FallbackOpenAiVoiceIdEnum = { + Alloy: "alloy", + Echo: "echo", + Fable: "fable", + Onyx: "onyx", + Nova: "nova", + Shimmer: "shimmer", + Marin: "marin", + Cedar: "cedar", +} as const; diff --git a/src/api/types/FallbackOpenAiVoiceModel.ts b/src/api/types/FallbackOpenAiVoiceModel.ts new file mode 100644 index 00000000..8713e91e --- /dev/null +++ b/src/api/types/FallbackOpenAiVoiceModel.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the model that will be used for text-to-speech. + */ +export type FallbackOpenAiVoiceModel = "tts-1" | "tts-1-hd" | "gpt-4o-mini-tts"; +export const FallbackOpenAiVoiceModel = { + Tts1: "tts-1", + Tts1Hd: "tts-1-hd", + Gpt4OMiniTts: "gpt-4o-mini-tts", +} as const; diff --git a/src/api/types/FallbackPlan.ts b/src/api/types/FallbackPlan.ts index 7ddd67d0..e04ade50 100644 --- a/src/api/types/FallbackPlan.ts +++ b/src/api/types/FallbackPlan.ts @@ -6,29 +6,5 @@ import * as Vapi from "../index.js"; export interface FallbackPlan { /** This is the list of voices to fallback to in the event that the primary voice provider fails. */ - voices: FallbackPlan.Voices.Item[]; -} - -export namespace FallbackPlan { - export type Voices = Voices.Item[]; - - export namespace Voices { - export type Item = - | Vapi.FallbackAzureVoice - | Vapi.FallbackCartesiaVoice - | Vapi.FallbackHumeVoice - | Vapi.FallbackCustomVoice - | Vapi.FallbackDeepgramVoice - | Vapi.FallbackElevenLabsVoice - | Vapi.FallbackVapiVoice - | Vapi.FallbackLmntVoice - | Vapi.FallbackOpenAiVoice - | Vapi.FallbackPlayHtVoice - | Vapi.FallbackRimeAiVoice - | Vapi.FallbackSmallestAiVoice - | Vapi.FallbackTavusVoice - | Vapi.FallbackNeuphonicVoice - | Vapi.FallbackSesameVoice - | Vapi.FallbackInworldVoice; - } + voices: Vapi.FallbackPlanVoicesItem[]; } diff --git a/src/api/types/FallbackPlanVoicesItem.ts b/src/api/types/FallbackPlanVoicesItem.ts new file mode 100644 index 00000000..69c9dac0 --- /dev/null +++ b/src/api/types/FallbackPlanVoicesItem.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type FallbackPlanVoicesItem = + | Vapi.FallbackAzureVoice + | Vapi.FallbackCartesiaVoice + | Vapi.FallbackHumeVoice + | Vapi.FallbackCustomVoice + | Vapi.FallbackDeepgramVoice + | Vapi.FallbackElevenLabsVoice + | Vapi.FallbackVapiVoice + | Vapi.FallbackLmntVoice + | Vapi.FallbackOpenAiVoice + | Vapi.FallbackPlayHtVoice + | Vapi.FallbackRimeAiVoice + | Vapi.FallbackSmallestAiVoice + | Vapi.FallbackTavusVoice + | Vapi.FallbackNeuphonicVoice + | Vapi.FallbackSesameVoice + | Vapi.FallbackInworldVoice; diff --git a/src/api/types/FallbackPlayHtVoice.ts b/src/api/types/FallbackPlayHtVoice.ts index 49d75d06..afbd1bbe 100644 --- a/src/api/types/FallbackPlayHtVoice.ts +++ b/src/api/types/FallbackPlayHtVoice.ts @@ -10,13 +10,13 @@ export interface FallbackPlayHtVoice { /** This is the voice provider that will be used. */ provider: "playht"; /** This is the provider-specific ID that will be used. */ - voiceId: FallbackPlayHtVoice.VoiceId; + voiceId: Vapi.FallbackPlayHtVoiceId; /** This is the speed multiplier that will be used. */ speed?: number; /** A floating point number between 0, exclusive, and 2, inclusive. If equal to null or not provided, the model's default temperature will be used. The temperature parameter controls variance. Lower temperatures result in more predictable results, higher temperatures allow each run to vary more, so the voice may sound less like the baseline voice. */ temperature?: number; /** An emotion to be applied to the speech. */ - emotion?: FallbackPlayHtVoice.Emotion; + emotion?: Vapi.FallbackPlayHtVoiceEmotion; /** A number between 1 and 6. Use lower numbers to reduce how unique your chosen voice will be compared to other voices. */ voiceGuidance?: number; /** A number between 1 and 30. Use lower numbers to to reduce how strong your chosen emotion will be. Higher numbers will create a very emotional performance. */ @@ -24,138 +24,9 @@ export interface FallbackPlayHtVoice { /** A number between 1 and 2. This number influences how closely the generated speech adheres to the input text. Use lower values to create more fluid speech, but with a higher chance of deviating from the input text. Higher numbers will make the generated speech more accurate to the input text, ensuring that the words spoken align closely with the provided text. */ textGuidance?: number; /** Playht voice model/engine to use. */ - model?: FallbackPlayHtVoice.Model; + model?: Vapi.FallbackPlayHtVoiceModel; /** The language to use for the speech. */ - language?: FallbackPlayHtVoice.Language; + language?: Vapi.FallbackPlayHtVoiceLanguage; /** This is the plan for chunking the model output before it is sent to the voice provider. */ chunkPlan?: Vapi.ChunkPlan; } - -export namespace FallbackPlayHtVoice { - /** - * This is the provider-specific ID that will be used. - */ - export type VoiceId = - | ("jennifer" | "melissa" | "will" | "chris" | "matt" | "jack" | "ruby" | "davis" | "donna" | "michael") - | string; - /** - * An emotion to be applied to the speech. - */ - export type Emotion = - | "female_happy" - | "female_sad" - | "female_angry" - | "female_fearful" - | "female_disgust" - | "female_surprised" - | "male_happy" - | "male_sad" - | "male_angry" - | "male_fearful" - | "male_disgust" - | "male_surprised"; - export const Emotion = { - FemaleHappy: "female_happy", - FemaleSad: "female_sad", - FemaleAngry: "female_angry", - FemaleFearful: "female_fearful", - FemaleDisgust: "female_disgust", - FemaleSurprised: "female_surprised", - MaleHappy: "male_happy", - MaleSad: "male_sad", - MaleAngry: "male_angry", - MaleFearful: "male_fearful", - MaleDisgust: "male_disgust", - MaleSurprised: "male_surprised", - } as const; - /** - * Playht voice model/engine to use. - */ - export type Model = "PlayHT2.0" | "PlayHT2.0-turbo" | "Play3.0-mini" | "PlayDialog"; - export const Model = { - PlayHt20: "PlayHT2.0", - PlayHt20Turbo: "PlayHT2.0-turbo", - Play30Mini: "Play3.0-mini", - PlayDialog: "PlayDialog", - } as const; - /** - * The language to use for the speech. - */ - export type Language = - | "afrikaans" - | "albanian" - | "amharic" - | "arabic" - | "bengali" - | "bulgarian" - | "catalan" - | "croatian" - | "czech" - | "danish" - | "dutch" - | "english" - | "french" - | "galician" - | "german" - | "greek" - | "hebrew" - | "hindi" - | "hungarian" - | "indonesian" - | "italian" - | "japanese" - | "korean" - | "malay" - | "mandarin" - | "polish" - | "portuguese" - | "russian" - | "serbian" - | "spanish" - | "swedish" - | "tagalog" - | "thai" - | "turkish" - | "ukrainian" - | "urdu" - | "xhosa"; - export const Language = { - Afrikaans: "afrikaans", - Albanian: "albanian", - Amharic: "amharic", - Arabic: "arabic", - Bengali: "bengali", - Bulgarian: "bulgarian", - Catalan: "catalan", - Croatian: "croatian", - Czech: "czech", - Danish: "danish", - Dutch: "dutch", - English: "english", - French: "french", - Galician: "galician", - German: "german", - Greek: "greek", - Hebrew: "hebrew", - Hindi: "hindi", - Hungarian: "hungarian", - Indonesian: "indonesian", - Italian: "italian", - Japanese: "japanese", - Korean: "korean", - Malay: "malay", - Mandarin: "mandarin", - Polish: "polish", - Portuguese: "portuguese", - Russian: "russian", - Serbian: "serbian", - Spanish: "spanish", - Swedish: "swedish", - Tagalog: "tagalog", - Thai: "thai", - Turkish: "turkish", - Ukrainian: "ukrainian", - Urdu: "urdu", - Xhosa: "xhosa", - } as const; -} diff --git a/src/api/types/FallbackPlayHtVoiceEmotion.ts b/src/api/types/FallbackPlayHtVoiceEmotion.ts new file mode 100644 index 00000000..e70e5bab --- /dev/null +++ b/src/api/types/FallbackPlayHtVoiceEmotion.ts @@ -0,0 +1,34 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * An emotion to be applied to the speech. + */ +export type FallbackPlayHtVoiceEmotion = + | "female_happy" + | "female_sad" + | "female_angry" + | "female_fearful" + | "female_disgust" + | "female_surprised" + | "male_happy" + | "male_sad" + | "male_angry" + | "male_fearful" + | "male_disgust" + | "male_surprised"; +export const FallbackPlayHtVoiceEmotion = { + FemaleHappy: "female_happy", + FemaleSad: "female_sad", + FemaleAngry: "female_angry", + FemaleFearful: "female_fearful", + FemaleDisgust: "female_disgust", + FemaleSurprised: "female_surprised", + MaleHappy: "male_happy", + MaleSad: "male_sad", + MaleAngry: "male_angry", + MaleFearful: "male_fearful", + MaleDisgust: "male_disgust", + MaleSurprised: "male_surprised", +} as const; diff --git a/src/api/types/FallbackPlayHtVoiceId.ts b/src/api/types/FallbackPlayHtVoiceId.ts new file mode 100644 index 00000000..a23db31c --- /dev/null +++ b/src/api/types/FallbackPlayHtVoiceId.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the provider-specific ID that will be used. + */ +export type FallbackPlayHtVoiceId = Vapi.FallbackPlayHtVoiceIdEnum | string; diff --git a/src/api/types/FallbackPlayHtVoiceIdEnum.ts b/src/api/types/FallbackPlayHtVoiceIdEnum.ts new file mode 100644 index 00000000..721aa965 --- /dev/null +++ b/src/api/types/FallbackPlayHtVoiceIdEnum.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type FallbackPlayHtVoiceIdEnum = + | "jennifer" + | "melissa" + | "will" + | "chris" + | "matt" + | "jack" + | "ruby" + | "davis" + | "donna" + | "michael"; +export const FallbackPlayHtVoiceIdEnum = { + Jennifer: "jennifer", + Melissa: "melissa", + Will: "will", + Chris: "chris", + Matt: "matt", + Jack: "jack", + Ruby: "ruby", + Davis: "davis", + Donna: "donna", + Michael: "michael", +} as const; diff --git a/src/api/types/FallbackPlayHtVoiceLanguage.ts b/src/api/types/FallbackPlayHtVoiceLanguage.ts new file mode 100644 index 00000000..de28a264 --- /dev/null +++ b/src/api/types/FallbackPlayHtVoiceLanguage.ts @@ -0,0 +1,84 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * The language to use for the speech. + */ +export type FallbackPlayHtVoiceLanguage = + | "afrikaans" + | "albanian" + | "amharic" + | "arabic" + | "bengali" + | "bulgarian" + | "catalan" + | "croatian" + | "czech" + | "danish" + | "dutch" + | "english" + | "french" + | "galician" + | "german" + | "greek" + | "hebrew" + | "hindi" + | "hungarian" + | "indonesian" + | "italian" + | "japanese" + | "korean" + | "malay" + | "mandarin" + | "polish" + | "portuguese" + | "russian" + | "serbian" + | "spanish" + | "swedish" + | "tagalog" + | "thai" + | "turkish" + | "ukrainian" + | "urdu" + | "xhosa"; +export const FallbackPlayHtVoiceLanguage = { + Afrikaans: "afrikaans", + Albanian: "albanian", + Amharic: "amharic", + Arabic: "arabic", + Bengali: "bengali", + Bulgarian: "bulgarian", + Catalan: "catalan", + Croatian: "croatian", + Czech: "czech", + Danish: "danish", + Dutch: "dutch", + English: "english", + French: "french", + Galician: "galician", + German: "german", + Greek: "greek", + Hebrew: "hebrew", + Hindi: "hindi", + Hungarian: "hungarian", + Indonesian: "indonesian", + Italian: "italian", + Japanese: "japanese", + Korean: "korean", + Malay: "malay", + Mandarin: "mandarin", + Polish: "polish", + Portuguese: "portuguese", + Russian: "russian", + Serbian: "serbian", + Spanish: "spanish", + Swedish: "swedish", + Tagalog: "tagalog", + Thai: "thai", + Turkish: "turkish", + Ukrainian: "ukrainian", + Urdu: "urdu", + Xhosa: "xhosa", +} as const; diff --git a/src/api/types/FallbackPlayHtVoiceModel.ts b/src/api/types/FallbackPlayHtVoiceModel.ts new file mode 100644 index 00000000..e0018c4e --- /dev/null +++ b/src/api/types/FallbackPlayHtVoiceModel.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Playht voice model/engine to use. + */ +export type FallbackPlayHtVoiceModel = "PlayHT2.0" | "PlayHT2.0-turbo" | "Play3.0-mini" | "PlayDialog"; +export const FallbackPlayHtVoiceModel = { + PlayHt20: "PlayHT2.0", + PlayHt20Turbo: "PlayHT2.0-turbo", + Play30Mini: "Play3.0-mini", + PlayDialog: "PlayDialog", +} as const; diff --git a/src/api/types/FallbackRimeAiVoice.ts b/src/api/types/FallbackRimeAiVoice.ts index b6dd0d11..beeb95cd 100644 --- a/src/api/types/FallbackRimeAiVoice.ts +++ b/src/api/types/FallbackRimeAiVoice.ts @@ -10,9 +10,9 @@ export interface FallbackRimeAiVoice { /** This is the voice provider that will be used. */ provider: "rime-ai"; /** This is the provider-specific ID that will be used. */ - voiceId: FallbackRimeAiVoice.VoiceId; + voiceId: Vapi.FallbackRimeAiVoiceId; /** This is the model that will be used. Defaults to 'arcana' when not specified. */ - model?: FallbackRimeAiVoice.Model; + model?: Vapi.FallbackRimeAiVoiceModel; /** This is the speed multiplier that will be used. */ speed?: number; /** This is a flag that controls whether to add slight pauses using angle brackets. Example: "Hi. <200> I'd love to have a conversation with you." adds a 200ms pause between the first and second sentences. */ @@ -26,113 +26,3 @@ export interface FallbackRimeAiVoice { /** This is the plan for chunking the model output before it is sent to the voice provider. */ chunkPlan?: Vapi.ChunkPlan; } - -export namespace FallbackRimeAiVoice { - /** - * This is the provider-specific ID that will be used. - */ - export type VoiceId = - | ( - | "abbie" - | "allison" - | "ally" - | "alona" - | "amber" - | "ana" - | "antoine" - | "armon" - | "brenda" - | "brittany" - | "carol" - | "colin" - | "courtney" - | "elena" - | "elliot" - | "eva" - | "geoff" - | "gerald" - | "hank" - | "helen" - | "hera" - | "jen" - | "joe" - | "joy" - | "juan" - | "kendra" - | "kendrick" - | "kenneth" - | "kevin" - | "kris" - | "linda" - | "madison" - | "marge" - | "marina" - | "marissa" - | "marta" - | "maya" - | "nicholas" - | "nyles" - | "phil" - | "reba" - | "rex" - | "rick" - | "ritu" - | "rob" - | "rodney" - | "rohan" - | "rosco" - | "samantha" - | "sandy" - | "selena" - | "seth" - | "sharon" - | "stan" - | "tamra" - | "tanya" - | "tibur" - | "tj" - | "tyler" - | "viv" - | "yadira" - | "marsh" - | "bayou" - | "creek" - | "brook" - | "flower" - | "spore" - | "glacier" - | "gulch" - | "alpine" - | "cove" - | "lagoon" - | "tundra" - | "steppe" - | "mesa" - | "grove" - | "rainforest" - | "moraine" - | "wildflower" - | "peak" - | "boulder" - | "gypsum" - | "zest" - | "luna" - | "celeste" - | "orion" - | "ursa" - | "astra" - | "esther" - | "estelle" - | "andromeda" - ) - | string; - /** - * This is the model that will be used. Defaults to 'arcana' when not specified. - */ - export type Model = "arcana" | "mistv2" | "mist"; - export const Model = { - Arcana: "arcana", - Mistv2: "mistv2", - Mist: "mist", - } as const; -} diff --git a/src/api/types/FallbackRimeAiVoiceId.ts b/src/api/types/FallbackRimeAiVoiceId.ts new file mode 100644 index 00000000..6daac420 --- /dev/null +++ b/src/api/types/FallbackRimeAiVoiceId.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the provider-specific ID that will be used. + */ +export type FallbackRimeAiVoiceId = Vapi.FallbackRimeAiVoiceIdEnum | string; diff --git a/src/api/types/FallbackRimeAiVoiceIdEnum.ts b/src/api/types/FallbackRimeAiVoiceIdEnum.ts new file mode 100644 index 00000000..62f3e89d --- /dev/null +++ b/src/api/types/FallbackRimeAiVoiceIdEnum.ts @@ -0,0 +1,189 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type FallbackRimeAiVoiceIdEnum = + | "abbie" + | "allison" + | "ally" + | "alona" + | "amber" + | "ana" + | "antoine" + | "armon" + | "brenda" + | "brittany" + | "carol" + | "colin" + | "courtney" + | "elena" + | "elliot" + | "eva" + | "geoff" + | "gerald" + | "hank" + | "helen" + | "hera" + | "jen" + | "joe" + | "joy" + | "juan" + | "kendra" + | "kendrick" + | "kenneth" + | "kevin" + | "kris" + | "linda" + | "madison" + | "marge" + | "marina" + | "marissa" + | "marta" + | "maya" + | "nicholas" + | "nyles" + | "phil" + | "reba" + | "rex" + | "rick" + | "ritu" + | "rob" + | "rodney" + | "rohan" + | "rosco" + | "samantha" + | "sandy" + | "selena" + | "seth" + | "sharon" + | "stan" + | "tamra" + | "tanya" + | "tibur" + | "tj" + | "tyler" + | "viv" + | "yadira" + | "marsh" + | "bayou" + | "creek" + | "brook" + | "flower" + | "spore" + | "glacier" + | "gulch" + | "alpine" + | "cove" + | "lagoon" + | "tundra" + | "steppe" + | "mesa" + | "grove" + | "rainforest" + | "moraine" + | "wildflower" + | "peak" + | "boulder" + | "gypsum" + | "zest" + | "luna" + | "celeste" + | "orion" + | "ursa" + | "astra" + | "esther" + | "estelle" + | "andromeda"; +export const FallbackRimeAiVoiceIdEnum = { + Abbie: "abbie", + Allison: "allison", + Ally: "ally", + Alona: "alona", + Amber: "amber", + Ana: "ana", + Antoine: "antoine", + Armon: "armon", + Brenda: "brenda", + Brittany: "brittany", + Carol: "carol", + Colin: "colin", + Courtney: "courtney", + Elena: "elena", + Elliot: "elliot", + Eva: "eva", + Geoff: "geoff", + Gerald: "gerald", + Hank: "hank", + Helen: "helen", + Hera: "hera", + Jen: "jen", + Joe: "joe", + Joy: "joy", + Juan: "juan", + Kendra: "kendra", + Kendrick: "kendrick", + Kenneth: "kenneth", + Kevin: "kevin", + Kris: "kris", + Linda: "linda", + Madison: "madison", + Marge: "marge", + Marina: "marina", + Marissa: "marissa", + Marta: "marta", + Maya: "maya", + Nicholas: "nicholas", + Nyles: "nyles", + Phil: "phil", + Reba: "reba", + Rex: "rex", + Rick: "rick", + Ritu: "ritu", + Rob: "rob", + Rodney: "rodney", + Rohan: "rohan", + Rosco: "rosco", + Samantha: "samantha", + Sandy: "sandy", + Selena: "selena", + Seth: "seth", + Sharon: "sharon", + Stan: "stan", + Tamra: "tamra", + Tanya: "tanya", + Tibur: "tibur", + Tj: "tj", + Tyler: "tyler", + Viv: "viv", + Yadira: "yadira", + Marsh: "marsh", + Bayou: "bayou", + Creek: "creek", + Brook: "brook", + Flower: "flower", + Spore: "spore", + Glacier: "glacier", + Gulch: "gulch", + Alpine: "alpine", + Cove: "cove", + Lagoon: "lagoon", + Tundra: "tundra", + Steppe: "steppe", + Mesa: "mesa", + Grove: "grove", + Rainforest: "rainforest", + Moraine: "moraine", + Wildflower: "wildflower", + Peak: "peak", + Boulder: "boulder", + Gypsum: "gypsum", + Zest: "zest", + Luna: "luna", + Celeste: "celeste", + Orion: "orion", + Ursa: "ursa", + Astra: "astra", + Esther: "esther", + Estelle: "estelle", + Andromeda: "andromeda", +} as const; diff --git a/src/api/types/FallbackRimeAiVoiceModel.ts b/src/api/types/FallbackRimeAiVoiceModel.ts new file mode 100644 index 00000000..6a47d0ed --- /dev/null +++ b/src/api/types/FallbackRimeAiVoiceModel.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the model that will be used. Defaults to 'arcana' when not specified. + */ +export type FallbackRimeAiVoiceModel = "arcana" | "mistv2" | "mist"; +export const FallbackRimeAiVoiceModel = { + Arcana: "arcana", + Mistv2: "mistv2", + Mist: "mist", +} as const; diff --git a/src/api/types/FallbackSmallestAiVoice.ts b/src/api/types/FallbackSmallestAiVoice.ts index dcc8a13e..d9c5e077 100644 --- a/src/api/types/FallbackSmallestAiVoice.ts +++ b/src/api/types/FallbackSmallestAiVoice.ts @@ -10,7 +10,7 @@ export interface FallbackSmallestAiVoice { /** This is the voice provider that will be used. */ provider: "smallest-ai"; /** This is the provider-specific ID that will be used. */ - voiceId: FallbackSmallestAiVoice.VoiceId; + voiceId: Vapi.FallbackSmallestAiVoiceId; /** Smallest AI voice model to use. Defaults to 'lightning' when not specified. */ model?: "lightning"; /** This is the speed multiplier that will be used. */ @@ -18,38 +18,3 @@ export interface FallbackSmallestAiVoice { /** This is the plan for chunking the model output before it is sent to the voice provider. */ chunkPlan?: Vapi.ChunkPlan; } - -export namespace FallbackSmallestAiVoice { - /** - * This is the provider-specific ID that will be used. - */ - export type VoiceId = - | ( - | "emily" - | "jasmine" - | "arman" - | "james" - | "mithali" - | "aravind" - | "raj" - | "diya" - | "raman" - | "ananya" - | "isha" - | "william" - | "aarav" - | "monika" - | "niharika" - | "deepika" - | "raghav" - | "kajal" - | "radhika" - | "mansi" - | "nisha" - | "saurabh" - | "pooja" - | "saina" - | "sanya" - ) - | string; -} diff --git a/src/api/types/FallbackSmallestAiVoiceId.ts b/src/api/types/FallbackSmallestAiVoiceId.ts new file mode 100644 index 00000000..2ded9c50 --- /dev/null +++ b/src/api/types/FallbackSmallestAiVoiceId.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the provider-specific ID that will be used. + */ +export type FallbackSmallestAiVoiceId = Vapi.FallbackSmallestAiVoiceIdEnum | string; diff --git a/src/api/types/FallbackSmallestAiVoiceIdEnum.ts b/src/api/types/FallbackSmallestAiVoiceIdEnum.ts new file mode 100644 index 00000000..74d508cc --- /dev/null +++ b/src/api/types/FallbackSmallestAiVoiceIdEnum.ts @@ -0,0 +1,57 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type FallbackSmallestAiVoiceIdEnum = + | "emily" + | "jasmine" + | "arman" + | "james" + | "mithali" + | "aravind" + | "raj" + | "diya" + | "raman" + | "ananya" + | "isha" + | "william" + | "aarav" + | "monika" + | "niharika" + | "deepika" + | "raghav" + | "kajal" + | "radhika" + | "mansi" + | "nisha" + | "saurabh" + | "pooja" + | "saina" + | "sanya"; +export const FallbackSmallestAiVoiceIdEnum = { + Emily: "emily", + Jasmine: "jasmine", + Arman: "arman", + James: "james", + Mithali: "mithali", + Aravind: "aravind", + Raj: "raj", + Diya: "diya", + Raman: "raman", + Ananya: "ananya", + Isha: "isha", + William: "william", + Aarav: "aarav", + Monika: "monika", + Niharika: "niharika", + Deepika: "deepika", + Raghav: "raghav", + Kajal: "kajal", + Radhika: "radhika", + Mansi: "mansi", + Nisha: "nisha", + Saurabh: "saurabh", + Pooja: "pooja", + Saina: "saina", + Sanya: "sanya", +} as const; diff --git a/src/api/types/FallbackSpeechmaticsTranscriber.ts b/src/api/types/FallbackSpeechmaticsTranscriber.ts index 92842a86..bbaa5f0d 100644 --- a/src/api/types/FallbackSpeechmaticsTranscriber.ts +++ b/src/api/types/FallbackSpeechmaticsTranscriber.ts @@ -9,19 +9,19 @@ export interface FallbackSpeechmaticsTranscriber { provider: "speechmatics"; /** This is the model that will be used for the transcription. */ model?: "default"; - language?: FallbackSpeechmaticsTranscriber.Language; + language?: Vapi.FallbackSpeechmaticsTranscriberLanguage; /** * This is the operating point for the transcription. Choose between `standard` for faster turnaround with strong accuracy or `enhanced` for highest accuracy when precision is critical. * * @default 'enhanced' */ - operatingPoint?: FallbackSpeechmaticsTranscriber.OperatingPoint; + operatingPoint?: Vapi.FallbackSpeechmaticsTranscriberOperatingPoint; /** * This is the region for the Speechmatics API. Choose between EU (Europe) and US (United States) regions for lower latency and data sovereignty compliance. * * @default 'eu' */ - region?: FallbackSpeechmaticsTranscriber.Region; + region?: Vapi.FallbackSpeechmaticsTranscriberRegion; /** * This enables speaker diarization, which identifies and separates speakers in the transcription. Essential for multi-speaker conversations and conference calls. * @@ -52,7 +52,7 @@ export interface FallbackSpeechmaticsTranscriber { * * @default 'written' */ - numeralStyle?: FallbackSpeechmaticsTranscriber.NumeralStyle; + numeralStyle?: Vapi.FallbackSpeechmaticsTranscriberNumeralStyle; /** * This enables detection of non-speech audio events like music, applause, and laughter. * @@ -90,151 +90,3 @@ export interface FallbackSpeechmaticsTranscriber { */ minimumSpeechDuration?: number; } - -export namespace FallbackSpeechmaticsTranscriber { - export type Language = - | "auto" - | "ar" - | "ba" - | "eu" - | "be" - | "bn" - | "bg" - | "yue" - | "ca" - | "hr" - | "cs" - | "da" - | "nl" - | "en" - | "eo" - | "et" - | "fi" - | "fr" - | "gl" - | "de" - | "el" - | "he" - | "hi" - | "hu" - | "id" - | "ia" - | "ga" - | "it" - | "ja" - | "ko" - | "lv" - | "lt" - | "ms" - | "mt" - | "cmn" - | "mr" - | "mn" - | "no" - | "fa" - | "pl" - | "pt" - | "ro" - | "ru" - | "sk" - | "sl" - | "es" - | "sw" - | "sv" - | "ta" - | "th" - | "tr" - | "uk" - | "ur" - | "ug" - | "vi" - | "cy"; - export const Language = { - Auto: "auto", - Ar: "ar", - Ba: "ba", - Eu: "eu", - Be: "be", - Bn: "bn", - Bg: "bg", - Yue: "yue", - Ca: "ca", - Hr: "hr", - Cs: "cs", - Da: "da", - Nl: "nl", - En: "en", - Eo: "eo", - Et: "et", - Fi: "fi", - Fr: "fr", - Gl: "gl", - De: "de", - El: "el", - He: "he", - Hi: "hi", - Hu: "hu", - Id: "id", - Ia: "ia", - Ga: "ga", - It: "it", - Ja: "ja", - Ko: "ko", - Lv: "lv", - Lt: "lt", - Ms: "ms", - Mt: "mt", - Cmn: "cmn", - Mr: "mr", - Mn: "mn", - No: "no", - Fa: "fa", - Pl: "pl", - Pt: "pt", - Ro: "ro", - Ru: "ru", - Sk: "sk", - Sl: "sl", - Es: "es", - Sw: "sw", - Sv: "sv", - Ta: "ta", - Th: "th", - Tr: "tr", - Uk: "uk", - Ur: "ur", - Ug: "ug", - Vi: "vi", - Cy: "cy", - } as const; - /** - * This is the operating point for the transcription. Choose between `standard` for faster turnaround with strong accuracy or `enhanced` for highest accuracy when precision is critical. - * - * @default 'enhanced' - */ - export type OperatingPoint = "standard" | "enhanced"; - export const OperatingPoint = { - Standard: "standard", - Enhanced: "enhanced", - } as const; - /** - * This is the region for the Speechmatics API. Choose between EU (Europe) and US (United States) regions for lower latency and data sovereignty compliance. - * - * @default 'eu' - */ - export type Region = "eu" | "us"; - export const Region = { - Eu: "eu", - Us: "us", - } as const; - /** - * This controls how numbers are formatted in the transcription output. - * - * @default 'written' - */ - export type NumeralStyle = "written" | "spoken"; - export const NumeralStyle = { - Written: "written", - Spoken: "spoken", - } as const; -} diff --git a/src/api/types/FallbackSpeechmaticsTranscriberLanguage.ts b/src/api/types/FallbackSpeechmaticsTranscriberLanguage.ts new file mode 100644 index 00000000..48999268 --- /dev/null +++ b/src/api/types/FallbackSpeechmaticsTranscriberLanguage.ts @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type FallbackSpeechmaticsTranscriberLanguage = + | "auto" + | "ar" + | "ba" + | "eu" + | "be" + | "bn" + | "bg" + | "yue" + | "ca" + | "hr" + | "cs" + | "da" + | "nl" + | "en" + | "eo" + | "et" + | "fi" + | "fr" + | "gl" + | "de" + | "el" + | "he" + | "hi" + | "hu" + | "id" + | "ia" + | "ga" + | "it" + | "ja" + | "ko" + | "lv" + | "lt" + | "ms" + | "mt" + | "cmn" + | "mr" + | "mn" + | "no" + | "fa" + | "pl" + | "pt" + | "ro" + | "ru" + | "sk" + | "sl" + | "es" + | "sw" + | "sv" + | "ta" + | "th" + | "tr" + | "uk" + | "ur" + | "ug" + | "vi" + | "cy"; +export const FallbackSpeechmaticsTranscriberLanguage = { + Auto: "auto", + Ar: "ar", + Ba: "ba", + Eu: "eu", + Be: "be", + Bn: "bn", + Bg: "bg", + Yue: "yue", + Ca: "ca", + Hr: "hr", + Cs: "cs", + Da: "da", + Nl: "nl", + En: "en", + Eo: "eo", + Et: "et", + Fi: "fi", + Fr: "fr", + Gl: "gl", + De: "de", + El: "el", + He: "he", + Hi: "hi", + Hu: "hu", + Id: "id", + Ia: "ia", + Ga: "ga", + It: "it", + Ja: "ja", + Ko: "ko", + Lv: "lv", + Lt: "lt", + Ms: "ms", + Mt: "mt", + Cmn: "cmn", + Mr: "mr", + Mn: "mn", + No: "no", + Fa: "fa", + Pl: "pl", + Pt: "pt", + Ro: "ro", + Ru: "ru", + Sk: "sk", + Sl: "sl", + Es: "es", + Sw: "sw", + Sv: "sv", + Ta: "ta", + Th: "th", + Tr: "tr", + Uk: "uk", + Ur: "ur", + Ug: "ug", + Vi: "vi", + Cy: "cy", +} as const; diff --git a/src/api/types/FallbackSpeechmaticsTranscriberNumeralStyle.ts b/src/api/types/FallbackSpeechmaticsTranscriberNumeralStyle.ts new file mode 100644 index 00000000..18599a9c --- /dev/null +++ b/src/api/types/FallbackSpeechmaticsTranscriberNumeralStyle.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This controls how numbers are formatted in the transcription output. + * + * @default 'written' + */ +export type FallbackSpeechmaticsTranscriberNumeralStyle = "written" | "spoken"; +export const FallbackSpeechmaticsTranscriberNumeralStyle = { + Written: "written", + Spoken: "spoken", +} as const; diff --git a/src/api/types/FallbackSpeechmaticsTranscriberOperatingPoint.ts b/src/api/types/FallbackSpeechmaticsTranscriberOperatingPoint.ts new file mode 100644 index 00000000..1c22be87 --- /dev/null +++ b/src/api/types/FallbackSpeechmaticsTranscriberOperatingPoint.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the operating point for the transcription. Choose between `standard` for faster turnaround with strong accuracy or `enhanced` for highest accuracy when precision is critical. + * + * @default 'enhanced' + */ +export type FallbackSpeechmaticsTranscriberOperatingPoint = "standard" | "enhanced"; +export const FallbackSpeechmaticsTranscriberOperatingPoint = { + Standard: "standard", + Enhanced: "enhanced", +} as const; diff --git a/src/api/types/FallbackSpeechmaticsTranscriberRegion.ts b/src/api/types/FallbackSpeechmaticsTranscriberRegion.ts new file mode 100644 index 00000000..69d1a349 --- /dev/null +++ b/src/api/types/FallbackSpeechmaticsTranscriberRegion.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the region for the Speechmatics API. Choose between EU (Europe) and US (United States) regions for lower latency and data sovereignty compliance. + * + * @default 'eu' + */ +export type FallbackSpeechmaticsTranscriberRegion = "eu" | "us"; +export const FallbackSpeechmaticsTranscriberRegion = { + Eu: "eu", + Us: "us", +} as const; diff --git a/src/api/types/FallbackTalkscriberTranscriber.ts b/src/api/types/FallbackTalkscriberTranscriber.ts index 41d01c95..d0a588ea 100644 --- a/src/api/types/FallbackTalkscriberTranscriber.ts +++ b/src/api/types/FallbackTalkscriberTranscriber.ts @@ -2,220 +2,13 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface FallbackTalkscriberTranscriber { /** This is the transcription provider that will be used. */ provider: "talkscriber"; /** This is the model that will be used for the transcription. */ model?: "whisper"; /** This is the language that will be set for the transcription. The list of languages Whisper supports can be found here: https://github.com/openai/whisper/blob/main/whisper/tokenizer.py */ - language?: FallbackTalkscriberTranscriber.Language; -} - -export namespace FallbackTalkscriberTranscriber { - /** - * This is the language that will be set for the transcription. The list of languages Whisper supports can be found here: https://github.com/openai/whisper/blob/main/whisper/tokenizer.py - */ - export type Language = - | "en" - | "zh" - | "de" - | "es" - | "ru" - | "ko" - | "fr" - | "ja" - | "pt" - | "tr" - | "pl" - | "ca" - | "nl" - | "ar" - | "sv" - | "it" - | "id" - | "hi" - | "fi" - | "vi" - | "he" - | "uk" - | "el" - | "ms" - | "cs" - | "ro" - | "da" - | "hu" - | "ta" - | "no" - | "th" - | "ur" - | "hr" - | "bg" - | "lt" - | "la" - | "mi" - | "ml" - | "cy" - | "sk" - | "te" - | "fa" - | "lv" - | "bn" - | "sr" - | "az" - | "sl" - | "kn" - | "et" - | "mk" - | "br" - | "eu" - | "is" - | "hy" - | "ne" - | "mn" - | "bs" - | "kk" - | "sq" - | "sw" - | "gl" - | "mr" - | "pa" - | "si" - | "km" - | "sn" - | "yo" - | "so" - | "af" - | "oc" - | "ka" - | "be" - | "tg" - | "sd" - | "gu" - | "am" - | "yi" - | "lo" - | "uz" - | "fo" - | "ht" - | "ps" - | "tk" - | "nn" - | "mt" - | "sa" - | "lb" - | "my" - | "bo" - | "tl" - | "mg" - | "as" - | "tt" - | "haw" - | "ln" - | "ha" - | "ba" - | "jw" - | "su" - | "yue"; - export const Language = { - En: "en", - Zh: "zh", - De: "de", - Es: "es", - Ru: "ru", - Ko: "ko", - Fr: "fr", - Ja: "ja", - Pt: "pt", - Tr: "tr", - Pl: "pl", - Ca: "ca", - Nl: "nl", - Ar: "ar", - Sv: "sv", - It: "it", - Id: "id", - Hi: "hi", - Fi: "fi", - Vi: "vi", - He: "he", - Uk: "uk", - El: "el", - Ms: "ms", - Cs: "cs", - Ro: "ro", - Da: "da", - Hu: "hu", - Ta: "ta", - No: "no", - Th: "th", - Ur: "ur", - Hr: "hr", - Bg: "bg", - Lt: "lt", - La: "la", - Mi: "mi", - Ml: "ml", - Cy: "cy", - Sk: "sk", - Te: "te", - Fa: "fa", - Lv: "lv", - Bn: "bn", - Sr: "sr", - Az: "az", - Sl: "sl", - Kn: "kn", - Et: "et", - Mk: "mk", - Br: "br", - Eu: "eu", - Is: "is", - Hy: "hy", - Ne: "ne", - Mn: "mn", - Bs: "bs", - Kk: "kk", - Sq: "sq", - Sw: "sw", - Gl: "gl", - Mr: "mr", - Pa: "pa", - Si: "si", - Km: "km", - Sn: "sn", - Yo: "yo", - So: "so", - Af: "af", - Oc: "oc", - Ka: "ka", - Be: "be", - Tg: "tg", - Sd: "sd", - Gu: "gu", - Am: "am", - Yi: "yi", - Lo: "lo", - Uz: "uz", - Fo: "fo", - Ht: "ht", - Ps: "ps", - Tk: "tk", - Nn: "nn", - Mt: "mt", - Sa: "sa", - Lb: "lb", - My: "my", - Bo: "bo", - Tl: "tl", - Mg: "mg", - As: "as", - Tt: "tt", - Haw: "haw", - Ln: "ln", - Ha: "ha", - Ba: "ba", - Jw: "jw", - Su: "su", - Yue: "yue", - } as const; + language?: Vapi.FallbackTalkscriberTranscriberLanguage; } diff --git a/src/api/types/FallbackTalkscriberTranscriberLanguage.ts b/src/api/types/FallbackTalkscriberTranscriberLanguage.ts new file mode 100644 index 00000000..1178dedd --- /dev/null +++ b/src/api/types/FallbackTalkscriberTranscriberLanguage.ts @@ -0,0 +1,210 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the language that will be set for the transcription. The list of languages Whisper supports can be found here: https://github.com/openai/whisper/blob/main/whisper/tokenizer.py + */ +export type FallbackTalkscriberTranscriberLanguage = + | "en" + | "zh" + | "de" + | "es" + | "ru" + | "ko" + | "fr" + | "ja" + | "pt" + | "tr" + | "pl" + | "ca" + | "nl" + | "ar" + | "sv" + | "it" + | "id" + | "hi" + | "fi" + | "vi" + | "he" + | "uk" + | "el" + | "ms" + | "cs" + | "ro" + | "da" + | "hu" + | "ta" + | "no" + | "th" + | "ur" + | "hr" + | "bg" + | "lt" + | "la" + | "mi" + | "ml" + | "cy" + | "sk" + | "te" + | "fa" + | "lv" + | "bn" + | "sr" + | "az" + | "sl" + | "kn" + | "et" + | "mk" + | "br" + | "eu" + | "is" + | "hy" + | "ne" + | "mn" + | "bs" + | "kk" + | "sq" + | "sw" + | "gl" + | "mr" + | "pa" + | "si" + | "km" + | "sn" + | "yo" + | "so" + | "af" + | "oc" + | "ka" + | "be" + | "tg" + | "sd" + | "gu" + | "am" + | "yi" + | "lo" + | "uz" + | "fo" + | "ht" + | "ps" + | "tk" + | "nn" + | "mt" + | "sa" + | "lb" + | "my" + | "bo" + | "tl" + | "mg" + | "as" + | "tt" + | "haw" + | "ln" + | "ha" + | "ba" + | "jw" + | "su" + | "yue"; +export const FallbackTalkscriberTranscriberLanguage = { + En: "en", + Zh: "zh", + De: "de", + Es: "es", + Ru: "ru", + Ko: "ko", + Fr: "fr", + Ja: "ja", + Pt: "pt", + Tr: "tr", + Pl: "pl", + Ca: "ca", + Nl: "nl", + Ar: "ar", + Sv: "sv", + It: "it", + Id: "id", + Hi: "hi", + Fi: "fi", + Vi: "vi", + He: "he", + Uk: "uk", + El: "el", + Ms: "ms", + Cs: "cs", + Ro: "ro", + Da: "da", + Hu: "hu", + Ta: "ta", + No: "no", + Th: "th", + Ur: "ur", + Hr: "hr", + Bg: "bg", + Lt: "lt", + La: "la", + Mi: "mi", + Ml: "ml", + Cy: "cy", + Sk: "sk", + Te: "te", + Fa: "fa", + Lv: "lv", + Bn: "bn", + Sr: "sr", + Az: "az", + Sl: "sl", + Kn: "kn", + Et: "et", + Mk: "mk", + Br: "br", + Eu: "eu", + Is: "is", + Hy: "hy", + Ne: "ne", + Mn: "mn", + Bs: "bs", + Kk: "kk", + Sq: "sq", + Sw: "sw", + Gl: "gl", + Mr: "mr", + Pa: "pa", + Si: "si", + Km: "km", + Sn: "sn", + Yo: "yo", + So: "so", + Af: "af", + Oc: "oc", + Ka: "ka", + Be: "be", + Tg: "tg", + Sd: "sd", + Gu: "gu", + Am: "am", + Yi: "yi", + Lo: "lo", + Uz: "uz", + Fo: "fo", + Ht: "ht", + Ps: "ps", + Tk: "tk", + Nn: "nn", + Mt: "mt", + Sa: "sa", + Lb: "lb", + My: "my", + Bo: "bo", + Tl: "tl", + Mg: "mg", + As: "as", + Tt: "tt", + Haw: "haw", + Ln: "ln", + Ha: "ha", + Ba: "ba", + Jw: "jw", + Su: "su", + Yue: "yue", +} as const; diff --git a/src/api/types/FallbackTavusVoice.ts b/src/api/types/FallbackTavusVoice.ts index 4693302c..6b2a7f57 100644 --- a/src/api/types/FallbackTavusVoice.ts +++ b/src/api/types/FallbackTavusVoice.ts @@ -10,7 +10,7 @@ export interface FallbackTavusVoice { /** This is the voice provider that will be used. */ provider: "tavus"; /** This is the provider-specific ID that will be used. */ - voiceId: FallbackTavusVoice.VoiceId; + voiceId: Vapi.FallbackTavusVoiceVoiceId; /** This is the unique identifier for the persona that the replica will use in the conversation. */ personaId?: string; /** This is the url that will receive webhooks with updates regarding the conversation state. */ @@ -26,10 +26,3 @@ export interface FallbackTavusVoice { /** This is the plan for chunking the model output before it is sent to the voice provider. */ chunkPlan?: Vapi.ChunkPlan; } - -export namespace FallbackTavusVoice { - /** - * This is the provider-specific ID that will be used. - */ - export type VoiceId = "r52da2535a" | string; -} diff --git a/src/api/types/FallbackTavusVoiceVoiceId.ts b/src/api/types/FallbackTavusVoiceVoiceId.ts new file mode 100644 index 00000000..4e1eae49 --- /dev/null +++ b/src/api/types/FallbackTavusVoiceVoiceId.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the provider-specific ID that will be used. + */ +export type FallbackTavusVoiceVoiceId = "r52da2535a" | string; diff --git a/src/api/types/FallbackTranscriberPlan.ts b/src/api/types/FallbackTranscriberPlan.ts index 5f6e0dbc..d4f3a34c 100644 --- a/src/api/types/FallbackTranscriberPlan.ts +++ b/src/api/types/FallbackTranscriberPlan.ts @@ -5,24 +5,5 @@ import * as Vapi from "../index.js"; export interface FallbackTranscriberPlan { - transcribers: FallbackTranscriberPlan.Transcribers.Item[]; -} - -export namespace FallbackTranscriberPlan { - export type Transcribers = Transcribers.Item[]; - - export namespace Transcribers { - export type Item = - | Vapi.FallbackAssemblyAiTranscriber - | Vapi.FallbackAzureSpeechTranscriber - | Vapi.FallbackCustomTranscriber - | Vapi.FallbackDeepgramTranscriber - | Vapi.FallbackElevenLabsTranscriber - | Vapi.FallbackGladiaTranscriber - | Vapi.FallbackGoogleTranscriber - | Vapi.FallbackTalkscriberTranscriber - | Vapi.FallbackSpeechmaticsTranscriber - | Vapi.FallbackOpenAiTranscriber - | Vapi.FallbackCartesiaTranscriber; - } + transcribers: Vapi.FallbackTranscriberPlanTranscribersItem[]; } diff --git a/src/api/types/FallbackTranscriberPlanTranscribersItem.ts b/src/api/types/FallbackTranscriberPlanTranscribersItem.ts new file mode 100644 index 00000000..4fc0c82d --- /dev/null +++ b/src/api/types/FallbackTranscriberPlanTranscribersItem.ts @@ -0,0 +1,18 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type FallbackTranscriberPlanTranscribersItem = + | Vapi.FallbackAssemblyAiTranscriber + | Vapi.FallbackAzureSpeechTranscriber + | Vapi.FallbackCustomTranscriber + | Vapi.FallbackDeepgramTranscriber + | Vapi.FallbackElevenLabsTranscriber + | Vapi.FallbackGladiaTranscriber + | Vapi.FallbackGoogleTranscriber + | Vapi.FallbackTalkscriberTranscriber + | Vapi.FallbackSpeechmaticsTranscriber + | Vapi.FallbackOpenAiTranscriber + | Vapi.FallbackCartesiaTranscriber; diff --git a/src/api/types/FallbackVapiVoice.ts b/src/api/types/FallbackVapiVoice.ts index b7b68910..ccecf98b 100644 --- a/src/api/types/FallbackVapiVoice.ts +++ b/src/api/types/FallbackVapiVoice.ts @@ -10,7 +10,7 @@ export interface FallbackVapiVoice { /** This is the voice provider that will be used. */ provider: "vapi"; /** The voices provided by Vapi */ - voiceId: FallbackVapiVoice.VoiceId; + voiceId: Vapi.FallbackVapiVoiceVoiceId; /** * This is the speed multiplier that will be used. * @@ -20,34 +20,3 @@ export interface FallbackVapiVoice { /** This is the plan for chunking the model output before it is sent to the voice provider. */ chunkPlan?: Vapi.ChunkPlan; } - -export namespace FallbackVapiVoice { - /** - * The voices provided by Vapi - */ - export type VoiceId = - | "Elliot" - | "Kylie" - | "Rohan" - | "Lily" - | "Savannah" - | "Hana" - | "Neha" - | "Cole" - | "Harry" - | "Paige" - | "Spencer"; - export const VoiceId = { - Elliot: "Elliot", - Kylie: "Kylie", - Rohan: "Rohan", - Lily: "Lily", - Savannah: "Savannah", - Hana: "Hana", - Neha: "Neha", - Cole: "Cole", - Harry: "Harry", - Paige: "Paige", - Spencer: "Spencer", - } as const; -} diff --git a/src/api/types/FallbackVapiVoiceVoiceId.ts b/src/api/types/FallbackVapiVoiceVoiceId.ts new file mode 100644 index 00000000..1c84ba1d --- /dev/null +++ b/src/api/types/FallbackVapiVoiceVoiceId.ts @@ -0,0 +1,32 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * The voices provided by Vapi + */ +export type FallbackVapiVoiceVoiceId = + | "Elliot" + | "Kylie" + | "Rohan" + | "Lily" + | "Savannah" + | "Hana" + | "Neha" + | "Cole" + | "Harry" + | "Paige" + | "Spencer"; +export const FallbackVapiVoiceVoiceId = { + Elliot: "Elliot", + Kylie: "Kylie", + Rohan: "Rohan", + Lily: "Lily", + Savannah: "Savannah", + Hana: "Hana", + Neha: "Neha", + Cole: "Cole", + Harry: "Harry", + Paige: "Paige", + Spencer: "Spencer", +} as const; diff --git a/src/api/types/FileStatus.ts b/src/api/types/FileStatus.ts new file mode 100644 index 00000000..64d4089e --- /dev/null +++ b/src/api/types/FileStatus.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type FileStatus = "processing" | "done" | "failed"; +export const FileStatus = { + Processing: "processing", + Done: "done", + Failed: "failed", +} as const; diff --git a/src/api/types/File_.ts b/src/api/types/File_.ts index a607b864..18e9b899 100644 --- a/src/api/types/File_.ts +++ b/src/api/types/File_.ts @@ -2,9 +2,11 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface File_ { object?: "file"; - status?: File_.Status; + status?: Vapi.FileStatus; /** This is the name of the file. This is just for your own reference. */ name?: string; originalName?: string; @@ -27,12 +29,3 @@ export interface File_ { /** This is the ISO 8601 date-time string of when the file was last updated. */ updatedAt: string; } - -export namespace File_ { - export type Status = "processing" | "done" | "failed"; - export const Status = { - Processing: "processing", - Done: "done", - Failed: "failed", - } as const; -} diff --git a/src/api/types/FormatPlan.ts b/src/api/types/FormatPlan.ts index fa889ad2..fd507c3d 100644 --- a/src/api/types/FormatPlan.ts +++ b/src/api/types/FormatPlan.ts @@ -38,62 +38,12 @@ export interface FormatPlan { * * @default [] */ - replacements?: FormatPlan.Replacements.Item[]; + replacements?: Vapi.FormatPlanReplacementsItem[]; /** * List of formatters to apply. If not provided, all default formatters will be applied. * If provided, only the specified formatters will be applied. * Note: Some essential formatters like angle bracket removal will always be applied. * @default undefined */ - formattersEnabled?: FormatPlan.FormattersEnabled.Item[]; -} - -export namespace FormatPlan { - export type Replacements = Replacements.Item[]; - - export namespace Replacements { - export type Item = Vapi.ExactReplacement | Vapi.RegexReplacement; - } - - export type FormattersEnabled = FormattersEnabled.Item[]; - - export namespace FormattersEnabled { - export type Item = - | "markdown" - | "asterisk" - | "quote" - | "dash" - | "newline" - | "colon" - | "acronym" - | "dollarAmount" - | "email" - | "date" - | "time" - | "distance" - | "unit" - | "percentage" - | "phoneNumber" - | "number" - | "stripAsterisk"; - export const Item = { - Markdown: "markdown", - Asterisk: "asterisk", - Quote: "quote", - Dash: "dash", - Newline: "newline", - Colon: "colon", - Acronym: "acronym", - DollarAmount: "dollarAmount", - Email: "email", - Date: "date", - Time: "time", - Distance: "distance", - Unit: "unit", - Percentage: "percentage", - PhoneNumber: "phoneNumber", - Number: "number", - StripAsterisk: "stripAsterisk", - } as const; - } + formattersEnabled?: Vapi.FormatPlanFormattersEnabledItem[]; } diff --git a/src/api/types/FormatPlanFormattersEnabledItem.ts b/src/api/types/FormatPlanFormattersEnabledItem.ts new file mode 100644 index 00000000..319f89d6 --- /dev/null +++ b/src/api/types/FormatPlanFormattersEnabledItem.ts @@ -0,0 +1,41 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type FormatPlanFormattersEnabledItem = + | "markdown" + | "asterisk" + | "quote" + | "dash" + | "newline" + | "colon" + | "acronym" + | "dollarAmount" + | "email" + | "date" + | "time" + | "distance" + | "unit" + | "percentage" + | "phoneNumber" + | "number" + | "stripAsterisk"; +export const FormatPlanFormattersEnabledItem = { + Markdown: "markdown", + Asterisk: "asterisk", + Quote: "quote", + Dash: "dash", + Newline: "newline", + Colon: "colon", + Acronym: "acronym", + DollarAmount: "dollarAmount", + Email: "email", + Date: "date", + Time: "time", + Distance: "distance", + Unit: "unit", + Percentage: "percentage", + PhoneNumber: "phoneNumber", + Number: "number", + StripAsterisk: "stripAsterisk", +} as const; diff --git a/src/api/types/FormatPlanReplacementsItem.ts b/src/api/types/FormatPlanReplacementsItem.ts new file mode 100644 index 00000000..ae8fed9e --- /dev/null +++ b/src/api/types/FormatPlanReplacementsItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type FormatPlanReplacementsItem = Vapi.ExactReplacement | Vapi.RegexReplacement; diff --git a/src/api/types/FunctionCallHookAction.ts b/src/api/types/FunctionCallHookAction.ts index 9fbf3294..51e7fac1 100644 --- a/src/api/types/FunctionCallHookAction.ts +++ b/src/api/types/FunctionCallHookAction.ts @@ -10,7 +10,7 @@ export interface FunctionCallHookAction { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: FunctionCallHookAction.Messages.Item[]; + messages?: Vapi.FunctionCallHookActionMessagesItem[]; /** The type of tool. "function" for Function tool. */ type: "function"; /** @@ -118,15 +118,3 @@ export interface FunctionCallHookAction { /** This is the function definition of the tool. */ function?: Vapi.OpenAiFunction; } - -export namespace FunctionCallHookAction { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/FunctionCallHookActionMessagesItem.ts b/src/api/types/FunctionCallHookActionMessagesItem.ts new file mode 100644 index 00000000..e840246e --- /dev/null +++ b/src/api/types/FunctionCallHookActionMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type FunctionCallHookActionMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/FunctionTool.ts b/src/api/types/FunctionTool.ts index 09049818..1666d3bc 100644 --- a/src/api/types/FunctionTool.ts +++ b/src/api/types/FunctionTool.ts @@ -10,7 +10,7 @@ export interface FunctionTool { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: FunctionTool.Messages.Item[]; + messages?: Vapi.FunctionToolMessagesItem[]; type: "function"; /** * This determines if the tool is async. @@ -125,15 +125,3 @@ export interface FunctionTool { /** This is the function definition of the tool. */ function?: Vapi.OpenAiFunction; } - -export namespace FunctionTool { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/FunctionToolMessagesItem.ts b/src/api/types/FunctionToolMessagesItem.ts new file mode 100644 index 00000000..b5108746 --- /dev/null +++ b/src/api/types/FunctionToolMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type FunctionToolMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/FunctionToolWithToolCall.ts b/src/api/types/FunctionToolWithToolCall.ts index db055ab9..a90cc7bb 100644 --- a/src/api/types/FunctionToolWithToolCall.ts +++ b/src/api/types/FunctionToolWithToolCall.ts @@ -10,7 +10,7 @@ export interface FunctionToolWithToolCall { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: FunctionToolWithToolCall.Messages.Item[]; + messages?: Vapi.FunctionToolWithToolCallMessagesItem[]; /** The type of tool. "function" for Function tool. */ type: "function"; /** @@ -119,15 +119,3 @@ export interface FunctionToolWithToolCall { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace FunctionToolWithToolCall { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/FunctionToolWithToolCallMessagesItem.ts b/src/api/types/FunctionToolWithToolCallMessagesItem.ts new file mode 100644 index 00000000..19aa330c --- /dev/null +++ b/src/api/types/FunctionToolWithToolCallMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type FunctionToolWithToolCallMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/GeminiMultimodalLivePrebuiltVoiceConfig.ts b/src/api/types/GeminiMultimodalLivePrebuiltVoiceConfig.ts index 79d34e8d..0f36b3de 100644 --- a/src/api/types/GeminiMultimodalLivePrebuiltVoiceConfig.ts +++ b/src/api/types/GeminiMultimodalLivePrebuiltVoiceConfig.ts @@ -2,17 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ -export interface GeminiMultimodalLivePrebuiltVoiceConfig { - voiceName: GeminiMultimodalLivePrebuiltVoiceConfig.VoiceName; -} +import * as Vapi from "../index.js"; -export namespace GeminiMultimodalLivePrebuiltVoiceConfig { - export type VoiceName = "Puck" | "Charon" | "Kore" | "Fenrir" | "Aoede"; - export const VoiceName = { - Puck: "Puck", - Charon: "Charon", - Kore: "Kore", - Fenrir: "Fenrir", - Aoede: "Aoede", - } as const; +export interface GeminiMultimodalLivePrebuiltVoiceConfig { + voiceName: Vapi.GeminiMultimodalLivePrebuiltVoiceConfigVoiceName; } diff --git a/src/api/types/GeminiMultimodalLivePrebuiltVoiceConfigVoiceName.ts b/src/api/types/GeminiMultimodalLivePrebuiltVoiceConfigVoiceName.ts new file mode 100644 index 00000000..0305e23e --- /dev/null +++ b/src/api/types/GeminiMultimodalLivePrebuiltVoiceConfigVoiceName.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type GeminiMultimodalLivePrebuiltVoiceConfigVoiceName = "Puck" | "Charon" | "Kore" | "Fenrir" | "Aoede"; +export const GeminiMultimodalLivePrebuiltVoiceConfigVoiceName = { + Puck: "Puck", + Charon: "Charon", + Kore: "Kore", + Fenrir: "Fenrir", + Aoede: "Aoede", +} as const; diff --git a/src/api/types/GetChatPaginatedDto.ts b/src/api/types/GetChatPaginatedDto.ts index 06ec0ff8..2af35e22 100644 --- a/src/api/types/GetChatPaginatedDto.ts +++ b/src/api/types/GetChatPaginatedDto.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface GetChatPaginatedDto { /** This is the unique identifier for the assistant that will be used for the chat. */ assistantId?: string; @@ -14,7 +16,7 @@ export interface GetChatPaginatedDto { /** This is the page number to return. Defaults to 1. */ page?: number; /** This is the sort order for pagination. Defaults to 'DESC'. */ - sortOrder?: GetChatPaginatedDto.SortOrder; + sortOrder?: Vapi.GetChatPaginatedDtoSortOrder; /** This is the maximum number of items to return. Defaults to 100. */ limit?: number; /** This will return items where the createdAt is greater than the specified value. */ @@ -34,14 +36,3 @@ export interface GetChatPaginatedDto { /** This will return items where the updatedAt is less than or equal to the specified value. */ updatedAtLe?: string; } - -export namespace GetChatPaginatedDto { - /** - * This is the sort order for pagination. Defaults to 'DESC'. - */ - export type SortOrder = "ASC" | "DESC"; - export const SortOrder = { - Asc: "ASC", - Desc: "DESC", - } as const; -} diff --git a/src/api/types/GetChatPaginatedDtoSortOrder.ts b/src/api/types/GetChatPaginatedDtoSortOrder.ts new file mode 100644 index 00000000..25957bde --- /dev/null +++ b/src/api/types/GetChatPaginatedDtoSortOrder.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the sort order for pagination. Defaults to 'DESC'. + */ +export type GetChatPaginatedDtoSortOrder = "ASC" | "DESC"; +export const GetChatPaginatedDtoSortOrder = { + Asc: "ASC", + Desc: "DESC", +} as const; diff --git a/src/api/types/GetEvalPaginatedDto.ts b/src/api/types/GetEvalPaginatedDto.ts index 1116dfbe..8ed51b7d 100644 --- a/src/api/types/GetEvalPaginatedDto.ts +++ b/src/api/types/GetEvalPaginatedDto.ts @@ -2,12 +2,14 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface GetEvalPaginatedDto { id?: string; /** This is the page number to return. Defaults to 1. */ page?: number; /** This is the sort order for pagination. Defaults to 'DESC'. */ - sortOrder?: GetEvalPaginatedDto.SortOrder; + sortOrder?: Vapi.GetEvalPaginatedDtoSortOrder; /** This is the maximum number of items to return. Defaults to 100. */ limit?: number; /** This will return items where the createdAt is greater than the specified value. */ @@ -27,14 +29,3 @@ export interface GetEvalPaginatedDto { /** This will return items where the updatedAt is less than or equal to the specified value. */ updatedAtLe?: string; } - -export namespace GetEvalPaginatedDto { - /** - * This is the sort order for pagination. Defaults to 'DESC'. - */ - export type SortOrder = "ASC" | "DESC"; - export const SortOrder = { - Asc: "ASC", - Desc: "DESC", - } as const; -} diff --git a/src/api/types/GetEvalPaginatedDtoSortOrder.ts b/src/api/types/GetEvalPaginatedDtoSortOrder.ts new file mode 100644 index 00000000..62696a0b --- /dev/null +++ b/src/api/types/GetEvalPaginatedDtoSortOrder.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the sort order for pagination. Defaults to 'DESC'. + */ +export type GetEvalPaginatedDtoSortOrder = "ASC" | "DESC"; +export const GetEvalPaginatedDtoSortOrder = { + Asc: "ASC", + Desc: "DESC", +} as const; diff --git a/src/api/types/GetEvalRunPaginatedDto.ts b/src/api/types/GetEvalRunPaginatedDto.ts index 9af057d9..a19f2cf2 100644 --- a/src/api/types/GetEvalRunPaginatedDto.ts +++ b/src/api/types/GetEvalRunPaginatedDto.ts @@ -2,12 +2,14 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface GetEvalRunPaginatedDto { id?: string; /** This is the page number to return. Defaults to 1. */ page?: number; /** This is the sort order for pagination. Defaults to 'DESC'. */ - sortOrder?: GetEvalRunPaginatedDto.SortOrder; + sortOrder?: Vapi.GetEvalRunPaginatedDtoSortOrder; /** This is the maximum number of items to return. Defaults to 100. */ limit?: number; /** This will return items where the createdAt is greater than the specified value. */ @@ -27,14 +29,3 @@ export interface GetEvalRunPaginatedDto { /** This will return items where the updatedAt is less than or equal to the specified value. */ updatedAtLe?: string; } - -export namespace GetEvalRunPaginatedDto { - /** - * This is the sort order for pagination. Defaults to 'DESC'. - */ - export type SortOrder = "ASC" | "DESC"; - export const SortOrder = { - Asc: "ASC", - Desc: "DESC", - } as const; -} diff --git a/src/api/types/GetEvalRunPaginatedDtoSortOrder.ts b/src/api/types/GetEvalRunPaginatedDtoSortOrder.ts new file mode 100644 index 00000000..1faf89ec --- /dev/null +++ b/src/api/types/GetEvalRunPaginatedDtoSortOrder.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the sort order for pagination. Defaults to 'DESC'. + */ +export type GetEvalRunPaginatedDtoSortOrder = "ASC" | "DESC"; +export const GetEvalRunPaginatedDtoSortOrder = { + Asc: "ASC", + Desc: "DESC", +} as const; diff --git a/src/api/types/GetSessionPaginatedDto.ts b/src/api/types/GetSessionPaginatedDto.ts index f5105100..0814d8bb 100644 --- a/src/api/types/GetSessionPaginatedDto.ts +++ b/src/api/types/GetSessionPaginatedDto.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface GetSessionPaginatedDto { /** This is the name of the session to filter by. */ name?: string; @@ -14,7 +16,7 @@ export interface GetSessionPaginatedDto { /** This is the page number to return. Defaults to 1. */ page?: number; /** This is the sort order for pagination. Defaults to 'DESC'. */ - sortOrder?: GetSessionPaginatedDto.SortOrder; + sortOrder?: Vapi.GetSessionPaginatedDtoSortOrder; /** This is the maximum number of items to return. Defaults to 100. */ limit?: number; /** This will return items where the createdAt is greater than the specified value. */ @@ -34,14 +36,3 @@ export interface GetSessionPaginatedDto { /** This will return items where the updatedAt is less than or equal to the specified value. */ updatedAtLe?: string; } - -export namespace GetSessionPaginatedDto { - /** - * This is the sort order for pagination. Defaults to 'DESC'. - */ - export type SortOrder = "ASC" | "DESC"; - export const SortOrder = { - Asc: "ASC", - Desc: "DESC", - } as const; -} diff --git a/src/api/types/GetSessionPaginatedDtoSortOrder.ts b/src/api/types/GetSessionPaginatedDtoSortOrder.ts new file mode 100644 index 00000000..b0b578a2 --- /dev/null +++ b/src/api/types/GetSessionPaginatedDtoSortOrder.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the sort order for pagination. Defaults to 'DESC'. + */ +export type GetSessionPaginatedDtoSortOrder = "ASC" | "DESC"; +export const GetSessionPaginatedDtoSortOrder = { + Asc: "ASC", + Desc: "DESC", +} as const; diff --git a/src/api/types/GhlTool.ts b/src/api/types/GhlTool.ts index e66eb033..f5b38523 100644 --- a/src/api/types/GhlTool.ts +++ b/src/api/types/GhlTool.ts @@ -10,7 +10,7 @@ export interface GhlTool { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: GhlTool.Messages.Item[]; + messages?: Vapi.GhlToolMessagesItem[]; /** The type of tool. "ghl" for GHL tool. */ type: "ghl"; /** This is the unique identifier for the tool. */ @@ -104,15 +104,3 @@ export interface GhlTool { rejectionPlan?: Vapi.ToolRejectionPlan; metadata: Vapi.GhlToolMetadata; } - -export namespace GhlTool { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/GhlToolMessagesItem.ts b/src/api/types/GhlToolMessagesItem.ts new file mode 100644 index 00000000..43d8bdc3 --- /dev/null +++ b/src/api/types/GhlToolMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type GhlToolMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/GhlToolWithToolCall.ts b/src/api/types/GhlToolWithToolCall.ts index 72d835c4..fa855773 100644 --- a/src/api/types/GhlToolWithToolCall.ts +++ b/src/api/types/GhlToolWithToolCall.ts @@ -10,7 +10,7 @@ export interface GhlToolWithToolCall { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: GhlToolWithToolCall.Messages.Item[]; + messages?: Vapi.GhlToolWithToolCallMessagesItem[]; /** The type of tool. "ghl" for GHL tool. */ type: "ghl"; toolCall: Vapi.ToolCall; @@ -97,15 +97,3 @@ export interface GhlToolWithToolCall { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace GhlToolWithToolCall { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/GhlToolWithToolCallMessagesItem.ts b/src/api/types/GhlToolWithToolCallMessagesItem.ts new file mode 100644 index 00000000..76f076bb --- /dev/null +++ b/src/api/types/GhlToolWithToolCallMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type GhlToolWithToolCallMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/GladiaCustomVocabularyConfigDto.ts b/src/api/types/GladiaCustomVocabularyConfigDto.ts index b6106e45..f6781bb4 100644 --- a/src/api/types/GladiaCustomVocabularyConfigDto.ts +++ b/src/api/types/GladiaCustomVocabularyConfigDto.ts @@ -6,15 +6,7 @@ import * as Vapi from "../index.js"; export interface GladiaCustomVocabularyConfigDto { /** Array of vocabulary items (strings or objects with value, pronunciations, intensity, language) */ - vocabulary: GladiaCustomVocabularyConfigDto.Vocabulary.Item[]; + vocabulary: Vapi.GladiaCustomVocabularyConfigDtoVocabularyItem[]; /** Default intensity for vocabulary items (0.0 to 1.0) */ defaultIntensity?: number; } - -export namespace GladiaCustomVocabularyConfigDto { - export type Vocabulary = Vocabulary.Item[]; - - export namespace Vocabulary { - export type Item = string | Vapi.GladiaVocabularyItemDto; - } -} diff --git a/src/api/types/GladiaCustomVocabularyConfigDtoVocabularyItem.ts b/src/api/types/GladiaCustomVocabularyConfigDtoVocabularyItem.ts new file mode 100644 index 00000000..3ec62feb --- /dev/null +++ b/src/api/types/GladiaCustomVocabularyConfigDtoVocabularyItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type GladiaCustomVocabularyConfigDtoVocabularyItem = string | Vapi.GladiaVocabularyItemDto; diff --git a/src/api/types/GladiaTranscriber.ts b/src/api/types/GladiaTranscriber.ts index bfdb83c7..79f29609 100644 --- a/src/api/types/GladiaTranscriber.ts +++ b/src/api/types/GladiaTranscriber.ts @@ -8,13 +8,13 @@ export interface GladiaTranscriber { /** This is the transcription provider that will be used. */ provider: "gladia"; /** This is the Gladia model that will be used. Default is 'fast' */ - model?: GladiaTranscriber.Model; + model?: Vapi.GladiaTranscriberModel; /** Defines how the transcription model detects the audio language. Default value is 'automatic single language'. */ - languageBehaviour?: GladiaTranscriber.LanguageBehaviour; + languageBehaviour?: Vapi.GladiaTranscriberLanguageBehaviour; /** Defines the language to use for the transcription. Required when languageBehaviour is 'manual'. */ - language?: GladiaTranscriber.Language; + language?: Vapi.GladiaTranscriberLanguage; /** Defines the languages to use for the transcription. Required when languageBehaviour is 'manual'. */ - languages?: GladiaTranscriber.Languages; + languages?: Vapi.GladiaTranscriberLanguages; /** * Provides a custom vocabulary to the model to improve accuracy of transcribing context specific words, technical terms, names, etc. If empty, this argument is ignored. * ⚠️ Warning ⚠️: Please be aware that the transcription_hint field has a character limit of 600. If you provide a transcription_hint longer than 600 characters, it will be automatically truncated to meet this limit. @@ -39,440 +39,9 @@ export interface GladiaTranscriber { /** Custom vocabulary configuration */ customVocabularyConfig?: Vapi.GladiaCustomVocabularyConfigDto; /** Region for processing audio (us-west or eu-west) */ - region?: GladiaTranscriber.Region; + region?: Vapi.GladiaTranscriberRegion; /** Enable partial transcripts for low-latency streaming transcription */ receivePartialTranscripts?: boolean; /** This is the plan for voice provider fallbacks in the event that the primary voice provider fails. */ fallbackPlan?: Vapi.FallbackTranscriberPlan; } - -export namespace GladiaTranscriber { - export type Model = "fast" | "accurate" | "solaria-1"; - export const Model = { - Fast: "fast", - Accurate: "accurate", - Solaria1: "solaria-1", - } as const; - export type LanguageBehaviour = "manual" | "automatic single language" | "automatic multiple languages"; - export const LanguageBehaviour = { - Manual: "manual", - AutomaticSingleLanguage: "automatic single language", - AutomaticMultipleLanguages: "automatic multiple languages", - } as const; - /** - * Defines the language to use for the transcription. Required when languageBehaviour is 'manual'. - */ - export type Language = - | "af" - | "sq" - | "am" - | "ar" - | "hy" - | "as" - | "az" - | "ba" - | "eu" - | "be" - | "bn" - | "bs" - | "br" - | "bg" - | "ca" - | "zh" - | "hr" - | "cs" - | "da" - | "nl" - | "en" - | "et" - | "fo" - | "fi" - | "fr" - | "gl" - | "ka" - | "de" - | "el" - | "gu" - | "ht" - | "ha" - | "haw" - | "he" - | "hi" - | "hu" - | "is" - | "id" - | "it" - | "ja" - | "jv" - | "kn" - | "kk" - | "km" - | "ko" - | "lo" - | "la" - | "lv" - | "ln" - | "lt" - | "lb" - | "mk" - | "mg" - | "ms" - | "ml" - | "mt" - | "mi" - | "mr" - | "mn" - | "my" - | "ne" - | "no" - | "nn" - | "oc" - | "ps" - | "fa" - | "pl" - | "pt" - | "pa" - | "ro" - | "ru" - | "sa" - | "sr" - | "sn" - | "sd" - | "si" - | "sk" - | "sl" - | "so" - | "es" - | "su" - | "sw" - | "sv" - | "tl" - | "tg" - | "ta" - | "tt" - | "te" - | "th" - | "bo" - | "tr" - | "tk" - | "uk" - | "ur" - | "uz" - | "vi" - | "cy" - | "yi" - | "yo"; - export const Language = { - Af: "af", - Sq: "sq", - Am: "am", - Ar: "ar", - Hy: "hy", - As: "as", - Az: "az", - Ba: "ba", - Eu: "eu", - Be: "be", - Bn: "bn", - Bs: "bs", - Br: "br", - Bg: "bg", - Ca: "ca", - Zh: "zh", - Hr: "hr", - Cs: "cs", - Da: "da", - Nl: "nl", - En: "en", - Et: "et", - Fo: "fo", - Fi: "fi", - Fr: "fr", - Gl: "gl", - Ka: "ka", - De: "de", - El: "el", - Gu: "gu", - Ht: "ht", - Ha: "ha", - Haw: "haw", - He: "he", - Hi: "hi", - Hu: "hu", - Is: "is", - Id: "id", - It: "it", - Ja: "ja", - Jv: "jv", - Kn: "kn", - Kk: "kk", - Km: "km", - Ko: "ko", - Lo: "lo", - La: "la", - Lv: "lv", - Ln: "ln", - Lt: "lt", - Lb: "lb", - Mk: "mk", - Mg: "mg", - Ms: "ms", - Ml: "ml", - Mt: "mt", - Mi: "mi", - Mr: "mr", - Mn: "mn", - My: "my", - Ne: "ne", - No: "no", - Nn: "nn", - Oc: "oc", - Ps: "ps", - Fa: "fa", - Pl: "pl", - Pt: "pt", - Pa: "pa", - Ro: "ro", - Ru: "ru", - Sa: "sa", - Sr: "sr", - Sn: "sn", - Sd: "sd", - Si: "si", - Sk: "sk", - Sl: "sl", - So: "so", - Es: "es", - Su: "su", - Sw: "sw", - Sv: "sv", - Tl: "tl", - Tg: "tg", - Ta: "ta", - Tt: "tt", - Te: "te", - Th: "th", - Bo: "bo", - Tr: "tr", - Tk: "tk", - Uk: "uk", - Ur: "ur", - Uz: "uz", - Vi: "vi", - Cy: "cy", - Yi: "yi", - Yo: "yo", - } as const; - /** - * Defines the languages to use for the transcription. Required when languageBehaviour is 'manual'. - */ - export type Languages = - | "af" - | "sq" - | "am" - | "ar" - | "hy" - | "as" - | "az" - | "ba" - | "eu" - | "be" - | "bn" - | "bs" - | "br" - | "bg" - | "ca" - | "zh" - | "hr" - | "cs" - | "da" - | "nl" - | "en" - | "et" - | "fo" - | "fi" - | "fr" - | "gl" - | "ka" - | "de" - | "el" - | "gu" - | "ht" - | "ha" - | "haw" - | "he" - | "hi" - | "hu" - | "is" - | "id" - | "it" - | "ja" - | "jv" - | "kn" - | "kk" - | "km" - | "ko" - | "lo" - | "la" - | "lv" - | "ln" - | "lt" - | "lb" - | "mk" - | "mg" - | "ms" - | "ml" - | "mt" - | "mi" - | "mr" - | "mn" - | "my" - | "ne" - | "no" - | "nn" - | "oc" - | "ps" - | "fa" - | "pl" - | "pt" - | "pa" - | "ro" - | "ru" - | "sa" - | "sr" - | "sn" - | "sd" - | "si" - | "sk" - | "sl" - | "so" - | "es" - | "su" - | "sw" - | "sv" - | "tl" - | "tg" - | "ta" - | "tt" - | "te" - | "th" - | "bo" - | "tr" - | "tk" - | "uk" - | "ur" - | "uz" - | "vi" - | "cy" - | "yi" - | "yo"; - export const Languages = { - Af: "af", - Sq: "sq", - Am: "am", - Ar: "ar", - Hy: "hy", - As: "as", - Az: "az", - Ba: "ba", - Eu: "eu", - Be: "be", - Bn: "bn", - Bs: "bs", - Br: "br", - Bg: "bg", - Ca: "ca", - Zh: "zh", - Hr: "hr", - Cs: "cs", - Da: "da", - Nl: "nl", - En: "en", - Et: "et", - Fo: "fo", - Fi: "fi", - Fr: "fr", - Gl: "gl", - Ka: "ka", - De: "de", - El: "el", - Gu: "gu", - Ht: "ht", - Ha: "ha", - Haw: "haw", - He: "he", - Hi: "hi", - Hu: "hu", - Is: "is", - Id: "id", - It: "it", - Ja: "ja", - Jv: "jv", - Kn: "kn", - Kk: "kk", - Km: "km", - Ko: "ko", - Lo: "lo", - La: "la", - Lv: "lv", - Ln: "ln", - Lt: "lt", - Lb: "lb", - Mk: "mk", - Mg: "mg", - Ms: "ms", - Ml: "ml", - Mt: "mt", - Mi: "mi", - Mr: "mr", - Mn: "mn", - My: "my", - Ne: "ne", - No: "no", - Nn: "nn", - Oc: "oc", - Ps: "ps", - Fa: "fa", - Pl: "pl", - Pt: "pt", - Pa: "pa", - Ro: "ro", - Ru: "ru", - Sa: "sa", - Sr: "sr", - Sn: "sn", - Sd: "sd", - Si: "si", - Sk: "sk", - Sl: "sl", - So: "so", - Es: "es", - Su: "su", - Sw: "sw", - Sv: "sv", - Tl: "tl", - Tg: "tg", - Ta: "ta", - Tt: "tt", - Te: "te", - Th: "th", - Bo: "bo", - Tr: "tr", - Tk: "tk", - Uk: "uk", - Ur: "ur", - Uz: "uz", - Vi: "vi", - Cy: "cy", - Yi: "yi", - Yo: "yo", - } as const; - /** - * Region for processing audio (us-west or eu-west) - */ - export type Region = "us-west" | "eu-west"; - export const Region = { - UsWest: "us-west", - EuWest: "eu-west", - } as const; -} diff --git a/src/api/types/GladiaTranscriberLanguage.ts b/src/api/types/GladiaTranscriberLanguage.ts new file mode 100644 index 00000000..2d74d74c --- /dev/null +++ b/src/api/types/GladiaTranscriberLanguage.ts @@ -0,0 +1,208 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Defines the language to use for the transcription. Required when languageBehaviour is 'manual'. + */ +export type GladiaTranscriberLanguage = + | "af" + | "sq" + | "am" + | "ar" + | "hy" + | "as" + | "az" + | "ba" + | "eu" + | "be" + | "bn" + | "bs" + | "br" + | "bg" + | "ca" + | "zh" + | "hr" + | "cs" + | "da" + | "nl" + | "en" + | "et" + | "fo" + | "fi" + | "fr" + | "gl" + | "ka" + | "de" + | "el" + | "gu" + | "ht" + | "ha" + | "haw" + | "he" + | "hi" + | "hu" + | "is" + | "id" + | "it" + | "ja" + | "jv" + | "kn" + | "kk" + | "km" + | "ko" + | "lo" + | "la" + | "lv" + | "ln" + | "lt" + | "lb" + | "mk" + | "mg" + | "ms" + | "ml" + | "mt" + | "mi" + | "mr" + | "mn" + | "my" + | "ne" + | "no" + | "nn" + | "oc" + | "ps" + | "fa" + | "pl" + | "pt" + | "pa" + | "ro" + | "ru" + | "sa" + | "sr" + | "sn" + | "sd" + | "si" + | "sk" + | "sl" + | "so" + | "es" + | "su" + | "sw" + | "sv" + | "tl" + | "tg" + | "ta" + | "tt" + | "te" + | "th" + | "bo" + | "tr" + | "tk" + | "uk" + | "ur" + | "uz" + | "vi" + | "cy" + | "yi" + | "yo"; +export const GladiaTranscriberLanguage = { + Af: "af", + Sq: "sq", + Am: "am", + Ar: "ar", + Hy: "hy", + As: "as", + Az: "az", + Ba: "ba", + Eu: "eu", + Be: "be", + Bn: "bn", + Bs: "bs", + Br: "br", + Bg: "bg", + Ca: "ca", + Zh: "zh", + Hr: "hr", + Cs: "cs", + Da: "da", + Nl: "nl", + En: "en", + Et: "et", + Fo: "fo", + Fi: "fi", + Fr: "fr", + Gl: "gl", + Ka: "ka", + De: "de", + El: "el", + Gu: "gu", + Ht: "ht", + Ha: "ha", + Haw: "haw", + He: "he", + Hi: "hi", + Hu: "hu", + Is: "is", + Id: "id", + It: "it", + Ja: "ja", + Jv: "jv", + Kn: "kn", + Kk: "kk", + Km: "km", + Ko: "ko", + Lo: "lo", + La: "la", + Lv: "lv", + Ln: "ln", + Lt: "lt", + Lb: "lb", + Mk: "mk", + Mg: "mg", + Ms: "ms", + Ml: "ml", + Mt: "mt", + Mi: "mi", + Mr: "mr", + Mn: "mn", + My: "my", + Ne: "ne", + No: "no", + Nn: "nn", + Oc: "oc", + Ps: "ps", + Fa: "fa", + Pl: "pl", + Pt: "pt", + Pa: "pa", + Ro: "ro", + Ru: "ru", + Sa: "sa", + Sr: "sr", + Sn: "sn", + Sd: "sd", + Si: "si", + Sk: "sk", + Sl: "sl", + So: "so", + Es: "es", + Su: "su", + Sw: "sw", + Sv: "sv", + Tl: "tl", + Tg: "tg", + Ta: "ta", + Tt: "tt", + Te: "te", + Th: "th", + Bo: "bo", + Tr: "tr", + Tk: "tk", + Uk: "uk", + Ur: "ur", + Uz: "uz", + Vi: "vi", + Cy: "cy", + Yi: "yi", + Yo: "yo", +} as const; diff --git a/src/api/types/GladiaTranscriberLanguageBehaviour.ts b/src/api/types/GladiaTranscriberLanguageBehaviour.ts new file mode 100644 index 00000000..23b1d3c5 --- /dev/null +++ b/src/api/types/GladiaTranscriberLanguageBehaviour.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type GladiaTranscriberLanguageBehaviour = + | "manual" + | "automatic single language" + | "automatic multiple languages"; +export const GladiaTranscriberLanguageBehaviour = { + Manual: "manual", + AutomaticSingleLanguage: "automatic single language", + AutomaticMultipleLanguages: "automatic multiple languages", +} as const; diff --git a/src/api/types/GladiaTranscriberLanguages.ts b/src/api/types/GladiaTranscriberLanguages.ts new file mode 100644 index 00000000..08114037 --- /dev/null +++ b/src/api/types/GladiaTranscriberLanguages.ts @@ -0,0 +1,208 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Defines the languages to use for the transcription. Required when languageBehaviour is 'manual'. + */ +export type GladiaTranscriberLanguages = + | "af" + | "sq" + | "am" + | "ar" + | "hy" + | "as" + | "az" + | "ba" + | "eu" + | "be" + | "bn" + | "bs" + | "br" + | "bg" + | "ca" + | "zh" + | "hr" + | "cs" + | "da" + | "nl" + | "en" + | "et" + | "fo" + | "fi" + | "fr" + | "gl" + | "ka" + | "de" + | "el" + | "gu" + | "ht" + | "ha" + | "haw" + | "he" + | "hi" + | "hu" + | "is" + | "id" + | "it" + | "ja" + | "jv" + | "kn" + | "kk" + | "km" + | "ko" + | "lo" + | "la" + | "lv" + | "ln" + | "lt" + | "lb" + | "mk" + | "mg" + | "ms" + | "ml" + | "mt" + | "mi" + | "mr" + | "mn" + | "my" + | "ne" + | "no" + | "nn" + | "oc" + | "ps" + | "fa" + | "pl" + | "pt" + | "pa" + | "ro" + | "ru" + | "sa" + | "sr" + | "sn" + | "sd" + | "si" + | "sk" + | "sl" + | "so" + | "es" + | "su" + | "sw" + | "sv" + | "tl" + | "tg" + | "ta" + | "tt" + | "te" + | "th" + | "bo" + | "tr" + | "tk" + | "uk" + | "ur" + | "uz" + | "vi" + | "cy" + | "yi" + | "yo"; +export const GladiaTranscriberLanguages = { + Af: "af", + Sq: "sq", + Am: "am", + Ar: "ar", + Hy: "hy", + As: "as", + Az: "az", + Ba: "ba", + Eu: "eu", + Be: "be", + Bn: "bn", + Bs: "bs", + Br: "br", + Bg: "bg", + Ca: "ca", + Zh: "zh", + Hr: "hr", + Cs: "cs", + Da: "da", + Nl: "nl", + En: "en", + Et: "et", + Fo: "fo", + Fi: "fi", + Fr: "fr", + Gl: "gl", + Ka: "ka", + De: "de", + El: "el", + Gu: "gu", + Ht: "ht", + Ha: "ha", + Haw: "haw", + He: "he", + Hi: "hi", + Hu: "hu", + Is: "is", + Id: "id", + It: "it", + Ja: "ja", + Jv: "jv", + Kn: "kn", + Kk: "kk", + Km: "km", + Ko: "ko", + Lo: "lo", + La: "la", + Lv: "lv", + Ln: "ln", + Lt: "lt", + Lb: "lb", + Mk: "mk", + Mg: "mg", + Ms: "ms", + Ml: "ml", + Mt: "mt", + Mi: "mi", + Mr: "mr", + Mn: "mn", + My: "my", + Ne: "ne", + No: "no", + Nn: "nn", + Oc: "oc", + Ps: "ps", + Fa: "fa", + Pl: "pl", + Pt: "pt", + Pa: "pa", + Ro: "ro", + Ru: "ru", + Sa: "sa", + Sr: "sr", + Sn: "sn", + Sd: "sd", + Si: "si", + Sk: "sk", + Sl: "sl", + So: "so", + Es: "es", + Su: "su", + Sw: "sw", + Sv: "sv", + Tl: "tl", + Tg: "tg", + Ta: "ta", + Tt: "tt", + Te: "te", + Th: "th", + Bo: "bo", + Tr: "tr", + Tk: "tk", + Uk: "uk", + Ur: "ur", + Uz: "uz", + Vi: "vi", + Cy: "cy", + Yi: "yi", + Yo: "yo", +} as const; diff --git a/src/api/types/GladiaTranscriberModel.ts b/src/api/types/GladiaTranscriberModel.ts new file mode 100644 index 00000000..def2a68f --- /dev/null +++ b/src/api/types/GladiaTranscriberModel.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type GladiaTranscriberModel = "fast" | "accurate" | "solaria-1"; +export const GladiaTranscriberModel = { + Fast: "fast", + Accurate: "accurate", + Solaria1: "solaria-1", +} as const; diff --git a/src/api/types/GladiaTranscriberRegion.ts b/src/api/types/GladiaTranscriberRegion.ts new file mode 100644 index 00000000..e56685c6 --- /dev/null +++ b/src/api/types/GladiaTranscriberRegion.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Region for processing audio (us-west or eu-west) + */ +export type GladiaTranscriberRegion = "us-west" | "eu-west"; +export const GladiaTranscriberRegion = { + UsWest: "us-west", + EuWest: "eu-west", +} as const; diff --git a/src/api/types/GoHighLevelCalendarAvailabilityTool.ts b/src/api/types/GoHighLevelCalendarAvailabilityTool.ts index 02d84258..83684cb5 100644 --- a/src/api/types/GoHighLevelCalendarAvailabilityTool.ts +++ b/src/api/types/GoHighLevelCalendarAvailabilityTool.ts @@ -10,7 +10,7 @@ export interface GoHighLevelCalendarAvailabilityTool { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: GoHighLevelCalendarAvailabilityTool.Messages.Item[]; + messages?: Vapi.GoHighLevelCalendarAvailabilityToolMessagesItem[]; type: "gohighlevel.calendar.availability.check"; /** This is the unique identifier for the tool. */ id: string; @@ -102,15 +102,3 @@ export interface GoHighLevelCalendarAvailabilityTool { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace GoHighLevelCalendarAvailabilityTool { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/GoHighLevelCalendarAvailabilityToolMessagesItem.ts b/src/api/types/GoHighLevelCalendarAvailabilityToolMessagesItem.ts new file mode 100644 index 00000000..f1759f40 --- /dev/null +++ b/src/api/types/GoHighLevelCalendarAvailabilityToolMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type GoHighLevelCalendarAvailabilityToolMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/GoHighLevelCalendarAvailabilityToolWithToolCall.ts b/src/api/types/GoHighLevelCalendarAvailabilityToolWithToolCall.ts index 13fecc8e..5194cafd 100644 --- a/src/api/types/GoHighLevelCalendarAvailabilityToolWithToolCall.ts +++ b/src/api/types/GoHighLevelCalendarAvailabilityToolWithToolCall.ts @@ -10,7 +10,7 @@ export interface GoHighLevelCalendarAvailabilityToolWithToolCall { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: GoHighLevelCalendarAvailabilityToolWithToolCall.Messages.Item[]; + messages?: Vapi.GoHighLevelCalendarAvailabilityToolWithToolCallMessagesItem[]; /** The type of tool. "gohighlevel.calendar.availability.check" for GoHighLevel Calendar Availability Check tool. */ type: "gohighlevel.calendar.availability.check"; toolCall: Vapi.ToolCall; @@ -96,15 +96,3 @@ export interface GoHighLevelCalendarAvailabilityToolWithToolCall { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace GoHighLevelCalendarAvailabilityToolWithToolCall { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/GoHighLevelCalendarAvailabilityToolWithToolCallMessagesItem.ts b/src/api/types/GoHighLevelCalendarAvailabilityToolWithToolCallMessagesItem.ts new file mode 100644 index 00000000..217fdfca --- /dev/null +++ b/src/api/types/GoHighLevelCalendarAvailabilityToolWithToolCallMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type GoHighLevelCalendarAvailabilityToolWithToolCallMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/GoHighLevelCalendarEventCreateTool.ts b/src/api/types/GoHighLevelCalendarEventCreateTool.ts index 3d79e4b9..7a3eaf06 100644 --- a/src/api/types/GoHighLevelCalendarEventCreateTool.ts +++ b/src/api/types/GoHighLevelCalendarEventCreateTool.ts @@ -10,7 +10,7 @@ export interface GoHighLevelCalendarEventCreateTool { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: GoHighLevelCalendarEventCreateTool.Messages.Item[]; + messages?: Vapi.GoHighLevelCalendarEventCreateToolMessagesItem[]; type: "gohighlevel.calendar.event.create"; /** This is the unique identifier for the tool. */ id: string; @@ -102,15 +102,3 @@ export interface GoHighLevelCalendarEventCreateTool { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace GoHighLevelCalendarEventCreateTool { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/GoHighLevelCalendarEventCreateToolMessagesItem.ts b/src/api/types/GoHighLevelCalendarEventCreateToolMessagesItem.ts new file mode 100644 index 00000000..a0703894 --- /dev/null +++ b/src/api/types/GoHighLevelCalendarEventCreateToolMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type GoHighLevelCalendarEventCreateToolMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/GoHighLevelCalendarEventCreateToolWithToolCall.ts b/src/api/types/GoHighLevelCalendarEventCreateToolWithToolCall.ts index ee625980..31e80779 100644 --- a/src/api/types/GoHighLevelCalendarEventCreateToolWithToolCall.ts +++ b/src/api/types/GoHighLevelCalendarEventCreateToolWithToolCall.ts @@ -10,7 +10,7 @@ export interface GoHighLevelCalendarEventCreateToolWithToolCall { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: GoHighLevelCalendarEventCreateToolWithToolCall.Messages.Item[]; + messages?: Vapi.GoHighLevelCalendarEventCreateToolWithToolCallMessagesItem[]; /** The type of tool. "gohighlevel.calendar.event.create" for GoHighLevel Calendar Event Create tool. */ type: "gohighlevel.calendar.event.create"; toolCall: Vapi.ToolCall; @@ -96,15 +96,3 @@ export interface GoHighLevelCalendarEventCreateToolWithToolCall { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace GoHighLevelCalendarEventCreateToolWithToolCall { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/GoHighLevelCalendarEventCreateToolWithToolCallMessagesItem.ts b/src/api/types/GoHighLevelCalendarEventCreateToolWithToolCallMessagesItem.ts new file mode 100644 index 00000000..25e82260 --- /dev/null +++ b/src/api/types/GoHighLevelCalendarEventCreateToolWithToolCallMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type GoHighLevelCalendarEventCreateToolWithToolCallMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/GoHighLevelContactCreateTool.ts b/src/api/types/GoHighLevelContactCreateTool.ts index 6efb2978..13827576 100644 --- a/src/api/types/GoHighLevelContactCreateTool.ts +++ b/src/api/types/GoHighLevelContactCreateTool.ts @@ -10,7 +10,7 @@ export interface GoHighLevelContactCreateTool { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: GoHighLevelContactCreateTool.Messages.Item[]; + messages?: Vapi.GoHighLevelContactCreateToolMessagesItem[]; type: "gohighlevel.contact.create"; /** This is the unique identifier for the tool. */ id: string; @@ -102,15 +102,3 @@ export interface GoHighLevelContactCreateTool { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace GoHighLevelContactCreateTool { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/GoHighLevelContactCreateToolMessagesItem.ts b/src/api/types/GoHighLevelContactCreateToolMessagesItem.ts new file mode 100644 index 00000000..0be2b3a7 --- /dev/null +++ b/src/api/types/GoHighLevelContactCreateToolMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type GoHighLevelContactCreateToolMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/GoHighLevelContactCreateToolWithToolCall.ts b/src/api/types/GoHighLevelContactCreateToolWithToolCall.ts index e7849250..9670bed5 100644 --- a/src/api/types/GoHighLevelContactCreateToolWithToolCall.ts +++ b/src/api/types/GoHighLevelContactCreateToolWithToolCall.ts @@ -10,7 +10,7 @@ export interface GoHighLevelContactCreateToolWithToolCall { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: GoHighLevelContactCreateToolWithToolCall.Messages.Item[]; + messages?: Vapi.GoHighLevelContactCreateToolWithToolCallMessagesItem[]; /** The type of tool. "gohighlevel.contact.create" for GoHighLevel Contact Create tool. */ type: "gohighlevel.contact.create"; toolCall: Vapi.ToolCall; @@ -96,15 +96,3 @@ export interface GoHighLevelContactCreateToolWithToolCall { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace GoHighLevelContactCreateToolWithToolCall { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/GoHighLevelContactCreateToolWithToolCallMessagesItem.ts b/src/api/types/GoHighLevelContactCreateToolWithToolCallMessagesItem.ts new file mode 100644 index 00000000..ab8ee307 --- /dev/null +++ b/src/api/types/GoHighLevelContactCreateToolWithToolCallMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type GoHighLevelContactCreateToolWithToolCallMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/GoHighLevelContactGetTool.ts b/src/api/types/GoHighLevelContactGetTool.ts index 42962337..ab4bf938 100644 --- a/src/api/types/GoHighLevelContactGetTool.ts +++ b/src/api/types/GoHighLevelContactGetTool.ts @@ -10,7 +10,7 @@ export interface GoHighLevelContactGetTool { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: GoHighLevelContactGetTool.Messages.Item[]; + messages?: Vapi.GoHighLevelContactGetToolMessagesItem[]; type: "gohighlevel.contact.get"; /** This is the unique identifier for the tool. */ id: string; @@ -102,15 +102,3 @@ export interface GoHighLevelContactGetTool { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace GoHighLevelContactGetTool { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/GoHighLevelContactGetToolMessagesItem.ts b/src/api/types/GoHighLevelContactGetToolMessagesItem.ts new file mode 100644 index 00000000..357c7793 --- /dev/null +++ b/src/api/types/GoHighLevelContactGetToolMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type GoHighLevelContactGetToolMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/GoHighLevelContactGetToolWithToolCall.ts b/src/api/types/GoHighLevelContactGetToolWithToolCall.ts index f46603ba..55519ef7 100644 --- a/src/api/types/GoHighLevelContactGetToolWithToolCall.ts +++ b/src/api/types/GoHighLevelContactGetToolWithToolCall.ts @@ -10,7 +10,7 @@ export interface GoHighLevelContactGetToolWithToolCall { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: GoHighLevelContactGetToolWithToolCall.Messages.Item[]; + messages?: Vapi.GoHighLevelContactGetToolWithToolCallMessagesItem[]; /** The type of tool. "gohighlevel.contact.get" for GoHighLevel Contact Get tool. */ type: "gohighlevel.contact.get"; toolCall: Vapi.ToolCall; @@ -96,15 +96,3 @@ export interface GoHighLevelContactGetToolWithToolCall { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace GoHighLevelContactGetToolWithToolCall { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/GoHighLevelContactGetToolWithToolCallMessagesItem.ts b/src/api/types/GoHighLevelContactGetToolWithToolCallMessagesItem.ts new file mode 100644 index 00000000..bfc1a6ec --- /dev/null +++ b/src/api/types/GoHighLevelContactGetToolWithToolCallMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type GoHighLevelContactGetToolWithToolCallMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/GoogleCalendarCheckAvailabilityTool.ts b/src/api/types/GoogleCalendarCheckAvailabilityTool.ts index 938971db..88c4e8d9 100644 --- a/src/api/types/GoogleCalendarCheckAvailabilityTool.ts +++ b/src/api/types/GoogleCalendarCheckAvailabilityTool.ts @@ -10,7 +10,7 @@ export interface GoogleCalendarCheckAvailabilityTool { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: GoogleCalendarCheckAvailabilityTool.Messages.Item[]; + messages?: Vapi.GoogleCalendarCheckAvailabilityToolMessagesItem[]; type: "google.calendar.availability.check"; /** This is the unique identifier for the tool. */ id: string; @@ -102,15 +102,3 @@ export interface GoogleCalendarCheckAvailabilityTool { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace GoogleCalendarCheckAvailabilityTool { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/GoogleCalendarCheckAvailabilityToolMessagesItem.ts b/src/api/types/GoogleCalendarCheckAvailabilityToolMessagesItem.ts new file mode 100644 index 00000000..73f2589f --- /dev/null +++ b/src/api/types/GoogleCalendarCheckAvailabilityToolMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type GoogleCalendarCheckAvailabilityToolMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/GoogleCalendarCreateEventTool.ts b/src/api/types/GoogleCalendarCreateEventTool.ts index 7c362590..95d96f1e 100644 --- a/src/api/types/GoogleCalendarCreateEventTool.ts +++ b/src/api/types/GoogleCalendarCreateEventTool.ts @@ -10,7 +10,7 @@ export interface GoogleCalendarCreateEventTool { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: GoogleCalendarCreateEventTool.Messages.Item[]; + messages?: Vapi.GoogleCalendarCreateEventToolMessagesItem[]; type: "google.calendar.event.create"; /** This is the unique identifier for the tool. */ id: string; @@ -102,15 +102,3 @@ export interface GoogleCalendarCreateEventTool { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace GoogleCalendarCreateEventTool { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/GoogleCalendarCreateEventToolMessagesItem.ts b/src/api/types/GoogleCalendarCreateEventToolMessagesItem.ts new file mode 100644 index 00000000..004a04e8 --- /dev/null +++ b/src/api/types/GoogleCalendarCreateEventToolMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type GoogleCalendarCreateEventToolMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/GoogleCalendarCreateEventToolWithToolCall.ts b/src/api/types/GoogleCalendarCreateEventToolWithToolCall.ts index aff59393..ebb59d5f 100644 --- a/src/api/types/GoogleCalendarCreateEventToolWithToolCall.ts +++ b/src/api/types/GoogleCalendarCreateEventToolWithToolCall.ts @@ -10,7 +10,7 @@ export interface GoogleCalendarCreateEventToolWithToolCall { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: GoogleCalendarCreateEventToolWithToolCall.Messages.Item[]; + messages?: Vapi.GoogleCalendarCreateEventToolWithToolCallMessagesItem[]; /** The type of tool. "google.calendar.event.create" for Google Calendar Create Event tool. */ type: "google.calendar.event.create"; toolCall: Vapi.ToolCall; @@ -96,15 +96,3 @@ export interface GoogleCalendarCreateEventToolWithToolCall { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace GoogleCalendarCreateEventToolWithToolCall { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/GoogleCalendarCreateEventToolWithToolCallMessagesItem.ts b/src/api/types/GoogleCalendarCreateEventToolWithToolCallMessagesItem.ts new file mode 100644 index 00000000..bcb4da4f --- /dev/null +++ b/src/api/types/GoogleCalendarCreateEventToolWithToolCallMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type GoogleCalendarCreateEventToolWithToolCallMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/GoogleModel.ts b/src/api/types/GoogleModel.ts index 4810937c..3ed641e3 100644 --- a/src/api/types/GoogleModel.ts +++ b/src/api/types/GoogleModel.ts @@ -12,7 +12,7 @@ export interface GoogleModel { * * Both `tools` and `toolIds` can be used together. */ - tools?: GoogleModel.Tools.Item[]; + tools?: Vapi.GoogleModelToolsItem[]; /** * These are the tools that the assistant can use during the call. To use transient tools, use `tools`. * @@ -22,7 +22,7 @@ export interface GoogleModel { /** These are the options for the knowledge base. */ knowledgeBase?: Vapi.CreateCustomKnowledgeBaseDto; /** This is the Google model that will be used. */ - model: GoogleModel.Model; + model: Vapi.GoogleModelModel; provider: "google"; /** * This is the session configuration for the Gemini Flash 2.0 Multimodal Live API. @@ -50,66 +50,3 @@ export interface GoogleModel { */ numFastTurns?: number; } - -export namespace GoogleModel { - export type Tools = Tools.Item[]; - - export namespace Tools { - export type Item = - | Vapi.CreateApiRequestToolDto - | Vapi.CreateBashToolDto - | Vapi.CreateComputerToolDto - | Vapi.CreateDtmfToolDto - | Vapi.CreateEndCallToolDto - | Vapi.CreateFunctionToolDto - | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto - | Vapi.CreateGoHighLevelCalendarEventCreateToolDto - | Vapi.CreateGoHighLevelContactCreateToolDto - | Vapi.CreateGoHighLevelContactGetToolDto - | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto - | Vapi.CreateGoogleCalendarCreateEventToolDto - | Vapi.CreateGoogleSheetsRowAppendToolDto - | Vapi.CreateHandoffToolDto - | Vapi.CreateMcpToolDto - | Vapi.CreateQueryToolDto - | Vapi.CreateSlackSendMessageToolDto - | Vapi.CreateSmsToolDto - | Vapi.CreateTextEditorToolDto - | Vapi.CreateTransferCallToolDto; - } - - /** - * This is the Google model that will be used. - */ - export type Model = - | "gemini-2.5-pro" - | "gemini-2.5-flash" - | "gemini-2.5-flash-lite" - | "gemini-2.0-flash-thinking-exp" - | "gemini-2.0-pro-exp-02-05" - | "gemini-2.0-flash" - | "gemini-2.0-flash-lite" - | "gemini-2.0-flash-exp" - | "gemini-2.0-flash-realtime-exp" - | "gemini-1.5-flash" - | "gemini-1.5-flash-002" - | "gemini-1.5-pro" - | "gemini-1.5-pro-002" - | "gemini-1.0-pro"; - export const Model = { - Gemini25Pro: "gemini-2.5-pro", - Gemini25Flash: "gemini-2.5-flash", - Gemini25FlashLite: "gemini-2.5-flash-lite", - Gemini20FlashThinkingExp: "gemini-2.0-flash-thinking-exp", - Gemini20ProExp0205: "gemini-2.0-pro-exp-02-05", - Gemini20Flash: "gemini-2.0-flash", - Gemini20FlashLite: "gemini-2.0-flash-lite", - Gemini20FlashExp: "gemini-2.0-flash-exp", - Gemini20FlashRealtimeExp: "gemini-2.0-flash-realtime-exp", - Gemini15Flash: "gemini-1.5-flash", - Gemini15Flash002: "gemini-1.5-flash-002", - Gemini15Pro: "gemini-1.5-pro", - Gemini15Pro002: "gemini-1.5-pro-002", - Gemini10Pro: "gemini-1.0-pro", - } as const; -} diff --git a/src/api/types/GoogleModelModel.ts b/src/api/types/GoogleModelModel.ts new file mode 100644 index 00000000..190649d9 --- /dev/null +++ b/src/api/types/GoogleModelModel.ts @@ -0,0 +1,38 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the Google model that will be used. + */ +export type GoogleModelModel = + | "gemini-2.5-pro" + | "gemini-2.5-flash" + | "gemini-2.5-flash-lite" + | "gemini-2.0-flash-thinking-exp" + | "gemini-2.0-pro-exp-02-05" + | "gemini-2.0-flash" + | "gemini-2.0-flash-lite" + | "gemini-2.0-flash-exp" + | "gemini-2.0-flash-realtime-exp" + | "gemini-1.5-flash" + | "gemini-1.5-flash-002" + | "gemini-1.5-pro" + | "gemini-1.5-pro-002" + | "gemini-1.0-pro"; +export const GoogleModelModel = { + Gemini25Pro: "gemini-2.5-pro", + Gemini25Flash: "gemini-2.5-flash", + Gemini25FlashLite: "gemini-2.5-flash-lite", + Gemini20FlashThinkingExp: "gemini-2.0-flash-thinking-exp", + Gemini20ProExp0205: "gemini-2.0-pro-exp-02-05", + Gemini20Flash: "gemini-2.0-flash", + Gemini20FlashLite: "gemini-2.0-flash-lite", + Gemini20FlashExp: "gemini-2.0-flash-exp", + Gemini20FlashRealtimeExp: "gemini-2.0-flash-realtime-exp", + Gemini15Flash: "gemini-1.5-flash", + Gemini15Flash002: "gemini-1.5-flash-002", + Gemini15Pro: "gemini-1.5-pro", + Gemini15Pro002: "gemini-1.5-pro-002", + Gemini10Pro: "gemini-1.0-pro", +} as const; diff --git a/src/api/types/GoogleModelToolsItem.ts b/src/api/types/GoogleModelToolsItem.ts new file mode 100644 index 00000000..935df320 --- /dev/null +++ b/src/api/types/GoogleModelToolsItem.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type GoogleModelToolsItem = + | Vapi.CreateApiRequestToolDto + | Vapi.CreateBashToolDto + | Vapi.CreateComputerToolDto + | Vapi.CreateDtmfToolDto + | Vapi.CreateEndCallToolDto + | Vapi.CreateFunctionToolDto + | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto + | Vapi.CreateGoHighLevelCalendarEventCreateToolDto + | Vapi.CreateGoHighLevelContactCreateToolDto + | Vapi.CreateGoHighLevelContactGetToolDto + | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto + | Vapi.CreateGoogleCalendarCreateEventToolDto + | Vapi.CreateGoogleSheetsRowAppendToolDto + | Vapi.CreateHandoffToolDto + | Vapi.CreateMcpToolDto + | Vapi.CreateQueryToolDto + | Vapi.CreateSlackSendMessageToolDto + | Vapi.CreateSmsToolDto + | Vapi.CreateTextEditorToolDto + | Vapi.CreateTransferCallToolDto; diff --git a/src/api/types/GoogleSheetsRowAppendTool.ts b/src/api/types/GoogleSheetsRowAppendTool.ts index a66d7e70..13532c65 100644 --- a/src/api/types/GoogleSheetsRowAppendTool.ts +++ b/src/api/types/GoogleSheetsRowAppendTool.ts @@ -10,7 +10,7 @@ export interface GoogleSheetsRowAppendTool { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: GoogleSheetsRowAppendTool.Messages.Item[]; + messages?: Vapi.GoogleSheetsRowAppendToolMessagesItem[]; type: "google.sheets.row.append"; /** This is the unique identifier for the tool. */ id: string; @@ -102,15 +102,3 @@ export interface GoogleSheetsRowAppendTool { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace GoogleSheetsRowAppendTool { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/GoogleSheetsRowAppendToolMessagesItem.ts b/src/api/types/GoogleSheetsRowAppendToolMessagesItem.ts new file mode 100644 index 00000000..4fa4eb22 --- /dev/null +++ b/src/api/types/GoogleSheetsRowAppendToolMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type GoogleSheetsRowAppendToolMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/GoogleSheetsRowAppendToolWithToolCall.ts b/src/api/types/GoogleSheetsRowAppendToolWithToolCall.ts index d2358d52..e06b67c1 100644 --- a/src/api/types/GoogleSheetsRowAppendToolWithToolCall.ts +++ b/src/api/types/GoogleSheetsRowAppendToolWithToolCall.ts @@ -10,7 +10,7 @@ export interface GoogleSheetsRowAppendToolWithToolCall { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: GoogleSheetsRowAppendToolWithToolCall.Messages.Item[]; + messages?: Vapi.GoogleSheetsRowAppendToolWithToolCallMessagesItem[]; /** The type of tool. "google.sheets.row.append" for Google Sheets Row Append tool. */ type: "google.sheets.row.append"; toolCall: Vapi.ToolCall; @@ -96,15 +96,3 @@ export interface GoogleSheetsRowAppendToolWithToolCall { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace GoogleSheetsRowAppendToolWithToolCall { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/GoogleSheetsRowAppendToolWithToolCallMessagesItem.ts b/src/api/types/GoogleSheetsRowAppendToolWithToolCallMessagesItem.ts new file mode 100644 index 00000000..871fef90 --- /dev/null +++ b/src/api/types/GoogleSheetsRowAppendToolWithToolCallMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type GoogleSheetsRowAppendToolWithToolCallMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/GoogleTranscriber.ts b/src/api/types/GoogleTranscriber.ts index ffd48b59..7863dc52 100644 --- a/src/api/types/GoogleTranscriber.ts +++ b/src/api/types/GoogleTranscriber.ts @@ -8,130 +8,9 @@ export interface GoogleTranscriber { /** This is the transcription provider that will be used. */ provider: "google"; /** This is the model that will be used for the transcription. */ - model?: GoogleTranscriber.Model; + model?: Vapi.GoogleTranscriberModel; /** This is the language that will be set for the transcription. */ - language?: GoogleTranscriber.Language; + language?: Vapi.GoogleTranscriberLanguage; /** This is the plan for voice provider fallbacks in the event that the primary voice provider fails. */ fallbackPlan?: Vapi.FallbackTranscriberPlan; } - -export namespace GoogleTranscriber { - /** - * This is the model that will be used for the transcription. - */ - export type Model = - | "gemini-2.5-pro" - | "gemini-2.5-flash" - | "gemini-2.5-flash-lite" - | "gemini-2.0-flash-thinking-exp" - | "gemini-2.0-pro-exp-02-05" - | "gemini-2.0-flash" - | "gemini-2.0-flash-lite" - | "gemini-2.0-flash-exp" - | "gemini-2.0-flash-realtime-exp" - | "gemini-1.5-flash" - | "gemini-1.5-flash-002" - | "gemini-1.5-pro" - | "gemini-1.5-pro-002" - | "gemini-1.0-pro"; - export const Model = { - Gemini25Pro: "gemini-2.5-pro", - Gemini25Flash: "gemini-2.5-flash", - Gemini25FlashLite: "gemini-2.5-flash-lite", - Gemini20FlashThinkingExp: "gemini-2.0-flash-thinking-exp", - Gemini20ProExp0205: "gemini-2.0-pro-exp-02-05", - Gemini20Flash: "gemini-2.0-flash", - Gemini20FlashLite: "gemini-2.0-flash-lite", - Gemini20FlashExp: "gemini-2.0-flash-exp", - Gemini20FlashRealtimeExp: "gemini-2.0-flash-realtime-exp", - Gemini15Flash: "gemini-1.5-flash", - Gemini15Flash002: "gemini-1.5-flash-002", - Gemini15Pro: "gemini-1.5-pro", - Gemini15Pro002: "gemini-1.5-pro-002", - Gemini10Pro: "gemini-1.0-pro", - } as const; - /** - * This is the language that will be set for the transcription. - */ - export type Language = - | "Multilingual" - | "Arabic" - | "Bengali" - | "Bulgarian" - | "Chinese" - | "Croatian" - | "Czech" - | "Danish" - | "Dutch" - | "English" - | "Estonian" - | "Finnish" - | "French" - | "German" - | "Greek" - | "Hebrew" - | "Hindi" - | "Hungarian" - | "Indonesian" - | "Italian" - | "Japanese" - | "Korean" - | "Latvian" - | "Lithuanian" - | "Norwegian" - | "Polish" - | "Portuguese" - | "Romanian" - | "Russian" - | "Serbian" - | "Slovak" - | "Slovenian" - | "Spanish" - | "Swahili" - | "Swedish" - | "Thai" - | "Turkish" - | "Ukrainian" - | "Vietnamese"; - export const Language = { - Multilingual: "Multilingual", - Arabic: "Arabic", - Bengali: "Bengali", - Bulgarian: "Bulgarian", - Chinese: "Chinese", - Croatian: "Croatian", - Czech: "Czech", - Danish: "Danish", - Dutch: "Dutch", - English: "English", - Estonian: "Estonian", - Finnish: "Finnish", - French: "French", - German: "German", - Greek: "Greek", - Hebrew: "Hebrew", - Hindi: "Hindi", - Hungarian: "Hungarian", - Indonesian: "Indonesian", - Italian: "Italian", - Japanese: "Japanese", - Korean: "Korean", - Latvian: "Latvian", - Lithuanian: "Lithuanian", - Norwegian: "Norwegian", - Polish: "Polish", - Portuguese: "Portuguese", - Romanian: "Romanian", - Russian: "Russian", - Serbian: "Serbian", - Slovak: "Slovak", - Slovenian: "Slovenian", - Spanish: "Spanish", - Swahili: "Swahili", - Swedish: "Swedish", - Thai: "Thai", - Turkish: "Turkish", - Ukrainian: "Ukrainian", - Vietnamese: "Vietnamese", - } as const; -} diff --git a/src/api/types/GoogleTranscriberLanguage.ts b/src/api/types/GoogleTranscriberLanguage.ts new file mode 100644 index 00000000..e2e983b5 --- /dev/null +++ b/src/api/types/GoogleTranscriberLanguage.ts @@ -0,0 +1,88 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the language that will be set for the transcription. + */ +export type GoogleTranscriberLanguage = + | "Multilingual" + | "Arabic" + | "Bengali" + | "Bulgarian" + | "Chinese" + | "Croatian" + | "Czech" + | "Danish" + | "Dutch" + | "English" + | "Estonian" + | "Finnish" + | "French" + | "German" + | "Greek" + | "Hebrew" + | "Hindi" + | "Hungarian" + | "Indonesian" + | "Italian" + | "Japanese" + | "Korean" + | "Latvian" + | "Lithuanian" + | "Norwegian" + | "Polish" + | "Portuguese" + | "Romanian" + | "Russian" + | "Serbian" + | "Slovak" + | "Slovenian" + | "Spanish" + | "Swahili" + | "Swedish" + | "Thai" + | "Turkish" + | "Ukrainian" + | "Vietnamese"; +export const GoogleTranscriberLanguage = { + Multilingual: "Multilingual", + Arabic: "Arabic", + Bengali: "Bengali", + Bulgarian: "Bulgarian", + Chinese: "Chinese", + Croatian: "Croatian", + Czech: "Czech", + Danish: "Danish", + Dutch: "Dutch", + English: "English", + Estonian: "Estonian", + Finnish: "Finnish", + French: "French", + German: "German", + Greek: "Greek", + Hebrew: "Hebrew", + Hindi: "Hindi", + Hungarian: "Hungarian", + Indonesian: "Indonesian", + Italian: "Italian", + Japanese: "Japanese", + Korean: "Korean", + Latvian: "Latvian", + Lithuanian: "Lithuanian", + Norwegian: "Norwegian", + Polish: "Polish", + Portuguese: "Portuguese", + Romanian: "Romanian", + Russian: "Russian", + Serbian: "Serbian", + Slovak: "Slovak", + Slovenian: "Slovenian", + Spanish: "Spanish", + Swahili: "Swahili", + Swedish: "Swedish", + Thai: "Thai", + Turkish: "Turkish", + Ukrainian: "Ukrainian", + Vietnamese: "Vietnamese", +} as const; diff --git a/src/api/types/GoogleTranscriberModel.ts b/src/api/types/GoogleTranscriberModel.ts new file mode 100644 index 00000000..d7456845 --- /dev/null +++ b/src/api/types/GoogleTranscriberModel.ts @@ -0,0 +1,38 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the model that will be used for the transcription. + */ +export type GoogleTranscriberModel = + | "gemini-2.5-pro" + | "gemini-2.5-flash" + | "gemini-2.5-flash-lite" + | "gemini-2.0-flash-thinking-exp" + | "gemini-2.0-pro-exp-02-05" + | "gemini-2.0-flash" + | "gemini-2.0-flash-lite" + | "gemini-2.0-flash-exp" + | "gemini-2.0-flash-realtime-exp" + | "gemini-1.5-flash" + | "gemini-1.5-flash-002" + | "gemini-1.5-pro" + | "gemini-1.5-pro-002" + | "gemini-1.0-pro"; +export const GoogleTranscriberModel = { + Gemini25Pro: "gemini-2.5-pro", + Gemini25Flash: "gemini-2.5-flash", + Gemini25FlashLite: "gemini-2.5-flash-lite", + Gemini20FlashThinkingExp: "gemini-2.0-flash-thinking-exp", + Gemini20ProExp0205: "gemini-2.0-pro-exp-02-05", + Gemini20Flash: "gemini-2.0-flash", + Gemini20FlashLite: "gemini-2.0-flash-lite", + Gemini20FlashExp: "gemini-2.0-flash-exp", + Gemini20FlashRealtimeExp: "gemini-2.0-flash-realtime-exp", + Gemini15Flash: "gemini-1.5-flash", + Gemini15Flash002: "gemini-1.5-flash-002", + Gemini15Pro: "gemini-1.5-pro", + Gemini15Pro002: "gemini-1.5-pro-002", + Gemini10Pro: "gemini-1.0-pro", +} as const; diff --git a/src/api/types/GoogleVoicemailDetectionPlan.ts b/src/api/types/GoogleVoicemailDetectionPlan.ts index 4701967b..e14892b8 100644 --- a/src/api/types/GoogleVoicemailDetectionPlan.ts +++ b/src/api/types/GoogleVoicemailDetectionPlan.ts @@ -27,19 +27,5 @@ export interface GoogleVoicemailDetectionPlan { * - 'transcript': Uses ASR/transcript-based detection * @default 'audio' (audio detection) */ - type?: GoogleVoicemailDetectionPlan.Type; -} - -export namespace GoogleVoicemailDetectionPlan { - /** - * This is the detection type to use for voicemail detection. - * - 'audio': Uses native audio models (default) - * - 'transcript': Uses ASR/transcript-based detection - * @default 'audio' (audio detection) - */ - export type Type = "audio" | "transcript"; - export const Type = { - Audio: "audio", - Transcript: "transcript", - } as const; + type?: Vapi.GoogleVoicemailDetectionPlanType; } diff --git a/src/api/types/GoogleVoicemailDetectionPlanType.ts b/src/api/types/GoogleVoicemailDetectionPlanType.ts new file mode 100644 index 00000000..a08fd8c3 --- /dev/null +++ b/src/api/types/GoogleVoicemailDetectionPlanType.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the detection type to use for voicemail detection. + * - 'audio': Uses native audio models (default) + * - 'transcript': Uses ASR/transcript-based detection + * @default 'audio' (audio detection) + */ +export type GoogleVoicemailDetectionPlanType = "audio" | "transcript"; +export const GoogleVoicemailDetectionPlanType = { + Audio: "audio", + Transcript: "transcript", +} as const; diff --git a/src/api/types/GroqModel.ts b/src/api/types/GroqModel.ts index 26cfd986..544dff72 100644 --- a/src/api/types/GroqModel.ts +++ b/src/api/types/GroqModel.ts @@ -12,7 +12,7 @@ export interface GroqModel { * * Both `tools` and `toolIds` can be used together. */ - tools?: GroqModel.Tools.Item[]; + tools?: Vapi.GroqModelToolsItem[]; /** * These are the tools that the assistant can use during the call. To use transient tools, use `tools`. * @@ -22,7 +22,7 @@ export interface GroqModel { /** These are the options for the knowledge base. */ knowledgeBase?: Vapi.CreateCustomKnowledgeBaseDto; /** This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b */ - model: GroqModel.Model; + model: Vapi.GroqModelModel; provider: "groq"; /** This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency. */ temperature?: number; @@ -45,68 +45,3 @@ export interface GroqModel { */ numFastTurns?: number; } - -export namespace GroqModel { - export type Tools = Tools.Item[]; - - export namespace Tools { - export type Item = - | Vapi.CreateApiRequestToolDto - | Vapi.CreateBashToolDto - | Vapi.CreateComputerToolDto - | Vapi.CreateDtmfToolDto - | Vapi.CreateEndCallToolDto - | Vapi.CreateFunctionToolDto - | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto - | Vapi.CreateGoHighLevelCalendarEventCreateToolDto - | Vapi.CreateGoHighLevelContactCreateToolDto - | Vapi.CreateGoHighLevelContactGetToolDto - | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto - | Vapi.CreateGoogleCalendarCreateEventToolDto - | Vapi.CreateGoogleSheetsRowAppendToolDto - | Vapi.CreateHandoffToolDto - | Vapi.CreateMcpToolDto - | Vapi.CreateQueryToolDto - | Vapi.CreateSlackSendMessageToolDto - | Vapi.CreateSmsToolDto - | Vapi.CreateTextEditorToolDto - | Vapi.CreateTransferCallToolDto; - } - - /** - * This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b - */ - export type Model = - | "openai/gpt-oss-20b" - | "openai/gpt-oss-120b" - | "deepseek-r1-distill-llama-70b" - | "llama-3.3-70b-versatile" - | "llama-3.1-405b-reasoning" - | "llama-3.1-8b-instant" - | "llama3-8b-8192" - | "llama3-70b-8192" - | "gemma2-9b-it" - | "moonshotai/kimi-k2-instruct-0905" - | "meta-llama/llama-4-maverick-17b-128e-instruct" - | "meta-llama/llama-4-scout-17b-16e-instruct" - | "mistral-saba-24b" - | "compound-beta" - | "compound-beta-mini"; - export const Model = { - OpenaiGptOss20B: "openai/gpt-oss-20b", - OpenaiGptOss120B: "openai/gpt-oss-120b", - DeepseekR1DistillLlama70B: "deepseek-r1-distill-llama-70b", - Llama3370BVersatile: "llama-3.3-70b-versatile", - Llama31405BReasoning: "llama-3.1-405b-reasoning", - Llama318BInstant: "llama-3.1-8b-instant", - Llama38B8192: "llama3-8b-8192", - Llama370B8192: "llama3-70b-8192", - Gemma29BIt: "gemma2-9b-it", - MoonshotaiKimiK2Instruct0905: "moonshotai/kimi-k2-instruct-0905", - MetaLlamaLlama4Maverick17B128EInstruct: "meta-llama/llama-4-maverick-17b-128e-instruct", - MetaLlamaLlama4Scout17B16EInstruct: "meta-llama/llama-4-scout-17b-16e-instruct", - MistralSaba24B: "mistral-saba-24b", - CompoundBeta: "compound-beta", - CompoundBetaMini: "compound-beta-mini", - } as const; -} diff --git a/src/api/types/GroqModelModel.ts b/src/api/types/GroqModelModel.ts new file mode 100644 index 00000000..ba7ba545 --- /dev/null +++ b/src/api/types/GroqModelModel.ts @@ -0,0 +1,40 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b + */ +export type GroqModelModel = + | "openai/gpt-oss-20b" + | "openai/gpt-oss-120b" + | "deepseek-r1-distill-llama-70b" + | "llama-3.3-70b-versatile" + | "llama-3.1-405b-reasoning" + | "llama-3.1-8b-instant" + | "llama3-8b-8192" + | "llama3-70b-8192" + | "gemma2-9b-it" + | "moonshotai/kimi-k2-instruct-0905" + | "meta-llama/llama-4-maverick-17b-128e-instruct" + | "meta-llama/llama-4-scout-17b-16e-instruct" + | "mistral-saba-24b" + | "compound-beta" + | "compound-beta-mini"; +export const GroqModelModel = { + OpenaiGptOss20B: "openai/gpt-oss-20b", + OpenaiGptOss120B: "openai/gpt-oss-120b", + DeepseekR1DistillLlama70B: "deepseek-r1-distill-llama-70b", + Llama3370BVersatile: "llama-3.3-70b-versatile", + Llama31405BReasoning: "llama-3.1-405b-reasoning", + Llama318BInstant: "llama-3.1-8b-instant", + Llama38B8192: "llama3-8b-8192", + Llama370B8192: "llama3-70b-8192", + Gemma29BIt: "gemma2-9b-it", + MoonshotaiKimiK2Instruct0905: "moonshotai/kimi-k2-instruct-0905", + MetaLlamaLlama4Maverick17B128EInstruct: "meta-llama/llama-4-maverick-17b-128e-instruct", + MetaLlamaLlama4Scout17B16EInstruct: "meta-llama/llama-4-scout-17b-16e-instruct", + MistralSaba24B: "mistral-saba-24b", + CompoundBeta: "compound-beta", + CompoundBetaMini: "compound-beta-mini", +} as const; diff --git a/src/api/types/GroqModelToolsItem.ts b/src/api/types/GroqModelToolsItem.ts new file mode 100644 index 00000000..cce6ae7f --- /dev/null +++ b/src/api/types/GroqModelToolsItem.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type GroqModelToolsItem = + | Vapi.CreateApiRequestToolDto + | Vapi.CreateBashToolDto + | Vapi.CreateComputerToolDto + | Vapi.CreateDtmfToolDto + | Vapi.CreateEndCallToolDto + | Vapi.CreateFunctionToolDto + | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto + | Vapi.CreateGoHighLevelCalendarEventCreateToolDto + | Vapi.CreateGoHighLevelContactCreateToolDto + | Vapi.CreateGoHighLevelContactGetToolDto + | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto + | Vapi.CreateGoogleCalendarCreateEventToolDto + | Vapi.CreateGoogleSheetsRowAppendToolDto + | Vapi.CreateHandoffToolDto + | Vapi.CreateMcpToolDto + | Vapi.CreateQueryToolDto + | Vapi.CreateSlackSendMessageToolDto + | Vapi.CreateSmsToolDto + | Vapi.CreateTextEditorToolDto + | Vapi.CreateTransferCallToolDto; diff --git a/src/api/types/GroupCondition.ts b/src/api/types/GroupCondition.ts index e762b59a..4b310b09 100644 --- a/src/api/types/GroupCondition.ts +++ b/src/api/types/GroupCondition.ts @@ -8,31 +8,10 @@ export interface GroupCondition { /** This is the type discriminator for group condition */ type: "group"; /** This is the logical operator for combining conditions in this group */ - operator: GroupCondition.Operator; + operator: Vapi.GroupConditionOperator; /** * This is the list of nested conditions to evaluate. * Supports recursive nesting of groups for complex logic. */ - conditions: GroupCondition.Conditions.Item[]; -} - -export namespace GroupCondition { - /** - * This is the logical operator for combining conditions in this group - */ - export type Operator = "AND" | "OR"; - export const Operator = { - And: "AND", - Or: "OR", - } as const; - export type Conditions = Conditions.Item[]; - - export namespace Conditions { - export type Item = - | Vapi.RegexCondition - | Vapi.LiquidCondition - /** - * This is the GroupCondition object but Swagger does not display nested schemas correctly. */ - | Vapi.GroupCondition; - } + conditions: Vapi.GroupConditionConditionsItem[]; } diff --git a/src/api/types/GroupConditionConditionsItem.ts b/src/api/types/GroupConditionConditionsItem.ts new file mode 100644 index 00000000..8dae1296 --- /dev/null +++ b/src/api/types/GroupConditionConditionsItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type GroupConditionConditionsItem = + | Vapi.RegexCondition + | Vapi.LiquidCondition + /** + * This is the GroupCondition object but Swagger does not display nested schemas correctly. */ + | Vapi.GroupCondition; diff --git a/src/api/types/GroupConditionOperator.ts b/src/api/types/GroupConditionOperator.ts new file mode 100644 index 00000000..39bb486a --- /dev/null +++ b/src/api/types/GroupConditionOperator.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the logical operator for combining conditions in this group + */ +export type GroupConditionOperator = "AND" | "OR"; +export const GroupConditionOperator = { + And: "AND", + Or: "OR", +} as const; diff --git a/src/api/types/HandoffDestinationAssistant.ts b/src/api/types/HandoffDestinationAssistant.ts index 3b388e43..293a06ea 100644 --- a/src/api/types/HandoffDestinationAssistant.ts +++ b/src/api/types/HandoffDestinationAssistant.ts @@ -7,7 +7,7 @@ import * as Vapi from "../index.js"; export interface HandoffDestinationAssistant { type: "assistant"; /** This is the plan for manipulating the message context before handing off the call to the next assistant. */ - contextEngineeringPlan?: HandoffDestinationAssistant.ContextEngineeringPlan; + contextEngineeringPlan?: Vapi.HandoffDestinationAssistantContextEngineeringPlan; /** This is the assistant to transfer the call to. You must provide either assistantName or assistantId. */ assistantName?: string; /** This is the assistant id to transfer the call to. You must provide either assistantName or assistantId. */ @@ -19,13 +19,3 @@ export interface HandoffDestinationAssistant { /** This is the description of the destination, used by the AI to choose when and how to transfer the call. */ description?: string; } - -export namespace HandoffDestinationAssistant { - /** - * This is the plan for manipulating the message context before handing off the call to the next assistant. - */ - export type ContextEngineeringPlan = - | Vapi.ContextEngineeringPlanLastNMessages - | Vapi.ContextEngineeringPlanNone - | Vapi.ContextEngineeringPlanAll; -} diff --git a/src/api/types/HandoffDestinationAssistantContextEngineeringPlan.ts b/src/api/types/HandoffDestinationAssistantContextEngineeringPlan.ts new file mode 100644 index 00000000..86fd5bd8 --- /dev/null +++ b/src/api/types/HandoffDestinationAssistantContextEngineeringPlan.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the plan for manipulating the message context before handing off the call to the next assistant. + */ +export type HandoffDestinationAssistantContextEngineeringPlan = + | Vapi.ContextEngineeringPlanLastNMessages + | Vapi.ContextEngineeringPlanNone + | Vapi.ContextEngineeringPlanAll; diff --git a/src/api/types/HandoffTool.ts b/src/api/types/HandoffTool.ts index f3ad1eab..a5335b3d 100644 --- a/src/api/types/HandoffTool.ts +++ b/src/api/types/HandoffTool.ts @@ -10,7 +10,7 @@ export interface HandoffTool { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: HandoffTool.Messages.Item[]; + messages?: Vapi.HandoffToolMessagesItem[]; type: "handoff"; /** * These are the destinations that the call can be handed off to. @@ -181,7 +181,7 @@ export interface HandoffTool { * * The properties `customerAreaCode`, `customerIntent`, and `customerSentiment` will be passed to the server in the webhook request body. */ - destinations?: HandoffTool.Destinations.Item[]; + destinations?: Vapi.HandoffToolDestinationsItem[]; /** This is the unique identifier for the tool. */ id: string; /** This is the unique identifier for the organization that this tool belongs to. */ @@ -374,21 +374,3 @@ export interface HandoffTool { */ function?: Vapi.OpenAiFunction; } - -export namespace HandoffTool { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } - - export type Destinations = Destinations.Item[]; - - export namespace Destinations { - export type Item = Vapi.HandoffDestinationAssistant | Vapi.HandoffDestinationDynamic; - } -} diff --git a/src/api/types/HandoffToolDestinationsItem.ts b/src/api/types/HandoffToolDestinationsItem.ts new file mode 100644 index 00000000..597dac31 --- /dev/null +++ b/src/api/types/HandoffToolDestinationsItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type HandoffToolDestinationsItem = Vapi.HandoffDestinationAssistant | Vapi.HandoffDestinationDynamic; diff --git a/src/api/types/HandoffToolMessagesItem.ts b/src/api/types/HandoffToolMessagesItem.ts new file mode 100644 index 00000000..7250d552 --- /dev/null +++ b/src/api/types/HandoffToolMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type HandoffToolMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/HmacAuthenticationPlan.ts b/src/api/types/HmacAuthenticationPlan.ts index 534c081a..6316df3a 100644 --- a/src/api/types/HmacAuthenticationPlan.ts +++ b/src/api/types/HmacAuthenticationPlan.ts @@ -2,12 +2,14 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface HmacAuthenticationPlan { type: "hmac"; /** This is the HMAC secret key used to sign requests. */ secretKey: string; /** This is the HMAC algorithm to use for signing. */ - algorithm: HmacAuthenticationPlan.Algorithm; + algorithm: Vapi.HmacAuthenticationPlanAlgorithm; /** This is the header name where the signature will be sent. Defaults to 'x-signature'. */ signatureHeader?: string; /** This is the header name where the timestamp will be sent. Defaults to 'x-timestamp'. */ @@ -21,27 +23,7 @@ export interface HmacAuthenticationPlan { /** This is the header name where the unique message ID will be sent. Used for Svix-style webhooks. */ messageIdHeader?: string; /** The encoding format for the signature. Defaults to 'hex'. */ - signatureEncoding?: HmacAuthenticationPlan.SignatureEncoding; + signatureEncoding?: Vapi.HmacAuthenticationPlanSignatureEncoding; /** Whether the secret key is base64-encoded and should be decoded before use. Defaults to false. */ secretIsBase64?: boolean; } - -export namespace HmacAuthenticationPlan { - /** - * This is the HMAC algorithm to use for signing. - */ - export type Algorithm = "sha256" | "sha512" | "sha1"; - export const Algorithm = { - Sha256: "sha256", - Sha512: "sha512", - Sha1: "sha1", - } as const; - /** - * The encoding format for the signature. Defaults to 'hex'. - */ - export type SignatureEncoding = "hex" | "base64"; - export const SignatureEncoding = { - Hex: "hex", - Base64: "base64", - } as const; -} diff --git a/src/api/types/HmacAuthenticationPlanAlgorithm.ts b/src/api/types/HmacAuthenticationPlanAlgorithm.ts new file mode 100644 index 00000000..8071cc75 --- /dev/null +++ b/src/api/types/HmacAuthenticationPlanAlgorithm.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the HMAC algorithm to use for signing. + */ +export type HmacAuthenticationPlanAlgorithm = "sha256" | "sha512" | "sha1"; +export const HmacAuthenticationPlanAlgorithm = { + Sha256: "sha256", + Sha512: "sha512", + Sha1: "sha1", +} as const; diff --git a/src/api/types/HmacAuthenticationPlanSignatureEncoding.ts b/src/api/types/HmacAuthenticationPlanSignatureEncoding.ts new file mode 100644 index 00000000..b32e8135 --- /dev/null +++ b/src/api/types/HmacAuthenticationPlanSignatureEncoding.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * The encoding format for the signature. Defaults to 'hex'. + */ +export type HmacAuthenticationPlanSignatureEncoding = "hex" | "base64"; +export const HmacAuthenticationPlanSignatureEncoding = { + Hex: "hex", + Base64: "base64", +} as const; diff --git a/src/api/types/HumeVoice.ts b/src/api/types/HumeVoice.ts index db15a9b6..038827a2 100644 --- a/src/api/types/HumeVoice.ts +++ b/src/api/types/HumeVoice.ts @@ -10,7 +10,7 @@ export interface HumeVoice { /** This is the voice provider that will be used. */ provider: "hume"; /** This is the model that will be used. */ - model?: HumeVoice.Model; + model?: Vapi.HumeVoiceModel; /** The ID of the particular voice you want to use. */ voiceId: string; /** Indicates whether the chosen voice is a preset Hume AI voice or a custom voice. */ @@ -27,14 +27,3 @@ export interface HumeVoice { /** This is the plan for voice provider fallbacks in the event that the primary voice provider fails. */ fallbackPlan?: Vapi.FallbackPlan; } - -export namespace HumeVoice { - /** - * This is the model that will be used. - */ - export type Model = "octave" | "octave2"; - export const Model = { - Octave: "octave", - Octave2: "octave2", - } as const; -} diff --git a/src/api/types/HumeVoiceModel.ts b/src/api/types/HumeVoiceModel.ts new file mode 100644 index 00000000..5bbf2bc3 --- /dev/null +++ b/src/api/types/HumeVoiceModel.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the model that will be used. + */ +export type HumeVoiceModel = "octave" | "octave2"; +export const HumeVoiceModel = { + Octave: "octave", + Octave2: "octave2", +} as const; diff --git a/src/api/types/ImportTwilioPhoneNumberDto.ts b/src/api/types/ImportTwilioPhoneNumberDto.ts index fb0069b0..e928526b 100644 --- a/src/api/types/ImportTwilioPhoneNumberDto.ts +++ b/src/api/types/ImportTwilioPhoneNumberDto.ts @@ -13,9 +13,9 @@ export interface ImportTwilioPhoneNumberDto { * * If this is not set and above conditions are met, the inbound call is hung up with an error message. */ - fallbackDestination?: ImportTwilioPhoneNumberDto.FallbackDestination; + fallbackDestination?: Vapi.ImportTwilioPhoneNumberDtoFallbackDestination; /** This is the hooks that will be used for incoming calls to this phone number. */ - hooks?: ImportTwilioPhoneNumberDto.Hooks.Item[]; + hooks?: Vapi.ImportTwilioPhoneNumberDtoHooksItem[]; /** * Controls whether Vapi sets the messaging webhook URL on the Twilio number during import. * @@ -66,20 +66,3 @@ export interface ImportTwilioPhoneNumberDto { */ server?: Vapi.Server; } - -export namespace ImportTwilioPhoneNumberDto { - /** - * This is the fallback destination an inbound call will be transferred to if: - * 1. `assistantId` is not set - * 2. `squadId` is not set - * 3. and, `assistant-request` message to the `serverUrl` fails - * - * If this is not set and above conditions are met, the inbound call is hung up with an error message. - */ - export type FallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; - export type Hooks = Hooks.Item[]; - - export namespace Hooks { - export type Item = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; - } -} diff --git a/src/api/types/ImportTwilioPhoneNumberDtoFallbackDestination.ts b/src/api/types/ImportTwilioPhoneNumberDtoFallbackDestination.ts new file mode 100644 index 00000000..ba41f54c --- /dev/null +++ b/src/api/types/ImportTwilioPhoneNumberDtoFallbackDestination.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the fallback destination an inbound call will be transferred to if: + * 1. `assistantId` is not set + * 2. `squadId` is not set + * 3. and, `assistant-request` message to the `serverUrl` fails + * + * If this is not set and above conditions are met, the inbound call is hung up with an error message. + */ +export type ImportTwilioPhoneNumberDtoFallbackDestination = + | Vapi.TransferDestinationNumber + | Vapi.TransferDestinationSip; diff --git a/src/api/types/ImportTwilioPhoneNumberDtoHooksItem.ts b/src/api/types/ImportTwilioPhoneNumberDtoHooksItem.ts new file mode 100644 index 00000000..eb29345c --- /dev/null +++ b/src/api/types/ImportTwilioPhoneNumberDtoHooksItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type ImportTwilioPhoneNumberDtoHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; diff --git a/src/api/types/ImportVonagePhoneNumberDto.ts b/src/api/types/ImportVonagePhoneNumberDto.ts index 5a5bdf70..62bf062b 100644 --- a/src/api/types/ImportVonagePhoneNumberDto.ts +++ b/src/api/types/ImportVonagePhoneNumberDto.ts @@ -13,9 +13,9 @@ export interface ImportVonagePhoneNumberDto { * * If this is not set and above conditions are met, the inbound call is hung up with an error message. */ - fallbackDestination?: ImportVonagePhoneNumberDto.FallbackDestination; + fallbackDestination?: Vapi.ImportVonagePhoneNumberDtoFallbackDestination; /** This is the hooks that will be used for incoming calls to this phone number. */ - hooks?: ImportVonagePhoneNumberDto.Hooks.Item[]; + hooks?: Vapi.ImportVonagePhoneNumberDtoHooksItem[]; /** These are the digits of the phone number you own on your Vonage. */ vonagePhoneNumber: string; /** This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups. */ @@ -51,20 +51,3 @@ export interface ImportVonagePhoneNumberDto { */ server?: Vapi.Server; } - -export namespace ImportVonagePhoneNumberDto { - /** - * This is the fallback destination an inbound call will be transferred to if: - * 1. `assistantId` is not set - * 2. `squadId` is not set - * 3. and, `assistant-request` message to the `serverUrl` fails - * - * If this is not set and above conditions are met, the inbound call is hung up with an error message. - */ - export type FallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; - export type Hooks = Hooks.Item[]; - - export namespace Hooks { - export type Item = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; - } -} diff --git a/src/api/types/ImportVonagePhoneNumberDtoFallbackDestination.ts b/src/api/types/ImportVonagePhoneNumberDtoFallbackDestination.ts new file mode 100644 index 00000000..e84ad20e --- /dev/null +++ b/src/api/types/ImportVonagePhoneNumberDtoFallbackDestination.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the fallback destination an inbound call will be transferred to if: + * 1. `assistantId` is not set + * 2. `squadId` is not set + * 3. and, `assistant-request` message to the `serverUrl` fails + * + * If this is not set and above conditions are met, the inbound call is hung up with an error message. + */ +export type ImportVonagePhoneNumberDtoFallbackDestination = + | Vapi.TransferDestinationNumber + | Vapi.TransferDestinationSip; diff --git a/src/api/types/ImportVonagePhoneNumberDtoHooksItem.ts b/src/api/types/ImportVonagePhoneNumberDtoHooksItem.ts new file mode 100644 index 00000000..a1039000 --- /dev/null +++ b/src/api/types/ImportVonagePhoneNumberDtoHooksItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type ImportVonagePhoneNumberDtoHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; diff --git a/src/api/types/InflectionAiModel.ts b/src/api/types/InflectionAiModel.ts index 3e632d20..6e0a20aa 100644 --- a/src/api/types/InflectionAiModel.ts +++ b/src/api/types/InflectionAiModel.ts @@ -12,7 +12,7 @@ export interface InflectionAiModel { * * Both `tools` and `toolIds` can be used together. */ - tools?: InflectionAiModel.Tools.Item[]; + tools?: Vapi.InflectionAiModelToolsItem[]; /** * These are the tools that the assistant can use during the call. To use transient tools, use `tools`. * @@ -45,31 +45,3 @@ export interface InflectionAiModel { */ numFastTurns?: number; } - -export namespace InflectionAiModel { - export type Tools = Tools.Item[]; - - export namespace Tools { - export type Item = - | Vapi.CreateApiRequestToolDto - | Vapi.CreateBashToolDto - | Vapi.CreateComputerToolDto - | Vapi.CreateDtmfToolDto - | Vapi.CreateEndCallToolDto - | Vapi.CreateFunctionToolDto - | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto - | Vapi.CreateGoHighLevelCalendarEventCreateToolDto - | Vapi.CreateGoHighLevelContactCreateToolDto - | Vapi.CreateGoHighLevelContactGetToolDto - | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto - | Vapi.CreateGoogleCalendarCreateEventToolDto - | Vapi.CreateGoogleSheetsRowAppendToolDto - | Vapi.CreateHandoffToolDto - | Vapi.CreateMcpToolDto - | Vapi.CreateQueryToolDto - | Vapi.CreateSlackSendMessageToolDto - | Vapi.CreateSmsToolDto - | Vapi.CreateTextEditorToolDto - | Vapi.CreateTransferCallToolDto; - } -} diff --git a/src/api/types/InflectionAiModelToolsItem.ts b/src/api/types/InflectionAiModelToolsItem.ts new file mode 100644 index 00000000..15fa103c --- /dev/null +++ b/src/api/types/InflectionAiModelToolsItem.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type InflectionAiModelToolsItem = + | Vapi.CreateApiRequestToolDto + | Vapi.CreateBashToolDto + | Vapi.CreateComputerToolDto + | Vapi.CreateDtmfToolDto + | Vapi.CreateEndCallToolDto + | Vapi.CreateFunctionToolDto + | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto + | Vapi.CreateGoHighLevelCalendarEventCreateToolDto + | Vapi.CreateGoHighLevelContactCreateToolDto + | Vapi.CreateGoHighLevelContactGetToolDto + | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto + | Vapi.CreateGoogleCalendarCreateEventToolDto + | Vapi.CreateGoogleSheetsRowAppendToolDto + | Vapi.CreateHandoffToolDto + | Vapi.CreateMcpToolDto + | Vapi.CreateQueryToolDto + | Vapi.CreateSlackSendMessageToolDto + | Vapi.CreateSmsToolDto + | Vapi.CreateTextEditorToolDto + | Vapi.CreateTransferCallToolDto; diff --git a/src/api/types/InviteUserDto.ts b/src/api/types/InviteUserDto.ts index 566784de..176c3cb7 100644 --- a/src/api/types/InviteUserDto.ts +++ b/src/api/types/InviteUserDto.ts @@ -2,17 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface InviteUserDto { emails: string[]; - role: InviteUserDto.Role; + role: Vapi.InviteUserDtoRole; redirectTo?: string; } - -export namespace InviteUserDto { - export type Role = "admin" | "editor" | "viewer"; - export const Role = { - Admin: "admin", - Editor: "editor", - Viewer: "viewer", - } as const; -} diff --git a/src/api/types/InviteUserDtoRole.ts b/src/api/types/InviteUserDtoRole.ts new file mode 100644 index 00000000..5db6a965 --- /dev/null +++ b/src/api/types/InviteUserDtoRole.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type InviteUserDtoRole = "admin" | "editor" | "viewer"; +export const InviteUserDtoRole = { + Admin: "admin", + Editor: "editor", + Viewer: "viewer", +} as const; diff --git a/src/api/types/InworldVoice.ts b/src/api/types/InworldVoice.ts index ca271696..621db0c4 100644 --- a/src/api/types/InworldVoice.ts +++ b/src/api/types/InworldVoice.ts @@ -23,150 +23,13 @@ export interface InworldVoice { * • pt: Heitor, Maitê * • es: Diego, Lupita, Miguel, Rafael */ - voiceId: InworldVoice.VoiceId; + voiceId: Vapi.InworldVoiceVoiceId; /** This is the model that will be used. */ model?: "inworld-tts-1"; /** Language code for Inworld TTS synthesis */ - languageCode?: InworldVoice.LanguageCode; + languageCode?: Vapi.InworldVoiceLanguageCode; /** This is the plan for chunking the model output before it is sent to the voice provider. */ chunkPlan?: Vapi.ChunkPlan; /** This is the plan for voice provider fallbacks in the event that the primary voice provider fails. */ fallbackPlan?: Vapi.FallbackPlan; } - -export namespace InworldVoice { - /** - * Available voices by language: - * • en: Alex, Ashley, Craig, Deborah, Dennis, Edward, Elizabeth, Hades, Julia, Pixie, Mark, Olivia, Priya, Ronald, Sarah, Shaun, Theodore, Timothy, Wendy, Dominus - * • zh: Yichen, Xiaoyin, Xinyi, Jing - * • nl: Erik, Katrien, Lennart, Lore - * • fr: Alain, Hélène, Mathieu, Étienne - * • de: Johanna, Josef - * • it: Gianni, Orietta - * • ja: Asuka, Satoshi - * • ko: Hyunwoo, Minji, Seojun, Yoona - * • pl: Szymon, Wojciech - * • pt: Heitor, Maitê - * • es: Diego, Lupita, Miguel, Rafael - */ - export type VoiceId = - | "Alex" - | "Ashley" - | "Craig" - | "Deborah" - | "Dennis" - | "Edward" - | "Elizabeth" - | "Hades" - | "Julia" - | "Pixie" - | "Mark" - | "Olivia" - | "Priya" - | "Ronald" - | "Sarah" - | "Shaun" - | "Theodore" - | "Timothy" - | "Wendy" - | "Dominus" - | "Yichen" - | "Xiaoyin" - | "Xinyi" - | "Jing" - | "Erik" - | "Katrien" - | "Lennart" - | "Lore" - | "Alain" - | "H\u00E9l\u00E8ne" - | "Mathieu" - | "\u00C9tienne" - | "Johanna" - | "Josef" - | "Gianni" - | "Orietta" - | "Asuka" - | "Satoshi" - | "Hyunwoo" - | "Minji" - | "Seojun" - | "Yoona" - | "Szymon" - | "Wojciech" - | "Heitor" - | "Mait\u00EA" - | "Diego" - | "Lupita" - | "Miguel" - | "Rafael"; - export const VoiceId = { - Alex: "Alex", - Ashley: "Ashley", - Craig: "Craig", - Deborah: "Deborah", - Dennis: "Dennis", - Edward: "Edward", - Elizabeth: "Elizabeth", - Hades: "Hades", - Julia: "Julia", - Pixie: "Pixie", - Mark: "Mark", - Olivia: "Olivia", - Priya: "Priya", - Ronald: "Ronald", - Sarah: "Sarah", - Shaun: "Shaun", - Theodore: "Theodore", - Timothy: "Timothy", - Wendy: "Wendy", - Dominus: "Dominus", - Yichen: "Yichen", - Xiaoyin: "Xiaoyin", - Xinyi: "Xinyi", - Jing: "Jing", - Erik: "Erik", - Katrien: "Katrien", - Lennart: "Lennart", - Lore: "Lore", - Alain: "Alain", - Helene: "H\u00E9l\u00E8ne", - Mathieu: "Mathieu", - Etienne: "\u00C9tienne", - Johanna: "Johanna", - Josef: "Josef", - Gianni: "Gianni", - Orietta: "Orietta", - Asuka: "Asuka", - Satoshi: "Satoshi", - Hyunwoo: "Hyunwoo", - Minji: "Minji", - Seojun: "Seojun", - Yoona: "Yoona", - Szymon: "Szymon", - Wojciech: "Wojciech", - Heitor: "Heitor", - Maite: "Mait\u00EA", - Diego: "Diego", - Lupita: "Lupita", - Miguel: "Miguel", - Rafael: "Rafael", - } as const; - /** - * Language code for Inworld TTS synthesis - */ - export type LanguageCode = "en" | "zh" | "ko" | "nl" | "fr" | "es" | "ja" | "de" | "it" | "pl" | "pt"; - export const LanguageCode = { - En: "en", - Zh: "zh", - Ko: "ko", - Nl: "nl", - Fr: "fr", - Es: "es", - Ja: "ja", - De: "de", - It: "it", - Pl: "pl", - Pt: "pt", - } as const; -} diff --git a/src/api/types/InworldVoiceLanguageCode.ts b/src/api/types/InworldVoiceLanguageCode.ts new file mode 100644 index 00000000..4533662b --- /dev/null +++ b/src/api/types/InworldVoiceLanguageCode.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Language code for Inworld TTS synthesis + */ +export type InworldVoiceLanguageCode = "en" | "zh" | "ko" | "nl" | "fr" | "es" | "ja" | "de" | "it" | "pl" | "pt"; +export const InworldVoiceLanguageCode = { + En: "en", + Zh: "zh", + Ko: "ko", + Nl: "nl", + Fr: "fr", + Es: "es", + Ja: "ja", + De: "de", + It: "it", + Pl: "pl", + Pt: "pt", +} as const; diff --git a/src/api/types/InworldVoiceVoiceId.ts b/src/api/types/InworldVoiceVoiceId.ts new file mode 100644 index 00000000..678a19a8 --- /dev/null +++ b/src/api/types/InworldVoiceVoiceId.ts @@ -0,0 +1,121 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Available voices by language: + * • en: Alex, Ashley, Craig, Deborah, Dennis, Edward, Elizabeth, Hades, Julia, Pixie, Mark, Olivia, Priya, Ronald, Sarah, Shaun, Theodore, Timothy, Wendy, Dominus + * • zh: Yichen, Xiaoyin, Xinyi, Jing + * • nl: Erik, Katrien, Lennart, Lore + * • fr: Alain, Hélène, Mathieu, Étienne + * • de: Johanna, Josef + * • it: Gianni, Orietta + * • ja: Asuka, Satoshi + * • ko: Hyunwoo, Minji, Seojun, Yoona + * • pl: Szymon, Wojciech + * • pt: Heitor, Maitê + * • es: Diego, Lupita, Miguel, Rafael + */ +export type InworldVoiceVoiceId = + | "Alex" + | "Ashley" + | "Craig" + | "Deborah" + | "Dennis" + | "Edward" + | "Elizabeth" + | "Hades" + | "Julia" + | "Pixie" + | "Mark" + | "Olivia" + | "Priya" + | "Ronald" + | "Sarah" + | "Shaun" + | "Theodore" + | "Timothy" + | "Wendy" + | "Dominus" + | "Yichen" + | "Xiaoyin" + | "Xinyi" + | "Jing" + | "Erik" + | "Katrien" + | "Lennart" + | "Lore" + | "Alain" + | "H\u00E9l\u00E8ne" + | "Mathieu" + | "\u00C9tienne" + | "Johanna" + | "Josef" + | "Gianni" + | "Orietta" + | "Asuka" + | "Satoshi" + | "Hyunwoo" + | "Minji" + | "Seojun" + | "Yoona" + | "Szymon" + | "Wojciech" + | "Heitor" + | "Mait\u00EA" + | "Diego" + | "Lupita" + | "Miguel" + | "Rafael"; +export const InworldVoiceVoiceId = { + Alex: "Alex", + Ashley: "Ashley", + Craig: "Craig", + Deborah: "Deborah", + Dennis: "Dennis", + Edward: "Edward", + Elizabeth: "Elizabeth", + Hades: "Hades", + Julia: "Julia", + Pixie: "Pixie", + Mark: "Mark", + Olivia: "Olivia", + Priya: "Priya", + Ronald: "Ronald", + Sarah: "Sarah", + Shaun: "Shaun", + Theodore: "Theodore", + Timothy: "Timothy", + Wendy: "Wendy", + Dominus: "Dominus", + Yichen: "Yichen", + Xiaoyin: "Xiaoyin", + Xinyi: "Xinyi", + Jing: "Jing", + Erik: "Erik", + Katrien: "Katrien", + Lennart: "Lennart", + Lore: "Lore", + Alain: "Alain", + Helene: "H\u00E9l\u00E8ne", + Mathieu: "Mathieu", + Etienne: "\u00C9tienne", + Johanna: "Johanna", + Josef: "Josef", + Gianni: "Gianni", + Orietta: "Orietta", + Asuka: "Asuka", + Satoshi: "Satoshi", + Hyunwoo: "Hyunwoo", + Minji: "Minji", + Seojun: "Seojun", + Yoona: "Yoona", + Szymon: "Szymon", + Wojciech: "Wojciech", + Heitor: "Heitor", + Maite: "Mait\u00EA", + Diego: "Diego", + Lupita: "Lupita", + Miguel: "Miguel", + Rafael: "Rafael", +} as const; diff --git a/src/api/types/JsonSchema.ts b/src/api/types/JsonSchema.ts index 29764fc3..781b7aaa 100644 --- a/src/api/types/JsonSchema.ts +++ b/src/api/types/JsonSchema.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface JsonSchema { /** * This is the type of output you'd like. @@ -14,7 +16,7 @@ export interface JsonSchema { * * For `object`, you can define the properties of the object using the `properties` property. */ - type: JsonSchema.Type; + type: Vapi.JsonSchemaType; /** * This is required if the type is "array". This is the schema of the items in the array. * @@ -40,7 +42,7 @@ export interface JsonSchema { * * OpenAI documentation: https://platform.openai.com/docs/guides/structured-outputs?api-mode=chat&type-restrictions=string-restrictions */ - format?: JsonSchema.Format; + format?: Vapi.JsonSchemaFormat; /** * This is a list of properties that are required. * @@ -52,43 +54,3 @@ export interface JsonSchema { /** This is the title of the schema. */ title?: string; } - -export namespace JsonSchema { - /** - * This is the type of output you'd like. - * - * `string`, `number`, `integer`, `boolean` are the primitive types and should be obvious. - * - * `array` and `object` are more interesting and quite powerful. They allow you to define nested structures. - * - * For `array`, you can define the schema of the items in the array using the `items` property. - * - * For `object`, you can define the properties of the object using the `properties` property. - */ - export type Type = "string" | "number" | "integer" | "boolean" | "array" | "object"; - export const Type = { - String: "string", - Number: "number", - Integer: "integer", - Boolean: "boolean", - Array: "array", - Object: "object", - } as const; - /** - * This is the format of the string. To pass a regex, use the `pattern` property instead. - * - * OpenAI documentation: https://platform.openai.com/docs/guides/structured-outputs?api-mode=chat&type-restrictions=string-restrictions - */ - export type Format = "date-time" | "time" | "date" | "duration" | "email" | "hostname" | "ipv4" | "ipv6" | "uuid"; - export const Format = { - DateTime: "date-time", - Time: "time", - Date: "date", - Duration: "duration", - Email: "email", - Hostname: "hostname", - Ipv4: "ipv4", - Ipv6: "ipv6", - Uuid: "uuid", - } as const; -} diff --git a/src/api/types/JsonSchemaFormat.ts b/src/api/types/JsonSchemaFormat.ts new file mode 100644 index 00000000..a782adce --- /dev/null +++ b/src/api/types/JsonSchemaFormat.ts @@ -0,0 +1,30 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the format of the string. To pass a regex, use the `pattern` property instead. + * + * OpenAI documentation: https://platform.openai.com/docs/guides/structured-outputs?api-mode=chat&type-restrictions=string-restrictions + */ +export type JsonSchemaFormat = + | "date-time" + | "time" + | "date" + | "duration" + | "email" + | "hostname" + | "ipv4" + | "ipv6" + | "uuid"; +export const JsonSchemaFormat = { + DateTime: "date-time", + Time: "time", + Date: "date", + Duration: "duration", + Email: "email", + Hostname: "hostname", + Ipv4: "ipv4", + Ipv6: "ipv6", + Uuid: "uuid", +} as const; diff --git a/src/api/types/JsonSchemaType.ts b/src/api/types/JsonSchemaType.ts new file mode 100644 index 00000000..064a7c23 --- /dev/null +++ b/src/api/types/JsonSchemaType.ts @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the type of output you'd like. + * + * `string`, `number`, `integer`, `boolean` are the primitive types and should be obvious. + * + * `array` and `object` are more interesting and quite powerful. They allow you to define nested structures. + * + * For `array`, you can define the schema of the items in the array using the `items` property. + * + * For `object`, you can define the properties of the object using the `properties` property. + */ +export type JsonSchemaType = "string" | "number" | "integer" | "boolean" | "array" | "object"; +export const JsonSchemaType = { + String: "string", + Number: "number", + Integer: "integer", + Boolean: "boolean", + Array: "array", + Object: "object", +} as const; diff --git a/src/api/types/KeypadInputPlan.ts b/src/api/types/KeypadInputPlan.ts index 997ad031..cff05584 100644 --- a/src/api/types/KeypadInputPlan.ts +++ b/src/api/types/KeypadInputPlan.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface KeypadInputPlan { /** * This keeps track of whether the user has enabled keypad input. @@ -22,18 +24,5 @@ export interface KeypadInputPlan { * This is the delimiter(s) that will be used to process the input. * Can be '#', '*', or an empty array. */ - delimiters?: KeypadInputPlan.Delimiters; -} - -export namespace KeypadInputPlan { - /** - * This is the delimiter(s) that will be used to process the input. - * Can be '#', '*', or an empty array. - */ - export type Delimiters = "#" | "*" | ""; - export const Delimiters = { - Hash: "#", - Asterisk: "*", - Empty: "", - } as const; + delimiters?: Vapi.KeypadInputPlanDelimiters; } diff --git a/src/api/types/KeypadInputPlanDelimiters.ts b/src/api/types/KeypadInputPlanDelimiters.ts new file mode 100644 index 00000000..ebcfbcc0 --- /dev/null +++ b/src/api/types/KeypadInputPlanDelimiters.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the delimiter(s) that will be used to process the input. + * Can be '#', '*', or an empty array. + */ +export type KeypadInputPlanDelimiters = "#" | "*" | ""; +export const KeypadInputPlanDelimiters = { + Hash: "#", + Asterisk: "*", + Empty: "", +} as const; diff --git a/src/api/types/KnowledgeBase.ts b/src/api/types/KnowledgeBase.ts index 8fb4b08c..2e618d01 100644 --- a/src/api/types/KnowledgeBase.ts +++ b/src/api/types/KnowledgeBase.ts @@ -2,52 +2,17 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface KnowledgeBase { /** The name of the knowledge base */ name: string; /** The provider of the knowledge base */ provider: "google"; /** The model to use for the knowledge base */ - model?: KnowledgeBase.Model; + model?: Vapi.KnowledgeBaseModel; /** A description of the knowledge base */ description: string; /** The file IDs associated with this knowledge base */ fileIds: string[]; } - -export namespace KnowledgeBase { - /** - * The model to use for the knowledge base - */ - export type Model = - | "gemini-2.5-pro" - | "gemini-2.5-flash" - | "gemini-2.5-flash-lite" - | "gemini-2.0-flash-thinking-exp" - | "gemini-2.0-pro-exp-02-05" - | "gemini-2.0-flash" - | "gemini-2.0-flash-lite" - | "gemini-2.0-flash-exp" - | "gemini-2.0-flash-realtime-exp" - | "gemini-1.5-flash" - | "gemini-1.5-flash-002" - | "gemini-1.5-pro" - | "gemini-1.5-pro-002" - | "gemini-1.0-pro"; - export const Model = { - Gemini25Pro: "gemini-2.5-pro", - Gemini25Flash: "gemini-2.5-flash", - Gemini25FlashLite: "gemini-2.5-flash-lite", - Gemini20FlashThinkingExp: "gemini-2.0-flash-thinking-exp", - Gemini20ProExp0205: "gemini-2.0-pro-exp-02-05", - Gemini20Flash: "gemini-2.0-flash", - Gemini20FlashLite: "gemini-2.0-flash-lite", - Gemini20FlashExp: "gemini-2.0-flash-exp", - Gemini20FlashRealtimeExp: "gemini-2.0-flash-realtime-exp", - Gemini15Flash: "gemini-1.5-flash", - Gemini15Flash002: "gemini-1.5-flash-002", - Gemini15Pro: "gemini-1.5-pro", - Gemini15Pro002: "gemini-1.5-pro-002", - Gemini10Pro: "gemini-1.0-pro", - } as const; -} diff --git a/src/api/types/KnowledgeBaseModel.ts b/src/api/types/KnowledgeBaseModel.ts new file mode 100644 index 00000000..622c9993 --- /dev/null +++ b/src/api/types/KnowledgeBaseModel.ts @@ -0,0 +1,38 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * The model to use for the knowledge base + */ +export type KnowledgeBaseModel = + | "gemini-2.5-pro" + | "gemini-2.5-flash" + | "gemini-2.5-flash-lite" + | "gemini-2.0-flash-thinking-exp" + | "gemini-2.0-pro-exp-02-05" + | "gemini-2.0-flash" + | "gemini-2.0-flash-lite" + | "gemini-2.0-flash-exp" + | "gemini-2.0-flash-realtime-exp" + | "gemini-1.5-flash" + | "gemini-1.5-flash-002" + | "gemini-1.5-pro" + | "gemini-1.5-pro-002" + | "gemini-1.0-pro"; +export const KnowledgeBaseModel = { + Gemini25Pro: "gemini-2.5-pro", + Gemini25Flash: "gemini-2.5-flash", + Gemini25FlashLite: "gemini-2.5-flash-lite", + Gemini20FlashThinkingExp: "gemini-2.0-flash-thinking-exp", + Gemini20ProExp0205: "gemini-2.0-pro-exp-02-05", + Gemini20Flash: "gemini-2.0-flash", + Gemini20FlashLite: "gemini-2.0-flash-lite", + Gemini20FlashExp: "gemini-2.0-flash-exp", + Gemini20FlashRealtimeExp: "gemini-2.0-flash-realtime-exp", + Gemini15Flash: "gemini-1.5-flash", + Gemini15Flash002: "gemini-1.5-flash-002", + Gemini15Pro: "gemini-1.5-pro", + Gemini15Pro002: "gemini-1.5-pro-002", + Gemini10Pro: "gemini-1.0-pro", +} as const; diff --git a/src/api/types/LivekitSmartEndpointingPlan.ts b/src/api/types/LivekitSmartEndpointingPlan.ts index 4c24a820..aa8ad3f1 100644 --- a/src/api/types/LivekitSmartEndpointingPlan.ts +++ b/src/api/types/LivekitSmartEndpointingPlan.ts @@ -2,9 +2,11 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface LivekitSmartEndpointingPlan { /** This is the provider for the smart endpointing plan. */ - provider: LivekitSmartEndpointingPlan.Provider; + provider: Vapi.LivekitSmartEndpointingPlanProvider; /** * This expression describes how long the bot will wait to start speaking based on the likelihood that the user has reached an endpoint. * @@ -18,15 +20,3 @@ export interface LivekitSmartEndpointingPlan { */ waitFunction?: string; } - -export namespace LivekitSmartEndpointingPlan { - /** - * This is the provider for the smart endpointing plan. - */ - export type Provider = "vapi" | "livekit" | "custom-endpointing-model"; - export const Provider = { - Vapi: "vapi", - Livekit: "livekit", - CustomEndpointingModel: "custom-endpointing-model", - } as const; -} diff --git a/src/api/types/LivekitSmartEndpointingPlanProvider.ts b/src/api/types/LivekitSmartEndpointingPlanProvider.ts new file mode 100644 index 00000000..e6e7763e --- /dev/null +++ b/src/api/types/LivekitSmartEndpointingPlanProvider.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the provider for the smart endpointing plan. + */ +export type LivekitSmartEndpointingPlanProvider = "vapi" | "livekit" | "custom-endpointing-model"; +export const LivekitSmartEndpointingPlanProvider = { + Vapi: "vapi", + Livekit: "livekit", + CustomEndpointingModel: "custom-endpointing-model", +} as const; diff --git a/src/api/types/LmntVoice.ts b/src/api/types/LmntVoice.ts index 65d1b5c5..9f8269d2 100644 --- a/src/api/types/LmntVoice.ts +++ b/src/api/types/LmntVoice.ts @@ -10,443 +10,13 @@ export interface LmntVoice { /** This is the voice provider that will be used. */ provider: "lmnt"; /** This is the provider-specific ID that will be used. */ - voiceId: LmntVoice.VoiceId; + voiceId: Vapi.LmntVoiceId; /** This is the speed multiplier that will be used. */ speed?: number; /** Two letter ISO 639-1 language code. Use "auto" for auto-detection. */ - language?: LmntVoice.Language; + language?: Vapi.LmntVoiceLanguage; /** This is the plan for chunking the model output before it is sent to the voice provider. */ chunkPlan?: Vapi.ChunkPlan; /** This is the plan for voice provider fallbacks in the event that the primary voice provider fails. */ fallbackPlan?: Vapi.FallbackPlan; } - -export namespace LmntVoice { - /** - * This is the provider-specific ID that will be used. - */ - export type VoiceId = - | ( - | "amy" - | "ansel" - | "autumn" - | "ava" - | "brandon" - | "caleb" - | "cassian" - | "chloe" - | "dalton" - | "daniel" - | "dustin" - | "elowen" - | "evander" - | "huxley" - | "james" - | "juniper" - | "kennedy" - | "lauren" - | "leah" - | "lily" - | "lucas" - | "magnus" - | "miles" - | "morgan" - | "natalie" - | "nathan" - | "noah" - | "nyssa" - | "oliver" - | "paige" - | "ryan" - | "sadie" - | "sophie" - | "stella" - | "terrence" - | "tyler" - | "vesper" - | "violet" - | "warrick" - | "zain" - | "zeke" - | "zoe" - ) - | string; - /** - * Two letter ISO 639-1 language code. Use "auto" for auto-detection. - */ - export type Language = - | "aa" - | "ab" - | "ae" - | "af" - | "ak" - | "am" - | "an" - | "ar" - | "as" - | "av" - | "ay" - | "az" - | "ba" - | "be" - | "bg" - | "bh" - | "bi" - | "bm" - | "bn" - | "bo" - | "br" - | "bs" - | "ca" - | "ce" - | "ch" - | "co" - | "cr" - | "cs" - | "cu" - | "cv" - | "cy" - | "da" - | "de" - | "dv" - | "dz" - | "ee" - | "el" - | "en" - | "eo" - | "es" - | "et" - | "eu" - | "fa" - | "ff" - | "fi" - | "fj" - | "fo" - | "fr" - | "fy" - | "ga" - | "gd" - | "gl" - | "gn" - | "gu" - | "gv" - | "ha" - | "he" - | "hi" - | "ho" - | "hr" - | "ht" - | "hu" - | "hy" - | "hz" - | "ia" - | "id" - | "ie" - | "ig" - | "ii" - | "ik" - | "io" - | "is" - | "it" - | "iu" - | "ja" - | "jv" - | "ka" - | "kg" - | "ki" - | "kj" - | "kk" - | "kl" - | "km" - | "kn" - | "ko" - | "kr" - | "ks" - | "ku" - | "kv" - | "kw" - | "ky" - | "la" - | "lb" - | "lg" - | "li" - | "ln" - | "lo" - | "lt" - | "lu" - | "lv" - | "mg" - | "mh" - | "mi" - | "mk" - | "ml" - | "mn" - | "mr" - | "ms" - | "mt" - | "my" - | "na" - | "nb" - | "nd" - | "ne" - | "ng" - | "nl" - | "nn" - | "no" - | "nr" - | "nv" - | "ny" - | "oc" - | "oj" - | "om" - | "or" - | "os" - | "pa" - | "pi" - | "pl" - | "ps" - | "pt" - | "qu" - | "rm" - | "rn" - | "ro" - | "ru" - | "rw" - | "sa" - | "sc" - | "sd" - | "se" - | "sg" - | "si" - | "sk" - | "sl" - | "sm" - | "sn" - | "so" - | "sq" - | "sr" - | "ss" - | "st" - | "su" - | "sv" - | "sw" - | "ta" - | "te" - | "tg" - | "th" - | "ti" - | "tk" - | "tl" - | "tn" - | "to" - | "tr" - | "ts" - | "tt" - | "tw" - | "ty" - | "ug" - | "uk" - | "ur" - | "uz" - | "ve" - | "vi" - | "vo" - | "wa" - | "wo" - | "xh" - | "yi" - | "yue" - | "yo" - | "za" - | "zh" - | "zu" - | "auto"; - export const Language = { - Aa: "aa", - Ab: "ab", - Ae: "ae", - Af: "af", - Ak: "ak", - Am: "am", - An: "an", - Ar: "ar", - As: "as", - Av: "av", - Ay: "ay", - Az: "az", - Ba: "ba", - Be: "be", - Bg: "bg", - Bh: "bh", - Bi: "bi", - Bm: "bm", - Bn: "bn", - Bo: "bo", - Br: "br", - Bs: "bs", - Ca: "ca", - Ce: "ce", - Ch: "ch", - Co: "co", - Cr: "cr", - Cs: "cs", - Cu: "cu", - Cv: "cv", - Cy: "cy", - Da: "da", - De: "de", - Dv: "dv", - Dz: "dz", - Ee: "ee", - El: "el", - En: "en", - Eo: "eo", - Es: "es", - Et: "et", - Eu: "eu", - Fa: "fa", - Ff: "ff", - Fi: "fi", - Fj: "fj", - Fo: "fo", - Fr: "fr", - Fy: "fy", - Ga: "ga", - Gd: "gd", - Gl: "gl", - Gn: "gn", - Gu: "gu", - Gv: "gv", - Ha: "ha", - He: "he", - Hi: "hi", - Ho: "ho", - Hr: "hr", - Ht: "ht", - Hu: "hu", - Hy: "hy", - Hz: "hz", - Ia: "ia", - Id: "id", - Ie: "ie", - Ig: "ig", - Ii: "ii", - Ik: "ik", - Io: "io", - Is: "is", - It: "it", - Iu: "iu", - Ja: "ja", - Jv: "jv", - Ka: "ka", - Kg: "kg", - Ki: "ki", - Kj: "kj", - Kk: "kk", - Kl: "kl", - Km: "km", - Kn: "kn", - Ko: "ko", - Kr: "kr", - Ks: "ks", - Ku: "ku", - Kv: "kv", - Kw: "kw", - Ky: "ky", - La: "la", - Lb: "lb", - Lg: "lg", - Li: "li", - Ln: "ln", - Lo: "lo", - Lt: "lt", - Lu: "lu", - Lv: "lv", - Mg: "mg", - Mh: "mh", - Mi: "mi", - Mk: "mk", - Ml: "ml", - Mn: "mn", - Mr: "mr", - Ms: "ms", - Mt: "mt", - My: "my", - Na: "na", - Nb: "nb", - Nd: "nd", - Ne: "ne", - Ng: "ng", - Nl: "nl", - Nn: "nn", - No: "no", - Nr: "nr", - Nv: "nv", - Ny: "ny", - Oc: "oc", - Oj: "oj", - Om: "om", - Or: "or", - Os: "os", - Pa: "pa", - Pi: "pi", - Pl: "pl", - Ps: "ps", - Pt: "pt", - Qu: "qu", - Rm: "rm", - Rn: "rn", - Ro: "ro", - Ru: "ru", - Rw: "rw", - Sa: "sa", - Sc: "sc", - Sd: "sd", - Se: "se", - Sg: "sg", - Si: "si", - Sk: "sk", - Sl: "sl", - Sm: "sm", - Sn: "sn", - So: "so", - Sq: "sq", - Sr: "sr", - Ss: "ss", - St: "st", - Su: "su", - Sv: "sv", - Sw: "sw", - Ta: "ta", - Te: "te", - Tg: "tg", - Th: "th", - Ti: "ti", - Tk: "tk", - Tl: "tl", - Tn: "tn", - To: "to", - Tr: "tr", - Ts: "ts", - Tt: "tt", - Tw: "tw", - Ty: "ty", - Ug: "ug", - Uk: "uk", - Ur: "ur", - Uz: "uz", - Ve: "ve", - Vi: "vi", - Vo: "vo", - Wa: "wa", - Wo: "wo", - Xh: "xh", - Yi: "yi", - Yue: "yue", - Yo: "yo", - Za: "za", - Zh: "zh", - Zu: "zu", - Auto: "auto", - } as const; -} diff --git a/src/api/types/LmntVoiceId.ts b/src/api/types/LmntVoiceId.ts new file mode 100644 index 00000000..40abab21 --- /dev/null +++ b/src/api/types/LmntVoiceId.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the provider-specific ID that will be used. + */ +export type LmntVoiceId = Vapi.LmntVoiceIdEnum | string; diff --git a/src/api/types/LmntVoiceIdEnum.ts b/src/api/types/LmntVoiceIdEnum.ts new file mode 100644 index 00000000..1b7e6d63 --- /dev/null +++ b/src/api/types/LmntVoiceIdEnum.ts @@ -0,0 +1,91 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type LmntVoiceIdEnum = + | "amy" + | "ansel" + | "autumn" + | "ava" + | "brandon" + | "caleb" + | "cassian" + | "chloe" + | "dalton" + | "daniel" + | "dustin" + | "elowen" + | "evander" + | "huxley" + | "james" + | "juniper" + | "kennedy" + | "lauren" + | "leah" + | "lily" + | "lucas" + | "magnus" + | "miles" + | "morgan" + | "natalie" + | "nathan" + | "noah" + | "nyssa" + | "oliver" + | "paige" + | "ryan" + | "sadie" + | "sophie" + | "stella" + | "terrence" + | "tyler" + | "vesper" + | "violet" + | "warrick" + | "zain" + | "zeke" + | "zoe"; +export const LmntVoiceIdEnum = { + Amy: "amy", + Ansel: "ansel", + Autumn: "autumn", + Ava: "ava", + Brandon: "brandon", + Caleb: "caleb", + Cassian: "cassian", + Chloe: "chloe", + Dalton: "dalton", + Daniel: "daniel", + Dustin: "dustin", + Elowen: "elowen", + Evander: "evander", + Huxley: "huxley", + James: "james", + Juniper: "juniper", + Kennedy: "kennedy", + Lauren: "lauren", + Leah: "leah", + Lily: "lily", + Lucas: "lucas", + Magnus: "magnus", + Miles: "miles", + Morgan: "morgan", + Natalie: "natalie", + Nathan: "nathan", + Noah: "noah", + Nyssa: "nyssa", + Oliver: "oliver", + Paige: "paige", + Ryan: "ryan", + Sadie: "sadie", + Sophie: "sophie", + Stella: "stella", + Terrence: "terrence", + Tyler: "tyler", + Vesper: "vesper", + Violet: "violet", + Warrick: "warrick", + Zain: "zain", + Zeke: "zeke", + Zoe: "zoe", +} as const; diff --git a/src/api/types/LmntVoiceLanguage.ts b/src/api/types/LmntVoiceLanguage.ts new file mode 100644 index 00000000..05bdcad7 --- /dev/null +++ b/src/api/types/LmntVoiceLanguage.ts @@ -0,0 +1,382 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Two letter ISO 639-1 language code. Use "auto" for auto-detection. + */ +export type LmntVoiceLanguage = + | "aa" + | "ab" + | "ae" + | "af" + | "ak" + | "am" + | "an" + | "ar" + | "as" + | "av" + | "ay" + | "az" + | "ba" + | "be" + | "bg" + | "bh" + | "bi" + | "bm" + | "bn" + | "bo" + | "br" + | "bs" + | "ca" + | "ce" + | "ch" + | "co" + | "cr" + | "cs" + | "cu" + | "cv" + | "cy" + | "da" + | "de" + | "dv" + | "dz" + | "ee" + | "el" + | "en" + | "eo" + | "es" + | "et" + | "eu" + | "fa" + | "ff" + | "fi" + | "fj" + | "fo" + | "fr" + | "fy" + | "ga" + | "gd" + | "gl" + | "gn" + | "gu" + | "gv" + | "ha" + | "he" + | "hi" + | "ho" + | "hr" + | "ht" + | "hu" + | "hy" + | "hz" + | "ia" + | "id" + | "ie" + | "ig" + | "ii" + | "ik" + | "io" + | "is" + | "it" + | "iu" + | "ja" + | "jv" + | "ka" + | "kg" + | "ki" + | "kj" + | "kk" + | "kl" + | "km" + | "kn" + | "ko" + | "kr" + | "ks" + | "ku" + | "kv" + | "kw" + | "ky" + | "la" + | "lb" + | "lg" + | "li" + | "ln" + | "lo" + | "lt" + | "lu" + | "lv" + | "mg" + | "mh" + | "mi" + | "mk" + | "ml" + | "mn" + | "mr" + | "ms" + | "mt" + | "my" + | "na" + | "nb" + | "nd" + | "ne" + | "ng" + | "nl" + | "nn" + | "no" + | "nr" + | "nv" + | "ny" + | "oc" + | "oj" + | "om" + | "or" + | "os" + | "pa" + | "pi" + | "pl" + | "ps" + | "pt" + | "qu" + | "rm" + | "rn" + | "ro" + | "ru" + | "rw" + | "sa" + | "sc" + | "sd" + | "se" + | "sg" + | "si" + | "sk" + | "sl" + | "sm" + | "sn" + | "so" + | "sq" + | "sr" + | "ss" + | "st" + | "su" + | "sv" + | "sw" + | "ta" + | "te" + | "tg" + | "th" + | "ti" + | "tk" + | "tl" + | "tn" + | "to" + | "tr" + | "ts" + | "tt" + | "tw" + | "ty" + | "ug" + | "uk" + | "ur" + | "uz" + | "ve" + | "vi" + | "vo" + | "wa" + | "wo" + | "xh" + | "yi" + | "yue" + | "yo" + | "za" + | "zh" + | "zu" + | "auto"; +export const LmntVoiceLanguage = { + Aa: "aa", + Ab: "ab", + Ae: "ae", + Af: "af", + Ak: "ak", + Am: "am", + An: "an", + Ar: "ar", + As: "as", + Av: "av", + Ay: "ay", + Az: "az", + Ba: "ba", + Be: "be", + Bg: "bg", + Bh: "bh", + Bi: "bi", + Bm: "bm", + Bn: "bn", + Bo: "bo", + Br: "br", + Bs: "bs", + Ca: "ca", + Ce: "ce", + Ch: "ch", + Co: "co", + Cr: "cr", + Cs: "cs", + Cu: "cu", + Cv: "cv", + Cy: "cy", + Da: "da", + De: "de", + Dv: "dv", + Dz: "dz", + Ee: "ee", + El: "el", + En: "en", + Eo: "eo", + Es: "es", + Et: "et", + Eu: "eu", + Fa: "fa", + Ff: "ff", + Fi: "fi", + Fj: "fj", + Fo: "fo", + Fr: "fr", + Fy: "fy", + Ga: "ga", + Gd: "gd", + Gl: "gl", + Gn: "gn", + Gu: "gu", + Gv: "gv", + Ha: "ha", + He: "he", + Hi: "hi", + Ho: "ho", + Hr: "hr", + Ht: "ht", + Hu: "hu", + Hy: "hy", + Hz: "hz", + Ia: "ia", + Id: "id", + Ie: "ie", + Ig: "ig", + Ii: "ii", + Ik: "ik", + Io: "io", + Is: "is", + It: "it", + Iu: "iu", + Ja: "ja", + Jv: "jv", + Ka: "ka", + Kg: "kg", + Ki: "ki", + Kj: "kj", + Kk: "kk", + Kl: "kl", + Km: "km", + Kn: "kn", + Ko: "ko", + Kr: "kr", + Ks: "ks", + Ku: "ku", + Kv: "kv", + Kw: "kw", + Ky: "ky", + La: "la", + Lb: "lb", + Lg: "lg", + Li: "li", + Ln: "ln", + Lo: "lo", + Lt: "lt", + Lu: "lu", + Lv: "lv", + Mg: "mg", + Mh: "mh", + Mi: "mi", + Mk: "mk", + Ml: "ml", + Mn: "mn", + Mr: "mr", + Ms: "ms", + Mt: "mt", + My: "my", + Na: "na", + Nb: "nb", + Nd: "nd", + Ne: "ne", + Ng: "ng", + Nl: "nl", + Nn: "nn", + No: "no", + Nr: "nr", + Nv: "nv", + Ny: "ny", + Oc: "oc", + Oj: "oj", + Om: "om", + Or: "or", + Os: "os", + Pa: "pa", + Pi: "pi", + Pl: "pl", + Ps: "ps", + Pt: "pt", + Qu: "qu", + Rm: "rm", + Rn: "rn", + Ro: "ro", + Ru: "ru", + Rw: "rw", + Sa: "sa", + Sc: "sc", + Sd: "sd", + Se: "se", + Sg: "sg", + Si: "si", + Sk: "sk", + Sl: "sl", + Sm: "sm", + Sn: "sn", + So: "so", + Sq: "sq", + Sr: "sr", + Ss: "ss", + St: "st", + Su: "su", + Sv: "sv", + Sw: "sw", + Ta: "ta", + Te: "te", + Tg: "tg", + Th: "th", + Ti: "ti", + Tk: "tk", + Tl: "tl", + Tn: "tn", + To: "to", + Tr: "tr", + Ts: "ts", + Tt: "tt", + Tw: "tw", + Ty: "ty", + Ug: "ug", + Uk: "uk", + Ur: "ur", + Uz: "uz", + Ve: "ve", + Vi: "vi", + Vo: "vo", + Wa: "wa", + Wo: "wo", + Xh: "xh", + Yi: "yi", + Yue: "yue", + Yo: "yo", + Za: "za", + Zh: "zh", + Zu: "zu", + Auto: "auto", +} as const; diff --git a/src/api/types/MakeTool.ts b/src/api/types/MakeTool.ts index ecd02136..48f4c867 100644 --- a/src/api/types/MakeTool.ts +++ b/src/api/types/MakeTool.ts @@ -10,7 +10,7 @@ export interface MakeTool { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: MakeTool.Messages.Item[]; + messages?: Vapi.MakeToolMessagesItem[]; /** The type of tool. "make" for Make tool. */ type: "make"; /** This is the unique identifier for the tool. */ @@ -104,15 +104,3 @@ export interface MakeTool { rejectionPlan?: Vapi.ToolRejectionPlan; metadata: Vapi.MakeToolMetadata; } - -export namespace MakeTool { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/MakeToolMessagesItem.ts b/src/api/types/MakeToolMessagesItem.ts new file mode 100644 index 00000000..c37c7fc9 --- /dev/null +++ b/src/api/types/MakeToolMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type MakeToolMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/MakeToolWithToolCall.ts b/src/api/types/MakeToolWithToolCall.ts index 6525c74e..7478a9c2 100644 --- a/src/api/types/MakeToolWithToolCall.ts +++ b/src/api/types/MakeToolWithToolCall.ts @@ -10,7 +10,7 @@ export interface MakeToolWithToolCall { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: MakeToolWithToolCall.Messages.Item[]; + messages?: Vapi.MakeToolWithToolCallMessagesItem[]; /** The type of tool. "make" for Make tool. */ type: "make"; toolCall: Vapi.ToolCall; @@ -97,15 +97,3 @@ export interface MakeToolWithToolCall { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace MakeToolWithToolCall { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/MakeToolWithToolCallMessagesItem.ts b/src/api/types/MakeToolWithToolCallMessagesItem.ts new file mode 100644 index 00000000..775f2d61 --- /dev/null +++ b/src/api/types/MakeToolWithToolCallMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type MakeToolWithToolCallMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/McpTool.ts b/src/api/types/McpTool.ts index b0c24951..f2f3cd52 100644 --- a/src/api/types/McpTool.ts +++ b/src/api/types/McpTool.ts @@ -10,7 +10,7 @@ export interface McpTool { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: McpTool.Messages.Item[]; + messages?: Vapi.McpToolMessagesItem[]; type: "mcp"; /** * This is the server where a `tool-calls` webhook will be sent. @@ -114,15 +114,3 @@ export interface McpTool { rejectionPlan?: Vapi.ToolRejectionPlan; metadata?: Vapi.McpToolMetadata; } - -export namespace McpTool { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/McpToolMessagesItem.ts b/src/api/types/McpToolMessagesItem.ts new file mode 100644 index 00000000..08f0e3b9 --- /dev/null +++ b/src/api/types/McpToolMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type McpToolMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/McpToolMetadata.ts b/src/api/types/McpToolMetadata.ts index c9332e17..6d4c3a3e 100644 --- a/src/api/types/McpToolMetadata.ts +++ b/src/api/types/McpToolMetadata.ts @@ -2,18 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface McpToolMetadata { /** This is the protocol used for MCP communication. Defaults to Streamable HTTP. */ - protocol?: McpToolMetadata.Protocol; -} - -export namespace McpToolMetadata { - /** - * This is the protocol used for MCP communication. Defaults to Streamable HTTP. - */ - export type Protocol = "sse" | "shttp"; - export const Protocol = { - Sse: "sse", - Shttp: "shttp", - } as const; + protocol?: Vapi.McpToolMetadataProtocol; } diff --git a/src/api/types/McpToolMetadataProtocol.ts b/src/api/types/McpToolMetadataProtocol.ts new file mode 100644 index 00000000..b4145644 --- /dev/null +++ b/src/api/types/McpToolMetadataProtocol.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the protocol used for MCP communication. Defaults to Streamable HTTP. + */ +export type McpToolMetadataProtocol = "sse" | "shttp"; +export const McpToolMetadataProtocol = { + Sse: "sse", + Shttp: "shttp", +} as const; diff --git a/src/api/types/MessageTarget.ts b/src/api/types/MessageTarget.ts index 87eaa5fb..c75118bb 100644 --- a/src/api/types/MessageTarget.ts +++ b/src/api/types/MessageTarget.ts @@ -2,13 +2,15 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface MessageTarget { /** * This is the role of the message to target. * * If not specified, will find the position in the message history ignoring role (effectively `any`). */ - role?: MessageTarget.Role; + role?: Vapi.MessageTargetRole; /** * This is the position of the message to target. * - Negative numbers: Count from end (-1 = most recent, -2 = second most recent) @@ -19,16 +21,3 @@ export interface MessageTarget { */ position?: number; } - -export namespace MessageTarget { - /** - * This is the role of the message to target. - * - * If not specified, will find the position in the message history ignoring role (effectively `any`). - */ - export type Role = "user" | "assistant"; - export const Role = { - User: "user", - Assistant: "assistant", - } as const; -} diff --git a/src/api/types/MessageTargetRole.ts b/src/api/types/MessageTargetRole.ts new file mode 100644 index 00000000..54b56cce --- /dev/null +++ b/src/api/types/MessageTargetRole.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the role of the message to target. + * + * If not specified, will find the position in the message history ignoring role (effectively `any`). + */ +export type MessageTargetRole = "user" | "assistant"; +export const MessageTargetRole = { + User: "user", + Assistant: "assistant", +} as const; diff --git a/src/api/types/MinimaxVoice.ts b/src/api/types/MinimaxVoice.ts index 944bb4ac..d1a03d0c 100644 --- a/src/api/types/MinimaxVoice.ts +++ b/src/api/types/MinimaxVoice.ts @@ -18,7 +18,7 @@ export interface MinimaxVoice { * * @default "speech-02-turbo" */ - model?: MinimaxVoice.Model; + model?: Vapi.MinimaxVoiceModel; /** * The emotion to use for the voice. If not provided, will use auto-detect mode. * Options include: 'happy', 'sad', 'angry', 'fearful', 'surprised', 'disgusted', 'neutral' @@ -40,9 +40,9 @@ export interface MinimaxVoice { */ volume?: number; /** The region for Minimax API. Defaults to "worldwide". */ - region?: MinimaxVoice.Region; + region?: Vapi.MinimaxVoiceRegion; /** Language hint for MiniMax T2A. Example: yue (Cantonese), zh (Chinese), en (English). */ - languageBoost?: MinimaxVoice.LanguageBoost; + languageBoost?: Vapi.MinimaxVoiceLanguageBoost; /** Enable MiniMax text normalization to improve number reading and formatting. */ textNormalizationEnabled?: boolean; /** This is the plan for chunking the model output before it is sent to the voice provider. */ @@ -50,115 +50,3 @@ export interface MinimaxVoice { /** This is the plan for voice provider fallbacks in the event that the primary voice provider fails. */ fallbackPlan?: Vapi.FallbackPlan; } - -export namespace MinimaxVoice { - /** - * This is the model that will be used. Options are 'speech-02-hd' and 'speech-02-turbo'. - * speech-02-hd is optimized for high-fidelity applications like voiceovers and audiobooks. - * speech-02-turbo is designed for real-time applications with low latency. - * - * @default "speech-02-turbo" - */ - export type Model = "speech-02-hd" | "speech-02-turbo" | "speech-2.5-turbo-preview"; - export const Model = { - Speech02Hd: "speech-02-hd", - Speech02Turbo: "speech-02-turbo", - Speech25TurboPreview: "speech-2.5-turbo-preview", - } as const; - /** - * The region for Minimax API. Defaults to "worldwide". - */ - export type Region = "worldwide" | "china"; - export const Region = { - Worldwide: "worldwide", - China: "china", - } as const; - /** - * Language hint for MiniMax T2A. Example: yue (Cantonese), zh (Chinese), en (English). - */ - export type LanguageBoost = - | "Chinese" - | "Chinese,Yue" - | "English" - | "Arabic" - | "Russian" - | "Spanish" - | "French" - | "Portuguese" - | "German" - | "Turkish" - | "Dutch" - | "Ukrainian" - | "Vietnamese" - | "Indonesian" - | "Japanese" - | "Italian" - | "Korean" - | "Thai" - | "Polish" - | "Romanian" - | "Greek" - | "Czech" - | "Finnish" - | "Hindi" - | "Bulgarian" - | "Danish" - | "Hebrew" - | "Malay" - | "Persian" - | "Slovak" - | "Swedish" - | "Croatian" - | "Filipino" - | "Hungarian" - | "Norwegian" - | "Slovenian" - | "Catalan" - | "Nynorsk" - | "Tamil" - | "Afrikaans" - | "auto"; - export const LanguageBoost = { - Chinese: "Chinese", - ChineseYue: "Chinese,Yue", - English: "English", - Arabic: "Arabic", - Russian: "Russian", - Spanish: "Spanish", - French: "French", - Portuguese: "Portuguese", - German: "German", - Turkish: "Turkish", - Dutch: "Dutch", - Ukrainian: "Ukrainian", - Vietnamese: "Vietnamese", - Indonesian: "Indonesian", - Japanese: "Japanese", - Italian: "Italian", - Korean: "Korean", - Thai: "Thai", - Polish: "Polish", - Romanian: "Romanian", - Greek: "Greek", - Czech: "Czech", - Finnish: "Finnish", - Hindi: "Hindi", - Bulgarian: "Bulgarian", - Danish: "Danish", - Hebrew: "Hebrew", - Malay: "Malay", - Persian: "Persian", - Slovak: "Slovak", - Swedish: "Swedish", - Croatian: "Croatian", - Filipino: "Filipino", - Hungarian: "Hungarian", - Norwegian: "Norwegian", - Slovenian: "Slovenian", - Catalan: "Catalan", - Nynorsk: "Nynorsk", - Tamil: "Tamil", - Afrikaans: "Afrikaans", - Auto: "auto", - } as const; -} diff --git a/src/api/types/MinimaxVoiceLanguageBoost.ts b/src/api/types/MinimaxVoiceLanguageBoost.ts new file mode 100644 index 00000000..35a0155a --- /dev/null +++ b/src/api/types/MinimaxVoiceLanguageBoost.ts @@ -0,0 +1,92 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Language hint for MiniMax T2A. Example: yue (Cantonese), zh (Chinese), en (English). + */ +export type MinimaxVoiceLanguageBoost = + | "Chinese" + | "Chinese,Yue" + | "English" + | "Arabic" + | "Russian" + | "Spanish" + | "French" + | "Portuguese" + | "German" + | "Turkish" + | "Dutch" + | "Ukrainian" + | "Vietnamese" + | "Indonesian" + | "Japanese" + | "Italian" + | "Korean" + | "Thai" + | "Polish" + | "Romanian" + | "Greek" + | "Czech" + | "Finnish" + | "Hindi" + | "Bulgarian" + | "Danish" + | "Hebrew" + | "Malay" + | "Persian" + | "Slovak" + | "Swedish" + | "Croatian" + | "Filipino" + | "Hungarian" + | "Norwegian" + | "Slovenian" + | "Catalan" + | "Nynorsk" + | "Tamil" + | "Afrikaans" + | "auto"; +export const MinimaxVoiceLanguageBoost = { + Chinese: "Chinese", + ChineseYue: "Chinese,Yue", + English: "English", + Arabic: "Arabic", + Russian: "Russian", + Spanish: "Spanish", + French: "French", + Portuguese: "Portuguese", + German: "German", + Turkish: "Turkish", + Dutch: "Dutch", + Ukrainian: "Ukrainian", + Vietnamese: "Vietnamese", + Indonesian: "Indonesian", + Japanese: "Japanese", + Italian: "Italian", + Korean: "Korean", + Thai: "Thai", + Polish: "Polish", + Romanian: "Romanian", + Greek: "Greek", + Czech: "Czech", + Finnish: "Finnish", + Hindi: "Hindi", + Bulgarian: "Bulgarian", + Danish: "Danish", + Hebrew: "Hebrew", + Malay: "Malay", + Persian: "Persian", + Slovak: "Slovak", + Swedish: "Swedish", + Croatian: "Croatian", + Filipino: "Filipino", + Hungarian: "Hungarian", + Norwegian: "Norwegian", + Slovenian: "Slovenian", + Catalan: "Catalan", + Nynorsk: "Nynorsk", + Tamil: "Tamil", + Afrikaans: "Afrikaans", + Auto: "auto", +} as const; diff --git a/src/api/types/MinimaxVoiceModel.ts b/src/api/types/MinimaxVoiceModel.ts new file mode 100644 index 00000000..33cf270b --- /dev/null +++ b/src/api/types/MinimaxVoiceModel.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the model that will be used. Options are 'speech-02-hd' and 'speech-02-turbo'. + * speech-02-hd is optimized for high-fidelity applications like voiceovers and audiobooks. + * speech-02-turbo is designed for real-time applications with low latency. + * + * @default "speech-02-turbo" + */ +export type MinimaxVoiceModel = "speech-02-hd" | "speech-02-turbo" | "speech-2.5-turbo-preview"; +export const MinimaxVoiceModel = { + Speech02Hd: "speech-02-hd", + Speech02Turbo: "speech-02-turbo", + Speech25TurboPreview: "speech-2.5-turbo-preview", +} as const; diff --git a/src/api/types/MinimaxVoiceRegion.ts b/src/api/types/MinimaxVoiceRegion.ts new file mode 100644 index 00000000..41f329e7 --- /dev/null +++ b/src/api/types/MinimaxVoiceRegion.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * The region for Minimax API. Defaults to "worldwide". + */ +export type MinimaxVoiceRegion = "worldwide" | "china"; +export const MinimaxVoiceRegion = { + Worldwide: "worldwide", + China: "china", +} as const; diff --git a/src/api/types/NeuphonicVoice.ts b/src/api/types/NeuphonicVoice.ts index 63b51be4..a0772bb1 100644 --- a/src/api/types/NeuphonicVoice.ts +++ b/src/api/types/NeuphonicVoice.ts @@ -12,7 +12,7 @@ export interface NeuphonicVoice { /** This is the provider-specific ID that will be used. */ voiceId: string; /** This is the model that will be used. Defaults to 'neu_fast' if not specified. */ - model?: NeuphonicVoice.Model; + model?: Vapi.NeuphonicVoiceModel; /** This is the language (ISO 639-1) that is enforced for the model. */ language: Record; /** This is the speed multiplier that will be used. */ @@ -22,14 +22,3 @@ export interface NeuphonicVoice { /** This is the plan for voice provider fallbacks in the event that the primary voice provider fails. */ fallbackPlan?: Vapi.FallbackPlan; } - -export namespace NeuphonicVoice { - /** - * This is the model that will be used. Defaults to 'neu_fast' if not specified. - */ - export type Model = "neu_hq" | "neu_fast"; - export const Model = { - NeuHq: "neu_hq", - NeuFast: "neu_fast", - } as const; -} diff --git a/src/api/types/NeuphonicVoiceModel.ts b/src/api/types/NeuphonicVoiceModel.ts new file mode 100644 index 00000000..68d29bd0 --- /dev/null +++ b/src/api/types/NeuphonicVoiceModel.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the model that will be used. Defaults to 'neu_fast' if not specified. + */ +export type NeuphonicVoiceModel = "neu_hq" | "neu_fast"; +export const NeuphonicVoiceModel = { + NeuHq: "neu_hq", + NeuFast: "neu_fast", +} as const; diff --git a/src/api/types/NodeArtifact.ts b/src/api/types/NodeArtifact.ts index 68b59ffa..92827d34 100644 --- a/src/api/types/NodeArtifact.ts +++ b/src/api/types/NodeArtifact.ts @@ -6,22 +6,9 @@ import * as Vapi from "../index.js"; export interface NodeArtifact { /** These are the messages that were spoken during the node. */ - messages?: NodeArtifact.Messages.Item[]; + messages?: Vapi.NodeArtifactMessagesItem[]; /** This is the node name. */ nodeName?: string; /** These are the variable values that were extracted from the node. */ variableValues?: Record; } - -export namespace NodeArtifact { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.UserMessage - | Vapi.SystemMessage - | Vapi.BotMessage - | Vapi.ToolCallMessage - | Vapi.ToolCallResultMessage; - } -} diff --git a/src/api/types/NodeArtifactMessagesItem.ts b/src/api/types/NodeArtifactMessagesItem.ts new file mode 100644 index 00000000..e404a476 --- /dev/null +++ b/src/api/types/NodeArtifactMessagesItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type NodeArtifactMessagesItem = + | Vapi.UserMessage + | Vapi.SystemMessage + | Vapi.BotMessage + | Vapi.ToolCallMessage + | Vapi.ToolCallResultMessage; diff --git a/src/api/types/OpenAiMessage.ts b/src/api/types/OpenAiMessage.ts index 65de4e37..d1ae2c76 100644 --- a/src/api/types/OpenAiMessage.ts +++ b/src/api/types/OpenAiMessage.ts @@ -2,18 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface OpenAiMessage { content?: string | null; - role: OpenAiMessage.Role; -} - -export namespace OpenAiMessage { - export type Role = "assistant" | "function" | "user" | "system" | "tool"; - export const Role = { - Assistant: "assistant", - Function: "function", - User: "user", - System: "system", - Tool: "tool", - } as const; + role: Vapi.OpenAiMessageRole; } diff --git a/src/api/types/OpenAiMessageRole.ts b/src/api/types/OpenAiMessageRole.ts new file mode 100644 index 00000000..3dc849df --- /dev/null +++ b/src/api/types/OpenAiMessageRole.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type OpenAiMessageRole = "assistant" | "function" | "user" | "system" | "tool"; +export const OpenAiMessageRole = { + Assistant: "assistant", + Function: "function", + User: "user", + System: "system", + Tool: "tool", +} as const; diff --git a/src/api/types/OpenAiModel.ts b/src/api/types/OpenAiModel.ts index 7451896a..6d495b7d 100644 --- a/src/api/types/OpenAiModel.ts +++ b/src/api/types/OpenAiModel.ts @@ -12,7 +12,7 @@ export interface OpenAiModel { * * Both `tools` and `toolIds` can be used together. */ - tools?: OpenAiModel.Tools.Item[]; + tools?: Vapi.OpenAiModelToolsItem[]; /** * These are the tools that the assistant can use during the call. To use transient tools, use `tools`. * @@ -31,9 +31,9 @@ export interface OpenAiModel { * * @default undefined */ - model: OpenAiModel.Model; + model: Vapi.OpenAiModelModel; /** These are the fallback models that will be used if the primary model fails. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest fallbacks that make sense. */ - fallbackModels?: OpenAiModel.FallbackModels.Item[]; + fallbackModels?: Vapi.OpenAiModelFallbackModelsItem[]; /** * Azure OpenAI doesn't support `maxLength` right now https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/structured-outputs?tabs=python-secure%2Cdotnet-entra-id&pivots=programming-language-csharp#unsupported-type-specific-keywords. Need to strip. * @@ -42,7 +42,7 @@ export interface OpenAiModel { * * @default `strip-unsupported-validation` */ - toolStrictCompatibilityMode?: OpenAiModel.ToolStrictCompatibilityMode; + toolStrictCompatibilityMode?: Vapi.OpenAiModelToolStrictCompatibilityMode; /** This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency. */ temperature?: number; /** This is the max number of tokens that the assistant will be allowed to generate in each turn of the conversation. Default is 250. */ @@ -64,454 +64,3 @@ export interface OpenAiModel { */ numFastTurns?: number; } - -export namespace OpenAiModel { - export type Tools = Tools.Item[]; - - export namespace Tools { - export type Item = - | Vapi.CreateApiRequestToolDto - | Vapi.CreateBashToolDto - | Vapi.CreateComputerToolDto - | Vapi.CreateDtmfToolDto - | Vapi.CreateEndCallToolDto - | Vapi.CreateFunctionToolDto - | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto - | Vapi.CreateGoHighLevelCalendarEventCreateToolDto - | Vapi.CreateGoHighLevelContactCreateToolDto - | Vapi.CreateGoHighLevelContactGetToolDto - | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto - | Vapi.CreateGoogleCalendarCreateEventToolDto - | Vapi.CreateGoogleSheetsRowAppendToolDto - | Vapi.CreateHandoffToolDto - | Vapi.CreateMcpToolDto - | Vapi.CreateQueryToolDto - | Vapi.CreateSlackSendMessageToolDto - | Vapi.CreateSmsToolDto - | Vapi.CreateTextEditorToolDto - | Vapi.CreateTransferCallToolDto; - } - - /** - * This is the OpenAI model that will be used. - * - * When using Vapi OpenAI or your own Azure Credentials, you have the option to specify the region for the selected model. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest region that make sense. - * This is helpful when you are required to comply with Data Residency rules. Learn more about Azure regions here https://azure.microsoft.com/en-us/explore/global-infrastructure/data-residency/. - * - * @default undefined - */ - export type Model = - | "gpt-5" - | "gpt-5-mini" - | "gpt-5-nano" - | "gpt-4.1-2025-04-14" - | "gpt-4.1-mini-2025-04-14" - | "gpt-4.1-nano-2025-04-14" - | "gpt-4.1" - | "gpt-4.1-mini" - | "gpt-4.1-nano" - | "chatgpt-4o-latest" - | "o3" - | "o3-mini" - | "o4-mini" - | "o1-mini" - | "o1-mini-2024-09-12" - | "gpt-4o-realtime-preview-2024-10-01" - | "gpt-4o-realtime-preview-2024-12-17" - | "gpt-4o-mini-realtime-preview-2024-12-17" - | "gpt-realtime-2025-08-28" - | "gpt-4o-mini-2024-07-18" - | "gpt-4o-mini" - | "gpt-4o" - | "gpt-4o-2024-05-13" - | "gpt-4o-2024-08-06" - | "gpt-4o-2024-11-20" - | "gpt-4-turbo" - | "gpt-4-turbo-2024-04-09" - | "gpt-4-turbo-preview" - | "gpt-4-0125-preview" - | "gpt-4-1106-preview" - | "gpt-4" - | "gpt-4-0613" - | "gpt-3.5-turbo" - | "gpt-3.5-turbo-0125" - | "gpt-3.5-turbo-1106" - | "gpt-3.5-turbo-16k" - | "gpt-3.5-turbo-0613" - | "gpt-4.1-2025-04-14:westus" - | "gpt-4.1-2025-04-14:eastus2" - | "gpt-4.1-2025-04-14:eastus" - | "gpt-4.1-2025-04-14:westus3" - | "gpt-4.1-2025-04-14:northcentralus" - | "gpt-4.1-2025-04-14:southcentralus" - | "gpt-4.1-mini-2025-04-14:westus" - | "gpt-4.1-mini-2025-04-14:eastus2" - | "gpt-4.1-mini-2025-04-14:eastus" - | "gpt-4.1-mini-2025-04-14:westus3" - | "gpt-4.1-mini-2025-04-14:northcentralus" - | "gpt-4.1-mini-2025-04-14:southcentralus" - | "gpt-4.1-nano-2025-04-14:westus" - | "gpt-4.1-nano-2025-04-14:eastus2" - | "gpt-4.1-nano-2025-04-14:westus3" - | "gpt-4.1-nano-2025-04-14:northcentralus" - | "gpt-4.1-nano-2025-04-14:southcentralus" - | "gpt-4o-2024-11-20:swedencentral" - | "gpt-4o-2024-11-20:westus" - | "gpt-4o-2024-11-20:eastus2" - | "gpt-4o-2024-11-20:eastus" - | "gpt-4o-2024-11-20:westus3" - | "gpt-4o-2024-11-20:southcentralus" - | "gpt-4o-2024-08-06:westus" - | "gpt-4o-2024-08-06:westus3" - | "gpt-4o-2024-08-06:eastus" - | "gpt-4o-2024-08-06:eastus2" - | "gpt-4o-2024-08-06:northcentralus" - | "gpt-4o-2024-08-06:southcentralus" - | "gpt-4o-mini-2024-07-18:westus" - | "gpt-4o-mini-2024-07-18:westus3" - | "gpt-4o-mini-2024-07-18:eastus" - | "gpt-4o-mini-2024-07-18:eastus2" - | "gpt-4o-mini-2024-07-18:northcentralus" - | "gpt-4o-mini-2024-07-18:southcentralus" - | "gpt-4o-2024-05-13:eastus2" - | "gpt-4o-2024-05-13:eastus" - | "gpt-4o-2024-05-13:northcentralus" - | "gpt-4o-2024-05-13:southcentralus" - | "gpt-4o-2024-05-13:westus3" - | "gpt-4o-2024-05-13:westus" - | "gpt-4-turbo-2024-04-09:eastus2" - | "gpt-4-0125-preview:eastus" - | "gpt-4-0125-preview:northcentralus" - | "gpt-4-0125-preview:southcentralus" - | "gpt-4-1106-preview:australia" - | "gpt-4-1106-preview:canadaeast" - | "gpt-4-1106-preview:france" - | "gpt-4-1106-preview:india" - | "gpt-4-1106-preview:norway" - | "gpt-4-1106-preview:swedencentral" - | "gpt-4-1106-preview:uk" - | "gpt-4-1106-preview:westus" - | "gpt-4-1106-preview:westus3" - | "gpt-4-0613:canadaeast" - | "gpt-3.5-turbo-0125:canadaeast" - | "gpt-3.5-turbo-0125:northcentralus" - | "gpt-3.5-turbo-0125:southcentralus" - | "gpt-3.5-turbo-1106:canadaeast" - | "gpt-3.5-turbo-1106:westus"; - export const Model = { - Gpt5: "gpt-5", - Gpt5Mini: "gpt-5-mini", - Gpt5Nano: "gpt-5-nano", - Gpt4120250414: "gpt-4.1-2025-04-14", - Gpt41Mini20250414: "gpt-4.1-mini-2025-04-14", - Gpt41Nano20250414: "gpt-4.1-nano-2025-04-14", - Gpt41: "gpt-4.1", - Gpt41Mini: "gpt-4.1-mini", - Gpt41Nano: "gpt-4.1-nano", - Chatgpt4OLatest: "chatgpt-4o-latest", - O3: "o3", - O3Mini: "o3-mini", - O4Mini: "o4-mini", - O1Mini: "o1-mini", - O1Mini20240912: "o1-mini-2024-09-12", - Gpt4ORealtimePreview20241001: "gpt-4o-realtime-preview-2024-10-01", - Gpt4ORealtimePreview20241217: "gpt-4o-realtime-preview-2024-12-17", - Gpt4OMiniRealtimePreview20241217: "gpt-4o-mini-realtime-preview-2024-12-17", - GptRealtime20250828: "gpt-realtime-2025-08-28", - Gpt4OMini20240718: "gpt-4o-mini-2024-07-18", - Gpt4OMini: "gpt-4o-mini", - Gpt4O: "gpt-4o", - Gpt4O20240513: "gpt-4o-2024-05-13", - Gpt4O20240806: "gpt-4o-2024-08-06", - Gpt4O20241120: "gpt-4o-2024-11-20", - Gpt4Turbo: "gpt-4-turbo", - Gpt4Turbo20240409: "gpt-4-turbo-2024-04-09", - Gpt4TurboPreview: "gpt-4-turbo-preview", - Gpt40125Preview: "gpt-4-0125-preview", - Gpt41106Preview: "gpt-4-1106-preview", - Gpt4: "gpt-4", - Gpt40613: "gpt-4-0613", - Gpt35Turbo: "gpt-3.5-turbo", - Gpt35Turbo0125: "gpt-3.5-turbo-0125", - Gpt35Turbo1106: "gpt-3.5-turbo-1106", - Gpt35Turbo16K: "gpt-3.5-turbo-16k", - Gpt35Turbo0613: "gpt-3.5-turbo-0613", - Gpt4120250414Westus: "gpt-4.1-2025-04-14:westus", - Gpt4120250414Eastus2: "gpt-4.1-2025-04-14:eastus2", - Gpt4120250414Eastus: "gpt-4.1-2025-04-14:eastus", - Gpt4120250414Westus3: "gpt-4.1-2025-04-14:westus3", - Gpt4120250414Northcentralus: "gpt-4.1-2025-04-14:northcentralus", - Gpt4120250414Southcentralus: "gpt-4.1-2025-04-14:southcentralus", - Gpt41Mini20250414Westus: "gpt-4.1-mini-2025-04-14:westus", - Gpt41Mini20250414Eastus2: "gpt-4.1-mini-2025-04-14:eastus2", - Gpt41Mini20250414Eastus: "gpt-4.1-mini-2025-04-14:eastus", - Gpt41Mini20250414Westus3: "gpt-4.1-mini-2025-04-14:westus3", - Gpt41Mini20250414Northcentralus: "gpt-4.1-mini-2025-04-14:northcentralus", - Gpt41Mini20250414Southcentralus: "gpt-4.1-mini-2025-04-14:southcentralus", - Gpt41Nano20250414Westus: "gpt-4.1-nano-2025-04-14:westus", - Gpt41Nano20250414Eastus2: "gpt-4.1-nano-2025-04-14:eastus2", - Gpt41Nano20250414Westus3: "gpt-4.1-nano-2025-04-14:westus3", - Gpt41Nano20250414Northcentralus: "gpt-4.1-nano-2025-04-14:northcentralus", - Gpt41Nano20250414Southcentralus: "gpt-4.1-nano-2025-04-14:southcentralus", - Gpt4O20241120Swedencentral: "gpt-4o-2024-11-20:swedencentral", - Gpt4O20241120Westus: "gpt-4o-2024-11-20:westus", - Gpt4O20241120Eastus2: "gpt-4o-2024-11-20:eastus2", - Gpt4O20241120Eastus: "gpt-4o-2024-11-20:eastus", - Gpt4O20241120Westus3: "gpt-4o-2024-11-20:westus3", - Gpt4O20241120Southcentralus: "gpt-4o-2024-11-20:southcentralus", - Gpt4O20240806Westus: "gpt-4o-2024-08-06:westus", - Gpt4O20240806Westus3: "gpt-4o-2024-08-06:westus3", - Gpt4O20240806Eastus: "gpt-4o-2024-08-06:eastus", - Gpt4O20240806Eastus2: "gpt-4o-2024-08-06:eastus2", - Gpt4O20240806Northcentralus: "gpt-4o-2024-08-06:northcentralus", - Gpt4O20240806Southcentralus: "gpt-4o-2024-08-06:southcentralus", - Gpt4OMini20240718Westus: "gpt-4o-mini-2024-07-18:westus", - Gpt4OMini20240718Westus3: "gpt-4o-mini-2024-07-18:westus3", - Gpt4OMini20240718Eastus: "gpt-4o-mini-2024-07-18:eastus", - Gpt4OMini20240718Eastus2: "gpt-4o-mini-2024-07-18:eastus2", - Gpt4OMini20240718Northcentralus: "gpt-4o-mini-2024-07-18:northcentralus", - Gpt4OMini20240718Southcentralus: "gpt-4o-mini-2024-07-18:southcentralus", - Gpt4O20240513Eastus2: "gpt-4o-2024-05-13:eastus2", - Gpt4O20240513Eastus: "gpt-4o-2024-05-13:eastus", - Gpt4O20240513Northcentralus: "gpt-4o-2024-05-13:northcentralus", - Gpt4O20240513Southcentralus: "gpt-4o-2024-05-13:southcentralus", - Gpt4O20240513Westus3: "gpt-4o-2024-05-13:westus3", - Gpt4O20240513Westus: "gpt-4o-2024-05-13:westus", - Gpt4Turbo20240409Eastus2: "gpt-4-turbo-2024-04-09:eastus2", - Gpt40125PreviewEastus: "gpt-4-0125-preview:eastus", - Gpt40125PreviewNorthcentralus: "gpt-4-0125-preview:northcentralus", - Gpt40125PreviewSouthcentralus: "gpt-4-0125-preview:southcentralus", - Gpt41106PreviewAustralia: "gpt-4-1106-preview:australia", - Gpt41106PreviewCanadaeast: "gpt-4-1106-preview:canadaeast", - Gpt41106PreviewFrance: "gpt-4-1106-preview:france", - Gpt41106PreviewIndia: "gpt-4-1106-preview:india", - Gpt41106PreviewNorway: "gpt-4-1106-preview:norway", - Gpt41106PreviewSwedencentral: "gpt-4-1106-preview:swedencentral", - Gpt41106PreviewUk: "gpt-4-1106-preview:uk", - Gpt41106PreviewWestus: "gpt-4-1106-preview:westus", - Gpt41106PreviewWestus3: "gpt-4-1106-preview:westus3", - Gpt40613Canadaeast: "gpt-4-0613:canadaeast", - Gpt35Turbo0125Canadaeast: "gpt-3.5-turbo-0125:canadaeast", - Gpt35Turbo0125Northcentralus: "gpt-3.5-turbo-0125:northcentralus", - Gpt35Turbo0125Southcentralus: "gpt-3.5-turbo-0125:southcentralus", - Gpt35Turbo1106Canadaeast: "gpt-3.5-turbo-1106:canadaeast", - Gpt35Turbo1106Westus: "gpt-3.5-turbo-1106:westus", - } as const; - export type FallbackModels = FallbackModels.Item[]; - - export namespace FallbackModels { - export type Item = - | "gpt-5" - | "gpt-5-mini" - | "gpt-5-nano" - | "gpt-4.1-2025-04-14" - | "gpt-4.1-mini-2025-04-14" - | "gpt-4.1-nano-2025-04-14" - | "gpt-4.1" - | "gpt-4.1-mini" - | "gpt-4.1-nano" - | "chatgpt-4o-latest" - | "o3" - | "o3-mini" - | "o4-mini" - | "o1-mini" - | "o1-mini-2024-09-12" - | "gpt-4o-realtime-preview-2024-10-01" - | "gpt-4o-realtime-preview-2024-12-17" - | "gpt-4o-mini-realtime-preview-2024-12-17" - | "gpt-realtime-2025-08-28" - | "gpt-4o-mini-2024-07-18" - | "gpt-4o-mini" - | "gpt-4o" - | "gpt-4o-2024-05-13" - | "gpt-4o-2024-08-06" - | "gpt-4o-2024-11-20" - | "gpt-4-turbo" - | "gpt-4-turbo-2024-04-09" - | "gpt-4-turbo-preview" - | "gpt-4-0125-preview" - | "gpt-4-1106-preview" - | "gpt-4" - | "gpt-4-0613" - | "gpt-3.5-turbo" - | "gpt-3.5-turbo-0125" - | "gpt-3.5-turbo-1106" - | "gpt-3.5-turbo-16k" - | "gpt-3.5-turbo-0613" - | "gpt-4.1-2025-04-14:westus" - | "gpt-4.1-2025-04-14:eastus2" - | "gpt-4.1-2025-04-14:eastus" - | "gpt-4.1-2025-04-14:westus3" - | "gpt-4.1-2025-04-14:northcentralus" - | "gpt-4.1-2025-04-14:southcentralus" - | "gpt-4.1-mini-2025-04-14:westus" - | "gpt-4.1-mini-2025-04-14:eastus2" - | "gpt-4.1-mini-2025-04-14:eastus" - | "gpt-4.1-mini-2025-04-14:westus3" - | "gpt-4.1-mini-2025-04-14:northcentralus" - | "gpt-4.1-mini-2025-04-14:southcentralus" - | "gpt-4.1-nano-2025-04-14:westus" - | "gpt-4.1-nano-2025-04-14:eastus2" - | "gpt-4.1-nano-2025-04-14:westus3" - | "gpt-4.1-nano-2025-04-14:northcentralus" - | "gpt-4.1-nano-2025-04-14:southcentralus" - | "gpt-4o-2024-11-20:swedencentral" - | "gpt-4o-2024-11-20:westus" - | "gpt-4o-2024-11-20:eastus2" - | "gpt-4o-2024-11-20:eastus" - | "gpt-4o-2024-11-20:westus3" - | "gpt-4o-2024-11-20:southcentralus" - | "gpt-4o-2024-08-06:westus" - | "gpt-4o-2024-08-06:westus3" - | "gpt-4o-2024-08-06:eastus" - | "gpt-4o-2024-08-06:eastus2" - | "gpt-4o-2024-08-06:northcentralus" - | "gpt-4o-2024-08-06:southcentralus" - | "gpt-4o-mini-2024-07-18:westus" - | "gpt-4o-mini-2024-07-18:westus3" - | "gpt-4o-mini-2024-07-18:eastus" - | "gpt-4o-mini-2024-07-18:eastus2" - | "gpt-4o-mini-2024-07-18:northcentralus" - | "gpt-4o-mini-2024-07-18:southcentralus" - | "gpt-4o-2024-05-13:eastus2" - | "gpt-4o-2024-05-13:eastus" - | "gpt-4o-2024-05-13:northcentralus" - | "gpt-4o-2024-05-13:southcentralus" - | "gpt-4o-2024-05-13:westus3" - | "gpt-4o-2024-05-13:westus" - | "gpt-4-turbo-2024-04-09:eastus2" - | "gpt-4-0125-preview:eastus" - | "gpt-4-0125-preview:northcentralus" - | "gpt-4-0125-preview:southcentralus" - | "gpt-4-1106-preview:australia" - | "gpt-4-1106-preview:canadaeast" - | "gpt-4-1106-preview:france" - | "gpt-4-1106-preview:india" - | "gpt-4-1106-preview:norway" - | "gpt-4-1106-preview:swedencentral" - | "gpt-4-1106-preview:uk" - | "gpt-4-1106-preview:westus" - | "gpt-4-1106-preview:westus3" - | "gpt-4-0613:canadaeast" - | "gpt-3.5-turbo-0125:canadaeast" - | "gpt-3.5-turbo-0125:northcentralus" - | "gpt-3.5-turbo-0125:southcentralus" - | "gpt-3.5-turbo-1106:canadaeast" - | "gpt-3.5-turbo-1106:westus"; - export const Item = { - Gpt5: "gpt-5", - Gpt5Mini: "gpt-5-mini", - Gpt5Nano: "gpt-5-nano", - Gpt4120250414: "gpt-4.1-2025-04-14", - Gpt41Mini20250414: "gpt-4.1-mini-2025-04-14", - Gpt41Nano20250414: "gpt-4.1-nano-2025-04-14", - Gpt41: "gpt-4.1", - Gpt41Mini: "gpt-4.1-mini", - Gpt41Nano: "gpt-4.1-nano", - Chatgpt4OLatest: "chatgpt-4o-latest", - O3: "o3", - O3Mini: "o3-mini", - O4Mini: "o4-mini", - O1Mini: "o1-mini", - O1Mini20240912: "o1-mini-2024-09-12", - Gpt4ORealtimePreview20241001: "gpt-4o-realtime-preview-2024-10-01", - Gpt4ORealtimePreview20241217: "gpt-4o-realtime-preview-2024-12-17", - Gpt4OMiniRealtimePreview20241217: "gpt-4o-mini-realtime-preview-2024-12-17", - GptRealtime20250828: "gpt-realtime-2025-08-28", - Gpt4OMini20240718: "gpt-4o-mini-2024-07-18", - Gpt4OMini: "gpt-4o-mini", - Gpt4O: "gpt-4o", - Gpt4O20240513: "gpt-4o-2024-05-13", - Gpt4O20240806: "gpt-4o-2024-08-06", - Gpt4O20241120: "gpt-4o-2024-11-20", - Gpt4Turbo: "gpt-4-turbo", - Gpt4Turbo20240409: "gpt-4-turbo-2024-04-09", - Gpt4TurboPreview: "gpt-4-turbo-preview", - Gpt40125Preview: "gpt-4-0125-preview", - Gpt41106Preview: "gpt-4-1106-preview", - Gpt4: "gpt-4", - Gpt40613: "gpt-4-0613", - Gpt35Turbo: "gpt-3.5-turbo", - Gpt35Turbo0125: "gpt-3.5-turbo-0125", - Gpt35Turbo1106: "gpt-3.5-turbo-1106", - Gpt35Turbo16K: "gpt-3.5-turbo-16k", - Gpt35Turbo0613: "gpt-3.5-turbo-0613", - Gpt4120250414Westus: "gpt-4.1-2025-04-14:westus", - Gpt4120250414Eastus2: "gpt-4.1-2025-04-14:eastus2", - Gpt4120250414Eastus: "gpt-4.1-2025-04-14:eastus", - Gpt4120250414Westus3: "gpt-4.1-2025-04-14:westus3", - Gpt4120250414Northcentralus: "gpt-4.1-2025-04-14:northcentralus", - Gpt4120250414Southcentralus: "gpt-4.1-2025-04-14:southcentralus", - Gpt41Mini20250414Westus: "gpt-4.1-mini-2025-04-14:westus", - Gpt41Mini20250414Eastus2: "gpt-4.1-mini-2025-04-14:eastus2", - Gpt41Mini20250414Eastus: "gpt-4.1-mini-2025-04-14:eastus", - Gpt41Mini20250414Westus3: "gpt-4.1-mini-2025-04-14:westus3", - Gpt41Mini20250414Northcentralus: "gpt-4.1-mini-2025-04-14:northcentralus", - Gpt41Mini20250414Southcentralus: "gpt-4.1-mini-2025-04-14:southcentralus", - Gpt41Nano20250414Westus: "gpt-4.1-nano-2025-04-14:westus", - Gpt41Nano20250414Eastus2: "gpt-4.1-nano-2025-04-14:eastus2", - Gpt41Nano20250414Westus3: "gpt-4.1-nano-2025-04-14:westus3", - Gpt41Nano20250414Northcentralus: "gpt-4.1-nano-2025-04-14:northcentralus", - Gpt41Nano20250414Southcentralus: "gpt-4.1-nano-2025-04-14:southcentralus", - Gpt4O20241120Swedencentral: "gpt-4o-2024-11-20:swedencentral", - Gpt4O20241120Westus: "gpt-4o-2024-11-20:westus", - Gpt4O20241120Eastus2: "gpt-4o-2024-11-20:eastus2", - Gpt4O20241120Eastus: "gpt-4o-2024-11-20:eastus", - Gpt4O20241120Westus3: "gpt-4o-2024-11-20:westus3", - Gpt4O20241120Southcentralus: "gpt-4o-2024-11-20:southcentralus", - Gpt4O20240806Westus: "gpt-4o-2024-08-06:westus", - Gpt4O20240806Westus3: "gpt-4o-2024-08-06:westus3", - Gpt4O20240806Eastus: "gpt-4o-2024-08-06:eastus", - Gpt4O20240806Eastus2: "gpt-4o-2024-08-06:eastus2", - Gpt4O20240806Northcentralus: "gpt-4o-2024-08-06:northcentralus", - Gpt4O20240806Southcentralus: "gpt-4o-2024-08-06:southcentralus", - Gpt4OMini20240718Westus: "gpt-4o-mini-2024-07-18:westus", - Gpt4OMini20240718Westus3: "gpt-4o-mini-2024-07-18:westus3", - Gpt4OMini20240718Eastus: "gpt-4o-mini-2024-07-18:eastus", - Gpt4OMini20240718Eastus2: "gpt-4o-mini-2024-07-18:eastus2", - Gpt4OMini20240718Northcentralus: "gpt-4o-mini-2024-07-18:northcentralus", - Gpt4OMini20240718Southcentralus: "gpt-4o-mini-2024-07-18:southcentralus", - Gpt4O20240513Eastus2: "gpt-4o-2024-05-13:eastus2", - Gpt4O20240513Eastus: "gpt-4o-2024-05-13:eastus", - Gpt4O20240513Northcentralus: "gpt-4o-2024-05-13:northcentralus", - Gpt4O20240513Southcentralus: "gpt-4o-2024-05-13:southcentralus", - Gpt4O20240513Westus3: "gpt-4o-2024-05-13:westus3", - Gpt4O20240513Westus: "gpt-4o-2024-05-13:westus", - Gpt4Turbo20240409Eastus2: "gpt-4-turbo-2024-04-09:eastus2", - Gpt40125PreviewEastus: "gpt-4-0125-preview:eastus", - Gpt40125PreviewNorthcentralus: "gpt-4-0125-preview:northcentralus", - Gpt40125PreviewSouthcentralus: "gpt-4-0125-preview:southcentralus", - Gpt41106PreviewAustralia: "gpt-4-1106-preview:australia", - Gpt41106PreviewCanadaeast: "gpt-4-1106-preview:canadaeast", - Gpt41106PreviewFrance: "gpt-4-1106-preview:france", - Gpt41106PreviewIndia: "gpt-4-1106-preview:india", - Gpt41106PreviewNorway: "gpt-4-1106-preview:norway", - Gpt41106PreviewSwedencentral: "gpt-4-1106-preview:swedencentral", - Gpt41106PreviewUk: "gpt-4-1106-preview:uk", - Gpt41106PreviewWestus: "gpt-4-1106-preview:westus", - Gpt41106PreviewWestus3: "gpt-4-1106-preview:westus3", - Gpt40613Canadaeast: "gpt-4-0613:canadaeast", - Gpt35Turbo0125Canadaeast: "gpt-3.5-turbo-0125:canadaeast", - Gpt35Turbo0125Northcentralus: "gpt-3.5-turbo-0125:northcentralus", - Gpt35Turbo0125Southcentralus: "gpt-3.5-turbo-0125:southcentralus", - Gpt35Turbo1106Canadaeast: "gpt-3.5-turbo-1106:canadaeast", - Gpt35Turbo1106Westus: "gpt-3.5-turbo-1106:westus", - } as const; - } - - /** - * Azure OpenAI doesn't support `maxLength` right now https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/structured-outputs?tabs=python-secure%2Cdotnet-entra-id&pivots=programming-language-csharp#unsupported-type-specific-keywords. Need to strip. - * - * - `strip-parameters-with-unsupported-validation` will strip parameters with unsupported validation. - * - `strip-unsupported-validation` will keep the parameters but strip unsupported validation. - * - * @default `strip-unsupported-validation` - */ - export type ToolStrictCompatibilityMode = - | "strip-parameters-with-unsupported-validation" - | "strip-unsupported-validation"; - export const ToolStrictCompatibilityMode = { - StripParametersWithUnsupportedValidation: "strip-parameters-with-unsupported-validation", - StripUnsupportedValidation: "strip-unsupported-validation", - } as const; -} diff --git a/src/api/types/OpenAiModelFallbackModelsItem.ts b/src/api/types/OpenAiModelFallbackModelsItem.ts new file mode 100644 index 00000000..c7e983c5 --- /dev/null +++ b/src/api/types/OpenAiModelFallbackModelsItem.ts @@ -0,0 +1,201 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type OpenAiModelFallbackModelsItem = + | "gpt-5" + | "gpt-5-mini" + | "gpt-5-nano" + | "gpt-4.1-2025-04-14" + | "gpt-4.1-mini-2025-04-14" + | "gpt-4.1-nano-2025-04-14" + | "gpt-4.1" + | "gpt-4.1-mini" + | "gpt-4.1-nano" + | "chatgpt-4o-latest" + | "o3" + | "o3-mini" + | "o4-mini" + | "o1-mini" + | "o1-mini-2024-09-12" + | "gpt-4o-realtime-preview-2024-10-01" + | "gpt-4o-realtime-preview-2024-12-17" + | "gpt-4o-mini-realtime-preview-2024-12-17" + | "gpt-realtime-2025-08-28" + | "gpt-4o-mini-2024-07-18" + | "gpt-4o-mini" + | "gpt-4o" + | "gpt-4o-2024-05-13" + | "gpt-4o-2024-08-06" + | "gpt-4o-2024-11-20" + | "gpt-4-turbo" + | "gpt-4-turbo-2024-04-09" + | "gpt-4-turbo-preview" + | "gpt-4-0125-preview" + | "gpt-4-1106-preview" + | "gpt-4" + | "gpt-4-0613" + | "gpt-3.5-turbo" + | "gpt-3.5-turbo-0125" + | "gpt-3.5-turbo-1106" + | "gpt-3.5-turbo-16k" + | "gpt-3.5-turbo-0613" + | "gpt-4.1-2025-04-14:westus" + | "gpt-4.1-2025-04-14:eastus2" + | "gpt-4.1-2025-04-14:eastus" + | "gpt-4.1-2025-04-14:westus3" + | "gpt-4.1-2025-04-14:northcentralus" + | "gpt-4.1-2025-04-14:southcentralus" + | "gpt-4.1-mini-2025-04-14:westus" + | "gpt-4.1-mini-2025-04-14:eastus2" + | "gpt-4.1-mini-2025-04-14:eastus" + | "gpt-4.1-mini-2025-04-14:westus3" + | "gpt-4.1-mini-2025-04-14:northcentralus" + | "gpt-4.1-mini-2025-04-14:southcentralus" + | "gpt-4.1-nano-2025-04-14:westus" + | "gpt-4.1-nano-2025-04-14:eastus2" + | "gpt-4.1-nano-2025-04-14:westus3" + | "gpt-4.1-nano-2025-04-14:northcentralus" + | "gpt-4.1-nano-2025-04-14:southcentralus" + | "gpt-4o-2024-11-20:swedencentral" + | "gpt-4o-2024-11-20:westus" + | "gpt-4o-2024-11-20:eastus2" + | "gpt-4o-2024-11-20:eastus" + | "gpt-4o-2024-11-20:westus3" + | "gpt-4o-2024-11-20:southcentralus" + | "gpt-4o-2024-08-06:westus" + | "gpt-4o-2024-08-06:westus3" + | "gpt-4o-2024-08-06:eastus" + | "gpt-4o-2024-08-06:eastus2" + | "gpt-4o-2024-08-06:northcentralus" + | "gpt-4o-2024-08-06:southcentralus" + | "gpt-4o-mini-2024-07-18:westus" + | "gpt-4o-mini-2024-07-18:westus3" + | "gpt-4o-mini-2024-07-18:eastus" + | "gpt-4o-mini-2024-07-18:eastus2" + | "gpt-4o-mini-2024-07-18:northcentralus" + | "gpt-4o-mini-2024-07-18:southcentralus" + | "gpt-4o-2024-05-13:eastus2" + | "gpt-4o-2024-05-13:eastus" + | "gpt-4o-2024-05-13:northcentralus" + | "gpt-4o-2024-05-13:southcentralus" + | "gpt-4o-2024-05-13:westus3" + | "gpt-4o-2024-05-13:westus" + | "gpt-4-turbo-2024-04-09:eastus2" + | "gpt-4-0125-preview:eastus" + | "gpt-4-0125-preview:northcentralus" + | "gpt-4-0125-preview:southcentralus" + | "gpt-4-1106-preview:australia" + | "gpt-4-1106-preview:canadaeast" + | "gpt-4-1106-preview:france" + | "gpt-4-1106-preview:india" + | "gpt-4-1106-preview:norway" + | "gpt-4-1106-preview:swedencentral" + | "gpt-4-1106-preview:uk" + | "gpt-4-1106-preview:westus" + | "gpt-4-1106-preview:westus3" + | "gpt-4-0613:canadaeast" + | "gpt-3.5-turbo-0125:canadaeast" + | "gpt-3.5-turbo-0125:northcentralus" + | "gpt-3.5-turbo-0125:southcentralus" + | "gpt-3.5-turbo-1106:canadaeast" + | "gpt-3.5-turbo-1106:westus"; +export const OpenAiModelFallbackModelsItem = { + Gpt5: "gpt-5", + Gpt5Mini: "gpt-5-mini", + Gpt5Nano: "gpt-5-nano", + Gpt4120250414: "gpt-4.1-2025-04-14", + Gpt41Mini20250414: "gpt-4.1-mini-2025-04-14", + Gpt41Nano20250414: "gpt-4.1-nano-2025-04-14", + Gpt41: "gpt-4.1", + Gpt41Mini: "gpt-4.1-mini", + Gpt41Nano: "gpt-4.1-nano", + Chatgpt4OLatest: "chatgpt-4o-latest", + O3: "o3", + O3Mini: "o3-mini", + O4Mini: "o4-mini", + O1Mini: "o1-mini", + O1Mini20240912: "o1-mini-2024-09-12", + Gpt4ORealtimePreview20241001: "gpt-4o-realtime-preview-2024-10-01", + Gpt4ORealtimePreview20241217: "gpt-4o-realtime-preview-2024-12-17", + Gpt4OMiniRealtimePreview20241217: "gpt-4o-mini-realtime-preview-2024-12-17", + GptRealtime20250828: "gpt-realtime-2025-08-28", + Gpt4OMini20240718: "gpt-4o-mini-2024-07-18", + Gpt4OMini: "gpt-4o-mini", + Gpt4O: "gpt-4o", + Gpt4O20240513: "gpt-4o-2024-05-13", + Gpt4O20240806: "gpt-4o-2024-08-06", + Gpt4O20241120: "gpt-4o-2024-11-20", + Gpt4Turbo: "gpt-4-turbo", + Gpt4Turbo20240409: "gpt-4-turbo-2024-04-09", + Gpt4TurboPreview: "gpt-4-turbo-preview", + Gpt40125Preview: "gpt-4-0125-preview", + Gpt41106Preview: "gpt-4-1106-preview", + Gpt4: "gpt-4", + Gpt40613: "gpt-4-0613", + Gpt35Turbo: "gpt-3.5-turbo", + Gpt35Turbo0125: "gpt-3.5-turbo-0125", + Gpt35Turbo1106: "gpt-3.5-turbo-1106", + Gpt35Turbo16K: "gpt-3.5-turbo-16k", + Gpt35Turbo0613: "gpt-3.5-turbo-0613", + Gpt4120250414Westus: "gpt-4.1-2025-04-14:westus", + Gpt4120250414Eastus2: "gpt-4.1-2025-04-14:eastus2", + Gpt4120250414Eastus: "gpt-4.1-2025-04-14:eastus", + Gpt4120250414Westus3: "gpt-4.1-2025-04-14:westus3", + Gpt4120250414Northcentralus: "gpt-4.1-2025-04-14:northcentralus", + Gpt4120250414Southcentralus: "gpt-4.1-2025-04-14:southcentralus", + Gpt41Mini20250414Westus: "gpt-4.1-mini-2025-04-14:westus", + Gpt41Mini20250414Eastus2: "gpt-4.1-mini-2025-04-14:eastus2", + Gpt41Mini20250414Eastus: "gpt-4.1-mini-2025-04-14:eastus", + Gpt41Mini20250414Westus3: "gpt-4.1-mini-2025-04-14:westus3", + Gpt41Mini20250414Northcentralus: "gpt-4.1-mini-2025-04-14:northcentralus", + Gpt41Mini20250414Southcentralus: "gpt-4.1-mini-2025-04-14:southcentralus", + Gpt41Nano20250414Westus: "gpt-4.1-nano-2025-04-14:westus", + Gpt41Nano20250414Eastus2: "gpt-4.1-nano-2025-04-14:eastus2", + Gpt41Nano20250414Westus3: "gpt-4.1-nano-2025-04-14:westus3", + Gpt41Nano20250414Northcentralus: "gpt-4.1-nano-2025-04-14:northcentralus", + Gpt41Nano20250414Southcentralus: "gpt-4.1-nano-2025-04-14:southcentralus", + Gpt4O20241120Swedencentral: "gpt-4o-2024-11-20:swedencentral", + Gpt4O20241120Westus: "gpt-4o-2024-11-20:westus", + Gpt4O20241120Eastus2: "gpt-4o-2024-11-20:eastus2", + Gpt4O20241120Eastus: "gpt-4o-2024-11-20:eastus", + Gpt4O20241120Westus3: "gpt-4o-2024-11-20:westus3", + Gpt4O20241120Southcentralus: "gpt-4o-2024-11-20:southcentralus", + Gpt4O20240806Westus: "gpt-4o-2024-08-06:westus", + Gpt4O20240806Westus3: "gpt-4o-2024-08-06:westus3", + Gpt4O20240806Eastus: "gpt-4o-2024-08-06:eastus", + Gpt4O20240806Eastus2: "gpt-4o-2024-08-06:eastus2", + Gpt4O20240806Northcentralus: "gpt-4o-2024-08-06:northcentralus", + Gpt4O20240806Southcentralus: "gpt-4o-2024-08-06:southcentralus", + Gpt4OMini20240718Westus: "gpt-4o-mini-2024-07-18:westus", + Gpt4OMini20240718Westus3: "gpt-4o-mini-2024-07-18:westus3", + Gpt4OMini20240718Eastus: "gpt-4o-mini-2024-07-18:eastus", + Gpt4OMini20240718Eastus2: "gpt-4o-mini-2024-07-18:eastus2", + Gpt4OMini20240718Northcentralus: "gpt-4o-mini-2024-07-18:northcentralus", + Gpt4OMini20240718Southcentralus: "gpt-4o-mini-2024-07-18:southcentralus", + Gpt4O20240513Eastus2: "gpt-4o-2024-05-13:eastus2", + Gpt4O20240513Eastus: "gpt-4o-2024-05-13:eastus", + Gpt4O20240513Northcentralus: "gpt-4o-2024-05-13:northcentralus", + Gpt4O20240513Southcentralus: "gpt-4o-2024-05-13:southcentralus", + Gpt4O20240513Westus3: "gpt-4o-2024-05-13:westus3", + Gpt4O20240513Westus: "gpt-4o-2024-05-13:westus", + Gpt4Turbo20240409Eastus2: "gpt-4-turbo-2024-04-09:eastus2", + Gpt40125PreviewEastus: "gpt-4-0125-preview:eastus", + Gpt40125PreviewNorthcentralus: "gpt-4-0125-preview:northcentralus", + Gpt40125PreviewSouthcentralus: "gpt-4-0125-preview:southcentralus", + Gpt41106PreviewAustralia: "gpt-4-1106-preview:australia", + Gpt41106PreviewCanadaeast: "gpt-4-1106-preview:canadaeast", + Gpt41106PreviewFrance: "gpt-4-1106-preview:france", + Gpt41106PreviewIndia: "gpt-4-1106-preview:india", + Gpt41106PreviewNorway: "gpt-4-1106-preview:norway", + Gpt41106PreviewSwedencentral: "gpt-4-1106-preview:swedencentral", + Gpt41106PreviewUk: "gpt-4-1106-preview:uk", + Gpt41106PreviewWestus: "gpt-4-1106-preview:westus", + Gpt41106PreviewWestus3: "gpt-4-1106-preview:westus3", + Gpt40613Canadaeast: "gpt-4-0613:canadaeast", + Gpt35Turbo0125Canadaeast: "gpt-3.5-turbo-0125:canadaeast", + Gpt35Turbo0125Northcentralus: "gpt-3.5-turbo-0125:northcentralus", + Gpt35Turbo0125Southcentralus: "gpt-3.5-turbo-0125:southcentralus", + Gpt35Turbo1106Canadaeast: "gpt-3.5-turbo-1106:canadaeast", + Gpt35Turbo1106Westus: "gpt-3.5-turbo-1106:westus", +} as const; diff --git a/src/api/types/OpenAiModelModel.ts b/src/api/types/OpenAiModelModel.ts new file mode 100644 index 00000000..4eabe1ee --- /dev/null +++ b/src/api/types/OpenAiModelModel.ts @@ -0,0 +1,209 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the OpenAI model that will be used. + * + * When using Vapi OpenAI or your own Azure Credentials, you have the option to specify the region for the selected model. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest region that make sense. + * This is helpful when you are required to comply with Data Residency rules. Learn more about Azure regions here https://azure.microsoft.com/en-us/explore/global-infrastructure/data-residency/. + * + * @default undefined + */ +export type OpenAiModelModel = + | "gpt-5" + | "gpt-5-mini" + | "gpt-5-nano" + | "gpt-4.1-2025-04-14" + | "gpt-4.1-mini-2025-04-14" + | "gpt-4.1-nano-2025-04-14" + | "gpt-4.1" + | "gpt-4.1-mini" + | "gpt-4.1-nano" + | "chatgpt-4o-latest" + | "o3" + | "o3-mini" + | "o4-mini" + | "o1-mini" + | "o1-mini-2024-09-12" + | "gpt-4o-realtime-preview-2024-10-01" + | "gpt-4o-realtime-preview-2024-12-17" + | "gpt-4o-mini-realtime-preview-2024-12-17" + | "gpt-realtime-2025-08-28" + | "gpt-4o-mini-2024-07-18" + | "gpt-4o-mini" + | "gpt-4o" + | "gpt-4o-2024-05-13" + | "gpt-4o-2024-08-06" + | "gpt-4o-2024-11-20" + | "gpt-4-turbo" + | "gpt-4-turbo-2024-04-09" + | "gpt-4-turbo-preview" + | "gpt-4-0125-preview" + | "gpt-4-1106-preview" + | "gpt-4" + | "gpt-4-0613" + | "gpt-3.5-turbo" + | "gpt-3.5-turbo-0125" + | "gpt-3.5-turbo-1106" + | "gpt-3.5-turbo-16k" + | "gpt-3.5-turbo-0613" + | "gpt-4.1-2025-04-14:westus" + | "gpt-4.1-2025-04-14:eastus2" + | "gpt-4.1-2025-04-14:eastus" + | "gpt-4.1-2025-04-14:westus3" + | "gpt-4.1-2025-04-14:northcentralus" + | "gpt-4.1-2025-04-14:southcentralus" + | "gpt-4.1-mini-2025-04-14:westus" + | "gpt-4.1-mini-2025-04-14:eastus2" + | "gpt-4.1-mini-2025-04-14:eastus" + | "gpt-4.1-mini-2025-04-14:westus3" + | "gpt-4.1-mini-2025-04-14:northcentralus" + | "gpt-4.1-mini-2025-04-14:southcentralus" + | "gpt-4.1-nano-2025-04-14:westus" + | "gpt-4.1-nano-2025-04-14:eastus2" + | "gpt-4.1-nano-2025-04-14:westus3" + | "gpt-4.1-nano-2025-04-14:northcentralus" + | "gpt-4.1-nano-2025-04-14:southcentralus" + | "gpt-4o-2024-11-20:swedencentral" + | "gpt-4o-2024-11-20:westus" + | "gpt-4o-2024-11-20:eastus2" + | "gpt-4o-2024-11-20:eastus" + | "gpt-4o-2024-11-20:westus3" + | "gpt-4o-2024-11-20:southcentralus" + | "gpt-4o-2024-08-06:westus" + | "gpt-4o-2024-08-06:westus3" + | "gpt-4o-2024-08-06:eastus" + | "gpt-4o-2024-08-06:eastus2" + | "gpt-4o-2024-08-06:northcentralus" + | "gpt-4o-2024-08-06:southcentralus" + | "gpt-4o-mini-2024-07-18:westus" + | "gpt-4o-mini-2024-07-18:westus3" + | "gpt-4o-mini-2024-07-18:eastus" + | "gpt-4o-mini-2024-07-18:eastus2" + | "gpt-4o-mini-2024-07-18:northcentralus" + | "gpt-4o-mini-2024-07-18:southcentralus" + | "gpt-4o-2024-05-13:eastus2" + | "gpt-4o-2024-05-13:eastus" + | "gpt-4o-2024-05-13:northcentralus" + | "gpt-4o-2024-05-13:southcentralus" + | "gpt-4o-2024-05-13:westus3" + | "gpt-4o-2024-05-13:westus" + | "gpt-4-turbo-2024-04-09:eastus2" + | "gpt-4-0125-preview:eastus" + | "gpt-4-0125-preview:northcentralus" + | "gpt-4-0125-preview:southcentralus" + | "gpt-4-1106-preview:australia" + | "gpt-4-1106-preview:canadaeast" + | "gpt-4-1106-preview:france" + | "gpt-4-1106-preview:india" + | "gpt-4-1106-preview:norway" + | "gpt-4-1106-preview:swedencentral" + | "gpt-4-1106-preview:uk" + | "gpt-4-1106-preview:westus" + | "gpt-4-1106-preview:westus3" + | "gpt-4-0613:canadaeast" + | "gpt-3.5-turbo-0125:canadaeast" + | "gpt-3.5-turbo-0125:northcentralus" + | "gpt-3.5-turbo-0125:southcentralus" + | "gpt-3.5-turbo-1106:canadaeast" + | "gpt-3.5-turbo-1106:westus"; +export const OpenAiModelModel = { + Gpt5: "gpt-5", + Gpt5Mini: "gpt-5-mini", + Gpt5Nano: "gpt-5-nano", + Gpt4120250414: "gpt-4.1-2025-04-14", + Gpt41Mini20250414: "gpt-4.1-mini-2025-04-14", + Gpt41Nano20250414: "gpt-4.1-nano-2025-04-14", + Gpt41: "gpt-4.1", + Gpt41Mini: "gpt-4.1-mini", + Gpt41Nano: "gpt-4.1-nano", + Chatgpt4OLatest: "chatgpt-4o-latest", + O3: "o3", + O3Mini: "o3-mini", + O4Mini: "o4-mini", + O1Mini: "o1-mini", + O1Mini20240912: "o1-mini-2024-09-12", + Gpt4ORealtimePreview20241001: "gpt-4o-realtime-preview-2024-10-01", + Gpt4ORealtimePreview20241217: "gpt-4o-realtime-preview-2024-12-17", + Gpt4OMiniRealtimePreview20241217: "gpt-4o-mini-realtime-preview-2024-12-17", + GptRealtime20250828: "gpt-realtime-2025-08-28", + Gpt4OMini20240718: "gpt-4o-mini-2024-07-18", + Gpt4OMini: "gpt-4o-mini", + Gpt4O: "gpt-4o", + Gpt4O20240513: "gpt-4o-2024-05-13", + Gpt4O20240806: "gpt-4o-2024-08-06", + Gpt4O20241120: "gpt-4o-2024-11-20", + Gpt4Turbo: "gpt-4-turbo", + Gpt4Turbo20240409: "gpt-4-turbo-2024-04-09", + Gpt4TurboPreview: "gpt-4-turbo-preview", + Gpt40125Preview: "gpt-4-0125-preview", + Gpt41106Preview: "gpt-4-1106-preview", + Gpt4: "gpt-4", + Gpt40613: "gpt-4-0613", + Gpt35Turbo: "gpt-3.5-turbo", + Gpt35Turbo0125: "gpt-3.5-turbo-0125", + Gpt35Turbo1106: "gpt-3.5-turbo-1106", + Gpt35Turbo16K: "gpt-3.5-turbo-16k", + Gpt35Turbo0613: "gpt-3.5-turbo-0613", + Gpt4120250414Westus: "gpt-4.1-2025-04-14:westus", + Gpt4120250414Eastus2: "gpt-4.1-2025-04-14:eastus2", + Gpt4120250414Eastus: "gpt-4.1-2025-04-14:eastus", + Gpt4120250414Westus3: "gpt-4.1-2025-04-14:westus3", + Gpt4120250414Northcentralus: "gpt-4.1-2025-04-14:northcentralus", + Gpt4120250414Southcentralus: "gpt-4.1-2025-04-14:southcentralus", + Gpt41Mini20250414Westus: "gpt-4.1-mini-2025-04-14:westus", + Gpt41Mini20250414Eastus2: "gpt-4.1-mini-2025-04-14:eastus2", + Gpt41Mini20250414Eastus: "gpt-4.1-mini-2025-04-14:eastus", + Gpt41Mini20250414Westus3: "gpt-4.1-mini-2025-04-14:westus3", + Gpt41Mini20250414Northcentralus: "gpt-4.1-mini-2025-04-14:northcentralus", + Gpt41Mini20250414Southcentralus: "gpt-4.1-mini-2025-04-14:southcentralus", + Gpt41Nano20250414Westus: "gpt-4.1-nano-2025-04-14:westus", + Gpt41Nano20250414Eastus2: "gpt-4.1-nano-2025-04-14:eastus2", + Gpt41Nano20250414Westus3: "gpt-4.1-nano-2025-04-14:westus3", + Gpt41Nano20250414Northcentralus: "gpt-4.1-nano-2025-04-14:northcentralus", + Gpt41Nano20250414Southcentralus: "gpt-4.1-nano-2025-04-14:southcentralus", + Gpt4O20241120Swedencentral: "gpt-4o-2024-11-20:swedencentral", + Gpt4O20241120Westus: "gpt-4o-2024-11-20:westus", + Gpt4O20241120Eastus2: "gpt-4o-2024-11-20:eastus2", + Gpt4O20241120Eastus: "gpt-4o-2024-11-20:eastus", + Gpt4O20241120Westus3: "gpt-4o-2024-11-20:westus3", + Gpt4O20241120Southcentralus: "gpt-4o-2024-11-20:southcentralus", + Gpt4O20240806Westus: "gpt-4o-2024-08-06:westus", + Gpt4O20240806Westus3: "gpt-4o-2024-08-06:westus3", + Gpt4O20240806Eastus: "gpt-4o-2024-08-06:eastus", + Gpt4O20240806Eastus2: "gpt-4o-2024-08-06:eastus2", + Gpt4O20240806Northcentralus: "gpt-4o-2024-08-06:northcentralus", + Gpt4O20240806Southcentralus: "gpt-4o-2024-08-06:southcentralus", + Gpt4OMini20240718Westus: "gpt-4o-mini-2024-07-18:westus", + Gpt4OMini20240718Westus3: "gpt-4o-mini-2024-07-18:westus3", + Gpt4OMini20240718Eastus: "gpt-4o-mini-2024-07-18:eastus", + Gpt4OMini20240718Eastus2: "gpt-4o-mini-2024-07-18:eastus2", + Gpt4OMini20240718Northcentralus: "gpt-4o-mini-2024-07-18:northcentralus", + Gpt4OMini20240718Southcentralus: "gpt-4o-mini-2024-07-18:southcentralus", + Gpt4O20240513Eastus2: "gpt-4o-2024-05-13:eastus2", + Gpt4O20240513Eastus: "gpt-4o-2024-05-13:eastus", + Gpt4O20240513Northcentralus: "gpt-4o-2024-05-13:northcentralus", + Gpt4O20240513Southcentralus: "gpt-4o-2024-05-13:southcentralus", + Gpt4O20240513Westus3: "gpt-4o-2024-05-13:westus3", + Gpt4O20240513Westus: "gpt-4o-2024-05-13:westus", + Gpt4Turbo20240409Eastus2: "gpt-4-turbo-2024-04-09:eastus2", + Gpt40125PreviewEastus: "gpt-4-0125-preview:eastus", + Gpt40125PreviewNorthcentralus: "gpt-4-0125-preview:northcentralus", + Gpt40125PreviewSouthcentralus: "gpt-4-0125-preview:southcentralus", + Gpt41106PreviewAustralia: "gpt-4-1106-preview:australia", + Gpt41106PreviewCanadaeast: "gpt-4-1106-preview:canadaeast", + Gpt41106PreviewFrance: "gpt-4-1106-preview:france", + Gpt41106PreviewIndia: "gpt-4-1106-preview:india", + Gpt41106PreviewNorway: "gpt-4-1106-preview:norway", + Gpt41106PreviewSwedencentral: "gpt-4-1106-preview:swedencentral", + Gpt41106PreviewUk: "gpt-4-1106-preview:uk", + Gpt41106PreviewWestus: "gpt-4-1106-preview:westus", + Gpt41106PreviewWestus3: "gpt-4-1106-preview:westus3", + Gpt40613Canadaeast: "gpt-4-0613:canadaeast", + Gpt35Turbo0125Canadaeast: "gpt-3.5-turbo-0125:canadaeast", + Gpt35Turbo0125Northcentralus: "gpt-3.5-turbo-0125:northcentralus", + Gpt35Turbo0125Southcentralus: "gpt-3.5-turbo-0125:southcentralus", + Gpt35Turbo1106Canadaeast: "gpt-3.5-turbo-1106:canadaeast", + Gpt35Turbo1106Westus: "gpt-3.5-turbo-1106:westus", +} as const; diff --git a/src/api/types/OpenAiModelToolStrictCompatibilityMode.ts b/src/api/types/OpenAiModelToolStrictCompatibilityMode.ts new file mode 100644 index 00000000..f2bd0580 --- /dev/null +++ b/src/api/types/OpenAiModelToolStrictCompatibilityMode.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Azure OpenAI doesn't support `maxLength` right now https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/structured-outputs?tabs=python-secure%2Cdotnet-entra-id&pivots=programming-language-csharp#unsupported-type-specific-keywords. Need to strip. + * + * - `strip-parameters-with-unsupported-validation` will strip parameters with unsupported validation. + * - `strip-unsupported-validation` will keep the parameters but strip unsupported validation. + * + * @default `strip-unsupported-validation` + */ +export type OpenAiModelToolStrictCompatibilityMode = + | "strip-parameters-with-unsupported-validation" + | "strip-unsupported-validation"; +export const OpenAiModelToolStrictCompatibilityMode = { + StripParametersWithUnsupportedValidation: "strip-parameters-with-unsupported-validation", + StripUnsupportedValidation: "strip-unsupported-validation", +} as const; diff --git a/src/api/types/OpenAiModelToolsItem.ts b/src/api/types/OpenAiModelToolsItem.ts new file mode 100644 index 00000000..7221c079 --- /dev/null +++ b/src/api/types/OpenAiModelToolsItem.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type OpenAiModelToolsItem = + | Vapi.CreateApiRequestToolDto + | Vapi.CreateBashToolDto + | Vapi.CreateComputerToolDto + | Vapi.CreateDtmfToolDto + | Vapi.CreateEndCallToolDto + | Vapi.CreateFunctionToolDto + | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto + | Vapi.CreateGoHighLevelCalendarEventCreateToolDto + | Vapi.CreateGoHighLevelContactCreateToolDto + | Vapi.CreateGoHighLevelContactGetToolDto + | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto + | Vapi.CreateGoogleCalendarCreateEventToolDto + | Vapi.CreateGoogleSheetsRowAppendToolDto + | Vapi.CreateHandoffToolDto + | Vapi.CreateMcpToolDto + | Vapi.CreateQueryToolDto + | Vapi.CreateSlackSendMessageToolDto + | Vapi.CreateSmsToolDto + | Vapi.CreateTextEditorToolDto + | Vapi.CreateTransferCallToolDto; diff --git a/src/api/types/OpenAiTranscriber.ts b/src/api/types/OpenAiTranscriber.ts index d357c628..3c2d4324 100644 --- a/src/api/types/OpenAiTranscriber.ts +++ b/src/api/types/OpenAiTranscriber.ts @@ -8,140 +8,9 @@ export interface OpenAiTranscriber { /** This is the transcription provider that will be used. */ provider: "openai"; /** This is the model that will be used for the transcription. */ - model: OpenAiTranscriber.Model; + model: Vapi.OpenAiTranscriberModel; /** This is the language that will be set for the transcription. */ - language?: OpenAiTranscriber.Language; + language?: Vapi.OpenAiTranscriberLanguage; /** This is the plan for voice provider fallbacks in the event that the primary voice provider fails. */ fallbackPlan?: Vapi.FallbackTranscriberPlan; } - -export namespace OpenAiTranscriber { - /** - * This is the model that will be used for the transcription. - */ - export type Model = "gpt-4o-transcribe" | "gpt-4o-mini-transcribe"; - export const Model = { - Gpt4OTranscribe: "gpt-4o-transcribe", - Gpt4OMiniTranscribe: "gpt-4o-mini-transcribe", - } as const; - /** - * This is the language that will be set for the transcription. - */ - export type Language = - | "af" - | "ar" - | "hy" - | "az" - | "be" - | "bs" - | "bg" - | "ca" - | "zh" - | "hr" - | "cs" - | "da" - | "nl" - | "en" - | "et" - | "fi" - | "fr" - | "gl" - | "de" - | "el" - | "he" - | "hi" - | "hu" - | "is" - | "id" - | "it" - | "ja" - | "kn" - | "kk" - | "ko" - | "lv" - | "lt" - | "mk" - | "ms" - | "mr" - | "mi" - | "ne" - | "no" - | "fa" - | "pl" - | "pt" - | "ro" - | "ru" - | "sr" - | "sk" - | "sl" - | "es" - | "sw" - | "sv" - | "tl" - | "ta" - | "th" - | "tr" - | "uk" - | "ur" - | "vi" - | "cy"; - export const Language = { - Af: "af", - Ar: "ar", - Hy: "hy", - Az: "az", - Be: "be", - Bs: "bs", - Bg: "bg", - Ca: "ca", - Zh: "zh", - Hr: "hr", - Cs: "cs", - Da: "da", - Nl: "nl", - En: "en", - Et: "et", - Fi: "fi", - Fr: "fr", - Gl: "gl", - De: "de", - El: "el", - He: "he", - Hi: "hi", - Hu: "hu", - Is: "is", - Id: "id", - It: "it", - Ja: "ja", - Kn: "kn", - Kk: "kk", - Ko: "ko", - Lv: "lv", - Lt: "lt", - Mk: "mk", - Ms: "ms", - Mr: "mr", - Mi: "mi", - Ne: "ne", - No: "no", - Fa: "fa", - Pl: "pl", - Pt: "pt", - Ro: "ro", - Ru: "ru", - Sr: "sr", - Sk: "sk", - Sl: "sl", - Es: "es", - Sw: "sw", - Sv: "sv", - Tl: "tl", - Ta: "ta", - Th: "th", - Tr: "tr", - Uk: "uk", - Ur: "ur", - Vi: "vi", - Cy: "cy", - } as const; -} diff --git a/src/api/types/OpenAiTranscriberLanguage.ts b/src/api/types/OpenAiTranscriberLanguage.ts new file mode 100644 index 00000000..3687a84f --- /dev/null +++ b/src/api/types/OpenAiTranscriberLanguage.ts @@ -0,0 +1,124 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the language that will be set for the transcription. + */ +export type OpenAiTranscriberLanguage = + | "af" + | "ar" + | "hy" + | "az" + | "be" + | "bs" + | "bg" + | "ca" + | "zh" + | "hr" + | "cs" + | "da" + | "nl" + | "en" + | "et" + | "fi" + | "fr" + | "gl" + | "de" + | "el" + | "he" + | "hi" + | "hu" + | "is" + | "id" + | "it" + | "ja" + | "kn" + | "kk" + | "ko" + | "lv" + | "lt" + | "mk" + | "ms" + | "mr" + | "mi" + | "ne" + | "no" + | "fa" + | "pl" + | "pt" + | "ro" + | "ru" + | "sr" + | "sk" + | "sl" + | "es" + | "sw" + | "sv" + | "tl" + | "ta" + | "th" + | "tr" + | "uk" + | "ur" + | "vi" + | "cy"; +export const OpenAiTranscriberLanguage = { + Af: "af", + Ar: "ar", + Hy: "hy", + Az: "az", + Be: "be", + Bs: "bs", + Bg: "bg", + Ca: "ca", + Zh: "zh", + Hr: "hr", + Cs: "cs", + Da: "da", + Nl: "nl", + En: "en", + Et: "et", + Fi: "fi", + Fr: "fr", + Gl: "gl", + De: "de", + El: "el", + He: "he", + Hi: "hi", + Hu: "hu", + Is: "is", + Id: "id", + It: "it", + Ja: "ja", + Kn: "kn", + Kk: "kk", + Ko: "ko", + Lv: "lv", + Lt: "lt", + Mk: "mk", + Ms: "ms", + Mr: "mr", + Mi: "mi", + Ne: "ne", + No: "no", + Fa: "fa", + Pl: "pl", + Pt: "pt", + Ro: "ro", + Ru: "ru", + Sr: "sr", + Sk: "sk", + Sl: "sl", + Es: "es", + Sw: "sw", + Sv: "sv", + Tl: "tl", + Ta: "ta", + Th: "th", + Tr: "tr", + Uk: "uk", + Ur: "ur", + Vi: "vi", + Cy: "cy", +} as const; diff --git a/src/api/types/OpenAiTranscriberModel.ts b/src/api/types/OpenAiTranscriberModel.ts new file mode 100644 index 00000000..867659d0 --- /dev/null +++ b/src/api/types/OpenAiTranscriberModel.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the model that will be used for the transcription. + */ +export type OpenAiTranscriberModel = "gpt-4o-transcribe" | "gpt-4o-mini-transcribe"; +export const OpenAiTranscriberModel = { + Gpt4OTranscribe: "gpt-4o-transcribe", + Gpt4OMiniTranscribe: "gpt-4o-mini-transcribe", +} as const; diff --git a/src/api/types/OpenAiVoice.ts b/src/api/types/OpenAiVoice.ts index f372a755..62895475 100644 --- a/src/api/types/OpenAiVoice.ts +++ b/src/api/types/OpenAiVoice.ts @@ -13,9 +13,9 @@ export interface OpenAiVoice { * This is the provider-specific ID that will be used. * Please note that ash, ballad, coral, sage, and verse may only be used with realtime models. */ - voiceId: OpenAiVoice.VoiceId; + voiceId: Vapi.OpenAiVoiceId; /** This is the model that will be used for text-to-speech. */ - model?: OpenAiVoice.Model; + model?: Vapi.OpenAiVoiceModel; /** * This is a prompt that allows you to control the voice of your generated audio. * Does not work with 'tts-1' or 'tts-1-hd' models. @@ -28,20 +28,3 @@ export interface OpenAiVoice { /** This is the plan for voice provider fallbacks in the event that the primary voice provider fails. */ fallbackPlan?: Vapi.FallbackPlan; } - -export namespace OpenAiVoice { - /** - * This is the provider-specific ID that will be used. - * Please note that ash, ballad, coral, sage, and verse may only be used with realtime models. - */ - export type VoiceId = ("alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer" | "marin" | "cedar") | string; - /** - * This is the model that will be used for text-to-speech. - */ - export type Model = "tts-1" | "tts-1-hd" | "gpt-4o-mini-tts"; - export const Model = { - Tts1: "tts-1", - Tts1Hd: "tts-1-hd", - Gpt4OMiniTts: "gpt-4o-mini-tts", - } as const; -} diff --git a/src/api/types/OpenAiVoiceId.ts b/src/api/types/OpenAiVoiceId.ts new file mode 100644 index 00000000..ae64baac --- /dev/null +++ b/src/api/types/OpenAiVoiceId.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the provider-specific ID that will be used. + * Please note that ash, ballad, coral, sage, and verse may only be used with realtime models. + */ +export type OpenAiVoiceId = Vapi.OpenAiVoiceIdEnum | string; diff --git a/src/api/types/OpenAiVoiceIdEnum.ts b/src/api/types/OpenAiVoiceIdEnum.ts new file mode 100644 index 00000000..e1c60676 --- /dev/null +++ b/src/api/types/OpenAiVoiceIdEnum.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type OpenAiVoiceIdEnum = "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer" | "marin" | "cedar"; +export const OpenAiVoiceIdEnum = { + Alloy: "alloy", + Echo: "echo", + Fable: "fable", + Onyx: "onyx", + Nova: "nova", + Shimmer: "shimmer", + Marin: "marin", + Cedar: "cedar", +} as const; diff --git a/src/api/types/OpenAiVoiceModel.ts b/src/api/types/OpenAiVoiceModel.ts new file mode 100644 index 00000000..3db4e4c8 --- /dev/null +++ b/src/api/types/OpenAiVoiceModel.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the model that will be used for text-to-speech. + */ +export type OpenAiVoiceModel = "tts-1" | "tts-1-hd" | "gpt-4o-mini-tts"; +export const OpenAiVoiceModel = { + Tts1: "tts-1", + Tts1Hd: "tts-1-hd", + Gpt4OMiniTts: "gpt-4o-mini-tts", +} as const; diff --git a/src/api/types/OpenAiVoicemailDetectionPlan.ts b/src/api/types/OpenAiVoicemailDetectionPlan.ts index 7e903667..3ea2b077 100644 --- a/src/api/types/OpenAiVoicemailDetectionPlan.ts +++ b/src/api/types/OpenAiVoicemailDetectionPlan.ts @@ -27,19 +27,5 @@ export interface OpenAiVoicemailDetectionPlan { * - 'transcript': Uses ASR/transcript-based detection * @default 'audio' (audio detection) */ - type?: OpenAiVoicemailDetectionPlan.Type; -} - -export namespace OpenAiVoicemailDetectionPlan { - /** - * This is the detection type to use for voicemail detection. - * - 'audio': Uses native audio models (default) - * - 'transcript': Uses ASR/transcript-based detection - * @default 'audio' (audio detection) - */ - export type Type = "audio" | "transcript"; - export const Type = { - Audio: "audio", - Transcript: "transcript", - } as const; + type?: Vapi.OpenAiVoicemailDetectionPlanType; } diff --git a/src/api/types/OpenAiVoicemailDetectionPlanType.ts b/src/api/types/OpenAiVoicemailDetectionPlanType.ts new file mode 100644 index 00000000..6291916d --- /dev/null +++ b/src/api/types/OpenAiVoicemailDetectionPlanType.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the detection type to use for voicemail detection. + * - 'audio': Uses native audio models (default) + * - 'transcript': Uses ASR/transcript-based detection + * @default 'audio' (audio detection) + */ +export type OpenAiVoicemailDetectionPlanType = "audio" | "transcript"; +export const OpenAiVoicemailDetectionPlanType = { + Audio: "audio", + Transcript: "transcript", +} as const; diff --git a/src/api/types/OpenAiWebChatRequest.ts b/src/api/types/OpenAiWebChatRequest.ts index b4dbfeeb..629c8cd6 100644 --- a/src/api/types/OpenAiWebChatRequest.ts +++ b/src/api/types/OpenAiWebChatRequest.ts @@ -27,7 +27,7 @@ export interface OpenAiWebChatRequest { * This is the input text for the chat. * Can be a string or an array of chat messages. */ - input: OpenAiWebChatRequest.Input; + input: Vapi.OpenAiWebChatRequestInput; /** Whether to stream the response or not. */ stream?: boolean; /** @@ -37,13 +37,3 @@ export interface OpenAiWebChatRequest { */ sessionEnd?: boolean; } - -export namespace OpenAiWebChatRequest { - /** - * This is the input text for the chat. - * Can be a string or an array of chat messages. - */ - export type Input = - | string - | (Vapi.SystemMessage | Vapi.UserMessage | Vapi.AssistantMessage | Vapi.ToolMessage | Vapi.DeveloperMessage)[]; -} diff --git a/src/api/types/OpenAiWebChatRequestInput.ts b/src/api/types/OpenAiWebChatRequestInput.ts new file mode 100644 index 00000000..d6f54a6a --- /dev/null +++ b/src/api/types/OpenAiWebChatRequestInput.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the input text for the chat. + * Can be a string or an array of chat messages. + */ +export type OpenAiWebChatRequestInput = string | Vapi.OpenAiWebChatRequestInputItem[]; diff --git a/src/api/types/OpenAiWebChatRequestInputItem.ts b/src/api/types/OpenAiWebChatRequestInputItem.ts new file mode 100644 index 00000000..42582cf1 --- /dev/null +++ b/src/api/types/OpenAiWebChatRequestInputItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type OpenAiWebChatRequestInputItem = + | Vapi.SystemMessage + | Vapi.UserMessage + | Vapi.AssistantMessage + | Vapi.ToolMessage + | Vapi.DeveloperMessage; diff --git a/src/api/types/OpenRouterModel.ts b/src/api/types/OpenRouterModel.ts index 7900b3ff..c3c53297 100644 --- a/src/api/types/OpenRouterModel.ts +++ b/src/api/types/OpenRouterModel.ts @@ -12,7 +12,7 @@ export interface OpenRouterModel { * * Both `tools` and `toolIds` can be used together. */ - tools?: OpenRouterModel.Tools.Item[]; + tools?: Vapi.OpenRouterModelToolsItem[]; /** * These are the tools that the assistant can use during the call. To use transient tools, use `tools`. * @@ -45,31 +45,3 @@ export interface OpenRouterModel { */ numFastTurns?: number; } - -export namespace OpenRouterModel { - export type Tools = Tools.Item[]; - - export namespace Tools { - export type Item = - | Vapi.CreateApiRequestToolDto - | Vapi.CreateBashToolDto - | Vapi.CreateComputerToolDto - | Vapi.CreateDtmfToolDto - | Vapi.CreateEndCallToolDto - | Vapi.CreateFunctionToolDto - | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto - | Vapi.CreateGoHighLevelCalendarEventCreateToolDto - | Vapi.CreateGoHighLevelContactCreateToolDto - | Vapi.CreateGoHighLevelContactGetToolDto - | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto - | Vapi.CreateGoogleCalendarCreateEventToolDto - | Vapi.CreateGoogleSheetsRowAppendToolDto - | Vapi.CreateHandoffToolDto - | Vapi.CreateMcpToolDto - | Vapi.CreateQueryToolDto - | Vapi.CreateSlackSendMessageToolDto - | Vapi.CreateSmsToolDto - | Vapi.CreateTextEditorToolDto - | Vapi.CreateTransferCallToolDto; - } -} diff --git a/src/api/types/OpenRouterModelToolsItem.ts b/src/api/types/OpenRouterModelToolsItem.ts new file mode 100644 index 00000000..aaeb1a16 --- /dev/null +++ b/src/api/types/OpenRouterModelToolsItem.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type OpenRouterModelToolsItem = + | Vapi.CreateApiRequestToolDto + | Vapi.CreateBashToolDto + | Vapi.CreateComputerToolDto + | Vapi.CreateDtmfToolDto + | Vapi.CreateEndCallToolDto + | Vapi.CreateFunctionToolDto + | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto + | Vapi.CreateGoHighLevelCalendarEventCreateToolDto + | Vapi.CreateGoHighLevelContactCreateToolDto + | Vapi.CreateGoHighLevelContactGetToolDto + | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto + | Vapi.CreateGoogleCalendarCreateEventToolDto + | Vapi.CreateGoogleSheetsRowAppendToolDto + | Vapi.CreateHandoffToolDto + | Vapi.CreateMcpToolDto + | Vapi.CreateQueryToolDto + | Vapi.CreateSlackSendMessageToolDto + | Vapi.CreateSmsToolDto + | Vapi.CreateTextEditorToolDto + | Vapi.CreateTransferCallToolDto; diff --git a/src/api/types/Org.ts b/src/api/types/Org.ts index 29259909..ff6ef032 100644 --- a/src/api/types/Org.ts +++ b/src/api/types/Org.ts @@ -35,7 +35,7 @@ export interface Org { /** This is the name of the org. This is just for your own reference. */ name?: string; /** This is the channel of the org. There is the cluster the API traffic for the org will be directed. */ - channel?: Org.Channel; + channel?: Vapi.OrgChannel; /** This is the monthly billing limit for the org. To go beyond $1000/mo, please contact us at support@vapi.ai. */ billingLimit?: number; /** @@ -60,14 +60,3 @@ export interface Org { */ compliancePlan?: Vapi.CompliancePlan; } - -export namespace Org { - /** - * This is the channel of the org. There is the cluster the API traffic for the org will be directed. - */ - export type Channel = "default" | "weekly"; - export const Channel = { - Default: "default", - Weekly: "weekly", - } as const; -} diff --git a/src/api/types/OrgChannel.ts b/src/api/types/OrgChannel.ts new file mode 100644 index 00000000..42479e80 --- /dev/null +++ b/src/api/types/OrgChannel.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the channel of the org. There is the cluster the API traffic for the org will be directed. + */ +export type OrgChannel = "default" | "weekly"; +export const OrgChannel = { + Default: "default", + Weekly: "weekly", +} as const; diff --git a/src/api/types/OutputTool.ts b/src/api/types/OutputTool.ts index 644f8d07..2222f23f 100644 --- a/src/api/types/OutputTool.ts +++ b/src/api/types/OutputTool.ts @@ -10,7 +10,7 @@ export interface OutputTool { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: OutputTool.Messages.Item[]; + messages?: Vapi.OutputToolMessagesItem[]; /** The type of tool. "output" for Output tool. */ type: "output"; /** This is the unique identifier for the tool. */ @@ -103,15 +103,3 @@ export interface OutputTool { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace OutputTool { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/OutputToolMessagesItem.ts b/src/api/types/OutputToolMessagesItem.ts new file mode 100644 index 00000000..54b65a83 --- /dev/null +++ b/src/api/types/OutputToolMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type OutputToolMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/PerplexityAiModel.ts b/src/api/types/PerplexityAiModel.ts index 44928bee..ad9d5936 100644 --- a/src/api/types/PerplexityAiModel.ts +++ b/src/api/types/PerplexityAiModel.ts @@ -12,7 +12,7 @@ export interface PerplexityAiModel { * * Both `tools` and `toolIds` can be used together. */ - tools?: PerplexityAiModel.Tools.Item[]; + tools?: Vapi.PerplexityAiModelToolsItem[]; /** * These are the tools that the assistant can use during the call. To use transient tools, use `tools`. * @@ -45,31 +45,3 @@ export interface PerplexityAiModel { */ numFastTurns?: number; } - -export namespace PerplexityAiModel { - export type Tools = Tools.Item[]; - - export namespace Tools { - export type Item = - | Vapi.CreateApiRequestToolDto - | Vapi.CreateBashToolDto - | Vapi.CreateComputerToolDto - | Vapi.CreateDtmfToolDto - | Vapi.CreateEndCallToolDto - | Vapi.CreateFunctionToolDto - | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto - | Vapi.CreateGoHighLevelCalendarEventCreateToolDto - | Vapi.CreateGoHighLevelContactCreateToolDto - | Vapi.CreateGoHighLevelContactGetToolDto - | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto - | Vapi.CreateGoogleCalendarCreateEventToolDto - | Vapi.CreateGoogleSheetsRowAppendToolDto - | Vapi.CreateHandoffToolDto - | Vapi.CreateMcpToolDto - | Vapi.CreateQueryToolDto - | Vapi.CreateSlackSendMessageToolDto - | Vapi.CreateSmsToolDto - | Vapi.CreateTextEditorToolDto - | Vapi.CreateTransferCallToolDto; - } -} diff --git a/src/api/types/PerplexityAiModelToolsItem.ts b/src/api/types/PerplexityAiModelToolsItem.ts new file mode 100644 index 00000000..03f51feb --- /dev/null +++ b/src/api/types/PerplexityAiModelToolsItem.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type PerplexityAiModelToolsItem = + | Vapi.CreateApiRequestToolDto + | Vapi.CreateBashToolDto + | Vapi.CreateComputerToolDto + | Vapi.CreateDtmfToolDto + | Vapi.CreateEndCallToolDto + | Vapi.CreateFunctionToolDto + | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto + | Vapi.CreateGoHighLevelCalendarEventCreateToolDto + | Vapi.CreateGoHighLevelContactCreateToolDto + | Vapi.CreateGoHighLevelContactGetToolDto + | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto + | Vapi.CreateGoogleCalendarCreateEventToolDto + | Vapi.CreateGoogleSheetsRowAppendToolDto + | Vapi.CreateHandoffToolDto + | Vapi.CreateMcpToolDto + | Vapi.CreateQueryToolDto + | Vapi.CreateSlackSendMessageToolDto + | Vapi.CreateSmsToolDto + | Vapi.CreateTextEditorToolDto + | Vapi.CreateTransferCallToolDto; diff --git a/src/api/types/PhoneNumberCallEndingHookFilter.ts b/src/api/types/PhoneNumberCallEndingHookFilter.ts index 7e94a6e5..558a21b0 100644 --- a/src/api/types/PhoneNumberCallEndingHookFilter.ts +++ b/src/api/types/PhoneNumberCallEndingHookFilter.ts @@ -2,33 +2,13 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface PhoneNumberCallEndingHookFilter { /** This is the type of filter - currently only "oneOf" is supported */ type: "oneOf"; /** This is the key to filter on - only "call.endedReason" is allowed for phone number call ending hooks */ key: "call.endedReason"; /** This is the array of assistant-request related ended reasons to match against */ - oneOf: PhoneNumberCallEndingHookFilter.OneOf.Item[]; -} - -export namespace PhoneNumberCallEndingHookFilter { - export type OneOf = OneOf.Item[]; - - export namespace OneOf { - export type Item = - | "assistant-request-failed" - | "assistant-request-returned-error" - | "assistant-request-returned-unspeakable-error" - | "assistant-request-returned-invalid-assistant" - | "assistant-request-returned-no-assistant" - | "assistant-request-returned-forwarding-phone-number"; - export const Item = { - AssistantRequestFailed: "assistant-request-failed", - AssistantRequestReturnedError: "assistant-request-returned-error", - AssistantRequestReturnedUnspeakableError: "assistant-request-returned-unspeakable-error", - AssistantRequestReturnedInvalidAssistant: "assistant-request-returned-invalid-assistant", - AssistantRequestReturnedNoAssistant: "assistant-request-returned-no-assistant", - AssistantRequestReturnedForwardingPhoneNumber: "assistant-request-returned-forwarding-phone-number", - } as const; - } + oneOf: Vapi.PhoneNumberCallEndingHookFilterOneOfItem[]; } diff --git a/src/api/types/PhoneNumberCallEndingHookFilterOneOfItem.ts b/src/api/types/PhoneNumberCallEndingHookFilterOneOfItem.ts new file mode 100644 index 00000000..9e067068 --- /dev/null +++ b/src/api/types/PhoneNumberCallEndingHookFilterOneOfItem.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PhoneNumberCallEndingHookFilterOneOfItem = + | "assistant-request-failed" + | "assistant-request-returned-error" + | "assistant-request-returned-unspeakable-error" + | "assistant-request-returned-invalid-assistant" + | "assistant-request-returned-no-assistant" + | "assistant-request-returned-forwarding-phone-number"; +export const PhoneNumberCallEndingHookFilterOneOfItem = { + AssistantRequestFailed: "assistant-request-failed", + AssistantRequestReturnedError: "assistant-request-returned-error", + AssistantRequestReturnedUnspeakableError: "assistant-request-returned-unspeakable-error", + AssistantRequestReturnedInvalidAssistant: "assistant-request-returned-invalid-assistant", + AssistantRequestReturnedNoAssistant: "assistant-request-returned-no-assistant", + AssistantRequestReturnedForwardingPhoneNumber: "assistant-request-returned-forwarding-phone-number", +} as const; diff --git a/src/api/types/PhoneNumberHookCallEnding.ts b/src/api/types/PhoneNumberHookCallEnding.ts index f41d6772..1ec59f19 100644 --- a/src/api/types/PhoneNumberHookCallEnding.ts +++ b/src/api/types/PhoneNumberHookCallEnding.ts @@ -10,12 +10,5 @@ export interface PhoneNumberHookCallEnding { /** Optional filters to decide when to trigger - restricted to assistant-request related ended reasons */ filters?: Vapi.PhoneNumberCallEndingHookFilter[]; /** This is the action to perform when the hook triggers */ - do?: PhoneNumberHookCallEnding.Do; -} - -export namespace PhoneNumberHookCallEnding { - /** - * This is the action to perform when the hook triggers - */ - export type Do = Vapi.TransferPhoneNumberHookAction | Vapi.SayPhoneNumberHookAction; + do?: Vapi.PhoneNumberHookCallEndingDo; } diff --git a/src/api/types/PhoneNumberHookCallEndingDo.ts b/src/api/types/PhoneNumberHookCallEndingDo.ts new file mode 100644 index 00000000..a3c7f7bb --- /dev/null +++ b/src/api/types/PhoneNumberHookCallEndingDo.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the action to perform when the hook triggers + */ +export type PhoneNumberHookCallEndingDo = Vapi.TransferPhoneNumberHookAction | Vapi.SayPhoneNumberHookAction; diff --git a/src/api/types/PhoneNumberHookCallRinging.ts b/src/api/types/PhoneNumberHookCallRinging.ts index 313fba38..508e925d 100644 --- a/src/api/types/PhoneNumberHookCallRinging.ts +++ b/src/api/types/PhoneNumberHookCallRinging.ts @@ -8,13 +8,5 @@ export interface PhoneNumberHookCallRinging { /** This is the event to trigger the hook on */ on: "call.ringing"; /** Only the first action will be executed. Additional actions will be ignored. */ - do: PhoneNumberHookCallRinging.Do.Item[]; -} - -export namespace PhoneNumberHookCallRinging { - export type Do = Do.Item[]; - - export namespace Do { - export type Item = Vapi.TransferPhoneNumberHookAction | Vapi.SayPhoneNumberHookAction; - } + do: Vapi.PhoneNumberHookCallRingingDoItem[]; } diff --git a/src/api/types/PhoneNumberHookCallRingingDoItem.ts b/src/api/types/PhoneNumberHookCallRingingDoItem.ts new file mode 100644 index 00000000..efdfae89 --- /dev/null +++ b/src/api/types/PhoneNumberHookCallRingingDoItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type PhoneNumberHookCallRingingDoItem = Vapi.TransferPhoneNumberHookAction | Vapi.SayPhoneNumberHookAction; diff --git a/src/api/types/PhoneNumberPaginatedResponse.ts b/src/api/types/PhoneNumberPaginatedResponse.ts index 195fb349..19082c46 100644 --- a/src/api/types/PhoneNumberPaginatedResponse.ts +++ b/src/api/types/PhoneNumberPaginatedResponse.ts @@ -6,20 +6,7 @@ import * as Vapi from "../index.js"; export interface PhoneNumberPaginatedResponse { /** A list of phone numbers, which can be of any provider type. */ - results: PhoneNumberPaginatedResponse.Results.Item[]; + results: Vapi.PhoneNumberPaginatedResponseResultsItem[]; /** Metadata about the pagination. */ metadata: Vapi.PaginationMeta; } - -export namespace PhoneNumberPaginatedResponse { - export type Results = Results.Item[]; - - export namespace Results { - export type Item = - | Vapi.ByoPhoneNumber - | Vapi.TwilioPhoneNumber - | Vapi.VonagePhoneNumber - | Vapi.VapiPhoneNumber - | Vapi.TelnyxPhoneNumber; - } -} diff --git a/src/api/types/PhoneNumberPaginatedResponseResultsItem.ts b/src/api/types/PhoneNumberPaginatedResponseResultsItem.ts new file mode 100644 index 00000000..36c5d388 --- /dev/null +++ b/src/api/types/PhoneNumberPaginatedResponseResultsItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type PhoneNumberPaginatedResponseResultsItem = + | Vapi.ByoPhoneNumber + | Vapi.TwilioPhoneNumber + | Vapi.VonagePhoneNumber + | Vapi.VapiPhoneNumber + | Vapi.TelnyxPhoneNumber; diff --git a/src/api/types/PlayHtVoice.ts b/src/api/types/PlayHtVoice.ts index bc67dc5a..5e5de3fe 100644 --- a/src/api/types/PlayHtVoice.ts +++ b/src/api/types/PlayHtVoice.ts @@ -10,13 +10,13 @@ export interface PlayHtVoice { /** This is the voice provider that will be used. */ provider: "playht"; /** This is the provider-specific ID that will be used. */ - voiceId: PlayHtVoice.VoiceId; + voiceId: Vapi.PlayHtVoiceId; /** This is the speed multiplier that will be used. */ speed?: number; /** A floating point number between 0, exclusive, and 2, inclusive. If equal to null or not provided, the model's default temperature will be used. The temperature parameter controls variance. Lower temperatures result in more predictable results, higher temperatures allow each run to vary more, so the voice may sound less like the baseline voice. */ temperature?: number; /** An emotion to be applied to the speech. */ - emotion?: PlayHtVoice.Emotion; + emotion?: Vapi.PlayHtVoiceEmotion; /** A number between 1 and 6. Use lower numbers to reduce how unique your chosen voice will be compared to other voices. */ voiceGuidance?: number; /** A number between 1 and 30. Use lower numbers to to reduce how strong your chosen emotion will be. Higher numbers will create a very emotional performance. */ @@ -24,140 +24,11 @@ export interface PlayHtVoice { /** A number between 1 and 2. This number influences how closely the generated speech adheres to the input text. Use lower values to create more fluid speech, but with a higher chance of deviating from the input text. Higher numbers will make the generated speech more accurate to the input text, ensuring that the words spoken align closely with the provided text. */ textGuidance?: number; /** Playht voice model/engine to use. */ - model?: PlayHtVoice.Model; + model?: Vapi.PlayHtVoiceModel; /** The language to use for the speech. */ - language?: PlayHtVoice.Language; + language?: Vapi.PlayHtVoiceLanguage; /** This is the plan for chunking the model output before it is sent to the voice provider. */ chunkPlan?: Vapi.ChunkPlan; /** This is the plan for voice provider fallbacks in the event that the primary voice provider fails. */ fallbackPlan?: Vapi.FallbackPlan; } - -export namespace PlayHtVoice { - /** - * This is the provider-specific ID that will be used. - */ - export type VoiceId = - | ("jennifer" | "melissa" | "will" | "chris" | "matt" | "jack" | "ruby" | "davis" | "donna" | "michael") - | string; - /** - * An emotion to be applied to the speech. - */ - export type Emotion = - | "female_happy" - | "female_sad" - | "female_angry" - | "female_fearful" - | "female_disgust" - | "female_surprised" - | "male_happy" - | "male_sad" - | "male_angry" - | "male_fearful" - | "male_disgust" - | "male_surprised"; - export const Emotion = { - FemaleHappy: "female_happy", - FemaleSad: "female_sad", - FemaleAngry: "female_angry", - FemaleFearful: "female_fearful", - FemaleDisgust: "female_disgust", - FemaleSurprised: "female_surprised", - MaleHappy: "male_happy", - MaleSad: "male_sad", - MaleAngry: "male_angry", - MaleFearful: "male_fearful", - MaleDisgust: "male_disgust", - MaleSurprised: "male_surprised", - } as const; - /** - * Playht voice model/engine to use. - */ - export type Model = "PlayHT2.0" | "PlayHT2.0-turbo" | "Play3.0-mini" | "PlayDialog"; - export const Model = { - PlayHt20: "PlayHT2.0", - PlayHt20Turbo: "PlayHT2.0-turbo", - Play30Mini: "Play3.0-mini", - PlayDialog: "PlayDialog", - } as const; - /** - * The language to use for the speech. - */ - export type Language = - | "afrikaans" - | "albanian" - | "amharic" - | "arabic" - | "bengali" - | "bulgarian" - | "catalan" - | "croatian" - | "czech" - | "danish" - | "dutch" - | "english" - | "french" - | "galician" - | "german" - | "greek" - | "hebrew" - | "hindi" - | "hungarian" - | "indonesian" - | "italian" - | "japanese" - | "korean" - | "malay" - | "mandarin" - | "polish" - | "portuguese" - | "russian" - | "serbian" - | "spanish" - | "swedish" - | "tagalog" - | "thai" - | "turkish" - | "ukrainian" - | "urdu" - | "xhosa"; - export const Language = { - Afrikaans: "afrikaans", - Albanian: "albanian", - Amharic: "amharic", - Arabic: "arabic", - Bengali: "bengali", - Bulgarian: "bulgarian", - Catalan: "catalan", - Croatian: "croatian", - Czech: "czech", - Danish: "danish", - Dutch: "dutch", - English: "english", - French: "french", - Galician: "galician", - German: "german", - Greek: "greek", - Hebrew: "hebrew", - Hindi: "hindi", - Hungarian: "hungarian", - Indonesian: "indonesian", - Italian: "italian", - Japanese: "japanese", - Korean: "korean", - Malay: "malay", - Mandarin: "mandarin", - Polish: "polish", - Portuguese: "portuguese", - Russian: "russian", - Serbian: "serbian", - Spanish: "spanish", - Swedish: "swedish", - Tagalog: "tagalog", - Thai: "thai", - Turkish: "turkish", - Ukrainian: "ukrainian", - Urdu: "urdu", - Xhosa: "xhosa", - } as const; -} diff --git a/src/api/types/PlayHtVoiceEmotion.ts b/src/api/types/PlayHtVoiceEmotion.ts new file mode 100644 index 00000000..a2fc5a5b --- /dev/null +++ b/src/api/types/PlayHtVoiceEmotion.ts @@ -0,0 +1,34 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * An emotion to be applied to the speech. + */ +export type PlayHtVoiceEmotion = + | "female_happy" + | "female_sad" + | "female_angry" + | "female_fearful" + | "female_disgust" + | "female_surprised" + | "male_happy" + | "male_sad" + | "male_angry" + | "male_fearful" + | "male_disgust" + | "male_surprised"; +export const PlayHtVoiceEmotion = { + FemaleHappy: "female_happy", + FemaleSad: "female_sad", + FemaleAngry: "female_angry", + FemaleFearful: "female_fearful", + FemaleDisgust: "female_disgust", + FemaleSurprised: "female_surprised", + MaleHappy: "male_happy", + MaleSad: "male_sad", + MaleAngry: "male_angry", + MaleFearful: "male_fearful", + MaleDisgust: "male_disgust", + MaleSurprised: "male_surprised", +} as const; diff --git a/src/api/types/PlayHtVoiceId.ts b/src/api/types/PlayHtVoiceId.ts new file mode 100644 index 00000000..9b912de1 --- /dev/null +++ b/src/api/types/PlayHtVoiceId.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the provider-specific ID that will be used. + */ +export type PlayHtVoiceId = Vapi.PlayHtVoiceIdEnum | string; diff --git a/src/api/types/PlayHtVoiceIdEnum.ts b/src/api/types/PlayHtVoiceIdEnum.ts new file mode 100644 index 00000000..c16ec37b --- /dev/null +++ b/src/api/types/PlayHtVoiceIdEnum.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PlayHtVoiceIdEnum = + | "jennifer" + | "melissa" + | "will" + | "chris" + | "matt" + | "jack" + | "ruby" + | "davis" + | "donna" + | "michael"; +export const PlayHtVoiceIdEnum = { + Jennifer: "jennifer", + Melissa: "melissa", + Will: "will", + Chris: "chris", + Matt: "matt", + Jack: "jack", + Ruby: "ruby", + Davis: "davis", + Donna: "donna", + Michael: "michael", +} as const; diff --git a/src/api/types/PlayHtVoiceLanguage.ts b/src/api/types/PlayHtVoiceLanguage.ts new file mode 100644 index 00000000..0a890504 --- /dev/null +++ b/src/api/types/PlayHtVoiceLanguage.ts @@ -0,0 +1,84 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * The language to use for the speech. + */ +export type PlayHtVoiceLanguage = + | "afrikaans" + | "albanian" + | "amharic" + | "arabic" + | "bengali" + | "bulgarian" + | "catalan" + | "croatian" + | "czech" + | "danish" + | "dutch" + | "english" + | "french" + | "galician" + | "german" + | "greek" + | "hebrew" + | "hindi" + | "hungarian" + | "indonesian" + | "italian" + | "japanese" + | "korean" + | "malay" + | "mandarin" + | "polish" + | "portuguese" + | "russian" + | "serbian" + | "spanish" + | "swedish" + | "tagalog" + | "thai" + | "turkish" + | "ukrainian" + | "urdu" + | "xhosa"; +export const PlayHtVoiceLanguage = { + Afrikaans: "afrikaans", + Albanian: "albanian", + Amharic: "amharic", + Arabic: "arabic", + Bengali: "bengali", + Bulgarian: "bulgarian", + Catalan: "catalan", + Croatian: "croatian", + Czech: "czech", + Danish: "danish", + Dutch: "dutch", + English: "english", + French: "french", + Galician: "galician", + German: "german", + Greek: "greek", + Hebrew: "hebrew", + Hindi: "hindi", + Hungarian: "hungarian", + Indonesian: "indonesian", + Italian: "italian", + Japanese: "japanese", + Korean: "korean", + Malay: "malay", + Mandarin: "mandarin", + Polish: "polish", + Portuguese: "portuguese", + Russian: "russian", + Serbian: "serbian", + Spanish: "spanish", + Swedish: "swedish", + Tagalog: "tagalog", + Thai: "thai", + Turkish: "turkish", + Ukrainian: "ukrainian", + Urdu: "urdu", + Xhosa: "xhosa", +} as const; diff --git a/src/api/types/PlayHtVoiceModel.ts b/src/api/types/PlayHtVoiceModel.ts new file mode 100644 index 00000000..572e0849 --- /dev/null +++ b/src/api/types/PlayHtVoiceModel.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Playht voice model/engine to use. + */ +export type PlayHtVoiceModel = "PlayHT2.0" | "PlayHT2.0-turbo" | "Play3.0-mini" | "PlayDialog"; +export const PlayHtVoiceModel = { + PlayHt20: "PlayHT2.0", + PlayHt20Turbo: "PlayHT2.0-turbo", + Play30Mini: "Play3.0-mini", + PlayDialog: "PlayDialog", +} as const; diff --git a/src/api/types/QueryTool.ts b/src/api/types/QueryTool.ts index 4dda06b2..ec059478 100644 --- a/src/api/types/QueryTool.ts +++ b/src/api/types/QueryTool.ts @@ -10,7 +10,7 @@ export interface QueryTool { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: QueryTool.Messages.Item[]; + messages?: Vapi.QueryToolMessagesItem[]; type: "query"; /** The knowledge bases to query */ knowledgeBases?: Vapi.KnowledgeBase[]; @@ -104,15 +104,3 @@ export interface QueryTool { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace QueryTool { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/QueryToolMessagesItem.ts b/src/api/types/QueryToolMessagesItem.ts new file mode 100644 index 00000000..73dabeee --- /dev/null +++ b/src/api/types/QueryToolMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type QueryToolMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/RecordingConsentPlanStayOnLine.ts b/src/api/types/RecordingConsentPlanStayOnLine.ts index 3420a3f0..433dd718 100644 --- a/src/api/types/RecordingConsentPlanStayOnLine.ts +++ b/src/api/types/RecordingConsentPlanStayOnLine.ts @@ -15,33 +15,8 @@ export interface RecordingConsentPlanStayOnLine { * This is the voice to use for the consent message. If not specified, inherits from the assistant's voice. * Use a different voice for the consent message for a better user experience. */ - voice?: RecordingConsentPlanStayOnLine.Voice; + voice?: Vapi.RecordingConsentPlanStayOnLineVoice; type: "stay-on-line"; /** Number of seconds to wait before transferring to the assistant if user stays on the call */ waitSeconds?: number; } - -export namespace RecordingConsentPlanStayOnLine { - /** - * This is the voice to use for the consent message. If not specified, inherits from the assistant's voice. - * Use a different voice for the consent message for a better user experience. - */ - export type Voice = - | Vapi.AzureVoice - | Vapi.CartesiaVoice - | Vapi.CustomVoice - | Vapi.DeepgramVoice - | Vapi.ElevenLabsVoice - | Vapi.HumeVoice - | Vapi.LmntVoice - | Vapi.NeuphonicVoice - | Vapi.OpenAiVoice - | Vapi.PlayHtVoice - | Vapi.RimeAiVoice - | Vapi.SmallestAiVoice - | Vapi.TavusVoice - | Vapi.VapiVoice - | Vapi.SesameVoice - | Vapi.InworldVoice - | Vapi.MinimaxVoice; -} diff --git a/src/api/types/RecordingConsentPlanStayOnLineVoice.ts b/src/api/types/RecordingConsentPlanStayOnLineVoice.ts new file mode 100644 index 00000000..050145d6 --- /dev/null +++ b/src/api/types/RecordingConsentPlanStayOnLineVoice.ts @@ -0,0 +1,28 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the voice to use for the consent message. If not specified, inherits from the assistant's voice. + * Use a different voice for the consent message for a better user experience. + */ +export type RecordingConsentPlanStayOnLineVoice = + | Vapi.AzureVoice + | Vapi.CartesiaVoice + | Vapi.CustomVoice + | Vapi.DeepgramVoice + | Vapi.ElevenLabsVoice + | Vapi.HumeVoice + | Vapi.LmntVoice + | Vapi.NeuphonicVoice + | Vapi.OpenAiVoice + | Vapi.PlayHtVoice + | Vapi.RimeAiVoice + | Vapi.SmallestAiVoice + | Vapi.TavusVoice + | Vapi.VapiVoice + | Vapi.SesameVoice + | Vapi.InworldVoice + | Vapi.MinimaxVoice; diff --git a/src/api/types/RecordingConsentPlanVerbal.ts b/src/api/types/RecordingConsentPlanVerbal.ts index 1ae41bba..fac4c3fd 100644 --- a/src/api/types/RecordingConsentPlanVerbal.ts +++ b/src/api/types/RecordingConsentPlanVerbal.ts @@ -15,35 +15,10 @@ export interface RecordingConsentPlanVerbal { * This is the voice to use for the consent message. If not specified, inherits from the assistant's voice. * Use a different voice for the consent message for a better user experience. */ - voice?: RecordingConsentPlanVerbal.Voice; + voice?: Vapi.RecordingConsentPlanVerbalVoice; type: "verbal"; /** Tool to execute if user verbally declines recording consent */ declineTool?: Record; /** ID of existing tool to execute if user verbally declines recording consent */ declineToolId?: string; } - -export namespace RecordingConsentPlanVerbal { - /** - * This is the voice to use for the consent message. If not specified, inherits from the assistant's voice. - * Use a different voice for the consent message for a better user experience. - */ - export type Voice = - | Vapi.AzureVoice - | Vapi.CartesiaVoice - | Vapi.CustomVoice - | Vapi.DeepgramVoice - | Vapi.ElevenLabsVoice - | Vapi.HumeVoice - | Vapi.LmntVoice - | Vapi.NeuphonicVoice - | Vapi.OpenAiVoice - | Vapi.PlayHtVoice - | Vapi.RimeAiVoice - | Vapi.SmallestAiVoice - | Vapi.TavusVoice - | Vapi.VapiVoice - | Vapi.SesameVoice - | Vapi.InworldVoice - | Vapi.MinimaxVoice; -} diff --git a/src/api/types/RecordingConsentPlanVerbalVoice.ts b/src/api/types/RecordingConsentPlanVerbalVoice.ts new file mode 100644 index 00000000..30342e8c --- /dev/null +++ b/src/api/types/RecordingConsentPlanVerbalVoice.ts @@ -0,0 +1,28 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the voice to use for the consent message. If not specified, inherits from the assistant's voice. + * Use a different voice for the consent message for a better user experience. + */ +export type RecordingConsentPlanVerbalVoice = + | Vapi.AzureVoice + | Vapi.CartesiaVoice + | Vapi.CustomVoice + | Vapi.DeepgramVoice + | Vapi.ElevenLabsVoice + | Vapi.HumeVoice + | Vapi.LmntVoice + | Vapi.NeuphonicVoice + | Vapi.OpenAiVoice + | Vapi.PlayHtVoice + | Vapi.RimeAiVoice + | Vapi.SmallestAiVoice + | Vapi.TavusVoice + | Vapi.VapiVoice + | Vapi.SesameVoice + | Vapi.InworldVoice + | Vapi.MinimaxVoice; diff --git a/src/api/types/RegexOption.ts b/src/api/types/RegexOption.ts index 503c80e0..918f9ef1 100644 --- a/src/api/types/RegexOption.ts +++ b/src/api/types/RegexOption.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface RegexOption { /** * This is the type of the regex option. Options are: @@ -9,7 +11,7 @@ export interface RegexOption { * - `whole-word`: Matches whole words only. * - `multi-line`: Matches across multiple lines. */ - type: RegexOption.Type; + type: Vapi.RegexOptionType; /** * This is whether to enable the option. * @@ -17,18 +19,3 @@ export interface RegexOption { */ enabled: boolean; } - -export namespace RegexOption { - /** - * This is the type of the regex option. Options are: - * - `ignore-case`: Ignores the case of the text being matched. Add - * - `whole-word`: Matches whole words only. - * - `multi-line`: Matches across multiple lines. - */ - export type Type = "ignore-case" | "whole-word" | "multi-line"; - export const Type = { - IgnoreCase: "ignore-case", - WholeWord: "whole-word", - MultiLine: "multi-line", - } as const; -} diff --git a/src/api/types/RegexOptionType.ts b/src/api/types/RegexOptionType.ts new file mode 100644 index 00000000..4a746fe9 --- /dev/null +++ b/src/api/types/RegexOptionType.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the type of the regex option. Options are: + * - `ignore-case`: Ignores the case of the text being matched. Add + * - `whole-word`: Matches whole words only. + * - `multi-line`: Matches across multiple lines. + */ +export type RegexOptionType = "ignore-case" | "whole-word" | "multi-line"; +export const RegexOptionType = { + IgnoreCase: "ignore-case", + WholeWord: "whole-word", + MultiLine: "multi-line", +} as const; diff --git a/src/api/types/ResponseObject.ts b/src/api/types/ResponseObject.ts index 06026dc3..20b12ded 100644 --- a/src/api/types/ResponseObject.ts +++ b/src/api/types/ResponseObject.ts @@ -12,22 +12,9 @@ export interface ResponseObject { /** Unix timestamp (in seconds) of when this Response was created */ created_at: number; /** Status of the response */ - status: ResponseObject.Status; + status: Vapi.ResponseObjectStatus; /** Error message if the response failed */ error?: string | null; /** Output messages from the model */ output: Vapi.ResponseOutputMessage[]; } - -export namespace ResponseObject { - /** - * Status of the response - */ - export type Status = "completed" | "failed" | "in_progress" | "incomplete"; - export const Status = { - Completed: "completed", - Failed: "failed", - InProgress: "in_progress", - Incomplete: "incomplete", - } as const; -} diff --git a/src/api/types/ResponseObjectStatus.ts b/src/api/types/ResponseObjectStatus.ts new file mode 100644 index 00000000..58e7fdbd --- /dev/null +++ b/src/api/types/ResponseObjectStatus.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Status of the response + */ +export type ResponseObjectStatus = "completed" | "failed" | "in_progress" | "incomplete"; +export const ResponseObjectStatus = { + Completed: "completed", + Failed: "failed", + InProgress: "in_progress", + Incomplete: "incomplete", +} as const; diff --git a/src/api/types/ResponseOutputMessage.ts b/src/api/types/ResponseOutputMessage.ts index c2dffe8c..403626e7 100644 --- a/src/api/types/ResponseOutputMessage.ts +++ b/src/api/types/ResponseOutputMessage.ts @@ -12,19 +12,7 @@ export interface ResponseOutputMessage { /** The role of the output message */ role: "assistant"; /** The status of the message */ - status: ResponseOutputMessage.Status; + status: Vapi.ResponseOutputMessageStatus; /** The type of the output message */ type: "message"; } - -export namespace ResponseOutputMessage { - /** - * The status of the message - */ - export type Status = "in_progress" | "completed" | "incomplete"; - export const Status = { - InProgress: "in_progress", - Completed: "completed", - Incomplete: "incomplete", - } as const; -} diff --git a/src/api/types/ResponseOutputMessageStatus.ts b/src/api/types/ResponseOutputMessageStatus.ts new file mode 100644 index 00000000..ef8d62cc --- /dev/null +++ b/src/api/types/ResponseOutputMessageStatus.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * The status of the message + */ +export type ResponseOutputMessageStatus = "in_progress" | "completed" | "incomplete"; +export const ResponseOutputMessageStatus = { + InProgress: "in_progress", + Completed: "completed", + Incomplete: "incomplete", +} as const; diff --git a/src/api/types/RimeAiVoice.ts b/src/api/types/RimeAiVoice.ts index 687816e0..14f8b097 100644 --- a/src/api/types/RimeAiVoice.ts +++ b/src/api/types/RimeAiVoice.ts @@ -10,9 +10,9 @@ export interface RimeAiVoice { /** This is the voice provider that will be used. */ provider: "rime-ai"; /** This is the provider-specific ID that will be used. */ - voiceId: RimeAiVoice.VoiceId; + voiceId: Vapi.RimeAiVoiceId; /** This is the model that will be used. Defaults to 'arcana' when not specified. */ - model?: RimeAiVoice.Model; + model?: Vapi.RimeAiVoiceModel; /** This is the speed multiplier that will be used. */ speed?: number; /** This is a flag that controls whether to add slight pauses using angle brackets. Example: "Hi. <200> I'd love to have a conversation with you." adds a 200ms pause between the first and second sentences. */ @@ -28,113 +28,3 @@ export interface RimeAiVoice { /** This is the plan for voice provider fallbacks in the event that the primary voice provider fails. */ fallbackPlan?: Vapi.FallbackPlan; } - -export namespace RimeAiVoice { - /** - * This is the provider-specific ID that will be used. - */ - export type VoiceId = - | ( - | "abbie" - | "allison" - | "ally" - | "alona" - | "amber" - | "ana" - | "antoine" - | "armon" - | "brenda" - | "brittany" - | "carol" - | "colin" - | "courtney" - | "elena" - | "elliot" - | "eva" - | "geoff" - | "gerald" - | "hank" - | "helen" - | "hera" - | "jen" - | "joe" - | "joy" - | "juan" - | "kendra" - | "kendrick" - | "kenneth" - | "kevin" - | "kris" - | "linda" - | "madison" - | "marge" - | "marina" - | "marissa" - | "marta" - | "maya" - | "nicholas" - | "nyles" - | "phil" - | "reba" - | "rex" - | "rick" - | "ritu" - | "rob" - | "rodney" - | "rohan" - | "rosco" - | "samantha" - | "sandy" - | "selena" - | "seth" - | "sharon" - | "stan" - | "tamra" - | "tanya" - | "tibur" - | "tj" - | "tyler" - | "viv" - | "yadira" - | "marsh" - | "bayou" - | "creek" - | "brook" - | "flower" - | "spore" - | "glacier" - | "gulch" - | "alpine" - | "cove" - | "lagoon" - | "tundra" - | "steppe" - | "mesa" - | "grove" - | "rainforest" - | "moraine" - | "wildflower" - | "peak" - | "boulder" - | "gypsum" - | "zest" - | "luna" - | "celeste" - | "orion" - | "ursa" - | "astra" - | "esther" - | "estelle" - | "andromeda" - ) - | string; - /** - * This is the model that will be used. Defaults to 'arcana' when not specified. - */ - export type Model = "arcana" | "mistv2" | "mist"; - export const Model = { - Arcana: "arcana", - Mistv2: "mistv2", - Mist: "mist", - } as const; -} diff --git a/src/api/types/RimeAiVoiceId.ts b/src/api/types/RimeAiVoiceId.ts new file mode 100644 index 00000000..81329bf5 --- /dev/null +++ b/src/api/types/RimeAiVoiceId.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the provider-specific ID that will be used. + */ +export type RimeAiVoiceId = Vapi.RimeAiVoiceIdEnum | string; diff --git a/src/api/types/RimeAiVoiceIdEnum.ts b/src/api/types/RimeAiVoiceIdEnum.ts new file mode 100644 index 00000000..763d847d --- /dev/null +++ b/src/api/types/RimeAiVoiceIdEnum.ts @@ -0,0 +1,189 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type RimeAiVoiceIdEnum = + | "abbie" + | "allison" + | "ally" + | "alona" + | "amber" + | "ana" + | "antoine" + | "armon" + | "brenda" + | "brittany" + | "carol" + | "colin" + | "courtney" + | "elena" + | "elliot" + | "eva" + | "geoff" + | "gerald" + | "hank" + | "helen" + | "hera" + | "jen" + | "joe" + | "joy" + | "juan" + | "kendra" + | "kendrick" + | "kenneth" + | "kevin" + | "kris" + | "linda" + | "madison" + | "marge" + | "marina" + | "marissa" + | "marta" + | "maya" + | "nicholas" + | "nyles" + | "phil" + | "reba" + | "rex" + | "rick" + | "ritu" + | "rob" + | "rodney" + | "rohan" + | "rosco" + | "samantha" + | "sandy" + | "selena" + | "seth" + | "sharon" + | "stan" + | "tamra" + | "tanya" + | "tibur" + | "tj" + | "tyler" + | "viv" + | "yadira" + | "marsh" + | "bayou" + | "creek" + | "brook" + | "flower" + | "spore" + | "glacier" + | "gulch" + | "alpine" + | "cove" + | "lagoon" + | "tundra" + | "steppe" + | "mesa" + | "grove" + | "rainforest" + | "moraine" + | "wildflower" + | "peak" + | "boulder" + | "gypsum" + | "zest" + | "luna" + | "celeste" + | "orion" + | "ursa" + | "astra" + | "esther" + | "estelle" + | "andromeda"; +export const RimeAiVoiceIdEnum = { + Abbie: "abbie", + Allison: "allison", + Ally: "ally", + Alona: "alona", + Amber: "amber", + Ana: "ana", + Antoine: "antoine", + Armon: "armon", + Brenda: "brenda", + Brittany: "brittany", + Carol: "carol", + Colin: "colin", + Courtney: "courtney", + Elena: "elena", + Elliot: "elliot", + Eva: "eva", + Geoff: "geoff", + Gerald: "gerald", + Hank: "hank", + Helen: "helen", + Hera: "hera", + Jen: "jen", + Joe: "joe", + Joy: "joy", + Juan: "juan", + Kendra: "kendra", + Kendrick: "kendrick", + Kenneth: "kenneth", + Kevin: "kevin", + Kris: "kris", + Linda: "linda", + Madison: "madison", + Marge: "marge", + Marina: "marina", + Marissa: "marissa", + Marta: "marta", + Maya: "maya", + Nicholas: "nicholas", + Nyles: "nyles", + Phil: "phil", + Reba: "reba", + Rex: "rex", + Rick: "rick", + Ritu: "ritu", + Rob: "rob", + Rodney: "rodney", + Rohan: "rohan", + Rosco: "rosco", + Samantha: "samantha", + Sandy: "sandy", + Selena: "selena", + Seth: "seth", + Sharon: "sharon", + Stan: "stan", + Tamra: "tamra", + Tanya: "tanya", + Tibur: "tibur", + Tj: "tj", + Tyler: "tyler", + Viv: "viv", + Yadira: "yadira", + Marsh: "marsh", + Bayou: "bayou", + Creek: "creek", + Brook: "brook", + Flower: "flower", + Spore: "spore", + Glacier: "glacier", + Gulch: "gulch", + Alpine: "alpine", + Cove: "cove", + Lagoon: "lagoon", + Tundra: "tundra", + Steppe: "steppe", + Mesa: "mesa", + Grove: "grove", + Rainforest: "rainforest", + Moraine: "moraine", + Wildflower: "wildflower", + Peak: "peak", + Boulder: "boulder", + Gypsum: "gypsum", + Zest: "zest", + Luna: "luna", + Celeste: "celeste", + Orion: "orion", + Ursa: "ursa", + Astra: "astra", + Esther: "esther", + Estelle: "estelle", + Andromeda: "andromeda", +} as const; diff --git a/src/api/types/RimeAiVoiceModel.ts b/src/api/types/RimeAiVoiceModel.ts new file mode 100644 index 00000000..cf53af5c --- /dev/null +++ b/src/api/types/RimeAiVoiceModel.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the model that will be used. Defaults to 'arcana' when not specified. + */ +export type RimeAiVoiceModel = "arcana" | "mistv2" | "mist"; +export const RimeAiVoiceModel = { + Arcana: "arcana", + Mistv2: "mistv2", + Mist: "mist", +} as const; diff --git a/src/api/types/SayHookAction.ts b/src/api/types/SayHookAction.ts index b4f7c79e..0dcd8423 100644 --- a/src/api/types/SayHookAction.ts +++ b/src/api/types/SayHookAction.ts @@ -11,17 +11,7 @@ export interface SayHookAction { * This is the prompt for the assistant to generate a response based on existing conversation. * Can be a string or an array of chat messages. */ - prompt?: SayHookAction.Prompt; + prompt?: Vapi.SayHookActionPrompt; /** This is the message to say */ exact?: Record; } - -export namespace SayHookAction { - /** - * This is the prompt for the assistant to generate a response based on existing conversation. - * Can be a string or an array of chat messages. - */ - export type Prompt = - | string - | (Vapi.SystemMessage | Vapi.UserMessage | Vapi.AssistantMessage | Vapi.ToolMessage | Vapi.DeveloperMessage)[]; -} diff --git a/src/api/types/SayHookActionPrompt.ts b/src/api/types/SayHookActionPrompt.ts new file mode 100644 index 00000000..c50dfb56 --- /dev/null +++ b/src/api/types/SayHookActionPrompt.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the prompt for the assistant to generate a response based on existing conversation. + * Can be a string or an array of chat messages. + */ +export type SayHookActionPrompt = string | Vapi.SayHookActionPromptItem[]; diff --git a/src/api/types/SayHookActionPromptItem.ts b/src/api/types/SayHookActionPromptItem.ts new file mode 100644 index 00000000..7573d31c --- /dev/null +++ b/src/api/types/SayHookActionPromptItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type SayHookActionPromptItem = + | Vapi.SystemMessage + | Vapi.UserMessage + | Vapi.AssistantMessage + | Vapi.ToolMessage + | Vapi.DeveloperMessage; diff --git a/src/api/types/SecurityFilterPlan.ts b/src/api/types/SecurityFilterPlan.ts index f77d4173..8408a0c2 100644 --- a/src/api/types/SecurityFilterPlan.ts +++ b/src/api/types/SecurityFilterPlan.ts @@ -22,26 +22,10 @@ export interface SecurityFilterPlan { * - 'replace': Replace threatening patterns with replacement text * @default 'sanitize' */ - mode?: SecurityFilterPlan.Mode; + mode?: Vapi.SecurityFilterPlanMode; /** * Text to use when replacing filtered content. * @default '[FILTERED]' */ replacementText?: string; } - -export namespace SecurityFilterPlan { - /** - * Mode of operation when a security threat is detected. - * - 'sanitize': Remove or replace the threatening content - * - 'reject': Replace the entire transcript with replacement text - * - 'replace': Replace threatening patterns with replacement text - * @default 'sanitize' - */ - export type Mode = "sanitize" | "reject" | "replace"; - export const Mode = { - Sanitize: "sanitize", - Reject: "reject", - Replace: "replace", - } as const; -} diff --git a/src/api/types/SecurityFilterPlanMode.ts b/src/api/types/SecurityFilterPlanMode.ts new file mode 100644 index 00000000..906317d0 --- /dev/null +++ b/src/api/types/SecurityFilterPlanMode.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Mode of operation when a security threat is detected. + * - 'sanitize': Remove or replace the threatening content + * - 'reject': Replace the entire transcript with replacement text + * - 'replace': Replace threatening patterns with replacement text + * @default 'sanitize' + */ +export type SecurityFilterPlanMode = "sanitize" | "reject" | "replace"; +export const SecurityFilterPlanMode = { + Sanitize: "sanitize", + Reject: "reject", + Replace: "replace", +} as const; diff --git a/src/api/types/ServerMessage.ts b/src/api/types/ServerMessage.ts index 37807971..fc04d7a3 100644 --- a/src/api/types/ServerMessage.ts +++ b/src/api/types/ServerMessage.ts @@ -15,45 +15,5 @@ export interface ServerMessage { * 3. `phoneNumber.serverUrl` (if configured) * 4. `org.serverUrl` (if configured) */ - message: ServerMessage.Message; -} - -export namespace ServerMessage { - /** - * These are all the messages that can be sent to your server before, after and during the call. Configure the messages you'd like to receive in `assistant.serverMessages`. - * - * The server where the message is sent is determined by the following precedence order: - * - * 1. `tool.server.url` (if configured, and only for "tool-calls" message) - * 2. `assistant.serverUrl` (if configure) - * 3. `phoneNumber.serverUrl` (if configured) - * 4. `org.serverUrl` (if configured) - */ - export type Message = - | Vapi.ServerMessageAssistantRequest - | Vapi.ServerMessageConversationUpdate - | Vapi.ServerMessageEndOfCallReport - | Vapi.ServerMessageHandoffDestinationRequest - | Vapi.ServerMessageHang - | Vapi.ServerMessageKnowledgeBaseRequest - | Vapi.ServerMessageModelOutput - | Vapi.ServerMessagePhoneCallControl - | Vapi.ServerMessageSpeechUpdate - | Vapi.ServerMessageStatusUpdate - | Vapi.ServerMessageToolCalls - | Vapi.ServerMessageTransferDestinationRequest - | Vapi.ServerMessageTransferUpdate - | Vapi.ServerMessageTranscript - | Vapi.ServerMessageUserInterrupted - | Vapi.ServerMessageLanguageChangeDetected - | Vapi.ServerMessageVoiceInput - | Vapi.ServerMessageVoiceRequest - | Vapi.ServerMessageCallEndpointingRequest - | Vapi.ServerMessageChatCreated - | Vapi.ServerMessageChatDeleted - | Vapi.ServerMessageSessionCreated - | Vapi.ServerMessageSessionUpdated - | Vapi.ServerMessageSessionDeleted - | Vapi.ServerMessageCallDeleted - | Vapi.ServerMessageCallDeleteFailed; + message: Vapi.ServerMessageMessage; } diff --git a/src/api/types/ServerMessageAssistantRequest.ts b/src/api/types/ServerMessageAssistantRequest.ts index 736ccd79..bb03eecc 100644 --- a/src/api/types/ServerMessageAssistantRequest.ts +++ b/src/api/types/ServerMessageAssistantRequest.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ServerMessageAssistantRequest { /** This is the phone number that the message is associated with. */ - phoneNumber?: ServerMessageAssistantRequest.PhoneNumber; + phoneNumber?: Vapi.ServerMessageAssistantRequestPhoneNumber; /** This is the type of the message. "assistant-request" is sent to fetch assistant configuration for an incoming call. */ type: "assistant-request"; /** This is the timestamp of the message. */ @@ -26,15 +26,3 @@ export interface ServerMessageAssistantRequest { /** This is the chat object. */ chat?: Vapi.Chat; } - -export namespace ServerMessageAssistantRequest { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ServerMessageAssistantRequestPhoneNumber.ts b/src/api/types/ServerMessageAssistantRequestPhoneNumber.ts new file mode 100644 index 00000000..696de13b --- /dev/null +++ b/src/api/types/ServerMessageAssistantRequestPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ServerMessageAssistantRequestPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ServerMessageCallDeleteFailed.ts b/src/api/types/ServerMessageCallDeleteFailed.ts index 922594bd..a5a25865 100644 --- a/src/api/types/ServerMessageCallDeleteFailed.ts +++ b/src/api/types/ServerMessageCallDeleteFailed.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ServerMessageCallDeleteFailed { /** This is the phone number that the message is associated with. */ - phoneNumber?: ServerMessageCallDeleteFailed.PhoneNumber; + phoneNumber?: Vapi.ServerMessageCallDeleteFailedPhoneNumber; /** This is the type of the message. "call.deleted" is sent when a call is deleted. */ type: "call.delete.failed"; /** This is the timestamp of the message. */ @@ -26,15 +26,3 @@ export interface ServerMessageCallDeleteFailed { /** This is the chat object. */ chat?: Vapi.Chat; } - -export namespace ServerMessageCallDeleteFailed { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ServerMessageCallDeleteFailedPhoneNumber.ts b/src/api/types/ServerMessageCallDeleteFailedPhoneNumber.ts new file mode 100644 index 00000000..e395f4d8 --- /dev/null +++ b/src/api/types/ServerMessageCallDeleteFailedPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ServerMessageCallDeleteFailedPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ServerMessageCallDeleted.ts b/src/api/types/ServerMessageCallDeleted.ts index bc5a0a11..bf00b9dc 100644 --- a/src/api/types/ServerMessageCallDeleted.ts +++ b/src/api/types/ServerMessageCallDeleted.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ServerMessageCallDeleted { /** This is the phone number that the message is associated with. */ - phoneNumber?: ServerMessageCallDeleted.PhoneNumber; + phoneNumber?: Vapi.ServerMessageCallDeletedPhoneNumber; /** This is the type of the message. "call.deleted" is sent when a call is deleted. */ type: "call.deleted"; /** This is the timestamp of the message. */ @@ -26,15 +26,3 @@ export interface ServerMessageCallDeleted { /** This is the chat object. */ chat?: Vapi.Chat; } - -export namespace ServerMessageCallDeleted { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ServerMessageCallDeletedPhoneNumber.ts b/src/api/types/ServerMessageCallDeletedPhoneNumber.ts new file mode 100644 index 00000000..fe1fe6d4 --- /dev/null +++ b/src/api/types/ServerMessageCallDeletedPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ServerMessageCallDeletedPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ServerMessageCallEndpointingRequest.ts b/src/api/types/ServerMessageCallEndpointingRequest.ts index b9048102..0db2242b 100644 --- a/src/api/types/ServerMessageCallEndpointingRequest.ts +++ b/src/api/types/ServerMessageCallEndpointingRequest.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ServerMessageCallEndpointingRequest { /** This is the phone number that the message is associated with. */ - phoneNumber?: ServerMessageCallEndpointingRequest.PhoneNumber; + phoneNumber?: Vapi.ServerMessageCallEndpointingRequestPhoneNumber; /** * This is the type of the message. "call.endpointing.request" is sent when using `assistant.startSpeakingPlan.smartEndpointingPlan={ "provider": "custom-endpointing-model" }`. * @@ -37,7 +37,7 @@ export interface ServerMessageCallEndpointingRequest { */ type: "call.endpointing.request"; /** This is the conversation history at the time of the endpointing request. */ - messages?: ServerMessageCallEndpointingRequest.Messages.Item[]; + messages?: Vapi.ServerMessageCallEndpointingRequestMessagesItem[]; /** This is just `messages` formatted for OpenAI. */ messagesOpenAIFormatted: Vapi.OpenAiMessage[]; /** This is the timestamp of the message. */ @@ -57,25 +57,3 @@ export interface ServerMessageCallEndpointingRequest { /** This is the chat object. */ chat?: Vapi.Chat; } - -export namespace ServerMessageCallEndpointingRequest { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.UserMessage - | Vapi.SystemMessage - | Vapi.BotMessage - | Vapi.ToolCallMessage - | Vapi.ToolCallResultMessage; - } -} diff --git a/src/api/types/ServerMessageCallEndpointingRequestMessagesItem.ts b/src/api/types/ServerMessageCallEndpointingRequestMessagesItem.ts new file mode 100644 index 00000000..2d3a5479 --- /dev/null +++ b/src/api/types/ServerMessageCallEndpointingRequestMessagesItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type ServerMessageCallEndpointingRequestMessagesItem = + | Vapi.UserMessage + | Vapi.SystemMessage + | Vapi.BotMessage + | Vapi.ToolCallMessage + | Vapi.ToolCallResultMessage; diff --git a/src/api/types/ServerMessageCallEndpointingRequestPhoneNumber.ts b/src/api/types/ServerMessageCallEndpointingRequestPhoneNumber.ts new file mode 100644 index 00000000..abe62862 --- /dev/null +++ b/src/api/types/ServerMessageCallEndpointingRequestPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ServerMessageCallEndpointingRequestPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ServerMessageChatCreated.ts b/src/api/types/ServerMessageChatCreated.ts index c642348b..69814c6d 100644 --- a/src/api/types/ServerMessageChatCreated.ts +++ b/src/api/types/ServerMessageChatCreated.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ServerMessageChatCreated { /** This is the phone number that the message is associated with. */ - phoneNumber?: ServerMessageChatCreated.PhoneNumber; + phoneNumber?: Vapi.ServerMessageChatCreatedPhoneNumber; /** This is the type of the message. "chat.created" is sent when a new chat is created. */ type: "chat.created"; /** This is the timestamp of the message. */ @@ -26,15 +26,3 @@ export interface ServerMessageChatCreated { /** This is the chat that was created. */ chat: Vapi.Chat; } - -export namespace ServerMessageChatCreated { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ServerMessageChatCreatedPhoneNumber.ts b/src/api/types/ServerMessageChatCreatedPhoneNumber.ts new file mode 100644 index 00000000..357a4c36 --- /dev/null +++ b/src/api/types/ServerMessageChatCreatedPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ServerMessageChatCreatedPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ServerMessageChatDeleted.ts b/src/api/types/ServerMessageChatDeleted.ts index c947a667..015095c7 100644 --- a/src/api/types/ServerMessageChatDeleted.ts +++ b/src/api/types/ServerMessageChatDeleted.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ServerMessageChatDeleted { /** This is the phone number that the message is associated with. */ - phoneNumber?: ServerMessageChatDeleted.PhoneNumber; + phoneNumber?: Vapi.ServerMessageChatDeletedPhoneNumber; /** This is the type of the message. "chat.deleted" is sent when a chat is deleted. */ type: "chat.deleted"; /** This is the timestamp of the message. */ @@ -26,15 +26,3 @@ export interface ServerMessageChatDeleted { /** This is the chat that was deleted. */ chat: Vapi.Chat; } - -export namespace ServerMessageChatDeleted { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ServerMessageChatDeletedPhoneNumber.ts b/src/api/types/ServerMessageChatDeletedPhoneNumber.ts new file mode 100644 index 00000000..77354c1a --- /dev/null +++ b/src/api/types/ServerMessageChatDeletedPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ServerMessageChatDeletedPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ServerMessageConversationUpdate.ts b/src/api/types/ServerMessageConversationUpdate.ts index 9a156d10..e153c900 100644 --- a/src/api/types/ServerMessageConversationUpdate.ts +++ b/src/api/types/ServerMessageConversationUpdate.ts @@ -6,11 +6,11 @@ import * as Vapi from "../index.js"; export interface ServerMessageConversationUpdate { /** This is the phone number that the message is associated with. */ - phoneNumber?: ServerMessageConversationUpdate.PhoneNumber; + phoneNumber?: Vapi.ServerMessageConversationUpdatePhoneNumber; /** This is the type of the message. "conversation-update" is sent when an update is committed to the conversation history. */ type: "conversation-update"; /** This is the most up-to-date conversation history at the time the message is sent. */ - messages?: ServerMessageConversationUpdate.Messages.Item[]; + messages?: Vapi.ServerMessageConversationUpdateMessagesItem[]; /** This is the most up-to-date conversation history at the time the message is sent, formatted for OpenAI. */ messagesOpenAIFormatted: Vapi.OpenAiMessage[]; /** This is the timestamp of the message. */ @@ -30,25 +30,3 @@ export interface ServerMessageConversationUpdate { /** This is the chat object. */ chat?: Vapi.Chat; } - -export namespace ServerMessageConversationUpdate { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.UserMessage - | Vapi.SystemMessage - | Vapi.BotMessage - | Vapi.ToolCallMessage - | Vapi.ToolCallResultMessage; - } -} diff --git a/src/api/types/ServerMessageConversationUpdateMessagesItem.ts b/src/api/types/ServerMessageConversationUpdateMessagesItem.ts new file mode 100644 index 00000000..bbbde94d --- /dev/null +++ b/src/api/types/ServerMessageConversationUpdateMessagesItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type ServerMessageConversationUpdateMessagesItem = + | Vapi.UserMessage + | Vapi.SystemMessage + | Vapi.BotMessage + | Vapi.ToolCallMessage + | Vapi.ToolCallResultMessage; diff --git a/src/api/types/ServerMessageConversationUpdatePhoneNumber.ts b/src/api/types/ServerMessageConversationUpdatePhoneNumber.ts new file mode 100644 index 00000000..109c7196 --- /dev/null +++ b/src/api/types/ServerMessageConversationUpdatePhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ServerMessageConversationUpdatePhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ServerMessageEndOfCallReport.ts b/src/api/types/ServerMessageEndOfCallReport.ts index 2669e2a9..fe7f9eb3 100644 --- a/src/api/types/ServerMessageEndOfCallReport.ts +++ b/src/api/types/ServerMessageEndOfCallReport.ts @@ -6,15 +6,15 @@ import * as Vapi from "../index.js"; export interface ServerMessageEndOfCallReport { /** This is the phone number that the message is associated with. */ - phoneNumber?: ServerMessageEndOfCallReport.PhoneNumber; + phoneNumber?: Vapi.ServerMessageEndOfCallReportPhoneNumber; /** This is the type of the message. "end-of-call-report" is sent when the call ends and post-processing is complete. */ type: "end-of-call-report"; /** This is the reason the call ended. This can also be found at `call.endedReason` on GET /call/:id. */ - endedReason: ServerMessageEndOfCallReport.EndedReason; + endedReason: Vapi.ServerMessageEndOfCallReportEndedReason; /** This is the cost of the call in USD. This can also be found at `call.cost` on GET /call/:id. */ cost?: number; /** These are the costs of individual components of the call in USD. This can also be found at `call.costs` on GET /call/:id. */ - costs?: ServerMessageEndOfCallReport.Costs.Item[]; + costs?: Vapi.ServerMessageEndOfCallReportCostsItem[]; /** This is the timestamp of the message. */ timestamp?: number; /** These are the artifacts from the call. This can also be found at `call.artifact` on GET /call/:id. */ @@ -36,1306 +36,3 @@ export interface ServerMessageEndOfCallReport { /** This is the compliance result of the call. This can also be found at `call.compliance` on GET /call/:id. */ compliance?: Vapi.Compliance; } - -export namespace ServerMessageEndOfCallReport { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; - /** - * This is the reason the call ended. This can also be found at `call.endedReason` on GET /call/:id. - */ - export type EndedReason = - | "call-start-error-neither-assistant-nor-server-set" - | "assistant-request-failed" - | "assistant-request-returned-error" - | "assistant-request-returned-unspeakable-error" - | "assistant-request-returned-invalid-assistant" - | "assistant-request-returned-no-assistant" - | "assistant-request-returned-forwarding-phone-number" - | "scheduled-call-deleted" - | "call.start.error-vapifault-get-org" - | "call.start.error-vapifault-get-subscription" - | "call.start.error-get-assistant" - | "call.start.error-get-phone-number" - | "call.start.error-get-customer" - | "call.start.error-get-resources-validation" - | "call.start.error-vapi-number-international" - | "call.start.error-vapi-number-outbound-daily-limit" - | "call.start.error-get-transport" - | "call.start.error-subscription-wallet-does-not-exist" - | "call.start.error-fraud-check-failed" - | "call.start.error-subscription-frozen" - | "call.start.error-subscription-insufficient-credits" - | "call.start.error-subscription-upgrade-failed" - | "call.start.error-subscription-concurrency-limit-reached" - | "call.start.error-enterprise-feature-not-available-recording-consent" - | "assistant-not-valid" - | "call.start.error-vapifault-database-error" - | "assistant-not-found" - | "pipeline-error-openai-voice-failed" - | "pipeline-error-cartesia-voice-failed" - | "pipeline-error-deepgram-voice-failed" - | "pipeline-error-eleven-labs-voice-failed" - | "pipeline-error-playht-voice-failed" - | "pipeline-error-lmnt-voice-failed" - | "pipeline-error-azure-voice-failed" - | "pipeline-error-rime-ai-voice-failed" - | "pipeline-error-smallest-ai-voice-failed" - | "pipeline-error-neuphonic-voice-failed" - | "pipeline-error-hume-voice-failed" - | "pipeline-error-sesame-voice-failed" - | "pipeline-error-inworld-voice-failed" - | "pipeline-error-minimax-voice-failed" - | "pipeline-error-tavus-video-failed" - | "call.in-progress.error-vapifault-openai-voice-failed" - | "call.in-progress.error-vapifault-cartesia-voice-failed" - | "call.in-progress.error-vapifault-deepgram-voice-failed" - | "call.in-progress.error-vapifault-eleven-labs-voice-failed" - | "call.in-progress.error-vapifault-playht-voice-failed" - | "call.in-progress.error-vapifault-lmnt-voice-failed" - | "call.in-progress.error-vapifault-azure-voice-failed" - | "call.in-progress.error-vapifault-rime-ai-voice-failed" - | "call.in-progress.error-vapifault-smallest-ai-voice-failed" - | "call.in-progress.error-vapifault-neuphonic-voice-failed" - | "call.in-progress.error-vapifault-hume-voice-failed" - | "call.in-progress.error-vapifault-sesame-voice-failed" - | "call.in-progress.error-vapifault-inworld-voice-failed" - | "call.in-progress.error-vapifault-minimax-voice-failed" - | "call.in-progress.error-vapifault-tavus-video-failed" - | "pipeline-error-vapi-llm-failed" - | "pipeline-error-vapi-400-bad-request-validation-failed" - | "pipeline-error-vapi-401-unauthorized" - | "pipeline-error-vapi-403-model-access-denied" - | "pipeline-error-vapi-429-exceeded-quota" - | "pipeline-error-vapi-500-server-error" - | "pipeline-error-vapi-503-server-overloaded-error" - | "call.in-progress.error-providerfault-vapi-llm-failed" - | "call.in-progress.error-vapifault-vapi-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-vapi-401-unauthorized" - | "call.in-progress.error-vapifault-vapi-403-model-access-denied" - | "call.in-progress.error-vapifault-vapi-429-exceeded-quota" - | "call.in-progress.error-providerfault-vapi-500-server-error" - | "call.in-progress.error-providerfault-vapi-503-server-overloaded-error" - | "pipeline-error-deepgram-transcriber-failed" - | "pipeline-error-deepgram-transcriber-api-key-missing" - | "call.in-progress.error-vapifault-deepgram-transcriber-failed" - | "pipeline-error-gladia-transcriber-failed" - | "call.in-progress.error-vapifault-gladia-transcriber-failed" - | "pipeline-error-speechmatics-transcriber-failed" - | "call.in-progress.error-vapifault-speechmatics-transcriber-failed" - | "pipeline-error-assembly-ai-transcriber-failed" - | "pipeline-error-assembly-ai-returning-400-insufficent-funds" - | "pipeline-error-assembly-ai-returning-400-paid-only-feature" - | "pipeline-error-assembly-ai-returning-401-invalid-credentials" - | "pipeline-error-assembly-ai-returning-500-invalid-schema" - | "pipeline-error-assembly-ai-returning-500-word-boost-parsing-failed" - | "call.in-progress.error-vapifault-assembly-ai-transcriber-failed" - | "call.in-progress.error-vapifault-assembly-ai-returning-400-insufficent-funds" - | "call.in-progress.error-vapifault-assembly-ai-returning-400-paid-only-feature" - | "call.in-progress.error-vapifault-assembly-ai-returning-401-invalid-credentials" - | "call.in-progress.error-vapifault-assembly-ai-returning-500-invalid-schema" - | "call.in-progress.error-vapifault-assembly-ai-returning-500-word-boost-parsing-failed" - | "pipeline-error-talkscriber-transcriber-failed" - | "call.in-progress.error-vapifault-talkscriber-transcriber-failed" - | "pipeline-error-azure-speech-transcriber-failed" - | "call.in-progress.error-vapifault-azure-speech-transcriber-failed" - | "call.in-progress.error-pipeline-no-available-llm-model" - | "worker-shutdown" - | "vonage-disconnected" - | "vonage-failed-to-connect-call" - | "vonage-completed" - | "phone-call-provider-bypass-enabled-but-no-call-received" - | "call.in-progress.error-providerfault-transport-never-connected" - | "call.in-progress.error-vapifault-worker-not-available" - | "call.in-progress.error-vapifault-transport-never-connected" - | "call.in-progress.error-vapifault-transport-connected-but-call-not-active" - | "call.in-progress.error-vapifault-call-started-but-connection-to-transport-missing" - | "call.in-progress.error-vapifault-worker-died" - | "call.in-progress.twilio-completed-call" - | "call.in-progress.sip-completed-call" - | "call.in-progress.error-providerfault-openai-llm-failed" - | "call.in-progress.error-providerfault-azure-openai-llm-failed" - | "call.in-progress.error-providerfault-groq-llm-failed" - | "call.in-progress.error-providerfault-google-llm-failed" - | "call.in-progress.error-providerfault-xai-llm-failed" - | "call.in-progress.error-providerfault-mistral-llm-failed" - | "call.in-progress.error-providerfault-inflection-ai-llm-failed" - | "call.in-progress.error-providerfault-cerebras-llm-failed" - | "call.in-progress.error-providerfault-deep-seek-llm-failed" - | "call.in-progress.error-vapifault-chat-pipeline-failed-to-start" - | "pipeline-error-openai-400-bad-request-validation-failed" - | "pipeline-error-openai-401-unauthorized" - | "pipeline-error-openai-401-incorrect-api-key" - | "pipeline-error-openai-401-account-not-in-organization" - | "pipeline-error-openai-403-model-access-denied" - | "pipeline-error-openai-429-exceeded-quota" - | "pipeline-error-openai-429-rate-limit-reached" - | "pipeline-error-openai-500-server-error" - | "pipeline-error-openai-503-server-overloaded-error" - | "pipeline-error-openai-llm-failed" - | "call.in-progress.error-vapifault-openai-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-openai-401-unauthorized" - | "call.in-progress.error-vapifault-openai-401-incorrect-api-key" - | "call.in-progress.error-vapifault-openai-401-account-not-in-organization" - | "call.in-progress.error-vapifault-openai-403-model-access-denied" - | "call.in-progress.error-vapifault-openai-429-exceeded-quota" - | "call.in-progress.error-vapifault-openai-429-rate-limit-reached" - | "call.in-progress.error-providerfault-openai-500-server-error" - | "call.in-progress.error-providerfault-openai-503-server-overloaded-error" - | "pipeline-error-azure-openai-400-bad-request-validation-failed" - | "pipeline-error-azure-openai-401-unauthorized" - | "pipeline-error-azure-openai-403-model-access-denied" - | "pipeline-error-azure-openai-429-exceeded-quota" - | "pipeline-error-azure-openai-500-server-error" - | "pipeline-error-azure-openai-503-server-overloaded-error" - | "pipeline-error-azure-openai-llm-failed" - | "call.in-progress.error-vapifault-azure-openai-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-azure-openai-401-unauthorized" - | "call.in-progress.error-vapifault-azure-openai-403-model-access-denied" - | "call.in-progress.error-vapifault-azure-openai-429-exceeded-quota" - | "call.in-progress.error-providerfault-azure-openai-500-server-error" - | "call.in-progress.error-providerfault-azure-openai-503-server-overloaded-error" - | "pipeline-error-google-400-bad-request-validation-failed" - | "pipeline-error-google-401-unauthorized" - | "pipeline-error-google-403-model-access-denied" - | "pipeline-error-google-429-exceeded-quota" - | "pipeline-error-google-500-server-error" - | "pipeline-error-google-503-server-overloaded-error" - | "pipeline-error-google-llm-failed" - | "call.in-progress.error-vapifault-google-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-google-401-unauthorized" - | "call.in-progress.error-vapifault-google-403-model-access-denied" - | "call.in-progress.error-vapifault-google-429-exceeded-quota" - | "call.in-progress.error-providerfault-google-500-server-error" - | "call.in-progress.error-providerfault-google-503-server-overloaded-error" - | "pipeline-error-xai-400-bad-request-validation-failed" - | "pipeline-error-xai-401-unauthorized" - | "pipeline-error-xai-403-model-access-denied" - | "pipeline-error-xai-429-exceeded-quota" - | "pipeline-error-xai-500-server-error" - | "pipeline-error-xai-503-server-overloaded-error" - | "pipeline-error-xai-llm-failed" - | "call.in-progress.error-vapifault-xai-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-xai-401-unauthorized" - | "call.in-progress.error-vapifault-xai-403-model-access-denied" - | "call.in-progress.error-vapifault-xai-429-exceeded-quota" - | "call.in-progress.error-providerfault-xai-500-server-error" - | "call.in-progress.error-providerfault-xai-503-server-overloaded-error" - | "pipeline-error-mistral-400-bad-request-validation-failed" - | "pipeline-error-mistral-401-unauthorized" - | "pipeline-error-mistral-403-model-access-denied" - | "pipeline-error-mistral-429-exceeded-quota" - | "pipeline-error-mistral-500-server-error" - | "pipeline-error-mistral-503-server-overloaded-error" - | "pipeline-error-mistral-llm-failed" - | "call.in-progress.error-vapifault-mistral-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-mistral-401-unauthorized" - | "call.in-progress.error-vapifault-mistral-403-model-access-denied" - | "call.in-progress.error-vapifault-mistral-429-exceeded-quota" - | "call.in-progress.error-providerfault-mistral-500-server-error" - | "call.in-progress.error-providerfault-mistral-503-server-overloaded-error" - | "pipeline-error-inflection-ai-400-bad-request-validation-failed" - | "pipeline-error-inflection-ai-401-unauthorized" - | "pipeline-error-inflection-ai-403-model-access-denied" - | "pipeline-error-inflection-ai-429-exceeded-quota" - | "pipeline-error-inflection-ai-500-server-error" - | "pipeline-error-inflection-ai-503-server-overloaded-error" - | "pipeline-error-inflection-ai-llm-failed" - | "call.in-progress.error-vapifault-inflection-ai-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-inflection-ai-401-unauthorized" - | "call.in-progress.error-vapifault-inflection-ai-403-model-access-denied" - | "call.in-progress.error-vapifault-inflection-ai-429-exceeded-quota" - | "call.in-progress.error-providerfault-inflection-ai-500-server-error" - | "call.in-progress.error-providerfault-inflection-ai-503-server-overloaded-error" - | "pipeline-error-deep-seek-400-bad-request-validation-failed" - | "pipeline-error-deep-seek-401-unauthorized" - | "pipeline-error-deep-seek-403-model-access-denied" - | "pipeline-error-deep-seek-429-exceeded-quota" - | "pipeline-error-deep-seek-500-server-error" - | "pipeline-error-deep-seek-503-server-overloaded-error" - | "pipeline-error-deep-seek-llm-failed" - | "call.in-progress.error-vapifault-deep-seek-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-deep-seek-401-unauthorized" - | "call.in-progress.error-vapifault-deep-seek-403-model-access-denied" - | "call.in-progress.error-vapifault-deep-seek-429-exceeded-quota" - | "call.in-progress.error-providerfault-deep-seek-500-server-error" - | "call.in-progress.error-providerfault-deep-seek-503-server-overloaded-error" - | "pipeline-error-groq-400-bad-request-validation-failed" - | "pipeline-error-groq-401-unauthorized" - | "pipeline-error-groq-403-model-access-denied" - | "pipeline-error-groq-429-exceeded-quota" - | "pipeline-error-groq-500-server-error" - | "pipeline-error-groq-503-server-overloaded-error" - | "pipeline-error-groq-llm-failed" - | "call.in-progress.error-vapifault-groq-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-groq-401-unauthorized" - | "call.in-progress.error-vapifault-groq-403-model-access-denied" - | "call.in-progress.error-vapifault-groq-429-exceeded-quota" - | "call.in-progress.error-providerfault-groq-500-server-error" - | "call.in-progress.error-providerfault-groq-503-server-overloaded-error" - | "pipeline-error-cerebras-400-bad-request-validation-failed" - | "pipeline-error-cerebras-401-unauthorized" - | "pipeline-error-cerebras-403-model-access-denied" - | "pipeline-error-cerebras-429-exceeded-quota" - | "pipeline-error-cerebras-500-server-error" - | "pipeline-error-cerebras-503-server-overloaded-error" - | "pipeline-error-cerebras-llm-failed" - | "call.in-progress.error-vapifault-cerebras-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-cerebras-401-unauthorized" - | "call.in-progress.error-vapifault-cerebras-403-model-access-denied" - | "call.in-progress.error-vapifault-cerebras-429-exceeded-quota" - | "call.in-progress.error-providerfault-cerebras-500-server-error" - | "call.in-progress.error-providerfault-cerebras-503-server-overloaded-error" - | "pipeline-error-anthropic-400-bad-request-validation-failed" - | "pipeline-error-anthropic-401-unauthorized" - | "pipeline-error-anthropic-403-model-access-denied" - | "pipeline-error-anthropic-429-exceeded-quota" - | "pipeline-error-anthropic-500-server-error" - | "pipeline-error-anthropic-503-server-overloaded-error" - | "pipeline-error-anthropic-llm-failed" - | "call.in-progress.error-providerfault-anthropic-llm-failed" - | "call.in-progress.error-vapifault-anthropic-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-anthropic-401-unauthorized" - | "call.in-progress.error-vapifault-anthropic-403-model-access-denied" - | "call.in-progress.error-vapifault-anthropic-429-exceeded-quota" - | "call.in-progress.error-providerfault-anthropic-500-server-error" - | "call.in-progress.error-providerfault-anthropic-503-server-overloaded-error" - | "pipeline-error-anthropic-bedrock-400-bad-request-validation-failed" - | "pipeline-error-anthropic-bedrock-401-unauthorized" - | "pipeline-error-anthropic-bedrock-403-model-access-denied" - | "pipeline-error-anthropic-bedrock-429-exceeded-quota" - | "pipeline-error-anthropic-bedrock-500-server-error" - | "pipeline-error-anthropic-bedrock-503-server-overloaded-error" - | "pipeline-error-anthropic-bedrock-llm-failed" - | "call.in-progress.error-providerfault-anthropic-bedrock-llm-failed" - | "call.in-progress.error-vapifault-anthropic-bedrock-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-anthropic-bedrock-401-unauthorized" - | "call.in-progress.error-vapifault-anthropic-bedrock-403-model-access-denied" - | "call.in-progress.error-vapifault-anthropic-bedrock-429-exceeded-quota" - | "call.in-progress.error-providerfault-anthropic-bedrock-500-server-error" - | "call.in-progress.error-providerfault-anthropic-bedrock-503-server-overloaded-error" - | "pipeline-error-anthropic-vertex-400-bad-request-validation-failed" - | "pipeline-error-anthropic-vertex-401-unauthorized" - | "pipeline-error-anthropic-vertex-403-model-access-denied" - | "pipeline-error-anthropic-vertex-429-exceeded-quota" - | "pipeline-error-anthropic-vertex-500-server-error" - | "pipeline-error-anthropic-vertex-503-server-overloaded-error" - | "pipeline-error-anthropic-vertex-llm-failed" - | "call.in-progress.error-providerfault-anthropic-vertex-llm-failed" - | "call.in-progress.error-vapifault-anthropic-vertex-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-anthropic-vertex-401-unauthorized" - | "call.in-progress.error-vapifault-anthropic-vertex-403-model-access-denied" - | "call.in-progress.error-vapifault-anthropic-vertex-429-exceeded-quota" - | "call.in-progress.error-providerfault-anthropic-vertex-500-server-error" - | "call.in-progress.error-providerfault-anthropic-vertex-503-server-overloaded-error" - | "pipeline-error-together-ai-400-bad-request-validation-failed" - | "pipeline-error-together-ai-401-unauthorized" - | "pipeline-error-together-ai-403-model-access-denied" - | "pipeline-error-together-ai-429-exceeded-quota" - | "pipeline-error-together-ai-500-server-error" - | "pipeline-error-together-ai-503-server-overloaded-error" - | "pipeline-error-together-ai-llm-failed" - | "call.in-progress.error-providerfault-together-ai-llm-failed" - | "call.in-progress.error-vapifault-together-ai-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-together-ai-401-unauthorized" - | "call.in-progress.error-vapifault-together-ai-403-model-access-denied" - | "call.in-progress.error-vapifault-together-ai-429-exceeded-quota" - | "call.in-progress.error-providerfault-together-ai-500-server-error" - | "call.in-progress.error-providerfault-together-ai-503-server-overloaded-error" - | "pipeline-error-anyscale-400-bad-request-validation-failed" - | "pipeline-error-anyscale-401-unauthorized" - | "pipeline-error-anyscale-403-model-access-denied" - | "pipeline-error-anyscale-429-exceeded-quota" - | "pipeline-error-anyscale-500-server-error" - | "pipeline-error-anyscale-503-server-overloaded-error" - | "pipeline-error-anyscale-llm-failed" - | "call.in-progress.error-providerfault-anyscale-llm-failed" - | "call.in-progress.error-vapifault-anyscale-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-anyscale-401-unauthorized" - | "call.in-progress.error-vapifault-anyscale-403-model-access-denied" - | "call.in-progress.error-vapifault-anyscale-429-exceeded-quota" - | "call.in-progress.error-providerfault-anyscale-500-server-error" - | "call.in-progress.error-providerfault-anyscale-503-server-overloaded-error" - | "pipeline-error-openrouter-400-bad-request-validation-failed" - | "pipeline-error-openrouter-401-unauthorized" - | "pipeline-error-openrouter-403-model-access-denied" - | "pipeline-error-openrouter-429-exceeded-quota" - | "pipeline-error-openrouter-500-server-error" - | "pipeline-error-openrouter-503-server-overloaded-error" - | "pipeline-error-openrouter-llm-failed" - | "call.in-progress.error-providerfault-openrouter-llm-failed" - | "call.in-progress.error-vapifault-openrouter-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-openrouter-401-unauthorized" - | "call.in-progress.error-vapifault-openrouter-403-model-access-denied" - | "call.in-progress.error-vapifault-openrouter-429-exceeded-quota" - | "call.in-progress.error-providerfault-openrouter-500-server-error" - | "call.in-progress.error-providerfault-openrouter-503-server-overloaded-error" - | "pipeline-error-perplexity-ai-400-bad-request-validation-failed" - | "pipeline-error-perplexity-ai-401-unauthorized" - | "pipeline-error-perplexity-ai-403-model-access-denied" - | "pipeline-error-perplexity-ai-429-exceeded-quota" - | "pipeline-error-perplexity-ai-500-server-error" - | "pipeline-error-perplexity-ai-503-server-overloaded-error" - | "pipeline-error-perplexity-ai-llm-failed" - | "call.in-progress.error-providerfault-perplexity-ai-llm-failed" - | "call.in-progress.error-vapifault-perplexity-ai-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-perplexity-ai-401-unauthorized" - | "call.in-progress.error-vapifault-perplexity-ai-403-model-access-denied" - | "call.in-progress.error-vapifault-perplexity-ai-429-exceeded-quota" - | "call.in-progress.error-providerfault-perplexity-ai-500-server-error" - | "call.in-progress.error-providerfault-perplexity-ai-503-server-overloaded-error" - | "pipeline-error-deepinfra-400-bad-request-validation-failed" - | "pipeline-error-deepinfra-401-unauthorized" - | "pipeline-error-deepinfra-403-model-access-denied" - | "pipeline-error-deepinfra-429-exceeded-quota" - | "pipeline-error-deepinfra-500-server-error" - | "pipeline-error-deepinfra-503-server-overloaded-error" - | "pipeline-error-deepinfra-llm-failed" - | "call.in-progress.error-providerfault-deepinfra-llm-failed" - | "call.in-progress.error-vapifault-deepinfra-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-deepinfra-401-unauthorized" - | "call.in-progress.error-vapifault-deepinfra-403-model-access-denied" - | "call.in-progress.error-vapifault-deepinfra-429-exceeded-quota" - | "call.in-progress.error-providerfault-deepinfra-500-server-error" - | "call.in-progress.error-providerfault-deepinfra-503-server-overloaded-error" - | "pipeline-error-runpod-400-bad-request-validation-failed" - | "pipeline-error-runpod-401-unauthorized" - | "pipeline-error-runpod-403-model-access-denied" - | "pipeline-error-runpod-429-exceeded-quota" - | "pipeline-error-runpod-500-server-error" - | "pipeline-error-runpod-503-server-overloaded-error" - | "pipeline-error-runpod-llm-failed" - | "call.in-progress.error-providerfault-runpod-llm-failed" - | "call.in-progress.error-vapifault-runpod-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-runpod-401-unauthorized" - | "call.in-progress.error-vapifault-runpod-403-model-access-denied" - | "call.in-progress.error-vapifault-runpod-429-exceeded-quota" - | "call.in-progress.error-providerfault-runpod-500-server-error" - | "call.in-progress.error-providerfault-runpod-503-server-overloaded-error" - | "pipeline-error-custom-llm-400-bad-request-validation-failed" - | "pipeline-error-custom-llm-401-unauthorized" - | "pipeline-error-custom-llm-403-model-access-denied" - | "pipeline-error-custom-llm-429-exceeded-quota" - | "pipeline-error-custom-llm-500-server-error" - | "pipeline-error-custom-llm-503-server-overloaded-error" - | "pipeline-error-custom-llm-llm-failed" - | "call.in-progress.error-providerfault-custom-llm-llm-failed" - | "call.in-progress.error-vapifault-custom-llm-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-custom-llm-401-unauthorized" - | "call.in-progress.error-vapifault-custom-llm-403-model-access-denied" - | "call.in-progress.error-vapifault-custom-llm-429-exceeded-quota" - | "call.in-progress.error-providerfault-custom-llm-500-server-error" - | "call.in-progress.error-providerfault-custom-llm-503-server-overloaded-error" - | "pipeline-error-custom-voice-failed" - | "pipeline-error-cartesia-socket-hang-up" - | "pipeline-error-cartesia-requested-payment" - | "pipeline-error-cartesia-500-server-error" - | "pipeline-error-cartesia-502-server-error" - | "pipeline-error-cartesia-503-server-error" - | "pipeline-error-cartesia-522-server-error" - | "call.in-progress.error-vapifault-cartesia-socket-hang-up" - | "call.in-progress.error-vapifault-cartesia-requested-payment" - | "call.in-progress.error-providerfault-cartesia-500-server-error" - | "call.in-progress.error-providerfault-cartesia-503-server-error" - | "call.in-progress.error-providerfault-cartesia-522-server-error" - | "pipeline-error-eleven-labs-voice-not-found" - | "pipeline-error-eleven-labs-quota-exceeded" - | "pipeline-error-eleven-labs-unauthorized-access" - | "pipeline-error-eleven-labs-unauthorized-to-access-model" - | "pipeline-error-eleven-labs-professional-voices-only-for-creator-plus" - | "pipeline-error-eleven-labs-blocked-free-plan-and-requested-upgrade" - | "pipeline-error-eleven-labs-blocked-concurrent-requests-and-requested-upgrade" - | "pipeline-error-eleven-labs-blocked-using-instant-voice-clone-and-requested-upgrade" - | "pipeline-error-eleven-labs-system-busy-and-requested-upgrade" - | "pipeline-error-eleven-labs-voice-not-fine-tuned" - | "pipeline-error-eleven-labs-invalid-api-key" - | "pipeline-error-eleven-labs-invalid-voice-samples" - | "pipeline-error-eleven-labs-voice-disabled-by-owner" - | "pipeline-error-eleven-labs-vapi-voice-disabled-by-owner" - | "pipeline-error-eleven-labs-blocked-account-in-probation" - | "pipeline-error-eleven-labs-blocked-content-against-their-policy" - | "pipeline-error-eleven-labs-missing-samples-for-voice-clone" - | "pipeline-error-eleven-labs-voice-not-fine-tuned-and-cannot-be-used" - | "pipeline-error-eleven-labs-voice-not-allowed-for-free-users" - | "pipeline-error-eleven-labs-max-character-limit-exceeded" - | "pipeline-error-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification" - | "pipeline-error-eleven-labs-500-server-error" - | "pipeline-error-eleven-labs-503-server-error" - | "call.in-progress.error-vapifault-eleven-labs-voice-not-found" - | "call.in-progress.error-vapifault-eleven-labs-quota-exceeded" - | "call.in-progress.error-vapifault-eleven-labs-unauthorized-access" - | "call.in-progress.error-vapifault-eleven-labs-unauthorized-to-access-model" - | "call.in-progress.error-vapifault-eleven-labs-professional-voices-only-for-creator-plus" - | "call.in-progress.error-vapifault-eleven-labs-blocked-free-plan-and-requested-upgrade" - | "call.in-progress.error-vapifault-eleven-labs-blocked-concurrent-requests-and-requested-upgrade" - | "call.in-progress.error-vapifault-eleven-labs-blocked-using-instant-voice-clone-and-requested-upgrade" - | "call.in-progress.error-vapifault-eleven-labs-system-busy-and-requested-upgrade" - | "call.in-progress.error-vapifault-eleven-labs-voice-not-fine-tuned" - | "call.in-progress.error-vapifault-eleven-labs-invalid-api-key" - | "call.in-progress.error-vapifault-eleven-labs-invalid-voice-samples" - | "call.in-progress.error-vapifault-eleven-labs-voice-disabled-by-owner" - | "call.in-progress.error-vapifault-eleven-labs-blocked-account-in-probation" - | "call.in-progress.error-vapifault-eleven-labs-blocked-content-against-their-policy" - | "call.in-progress.error-vapifault-eleven-labs-missing-samples-for-voice-clone" - | "call.in-progress.error-vapifault-eleven-labs-voice-not-fine-tuned-and-cannot-be-used" - | "call.in-progress.error-vapifault-eleven-labs-voice-not-allowed-for-free-users" - | "call.in-progress.error-vapifault-eleven-labs-max-character-limit-exceeded" - | "call.in-progress.error-vapifault-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification" - | "call.in-progress.error-providerfault-eleven-labs-500-server-error" - | "call.in-progress.error-providerfault-eleven-labs-503-server-error" - | "pipeline-error-playht-request-timed-out" - | "pipeline-error-playht-invalid-voice" - | "pipeline-error-playht-unexpected-error" - | "pipeline-error-playht-out-of-credits" - | "pipeline-error-playht-invalid-emotion" - | "pipeline-error-playht-voice-must-be-a-valid-voice-manifest-uri" - | "pipeline-error-playht-401-unauthorized" - | "pipeline-error-playht-403-forbidden-out-of-characters" - | "pipeline-error-playht-403-forbidden-api-access-not-available" - | "pipeline-error-playht-429-exceeded-quota" - | "pipeline-error-playht-502-gateway-error" - | "pipeline-error-playht-504-gateway-error" - | "call.in-progress.error-vapifault-playht-request-timed-out" - | "call.in-progress.error-vapifault-playht-invalid-voice" - | "call.in-progress.error-vapifault-playht-unexpected-error" - | "call.in-progress.error-vapifault-playht-out-of-credits" - | "call.in-progress.error-vapifault-playht-invalid-emotion" - | "call.in-progress.error-vapifault-playht-voice-must-be-a-valid-voice-manifest-uri" - | "call.in-progress.error-vapifault-playht-401-unauthorized" - | "call.in-progress.error-vapifault-playht-403-forbidden-out-of-characters" - | "call.in-progress.error-vapifault-playht-403-forbidden-api-access-not-available" - | "call.in-progress.error-vapifault-playht-429-exceeded-quota" - | "call.in-progress.error-providerfault-playht-502-gateway-error" - | "call.in-progress.error-providerfault-playht-504-gateway-error" - | "pipeline-error-custom-transcriber-failed" - | "call.in-progress.error-vapifault-custom-transcriber-failed" - | "pipeline-error-eleven-labs-transcriber-failed" - | "call.in-progress.error-vapifault-eleven-labs-transcriber-failed" - | "pipeline-error-deepgram-returning-400-no-such-model-language-tier-combination" - | "pipeline-error-deepgram-returning-401-invalid-credentials" - | "pipeline-error-deepgram-returning-403-model-access-denied" - | "pipeline-error-deepgram-returning-404-not-found" - | "pipeline-error-deepgram-returning-500-invalid-json" - | "pipeline-error-deepgram-returning-502-network-error" - | "pipeline-error-deepgram-returning-502-bad-gateway-ehostunreach" - | "pipeline-error-deepgram-returning-econnreset" - | "call.in-progress.error-vapifault-deepgram-returning-400-no-such-model-language-tier-combination" - | "call.in-progress.error-vapifault-deepgram-returning-401-invalid-credentials" - | "call.in-progress.error-vapifault-deepgram-returning-404-not-found" - | "call.in-progress.error-vapifault-deepgram-returning-403-model-access-denied" - | "call.in-progress.error-providerfault-deepgram-returning-500-invalid-json" - | "call.in-progress.error-providerfault-deepgram-returning-502-network-error" - | "call.in-progress.error-providerfault-deepgram-returning-502-bad-gateway-ehostunreach" - | "pipeline-error-google-transcriber-failed" - | "call.in-progress.error-vapifault-google-transcriber-failed" - | "pipeline-error-openai-transcriber-failed" - | "call.in-progress.error-vapifault-openai-transcriber-failed" - | "call.in-progress.error-warm-transfer-max-duration" - | "call.in-progress.error-warm-transfer-assistant-cancelled" - | "call.in-progress.error-warm-transfer-silence-timeout" - | "call.in-progress.error-warm-transfer-microphone-timeout" - | "call.in-progress.error-warm-transfer-hang-timeout" - | "call.in-progress.error-warm-transfer-idle-timeout" - | "assistant-ended-call" - | "assistant-said-end-call-phrase" - | "assistant-ended-call-with-hangup-task" - | "assistant-ended-call-after-message-spoken" - | "assistant-forwarded-call" - | "assistant-join-timed-out" - | "call.in-progress.error-assistant-did-not-receive-customer-audio" - | "call.in-progress.error-transfer-failed" - | "customer-busy" - | "customer-ended-call" - | "customer-ended-call-before-warm-transfer" - | "customer-ended-call-after-warm-transfer-attempt" - | "customer-did-not-answer" - | "customer-did-not-give-microphone-permission" - | "exceeded-max-duration" - | "manually-canceled" - | "phone-call-provider-closed-websocket" - | "call.forwarding.operator-busy" - | "silence-timed-out" - | "call.in-progress.error-sip-inbound-call-failed-to-connect" - | "call.in-progress.error-providerfault-outbound-sip-403-forbidden" - | "call.in-progress.error-providerfault-outbound-sip-407-proxy-authentication-required" - | "call.in-progress.error-providerfault-outbound-sip-503-service-unavailable" - | "call.in-progress.error-providerfault-outbound-sip-480-temporarily-unavailable" - | "call.in-progress.error-sip-outbound-call-failed-to-connect" - | "call.ringing.hook-executed-say" - | "call.ringing.hook-executed-transfer" - | "call.ending.hook-executed-say" - | "call.ending.hook-executed-transfer" - | "call.ringing.sip-inbound-caller-hungup-before-call-connect" - | "call.ringing.error-sip-inbound-call-failed-to-connect" - | "twilio-failed-to-connect-call" - | "twilio-reported-customer-misdialed" - | "vonage-rejected" - | "voicemail" - | "call-deleted"; - export const EndedReason = { - CallStartErrorNeitherAssistantNorServerSet: "call-start-error-neither-assistant-nor-server-set", - AssistantRequestFailed: "assistant-request-failed", - AssistantRequestReturnedError: "assistant-request-returned-error", - AssistantRequestReturnedUnspeakableError: "assistant-request-returned-unspeakable-error", - AssistantRequestReturnedInvalidAssistant: "assistant-request-returned-invalid-assistant", - AssistantRequestReturnedNoAssistant: "assistant-request-returned-no-assistant", - AssistantRequestReturnedForwardingPhoneNumber: "assistant-request-returned-forwarding-phone-number", - ScheduledCallDeleted: "scheduled-call-deleted", - CallStartErrorVapifaultGetOrg: "call.start.error-vapifault-get-org", - CallStartErrorVapifaultGetSubscription: "call.start.error-vapifault-get-subscription", - CallStartErrorGetAssistant: "call.start.error-get-assistant", - CallStartErrorGetPhoneNumber: "call.start.error-get-phone-number", - CallStartErrorGetCustomer: "call.start.error-get-customer", - CallStartErrorGetResourcesValidation: "call.start.error-get-resources-validation", - CallStartErrorVapiNumberInternational: "call.start.error-vapi-number-international", - CallStartErrorVapiNumberOutboundDailyLimit: "call.start.error-vapi-number-outbound-daily-limit", - CallStartErrorGetTransport: "call.start.error-get-transport", - CallStartErrorSubscriptionWalletDoesNotExist: "call.start.error-subscription-wallet-does-not-exist", - CallStartErrorFraudCheckFailed: "call.start.error-fraud-check-failed", - CallStartErrorSubscriptionFrozen: "call.start.error-subscription-frozen", - CallStartErrorSubscriptionInsufficientCredits: "call.start.error-subscription-insufficient-credits", - CallStartErrorSubscriptionUpgradeFailed: "call.start.error-subscription-upgrade-failed", - CallStartErrorSubscriptionConcurrencyLimitReached: "call.start.error-subscription-concurrency-limit-reached", - CallStartErrorEnterpriseFeatureNotAvailableRecordingConsent: - "call.start.error-enterprise-feature-not-available-recording-consent", - AssistantNotValid: "assistant-not-valid", - CallStartErrorVapifaultDatabaseError: "call.start.error-vapifault-database-error", - AssistantNotFound: "assistant-not-found", - PipelineErrorOpenaiVoiceFailed: "pipeline-error-openai-voice-failed", - PipelineErrorCartesiaVoiceFailed: "pipeline-error-cartesia-voice-failed", - PipelineErrorDeepgramVoiceFailed: "pipeline-error-deepgram-voice-failed", - PipelineErrorElevenLabsVoiceFailed: "pipeline-error-eleven-labs-voice-failed", - PipelineErrorPlayhtVoiceFailed: "pipeline-error-playht-voice-failed", - PipelineErrorLmntVoiceFailed: "pipeline-error-lmnt-voice-failed", - PipelineErrorAzureVoiceFailed: "pipeline-error-azure-voice-failed", - PipelineErrorRimeAiVoiceFailed: "pipeline-error-rime-ai-voice-failed", - PipelineErrorSmallestAiVoiceFailed: "pipeline-error-smallest-ai-voice-failed", - PipelineErrorNeuphonicVoiceFailed: "pipeline-error-neuphonic-voice-failed", - PipelineErrorHumeVoiceFailed: "pipeline-error-hume-voice-failed", - PipelineErrorSesameVoiceFailed: "pipeline-error-sesame-voice-failed", - PipelineErrorInworldVoiceFailed: "pipeline-error-inworld-voice-failed", - PipelineErrorMinimaxVoiceFailed: "pipeline-error-minimax-voice-failed", - PipelineErrorTavusVideoFailed: "pipeline-error-tavus-video-failed", - CallInProgressErrorVapifaultOpenaiVoiceFailed: "call.in-progress.error-vapifault-openai-voice-failed", - CallInProgressErrorVapifaultCartesiaVoiceFailed: "call.in-progress.error-vapifault-cartesia-voice-failed", - CallInProgressErrorVapifaultDeepgramVoiceFailed: "call.in-progress.error-vapifault-deepgram-voice-failed", - CallInProgressErrorVapifaultElevenLabsVoiceFailed: "call.in-progress.error-vapifault-eleven-labs-voice-failed", - CallInProgressErrorVapifaultPlayhtVoiceFailed: "call.in-progress.error-vapifault-playht-voice-failed", - CallInProgressErrorVapifaultLmntVoiceFailed: "call.in-progress.error-vapifault-lmnt-voice-failed", - CallInProgressErrorVapifaultAzureVoiceFailed: "call.in-progress.error-vapifault-azure-voice-failed", - CallInProgressErrorVapifaultRimeAiVoiceFailed: "call.in-progress.error-vapifault-rime-ai-voice-failed", - CallInProgressErrorVapifaultSmallestAiVoiceFailed: "call.in-progress.error-vapifault-smallest-ai-voice-failed", - CallInProgressErrorVapifaultNeuphonicVoiceFailed: "call.in-progress.error-vapifault-neuphonic-voice-failed", - CallInProgressErrorVapifaultHumeVoiceFailed: "call.in-progress.error-vapifault-hume-voice-failed", - CallInProgressErrorVapifaultSesameVoiceFailed: "call.in-progress.error-vapifault-sesame-voice-failed", - CallInProgressErrorVapifaultInworldVoiceFailed: "call.in-progress.error-vapifault-inworld-voice-failed", - CallInProgressErrorVapifaultMinimaxVoiceFailed: "call.in-progress.error-vapifault-minimax-voice-failed", - CallInProgressErrorVapifaultTavusVideoFailed: "call.in-progress.error-vapifault-tavus-video-failed", - PipelineErrorVapiLlmFailed: "pipeline-error-vapi-llm-failed", - PipelineErrorVapi400BadRequestValidationFailed: "pipeline-error-vapi-400-bad-request-validation-failed", - PipelineErrorVapi401Unauthorized: "pipeline-error-vapi-401-unauthorized", - PipelineErrorVapi403ModelAccessDenied: "pipeline-error-vapi-403-model-access-denied", - PipelineErrorVapi429ExceededQuota: "pipeline-error-vapi-429-exceeded-quota", - PipelineErrorVapi500ServerError: "pipeline-error-vapi-500-server-error", - PipelineErrorVapi503ServerOverloadedError: "pipeline-error-vapi-503-server-overloaded-error", - CallInProgressErrorProviderfaultVapiLlmFailed: "call.in-progress.error-providerfault-vapi-llm-failed", - CallInProgressErrorVapifaultVapi400BadRequestValidationFailed: - "call.in-progress.error-vapifault-vapi-400-bad-request-validation-failed", - CallInProgressErrorVapifaultVapi401Unauthorized: "call.in-progress.error-vapifault-vapi-401-unauthorized", - CallInProgressErrorVapifaultVapi403ModelAccessDenied: - "call.in-progress.error-vapifault-vapi-403-model-access-denied", - CallInProgressErrorVapifaultVapi429ExceededQuota: "call.in-progress.error-vapifault-vapi-429-exceeded-quota", - CallInProgressErrorProviderfaultVapi500ServerError: - "call.in-progress.error-providerfault-vapi-500-server-error", - CallInProgressErrorProviderfaultVapi503ServerOverloadedError: - "call.in-progress.error-providerfault-vapi-503-server-overloaded-error", - PipelineErrorDeepgramTranscriberFailed: "pipeline-error-deepgram-transcriber-failed", - PipelineErrorDeepgramTranscriberApiKeyMissing: "pipeline-error-deepgram-transcriber-api-key-missing", - CallInProgressErrorVapifaultDeepgramTranscriberFailed: - "call.in-progress.error-vapifault-deepgram-transcriber-failed", - PipelineErrorGladiaTranscriberFailed: "pipeline-error-gladia-transcriber-failed", - CallInProgressErrorVapifaultGladiaTranscriberFailed: - "call.in-progress.error-vapifault-gladia-transcriber-failed", - PipelineErrorSpeechmaticsTranscriberFailed: "pipeline-error-speechmatics-transcriber-failed", - CallInProgressErrorVapifaultSpeechmaticsTranscriberFailed: - "call.in-progress.error-vapifault-speechmatics-transcriber-failed", - PipelineErrorAssemblyAiTranscriberFailed: "pipeline-error-assembly-ai-transcriber-failed", - PipelineErrorAssemblyAiReturning400InsufficentFunds: - "pipeline-error-assembly-ai-returning-400-insufficent-funds", - PipelineErrorAssemblyAiReturning400PaidOnlyFeature: - "pipeline-error-assembly-ai-returning-400-paid-only-feature", - PipelineErrorAssemblyAiReturning401InvalidCredentials: - "pipeline-error-assembly-ai-returning-401-invalid-credentials", - PipelineErrorAssemblyAiReturning500InvalidSchema: "pipeline-error-assembly-ai-returning-500-invalid-schema", - PipelineErrorAssemblyAiReturning500WordBoostParsingFailed: - "pipeline-error-assembly-ai-returning-500-word-boost-parsing-failed", - CallInProgressErrorVapifaultAssemblyAiTranscriberFailed: - "call.in-progress.error-vapifault-assembly-ai-transcriber-failed", - CallInProgressErrorVapifaultAssemblyAiReturning400InsufficentFunds: - "call.in-progress.error-vapifault-assembly-ai-returning-400-insufficent-funds", - CallInProgressErrorVapifaultAssemblyAiReturning400PaidOnlyFeature: - "call.in-progress.error-vapifault-assembly-ai-returning-400-paid-only-feature", - CallInProgressErrorVapifaultAssemblyAiReturning401InvalidCredentials: - "call.in-progress.error-vapifault-assembly-ai-returning-401-invalid-credentials", - CallInProgressErrorVapifaultAssemblyAiReturning500InvalidSchema: - "call.in-progress.error-vapifault-assembly-ai-returning-500-invalid-schema", - CallInProgressErrorVapifaultAssemblyAiReturning500WordBoostParsingFailed: - "call.in-progress.error-vapifault-assembly-ai-returning-500-word-boost-parsing-failed", - PipelineErrorTalkscriberTranscriberFailed: "pipeline-error-talkscriber-transcriber-failed", - CallInProgressErrorVapifaultTalkscriberTranscriberFailed: - "call.in-progress.error-vapifault-talkscriber-transcriber-failed", - PipelineErrorAzureSpeechTranscriberFailed: "pipeline-error-azure-speech-transcriber-failed", - CallInProgressErrorVapifaultAzureSpeechTranscriberFailed: - "call.in-progress.error-vapifault-azure-speech-transcriber-failed", - CallInProgressErrorPipelineNoAvailableLlmModel: "call.in-progress.error-pipeline-no-available-llm-model", - WorkerShutdown: "worker-shutdown", - VonageDisconnected: "vonage-disconnected", - VonageFailedToConnectCall: "vonage-failed-to-connect-call", - VonageCompleted: "vonage-completed", - PhoneCallProviderBypassEnabledButNoCallReceived: "phone-call-provider-bypass-enabled-but-no-call-received", - CallInProgressErrorProviderfaultTransportNeverConnected: - "call.in-progress.error-providerfault-transport-never-connected", - CallInProgressErrorVapifaultWorkerNotAvailable: "call.in-progress.error-vapifault-worker-not-available", - CallInProgressErrorVapifaultTransportNeverConnected: - "call.in-progress.error-vapifault-transport-never-connected", - CallInProgressErrorVapifaultTransportConnectedButCallNotActive: - "call.in-progress.error-vapifault-transport-connected-but-call-not-active", - CallInProgressErrorVapifaultCallStartedButConnectionToTransportMissing: - "call.in-progress.error-vapifault-call-started-but-connection-to-transport-missing", - CallInProgressErrorVapifaultWorkerDied: "call.in-progress.error-vapifault-worker-died", - CallInProgressTwilioCompletedCall: "call.in-progress.twilio-completed-call", - CallInProgressSipCompletedCall: "call.in-progress.sip-completed-call", - CallInProgressErrorProviderfaultOpenaiLlmFailed: "call.in-progress.error-providerfault-openai-llm-failed", - CallInProgressErrorProviderfaultAzureOpenaiLlmFailed: - "call.in-progress.error-providerfault-azure-openai-llm-failed", - CallInProgressErrorProviderfaultGroqLlmFailed: "call.in-progress.error-providerfault-groq-llm-failed", - CallInProgressErrorProviderfaultGoogleLlmFailed: "call.in-progress.error-providerfault-google-llm-failed", - CallInProgressErrorProviderfaultXaiLlmFailed: "call.in-progress.error-providerfault-xai-llm-failed", - CallInProgressErrorProviderfaultMistralLlmFailed: "call.in-progress.error-providerfault-mistral-llm-failed", - CallInProgressErrorProviderfaultInflectionAiLlmFailed: - "call.in-progress.error-providerfault-inflection-ai-llm-failed", - CallInProgressErrorProviderfaultCerebrasLlmFailed: "call.in-progress.error-providerfault-cerebras-llm-failed", - CallInProgressErrorProviderfaultDeepSeekLlmFailed: "call.in-progress.error-providerfault-deep-seek-llm-failed", - CallInProgressErrorVapifaultChatPipelineFailedToStart: - "call.in-progress.error-vapifault-chat-pipeline-failed-to-start", - PipelineErrorOpenai400BadRequestValidationFailed: "pipeline-error-openai-400-bad-request-validation-failed", - PipelineErrorOpenai401Unauthorized: "pipeline-error-openai-401-unauthorized", - PipelineErrorOpenai401IncorrectApiKey: "pipeline-error-openai-401-incorrect-api-key", - PipelineErrorOpenai401AccountNotInOrganization: "pipeline-error-openai-401-account-not-in-organization", - PipelineErrorOpenai403ModelAccessDenied: "pipeline-error-openai-403-model-access-denied", - PipelineErrorOpenai429ExceededQuota: "pipeline-error-openai-429-exceeded-quota", - PipelineErrorOpenai429RateLimitReached: "pipeline-error-openai-429-rate-limit-reached", - PipelineErrorOpenai500ServerError: "pipeline-error-openai-500-server-error", - PipelineErrorOpenai503ServerOverloadedError: "pipeline-error-openai-503-server-overloaded-error", - PipelineErrorOpenaiLlmFailed: "pipeline-error-openai-llm-failed", - CallInProgressErrorVapifaultOpenai400BadRequestValidationFailed: - "call.in-progress.error-vapifault-openai-400-bad-request-validation-failed", - CallInProgressErrorVapifaultOpenai401Unauthorized: "call.in-progress.error-vapifault-openai-401-unauthorized", - CallInProgressErrorVapifaultOpenai401IncorrectApiKey: - "call.in-progress.error-vapifault-openai-401-incorrect-api-key", - CallInProgressErrorVapifaultOpenai401AccountNotInOrganization: - "call.in-progress.error-vapifault-openai-401-account-not-in-organization", - CallInProgressErrorVapifaultOpenai403ModelAccessDenied: - "call.in-progress.error-vapifault-openai-403-model-access-denied", - CallInProgressErrorVapifaultOpenai429ExceededQuota: - "call.in-progress.error-vapifault-openai-429-exceeded-quota", - CallInProgressErrorVapifaultOpenai429RateLimitReached: - "call.in-progress.error-vapifault-openai-429-rate-limit-reached", - CallInProgressErrorProviderfaultOpenai500ServerError: - "call.in-progress.error-providerfault-openai-500-server-error", - CallInProgressErrorProviderfaultOpenai503ServerOverloadedError: - "call.in-progress.error-providerfault-openai-503-server-overloaded-error", - PipelineErrorAzureOpenai400BadRequestValidationFailed: - "pipeline-error-azure-openai-400-bad-request-validation-failed", - PipelineErrorAzureOpenai401Unauthorized: "pipeline-error-azure-openai-401-unauthorized", - PipelineErrorAzureOpenai403ModelAccessDenied: "pipeline-error-azure-openai-403-model-access-denied", - PipelineErrorAzureOpenai429ExceededQuota: "pipeline-error-azure-openai-429-exceeded-quota", - PipelineErrorAzureOpenai500ServerError: "pipeline-error-azure-openai-500-server-error", - PipelineErrorAzureOpenai503ServerOverloadedError: "pipeline-error-azure-openai-503-server-overloaded-error", - PipelineErrorAzureOpenaiLlmFailed: "pipeline-error-azure-openai-llm-failed", - CallInProgressErrorVapifaultAzureOpenai400BadRequestValidationFailed: - "call.in-progress.error-vapifault-azure-openai-400-bad-request-validation-failed", - CallInProgressErrorVapifaultAzureOpenai401Unauthorized: - "call.in-progress.error-vapifault-azure-openai-401-unauthorized", - CallInProgressErrorVapifaultAzureOpenai403ModelAccessDenied: - "call.in-progress.error-vapifault-azure-openai-403-model-access-denied", - CallInProgressErrorVapifaultAzureOpenai429ExceededQuota: - "call.in-progress.error-vapifault-azure-openai-429-exceeded-quota", - CallInProgressErrorProviderfaultAzureOpenai500ServerError: - "call.in-progress.error-providerfault-azure-openai-500-server-error", - CallInProgressErrorProviderfaultAzureOpenai503ServerOverloadedError: - "call.in-progress.error-providerfault-azure-openai-503-server-overloaded-error", - PipelineErrorGoogle400BadRequestValidationFailed: "pipeline-error-google-400-bad-request-validation-failed", - PipelineErrorGoogle401Unauthorized: "pipeline-error-google-401-unauthorized", - PipelineErrorGoogle403ModelAccessDenied: "pipeline-error-google-403-model-access-denied", - PipelineErrorGoogle429ExceededQuota: "pipeline-error-google-429-exceeded-quota", - PipelineErrorGoogle500ServerError: "pipeline-error-google-500-server-error", - PipelineErrorGoogle503ServerOverloadedError: "pipeline-error-google-503-server-overloaded-error", - PipelineErrorGoogleLlmFailed: "pipeline-error-google-llm-failed", - CallInProgressErrorVapifaultGoogle400BadRequestValidationFailed: - "call.in-progress.error-vapifault-google-400-bad-request-validation-failed", - CallInProgressErrorVapifaultGoogle401Unauthorized: "call.in-progress.error-vapifault-google-401-unauthorized", - CallInProgressErrorVapifaultGoogle403ModelAccessDenied: - "call.in-progress.error-vapifault-google-403-model-access-denied", - CallInProgressErrorVapifaultGoogle429ExceededQuota: - "call.in-progress.error-vapifault-google-429-exceeded-quota", - CallInProgressErrorProviderfaultGoogle500ServerError: - "call.in-progress.error-providerfault-google-500-server-error", - CallInProgressErrorProviderfaultGoogle503ServerOverloadedError: - "call.in-progress.error-providerfault-google-503-server-overloaded-error", - PipelineErrorXai400BadRequestValidationFailed: "pipeline-error-xai-400-bad-request-validation-failed", - PipelineErrorXai401Unauthorized: "pipeline-error-xai-401-unauthorized", - PipelineErrorXai403ModelAccessDenied: "pipeline-error-xai-403-model-access-denied", - PipelineErrorXai429ExceededQuota: "pipeline-error-xai-429-exceeded-quota", - PipelineErrorXai500ServerError: "pipeline-error-xai-500-server-error", - PipelineErrorXai503ServerOverloadedError: "pipeline-error-xai-503-server-overloaded-error", - PipelineErrorXaiLlmFailed: "pipeline-error-xai-llm-failed", - CallInProgressErrorVapifaultXai400BadRequestValidationFailed: - "call.in-progress.error-vapifault-xai-400-bad-request-validation-failed", - CallInProgressErrorVapifaultXai401Unauthorized: "call.in-progress.error-vapifault-xai-401-unauthorized", - CallInProgressErrorVapifaultXai403ModelAccessDenied: - "call.in-progress.error-vapifault-xai-403-model-access-denied", - CallInProgressErrorVapifaultXai429ExceededQuota: "call.in-progress.error-vapifault-xai-429-exceeded-quota", - CallInProgressErrorProviderfaultXai500ServerError: "call.in-progress.error-providerfault-xai-500-server-error", - CallInProgressErrorProviderfaultXai503ServerOverloadedError: - "call.in-progress.error-providerfault-xai-503-server-overloaded-error", - PipelineErrorMistral400BadRequestValidationFailed: "pipeline-error-mistral-400-bad-request-validation-failed", - PipelineErrorMistral401Unauthorized: "pipeline-error-mistral-401-unauthorized", - PipelineErrorMistral403ModelAccessDenied: "pipeline-error-mistral-403-model-access-denied", - PipelineErrorMistral429ExceededQuota: "pipeline-error-mistral-429-exceeded-quota", - PipelineErrorMistral500ServerError: "pipeline-error-mistral-500-server-error", - PipelineErrorMistral503ServerOverloadedError: "pipeline-error-mistral-503-server-overloaded-error", - PipelineErrorMistralLlmFailed: "pipeline-error-mistral-llm-failed", - CallInProgressErrorVapifaultMistral400BadRequestValidationFailed: - "call.in-progress.error-vapifault-mistral-400-bad-request-validation-failed", - CallInProgressErrorVapifaultMistral401Unauthorized: "call.in-progress.error-vapifault-mistral-401-unauthorized", - CallInProgressErrorVapifaultMistral403ModelAccessDenied: - "call.in-progress.error-vapifault-mistral-403-model-access-denied", - CallInProgressErrorVapifaultMistral429ExceededQuota: - "call.in-progress.error-vapifault-mistral-429-exceeded-quota", - CallInProgressErrorProviderfaultMistral500ServerError: - "call.in-progress.error-providerfault-mistral-500-server-error", - CallInProgressErrorProviderfaultMistral503ServerOverloadedError: - "call.in-progress.error-providerfault-mistral-503-server-overloaded-error", - PipelineErrorInflectionAi400BadRequestValidationFailed: - "pipeline-error-inflection-ai-400-bad-request-validation-failed", - PipelineErrorInflectionAi401Unauthorized: "pipeline-error-inflection-ai-401-unauthorized", - PipelineErrorInflectionAi403ModelAccessDenied: "pipeline-error-inflection-ai-403-model-access-denied", - PipelineErrorInflectionAi429ExceededQuota: "pipeline-error-inflection-ai-429-exceeded-quota", - PipelineErrorInflectionAi500ServerError: "pipeline-error-inflection-ai-500-server-error", - PipelineErrorInflectionAi503ServerOverloadedError: "pipeline-error-inflection-ai-503-server-overloaded-error", - PipelineErrorInflectionAiLlmFailed: "pipeline-error-inflection-ai-llm-failed", - CallInProgressErrorVapifaultInflectionAi400BadRequestValidationFailed: - "call.in-progress.error-vapifault-inflection-ai-400-bad-request-validation-failed", - CallInProgressErrorVapifaultInflectionAi401Unauthorized: - "call.in-progress.error-vapifault-inflection-ai-401-unauthorized", - CallInProgressErrorVapifaultInflectionAi403ModelAccessDenied: - "call.in-progress.error-vapifault-inflection-ai-403-model-access-denied", - CallInProgressErrorVapifaultInflectionAi429ExceededQuota: - "call.in-progress.error-vapifault-inflection-ai-429-exceeded-quota", - CallInProgressErrorProviderfaultInflectionAi500ServerError: - "call.in-progress.error-providerfault-inflection-ai-500-server-error", - CallInProgressErrorProviderfaultInflectionAi503ServerOverloadedError: - "call.in-progress.error-providerfault-inflection-ai-503-server-overloaded-error", - PipelineErrorDeepSeek400BadRequestValidationFailed: - "pipeline-error-deep-seek-400-bad-request-validation-failed", - PipelineErrorDeepSeek401Unauthorized: "pipeline-error-deep-seek-401-unauthorized", - PipelineErrorDeepSeek403ModelAccessDenied: "pipeline-error-deep-seek-403-model-access-denied", - PipelineErrorDeepSeek429ExceededQuota: "pipeline-error-deep-seek-429-exceeded-quota", - PipelineErrorDeepSeek500ServerError: "pipeline-error-deep-seek-500-server-error", - PipelineErrorDeepSeek503ServerOverloadedError: "pipeline-error-deep-seek-503-server-overloaded-error", - PipelineErrorDeepSeekLlmFailed: "pipeline-error-deep-seek-llm-failed", - CallInProgressErrorVapifaultDeepSeek400BadRequestValidationFailed: - "call.in-progress.error-vapifault-deep-seek-400-bad-request-validation-failed", - CallInProgressErrorVapifaultDeepSeek401Unauthorized: - "call.in-progress.error-vapifault-deep-seek-401-unauthorized", - CallInProgressErrorVapifaultDeepSeek403ModelAccessDenied: - "call.in-progress.error-vapifault-deep-seek-403-model-access-denied", - CallInProgressErrorVapifaultDeepSeek429ExceededQuota: - "call.in-progress.error-vapifault-deep-seek-429-exceeded-quota", - CallInProgressErrorProviderfaultDeepSeek500ServerError: - "call.in-progress.error-providerfault-deep-seek-500-server-error", - CallInProgressErrorProviderfaultDeepSeek503ServerOverloadedError: - "call.in-progress.error-providerfault-deep-seek-503-server-overloaded-error", - PipelineErrorGroq400BadRequestValidationFailed: "pipeline-error-groq-400-bad-request-validation-failed", - PipelineErrorGroq401Unauthorized: "pipeline-error-groq-401-unauthorized", - PipelineErrorGroq403ModelAccessDenied: "pipeline-error-groq-403-model-access-denied", - PipelineErrorGroq429ExceededQuota: "pipeline-error-groq-429-exceeded-quota", - PipelineErrorGroq500ServerError: "pipeline-error-groq-500-server-error", - PipelineErrorGroq503ServerOverloadedError: "pipeline-error-groq-503-server-overloaded-error", - PipelineErrorGroqLlmFailed: "pipeline-error-groq-llm-failed", - CallInProgressErrorVapifaultGroq400BadRequestValidationFailed: - "call.in-progress.error-vapifault-groq-400-bad-request-validation-failed", - CallInProgressErrorVapifaultGroq401Unauthorized: "call.in-progress.error-vapifault-groq-401-unauthorized", - CallInProgressErrorVapifaultGroq403ModelAccessDenied: - "call.in-progress.error-vapifault-groq-403-model-access-denied", - CallInProgressErrorVapifaultGroq429ExceededQuota: "call.in-progress.error-vapifault-groq-429-exceeded-quota", - CallInProgressErrorProviderfaultGroq500ServerError: - "call.in-progress.error-providerfault-groq-500-server-error", - CallInProgressErrorProviderfaultGroq503ServerOverloadedError: - "call.in-progress.error-providerfault-groq-503-server-overloaded-error", - PipelineErrorCerebras400BadRequestValidationFailed: "pipeline-error-cerebras-400-bad-request-validation-failed", - PipelineErrorCerebras401Unauthorized: "pipeline-error-cerebras-401-unauthorized", - PipelineErrorCerebras403ModelAccessDenied: "pipeline-error-cerebras-403-model-access-denied", - PipelineErrorCerebras429ExceededQuota: "pipeline-error-cerebras-429-exceeded-quota", - PipelineErrorCerebras500ServerError: "pipeline-error-cerebras-500-server-error", - PipelineErrorCerebras503ServerOverloadedError: "pipeline-error-cerebras-503-server-overloaded-error", - PipelineErrorCerebrasLlmFailed: "pipeline-error-cerebras-llm-failed", - CallInProgressErrorVapifaultCerebras400BadRequestValidationFailed: - "call.in-progress.error-vapifault-cerebras-400-bad-request-validation-failed", - CallInProgressErrorVapifaultCerebras401Unauthorized: - "call.in-progress.error-vapifault-cerebras-401-unauthorized", - CallInProgressErrorVapifaultCerebras403ModelAccessDenied: - "call.in-progress.error-vapifault-cerebras-403-model-access-denied", - CallInProgressErrorVapifaultCerebras429ExceededQuota: - "call.in-progress.error-vapifault-cerebras-429-exceeded-quota", - CallInProgressErrorProviderfaultCerebras500ServerError: - "call.in-progress.error-providerfault-cerebras-500-server-error", - CallInProgressErrorProviderfaultCerebras503ServerOverloadedError: - "call.in-progress.error-providerfault-cerebras-503-server-overloaded-error", - PipelineErrorAnthropic400BadRequestValidationFailed: - "pipeline-error-anthropic-400-bad-request-validation-failed", - PipelineErrorAnthropic401Unauthorized: "pipeline-error-anthropic-401-unauthorized", - PipelineErrorAnthropic403ModelAccessDenied: "pipeline-error-anthropic-403-model-access-denied", - PipelineErrorAnthropic429ExceededQuota: "pipeline-error-anthropic-429-exceeded-quota", - PipelineErrorAnthropic500ServerError: "pipeline-error-anthropic-500-server-error", - PipelineErrorAnthropic503ServerOverloadedError: "pipeline-error-anthropic-503-server-overloaded-error", - PipelineErrorAnthropicLlmFailed: "pipeline-error-anthropic-llm-failed", - CallInProgressErrorProviderfaultAnthropicLlmFailed: "call.in-progress.error-providerfault-anthropic-llm-failed", - CallInProgressErrorVapifaultAnthropic400BadRequestValidationFailed: - "call.in-progress.error-vapifault-anthropic-400-bad-request-validation-failed", - CallInProgressErrorVapifaultAnthropic401Unauthorized: - "call.in-progress.error-vapifault-anthropic-401-unauthorized", - CallInProgressErrorVapifaultAnthropic403ModelAccessDenied: - "call.in-progress.error-vapifault-anthropic-403-model-access-denied", - CallInProgressErrorVapifaultAnthropic429ExceededQuota: - "call.in-progress.error-vapifault-anthropic-429-exceeded-quota", - CallInProgressErrorProviderfaultAnthropic500ServerError: - "call.in-progress.error-providerfault-anthropic-500-server-error", - CallInProgressErrorProviderfaultAnthropic503ServerOverloadedError: - "call.in-progress.error-providerfault-anthropic-503-server-overloaded-error", - PipelineErrorAnthropicBedrock400BadRequestValidationFailed: - "pipeline-error-anthropic-bedrock-400-bad-request-validation-failed", - PipelineErrorAnthropicBedrock401Unauthorized: "pipeline-error-anthropic-bedrock-401-unauthorized", - PipelineErrorAnthropicBedrock403ModelAccessDenied: "pipeline-error-anthropic-bedrock-403-model-access-denied", - PipelineErrorAnthropicBedrock429ExceededQuota: "pipeline-error-anthropic-bedrock-429-exceeded-quota", - PipelineErrorAnthropicBedrock500ServerError: "pipeline-error-anthropic-bedrock-500-server-error", - PipelineErrorAnthropicBedrock503ServerOverloadedError: - "pipeline-error-anthropic-bedrock-503-server-overloaded-error", - PipelineErrorAnthropicBedrockLlmFailed: "pipeline-error-anthropic-bedrock-llm-failed", - CallInProgressErrorProviderfaultAnthropicBedrockLlmFailed: - "call.in-progress.error-providerfault-anthropic-bedrock-llm-failed", - CallInProgressErrorVapifaultAnthropicBedrock400BadRequestValidationFailed: - "call.in-progress.error-vapifault-anthropic-bedrock-400-bad-request-validation-failed", - CallInProgressErrorVapifaultAnthropicBedrock401Unauthorized: - "call.in-progress.error-vapifault-anthropic-bedrock-401-unauthorized", - CallInProgressErrorVapifaultAnthropicBedrock403ModelAccessDenied: - "call.in-progress.error-vapifault-anthropic-bedrock-403-model-access-denied", - CallInProgressErrorVapifaultAnthropicBedrock429ExceededQuota: - "call.in-progress.error-vapifault-anthropic-bedrock-429-exceeded-quota", - CallInProgressErrorProviderfaultAnthropicBedrock500ServerError: - "call.in-progress.error-providerfault-anthropic-bedrock-500-server-error", - CallInProgressErrorProviderfaultAnthropicBedrock503ServerOverloadedError: - "call.in-progress.error-providerfault-anthropic-bedrock-503-server-overloaded-error", - PipelineErrorAnthropicVertex400BadRequestValidationFailed: - "pipeline-error-anthropic-vertex-400-bad-request-validation-failed", - PipelineErrorAnthropicVertex401Unauthorized: "pipeline-error-anthropic-vertex-401-unauthorized", - PipelineErrorAnthropicVertex403ModelAccessDenied: "pipeline-error-anthropic-vertex-403-model-access-denied", - PipelineErrorAnthropicVertex429ExceededQuota: "pipeline-error-anthropic-vertex-429-exceeded-quota", - PipelineErrorAnthropicVertex500ServerError: "pipeline-error-anthropic-vertex-500-server-error", - PipelineErrorAnthropicVertex503ServerOverloadedError: - "pipeline-error-anthropic-vertex-503-server-overloaded-error", - PipelineErrorAnthropicVertexLlmFailed: "pipeline-error-anthropic-vertex-llm-failed", - CallInProgressErrorProviderfaultAnthropicVertexLlmFailed: - "call.in-progress.error-providerfault-anthropic-vertex-llm-failed", - CallInProgressErrorVapifaultAnthropicVertex400BadRequestValidationFailed: - "call.in-progress.error-vapifault-anthropic-vertex-400-bad-request-validation-failed", - CallInProgressErrorVapifaultAnthropicVertex401Unauthorized: - "call.in-progress.error-vapifault-anthropic-vertex-401-unauthorized", - CallInProgressErrorVapifaultAnthropicVertex403ModelAccessDenied: - "call.in-progress.error-vapifault-anthropic-vertex-403-model-access-denied", - CallInProgressErrorVapifaultAnthropicVertex429ExceededQuota: - "call.in-progress.error-vapifault-anthropic-vertex-429-exceeded-quota", - CallInProgressErrorProviderfaultAnthropicVertex500ServerError: - "call.in-progress.error-providerfault-anthropic-vertex-500-server-error", - CallInProgressErrorProviderfaultAnthropicVertex503ServerOverloadedError: - "call.in-progress.error-providerfault-anthropic-vertex-503-server-overloaded-error", - PipelineErrorTogetherAi400BadRequestValidationFailed: - "pipeline-error-together-ai-400-bad-request-validation-failed", - PipelineErrorTogetherAi401Unauthorized: "pipeline-error-together-ai-401-unauthorized", - PipelineErrorTogetherAi403ModelAccessDenied: "pipeline-error-together-ai-403-model-access-denied", - PipelineErrorTogetherAi429ExceededQuota: "pipeline-error-together-ai-429-exceeded-quota", - PipelineErrorTogetherAi500ServerError: "pipeline-error-together-ai-500-server-error", - PipelineErrorTogetherAi503ServerOverloadedError: "pipeline-error-together-ai-503-server-overloaded-error", - PipelineErrorTogetherAiLlmFailed: "pipeline-error-together-ai-llm-failed", - CallInProgressErrorProviderfaultTogetherAiLlmFailed: - "call.in-progress.error-providerfault-together-ai-llm-failed", - CallInProgressErrorVapifaultTogetherAi400BadRequestValidationFailed: - "call.in-progress.error-vapifault-together-ai-400-bad-request-validation-failed", - CallInProgressErrorVapifaultTogetherAi401Unauthorized: - "call.in-progress.error-vapifault-together-ai-401-unauthorized", - CallInProgressErrorVapifaultTogetherAi403ModelAccessDenied: - "call.in-progress.error-vapifault-together-ai-403-model-access-denied", - CallInProgressErrorVapifaultTogetherAi429ExceededQuota: - "call.in-progress.error-vapifault-together-ai-429-exceeded-quota", - CallInProgressErrorProviderfaultTogetherAi500ServerError: - "call.in-progress.error-providerfault-together-ai-500-server-error", - CallInProgressErrorProviderfaultTogetherAi503ServerOverloadedError: - "call.in-progress.error-providerfault-together-ai-503-server-overloaded-error", - PipelineErrorAnyscale400BadRequestValidationFailed: "pipeline-error-anyscale-400-bad-request-validation-failed", - PipelineErrorAnyscale401Unauthorized: "pipeline-error-anyscale-401-unauthorized", - PipelineErrorAnyscale403ModelAccessDenied: "pipeline-error-anyscale-403-model-access-denied", - PipelineErrorAnyscale429ExceededQuota: "pipeline-error-anyscale-429-exceeded-quota", - PipelineErrorAnyscale500ServerError: "pipeline-error-anyscale-500-server-error", - PipelineErrorAnyscale503ServerOverloadedError: "pipeline-error-anyscale-503-server-overloaded-error", - PipelineErrorAnyscaleLlmFailed: "pipeline-error-anyscale-llm-failed", - CallInProgressErrorProviderfaultAnyscaleLlmFailed: "call.in-progress.error-providerfault-anyscale-llm-failed", - CallInProgressErrorVapifaultAnyscale400BadRequestValidationFailed: - "call.in-progress.error-vapifault-anyscale-400-bad-request-validation-failed", - CallInProgressErrorVapifaultAnyscale401Unauthorized: - "call.in-progress.error-vapifault-anyscale-401-unauthorized", - CallInProgressErrorVapifaultAnyscale403ModelAccessDenied: - "call.in-progress.error-vapifault-anyscale-403-model-access-denied", - CallInProgressErrorVapifaultAnyscale429ExceededQuota: - "call.in-progress.error-vapifault-anyscale-429-exceeded-quota", - CallInProgressErrorProviderfaultAnyscale500ServerError: - "call.in-progress.error-providerfault-anyscale-500-server-error", - CallInProgressErrorProviderfaultAnyscale503ServerOverloadedError: - "call.in-progress.error-providerfault-anyscale-503-server-overloaded-error", - PipelineErrorOpenrouter400BadRequestValidationFailed: - "pipeline-error-openrouter-400-bad-request-validation-failed", - PipelineErrorOpenrouter401Unauthorized: "pipeline-error-openrouter-401-unauthorized", - PipelineErrorOpenrouter403ModelAccessDenied: "pipeline-error-openrouter-403-model-access-denied", - PipelineErrorOpenrouter429ExceededQuota: "pipeline-error-openrouter-429-exceeded-quota", - PipelineErrorOpenrouter500ServerError: "pipeline-error-openrouter-500-server-error", - PipelineErrorOpenrouter503ServerOverloadedError: "pipeline-error-openrouter-503-server-overloaded-error", - PipelineErrorOpenrouterLlmFailed: "pipeline-error-openrouter-llm-failed", - CallInProgressErrorProviderfaultOpenrouterLlmFailed: - "call.in-progress.error-providerfault-openrouter-llm-failed", - CallInProgressErrorVapifaultOpenrouter400BadRequestValidationFailed: - "call.in-progress.error-vapifault-openrouter-400-bad-request-validation-failed", - CallInProgressErrorVapifaultOpenrouter401Unauthorized: - "call.in-progress.error-vapifault-openrouter-401-unauthorized", - CallInProgressErrorVapifaultOpenrouter403ModelAccessDenied: - "call.in-progress.error-vapifault-openrouter-403-model-access-denied", - CallInProgressErrorVapifaultOpenrouter429ExceededQuota: - "call.in-progress.error-vapifault-openrouter-429-exceeded-quota", - CallInProgressErrorProviderfaultOpenrouter500ServerError: - "call.in-progress.error-providerfault-openrouter-500-server-error", - CallInProgressErrorProviderfaultOpenrouter503ServerOverloadedError: - "call.in-progress.error-providerfault-openrouter-503-server-overloaded-error", - PipelineErrorPerplexityAi400BadRequestValidationFailed: - "pipeline-error-perplexity-ai-400-bad-request-validation-failed", - PipelineErrorPerplexityAi401Unauthorized: "pipeline-error-perplexity-ai-401-unauthorized", - PipelineErrorPerplexityAi403ModelAccessDenied: "pipeline-error-perplexity-ai-403-model-access-denied", - PipelineErrorPerplexityAi429ExceededQuota: "pipeline-error-perplexity-ai-429-exceeded-quota", - PipelineErrorPerplexityAi500ServerError: "pipeline-error-perplexity-ai-500-server-error", - PipelineErrorPerplexityAi503ServerOverloadedError: "pipeline-error-perplexity-ai-503-server-overloaded-error", - PipelineErrorPerplexityAiLlmFailed: "pipeline-error-perplexity-ai-llm-failed", - CallInProgressErrorProviderfaultPerplexityAiLlmFailed: - "call.in-progress.error-providerfault-perplexity-ai-llm-failed", - CallInProgressErrorVapifaultPerplexityAi400BadRequestValidationFailed: - "call.in-progress.error-vapifault-perplexity-ai-400-bad-request-validation-failed", - CallInProgressErrorVapifaultPerplexityAi401Unauthorized: - "call.in-progress.error-vapifault-perplexity-ai-401-unauthorized", - CallInProgressErrorVapifaultPerplexityAi403ModelAccessDenied: - "call.in-progress.error-vapifault-perplexity-ai-403-model-access-denied", - CallInProgressErrorVapifaultPerplexityAi429ExceededQuota: - "call.in-progress.error-vapifault-perplexity-ai-429-exceeded-quota", - CallInProgressErrorProviderfaultPerplexityAi500ServerError: - "call.in-progress.error-providerfault-perplexity-ai-500-server-error", - CallInProgressErrorProviderfaultPerplexityAi503ServerOverloadedError: - "call.in-progress.error-providerfault-perplexity-ai-503-server-overloaded-error", - PipelineErrorDeepinfra400BadRequestValidationFailed: - "pipeline-error-deepinfra-400-bad-request-validation-failed", - PipelineErrorDeepinfra401Unauthorized: "pipeline-error-deepinfra-401-unauthorized", - PipelineErrorDeepinfra403ModelAccessDenied: "pipeline-error-deepinfra-403-model-access-denied", - PipelineErrorDeepinfra429ExceededQuota: "pipeline-error-deepinfra-429-exceeded-quota", - PipelineErrorDeepinfra500ServerError: "pipeline-error-deepinfra-500-server-error", - PipelineErrorDeepinfra503ServerOverloadedError: "pipeline-error-deepinfra-503-server-overloaded-error", - PipelineErrorDeepinfraLlmFailed: "pipeline-error-deepinfra-llm-failed", - CallInProgressErrorProviderfaultDeepinfraLlmFailed: "call.in-progress.error-providerfault-deepinfra-llm-failed", - CallInProgressErrorVapifaultDeepinfra400BadRequestValidationFailed: - "call.in-progress.error-vapifault-deepinfra-400-bad-request-validation-failed", - CallInProgressErrorVapifaultDeepinfra401Unauthorized: - "call.in-progress.error-vapifault-deepinfra-401-unauthorized", - CallInProgressErrorVapifaultDeepinfra403ModelAccessDenied: - "call.in-progress.error-vapifault-deepinfra-403-model-access-denied", - CallInProgressErrorVapifaultDeepinfra429ExceededQuota: - "call.in-progress.error-vapifault-deepinfra-429-exceeded-quota", - CallInProgressErrorProviderfaultDeepinfra500ServerError: - "call.in-progress.error-providerfault-deepinfra-500-server-error", - CallInProgressErrorProviderfaultDeepinfra503ServerOverloadedError: - "call.in-progress.error-providerfault-deepinfra-503-server-overloaded-error", - PipelineErrorRunpod400BadRequestValidationFailed: "pipeline-error-runpod-400-bad-request-validation-failed", - PipelineErrorRunpod401Unauthorized: "pipeline-error-runpod-401-unauthorized", - PipelineErrorRunpod403ModelAccessDenied: "pipeline-error-runpod-403-model-access-denied", - PipelineErrorRunpod429ExceededQuota: "pipeline-error-runpod-429-exceeded-quota", - PipelineErrorRunpod500ServerError: "pipeline-error-runpod-500-server-error", - PipelineErrorRunpod503ServerOverloadedError: "pipeline-error-runpod-503-server-overloaded-error", - PipelineErrorRunpodLlmFailed: "pipeline-error-runpod-llm-failed", - CallInProgressErrorProviderfaultRunpodLlmFailed: "call.in-progress.error-providerfault-runpod-llm-failed", - CallInProgressErrorVapifaultRunpod400BadRequestValidationFailed: - "call.in-progress.error-vapifault-runpod-400-bad-request-validation-failed", - CallInProgressErrorVapifaultRunpod401Unauthorized: "call.in-progress.error-vapifault-runpod-401-unauthorized", - CallInProgressErrorVapifaultRunpod403ModelAccessDenied: - "call.in-progress.error-vapifault-runpod-403-model-access-denied", - CallInProgressErrorVapifaultRunpod429ExceededQuota: - "call.in-progress.error-vapifault-runpod-429-exceeded-quota", - CallInProgressErrorProviderfaultRunpod500ServerError: - "call.in-progress.error-providerfault-runpod-500-server-error", - CallInProgressErrorProviderfaultRunpod503ServerOverloadedError: - "call.in-progress.error-providerfault-runpod-503-server-overloaded-error", - PipelineErrorCustomLlm400BadRequestValidationFailed: - "pipeline-error-custom-llm-400-bad-request-validation-failed", - PipelineErrorCustomLlm401Unauthorized: "pipeline-error-custom-llm-401-unauthorized", - PipelineErrorCustomLlm403ModelAccessDenied: "pipeline-error-custom-llm-403-model-access-denied", - PipelineErrorCustomLlm429ExceededQuota: "pipeline-error-custom-llm-429-exceeded-quota", - PipelineErrorCustomLlm500ServerError: "pipeline-error-custom-llm-500-server-error", - PipelineErrorCustomLlm503ServerOverloadedError: "pipeline-error-custom-llm-503-server-overloaded-error", - PipelineErrorCustomLlmLlmFailed: "pipeline-error-custom-llm-llm-failed", - CallInProgressErrorProviderfaultCustomLlmLlmFailed: - "call.in-progress.error-providerfault-custom-llm-llm-failed", - CallInProgressErrorVapifaultCustomLlm400BadRequestValidationFailed: - "call.in-progress.error-vapifault-custom-llm-400-bad-request-validation-failed", - CallInProgressErrorVapifaultCustomLlm401Unauthorized: - "call.in-progress.error-vapifault-custom-llm-401-unauthorized", - CallInProgressErrorVapifaultCustomLlm403ModelAccessDenied: - "call.in-progress.error-vapifault-custom-llm-403-model-access-denied", - CallInProgressErrorVapifaultCustomLlm429ExceededQuota: - "call.in-progress.error-vapifault-custom-llm-429-exceeded-quota", - CallInProgressErrorProviderfaultCustomLlm500ServerError: - "call.in-progress.error-providerfault-custom-llm-500-server-error", - CallInProgressErrorProviderfaultCustomLlm503ServerOverloadedError: - "call.in-progress.error-providerfault-custom-llm-503-server-overloaded-error", - PipelineErrorCustomVoiceFailed: "pipeline-error-custom-voice-failed", - PipelineErrorCartesiaSocketHangUp: "pipeline-error-cartesia-socket-hang-up", - PipelineErrorCartesiaRequestedPayment: "pipeline-error-cartesia-requested-payment", - PipelineErrorCartesia500ServerError: "pipeline-error-cartesia-500-server-error", - PipelineErrorCartesia502ServerError: "pipeline-error-cartesia-502-server-error", - PipelineErrorCartesia503ServerError: "pipeline-error-cartesia-503-server-error", - PipelineErrorCartesia522ServerError: "pipeline-error-cartesia-522-server-error", - CallInProgressErrorVapifaultCartesiaSocketHangUp: "call.in-progress.error-vapifault-cartesia-socket-hang-up", - CallInProgressErrorVapifaultCartesiaRequestedPayment: - "call.in-progress.error-vapifault-cartesia-requested-payment", - CallInProgressErrorProviderfaultCartesia500ServerError: - "call.in-progress.error-providerfault-cartesia-500-server-error", - CallInProgressErrorProviderfaultCartesia503ServerError: - "call.in-progress.error-providerfault-cartesia-503-server-error", - CallInProgressErrorProviderfaultCartesia522ServerError: - "call.in-progress.error-providerfault-cartesia-522-server-error", - PipelineErrorElevenLabsVoiceNotFound: "pipeline-error-eleven-labs-voice-not-found", - PipelineErrorElevenLabsQuotaExceeded: "pipeline-error-eleven-labs-quota-exceeded", - PipelineErrorElevenLabsUnauthorizedAccess: "pipeline-error-eleven-labs-unauthorized-access", - PipelineErrorElevenLabsUnauthorizedToAccessModel: "pipeline-error-eleven-labs-unauthorized-to-access-model", - PipelineErrorElevenLabsProfessionalVoicesOnlyForCreatorPlus: - "pipeline-error-eleven-labs-professional-voices-only-for-creator-plus", - PipelineErrorElevenLabsBlockedFreePlanAndRequestedUpgrade: - "pipeline-error-eleven-labs-blocked-free-plan-and-requested-upgrade", - PipelineErrorElevenLabsBlockedConcurrentRequestsAndRequestedUpgrade: - "pipeline-error-eleven-labs-blocked-concurrent-requests-and-requested-upgrade", - PipelineErrorElevenLabsBlockedUsingInstantVoiceCloneAndRequestedUpgrade: - "pipeline-error-eleven-labs-blocked-using-instant-voice-clone-and-requested-upgrade", - PipelineErrorElevenLabsSystemBusyAndRequestedUpgrade: - "pipeline-error-eleven-labs-system-busy-and-requested-upgrade", - PipelineErrorElevenLabsVoiceNotFineTuned: "pipeline-error-eleven-labs-voice-not-fine-tuned", - PipelineErrorElevenLabsInvalidApiKey: "pipeline-error-eleven-labs-invalid-api-key", - PipelineErrorElevenLabsInvalidVoiceSamples: "pipeline-error-eleven-labs-invalid-voice-samples", - PipelineErrorElevenLabsVoiceDisabledByOwner: "pipeline-error-eleven-labs-voice-disabled-by-owner", - PipelineErrorElevenLabsVapiVoiceDisabledByOwner: "pipeline-error-eleven-labs-vapi-voice-disabled-by-owner", - PipelineErrorElevenLabsBlockedAccountInProbation: "pipeline-error-eleven-labs-blocked-account-in-probation", - PipelineErrorElevenLabsBlockedContentAgainstTheirPolicy: - "pipeline-error-eleven-labs-blocked-content-against-their-policy", - PipelineErrorElevenLabsMissingSamplesForVoiceClone: - "pipeline-error-eleven-labs-missing-samples-for-voice-clone", - PipelineErrorElevenLabsVoiceNotFineTunedAndCannotBeUsed: - "pipeline-error-eleven-labs-voice-not-fine-tuned-and-cannot-be-used", - PipelineErrorElevenLabsVoiceNotAllowedForFreeUsers: - "pipeline-error-eleven-labs-voice-not-allowed-for-free-users", - PipelineErrorElevenLabsMaxCharacterLimitExceeded: "pipeline-error-eleven-labs-max-character-limit-exceeded", - PipelineErrorElevenLabsBlockedVoicePotentiallyAgainstTermsOfServiceAndAwaitingVerification: - "pipeline-error-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification", - PipelineErrorElevenLabs500ServerError: "pipeline-error-eleven-labs-500-server-error", - PipelineErrorElevenLabs503ServerError: "pipeline-error-eleven-labs-503-server-error", - CallInProgressErrorVapifaultElevenLabsVoiceNotFound: - "call.in-progress.error-vapifault-eleven-labs-voice-not-found", - CallInProgressErrorVapifaultElevenLabsQuotaExceeded: - "call.in-progress.error-vapifault-eleven-labs-quota-exceeded", - CallInProgressErrorVapifaultElevenLabsUnauthorizedAccess: - "call.in-progress.error-vapifault-eleven-labs-unauthorized-access", - CallInProgressErrorVapifaultElevenLabsUnauthorizedToAccessModel: - "call.in-progress.error-vapifault-eleven-labs-unauthorized-to-access-model", - CallInProgressErrorVapifaultElevenLabsProfessionalVoicesOnlyForCreatorPlus: - "call.in-progress.error-vapifault-eleven-labs-professional-voices-only-for-creator-plus", - CallInProgressErrorVapifaultElevenLabsBlockedFreePlanAndRequestedUpgrade: - "call.in-progress.error-vapifault-eleven-labs-blocked-free-plan-and-requested-upgrade", - CallInProgressErrorVapifaultElevenLabsBlockedConcurrentRequestsAndRequestedUpgrade: - "call.in-progress.error-vapifault-eleven-labs-blocked-concurrent-requests-and-requested-upgrade", - CallInProgressErrorVapifaultElevenLabsBlockedUsingInstantVoiceCloneAndRequestedUpgrade: - "call.in-progress.error-vapifault-eleven-labs-blocked-using-instant-voice-clone-and-requested-upgrade", - CallInProgressErrorVapifaultElevenLabsSystemBusyAndRequestedUpgrade: - "call.in-progress.error-vapifault-eleven-labs-system-busy-and-requested-upgrade", - CallInProgressErrorVapifaultElevenLabsVoiceNotFineTuned: - "call.in-progress.error-vapifault-eleven-labs-voice-not-fine-tuned", - CallInProgressErrorVapifaultElevenLabsInvalidApiKey: - "call.in-progress.error-vapifault-eleven-labs-invalid-api-key", - CallInProgressErrorVapifaultElevenLabsInvalidVoiceSamples: - "call.in-progress.error-vapifault-eleven-labs-invalid-voice-samples", - CallInProgressErrorVapifaultElevenLabsVoiceDisabledByOwner: - "call.in-progress.error-vapifault-eleven-labs-voice-disabled-by-owner", - CallInProgressErrorVapifaultElevenLabsBlockedAccountInProbation: - "call.in-progress.error-vapifault-eleven-labs-blocked-account-in-probation", - CallInProgressErrorVapifaultElevenLabsBlockedContentAgainstTheirPolicy: - "call.in-progress.error-vapifault-eleven-labs-blocked-content-against-their-policy", - CallInProgressErrorVapifaultElevenLabsMissingSamplesForVoiceClone: - "call.in-progress.error-vapifault-eleven-labs-missing-samples-for-voice-clone", - CallInProgressErrorVapifaultElevenLabsVoiceNotFineTunedAndCannotBeUsed: - "call.in-progress.error-vapifault-eleven-labs-voice-not-fine-tuned-and-cannot-be-used", - CallInProgressErrorVapifaultElevenLabsVoiceNotAllowedForFreeUsers: - "call.in-progress.error-vapifault-eleven-labs-voice-not-allowed-for-free-users", - CallInProgressErrorVapifaultElevenLabsMaxCharacterLimitExceeded: - "call.in-progress.error-vapifault-eleven-labs-max-character-limit-exceeded", - CallInProgressErrorVapifaultElevenLabsBlockedVoicePotentiallyAgainstTermsOfServiceAndAwaitingVerification: - "call.in-progress.error-vapifault-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification", - CallInProgressErrorProviderfaultElevenLabs500ServerError: - "call.in-progress.error-providerfault-eleven-labs-500-server-error", - CallInProgressErrorProviderfaultElevenLabs503ServerError: - "call.in-progress.error-providerfault-eleven-labs-503-server-error", - PipelineErrorPlayhtRequestTimedOut: "pipeline-error-playht-request-timed-out", - PipelineErrorPlayhtInvalidVoice: "pipeline-error-playht-invalid-voice", - PipelineErrorPlayhtUnexpectedError: "pipeline-error-playht-unexpected-error", - PipelineErrorPlayhtOutOfCredits: "pipeline-error-playht-out-of-credits", - PipelineErrorPlayhtInvalidEmotion: "pipeline-error-playht-invalid-emotion", - PipelineErrorPlayhtVoiceMustBeAValidVoiceManifestUri: - "pipeline-error-playht-voice-must-be-a-valid-voice-manifest-uri", - PipelineErrorPlayht401Unauthorized: "pipeline-error-playht-401-unauthorized", - PipelineErrorPlayht403ForbiddenOutOfCharacters: "pipeline-error-playht-403-forbidden-out-of-characters", - PipelineErrorPlayht403ForbiddenApiAccessNotAvailable: - "pipeline-error-playht-403-forbidden-api-access-not-available", - PipelineErrorPlayht429ExceededQuota: "pipeline-error-playht-429-exceeded-quota", - PipelineErrorPlayht502GatewayError: "pipeline-error-playht-502-gateway-error", - PipelineErrorPlayht504GatewayError: "pipeline-error-playht-504-gateway-error", - CallInProgressErrorVapifaultPlayhtRequestTimedOut: "call.in-progress.error-vapifault-playht-request-timed-out", - CallInProgressErrorVapifaultPlayhtInvalidVoice: "call.in-progress.error-vapifault-playht-invalid-voice", - CallInProgressErrorVapifaultPlayhtUnexpectedError: "call.in-progress.error-vapifault-playht-unexpected-error", - CallInProgressErrorVapifaultPlayhtOutOfCredits: "call.in-progress.error-vapifault-playht-out-of-credits", - CallInProgressErrorVapifaultPlayhtInvalidEmotion: "call.in-progress.error-vapifault-playht-invalid-emotion", - CallInProgressErrorVapifaultPlayhtVoiceMustBeAValidVoiceManifestUri: - "call.in-progress.error-vapifault-playht-voice-must-be-a-valid-voice-manifest-uri", - CallInProgressErrorVapifaultPlayht401Unauthorized: "call.in-progress.error-vapifault-playht-401-unauthorized", - CallInProgressErrorVapifaultPlayht403ForbiddenOutOfCharacters: - "call.in-progress.error-vapifault-playht-403-forbidden-out-of-characters", - CallInProgressErrorVapifaultPlayht403ForbiddenApiAccessNotAvailable: - "call.in-progress.error-vapifault-playht-403-forbidden-api-access-not-available", - CallInProgressErrorVapifaultPlayht429ExceededQuota: - "call.in-progress.error-vapifault-playht-429-exceeded-quota", - CallInProgressErrorProviderfaultPlayht502GatewayError: - "call.in-progress.error-providerfault-playht-502-gateway-error", - CallInProgressErrorProviderfaultPlayht504GatewayError: - "call.in-progress.error-providerfault-playht-504-gateway-error", - PipelineErrorCustomTranscriberFailed: "pipeline-error-custom-transcriber-failed", - CallInProgressErrorVapifaultCustomTranscriberFailed: - "call.in-progress.error-vapifault-custom-transcriber-failed", - PipelineErrorElevenLabsTranscriberFailed: "pipeline-error-eleven-labs-transcriber-failed", - CallInProgressErrorVapifaultElevenLabsTranscriberFailed: - "call.in-progress.error-vapifault-eleven-labs-transcriber-failed", - PipelineErrorDeepgramReturning400NoSuchModelLanguageTierCombination: - "pipeline-error-deepgram-returning-400-no-such-model-language-tier-combination", - PipelineErrorDeepgramReturning401InvalidCredentials: - "pipeline-error-deepgram-returning-401-invalid-credentials", - PipelineErrorDeepgramReturning403ModelAccessDenied: "pipeline-error-deepgram-returning-403-model-access-denied", - PipelineErrorDeepgramReturning404NotFound: "pipeline-error-deepgram-returning-404-not-found", - PipelineErrorDeepgramReturning500InvalidJson: "pipeline-error-deepgram-returning-500-invalid-json", - PipelineErrorDeepgramReturning502NetworkError: "pipeline-error-deepgram-returning-502-network-error", - PipelineErrorDeepgramReturning502BadGatewayEhostunreach: - "pipeline-error-deepgram-returning-502-bad-gateway-ehostunreach", - PipelineErrorDeepgramReturningEconnreset: "pipeline-error-deepgram-returning-econnreset", - CallInProgressErrorVapifaultDeepgramReturning400NoSuchModelLanguageTierCombination: - "call.in-progress.error-vapifault-deepgram-returning-400-no-such-model-language-tier-combination", - CallInProgressErrorVapifaultDeepgramReturning401InvalidCredentials: - "call.in-progress.error-vapifault-deepgram-returning-401-invalid-credentials", - CallInProgressErrorVapifaultDeepgramReturning404NotFound: - "call.in-progress.error-vapifault-deepgram-returning-404-not-found", - CallInProgressErrorVapifaultDeepgramReturning403ModelAccessDenied: - "call.in-progress.error-vapifault-deepgram-returning-403-model-access-denied", - CallInProgressErrorProviderfaultDeepgramReturning500InvalidJson: - "call.in-progress.error-providerfault-deepgram-returning-500-invalid-json", - CallInProgressErrorProviderfaultDeepgramReturning502NetworkError: - "call.in-progress.error-providerfault-deepgram-returning-502-network-error", - CallInProgressErrorProviderfaultDeepgramReturning502BadGatewayEhostunreach: - "call.in-progress.error-providerfault-deepgram-returning-502-bad-gateway-ehostunreach", - PipelineErrorGoogleTranscriberFailed: "pipeline-error-google-transcriber-failed", - CallInProgressErrorVapifaultGoogleTranscriberFailed: - "call.in-progress.error-vapifault-google-transcriber-failed", - PipelineErrorOpenaiTranscriberFailed: "pipeline-error-openai-transcriber-failed", - CallInProgressErrorVapifaultOpenaiTranscriberFailed: - "call.in-progress.error-vapifault-openai-transcriber-failed", - CallInProgressErrorWarmTransferMaxDuration: "call.in-progress.error-warm-transfer-max-duration", - CallInProgressErrorWarmTransferAssistantCancelled: "call.in-progress.error-warm-transfer-assistant-cancelled", - CallInProgressErrorWarmTransferSilenceTimeout: "call.in-progress.error-warm-transfer-silence-timeout", - CallInProgressErrorWarmTransferMicrophoneTimeout: "call.in-progress.error-warm-transfer-microphone-timeout", - CallInProgressErrorWarmTransferHangTimeout: "call.in-progress.error-warm-transfer-hang-timeout", - CallInProgressErrorWarmTransferIdleTimeout: "call.in-progress.error-warm-transfer-idle-timeout", - AssistantEndedCall: "assistant-ended-call", - AssistantSaidEndCallPhrase: "assistant-said-end-call-phrase", - AssistantEndedCallWithHangupTask: "assistant-ended-call-with-hangup-task", - AssistantEndedCallAfterMessageSpoken: "assistant-ended-call-after-message-spoken", - AssistantForwardedCall: "assistant-forwarded-call", - AssistantJoinTimedOut: "assistant-join-timed-out", - CallInProgressErrorAssistantDidNotReceiveCustomerAudio: - "call.in-progress.error-assistant-did-not-receive-customer-audio", - CallInProgressErrorTransferFailed: "call.in-progress.error-transfer-failed", - CustomerBusy: "customer-busy", - CustomerEndedCall: "customer-ended-call", - CustomerEndedCallBeforeWarmTransfer: "customer-ended-call-before-warm-transfer", - CustomerEndedCallAfterWarmTransferAttempt: "customer-ended-call-after-warm-transfer-attempt", - CustomerDidNotAnswer: "customer-did-not-answer", - CustomerDidNotGiveMicrophonePermission: "customer-did-not-give-microphone-permission", - ExceededMaxDuration: "exceeded-max-duration", - ManuallyCanceled: "manually-canceled", - PhoneCallProviderClosedWebsocket: "phone-call-provider-closed-websocket", - CallForwardingOperatorBusy: "call.forwarding.operator-busy", - SilenceTimedOut: "silence-timed-out", - CallInProgressErrorSipInboundCallFailedToConnect: "call.in-progress.error-sip-inbound-call-failed-to-connect", - CallInProgressErrorProviderfaultOutboundSip403Forbidden: - "call.in-progress.error-providerfault-outbound-sip-403-forbidden", - CallInProgressErrorProviderfaultOutboundSip407ProxyAuthenticationRequired: - "call.in-progress.error-providerfault-outbound-sip-407-proxy-authentication-required", - CallInProgressErrorProviderfaultOutboundSip503ServiceUnavailable: - "call.in-progress.error-providerfault-outbound-sip-503-service-unavailable", - CallInProgressErrorProviderfaultOutboundSip480TemporarilyUnavailable: - "call.in-progress.error-providerfault-outbound-sip-480-temporarily-unavailable", - CallInProgressErrorSipOutboundCallFailedToConnect: "call.in-progress.error-sip-outbound-call-failed-to-connect", - CallRingingHookExecutedSay: "call.ringing.hook-executed-say", - CallRingingHookExecutedTransfer: "call.ringing.hook-executed-transfer", - CallEndingHookExecutedSay: "call.ending.hook-executed-say", - CallEndingHookExecutedTransfer: "call.ending.hook-executed-transfer", - CallRingingSipInboundCallerHungupBeforeCallConnect: - "call.ringing.sip-inbound-caller-hungup-before-call-connect", - CallRingingErrorSipInboundCallFailedToConnect: "call.ringing.error-sip-inbound-call-failed-to-connect", - TwilioFailedToConnectCall: "twilio-failed-to-connect-call", - TwilioReportedCustomerMisdialed: "twilio-reported-customer-misdialed", - VonageRejected: "vonage-rejected", - Voicemail: "voicemail", - CallDeleted: "call-deleted", - } as const; - export type Costs = Costs.Item[]; - - export namespace Costs { - export type Item = - | Vapi.TransportCost - | Vapi.TranscriberCost - | Vapi.ModelCost - | Vapi.VoiceCost - | Vapi.VapiCost - | Vapi.VoicemailDetectionCost - | Vapi.AnalysisCost - | Vapi.KnowledgeBaseCost; - } -} diff --git a/src/api/types/ServerMessageEndOfCallReportCostsItem.ts b/src/api/types/ServerMessageEndOfCallReportCostsItem.ts new file mode 100644 index 00000000..a516136a --- /dev/null +++ b/src/api/types/ServerMessageEndOfCallReportCostsItem.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type ServerMessageEndOfCallReportCostsItem = + | Vapi.TransportCost + | Vapi.TranscriberCost + | Vapi.ModelCost + | Vapi.VoiceCost + | Vapi.VapiCost + | Vapi.VoicemailDetectionCost + | Vapi.AnalysisCost + | Vapi.KnowledgeBaseCost; diff --git a/src/api/types/ServerMessageEndOfCallReportEndedReason.ts b/src/api/types/ServerMessageEndOfCallReportEndedReason.ts new file mode 100644 index 00000000..e8132171 --- /dev/null +++ b/src/api/types/ServerMessageEndOfCallReportEndedReason.ts @@ -0,0 +1,1245 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the reason the call ended. This can also be found at `call.endedReason` on GET /call/:id. + */ +export type ServerMessageEndOfCallReportEndedReason = + | "call-start-error-neither-assistant-nor-server-set" + | "assistant-request-failed" + | "assistant-request-returned-error" + | "assistant-request-returned-unspeakable-error" + | "assistant-request-returned-invalid-assistant" + | "assistant-request-returned-no-assistant" + | "assistant-request-returned-forwarding-phone-number" + | "scheduled-call-deleted" + | "call.start.error-vapifault-get-org" + | "call.start.error-vapifault-get-subscription" + | "call.start.error-get-assistant" + | "call.start.error-get-phone-number" + | "call.start.error-get-customer" + | "call.start.error-get-resources-validation" + | "call.start.error-vapi-number-international" + | "call.start.error-vapi-number-outbound-daily-limit" + | "call.start.error-get-transport" + | "call.start.error-subscription-wallet-does-not-exist" + | "call.start.error-fraud-check-failed" + | "call.start.error-subscription-frozen" + | "call.start.error-subscription-insufficient-credits" + | "call.start.error-subscription-upgrade-failed" + | "call.start.error-subscription-concurrency-limit-reached" + | "call.start.error-enterprise-feature-not-available-recording-consent" + | "assistant-not-valid" + | "call.start.error-vapifault-database-error" + | "assistant-not-found" + | "pipeline-error-openai-voice-failed" + | "pipeline-error-cartesia-voice-failed" + | "pipeline-error-deepgram-voice-failed" + | "pipeline-error-eleven-labs-voice-failed" + | "pipeline-error-playht-voice-failed" + | "pipeline-error-lmnt-voice-failed" + | "pipeline-error-azure-voice-failed" + | "pipeline-error-rime-ai-voice-failed" + | "pipeline-error-smallest-ai-voice-failed" + | "pipeline-error-neuphonic-voice-failed" + | "pipeline-error-hume-voice-failed" + | "pipeline-error-sesame-voice-failed" + | "pipeline-error-inworld-voice-failed" + | "pipeline-error-minimax-voice-failed" + | "pipeline-error-tavus-video-failed" + | "call.in-progress.error-vapifault-openai-voice-failed" + | "call.in-progress.error-vapifault-cartesia-voice-failed" + | "call.in-progress.error-vapifault-deepgram-voice-failed" + | "call.in-progress.error-vapifault-eleven-labs-voice-failed" + | "call.in-progress.error-vapifault-playht-voice-failed" + | "call.in-progress.error-vapifault-lmnt-voice-failed" + | "call.in-progress.error-vapifault-azure-voice-failed" + | "call.in-progress.error-vapifault-rime-ai-voice-failed" + | "call.in-progress.error-vapifault-smallest-ai-voice-failed" + | "call.in-progress.error-vapifault-neuphonic-voice-failed" + | "call.in-progress.error-vapifault-hume-voice-failed" + | "call.in-progress.error-vapifault-sesame-voice-failed" + | "call.in-progress.error-vapifault-inworld-voice-failed" + | "call.in-progress.error-vapifault-minimax-voice-failed" + | "call.in-progress.error-vapifault-tavus-video-failed" + | "pipeline-error-vapi-llm-failed" + | "pipeline-error-vapi-400-bad-request-validation-failed" + | "pipeline-error-vapi-401-unauthorized" + | "pipeline-error-vapi-403-model-access-denied" + | "pipeline-error-vapi-429-exceeded-quota" + | "pipeline-error-vapi-500-server-error" + | "pipeline-error-vapi-503-server-overloaded-error" + | "call.in-progress.error-providerfault-vapi-llm-failed" + | "call.in-progress.error-vapifault-vapi-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-vapi-401-unauthorized" + | "call.in-progress.error-vapifault-vapi-403-model-access-denied" + | "call.in-progress.error-vapifault-vapi-429-exceeded-quota" + | "call.in-progress.error-providerfault-vapi-500-server-error" + | "call.in-progress.error-providerfault-vapi-503-server-overloaded-error" + | "pipeline-error-deepgram-transcriber-failed" + | "pipeline-error-deepgram-transcriber-api-key-missing" + | "call.in-progress.error-vapifault-deepgram-transcriber-failed" + | "pipeline-error-gladia-transcriber-failed" + | "call.in-progress.error-vapifault-gladia-transcriber-failed" + | "pipeline-error-speechmatics-transcriber-failed" + | "call.in-progress.error-vapifault-speechmatics-transcriber-failed" + | "pipeline-error-assembly-ai-transcriber-failed" + | "pipeline-error-assembly-ai-returning-400-insufficent-funds" + | "pipeline-error-assembly-ai-returning-400-paid-only-feature" + | "pipeline-error-assembly-ai-returning-401-invalid-credentials" + | "pipeline-error-assembly-ai-returning-500-invalid-schema" + | "pipeline-error-assembly-ai-returning-500-word-boost-parsing-failed" + | "call.in-progress.error-vapifault-assembly-ai-transcriber-failed" + | "call.in-progress.error-vapifault-assembly-ai-returning-400-insufficent-funds" + | "call.in-progress.error-vapifault-assembly-ai-returning-400-paid-only-feature" + | "call.in-progress.error-vapifault-assembly-ai-returning-401-invalid-credentials" + | "call.in-progress.error-vapifault-assembly-ai-returning-500-invalid-schema" + | "call.in-progress.error-vapifault-assembly-ai-returning-500-word-boost-parsing-failed" + | "pipeline-error-talkscriber-transcriber-failed" + | "call.in-progress.error-vapifault-talkscriber-transcriber-failed" + | "pipeline-error-azure-speech-transcriber-failed" + | "call.in-progress.error-vapifault-azure-speech-transcriber-failed" + | "call.in-progress.error-pipeline-no-available-llm-model" + | "worker-shutdown" + | "vonage-disconnected" + | "vonage-failed-to-connect-call" + | "vonage-completed" + | "phone-call-provider-bypass-enabled-but-no-call-received" + | "call.in-progress.error-providerfault-transport-never-connected" + | "call.in-progress.error-vapifault-worker-not-available" + | "call.in-progress.error-vapifault-transport-never-connected" + | "call.in-progress.error-vapifault-transport-connected-but-call-not-active" + | "call.in-progress.error-vapifault-call-started-but-connection-to-transport-missing" + | "call.in-progress.error-vapifault-worker-died" + | "call.in-progress.twilio-completed-call" + | "call.in-progress.sip-completed-call" + | "call.in-progress.error-providerfault-openai-llm-failed" + | "call.in-progress.error-providerfault-azure-openai-llm-failed" + | "call.in-progress.error-providerfault-groq-llm-failed" + | "call.in-progress.error-providerfault-google-llm-failed" + | "call.in-progress.error-providerfault-xai-llm-failed" + | "call.in-progress.error-providerfault-mistral-llm-failed" + | "call.in-progress.error-providerfault-inflection-ai-llm-failed" + | "call.in-progress.error-providerfault-cerebras-llm-failed" + | "call.in-progress.error-providerfault-deep-seek-llm-failed" + | "call.in-progress.error-vapifault-chat-pipeline-failed-to-start" + | "pipeline-error-openai-400-bad-request-validation-failed" + | "pipeline-error-openai-401-unauthorized" + | "pipeline-error-openai-401-incorrect-api-key" + | "pipeline-error-openai-401-account-not-in-organization" + | "pipeline-error-openai-403-model-access-denied" + | "pipeline-error-openai-429-exceeded-quota" + | "pipeline-error-openai-429-rate-limit-reached" + | "pipeline-error-openai-500-server-error" + | "pipeline-error-openai-503-server-overloaded-error" + | "pipeline-error-openai-llm-failed" + | "call.in-progress.error-vapifault-openai-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-openai-401-unauthorized" + | "call.in-progress.error-vapifault-openai-401-incorrect-api-key" + | "call.in-progress.error-vapifault-openai-401-account-not-in-organization" + | "call.in-progress.error-vapifault-openai-403-model-access-denied" + | "call.in-progress.error-vapifault-openai-429-exceeded-quota" + | "call.in-progress.error-vapifault-openai-429-rate-limit-reached" + | "call.in-progress.error-providerfault-openai-500-server-error" + | "call.in-progress.error-providerfault-openai-503-server-overloaded-error" + | "pipeline-error-azure-openai-400-bad-request-validation-failed" + | "pipeline-error-azure-openai-401-unauthorized" + | "pipeline-error-azure-openai-403-model-access-denied" + | "pipeline-error-azure-openai-429-exceeded-quota" + | "pipeline-error-azure-openai-500-server-error" + | "pipeline-error-azure-openai-503-server-overloaded-error" + | "pipeline-error-azure-openai-llm-failed" + | "call.in-progress.error-vapifault-azure-openai-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-azure-openai-401-unauthorized" + | "call.in-progress.error-vapifault-azure-openai-403-model-access-denied" + | "call.in-progress.error-vapifault-azure-openai-429-exceeded-quota" + | "call.in-progress.error-providerfault-azure-openai-500-server-error" + | "call.in-progress.error-providerfault-azure-openai-503-server-overloaded-error" + | "pipeline-error-google-400-bad-request-validation-failed" + | "pipeline-error-google-401-unauthorized" + | "pipeline-error-google-403-model-access-denied" + | "pipeline-error-google-429-exceeded-quota" + | "pipeline-error-google-500-server-error" + | "pipeline-error-google-503-server-overloaded-error" + | "pipeline-error-google-llm-failed" + | "call.in-progress.error-vapifault-google-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-google-401-unauthorized" + | "call.in-progress.error-vapifault-google-403-model-access-denied" + | "call.in-progress.error-vapifault-google-429-exceeded-quota" + | "call.in-progress.error-providerfault-google-500-server-error" + | "call.in-progress.error-providerfault-google-503-server-overloaded-error" + | "pipeline-error-xai-400-bad-request-validation-failed" + | "pipeline-error-xai-401-unauthorized" + | "pipeline-error-xai-403-model-access-denied" + | "pipeline-error-xai-429-exceeded-quota" + | "pipeline-error-xai-500-server-error" + | "pipeline-error-xai-503-server-overloaded-error" + | "pipeline-error-xai-llm-failed" + | "call.in-progress.error-vapifault-xai-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-xai-401-unauthorized" + | "call.in-progress.error-vapifault-xai-403-model-access-denied" + | "call.in-progress.error-vapifault-xai-429-exceeded-quota" + | "call.in-progress.error-providerfault-xai-500-server-error" + | "call.in-progress.error-providerfault-xai-503-server-overloaded-error" + | "pipeline-error-mistral-400-bad-request-validation-failed" + | "pipeline-error-mistral-401-unauthorized" + | "pipeline-error-mistral-403-model-access-denied" + | "pipeline-error-mistral-429-exceeded-quota" + | "pipeline-error-mistral-500-server-error" + | "pipeline-error-mistral-503-server-overloaded-error" + | "pipeline-error-mistral-llm-failed" + | "call.in-progress.error-vapifault-mistral-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-mistral-401-unauthorized" + | "call.in-progress.error-vapifault-mistral-403-model-access-denied" + | "call.in-progress.error-vapifault-mistral-429-exceeded-quota" + | "call.in-progress.error-providerfault-mistral-500-server-error" + | "call.in-progress.error-providerfault-mistral-503-server-overloaded-error" + | "pipeline-error-inflection-ai-400-bad-request-validation-failed" + | "pipeline-error-inflection-ai-401-unauthorized" + | "pipeline-error-inflection-ai-403-model-access-denied" + | "pipeline-error-inflection-ai-429-exceeded-quota" + | "pipeline-error-inflection-ai-500-server-error" + | "pipeline-error-inflection-ai-503-server-overloaded-error" + | "pipeline-error-inflection-ai-llm-failed" + | "call.in-progress.error-vapifault-inflection-ai-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-inflection-ai-401-unauthorized" + | "call.in-progress.error-vapifault-inflection-ai-403-model-access-denied" + | "call.in-progress.error-vapifault-inflection-ai-429-exceeded-quota" + | "call.in-progress.error-providerfault-inflection-ai-500-server-error" + | "call.in-progress.error-providerfault-inflection-ai-503-server-overloaded-error" + | "pipeline-error-deep-seek-400-bad-request-validation-failed" + | "pipeline-error-deep-seek-401-unauthorized" + | "pipeline-error-deep-seek-403-model-access-denied" + | "pipeline-error-deep-seek-429-exceeded-quota" + | "pipeline-error-deep-seek-500-server-error" + | "pipeline-error-deep-seek-503-server-overloaded-error" + | "pipeline-error-deep-seek-llm-failed" + | "call.in-progress.error-vapifault-deep-seek-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-deep-seek-401-unauthorized" + | "call.in-progress.error-vapifault-deep-seek-403-model-access-denied" + | "call.in-progress.error-vapifault-deep-seek-429-exceeded-quota" + | "call.in-progress.error-providerfault-deep-seek-500-server-error" + | "call.in-progress.error-providerfault-deep-seek-503-server-overloaded-error" + | "pipeline-error-groq-400-bad-request-validation-failed" + | "pipeline-error-groq-401-unauthorized" + | "pipeline-error-groq-403-model-access-denied" + | "pipeline-error-groq-429-exceeded-quota" + | "pipeline-error-groq-500-server-error" + | "pipeline-error-groq-503-server-overloaded-error" + | "pipeline-error-groq-llm-failed" + | "call.in-progress.error-vapifault-groq-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-groq-401-unauthorized" + | "call.in-progress.error-vapifault-groq-403-model-access-denied" + | "call.in-progress.error-vapifault-groq-429-exceeded-quota" + | "call.in-progress.error-providerfault-groq-500-server-error" + | "call.in-progress.error-providerfault-groq-503-server-overloaded-error" + | "pipeline-error-cerebras-400-bad-request-validation-failed" + | "pipeline-error-cerebras-401-unauthorized" + | "pipeline-error-cerebras-403-model-access-denied" + | "pipeline-error-cerebras-429-exceeded-quota" + | "pipeline-error-cerebras-500-server-error" + | "pipeline-error-cerebras-503-server-overloaded-error" + | "pipeline-error-cerebras-llm-failed" + | "call.in-progress.error-vapifault-cerebras-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-cerebras-401-unauthorized" + | "call.in-progress.error-vapifault-cerebras-403-model-access-denied" + | "call.in-progress.error-vapifault-cerebras-429-exceeded-quota" + | "call.in-progress.error-providerfault-cerebras-500-server-error" + | "call.in-progress.error-providerfault-cerebras-503-server-overloaded-error" + | "pipeline-error-anthropic-400-bad-request-validation-failed" + | "pipeline-error-anthropic-401-unauthorized" + | "pipeline-error-anthropic-403-model-access-denied" + | "pipeline-error-anthropic-429-exceeded-quota" + | "pipeline-error-anthropic-500-server-error" + | "pipeline-error-anthropic-503-server-overloaded-error" + | "pipeline-error-anthropic-llm-failed" + | "call.in-progress.error-providerfault-anthropic-llm-failed" + | "call.in-progress.error-vapifault-anthropic-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-anthropic-401-unauthorized" + | "call.in-progress.error-vapifault-anthropic-403-model-access-denied" + | "call.in-progress.error-vapifault-anthropic-429-exceeded-quota" + | "call.in-progress.error-providerfault-anthropic-500-server-error" + | "call.in-progress.error-providerfault-anthropic-503-server-overloaded-error" + | "pipeline-error-anthropic-bedrock-400-bad-request-validation-failed" + | "pipeline-error-anthropic-bedrock-401-unauthorized" + | "pipeline-error-anthropic-bedrock-403-model-access-denied" + | "pipeline-error-anthropic-bedrock-429-exceeded-quota" + | "pipeline-error-anthropic-bedrock-500-server-error" + | "pipeline-error-anthropic-bedrock-503-server-overloaded-error" + | "pipeline-error-anthropic-bedrock-llm-failed" + | "call.in-progress.error-providerfault-anthropic-bedrock-llm-failed" + | "call.in-progress.error-vapifault-anthropic-bedrock-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-anthropic-bedrock-401-unauthorized" + | "call.in-progress.error-vapifault-anthropic-bedrock-403-model-access-denied" + | "call.in-progress.error-vapifault-anthropic-bedrock-429-exceeded-quota" + | "call.in-progress.error-providerfault-anthropic-bedrock-500-server-error" + | "call.in-progress.error-providerfault-anthropic-bedrock-503-server-overloaded-error" + | "pipeline-error-anthropic-vertex-400-bad-request-validation-failed" + | "pipeline-error-anthropic-vertex-401-unauthorized" + | "pipeline-error-anthropic-vertex-403-model-access-denied" + | "pipeline-error-anthropic-vertex-429-exceeded-quota" + | "pipeline-error-anthropic-vertex-500-server-error" + | "pipeline-error-anthropic-vertex-503-server-overloaded-error" + | "pipeline-error-anthropic-vertex-llm-failed" + | "call.in-progress.error-providerfault-anthropic-vertex-llm-failed" + | "call.in-progress.error-vapifault-anthropic-vertex-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-anthropic-vertex-401-unauthorized" + | "call.in-progress.error-vapifault-anthropic-vertex-403-model-access-denied" + | "call.in-progress.error-vapifault-anthropic-vertex-429-exceeded-quota" + | "call.in-progress.error-providerfault-anthropic-vertex-500-server-error" + | "call.in-progress.error-providerfault-anthropic-vertex-503-server-overloaded-error" + | "pipeline-error-together-ai-400-bad-request-validation-failed" + | "pipeline-error-together-ai-401-unauthorized" + | "pipeline-error-together-ai-403-model-access-denied" + | "pipeline-error-together-ai-429-exceeded-quota" + | "pipeline-error-together-ai-500-server-error" + | "pipeline-error-together-ai-503-server-overloaded-error" + | "pipeline-error-together-ai-llm-failed" + | "call.in-progress.error-providerfault-together-ai-llm-failed" + | "call.in-progress.error-vapifault-together-ai-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-together-ai-401-unauthorized" + | "call.in-progress.error-vapifault-together-ai-403-model-access-denied" + | "call.in-progress.error-vapifault-together-ai-429-exceeded-quota" + | "call.in-progress.error-providerfault-together-ai-500-server-error" + | "call.in-progress.error-providerfault-together-ai-503-server-overloaded-error" + | "pipeline-error-anyscale-400-bad-request-validation-failed" + | "pipeline-error-anyscale-401-unauthorized" + | "pipeline-error-anyscale-403-model-access-denied" + | "pipeline-error-anyscale-429-exceeded-quota" + | "pipeline-error-anyscale-500-server-error" + | "pipeline-error-anyscale-503-server-overloaded-error" + | "pipeline-error-anyscale-llm-failed" + | "call.in-progress.error-providerfault-anyscale-llm-failed" + | "call.in-progress.error-vapifault-anyscale-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-anyscale-401-unauthorized" + | "call.in-progress.error-vapifault-anyscale-403-model-access-denied" + | "call.in-progress.error-vapifault-anyscale-429-exceeded-quota" + | "call.in-progress.error-providerfault-anyscale-500-server-error" + | "call.in-progress.error-providerfault-anyscale-503-server-overloaded-error" + | "pipeline-error-openrouter-400-bad-request-validation-failed" + | "pipeline-error-openrouter-401-unauthorized" + | "pipeline-error-openrouter-403-model-access-denied" + | "pipeline-error-openrouter-429-exceeded-quota" + | "pipeline-error-openrouter-500-server-error" + | "pipeline-error-openrouter-503-server-overloaded-error" + | "pipeline-error-openrouter-llm-failed" + | "call.in-progress.error-providerfault-openrouter-llm-failed" + | "call.in-progress.error-vapifault-openrouter-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-openrouter-401-unauthorized" + | "call.in-progress.error-vapifault-openrouter-403-model-access-denied" + | "call.in-progress.error-vapifault-openrouter-429-exceeded-quota" + | "call.in-progress.error-providerfault-openrouter-500-server-error" + | "call.in-progress.error-providerfault-openrouter-503-server-overloaded-error" + | "pipeline-error-perplexity-ai-400-bad-request-validation-failed" + | "pipeline-error-perplexity-ai-401-unauthorized" + | "pipeline-error-perplexity-ai-403-model-access-denied" + | "pipeline-error-perplexity-ai-429-exceeded-quota" + | "pipeline-error-perplexity-ai-500-server-error" + | "pipeline-error-perplexity-ai-503-server-overloaded-error" + | "pipeline-error-perplexity-ai-llm-failed" + | "call.in-progress.error-providerfault-perplexity-ai-llm-failed" + | "call.in-progress.error-vapifault-perplexity-ai-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-perplexity-ai-401-unauthorized" + | "call.in-progress.error-vapifault-perplexity-ai-403-model-access-denied" + | "call.in-progress.error-vapifault-perplexity-ai-429-exceeded-quota" + | "call.in-progress.error-providerfault-perplexity-ai-500-server-error" + | "call.in-progress.error-providerfault-perplexity-ai-503-server-overloaded-error" + | "pipeline-error-deepinfra-400-bad-request-validation-failed" + | "pipeline-error-deepinfra-401-unauthorized" + | "pipeline-error-deepinfra-403-model-access-denied" + | "pipeline-error-deepinfra-429-exceeded-quota" + | "pipeline-error-deepinfra-500-server-error" + | "pipeline-error-deepinfra-503-server-overloaded-error" + | "pipeline-error-deepinfra-llm-failed" + | "call.in-progress.error-providerfault-deepinfra-llm-failed" + | "call.in-progress.error-vapifault-deepinfra-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-deepinfra-401-unauthorized" + | "call.in-progress.error-vapifault-deepinfra-403-model-access-denied" + | "call.in-progress.error-vapifault-deepinfra-429-exceeded-quota" + | "call.in-progress.error-providerfault-deepinfra-500-server-error" + | "call.in-progress.error-providerfault-deepinfra-503-server-overloaded-error" + | "pipeline-error-runpod-400-bad-request-validation-failed" + | "pipeline-error-runpod-401-unauthorized" + | "pipeline-error-runpod-403-model-access-denied" + | "pipeline-error-runpod-429-exceeded-quota" + | "pipeline-error-runpod-500-server-error" + | "pipeline-error-runpod-503-server-overloaded-error" + | "pipeline-error-runpod-llm-failed" + | "call.in-progress.error-providerfault-runpod-llm-failed" + | "call.in-progress.error-vapifault-runpod-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-runpod-401-unauthorized" + | "call.in-progress.error-vapifault-runpod-403-model-access-denied" + | "call.in-progress.error-vapifault-runpod-429-exceeded-quota" + | "call.in-progress.error-providerfault-runpod-500-server-error" + | "call.in-progress.error-providerfault-runpod-503-server-overloaded-error" + | "pipeline-error-custom-llm-400-bad-request-validation-failed" + | "pipeline-error-custom-llm-401-unauthorized" + | "pipeline-error-custom-llm-403-model-access-denied" + | "pipeline-error-custom-llm-429-exceeded-quota" + | "pipeline-error-custom-llm-500-server-error" + | "pipeline-error-custom-llm-503-server-overloaded-error" + | "pipeline-error-custom-llm-llm-failed" + | "call.in-progress.error-providerfault-custom-llm-llm-failed" + | "call.in-progress.error-vapifault-custom-llm-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-custom-llm-401-unauthorized" + | "call.in-progress.error-vapifault-custom-llm-403-model-access-denied" + | "call.in-progress.error-vapifault-custom-llm-429-exceeded-quota" + | "call.in-progress.error-providerfault-custom-llm-500-server-error" + | "call.in-progress.error-providerfault-custom-llm-503-server-overloaded-error" + | "pipeline-error-custom-voice-failed" + | "pipeline-error-cartesia-socket-hang-up" + | "pipeline-error-cartesia-requested-payment" + | "pipeline-error-cartesia-500-server-error" + | "pipeline-error-cartesia-502-server-error" + | "pipeline-error-cartesia-503-server-error" + | "pipeline-error-cartesia-522-server-error" + | "call.in-progress.error-vapifault-cartesia-socket-hang-up" + | "call.in-progress.error-vapifault-cartesia-requested-payment" + | "call.in-progress.error-providerfault-cartesia-500-server-error" + | "call.in-progress.error-providerfault-cartesia-503-server-error" + | "call.in-progress.error-providerfault-cartesia-522-server-error" + | "pipeline-error-eleven-labs-voice-not-found" + | "pipeline-error-eleven-labs-quota-exceeded" + | "pipeline-error-eleven-labs-unauthorized-access" + | "pipeline-error-eleven-labs-unauthorized-to-access-model" + | "pipeline-error-eleven-labs-professional-voices-only-for-creator-plus" + | "pipeline-error-eleven-labs-blocked-free-plan-and-requested-upgrade" + | "pipeline-error-eleven-labs-blocked-concurrent-requests-and-requested-upgrade" + | "pipeline-error-eleven-labs-blocked-using-instant-voice-clone-and-requested-upgrade" + | "pipeline-error-eleven-labs-system-busy-and-requested-upgrade" + | "pipeline-error-eleven-labs-voice-not-fine-tuned" + | "pipeline-error-eleven-labs-invalid-api-key" + | "pipeline-error-eleven-labs-invalid-voice-samples" + | "pipeline-error-eleven-labs-voice-disabled-by-owner" + | "pipeline-error-eleven-labs-vapi-voice-disabled-by-owner" + | "pipeline-error-eleven-labs-blocked-account-in-probation" + | "pipeline-error-eleven-labs-blocked-content-against-their-policy" + | "pipeline-error-eleven-labs-missing-samples-for-voice-clone" + | "pipeline-error-eleven-labs-voice-not-fine-tuned-and-cannot-be-used" + | "pipeline-error-eleven-labs-voice-not-allowed-for-free-users" + | "pipeline-error-eleven-labs-max-character-limit-exceeded" + | "pipeline-error-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification" + | "pipeline-error-eleven-labs-500-server-error" + | "pipeline-error-eleven-labs-503-server-error" + | "call.in-progress.error-vapifault-eleven-labs-voice-not-found" + | "call.in-progress.error-vapifault-eleven-labs-quota-exceeded" + | "call.in-progress.error-vapifault-eleven-labs-unauthorized-access" + | "call.in-progress.error-vapifault-eleven-labs-unauthorized-to-access-model" + | "call.in-progress.error-vapifault-eleven-labs-professional-voices-only-for-creator-plus" + | "call.in-progress.error-vapifault-eleven-labs-blocked-free-plan-and-requested-upgrade" + | "call.in-progress.error-vapifault-eleven-labs-blocked-concurrent-requests-and-requested-upgrade" + | "call.in-progress.error-vapifault-eleven-labs-blocked-using-instant-voice-clone-and-requested-upgrade" + | "call.in-progress.error-vapifault-eleven-labs-system-busy-and-requested-upgrade" + | "call.in-progress.error-vapifault-eleven-labs-voice-not-fine-tuned" + | "call.in-progress.error-vapifault-eleven-labs-invalid-api-key" + | "call.in-progress.error-vapifault-eleven-labs-invalid-voice-samples" + | "call.in-progress.error-vapifault-eleven-labs-voice-disabled-by-owner" + | "call.in-progress.error-vapifault-eleven-labs-blocked-account-in-probation" + | "call.in-progress.error-vapifault-eleven-labs-blocked-content-against-their-policy" + | "call.in-progress.error-vapifault-eleven-labs-missing-samples-for-voice-clone" + | "call.in-progress.error-vapifault-eleven-labs-voice-not-fine-tuned-and-cannot-be-used" + | "call.in-progress.error-vapifault-eleven-labs-voice-not-allowed-for-free-users" + | "call.in-progress.error-vapifault-eleven-labs-max-character-limit-exceeded" + | "call.in-progress.error-vapifault-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification" + | "call.in-progress.error-providerfault-eleven-labs-500-server-error" + | "call.in-progress.error-providerfault-eleven-labs-503-server-error" + | "pipeline-error-playht-request-timed-out" + | "pipeline-error-playht-invalid-voice" + | "pipeline-error-playht-unexpected-error" + | "pipeline-error-playht-out-of-credits" + | "pipeline-error-playht-invalid-emotion" + | "pipeline-error-playht-voice-must-be-a-valid-voice-manifest-uri" + | "pipeline-error-playht-401-unauthorized" + | "pipeline-error-playht-403-forbidden-out-of-characters" + | "pipeline-error-playht-403-forbidden-api-access-not-available" + | "pipeline-error-playht-429-exceeded-quota" + | "pipeline-error-playht-502-gateway-error" + | "pipeline-error-playht-504-gateway-error" + | "call.in-progress.error-vapifault-playht-request-timed-out" + | "call.in-progress.error-vapifault-playht-invalid-voice" + | "call.in-progress.error-vapifault-playht-unexpected-error" + | "call.in-progress.error-vapifault-playht-out-of-credits" + | "call.in-progress.error-vapifault-playht-invalid-emotion" + | "call.in-progress.error-vapifault-playht-voice-must-be-a-valid-voice-manifest-uri" + | "call.in-progress.error-vapifault-playht-401-unauthorized" + | "call.in-progress.error-vapifault-playht-403-forbidden-out-of-characters" + | "call.in-progress.error-vapifault-playht-403-forbidden-api-access-not-available" + | "call.in-progress.error-vapifault-playht-429-exceeded-quota" + | "call.in-progress.error-providerfault-playht-502-gateway-error" + | "call.in-progress.error-providerfault-playht-504-gateway-error" + | "pipeline-error-custom-transcriber-failed" + | "call.in-progress.error-vapifault-custom-transcriber-failed" + | "pipeline-error-eleven-labs-transcriber-failed" + | "call.in-progress.error-vapifault-eleven-labs-transcriber-failed" + | "pipeline-error-deepgram-returning-400-no-such-model-language-tier-combination" + | "pipeline-error-deepgram-returning-401-invalid-credentials" + | "pipeline-error-deepgram-returning-403-model-access-denied" + | "pipeline-error-deepgram-returning-404-not-found" + | "pipeline-error-deepgram-returning-500-invalid-json" + | "pipeline-error-deepgram-returning-502-network-error" + | "pipeline-error-deepgram-returning-502-bad-gateway-ehostunreach" + | "pipeline-error-deepgram-returning-econnreset" + | "call.in-progress.error-vapifault-deepgram-returning-400-no-such-model-language-tier-combination" + | "call.in-progress.error-vapifault-deepgram-returning-401-invalid-credentials" + | "call.in-progress.error-vapifault-deepgram-returning-404-not-found" + | "call.in-progress.error-vapifault-deepgram-returning-403-model-access-denied" + | "call.in-progress.error-providerfault-deepgram-returning-500-invalid-json" + | "call.in-progress.error-providerfault-deepgram-returning-502-network-error" + | "call.in-progress.error-providerfault-deepgram-returning-502-bad-gateway-ehostunreach" + | "pipeline-error-google-transcriber-failed" + | "call.in-progress.error-vapifault-google-transcriber-failed" + | "pipeline-error-openai-transcriber-failed" + | "call.in-progress.error-vapifault-openai-transcriber-failed" + | "call.in-progress.error-warm-transfer-max-duration" + | "call.in-progress.error-warm-transfer-assistant-cancelled" + | "call.in-progress.error-warm-transfer-silence-timeout" + | "call.in-progress.error-warm-transfer-microphone-timeout" + | "call.in-progress.error-warm-transfer-hang-timeout" + | "call.in-progress.error-warm-transfer-idle-timeout" + | "assistant-ended-call" + | "assistant-said-end-call-phrase" + | "assistant-ended-call-with-hangup-task" + | "assistant-ended-call-after-message-spoken" + | "assistant-forwarded-call" + | "assistant-join-timed-out" + | "call.in-progress.error-assistant-did-not-receive-customer-audio" + | "call.in-progress.error-transfer-failed" + | "customer-busy" + | "customer-ended-call" + | "customer-ended-call-before-warm-transfer" + | "customer-ended-call-after-warm-transfer-attempt" + | "customer-did-not-answer" + | "customer-did-not-give-microphone-permission" + | "exceeded-max-duration" + | "manually-canceled" + | "phone-call-provider-closed-websocket" + | "call.forwarding.operator-busy" + | "silence-timed-out" + | "call.in-progress.error-sip-inbound-call-failed-to-connect" + | "call.in-progress.error-providerfault-outbound-sip-403-forbidden" + | "call.in-progress.error-providerfault-outbound-sip-407-proxy-authentication-required" + | "call.in-progress.error-providerfault-outbound-sip-503-service-unavailable" + | "call.in-progress.error-providerfault-outbound-sip-480-temporarily-unavailable" + | "call.in-progress.error-sip-outbound-call-failed-to-connect" + | "call.ringing.hook-executed-say" + | "call.ringing.hook-executed-transfer" + | "call.ending.hook-executed-say" + | "call.ending.hook-executed-transfer" + | "call.ringing.sip-inbound-caller-hungup-before-call-connect" + | "call.ringing.error-sip-inbound-call-failed-to-connect" + | "twilio-failed-to-connect-call" + | "twilio-reported-customer-misdialed" + | "vonage-rejected" + | "voicemail" + | "call-deleted"; +export const ServerMessageEndOfCallReportEndedReason = { + CallStartErrorNeitherAssistantNorServerSet: "call-start-error-neither-assistant-nor-server-set", + AssistantRequestFailed: "assistant-request-failed", + AssistantRequestReturnedError: "assistant-request-returned-error", + AssistantRequestReturnedUnspeakableError: "assistant-request-returned-unspeakable-error", + AssistantRequestReturnedInvalidAssistant: "assistant-request-returned-invalid-assistant", + AssistantRequestReturnedNoAssistant: "assistant-request-returned-no-assistant", + AssistantRequestReturnedForwardingPhoneNumber: "assistant-request-returned-forwarding-phone-number", + ScheduledCallDeleted: "scheduled-call-deleted", + CallStartErrorVapifaultGetOrg: "call.start.error-vapifault-get-org", + CallStartErrorVapifaultGetSubscription: "call.start.error-vapifault-get-subscription", + CallStartErrorGetAssistant: "call.start.error-get-assistant", + CallStartErrorGetPhoneNumber: "call.start.error-get-phone-number", + CallStartErrorGetCustomer: "call.start.error-get-customer", + CallStartErrorGetResourcesValidation: "call.start.error-get-resources-validation", + CallStartErrorVapiNumberInternational: "call.start.error-vapi-number-international", + CallStartErrorVapiNumberOutboundDailyLimit: "call.start.error-vapi-number-outbound-daily-limit", + CallStartErrorGetTransport: "call.start.error-get-transport", + CallStartErrorSubscriptionWalletDoesNotExist: "call.start.error-subscription-wallet-does-not-exist", + CallStartErrorFraudCheckFailed: "call.start.error-fraud-check-failed", + CallStartErrorSubscriptionFrozen: "call.start.error-subscription-frozen", + CallStartErrorSubscriptionInsufficientCredits: "call.start.error-subscription-insufficient-credits", + CallStartErrorSubscriptionUpgradeFailed: "call.start.error-subscription-upgrade-failed", + CallStartErrorSubscriptionConcurrencyLimitReached: "call.start.error-subscription-concurrency-limit-reached", + CallStartErrorEnterpriseFeatureNotAvailableRecordingConsent: + "call.start.error-enterprise-feature-not-available-recording-consent", + AssistantNotValid: "assistant-not-valid", + CallStartErrorVapifaultDatabaseError: "call.start.error-vapifault-database-error", + AssistantNotFound: "assistant-not-found", + PipelineErrorOpenaiVoiceFailed: "pipeline-error-openai-voice-failed", + PipelineErrorCartesiaVoiceFailed: "pipeline-error-cartesia-voice-failed", + PipelineErrorDeepgramVoiceFailed: "pipeline-error-deepgram-voice-failed", + PipelineErrorElevenLabsVoiceFailed: "pipeline-error-eleven-labs-voice-failed", + PipelineErrorPlayhtVoiceFailed: "pipeline-error-playht-voice-failed", + PipelineErrorLmntVoiceFailed: "pipeline-error-lmnt-voice-failed", + PipelineErrorAzureVoiceFailed: "pipeline-error-azure-voice-failed", + PipelineErrorRimeAiVoiceFailed: "pipeline-error-rime-ai-voice-failed", + PipelineErrorSmallestAiVoiceFailed: "pipeline-error-smallest-ai-voice-failed", + PipelineErrorNeuphonicVoiceFailed: "pipeline-error-neuphonic-voice-failed", + PipelineErrorHumeVoiceFailed: "pipeline-error-hume-voice-failed", + PipelineErrorSesameVoiceFailed: "pipeline-error-sesame-voice-failed", + PipelineErrorInworldVoiceFailed: "pipeline-error-inworld-voice-failed", + PipelineErrorMinimaxVoiceFailed: "pipeline-error-minimax-voice-failed", + PipelineErrorTavusVideoFailed: "pipeline-error-tavus-video-failed", + CallInProgressErrorVapifaultOpenaiVoiceFailed: "call.in-progress.error-vapifault-openai-voice-failed", + CallInProgressErrorVapifaultCartesiaVoiceFailed: "call.in-progress.error-vapifault-cartesia-voice-failed", + CallInProgressErrorVapifaultDeepgramVoiceFailed: "call.in-progress.error-vapifault-deepgram-voice-failed", + CallInProgressErrorVapifaultElevenLabsVoiceFailed: "call.in-progress.error-vapifault-eleven-labs-voice-failed", + CallInProgressErrorVapifaultPlayhtVoiceFailed: "call.in-progress.error-vapifault-playht-voice-failed", + CallInProgressErrorVapifaultLmntVoiceFailed: "call.in-progress.error-vapifault-lmnt-voice-failed", + CallInProgressErrorVapifaultAzureVoiceFailed: "call.in-progress.error-vapifault-azure-voice-failed", + CallInProgressErrorVapifaultRimeAiVoiceFailed: "call.in-progress.error-vapifault-rime-ai-voice-failed", + CallInProgressErrorVapifaultSmallestAiVoiceFailed: "call.in-progress.error-vapifault-smallest-ai-voice-failed", + CallInProgressErrorVapifaultNeuphonicVoiceFailed: "call.in-progress.error-vapifault-neuphonic-voice-failed", + CallInProgressErrorVapifaultHumeVoiceFailed: "call.in-progress.error-vapifault-hume-voice-failed", + CallInProgressErrorVapifaultSesameVoiceFailed: "call.in-progress.error-vapifault-sesame-voice-failed", + CallInProgressErrorVapifaultInworldVoiceFailed: "call.in-progress.error-vapifault-inworld-voice-failed", + CallInProgressErrorVapifaultMinimaxVoiceFailed: "call.in-progress.error-vapifault-minimax-voice-failed", + CallInProgressErrorVapifaultTavusVideoFailed: "call.in-progress.error-vapifault-tavus-video-failed", + PipelineErrorVapiLlmFailed: "pipeline-error-vapi-llm-failed", + PipelineErrorVapi400BadRequestValidationFailed: "pipeline-error-vapi-400-bad-request-validation-failed", + PipelineErrorVapi401Unauthorized: "pipeline-error-vapi-401-unauthorized", + PipelineErrorVapi403ModelAccessDenied: "pipeline-error-vapi-403-model-access-denied", + PipelineErrorVapi429ExceededQuota: "pipeline-error-vapi-429-exceeded-quota", + PipelineErrorVapi500ServerError: "pipeline-error-vapi-500-server-error", + PipelineErrorVapi503ServerOverloadedError: "pipeline-error-vapi-503-server-overloaded-error", + CallInProgressErrorProviderfaultVapiLlmFailed: "call.in-progress.error-providerfault-vapi-llm-failed", + CallInProgressErrorVapifaultVapi400BadRequestValidationFailed: + "call.in-progress.error-vapifault-vapi-400-bad-request-validation-failed", + CallInProgressErrorVapifaultVapi401Unauthorized: "call.in-progress.error-vapifault-vapi-401-unauthorized", + CallInProgressErrorVapifaultVapi403ModelAccessDenied: + "call.in-progress.error-vapifault-vapi-403-model-access-denied", + CallInProgressErrorVapifaultVapi429ExceededQuota: "call.in-progress.error-vapifault-vapi-429-exceeded-quota", + CallInProgressErrorProviderfaultVapi500ServerError: "call.in-progress.error-providerfault-vapi-500-server-error", + CallInProgressErrorProviderfaultVapi503ServerOverloadedError: + "call.in-progress.error-providerfault-vapi-503-server-overloaded-error", + PipelineErrorDeepgramTranscriberFailed: "pipeline-error-deepgram-transcriber-failed", + PipelineErrorDeepgramTranscriberApiKeyMissing: "pipeline-error-deepgram-transcriber-api-key-missing", + CallInProgressErrorVapifaultDeepgramTranscriberFailed: + "call.in-progress.error-vapifault-deepgram-transcriber-failed", + PipelineErrorGladiaTranscriberFailed: "pipeline-error-gladia-transcriber-failed", + CallInProgressErrorVapifaultGladiaTranscriberFailed: "call.in-progress.error-vapifault-gladia-transcriber-failed", + PipelineErrorSpeechmaticsTranscriberFailed: "pipeline-error-speechmatics-transcriber-failed", + CallInProgressErrorVapifaultSpeechmaticsTranscriberFailed: + "call.in-progress.error-vapifault-speechmatics-transcriber-failed", + PipelineErrorAssemblyAiTranscriberFailed: "pipeline-error-assembly-ai-transcriber-failed", + PipelineErrorAssemblyAiReturning400InsufficentFunds: "pipeline-error-assembly-ai-returning-400-insufficent-funds", + PipelineErrorAssemblyAiReturning400PaidOnlyFeature: "pipeline-error-assembly-ai-returning-400-paid-only-feature", + PipelineErrorAssemblyAiReturning401InvalidCredentials: + "pipeline-error-assembly-ai-returning-401-invalid-credentials", + PipelineErrorAssemblyAiReturning500InvalidSchema: "pipeline-error-assembly-ai-returning-500-invalid-schema", + PipelineErrorAssemblyAiReturning500WordBoostParsingFailed: + "pipeline-error-assembly-ai-returning-500-word-boost-parsing-failed", + CallInProgressErrorVapifaultAssemblyAiTranscriberFailed: + "call.in-progress.error-vapifault-assembly-ai-transcriber-failed", + CallInProgressErrorVapifaultAssemblyAiReturning400InsufficentFunds: + "call.in-progress.error-vapifault-assembly-ai-returning-400-insufficent-funds", + CallInProgressErrorVapifaultAssemblyAiReturning400PaidOnlyFeature: + "call.in-progress.error-vapifault-assembly-ai-returning-400-paid-only-feature", + CallInProgressErrorVapifaultAssemblyAiReturning401InvalidCredentials: + "call.in-progress.error-vapifault-assembly-ai-returning-401-invalid-credentials", + CallInProgressErrorVapifaultAssemblyAiReturning500InvalidSchema: + "call.in-progress.error-vapifault-assembly-ai-returning-500-invalid-schema", + CallInProgressErrorVapifaultAssemblyAiReturning500WordBoostParsingFailed: + "call.in-progress.error-vapifault-assembly-ai-returning-500-word-boost-parsing-failed", + PipelineErrorTalkscriberTranscriberFailed: "pipeline-error-talkscriber-transcriber-failed", + CallInProgressErrorVapifaultTalkscriberTranscriberFailed: + "call.in-progress.error-vapifault-talkscriber-transcriber-failed", + PipelineErrorAzureSpeechTranscriberFailed: "pipeline-error-azure-speech-transcriber-failed", + CallInProgressErrorVapifaultAzureSpeechTranscriberFailed: + "call.in-progress.error-vapifault-azure-speech-transcriber-failed", + CallInProgressErrorPipelineNoAvailableLlmModel: "call.in-progress.error-pipeline-no-available-llm-model", + WorkerShutdown: "worker-shutdown", + VonageDisconnected: "vonage-disconnected", + VonageFailedToConnectCall: "vonage-failed-to-connect-call", + VonageCompleted: "vonage-completed", + PhoneCallProviderBypassEnabledButNoCallReceived: "phone-call-provider-bypass-enabled-but-no-call-received", + CallInProgressErrorProviderfaultTransportNeverConnected: + "call.in-progress.error-providerfault-transport-never-connected", + CallInProgressErrorVapifaultWorkerNotAvailable: "call.in-progress.error-vapifault-worker-not-available", + CallInProgressErrorVapifaultTransportNeverConnected: "call.in-progress.error-vapifault-transport-never-connected", + CallInProgressErrorVapifaultTransportConnectedButCallNotActive: + "call.in-progress.error-vapifault-transport-connected-but-call-not-active", + CallInProgressErrorVapifaultCallStartedButConnectionToTransportMissing: + "call.in-progress.error-vapifault-call-started-but-connection-to-transport-missing", + CallInProgressErrorVapifaultWorkerDied: "call.in-progress.error-vapifault-worker-died", + CallInProgressTwilioCompletedCall: "call.in-progress.twilio-completed-call", + CallInProgressSipCompletedCall: "call.in-progress.sip-completed-call", + CallInProgressErrorProviderfaultOpenaiLlmFailed: "call.in-progress.error-providerfault-openai-llm-failed", + CallInProgressErrorProviderfaultAzureOpenaiLlmFailed: + "call.in-progress.error-providerfault-azure-openai-llm-failed", + CallInProgressErrorProviderfaultGroqLlmFailed: "call.in-progress.error-providerfault-groq-llm-failed", + CallInProgressErrorProviderfaultGoogleLlmFailed: "call.in-progress.error-providerfault-google-llm-failed", + CallInProgressErrorProviderfaultXaiLlmFailed: "call.in-progress.error-providerfault-xai-llm-failed", + CallInProgressErrorProviderfaultMistralLlmFailed: "call.in-progress.error-providerfault-mistral-llm-failed", + CallInProgressErrorProviderfaultInflectionAiLlmFailed: + "call.in-progress.error-providerfault-inflection-ai-llm-failed", + CallInProgressErrorProviderfaultCerebrasLlmFailed: "call.in-progress.error-providerfault-cerebras-llm-failed", + CallInProgressErrorProviderfaultDeepSeekLlmFailed: "call.in-progress.error-providerfault-deep-seek-llm-failed", + CallInProgressErrorVapifaultChatPipelineFailedToStart: + "call.in-progress.error-vapifault-chat-pipeline-failed-to-start", + PipelineErrorOpenai400BadRequestValidationFailed: "pipeline-error-openai-400-bad-request-validation-failed", + PipelineErrorOpenai401Unauthorized: "pipeline-error-openai-401-unauthorized", + PipelineErrorOpenai401IncorrectApiKey: "pipeline-error-openai-401-incorrect-api-key", + PipelineErrorOpenai401AccountNotInOrganization: "pipeline-error-openai-401-account-not-in-organization", + PipelineErrorOpenai403ModelAccessDenied: "pipeline-error-openai-403-model-access-denied", + PipelineErrorOpenai429ExceededQuota: "pipeline-error-openai-429-exceeded-quota", + PipelineErrorOpenai429RateLimitReached: "pipeline-error-openai-429-rate-limit-reached", + PipelineErrorOpenai500ServerError: "pipeline-error-openai-500-server-error", + PipelineErrorOpenai503ServerOverloadedError: "pipeline-error-openai-503-server-overloaded-error", + PipelineErrorOpenaiLlmFailed: "pipeline-error-openai-llm-failed", + CallInProgressErrorVapifaultOpenai400BadRequestValidationFailed: + "call.in-progress.error-vapifault-openai-400-bad-request-validation-failed", + CallInProgressErrorVapifaultOpenai401Unauthorized: "call.in-progress.error-vapifault-openai-401-unauthorized", + CallInProgressErrorVapifaultOpenai401IncorrectApiKey: + "call.in-progress.error-vapifault-openai-401-incorrect-api-key", + CallInProgressErrorVapifaultOpenai401AccountNotInOrganization: + "call.in-progress.error-vapifault-openai-401-account-not-in-organization", + CallInProgressErrorVapifaultOpenai403ModelAccessDenied: + "call.in-progress.error-vapifault-openai-403-model-access-denied", + CallInProgressErrorVapifaultOpenai429ExceededQuota: "call.in-progress.error-vapifault-openai-429-exceeded-quota", + CallInProgressErrorVapifaultOpenai429RateLimitReached: + "call.in-progress.error-vapifault-openai-429-rate-limit-reached", + CallInProgressErrorProviderfaultOpenai500ServerError: + "call.in-progress.error-providerfault-openai-500-server-error", + CallInProgressErrorProviderfaultOpenai503ServerOverloadedError: + "call.in-progress.error-providerfault-openai-503-server-overloaded-error", + PipelineErrorAzureOpenai400BadRequestValidationFailed: + "pipeline-error-azure-openai-400-bad-request-validation-failed", + PipelineErrorAzureOpenai401Unauthorized: "pipeline-error-azure-openai-401-unauthorized", + PipelineErrorAzureOpenai403ModelAccessDenied: "pipeline-error-azure-openai-403-model-access-denied", + PipelineErrorAzureOpenai429ExceededQuota: "pipeline-error-azure-openai-429-exceeded-quota", + PipelineErrorAzureOpenai500ServerError: "pipeline-error-azure-openai-500-server-error", + PipelineErrorAzureOpenai503ServerOverloadedError: "pipeline-error-azure-openai-503-server-overloaded-error", + PipelineErrorAzureOpenaiLlmFailed: "pipeline-error-azure-openai-llm-failed", + CallInProgressErrorVapifaultAzureOpenai400BadRequestValidationFailed: + "call.in-progress.error-vapifault-azure-openai-400-bad-request-validation-failed", + CallInProgressErrorVapifaultAzureOpenai401Unauthorized: + "call.in-progress.error-vapifault-azure-openai-401-unauthorized", + CallInProgressErrorVapifaultAzureOpenai403ModelAccessDenied: + "call.in-progress.error-vapifault-azure-openai-403-model-access-denied", + CallInProgressErrorVapifaultAzureOpenai429ExceededQuota: + "call.in-progress.error-vapifault-azure-openai-429-exceeded-quota", + CallInProgressErrorProviderfaultAzureOpenai500ServerError: + "call.in-progress.error-providerfault-azure-openai-500-server-error", + CallInProgressErrorProviderfaultAzureOpenai503ServerOverloadedError: + "call.in-progress.error-providerfault-azure-openai-503-server-overloaded-error", + PipelineErrorGoogle400BadRequestValidationFailed: "pipeline-error-google-400-bad-request-validation-failed", + PipelineErrorGoogle401Unauthorized: "pipeline-error-google-401-unauthorized", + PipelineErrorGoogle403ModelAccessDenied: "pipeline-error-google-403-model-access-denied", + PipelineErrorGoogle429ExceededQuota: "pipeline-error-google-429-exceeded-quota", + PipelineErrorGoogle500ServerError: "pipeline-error-google-500-server-error", + PipelineErrorGoogle503ServerOverloadedError: "pipeline-error-google-503-server-overloaded-error", + PipelineErrorGoogleLlmFailed: "pipeline-error-google-llm-failed", + CallInProgressErrorVapifaultGoogle400BadRequestValidationFailed: + "call.in-progress.error-vapifault-google-400-bad-request-validation-failed", + CallInProgressErrorVapifaultGoogle401Unauthorized: "call.in-progress.error-vapifault-google-401-unauthorized", + CallInProgressErrorVapifaultGoogle403ModelAccessDenied: + "call.in-progress.error-vapifault-google-403-model-access-denied", + CallInProgressErrorVapifaultGoogle429ExceededQuota: "call.in-progress.error-vapifault-google-429-exceeded-quota", + CallInProgressErrorProviderfaultGoogle500ServerError: + "call.in-progress.error-providerfault-google-500-server-error", + CallInProgressErrorProviderfaultGoogle503ServerOverloadedError: + "call.in-progress.error-providerfault-google-503-server-overloaded-error", + PipelineErrorXai400BadRequestValidationFailed: "pipeline-error-xai-400-bad-request-validation-failed", + PipelineErrorXai401Unauthorized: "pipeline-error-xai-401-unauthorized", + PipelineErrorXai403ModelAccessDenied: "pipeline-error-xai-403-model-access-denied", + PipelineErrorXai429ExceededQuota: "pipeline-error-xai-429-exceeded-quota", + PipelineErrorXai500ServerError: "pipeline-error-xai-500-server-error", + PipelineErrorXai503ServerOverloadedError: "pipeline-error-xai-503-server-overloaded-error", + PipelineErrorXaiLlmFailed: "pipeline-error-xai-llm-failed", + CallInProgressErrorVapifaultXai400BadRequestValidationFailed: + "call.in-progress.error-vapifault-xai-400-bad-request-validation-failed", + CallInProgressErrorVapifaultXai401Unauthorized: "call.in-progress.error-vapifault-xai-401-unauthorized", + CallInProgressErrorVapifaultXai403ModelAccessDenied: "call.in-progress.error-vapifault-xai-403-model-access-denied", + CallInProgressErrorVapifaultXai429ExceededQuota: "call.in-progress.error-vapifault-xai-429-exceeded-quota", + CallInProgressErrorProviderfaultXai500ServerError: "call.in-progress.error-providerfault-xai-500-server-error", + CallInProgressErrorProviderfaultXai503ServerOverloadedError: + "call.in-progress.error-providerfault-xai-503-server-overloaded-error", + PipelineErrorMistral400BadRequestValidationFailed: "pipeline-error-mistral-400-bad-request-validation-failed", + PipelineErrorMistral401Unauthorized: "pipeline-error-mistral-401-unauthorized", + PipelineErrorMistral403ModelAccessDenied: "pipeline-error-mistral-403-model-access-denied", + PipelineErrorMistral429ExceededQuota: "pipeline-error-mistral-429-exceeded-quota", + PipelineErrorMistral500ServerError: "pipeline-error-mistral-500-server-error", + PipelineErrorMistral503ServerOverloadedError: "pipeline-error-mistral-503-server-overloaded-error", + PipelineErrorMistralLlmFailed: "pipeline-error-mistral-llm-failed", + CallInProgressErrorVapifaultMistral400BadRequestValidationFailed: + "call.in-progress.error-vapifault-mistral-400-bad-request-validation-failed", + CallInProgressErrorVapifaultMistral401Unauthorized: "call.in-progress.error-vapifault-mistral-401-unauthorized", + CallInProgressErrorVapifaultMistral403ModelAccessDenied: + "call.in-progress.error-vapifault-mistral-403-model-access-denied", + CallInProgressErrorVapifaultMistral429ExceededQuota: "call.in-progress.error-vapifault-mistral-429-exceeded-quota", + CallInProgressErrorProviderfaultMistral500ServerError: + "call.in-progress.error-providerfault-mistral-500-server-error", + CallInProgressErrorProviderfaultMistral503ServerOverloadedError: + "call.in-progress.error-providerfault-mistral-503-server-overloaded-error", + PipelineErrorInflectionAi400BadRequestValidationFailed: + "pipeline-error-inflection-ai-400-bad-request-validation-failed", + PipelineErrorInflectionAi401Unauthorized: "pipeline-error-inflection-ai-401-unauthorized", + PipelineErrorInflectionAi403ModelAccessDenied: "pipeline-error-inflection-ai-403-model-access-denied", + PipelineErrorInflectionAi429ExceededQuota: "pipeline-error-inflection-ai-429-exceeded-quota", + PipelineErrorInflectionAi500ServerError: "pipeline-error-inflection-ai-500-server-error", + PipelineErrorInflectionAi503ServerOverloadedError: "pipeline-error-inflection-ai-503-server-overloaded-error", + PipelineErrorInflectionAiLlmFailed: "pipeline-error-inflection-ai-llm-failed", + CallInProgressErrorVapifaultInflectionAi400BadRequestValidationFailed: + "call.in-progress.error-vapifault-inflection-ai-400-bad-request-validation-failed", + CallInProgressErrorVapifaultInflectionAi401Unauthorized: + "call.in-progress.error-vapifault-inflection-ai-401-unauthorized", + CallInProgressErrorVapifaultInflectionAi403ModelAccessDenied: + "call.in-progress.error-vapifault-inflection-ai-403-model-access-denied", + CallInProgressErrorVapifaultInflectionAi429ExceededQuota: + "call.in-progress.error-vapifault-inflection-ai-429-exceeded-quota", + CallInProgressErrorProviderfaultInflectionAi500ServerError: + "call.in-progress.error-providerfault-inflection-ai-500-server-error", + CallInProgressErrorProviderfaultInflectionAi503ServerOverloadedError: + "call.in-progress.error-providerfault-inflection-ai-503-server-overloaded-error", + PipelineErrorDeepSeek400BadRequestValidationFailed: "pipeline-error-deep-seek-400-bad-request-validation-failed", + PipelineErrorDeepSeek401Unauthorized: "pipeline-error-deep-seek-401-unauthorized", + PipelineErrorDeepSeek403ModelAccessDenied: "pipeline-error-deep-seek-403-model-access-denied", + PipelineErrorDeepSeek429ExceededQuota: "pipeline-error-deep-seek-429-exceeded-quota", + PipelineErrorDeepSeek500ServerError: "pipeline-error-deep-seek-500-server-error", + PipelineErrorDeepSeek503ServerOverloadedError: "pipeline-error-deep-seek-503-server-overloaded-error", + PipelineErrorDeepSeekLlmFailed: "pipeline-error-deep-seek-llm-failed", + CallInProgressErrorVapifaultDeepSeek400BadRequestValidationFailed: + "call.in-progress.error-vapifault-deep-seek-400-bad-request-validation-failed", + CallInProgressErrorVapifaultDeepSeek401Unauthorized: "call.in-progress.error-vapifault-deep-seek-401-unauthorized", + CallInProgressErrorVapifaultDeepSeek403ModelAccessDenied: + "call.in-progress.error-vapifault-deep-seek-403-model-access-denied", + CallInProgressErrorVapifaultDeepSeek429ExceededQuota: + "call.in-progress.error-vapifault-deep-seek-429-exceeded-quota", + CallInProgressErrorProviderfaultDeepSeek500ServerError: + "call.in-progress.error-providerfault-deep-seek-500-server-error", + CallInProgressErrorProviderfaultDeepSeek503ServerOverloadedError: + "call.in-progress.error-providerfault-deep-seek-503-server-overloaded-error", + PipelineErrorGroq400BadRequestValidationFailed: "pipeline-error-groq-400-bad-request-validation-failed", + PipelineErrorGroq401Unauthorized: "pipeline-error-groq-401-unauthorized", + PipelineErrorGroq403ModelAccessDenied: "pipeline-error-groq-403-model-access-denied", + PipelineErrorGroq429ExceededQuota: "pipeline-error-groq-429-exceeded-quota", + PipelineErrorGroq500ServerError: "pipeline-error-groq-500-server-error", + PipelineErrorGroq503ServerOverloadedError: "pipeline-error-groq-503-server-overloaded-error", + PipelineErrorGroqLlmFailed: "pipeline-error-groq-llm-failed", + CallInProgressErrorVapifaultGroq400BadRequestValidationFailed: + "call.in-progress.error-vapifault-groq-400-bad-request-validation-failed", + CallInProgressErrorVapifaultGroq401Unauthorized: "call.in-progress.error-vapifault-groq-401-unauthorized", + CallInProgressErrorVapifaultGroq403ModelAccessDenied: + "call.in-progress.error-vapifault-groq-403-model-access-denied", + CallInProgressErrorVapifaultGroq429ExceededQuota: "call.in-progress.error-vapifault-groq-429-exceeded-quota", + CallInProgressErrorProviderfaultGroq500ServerError: "call.in-progress.error-providerfault-groq-500-server-error", + CallInProgressErrorProviderfaultGroq503ServerOverloadedError: + "call.in-progress.error-providerfault-groq-503-server-overloaded-error", + PipelineErrorCerebras400BadRequestValidationFailed: "pipeline-error-cerebras-400-bad-request-validation-failed", + PipelineErrorCerebras401Unauthorized: "pipeline-error-cerebras-401-unauthorized", + PipelineErrorCerebras403ModelAccessDenied: "pipeline-error-cerebras-403-model-access-denied", + PipelineErrorCerebras429ExceededQuota: "pipeline-error-cerebras-429-exceeded-quota", + PipelineErrorCerebras500ServerError: "pipeline-error-cerebras-500-server-error", + PipelineErrorCerebras503ServerOverloadedError: "pipeline-error-cerebras-503-server-overloaded-error", + PipelineErrorCerebrasLlmFailed: "pipeline-error-cerebras-llm-failed", + CallInProgressErrorVapifaultCerebras400BadRequestValidationFailed: + "call.in-progress.error-vapifault-cerebras-400-bad-request-validation-failed", + CallInProgressErrorVapifaultCerebras401Unauthorized: "call.in-progress.error-vapifault-cerebras-401-unauthorized", + CallInProgressErrorVapifaultCerebras403ModelAccessDenied: + "call.in-progress.error-vapifault-cerebras-403-model-access-denied", + CallInProgressErrorVapifaultCerebras429ExceededQuota: + "call.in-progress.error-vapifault-cerebras-429-exceeded-quota", + CallInProgressErrorProviderfaultCerebras500ServerError: + "call.in-progress.error-providerfault-cerebras-500-server-error", + CallInProgressErrorProviderfaultCerebras503ServerOverloadedError: + "call.in-progress.error-providerfault-cerebras-503-server-overloaded-error", + PipelineErrorAnthropic400BadRequestValidationFailed: "pipeline-error-anthropic-400-bad-request-validation-failed", + PipelineErrorAnthropic401Unauthorized: "pipeline-error-anthropic-401-unauthorized", + PipelineErrorAnthropic403ModelAccessDenied: "pipeline-error-anthropic-403-model-access-denied", + PipelineErrorAnthropic429ExceededQuota: "pipeline-error-anthropic-429-exceeded-quota", + PipelineErrorAnthropic500ServerError: "pipeline-error-anthropic-500-server-error", + PipelineErrorAnthropic503ServerOverloadedError: "pipeline-error-anthropic-503-server-overloaded-error", + PipelineErrorAnthropicLlmFailed: "pipeline-error-anthropic-llm-failed", + CallInProgressErrorProviderfaultAnthropicLlmFailed: "call.in-progress.error-providerfault-anthropic-llm-failed", + CallInProgressErrorVapifaultAnthropic400BadRequestValidationFailed: + "call.in-progress.error-vapifault-anthropic-400-bad-request-validation-failed", + CallInProgressErrorVapifaultAnthropic401Unauthorized: "call.in-progress.error-vapifault-anthropic-401-unauthorized", + CallInProgressErrorVapifaultAnthropic403ModelAccessDenied: + "call.in-progress.error-vapifault-anthropic-403-model-access-denied", + CallInProgressErrorVapifaultAnthropic429ExceededQuota: + "call.in-progress.error-vapifault-anthropic-429-exceeded-quota", + CallInProgressErrorProviderfaultAnthropic500ServerError: + "call.in-progress.error-providerfault-anthropic-500-server-error", + CallInProgressErrorProviderfaultAnthropic503ServerOverloadedError: + "call.in-progress.error-providerfault-anthropic-503-server-overloaded-error", + PipelineErrorAnthropicBedrock400BadRequestValidationFailed: + "pipeline-error-anthropic-bedrock-400-bad-request-validation-failed", + PipelineErrorAnthropicBedrock401Unauthorized: "pipeline-error-anthropic-bedrock-401-unauthorized", + PipelineErrorAnthropicBedrock403ModelAccessDenied: "pipeline-error-anthropic-bedrock-403-model-access-denied", + PipelineErrorAnthropicBedrock429ExceededQuota: "pipeline-error-anthropic-bedrock-429-exceeded-quota", + PipelineErrorAnthropicBedrock500ServerError: "pipeline-error-anthropic-bedrock-500-server-error", + PipelineErrorAnthropicBedrock503ServerOverloadedError: + "pipeline-error-anthropic-bedrock-503-server-overloaded-error", + PipelineErrorAnthropicBedrockLlmFailed: "pipeline-error-anthropic-bedrock-llm-failed", + CallInProgressErrorProviderfaultAnthropicBedrockLlmFailed: + "call.in-progress.error-providerfault-anthropic-bedrock-llm-failed", + CallInProgressErrorVapifaultAnthropicBedrock400BadRequestValidationFailed: + "call.in-progress.error-vapifault-anthropic-bedrock-400-bad-request-validation-failed", + CallInProgressErrorVapifaultAnthropicBedrock401Unauthorized: + "call.in-progress.error-vapifault-anthropic-bedrock-401-unauthorized", + CallInProgressErrorVapifaultAnthropicBedrock403ModelAccessDenied: + "call.in-progress.error-vapifault-anthropic-bedrock-403-model-access-denied", + CallInProgressErrorVapifaultAnthropicBedrock429ExceededQuota: + "call.in-progress.error-vapifault-anthropic-bedrock-429-exceeded-quota", + CallInProgressErrorProviderfaultAnthropicBedrock500ServerError: + "call.in-progress.error-providerfault-anthropic-bedrock-500-server-error", + CallInProgressErrorProviderfaultAnthropicBedrock503ServerOverloadedError: + "call.in-progress.error-providerfault-anthropic-bedrock-503-server-overloaded-error", + PipelineErrorAnthropicVertex400BadRequestValidationFailed: + "pipeline-error-anthropic-vertex-400-bad-request-validation-failed", + PipelineErrorAnthropicVertex401Unauthorized: "pipeline-error-anthropic-vertex-401-unauthorized", + PipelineErrorAnthropicVertex403ModelAccessDenied: "pipeline-error-anthropic-vertex-403-model-access-denied", + PipelineErrorAnthropicVertex429ExceededQuota: "pipeline-error-anthropic-vertex-429-exceeded-quota", + PipelineErrorAnthropicVertex500ServerError: "pipeline-error-anthropic-vertex-500-server-error", + PipelineErrorAnthropicVertex503ServerOverloadedError: "pipeline-error-anthropic-vertex-503-server-overloaded-error", + PipelineErrorAnthropicVertexLlmFailed: "pipeline-error-anthropic-vertex-llm-failed", + CallInProgressErrorProviderfaultAnthropicVertexLlmFailed: + "call.in-progress.error-providerfault-anthropic-vertex-llm-failed", + CallInProgressErrorVapifaultAnthropicVertex400BadRequestValidationFailed: + "call.in-progress.error-vapifault-anthropic-vertex-400-bad-request-validation-failed", + CallInProgressErrorVapifaultAnthropicVertex401Unauthorized: + "call.in-progress.error-vapifault-anthropic-vertex-401-unauthorized", + CallInProgressErrorVapifaultAnthropicVertex403ModelAccessDenied: + "call.in-progress.error-vapifault-anthropic-vertex-403-model-access-denied", + CallInProgressErrorVapifaultAnthropicVertex429ExceededQuota: + "call.in-progress.error-vapifault-anthropic-vertex-429-exceeded-quota", + CallInProgressErrorProviderfaultAnthropicVertex500ServerError: + "call.in-progress.error-providerfault-anthropic-vertex-500-server-error", + CallInProgressErrorProviderfaultAnthropicVertex503ServerOverloadedError: + "call.in-progress.error-providerfault-anthropic-vertex-503-server-overloaded-error", + PipelineErrorTogetherAi400BadRequestValidationFailed: + "pipeline-error-together-ai-400-bad-request-validation-failed", + PipelineErrorTogetherAi401Unauthorized: "pipeline-error-together-ai-401-unauthorized", + PipelineErrorTogetherAi403ModelAccessDenied: "pipeline-error-together-ai-403-model-access-denied", + PipelineErrorTogetherAi429ExceededQuota: "pipeline-error-together-ai-429-exceeded-quota", + PipelineErrorTogetherAi500ServerError: "pipeline-error-together-ai-500-server-error", + PipelineErrorTogetherAi503ServerOverloadedError: "pipeline-error-together-ai-503-server-overloaded-error", + PipelineErrorTogetherAiLlmFailed: "pipeline-error-together-ai-llm-failed", + CallInProgressErrorProviderfaultTogetherAiLlmFailed: "call.in-progress.error-providerfault-together-ai-llm-failed", + CallInProgressErrorVapifaultTogetherAi400BadRequestValidationFailed: + "call.in-progress.error-vapifault-together-ai-400-bad-request-validation-failed", + CallInProgressErrorVapifaultTogetherAi401Unauthorized: + "call.in-progress.error-vapifault-together-ai-401-unauthorized", + CallInProgressErrorVapifaultTogetherAi403ModelAccessDenied: + "call.in-progress.error-vapifault-together-ai-403-model-access-denied", + CallInProgressErrorVapifaultTogetherAi429ExceededQuota: + "call.in-progress.error-vapifault-together-ai-429-exceeded-quota", + CallInProgressErrorProviderfaultTogetherAi500ServerError: + "call.in-progress.error-providerfault-together-ai-500-server-error", + CallInProgressErrorProviderfaultTogetherAi503ServerOverloadedError: + "call.in-progress.error-providerfault-together-ai-503-server-overloaded-error", + PipelineErrorAnyscale400BadRequestValidationFailed: "pipeline-error-anyscale-400-bad-request-validation-failed", + PipelineErrorAnyscale401Unauthorized: "pipeline-error-anyscale-401-unauthorized", + PipelineErrorAnyscale403ModelAccessDenied: "pipeline-error-anyscale-403-model-access-denied", + PipelineErrorAnyscale429ExceededQuota: "pipeline-error-anyscale-429-exceeded-quota", + PipelineErrorAnyscale500ServerError: "pipeline-error-anyscale-500-server-error", + PipelineErrorAnyscale503ServerOverloadedError: "pipeline-error-anyscale-503-server-overloaded-error", + PipelineErrorAnyscaleLlmFailed: "pipeline-error-anyscale-llm-failed", + CallInProgressErrorProviderfaultAnyscaleLlmFailed: "call.in-progress.error-providerfault-anyscale-llm-failed", + CallInProgressErrorVapifaultAnyscale400BadRequestValidationFailed: + "call.in-progress.error-vapifault-anyscale-400-bad-request-validation-failed", + CallInProgressErrorVapifaultAnyscale401Unauthorized: "call.in-progress.error-vapifault-anyscale-401-unauthorized", + CallInProgressErrorVapifaultAnyscale403ModelAccessDenied: + "call.in-progress.error-vapifault-anyscale-403-model-access-denied", + CallInProgressErrorVapifaultAnyscale429ExceededQuota: + "call.in-progress.error-vapifault-anyscale-429-exceeded-quota", + CallInProgressErrorProviderfaultAnyscale500ServerError: + "call.in-progress.error-providerfault-anyscale-500-server-error", + CallInProgressErrorProviderfaultAnyscale503ServerOverloadedError: + "call.in-progress.error-providerfault-anyscale-503-server-overloaded-error", + PipelineErrorOpenrouter400BadRequestValidationFailed: "pipeline-error-openrouter-400-bad-request-validation-failed", + PipelineErrorOpenrouter401Unauthorized: "pipeline-error-openrouter-401-unauthorized", + PipelineErrorOpenrouter403ModelAccessDenied: "pipeline-error-openrouter-403-model-access-denied", + PipelineErrorOpenrouter429ExceededQuota: "pipeline-error-openrouter-429-exceeded-quota", + PipelineErrorOpenrouter500ServerError: "pipeline-error-openrouter-500-server-error", + PipelineErrorOpenrouter503ServerOverloadedError: "pipeline-error-openrouter-503-server-overloaded-error", + PipelineErrorOpenrouterLlmFailed: "pipeline-error-openrouter-llm-failed", + CallInProgressErrorProviderfaultOpenrouterLlmFailed: "call.in-progress.error-providerfault-openrouter-llm-failed", + CallInProgressErrorVapifaultOpenrouter400BadRequestValidationFailed: + "call.in-progress.error-vapifault-openrouter-400-bad-request-validation-failed", + CallInProgressErrorVapifaultOpenrouter401Unauthorized: + "call.in-progress.error-vapifault-openrouter-401-unauthorized", + CallInProgressErrorVapifaultOpenrouter403ModelAccessDenied: + "call.in-progress.error-vapifault-openrouter-403-model-access-denied", + CallInProgressErrorVapifaultOpenrouter429ExceededQuota: + "call.in-progress.error-vapifault-openrouter-429-exceeded-quota", + CallInProgressErrorProviderfaultOpenrouter500ServerError: + "call.in-progress.error-providerfault-openrouter-500-server-error", + CallInProgressErrorProviderfaultOpenrouter503ServerOverloadedError: + "call.in-progress.error-providerfault-openrouter-503-server-overloaded-error", + PipelineErrorPerplexityAi400BadRequestValidationFailed: + "pipeline-error-perplexity-ai-400-bad-request-validation-failed", + PipelineErrorPerplexityAi401Unauthorized: "pipeline-error-perplexity-ai-401-unauthorized", + PipelineErrorPerplexityAi403ModelAccessDenied: "pipeline-error-perplexity-ai-403-model-access-denied", + PipelineErrorPerplexityAi429ExceededQuota: "pipeline-error-perplexity-ai-429-exceeded-quota", + PipelineErrorPerplexityAi500ServerError: "pipeline-error-perplexity-ai-500-server-error", + PipelineErrorPerplexityAi503ServerOverloadedError: "pipeline-error-perplexity-ai-503-server-overloaded-error", + PipelineErrorPerplexityAiLlmFailed: "pipeline-error-perplexity-ai-llm-failed", + CallInProgressErrorProviderfaultPerplexityAiLlmFailed: + "call.in-progress.error-providerfault-perplexity-ai-llm-failed", + CallInProgressErrorVapifaultPerplexityAi400BadRequestValidationFailed: + "call.in-progress.error-vapifault-perplexity-ai-400-bad-request-validation-failed", + CallInProgressErrorVapifaultPerplexityAi401Unauthorized: + "call.in-progress.error-vapifault-perplexity-ai-401-unauthorized", + CallInProgressErrorVapifaultPerplexityAi403ModelAccessDenied: + "call.in-progress.error-vapifault-perplexity-ai-403-model-access-denied", + CallInProgressErrorVapifaultPerplexityAi429ExceededQuota: + "call.in-progress.error-vapifault-perplexity-ai-429-exceeded-quota", + CallInProgressErrorProviderfaultPerplexityAi500ServerError: + "call.in-progress.error-providerfault-perplexity-ai-500-server-error", + CallInProgressErrorProviderfaultPerplexityAi503ServerOverloadedError: + "call.in-progress.error-providerfault-perplexity-ai-503-server-overloaded-error", + PipelineErrorDeepinfra400BadRequestValidationFailed: "pipeline-error-deepinfra-400-bad-request-validation-failed", + PipelineErrorDeepinfra401Unauthorized: "pipeline-error-deepinfra-401-unauthorized", + PipelineErrorDeepinfra403ModelAccessDenied: "pipeline-error-deepinfra-403-model-access-denied", + PipelineErrorDeepinfra429ExceededQuota: "pipeline-error-deepinfra-429-exceeded-quota", + PipelineErrorDeepinfra500ServerError: "pipeline-error-deepinfra-500-server-error", + PipelineErrorDeepinfra503ServerOverloadedError: "pipeline-error-deepinfra-503-server-overloaded-error", + PipelineErrorDeepinfraLlmFailed: "pipeline-error-deepinfra-llm-failed", + CallInProgressErrorProviderfaultDeepinfraLlmFailed: "call.in-progress.error-providerfault-deepinfra-llm-failed", + CallInProgressErrorVapifaultDeepinfra400BadRequestValidationFailed: + "call.in-progress.error-vapifault-deepinfra-400-bad-request-validation-failed", + CallInProgressErrorVapifaultDeepinfra401Unauthorized: "call.in-progress.error-vapifault-deepinfra-401-unauthorized", + CallInProgressErrorVapifaultDeepinfra403ModelAccessDenied: + "call.in-progress.error-vapifault-deepinfra-403-model-access-denied", + CallInProgressErrorVapifaultDeepinfra429ExceededQuota: + "call.in-progress.error-vapifault-deepinfra-429-exceeded-quota", + CallInProgressErrorProviderfaultDeepinfra500ServerError: + "call.in-progress.error-providerfault-deepinfra-500-server-error", + CallInProgressErrorProviderfaultDeepinfra503ServerOverloadedError: + "call.in-progress.error-providerfault-deepinfra-503-server-overloaded-error", + PipelineErrorRunpod400BadRequestValidationFailed: "pipeline-error-runpod-400-bad-request-validation-failed", + PipelineErrorRunpod401Unauthorized: "pipeline-error-runpod-401-unauthorized", + PipelineErrorRunpod403ModelAccessDenied: "pipeline-error-runpod-403-model-access-denied", + PipelineErrorRunpod429ExceededQuota: "pipeline-error-runpod-429-exceeded-quota", + PipelineErrorRunpod500ServerError: "pipeline-error-runpod-500-server-error", + PipelineErrorRunpod503ServerOverloadedError: "pipeline-error-runpod-503-server-overloaded-error", + PipelineErrorRunpodLlmFailed: "pipeline-error-runpod-llm-failed", + CallInProgressErrorProviderfaultRunpodLlmFailed: "call.in-progress.error-providerfault-runpod-llm-failed", + CallInProgressErrorVapifaultRunpod400BadRequestValidationFailed: + "call.in-progress.error-vapifault-runpod-400-bad-request-validation-failed", + CallInProgressErrorVapifaultRunpod401Unauthorized: "call.in-progress.error-vapifault-runpod-401-unauthorized", + CallInProgressErrorVapifaultRunpod403ModelAccessDenied: + "call.in-progress.error-vapifault-runpod-403-model-access-denied", + CallInProgressErrorVapifaultRunpod429ExceededQuota: "call.in-progress.error-vapifault-runpod-429-exceeded-quota", + CallInProgressErrorProviderfaultRunpod500ServerError: + "call.in-progress.error-providerfault-runpod-500-server-error", + CallInProgressErrorProviderfaultRunpod503ServerOverloadedError: + "call.in-progress.error-providerfault-runpod-503-server-overloaded-error", + PipelineErrorCustomLlm400BadRequestValidationFailed: "pipeline-error-custom-llm-400-bad-request-validation-failed", + PipelineErrorCustomLlm401Unauthorized: "pipeline-error-custom-llm-401-unauthorized", + PipelineErrorCustomLlm403ModelAccessDenied: "pipeline-error-custom-llm-403-model-access-denied", + PipelineErrorCustomLlm429ExceededQuota: "pipeline-error-custom-llm-429-exceeded-quota", + PipelineErrorCustomLlm500ServerError: "pipeline-error-custom-llm-500-server-error", + PipelineErrorCustomLlm503ServerOverloadedError: "pipeline-error-custom-llm-503-server-overloaded-error", + PipelineErrorCustomLlmLlmFailed: "pipeline-error-custom-llm-llm-failed", + CallInProgressErrorProviderfaultCustomLlmLlmFailed: "call.in-progress.error-providerfault-custom-llm-llm-failed", + CallInProgressErrorVapifaultCustomLlm400BadRequestValidationFailed: + "call.in-progress.error-vapifault-custom-llm-400-bad-request-validation-failed", + CallInProgressErrorVapifaultCustomLlm401Unauthorized: + "call.in-progress.error-vapifault-custom-llm-401-unauthorized", + CallInProgressErrorVapifaultCustomLlm403ModelAccessDenied: + "call.in-progress.error-vapifault-custom-llm-403-model-access-denied", + CallInProgressErrorVapifaultCustomLlm429ExceededQuota: + "call.in-progress.error-vapifault-custom-llm-429-exceeded-quota", + CallInProgressErrorProviderfaultCustomLlm500ServerError: + "call.in-progress.error-providerfault-custom-llm-500-server-error", + CallInProgressErrorProviderfaultCustomLlm503ServerOverloadedError: + "call.in-progress.error-providerfault-custom-llm-503-server-overloaded-error", + PipelineErrorCustomVoiceFailed: "pipeline-error-custom-voice-failed", + PipelineErrorCartesiaSocketHangUp: "pipeline-error-cartesia-socket-hang-up", + PipelineErrorCartesiaRequestedPayment: "pipeline-error-cartesia-requested-payment", + PipelineErrorCartesia500ServerError: "pipeline-error-cartesia-500-server-error", + PipelineErrorCartesia502ServerError: "pipeline-error-cartesia-502-server-error", + PipelineErrorCartesia503ServerError: "pipeline-error-cartesia-503-server-error", + PipelineErrorCartesia522ServerError: "pipeline-error-cartesia-522-server-error", + CallInProgressErrorVapifaultCartesiaSocketHangUp: "call.in-progress.error-vapifault-cartesia-socket-hang-up", + CallInProgressErrorVapifaultCartesiaRequestedPayment: "call.in-progress.error-vapifault-cartesia-requested-payment", + CallInProgressErrorProviderfaultCartesia500ServerError: + "call.in-progress.error-providerfault-cartesia-500-server-error", + CallInProgressErrorProviderfaultCartesia503ServerError: + "call.in-progress.error-providerfault-cartesia-503-server-error", + CallInProgressErrorProviderfaultCartesia522ServerError: + "call.in-progress.error-providerfault-cartesia-522-server-error", + PipelineErrorElevenLabsVoiceNotFound: "pipeline-error-eleven-labs-voice-not-found", + PipelineErrorElevenLabsQuotaExceeded: "pipeline-error-eleven-labs-quota-exceeded", + PipelineErrorElevenLabsUnauthorizedAccess: "pipeline-error-eleven-labs-unauthorized-access", + PipelineErrorElevenLabsUnauthorizedToAccessModel: "pipeline-error-eleven-labs-unauthorized-to-access-model", + PipelineErrorElevenLabsProfessionalVoicesOnlyForCreatorPlus: + "pipeline-error-eleven-labs-professional-voices-only-for-creator-plus", + PipelineErrorElevenLabsBlockedFreePlanAndRequestedUpgrade: + "pipeline-error-eleven-labs-blocked-free-plan-and-requested-upgrade", + PipelineErrorElevenLabsBlockedConcurrentRequestsAndRequestedUpgrade: + "pipeline-error-eleven-labs-blocked-concurrent-requests-and-requested-upgrade", + PipelineErrorElevenLabsBlockedUsingInstantVoiceCloneAndRequestedUpgrade: + "pipeline-error-eleven-labs-blocked-using-instant-voice-clone-and-requested-upgrade", + PipelineErrorElevenLabsSystemBusyAndRequestedUpgrade: + "pipeline-error-eleven-labs-system-busy-and-requested-upgrade", + PipelineErrorElevenLabsVoiceNotFineTuned: "pipeline-error-eleven-labs-voice-not-fine-tuned", + PipelineErrorElevenLabsInvalidApiKey: "pipeline-error-eleven-labs-invalid-api-key", + PipelineErrorElevenLabsInvalidVoiceSamples: "pipeline-error-eleven-labs-invalid-voice-samples", + PipelineErrorElevenLabsVoiceDisabledByOwner: "pipeline-error-eleven-labs-voice-disabled-by-owner", + PipelineErrorElevenLabsVapiVoiceDisabledByOwner: "pipeline-error-eleven-labs-vapi-voice-disabled-by-owner", + PipelineErrorElevenLabsBlockedAccountInProbation: "pipeline-error-eleven-labs-blocked-account-in-probation", + PipelineErrorElevenLabsBlockedContentAgainstTheirPolicy: + "pipeline-error-eleven-labs-blocked-content-against-their-policy", + PipelineErrorElevenLabsMissingSamplesForVoiceClone: "pipeline-error-eleven-labs-missing-samples-for-voice-clone", + PipelineErrorElevenLabsVoiceNotFineTunedAndCannotBeUsed: + "pipeline-error-eleven-labs-voice-not-fine-tuned-and-cannot-be-used", + PipelineErrorElevenLabsVoiceNotAllowedForFreeUsers: "pipeline-error-eleven-labs-voice-not-allowed-for-free-users", + PipelineErrorElevenLabsMaxCharacterLimitExceeded: "pipeline-error-eleven-labs-max-character-limit-exceeded", + PipelineErrorElevenLabsBlockedVoicePotentiallyAgainstTermsOfServiceAndAwaitingVerification: + "pipeline-error-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification", + PipelineErrorElevenLabs500ServerError: "pipeline-error-eleven-labs-500-server-error", + PipelineErrorElevenLabs503ServerError: "pipeline-error-eleven-labs-503-server-error", + CallInProgressErrorVapifaultElevenLabsVoiceNotFound: "call.in-progress.error-vapifault-eleven-labs-voice-not-found", + CallInProgressErrorVapifaultElevenLabsQuotaExceeded: "call.in-progress.error-vapifault-eleven-labs-quota-exceeded", + CallInProgressErrorVapifaultElevenLabsUnauthorizedAccess: + "call.in-progress.error-vapifault-eleven-labs-unauthorized-access", + CallInProgressErrorVapifaultElevenLabsUnauthorizedToAccessModel: + "call.in-progress.error-vapifault-eleven-labs-unauthorized-to-access-model", + CallInProgressErrorVapifaultElevenLabsProfessionalVoicesOnlyForCreatorPlus: + "call.in-progress.error-vapifault-eleven-labs-professional-voices-only-for-creator-plus", + CallInProgressErrorVapifaultElevenLabsBlockedFreePlanAndRequestedUpgrade: + "call.in-progress.error-vapifault-eleven-labs-blocked-free-plan-and-requested-upgrade", + CallInProgressErrorVapifaultElevenLabsBlockedConcurrentRequestsAndRequestedUpgrade: + "call.in-progress.error-vapifault-eleven-labs-blocked-concurrent-requests-and-requested-upgrade", + CallInProgressErrorVapifaultElevenLabsBlockedUsingInstantVoiceCloneAndRequestedUpgrade: + "call.in-progress.error-vapifault-eleven-labs-blocked-using-instant-voice-clone-and-requested-upgrade", + CallInProgressErrorVapifaultElevenLabsSystemBusyAndRequestedUpgrade: + "call.in-progress.error-vapifault-eleven-labs-system-busy-and-requested-upgrade", + CallInProgressErrorVapifaultElevenLabsVoiceNotFineTuned: + "call.in-progress.error-vapifault-eleven-labs-voice-not-fine-tuned", + CallInProgressErrorVapifaultElevenLabsInvalidApiKey: "call.in-progress.error-vapifault-eleven-labs-invalid-api-key", + CallInProgressErrorVapifaultElevenLabsInvalidVoiceSamples: + "call.in-progress.error-vapifault-eleven-labs-invalid-voice-samples", + CallInProgressErrorVapifaultElevenLabsVoiceDisabledByOwner: + "call.in-progress.error-vapifault-eleven-labs-voice-disabled-by-owner", + CallInProgressErrorVapifaultElevenLabsBlockedAccountInProbation: + "call.in-progress.error-vapifault-eleven-labs-blocked-account-in-probation", + CallInProgressErrorVapifaultElevenLabsBlockedContentAgainstTheirPolicy: + "call.in-progress.error-vapifault-eleven-labs-blocked-content-against-their-policy", + CallInProgressErrorVapifaultElevenLabsMissingSamplesForVoiceClone: + "call.in-progress.error-vapifault-eleven-labs-missing-samples-for-voice-clone", + CallInProgressErrorVapifaultElevenLabsVoiceNotFineTunedAndCannotBeUsed: + "call.in-progress.error-vapifault-eleven-labs-voice-not-fine-tuned-and-cannot-be-used", + CallInProgressErrorVapifaultElevenLabsVoiceNotAllowedForFreeUsers: + "call.in-progress.error-vapifault-eleven-labs-voice-not-allowed-for-free-users", + CallInProgressErrorVapifaultElevenLabsMaxCharacterLimitExceeded: + "call.in-progress.error-vapifault-eleven-labs-max-character-limit-exceeded", + CallInProgressErrorVapifaultElevenLabsBlockedVoicePotentiallyAgainstTermsOfServiceAndAwaitingVerification: + "call.in-progress.error-vapifault-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification", + CallInProgressErrorProviderfaultElevenLabs500ServerError: + "call.in-progress.error-providerfault-eleven-labs-500-server-error", + CallInProgressErrorProviderfaultElevenLabs503ServerError: + "call.in-progress.error-providerfault-eleven-labs-503-server-error", + PipelineErrorPlayhtRequestTimedOut: "pipeline-error-playht-request-timed-out", + PipelineErrorPlayhtInvalidVoice: "pipeline-error-playht-invalid-voice", + PipelineErrorPlayhtUnexpectedError: "pipeline-error-playht-unexpected-error", + PipelineErrorPlayhtOutOfCredits: "pipeline-error-playht-out-of-credits", + PipelineErrorPlayhtInvalidEmotion: "pipeline-error-playht-invalid-emotion", + PipelineErrorPlayhtVoiceMustBeAValidVoiceManifestUri: + "pipeline-error-playht-voice-must-be-a-valid-voice-manifest-uri", + PipelineErrorPlayht401Unauthorized: "pipeline-error-playht-401-unauthorized", + PipelineErrorPlayht403ForbiddenOutOfCharacters: "pipeline-error-playht-403-forbidden-out-of-characters", + PipelineErrorPlayht403ForbiddenApiAccessNotAvailable: + "pipeline-error-playht-403-forbidden-api-access-not-available", + PipelineErrorPlayht429ExceededQuota: "pipeline-error-playht-429-exceeded-quota", + PipelineErrorPlayht502GatewayError: "pipeline-error-playht-502-gateway-error", + PipelineErrorPlayht504GatewayError: "pipeline-error-playht-504-gateway-error", + CallInProgressErrorVapifaultPlayhtRequestTimedOut: "call.in-progress.error-vapifault-playht-request-timed-out", + CallInProgressErrorVapifaultPlayhtInvalidVoice: "call.in-progress.error-vapifault-playht-invalid-voice", + CallInProgressErrorVapifaultPlayhtUnexpectedError: "call.in-progress.error-vapifault-playht-unexpected-error", + CallInProgressErrorVapifaultPlayhtOutOfCredits: "call.in-progress.error-vapifault-playht-out-of-credits", + CallInProgressErrorVapifaultPlayhtInvalidEmotion: "call.in-progress.error-vapifault-playht-invalid-emotion", + CallInProgressErrorVapifaultPlayhtVoiceMustBeAValidVoiceManifestUri: + "call.in-progress.error-vapifault-playht-voice-must-be-a-valid-voice-manifest-uri", + CallInProgressErrorVapifaultPlayht401Unauthorized: "call.in-progress.error-vapifault-playht-401-unauthorized", + CallInProgressErrorVapifaultPlayht403ForbiddenOutOfCharacters: + "call.in-progress.error-vapifault-playht-403-forbidden-out-of-characters", + CallInProgressErrorVapifaultPlayht403ForbiddenApiAccessNotAvailable: + "call.in-progress.error-vapifault-playht-403-forbidden-api-access-not-available", + CallInProgressErrorVapifaultPlayht429ExceededQuota: "call.in-progress.error-vapifault-playht-429-exceeded-quota", + CallInProgressErrorProviderfaultPlayht502GatewayError: + "call.in-progress.error-providerfault-playht-502-gateway-error", + CallInProgressErrorProviderfaultPlayht504GatewayError: + "call.in-progress.error-providerfault-playht-504-gateway-error", + PipelineErrorCustomTranscriberFailed: "pipeline-error-custom-transcriber-failed", + CallInProgressErrorVapifaultCustomTranscriberFailed: "call.in-progress.error-vapifault-custom-transcriber-failed", + PipelineErrorElevenLabsTranscriberFailed: "pipeline-error-eleven-labs-transcriber-failed", + CallInProgressErrorVapifaultElevenLabsTranscriberFailed: + "call.in-progress.error-vapifault-eleven-labs-transcriber-failed", + PipelineErrorDeepgramReturning400NoSuchModelLanguageTierCombination: + "pipeline-error-deepgram-returning-400-no-such-model-language-tier-combination", + PipelineErrorDeepgramReturning401InvalidCredentials: "pipeline-error-deepgram-returning-401-invalid-credentials", + PipelineErrorDeepgramReturning403ModelAccessDenied: "pipeline-error-deepgram-returning-403-model-access-denied", + PipelineErrorDeepgramReturning404NotFound: "pipeline-error-deepgram-returning-404-not-found", + PipelineErrorDeepgramReturning500InvalidJson: "pipeline-error-deepgram-returning-500-invalid-json", + PipelineErrorDeepgramReturning502NetworkError: "pipeline-error-deepgram-returning-502-network-error", + PipelineErrorDeepgramReturning502BadGatewayEhostunreach: + "pipeline-error-deepgram-returning-502-bad-gateway-ehostunreach", + PipelineErrorDeepgramReturningEconnreset: "pipeline-error-deepgram-returning-econnreset", + CallInProgressErrorVapifaultDeepgramReturning400NoSuchModelLanguageTierCombination: + "call.in-progress.error-vapifault-deepgram-returning-400-no-such-model-language-tier-combination", + CallInProgressErrorVapifaultDeepgramReturning401InvalidCredentials: + "call.in-progress.error-vapifault-deepgram-returning-401-invalid-credentials", + CallInProgressErrorVapifaultDeepgramReturning404NotFound: + "call.in-progress.error-vapifault-deepgram-returning-404-not-found", + CallInProgressErrorVapifaultDeepgramReturning403ModelAccessDenied: + "call.in-progress.error-vapifault-deepgram-returning-403-model-access-denied", + CallInProgressErrorProviderfaultDeepgramReturning500InvalidJson: + "call.in-progress.error-providerfault-deepgram-returning-500-invalid-json", + CallInProgressErrorProviderfaultDeepgramReturning502NetworkError: + "call.in-progress.error-providerfault-deepgram-returning-502-network-error", + CallInProgressErrorProviderfaultDeepgramReturning502BadGatewayEhostunreach: + "call.in-progress.error-providerfault-deepgram-returning-502-bad-gateway-ehostunreach", + PipelineErrorGoogleTranscriberFailed: "pipeline-error-google-transcriber-failed", + CallInProgressErrorVapifaultGoogleTranscriberFailed: "call.in-progress.error-vapifault-google-transcriber-failed", + PipelineErrorOpenaiTranscriberFailed: "pipeline-error-openai-transcriber-failed", + CallInProgressErrorVapifaultOpenaiTranscriberFailed: "call.in-progress.error-vapifault-openai-transcriber-failed", + CallInProgressErrorWarmTransferMaxDuration: "call.in-progress.error-warm-transfer-max-duration", + CallInProgressErrorWarmTransferAssistantCancelled: "call.in-progress.error-warm-transfer-assistant-cancelled", + CallInProgressErrorWarmTransferSilenceTimeout: "call.in-progress.error-warm-transfer-silence-timeout", + CallInProgressErrorWarmTransferMicrophoneTimeout: "call.in-progress.error-warm-transfer-microphone-timeout", + CallInProgressErrorWarmTransferHangTimeout: "call.in-progress.error-warm-transfer-hang-timeout", + CallInProgressErrorWarmTransferIdleTimeout: "call.in-progress.error-warm-transfer-idle-timeout", + AssistantEndedCall: "assistant-ended-call", + AssistantSaidEndCallPhrase: "assistant-said-end-call-phrase", + AssistantEndedCallWithHangupTask: "assistant-ended-call-with-hangup-task", + AssistantEndedCallAfterMessageSpoken: "assistant-ended-call-after-message-spoken", + AssistantForwardedCall: "assistant-forwarded-call", + AssistantJoinTimedOut: "assistant-join-timed-out", + CallInProgressErrorAssistantDidNotReceiveCustomerAudio: + "call.in-progress.error-assistant-did-not-receive-customer-audio", + CallInProgressErrorTransferFailed: "call.in-progress.error-transfer-failed", + CustomerBusy: "customer-busy", + CustomerEndedCall: "customer-ended-call", + CustomerEndedCallBeforeWarmTransfer: "customer-ended-call-before-warm-transfer", + CustomerEndedCallAfterWarmTransferAttempt: "customer-ended-call-after-warm-transfer-attempt", + CustomerDidNotAnswer: "customer-did-not-answer", + CustomerDidNotGiveMicrophonePermission: "customer-did-not-give-microphone-permission", + ExceededMaxDuration: "exceeded-max-duration", + ManuallyCanceled: "manually-canceled", + PhoneCallProviderClosedWebsocket: "phone-call-provider-closed-websocket", + CallForwardingOperatorBusy: "call.forwarding.operator-busy", + SilenceTimedOut: "silence-timed-out", + CallInProgressErrorSipInboundCallFailedToConnect: "call.in-progress.error-sip-inbound-call-failed-to-connect", + CallInProgressErrorProviderfaultOutboundSip403Forbidden: + "call.in-progress.error-providerfault-outbound-sip-403-forbidden", + CallInProgressErrorProviderfaultOutboundSip407ProxyAuthenticationRequired: + "call.in-progress.error-providerfault-outbound-sip-407-proxy-authentication-required", + CallInProgressErrorProviderfaultOutboundSip503ServiceUnavailable: + "call.in-progress.error-providerfault-outbound-sip-503-service-unavailable", + CallInProgressErrorProviderfaultOutboundSip480TemporarilyUnavailable: + "call.in-progress.error-providerfault-outbound-sip-480-temporarily-unavailable", + CallInProgressErrorSipOutboundCallFailedToConnect: "call.in-progress.error-sip-outbound-call-failed-to-connect", + CallRingingHookExecutedSay: "call.ringing.hook-executed-say", + CallRingingHookExecutedTransfer: "call.ringing.hook-executed-transfer", + CallEndingHookExecutedSay: "call.ending.hook-executed-say", + CallEndingHookExecutedTransfer: "call.ending.hook-executed-transfer", + CallRingingSipInboundCallerHungupBeforeCallConnect: "call.ringing.sip-inbound-caller-hungup-before-call-connect", + CallRingingErrorSipInboundCallFailedToConnect: "call.ringing.error-sip-inbound-call-failed-to-connect", + TwilioFailedToConnectCall: "twilio-failed-to-connect-call", + TwilioReportedCustomerMisdialed: "twilio-reported-customer-misdialed", + VonageRejected: "vonage-rejected", + Voicemail: "voicemail", + CallDeleted: "call-deleted", +} as const; diff --git a/src/api/types/ServerMessageEndOfCallReportPhoneNumber.ts b/src/api/types/ServerMessageEndOfCallReportPhoneNumber.ts new file mode 100644 index 00000000..688295f3 --- /dev/null +++ b/src/api/types/ServerMessageEndOfCallReportPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ServerMessageEndOfCallReportPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ServerMessageHandoffDestinationRequest.ts b/src/api/types/ServerMessageHandoffDestinationRequest.ts index 12fe9446..f36f0cde 100644 --- a/src/api/types/ServerMessageHandoffDestinationRequest.ts +++ b/src/api/types/ServerMessageHandoffDestinationRequest.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ServerMessageHandoffDestinationRequest { /** This is the phone number that the message is associated with. */ - phoneNumber?: ServerMessageHandoffDestinationRequest.PhoneNumber; + phoneNumber?: Vapi.ServerMessageHandoffDestinationRequestPhoneNumber; /** This is the type of the message. "handoff-destination-request" is sent when the model is requesting handoff but destination is unknown. */ type: "handoff-destination-request"; /** This is the timestamp of the message. */ @@ -28,15 +28,3 @@ export interface ServerMessageHandoffDestinationRequest { /** This is the parameters of the handoff destination request. */ parameters: Record; } - -export namespace ServerMessageHandoffDestinationRequest { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ServerMessageHandoffDestinationRequestPhoneNumber.ts b/src/api/types/ServerMessageHandoffDestinationRequestPhoneNumber.ts new file mode 100644 index 00000000..0275bc95 --- /dev/null +++ b/src/api/types/ServerMessageHandoffDestinationRequestPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ServerMessageHandoffDestinationRequestPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ServerMessageHang.ts b/src/api/types/ServerMessageHang.ts index 63a79d0e..2b24970d 100644 --- a/src/api/types/ServerMessageHang.ts +++ b/src/api/types/ServerMessageHang.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ServerMessageHang { /** This is the phone number that the message is associated with. */ - phoneNumber?: ServerMessageHang.PhoneNumber; + phoneNumber?: Vapi.ServerMessageHangPhoneNumber; /** * This is the type of the message. "hang" is sent when the assistant is hanging due to a delay. The delay can be caused by many factors, such as: * - the model is too slow to respond @@ -32,15 +32,3 @@ export interface ServerMessageHang { /** This is the chat object. */ chat?: Vapi.Chat; } - -export namespace ServerMessageHang { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ServerMessageHangPhoneNumber.ts b/src/api/types/ServerMessageHangPhoneNumber.ts new file mode 100644 index 00000000..eba50577 --- /dev/null +++ b/src/api/types/ServerMessageHangPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ServerMessageHangPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ServerMessageKnowledgeBaseRequest.ts b/src/api/types/ServerMessageKnowledgeBaseRequest.ts index c352e6c9..54c0c9c2 100644 --- a/src/api/types/ServerMessageKnowledgeBaseRequest.ts +++ b/src/api/types/ServerMessageKnowledgeBaseRequest.ts @@ -6,11 +6,11 @@ import * as Vapi from "../index.js"; export interface ServerMessageKnowledgeBaseRequest { /** This is the phone number that the message is associated with. */ - phoneNumber?: ServerMessageKnowledgeBaseRequest.PhoneNumber; + phoneNumber?: Vapi.ServerMessageKnowledgeBaseRequestPhoneNumber; /** This is the type of the message. "knowledge-base-request" is sent to request knowledge base documents. To enable, use `assistant.knowledgeBase.provider=custom-knowledge-base`. */ type: "knowledge-base-request"; /** These are the messages that are going to be sent to the `model` right after the `knowledge-base-request` webhook completes. */ - messages?: ServerMessageKnowledgeBaseRequest.Messages.Item[]; + messages?: Vapi.ServerMessageKnowledgeBaseRequestMessagesItem[]; /** This is just `messages` formatted for OpenAI. */ messagesOpenAIFormatted: Vapi.OpenAiMessage[]; /** This is the timestamp of the message. */ @@ -30,25 +30,3 @@ export interface ServerMessageKnowledgeBaseRequest { /** This is the chat object. */ chat?: Vapi.Chat; } - -export namespace ServerMessageKnowledgeBaseRequest { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.UserMessage - | Vapi.SystemMessage - | Vapi.BotMessage - | Vapi.ToolCallMessage - | Vapi.ToolCallResultMessage; - } -} diff --git a/src/api/types/ServerMessageKnowledgeBaseRequestMessagesItem.ts b/src/api/types/ServerMessageKnowledgeBaseRequestMessagesItem.ts new file mode 100644 index 00000000..a95e400d --- /dev/null +++ b/src/api/types/ServerMessageKnowledgeBaseRequestMessagesItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type ServerMessageKnowledgeBaseRequestMessagesItem = + | Vapi.UserMessage + | Vapi.SystemMessage + | Vapi.BotMessage + | Vapi.ToolCallMessage + | Vapi.ToolCallResultMessage; diff --git a/src/api/types/ServerMessageKnowledgeBaseRequestPhoneNumber.ts b/src/api/types/ServerMessageKnowledgeBaseRequestPhoneNumber.ts new file mode 100644 index 00000000..9f95983c --- /dev/null +++ b/src/api/types/ServerMessageKnowledgeBaseRequestPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ServerMessageKnowledgeBaseRequestPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ServerMessageLanguageChangeDetected.ts b/src/api/types/ServerMessageLanguageChangeDetected.ts index d1d15ce0..821c7cb6 100644 --- a/src/api/types/ServerMessageLanguageChangeDetected.ts +++ b/src/api/types/ServerMessageLanguageChangeDetected.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ServerMessageLanguageChangeDetected { /** This is the phone number that the message is associated with. */ - phoneNumber?: ServerMessageLanguageChangeDetected.PhoneNumber; + phoneNumber?: Vapi.ServerMessageLanguageChangeDetectedPhoneNumber; /** This is the type of the message. "language-change-detected" is sent when the transcriber is automatically switched based on the detected language. */ type: "language-change-detected"; /** This is the timestamp of the message. */ @@ -28,15 +28,3 @@ export interface ServerMessageLanguageChangeDetected { /** This is the language the transcriber is switched to. */ language: string; } - -export namespace ServerMessageLanguageChangeDetected { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ServerMessageLanguageChangeDetectedPhoneNumber.ts b/src/api/types/ServerMessageLanguageChangeDetectedPhoneNumber.ts new file mode 100644 index 00000000..884225c2 --- /dev/null +++ b/src/api/types/ServerMessageLanguageChangeDetectedPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ServerMessageLanguageChangeDetectedPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ServerMessageMessage.ts b/src/api/types/ServerMessageMessage.ts new file mode 100644 index 00000000..556035f9 --- /dev/null +++ b/src/api/types/ServerMessageMessage.ts @@ -0,0 +1,43 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * These are all the messages that can be sent to your server before, after and during the call. Configure the messages you'd like to receive in `assistant.serverMessages`. + * + * The server where the message is sent is determined by the following precedence order: + * + * 1. `tool.server.url` (if configured, and only for "tool-calls" message) + * 2. `assistant.serverUrl` (if configure) + * 3. `phoneNumber.serverUrl` (if configured) + * 4. `org.serverUrl` (if configured) + */ +export type ServerMessageMessage = + | Vapi.ServerMessageAssistantRequest + | Vapi.ServerMessageConversationUpdate + | Vapi.ServerMessageEndOfCallReport + | Vapi.ServerMessageHandoffDestinationRequest + | Vapi.ServerMessageHang + | Vapi.ServerMessageKnowledgeBaseRequest + | Vapi.ServerMessageModelOutput + | Vapi.ServerMessagePhoneCallControl + | Vapi.ServerMessageSpeechUpdate + | Vapi.ServerMessageStatusUpdate + | Vapi.ServerMessageToolCalls + | Vapi.ServerMessageTransferDestinationRequest + | Vapi.ServerMessageTransferUpdate + | Vapi.ServerMessageTranscript + | Vapi.ServerMessageUserInterrupted + | Vapi.ServerMessageLanguageChangeDetected + | Vapi.ServerMessageVoiceInput + | Vapi.ServerMessageVoiceRequest + | Vapi.ServerMessageCallEndpointingRequest + | Vapi.ServerMessageChatCreated + | Vapi.ServerMessageChatDeleted + | Vapi.ServerMessageSessionCreated + | Vapi.ServerMessageSessionUpdated + | Vapi.ServerMessageSessionDeleted + | Vapi.ServerMessageCallDeleted + | Vapi.ServerMessageCallDeleteFailed; diff --git a/src/api/types/ServerMessageModelOutput.ts b/src/api/types/ServerMessageModelOutput.ts index 1aab013a..a639192c 100644 --- a/src/api/types/ServerMessageModelOutput.ts +++ b/src/api/types/ServerMessageModelOutput.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ServerMessageModelOutput { /** This is the phone number that the message is associated with. */ - phoneNumber?: ServerMessageModelOutput.PhoneNumber; + phoneNumber?: Vapi.ServerMessageModelOutputPhoneNumber; /** This is the type of the message. "model-output" is sent as the model outputs tokens. */ type: "model-output"; /** This is the timestamp of the message. */ @@ -28,15 +28,3 @@ export interface ServerMessageModelOutput { /** This is the output of the model. It can be a token or tool call. */ output: Record; } - -export namespace ServerMessageModelOutput { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ServerMessageModelOutputPhoneNumber.ts b/src/api/types/ServerMessageModelOutputPhoneNumber.ts new file mode 100644 index 00000000..d95f78ae --- /dev/null +++ b/src/api/types/ServerMessageModelOutputPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ServerMessageModelOutputPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ServerMessagePhoneCallControl.ts b/src/api/types/ServerMessagePhoneCallControl.ts index 92e78ade..39d311db 100644 --- a/src/api/types/ServerMessagePhoneCallControl.ts +++ b/src/api/types/ServerMessagePhoneCallControl.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ServerMessagePhoneCallControl { /** This is the phone number that the message is associated with. */ - phoneNumber?: ServerMessagePhoneCallControl.PhoneNumber; + phoneNumber?: Vapi.ServerMessagePhoneCallControlPhoneNumber; /** * This is the type of the message. "phone-call-control" is an advanced type of message. * @@ -14,9 +14,9 @@ export interface ServerMessagePhoneCallControl { */ type: "phone-call-control"; /** This is the request to control the phone call. */ - request: ServerMessagePhoneCallControl.Request; + request: Vapi.ServerMessagePhoneCallControlRequest; /** This is the destination to forward the call to if the request is "forward". */ - destination?: ServerMessagePhoneCallControl.Destination; + destination?: Vapi.ServerMessagePhoneCallControlDestination; /** This is the timestamp of the message. */ timestamp?: number; /** @@ -34,27 +34,3 @@ export interface ServerMessagePhoneCallControl { /** This is the chat object. */ chat?: Vapi.Chat; } - -export namespace ServerMessagePhoneCallControl { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; - /** - * This is the request to control the phone call. - */ - export type Request = "forward" | "hang-up"; - export const Request = { - Forward: "forward", - HangUp: "hang-up", - } as const; - /** - * This is the destination to forward the call to if the request is "forward". - */ - export type Destination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; -} diff --git a/src/api/types/ServerMessagePhoneCallControlDestination.ts b/src/api/types/ServerMessagePhoneCallControlDestination.ts new file mode 100644 index 00000000..2832aad3 --- /dev/null +++ b/src/api/types/ServerMessagePhoneCallControlDestination.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the destination to forward the call to if the request is "forward". + */ +export type ServerMessagePhoneCallControlDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; diff --git a/src/api/types/ServerMessagePhoneCallControlPhoneNumber.ts b/src/api/types/ServerMessagePhoneCallControlPhoneNumber.ts new file mode 100644 index 00000000..2591e0e7 --- /dev/null +++ b/src/api/types/ServerMessagePhoneCallControlPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ServerMessagePhoneCallControlPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ServerMessagePhoneCallControlRequest.ts b/src/api/types/ServerMessagePhoneCallControlRequest.ts new file mode 100644 index 00000000..8f661c7b --- /dev/null +++ b/src/api/types/ServerMessagePhoneCallControlRequest.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the request to control the phone call. + */ +export type ServerMessagePhoneCallControlRequest = "forward" | "hang-up"; +export const ServerMessagePhoneCallControlRequest = { + Forward: "forward", + HangUp: "hang-up", +} as const; diff --git a/src/api/types/ServerMessageResponse.ts b/src/api/types/ServerMessageResponse.ts index 2fbc299c..456aa1ef 100644 --- a/src/api/types/ServerMessageResponse.ts +++ b/src/api/types/ServerMessageResponse.ts @@ -10,21 +10,5 @@ export interface ServerMessageResponse { * * Note: Most messages don't expect a response. Only "assistant-request", "tool-calls" and "transfer-destination-request" do. */ - messageResponse: ServerMessageResponse.MessageResponse; -} - -export namespace ServerMessageResponse { - /** - * This is the response that is expected from the server to the message. - * - * Note: Most messages don't expect a response. Only "assistant-request", "tool-calls" and "transfer-destination-request" do. - */ - export type MessageResponse = - | Vapi.ServerMessageResponseAssistantRequest - | Vapi.ServerMessageResponseHandoffDestinationRequest - | Vapi.ServerMessageResponseKnowledgeBaseRequest - | Vapi.ServerMessageResponseToolCalls - | Vapi.ServerMessageResponseTransferDestinationRequest - | Vapi.ServerMessageResponseVoiceRequest - | Vapi.ServerMessageResponseCallEndpointingRequest; + messageResponse: Vapi.ServerMessageResponseMessageResponse; } diff --git a/src/api/types/ServerMessageResponseAssistantRequest.ts b/src/api/types/ServerMessageResponseAssistantRequest.ts index 846a3498..3c56299b 100644 --- a/src/api/types/ServerMessageResponseAssistantRequest.ts +++ b/src/api/types/ServerMessageResponseAssistantRequest.ts @@ -10,7 +10,7 @@ export interface ServerMessageResponseAssistantRequest { * * If this is sent, `assistantId`, `assistant`, `squadId`, and `squad` are ignored. */ - destination?: ServerMessageResponseAssistantRequest.Destination; + destination?: Vapi.ServerMessageResponseAssistantRequestDestination; /** * This is the assistant ID that will be used for the call. To use a transient assistant, use `assistant` instead. * @@ -76,12 +76,3 @@ export interface ServerMessageResponseAssistantRequest { */ error?: string; } - -export namespace ServerMessageResponseAssistantRequest { - /** - * This is the destination to transfer the inbound call to. This will immediately transfer without using any assistants. - * - * If this is sent, `assistantId`, `assistant`, `squadId`, and `squad` are ignored. - */ - export type Destination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; -} diff --git a/src/api/types/ServerMessageResponseAssistantRequestDestination.ts b/src/api/types/ServerMessageResponseAssistantRequestDestination.ts new file mode 100644 index 00000000..11f8009b --- /dev/null +++ b/src/api/types/ServerMessageResponseAssistantRequestDestination.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the destination to transfer the inbound call to. This will immediately transfer without using any assistants. + * + * If this is sent, `assistantId`, `assistant`, `squadId`, and `squad` are ignored. + */ +export type ServerMessageResponseAssistantRequestDestination = + | Vapi.TransferDestinationNumber + | Vapi.TransferDestinationSip; diff --git a/src/api/types/ServerMessageResponseMessageResponse.ts b/src/api/types/ServerMessageResponseMessageResponse.ts new file mode 100644 index 00000000..b3189e75 --- /dev/null +++ b/src/api/types/ServerMessageResponseMessageResponse.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the response that is expected from the server to the message. + * + * Note: Most messages don't expect a response. Only "assistant-request", "tool-calls" and "transfer-destination-request" do. + */ +export type ServerMessageResponseMessageResponse = + | Vapi.ServerMessageResponseAssistantRequest + | Vapi.ServerMessageResponseHandoffDestinationRequest + | Vapi.ServerMessageResponseKnowledgeBaseRequest + | Vapi.ServerMessageResponseToolCalls + | Vapi.ServerMessageResponseTransferDestinationRequest + | Vapi.ServerMessageResponseVoiceRequest + | Vapi.ServerMessageResponseCallEndpointingRequest; diff --git a/src/api/types/ServerMessageResponseTransferDestinationRequest.ts b/src/api/types/ServerMessageResponseTransferDestinationRequest.ts index 3a6ef11b..323e4560 100644 --- a/src/api/types/ServerMessageResponseTransferDestinationRequest.ts +++ b/src/api/types/ServerMessageResponseTransferDestinationRequest.ts @@ -6,27 +6,9 @@ import * as Vapi from "../index.js"; export interface ServerMessageResponseTransferDestinationRequest { /** This is the destination you'd like the call to be transferred to. */ - destination?: ServerMessageResponseTransferDestinationRequest.Destination; + destination?: Vapi.ServerMessageResponseTransferDestinationRequestDestination; /** This is the message that will be spoken to the user as the tool is running. */ - message?: ServerMessageResponseTransferDestinationRequest.Message; + message?: Vapi.ServerMessageResponseTransferDestinationRequestMessage; /** This is the error message if the transfer should not be made. */ error?: string; } - -export namespace ServerMessageResponseTransferDestinationRequest { - /** - * This is the destination you'd like the call to be transferred to. - */ - export type Destination = - | Vapi.TransferDestinationAssistant - | Vapi.TransferDestinationNumber - | Vapi.TransferDestinationSip; - /** - * This is the message that will be spoken to the user as the tool is running. - */ - export type Message = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; -} diff --git a/src/api/types/ServerMessageResponseTransferDestinationRequestDestination.ts b/src/api/types/ServerMessageResponseTransferDestinationRequestDestination.ts new file mode 100644 index 00000000..e0e6bba9 --- /dev/null +++ b/src/api/types/ServerMessageResponseTransferDestinationRequestDestination.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the destination you'd like the call to be transferred to. + */ +export type ServerMessageResponseTransferDestinationRequestDestination = + | Vapi.TransferDestinationAssistant + | Vapi.TransferDestinationNumber + | Vapi.TransferDestinationSip; diff --git a/src/api/types/ServerMessageResponseTransferDestinationRequestMessage.ts b/src/api/types/ServerMessageResponseTransferDestinationRequestMessage.ts new file mode 100644 index 00000000..986268a2 --- /dev/null +++ b/src/api/types/ServerMessageResponseTransferDestinationRequestMessage.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the message that will be spoken to the user as the tool is running. + */ +export type ServerMessageResponseTransferDestinationRequestMessage = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/ServerMessageSessionCreated.ts b/src/api/types/ServerMessageSessionCreated.ts index d6adee22..f1d811d2 100644 --- a/src/api/types/ServerMessageSessionCreated.ts +++ b/src/api/types/ServerMessageSessionCreated.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ServerMessageSessionCreated { /** This is the phone number that the message is associated with. */ - phoneNumber?: ServerMessageSessionCreated.PhoneNumber; + phoneNumber?: Vapi.ServerMessageSessionCreatedPhoneNumber; /** This is the type of the message. "session.created" is sent when a new session is created. */ type: "session.created"; /** This is the timestamp of the message. */ @@ -28,15 +28,3 @@ export interface ServerMessageSessionCreated { /** This is the session that was created. */ session: Vapi.Session; } - -export namespace ServerMessageSessionCreated { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ServerMessageSessionCreatedPhoneNumber.ts b/src/api/types/ServerMessageSessionCreatedPhoneNumber.ts new file mode 100644 index 00000000..5f311e9e --- /dev/null +++ b/src/api/types/ServerMessageSessionCreatedPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ServerMessageSessionCreatedPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ServerMessageSessionDeleted.ts b/src/api/types/ServerMessageSessionDeleted.ts index f1ee1928..3d90cb73 100644 --- a/src/api/types/ServerMessageSessionDeleted.ts +++ b/src/api/types/ServerMessageSessionDeleted.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ServerMessageSessionDeleted { /** This is the phone number that the message is associated with. */ - phoneNumber?: ServerMessageSessionDeleted.PhoneNumber; + phoneNumber?: Vapi.ServerMessageSessionDeletedPhoneNumber; /** This is the type of the message. "session.deleted" is sent when a session is deleted. */ type: "session.deleted"; /** This is the timestamp of the message. */ @@ -28,15 +28,3 @@ export interface ServerMessageSessionDeleted { /** This is the session that was deleted. */ session: Vapi.Session; } - -export namespace ServerMessageSessionDeleted { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ServerMessageSessionDeletedPhoneNumber.ts b/src/api/types/ServerMessageSessionDeletedPhoneNumber.ts new file mode 100644 index 00000000..26c6da73 --- /dev/null +++ b/src/api/types/ServerMessageSessionDeletedPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ServerMessageSessionDeletedPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ServerMessageSessionUpdated.ts b/src/api/types/ServerMessageSessionUpdated.ts index 93e112cf..3b45eb4a 100644 --- a/src/api/types/ServerMessageSessionUpdated.ts +++ b/src/api/types/ServerMessageSessionUpdated.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ServerMessageSessionUpdated { /** This is the phone number that the message is associated with. */ - phoneNumber?: ServerMessageSessionUpdated.PhoneNumber; + phoneNumber?: Vapi.ServerMessageSessionUpdatedPhoneNumber; /** This is the type of the message. "session.updated" is sent when a session is updated. */ type: "session.updated"; /** This is the timestamp of the message. */ @@ -28,15 +28,3 @@ export interface ServerMessageSessionUpdated { /** This is the session that was updated. */ session: Vapi.Session; } - -export namespace ServerMessageSessionUpdated { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ServerMessageSessionUpdatedPhoneNumber.ts b/src/api/types/ServerMessageSessionUpdatedPhoneNumber.ts new file mode 100644 index 00000000..5ae786be --- /dev/null +++ b/src/api/types/ServerMessageSessionUpdatedPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ServerMessageSessionUpdatedPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ServerMessageSpeechUpdate.ts b/src/api/types/ServerMessageSpeechUpdate.ts index b3fc3f31..8a5733d3 100644 --- a/src/api/types/ServerMessageSpeechUpdate.ts +++ b/src/api/types/ServerMessageSpeechUpdate.ts @@ -6,13 +6,13 @@ import * as Vapi from "../index.js"; export interface ServerMessageSpeechUpdate { /** This is the phone number that the message is associated with. */ - phoneNumber?: ServerMessageSpeechUpdate.PhoneNumber; + phoneNumber?: Vapi.ServerMessageSpeechUpdatePhoneNumber; /** This is the type of the message. "speech-update" is sent whenever assistant or user start or stop speaking. */ type: "speech-update"; /** This is the status of the speech update. */ - status: ServerMessageSpeechUpdate.Status; + status: Vapi.ServerMessageSpeechUpdateStatus; /** This is the role which the speech update is for. */ - role: ServerMessageSpeechUpdate.Role; + role: Vapi.ServerMessageSpeechUpdateRole; /** This is the turn number of the speech update (0-indexed). */ turn?: number; /** This is the timestamp of the message. */ @@ -32,31 +32,3 @@ export interface ServerMessageSpeechUpdate { /** This is the chat object. */ chat?: Vapi.Chat; } - -export namespace ServerMessageSpeechUpdate { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; - /** - * This is the status of the speech update. - */ - export type Status = "started" | "stopped"; - export const Status = { - Started: "started", - Stopped: "stopped", - } as const; - /** - * This is the role which the speech update is for. - */ - export type Role = "assistant" | "user"; - export const Role = { - Assistant: "assistant", - User: "user", - } as const; -} diff --git a/src/api/types/ServerMessageSpeechUpdatePhoneNumber.ts b/src/api/types/ServerMessageSpeechUpdatePhoneNumber.ts new file mode 100644 index 00000000..8b8da501 --- /dev/null +++ b/src/api/types/ServerMessageSpeechUpdatePhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ServerMessageSpeechUpdatePhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ServerMessageSpeechUpdateRole.ts b/src/api/types/ServerMessageSpeechUpdateRole.ts new file mode 100644 index 00000000..9b239d08 --- /dev/null +++ b/src/api/types/ServerMessageSpeechUpdateRole.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the role which the speech update is for. + */ +export type ServerMessageSpeechUpdateRole = "assistant" | "user"; +export const ServerMessageSpeechUpdateRole = { + Assistant: "assistant", + User: "user", +} as const; diff --git a/src/api/types/ServerMessageSpeechUpdateStatus.ts b/src/api/types/ServerMessageSpeechUpdateStatus.ts new file mode 100644 index 00000000..4c0f3b17 --- /dev/null +++ b/src/api/types/ServerMessageSpeechUpdateStatus.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the status of the speech update. + */ +export type ServerMessageSpeechUpdateStatus = "started" | "stopped"; +export const ServerMessageSpeechUpdateStatus = { + Started: "started", + Stopped: "stopped", +} as const; diff --git a/src/api/types/ServerMessageStatusUpdate.ts b/src/api/types/ServerMessageStatusUpdate.ts index 63caedd3..ea8f0c70 100644 --- a/src/api/types/ServerMessageStatusUpdate.ts +++ b/src/api/types/ServerMessageStatusUpdate.ts @@ -6,19 +6,19 @@ import * as Vapi from "../index.js"; export interface ServerMessageStatusUpdate { /** This is the phone number that the message is associated with. */ - phoneNumber?: ServerMessageStatusUpdate.PhoneNumber; + phoneNumber?: Vapi.ServerMessageStatusUpdatePhoneNumber; /** This is the type of the message. "status-update" is sent whenever the `call.status` changes. */ type: "status-update"; /** This is the status of the call. */ - status: ServerMessageStatusUpdate.Status; + status: Vapi.ServerMessageStatusUpdateStatus; /** This is the reason the call ended. This is only sent if the status is "ended". */ - endedReason?: ServerMessageStatusUpdate.EndedReason; + endedReason?: Vapi.ServerMessageStatusUpdateEndedReason; /** These are the conversation messages of the call. This is only sent if the status is "forwarding". */ - messages?: ServerMessageStatusUpdate.Messages.Item[]; + messages?: Vapi.ServerMessageStatusUpdateMessagesItem[]; /** These are the conversation messages of the call. This is only sent if the status is "forwarding". */ messagesOpenAIFormatted?: Vapi.OpenAiMessage[]; /** This is the destination the call is being transferred to. This is only sent if the status is "forwarding". */ - destination?: ServerMessageStatusUpdate.Destination; + destination?: Vapi.ServerMessageStatusUpdateDestination; /** This is the timestamp of the message. */ timestamp?: number; /** @@ -46,1330 +46,3 @@ export interface ServerMessageStatusUpdate { */ inboundPhoneCallDebuggingArtifacts?: Record; } - -export namespace ServerMessageStatusUpdate { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; - /** - * This is the status of the call. - */ - export type Status = - | "scheduled" - | "queued" - | "ringing" - | "in-progress" - | "forwarding" - | "ended" - | "not-found" - | "deletion-failed"; - export const Status = { - Scheduled: "scheduled", - Queued: "queued", - Ringing: "ringing", - InProgress: "in-progress", - Forwarding: "forwarding", - Ended: "ended", - NotFound: "not-found", - DeletionFailed: "deletion-failed", - } as const; - /** - * This is the reason the call ended. This is only sent if the status is "ended". - */ - export type EndedReason = - | "call-start-error-neither-assistant-nor-server-set" - | "assistant-request-failed" - | "assistant-request-returned-error" - | "assistant-request-returned-unspeakable-error" - | "assistant-request-returned-invalid-assistant" - | "assistant-request-returned-no-assistant" - | "assistant-request-returned-forwarding-phone-number" - | "scheduled-call-deleted" - | "call.start.error-vapifault-get-org" - | "call.start.error-vapifault-get-subscription" - | "call.start.error-get-assistant" - | "call.start.error-get-phone-number" - | "call.start.error-get-customer" - | "call.start.error-get-resources-validation" - | "call.start.error-vapi-number-international" - | "call.start.error-vapi-number-outbound-daily-limit" - | "call.start.error-get-transport" - | "call.start.error-subscription-wallet-does-not-exist" - | "call.start.error-fraud-check-failed" - | "call.start.error-subscription-frozen" - | "call.start.error-subscription-insufficient-credits" - | "call.start.error-subscription-upgrade-failed" - | "call.start.error-subscription-concurrency-limit-reached" - | "call.start.error-enterprise-feature-not-available-recording-consent" - | "assistant-not-valid" - | "call.start.error-vapifault-database-error" - | "assistant-not-found" - | "pipeline-error-openai-voice-failed" - | "pipeline-error-cartesia-voice-failed" - | "pipeline-error-deepgram-voice-failed" - | "pipeline-error-eleven-labs-voice-failed" - | "pipeline-error-playht-voice-failed" - | "pipeline-error-lmnt-voice-failed" - | "pipeline-error-azure-voice-failed" - | "pipeline-error-rime-ai-voice-failed" - | "pipeline-error-smallest-ai-voice-failed" - | "pipeline-error-neuphonic-voice-failed" - | "pipeline-error-hume-voice-failed" - | "pipeline-error-sesame-voice-failed" - | "pipeline-error-inworld-voice-failed" - | "pipeline-error-minimax-voice-failed" - | "pipeline-error-tavus-video-failed" - | "call.in-progress.error-vapifault-openai-voice-failed" - | "call.in-progress.error-vapifault-cartesia-voice-failed" - | "call.in-progress.error-vapifault-deepgram-voice-failed" - | "call.in-progress.error-vapifault-eleven-labs-voice-failed" - | "call.in-progress.error-vapifault-playht-voice-failed" - | "call.in-progress.error-vapifault-lmnt-voice-failed" - | "call.in-progress.error-vapifault-azure-voice-failed" - | "call.in-progress.error-vapifault-rime-ai-voice-failed" - | "call.in-progress.error-vapifault-smallest-ai-voice-failed" - | "call.in-progress.error-vapifault-neuphonic-voice-failed" - | "call.in-progress.error-vapifault-hume-voice-failed" - | "call.in-progress.error-vapifault-sesame-voice-failed" - | "call.in-progress.error-vapifault-inworld-voice-failed" - | "call.in-progress.error-vapifault-minimax-voice-failed" - | "call.in-progress.error-vapifault-tavus-video-failed" - | "pipeline-error-vapi-llm-failed" - | "pipeline-error-vapi-400-bad-request-validation-failed" - | "pipeline-error-vapi-401-unauthorized" - | "pipeline-error-vapi-403-model-access-denied" - | "pipeline-error-vapi-429-exceeded-quota" - | "pipeline-error-vapi-500-server-error" - | "pipeline-error-vapi-503-server-overloaded-error" - | "call.in-progress.error-providerfault-vapi-llm-failed" - | "call.in-progress.error-vapifault-vapi-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-vapi-401-unauthorized" - | "call.in-progress.error-vapifault-vapi-403-model-access-denied" - | "call.in-progress.error-vapifault-vapi-429-exceeded-quota" - | "call.in-progress.error-providerfault-vapi-500-server-error" - | "call.in-progress.error-providerfault-vapi-503-server-overloaded-error" - | "pipeline-error-deepgram-transcriber-failed" - | "pipeline-error-deepgram-transcriber-api-key-missing" - | "call.in-progress.error-vapifault-deepgram-transcriber-failed" - | "pipeline-error-gladia-transcriber-failed" - | "call.in-progress.error-vapifault-gladia-transcriber-failed" - | "pipeline-error-speechmatics-transcriber-failed" - | "call.in-progress.error-vapifault-speechmatics-transcriber-failed" - | "pipeline-error-assembly-ai-transcriber-failed" - | "pipeline-error-assembly-ai-returning-400-insufficent-funds" - | "pipeline-error-assembly-ai-returning-400-paid-only-feature" - | "pipeline-error-assembly-ai-returning-401-invalid-credentials" - | "pipeline-error-assembly-ai-returning-500-invalid-schema" - | "pipeline-error-assembly-ai-returning-500-word-boost-parsing-failed" - | "call.in-progress.error-vapifault-assembly-ai-transcriber-failed" - | "call.in-progress.error-vapifault-assembly-ai-returning-400-insufficent-funds" - | "call.in-progress.error-vapifault-assembly-ai-returning-400-paid-only-feature" - | "call.in-progress.error-vapifault-assembly-ai-returning-401-invalid-credentials" - | "call.in-progress.error-vapifault-assembly-ai-returning-500-invalid-schema" - | "call.in-progress.error-vapifault-assembly-ai-returning-500-word-boost-parsing-failed" - | "pipeline-error-talkscriber-transcriber-failed" - | "call.in-progress.error-vapifault-talkscriber-transcriber-failed" - | "pipeline-error-azure-speech-transcriber-failed" - | "call.in-progress.error-vapifault-azure-speech-transcriber-failed" - | "call.in-progress.error-pipeline-no-available-llm-model" - | "worker-shutdown" - | "vonage-disconnected" - | "vonage-failed-to-connect-call" - | "vonage-completed" - | "phone-call-provider-bypass-enabled-but-no-call-received" - | "call.in-progress.error-providerfault-transport-never-connected" - | "call.in-progress.error-vapifault-worker-not-available" - | "call.in-progress.error-vapifault-transport-never-connected" - | "call.in-progress.error-vapifault-transport-connected-but-call-not-active" - | "call.in-progress.error-vapifault-call-started-but-connection-to-transport-missing" - | "call.in-progress.error-vapifault-worker-died" - | "call.in-progress.twilio-completed-call" - | "call.in-progress.sip-completed-call" - | "call.in-progress.error-providerfault-openai-llm-failed" - | "call.in-progress.error-providerfault-azure-openai-llm-failed" - | "call.in-progress.error-providerfault-groq-llm-failed" - | "call.in-progress.error-providerfault-google-llm-failed" - | "call.in-progress.error-providerfault-xai-llm-failed" - | "call.in-progress.error-providerfault-mistral-llm-failed" - | "call.in-progress.error-providerfault-inflection-ai-llm-failed" - | "call.in-progress.error-providerfault-cerebras-llm-failed" - | "call.in-progress.error-providerfault-deep-seek-llm-failed" - | "call.in-progress.error-vapifault-chat-pipeline-failed-to-start" - | "pipeline-error-openai-400-bad-request-validation-failed" - | "pipeline-error-openai-401-unauthorized" - | "pipeline-error-openai-401-incorrect-api-key" - | "pipeline-error-openai-401-account-not-in-organization" - | "pipeline-error-openai-403-model-access-denied" - | "pipeline-error-openai-429-exceeded-quota" - | "pipeline-error-openai-429-rate-limit-reached" - | "pipeline-error-openai-500-server-error" - | "pipeline-error-openai-503-server-overloaded-error" - | "pipeline-error-openai-llm-failed" - | "call.in-progress.error-vapifault-openai-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-openai-401-unauthorized" - | "call.in-progress.error-vapifault-openai-401-incorrect-api-key" - | "call.in-progress.error-vapifault-openai-401-account-not-in-organization" - | "call.in-progress.error-vapifault-openai-403-model-access-denied" - | "call.in-progress.error-vapifault-openai-429-exceeded-quota" - | "call.in-progress.error-vapifault-openai-429-rate-limit-reached" - | "call.in-progress.error-providerfault-openai-500-server-error" - | "call.in-progress.error-providerfault-openai-503-server-overloaded-error" - | "pipeline-error-azure-openai-400-bad-request-validation-failed" - | "pipeline-error-azure-openai-401-unauthorized" - | "pipeline-error-azure-openai-403-model-access-denied" - | "pipeline-error-azure-openai-429-exceeded-quota" - | "pipeline-error-azure-openai-500-server-error" - | "pipeline-error-azure-openai-503-server-overloaded-error" - | "pipeline-error-azure-openai-llm-failed" - | "call.in-progress.error-vapifault-azure-openai-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-azure-openai-401-unauthorized" - | "call.in-progress.error-vapifault-azure-openai-403-model-access-denied" - | "call.in-progress.error-vapifault-azure-openai-429-exceeded-quota" - | "call.in-progress.error-providerfault-azure-openai-500-server-error" - | "call.in-progress.error-providerfault-azure-openai-503-server-overloaded-error" - | "pipeline-error-google-400-bad-request-validation-failed" - | "pipeline-error-google-401-unauthorized" - | "pipeline-error-google-403-model-access-denied" - | "pipeline-error-google-429-exceeded-quota" - | "pipeline-error-google-500-server-error" - | "pipeline-error-google-503-server-overloaded-error" - | "pipeline-error-google-llm-failed" - | "call.in-progress.error-vapifault-google-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-google-401-unauthorized" - | "call.in-progress.error-vapifault-google-403-model-access-denied" - | "call.in-progress.error-vapifault-google-429-exceeded-quota" - | "call.in-progress.error-providerfault-google-500-server-error" - | "call.in-progress.error-providerfault-google-503-server-overloaded-error" - | "pipeline-error-xai-400-bad-request-validation-failed" - | "pipeline-error-xai-401-unauthorized" - | "pipeline-error-xai-403-model-access-denied" - | "pipeline-error-xai-429-exceeded-quota" - | "pipeline-error-xai-500-server-error" - | "pipeline-error-xai-503-server-overloaded-error" - | "pipeline-error-xai-llm-failed" - | "call.in-progress.error-vapifault-xai-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-xai-401-unauthorized" - | "call.in-progress.error-vapifault-xai-403-model-access-denied" - | "call.in-progress.error-vapifault-xai-429-exceeded-quota" - | "call.in-progress.error-providerfault-xai-500-server-error" - | "call.in-progress.error-providerfault-xai-503-server-overloaded-error" - | "pipeline-error-mistral-400-bad-request-validation-failed" - | "pipeline-error-mistral-401-unauthorized" - | "pipeline-error-mistral-403-model-access-denied" - | "pipeline-error-mistral-429-exceeded-quota" - | "pipeline-error-mistral-500-server-error" - | "pipeline-error-mistral-503-server-overloaded-error" - | "pipeline-error-mistral-llm-failed" - | "call.in-progress.error-vapifault-mistral-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-mistral-401-unauthorized" - | "call.in-progress.error-vapifault-mistral-403-model-access-denied" - | "call.in-progress.error-vapifault-mistral-429-exceeded-quota" - | "call.in-progress.error-providerfault-mistral-500-server-error" - | "call.in-progress.error-providerfault-mistral-503-server-overloaded-error" - | "pipeline-error-inflection-ai-400-bad-request-validation-failed" - | "pipeline-error-inflection-ai-401-unauthorized" - | "pipeline-error-inflection-ai-403-model-access-denied" - | "pipeline-error-inflection-ai-429-exceeded-quota" - | "pipeline-error-inflection-ai-500-server-error" - | "pipeline-error-inflection-ai-503-server-overloaded-error" - | "pipeline-error-inflection-ai-llm-failed" - | "call.in-progress.error-vapifault-inflection-ai-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-inflection-ai-401-unauthorized" - | "call.in-progress.error-vapifault-inflection-ai-403-model-access-denied" - | "call.in-progress.error-vapifault-inflection-ai-429-exceeded-quota" - | "call.in-progress.error-providerfault-inflection-ai-500-server-error" - | "call.in-progress.error-providerfault-inflection-ai-503-server-overloaded-error" - | "pipeline-error-deep-seek-400-bad-request-validation-failed" - | "pipeline-error-deep-seek-401-unauthorized" - | "pipeline-error-deep-seek-403-model-access-denied" - | "pipeline-error-deep-seek-429-exceeded-quota" - | "pipeline-error-deep-seek-500-server-error" - | "pipeline-error-deep-seek-503-server-overloaded-error" - | "pipeline-error-deep-seek-llm-failed" - | "call.in-progress.error-vapifault-deep-seek-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-deep-seek-401-unauthorized" - | "call.in-progress.error-vapifault-deep-seek-403-model-access-denied" - | "call.in-progress.error-vapifault-deep-seek-429-exceeded-quota" - | "call.in-progress.error-providerfault-deep-seek-500-server-error" - | "call.in-progress.error-providerfault-deep-seek-503-server-overloaded-error" - | "pipeline-error-groq-400-bad-request-validation-failed" - | "pipeline-error-groq-401-unauthorized" - | "pipeline-error-groq-403-model-access-denied" - | "pipeline-error-groq-429-exceeded-quota" - | "pipeline-error-groq-500-server-error" - | "pipeline-error-groq-503-server-overloaded-error" - | "pipeline-error-groq-llm-failed" - | "call.in-progress.error-vapifault-groq-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-groq-401-unauthorized" - | "call.in-progress.error-vapifault-groq-403-model-access-denied" - | "call.in-progress.error-vapifault-groq-429-exceeded-quota" - | "call.in-progress.error-providerfault-groq-500-server-error" - | "call.in-progress.error-providerfault-groq-503-server-overloaded-error" - | "pipeline-error-cerebras-400-bad-request-validation-failed" - | "pipeline-error-cerebras-401-unauthorized" - | "pipeline-error-cerebras-403-model-access-denied" - | "pipeline-error-cerebras-429-exceeded-quota" - | "pipeline-error-cerebras-500-server-error" - | "pipeline-error-cerebras-503-server-overloaded-error" - | "pipeline-error-cerebras-llm-failed" - | "call.in-progress.error-vapifault-cerebras-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-cerebras-401-unauthorized" - | "call.in-progress.error-vapifault-cerebras-403-model-access-denied" - | "call.in-progress.error-vapifault-cerebras-429-exceeded-quota" - | "call.in-progress.error-providerfault-cerebras-500-server-error" - | "call.in-progress.error-providerfault-cerebras-503-server-overloaded-error" - | "pipeline-error-anthropic-400-bad-request-validation-failed" - | "pipeline-error-anthropic-401-unauthorized" - | "pipeline-error-anthropic-403-model-access-denied" - | "pipeline-error-anthropic-429-exceeded-quota" - | "pipeline-error-anthropic-500-server-error" - | "pipeline-error-anthropic-503-server-overloaded-error" - | "pipeline-error-anthropic-llm-failed" - | "call.in-progress.error-providerfault-anthropic-llm-failed" - | "call.in-progress.error-vapifault-anthropic-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-anthropic-401-unauthorized" - | "call.in-progress.error-vapifault-anthropic-403-model-access-denied" - | "call.in-progress.error-vapifault-anthropic-429-exceeded-quota" - | "call.in-progress.error-providerfault-anthropic-500-server-error" - | "call.in-progress.error-providerfault-anthropic-503-server-overloaded-error" - | "pipeline-error-anthropic-bedrock-400-bad-request-validation-failed" - | "pipeline-error-anthropic-bedrock-401-unauthorized" - | "pipeline-error-anthropic-bedrock-403-model-access-denied" - | "pipeline-error-anthropic-bedrock-429-exceeded-quota" - | "pipeline-error-anthropic-bedrock-500-server-error" - | "pipeline-error-anthropic-bedrock-503-server-overloaded-error" - | "pipeline-error-anthropic-bedrock-llm-failed" - | "call.in-progress.error-providerfault-anthropic-bedrock-llm-failed" - | "call.in-progress.error-vapifault-anthropic-bedrock-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-anthropic-bedrock-401-unauthorized" - | "call.in-progress.error-vapifault-anthropic-bedrock-403-model-access-denied" - | "call.in-progress.error-vapifault-anthropic-bedrock-429-exceeded-quota" - | "call.in-progress.error-providerfault-anthropic-bedrock-500-server-error" - | "call.in-progress.error-providerfault-anthropic-bedrock-503-server-overloaded-error" - | "pipeline-error-anthropic-vertex-400-bad-request-validation-failed" - | "pipeline-error-anthropic-vertex-401-unauthorized" - | "pipeline-error-anthropic-vertex-403-model-access-denied" - | "pipeline-error-anthropic-vertex-429-exceeded-quota" - | "pipeline-error-anthropic-vertex-500-server-error" - | "pipeline-error-anthropic-vertex-503-server-overloaded-error" - | "pipeline-error-anthropic-vertex-llm-failed" - | "call.in-progress.error-providerfault-anthropic-vertex-llm-failed" - | "call.in-progress.error-vapifault-anthropic-vertex-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-anthropic-vertex-401-unauthorized" - | "call.in-progress.error-vapifault-anthropic-vertex-403-model-access-denied" - | "call.in-progress.error-vapifault-anthropic-vertex-429-exceeded-quota" - | "call.in-progress.error-providerfault-anthropic-vertex-500-server-error" - | "call.in-progress.error-providerfault-anthropic-vertex-503-server-overloaded-error" - | "pipeline-error-together-ai-400-bad-request-validation-failed" - | "pipeline-error-together-ai-401-unauthorized" - | "pipeline-error-together-ai-403-model-access-denied" - | "pipeline-error-together-ai-429-exceeded-quota" - | "pipeline-error-together-ai-500-server-error" - | "pipeline-error-together-ai-503-server-overloaded-error" - | "pipeline-error-together-ai-llm-failed" - | "call.in-progress.error-providerfault-together-ai-llm-failed" - | "call.in-progress.error-vapifault-together-ai-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-together-ai-401-unauthorized" - | "call.in-progress.error-vapifault-together-ai-403-model-access-denied" - | "call.in-progress.error-vapifault-together-ai-429-exceeded-quota" - | "call.in-progress.error-providerfault-together-ai-500-server-error" - | "call.in-progress.error-providerfault-together-ai-503-server-overloaded-error" - | "pipeline-error-anyscale-400-bad-request-validation-failed" - | "pipeline-error-anyscale-401-unauthorized" - | "pipeline-error-anyscale-403-model-access-denied" - | "pipeline-error-anyscale-429-exceeded-quota" - | "pipeline-error-anyscale-500-server-error" - | "pipeline-error-anyscale-503-server-overloaded-error" - | "pipeline-error-anyscale-llm-failed" - | "call.in-progress.error-providerfault-anyscale-llm-failed" - | "call.in-progress.error-vapifault-anyscale-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-anyscale-401-unauthorized" - | "call.in-progress.error-vapifault-anyscale-403-model-access-denied" - | "call.in-progress.error-vapifault-anyscale-429-exceeded-quota" - | "call.in-progress.error-providerfault-anyscale-500-server-error" - | "call.in-progress.error-providerfault-anyscale-503-server-overloaded-error" - | "pipeline-error-openrouter-400-bad-request-validation-failed" - | "pipeline-error-openrouter-401-unauthorized" - | "pipeline-error-openrouter-403-model-access-denied" - | "pipeline-error-openrouter-429-exceeded-quota" - | "pipeline-error-openrouter-500-server-error" - | "pipeline-error-openrouter-503-server-overloaded-error" - | "pipeline-error-openrouter-llm-failed" - | "call.in-progress.error-providerfault-openrouter-llm-failed" - | "call.in-progress.error-vapifault-openrouter-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-openrouter-401-unauthorized" - | "call.in-progress.error-vapifault-openrouter-403-model-access-denied" - | "call.in-progress.error-vapifault-openrouter-429-exceeded-quota" - | "call.in-progress.error-providerfault-openrouter-500-server-error" - | "call.in-progress.error-providerfault-openrouter-503-server-overloaded-error" - | "pipeline-error-perplexity-ai-400-bad-request-validation-failed" - | "pipeline-error-perplexity-ai-401-unauthorized" - | "pipeline-error-perplexity-ai-403-model-access-denied" - | "pipeline-error-perplexity-ai-429-exceeded-quota" - | "pipeline-error-perplexity-ai-500-server-error" - | "pipeline-error-perplexity-ai-503-server-overloaded-error" - | "pipeline-error-perplexity-ai-llm-failed" - | "call.in-progress.error-providerfault-perplexity-ai-llm-failed" - | "call.in-progress.error-vapifault-perplexity-ai-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-perplexity-ai-401-unauthorized" - | "call.in-progress.error-vapifault-perplexity-ai-403-model-access-denied" - | "call.in-progress.error-vapifault-perplexity-ai-429-exceeded-quota" - | "call.in-progress.error-providerfault-perplexity-ai-500-server-error" - | "call.in-progress.error-providerfault-perplexity-ai-503-server-overloaded-error" - | "pipeline-error-deepinfra-400-bad-request-validation-failed" - | "pipeline-error-deepinfra-401-unauthorized" - | "pipeline-error-deepinfra-403-model-access-denied" - | "pipeline-error-deepinfra-429-exceeded-quota" - | "pipeline-error-deepinfra-500-server-error" - | "pipeline-error-deepinfra-503-server-overloaded-error" - | "pipeline-error-deepinfra-llm-failed" - | "call.in-progress.error-providerfault-deepinfra-llm-failed" - | "call.in-progress.error-vapifault-deepinfra-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-deepinfra-401-unauthorized" - | "call.in-progress.error-vapifault-deepinfra-403-model-access-denied" - | "call.in-progress.error-vapifault-deepinfra-429-exceeded-quota" - | "call.in-progress.error-providerfault-deepinfra-500-server-error" - | "call.in-progress.error-providerfault-deepinfra-503-server-overloaded-error" - | "pipeline-error-runpod-400-bad-request-validation-failed" - | "pipeline-error-runpod-401-unauthorized" - | "pipeline-error-runpod-403-model-access-denied" - | "pipeline-error-runpod-429-exceeded-quota" - | "pipeline-error-runpod-500-server-error" - | "pipeline-error-runpod-503-server-overloaded-error" - | "pipeline-error-runpod-llm-failed" - | "call.in-progress.error-providerfault-runpod-llm-failed" - | "call.in-progress.error-vapifault-runpod-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-runpod-401-unauthorized" - | "call.in-progress.error-vapifault-runpod-403-model-access-denied" - | "call.in-progress.error-vapifault-runpod-429-exceeded-quota" - | "call.in-progress.error-providerfault-runpod-500-server-error" - | "call.in-progress.error-providerfault-runpod-503-server-overloaded-error" - | "pipeline-error-custom-llm-400-bad-request-validation-failed" - | "pipeline-error-custom-llm-401-unauthorized" - | "pipeline-error-custom-llm-403-model-access-denied" - | "pipeline-error-custom-llm-429-exceeded-quota" - | "pipeline-error-custom-llm-500-server-error" - | "pipeline-error-custom-llm-503-server-overloaded-error" - | "pipeline-error-custom-llm-llm-failed" - | "call.in-progress.error-providerfault-custom-llm-llm-failed" - | "call.in-progress.error-vapifault-custom-llm-400-bad-request-validation-failed" - | "call.in-progress.error-vapifault-custom-llm-401-unauthorized" - | "call.in-progress.error-vapifault-custom-llm-403-model-access-denied" - | "call.in-progress.error-vapifault-custom-llm-429-exceeded-quota" - | "call.in-progress.error-providerfault-custom-llm-500-server-error" - | "call.in-progress.error-providerfault-custom-llm-503-server-overloaded-error" - | "pipeline-error-custom-voice-failed" - | "pipeline-error-cartesia-socket-hang-up" - | "pipeline-error-cartesia-requested-payment" - | "pipeline-error-cartesia-500-server-error" - | "pipeline-error-cartesia-502-server-error" - | "pipeline-error-cartesia-503-server-error" - | "pipeline-error-cartesia-522-server-error" - | "call.in-progress.error-vapifault-cartesia-socket-hang-up" - | "call.in-progress.error-vapifault-cartesia-requested-payment" - | "call.in-progress.error-providerfault-cartesia-500-server-error" - | "call.in-progress.error-providerfault-cartesia-503-server-error" - | "call.in-progress.error-providerfault-cartesia-522-server-error" - | "pipeline-error-eleven-labs-voice-not-found" - | "pipeline-error-eleven-labs-quota-exceeded" - | "pipeline-error-eleven-labs-unauthorized-access" - | "pipeline-error-eleven-labs-unauthorized-to-access-model" - | "pipeline-error-eleven-labs-professional-voices-only-for-creator-plus" - | "pipeline-error-eleven-labs-blocked-free-plan-and-requested-upgrade" - | "pipeline-error-eleven-labs-blocked-concurrent-requests-and-requested-upgrade" - | "pipeline-error-eleven-labs-blocked-using-instant-voice-clone-and-requested-upgrade" - | "pipeline-error-eleven-labs-system-busy-and-requested-upgrade" - | "pipeline-error-eleven-labs-voice-not-fine-tuned" - | "pipeline-error-eleven-labs-invalid-api-key" - | "pipeline-error-eleven-labs-invalid-voice-samples" - | "pipeline-error-eleven-labs-voice-disabled-by-owner" - | "pipeline-error-eleven-labs-vapi-voice-disabled-by-owner" - | "pipeline-error-eleven-labs-blocked-account-in-probation" - | "pipeline-error-eleven-labs-blocked-content-against-their-policy" - | "pipeline-error-eleven-labs-missing-samples-for-voice-clone" - | "pipeline-error-eleven-labs-voice-not-fine-tuned-and-cannot-be-used" - | "pipeline-error-eleven-labs-voice-not-allowed-for-free-users" - | "pipeline-error-eleven-labs-max-character-limit-exceeded" - | "pipeline-error-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification" - | "pipeline-error-eleven-labs-500-server-error" - | "pipeline-error-eleven-labs-503-server-error" - | "call.in-progress.error-vapifault-eleven-labs-voice-not-found" - | "call.in-progress.error-vapifault-eleven-labs-quota-exceeded" - | "call.in-progress.error-vapifault-eleven-labs-unauthorized-access" - | "call.in-progress.error-vapifault-eleven-labs-unauthorized-to-access-model" - | "call.in-progress.error-vapifault-eleven-labs-professional-voices-only-for-creator-plus" - | "call.in-progress.error-vapifault-eleven-labs-blocked-free-plan-and-requested-upgrade" - | "call.in-progress.error-vapifault-eleven-labs-blocked-concurrent-requests-and-requested-upgrade" - | "call.in-progress.error-vapifault-eleven-labs-blocked-using-instant-voice-clone-and-requested-upgrade" - | "call.in-progress.error-vapifault-eleven-labs-system-busy-and-requested-upgrade" - | "call.in-progress.error-vapifault-eleven-labs-voice-not-fine-tuned" - | "call.in-progress.error-vapifault-eleven-labs-invalid-api-key" - | "call.in-progress.error-vapifault-eleven-labs-invalid-voice-samples" - | "call.in-progress.error-vapifault-eleven-labs-voice-disabled-by-owner" - | "call.in-progress.error-vapifault-eleven-labs-blocked-account-in-probation" - | "call.in-progress.error-vapifault-eleven-labs-blocked-content-against-their-policy" - | "call.in-progress.error-vapifault-eleven-labs-missing-samples-for-voice-clone" - | "call.in-progress.error-vapifault-eleven-labs-voice-not-fine-tuned-and-cannot-be-used" - | "call.in-progress.error-vapifault-eleven-labs-voice-not-allowed-for-free-users" - | "call.in-progress.error-vapifault-eleven-labs-max-character-limit-exceeded" - | "call.in-progress.error-vapifault-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification" - | "call.in-progress.error-providerfault-eleven-labs-500-server-error" - | "call.in-progress.error-providerfault-eleven-labs-503-server-error" - | "pipeline-error-playht-request-timed-out" - | "pipeline-error-playht-invalid-voice" - | "pipeline-error-playht-unexpected-error" - | "pipeline-error-playht-out-of-credits" - | "pipeline-error-playht-invalid-emotion" - | "pipeline-error-playht-voice-must-be-a-valid-voice-manifest-uri" - | "pipeline-error-playht-401-unauthorized" - | "pipeline-error-playht-403-forbidden-out-of-characters" - | "pipeline-error-playht-403-forbidden-api-access-not-available" - | "pipeline-error-playht-429-exceeded-quota" - | "pipeline-error-playht-502-gateway-error" - | "pipeline-error-playht-504-gateway-error" - | "call.in-progress.error-vapifault-playht-request-timed-out" - | "call.in-progress.error-vapifault-playht-invalid-voice" - | "call.in-progress.error-vapifault-playht-unexpected-error" - | "call.in-progress.error-vapifault-playht-out-of-credits" - | "call.in-progress.error-vapifault-playht-invalid-emotion" - | "call.in-progress.error-vapifault-playht-voice-must-be-a-valid-voice-manifest-uri" - | "call.in-progress.error-vapifault-playht-401-unauthorized" - | "call.in-progress.error-vapifault-playht-403-forbidden-out-of-characters" - | "call.in-progress.error-vapifault-playht-403-forbidden-api-access-not-available" - | "call.in-progress.error-vapifault-playht-429-exceeded-quota" - | "call.in-progress.error-providerfault-playht-502-gateway-error" - | "call.in-progress.error-providerfault-playht-504-gateway-error" - | "pipeline-error-custom-transcriber-failed" - | "call.in-progress.error-vapifault-custom-transcriber-failed" - | "pipeline-error-eleven-labs-transcriber-failed" - | "call.in-progress.error-vapifault-eleven-labs-transcriber-failed" - | "pipeline-error-deepgram-returning-400-no-such-model-language-tier-combination" - | "pipeline-error-deepgram-returning-401-invalid-credentials" - | "pipeline-error-deepgram-returning-403-model-access-denied" - | "pipeline-error-deepgram-returning-404-not-found" - | "pipeline-error-deepgram-returning-500-invalid-json" - | "pipeline-error-deepgram-returning-502-network-error" - | "pipeline-error-deepgram-returning-502-bad-gateway-ehostunreach" - | "pipeline-error-deepgram-returning-econnreset" - | "call.in-progress.error-vapifault-deepgram-returning-400-no-such-model-language-tier-combination" - | "call.in-progress.error-vapifault-deepgram-returning-401-invalid-credentials" - | "call.in-progress.error-vapifault-deepgram-returning-404-not-found" - | "call.in-progress.error-vapifault-deepgram-returning-403-model-access-denied" - | "call.in-progress.error-providerfault-deepgram-returning-500-invalid-json" - | "call.in-progress.error-providerfault-deepgram-returning-502-network-error" - | "call.in-progress.error-providerfault-deepgram-returning-502-bad-gateway-ehostunreach" - | "pipeline-error-google-transcriber-failed" - | "call.in-progress.error-vapifault-google-transcriber-failed" - | "pipeline-error-openai-transcriber-failed" - | "call.in-progress.error-vapifault-openai-transcriber-failed" - | "call.in-progress.error-warm-transfer-max-duration" - | "call.in-progress.error-warm-transfer-assistant-cancelled" - | "call.in-progress.error-warm-transfer-silence-timeout" - | "call.in-progress.error-warm-transfer-microphone-timeout" - | "call.in-progress.error-warm-transfer-hang-timeout" - | "call.in-progress.error-warm-transfer-idle-timeout" - | "assistant-ended-call" - | "assistant-said-end-call-phrase" - | "assistant-ended-call-with-hangup-task" - | "assistant-ended-call-after-message-spoken" - | "assistant-forwarded-call" - | "assistant-join-timed-out" - | "call.in-progress.error-assistant-did-not-receive-customer-audio" - | "call.in-progress.error-transfer-failed" - | "customer-busy" - | "customer-ended-call" - | "customer-ended-call-before-warm-transfer" - | "customer-ended-call-after-warm-transfer-attempt" - | "customer-did-not-answer" - | "customer-did-not-give-microphone-permission" - | "exceeded-max-duration" - | "manually-canceled" - | "phone-call-provider-closed-websocket" - | "call.forwarding.operator-busy" - | "silence-timed-out" - | "call.in-progress.error-sip-inbound-call-failed-to-connect" - | "call.in-progress.error-providerfault-outbound-sip-403-forbidden" - | "call.in-progress.error-providerfault-outbound-sip-407-proxy-authentication-required" - | "call.in-progress.error-providerfault-outbound-sip-503-service-unavailable" - | "call.in-progress.error-providerfault-outbound-sip-480-temporarily-unavailable" - | "call.in-progress.error-sip-outbound-call-failed-to-connect" - | "call.ringing.hook-executed-say" - | "call.ringing.hook-executed-transfer" - | "call.ending.hook-executed-say" - | "call.ending.hook-executed-transfer" - | "call.ringing.sip-inbound-caller-hungup-before-call-connect" - | "call.ringing.error-sip-inbound-call-failed-to-connect" - | "twilio-failed-to-connect-call" - | "twilio-reported-customer-misdialed" - | "vonage-rejected" - | "voicemail" - | "call-deleted"; - export const EndedReason = { - CallStartErrorNeitherAssistantNorServerSet: "call-start-error-neither-assistant-nor-server-set", - AssistantRequestFailed: "assistant-request-failed", - AssistantRequestReturnedError: "assistant-request-returned-error", - AssistantRequestReturnedUnspeakableError: "assistant-request-returned-unspeakable-error", - AssistantRequestReturnedInvalidAssistant: "assistant-request-returned-invalid-assistant", - AssistantRequestReturnedNoAssistant: "assistant-request-returned-no-assistant", - AssistantRequestReturnedForwardingPhoneNumber: "assistant-request-returned-forwarding-phone-number", - ScheduledCallDeleted: "scheduled-call-deleted", - CallStartErrorVapifaultGetOrg: "call.start.error-vapifault-get-org", - CallStartErrorVapifaultGetSubscription: "call.start.error-vapifault-get-subscription", - CallStartErrorGetAssistant: "call.start.error-get-assistant", - CallStartErrorGetPhoneNumber: "call.start.error-get-phone-number", - CallStartErrorGetCustomer: "call.start.error-get-customer", - CallStartErrorGetResourcesValidation: "call.start.error-get-resources-validation", - CallStartErrorVapiNumberInternational: "call.start.error-vapi-number-international", - CallStartErrorVapiNumberOutboundDailyLimit: "call.start.error-vapi-number-outbound-daily-limit", - CallStartErrorGetTransport: "call.start.error-get-transport", - CallStartErrorSubscriptionWalletDoesNotExist: "call.start.error-subscription-wallet-does-not-exist", - CallStartErrorFraudCheckFailed: "call.start.error-fraud-check-failed", - CallStartErrorSubscriptionFrozen: "call.start.error-subscription-frozen", - CallStartErrorSubscriptionInsufficientCredits: "call.start.error-subscription-insufficient-credits", - CallStartErrorSubscriptionUpgradeFailed: "call.start.error-subscription-upgrade-failed", - CallStartErrorSubscriptionConcurrencyLimitReached: "call.start.error-subscription-concurrency-limit-reached", - CallStartErrorEnterpriseFeatureNotAvailableRecordingConsent: - "call.start.error-enterprise-feature-not-available-recording-consent", - AssistantNotValid: "assistant-not-valid", - CallStartErrorVapifaultDatabaseError: "call.start.error-vapifault-database-error", - AssistantNotFound: "assistant-not-found", - PipelineErrorOpenaiVoiceFailed: "pipeline-error-openai-voice-failed", - PipelineErrorCartesiaVoiceFailed: "pipeline-error-cartesia-voice-failed", - PipelineErrorDeepgramVoiceFailed: "pipeline-error-deepgram-voice-failed", - PipelineErrorElevenLabsVoiceFailed: "pipeline-error-eleven-labs-voice-failed", - PipelineErrorPlayhtVoiceFailed: "pipeline-error-playht-voice-failed", - PipelineErrorLmntVoiceFailed: "pipeline-error-lmnt-voice-failed", - PipelineErrorAzureVoiceFailed: "pipeline-error-azure-voice-failed", - PipelineErrorRimeAiVoiceFailed: "pipeline-error-rime-ai-voice-failed", - PipelineErrorSmallestAiVoiceFailed: "pipeline-error-smallest-ai-voice-failed", - PipelineErrorNeuphonicVoiceFailed: "pipeline-error-neuphonic-voice-failed", - PipelineErrorHumeVoiceFailed: "pipeline-error-hume-voice-failed", - PipelineErrorSesameVoiceFailed: "pipeline-error-sesame-voice-failed", - PipelineErrorInworldVoiceFailed: "pipeline-error-inworld-voice-failed", - PipelineErrorMinimaxVoiceFailed: "pipeline-error-minimax-voice-failed", - PipelineErrorTavusVideoFailed: "pipeline-error-tavus-video-failed", - CallInProgressErrorVapifaultOpenaiVoiceFailed: "call.in-progress.error-vapifault-openai-voice-failed", - CallInProgressErrorVapifaultCartesiaVoiceFailed: "call.in-progress.error-vapifault-cartesia-voice-failed", - CallInProgressErrorVapifaultDeepgramVoiceFailed: "call.in-progress.error-vapifault-deepgram-voice-failed", - CallInProgressErrorVapifaultElevenLabsVoiceFailed: "call.in-progress.error-vapifault-eleven-labs-voice-failed", - CallInProgressErrorVapifaultPlayhtVoiceFailed: "call.in-progress.error-vapifault-playht-voice-failed", - CallInProgressErrorVapifaultLmntVoiceFailed: "call.in-progress.error-vapifault-lmnt-voice-failed", - CallInProgressErrorVapifaultAzureVoiceFailed: "call.in-progress.error-vapifault-azure-voice-failed", - CallInProgressErrorVapifaultRimeAiVoiceFailed: "call.in-progress.error-vapifault-rime-ai-voice-failed", - CallInProgressErrorVapifaultSmallestAiVoiceFailed: "call.in-progress.error-vapifault-smallest-ai-voice-failed", - CallInProgressErrorVapifaultNeuphonicVoiceFailed: "call.in-progress.error-vapifault-neuphonic-voice-failed", - CallInProgressErrorVapifaultHumeVoiceFailed: "call.in-progress.error-vapifault-hume-voice-failed", - CallInProgressErrorVapifaultSesameVoiceFailed: "call.in-progress.error-vapifault-sesame-voice-failed", - CallInProgressErrorVapifaultInworldVoiceFailed: "call.in-progress.error-vapifault-inworld-voice-failed", - CallInProgressErrorVapifaultMinimaxVoiceFailed: "call.in-progress.error-vapifault-minimax-voice-failed", - CallInProgressErrorVapifaultTavusVideoFailed: "call.in-progress.error-vapifault-tavus-video-failed", - PipelineErrorVapiLlmFailed: "pipeline-error-vapi-llm-failed", - PipelineErrorVapi400BadRequestValidationFailed: "pipeline-error-vapi-400-bad-request-validation-failed", - PipelineErrorVapi401Unauthorized: "pipeline-error-vapi-401-unauthorized", - PipelineErrorVapi403ModelAccessDenied: "pipeline-error-vapi-403-model-access-denied", - PipelineErrorVapi429ExceededQuota: "pipeline-error-vapi-429-exceeded-quota", - PipelineErrorVapi500ServerError: "pipeline-error-vapi-500-server-error", - PipelineErrorVapi503ServerOverloadedError: "pipeline-error-vapi-503-server-overloaded-error", - CallInProgressErrorProviderfaultVapiLlmFailed: "call.in-progress.error-providerfault-vapi-llm-failed", - CallInProgressErrorVapifaultVapi400BadRequestValidationFailed: - "call.in-progress.error-vapifault-vapi-400-bad-request-validation-failed", - CallInProgressErrorVapifaultVapi401Unauthorized: "call.in-progress.error-vapifault-vapi-401-unauthorized", - CallInProgressErrorVapifaultVapi403ModelAccessDenied: - "call.in-progress.error-vapifault-vapi-403-model-access-denied", - CallInProgressErrorVapifaultVapi429ExceededQuota: "call.in-progress.error-vapifault-vapi-429-exceeded-quota", - CallInProgressErrorProviderfaultVapi500ServerError: - "call.in-progress.error-providerfault-vapi-500-server-error", - CallInProgressErrorProviderfaultVapi503ServerOverloadedError: - "call.in-progress.error-providerfault-vapi-503-server-overloaded-error", - PipelineErrorDeepgramTranscriberFailed: "pipeline-error-deepgram-transcriber-failed", - PipelineErrorDeepgramTranscriberApiKeyMissing: "pipeline-error-deepgram-transcriber-api-key-missing", - CallInProgressErrorVapifaultDeepgramTranscriberFailed: - "call.in-progress.error-vapifault-deepgram-transcriber-failed", - PipelineErrorGladiaTranscriberFailed: "pipeline-error-gladia-transcriber-failed", - CallInProgressErrorVapifaultGladiaTranscriberFailed: - "call.in-progress.error-vapifault-gladia-transcriber-failed", - PipelineErrorSpeechmaticsTranscriberFailed: "pipeline-error-speechmatics-transcriber-failed", - CallInProgressErrorVapifaultSpeechmaticsTranscriberFailed: - "call.in-progress.error-vapifault-speechmatics-transcriber-failed", - PipelineErrorAssemblyAiTranscriberFailed: "pipeline-error-assembly-ai-transcriber-failed", - PipelineErrorAssemblyAiReturning400InsufficentFunds: - "pipeline-error-assembly-ai-returning-400-insufficent-funds", - PipelineErrorAssemblyAiReturning400PaidOnlyFeature: - "pipeline-error-assembly-ai-returning-400-paid-only-feature", - PipelineErrorAssemblyAiReturning401InvalidCredentials: - "pipeline-error-assembly-ai-returning-401-invalid-credentials", - PipelineErrorAssemblyAiReturning500InvalidSchema: "pipeline-error-assembly-ai-returning-500-invalid-schema", - PipelineErrorAssemblyAiReturning500WordBoostParsingFailed: - "pipeline-error-assembly-ai-returning-500-word-boost-parsing-failed", - CallInProgressErrorVapifaultAssemblyAiTranscriberFailed: - "call.in-progress.error-vapifault-assembly-ai-transcriber-failed", - CallInProgressErrorVapifaultAssemblyAiReturning400InsufficentFunds: - "call.in-progress.error-vapifault-assembly-ai-returning-400-insufficent-funds", - CallInProgressErrorVapifaultAssemblyAiReturning400PaidOnlyFeature: - "call.in-progress.error-vapifault-assembly-ai-returning-400-paid-only-feature", - CallInProgressErrorVapifaultAssemblyAiReturning401InvalidCredentials: - "call.in-progress.error-vapifault-assembly-ai-returning-401-invalid-credentials", - CallInProgressErrorVapifaultAssemblyAiReturning500InvalidSchema: - "call.in-progress.error-vapifault-assembly-ai-returning-500-invalid-schema", - CallInProgressErrorVapifaultAssemblyAiReturning500WordBoostParsingFailed: - "call.in-progress.error-vapifault-assembly-ai-returning-500-word-boost-parsing-failed", - PipelineErrorTalkscriberTranscriberFailed: "pipeline-error-talkscriber-transcriber-failed", - CallInProgressErrorVapifaultTalkscriberTranscriberFailed: - "call.in-progress.error-vapifault-talkscriber-transcriber-failed", - PipelineErrorAzureSpeechTranscriberFailed: "pipeline-error-azure-speech-transcriber-failed", - CallInProgressErrorVapifaultAzureSpeechTranscriberFailed: - "call.in-progress.error-vapifault-azure-speech-transcriber-failed", - CallInProgressErrorPipelineNoAvailableLlmModel: "call.in-progress.error-pipeline-no-available-llm-model", - WorkerShutdown: "worker-shutdown", - VonageDisconnected: "vonage-disconnected", - VonageFailedToConnectCall: "vonage-failed-to-connect-call", - VonageCompleted: "vonage-completed", - PhoneCallProviderBypassEnabledButNoCallReceived: "phone-call-provider-bypass-enabled-but-no-call-received", - CallInProgressErrorProviderfaultTransportNeverConnected: - "call.in-progress.error-providerfault-transport-never-connected", - CallInProgressErrorVapifaultWorkerNotAvailable: "call.in-progress.error-vapifault-worker-not-available", - CallInProgressErrorVapifaultTransportNeverConnected: - "call.in-progress.error-vapifault-transport-never-connected", - CallInProgressErrorVapifaultTransportConnectedButCallNotActive: - "call.in-progress.error-vapifault-transport-connected-but-call-not-active", - CallInProgressErrorVapifaultCallStartedButConnectionToTransportMissing: - "call.in-progress.error-vapifault-call-started-but-connection-to-transport-missing", - CallInProgressErrorVapifaultWorkerDied: "call.in-progress.error-vapifault-worker-died", - CallInProgressTwilioCompletedCall: "call.in-progress.twilio-completed-call", - CallInProgressSipCompletedCall: "call.in-progress.sip-completed-call", - CallInProgressErrorProviderfaultOpenaiLlmFailed: "call.in-progress.error-providerfault-openai-llm-failed", - CallInProgressErrorProviderfaultAzureOpenaiLlmFailed: - "call.in-progress.error-providerfault-azure-openai-llm-failed", - CallInProgressErrorProviderfaultGroqLlmFailed: "call.in-progress.error-providerfault-groq-llm-failed", - CallInProgressErrorProviderfaultGoogleLlmFailed: "call.in-progress.error-providerfault-google-llm-failed", - CallInProgressErrorProviderfaultXaiLlmFailed: "call.in-progress.error-providerfault-xai-llm-failed", - CallInProgressErrorProviderfaultMistralLlmFailed: "call.in-progress.error-providerfault-mistral-llm-failed", - CallInProgressErrorProviderfaultInflectionAiLlmFailed: - "call.in-progress.error-providerfault-inflection-ai-llm-failed", - CallInProgressErrorProviderfaultCerebrasLlmFailed: "call.in-progress.error-providerfault-cerebras-llm-failed", - CallInProgressErrorProviderfaultDeepSeekLlmFailed: "call.in-progress.error-providerfault-deep-seek-llm-failed", - CallInProgressErrorVapifaultChatPipelineFailedToStart: - "call.in-progress.error-vapifault-chat-pipeline-failed-to-start", - PipelineErrorOpenai400BadRequestValidationFailed: "pipeline-error-openai-400-bad-request-validation-failed", - PipelineErrorOpenai401Unauthorized: "pipeline-error-openai-401-unauthorized", - PipelineErrorOpenai401IncorrectApiKey: "pipeline-error-openai-401-incorrect-api-key", - PipelineErrorOpenai401AccountNotInOrganization: "pipeline-error-openai-401-account-not-in-organization", - PipelineErrorOpenai403ModelAccessDenied: "pipeline-error-openai-403-model-access-denied", - PipelineErrorOpenai429ExceededQuota: "pipeline-error-openai-429-exceeded-quota", - PipelineErrorOpenai429RateLimitReached: "pipeline-error-openai-429-rate-limit-reached", - PipelineErrorOpenai500ServerError: "pipeline-error-openai-500-server-error", - PipelineErrorOpenai503ServerOverloadedError: "pipeline-error-openai-503-server-overloaded-error", - PipelineErrorOpenaiLlmFailed: "pipeline-error-openai-llm-failed", - CallInProgressErrorVapifaultOpenai400BadRequestValidationFailed: - "call.in-progress.error-vapifault-openai-400-bad-request-validation-failed", - CallInProgressErrorVapifaultOpenai401Unauthorized: "call.in-progress.error-vapifault-openai-401-unauthorized", - CallInProgressErrorVapifaultOpenai401IncorrectApiKey: - "call.in-progress.error-vapifault-openai-401-incorrect-api-key", - CallInProgressErrorVapifaultOpenai401AccountNotInOrganization: - "call.in-progress.error-vapifault-openai-401-account-not-in-organization", - CallInProgressErrorVapifaultOpenai403ModelAccessDenied: - "call.in-progress.error-vapifault-openai-403-model-access-denied", - CallInProgressErrorVapifaultOpenai429ExceededQuota: - "call.in-progress.error-vapifault-openai-429-exceeded-quota", - CallInProgressErrorVapifaultOpenai429RateLimitReached: - "call.in-progress.error-vapifault-openai-429-rate-limit-reached", - CallInProgressErrorProviderfaultOpenai500ServerError: - "call.in-progress.error-providerfault-openai-500-server-error", - CallInProgressErrorProviderfaultOpenai503ServerOverloadedError: - "call.in-progress.error-providerfault-openai-503-server-overloaded-error", - PipelineErrorAzureOpenai400BadRequestValidationFailed: - "pipeline-error-azure-openai-400-bad-request-validation-failed", - PipelineErrorAzureOpenai401Unauthorized: "pipeline-error-azure-openai-401-unauthorized", - PipelineErrorAzureOpenai403ModelAccessDenied: "pipeline-error-azure-openai-403-model-access-denied", - PipelineErrorAzureOpenai429ExceededQuota: "pipeline-error-azure-openai-429-exceeded-quota", - PipelineErrorAzureOpenai500ServerError: "pipeline-error-azure-openai-500-server-error", - PipelineErrorAzureOpenai503ServerOverloadedError: "pipeline-error-azure-openai-503-server-overloaded-error", - PipelineErrorAzureOpenaiLlmFailed: "pipeline-error-azure-openai-llm-failed", - CallInProgressErrorVapifaultAzureOpenai400BadRequestValidationFailed: - "call.in-progress.error-vapifault-azure-openai-400-bad-request-validation-failed", - CallInProgressErrorVapifaultAzureOpenai401Unauthorized: - "call.in-progress.error-vapifault-azure-openai-401-unauthorized", - CallInProgressErrorVapifaultAzureOpenai403ModelAccessDenied: - "call.in-progress.error-vapifault-azure-openai-403-model-access-denied", - CallInProgressErrorVapifaultAzureOpenai429ExceededQuota: - "call.in-progress.error-vapifault-azure-openai-429-exceeded-quota", - CallInProgressErrorProviderfaultAzureOpenai500ServerError: - "call.in-progress.error-providerfault-azure-openai-500-server-error", - CallInProgressErrorProviderfaultAzureOpenai503ServerOverloadedError: - "call.in-progress.error-providerfault-azure-openai-503-server-overloaded-error", - PipelineErrorGoogle400BadRequestValidationFailed: "pipeline-error-google-400-bad-request-validation-failed", - PipelineErrorGoogle401Unauthorized: "pipeline-error-google-401-unauthorized", - PipelineErrorGoogle403ModelAccessDenied: "pipeline-error-google-403-model-access-denied", - PipelineErrorGoogle429ExceededQuota: "pipeline-error-google-429-exceeded-quota", - PipelineErrorGoogle500ServerError: "pipeline-error-google-500-server-error", - PipelineErrorGoogle503ServerOverloadedError: "pipeline-error-google-503-server-overloaded-error", - PipelineErrorGoogleLlmFailed: "pipeline-error-google-llm-failed", - CallInProgressErrorVapifaultGoogle400BadRequestValidationFailed: - "call.in-progress.error-vapifault-google-400-bad-request-validation-failed", - CallInProgressErrorVapifaultGoogle401Unauthorized: "call.in-progress.error-vapifault-google-401-unauthorized", - CallInProgressErrorVapifaultGoogle403ModelAccessDenied: - "call.in-progress.error-vapifault-google-403-model-access-denied", - CallInProgressErrorVapifaultGoogle429ExceededQuota: - "call.in-progress.error-vapifault-google-429-exceeded-quota", - CallInProgressErrorProviderfaultGoogle500ServerError: - "call.in-progress.error-providerfault-google-500-server-error", - CallInProgressErrorProviderfaultGoogle503ServerOverloadedError: - "call.in-progress.error-providerfault-google-503-server-overloaded-error", - PipelineErrorXai400BadRequestValidationFailed: "pipeline-error-xai-400-bad-request-validation-failed", - PipelineErrorXai401Unauthorized: "pipeline-error-xai-401-unauthorized", - PipelineErrorXai403ModelAccessDenied: "pipeline-error-xai-403-model-access-denied", - PipelineErrorXai429ExceededQuota: "pipeline-error-xai-429-exceeded-quota", - PipelineErrorXai500ServerError: "pipeline-error-xai-500-server-error", - PipelineErrorXai503ServerOverloadedError: "pipeline-error-xai-503-server-overloaded-error", - PipelineErrorXaiLlmFailed: "pipeline-error-xai-llm-failed", - CallInProgressErrorVapifaultXai400BadRequestValidationFailed: - "call.in-progress.error-vapifault-xai-400-bad-request-validation-failed", - CallInProgressErrorVapifaultXai401Unauthorized: "call.in-progress.error-vapifault-xai-401-unauthorized", - CallInProgressErrorVapifaultXai403ModelAccessDenied: - "call.in-progress.error-vapifault-xai-403-model-access-denied", - CallInProgressErrorVapifaultXai429ExceededQuota: "call.in-progress.error-vapifault-xai-429-exceeded-quota", - CallInProgressErrorProviderfaultXai500ServerError: "call.in-progress.error-providerfault-xai-500-server-error", - CallInProgressErrorProviderfaultXai503ServerOverloadedError: - "call.in-progress.error-providerfault-xai-503-server-overloaded-error", - PipelineErrorMistral400BadRequestValidationFailed: "pipeline-error-mistral-400-bad-request-validation-failed", - PipelineErrorMistral401Unauthorized: "pipeline-error-mistral-401-unauthorized", - PipelineErrorMistral403ModelAccessDenied: "pipeline-error-mistral-403-model-access-denied", - PipelineErrorMistral429ExceededQuota: "pipeline-error-mistral-429-exceeded-quota", - PipelineErrorMistral500ServerError: "pipeline-error-mistral-500-server-error", - PipelineErrorMistral503ServerOverloadedError: "pipeline-error-mistral-503-server-overloaded-error", - PipelineErrorMistralLlmFailed: "pipeline-error-mistral-llm-failed", - CallInProgressErrorVapifaultMistral400BadRequestValidationFailed: - "call.in-progress.error-vapifault-mistral-400-bad-request-validation-failed", - CallInProgressErrorVapifaultMistral401Unauthorized: "call.in-progress.error-vapifault-mistral-401-unauthorized", - CallInProgressErrorVapifaultMistral403ModelAccessDenied: - "call.in-progress.error-vapifault-mistral-403-model-access-denied", - CallInProgressErrorVapifaultMistral429ExceededQuota: - "call.in-progress.error-vapifault-mistral-429-exceeded-quota", - CallInProgressErrorProviderfaultMistral500ServerError: - "call.in-progress.error-providerfault-mistral-500-server-error", - CallInProgressErrorProviderfaultMistral503ServerOverloadedError: - "call.in-progress.error-providerfault-mistral-503-server-overloaded-error", - PipelineErrorInflectionAi400BadRequestValidationFailed: - "pipeline-error-inflection-ai-400-bad-request-validation-failed", - PipelineErrorInflectionAi401Unauthorized: "pipeline-error-inflection-ai-401-unauthorized", - PipelineErrorInflectionAi403ModelAccessDenied: "pipeline-error-inflection-ai-403-model-access-denied", - PipelineErrorInflectionAi429ExceededQuota: "pipeline-error-inflection-ai-429-exceeded-quota", - PipelineErrorInflectionAi500ServerError: "pipeline-error-inflection-ai-500-server-error", - PipelineErrorInflectionAi503ServerOverloadedError: "pipeline-error-inflection-ai-503-server-overloaded-error", - PipelineErrorInflectionAiLlmFailed: "pipeline-error-inflection-ai-llm-failed", - CallInProgressErrorVapifaultInflectionAi400BadRequestValidationFailed: - "call.in-progress.error-vapifault-inflection-ai-400-bad-request-validation-failed", - CallInProgressErrorVapifaultInflectionAi401Unauthorized: - "call.in-progress.error-vapifault-inflection-ai-401-unauthorized", - CallInProgressErrorVapifaultInflectionAi403ModelAccessDenied: - "call.in-progress.error-vapifault-inflection-ai-403-model-access-denied", - CallInProgressErrorVapifaultInflectionAi429ExceededQuota: - "call.in-progress.error-vapifault-inflection-ai-429-exceeded-quota", - CallInProgressErrorProviderfaultInflectionAi500ServerError: - "call.in-progress.error-providerfault-inflection-ai-500-server-error", - CallInProgressErrorProviderfaultInflectionAi503ServerOverloadedError: - "call.in-progress.error-providerfault-inflection-ai-503-server-overloaded-error", - PipelineErrorDeepSeek400BadRequestValidationFailed: - "pipeline-error-deep-seek-400-bad-request-validation-failed", - PipelineErrorDeepSeek401Unauthorized: "pipeline-error-deep-seek-401-unauthorized", - PipelineErrorDeepSeek403ModelAccessDenied: "pipeline-error-deep-seek-403-model-access-denied", - PipelineErrorDeepSeek429ExceededQuota: "pipeline-error-deep-seek-429-exceeded-quota", - PipelineErrorDeepSeek500ServerError: "pipeline-error-deep-seek-500-server-error", - PipelineErrorDeepSeek503ServerOverloadedError: "pipeline-error-deep-seek-503-server-overloaded-error", - PipelineErrorDeepSeekLlmFailed: "pipeline-error-deep-seek-llm-failed", - CallInProgressErrorVapifaultDeepSeek400BadRequestValidationFailed: - "call.in-progress.error-vapifault-deep-seek-400-bad-request-validation-failed", - CallInProgressErrorVapifaultDeepSeek401Unauthorized: - "call.in-progress.error-vapifault-deep-seek-401-unauthorized", - CallInProgressErrorVapifaultDeepSeek403ModelAccessDenied: - "call.in-progress.error-vapifault-deep-seek-403-model-access-denied", - CallInProgressErrorVapifaultDeepSeek429ExceededQuota: - "call.in-progress.error-vapifault-deep-seek-429-exceeded-quota", - CallInProgressErrorProviderfaultDeepSeek500ServerError: - "call.in-progress.error-providerfault-deep-seek-500-server-error", - CallInProgressErrorProviderfaultDeepSeek503ServerOverloadedError: - "call.in-progress.error-providerfault-deep-seek-503-server-overloaded-error", - PipelineErrorGroq400BadRequestValidationFailed: "pipeline-error-groq-400-bad-request-validation-failed", - PipelineErrorGroq401Unauthorized: "pipeline-error-groq-401-unauthorized", - PipelineErrorGroq403ModelAccessDenied: "pipeline-error-groq-403-model-access-denied", - PipelineErrorGroq429ExceededQuota: "pipeline-error-groq-429-exceeded-quota", - PipelineErrorGroq500ServerError: "pipeline-error-groq-500-server-error", - PipelineErrorGroq503ServerOverloadedError: "pipeline-error-groq-503-server-overloaded-error", - PipelineErrorGroqLlmFailed: "pipeline-error-groq-llm-failed", - CallInProgressErrorVapifaultGroq400BadRequestValidationFailed: - "call.in-progress.error-vapifault-groq-400-bad-request-validation-failed", - CallInProgressErrorVapifaultGroq401Unauthorized: "call.in-progress.error-vapifault-groq-401-unauthorized", - CallInProgressErrorVapifaultGroq403ModelAccessDenied: - "call.in-progress.error-vapifault-groq-403-model-access-denied", - CallInProgressErrorVapifaultGroq429ExceededQuota: "call.in-progress.error-vapifault-groq-429-exceeded-quota", - CallInProgressErrorProviderfaultGroq500ServerError: - "call.in-progress.error-providerfault-groq-500-server-error", - CallInProgressErrorProviderfaultGroq503ServerOverloadedError: - "call.in-progress.error-providerfault-groq-503-server-overloaded-error", - PipelineErrorCerebras400BadRequestValidationFailed: "pipeline-error-cerebras-400-bad-request-validation-failed", - PipelineErrorCerebras401Unauthorized: "pipeline-error-cerebras-401-unauthorized", - PipelineErrorCerebras403ModelAccessDenied: "pipeline-error-cerebras-403-model-access-denied", - PipelineErrorCerebras429ExceededQuota: "pipeline-error-cerebras-429-exceeded-quota", - PipelineErrorCerebras500ServerError: "pipeline-error-cerebras-500-server-error", - PipelineErrorCerebras503ServerOverloadedError: "pipeline-error-cerebras-503-server-overloaded-error", - PipelineErrorCerebrasLlmFailed: "pipeline-error-cerebras-llm-failed", - CallInProgressErrorVapifaultCerebras400BadRequestValidationFailed: - "call.in-progress.error-vapifault-cerebras-400-bad-request-validation-failed", - CallInProgressErrorVapifaultCerebras401Unauthorized: - "call.in-progress.error-vapifault-cerebras-401-unauthorized", - CallInProgressErrorVapifaultCerebras403ModelAccessDenied: - "call.in-progress.error-vapifault-cerebras-403-model-access-denied", - CallInProgressErrorVapifaultCerebras429ExceededQuota: - "call.in-progress.error-vapifault-cerebras-429-exceeded-quota", - CallInProgressErrorProviderfaultCerebras500ServerError: - "call.in-progress.error-providerfault-cerebras-500-server-error", - CallInProgressErrorProviderfaultCerebras503ServerOverloadedError: - "call.in-progress.error-providerfault-cerebras-503-server-overloaded-error", - PipelineErrorAnthropic400BadRequestValidationFailed: - "pipeline-error-anthropic-400-bad-request-validation-failed", - PipelineErrorAnthropic401Unauthorized: "pipeline-error-anthropic-401-unauthorized", - PipelineErrorAnthropic403ModelAccessDenied: "pipeline-error-anthropic-403-model-access-denied", - PipelineErrorAnthropic429ExceededQuota: "pipeline-error-anthropic-429-exceeded-quota", - PipelineErrorAnthropic500ServerError: "pipeline-error-anthropic-500-server-error", - PipelineErrorAnthropic503ServerOverloadedError: "pipeline-error-anthropic-503-server-overloaded-error", - PipelineErrorAnthropicLlmFailed: "pipeline-error-anthropic-llm-failed", - CallInProgressErrorProviderfaultAnthropicLlmFailed: "call.in-progress.error-providerfault-anthropic-llm-failed", - CallInProgressErrorVapifaultAnthropic400BadRequestValidationFailed: - "call.in-progress.error-vapifault-anthropic-400-bad-request-validation-failed", - CallInProgressErrorVapifaultAnthropic401Unauthorized: - "call.in-progress.error-vapifault-anthropic-401-unauthorized", - CallInProgressErrorVapifaultAnthropic403ModelAccessDenied: - "call.in-progress.error-vapifault-anthropic-403-model-access-denied", - CallInProgressErrorVapifaultAnthropic429ExceededQuota: - "call.in-progress.error-vapifault-anthropic-429-exceeded-quota", - CallInProgressErrorProviderfaultAnthropic500ServerError: - "call.in-progress.error-providerfault-anthropic-500-server-error", - CallInProgressErrorProviderfaultAnthropic503ServerOverloadedError: - "call.in-progress.error-providerfault-anthropic-503-server-overloaded-error", - PipelineErrorAnthropicBedrock400BadRequestValidationFailed: - "pipeline-error-anthropic-bedrock-400-bad-request-validation-failed", - PipelineErrorAnthropicBedrock401Unauthorized: "pipeline-error-anthropic-bedrock-401-unauthorized", - PipelineErrorAnthropicBedrock403ModelAccessDenied: "pipeline-error-anthropic-bedrock-403-model-access-denied", - PipelineErrorAnthropicBedrock429ExceededQuota: "pipeline-error-anthropic-bedrock-429-exceeded-quota", - PipelineErrorAnthropicBedrock500ServerError: "pipeline-error-anthropic-bedrock-500-server-error", - PipelineErrorAnthropicBedrock503ServerOverloadedError: - "pipeline-error-anthropic-bedrock-503-server-overloaded-error", - PipelineErrorAnthropicBedrockLlmFailed: "pipeline-error-anthropic-bedrock-llm-failed", - CallInProgressErrorProviderfaultAnthropicBedrockLlmFailed: - "call.in-progress.error-providerfault-anthropic-bedrock-llm-failed", - CallInProgressErrorVapifaultAnthropicBedrock400BadRequestValidationFailed: - "call.in-progress.error-vapifault-anthropic-bedrock-400-bad-request-validation-failed", - CallInProgressErrorVapifaultAnthropicBedrock401Unauthorized: - "call.in-progress.error-vapifault-anthropic-bedrock-401-unauthorized", - CallInProgressErrorVapifaultAnthropicBedrock403ModelAccessDenied: - "call.in-progress.error-vapifault-anthropic-bedrock-403-model-access-denied", - CallInProgressErrorVapifaultAnthropicBedrock429ExceededQuota: - "call.in-progress.error-vapifault-anthropic-bedrock-429-exceeded-quota", - CallInProgressErrorProviderfaultAnthropicBedrock500ServerError: - "call.in-progress.error-providerfault-anthropic-bedrock-500-server-error", - CallInProgressErrorProviderfaultAnthropicBedrock503ServerOverloadedError: - "call.in-progress.error-providerfault-anthropic-bedrock-503-server-overloaded-error", - PipelineErrorAnthropicVertex400BadRequestValidationFailed: - "pipeline-error-anthropic-vertex-400-bad-request-validation-failed", - PipelineErrorAnthropicVertex401Unauthorized: "pipeline-error-anthropic-vertex-401-unauthorized", - PipelineErrorAnthropicVertex403ModelAccessDenied: "pipeline-error-anthropic-vertex-403-model-access-denied", - PipelineErrorAnthropicVertex429ExceededQuota: "pipeline-error-anthropic-vertex-429-exceeded-quota", - PipelineErrorAnthropicVertex500ServerError: "pipeline-error-anthropic-vertex-500-server-error", - PipelineErrorAnthropicVertex503ServerOverloadedError: - "pipeline-error-anthropic-vertex-503-server-overloaded-error", - PipelineErrorAnthropicVertexLlmFailed: "pipeline-error-anthropic-vertex-llm-failed", - CallInProgressErrorProviderfaultAnthropicVertexLlmFailed: - "call.in-progress.error-providerfault-anthropic-vertex-llm-failed", - CallInProgressErrorVapifaultAnthropicVertex400BadRequestValidationFailed: - "call.in-progress.error-vapifault-anthropic-vertex-400-bad-request-validation-failed", - CallInProgressErrorVapifaultAnthropicVertex401Unauthorized: - "call.in-progress.error-vapifault-anthropic-vertex-401-unauthorized", - CallInProgressErrorVapifaultAnthropicVertex403ModelAccessDenied: - "call.in-progress.error-vapifault-anthropic-vertex-403-model-access-denied", - CallInProgressErrorVapifaultAnthropicVertex429ExceededQuota: - "call.in-progress.error-vapifault-anthropic-vertex-429-exceeded-quota", - CallInProgressErrorProviderfaultAnthropicVertex500ServerError: - "call.in-progress.error-providerfault-anthropic-vertex-500-server-error", - CallInProgressErrorProviderfaultAnthropicVertex503ServerOverloadedError: - "call.in-progress.error-providerfault-anthropic-vertex-503-server-overloaded-error", - PipelineErrorTogetherAi400BadRequestValidationFailed: - "pipeline-error-together-ai-400-bad-request-validation-failed", - PipelineErrorTogetherAi401Unauthorized: "pipeline-error-together-ai-401-unauthorized", - PipelineErrorTogetherAi403ModelAccessDenied: "pipeline-error-together-ai-403-model-access-denied", - PipelineErrorTogetherAi429ExceededQuota: "pipeline-error-together-ai-429-exceeded-quota", - PipelineErrorTogetherAi500ServerError: "pipeline-error-together-ai-500-server-error", - PipelineErrorTogetherAi503ServerOverloadedError: "pipeline-error-together-ai-503-server-overloaded-error", - PipelineErrorTogetherAiLlmFailed: "pipeline-error-together-ai-llm-failed", - CallInProgressErrorProviderfaultTogetherAiLlmFailed: - "call.in-progress.error-providerfault-together-ai-llm-failed", - CallInProgressErrorVapifaultTogetherAi400BadRequestValidationFailed: - "call.in-progress.error-vapifault-together-ai-400-bad-request-validation-failed", - CallInProgressErrorVapifaultTogetherAi401Unauthorized: - "call.in-progress.error-vapifault-together-ai-401-unauthorized", - CallInProgressErrorVapifaultTogetherAi403ModelAccessDenied: - "call.in-progress.error-vapifault-together-ai-403-model-access-denied", - CallInProgressErrorVapifaultTogetherAi429ExceededQuota: - "call.in-progress.error-vapifault-together-ai-429-exceeded-quota", - CallInProgressErrorProviderfaultTogetherAi500ServerError: - "call.in-progress.error-providerfault-together-ai-500-server-error", - CallInProgressErrorProviderfaultTogetherAi503ServerOverloadedError: - "call.in-progress.error-providerfault-together-ai-503-server-overloaded-error", - PipelineErrorAnyscale400BadRequestValidationFailed: "pipeline-error-anyscale-400-bad-request-validation-failed", - PipelineErrorAnyscale401Unauthorized: "pipeline-error-anyscale-401-unauthorized", - PipelineErrorAnyscale403ModelAccessDenied: "pipeline-error-anyscale-403-model-access-denied", - PipelineErrorAnyscale429ExceededQuota: "pipeline-error-anyscale-429-exceeded-quota", - PipelineErrorAnyscale500ServerError: "pipeline-error-anyscale-500-server-error", - PipelineErrorAnyscale503ServerOverloadedError: "pipeline-error-anyscale-503-server-overloaded-error", - PipelineErrorAnyscaleLlmFailed: "pipeline-error-anyscale-llm-failed", - CallInProgressErrorProviderfaultAnyscaleLlmFailed: "call.in-progress.error-providerfault-anyscale-llm-failed", - CallInProgressErrorVapifaultAnyscale400BadRequestValidationFailed: - "call.in-progress.error-vapifault-anyscale-400-bad-request-validation-failed", - CallInProgressErrorVapifaultAnyscale401Unauthorized: - "call.in-progress.error-vapifault-anyscale-401-unauthorized", - CallInProgressErrorVapifaultAnyscale403ModelAccessDenied: - "call.in-progress.error-vapifault-anyscale-403-model-access-denied", - CallInProgressErrorVapifaultAnyscale429ExceededQuota: - "call.in-progress.error-vapifault-anyscale-429-exceeded-quota", - CallInProgressErrorProviderfaultAnyscale500ServerError: - "call.in-progress.error-providerfault-anyscale-500-server-error", - CallInProgressErrorProviderfaultAnyscale503ServerOverloadedError: - "call.in-progress.error-providerfault-anyscale-503-server-overloaded-error", - PipelineErrorOpenrouter400BadRequestValidationFailed: - "pipeline-error-openrouter-400-bad-request-validation-failed", - PipelineErrorOpenrouter401Unauthorized: "pipeline-error-openrouter-401-unauthorized", - PipelineErrorOpenrouter403ModelAccessDenied: "pipeline-error-openrouter-403-model-access-denied", - PipelineErrorOpenrouter429ExceededQuota: "pipeline-error-openrouter-429-exceeded-quota", - PipelineErrorOpenrouter500ServerError: "pipeline-error-openrouter-500-server-error", - PipelineErrorOpenrouter503ServerOverloadedError: "pipeline-error-openrouter-503-server-overloaded-error", - PipelineErrorOpenrouterLlmFailed: "pipeline-error-openrouter-llm-failed", - CallInProgressErrorProviderfaultOpenrouterLlmFailed: - "call.in-progress.error-providerfault-openrouter-llm-failed", - CallInProgressErrorVapifaultOpenrouter400BadRequestValidationFailed: - "call.in-progress.error-vapifault-openrouter-400-bad-request-validation-failed", - CallInProgressErrorVapifaultOpenrouter401Unauthorized: - "call.in-progress.error-vapifault-openrouter-401-unauthorized", - CallInProgressErrorVapifaultOpenrouter403ModelAccessDenied: - "call.in-progress.error-vapifault-openrouter-403-model-access-denied", - CallInProgressErrorVapifaultOpenrouter429ExceededQuota: - "call.in-progress.error-vapifault-openrouter-429-exceeded-quota", - CallInProgressErrorProviderfaultOpenrouter500ServerError: - "call.in-progress.error-providerfault-openrouter-500-server-error", - CallInProgressErrorProviderfaultOpenrouter503ServerOverloadedError: - "call.in-progress.error-providerfault-openrouter-503-server-overloaded-error", - PipelineErrorPerplexityAi400BadRequestValidationFailed: - "pipeline-error-perplexity-ai-400-bad-request-validation-failed", - PipelineErrorPerplexityAi401Unauthorized: "pipeline-error-perplexity-ai-401-unauthorized", - PipelineErrorPerplexityAi403ModelAccessDenied: "pipeline-error-perplexity-ai-403-model-access-denied", - PipelineErrorPerplexityAi429ExceededQuota: "pipeline-error-perplexity-ai-429-exceeded-quota", - PipelineErrorPerplexityAi500ServerError: "pipeline-error-perplexity-ai-500-server-error", - PipelineErrorPerplexityAi503ServerOverloadedError: "pipeline-error-perplexity-ai-503-server-overloaded-error", - PipelineErrorPerplexityAiLlmFailed: "pipeline-error-perplexity-ai-llm-failed", - CallInProgressErrorProviderfaultPerplexityAiLlmFailed: - "call.in-progress.error-providerfault-perplexity-ai-llm-failed", - CallInProgressErrorVapifaultPerplexityAi400BadRequestValidationFailed: - "call.in-progress.error-vapifault-perplexity-ai-400-bad-request-validation-failed", - CallInProgressErrorVapifaultPerplexityAi401Unauthorized: - "call.in-progress.error-vapifault-perplexity-ai-401-unauthorized", - CallInProgressErrorVapifaultPerplexityAi403ModelAccessDenied: - "call.in-progress.error-vapifault-perplexity-ai-403-model-access-denied", - CallInProgressErrorVapifaultPerplexityAi429ExceededQuota: - "call.in-progress.error-vapifault-perplexity-ai-429-exceeded-quota", - CallInProgressErrorProviderfaultPerplexityAi500ServerError: - "call.in-progress.error-providerfault-perplexity-ai-500-server-error", - CallInProgressErrorProviderfaultPerplexityAi503ServerOverloadedError: - "call.in-progress.error-providerfault-perplexity-ai-503-server-overloaded-error", - PipelineErrorDeepinfra400BadRequestValidationFailed: - "pipeline-error-deepinfra-400-bad-request-validation-failed", - PipelineErrorDeepinfra401Unauthorized: "pipeline-error-deepinfra-401-unauthorized", - PipelineErrorDeepinfra403ModelAccessDenied: "pipeline-error-deepinfra-403-model-access-denied", - PipelineErrorDeepinfra429ExceededQuota: "pipeline-error-deepinfra-429-exceeded-quota", - PipelineErrorDeepinfra500ServerError: "pipeline-error-deepinfra-500-server-error", - PipelineErrorDeepinfra503ServerOverloadedError: "pipeline-error-deepinfra-503-server-overloaded-error", - PipelineErrorDeepinfraLlmFailed: "pipeline-error-deepinfra-llm-failed", - CallInProgressErrorProviderfaultDeepinfraLlmFailed: "call.in-progress.error-providerfault-deepinfra-llm-failed", - CallInProgressErrorVapifaultDeepinfra400BadRequestValidationFailed: - "call.in-progress.error-vapifault-deepinfra-400-bad-request-validation-failed", - CallInProgressErrorVapifaultDeepinfra401Unauthorized: - "call.in-progress.error-vapifault-deepinfra-401-unauthorized", - CallInProgressErrorVapifaultDeepinfra403ModelAccessDenied: - "call.in-progress.error-vapifault-deepinfra-403-model-access-denied", - CallInProgressErrorVapifaultDeepinfra429ExceededQuota: - "call.in-progress.error-vapifault-deepinfra-429-exceeded-quota", - CallInProgressErrorProviderfaultDeepinfra500ServerError: - "call.in-progress.error-providerfault-deepinfra-500-server-error", - CallInProgressErrorProviderfaultDeepinfra503ServerOverloadedError: - "call.in-progress.error-providerfault-deepinfra-503-server-overloaded-error", - PipelineErrorRunpod400BadRequestValidationFailed: "pipeline-error-runpod-400-bad-request-validation-failed", - PipelineErrorRunpod401Unauthorized: "pipeline-error-runpod-401-unauthorized", - PipelineErrorRunpod403ModelAccessDenied: "pipeline-error-runpod-403-model-access-denied", - PipelineErrorRunpod429ExceededQuota: "pipeline-error-runpod-429-exceeded-quota", - PipelineErrorRunpod500ServerError: "pipeline-error-runpod-500-server-error", - PipelineErrorRunpod503ServerOverloadedError: "pipeline-error-runpod-503-server-overloaded-error", - PipelineErrorRunpodLlmFailed: "pipeline-error-runpod-llm-failed", - CallInProgressErrorProviderfaultRunpodLlmFailed: "call.in-progress.error-providerfault-runpod-llm-failed", - CallInProgressErrorVapifaultRunpod400BadRequestValidationFailed: - "call.in-progress.error-vapifault-runpod-400-bad-request-validation-failed", - CallInProgressErrorVapifaultRunpod401Unauthorized: "call.in-progress.error-vapifault-runpod-401-unauthorized", - CallInProgressErrorVapifaultRunpod403ModelAccessDenied: - "call.in-progress.error-vapifault-runpod-403-model-access-denied", - CallInProgressErrorVapifaultRunpod429ExceededQuota: - "call.in-progress.error-vapifault-runpod-429-exceeded-quota", - CallInProgressErrorProviderfaultRunpod500ServerError: - "call.in-progress.error-providerfault-runpod-500-server-error", - CallInProgressErrorProviderfaultRunpod503ServerOverloadedError: - "call.in-progress.error-providerfault-runpod-503-server-overloaded-error", - PipelineErrorCustomLlm400BadRequestValidationFailed: - "pipeline-error-custom-llm-400-bad-request-validation-failed", - PipelineErrorCustomLlm401Unauthorized: "pipeline-error-custom-llm-401-unauthorized", - PipelineErrorCustomLlm403ModelAccessDenied: "pipeline-error-custom-llm-403-model-access-denied", - PipelineErrorCustomLlm429ExceededQuota: "pipeline-error-custom-llm-429-exceeded-quota", - PipelineErrorCustomLlm500ServerError: "pipeline-error-custom-llm-500-server-error", - PipelineErrorCustomLlm503ServerOverloadedError: "pipeline-error-custom-llm-503-server-overloaded-error", - PipelineErrorCustomLlmLlmFailed: "pipeline-error-custom-llm-llm-failed", - CallInProgressErrorProviderfaultCustomLlmLlmFailed: - "call.in-progress.error-providerfault-custom-llm-llm-failed", - CallInProgressErrorVapifaultCustomLlm400BadRequestValidationFailed: - "call.in-progress.error-vapifault-custom-llm-400-bad-request-validation-failed", - CallInProgressErrorVapifaultCustomLlm401Unauthorized: - "call.in-progress.error-vapifault-custom-llm-401-unauthorized", - CallInProgressErrorVapifaultCustomLlm403ModelAccessDenied: - "call.in-progress.error-vapifault-custom-llm-403-model-access-denied", - CallInProgressErrorVapifaultCustomLlm429ExceededQuota: - "call.in-progress.error-vapifault-custom-llm-429-exceeded-quota", - CallInProgressErrorProviderfaultCustomLlm500ServerError: - "call.in-progress.error-providerfault-custom-llm-500-server-error", - CallInProgressErrorProviderfaultCustomLlm503ServerOverloadedError: - "call.in-progress.error-providerfault-custom-llm-503-server-overloaded-error", - PipelineErrorCustomVoiceFailed: "pipeline-error-custom-voice-failed", - PipelineErrorCartesiaSocketHangUp: "pipeline-error-cartesia-socket-hang-up", - PipelineErrorCartesiaRequestedPayment: "pipeline-error-cartesia-requested-payment", - PipelineErrorCartesia500ServerError: "pipeline-error-cartesia-500-server-error", - PipelineErrorCartesia502ServerError: "pipeline-error-cartesia-502-server-error", - PipelineErrorCartesia503ServerError: "pipeline-error-cartesia-503-server-error", - PipelineErrorCartesia522ServerError: "pipeline-error-cartesia-522-server-error", - CallInProgressErrorVapifaultCartesiaSocketHangUp: "call.in-progress.error-vapifault-cartesia-socket-hang-up", - CallInProgressErrorVapifaultCartesiaRequestedPayment: - "call.in-progress.error-vapifault-cartesia-requested-payment", - CallInProgressErrorProviderfaultCartesia500ServerError: - "call.in-progress.error-providerfault-cartesia-500-server-error", - CallInProgressErrorProviderfaultCartesia503ServerError: - "call.in-progress.error-providerfault-cartesia-503-server-error", - CallInProgressErrorProviderfaultCartesia522ServerError: - "call.in-progress.error-providerfault-cartesia-522-server-error", - PipelineErrorElevenLabsVoiceNotFound: "pipeline-error-eleven-labs-voice-not-found", - PipelineErrorElevenLabsQuotaExceeded: "pipeline-error-eleven-labs-quota-exceeded", - PipelineErrorElevenLabsUnauthorizedAccess: "pipeline-error-eleven-labs-unauthorized-access", - PipelineErrorElevenLabsUnauthorizedToAccessModel: "pipeline-error-eleven-labs-unauthorized-to-access-model", - PipelineErrorElevenLabsProfessionalVoicesOnlyForCreatorPlus: - "pipeline-error-eleven-labs-professional-voices-only-for-creator-plus", - PipelineErrorElevenLabsBlockedFreePlanAndRequestedUpgrade: - "pipeline-error-eleven-labs-blocked-free-plan-and-requested-upgrade", - PipelineErrorElevenLabsBlockedConcurrentRequestsAndRequestedUpgrade: - "pipeline-error-eleven-labs-blocked-concurrent-requests-and-requested-upgrade", - PipelineErrorElevenLabsBlockedUsingInstantVoiceCloneAndRequestedUpgrade: - "pipeline-error-eleven-labs-blocked-using-instant-voice-clone-and-requested-upgrade", - PipelineErrorElevenLabsSystemBusyAndRequestedUpgrade: - "pipeline-error-eleven-labs-system-busy-and-requested-upgrade", - PipelineErrorElevenLabsVoiceNotFineTuned: "pipeline-error-eleven-labs-voice-not-fine-tuned", - PipelineErrorElevenLabsInvalidApiKey: "pipeline-error-eleven-labs-invalid-api-key", - PipelineErrorElevenLabsInvalidVoiceSamples: "pipeline-error-eleven-labs-invalid-voice-samples", - PipelineErrorElevenLabsVoiceDisabledByOwner: "pipeline-error-eleven-labs-voice-disabled-by-owner", - PipelineErrorElevenLabsVapiVoiceDisabledByOwner: "pipeline-error-eleven-labs-vapi-voice-disabled-by-owner", - PipelineErrorElevenLabsBlockedAccountInProbation: "pipeline-error-eleven-labs-blocked-account-in-probation", - PipelineErrorElevenLabsBlockedContentAgainstTheirPolicy: - "pipeline-error-eleven-labs-blocked-content-against-their-policy", - PipelineErrorElevenLabsMissingSamplesForVoiceClone: - "pipeline-error-eleven-labs-missing-samples-for-voice-clone", - PipelineErrorElevenLabsVoiceNotFineTunedAndCannotBeUsed: - "pipeline-error-eleven-labs-voice-not-fine-tuned-and-cannot-be-used", - PipelineErrorElevenLabsVoiceNotAllowedForFreeUsers: - "pipeline-error-eleven-labs-voice-not-allowed-for-free-users", - PipelineErrorElevenLabsMaxCharacterLimitExceeded: "pipeline-error-eleven-labs-max-character-limit-exceeded", - PipelineErrorElevenLabsBlockedVoicePotentiallyAgainstTermsOfServiceAndAwaitingVerification: - "pipeline-error-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification", - PipelineErrorElevenLabs500ServerError: "pipeline-error-eleven-labs-500-server-error", - PipelineErrorElevenLabs503ServerError: "pipeline-error-eleven-labs-503-server-error", - CallInProgressErrorVapifaultElevenLabsVoiceNotFound: - "call.in-progress.error-vapifault-eleven-labs-voice-not-found", - CallInProgressErrorVapifaultElevenLabsQuotaExceeded: - "call.in-progress.error-vapifault-eleven-labs-quota-exceeded", - CallInProgressErrorVapifaultElevenLabsUnauthorizedAccess: - "call.in-progress.error-vapifault-eleven-labs-unauthorized-access", - CallInProgressErrorVapifaultElevenLabsUnauthorizedToAccessModel: - "call.in-progress.error-vapifault-eleven-labs-unauthorized-to-access-model", - CallInProgressErrorVapifaultElevenLabsProfessionalVoicesOnlyForCreatorPlus: - "call.in-progress.error-vapifault-eleven-labs-professional-voices-only-for-creator-plus", - CallInProgressErrorVapifaultElevenLabsBlockedFreePlanAndRequestedUpgrade: - "call.in-progress.error-vapifault-eleven-labs-blocked-free-plan-and-requested-upgrade", - CallInProgressErrorVapifaultElevenLabsBlockedConcurrentRequestsAndRequestedUpgrade: - "call.in-progress.error-vapifault-eleven-labs-blocked-concurrent-requests-and-requested-upgrade", - CallInProgressErrorVapifaultElevenLabsBlockedUsingInstantVoiceCloneAndRequestedUpgrade: - "call.in-progress.error-vapifault-eleven-labs-blocked-using-instant-voice-clone-and-requested-upgrade", - CallInProgressErrorVapifaultElevenLabsSystemBusyAndRequestedUpgrade: - "call.in-progress.error-vapifault-eleven-labs-system-busy-and-requested-upgrade", - CallInProgressErrorVapifaultElevenLabsVoiceNotFineTuned: - "call.in-progress.error-vapifault-eleven-labs-voice-not-fine-tuned", - CallInProgressErrorVapifaultElevenLabsInvalidApiKey: - "call.in-progress.error-vapifault-eleven-labs-invalid-api-key", - CallInProgressErrorVapifaultElevenLabsInvalidVoiceSamples: - "call.in-progress.error-vapifault-eleven-labs-invalid-voice-samples", - CallInProgressErrorVapifaultElevenLabsVoiceDisabledByOwner: - "call.in-progress.error-vapifault-eleven-labs-voice-disabled-by-owner", - CallInProgressErrorVapifaultElevenLabsBlockedAccountInProbation: - "call.in-progress.error-vapifault-eleven-labs-blocked-account-in-probation", - CallInProgressErrorVapifaultElevenLabsBlockedContentAgainstTheirPolicy: - "call.in-progress.error-vapifault-eleven-labs-blocked-content-against-their-policy", - CallInProgressErrorVapifaultElevenLabsMissingSamplesForVoiceClone: - "call.in-progress.error-vapifault-eleven-labs-missing-samples-for-voice-clone", - CallInProgressErrorVapifaultElevenLabsVoiceNotFineTunedAndCannotBeUsed: - "call.in-progress.error-vapifault-eleven-labs-voice-not-fine-tuned-and-cannot-be-used", - CallInProgressErrorVapifaultElevenLabsVoiceNotAllowedForFreeUsers: - "call.in-progress.error-vapifault-eleven-labs-voice-not-allowed-for-free-users", - CallInProgressErrorVapifaultElevenLabsMaxCharacterLimitExceeded: - "call.in-progress.error-vapifault-eleven-labs-max-character-limit-exceeded", - CallInProgressErrorVapifaultElevenLabsBlockedVoicePotentiallyAgainstTermsOfServiceAndAwaitingVerification: - "call.in-progress.error-vapifault-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification", - CallInProgressErrorProviderfaultElevenLabs500ServerError: - "call.in-progress.error-providerfault-eleven-labs-500-server-error", - CallInProgressErrorProviderfaultElevenLabs503ServerError: - "call.in-progress.error-providerfault-eleven-labs-503-server-error", - PipelineErrorPlayhtRequestTimedOut: "pipeline-error-playht-request-timed-out", - PipelineErrorPlayhtInvalidVoice: "pipeline-error-playht-invalid-voice", - PipelineErrorPlayhtUnexpectedError: "pipeline-error-playht-unexpected-error", - PipelineErrorPlayhtOutOfCredits: "pipeline-error-playht-out-of-credits", - PipelineErrorPlayhtInvalidEmotion: "pipeline-error-playht-invalid-emotion", - PipelineErrorPlayhtVoiceMustBeAValidVoiceManifestUri: - "pipeline-error-playht-voice-must-be-a-valid-voice-manifest-uri", - PipelineErrorPlayht401Unauthorized: "pipeline-error-playht-401-unauthorized", - PipelineErrorPlayht403ForbiddenOutOfCharacters: "pipeline-error-playht-403-forbidden-out-of-characters", - PipelineErrorPlayht403ForbiddenApiAccessNotAvailable: - "pipeline-error-playht-403-forbidden-api-access-not-available", - PipelineErrorPlayht429ExceededQuota: "pipeline-error-playht-429-exceeded-quota", - PipelineErrorPlayht502GatewayError: "pipeline-error-playht-502-gateway-error", - PipelineErrorPlayht504GatewayError: "pipeline-error-playht-504-gateway-error", - CallInProgressErrorVapifaultPlayhtRequestTimedOut: "call.in-progress.error-vapifault-playht-request-timed-out", - CallInProgressErrorVapifaultPlayhtInvalidVoice: "call.in-progress.error-vapifault-playht-invalid-voice", - CallInProgressErrorVapifaultPlayhtUnexpectedError: "call.in-progress.error-vapifault-playht-unexpected-error", - CallInProgressErrorVapifaultPlayhtOutOfCredits: "call.in-progress.error-vapifault-playht-out-of-credits", - CallInProgressErrorVapifaultPlayhtInvalidEmotion: "call.in-progress.error-vapifault-playht-invalid-emotion", - CallInProgressErrorVapifaultPlayhtVoiceMustBeAValidVoiceManifestUri: - "call.in-progress.error-vapifault-playht-voice-must-be-a-valid-voice-manifest-uri", - CallInProgressErrorVapifaultPlayht401Unauthorized: "call.in-progress.error-vapifault-playht-401-unauthorized", - CallInProgressErrorVapifaultPlayht403ForbiddenOutOfCharacters: - "call.in-progress.error-vapifault-playht-403-forbidden-out-of-characters", - CallInProgressErrorVapifaultPlayht403ForbiddenApiAccessNotAvailable: - "call.in-progress.error-vapifault-playht-403-forbidden-api-access-not-available", - CallInProgressErrorVapifaultPlayht429ExceededQuota: - "call.in-progress.error-vapifault-playht-429-exceeded-quota", - CallInProgressErrorProviderfaultPlayht502GatewayError: - "call.in-progress.error-providerfault-playht-502-gateway-error", - CallInProgressErrorProviderfaultPlayht504GatewayError: - "call.in-progress.error-providerfault-playht-504-gateway-error", - PipelineErrorCustomTranscriberFailed: "pipeline-error-custom-transcriber-failed", - CallInProgressErrorVapifaultCustomTranscriberFailed: - "call.in-progress.error-vapifault-custom-transcriber-failed", - PipelineErrorElevenLabsTranscriberFailed: "pipeline-error-eleven-labs-transcriber-failed", - CallInProgressErrorVapifaultElevenLabsTranscriberFailed: - "call.in-progress.error-vapifault-eleven-labs-transcriber-failed", - PipelineErrorDeepgramReturning400NoSuchModelLanguageTierCombination: - "pipeline-error-deepgram-returning-400-no-such-model-language-tier-combination", - PipelineErrorDeepgramReturning401InvalidCredentials: - "pipeline-error-deepgram-returning-401-invalid-credentials", - PipelineErrorDeepgramReturning403ModelAccessDenied: "pipeline-error-deepgram-returning-403-model-access-denied", - PipelineErrorDeepgramReturning404NotFound: "pipeline-error-deepgram-returning-404-not-found", - PipelineErrorDeepgramReturning500InvalidJson: "pipeline-error-deepgram-returning-500-invalid-json", - PipelineErrorDeepgramReturning502NetworkError: "pipeline-error-deepgram-returning-502-network-error", - PipelineErrorDeepgramReturning502BadGatewayEhostunreach: - "pipeline-error-deepgram-returning-502-bad-gateway-ehostunreach", - PipelineErrorDeepgramReturningEconnreset: "pipeline-error-deepgram-returning-econnreset", - CallInProgressErrorVapifaultDeepgramReturning400NoSuchModelLanguageTierCombination: - "call.in-progress.error-vapifault-deepgram-returning-400-no-such-model-language-tier-combination", - CallInProgressErrorVapifaultDeepgramReturning401InvalidCredentials: - "call.in-progress.error-vapifault-deepgram-returning-401-invalid-credentials", - CallInProgressErrorVapifaultDeepgramReturning404NotFound: - "call.in-progress.error-vapifault-deepgram-returning-404-not-found", - CallInProgressErrorVapifaultDeepgramReturning403ModelAccessDenied: - "call.in-progress.error-vapifault-deepgram-returning-403-model-access-denied", - CallInProgressErrorProviderfaultDeepgramReturning500InvalidJson: - "call.in-progress.error-providerfault-deepgram-returning-500-invalid-json", - CallInProgressErrorProviderfaultDeepgramReturning502NetworkError: - "call.in-progress.error-providerfault-deepgram-returning-502-network-error", - CallInProgressErrorProviderfaultDeepgramReturning502BadGatewayEhostunreach: - "call.in-progress.error-providerfault-deepgram-returning-502-bad-gateway-ehostunreach", - PipelineErrorGoogleTranscriberFailed: "pipeline-error-google-transcriber-failed", - CallInProgressErrorVapifaultGoogleTranscriberFailed: - "call.in-progress.error-vapifault-google-transcriber-failed", - PipelineErrorOpenaiTranscriberFailed: "pipeline-error-openai-transcriber-failed", - CallInProgressErrorVapifaultOpenaiTranscriberFailed: - "call.in-progress.error-vapifault-openai-transcriber-failed", - CallInProgressErrorWarmTransferMaxDuration: "call.in-progress.error-warm-transfer-max-duration", - CallInProgressErrorWarmTransferAssistantCancelled: "call.in-progress.error-warm-transfer-assistant-cancelled", - CallInProgressErrorWarmTransferSilenceTimeout: "call.in-progress.error-warm-transfer-silence-timeout", - CallInProgressErrorWarmTransferMicrophoneTimeout: "call.in-progress.error-warm-transfer-microphone-timeout", - CallInProgressErrorWarmTransferHangTimeout: "call.in-progress.error-warm-transfer-hang-timeout", - CallInProgressErrorWarmTransferIdleTimeout: "call.in-progress.error-warm-transfer-idle-timeout", - AssistantEndedCall: "assistant-ended-call", - AssistantSaidEndCallPhrase: "assistant-said-end-call-phrase", - AssistantEndedCallWithHangupTask: "assistant-ended-call-with-hangup-task", - AssistantEndedCallAfterMessageSpoken: "assistant-ended-call-after-message-spoken", - AssistantForwardedCall: "assistant-forwarded-call", - AssistantJoinTimedOut: "assistant-join-timed-out", - CallInProgressErrorAssistantDidNotReceiveCustomerAudio: - "call.in-progress.error-assistant-did-not-receive-customer-audio", - CallInProgressErrorTransferFailed: "call.in-progress.error-transfer-failed", - CustomerBusy: "customer-busy", - CustomerEndedCall: "customer-ended-call", - CustomerEndedCallBeforeWarmTransfer: "customer-ended-call-before-warm-transfer", - CustomerEndedCallAfterWarmTransferAttempt: "customer-ended-call-after-warm-transfer-attempt", - CustomerDidNotAnswer: "customer-did-not-answer", - CustomerDidNotGiveMicrophonePermission: "customer-did-not-give-microphone-permission", - ExceededMaxDuration: "exceeded-max-duration", - ManuallyCanceled: "manually-canceled", - PhoneCallProviderClosedWebsocket: "phone-call-provider-closed-websocket", - CallForwardingOperatorBusy: "call.forwarding.operator-busy", - SilenceTimedOut: "silence-timed-out", - CallInProgressErrorSipInboundCallFailedToConnect: "call.in-progress.error-sip-inbound-call-failed-to-connect", - CallInProgressErrorProviderfaultOutboundSip403Forbidden: - "call.in-progress.error-providerfault-outbound-sip-403-forbidden", - CallInProgressErrorProviderfaultOutboundSip407ProxyAuthenticationRequired: - "call.in-progress.error-providerfault-outbound-sip-407-proxy-authentication-required", - CallInProgressErrorProviderfaultOutboundSip503ServiceUnavailable: - "call.in-progress.error-providerfault-outbound-sip-503-service-unavailable", - CallInProgressErrorProviderfaultOutboundSip480TemporarilyUnavailable: - "call.in-progress.error-providerfault-outbound-sip-480-temporarily-unavailable", - CallInProgressErrorSipOutboundCallFailedToConnect: "call.in-progress.error-sip-outbound-call-failed-to-connect", - CallRingingHookExecutedSay: "call.ringing.hook-executed-say", - CallRingingHookExecutedTransfer: "call.ringing.hook-executed-transfer", - CallEndingHookExecutedSay: "call.ending.hook-executed-say", - CallEndingHookExecutedTransfer: "call.ending.hook-executed-transfer", - CallRingingSipInboundCallerHungupBeforeCallConnect: - "call.ringing.sip-inbound-caller-hungup-before-call-connect", - CallRingingErrorSipInboundCallFailedToConnect: "call.ringing.error-sip-inbound-call-failed-to-connect", - TwilioFailedToConnectCall: "twilio-failed-to-connect-call", - TwilioReportedCustomerMisdialed: "twilio-reported-customer-misdialed", - VonageRejected: "vonage-rejected", - Voicemail: "voicemail", - CallDeleted: "call-deleted", - } as const; - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.UserMessage - | Vapi.SystemMessage - | Vapi.BotMessage - | Vapi.ToolCallMessage - | Vapi.ToolCallResultMessage; - } - - /** - * This is the destination the call is being transferred to. This is only sent if the status is "forwarding". - */ - export type Destination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; -} diff --git a/src/api/types/ServerMessageStatusUpdateDestination.ts b/src/api/types/ServerMessageStatusUpdateDestination.ts new file mode 100644 index 00000000..b64040c3 --- /dev/null +++ b/src/api/types/ServerMessageStatusUpdateDestination.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the destination the call is being transferred to. This is only sent if the status is "forwarding". + */ +export type ServerMessageStatusUpdateDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; diff --git a/src/api/types/ServerMessageStatusUpdateEndedReason.ts b/src/api/types/ServerMessageStatusUpdateEndedReason.ts new file mode 100644 index 00000000..963b240a --- /dev/null +++ b/src/api/types/ServerMessageStatusUpdateEndedReason.ts @@ -0,0 +1,1245 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the reason the call ended. This is only sent if the status is "ended". + */ +export type ServerMessageStatusUpdateEndedReason = + | "call-start-error-neither-assistant-nor-server-set" + | "assistant-request-failed" + | "assistant-request-returned-error" + | "assistant-request-returned-unspeakable-error" + | "assistant-request-returned-invalid-assistant" + | "assistant-request-returned-no-assistant" + | "assistant-request-returned-forwarding-phone-number" + | "scheduled-call-deleted" + | "call.start.error-vapifault-get-org" + | "call.start.error-vapifault-get-subscription" + | "call.start.error-get-assistant" + | "call.start.error-get-phone-number" + | "call.start.error-get-customer" + | "call.start.error-get-resources-validation" + | "call.start.error-vapi-number-international" + | "call.start.error-vapi-number-outbound-daily-limit" + | "call.start.error-get-transport" + | "call.start.error-subscription-wallet-does-not-exist" + | "call.start.error-fraud-check-failed" + | "call.start.error-subscription-frozen" + | "call.start.error-subscription-insufficient-credits" + | "call.start.error-subscription-upgrade-failed" + | "call.start.error-subscription-concurrency-limit-reached" + | "call.start.error-enterprise-feature-not-available-recording-consent" + | "assistant-not-valid" + | "call.start.error-vapifault-database-error" + | "assistant-not-found" + | "pipeline-error-openai-voice-failed" + | "pipeline-error-cartesia-voice-failed" + | "pipeline-error-deepgram-voice-failed" + | "pipeline-error-eleven-labs-voice-failed" + | "pipeline-error-playht-voice-failed" + | "pipeline-error-lmnt-voice-failed" + | "pipeline-error-azure-voice-failed" + | "pipeline-error-rime-ai-voice-failed" + | "pipeline-error-smallest-ai-voice-failed" + | "pipeline-error-neuphonic-voice-failed" + | "pipeline-error-hume-voice-failed" + | "pipeline-error-sesame-voice-failed" + | "pipeline-error-inworld-voice-failed" + | "pipeline-error-minimax-voice-failed" + | "pipeline-error-tavus-video-failed" + | "call.in-progress.error-vapifault-openai-voice-failed" + | "call.in-progress.error-vapifault-cartesia-voice-failed" + | "call.in-progress.error-vapifault-deepgram-voice-failed" + | "call.in-progress.error-vapifault-eleven-labs-voice-failed" + | "call.in-progress.error-vapifault-playht-voice-failed" + | "call.in-progress.error-vapifault-lmnt-voice-failed" + | "call.in-progress.error-vapifault-azure-voice-failed" + | "call.in-progress.error-vapifault-rime-ai-voice-failed" + | "call.in-progress.error-vapifault-smallest-ai-voice-failed" + | "call.in-progress.error-vapifault-neuphonic-voice-failed" + | "call.in-progress.error-vapifault-hume-voice-failed" + | "call.in-progress.error-vapifault-sesame-voice-failed" + | "call.in-progress.error-vapifault-inworld-voice-failed" + | "call.in-progress.error-vapifault-minimax-voice-failed" + | "call.in-progress.error-vapifault-tavus-video-failed" + | "pipeline-error-vapi-llm-failed" + | "pipeline-error-vapi-400-bad-request-validation-failed" + | "pipeline-error-vapi-401-unauthorized" + | "pipeline-error-vapi-403-model-access-denied" + | "pipeline-error-vapi-429-exceeded-quota" + | "pipeline-error-vapi-500-server-error" + | "pipeline-error-vapi-503-server-overloaded-error" + | "call.in-progress.error-providerfault-vapi-llm-failed" + | "call.in-progress.error-vapifault-vapi-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-vapi-401-unauthorized" + | "call.in-progress.error-vapifault-vapi-403-model-access-denied" + | "call.in-progress.error-vapifault-vapi-429-exceeded-quota" + | "call.in-progress.error-providerfault-vapi-500-server-error" + | "call.in-progress.error-providerfault-vapi-503-server-overloaded-error" + | "pipeline-error-deepgram-transcriber-failed" + | "pipeline-error-deepgram-transcriber-api-key-missing" + | "call.in-progress.error-vapifault-deepgram-transcriber-failed" + | "pipeline-error-gladia-transcriber-failed" + | "call.in-progress.error-vapifault-gladia-transcriber-failed" + | "pipeline-error-speechmatics-transcriber-failed" + | "call.in-progress.error-vapifault-speechmatics-transcriber-failed" + | "pipeline-error-assembly-ai-transcriber-failed" + | "pipeline-error-assembly-ai-returning-400-insufficent-funds" + | "pipeline-error-assembly-ai-returning-400-paid-only-feature" + | "pipeline-error-assembly-ai-returning-401-invalid-credentials" + | "pipeline-error-assembly-ai-returning-500-invalid-schema" + | "pipeline-error-assembly-ai-returning-500-word-boost-parsing-failed" + | "call.in-progress.error-vapifault-assembly-ai-transcriber-failed" + | "call.in-progress.error-vapifault-assembly-ai-returning-400-insufficent-funds" + | "call.in-progress.error-vapifault-assembly-ai-returning-400-paid-only-feature" + | "call.in-progress.error-vapifault-assembly-ai-returning-401-invalid-credentials" + | "call.in-progress.error-vapifault-assembly-ai-returning-500-invalid-schema" + | "call.in-progress.error-vapifault-assembly-ai-returning-500-word-boost-parsing-failed" + | "pipeline-error-talkscriber-transcriber-failed" + | "call.in-progress.error-vapifault-talkscriber-transcriber-failed" + | "pipeline-error-azure-speech-transcriber-failed" + | "call.in-progress.error-vapifault-azure-speech-transcriber-failed" + | "call.in-progress.error-pipeline-no-available-llm-model" + | "worker-shutdown" + | "vonage-disconnected" + | "vonage-failed-to-connect-call" + | "vonage-completed" + | "phone-call-provider-bypass-enabled-but-no-call-received" + | "call.in-progress.error-providerfault-transport-never-connected" + | "call.in-progress.error-vapifault-worker-not-available" + | "call.in-progress.error-vapifault-transport-never-connected" + | "call.in-progress.error-vapifault-transport-connected-but-call-not-active" + | "call.in-progress.error-vapifault-call-started-but-connection-to-transport-missing" + | "call.in-progress.error-vapifault-worker-died" + | "call.in-progress.twilio-completed-call" + | "call.in-progress.sip-completed-call" + | "call.in-progress.error-providerfault-openai-llm-failed" + | "call.in-progress.error-providerfault-azure-openai-llm-failed" + | "call.in-progress.error-providerfault-groq-llm-failed" + | "call.in-progress.error-providerfault-google-llm-failed" + | "call.in-progress.error-providerfault-xai-llm-failed" + | "call.in-progress.error-providerfault-mistral-llm-failed" + | "call.in-progress.error-providerfault-inflection-ai-llm-failed" + | "call.in-progress.error-providerfault-cerebras-llm-failed" + | "call.in-progress.error-providerfault-deep-seek-llm-failed" + | "call.in-progress.error-vapifault-chat-pipeline-failed-to-start" + | "pipeline-error-openai-400-bad-request-validation-failed" + | "pipeline-error-openai-401-unauthorized" + | "pipeline-error-openai-401-incorrect-api-key" + | "pipeline-error-openai-401-account-not-in-organization" + | "pipeline-error-openai-403-model-access-denied" + | "pipeline-error-openai-429-exceeded-quota" + | "pipeline-error-openai-429-rate-limit-reached" + | "pipeline-error-openai-500-server-error" + | "pipeline-error-openai-503-server-overloaded-error" + | "pipeline-error-openai-llm-failed" + | "call.in-progress.error-vapifault-openai-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-openai-401-unauthorized" + | "call.in-progress.error-vapifault-openai-401-incorrect-api-key" + | "call.in-progress.error-vapifault-openai-401-account-not-in-organization" + | "call.in-progress.error-vapifault-openai-403-model-access-denied" + | "call.in-progress.error-vapifault-openai-429-exceeded-quota" + | "call.in-progress.error-vapifault-openai-429-rate-limit-reached" + | "call.in-progress.error-providerfault-openai-500-server-error" + | "call.in-progress.error-providerfault-openai-503-server-overloaded-error" + | "pipeline-error-azure-openai-400-bad-request-validation-failed" + | "pipeline-error-azure-openai-401-unauthorized" + | "pipeline-error-azure-openai-403-model-access-denied" + | "pipeline-error-azure-openai-429-exceeded-quota" + | "pipeline-error-azure-openai-500-server-error" + | "pipeline-error-azure-openai-503-server-overloaded-error" + | "pipeline-error-azure-openai-llm-failed" + | "call.in-progress.error-vapifault-azure-openai-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-azure-openai-401-unauthorized" + | "call.in-progress.error-vapifault-azure-openai-403-model-access-denied" + | "call.in-progress.error-vapifault-azure-openai-429-exceeded-quota" + | "call.in-progress.error-providerfault-azure-openai-500-server-error" + | "call.in-progress.error-providerfault-azure-openai-503-server-overloaded-error" + | "pipeline-error-google-400-bad-request-validation-failed" + | "pipeline-error-google-401-unauthorized" + | "pipeline-error-google-403-model-access-denied" + | "pipeline-error-google-429-exceeded-quota" + | "pipeline-error-google-500-server-error" + | "pipeline-error-google-503-server-overloaded-error" + | "pipeline-error-google-llm-failed" + | "call.in-progress.error-vapifault-google-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-google-401-unauthorized" + | "call.in-progress.error-vapifault-google-403-model-access-denied" + | "call.in-progress.error-vapifault-google-429-exceeded-quota" + | "call.in-progress.error-providerfault-google-500-server-error" + | "call.in-progress.error-providerfault-google-503-server-overloaded-error" + | "pipeline-error-xai-400-bad-request-validation-failed" + | "pipeline-error-xai-401-unauthorized" + | "pipeline-error-xai-403-model-access-denied" + | "pipeline-error-xai-429-exceeded-quota" + | "pipeline-error-xai-500-server-error" + | "pipeline-error-xai-503-server-overloaded-error" + | "pipeline-error-xai-llm-failed" + | "call.in-progress.error-vapifault-xai-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-xai-401-unauthorized" + | "call.in-progress.error-vapifault-xai-403-model-access-denied" + | "call.in-progress.error-vapifault-xai-429-exceeded-quota" + | "call.in-progress.error-providerfault-xai-500-server-error" + | "call.in-progress.error-providerfault-xai-503-server-overloaded-error" + | "pipeline-error-mistral-400-bad-request-validation-failed" + | "pipeline-error-mistral-401-unauthorized" + | "pipeline-error-mistral-403-model-access-denied" + | "pipeline-error-mistral-429-exceeded-quota" + | "pipeline-error-mistral-500-server-error" + | "pipeline-error-mistral-503-server-overloaded-error" + | "pipeline-error-mistral-llm-failed" + | "call.in-progress.error-vapifault-mistral-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-mistral-401-unauthorized" + | "call.in-progress.error-vapifault-mistral-403-model-access-denied" + | "call.in-progress.error-vapifault-mistral-429-exceeded-quota" + | "call.in-progress.error-providerfault-mistral-500-server-error" + | "call.in-progress.error-providerfault-mistral-503-server-overloaded-error" + | "pipeline-error-inflection-ai-400-bad-request-validation-failed" + | "pipeline-error-inflection-ai-401-unauthorized" + | "pipeline-error-inflection-ai-403-model-access-denied" + | "pipeline-error-inflection-ai-429-exceeded-quota" + | "pipeline-error-inflection-ai-500-server-error" + | "pipeline-error-inflection-ai-503-server-overloaded-error" + | "pipeline-error-inflection-ai-llm-failed" + | "call.in-progress.error-vapifault-inflection-ai-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-inflection-ai-401-unauthorized" + | "call.in-progress.error-vapifault-inflection-ai-403-model-access-denied" + | "call.in-progress.error-vapifault-inflection-ai-429-exceeded-quota" + | "call.in-progress.error-providerfault-inflection-ai-500-server-error" + | "call.in-progress.error-providerfault-inflection-ai-503-server-overloaded-error" + | "pipeline-error-deep-seek-400-bad-request-validation-failed" + | "pipeline-error-deep-seek-401-unauthorized" + | "pipeline-error-deep-seek-403-model-access-denied" + | "pipeline-error-deep-seek-429-exceeded-quota" + | "pipeline-error-deep-seek-500-server-error" + | "pipeline-error-deep-seek-503-server-overloaded-error" + | "pipeline-error-deep-seek-llm-failed" + | "call.in-progress.error-vapifault-deep-seek-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-deep-seek-401-unauthorized" + | "call.in-progress.error-vapifault-deep-seek-403-model-access-denied" + | "call.in-progress.error-vapifault-deep-seek-429-exceeded-quota" + | "call.in-progress.error-providerfault-deep-seek-500-server-error" + | "call.in-progress.error-providerfault-deep-seek-503-server-overloaded-error" + | "pipeline-error-groq-400-bad-request-validation-failed" + | "pipeline-error-groq-401-unauthorized" + | "pipeline-error-groq-403-model-access-denied" + | "pipeline-error-groq-429-exceeded-quota" + | "pipeline-error-groq-500-server-error" + | "pipeline-error-groq-503-server-overloaded-error" + | "pipeline-error-groq-llm-failed" + | "call.in-progress.error-vapifault-groq-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-groq-401-unauthorized" + | "call.in-progress.error-vapifault-groq-403-model-access-denied" + | "call.in-progress.error-vapifault-groq-429-exceeded-quota" + | "call.in-progress.error-providerfault-groq-500-server-error" + | "call.in-progress.error-providerfault-groq-503-server-overloaded-error" + | "pipeline-error-cerebras-400-bad-request-validation-failed" + | "pipeline-error-cerebras-401-unauthorized" + | "pipeline-error-cerebras-403-model-access-denied" + | "pipeline-error-cerebras-429-exceeded-quota" + | "pipeline-error-cerebras-500-server-error" + | "pipeline-error-cerebras-503-server-overloaded-error" + | "pipeline-error-cerebras-llm-failed" + | "call.in-progress.error-vapifault-cerebras-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-cerebras-401-unauthorized" + | "call.in-progress.error-vapifault-cerebras-403-model-access-denied" + | "call.in-progress.error-vapifault-cerebras-429-exceeded-quota" + | "call.in-progress.error-providerfault-cerebras-500-server-error" + | "call.in-progress.error-providerfault-cerebras-503-server-overloaded-error" + | "pipeline-error-anthropic-400-bad-request-validation-failed" + | "pipeline-error-anthropic-401-unauthorized" + | "pipeline-error-anthropic-403-model-access-denied" + | "pipeline-error-anthropic-429-exceeded-quota" + | "pipeline-error-anthropic-500-server-error" + | "pipeline-error-anthropic-503-server-overloaded-error" + | "pipeline-error-anthropic-llm-failed" + | "call.in-progress.error-providerfault-anthropic-llm-failed" + | "call.in-progress.error-vapifault-anthropic-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-anthropic-401-unauthorized" + | "call.in-progress.error-vapifault-anthropic-403-model-access-denied" + | "call.in-progress.error-vapifault-anthropic-429-exceeded-quota" + | "call.in-progress.error-providerfault-anthropic-500-server-error" + | "call.in-progress.error-providerfault-anthropic-503-server-overloaded-error" + | "pipeline-error-anthropic-bedrock-400-bad-request-validation-failed" + | "pipeline-error-anthropic-bedrock-401-unauthorized" + | "pipeline-error-anthropic-bedrock-403-model-access-denied" + | "pipeline-error-anthropic-bedrock-429-exceeded-quota" + | "pipeline-error-anthropic-bedrock-500-server-error" + | "pipeline-error-anthropic-bedrock-503-server-overloaded-error" + | "pipeline-error-anthropic-bedrock-llm-failed" + | "call.in-progress.error-providerfault-anthropic-bedrock-llm-failed" + | "call.in-progress.error-vapifault-anthropic-bedrock-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-anthropic-bedrock-401-unauthorized" + | "call.in-progress.error-vapifault-anthropic-bedrock-403-model-access-denied" + | "call.in-progress.error-vapifault-anthropic-bedrock-429-exceeded-quota" + | "call.in-progress.error-providerfault-anthropic-bedrock-500-server-error" + | "call.in-progress.error-providerfault-anthropic-bedrock-503-server-overloaded-error" + | "pipeline-error-anthropic-vertex-400-bad-request-validation-failed" + | "pipeline-error-anthropic-vertex-401-unauthorized" + | "pipeline-error-anthropic-vertex-403-model-access-denied" + | "pipeline-error-anthropic-vertex-429-exceeded-quota" + | "pipeline-error-anthropic-vertex-500-server-error" + | "pipeline-error-anthropic-vertex-503-server-overloaded-error" + | "pipeline-error-anthropic-vertex-llm-failed" + | "call.in-progress.error-providerfault-anthropic-vertex-llm-failed" + | "call.in-progress.error-vapifault-anthropic-vertex-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-anthropic-vertex-401-unauthorized" + | "call.in-progress.error-vapifault-anthropic-vertex-403-model-access-denied" + | "call.in-progress.error-vapifault-anthropic-vertex-429-exceeded-quota" + | "call.in-progress.error-providerfault-anthropic-vertex-500-server-error" + | "call.in-progress.error-providerfault-anthropic-vertex-503-server-overloaded-error" + | "pipeline-error-together-ai-400-bad-request-validation-failed" + | "pipeline-error-together-ai-401-unauthorized" + | "pipeline-error-together-ai-403-model-access-denied" + | "pipeline-error-together-ai-429-exceeded-quota" + | "pipeline-error-together-ai-500-server-error" + | "pipeline-error-together-ai-503-server-overloaded-error" + | "pipeline-error-together-ai-llm-failed" + | "call.in-progress.error-providerfault-together-ai-llm-failed" + | "call.in-progress.error-vapifault-together-ai-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-together-ai-401-unauthorized" + | "call.in-progress.error-vapifault-together-ai-403-model-access-denied" + | "call.in-progress.error-vapifault-together-ai-429-exceeded-quota" + | "call.in-progress.error-providerfault-together-ai-500-server-error" + | "call.in-progress.error-providerfault-together-ai-503-server-overloaded-error" + | "pipeline-error-anyscale-400-bad-request-validation-failed" + | "pipeline-error-anyscale-401-unauthorized" + | "pipeline-error-anyscale-403-model-access-denied" + | "pipeline-error-anyscale-429-exceeded-quota" + | "pipeline-error-anyscale-500-server-error" + | "pipeline-error-anyscale-503-server-overloaded-error" + | "pipeline-error-anyscale-llm-failed" + | "call.in-progress.error-providerfault-anyscale-llm-failed" + | "call.in-progress.error-vapifault-anyscale-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-anyscale-401-unauthorized" + | "call.in-progress.error-vapifault-anyscale-403-model-access-denied" + | "call.in-progress.error-vapifault-anyscale-429-exceeded-quota" + | "call.in-progress.error-providerfault-anyscale-500-server-error" + | "call.in-progress.error-providerfault-anyscale-503-server-overloaded-error" + | "pipeline-error-openrouter-400-bad-request-validation-failed" + | "pipeline-error-openrouter-401-unauthorized" + | "pipeline-error-openrouter-403-model-access-denied" + | "pipeline-error-openrouter-429-exceeded-quota" + | "pipeline-error-openrouter-500-server-error" + | "pipeline-error-openrouter-503-server-overloaded-error" + | "pipeline-error-openrouter-llm-failed" + | "call.in-progress.error-providerfault-openrouter-llm-failed" + | "call.in-progress.error-vapifault-openrouter-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-openrouter-401-unauthorized" + | "call.in-progress.error-vapifault-openrouter-403-model-access-denied" + | "call.in-progress.error-vapifault-openrouter-429-exceeded-quota" + | "call.in-progress.error-providerfault-openrouter-500-server-error" + | "call.in-progress.error-providerfault-openrouter-503-server-overloaded-error" + | "pipeline-error-perplexity-ai-400-bad-request-validation-failed" + | "pipeline-error-perplexity-ai-401-unauthorized" + | "pipeline-error-perplexity-ai-403-model-access-denied" + | "pipeline-error-perplexity-ai-429-exceeded-quota" + | "pipeline-error-perplexity-ai-500-server-error" + | "pipeline-error-perplexity-ai-503-server-overloaded-error" + | "pipeline-error-perplexity-ai-llm-failed" + | "call.in-progress.error-providerfault-perplexity-ai-llm-failed" + | "call.in-progress.error-vapifault-perplexity-ai-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-perplexity-ai-401-unauthorized" + | "call.in-progress.error-vapifault-perplexity-ai-403-model-access-denied" + | "call.in-progress.error-vapifault-perplexity-ai-429-exceeded-quota" + | "call.in-progress.error-providerfault-perplexity-ai-500-server-error" + | "call.in-progress.error-providerfault-perplexity-ai-503-server-overloaded-error" + | "pipeline-error-deepinfra-400-bad-request-validation-failed" + | "pipeline-error-deepinfra-401-unauthorized" + | "pipeline-error-deepinfra-403-model-access-denied" + | "pipeline-error-deepinfra-429-exceeded-quota" + | "pipeline-error-deepinfra-500-server-error" + | "pipeline-error-deepinfra-503-server-overloaded-error" + | "pipeline-error-deepinfra-llm-failed" + | "call.in-progress.error-providerfault-deepinfra-llm-failed" + | "call.in-progress.error-vapifault-deepinfra-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-deepinfra-401-unauthorized" + | "call.in-progress.error-vapifault-deepinfra-403-model-access-denied" + | "call.in-progress.error-vapifault-deepinfra-429-exceeded-quota" + | "call.in-progress.error-providerfault-deepinfra-500-server-error" + | "call.in-progress.error-providerfault-deepinfra-503-server-overloaded-error" + | "pipeline-error-runpod-400-bad-request-validation-failed" + | "pipeline-error-runpod-401-unauthorized" + | "pipeline-error-runpod-403-model-access-denied" + | "pipeline-error-runpod-429-exceeded-quota" + | "pipeline-error-runpod-500-server-error" + | "pipeline-error-runpod-503-server-overloaded-error" + | "pipeline-error-runpod-llm-failed" + | "call.in-progress.error-providerfault-runpod-llm-failed" + | "call.in-progress.error-vapifault-runpod-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-runpod-401-unauthorized" + | "call.in-progress.error-vapifault-runpod-403-model-access-denied" + | "call.in-progress.error-vapifault-runpod-429-exceeded-quota" + | "call.in-progress.error-providerfault-runpod-500-server-error" + | "call.in-progress.error-providerfault-runpod-503-server-overloaded-error" + | "pipeline-error-custom-llm-400-bad-request-validation-failed" + | "pipeline-error-custom-llm-401-unauthorized" + | "pipeline-error-custom-llm-403-model-access-denied" + | "pipeline-error-custom-llm-429-exceeded-quota" + | "pipeline-error-custom-llm-500-server-error" + | "pipeline-error-custom-llm-503-server-overloaded-error" + | "pipeline-error-custom-llm-llm-failed" + | "call.in-progress.error-providerfault-custom-llm-llm-failed" + | "call.in-progress.error-vapifault-custom-llm-400-bad-request-validation-failed" + | "call.in-progress.error-vapifault-custom-llm-401-unauthorized" + | "call.in-progress.error-vapifault-custom-llm-403-model-access-denied" + | "call.in-progress.error-vapifault-custom-llm-429-exceeded-quota" + | "call.in-progress.error-providerfault-custom-llm-500-server-error" + | "call.in-progress.error-providerfault-custom-llm-503-server-overloaded-error" + | "pipeline-error-custom-voice-failed" + | "pipeline-error-cartesia-socket-hang-up" + | "pipeline-error-cartesia-requested-payment" + | "pipeline-error-cartesia-500-server-error" + | "pipeline-error-cartesia-502-server-error" + | "pipeline-error-cartesia-503-server-error" + | "pipeline-error-cartesia-522-server-error" + | "call.in-progress.error-vapifault-cartesia-socket-hang-up" + | "call.in-progress.error-vapifault-cartesia-requested-payment" + | "call.in-progress.error-providerfault-cartesia-500-server-error" + | "call.in-progress.error-providerfault-cartesia-503-server-error" + | "call.in-progress.error-providerfault-cartesia-522-server-error" + | "pipeline-error-eleven-labs-voice-not-found" + | "pipeline-error-eleven-labs-quota-exceeded" + | "pipeline-error-eleven-labs-unauthorized-access" + | "pipeline-error-eleven-labs-unauthorized-to-access-model" + | "pipeline-error-eleven-labs-professional-voices-only-for-creator-plus" + | "pipeline-error-eleven-labs-blocked-free-plan-and-requested-upgrade" + | "pipeline-error-eleven-labs-blocked-concurrent-requests-and-requested-upgrade" + | "pipeline-error-eleven-labs-blocked-using-instant-voice-clone-and-requested-upgrade" + | "pipeline-error-eleven-labs-system-busy-and-requested-upgrade" + | "pipeline-error-eleven-labs-voice-not-fine-tuned" + | "pipeline-error-eleven-labs-invalid-api-key" + | "pipeline-error-eleven-labs-invalid-voice-samples" + | "pipeline-error-eleven-labs-voice-disabled-by-owner" + | "pipeline-error-eleven-labs-vapi-voice-disabled-by-owner" + | "pipeline-error-eleven-labs-blocked-account-in-probation" + | "pipeline-error-eleven-labs-blocked-content-against-their-policy" + | "pipeline-error-eleven-labs-missing-samples-for-voice-clone" + | "pipeline-error-eleven-labs-voice-not-fine-tuned-and-cannot-be-used" + | "pipeline-error-eleven-labs-voice-not-allowed-for-free-users" + | "pipeline-error-eleven-labs-max-character-limit-exceeded" + | "pipeline-error-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification" + | "pipeline-error-eleven-labs-500-server-error" + | "pipeline-error-eleven-labs-503-server-error" + | "call.in-progress.error-vapifault-eleven-labs-voice-not-found" + | "call.in-progress.error-vapifault-eleven-labs-quota-exceeded" + | "call.in-progress.error-vapifault-eleven-labs-unauthorized-access" + | "call.in-progress.error-vapifault-eleven-labs-unauthorized-to-access-model" + | "call.in-progress.error-vapifault-eleven-labs-professional-voices-only-for-creator-plus" + | "call.in-progress.error-vapifault-eleven-labs-blocked-free-plan-and-requested-upgrade" + | "call.in-progress.error-vapifault-eleven-labs-blocked-concurrent-requests-and-requested-upgrade" + | "call.in-progress.error-vapifault-eleven-labs-blocked-using-instant-voice-clone-and-requested-upgrade" + | "call.in-progress.error-vapifault-eleven-labs-system-busy-and-requested-upgrade" + | "call.in-progress.error-vapifault-eleven-labs-voice-not-fine-tuned" + | "call.in-progress.error-vapifault-eleven-labs-invalid-api-key" + | "call.in-progress.error-vapifault-eleven-labs-invalid-voice-samples" + | "call.in-progress.error-vapifault-eleven-labs-voice-disabled-by-owner" + | "call.in-progress.error-vapifault-eleven-labs-blocked-account-in-probation" + | "call.in-progress.error-vapifault-eleven-labs-blocked-content-against-their-policy" + | "call.in-progress.error-vapifault-eleven-labs-missing-samples-for-voice-clone" + | "call.in-progress.error-vapifault-eleven-labs-voice-not-fine-tuned-and-cannot-be-used" + | "call.in-progress.error-vapifault-eleven-labs-voice-not-allowed-for-free-users" + | "call.in-progress.error-vapifault-eleven-labs-max-character-limit-exceeded" + | "call.in-progress.error-vapifault-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification" + | "call.in-progress.error-providerfault-eleven-labs-500-server-error" + | "call.in-progress.error-providerfault-eleven-labs-503-server-error" + | "pipeline-error-playht-request-timed-out" + | "pipeline-error-playht-invalid-voice" + | "pipeline-error-playht-unexpected-error" + | "pipeline-error-playht-out-of-credits" + | "pipeline-error-playht-invalid-emotion" + | "pipeline-error-playht-voice-must-be-a-valid-voice-manifest-uri" + | "pipeline-error-playht-401-unauthorized" + | "pipeline-error-playht-403-forbidden-out-of-characters" + | "pipeline-error-playht-403-forbidden-api-access-not-available" + | "pipeline-error-playht-429-exceeded-quota" + | "pipeline-error-playht-502-gateway-error" + | "pipeline-error-playht-504-gateway-error" + | "call.in-progress.error-vapifault-playht-request-timed-out" + | "call.in-progress.error-vapifault-playht-invalid-voice" + | "call.in-progress.error-vapifault-playht-unexpected-error" + | "call.in-progress.error-vapifault-playht-out-of-credits" + | "call.in-progress.error-vapifault-playht-invalid-emotion" + | "call.in-progress.error-vapifault-playht-voice-must-be-a-valid-voice-manifest-uri" + | "call.in-progress.error-vapifault-playht-401-unauthorized" + | "call.in-progress.error-vapifault-playht-403-forbidden-out-of-characters" + | "call.in-progress.error-vapifault-playht-403-forbidden-api-access-not-available" + | "call.in-progress.error-vapifault-playht-429-exceeded-quota" + | "call.in-progress.error-providerfault-playht-502-gateway-error" + | "call.in-progress.error-providerfault-playht-504-gateway-error" + | "pipeline-error-custom-transcriber-failed" + | "call.in-progress.error-vapifault-custom-transcriber-failed" + | "pipeline-error-eleven-labs-transcriber-failed" + | "call.in-progress.error-vapifault-eleven-labs-transcriber-failed" + | "pipeline-error-deepgram-returning-400-no-such-model-language-tier-combination" + | "pipeline-error-deepgram-returning-401-invalid-credentials" + | "pipeline-error-deepgram-returning-403-model-access-denied" + | "pipeline-error-deepgram-returning-404-not-found" + | "pipeline-error-deepgram-returning-500-invalid-json" + | "pipeline-error-deepgram-returning-502-network-error" + | "pipeline-error-deepgram-returning-502-bad-gateway-ehostunreach" + | "pipeline-error-deepgram-returning-econnreset" + | "call.in-progress.error-vapifault-deepgram-returning-400-no-such-model-language-tier-combination" + | "call.in-progress.error-vapifault-deepgram-returning-401-invalid-credentials" + | "call.in-progress.error-vapifault-deepgram-returning-404-not-found" + | "call.in-progress.error-vapifault-deepgram-returning-403-model-access-denied" + | "call.in-progress.error-providerfault-deepgram-returning-500-invalid-json" + | "call.in-progress.error-providerfault-deepgram-returning-502-network-error" + | "call.in-progress.error-providerfault-deepgram-returning-502-bad-gateway-ehostunreach" + | "pipeline-error-google-transcriber-failed" + | "call.in-progress.error-vapifault-google-transcriber-failed" + | "pipeline-error-openai-transcriber-failed" + | "call.in-progress.error-vapifault-openai-transcriber-failed" + | "call.in-progress.error-warm-transfer-max-duration" + | "call.in-progress.error-warm-transfer-assistant-cancelled" + | "call.in-progress.error-warm-transfer-silence-timeout" + | "call.in-progress.error-warm-transfer-microphone-timeout" + | "call.in-progress.error-warm-transfer-hang-timeout" + | "call.in-progress.error-warm-transfer-idle-timeout" + | "assistant-ended-call" + | "assistant-said-end-call-phrase" + | "assistant-ended-call-with-hangup-task" + | "assistant-ended-call-after-message-spoken" + | "assistant-forwarded-call" + | "assistant-join-timed-out" + | "call.in-progress.error-assistant-did-not-receive-customer-audio" + | "call.in-progress.error-transfer-failed" + | "customer-busy" + | "customer-ended-call" + | "customer-ended-call-before-warm-transfer" + | "customer-ended-call-after-warm-transfer-attempt" + | "customer-did-not-answer" + | "customer-did-not-give-microphone-permission" + | "exceeded-max-duration" + | "manually-canceled" + | "phone-call-provider-closed-websocket" + | "call.forwarding.operator-busy" + | "silence-timed-out" + | "call.in-progress.error-sip-inbound-call-failed-to-connect" + | "call.in-progress.error-providerfault-outbound-sip-403-forbidden" + | "call.in-progress.error-providerfault-outbound-sip-407-proxy-authentication-required" + | "call.in-progress.error-providerfault-outbound-sip-503-service-unavailable" + | "call.in-progress.error-providerfault-outbound-sip-480-temporarily-unavailable" + | "call.in-progress.error-sip-outbound-call-failed-to-connect" + | "call.ringing.hook-executed-say" + | "call.ringing.hook-executed-transfer" + | "call.ending.hook-executed-say" + | "call.ending.hook-executed-transfer" + | "call.ringing.sip-inbound-caller-hungup-before-call-connect" + | "call.ringing.error-sip-inbound-call-failed-to-connect" + | "twilio-failed-to-connect-call" + | "twilio-reported-customer-misdialed" + | "vonage-rejected" + | "voicemail" + | "call-deleted"; +export const ServerMessageStatusUpdateEndedReason = { + CallStartErrorNeitherAssistantNorServerSet: "call-start-error-neither-assistant-nor-server-set", + AssistantRequestFailed: "assistant-request-failed", + AssistantRequestReturnedError: "assistant-request-returned-error", + AssistantRequestReturnedUnspeakableError: "assistant-request-returned-unspeakable-error", + AssistantRequestReturnedInvalidAssistant: "assistant-request-returned-invalid-assistant", + AssistantRequestReturnedNoAssistant: "assistant-request-returned-no-assistant", + AssistantRequestReturnedForwardingPhoneNumber: "assistant-request-returned-forwarding-phone-number", + ScheduledCallDeleted: "scheduled-call-deleted", + CallStartErrorVapifaultGetOrg: "call.start.error-vapifault-get-org", + CallStartErrorVapifaultGetSubscription: "call.start.error-vapifault-get-subscription", + CallStartErrorGetAssistant: "call.start.error-get-assistant", + CallStartErrorGetPhoneNumber: "call.start.error-get-phone-number", + CallStartErrorGetCustomer: "call.start.error-get-customer", + CallStartErrorGetResourcesValidation: "call.start.error-get-resources-validation", + CallStartErrorVapiNumberInternational: "call.start.error-vapi-number-international", + CallStartErrorVapiNumberOutboundDailyLimit: "call.start.error-vapi-number-outbound-daily-limit", + CallStartErrorGetTransport: "call.start.error-get-transport", + CallStartErrorSubscriptionWalletDoesNotExist: "call.start.error-subscription-wallet-does-not-exist", + CallStartErrorFraudCheckFailed: "call.start.error-fraud-check-failed", + CallStartErrorSubscriptionFrozen: "call.start.error-subscription-frozen", + CallStartErrorSubscriptionInsufficientCredits: "call.start.error-subscription-insufficient-credits", + CallStartErrorSubscriptionUpgradeFailed: "call.start.error-subscription-upgrade-failed", + CallStartErrorSubscriptionConcurrencyLimitReached: "call.start.error-subscription-concurrency-limit-reached", + CallStartErrorEnterpriseFeatureNotAvailableRecordingConsent: + "call.start.error-enterprise-feature-not-available-recording-consent", + AssistantNotValid: "assistant-not-valid", + CallStartErrorVapifaultDatabaseError: "call.start.error-vapifault-database-error", + AssistantNotFound: "assistant-not-found", + PipelineErrorOpenaiVoiceFailed: "pipeline-error-openai-voice-failed", + PipelineErrorCartesiaVoiceFailed: "pipeline-error-cartesia-voice-failed", + PipelineErrorDeepgramVoiceFailed: "pipeline-error-deepgram-voice-failed", + PipelineErrorElevenLabsVoiceFailed: "pipeline-error-eleven-labs-voice-failed", + PipelineErrorPlayhtVoiceFailed: "pipeline-error-playht-voice-failed", + PipelineErrorLmntVoiceFailed: "pipeline-error-lmnt-voice-failed", + PipelineErrorAzureVoiceFailed: "pipeline-error-azure-voice-failed", + PipelineErrorRimeAiVoiceFailed: "pipeline-error-rime-ai-voice-failed", + PipelineErrorSmallestAiVoiceFailed: "pipeline-error-smallest-ai-voice-failed", + PipelineErrorNeuphonicVoiceFailed: "pipeline-error-neuphonic-voice-failed", + PipelineErrorHumeVoiceFailed: "pipeline-error-hume-voice-failed", + PipelineErrorSesameVoiceFailed: "pipeline-error-sesame-voice-failed", + PipelineErrorInworldVoiceFailed: "pipeline-error-inworld-voice-failed", + PipelineErrorMinimaxVoiceFailed: "pipeline-error-minimax-voice-failed", + PipelineErrorTavusVideoFailed: "pipeline-error-tavus-video-failed", + CallInProgressErrorVapifaultOpenaiVoiceFailed: "call.in-progress.error-vapifault-openai-voice-failed", + CallInProgressErrorVapifaultCartesiaVoiceFailed: "call.in-progress.error-vapifault-cartesia-voice-failed", + CallInProgressErrorVapifaultDeepgramVoiceFailed: "call.in-progress.error-vapifault-deepgram-voice-failed", + CallInProgressErrorVapifaultElevenLabsVoiceFailed: "call.in-progress.error-vapifault-eleven-labs-voice-failed", + CallInProgressErrorVapifaultPlayhtVoiceFailed: "call.in-progress.error-vapifault-playht-voice-failed", + CallInProgressErrorVapifaultLmntVoiceFailed: "call.in-progress.error-vapifault-lmnt-voice-failed", + CallInProgressErrorVapifaultAzureVoiceFailed: "call.in-progress.error-vapifault-azure-voice-failed", + CallInProgressErrorVapifaultRimeAiVoiceFailed: "call.in-progress.error-vapifault-rime-ai-voice-failed", + CallInProgressErrorVapifaultSmallestAiVoiceFailed: "call.in-progress.error-vapifault-smallest-ai-voice-failed", + CallInProgressErrorVapifaultNeuphonicVoiceFailed: "call.in-progress.error-vapifault-neuphonic-voice-failed", + CallInProgressErrorVapifaultHumeVoiceFailed: "call.in-progress.error-vapifault-hume-voice-failed", + CallInProgressErrorVapifaultSesameVoiceFailed: "call.in-progress.error-vapifault-sesame-voice-failed", + CallInProgressErrorVapifaultInworldVoiceFailed: "call.in-progress.error-vapifault-inworld-voice-failed", + CallInProgressErrorVapifaultMinimaxVoiceFailed: "call.in-progress.error-vapifault-minimax-voice-failed", + CallInProgressErrorVapifaultTavusVideoFailed: "call.in-progress.error-vapifault-tavus-video-failed", + PipelineErrorVapiLlmFailed: "pipeline-error-vapi-llm-failed", + PipelineErrorVapi400BadRequestValidationFailed: "pipeline-error-vapi-400-bad-request-validation-failed", + PipelineErrorVapi401Unauthorized: "pipeline-error-vapi-401-unauthorized", + PipelineErrorVapi403ModelAccessDenied: "pipeline-error-vapi-403-model-access-denied", + PipelineErrorVapi429ExceededQuota: "pipeline-error-vapi-429-exceeded-quota", + PipelineErrorVapi500ServerError: "pipeline-error-vapi-500-server-error", + PipelineErrorVapi503ServerOverloadedError: "pipeline-error-vapi-503-server-overloaded-error", + CallInProgressErrorProviderfaultVapiLlmFailed: "call.in-progress.error-providerfault-vapi-llm-failed", + CallInProgressErrorVapifaultVapi400BadRequestValidationFailed: + "call.in-progress.error-vapifault-vapi-400-bad-request-validation-failed", + CallInProgressErrorVapifaultVapi401Unauthorized: "call.in-progress.error-vapifault-vapi-401-unauthorized", + CallInProgressErrorVapifaultVapi403ModelAccessDenied: + "call.in-progress.error-vapifault-vapi-403-model-access-denied", + CallInProgressErrorVapifaultVapi429ExceededQuota: "call.in-progress.error-vapifault-vapi-429-exceeded-quota", + CallInProgressErrorProviderfaultVapi500ServerError: "call.in-progress.error-providerfault-vapi-500-server-error", + CallInProgressErrorProviderfaultVapi503ServerOverloadedError: + "call.in-progress.error-providerfault-vapi-503-server-overloaded-error", + PipelineErrorDeepgramTranscriberFailed: "pipeline-error-deepgram-transcriber-failed", + PipelineErrorDeepgramTranscriberApiKeyMissing: "pipeline-error-deepgram-transcriber-api-key-missing", + CallInProgressErrorVapifaultDeepgramTranscriberFailed: + "call.in-progress.error-vapifault-deepgram-transcriber-failed", + PipelineErrorGladiaTranscriberFailed: "pipeline-error-gladia-transcriber-failed", + CallInProgressErrorVapifaultGladiaTranscriberFailed: "call.in-progress.error-vapifault-gladia-transcriber-failed", + PipelineErrorSpeechmaticsTranscriberFailed: "pipeline-error-speechmatics-transcriber-failed", + CallInProgressErrorVapifaultSpeechmaticsTranscriberFailed: + "call.in-progress.error-vapifault-speechmatics-transcriber-failed", + PipelineErrorAssemblyAiTranscriberFailed: "pipeline-error-assembly-ai-transcriber-failed", + PipelineErrorAssemblyAiReturning400InsufficentFunds: "pipeline-error-assembly-ai-returning-400-insufficent-funds", + PipelineErrorAssemblyAiReturning400PaidOnlyFeature: "pipeline-error-assembly-ai-returning-400-paid-only-feature", + PipelineErrorAssemblyAiReturning401InvalidCredentials: + "pipeline-error-assembly-ai-returning-401-invalid-credentials", + PipelineErrorAssemblyAiReturning500InvalidSchema: "pipeline-error-assembly-ai-returning-500-invalid-schema", + PipelineErrorAssemblyAiReturning500WordBoostParsingFailed: + "pipeline-error-assembly-ai-returning-500-word-boost-parsing-failed", + CallInProgressErrorVapifaultAssemblyAiTranscriberFailed: + "call.in-progress.error-vapifault-assembly-ai-transcriber-failed", + CallInProgressErrorVapifaultAssemblyAiReturning400InsufficentFunds: + "call.in-progress.error-vapifault-assembly-ai-returning-400-insufficent-funds", + CallInProgressErrorVapifaultAssemblyAiReturning400PaidOnlyFeature: + "call.in-progress.error-vapifault-assembly-ai-returning-400-paid-only-feature", + CallInProgressErrorVapifaultAssemblyAiReturning401InvalidCredentials: + "call.in-progress.error-vapifault-assembly-ai-returning-401-invalid-credentials", + CallInProgressErrorVapifaultAssemblyAiReturning500InvalidSchema: + "call.in-progress.error-vapifault-assembly-ai-returning-500-invalid-schema", + CallInProgressErrorVapifaultAssemblyAiReturning500WordBoostParsingFailed: + "call.in-progress.error-vapifault-assembly-ai-returning-500-word-boost-parsing-failed", + PipelineErrorTalkscriberTranscriberFailed: "pipeline-error-talkscriber-transcriber-failed", + CallInProgressErrorVapifaultTalkscriberTranscriberFailed: + "call.in-progress.error-vapifault-talkscriber-transcriber-failed", + PipelineErrorAzureSpeechTranscriberFailed: "pipeline-error-azure-speech-transcriber-failed", + CallInProgressErrorVapifaultAzureSpeechTranscriberFailed: + "call.in-progress.error-vapifault-azure-speech-transcriber-failed", + CallInProgressErrorPipelineNoAvailableLlmModel: "call.in-progress.error-pipeline-no-available-llm-model", + WorkerShutdown: "worker-shutdown", + VonageDisconnected: "vonage-disconnected", + VonageFailedToConnectCall: "vonage-failed-to-connect-call", + VonageCompleted: "vonage-completed", + PhoneCallProviderBypassEnabledButNoCallReceived: "phone-call-provider-bypass-enabled-but-no-call-received", + CallInProgressErrorProviderfaultTransportNeverConnected: + "call.in-progress.error-providerfault-transport-never-connected", + CallInProgressErrorVapifaultWorkerNotAvailable: "call.in-progress.error-vapifault-worker-not-available", + CallInProgressErrorVapifaultTransportNeverConnected: "call.in-progress.error-vapifault-transport-never-connected", + CallInProgressErrorVapifaultTransportConnectedButCallNotActive: + "call.in-progress.error-vapifault-transport-connected-but-call-not-active", + CallInProgressErrorVapifaultCallStartedButConnectionToTransportMissing: + "call.in-progress.error-vapifault-call-started-but-connection-to-transport-missing", + CallInProgressErrorVapifaultWorkerDied: "call.in-progress.error-vapifault-worker-died", + CallInProgressTwilioCompletedCall: "call.in-progress.twilio-completed-call", + CallInProgressSipCompletedCall: "call.in-progress.sip-completed-call", + CallInProgressErrorProviderfaultOpenaiLlmFailed: "call.in-progress.error-providerfault-openai-llm-failed", + CallInProgressErrorProviderfaultAzureOpenaiLlmFailed: + "call.in-progress.error-providerfault-azure-openai-llm-failed", + CallInProgressErrorProviderfaultGroqLlmFailed: "call.in-progress.error-providerfault-groq-llm-failed", + CallInProgressErrorProviderfaultGoogleLlmFailed: "call.in-progress.error-providerfault-google-llm-failed", + CallInProgressErrorProviderfaultXaiLlmFailed: "call.in-progress.error-providerfault-xai-llm-failed", + CallInProgressErrorProviderfaultMistralLlmFailed: "call.in-progress.error-providerfault-mistral-llm-failed", + CallInProgressErrorProviderfaultInflectionAiLlmFailed: + "call.in-progress.error-providerfault-inflection-ai-llm-failed", + CallInProgressErrorProviderfaultCerebrasLlmFailed: "call.in-progress.error-providerfault-cerebras-llm-failed", + CallInProgressErrorProviderfaultDeepSeekLlmFailed: "call.in-progress.error-providerfault-deep-seek-llm-failed", + CallInProgressErrorVapifaultChatPipelineFailedToStart: + "call.in-progress.error-vapifault-chat-pipeline-failed-to-start", + PipelineErrorOpenai400BadRequestValidationFailed: "pipeline-error-openai-400-bad-request-validation-failed", + PipelineErrorOpenai401Unauthorized: "pipeline-error-openai-401-unauthorized", + PipelineErrorOpenai401IncorrectApiKey: "pipeline-error-openai-401-incorrect-api-key", + PipelineErrorOpenai401AccountNotInOrganization: "pipeline-error-openai-401-account-not-in-organization", + PipelineErrorOpenai403ModelAccessDenied: "pipeline-error-openai-403-model-access-denied", + PipelineErrorOpenai429ExceededQuota: "pipeline-error-openai-429-exceeded-quota", + PipelineErrorOpenai429RateLimitReached: "pipeline-error-openai-429-rate-limit-reached", + PipelineErrorOpenai500ServerError: "pipeline-error-openai-500-server-error", + PipelineErrorOpenai503ServerOverloadedError: "pipeline-error-openai-503-server-overloaded-error", + PipelineErrorOpenaiLlmFailed: "pipeline-error-openai-llm-failed", + CallInProgressErrorVapifaultOpenai400BadRequestValidationFailed: + "call.in-progress.error-vapifault-openai-400-bad-request-validation-failed", + CallInProgressErrorVapifaultOpenai401Unauthorized: "call.in-progress.error-vapifault-openai-401-unauthorized", + CallInProgressErrorVapifaultOpenai401IncorrectApiKey: + "call.in-progress.error-vapifault-openai-401-incorrect-api-key", + CallInProgressErrorVapifaultOpenai401AccountNotInOrganization: + "call.in-progress.error-vapifault-openai-401-account-not-in-organization", + CallInProgressErrorVapifaultOpenai403ModelAccessDenied: + "call.in-progress.error-vapifault-openai-403-model-access-denied", + CallInProgressErrorVapifaultOpenai429ExceededQuota: "call.in-progress.error-vapifault-openai-429-exceeded-quota", + CallInProgressErrorVapifaultOpenai429RateLimitReached: + "call.in-progress.error-vapifault-openai-429-rate-limit-reached", + CallInProgressErrorProviderfaultOpenai500ServerError: + "call.in-progress.error-providerfault-openai-500-server-error", + CallInProgressErrorProviderfaultOpenai503ServerOverloadedError: + "call.in-progress.error-providerfault-openai-503-server-overloaded-error", + PipelineErrorAzureOpenai400BadRequestValidationFailed: + "pipeline-error-azure-openai-400-bad-request-validation-failed", + PipelineErrorAzureOpenai401Unauthorized: "pipeline-error-azure-openai-401-unauthorized", + PipelineErrorAzureOpenai403ModelAccessDenied: "pipeline-error-azure-openai-403-model-access-denied", + PipelineErrorAzureOpenai429ExceededQuota: "pipeline-error-azure-openai-429-exceeded-quota", + PipelineErrorAzureOpenai500ServerError: "pipeline-error-azure-openai-500-server-error", + PipelineErrorAzureOpenai503ServerOverloadedError: "pipeline-error-azure-openai-503-server-overloaded-error", + PipelineErrorAzureOpenaiLlmFailed: "pipeline-error-azure-openai-llm-failed", + CallInProgressErrorVapifaultAzureOpenai400BadRequestValidationFailed: + "call.in-progress.error-vapifault-azure-openai-400-bad-request-validation-failed", + CallInProgressErrorVapifaultAzureOpenai401Unauthorized: + "call.in-progress.error-vapifault-azure-openai-401-unauthorized", + CallInProgressErrorVapifaultAzureOpenai403ModelAccessDenied: + "call.in-progress.error-vapifault-azure-openai-403-model-access-denied", + CallInProgressErrorVapifaultAzureOpenai429ExceededQuota: + "call.in-progress.error-vapifault-azure-openai-429-exceeded-quota", + CallInProgressErrorProviderfaultAzureOpenai500ServerError: + "call.in-progress.error-providerfault-azure-openai-500-server-error", + CallInProgressErrorProviderfaultAzureOpenai503ServerOverloadedError: + "call.in-progress.error-providerfault-azure-openai-503-server-overloaded-error", + PipelineErrorGoogle400BadRequestValidationFailed: "pipeline-error-google-400-bad-request-validation-failed", + PipelineErrorGoogle401Unauthorized: "pipeline-error-google-401-unauthorized", + PipelineErrorGoogle403ModelAccessDenied: "pipeline-error-google-403-model-access-denied", + PipelineErrorGoogle429ExceededQuota: "pipeline-error-google-429-exceeded-quota", + PipelineErrorGoogle500ServerError: "pipeline-error-google-500-server-error", + PipelineErrorGoogle503ServerOverloadedError: "pipeline-error-google-503-server-overloaded-error", + PipelineErrorGoogleLlmFailed: "pipeline-error-google-llm-failed", + CallInProgressErrorVapifaultGoogle400BadRequestValidationFailed: + "call.in-progress.error-vapifault-google-400-bad-request-validation-failed", + CallInProgressErrorVapifaultGoogle401Unauthorized: "call.in-progress.error-vapifault-google-401-unauthorized", + CallInProgressErrorVapifaultGoogle403ModelAccessDenied: + "call.in-progress.error-vapifault-google-403-model-access-denied", + CallInProgressErrorVapifaultGoogle429ExceededQuota: "call.in-progress.error-vapifault-google-429-exceeded-quota", + CallInProgressErrorProviderfaultGoogle500ServerError: + "call.in-progress.error-providerfault-google-500-server-error", + CallInProgressErrorProviderfaultGoogle503ServerOverloadedError: + "call.in-progress.error-providerfault-google-503-server-overloaded-error", + PipelineErrorXai400BadRequestValidationFailed: "pipeline-error-xai-400-bad-request-validation-failed", + PipelineErrorXai401Unauthorized: "pipeline-error-xai-401-unauthorized", + PipelineErrorXai403ModelAccessDenied: "pipeline-error-xai-403-model-access-denied", + PipelineErrorXai429ExceededQuota: "pipeline-error-xai-429-exceeded-quota", + PipelineErrorXai500ServerError: "pipeline-error-xai-500-server-error", + PipelineErrorXai503ServerOverloadedError: "pipeline-error-xai-503-server-overloaded-error", + PipelineErrorXaiLlmFailed: "pipeline-error-xai-llm-failed", + CallInProgressErrorVapifaultXai400BadRequestValidationFailed: + "call.in-progress.error-vapifault-xai-400-bad-request-validation-failed", + CallInProgressErrorVapifaultXai401Unauthorized: "call.in-progress.error-vapifault-xai-401-unauthorized", + CallInProgressErrorVapifaultXai403ModelAccessDenied: "call.in-progress.error-vapifault-xai-403-model-access-denied", + CallInProgressErrorVapifaultXai429ExceededQuota: "call.in-progress.error-vapifault-xai-429-exceeded-quota", + CallInProgressErrorProviderfaultXai500ServerError: "call.in-progress.error-providerfault-xai-500-server-error", + CallInProgressErrorProviderfaultXai503ServerOverloadedError: + "call.in-progress.error-providerfault-xai-503-server-overloaded-error", + PipelineErrorMistral400BadRequestValidationFailed: "pipeline-error-mistral-400-bad-request-validation-failed", + PipelineErrorMistral401Unauthorized: "pipeline-error-mistral-401-unauthorized", + PipelineErrorMistral403ModelAccessDenied: "pipeline-error-mistral-403-model-access-denied", + PipelineErrorMistral429ExceededQuota: "pipeline-error-mistral-429-exceeded-quota", + PipelineErrorMistral500ServerError: "pipeline-error-mistral-500-server-error", + PipelineErrorMistral503ServerOverloadedError: "pipeline-error-mistral-503-server-overloaded-error", + PipelineErrorMistralLlmFailed: "pipeline-error-mistral-llm-failed", + CallInProgressErrorVapifaultMistral400BadRequestValidationFailed: + "call.in-progress.error-vapifault-mistral-400-bad-request-validation-failed", + CallInProgressErrorVapifaultMistral401Unauthorized: "call.in-progress.error-vapifault-mistral-401-unauthorized", + CallInProgressErrorVapifaultMistral403ModelAccessDenied: + "call.in-progress.error-vapifault-mistral-403-model-access-denied", + CallInProgressErrorVapifaultMistral429ExceededQuota: "call.in-progress.error-vapifault-mistral-429-exceeded-quota", + CallInProgressErrorProviderfaultMistral500ServerError: + "call.in-progress.error-providerfault-mistral-500-server-error", + CallInProgressErrorProviderfaultMistral503ServerOverloadedError: + "call.in-progress.error-providerfault-mistral-503-server-overloaded-error", + PipelineErrorInflectionAi400BadRequestValidationFailed: + "pipeline-error-inflection-ai-400-bad-request-validation-failed", + PipelineErrorInflectionAi401Unauthorized: "pipeline-error-inflection-ai-401-unauthorized", + PipelineErrorInflectionAi403ModelAccessDenied: "pipeline-error-inflection-ai-403-model-access-denied", + PipelineErrorInflectionAi429ExceededQuota: "pipeline-error-inflection-ai-429-exceeded-quota", + PipelineErrorInflectionAi500ServerError: "pipeline-error-inflection-ai-500-server-error", + PipelineErrorInflectionAi503ServerOverloadedError: "pipeline-error-inflection-ai-503-server-overloaded-error", + PipelineErrorInflectionAiLlmFailed: "pipeline-error-inflection-ai-llm-failed", + CallInProgressErrorVapifaultInflectionAi400BadRequestValidationFailed: + "call.in-progress.error-vapifault-inflection-ai-400-bad-request-validation-failed", + CallInProgressErrorVapifaultInflectionAi401Unauthorized: + "call.in-progress.error-vapifault-inflection-ai-401-unauthorized", + CallInProgressErrorVapifaultInflectionAi403ModelAccessDenied: + "call.in-progress.error-vapifault-inflection-ai-403-model-access-denied", + CallInProgressErrorVapifaultInflectionAi429ExceededQuota: + "call.in-progress.error-vapifault-inflection-ai-429-exceeded-quota", + CallInProgressErrorProviderfaultInflectionAi500ServerError: + "call.in-progress.error-providerfault-inflection-ai-500-server-error", + CallInProgressErrorProviderfaultInflectionAi503ServerOverloadedError: + "call.in-progress.error-providerfault-inflection-ai-503-server-overloaded-error", + PipelineErrorDeepSeek400BadRequestValidationFailed: "pipeline-error-deep-seek-400-bad-request-validation-failed", + PipelineErrorDeepSeek401Unauthorized: "pipeline-error-deep-seek-401-unauthorized", + PipelineErrorDeepSeek403ModelAccessDenied: "pipeline-error-deep-seek-403-model-access-denied", + PipelineErrorDeepSeek429ExceededQuota: "pipeline-error-deep-seek-429-exceeded-quota", + PipelineErrorDeepSeek500ServerError: "pipeline-error-deep-seek-500-server-error", + PipelineErrorDeepSeek503ServerOverloadedError: "pipeline-error-deep-seek-503-server-overloaded-error", + PipelineErrorDeepSeekLlmFailed: "pipeline-error-deep-seek-llm-failed", + CallInProgressErrorVapifaultDeepSeek400BadRequestValidationFailed: + "call.in-progress.error-vapifault-deep-seek-400-bad-request-validation-failed", + CallInProgressErrorVapifaultDeepSeek401Unauthorized: "call.in-progress.error-vapifault-deep-seek-401-unauthorized", + CallInProgressErrorVapifaultDeepSeek403ModelAccessDenied: + "call.in-progress.error-vapifault-deep-seek-403-model-access-denied", + CallInProgressErrorVapifaultDeepSeek429ExceededQuota: + "call.in-progress.error-vapifault-deep-seek-429-exceeded-quota", + CallInProgressErrorProviderfaultDeepSeek500ServerError: + "call.in-progress.error-providerfault-deep-seek-500-server-error", + CallInProgressErrorProviderfaultDeepSeek503ServerOverloadedError: + "call.in-progress.error-providerfault-deep-seek-503-server-overloaded-error", + PipelineErrorGroq400BadRequestValidationFailed: "pipeline-error-groq-400-bad-request-validation-failed", + PipelineErrorGroq401Unauthorized: "pipeline-error-groq-401-unauthorized", + PipelineErrorGroq403ModelAccessDenied: "pipeline-error-groq-403-model-access-denied", + PipelineErrorGroq429ExceededQuota: "pipeline-error-groq-429-exceeded-quota", + PipelineErrorGroq500ServerError: "pipeline-error-groq-500-server-error", + PipelineErrorGroq503ServerOverloadedError: "pipeline-error-groq-503-server-overloaded-error", + PipelineErrorGroqLlmFailed: "pipeline-error-groq-llm-failed", + CallInProgressErrorVapifaultGroq400BadRequestValidationFailed: + "call.in-progress.error-vapifault-groq-400-bad-request-validation-failed", + CallInProgressErrorVapifaultGroq401Unauthorized: "call.in-progress.error-vapifault-groq-401-unauthorized", + CallInProgressErrorVapifaultGroq403ModelAccessDenied: + "call.in-progress.error-vapifault-groq-403-model-access-denied", + CallInProgressErrorVapifaultGroq429ExceededQuota: "call.in-progress.error-vapifault-groq-429-exceeded-quota", + CallInProgressErrorProviderfaultGroq500ServerError: "call.in-progress.error-providerfault-groq-500-server-error", + CallInProgressErrorProviderfaultGroq503ServerOverloadedError: + "call.in-progress.error-providerfault-groq-503-server-overloaded-error", + PipelineErrorCerebras400BadRequestValidationFailed: "pipeline-error-cerebras-400-bad-request-validation-failed", + PipelineErrorCerebras401Unauthorized: "pipeline-error-cerebras-401-unauthorized", + PipelineErrorCerebras403ModelAccessDenied: "pipeline-error-cerebras-403-model-access-denied", + PipelineErrorCerebras429ExceededQuota: "pipeline-error-cerebras-429-exceeded-quota", + PipelineErrorCerebras500ServerError: "pipeline-error-cerebras-500-server-error", + PipelineErrorCerebras503ServerOverloadedError: "pipeline-error-cerebras-503-server-overloaded-error", + PipelineErrorCerebrasLlmFailed: "pipeline-error-cerebras-llm-failed", + CallInProgressErrorVapifaultCerebras400BadRequestValidationFailed: + "call.in-progress.error-vapifault-cerebras-400-bad-request-validation-failed", + CallInProgressErrorVapifaultCerebras401Unauthorized: "call.in-progress.error-vapifault-cerebras-401-unauthorized", + CallInProgressErrorVapifaultCerebras403ModelAccessDenied: + "call.in-progress.error-vapifault-cerebras-403-model-access-denied", + CallInProgressErrorVapifaultCerebras429ExceededQuota: + "call.in-progress.error-vapifault-cerebras-429-exceeded-quota", + CallInProgressErrorProviderfaultCerebras500ServerError: + "call.in-progress.error-providerfault-cerebras-500-server-error", + CallInProgressErrorProviderfaultCerebras503ServerOverloadedError: + "call.in-progress.error-providerfault-cerebras-503-server-overloaded-error", + PipelineErrorAnthropic400BadRequestValidationFailed: "pipeline-error-anthropic-400-bad-request-validation-failed", + PipelineErrorAnthropic401Unauthorized: "pipeline-error-anthropic-401-unauthorized", + PipelineErrorAnthropic403ModelAccessDenied: "pipeline-error-anthropic-403-model-access-denied", + PipelineErrorAnthropic429ExceededQuota: "pipeline-error-anthropic-429-exceeded-quota", + PipelineErrorAnthropic500ServerError: "pipeline-error-anthropic-500-server-error", + PipelineErrorAnthropic503ServerOverloadedError: "pipeline-error-anthropic-503-server-overloaded-error", + PipelineErrorAnthropicLlmFailed: "pipeline-error-anthropic-llm-failed", + CallInProgressErrorProviderfaultAnthropicLlmFailed: "call.in-progress.error-providerfault-anthropic-llm-failed", + CallInProgressErrorVapifaultAnthropic400BadRequestValidationFailed: + "call.in-progress.error-vapifault-anthropic-400-bad-request-validation-failed", + CallInProgressErrorVapifaultAnthropic401Unauthorized: "call.in-progress.error-vapifault-anthropic-401-unauthorized", + CallInProgressErrorVapifaultAnthropic403ModelAccessDenied: + "call.in-progress.error-vapifault-anthropic-403-model-access-denied", + CallInProgressErrorVapifaultAnthropic429ExceededQuota: + "call.in-progress.error-vapifault-anthropic-429-exceeded-quota", + CallInProgressErrorProviderfaultAnthropic500ServerError: + "call.in-progress.error-providerfault-anthropic-500-server-error", + CallInProgressErrorProviderfaultAnthropic503ServerOverloadedError: + "call.in-progress.error-providerfault-anthropic-503-server-overloaded-error", + PipelineErrorAnthropicBedrock400BadRequestValidationFailed: + "pipeline-error-anthropic-bedrock-400-bad-request-validation-failed", + PipelineErrorAnthropicBedrock401Unauthorized: "pipeline-error-anthropic-bedrock-401-unauthorized", + PipelineErrorAnthropicBedrock403ModelAccessDenied: "pipeline-error-anthropic-bedrock-403-model-access-denied", + PipelineErrorAnthropicBedrock429ExceededQuota: "pipeline-error-anthropic-bedrock-429-exceeded-quota", + PipelineErrorAnthropicBedrock500ServerError: "pipeline-error-anthropic-bedrock-500-server-error", + PipelineErrorAnthropicBedrock503ServerOverloadedError: + "pipeline-error-anthropic-bedrock-503-server-overloaded-error", + PipelineErrorAnthropicBedrockLlmFailed: "pipeline-error-anthropic-bedrock-llm-failed", + CallInProgressErrorProviderfaultAnthropicBedrockLlmFailed: + "call.in-progress.error-providerfault-anthropic-bedrock-llm-failed", + CallInProgressErrorVapifaultAnthropicBedrock400BadRequestValidationFailed: + "call.in-progress.error-vapifault-anthropic-bedrock-400-bad-request-validation-failed", + CallInProgressErrorVapifaultAnthropicBedrock401Unauthorized: + "call.in-progress.error-vapifault-anthropic-bedrock-401-unauthorized", + CallInProgressErrorVapifaultAnthropicBedrock403ModelAccessDenied: + "call.in-progress.error-vapifault-anthropic-bedrock-403-model-access-denied", + CallInProgressErrorVapifaultAnthropicBedrock429ExceededQuota: + "call.in-progress.error-vapifault-anthropic-bedrock-429-exceeded-quota", + CallInProgressErrorProviderfaultAnthropicBedrock500ServerError: + "call.in-progress.error-providerfault-anthropic-bedrock-500-server-error", + CallInProgressErrorProviderfaultAnthropicBedrock503ServerOverloadedError: + "call.in-progress.error-providerfault-anthropic-bedrock-503-server-overloaded-error", + PipelineErrorAnthropicVertex400BadRequestValidationFailed: + "pipeline-error-anthropic-vertex-400-bad-request-validation-failed", + PipelineErrorAnthropicVertex401Unauthorized: "pipeline-error-anthropic-vertex-401-unauthorized", + PipelineErrorAnthropicVertex403ModelAccessDenied: "pipeline-error-anthropic-vertex-403-model-access-denied", + PipelineErrorAnthropicVertex429ExceededQuota: "pipeline-error-anthropic-vertex-429-exceeded-quota", + PipelineErrorAnthropicVertex500ServerError: "pipeline-error-anthropic-vertex-500-server-error", + PipelineErrorAnthropicVertex503ServerOverloadedError: "pipeline-error-anthropic-vertex-503-server-overloaded-error", + PipelineErrorAnthropicVertexLlmFailed: "pipeline-error-anthropic-vertex-llm-failed", + CallInProgressErrorProviderfaultAnthropicVertexLlmFailed: + "call.in-progress.error-providerfault-anthropic-vertex-llm-failed", + CallInProgressErrorVapifaultAnthropicVertex400BadRequestValidationFailed: + "call.in-progress.error-vapifault-anthropic-vertex-400-bad-request-validation-failed", + CallInProgressErrorVapifaultAnthropicVertex401Unauthorized: + "call.in-progress.error-vapifault-anthropic-vertex-401-unauthorized", + CallInProgressErrorVapifaultAnthropicVertex403ModelAccessDenied: + "call.in-progress.error-vapifault-anthropic-vertex-403-model-access-denied", + CallInProgressErrorVapifaultAnthropicVertex429ExceededQuota: + "call.in-progress.error-vapifault-anthropic-vertex-429-exceeded-quota", + CallInProgressErrorProviderfaultAnthropicVertex500ServerError: + "call.in-progress.error-providerfault-anthropic-vertex-500-server-error", + CallInProgressErrorProviderfaultAnthropicVertex503ServerOverloadedError: + "call.in-progress.error-providerfault-anthropic-vertex-503-server-overloaded-error", + PipelineErrorTogetherAi400BadRequestValidationFailed: + "pipeline-error-together-ai-400-bad-request-validation-failed", + PipelineErrorTogetherAi401Unauthorized: "pipeline-error-together-ai-401-unauthorized", + PipelineErrorTogetherAi403ModelAccessDenied: "pipeline-error-together-ai-403-model-access-denied", + PipelineErrorTogetherAi429ExceededQuota: "pipeline-error-together-ai-429-exceeded-quota", + PipelineErrorTogetherAi500ServerError: "pipeline-error-together-ai-500-server-error", + PipelineErrorTogetherAi503ServerOverloadedError: "pipeline-error-together-ai-503-server-overloaded-error", + PipelineErrorTogetherAiLlmFailed: "pipeline-error-together-ai-llm-failed", + CallInProgressErrorProviderfaultTogetherAiLlmFailed: "call.in-progress.error-providerfault-together-ai-llm-failed", + CallInProgressErrorVapifaultTogetherAi400BadRequestValidationFailed: + "call.in-progress.error-vapifault-together-ai-400-bad-request-validation-failed", + CallInProgressErrorVapifaultTogetherAi401Unauthorized: + "call.in-progress.error-vapifault-together-ai-401-unauthorized", + CallInProgressErrorVapifaultTogetherAi403ModelAccessDenied: + "call.in-progress.error-vapifault-together-ai-403-model-access-denied", + CallInProgressErrorVapifaultTogetherAi429ExceededQuota: + "call.in-progress.error-vapifault-together-ai-429-exceeded-quota", + CallInProgressErrorProviderfaultTogetherAi500ServerError: + "call.in-progress.error-providerfault-together-ai-500-server-error", + CallInProgressErrorProviderfaultTogetherAi503ServerOverloadedError: + "call.in-progress.error-providerfault-together-ai-503-server-overloaded-error", + PipelineErrorAnyscale400BadRequestValidationFailed: "pipeline-error-anyscale-400-bad-request-validation-failed", + PipelineErrorAnyscale401Unauthorized: "pipeline-error-anyscale-401-unauthorized", + PipelineErrorAnyscale403ModelAccessDenied: "pipeline-error-anyscale-403-model-access-denied", + PipelineErrorAnyscale429ExceededQuota: "pipeline-error-anyscale-429-exceeded-quota", + PipelineErrorAnyscale500ServerError: "pipeline-error-anyscale-500-server-error", + PipelineErrorAnyscale503ServerOverloadedError: "pipeline-error-anyscale-503-server-overloaded-error", + PipelineErrorAnyscaleLlmFailed: "pipeline-error-anyscale-llm-failed", + CallInProgressErrorProviderfaultAnyscaleLlmFailed: "call.in-progress.error-providerfault-anyscale-llm-failed", + CallInProgressErrorVapifaultAnyscale400BadRequestValidationFailed: + "call.in-progress.error-vapifault-anyscale-400-bad-request-validation-failed", + CallInProgressErrorVapifaultAnyscale401Unauthorized: "call.in-progress.error-vapifault-anyscale-401-unauthorized", + CallInProgressErrorVapifaultAnyscale403ModelAccessDenied: + "call.in-progress.error-vapifault-anyscale-403-model-access-denied", + CallInProgressErrorVapifaultAnyscale429ExceededQuota: + "call.in-progress.error-vapifault-anyscale-429-exceeded-quota", + CallInProgressErrorProviderfaultAnyscale500ServerError: + "call.in-progress.error-providerfault-anyscale-500-server-error", + CallInProgressErrorProviderfaultAnyscale503ServerOverloadedError: + "call.in-progress.error-providerfault-anyscale-503-server-overloaded-error", + PipelineErrorOpenrouter400BadRequestValidationFailed: "pipeline-error-openrouter-400-bad-request-validation-failed", + PipelineErrorOpenrouter401Unauthorized: "pipeline-error-openrouter-401-unauthorized", + PipelineErrorOpenrouter403ModelAccessDenied: "pipeline-error-openrouter-403-model-access-denied", + PipelineErrorOpenrouter429ExceededQuota: "pipeline-error-openrouter-429-exceeded-quota", + PipelineErrorOpenrouter500ServerError: "pipeline-error-openrouter-500-server-error", + PipelineErrorOpenrouter503ServerOverloadedError: "pipeline-error-openrouter-503-server-overloaded-error", + PipelineErrorOpenrouterLlmFailed: "pipeline-error-openrouter-llm-failed", + CallInProgressErrorProviderfaultOpenrouterLlmFailed: "call.in-progress.error-providerfault-openrouter-llm-failed", + CallInProgressErrorVapifaultOpenrouter400BadRequestValidationFailed: + "call.in-progress.error-vapifault-openrouter-400-bad-request-validation-failed", + CallInProgressErrorVapifaultOpenrouter401Unauthorized: + "call.in-progress.error-vapifault-openrouter-401-unauthorized", + CallInProgressErrorVapifaultOpenrouter403ModelAccessDenied: + "call.in-progress.error-vapifault-openrouter-403-model-access-denied", + CallInProgressErrorVapifaultOpenrouter429ExceededQuota: + "call.in-progress.error-vapifault-openrouter-429-exceeded-quota", + CallInProgressErrorProviderfaultOpenrouter500ServerError: + "call.in-progress.error-providerfault-openrouter-500-server-error", + CallInProgressErrorProviderfaultOpenrouter503ServerOverloadedError: + "call.in-progress.error-providerfault-openrouter-503-server-overloaded-error", + PipelineErrorPerplexityAi400BadRequestValidationFailed: + "pipeline-error-perplexity-ai-400-bad-request-validation-failed", + PipelineErrorPerplexityAi401Unauthorized: "pipeline-error-perplexity-ai-401-unauthorized", + PipelineErrorPerplexityAi403ModelAccessDenied: "pipeline-error-perplexity-ai-403-model-access-denied", + PipelineErrorPerplexityAi429ExceededQuota: "pipeline-error-perplexity-ai-429-exceeded-quota", + PipelineErrorPerplexityAi500ServerError: "pipeline-error-perplexity-ai-500-server-error", + PipelineErrorPerplexityAi503ServerOverloadedError: "pipeline-error-perplexity-ai-503-server-overloaded-error", + PipelineErrorPerplexityAiLlmFailed: "pipeline-error-perplexity-ai-llm-failed", + CallInProgressErrorProviderfaultPerplexityAiLlmFailed: + "call.in-progress.error-providerfault-perplexity-ai-llm-failed", + CallInProgressErrorVapifaultPerplexityAi400BadRequestValidationFailed: + "call.in-progress.error-vapifault-perplexity-ai-400-bad-request-validation-failed", + CallInProgressErrorVapifaultPerplexityAi401Unauthorized: + "call.in-progress.error-vapifault-perplexity-ai-401-unauthorized", + CallInProgressErrorVapifaultPerplexityAi403ModelAccessDenied: + "call.in-progress.error-vapifault-perplexity-ai-403-model-access-denied", + CallInProgressErrorVapifaultPerplexityAi429ExceededQuota: + "call.in-progress.error-vapifault-perplexity-ai-429-exceeded-quota", + CallInProgressErrorProviderfaultPerplexityAi500ServerError: + "call.in-progress.error-providerfault-perplexity-ai-500-server-error", + CallInProgressErrorProviderfaultPerplexityAi503ServerOverloadedError: + "call.in-progress.error-providerfault-perplexity-ai-503-server-overloaded-error", + PipelineErrorDeepinfra400BadRequestValidationFailed: "pipeline-error-deepinfra-400-bad-request-validation-failed", + PipelineErrorDeepinfra401Unauthorized: "pipeline-error-deepinfra-401-unauthorized", + PipelineErrorDeepinfra403ModelAccessDenied: "pipeline-error-deepinfra-403-model-access-denied", + PipelineErrorDeepinfra429ExceededQuota: "pipeline-error-deepinfra-429-exceeded-quota", + PipelineErrorDeepinfra500ServerError: "pipeline-error-deepinfra-500-server-error", + PipelineErrorDeepinfra503ServerOverloadedError: "pipeline-error-deepinfra-503-server-overloaded-error", + PipelineErrorDeepinfraLlmFailed: "pipeline-error-deepinfra-llm-failed", + CallInProgressErrorProviderfaultDeepinfraLlmFailed: "call.in-progress.error-providerfault-deepinfra-llm-failed", + CallInProgressErrorVapifaultDeepinfra400BadRequestValidationFailed: + "call.in-progress.error-vapifault-deepinfra-400-bad-request-validation-failed", + CallInProgressErrorVapifaultDeepinfra401Unauthorized: "call.in-progress.error-vapifault-deepinfra-401-unauthorized", + CallInProgressErrorVapifaultDeepinfra403ModelAccessDenied: + "call.in-progress.error-vapifault-deepinfra-403-model-access-denied", + CallInProgressErrorVapifaultDeepinfra429ExceededQuota: + "call.in-progress.error-vapifault-deepinfra-429-exceeded-quota", + CallInProgressErrorProviderfaultDeepinfra500ServerError: + "call.in-progress.error-providerfault-deepinfra-500-server-error", + CallInProgressErrorProviderfaultDeepinfra503ServerOverloadedError: + "call.in-progress.error-providerfault-deepinfra-503-server-overloaded-error", + PipelineErrorRunpod400BadRequestValidationFailed: "pipeline-error-runpod-400-bad-request-validation-failed", + PipelineErrorRunpod401Unauthorized: "pipeline-error-runpod-401-unauthorized", + PipelineErrorRunpod403ModelAccessDenied: "pipeline-error-runpod-403-model-access-denied", + PipelineErrorRunpod429ExceededQuota: "pipeline-error-runpod-429-exceeded-quota", + PipelineErrorRunpod500ServerError: "pipeline-error-runpod-500-server-error", + PipelineErrorRunpod503ServerOverloadedError: "pipeline-error-runpod-503-server-overloaded-error", + PipelineErrorRunpodLlmFailed: "pipeline-error-runpod-llm-failed", + CallInProgressErrorProviderfaultRunpodLlmFailed: "call.in-progress.error-providerfault-runpod-llm-failed", + CallInProgressErrorVapifaultRunpod400BadRequestValidationFailed: + "call.in-progress.error-vapifault-runpod-400-bad-request-validation-failed", + CallInProgressErrorVapifaultRunpod401Unauthorized: "call.in-progress.error-vapifault-runpod-401-unauthorized", + CallInProgressErrorVapifaultRunpod403ModelAccessDenied: + "call.in-progress.error-vapifault-runpod-403-model-access-denied", + CallInProgressErrorVapifaultRunpod429ExceededQuota: "call.in-progress.error-vapifault-runpod-429-exceeded-quota", + CallInProgressErrorProviderfaultRunpod500ServerError: + "call.in-progress.error-providerfault-runpod-500-server-error", + CallInProgressErrorProviderfaultRunpod503ServerOverloadedError: + "call.in-progress.error-providerfault-runpod-503-server-overloaded-error", + PipelineErrorCustomLlm400BadRequestValidationFailed: "pipeline-error-custom-llm-400-bad-request-validation-failed", + PipelineErrorCustomLlm401Unauthorized: "pipeline-error-custom-llm-401-unauthorized", + PipelineErrorCustomLlm403ModelAccessDenied: "pipeline-error-custom-llm-403-model-access-denied", + PipelineErrorCustomLlm429ExceededQuota: "pipeline-error-custom-llm-429-exceeded-quota", + PipelineErrorCustomLlm500ServerError: "pipeline-error-custom-llm-500-server-error", + PipelineErrorCustomLlm503ServerOverloadedError: "pipeline-error-custom-llm-503-server-overloaded-error", + PipelineErrorCustomLlmLlmFailed: "pipeline-error-custom-llm-llm-failed", + CallInProgressErrorProviderfaultCustomLlmLlmFailed: "call.in-progress.error-providerfault-custom-llm-llm-failed", + CallInProgressErrorVapifaultCustomLlm400BadRequestValidationFailed: + "call.in-progress.error-vapifault-custom-llm-400-bad-request-validation-failed", + CallInProgressErrorVapifaultCustomLlm401Unauthorized: + "call.in-progress.error-vapifault-custom-llm-401-unauthorized", + CallInProgressErrorVapifaultCustomLlm403ModelAccessDenied: + "call.in-progress.error-vapifault-custom-llm-403-model-access-denied", + CallInProgressErrorVapifaultCustomLlm429ExceededQuota: + "call.in-progress.error-vapifault-custom-llm-429-exceeded-quota", + CallInProgressErrorProviderfaultCustomLlm500ServerError: + "call.in-progress.error-providerfault-custom-llm-500-server-error", + CallInProgressErrorProviderfaultCustomLlm503ServerOverloadedError: + "call.in-progress.error-providerfault-custom-llm-503-server-overloaded-error", + PipelineErrorCustomVoiceFailed: "pipeline-error-custom-voice-failed", + PipelineErrorCartesiaSocketHangUp: "pipeline-error-cartesia-socket-hang-up", + PipelineErrorCartesiaRequestedPayment: "pipeline-error-cartesia-requested-payment", + PipelineErrorCartesia500ServerError: "pipeline-error-cartesia-500-server-error", + PipelineErrorCartesia502ServerError: "pipeline-error-cartesia-502-server-error", + PipelineErrorCartesia503ServerError: "pipeline-error-cartesia-503-server-error", + PipelineErrorCartesia522ServerError: "pipeline-error-cartesia-522-server-error", + CallInProgressErrorVapifaultCartesiaSocketHangUp: "call.in-progress.error-vapifault-cartesia-socket-hang-up", + CallInProgressErrorVapifaultCartesiaRequestedPayment: "call.in-progress.error-vapifault-cartesia-requested-payment", + CallInProgressErrorProviderfaultCartesia500ServerError: + "call.in-progress.error-providerfault-cartesia-500-server-error", + CallInProgressErrorProviderfaultCartesia503ServerError: + "call.in-progress.error-providerfault-cartesia-503-server-error", + CallInProgressErrorProviderfaultCartesia522ServerError: + "call.in-progress.error-providerfault-cartesia-522-server-error", + PipelineErrorElevenLabsVoiceNotFound: "pipeline-error-eleven-labs-voice-not-found", + PipelineErrorElevenLabsQuotaExceeded: "pipeline-error-eleven-labs-quota-exceeded", + PipelineErrorElevenLabsUnauthorizedAccess: "pipeline-error-eleven-labs-unauthorized-access", + PipelineErrorElevenLabsUnauthorizedToAccessModel: "pipeline-error-eleven-labs-unauthorized-to-access-model", + PipelineErrorElevenLabsProfessionalVoicesOnlyForCreatorPlus: + "pipeline-error-eleven-labs-professional-voices-only-for-creator-plus", + PipelineErrorElevenLabsBlockedFreePlanAndRequestedUpgrade: + "pipeline-error-eleven-labs-blocked-free-plan-and-requested-upgrade", + PipelineErrorElevenLabsBlockedConcurrentRequestsAndRequestedUpgrade: + "pipeline-error-eleven-labs-blocked-concurrent-requests-and-requested-upgrade", + PipelineErrorElevenLabsBlockedUsingInstantVoiceCloneAndRequestedUpgrade: + "pipeline-error-eleven-labs-blocked-using-instant-voice-clone-and-requested-upgrade", + PipelineErrorElevenLabsSystemBusyAndRequestedUpgrade: + "pipeline-error-eleven-labs-system-busy-and-requested-upgrade", + PipelineErrorElevenLabsVoiceNotFineTuned: "pipeline-error-eleven-labs-voice-not-fine-tuned", + PipelineErrorElevenLabsInvalidApiKey: "pipeline-error-eleven-labs-invalid-api-key", + PipelineErrorElevenLabsInvalidVoiceSamples: "pipeline-error-eleven-labs-invalid-voice-samples", + PipelineErrorElevenLabsVoiceDisabledByOwner: "pipeline-error-eleven-labs-voice-disabled-by-owner", + PipelineErrorElevenLabsVapiVoiceDisabledByOwner: "pipeline-error-eleven-labs-vapi-voice-disabled-by-owner", + PipelineErrorElevenLabsBlockedAccountInProbation: "pipeline-error-eleven-labs-blocked-account-in-probation", + PipelineErrorElevenLabsBlockedContentAgainstTheirPolicy: + "pipeline-error-eleven-labs-blocked-content-against-their-policy", + PipelineErrorElevenLabsMissingSamplesForVoiceClone: "pipeline-error-eleven-labs-missing-samples-for-voice-clone", + PipelineErrorElevenLabsVoiceNotFineTunedAndCannotBeUsed: + "pipeline-error-eleven-labs-voice-not-fine-tuned-and-cannot-be-used", + PipelineErrorElevenLabsVoiceNotAllowedForFreeUsers: "pipeline-error-eleven-labs-voice-not-allowed-for-free-users", + PipelineErrorElevenLabsMaxCharacterLimitExceeded: "pipeline-error-eleven-labs-max-character-limit-exceeded", + PipelineErrorElevenLabsBlockedVoicePotentiallyAgainstTermsOfServiceAndAwaitingVerification: + "pipeline-error-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification", + PipelineErrorElevenLabs500ServerError: "pipeline-error-eleven-labs-500-server-error", + PipelineErrorElevenLabs503ServerError: "pipeline-error-eleven-labs-503-server-error", + CallInProgressErrorVapifaultElevenLabsVoiceNotFound: "call.in-progress.error-vapifault-eleven-labs-voice-not-found", + CallInProgressErrorVapifaultElevenLabsQuotaExceeded: "call.in-progress.error-vapifault-eleven-labs-quota-exceeded", + CallInProgressErrorVapifaultElevenLabsUnauthorizedAccess: + "call.in-progress.error-vapifault-eleven-labs-unauthorized-access", + CallInProgressErrorVapifaultElevenLabsUnauthorizedToAccessModel: + "call.in-progress.error-vapifault-eleven-labs-unauthorized-to-access-model", + CallInProgressErrorVapifaultElevenLabsProfessionalVoicesOnlyForCreatorPlus: + "call.in-progress.error-vapifault-eleven-labs-professional-voices-only-for-creator-plus", + CallInProgressErrorVapifaultElevenLabsBlockedFreePlanAndRequestedUpgrade: + "call.in-progress.error-vapifault-eleven-labs-blocked-free-plan-and-requested-upgrade", + CallInProgressErrorVapifaultElevenLabsBlockedConcurrentRequestsAndRequestedUpgrade: + "call.in-progress.error-vapifault-eleven-labs-blocked-concurrent-requests-and-requested-upgrade", + CallInProgressErrorVapifaultElevenLabsBlockedUsingInstantVoiceCloneAndRequestedUpgrade: + "call.in-progress.error-vapifault-eleven-labs-blocked-using-instant-voice-clone-and-requested-upgrade", + CallInProgressErrorVapifaultElevenLabsSystemBusyAndRequestedUpgrade: + "call.in-progress.error-vapifault-eleven-labs-system-busy-and-requested-upgrade", + CallInProgressErrorVapifaultElevenLabsVoiceNotFineTuned: + "call.in-progress.error-vapifault-eleven-labs-voice-not-fine-tuned", + CallInProgressErrorVapifaultElevenLabsInvalidApiKey: "call.in-progress.error-vapifault-eleven-labs-invalid-api-key", + CallInProgressErrorVapifaultElevenLabsInvalidVoiceSamples: + "call.in-progress.error-vapifault-eleven-labs-invalid-voice-samples", + CallInProgressErrorVapifaultElevenLabsVoiceDisabledByOwner: + "call.in-progress.error-vapifault-eleven-labs-voice-disabled-by-owner", + CallInProgressErrorVapifaultElevenLabsBlockedAccountInProbation: + "call.in-progress.error-vapifault-eleven-labs-blocked-account-in-probation", + CallInProgressErrorVapifaultElevenLabsBlockedContentAgainstTheirPolicy: + "call.in-progress.error-vapifault-eleven-labs-blocked-content-against-their-policy", + CallInProgressErrorVapifaultElevenLabsMissingSamplesForVoiceClone: + "call.in-progress.error-vapifault-eleven-labs-missing-samples-for-voice-clone", + CallInProgressErrorVapifaultElevenLabsVoiceNotFineTunedAndCannotBeUsed: + "call.in-progress.error-vapifault-eleven-labs-voice-not-fine-tuned-and-cannot-be-used", + CallInProgressErrorVapifaultElevenLabsVoiceNotAllowedForFreeUsers: + "call.in-progress.error-vapifault-eleven-labs-voice-not-allowed-for-free-users", + CallInProgressErrorVapifaultElevenLabsMaxCharacterLimitExceeded: + "call.in-progress.error-vapifault-eleven-labs-max-character-limit-exceeded", + CallInProgressErrorVapifaultElevenLabsBlockedVoicePotentiallyAgainstTermsOfServiceAndAwaitingVerification: + "call.in-progress.error-vapifault-eleven-labs-blocked-voice-potentially-against-terms-of-service-and-awaiting-verification", + CallInProgressErrorProviderfaultElevenLabs500ServerError: + "call.in-progress.error-providerfault-eleven-labs-500-server-error", + CallInProgressErrorProviderfaultElevenLabs503ServerError: + "call.in-progress.error-providerfault-eleven-labs-503-server-error", + PipelineErrorPlayhtRequestTimedOut: "pipeline-error-playht-request-timed-out", + PipelineErrorPlayhtInvalidVoice: "pipeline-error-playht-invalid-voice", + PipelineErrorPlayhtUnexpectedError: "pipeline-error-playht-unexpected-error", + PipelineErrorPlayhtOutOfCredits: "pipeline-error-playht-out-of-credits", + PipelineErrorPlayhtInvalidEmotion: "pipeline-error-playht-invalid-emotion", + PipelineErrorPlayhtVoiceMustBeAValidVoiceManifestUri: + "pipeline-error-playht-voice-must-be-a-valid-voice-manifest-uri", + PipelineErrorPlayht401Unauthorized: "pipeline-error-playht-401-unauthorized", + PipelineErrorPlayht403ForbiddenOutOfCharacters: "pipeline-error-playht-403-forbidden-out-of-characters", + PipelineErrorPlayht403ForbiddenApiAccessNotAvailable: + "pipeline-error-playht-403-forbidden-api-access-not-available", + PipelineErrorPlayht429ExceededQuota: "pipeline-error-playht-429-exceeded-quota", + PipelineErrorPlayht502GatewayError: "pipeline-error-playht-502-gateway-error", + PipelineErrorPlayht504GatewayError: "pipeline-error-playht-504-gateway-error", + CallInProgressErrorVapifaultPlayhtRequestTimedOut: "call.in-progress.error-vapifault-playht-request-timed-out", + CallInProgressErrorVapifaultPlayhtInvalidVoice: "call.in-progress.error-vapifault-playht-invalid-voice", + CallInProgressErrorVapifaultPlayhtUnexpectedError: "call.in-progress.error-vapifault-playht-unexpected-error", + CallInProgressErrorVapifaultPlayhtOutOfCredits: "call.in-progress.error-vapifault-playht-out-of-credits", + CallInProgressErrorVapifaultPlayhtInvalidEmotion: "call.in-progress.error-vapifault-playht-invalid-emotion", + CallInProgressErrorVapifaultPlayhtVoiceMustBeAValidVoiceManifestUri: + "call.in-progress.error-vapifault-playht-voice-must-be-a-valid-voice-manifest-uri", + CallInProgressErrorVapifaultPlayht401Unauthorized: "call.in-progress.error-vapifault-playht-401-unauthorized", + CallInProgressErrorVapifaultPlayht403ForbiddenOutOfCharacters: + "call.in-progress.error-vapifault-playht-403-forbidden-out-of-characters", + CallInProgressErrorVapifaultPlayht403ForbiddenApiAccessNotAvailable: + "call.in-progress.error-vapifault-playht-403-forbidden-api-access-not-available", + CallInProgressErrorVapifaultPlayht429ExceededQuota: "call.in-progress.error-vapifault-playht-429-exceeded-quota", + CallInProgressErrorProviderfaultPlayht502GatewayError: + "call.in-progress.error-providerfault-playht-502-gateway-error", + CallInProgressErrorProviderfaultPlayht504GatewayError: + "call.in-progress.error-providerfault-playht-504-gateway-error", + PipelineErrorCustomTranscriberFailed: "pipeline-error-custom-transcriber-failed", + CallInProgressErrorVapifaultCustomTranscriberFailed: "call.in-progress.error-vapifault-custom-transcriber-failed", + PipelineErrorElevenLabsTranscriberFailed: "pipeline-error-eleven-labs-transcriber-failed", + CallInProgressErrorVapifaultElevenLabsTranscriberFailed: + "call.in-progress.error-vapifault-eleven-labs-transcriber-failed", + PipelineErrorDeepgramReturning400NoSuchModelLanguageTierCombination: + "pipeline-error-deepgram-returning-400-no-such-model-language-tier-combination", + PipelineErrorDeepgramReturning401InvalidCredentials: "pipeline-error-deepgram-returning-401-invalid-credentials", + PipelineErrorDeepgramReturning403ModelAccessDenied: "pipeline-error-deepgram-returning-403-model-access-denied", + PipelineErrorDeepgramReturning404NotFound: "pipeline-error-deepgram-returning-404-not-found", + PipelineErrorDeepgramReturning500InvalidJson: "pipeline-error-deepgram-returning-500-invalid-json", + PipelineErrorDeepgramReturning502NetworkError: "pipeline-error-deepgram-returning-502-network-error", + PipelineErrorDeepgramReturning502BadGatewayEhostunreach: + "pipeline-error-deepgram-returning-502-bad-gateway-ehostunreach", + PipelineErrorDeepgramReturningEconnreset: "pipeline-error-deepgram-returning-econnreset", + CallInProgressErrorVapifaultDeepgramReturning400NoSuchModelLanguageTierCombination: + "call.in-progress.error-vapifault-deepgram-returning-400-no-such-model-language-tier-combination", + CallInProgressErrorVapifaultDeepgramReturning401InvalidCredentials: + "call.in-progress.error-vapifault-deepgram-returning-401-invalid-credentials", + CallInProgressErrorVapifaultDeepgramReturning404NotFound: + "call.in-progress.error-vapifault-deepgram-returning-404-not-found", + CallInProgressErrorVapifaultDeepgramReturning403ModelAccessDenied: + "call.in-progress.error-vapifault-deepgram-returning-403-model-access-denied", + CallInProgressErrorProviderfaultDeepgramReturning500InvalidJson: + "call.in-progress.error-providerfault-deepgram-returning-500-invalid-json", + CallInProgressErrorProviderfaultDeepgramReturning502NetworkError: + "call.in-progress.error-providerfault-deepgram-returning-502-network-error", + CallInProgressErrorProviderfaultDeepgramReturning502BadGatewayEhostunreach: + "call.in-progress.error-providerfault-deepgram-returning-502-bad-gateway-ehostunreach", + PipelineErrorGoogleTranscriberFailed: "pipeline-error-google-transcriber-failed", + CallInProgressErrorVapifaultGoogleTranscriberFailed: "call.in-progress.error-vapifault-google-transcriber-failed", + PipelineErrorOpenaiTranscriberFailed: "pipeline-error-openai-transcriber-failed", + CallInProgressErrorVapifaultOpenaiTranscriberFailed: "call.in-progress.error-vapifault-openai-transcriber-failed", + CallInProgressErrorWarmTransferMaxDuration: "call.in-progress.error-warm-transfer-max-duration", + CallInProgressErrorWarmTransferAssistantCancelled: "call.in-progress.error-warm-transfer-assistant-cancelled", + CallInProgressErrorWarmTransferSilenceTimeout: "call.in-progress.error-warm-transfer-silence-timeout", + CallInProgressErrorWarmTransferMicrophoneTimeout: "call.in-progress.error-warm-transfer-microphone-timeout", + CallInProgressErrorWarmTransferHangTimeout: "call.in-progress.error-warm-transfer-hang-timeout", + CallInProgressErrorWarmTransferIdleTimeout: "call.in-progress.error-warm-transfer-idle-timeout", + AssistantEndedCall: "assistant-ended-call", + AssistantSaidEndCallPhrase: "assistant-said-end-call-phrase", + AssistantEndedCallWithHangupTask: "assistant-ended-call-with-hangup-task", + AssistantEndedCallAfterMessageSpoken: "assistant-ended-call-after-message-spoken", + AssistantForwardedCall: "assistant-forwarded-call", + AssistantJoinTimedOut: "assistant-join-timed-out", + CallInProgressErrorAssistantDidNotReceiveCustomerAudio: + "call.in-progress.error-assistant-did-not-receive-customer-audio", + CallInProgressErrorTransferFailed: "call.in-progress.error-transfer-failed", + CustomerBusy: "customer-busy", + CustomerEndedCall: "customer-ended-call", + CustomerEndedCallBeforeWarmTransfer: "customer-ended-call-before-warm-transfer", + CustomerEndedCallAfterWarmTransferAttempt: "customer-ended-call-after-warm-transfer-attempt", + CustomerDidNotAnswer: "customer-did-not-answer", + CustomerDidNotGiveMicrophonePermission: "customer-did-not-give-microphone-permission", + ExceededMaxDuration: "exceeded-max-duration", + ManuallyCanceled: "manually-canceled", + PhoneCallProviderClosedWebsocket: "phone-call-provider-closed-websocket", + CallForwardingOperatorBusy: "call.forwarding.operator-busy", + SilenceTimedOut: "silence-timed-out", + CallInProgressErrorSipInboundCallFailedToConnect: "call.in-progress.error-sip-inbound-call-failed-to-connect", + CallInProgressErrorProviderfaultOutboundSip403Forbidden: + "call.in-progress.error-providerfault-outbound-sip-403-forbidden", + CallInProgressErrorProviderfaultOutboundSip407ProxyAuthenticationRequired: + "call.in-progress.error-providerfault-outbound-sip-407-proxy-authentication-required", + CallInProgressErrorProviderfaultOutboundSip503ServiceUnavailable: + "call.in-progress.error-providerfault-outbound-sip-503-service-unavailable", + CallInProgressErrorProviderfaultOutboundSip480TemporarilyUnavailable: + "call.in-progress.error-providerfault-outbound-sip-480-temporarily-unavailable", + CallInProgressErrorSipOutboundCallFailedToConnect: "call.in-progress.error-sip-outbound-call-failed-to-connect", + CallRingingHookExecutedSay: "call.ringing.hook-executed-say", + CallRingingHookExecutedTransfer: "call.ringing.hook-executed-transfer", + CallEndingHookExecutedSay: "call.ending.hook-executed-say", + CallEndingHookExecutedTransfer: "call.ending.hook-executed-transfer", + CallRingingSipInboundCallerHungupBeforeCallConnect: "call.ringing.sip-inbound-caller-hungup-before-call-connect", + CallRingingErrorSipInboundCallFailedToConnect: "call.ringing.error-sip-inbound-call-failed-to-connect", + TwilioFailedToConnectCall: "twilio-failed-to-connect-call", + TwilioReportedCustomerMisdialed: "twilio-reported-customer-misdialed", + VonageRejected: "vonage-rejected", + Voicemail: "voicemail", + CallDeleted: "call-deleted", +} as const; diff --git a/src/api/types/ServerMessageStatusUpdateMessagesItem.ts b/src/api/types/ServerMessageStatusUpdateMessagesItem.ts new file mode 100644 index 00000000..27d3aef9 --- /dev/null +++ b/src/api/types/ServerMessageStatusUpdateMessagesItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type ServerMessageStatusUpdateMessagesItem = + | Vapi.UserMessage + | Vapi.SystemMessage + | Vapi.BotMessage + | Vapi.ToolCallMessage + | Vapi.ToolCallResultMessage; diff --git a/src/api/types/ServerMessageStatusUpdatePhoneNumber.ts b/src/api/types/ServerMessageStatusUpdatePhoneNumber.ts new file mode 100644 index 00000000..a8741159 --- /dev/null +++ b/src/api/types/ServerMessageStatusUpdatePhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ServerMessageStatusUpdatePhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ServerMessageStatusUpdateStatus.ts b/src/api/types/ServerMessageStatusUpdateStatus.ts new file mode 100644 index 00000000..fb2dc497 --- /dev/null +++ b/src/api/types/ServerMessageStatusUpdateStatus.ts @@ -0,0 +1,26 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the status of the call. + */ +export type ServerMessageStatusUpdateStatus = + | "scheduled" + | "queued" + | "ringing" + | "in-progress" + | "forwarding" + | "ended" + | "not-found" + | "deletion-failed"; +export const ServerMessageStatusUpdateStatus = { + Scheduled: "scheduled", + Queued: "queued", + Ringing: "ringing", + InProgress: "in-progress", + Forwarding: "forwarding", + Ended: "ended", + NotFound: "not-found", + DeletionFailed: "deletion-failed", +} as const; diff --git a/src/api/types/ServerMessageToolCalls.ts b/src/api/types/ServerMessageToolCalls.ts index a2a90508..0c56c962 100644 --- a/src/api/types/ServerMessageToolCalls.ts +++ b/src/api/types/ServerMessageToolCalls.ts @@ -6,11 +6,11 @@ import * as Vapi from "../index.js"; export interface ServerMessageToolCalls { /** This is the phone number that the message is associated with. */ - phoneNumber?: ServerMessageToolCalls.PhoneNumber; + phoneNumber?: Vapi.ServerMessageToolCallsPhoneNumber; /** This is the type of the message. "tool-calls" is sent to call a tool. */ type?: "tool-calls"; /** This is the list of tools calls that the model is requesting along with the original tool configuration. */ - toolWithToolCallList: ServerMessageToolCalls.ToolWithToolCallList.Item[]; + toolWithToolCallList: Vapi.ServerMessageToolCallsToolWithToolCallListItem[]; /** This is the timestamp of the message. */ timestamp?: number; /** @@ -30,27 +30,3 @@ export interface ServerMessageToolCalls { /** This is the list of tool calls that the model is requesting. */ toolCallList: Vapi.ToolCall[]; } - -export namespace ServerMessageToolCalls { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; - export type ToolWithToolCallList = ToolWithToolCallList.Item[]; - - export namespace ToolWithToolCallList { - export type Item = - | Vapi.FunctionToolWithToolCall - | Vapi.GhlToolWithToolCall - | Vapi.MakeToolWithToolCall - | Vapi.BashToolWithToolCall - | Vapi.ComputerToolWithToolCall - | Vapi.TextEditorToolWithToolCall - | Vapi.GoogleCalendarCreateEventToolWithToolCall; - } -} diff --git a/src/api/types/ServerMessageToolCallsPhoneNumber.ts b/src/api/types/ServerMessageToolCallsPhoneNumber.ts new file mode 100644 index 00000000..3d12fc91 --- /dev/null +++ b/src/api/types/ServerMessageToolCallsPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ServerMessageToolCallsPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ServerMessageToolCallsToolWithToolCallListItem.ts b/src/api/types/ServerMessageToolCallsToolWithToolCallListItem.ts new file mode 100644 index 00000000..5219f343 --- /dev/null +++ b/src/api/types/ServerMessageToolCallsToolWithToolCallListItem.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type ServerMessageToolCallsToolWithToolCallListItem = + | Vapi.FunctionToolWithToolCall + | Vapi.GhlToolWithToolCall + | Vapi.MakeToolWithToolCall + | Vapi.BashToolWithToolCall + | Vapi.ComputerToolWithToolCall + | Vapi.TextEditorToolWithToolCall + | Vapi.GoogleCalendarCreateEventToolWithToolCall; diff --git a/src/api/types/ServerMessageTranscript.ts b/src/api/types/ServerMessageTranscript.ts index 95557357..98b56c8b 100644 --- a/src/api/types/ServerMessageTranscript.ts +++ b/src/api/types/ServerMessageTranscript.ts @@ -6,9 +6,9 @@ import * as Vapi from "../index.js"; export interface ServerMessageTranscript { /** This is the phone number that the message is associated with. */ - phoneNumber?: ServerMessageTranscript.PhoneNumber; + phoneNumber?: Vapi.ServerMessageTranscriptPhoneNumber; /** This is the type of the message. "transcript" is sent as transcriber outputs partial or final transcript. */ - type: ServerMessageTranscript.Type; + type: Vapi.ServerMessageTranscriptType; /** This is the timestamp of the message. */ timestamp?: number; /** @@ -26,9 +26,9 @@ export interface ServerMessageTranscript { /** This is the chat object. */ chat?: Vapi.Chat; /** This is the role for which the transcript is for. */ - role: ServerMessageTranscript.Role; + role: Vapi.ServerMessageTranscriptRole; /** This is the type of the transcript. */ - transcriptType: ServerMessageTranscript.TranscriptType; + transcriptType: Vapi.ServerMessageTranscriptTranscriptType; /** This is the transcript content. */ transcript: string; /** Indicates if the transcript was filtered for security reasons. */ @@ -38,39 +38,3 @@ export interface ServerMessageTranscript { /** The original transcript before filtering (only included if content was filtered). */ originalTranscript?: string; } - -export namespace ServerMessageTranscript { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; - /** - * This is the type of the message. "transcript" is sent as transcriber outputs partial or final transcript. - */ - export type Type = "transcript" | 'transcript[transcriptType="final"]'; - export const Type = { - Transcript: "transcript", - TranscriptTranscriptTypeFinal: 'transcript[transcriptType="final"]', - } as const; - /** - * This is the role for which the transcript is for. - */ - export type Role = "assistant" | "user"; - export const Role = { - Assistant: "assistant", - User: "user", - } as const; - /** - * This is the type of the transcript. - */ - export type TranscriptType = "partial" | "final"; - export const TranscriptType = { - Partial: "partial", - Final: "final", - } as const; -} diff --git a/src/api/types/ServerMessageTranscriptPhoneNumber.ts b/src/api/types/ServerMessageTranscriptPhoneNumber.ts new file mode 100644 index 00000000..ff9ef49f --- /dev/null +++ b/src/api/types/ServerMessageTranscriptPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ServerMessageTranscriptPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ServerMessageTranscriptRole.ts b/src/api/types/ServerMessageTranscriptRole.ts new file mode 100644 index 00000000..d1400056 --- /dev/null +++ b/src/api/types/ServerMessageTranscriptRole.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the role for which the transcript is for. + */ +export type ServerMessageTranscriptRole = "assistant" | "user"; +export const ServerMessageTranscriptRole = { + Assistant: "assistant", + User: "user", +} as const; diff --git a/src/api/types/ServerMessageTranscriptTranscriptType.ts b/src/api/types/ServerMessageTranscriptTranscriptType.ts new file mode 100644 index 00000000..832a0365 --- /dev/null +++ b/src/api/types/ServerMessageTranscriptTranscriptType.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the type of the transcript. + */ +export type ServerMessageTranscriptTranscriptType = "partial" | "final"; +export const ServerMessageTranscriptTranscriptType = { + Partial: "partial", + Final: "final", +} as const; diff --git a/src/api/types/ServerMessageTranscriptType.ts b/src/api/types/ServerMessageTranscriptType.ts new file mode 100644 index 00000000..7456c39a --- /dev/null +++ b/src/api/types/ServerMessageTranscriptType.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the type of the message. "transcript" is sent as transcriber outputs partial or final transcript. + */ +export type ServerMessageTranscriptType = "transcript" | 'transcript[transcriptType="final"]'; +export const ServerMessageTranscriptType = { + Transcript: "transcript", + TranscriptTranscriptTypeFinal: 'transcript[transcriptType="final"]', +} as const; diff --git a/src/api/types/ServerMessageTransferDestinationRequest.ts b/src/api/types/ServerMessageTransferDestinationRequest.ts index be0be0ef..c0f48538 100644 --- a/src/api/types/ServerMessageTransferDestinationRequest.ts +++ b/src/api/types/ServerMessageTransferDestinationRequest.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ServerMessageTransferDestinationRequest { /** This is the phone number that the message is associated with. */ - phoneNumber?: ServerMessageTransferDestinationRequest.PhoneNumber; + phoneNumber?: Vapi.ServerMessageTransferDestinationRequestPhoneNumber; /** This is the type of the message. "transfer-destination-request" is sent when the model is requesting transfer but destination is unknown. */ type: "transfer-destination-request"; /** This is the timestamp of the message. */ @@ -26,15 +26,3 @@ export interface ServerMessageTransferDestinationRequest { /** This is the chat object. */ chat?: Vapi.Chat; } - -export namespace ServerMessageTransferDestinationRequest { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ServerMessageTransferDestinationRequestPhoneNumber.ts b/src/api/types/ServerMessageTransferDestinationRequestPhoneNumber.ts new file mode 100644 index 00000000..29670ec3 --- /dev/null +++ b/src/api/types/ServerMessageTransferDestinationRequestPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ServerMessageTransferDestinationRequestPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ServerMessageTransferUpdate.ts b/src/api/types/ServerMessageTransferUpdate.ts index 550517ae..e26f7d2c 100644 --- a/src/api/types/ServerMessageTransferUpdate.ts +++ b/src/api/types/ServerMessageTransferUpdate.ts @@ -6,11 +6,11 @@ import * as Vapi from "../index.js"; export interface ServerMessageTransferUpdate { /** This is the phone number that the message is associated with. */ - phoneNumber?: ServerMessageTransferUpdate.PhoneNumber; + phoneNumber?: Vapi.ServerMessageTransferUpdatePhoneNumber; /** This is the type of the message. "transfer-update" is sent whenever a transfer happens. */ type: "transfer-update"; /** This is the destination of the transfer. */ - destination?: ServerMessageTransferUpdate.Destination; + destination?: Vapi.ServerMessageTransferUpdateDestination; /** This is the timestamp of the message. */ timestamp?: number; /** @@ -36,22 +36,3 @@ export interface ServerMessageTransferUpdate { /** This is the step that the conversation moved from. = */ fromStepRecord?: Record; } - -export namespace ServerMessageTransferUpdate { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; - /** - * This is the destination of the transfer. - */ - export type Destination = - | Vapi.TransferDestinationAssistant - | Vapi.TransferDestinationNumber - | Vapi.TransferDestinationSip; -} diff --git a/src/api/types/ServerMessageTransferUpdateDestination.ts b/src/api/types/ServerMessageTransferUpdateDestination.ts new file mode 100644 index 00000000..82865095 --- /dev/null +++ b/src/api/types/ServerMessageTransferUpdateDestination.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the destination of the transfer. + */ +export type ServerMessageTransferUpdateDestination = + | Vapi.TransferDestinationAssistant + | Vapi.TransferDestinationNumber + | Vapi.TransferDestinationSip; diff --git a/src/api/types/ServerMessageTransferUpdatePhoneNumber.ts b/src/api/types/ServerMessageTransferUpdatePhoneNumber.ts new file mode 100644 index 00000000..0a59ea73 --- /dev/null +++ b/src/api/types/ServerMessageTransferUpdatePhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ServerMessageTransferUpdatePhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ServerMessageUserInterrupted.ts b/src/api/types/ServerMessageUserInterrupted.ts index f9ca5338..e34ce7fa 100644 --- a/src/api/types/ServerMessageUserInterrupted.ts +++ b/src/api/types/ServerMessageUserInterrupted.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ServerMessageUserInterrupted { /** This is the phone number that the message is associated with. */ - phoneNumber?: ServerMessageUserInterrupted.PhoneNumber; + phoneNumber?: Vapi.ServerMessageUserInterruptedPhoneNumber; /** This is the type of the message. "user-interrupted" is sent when the user interrupts the assistant. */ type: "user-interrupted"; /** This is the timestamp of the message. */ @@ -26,15 +26,3 @@ export interface ServerMessageUserInterrupted { /** This is the chat object. */ chat?: Vapi.Chat; } - -export namespace ServerMessageUserInterrupted { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ServerMessageUserInterruptedPhoneNumber.ts b/src/api/types/ServerMessageUserInterruptedPhoneNumber.ts new file mode 100644 index 00000000..0401c4c6 --- /dev/null +++ b/src/api/types/ServerMessageUserInterruptedPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ServerMessageUserInterruptedPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ServerMessageVoiceInput.ts b/src/api/types/ServerMessageVoiceInput.ts index d9982082..8cc73c41 100644 --- a/src/api/types/ServerMessageVoiceInput.ts +++ b/src/api/types/ServerMessageVoiceInput.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ServerMessageVoiceInput { /** This is the phone number that the message is associated with. */ - phoneNumber?: ServerMessageVoiceInput.PhoneNumber; + phoneNumber?: Vapi.ServerMessageVoiceInputPhoneNumber; /** This is the type of the message. "voice-input" is sent when a generation is requested from voice provider. */ type: "voice-input"; /** This is the timestamp of the message. */ @@ -28,15 +28,3 @@ export interface ServerMessageVoiceInput { /** This is the voice input content */ input: string; } - -export namespace ServerMessageVoiceInput { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ServerMessageVoiceInputPhoneNumber.ts b/src/api/types/ServerMessageVoiceInputPhoneNumber.ts new file mode 100644 index 00000000..0dcce727 --- /dev/null +++ b/src/api/types/ServerMessageVoiceInputPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ServerMessageVoiceInputPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/ServerMessageVoiceRequest.ts b/src/api/types/ServerMessageVoiceRequest.ts index 9c919bf1..269e3bcf 100644 --- a/src/api/types/ServerMessageVoiceRequest.ts +++ b/src/api/types/ServerMessageVoiceRequest.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface ServerMessageVoiceRequest { /** This is the phone number that the message is associated with. */ - phoneNumber?: ServerMessageVoiceRequest.PhoneNumber; + phoneNumber?: Vapi.ServerMessageVoiceRequestPhoneNumber; /** * This is the type of the message. "voice-request" is sent when using `assistant.voice={ "type": "custom-voice" }`. * @@ -53,15 +53,3 @@ export interface ServerMessageVoiceRequest { /** This is the sample rate to be synthesized. */ sampleRate: number; } - -export namespace ServerMessageVoiceRequest { - /** - * This is the phone number that the message is associated with. - */ - export type PhoneNumber = - | Vapi.CreateByoPhoneNumberDto - | Vapi.CreateTwilioPhoneNumberDto - | Vapi.CreateVonagePhoneNumberDto - | Vapi.CreateVapiPhoneNumberDto - | Vapi.CreateTelnyxPhoneNumberDto; -} diff --git a/src/api/types/ServerMessageVoiceRequestPhoneNumber.ts b/src/api/types/ServerMessageVoiceRequestPhoneNumber.ts new file mode 100644 index 00000000..1d07a43f --- /dev/null +++ b/src/api/types/ServerMessageVoiceRequestPhoneNumber.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the phone number that the message is associated with. + */ +export type ServerMessageVoiceRequestPhoneNumber = + | Vapi.CreateByoPhoneNumberDto + | Vapi.CreateTwilioPhoneNumberDto + | Vapi.CreateVonagePhoneNumberDto + | Vapi.CreateVapiPhoneNumberDto + | Vapi.CreateTelnyxPhoneNumberDto; diff --git a/src/api/types/Session.ts b/src/api/types/Session.ts index fde3ad16..f0c5d2af 100644 --- a/src/api/types/Session.ts +++ b/src/api/types/Session.ts @@ -16,7 +16,7 @@ export interface Session { /** This is a user-defined name for the session. Maximum length is 40 characters. */ name?: string; /** This is the current status of the session. Can be either 'active' or 'completed'. */ - status?: Session.Status; + status?: Vapi.SessionStatus; /** Session expiration time in seconds. Defaults to 24 hours (86400 seconds) if not set. */ expirationSeconds?: number; /** This is the ID of the assistant associated with this session. Use this when referencing an existing assistant. */ @@ -34,7 +34,7 @@ export interface Session { */ squad?: Vapi.CreateSquadDto; /** This is an array of chat messages in the session. */ - messages?: Session.Messages.Item[]; + messages?: Vapi.SessionMessagesItem[]; /** This is the customer information associated with this session. */ customer?: Vapi.CreateCustomerDto; /** This is the ID of the phone number associated with this session. */ @@ -50,24 +50,3 @@ export interface Session { */ artifact?: Vapi.Artifact; } - -export namespace Session { - /** - * This is the current status of the session. Can be either 'active' or 'completed'. - */ - export type Status = "active" | "completed"; - export const Status = { - Active: "active", - Completed: "completed", - } as const; - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.SystemMessage - | Vapi.UserMessage - | Vapi.AssistantMessage - | Vapi.ToolMessage - | Vapi.DeveloperMessage; - } -} diff --git a/src/api/types/SessionMessagesItem.ts b/src/api/types/SessionMessagesItem.ts new file mode 100644 index 00000000..e1843510 --- /dev/null +++ b/src/api/types/SessionMessagesItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type SessionMessagesItem = + | Vapi.SystemMessage + | Vapi.UserMessage + | Vapi.AssistantMessage + | Vapi.ToolMessage + | Vapi.DeveloperMessage; diff --git a/src/api/types/SessionStatus.ts b/src/api/types/SessionStatus.ts new file mode 100644 index 00000000..e2c82f01 --- /dev/null +++ b/src/api/types/SessionStatus.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the current status of the session. Can be either 'active' or 'completed'. + */ +export type SessionStatus = "active" | "completed"; +export const SessionStatus = { + Active: "active", + Completed: "completed", +} as const; diff --git a/src/api/types/SipTrunkGateway.ts b/src/api/types/SipTrunkGateway.ts index c58a0efa..c72608b2 100644 --- a/src/api/types/SipTrunkGateway.ts +++ b/src/api/types/SipTrunkGateway.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface SipTrunkGateway { /** This is the address of the gateway. It can be an IPv4 address like 1.1.1.1 or a fully qualified domain name like my-sip-trunk.pstn.twilio.com. */ ip: string; @@ -36,7 +38,7 @@ export interface SipTrunkGateway { * * @default udp */ - outboundProtocol?: SipTrunkGateway.OutboundProtocol; + outboundProtocol?: Vapi.SipTrunkGatewayOutboundProtocol; /** * This is whether to send options ping to the gateway. This can be used to check if the gateway is reachable. Default is false. * @@ -46,18 +48,3 @@ export interface SipTrunkGateway { */ optionsPingEnabled?: boolean; } - -export namespace SipTrunkGateway { - /** - * This is the protocol to use for SIP signaling outbound calls. Default is udp. - * - * @default udp - */ - export type OutboundProtocol = "tls/srtp" | "tcp" | "tls" | "udp"; - export const OutboundProtocol = { - TlsSrtp: "tls/srtp", - Tcp: "tcp", - Tls: "tls", - Udp: "udp", - } as const; -} diff --git a/src/api/types/SipTrunkGatewayOutboundProtocol.ts b/src/api/types/SipTrunkGatewayOutboundProtocol.ts new file mode 100644 index 00000000..77ea7671 --- /dev/null +++ b/src/api/types/SipTrunkGatewayOutboundProtocol.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the protocol to use for SIP signaling outbound calls. Default is udp. + * + * @default udp + */ +export type SipTrunkGatewayOutboundProtocol = "tls/srtp" | "tcp" | "tls" | "udp"; +export const SipTrunkGatewayOutboundProtocol = { + TlsSrtp: "tls/srtp", + Tcp: "tcp", + Tls: "tls", + Udp: "udp", +} as const; diff --git a/src/api/types/SlackSendMessageTool.ts b/src/api/types/SlackSendMessageTool.ts index 0f365d36..9fde7984 100644 --- a/src/api/types/SlackSendMessageTool.ts +++ b/src/api/types/SlackSendMessageTool.ts @@ -10,7 +10,7 @@ export interface SlackSendMessageTool { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: SlackSendMessageTool.Messages.Item[]; + messages?: Vapi.SlackSendMessageToolMessagesItem[]; type: "slack.message.send"; /** This is the unique identifier for the tool. */ id: string; @@ -102,15 +102,3 @@ export interface SlackSendMessageTool { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace SlackSendMessageTool { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/SlackSendMessageToolMessagesItem.ts b/src/api/types/SlackSendMessageToolMessagesItem.ts new file mode 100644 index 00000000..746e5398 --- /dev/null +++ b/src/api/types/SlackSendMessageToolMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type SlackSendMessageToolMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/SmallestAiVoice.ts b/src/api/types/SmallestAiVoice.ts index 55bd570d..ca745a9f 100644 --- a/src/api/types/SmallestAiVoice.ts +++ b/src/api/types/SmallestAiVoice.ts @@ -10,7 +10,7 @@ export interface SmallestAiVoice { /** This is the voice provider that will be used. */ provider: "smallest-ai"; /** This is the provider-specific ID that will be used. */ - voiceId: SmallestAiVoice.VoiceId; + voiceId: Vapi.SmallestAiVoiceId; /** Smallest AI voice model to use. Defaults to 'lightning' when not specified. */ model?: "lightning"; /** This is the speed multiplier that will be used. */ @@ -20,38 +20,3 @@ export interface SmallestAiVoice { /** This is the plan for voice provider fallbacks in the event that the primary voice provider fails. */ fallbackPlan?: Vapi.FallbackPlan; } - -export namespace SmallestAiVoice { - /** - * This is the provider-specific ID that will be used. - */ - export type VoiceId = - | ( - | "emily" - | "jasmine" - | "arman" - | "james" - | "mithali" - | "aravind" - | "raj" - | "diya" - | "raman" - | "ananya" - | "isha" - | "william" - | "aarav" - | "monika" - | "niharika" - | "deepika" - | "raghav" - | "kajal" - | "radhika" - | "mansi" - | "nisha" - | "saurabh" - | "pooja" - | "saina" - | "sanya" - ) - | string; -} diff --git a/src/api/types/SmallestAiVoiceId.ts b/src/api/types/SmallestAiVoiceId.ts new file mode 100644 index 00000000..efd434aa --- /dev/null +++ b/src/api/types/SmallestAiVoiceId.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the provider-specific ID that will be used. + */ +export type SmallestAiVoiceId = Vapi.SmallestAiVoiceIdEnum | string; diff --git a/src/api/types/SmallestAiVoiceIdEnum.ts b/src/api/types/SmallestAiVoiceIdEnum.ts new file mode 100644 index 00000000..3dd4ea7f --- /dev/null +++ b/src/api/types/SmallestAiVoiceIdEnum.ts @@ -0,0 +1,57 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type SmallestAiVoiceIdEnum = + | "emily" + | "jasmine" + | "arman" + | "james" + | "mithali" + | "aravind" + | "raj" + | "diya" + | "raman" + | "ananya" + | "isha" + | "william" + | "aarav" + | "monika" + | "niharika" + | "deepika" + | "raghav" + | "kajal" + | "radhika" + | "mansi" + | "nisha" + | "saurabh" + | "pooja" + | "saina" + | "sanya"; +export const SmallestAiVoiceIdEnum = { + Emily: "emily", + Jasmine: "jasmine", + Arman: "arman", + James: "james", + Mithali: "mithali", + Aravind: "aravind", + Raj: "raj", + Diya: "diya", + Raman: "raman", + Ananya: "ananya", + Isha: "isha", + William: "william", + Aarav: "aarav", + Monika: "monika", + Niharika: "niharika", + Deepika: "deepika", + Raghav: "raghav", + Kajal: "kajal", + Radhika: "radhika", + Mansi: "mansi", + Nisha: "nisha", + Saurabh: "saurabh", + Pooja: "pooja", + Saina: "saina", + Sanya: "sanya", +} as const; diff --git a/src/api/types/SmsTool.ts b/src/api/types/SmsTool.ts index 4687d686..0b4e1fb6 100644 --- a/src/api/types/SmsTool.ts +++ b/src/api/types/SmsTool.ts @@ -10,7 +10,7 @@ export interface SmsTool { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: SmsTool.Messages.Item[]; + messages?: Vapi.SmsToolMessagesItem[]; type: "sms"; /** This is the unique identifier for the tool. */ id: string; @@ -102,15 +102,3 @@ export interface SmsTool { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace SmsTool { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/SmsToolMessagesItem.ts b/src/api/types/SmsToolMessagesItem.ts new file mode 100644 index 00000000..f8f20a7e --- /dev/null +++ b/src/api/types/SmsToolMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type SmsToolMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/SpeechmaticsTranscriber.ts b/src/api/types/SpeechmaticsTranscriber.ts index 79294f87..9402a753 100644 --- a/src/api/types/SpeechmaticsTranscriber.ts +++ b/src/api/types/SpeechmaticsTranscriber.ts @@ -9,19 +9,19 @@ export interface SpeechmaticsTranscriber { provider: "speechmatics"; /** This is the model that will be used for the transcription. */ model?: "default"; - language?: SpeechmaticsTranscriber.Language; + language?: Vapi.SpeechmaticsTranscriberLanguage; /** * This is the operating point for the transcription. Choose between `standard` for faster turnaround with strong accuracy or `enhanced` for highest accuracy when precision is critical. * * @default 'enhanced' */ - operatingPoint?: SpeechmaticsTranscriber.OperatingPoint; + operatingPoint?: Vapi.SpeechmaticsTranscriberOperatingPoint; /** * This is the region for the Speechmatics API. Choose between EU (Europe) and US (United States) regions for lower latency and data sovereignty compliance. * * @default 'eu' */ - region?: SpeechmaticsTranscriber.Region; + region?: Vapi.SpeechmaticsTranscriberRegion; /** * This enables speaker diarization, which identifies and separates speakers in the transcription. Essential for multi-speaker conversations and conference calls. * @@ -52,7 +52,7 @@ export interface SpeechmaticsTranscriber { * * @default 'written' */ - numeralStyle?: SpeechmaticsTranscriber.NumeralStyle; + numeralStyle?: Vapi.SpeechmaticsTranscriberNumeralStyle; /** * This enables detection of non-speech audio events like music, applause, and laughter. * @@ -92,151 +92,3 @@ export interface SpeechmaticsTranscriber { /** This is the plan for voice provider fallbacks in the event that the primary voice provider fails. */ fallbackPlan?: Vapi.FallbackTranscriberPlan; } - -export namespace SpeechmaticsTranscriber { - export type Language = - | "auto" - | "ar" - | "ba" - | "eu" - | "be" - | "bn" - | "bg" - | "yue" - | "ca" - | "hr" - | "cs" - | "da" - | "nl" - | "en" - | "eo" - | "et" - | "fi" - | "fr" - | "gl" - | "de" - | "el" - | "he" - | "hi" - | "hu" - | "id" - | "ia" - | "ga" - | "it" - | "ja" - | "ko" - | "lv" - | "lt" - | "ms" - | "mt" - | "cmn" - | "mr" - | "mn" - | "no" - | "fa" - | "pl" - | "pt" - | "ro" - | "ru" - | "sk" - | "sl" - | "es" - | "sw" - | "sv" - | "ta" - | "th" - | "tr" - | "uk" - | "ur" - | "ug" - | "vi" - | "cy"; - export const Language = { - Auto: "auto", - Ar: "ar", - Ba: "ba", - Eu: "eu", - Be: "be", - Bn: "bn", - Bg: "bg", - Yue: "yue", - Ca: "ca", - Hr: "hr", - Cs: "cs", - Da: "da", - Nl: "nl", - En: "en", - Eo: "eo", - Et: "et", - Fi: "fi", - Fr: "fr", - Gl: "gl", - De: "de", - El: "el", - He: "he", - Hi: "hi", - Hu: "hu", - Id: "id", - Ia: "ia", - Ga: "ga", - It: "it", - Ja: "ja", - Ko: "ko", - Lv: "lv", - Lt: "lt", - Ms: "ms", - Mt: "mt", - Cmn: "cmn", - Mr: "mr", - Mn: "mn", - No: "no", - Fa: "fa", - Pl: "pl", - Pt: "pt", - Ro: "ro", - Ru: "ru", - Sk: "sk", - Sl: "sl", - Es: "es", - Sw: "sw", - Sv: "sv", - Ta: "ta", - Th: "th", - Tr: "tr", - Uk: "uk", - Ur: "ur", - Ug: "ug", - Vi: "vi", - Cy: "cy", - } as const; - /** - * This is the operating point for the transcription. Choose between `standard` for faster turnaround with strong accuracy or `enhanced` for highest accuracy when precision is critical. - * - * @default 'enhanced' - */ - export type OperatingPoint = "standard" | "enhanced"; - export const OperatingPoint = { - Standard: "standard", - Enhanced: "enhanced", - } as const; - /** - * This is the region for the Speechmatics API. Choose between EU (Europe) and US (United States) regions for lower latency and data sovereignty compliance. - * - * @default 'eu' - */ - export type Region = "eu" | "us"; - export const Region = { - Eu: "eu", - Us: "us", - } as const; - /** - * This controls how numbers are formatted in the transcription output. - * - * @default 'written' - */ - export type NumeralStyle = "written" | "spoken"; - export const NumeralStyle = { - Written: "written", - Spoken: "spoken", - } as const; -} diff --git a/src/api/types/SpeechmaticsTranscriberLanguage.ts b/src/api/types/SpeechmaticsTranscriberLanguage.ts new file mode 100644 index 00000000..7812b9dd --- /dev/null +++ b/src/api/types/SpeechmaticsTranscriberLanguage.ts @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type SpeechmaticsTranscriberLanguage = + | "auto" + | "ar" + | "ba" + | "eu" + | "be" + | "bn" + | "bg" + | "yue" + | "ca" + | "hr" + | "cs" + | "da" + | "nl" + | "en" + | "eo" + | "et" + | "fi" + | "fr" + | "gl" + | "de" + | "el" + | "he" + | "hi" + | "hu" + | "id" + | "ia" + | "ga" + | "it" + | "ja" + | "ko" + | "lv" + | "lt" + | "ms" + | "mt" + | "cmn" + | "mr" + | "mn" + | "no" + | "fa" + | "pl" + | "pt" + | "ro" + | "ru" + | "sk" + | "sl" + | "es" + | "sw" + | "sv" + | "ta" + | "th" + | "tr" + | "uk" + | "ur" + | "ug" + | "vi" + | "cy"; +export const SpeechmaticsTranscriberLanguage = { + Auto: "auto", + Ar: "ar", + Ba: "ba", + Eu: "eu", + Be: "be", + Bn: "bn", + Bg: "bg", + Yue: "yue", + Ca: "ca", + Hr: "hr", + Cs: "cs", + Da: "da", + Nl: "nl", + En: "en", + Eo: "eo", + Et: "et", + Fi: "fi", + Fr: "fr", + Gl: "gl", + De: "de", + El: "el", + He: "he", + Hi: "hi", + Hu: "hu", + Id: "id", + Ia: "ia", + Ga: "ga", + It: "it", + Ja: "ja", + Ko: "ko", + Lv: "lv", + Lt: "lt", + Ms: "ms", + Mt: "mt", + Cmn: "cmn", + Mr: "mr", + Mn: "mn", + No: "no", + Fa: "fa", + Pl: "pl", + Pt: "pt", + Ro: "ro", + Ru: "ru", + Sk: "sk", + Sl: "sl", + Es: "es", + Sw: "sw", + Sv: "sv", + Ta: "ta", + Th: "th", + Tr: "tr", + Uk: "uk", + Ur: "ur", + Ug: "ug", + Vi: "vi", + Cy: "cy", +} as const; diff --git a/src/api/types/SpeechmaticsTranscriberNumeralStyle.ts b/src/api/types/SpeechmaticsTranscriberNumeralStyle.ts new file mode 100644 index 00000000..e986bcc3 --- /dev/null +++ b/src/api/types/SpeechmaticsTranscriberNumeralStyle.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This controls how numbers are formatted in the transcription output. + * + * @default 'written' + */ +export type SpeechmaticsTranscriberNumeralStyle = "written" | "spoken"; +export const SpeechmaticsTranscriberNumeralStyle = { + Written: "written", + Spoken: "spoken", +} as const; diff --git a/src/api/types/SpeechmaticsTranscriberOperatingPoint.ts b/src/api/types/SpeechmaticsTranscriberOperatingPoint.ts new file mode 100644 index 00000000..5782358b --- /dev/null +++ b/src/api/types/SpeechmaticsTranscriberOperatingPoint.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the operating point for the transcription. Choose between `standard` for faster turnaround with strong accuracy or `enhanced` for highest accuracy when precision is critical. + * + * @default 'enhanced' + */ +export type SpeechmaticsTranscriberOperatingPoint = "standard" | "enhanced"; +export const SpeechmaticsTranscriberOperatingPoint = { + Standard: "standard", + Enhanced: "enhanced", +} as const; diff --git a/src/api/types/SpeechmaticsTranscriberRegion.ts b/src/api/types/SpeechmaticsTranscriberRegion.ts new file mode 100644 index 00000000..8d6545af --- /dev/null +++ b/src/api/types/SpeechmaticsTranscriberRegion.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the region for the Speechmatics API. Choose between EU (Europe) and US (United States) regions for lower latency and data sovereignty compliance. + * + * @default 'eu' + */ +export type SpeechmaticsTranscriberRegion = "eu" | "us"; +export const SpeechmaticsTranscriberRegion = { + Eu: "eu", + Us: "us", +} as const; diff --git a/src/api/types/SquadMemberDto.ts b/src/api/types/SquadMemberDto.ts index a3e302bd..f9f620d6 100644 --- a/src/api/types/SquadMemberDto.ts +++ b/src/api/types/SquadMemberDto.ts @@ -5,7 +5,7 @@ import * as Vapi from "../index.js"; export interface SquadMemberDto { - assistantDestinations?: SquadMemberDto.AssistantDestinations.Item[]; + assistantDestinations?: Vapi.SquadMemberDtoAssistantDestinationsItem[]; /** This is the assistant that will be used for the call. To use a transient assistant, use `assistant` instead. */ assistantId?: string | null; /** This is the assistant that will be used for the call. To use an existing assistant, use `assistantId` instead. */ @@ -13,11 +13,3 @@ export interface SquadMemberDto { /** This can be used to override the assistant's settings and provide values for it's template variables. */ assistantOverrides?: Vapi.AssistantOverrides; } - -export namespace SquadMemberDto { - export type AssistantDestinations = AssistantDestinations.Item[]; - - export namespace AssistantDestinations { - export type Item = Vapi.TransferDestinationAssistant | Vapi.HandoffDestinationAssistant; - } -} diff --git a/src/api/types/SquadMemberDtoAssistantDestinationsItem.ts b/src/api/types/SquadMemberDtoAssistantDestinationsItem.ts new file mode 100644 index 00000000..ee8035d8 --- /dev/null +++ b/src/api/types/SquadMemberDtoAssistantDestinationsItem.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type SquadMemberDtoAssistantDestinationsItem = + | Vapi.TransferDestinationAssistant + | Vapi.HandoffDestinationAssistant; diff --git a/src/api/types/StartSpeakingPlan.ts b/src/api/types/StartSpeakingPlan.ts index 979f4d54..36389aa3 100644 --- a/src/api/types/StartSpeakingPlan.ts +++ b/src/api/types/StartSpeakingPlan.ts @@ -20,7 +20,7 @@ export interface StartSpeakingPlan { * @default 0.4 */ waitSeconds?: number; - smartEndpointingEnabled?: StartSpeakingPlan.SmartEndpointingEnabled; + smartEndpointingEnabled?: Vapi.StartSpeakingPlanSmartEndpointingEnabled; /** * This is the plan for smart endpointing. Pick between Vapi smart endpointing, LiveKit, or custom endpointing model (or nothing). We strongly recommend using livekit endpointing when working in English. LiveKit endpointing is not supported in other languages, yet. * @@ -29,7 +29,7 @@ export interface StartSpeakingPlan { * * If this is not set, the system will automatically use the transcriber's built-in endpointing capabilities if available. */ - smartEndpointingPlan?: StartSpeakingPlan.SmartEndpointingPlan; + smartEndpointingPlan?: Vapi.StartSpeakingPlanSmartEndpointingPlan; /** * These are the custom endpointing rules to set an endpointing timeout based on a regex on the customer's speech or the assistant's last message. * @@ -49,7 +49,7 @@ export interface StartSpeakingPlan { * * @default [] */ - customEndpointingRules?: StartSpeakingPlan.CustomEndpointingRules.Item[]; + customEndpointingRules?: Vapi.StartSpeakingPlanCustomEndpointingRulesItem[]; /** * This determines how a customer speech is considered done (endpointing) using the transcription of customer's speech. * @@ -60,27 +60,3 @@ export interface StartSpeakingPlan { */ transcriptionEndpointingPlan?: Vapi.TranscriptionEndpointingPlan; } - -export namespace StartSpeakingPlan { - export type SmartEndpointingEnabled = boolean | "livekit"; - /** - * This is the plan for smart endpointing. Pick between Vapi smart endpointing, LiveKit, or custom endpointing model (or nothing). We strongly recommend using livekit endpointing when working in English. LiveKit endpointing is not supported in other languages, yet. - * - * If this is set, it will override and take precedence over `transcriptionEndpointingPlan`. - * This plan will still be overridden by any matching `customEndpointingRules`. - * - * If this is not set, the system will automatically use the transcriber's built-in endpointing capabilities if available. - */ - export type SmartEndpointingPlan = - | Vapi.VapiSmartEndpointingPlan - | Vapi.LivekitSmartEndpointingPlan - | Vapi.CustomEndpointingModelSmartEndpointingPlan; - export type CustomEndpointingRules = CustomEndpointingRules.Item[]; - - export namespace CustomEndpointingRules { - export type Item = - | Vapi.AssistantCustomEndpointingRule - | Vapi.CustomerCustomEndpointingRule - | Vapi.BothCustomEndpointingRule; - } -} diff --git a/src/api/types/StartSpeakingPlanCustomEndpointingRulesItem.ts b/src/api/types/StartSpeakingPlanCustomEndpointingRulesItem.ts new file mode 100644 index 00000000..7e002c0f --- /dev/null +++ b/src/api/types/StartSpeakingPlanCustomEndpointingRulesItem.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type StartSpeakingPlanCustomEndpointingRulesItem = + | Vapi.AssistantCustomEndpointingRule + | Vapi.CustomerCustomEndpointingRule + | Vapi.BothCustomEndpointingRule; diff --git a/src/api/types/StartSpeakingPlanSmartEndpointingEnabled.ts b/src/api/types/StartSpeakingPlanSmartEndpointingEnabled.ts new file mode 100644 index 00000000..a364f407 --- /dev/null +++ b/src/api/types/StartSpeakingPlanSmartEndpointingEnabled.ts @@ -0,0 +1,5 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type StartSpeakingPlanSmartEndpointingEnabled = boolean | "livekit"; diff --git a/src/api/types/StartSpeakingPlanSmartEndpointingPlan.ts b/src/api/types/StartSpeakingPlanSmartEndpointingPlan.ts new file mode 100644 index 00000000..8b1392de --- /dev/null +++ b/src/api/types/StartSpeakingPlanSmartEndpointingPlan.ts @@ -0,0 +1,18 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the plan for smart endpointing. Pick between Vapi smart endpointing, LiveKit, or custom endpointing model (or nothing). We strongly recommend using livekit endpointing when working in English. LiveKit endpointing is not supported in other languages, yet. + * + * If this is set, it will override and take precedence over `transcriptionEndpointingPlan`. + * This plan will still be overridden by any matching `customEndpointingRules`. + * + * If this is not set, the system will automatically use the transcriber's built-in endpointing capabilities if available. + */ +export type StartSpeakingPlanSmartEndpointingPlan = + | Vapi.VapiSmartEndpointingPlan + | Vapi.LivekitSmartEndpointingPlan + | Vapi.CustomEndpointingModelSmartEndpointingPlan; diff --git a/src/api/types/StructuredOutput.ts b/src/api/types/StructuredOutput.ts index 6cb4043a..145b561a 100644 --- a/src/api/types/StructuredOutput.ts +++ b/src/api/types/StructuredOutput.ts @@ -20,7 +20,7 @@ export interface StructuredOutput { * If model is not specified, GPT-4.1 will be used by default for extraction, utilizing default system and user prompts. * If messages or required fields are not specified, the default system and user prompts will be used. */ - model?: StructuredOutput.Model; + model?: Vapi.StructuredOutputModel; /** This is the unique identifier for the structured output. */ id: string; /** This is the unique identifier for the org that this structured output belongs to. */ @@ -62,26 +62,3 @@ export interface StructuredOutput { */ schema: Vapi.JsonSchema; } - -export namespace StructuredOutput { - /** - * This is the model that will be used to extract the structured output. - * - * To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. - * Between the system or user messages, you must reference either 'transcript' or 'messages' with the '{{}}' syntax to access the conversation history. - * Between the system or user messages, you must reference a variation of the structured output with the '{{}}' syntax to access the structured output definition. - * i.e.: - * {{structuredOutput}} - * {{structuredOutput.name}} - * {{structuredOutput.description}} - * {{structuredOutput.schema}} - * - * If model is not specified, GPT-4.1 will be used by default for extraction, utilizing default system and user prompts. - * If messages or required fields are not specified, the default system and user prompts will be used. - */ - export type Model = - | Vapi.WorkflowOpenAiModel - | Vapi.WorkflowAnthropicModel - | Vapi.WorkflowGoogleModel - | Vapi.WorkflowCustomModel; -} diff --git a/src/api/types/StructuredOutputModel.ts b/src/api/types/StructuredOutputModel.ts new file mode 100644 index 00000000..2c4aa5e6 --- /dev/null +++ b/src/api/types/StructuredOutputModel.ts @@ -0,0 +1,26 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the model that will be used to extract the structured output. + * + * To provide your own custom system and user prompts for structured output extraction, populate the messages array with your system and user messages. You can specify liquid templating in your system and user messages. + * Between the system or user messages, you must reference either 'transcript' or 'messages' with the '{{}}' syntax to access the conversation history. + * Between the system or user messages, you must reference a variation of the structured output with the '{{}}' syntax to access the structured output definition. + * i.e.: + * {{structuredOutput}} + * {{structuredOutput.name}} + * {{structuredOutput.description}} + * {{structuredOutput.schema}} + * + * If model is not specified, GPT-4.1 will be used by default for extraction, utilizing default system and user prompts. + * If messages or required fields are not specified, the default system and user prompts will be used. + */ +export type StructuredOutputModel = + | Vapi.WorkflowOpenAiModel + | Vapi.WorkflowAnthropicModel + | Vapi.WorkflowGoogleModel + | Vapi.WorkflowCustomModel; diff --git a/src/api/types/Subscription.ts b/src/api/types/Subscription.ts index d4efb757..a14aafef 100644 --- a/src/api/types/Subscription.ts +++ b/src/api/types/Subscription.ts @@ -12,12 +12,12 @@ export interface Subscription { /** This is the timestamp when the subscription was last updated. */ updatedAt: string; /** This is the type / tier of the subscription. */ - type: Subscription.Type; + type: Vapi.SubscriptionType; /** * This is the status of the subscription. Past due subscriptions are subscriptions * with past due payments. */ - status: Subscription.Status; + status: Vapi.SubscriptionStatus; /** * This is the number of credits the subscription currently has. * @@ -101,41 +101,9 @@ export interface Subscription { /** This is the chat retention days for the subscription. */ chatRetentionDays?: number; /** This is the minutes_included reset frequency for the subscription. */ - minutesIncludedResetFrequency?: Subscription.MinutesIncludedResetFrequency; + minutesIncludedResetFrequency?: Vapi.SubscriptionMinutesIncludedResetFrequency; /** This is the Role Based Access Control (RBAC) enabled flag for the subscription. */ rbacEnabled?: boolean; /** This is the platform fee for the subscription. */ platformFee?: number; } - -export namespace Subscription { - /** - * This is the type / tier of the subscription. - */ - export type Type = "pay-as-you-go" | "enterprise" | "agency" | "startup" | "growth" | "scale"; - export const Type = { - PayAsYouGo: "pay-as-you-go", - Enterprise: "enterprise", - Agency: "agency", - Startup: "startup", - Growth: "growth", - Scale: "scale", - } as const; - /** - * This is the status of the subscription. Past due subscriptions are subscriptions - * with past due payments. - */ - export type Status = "active" | "frozen"; - export const Status = { - Active: "active", - Frozen: "frozen", - } as const; - /** - * This is the minutes_included reset frequency for the subscription. - */ - export type MinutesIncludedResetFrequency = "monthly" | "annually"; - export const MinutesIncludedResetFrequency = { - Monthly: "monthly", - Annually: "annually", - } as const; -} diff --git a/src/api/types/SubscriptionMinutesIncludedResetFrequency.ts b/src/api/types/SubscriptionMinutesIncludedResetFrequency.ts new file mode 100644 index 00000000..53c58732 --- /dev/null +++ b/src/api/types/SubscriptionMinutesIncludedResetFrequency.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the minutes_included reset frequency for the subscription. + */ +export type SubscriptionMinutesIncludedResetFrequency = "monthly" | "annually"; +export const SubscriptionMinutesIncludedResetFrequency = { + Monthly: "monthly", + Annually: "annually", +} as const; diff --git a/src/api/types/SubscriptionStatus.ts b/src/api/types/SubscriptionStatus.ts new file mode 100644 index 00000000..14855df6 --- /dev/null +++ b/src/api/types/SubscriptionStatus.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the status of the subscription. Past due subscriptions are subscriptions + * with past due payments. + */ +export type SubscriptionStatus = "active" | "frozen"; +export const SubscriptionStatus = { + Active: "active", + Frozen: "frozen", +} as const; diff --git a/src/api/types/SubscriptionType.ts b/src/api/types/SubscriptionType.ts new file mode 100644 index 00000000..82dd62b5 --- /dev/null +++ b/src/api/types/SubscriptionType.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the type / tier of the subscription. + */ +export type SubscriptionType = "pay-as-you-go" | "enterprise" | "agency" | "startup" | "growth" | "scale"; +export const SubscriptionType = { + PayAsYouGo: "pay-as-you-go", + Enterprise: "enterprise", + Agency: "agency", + Startup: "startup", + Growth: "growth", + Scale: "scale", +} as const; diff --git a/src/api/types/SuccessEvaluationPlan.ts b/src/api/types/SuccessEvaluationPlan.ts index 9c95b7ba..43de82f5 100644 --- a/src/api/types/SuccessEvaluationPlan.ts +++ b/src/api/types/SuccessEvaluationPlan.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface SuccessEvaluationPlan { /** * This enforces the rubric of the evaluation. The output is stored in `call.analysis.successEvaluation`. @@ -18,7 +20,7 @@ export interface SuccessEvaluationPlan { * * Default is 'PassFail'. */ - rubric?: SuccessEvaluationPlan.Rubric; + rubric?: Vapi.SuccessEvaluationPlanRubric; /** * These are the messages used to generate the success evaluation. * @@ -63,40 +65,3 @@ export interface SuccessEvaluationPlan { */ timeoutSeconds?: number; } - -export namespace SuccessEvaluationPlan { - /** - * This enforces the rubric of the evaluation. The output is stored in `call.analysis.successEvaluation`. - * - * Options include: - * - 'NumericScale': A scale of 1 to 10. - * - 'DescriptiveScale': A scale of Excellent, Good, Fair, Poor. - * - 'Checklist': A checklist of criteria and their status. - * - 'Matrix': A grid that evaluates multiple criteria across different performance levels. - * - 'PercentageScale': A scale of 0% to 100%. - * - 'LikertScale': A scale of Strongly Agree, Agree, Neutral, Disagree, Strongly Disagree. - * - 'AutomaticRubric': Automatically break down evaluation into several criteria, each with its own score. - * - 'PassFail': A simple 'true' if call passed, 'false' if not. - * - * Default is 'PassFail'. - */ - export type Rubric = - | "NumericScale" - | "DescriptiveScale" - | "Checklist" - | "Matrix" - | "PercentageScale" - | "LikertScale" - | "AutomaticRubric" - | "PassFail"; - export const Rubric = { - NumericScale: "NumericScale", - DescriptiveScale: "DescriptiveScale", - Checklist: "Checklist", - Matrix: "Matrix", - PercentageScale: "PercentageScale", - LikertScale: "LikertScale", - AutomaticRubric: "AutomaticRubric", - PassFail: "PassFail", - } as const; -} diff --git a/src/api/types/SuccessEvaluationPlanRubric.ts b/src/api/types/SuccessEvaluationPlanRubric.ts new file mode 100644 index 00000000..a0775eb3 --- /dev/null +++ b/src/api/types/SuccessEvaluationPlanRubric.ts @@ -0,0 +1,38 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This enforces the rubric of the evaluation. The output is stored in `call.analysis.successEvaluation`. + * + * Options include: + * - 'NumericScale': A scale of 1 to 10. + * - 'DescriptiveScale': A scale of Excellent, Good, Fair, Poor. + * - 'Checklist': A checklist of criteria and their status. + * - 'Matrix': A grid that evaluates multiple criteria across different performance levels. + * - 'PercentageScale': A scale of 0% to 100%. + * - 'LikertScale': A scale of Strongly Agree, Agree, Neutral, Disagree, Strongly Disagree. + * - 'AutomaticRubric': Automatically break down evaluation into several criteria, each with its own score. + * - 'PassFail': A simple 'true' if call passed, 'false' if not. + * + * Default is 'PassFail'. + */ +export type SuccessEvaluationPlanRubric = + | "NumericScale" + | "DescriptiveScale" + | "Checklist" + | "Matrix" + | "PercentageScale" + | "LikertScale" + | "AutomaticRubric" + | "PassFail"; +export const SuccessEvaluationPlanRubric = { + NumericScale: "NumericScale", + DescriptiveScale: "DescriptiveScale", + Checklist: "Checklist", + Matrix: "Matrix", + PercentageScale: "PercentageScale", + LikertScale: "LikertScale", + AutomaticRubric: "AutomaticRubric", + PassFail: "PassFail", +} as const; diff --git a/src/api/types/SupabaseBucketPlan.ts b/src/api/types/SupabaseBucketPlan.ts index fc930c79..28cc8e7e 100644 --- a/src/api/types/SupabaseBucketPlan.ts +++ b/src/api/types/SupabaseBucketPlan.ts @@ -2,13 +2,15 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface SupabaseBucketPlan { /** * This is the S3 Region. It should look like us-east-1 * It should be one of the supabase regions defined in the SUPABASE_REGION enum * Check https://supabase.com/docs/guides/platform/regions for up to date regions */ - region: SupabaseBucketPlan.Region; + region: Vapi.SupabaseBucketPlanRegion; /** * This is the S3 compatible URL for Supabase S3 * This should look like https://.supabase.co/storage/v1/s3 @@ -39,46 +41,3 @@ export interface SupabaseBucketPlan { */ path?: string; } - -export namespace SupabaseBucketPlan { - /** - * This is the S3 Region. It should look like us-east-1 - * It should be one of the supabase regions defined in the SUPABASE_REGION enum - * Check https://supabase.com/docs/guides/platform/regions for up to date regions - */ - export type Region = - | "us-west-1" - | "us-east-1" - | "us-east-2" - | "ca-central-1" - | "eu-west-1" - | "eu-west-2" - | "eu-west-3" - | "eu-central-1" - | "eu-central-2" - | "eu-north-1" - | "ap-south-1" - | "ap-southeast-1" - | "ap-northeast-1" - | "ap-northeast-2" - | "ap-southeast-2" - | "sa-east-1"; - export const Region = { - UsWest1: "us-west-1", - UsEast1: "us-east-1", - UsEast2: "us-east-2", - CaCentral1: "ca-central-1", - EuWest1: "eu-west-1", - EuWest2: "eu-west-2", - EuWest3: "eu-west-3", - EuCentral1: "eu-central-1", - EuCentral2: "eu-central-2", - EuNorth1: "eu-north-1", - ApSouth1: "ap-south-1", - ApSoutheast1: "ap-southeast-1", - ApNortheast1: "ap-northeast-1", - ApNortheast2: "ap-northeast-2", - ApSoutheast2: "ap-southeast-2", - SaEast1: "sa-east-1", - } as const; -} diff --git a/src/api/types/SupabaseBucketPlanRegion.ts b/src/api/types/SupabaseBucketPlanRegion.ts new file mode 100644 index 00000000..2e58a719 --- /dev/null +++ b/src/api/types/SupabaseBucketPlanRegion.ts @@ -0,0 +1,44 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the S3 Region. It should look like us-east-1 + * It should be one of the supabase regions defined in the SUPABASE_REGION enum + * Check https://supabase.com/docs/guides/platform/regions for up to date regions + */ +export type SupabaseBucketPlanRegion = + | "us-west-1" + | "us-east-1" + | "us-east-2" + | "ca-central-1" + | "eu-west-1" + | "eu-west-2" + | "eu-west-3" + | "eu-central-1" + | "eu-central-2" + | "eu-north-1" + | "ap-south-1" + | "ap-southeast-1" + | "ap-northeast-1" + | "ap-northeast-2" + | "ap-southeast-2" + | "sa-east-1"; +export const SupabaseBucketPlanRegion = { + UsWest1: "us-west-1", + UsEast1: "us-east-1", + UsEast2: "us-east-2", + CaCentral1: "ca-central-1", + EuWest1: "eu-west-1", + EuWest2: "eu-west-2", + EuWest3: "eu-west-3", + EuCentral1: "eu-central-1", + EuCentral2: "eu-central-2", + EuNorth1: "eu-north-1", + ApSouth1: "ap-south-1", + ApSoutheast1: "ap-southeast-1", + ApNortheast1: "ap-northeast-1", + ApNortheast2: "ap-northeast-2", + ApSoutheast2: "ap-southeast-2", + SaEast1: "sa-east-1", +} as const; diff --git a/src/api/types/SyncVoiceLibraryDto.ts b/src/api/types/SyncVoiceLibraryDto.ts index 1f5d6d59..592ec7a6 100644 --- a/src/api/types/SyncVoiceLibraryDto.ts +++ b/src/api/types/SyncVoiceLibraryDto.ts @@ -2,51 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface SyncVoiceLibraryDto { /** List of providers you want to sync. */ - providers?: SyncVoiceLibraryDto.Providers.Item[]; -} - -export namespace SyncVoiceLibraryDto { - export type Providers = Providers.Item[]; - - export namespace Providers { - export type Item = - | "vapi" - | "11labs" - | "azure" - | "cartesia" - | "custom-voice" - | "deepgram" - | "hume" - | "lmnt" - | "neuphonic" - | "openai" - | "playht" - | "rime-ai" - | "smallest-ai" - | "tavus" - | "sesame" - | "inworld" - | "minimax"; - export const Item = { - Vapi: "vapi", - ElevenLabs: "11labs", - Azure: "azure", - Cartesia: "cartesia", - CustomVoice: "custom-voice", - Deepgram: "deepgram", - Hume: "hume", - Lmnt: "lmnt", - Neuphonic: "neuphonic", - Openai: "openai", - Playht: "playht", - RimeAi: "rime-ai", - SmallestAi: "smallest-ai", - Tavus: "tavus", - Sesame: "sesame", - Inworld: "inworld", - Minimax: "minimax", - } as const; - } + providers?: Vapi.SyncVoiceLibraryDtoProvidersItem[]; } diff --git a/src/api/types/SyncVoiceLibraryDtoProvidersItem.ts b/src/api/types/SyncVoiceLibraryDtoProvidersItem.ts new file mode 100644 index 00000000..d11c8382 --- /dev/null +++ b/src/api/types/SyncVoiceLibraryDtoProvidersItem.ts @@ -0,0 +1,41 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type SyncVoiceLibraryDtoProvidersItem = + | "vapi" + | "11labs" + | "azure" + | "cartesia" + | "custom-voice" + | "deepgram" + | "hume" + | "lmnt" + | "neuphonic" + | "openai" + | "playht" + | "rime-ai" + | "smallest-ai" + | "tavus" + | "sesame" + | "inworld" + | "minimax"; +export const SyncVoiceLibraryDtoProvidersItem = { + Vapi: "vapi", + ElevenLabs: "11labs", + Azure: "azure", + Cartesia: "cartesia", + CustomVoice: "custom-voice", + Deepgram: "deepgram", + Hume: "hume", + Lmnt: "lmnt", + Neuphonic: "neuphonic", + Openai: "openai", + Playht: "playht", + RimeAi: "rime-ai", + SmallestAi: "smallest-ai", + Tavus: "tavus", + Sesame: "sesame", + Inworld: "inworld", + Minimax: "minimax", +} as const; diff --git a/src/api/types/TalkscriberTranscriber.ts b/src/api/types/TalkscriberTranscriber.ts index 4174587d..5b132957 100644 --- a/src/api/types/TalkscriberTranscriber.ts +++ b/src/api/types/TalkscriberTranscriber.ts @@ -10,216 +10,7 @@ export interface TalkscriberTranscriber { /** This is the model that will be used for the transcription. */ model?: "whisper"; /** This is the language that will be set for the transcription. The list of languages Whisper supports can be found here: https://github.com/openai/whisper/blob/main/whisper/tokenizer.py */ - language?: TalkscriberTranscriber.Language; + language?: Vapi.TalkscriberTranscriberLanguage; /** This is the plan for voice provider fallbacks in the event that the primary voice provider fails. */ fallbackPlan?: Vapi.FallbackTranscriberPlan; } - -export namespace TalkscriberTranscriber { - /** - * This is the language that will be set for the transcription. The list of languages Whisper supports can be found here: https://github.com/openai/whisper/blob/main/whisper/tokenizer.py - */ - export type Language = - | "en" - | "zh" - | "de" - | "es" - | "ru" - | "ko" - | "fr" - | "ja" - | "pt" - | "tr" - | "pl" - | "ca" - | "nl" - | "ar" - | "sv" - | "it" - | "id" - | "hi" - | "fi" - | "vi" - | "he" - | "uk" - | "el" - | "ms" - | "cs" - | "ro" - | "da" - | "hu" - | "ta" - | "no" - | "th" - | "ur" - | "hr" - | "bg" - | "lt" - | "la" - | "mi" - | "ml" - | "cy" - | "sk" - | "te" - | "fa" - | "lv" - | "bn" - | "sr" - | "az" - | "sl" - | "kn" - | "et" - | "mk" - | "br" - | "eu" - | "is" - | "hy" - | "ne" - | "mn" - | "bs" - | "kk" - | "sq" - | "sw" - | "gl" - | "mr" - | "pa" - | "si" - | "km" - | "sn" - | "yo" - | "so" - | "af" - | "oc" - | "ka" - | "be" - | "tg" - | "sd" - | "gu" - | "am" - | "yi" - | "lo" - | "uz" - | "fo" - | "ht" - | "ps" - | "tk" - | "nn" - | "mt" - | "sa" - | "lb" - | "my" - | "bo" - | "tl" - | "mg" - | "as" - | "tt" - | "haw" - | "ln" - | "ha" - | "ba" - | "jw" - | "su" - | "yue"; - export const Language = { - En: "en", - Zh: "zh", - De: "de", - Es: "es", - Ru: "ru", - Ko: "ko", - Fr: "fr", - Ja: "ja", - Pt: "pt", - Tr: "tr", - Pl: "pl", - Ca: "ca", - Nl: "nl", - Ar: "ar", - Sv: "sv", - It: "it", - Id: "id", - Hi: "hi", - Fi: "fi", - Vi: "vi", - He: "he", - Uk: "uk", - El: "el", - Ms: "ms", - Cs: "cs", - Ro: "ro", - Da: "da", - Hu: "hu", - Ta: "ta", - No: "no", - Th: "th", - Ur: "ur", - Hr: "hr", - Bg: "bg", - Lt: "lt", - La: "la", - Mi: "mi", - Ml: "ml", - Cy: "cy", - Sk: "sk", - Te: "te", - Fa: "fa", - Lv: "lv", - Bn: "bn", - Sr: "sr", - Az: "az", - Sl: "sl", - Kn: "kn", - Et: "et", - Mk: "mk", - Br: "br", - Eu: "eu", - Is: "is", - Hy: "hy", - Ne: "ne", - Mn: "mn", - Bs: "bs", - Kk: "kk", - Sq: "sq", - Sw: "sw", - Gl: "gl", - Mr: "mr", - Pa: "pa", - Si: "si", - Km: "km", - Sn: "sn", - Yo: "yo", - So: "so", - Af: "af", - Oc: "oc", - Ka: "ka", - Be: "be", - Tg: "tg", - Sd: "sd", - Gu: "gu", - Am: "am", - Yi: "yi", - Lo: "lo", - Uz: "uz", - Fo: "fo", - Ht: "ht", - Ps: "ps", - Tk: "tk", - Nn: "nn", - Mt: "mt", - Sa: "sa", - Lb: "lb", - My: "my", - Bo: "bo", - Tl: "tl", - Mg: "mg", - As: "as", - Tt: "tt", - Haw: "haw", - Ln: "ln", - Ha: "ha", - Ba: "ba", - Jw: "jw", - Su: "su", - Yue: "yue", - } as const; -} diff --git a/src/api/types/TalkscriberTranscriberLanguage.ts b/src/api/types/TalkscriberTranscriberLanguage.ts new file mode 100644 index 00000000..2f06b828 --- /dev/null +++ b/src/api/types/TalkscriberTranscriberLanguage.ts @@ -0,0 +1,210 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the language that will be set for the transcription. The list of languages Whisper supports can be found here: https://github.com/openai/whisper/blob/main/whisper/tokenizer.py + */ +export type TalkscriberTranscriberLanguage = + | "en" + | "zh" + | "de" + | "es" + | "ru" + | "ko" + | "fr" + | "ja" + | "pt" + | "tr" + | "pl" + | "ca" + | "nl" + | "ar" + | "sv" + | "it" + | "id" + | "hi" + | "fi" + | "vi" + | "he" + | "uk" + | "el" + | "ms" + | "cs" + | "ro" + | "da" + | "hu" + | "ta" + | "no" + | "th" + | "ur" + | "hr" + | "bg" + | "lt" + | "la" + | "mi" + | "ml" + | "cy" + | "sk" + | "te" + | "fa" + | "lv" + | "bn" + | "sr" + | "az" + | "sl" + | "kn" + | "et" + | "mk" + | "br" + | "eu" + | "is" + | "hy" + | "ne" + | "mn" + | "bs" + | "kk" + | "sq" + | "sw" + | "gl" + | "mr" + | "pa" + | "si" + | "km" + | "sn" + | "yo" + | "so" + | "af" + | "oc" + | "ka" + | "be" + | "tg" + | "sd" + | "gu" + | "am" + | "yi" + | "lo" + | "uz" + | "fo" + | "ht" + | "ps" + | "tk" + | "nn" + | "mt" + | "sa" + | "lb" + | "my" + | "bo" + | "tl" + | "mg" + | "as" + | "tt" + | "haw" + | "ln" + | "ha" + | "ba" + | "jw" + | "su" + | "yue"; +export const TalkscriberTranscriberLanguage = { + En: "en", + Zh: "zh", + De: "de", + Es: "es", + Ru: "ru", + Ko: "ko", + Fr: "fr", + Ja: "ja", + Pt: "pt", + Tr: "tr", + Pl: "pl", + Ca: "ca", + Nl: "nl", + Ar: "ar", + Sv: "sv", + It: "it", + Id: "id", + Hi: "hi", + Fi: "fi", + Vi: "vi", + He: "he", + Uk: "uk", + El: "el", + Ms: "ms", + Cs: "cs", + Ro: "ro", + Da: "da", + Hu: "hu", + Ta: "ta", + No: "no", + Th: "th", + Ur: "ur", + Hr: "hr", + Bg: "bg", + Lt: "lt", + La: "la", + Mi: "mi", + Ml: "ml", + Cy: "cy", + Sk: "sk", + Te: "te", + Fa: "fa", + Lv: "lv", + Bn: "bn", + Sr: "sr", + Az: "az", + Sl: "sl", + Kn: "kn", + Et: "et", + Mk: "mk", + Br: "br", + Eu: "eu", + Is: "is", + Hy: "hy", + Ne: "ne", + Mn: "mn", + Bs: "bs", + Kk: "kk", + Sq: "sq", + Sw: "sw", + Gl: "gl", + Mr: "mr", + Pa: "pa", + Si: "si", + Km: "km", + Sn: "sn", + Yo: "yo", + So: "so", + Af: "af", + Oc: "oc", + Ka: "ka", + Be: "be", + Tg: "tg", + Sd: "sd", + Gu: "gu", + Am: "am", + Yi: "yi", + Lo: "lo", + Uz: "uz", + Fo: "fo", + Ht: "ht", + Ps: "ps", + Tk: "tk", + Nn: "nn", + Mt: "mt", + Sa: "sa", + Lb: "lb", + My: "my", + Bo: "bo", + Tl: "tl", + Mg: "mg", + As: "as", + Tt: "tt", + Haw: "haw", + Ln: "ln", + Ha: "ha", + Ba: "ba", + Jw: "jw", + Su: "su", + Yue: "yue", +} as const; diff --git a/src/api/types/TavusVoice.ts b/src/api/types/TavusVoice.ts index 5641e6b8..7a344087 100644 --- a/src/api/types/TavusVoice.ts +++ b/src/api/types/TavusVoice.ts @@ -10,7 +10,7 @@ export interface TavusVoice { /** This is the voice provider that will be used. */ provider: "tavus"; /** This is the provider-specific ID that will be used. */ - voiceId: TavusVoice.VoiceId; + voiceId: Vapi.TavusVoiceVoiceId; /** This is the plan for chunking the model output before it is sent to the voice provider. */ chunkPlan?: Vapi.ChunkPlan; /** This is the unique identifier for the persona that the replica will use in the conversation. */ @@ -28,10 +28,3 @@ export interface TavusVoice { /** This is the plan for voice provider fallbacks in the event that the primary voice provider fails. */ fallbackPlan?: Vapi.FallbackPlan; } - -export namespace TavusVoice { - /** - * This is the provider-specific ID that will be used. - */ - export type VoiceId = "r52da2535a" | string; -} diff --git a/src/api/types/TavusVoiceVoiceId.ts b/src/api/types/TavusVoiceVoiceId.ts new file mode 100644 index 00000000..5da498c8 --- /dev/null +++ b/src/api/types/TavusVoiceVoiceId.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the provider-specific ID that will be used. + */ +export type TavusVoiceVoiceId = "r52da2535a" | string; diff --git a/src/api/types/TelnyxPhoneNumber.ts b/src/api/types/TelnyxPhoneNumber.ts index a21f97e7..aff42724 100644 --- a/src/api/types/TelnyxPhoneNumber.ts +++ b/src/api/types/TelnyxPhoneNumber.ts @@ -13,9 +13,9 @@ export interface TelnyxPhoneNumber { * * If this is not set and above conditions are met, the inbound call is hung up with an error message. */ - fallbackDestination?: TelnyxPhoneNumber.FallbackDestination; + fallbackDestination?: Vapi.TelnyxPhoneNumberFallbackDestination; /** This is the hooks that will be used for incoming calls to this phone number. */ - hooks?: TelnyxPhoneNumber.Hooks.Item[]; + hooks?: Vapi.TelnyxPhoneNumberHooksItem[]; provider: "telnyx"; /** This is the unique identifier for the phone number. */ id: string; @@ -26,7 +26,7 @@ export interface TelnyxPhoneNumber { /** This is the ISO 8601 date-time string of when the phone number was last updated. */ updatedAt: string; /** This is the status of the phone number. */ - status?: TelnyxPhoneNumber.Status; + status?: Vapi.TelnyxPhoneNumberStatus; /** This is the name of the phone number. This is just for your own reference. */ name?: string; /** @@ -62,30 +62,3 @@ export interface TelnyxPhoneNumber { /** This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups. */ credentialId: string; } - -export namespace TelnyxPhoneNumber { - /** - * This is the fallback destination an inbound call will be transferred to if: - * 1. `assistantId` is not set - * 2. `squadId` is not set - * 3. and, `assistant-request` message to the `serverUrl` fails - * - * If this is not set and above conditions are met, the inbound call is hung up with an error message. - */ - export type FallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; - export type Hooks = Hooks.Item[]; - - export namespace Hooks { - export type Item = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; - } - - /** - * This is the status of the phone number. - */ - export type Status = "active" | "activating" | "blocked"; - export const Status = { - Active: "active", - Activating: "activating", - Blocked: "blocked", - } as const; -} diff --git a/src/api/types/TelnyxPhoneNumberFallbackDestination.ts b/src/api/types/TelnyxPhoneNumberFallbackDestination.ts new file mode 100644 index 00000000..5f5d89b8 --- /dev/null +++ b/src/api/types/TelnyxPhoneNumberFallbackDestination.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the fallback destination an inbound call will be transferred to if: + * 1. `assistantId` is not set + * 2. `squadId` is not set + * 3. and, `assistant-request` message to the `serverUrl` fails + * + * If this is not set and above conditions are met, the inbound call is hung up with an error message. + */ +export type TelnyxPhoneNumberFallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; diff --git a/src/api/types/TelnyxPhoneNumberHooksItem.ts b/src/api/types/TelnyxPhoneNumberHooksItem.ts new file mode 100644 index 00000000..40e1ea7d --- /dev/null +++ b/src/api/types/TelnyxPhoneNumberHooksItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type TelnyxPhoneNumberHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; diff --git a/src/api/types/TelnyxPhoneNumberStatus.ts b/src/api/types/TelnyxPhoneNumberStatus.ts new file mode 100644 index 00000000..e4c3a5b7 --- /dev/null +++ b/src/api/types/TelnyxPhoneNumberStatus.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the status of the phone number. + */ +export type TelnyxPhoneNumberStatus = "active" | "activating" | "blocked"; +export const TelnyxPhoneNumberStatus = { + Active: "active", + Activating: "activating", + Blocked: "blocked", +} as const; diff --git a/src/api/types/Template.ts b/src/api/types/Template.ts index c0e13064..a1df915c 100644 --- a/src/api/types/Template.ts +++ b/src/api/types/Template.ts @@ -5,14 +5,14 @@ import * as Vapi from "../index.js"; export interface Template { - details?: Template.Details; - providerDetails?: Template.ProviderDetails; + details?: Vapi.TemplateDetails; + providerDetails?: Vapi.TemplateProviderDetails; metadata?: Vapi.ToolTemplateMetadata; - visibility?: Template.Visibility; + visibility?: Vapi.TemplateVisibility; type: "tool"; /** The name of the template. This is just for your own reference. */ name?: string; - provider?: Template.Provider; + provider?: Vapi.TemplateProvider; /** The unique identifier for the template. */ id: string; /** The unique identifier for the organization that this template belongs to. */ @@ -22,48 +22,3 @@ export interface Template { /** The ISO 8601 date-time string of when the template was last updated. */ updatedAt: string; } - -export namespace Template { - export type Details = - | Vapi.CreateApiRequestToolDto - | Vapi.CreateBashToolDto - | Vapi.CreateComputerToolDto - | Vapi.CreateDtmfToolDto - | Vapi.CreateEndCallToolDto - | Vapi.CreateFunctionToolDto - | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto - | Vapi.CreateGoHighLevelCalendarEventCreateToolDto - | Vapi.CreateGoHighLevelContactCreateToolDto - | Vapi.CreateGoHighLevelContactGetToolDto - | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto - | Vapi.CreateGoogleCalendarCreateEventToolDto - | Vapi.CreateGoogleSheetsRowAppendToolDto - | Vapi.CreateHandoffToolDto - | Vapi.CreateMcpToolDto - | Vapi.CreateQueryToolDto - | Vapi.CreateSlackSendMessageToolDto - | Vapi.CreateSmsToolDto - | Vapi.CreateTextEditorToolDto - | Vapi.CreateTransferCallToolDto; - export type ProviderDetails = - | Vapi.MakeToolProviderDetails - | Vapi.GhlToolProviderDetails - | Vapi.FunctionToolProviderDetails - | Vapi.GoogleCalendarCreateEventToolProviderDetails - | Vapi.GoogleSheetsRowAppendToolProviderDetails - | Vapi.GoHighLevelCalendarAvailabilityToolProviderDetails - | Vapi.GoHighLevelCalendarEventCreateToolProviderDetails - | Vapi.GoHighLevelContactCreateToolProviderDetails - | Vapi.GoHighLevelContactGetToolProviderDetails; - export type Visibility = "public" | "private"; - export const Visibility = { - Public: "public", - Private: "private", - } as const; - export type Provider = "make" | "gohighlevel" | "function"; - export const Provider = { - Make: "make", - Gohighlevel: "gohighlevel", - Function: "function", - } as const; -} diff --git a/src/api/types/TemplateDetails.ts b/src/api/types/TemplateDetails.ts new file mode 100644 index 00000000..0c0b832d --- /dev/null +++ b/src/api/types/TemplateDetails.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type TemplateDetails = + | Vapi.CreateApiRequestToolDto + | Vapi.CreateBashToolDto + | Vapi.CreateComputerToolDto + | Vapi.CreateDtmfToolDto + | Vapi.CreateEndCallToolDto + | Vapi.CreateFunctionToolDto + | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto + | Vapi.CreateGoHighLevelCalendarEventCreateToolDto + | Vapi.CreateGoHighLevelContactCreateToolDto + | Vapi.CreateGoHighLevelContactGetToolDto + | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto + | Vapi.CreateGoogleCalendarCreateEventToolDto + | Vapi.CreateGoogleSheetsRowAppendToolDto + | Vapi.CreateHandoffToolDto + | Vapi.CreateMcpToolDto + | Vapi.CreateQueryToolDto + | Vapi.CreateSlackSendMessageToolDto + | Vapi.CreateSmsToolDto + | Vapi.CreateTextEditorToolDto + | Vapi.CreateTransferCallToolDto; diff --git a/src/api/types/TemplateProvider.ts b/src/api/types/TemplateProvider.ts new file mode 100644 index 00000000..17844c7f --- /dev/null +++ b/src/api/types/TemplateProvider.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type TemplateProvider = "make" | "gohighlevel" | "function"; +export const TemplateProvider = { + Make: "make", + Gohighlevel: "gohighlevel", + Function: "function", +} as const; diff --git a/src/api/types/TemplateProviderDetails.ts b/src/api/types/TemplateProviderDetails.ts new file mode 100644 index 00000000..2c3b9ec2 --- /dev/null +++ b/src/api/types/TemplateProviderDetails.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type TemplateProviderDetails = + | Vapi.MakeToolProviderDetails + | Vapi.GhlToolProviderDetails + | Vapi.FunctionToolProviderDetails + | Vapi.GoogleCalendarCreateEventToolProviderDetails + | Vapi.GoogleSheetsRowAppendToolProviderDetails + | Vapi.GoHighLevelCalendarAvailabilityToolProviderDetails + | Vapi.GoHighLevelCalendarEventCreateToolProviderDetails + | Vapi.GoHighLevelContactCreateToolProviderDetails + | Vapi.GoHighLevelContactGetToolProviderDetails; diff --git a/src/api/types/TemplateVisibility.ts b/src/api/types/TemplateVisibility.ts new file mode 100644 index 00000000..b21b5ad0 --- /dev/null +++ b/src/api/types/TemplateVisibility.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type TemplateVisibility = "public" | "private"; +export const TemplateVisibility = { + Public: "public", + Private: "private", +} as const; diff --git a/src/api/types/TestSuiteRun.ts b/src/api/types/TestSuiteRun.ts index 44030045..c24610b3 100644 --- a/src/api/types/TestSuiteRun.ts +++ b/src/api/types/TestSuiteRun.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface TestSuiteRun { /** This is the current status of the test suite run. */ - status: TestSuiteRun.Status; + status: Vapi.TestSuiteRunStatus; /** This is the unique identifier for the test suite run. */ id: string; /** This is the unique identifier for the organization this run belongs to. */ @@ -22,16 +22,3 @@ export interface TestSuiteRun { /** This is the name of the test suite run. */ name?: string; } - -export namespace TestSuiteRun { - /** - * This is the current status of the test suite run. - */ - export type Status = "queued" | "in-progress" | "completed" | "failed"; - export const Status = { - Queued: "queued", - InProgress: "in-progress", - Completed: "completed", - Failed: "failed", - } as const; -} diff --git a/src/api/types/TestSuiteRunScorerAi.ts b/src/api/types/TestSuiteRunScorerAi.ts index 65d4c4fb..3299e5a0 100644 --- a/src/api/types/TestSuiteRunScorerAi.ts +++ b/src/api/types/TestSuiteRunScorerAi.ts @@ -2,24 +2,15 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface TestSuiteRunScorerAi { /** This is the type of the scorer, which must be AI. */ type: "ai"; /** This is the result of the test suite. */ - result: TestSuiteRunScorerAi.Result; + result: Vapi.TestSuiteRunScorerAiResult; /** This is the reasoning provided by the AI scorer. */ reasoning: string; /** This is the rubric used by the AI scorer. */ rubric: string; } - -export namespace TestSuiteRunScorerAi { - /** - * This is the result of the test suite. - */ - export type Result = "pass" | "fail"; - export const Result = { - Pass: "pass", - Fail: "fail", - } as const; -} diff --git a/src/api/types/TestSuiteRunScorerAiResult.ts b/src/api/types/TestSuiteRunScorerAiResult.ts new file mode 100644 index 00000000..4705489d --- /dev/null +++ b/src/api/types/TestSuiteRunScorerAiResult.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the result of the test suite. + */ +export type TestSuiteRunScorerAiResult = "pass" | "fail"; +export const TestSuiteRunScorerAiResult = { + Pass: "pass", + Fail: "fail", +} as const; diff --git a/src/api/types/TestSuiteRunStatus.ts b/src/api/types/TestSuiteRunStatus.ts new file mode 100644 index 00000000..d647ca85 --- /dev/null +++ b/src/api/types/TestSuiteRunStatus.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the current status of the test suite run. + */ +export type TestSuiteRunStatus = "queued" | "in-progress" | "completed" | "failed"; +export const TestSuiteRunStatus = { + Queued: "queued", + InProgress: "in-progress", + Completed: "completed", + Failed: "failed", +} as const; diff --git a/src/api/types/TestSuiteTestsPaginatedResponse.ts b/src/api/types/TestSuiteTestsPaginatedResponse.ts index 8804436a..840cee23 100644 --- a/src/api/types/TestSuiteTestsPaginatedResponse.ts +++ b/src/api/types/TestSuiteTestsPaginatedResponse.ts @@ -6,15 +6,7 @@ import * as Vapi from "../index.js"; export interface TestSuiteTestsPaginatedResponse { /** A list of test suite tests. */ - results: TestSuiteTestsPaginatedResponse.Results.Item[]; + results: Vapi.TestSuiteTestsPaginatedResponseResultsItem[]; /** Metadata about the pagination. */ metadata: Vapi.PaginationMeta; } - -export namespace TestSuiteTestsPaginatedResponse { - export type Results = Results.Item[]; - - export namespace Results { - export type Item = Vapi.TestSuiteTestVoice | Vapi.TestSuiteTestChat; - } -} diff --git a/src/api/types/TestSuiteTestsPaginatedResponseResultsItem.ts b/src/api/types/TestSuiteTestsPaginatedResponseResultsItem.ts new file mode 100644 index 00000000..1b2bf77d --- /dev/null +++ b/src/api/types/TestSuiteTestsPaginatedResponseResultsItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type TestSuiteTestsPaginatedResponseResultsItem = Vapi.TestSuiteTestVoice | Vapi.TestSuiteTestChat; diff --git a/src/api/types/TextContent.ts b/src/api/types/TextContent.ts index 545b39b6..d6dd0498 100644 --- a/src/api/types/TextContent.ts +++ b/src/api/types/TextContent.ts @@ -2,384 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface TextContent { type: "text"; text: string; - language: TextContent.Language; -} - -export namespace TextContent { - export type Language = - | "aa" - | "ab" - | "ae" - | "af" - | "ak" - | "am" - | "an" - | "ar" - | "as" - | "av" - | "ay" - | "az" - | "ba" - | "be" - | "bg" - | "bh" - | "bi" - | "bm" - | "bn" - | "bo" - | "br" - | "bs" - | "ca" - | "ce" - | "ch" - | "co" - | "cr" - | "cs" - | "cu" - | "cv" - | "cy" - | "da" - | "de" - | "dv" - | "dz" - | "ee" - | "el" - | "en" - | "eo" - | "es" - | "et" - | "eu" - | "fa" - | "ff" - | "fi" - | "fj" - | "fo" - | "fr" - | "fy" - | "ga" - | "gd" - | "gl" - | "gn" - | "gu" - | "gv" - | "ha" - | "he" - | "hi" - | "ho" - | "hr" - | "ht" - | "hu" - | "hy" - | "hz" - | "ia" - | "id" - | "ie" - | "ig" - | "ii" - | "ik" - | "io" - | "is" - | "it" - | "iu" - | "ja" - | "jv" - | "ka" - | "kg" - | "ki" - | "kj" - | "kk" - | "kl" - | "km" - | "kn" - | "ko" - | "kr" - | "ks" - | "ku" - | "kv" - | "kw" - | "ky" - | "la" - | "lb" - | "lg" - | "li" - | "ln" - | "lo" - | "lt" - | "lu" - | "lv" - | "mg" - | "mh" - | "mi" - | "mk" - | "ml" - | "mn" - | "mr" - | "ms" - | "mt" - | "my" - | "na" - | "nb" - | "nd" - | "ne" - | "ng" - | "nl" - | "nn" - | "no" - | "nr" - | "nv" - | "ny" - | "oc" - | "oj" - | "om" - | "or" - | "os" - | "pa" - | "pi" - | "pl" - | "ps" - | "pt" - | "qu" - | "rm" - | "rn" - | "ro" - | "ru" - | "rw" - | "sa" - | "sc" - | "sd" - | "se" - | "sg" - | "si" - | "sk" - | "sl" - | "sm" - | "sn" - | "so" - | "sq" - | "sr" - | "ss" - | "st" - | "su" - | "sv" - | "sw" - | "ta" - | "te" - | "tg" - | "th" - | "ti" - | "tk" - | "tl" - | "tn" - | "to" - | "tr" - | "ts" - | "tt" - | "tw" - | "ty" - | "ug" - | "uk" - | "ur" - | "uz" - | "ve" - | "vi" - | "vo" - | "wa" - | "wo" - | "xh" - | "yi" - | "yue" - | "yo" - | "za" - | "zh" - | "zu"; - export const Language = { - Aa: "aa", - Ab: "ab", - Ae: "ae", - Af: "af", - Ak: "ak", - Am: "am", - An: "an", - Ar: "ar", - As: "as", - Av: "av", - Ay: "ay", - Az: "az", - Ba: "ba", - Be: "be", - Bg: "bg", - Bh: "bh", - Bi: "bi", - Bm: "bm", - Bn: "bn", - Bo: "bo", - Br: "br", - Bs: "bs", - Ca: "ca", - Ce: "ce", - Ch: "ch", - Co: "co", - Cr: "cr", - Cs: "cs", - Cu: "cu", - Cv: "cv", - Cy: "cy", - Da: "da", - De: "de", - Dv: "dv", - Dz: "dz", - Ee: "ee", - El: "el", - En: "en", - Eo: "eo", - Es: "es", - Et: "et", - Eu: "eu", - Fa: "fa", - Ff: "ff", - Fi: "fi", - Fj: "fj", - Fo: "fo", - Fr: "fr", - Fy: "fy", - Ga: "ga", - Gd: "gd", - Gl: "gl", - Gn: "gn", - Gu: "gu", - Gv: "gv", - Ha: "ha", - He: "he", - Hi: "hi", - Ho: "ho", - Hr: "hr", - Ht: "ht", - Hu: "hu", - Hy: "hy", - Hz: "hz", - Ia: "ia", - Id: "id", - Ie: "ie", - Ig: "ig", - Ii: "ii", - Ik: "ik", - Io: "io", - Is: "is", - It: "it", - Iu: "iu", - Ja: "ja", - Jv: "jv", - Ka: "ka", - Kg: "kg", - Ki: "ki", - Kj: "kj", - Kk: "kk", - Kl: "kl", - Km: "km", - Kn: "kn", - Ko: "ko", - Kr: "kr", - Ks: "ks", - Ku: "ku", - Kv: "kv", - Kw: "kw", - Ky: "ky", - La: "la", - Lb: "lb", - Lg: "lg", - Li: "li", - Ln: "ln", - Lo: "lo", - Lt: "lt", - Lu: "lu", - Lv: "lv", - Mg: "mg", - Mh: "mh", - Mi: "mi", - Mk: "mk", - Ml: "ml", - Mn: "mn", - Mr: "mr", - Ms: "ms", - Mt: "mt", - My: "my", - Na: "na", - Nb: "nb", - Nd: "nd", - Ne: "ne", - Ng: "ng", - Nl: "nl", - Nn: "nn", - No: "no", - Nr: "nr", - Nv: "nv", - Ny: "ny", - Oc: "oc", - Oj: "oj", - Om: "om", - Or: "or", - Os: "os", - Pa: "pa", - Pi: "pi", - Pl: "pl", - Ps: "ps", - Pt: "pt", - Qu: "qu", - Rm: "rm", - Rn: "rn", - Ro: "ro", - Ru: "ru", - Rw: "rw", - Sa: "sa", - Sc: "sc", - Sd: "sd", - Se: "se", - Sg: "sg", - Si: "si", - Sk: "sk", - Sl: "sl", - Sm: "sm", - Sn: "sn", - So: "so", - Sq: "sq", - Sr: "sr", - Ss: "ss", - St: "st", - Su: "su", - Sv: "sv", - Sw: "sw", - Ta: "ta", - Te: "te", - Tg: "tg", - Th: "th", - Ti: "ti", - Tk: "tk", - Tl: "tl", - Tn: "tn", - To: "to", - Tr: "tr", - Ts: "ts", - Tt: "tt", - Tw: "tw", - Ty: "ty", - Ug: "ug", - Uk: "uk", - Ur: "ur", - Uz: "uz", - Ve: "ve", - Vi: "vi", - Vo: "vo", - Wa: "wa", - Wo: "wo", - Xh: "xh", - Yi: "yi", - Yue: "yue", - Yo: "yo", - Za: "za", - Zh: "zh", - Zu: "zu", - } as const; + language: Vapi.TextContentLanguage; } diff --git a/src/api/types/TextContentLanguage.ts b/src/api/types/TextContentLanguage.ts new file mode 100644 index 00000000..fde9d23a --- /dev/null +++ b/src/api/types/TextContentLanguage.ts @@ -0,0 +1,377 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type TextContentLanguage = + | "aa" + | "ab" + | "ae" + | "af" + | "ak" + | "am" + | "an" + | "ar" + | "as" + | "av" + | "ay" + | "az" + | "ba" + | "be" + | "bg" + | "bh" + | "bi" + | "bm" + | "bn" + | "bo" + | "br" + | "bs" + | "ca" + | "ce" + | "ch" + | "co" + | "cr" + | "cs" + | "cu" + | "cv" + | "cy" + | "da" + | "de" + | "dv" + | "dz" + | "ee" + | "el" + | "en" + | "eo" + | "es" + | "et" + | "eu" + | "fa" + | "ff" + | "fi" + | "fj" + | "fo" + | "fr" + | "fy" + | "ga" + | "gd" + | "gl" + | "gn" + | "gu" + | "gv" + | "ha" + | "he" + | "hi" + | "ho" + | "hr" + | "ht" + | "hu" + | "hy" + | "hz" + | "ia" + | "id" + | "ie" + | "ig" + | "ii" + | "ik" + | "io" + | "is" + | "it" + | "iu" + | "ja" + | "jv" + | "ka" + | "kg" + | "ki" + | "kj" + | "kk" + | "kl" + | "km" + | "kn" + | "ko" + | "kr" + | "ks" + | "ku" + | "kv" + | "kw" + | "ky" + | "la" + | "lb" + | "lg" + | "li" + | "ln" + | "lo" + | "lt" + | "lu" + | "lv" + | "mg" + | "mh" + | "mi" + | "mk" + | "ml" + | "mn" + | "mr" + | "ms" + | "mt" + | "my" + | "na" + | "nb" + | "nd" + | "ne" + | "ng" + | "nl" + | "nn" + | "no" + | "nr" + | "nv" + | "ny" + | "oc" + | "oj" + | "om" + | "or" + | "os" + | "pa" + | "pi" + | "pl" + | "ps" + | "pt" + | "qu" + | "rm" + | "rn" + | "ro" + | "ru" + | "rw" + | "sa" + | "sc" + | "sd" + | "se" + | "sg" + | "si" + | "sk" + | "sl" + | "sm" + | "sn" + | "so" + | "sq" + | "sr" + | "ss" + | "st" + | "su" + | "sv" + | "sw" + | "ta" + | "te" + | "tg" + | "th" + | "ti" + | "tk" + | "tl" + | "tn" + | "to" + | "tr" + | "ts" + | "tt" + | "tw" + | "ty" + | "ug" + | "uk" + | "ur" + | "uz" + | "ve" + | "vi" + | "vo" + | "wa" + | "wo" + | "xh" + | "yi" + | "yue" + | "yo" + | "za" + | "zh" + | "zu"; +export const TextContentLanguage = { + Aa: "aa", + Ab: "ab", + Ae: "ae", + Af: "af", + Ak: "ak", + Am: "am", + An: "an", + Ar: "ar", + As: "as", + Av: "av", + Ay: "ay", + Az: "az", + Ba: "ba", + Be: "be", + Bg: "bg", + Bh: "bh", + Bi: "bi", + Bm: "bm", + Bn: "bn", + Bo: "bo", + Br: "br", + Bs: "bs", + Ca: "ca", + Ce: "ce", + Ch: "ch", + Co: "co", + Cr: "cr", + Cs: "cs", + Cu: "cu", + Cv: "cv", + Cy: "cy", + Da: "da", + De: "de", + Dv: "dv", + Dz: "dz", + Ee: "ee", + El: "el", + En: "en", + Eo: "eo", + Es: "es", + Et: "et", + Eu: "eu", + Fa: "fa", + Ff: "ff", + Fi: "fi", + Fj: "fj", + Fo: "fo", + Fr: "fr", + Fy: "fy", + Ga: "ga", + Gd: "gd", + Gl: "gl", + Gn: "gn", + Gu: "gu", + Gv: "gv", + Ha: "ha", + He: "he", + Hi: "hi", + Ho: "ho", + Hr: "hr", + Ht: "ht", + Hu: "hu", + Hy: "hy", + Hz: "hz", + Ia: "ia", + Id: "id", + Ie: "ie", + Ig: "ig", + Ii: "ii", + Ik: "ik", + Io: "io", + Is: "is", + It: "it", + Iu: "iu", + Ja: "ja", + Jv: "jv", + Ka: "ka", + Kg: "kg", + Ki: "ki", + Kj: "kj", + Kk: "kk", + Kl: "kl", + Km: "km", + Kn: "kn", + Ko: "ko", + Kr: "kr", + Ks: "ks", + Ku: "ku", + Kv: "kv", + Kw: "kw", + Ky: "ky", + La: "la", + Lb: "lb", + Lg: "lg", + Li: "li", + Ln: "ln", + Lo: "lo", + Lt: "lt", + Lu: "lu", + Lv: "lv", + Mg: "mg", + Mh: "mh", + Mi: "mi", + Mk: "mk", + Ml: "ml", + Mn: "mn", + Mr: "mr", + Ms: "ms", + Mt: "mt", + My: "my", + Na: "na", + Nb: "nb", + Nd: "nd", + Ne: "ne", + Ng: "ng", + Nl: "nl", + Nn: "nn", + No: "no", + Nr: "nr", + Nv: "nv", + Ny: "ny", + Oc: "oc", + Oj: "oj", + Om: "om", + Or: "or", + Os: "os", + Pa: "pa", + Pi: "pi", + Pl: "pl", + Ps: "ps", + Pt: "pt", + Qu: "qu", + Rm: "rm", + Rn: "rn", + Ro: "ro", + Ru: "ru", + Rw: "rw", + Sa: "sa", + Sc: "sc", + Sd: "sd", + Se: "se", + Sg: "sg", + Si: "si", + Sk: "sk", + Sl: "sl", + Sm: "sm", + Sn: "sn", + So: "so", + Sq: "sq", + Sr: "sr", + Ss: "ss", + St: "st", + Su: "su", + Sv: "sv", + Sw: "sw", + Ta: "ta", + Te: "te", + Tg: "tg", + Th: "th", + Ti: "ti", + Tk: "tk", + Tl: "tl", + Tn: "tn", + To: "to", + Tr: "tr", + Ts: "ts", + Tt: "tt", + Tw: "tw", + Ty: "ty", + Ug: "ug", + Uk: "uk", + Ur: "ur", + Uz: "uz", + Ve: "ve", + Vi: "vi", + Vo: "vo", + Wa: "wa", + Wo: "wo", + Xh: "xh", + Yi: "yi", + Yue: "yue", + Yo: "yo", + Za: "za", + Zh: "zh", + Zu: "zu", +} as const; diff --git a/src/api/types/TextEditorTool.ts b/src/api/types/TextEditorTool.ts index 9c882f20..c2f1e519 100644 --- a/src/api/types/TextEditorTool.ts +++ b/src/api/types/TextEditorTool.ts @@ -10,7 +10,7 @@ export interface TextEditorTool { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: TextEditorTool.Messages.Item[]; + messages?: Vapi.TextEditorToolMessagesItem[]; type: "textEditor"; /** The sub type of tool. */ subType: "text_editor_20241022"; @@ -117,15 +117,3 @@ export interface TextEditorTool { /** The name of the tool, fixed to 'str_replace_editor' */ name: "str_replace_editor"; } - -export namespace TextEditorTool { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/TextEditorToolMessagesItem.ts b/src/api/types/TextEditorToolMessagesItem.ts new file mode 100644 index 00000000..9feb8364 --- /dev/null +++ b/src/api/types/TextEditorToolMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type TextEditorToolMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/TextEditorToolWithToolCall.ts b/src/api/types/TextEditorToolWithToolCall.ts index 456ac1c3..5e111e59 100644 --- a/src/api/types/TextEditorToolWithToolCall.ts +++ b/src/api/types/TextEditorToolWithToolCall.ts @@ -10,7 +10,7 @@ export interface TextEditorToolWithToolCall { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: TextEditorToolWithToolCall.Messages.Item[]; + messages?: Vapi.TextEditorToolWithToolCallMessagesItem[]; /** The type of tool. "textEditor" for Text Editor tool. */ type: "textEditor"; /** The sub type of tool. */ @@ -111,15 +111,3 @@ export interface TextEditorToolWithToolCall { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace TextEditorToolWithToolCall { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/TextEditorToolWithToolCallMessagesItem.ts b/src/api/types/TextEditorToolWithToolCallMessagesItem.ts new file mode 100644 index 00000000..219da19f --- /dev/null +++ b/src/api/types/TextEditorToolWithToolCallMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type TextEditorToolWithToolCallMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/TimeRange.ts b/src/api/types/TimeRange.ts index e49f029d..b7fdd0ce 100644 --- a/src/api/types/TimeRange.ts +++ b/src/api/types/TimeRange.ts @@ -2,13 +2,15 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface TimeRange { /** * This is the time step for aggregations. * * If not provided, defaults to returning for the entire time range. */ - step?: TimeRange.Step; + step?: Vapi.TimeRangeStep; /** * This is the start date for the time range. * @@ -28,36 +30,3 @@ export interface TimeRange { */ timezone?: string; } - -export namespace TimeRange { - /** - * This is the time step for aggregations. - * - * If not provided, defaults to returning for the entire time range. - */ - export type Step = - | "second" - | "minute" - | "hour" - | "day" - | "week" - | "month" - | "quarter" - | "year" - | "decade" - | "century" - | "millennium"; - export const Step = { - Second: "second", - Minute: "minute", - Hour: "hour", - Day: "day", - Week: "week", - Month: "month", - Quarter: "quarter", - Year: "year", - Decade: "decade", - Century: "century", - Millennium: "millennium", - } as const; -} diff --git a/src/api/types/TimeRangeStep.ts b/src/api/types/TimeRangeStep.ts new file mode 100644 index 00000000..c9be7e5c --- /dev/null +++ b/src/api/types/TimeRangeStep.ts @@ -0,0 +1,34 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the time step for aggregations. + * + * If not provided, defaults to returning for the entire time range. + */ +export type TimeRangeStep = + | "second" + | "minute" + | "hour" + | "day" + | "week" + | "month" + | "quarter" + | "year" + | "decade" + | "century" + | "millennium"; +export const TimeRangeStep = { + Second: "second", + Minute: "minute", + Hour: "hour", + Day: "day", + Week: "week", + Month: "month", + Quarter: "quarter", + Year: "year", + Decade: "decade", + Century: "century", + Millennium: "millennium", +} as const; diff --git a/src/api/types/TogetherAiModel.ts b/src/api/types/TogetherAiModel.ts index d8f158be..4e9bf23a 100644 --- a/src/api/types/TogetherAiModel.ts +++ b/src/api/types/TogetherAiModel.ts @@ -12,7 +12,7 @@ export interface TogetherAiModel { * * Both `tools` and `toolIds` can be used together. */ - tools?: TogetherAiModel.Tools.Item[]; + tools?: Vapi.TogetherAiModelToolsItem[]; /** * These are the tools that the assistant can use during the call. To use transient tools, use `tools`. * @@ -45,31 +45,3 @@ export interface TogetherAiModel { */ numFastTurns?: number; } - -export namespace TogetherAiModel { - export type Tools = Tools.Item[]; - - export namespace Tools { - export type Item = - | Vapi.CreateApiRequestToolDto - | Vapi.CreateBashToolDto - | Vapi.CreateComputerToolDto - | Vapi.CreateDtmfToolDto - | Vapi.CreateEndCallToolDto - | Vapi.CreateFunctionToolDto - | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto - | Vapi.CreateGoHighLevelCalendarEventCreateToolDto - | Vapi.CreateGoHighLevelContactCreateToolDto - | Vapi.CreateGoHighLevelContactGetToolDto - | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto - | Vapi.CreateGoogleCalendarCreateEventToolDto - | Vapi.CreateGoogleSheetsRowAppendToolDto - | Vapi.CreateHandoffToolDto - | Vapi.CreateMcpToolDto - | Vapi.CreateQueryToolDto - | Vapi.CreateSlackSendMessageToolDto - | Vapi.CreateSmsToolDto - | Vapi.CreateTextEditorToolDto - | Vapi.CreateTransferCallToolDto; - } -} diff --git a/src/api/types/TogetherAiModelToolsItem.ts b/src/api/types/TogetherAiModelToolsItem.ts new file mode 100644 index 00000000..3dfff10c --- /dev/null +++ b/src/api/types/TogetherAiModelToolsItem.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type TogetherAiModelToolsItem = + | Vapi.CreateApiRequestToolDto + | Vapi.CreateBashToolDto + | Vapi.CreateComputerToolDto + | Vapi.CreateDtmfToolDto + | Vapi.CreateEndCallToolDto + | Vapi.CreateFunctionToolDto + | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto + | Vapi.CreateGoHighLevelCalendarEventCreateToolDto + | Vapi.CreateGoHighLevelContactCreateToolDto + | Vapi.CreateGoHighLevelContactGetToolDto + | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto + | Vapi.CreateGoogleCalendarCreateEventToolDto + | Vapi.CreateGoogleSheetsRowAppendToolDto + | Vapi.CreateHandoffToolDto + | Vapi.CreateMcpToolDto + | Vapi.CreateQueryToolDto + | Vapi.CreateSlackSendMessageToolDto + | Vapi.CreateSmsToolDto + | Vapi.CreateTextEditorToolDto + | Vapi.CreateTransferCallToolDto; diff --git a/src/api/types/Token.ts b/src/api/types/Token.ts index aad3f824..ee6c9684 100644 --- a/src/api/types/Token.ts +++ b/src/api/types/Token.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface Token { /** This is the tag for the token. It represents its scope. */ - tag?: Token.Tag; + tag?: Vapi.TokenTag; /** This is the unique identifier for the token. */ id: string; /** This is unique identifier for the org that this token belongs to. */ @@ -22,14 +22,3 @@ export interface Token { /** This are the restrictions for the token. */ restrictions?: Vapi.TokenRestrictions; } - -export namespace Token { - /** - * This is the tag for the token. It represents its scope. - */ - export type Tag = "private" | "public"; - export const Tag = { - Private: "private", - Public: "public", - } as const; -} diff --git a/src/api/types/TokenTag.ts b/src/api/types/TokenTag.ts new file mode 100644 index 00000000..96ca53f2 --- /dev/null +++ b/src/api/types/TokenTag.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the tag for the token. It represents its scope. + */ +export type TokenTag = "private" | "public"; +export const TokenTag = { + Private: "private", + Public: "public", +} as const; diff --git a/src/api/types/ToolCallHookAction.ts b/src/api/types/ToolCallHookAction.ts index f84688b7..d1a360c1 100644 --- a/src/api/types/ToolCallHookAction.ts +++ b/src/api/types/ToolCallHookAction.ts @@ -8,34 +8,7 @@ export interface ToolCallHookAction { /** This is the type of action - must be "tool" */ type: "tool"; /** This is the tool to call. To use an existing tool, send `toolId` instead. */ - tool?: ToolCallHookAction.Tool; + tool?: Vapi.ToolCallHookActionTool; /** This is the tool to call. To use a transient tool, send `tool` instead. */ toolId?: string; } - -export namespace ToolCallHookAction { - /** - * This is the tool to call. To use an existing tool, send `toolId` instead. - */ - export type Tool = - | Vapi.CreateApiRequestToolDto - | Vapi.CreateBashToolDto - | Vapi.CreateComputerToolDto - | Vapi.CreateDtmfToolDto - | Vapi.CreateEndCallToolDto - | Vapi.CreateFunctionToolDto - | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto - | Vapi.CreateGoHighLevelCalendarEventCreateToolDto - | Vapi.CreateGoHighLevelContactCreateToolDto - | Vapi.CreateGoHighLevelContactGetToolDto - | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto - | Vapi.CreateGoogleCalendarCreateEventToolDto - | Vapi.CreateGoogleSheetsRowAppendToolDto - | Vapi.CreateHandoffToolDto - | Vapi.CreateMcpToolDto - | Vapi.CreateQueryToolDto - | Vapi.CreateSlackSendMessageToolDto - | Vapi.CreateSmsToolDto - | Vapi.CreateTextEditorToolDto - | Vapi.CreateTransferCallToolDto; -} diff --git a/src/api/types/ToolCallHookActionTool.ts b/src/api/types/ToolCallHookActionTool.ts new file mode 100644 index 00000000..3aefd667 --- /dev/null +++ b/src/api/types/ToolCallHookActionTool.ts @@ -0,0 +1,30 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the tool to call. To use an existing tool, send `toolId` instead. + */ +export type ToolCallHookActionTool = + | Vapi.CreateApiRequestToolDto + | Vapi.CreateBashToolDto + | Vapi.CreateComputerToolDto + | Vapi.CreateDtmfToolDto + | Vapi.CreateEndCallToolDto + | Vapi.CreateFunctionToolDto + | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto + | Vapi.CreateGoHighLevelCalendarEventCreateToolDto + | Vapi.CreateGoHighLevelContactCreateToolDto + | Vapi.CreateGoHighLevelContactGetToolDto + | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto + | Vapi.CreateGoogleCalendarCreateEventToolDto + | Vapi.CreateGoogleSheetsRowAppendToolDto + | Vapi.CreateHandoffToolDto + | Vapi.CreateMcpToolDto + | Vapi.CreateQueryToolDto + | Vapi.CreateSlackSendMessageToolDto + | Vapi.CreateSmsToolDto + | Vapi.CreateTextEditorToolDto + | Vapi.CreateTransferCallToolDto; diff --git a/src/api/types/ToolMessageComplete.ts b/src/api/types/ToolMessageComplete.ts index d56b6293..a1497d4f 100644 --- a/src/api/types/ToolMessageComplete.ts +++ b/src/api/types/ToolMessageComplete.ts @@ -44,7 +44,7 @@ export interface ToolMessageComplete { * ---> model generates response which is spoken * This is useful when you want to provide a hint to the model about what to say next. */ - role?: ToolMessageComplete.Role; + role?: Vapi.ToolMessageCompleteRole; /** * This is an optional boolean that if true, the call will end after the message is spoken. Default is false. * @@ -58,30 +58,3 @@ export interface ToolMessageComplete { /** This is an optional array of conditions that the tool call arguments must meet in order for this message to be triggered. */ conditions?: Vapi.Condition[]; } - -export namespace ToolMessageComplete { - /** - * This is optional and defaults to "assistant". - * - * When role=assistant, `content` is said out loud. - * - * When role=system, `content` is passed to the model in a system message. Example: - * system: default one - * assistant: - * user: - * assistant: - * user: - * assistant: - * user: - * assistant: tool called - * tool: your server response - * <--- system prompt as hint - * ---> model generates response which is spoken - * This is useful when you want to provide a hint to the model about what to say next. - */ - export type Role = "assistant" | "system"; - export const Role = { - Assistant: "assistant", - System: "system", - } as const; -} diff --git a/src/api/types/ToolMessageCompleteRole.ts b/src/api/types/ToolMessageCompleteRole.ts new file mode 100644 index 00000000..45f84334 --- /dev/null +++ b/src/api/types/ToolMessageCompleteRole.ts @@ -0,0 +1,28 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is optional and defaults to "assistant". + * + * When role=assistant, `content` is said out loud. + * + * When role=system, `content` is passed to the model in a system message. Example: + * system: default one + * assistant: + * user: + * assistant: + * user: + * assistant: + * user: + * assistant: tool called + * tool: your server response + * <--- system prompt as hint + * ---> model generates response which is spoken + * This is useful when you want to provide a hint to the model about what to say next. + */ +export type ToolMessageCompleteRole = "assistant" | "system"; +export const ToolMessageCompleteRole = { + Assistant: "assistant", + System: "system", +} as const; diff --git a/src/api/types/ToolNode.ts b/src/api/types/ToolNode.ts index a51d827b..74944feb 100644 --- a/src/api/types/ToolNode.ts +++ b/src/api/types/ToolNode.ts @@ -17,7 +17,7 @@ export interface ToolNode { */ type: "tool"; /** This is the tool to call. To use an existing tool, send `toolId` instead. */ - tool?: ToolNode.Tool; + tool?: Vapi.ToolNodeTool; /** This is the tool to call. To use a transient tool, send `tool` instead. */ toolId?: string; name: string; @@ -26,30 +26,3 @@ export interface ToolNode { /** This is for metadata you want to store on the task. */ metadata?: Record; } - -export namespace ToolNode { - /** - * This is the tool to call. To use an existing tool, send `toolId` instead. - */ - export type Tool = - | Vapi.CreateApiRequestToolDto - | Vapi.CreateBashToolDto - | Vapi.CreateComputerToolDto - | Vapi.CreateDtmfToolDto - | Vapi.CreateEndCallToolDto - | Vapi.CreateFunctionToolDto - | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto - | Vapi.CreateGoHighLevelCalendarEventCreateToolDto - | Vapi.CreateGoHighLevelContactCreateToolDto - | Vapi.CreateGoHighLevelContactGetToolDto - | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto - | Vapi.CreateGoogleCalendarCreateEventToolDto - | Vapi.CreateGoogleSheetsRowAppendToolDto - | Vapi.CreateHandoffToolDto - | Vapi.CreateMcpToolDto - | Vapi.CreateQueryToolDto - | Vapi.CreateSlackSendMessageToolDto - | Vapi.CreateSmsToolDto - | Vapi.CreateTextEditorToolDto - | Vapi.CreateTransferCallToolDto; -} diff --git a/src/api/types/ToolNodeTool.ts b/src/api/types/ToolNodeTool.ts new file mode 100644 index 00000000..a525029e --- /dev/null +++ b/src/api/types/ToolNodeTool.ts @@ -0,0 +1,30 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the tool to call. To use an existing tool, send `toolId` instead. + */ +export type ToolNodeTool = + | Vapi.CreateApiRequestToolDto + | Vapi.CreateBashToolDto + | Vapi.CreateComputerToolDto + | Vapi.CreateDtmfToolDto + | Vapi.CreateEndCallToolDto + | Vapi.CreateFunctionToolDto + | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto + | Vapi.CreateGoHighLevelCalendarEventCreateToolDto + | Vapi.CreateGoHighLevelContactCreateToolDto + | Vapi.CreateGoHighLevelContactGetToolDto + | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto + | Vapi.CreateGoogleCalendarCreateEventToolDto + | Vapi.CreateGoogleSheetsRowAppendToolDto + | Vapi.CreateHandoffToolDto + | Vapi.CreateMcpToolDto + | Vapi.CreateQueryToolDto + | Vapi.CreateSlackSendMessageToolDto + | Vapi.CreateSmsToolDto + | Vapi.CreateTextEditorToolDto + | Vapi.CreateTransferCallToolDto; diff --git a/src/api/types/ToolRejectionPlan.ts b/src/api/types/ToolRejectionPlan.ts index 183396d4..a7e602af 100644 --- a/src/api/types/ToolRejectionPlan.ts +++ b/src/api/types/ToolRejectionPlan.ts @@ -14,18 +14,5 @@ export interface ToolRejectionPlan { * * @default [] - Empty array means tool always executes */ - conditions?: ToolRejectionPlan.Conditions.Item[]; -} - -export namespace ToolRejectionPlan { - export type Conditions = Conditions.Item[]; - - export namespace Conditions { - export type Item = - | Vapi.RegexCondition - | Vapi.LiquidCondition - /** - * This is the GroupCondition object but Swagger does not display nested schemas correctly. */ - | Vapi.GroupCondition; - } + conditions?: Vapi.ToolRejectionPlanConditionsItem[]; } diff --git a/src/api/types/ToolRejectionPlanConditionsItem.ts b/src/api/types/ToolRejectionPlanConditionsItem.ts new file mode 100644 index 00000000..dba53ca7 --- /dev/null +++ b/src/api/types/ToolRejectionPlanConditionsItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type ToolRejectionPlanConditionsItem = + | Vapi.RegexCondition + | Vapi.LiquidCondition + /** + * This is the GroupCondition object but Swagger does not display nested schemas correctly. */ + | Vapi.GroupCondition; diff --git a/src/api/types/TransferAssistant.ts b/src/api/types/TransferAssistant.ts index 0cbed0c3..a65e1ffc 100644 --- a/src/api/types/TransferAssistant.ts +++ b/src/api/types/TransferAssistant.ts @@ -26,7 +26,7 @@ export interface TransferAssistant { * * @default 'assistant-speaks-first' */ - firstMessageMode?: TransferAssistant.FirstMessageMode; + firstMessageMode?: Vapi.TransferAssistantFirstMessageMode; /** * This is the maximum duration in seconds for the transfer assistant conversation. * After this time, the transfer will be cancelled automatically. @@ -40,25 +40,3 @@ export interface TransferAssistant { */ silenceTimeoutSeconds?: number; } - -export namespace TransferAssistant { - /** - * This is the mode for the first message. Default is 'assistant-speaks-first'. - * - * Use: - * - 'assistant-speaks-first' to have the assistant speak first. - * - 'assistant-waits-for-user' to have the assistant wait for the user to speak first. - * - 'assistant-speaks-first-with-model-generated-message' to have the assistant speak first with a message generated by the model based on the conversation state. - * - * @default 'assistant-speaks-first' - */ - export type FirstMessageMode = - | "assistant-speaks-first" - | "assistant-speaks-first-with-model-generated-message" - | "assistant-waits-for-user"; - export const FirstMessageMode = { - AssistantSpeaksFirst: "assistant-speaks-first", - AssistantSpeaksFirstWithModelGeneratedMessage: "assistant-speaks-first-with-model-generated-message", - AssistantWaitsForUser: "assistant-waits-for-user", - } as const; -} diff --git a/src/api/types/TransferAssistantFirstMessageMode.ts b/src/api/types/TransferAssistantFirstMessageMode.ts new file mode 100644 index 00000000..f1dcffec --- /dev/null +++ b/src/api/types/TransferAssistantFirstMessageMode.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the mode for the first message. Default is 'assistant-speaks-first'. + * + * Use: + * - 'assistant-speaks-first' to have the assistant speak first. + * - 'assistant-waits-for-user' to have the assistant wait for the user to speak first. + * - 'assistant-speaks-first-with-model-generated-message' to have the assistant speak first with a message generated by the model based on the conversation state. + * + * @default 'assistant-speaks-first' + */ +export type TransferAssistantFirstMessageMode = + | "assistant-speaks-first" + | "assistant-speaks-first-with-model-generated-message" + | "assistant-waits-for-user"; +export const TransferAssistantFirstMessageMode = { + AssistantSpeaksFirst: "assistant-speaks-first", + AssistantSpeaksFirstWithModelGeneratedMessage: "assistant-speaks-first-with-model-generated-message", + AssistantWaitsForUser: "assistant-waits-for-user", +} as const; diff --git a/src/api/types/TransferAssistantModel.ts b/src/api/types/TransferAssistantModel.ts index 2d9efc80..c5ed9e07 100644 --- a/src/api/types/TransferAssistantModel.ts +++ b/src/api/types/TransferAssistantModel.ts @@ -2,9 +2,11 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface TransferAssistantModel { /** The model provider for the transfer assistant */ - provider: TransferAssistantModel.Provider; + provider: Vapi.TransferAssistantModelProvider; /** The model name - must be compatible with the selected provider */ model: string; /** @@ -40,16 +42,3 @@ export interface TransferAssistantModel { */ tools?: unknown[]; } - -export namespace TransferAssistantModel { - /** - * The model provider for the transfer assistant - */ - export type Provider = "openai" | "anthropic" | "google" | "custom-llm"; - export const Provider = { - Openai: "openai", - Anthropic: "anthropic", - Google: "google", - CustomLlm: "custom-llm", - } as const; -} diff --git a/src/api/types/TransferAssistantModelProvider.ts b/src/api/types/TransferAssistantModelProvider.ts new file mode 100644 index 00000000..48579f52 --- /dev/null +++ b/src/api/types/TransferAssistantModelProvider.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * The model provider for the transfer assistant + */ +export type TransferAssistantModelProvider = "openai" | "anthropic" | "google" | "custom-llm"; +export const TransferAssistantModelProvider = { + Openai: "openai", + Anthropic: "anthropic", + Google: "google", + CustomLlm: "custom-llm", +} as const; diff --git a/src/api/types/TransferCallTool.ts b/src/api/types/TransferCallTool.ts index 907d9433..f42fc20c 100644 --- a/src/api/types/TransferCallTool.ts +++ b/src/api/types/TransferCallTool.ts @@ -10,10 +10,10 @@ export interface TransferCallTool { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: TransferCallTool.Messages.Item[]; + messages?: Vapi.TransferCallToolMessagesItem[]; type: "transferCall"; /** These are the destinations that the call can be transferred to. If no destinations are provided, server.url will be used to get the transfer destination once the tool is called. */ - destinations?: TransferCallTool.Destinations.Item[]; + destinations?: Vapi.TransferCallToolDestinationsItem[]; /** This is the unique identifier for the tool. */ id: string; /** This is the unique identifier for the organization that this tool belongs to. */ @@ -104,24 +104,3 @@ export interface TransferCallTool { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace TransferCallTool { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } - - export type Destinations = Destinations.Item[]; - - export namespace Destinations { - export type Item = - | Vapi.TransferDestinationAssistant - | Vapi.TransferDestinationNumber - | Vapi.TransferDestinationSip; - } -} diff --git a/src/api/types/TransferCallToolDestinationsItem.ts b/src/api/types/TransferCallToolDestinationsItem.ts new file mode 100644 index 00000000..2044b504 --- /dev/null +++ b/src/api/types/TransferCallToolDestinationsItem.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type TransferCallToolDestinationsItem = + | Vapi.TransferDestinationAssistant + | Vapi.TransferDestinationNumber + | Vapi.TransferDestinationSip; diff --git a/src/api/types/TransferCallToolMessagesItem.ts b/src/api/types/TransferCallToolMessagesItem.ts new file mode 100644 index 00000000..310e08ca --- /dev/null +++ b/src/api/types/TransferCallToolMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type TransferCallToolMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/TransferCancelToolUserEditable.ts b/src/api/types/TransferCancelToolUserEditable.ts index d765b7f7..7b679eb0 100644 --- a/src/api/types/TransferCancelToolUserEditable.ts +++ b/src/api/types/TransferCancelToolUserEditable.ts @@ -10,7 +10,7 @@ export interface TransferCancelToolUserEditable { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: TransferCancelToolUserEditable.Messages.Item[]; + messages?: Vapi.TransferCancelToolUserEditableMessagesItem[]; /** The type of tool. "transferCancel" for Transfer Cancel tool. This tool can only be used during warm-transfer-experimental by the transfer assistant to cancel an ongoing transfer and return the call back to the original assistant when the transfer cannot be completed. */ type: "transferCancel"; /** @@ -95,15 +95,3 @@ export interface TransferCancelToolUserEditable { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace TransferCancelToolUserEditable { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/TransferCancelToolUserEditableMessagesItem.ts b/src/api/types/TransferCancelToolUserEditableMessagesItem.ts new file mode 100644 index 00000000..6991e95f --- /dev/null +++ b/src/api/types/TransferCancelToolUserEditableMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type TransferCancelToolUserEditableMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/TransferDestinationAssistant.ts b/src/api/types/TransferDestinationAssistant.ts index c64506fe..567fec3a 100644 --- a/src/api/types/TransferDestinationAssistant.ts +++ b/src/api/types/TransferDestinationAssistant.ts @@ -14,7 +14,7 @@ export interface TransferDestinationAssistant { * * This accepts a string or a ToolMessageStart class. Latter is useful if you want to specify multiple messages for different languages through the `contents` field. */ - message?: TransferDestinationAssistant.Message; + message?: Vapi.TransferDestinationAssistantMessage; type: "assistant"; /** * This is the mode to use for the transfer. Defaults to `rolling-history`. @@ -112,16 +112,3 @@ export interface TransferDestinationAssistant { /** This is the description of the destination, used by the AI to choose when and how to transfer the call. */ description?: string; } - -export namespace TransferDestinationAssistant { - /** - * This is spoken to the customer before connecting them to the destination. - * - * Usage: - * - If this is not provided and transfer tool messages is not provided, default is "Transferring the call now". - * - If set to "", nothing is spoken. This is useful when you want to silently transfer. This is especially useful when transferring between assistants in a squad. In this scenario, you likely also want to set `assistant.firstMessageMode=assistant-speaks-first-with-model-generated-message` for the destination assistant. - * - * This accepts a string or a ToolMessageStart class. Latter is useful if you want to specify multiple messages for different languages through the `contents` field. - */ - export type Message = string | Vapi.CustomMessage; -} diff --git a/src/api/types/TransferDestinationAssistantMessage.ts b/src/api/types/TransferDestinationAssistantMessage.ts new file mode 100644 index 00000000..8691c127 --- /dev/null +++ b/src/api/types/TransferDestinationAssistantMessage.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is spoken to the customer before connecting them to the destination. + * + * Usage: + * - If this is not provided and transfer tool messages is not provided, default is "Transferring the call now". + * - If set to "", nothing is spoken. This is useful when you want to silently transfer. This is especially useful when transferring between assistants in a squad. In this scenario, you likely also want to set `assistant.firstMessageMode=assistant-speaks-first-with-model-generated-message` for the destination assistant. + * + * This accepts a string or a ToolMessageStart class. Latter is useful if you want to specify multiple messages for different languages through the `contents` field. + */ +export type TransferDestinationAssistantMessage = string | Vapi.CustomMessage; diff --git a/src/api/types/TransferDestinationNumber.ts b/src/api/types/TransferDestinationNumber.ts index 0f8cb1e8..3b991406 100644 --- a/src/api/types/TransferDestinationNumber.ts +++ b/src/api/types/TransferDestinationNumber.ts @@ -14,7 +14,7 @@ export interface TransferDestinationNumber { * * This accepts a string or a ToolMessageStart class. Latter is useful if you want to specify multiple messages for different languages through the `contents` field. */ - message?: TransferDestinationNumber.Message; + message?: Vapi.TransferDestinationNumberMessage; type: "number"; /** * This is the flag to toggle the E164 check for the `number` field. This is an advanced property which should be used if you know your use case requires it. @@ -54,16 +54,3 @@ export interface TransferDestinationNumber { /** This is the description of the destination, used by the AI to choose when and how to transfer the call. */ description?: string; } - -export namespace TransferDestinationNumber { - /** - * This is spoken to the customer before connecting them to the destination. - * - * Usage: - * - If this is not provided and transfer tool messages is not provided, default is "Transferring the call now". - * - If set to "", nothing is spoken. This is useful when you want to silently transfer. This is especially useful when transferring between assistants in a squad. In this scenario, you likely also want to set `assistant.firstMessageMode=assistant-speaks-first-with-model-generated-message` for the destination assistant. - * - * This accepts a string or a ToolMessageStart class. Latter is useful if you want to specify multiple messages for different languages through the `contents` field. - */ - export type Message = string | Vapi.CustomMessage; -} diff --git a/src/api/types/TransferDestinationNumberMessage.ts b/src/api/types/TransferDestinationNumberMessage.ts new file mode 100644 index 00000000..853636c5 --- /dev/null +++ b/src/api/types/TransferDestinationNumberMessage.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is spoken to the customer before connecting them to the destination. + * + * Usage: + * - If this is not provided and transfer tool messages is not provided, default is "Transferring the call now". + * - If set to "", nothing is spoken. This is useful when you want to silently transfer. This is especially useful when transferring between assistants in a squad. In this scenario, you likely also want to set `assistant.firstMessageMode=assistant-speaks-first-with-model-generated-message` for the destination assistant. + * + * This accepts a string or a ToolMessageStart class. Latter is useful if you want to specify multiple messages for different languages through the `contents` field. + */ +export type TransferDestinationNumberMessage = string | Vapi.CustomMessage; diff --git a/src/api/types/TransferDestinationSip.ts b/src/api/types/TransferDestinationSip.ts index 661b4b2b..2e770694 100644 --- a/src/api/types/TransferDestinationSip.ts +++ b/src/api/types/TransferDestinationSip.ts @@ -14,7 +14,7 @@ export interface TransferDestinationSip { * * This accepts a string or a ToolMessageStart class. Latter is useful if you want to specify multiple messages for different languages through the `contents` field. */ - message?: TransferDestinationSip.Message; + message?: Vapi.TransferDestinationSipMessage; type: "sip"; /** This is the SIP URI to transfer the call to. */ sipUri: string; @@ -29,16 +29,3 @@ export interface TransferDestinationSip { /** This is the description of the destination, used by the AI to choose when and how to transfer the call. */ description?: string; } - -export namespace TransferDestinationSip { - /** - * This is spoken to the customer before connecting them to the destination. - * - * Usage: - * - If this is not provided and transfer tool messages is not provided, default is "Transferring the call now". - * - If set to "", nothing is spoken. This is useful when you want to silently transfer. This is especially useful when transferring between assistants in a squad. In this scenario, you likely also want to set `assistant.firstMessageMode=assistant-speaks-first-with-model-generated-message` for the destination assistant. - * - * This accepts a string or a ToolMessageStart class. Latter is useful if you want to specify multiple messages for different languages through the `contents` field. - */ - export type Message = string | Vapi.CustomMessage; -} diff --git a/src/api/types/TransferDestinationSipMessage.ts b/src/api/types/TransferDestinationSipMessage.ts new file mode 100644 index 00000000..034e4a7a --- /dev/null +++ b/src/api/types/TransferDestinationSipMessage.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is spoken to the customer before connecting them to the destination. + * + * Usage: + * - If this is not provided and transfer tool messages is not provided, default is "Transferring the call now". + * - If set to "", nothing is spoken. This is useful when you want to silently transfer. This is especially useful when transferring between assistants in a squad. In this scenario, you likely also want to set `assistant.firstMessageMode=assistant-speaks-first-with-model-generated-message` for the destination assistant. + * + * This accepts a string or a ToolMessageStart class. Latter is useful if you want to specify multiple messages for different languages through the `contents` field. + */ +export type TransferDestinationSipMessage = string | Vapi.CustomMessage; diff --git a/src/api/types/TransferFallbackPlan.ts b/src/api/types/TransferFallbackPlan.ts index 73a27043..4b30e17e 100644 --- a/src/api/types/TransferFallbackPlan.ts +++ b/src/api/types/TransferFallbackPlan.ts @@ -6,7 +6,7 @@ import * as Vapi from "../index.js"; export interface TransferFallbackPlan { /** This is the message the assistant will deliver to the customer if the transfer fails. */ - message: TransferFallbackPlan.Message; + message: Vapi.TransferFallbackPlanMessage; /** * This controls what happens after delivering the failure message to the customer. * - true: End the call after delivering the failure message (default) @@ -16,10 +16,3 @@ export interface TransferFallbackPlan { */ endCallEnabled?: boolean; } - -export namespace TransferFallbackPlan { - /** - * This is the message the assistant will deliver to the customer if the transfer fails. - */ - export type Message = string | Vapi.CustomMessage; -} diff --git a/src/api/types/TransferFallbackPlanMessage.ts b/src/api/types/TransferFallbackPlanMessage.ts new file mode 100644 index 00000000..dedbda13 --- /dev/null +++ b/src/api/types/TransferFallbackPlanMessage.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the message the assistant will deliver to the customer if the transfer fails. + */ +export type TransferFallbackPlanMessage = string | Vapi.CustomMessage; diff --git a/src/api/types/TransferHookAction.ts b/src/api/types/TransferHookAction.ts index 71fe5e2d..6d00db4f 100644 --- a/src/api/types/TransferHookAction.ts +++ b/src/api/types/TransferHookAction.ts @@ -8,12 +8,5 @@ export interface TransferHookAction { /** This is the type of action - must be "transfer" */ type: "transfer"; /** This is the destination details for the transfer - can be a phone number or SIP URI */ - destination?: TransferHookAction.Destination; -} - -export namespace TransferHookAction { - /** - * This is the destination details for the transfer - can be a phone number or SIP URI - */ - export type Destination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; + destination?: Vapi.TransferHookActionDestination; } diff --git a/src/api/types/TransferHookActionDestination.ts b/src/api/types/TransferHookActionDestination.ts new file mode 100644 index 00000000..e9d0dd23 --- /dev/null +++ b/src/api/types/TransferHookActionDestination.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the destination details for the transfer - can be a phone number or SIP URI + */ +export type TransferHookActionDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; diff --git a/src/api/types/TransferPhoneNumberHookAction.ts b/src/api/types/TransferPhoneNumberHookAction.ts index 337cdaf5..65d941c8 100644 --- a/src/api/types/TransferPhoneNumberHookAction.ts +++ b/src/api/types/TransferPhoneNumberHookAction.ts @@ -8,12 +8,5 @@ export interface TransferPhoneNumberHookAction { /** This is the type of action - must be "transfer" */ type: "transfer"; /** This is the destination details for the transfer - can be a phone number or SIP URI */ - destination?: TransferPhoneNumberHookAction.Destination; -} - -export namespace TransferPhoneNumberHookAction { - /** - * This is the destination details for the transfer - can be a phone number or SIP URI - */ - export type Destination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; + destination?: Vapi.TransferPhoneNumberHookActionDestination; } diff --git a/src/api/types/TransferPhoneNumberHookActionDestination.ts b/src/api/types/TransferPhoneNumberHookActionDestination.ts new file mode 100644 index 00000000..c760cdd5 --- /dev/null +++ b/src/api/types/TransferPhoneNumberHookActionDestination.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the destination details for the transfer - can be a phone number or SIP URI + */ +export type TransferPhoneNumberHookActionDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; diff --git a/src/api/types/TransferPlan.ts b/src/api/types/TransferPlan.ts index 2fb44d73..9e656c51 100644 --- a/src/api/types/TransferPlan.ts +++ b/src/api/types/TransferPlan.ts @@ -20,14 +20,14 @@ export interface TransferPlan { * * @default 'blind-transfer' */ - mode: TransferPlan.Mode; + mode: Vapi.TransferPlanMode; /** * This is the message the assistant will deliver to the destination party before connecting the customer. * * Usage: * - Used only when `mode` is `blind-transfer-add-summary-to-sip-header`, `warm-transfer-say-message`, `warm-transfer-wait-for-operator-to-speak-first-and-then-say-message`, or `warm-transfer-experimental`. */ - message?: TransferPlan.Message; + message?: Vapi.TransferPlanMessage; /** * This is the timeout in seconds for the warm-transfer-wait-for-operator-to-speak-first-and-then-say-message/summary * @@ -101,49 +101,3 @@ export interface TransferPlan { */ fallbackPlan?: Vapi.TransferFallbackPlan; } - -export namespace TransferPlan { - /** - * This configures how transfer is executed and the experience of the destination party receiving the call. - * - * Usage: - * - `blind-transfer`: The assistant forwards the call to the destination without any message or summary. - * - `blind-transfer-add-summary-to-sip-header`: The assistant forwards the call to the destination and adds a SIP header X-Transfer-Summary to the call to include the summary. - * - `warm-transfer-say-message`: The assistant dials the destination, delivers the `message` to the destination party, connects the customer, and leaves the call. - * - `warm-transfer-say-summary`: The assistant dials the destination, provides a summary of the call to the destination party, connects the customer, and leaves the call. - * - `warm-transfer-wait-for-operator-to-speak-first-and-then-say-message`: The assistant dials the destination, waits for the operator to speak, delivers the `message` to the destination party, and then connects the customer. - * - `warm-transfer-wait-for-operator-to-speak-first-and-then-say-summary`: The assistant dials the destination, waits for the operator to speak, provides a summary of the call to the destination party, and then connects the customer. - * - `warm-transfer-twiml`: The assistant dials the destination, executes the twiml instructions on the destination call leg, connects the customer, and leaves the call. - * - `warm-transfer-experimental`: The assistant puts the customer on hold, dials the destination, and if the destination answers (and is human), delivers a message or summary before connecting the customer. If the destination is unreachable or not human (e.g., with voicemail detection), the assistant delivers the `fallbackMessage` to the customer and optionally ends the call. - * - * @default 'blind-transfer' - */ - export type Mode = - | "blind-transfer" - | "blind-transfer-add-summary-to-sip-header" - | "warm-transfer-say-message" - | "warm-transfer-say-summary" - | "warm-transfer-twiml" - | "warm-transfer-wait-for-operator-to-speak-first-and-then-say-message" - | "warm-transfer-wait-for-operator-to-speak-first-and-then-say-summary" - | "warm-transfer-experimental"; - export const Mode = { - BlindTransfer: "blind-transfer", - BlindTransferAddSummaryToSipHeader: "blind-transfer-add-summary-to-sip-header", - WarmTransferSayMessage: "warm-transfer-say-message", - WarmTransferSaySummary: "warm-transfer-say-summary", - WarmTransferTwiml: "warm-transfer-twiml", - WarmTransferWaitForOperatorToSpeakFirstAndThenSayMessage: - "warm-transfer-wait-for-operator-to-speak-first-and-then-say-message", - WarmTransferWaitForOperatorToSpeakFirstAndThenSaySummary: - "warm-transfer-wait-for-operator-to-speak-first-and-then-say-summary", - WarmTransferExperimental: "warm-transfer-experimental", - } as const; - /** - * This is the message the assistant will deliver to the destination party before connecting the customer. - * - * Usage: - * - Used only when `mode` is `blind-transfer-add-summary-to-sip-header`, `warm-transfer-say-message`, `warm-transfer-wait-for-operator-to-speak-first-and-then-say-message`, or `warm-transfer-experimental`. - */ - export type Message = string | Vapi.CustomMessage; -} diff --git a/src/api/types/TransferPlanMessage.ts b/src/api/types/TransferPlanMessage.ts new file mode 100644 index 00000000..eeedc0d7 --- /dev/null +++ b/src/api/types/TransferPlanMessage.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the message the assistant will deliver to the destination party before connecting the customer. + * + * Usage: + * - Used only when `mode` is `blind-transfer-add-summary-to-sip-header`, `warm-transfer-say-message`, `warm-transfer-wait-for-operator-to-speak-first-and-then-say-message`, or `warm-transfer-experimental`. + */ +export type TransferPlanMessage = string | Vapi.CustomMessage; diff --git a/src/api/types/TransferPlanMode.ts b/src/api/types/TransferPlanMode.ts new file mode 100644 index 00000000..58825187 --- /dev/null +++ b/src/api/types/TransferPlanMode.ts @@ -0,0 +1,40 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This configures how transfer is executed and the experience of the destination party receiving the call. + * + * Usage: + * - `blind-transfer`: The assistant forwards the call to the destination without any message or summary. + * - `blind-transfer-add-summary-to-sip-header`: The assistant forwards the call to the destination and adds a SIP header X-Transfer-Summary to the call to include the summary. + * - `warm-transfer-say-message`: The assistant dials the destination, delivers the `message` to the destination party, connects the customer, and leaves the call. + * - `warm-transfer-say-summary`: The assistant dials the destination, provides a summary of the call to the destination party, connects the customer, and leaves the call. + * - `warm-transfer-wait-for-operator-to-speak-first-and-then-say-message`: The assistant dials the destination, waits for the operator to speak, delivers the `message` to the destination party, and then connects the customer. + * - `warm-transfer-wait-for-operator-to-speak-first-and-then-say-summary`: The assistant dials the destination, waits for the operator to speak, provides a summary of the call to the destination party, and then connects the customer. + * - `warm-transfer-twiml`: The assistant dials the destination, executes the twiml instructions on the destination call leg, connects the customer, and leaves the call. + * - `warm-transfer-experimental`: The assistant puts the customer on hold, dials the destination, and if the destination answers (and is human), delivers a message or summary before connecting the customer. If the destination is unreachable or not human (e.g., with voicemail detection), the assistant delivers the `fallbackMessage` to the customer and optionally ends the call. + * + * @default 'blind-transfer' + */ +export type TransferPlanMode = + | "blind-transfer" + | "blind-transfer-add-summary-to-sip-header" + | "warm-transfer-say-message" + | "warm-transfer-say-summary" + | "warm-transfer-twiml" + | "warm-transfer-wait-for-operator-to-speak-first-and-then-say-message" + | "warm-transfer-wait-for-operator-to-speak-first-and-then-say-summary" + | "warm-transfer-experimental"; +export const TransferPlanMode = { + BlindTransfer: "blind-transfer", + BlindTransferAddSummaryToSipHeader: "blind-transfer-add-summary-to-sip-header", + WarmTransferSayMessage: "warm-transfer-say-message", + WarmTransferSaySummary: "warm-transfer-say-summary", + WarmTransferTwiml: "warm-transfer-twiml", + WarmTransferWaitForOperatorToSpeakFirstAndThenSayMessage: + "warm-transfer-wait-for-operator-to-speak-first-and-then-say-message", + WarmTransferWaitForOperatorToSpeakFirstAndThenSaySummary: + "warm-transfer-wait-for-operator-to-speak-first-and-then-say-summary", + WarmTransferExperimental: "warm-transfer-experimental", +} as const; diff --git a/src/api/types/TransferSuccessfulToolUserEditable.ts b/src/api/types/TransferSuccessfulToolUserEditable.ts index 6a5ff6af..b55cd709 100644 --- a/src/api/types/TransferSuccessfulToolUserEditable.ts +++ b/src/api/types/TransferSuccessfulToolUserEditable.ts @@ -10,7 +10,7 @@ export interface TransferSuccessfulToolUserEditable { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: TransferSuccessfulToolUserEditable.Messages.Item[]; + messages?: Vapi.TransferSuccessfulToolUserEditableMessagesItem[]; /** The type of tool. "transferSuccessful" for Transfer Successful tool. This tool can only be used during warm-transfer-experimental by the transfer assistant to confirm that the transfer should proceed and finalize the handoff to the destination. */ type: "transferSuccessful"; /** @@ -95,15 +95,3 @@ export interface TransferSuccessfulToolUserEditable { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace TransferSuccessfulToolUserEditable { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/TransferSuccessfulToolUserEditableMessagesItem.ts b/src/api/types/TransferSuccessfulToolUserEditableMessagesItem.ts new file mode 100644 index 00000000..0db3e831 --- /dev/null +++ b/src/api/types/TransferSuccessfulToolUserEditableMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type TransferSuccessfulToolUserEditableMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/TransportConfigurationTwilio.ts b/src/api/types/TransportConfigurationTwilio.ts index 5d1e8d39..03ac1565 100644 --- a/src/api/types/TransportConfigurationTwilio.ts +++ b/src/api/types/TransportConfigurationTwilio.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface TransportConfigurationTwilio { provider: "twilio"; /** @@ -32,23 +34,5 @@ export interface TransportConfigurationTwilio { * * @default 'mono' */ - recordingChannels?: TransportConfigurationTwilio.RecordingChannels; -} - -export namespace TransportConfigurationTwilio { - /** - * The number of channels in the final recording. - * Can be: `mono` or `dual`. - * The default is `mono`. - * `mono` records both legs of the call in a single channel of the recording file. - * `dual` records each leg to a separate channel of the recording file. - * The first channel of a dual-channel recording contains the parent call and the second channel contains the child call. - * - * @default 'mono' - */ - export type RecordingChannels = "mono" | "dual"; - export const RecordingChannels = { - Mono: "mono", - Dual: "dual", - } as const; + recordingChannels?: Vapi.TransportConfigurationTwilioRecordingChannels; } diff --git a/src/api/types/TransportConfigurationTwilioRecordingChannels.ts b/src/api/types/TransportConfigurationTwilioRecordingChannels.ts new file mode 100644 index 00000000..849a48ff --- /dev/null +++ b/src/api/types/TransportConfigurationTwilioRecordingChannels.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * The number of channels in the final recording. + * Can be: `mono` or `dual`. + * The default is `mono`. + * `mono` records both legs of the call in a single channel of the recording file. + * `dual` records each leg to a separate channel of the recording file. + * The first channel of a dual-channel recording contains the parent call and the second channel contains the child call. + * + * @default 'mono' + */ +export type TransportConfigurationTwilioRecordingChannels = "mono" | "dual"; +export const TransportConfigurationTwilioRecordingChannels = { + Mono: "mono", + Dual: "dual", +} as const; diff --git a/src/api/types/TransportCost.ts b/src/api/types/TransportCost.ts index 836ef3ed..b010ee3e 100644 --- a/src/api/types/TransportCost.ts +++ b/src/api/types/TransportCost.ts @@ -2,24 +2,14 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface TransportCost { /** This is the type of cost, always 'transport' for this class. */ type: "transport"; - provider?: TransportCost.Provider; + provider?: Vapi.TransportCostProvider; /** This is the minutes of `transport` usage. This should match `call.endedAt` - `call.startedAt`. */ minutes: number; /** This is the cost of the component in USD. */ cost: number; } - -export namespace TransportCost { - export type Provider = "daily" | "vapi.websocket" | "twilio" | "vonage" | "telnyx" | "vapi.sip"; - export const Provider = { - Daily: "daily", - VapiWebsocket: "vapi.websocket", - Twilio: "twilio", - Vonage: "vonage", - Telnyx: "telnyx", - VapiSip: "vapi.sip", - } as const; -} diff --git a/src/api/types/TransportCostProvider.ts b/src/api/types/TransportCostProvider.ts new file mode 100644 index 00000000..5d328ba6 --- /dev/null +++ b/src/api/types/TransportCostProvider.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type TransportCostProvider = "daily" | "vapi.websocket" | "twilio" | "vonage" | "telnyx" | "vapi.sip"; +export const TransportCostProvider = { + Daily: "daily", + VapiWebsocket: "vapi.websocket", + Twilio: "twilio", + Vonage: "vonage", + Telnyx: "telnyx", + VapiSip: "vapi.sip", +} as const; diff --git a/src/api/types/TrieveKnowledgeBaseSearchPlan.ts b/src/api/types/TrieveKnowledgeBaseSearchPlan.ts index ce9316d5..41c2bb41 100644 --- a/src/api/types/TrieveKnowledgeBaseSearchPlan.ts +++ b/src/api/types/TrieveKnowledgeBaseSearchPlan.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface TrieveKnowledgeBaseSearchPlan { /** Specifies the number of top chunks to return. This corresponds to the `page_size` parameter in Trieve. */ topK?: number; @@ -10,18 +12,5 @@ export interface TrieveKnowledgeBaseSearchPlan { /** This is the score threshold to filter out chunks with a score below the threshold for cosine distance metric. For Manhattan Distance, Euclidean Distance, and Dot Product, it will filter out scores above the threshold distance. This threshold applies before weight and bias modifications. If not specified, this defaults to no threshold. A threshold of 0 will default to no threshold. */ scoreThreshold?: number; /** This is the search method used when searching for relevant chunks from the vector store. */ - searchType: TrieveKnowledgeBaseSearchPlan.SearchType; -} - -export namespace TrieveKnowledgeBaseSearchPlan { - /** - * This is the search method used when searching for relevant chunks from the vector store. - */ - export type SearchType = "fulltext" | "semantic" | "hybrid" | "bm25"; - export const SearchType = { - Fulltext: "fulltext", - Semantic: "semantic", - Hybrid: "hybrid", - Bm25: "bm25", - } as const; + searchType: Vapi.TrieveKnowledgeBaseSearchPlanSearchType; } diff --git a/src/api/types/TrieveKnowledgeBaseSearchPlanSearchType.ts b/src/api/types/TrieveKnowledgeBaseSearchPlanSearchType.ts new file mode 100644 index 00000000..c4696979 --- /dev/null +++ b/src/api/types/TrieveKnowledgeBaseSearchPlanSearchType.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the search method used when searching for relevant chunks from the vector store. + */ +export type TrieveKnowledgeBaseSearchPlanSearchType = "fulltext" | "semantic" | "hybrid" | "bm25"; +export const TrieveKnowledgeBaseSearchPlanSearchType = { + Fulltext: "fulltext", + Semantic: "semantic", + Hybrid: "hybrid", + Bm25: "bm25", +} as const; diff --git a/src/api/types/TwilioPhoneNumber.ts b/src/api/types/TwilioPhoneNumber.ts index 1271a711..a7d4d4a4 100644 --- a/src/api/types/TwilioPhoneNumber.ts +++ b/src/api/types/TwilioPhoneNumber.ts @@ -13,9 +13,9 @@ export interface TwilioPhoneNumber { * * If this is not set and above conditions are met, the inbound call is hung up with an error message. */ - fallbackDestination?: TwilioPhoneNumber.FallbackDestination; + fallbackDestination?: Vapi.TwilioPhoneNumberFallbackDestination; /** This is the hooks that will be used for incoming calls to this phone number. */ - hooks?: TwilioPhoneNumber.Hooks.Item[]; + hooks?: Vapi.TwilioPhoneNumberHooksItem[]; provider: "twilio"; /** * Controls whether Vapi sets the messaging webhook URL on the Twilio number during import. @@ -35,7 +35,7 @@ export interface TwilioPhoneNumber { /** This is the ISO 8601 date-time string of when the phone number was last updated. */ updatedAt: string; /** This is the status of the phone number. */ - status?: TwilioPhoneNumber.Status; + status?: Vapi.TwilioPhoneNumberStatus; /** This is the Twilio Auth Token for the phone number. */ twilioAuthToken?: string; /** This is the Twilio API Key for the phone number. */ @@ -77,30 +77,3 @@ export interface TwilioPhoneNumber { /** This is the Twilio Account SID for the phone number. */ twilioAccountSid: string; } - -export namespace TwilioPhoneNumber { - /** - * This is the fallback destination an inbound call will be transferred to if: - * 1. `assistantId` is not set - * 2. `squadId` is not set - * 3. and, `assistant-request` message to the `serverUrl` fails - * - * If this is not set and above conditions are met, the inbound call is hung up with an error message. - */ - export type FallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; - export type Hooks = Hooks.Item[]; - - export namespace Hooks { - export type Item = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; - } - - /** - * This is the status of the phone number. - */ - export type Status = "active" | "activating" | "blocked"; - export const Status = { - Active: "active", - Activating: "activating", - Blocked: "blocked", - } as const; -} diff --git a/src/api/types/TwilioPhoneNumberFallbackDestination.ts b/src/api/types/TwilioPhoneNumberFallbackDestination.ts new file mode 100644 index 00000000..398f89f7 --- /dev/null +++ b/src/api/types/TwilioPhoneNumberFallbackDestination.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the fallback destination an inbound call will be transferred to if: + * 1. `assistantId` is not set + * 2. `squadId` is not set + * 3. and, `assistant-request` message to the `serverUrl` fails + * + * If this is not set and above conditions are met, the inbound call is hung up with an error message. + */ +export type TwilioPhoneNumberFallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; diff --git a/src/api/types/TwilioPhoneNumberHooksItem.ts b/src/api/types/TwilioPhoneNumberHooksItem.ts new file mode 100644 index 00000000..6e330fa5 --- /dev/null +++ b/src/api/types/TwilioPhoneNumberHooksItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type TwilioPhoneNumberHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; diff --git a/src/api/types/TwilioPhoneNumberStatus.ts b/src/api/types/TwilioPhoneNumberStatus.ts new file mode 100644 index 00000000..b5193a82 --- /dev/null +++ b/src/api/types/TwilioPhoneNumberStatus.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the status of the phone number. + */ +export type TwilioPhoneNumberStatus = "active" | "activating" | "blocked"; +export const TwilioPhoneNumberStatus = { + Active: "active", + Activating: "activating", + Blocked: "blocked", +} as const; diff --git a/src/api/types/TwilioVoicemailDetectionPlan.ts b/src/api/types/TwilioVoicemailDetectionPlan.ts index b7f4305a..d6860d91 100644 --- a/src/api/types/TwilioVoicemailDetectionPlan.ts +++ b/src/api/types/TwilioVoicemailDetectionPlan.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface TwilioVoicemailDetectionPlan { /** This is the provider to use for voicemail detection. */ provider: "twilio"; @@ -10,7 +12,7 @@ export interface TwilioVoicemailDetectionPlan { * * @default {Array} ['machine_end_beep', 'machine_end_silence'] */ - voicemailDetectionTypes?: TwilioVoicemailDetectionPlan.VoicemailDetectionTypes.Item[]; + voicemailDetectionTypes?: Vapi.TwilioVoicemailDetectionPlanVoicemailDetectionTypesItem[]; /** * This sets whether the assistant should detect voicemail. Defaults to true. * @@ -68,27 +70,3 @@ export interface TwilioVoicemailDetectionPlan { */ machineDetectionSilenceTimeout?: number; } - -export namespace TwilioVoicemailDetectionPlan { - export type VoicemailDetectionTypes = VoicemailDetectionTypes.Item[]; - - export namespace VoicemailDetectionTypes { - export type Item = - | "machine_start" - | "human" - | "fax" - | "unknown" - | "machine_end_beep" - | "machine_end_silence" - | "machine_end_other"; - export const Item = { - MachineStart: "machine_start", - Human: "human", - Fax: "fax", - Unknown: "unknown", - MachineEndBeep: "machine_end_beep", - MachineEndSilence: "machine_end_silence", - MachineEndOther: "machine_end_other", - } as const; - } -} diff --git a/src/api/types/TwilioVoicemailDetectionPlanVoicemailDetectionTypesItem.ts b/src/api/types/TwilioVoicemailDetectionPlanVoicemailDetectionTypesItem.ts new file mode 100644 index 00000000..5244d060 --- /dev/null +++ b/src/api/types/TwilioVoicemailDetectionPlanVoicemailDetectionTypesItem.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type TwilioVoicemailDetectionPlanVoicemailDetectionTypesItem = + | "machine_start" + | "human" + | "fax" + | "unknown" + | "machine_end_beep" + | "machine_end_silence" + | "machine_end_other"; +export const TwilioVoicemailDetectionPlanVoicemailDetectionTypesItem = { + MachineStart: "machine_start", + Human: "human", + Fax: "fax", + Unknown: "unknown", + MachineEndBeep: "machine_end_beep", + MachineEndSilence: "machine_end_silence", + MachineEndOther: "machine_end_other", +} as const; diff --git a/src/api/types/UpdateApiRequestToolDto.ts b/src/api/types/UpdateApiRequestToolDto.ts index c2894b78..e9137096 100644 --- a/src/api/types/UpdateApiRequestToolDto.ts +++ b/src/api/types/UpdateApiRequestToolDto.ts @@ -10,8 +10,8 @@ export interface UpdateApiRequestToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: UpdateApiRequestToolDto.Messages.Item[]; - method?: UpdateApiRequestToolDto.Method; + messages?: Vapi.UpdateApiRequestToolDtoMessagesItem[]; + method?: Vapi.UpdateApiRequestToolDtoMethod; /** * This is the timeout in seconds for the request. Defaults to 20 seconds. * @@ -278,24 +278,3 @@ export interface UpdateApiRequestToolDto { */ variableExtractionPlan?: Vapi.VariableExtractionPlan; } - -export namespace UpdateApiRequestToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } - - export type Method = "POST" | "GET" | "PUT" | "PATCH" | "DELETE"; - export const Method = { - Post: "POST", - Get: "GET", - Put: "PUT", - Patch: "PATCH", - Delete: "DELETE", - } as const; -} diff --git a/src/api/types/UpdateApiRequestToolDtoMessagesItem.ts b/src/api/types/UpdateApiRequestToolDtoMessagesItem.ts new file mode 100644 index 00000000..2bbd60db --- /dev/null +++ b/src/api/types/UpdateApiRequestToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateApiRequestToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateApiRequestToolDtoMethod.ts b/src/api/types/UpdateApiRequestToolDtoMethod.ts new file mode 100644 index 00000000..51d7f2b2 --- /dev/null +++ b/src/api/types/UpdateApiRequestToolDtoMethod.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type UpdateApiRequestToolDtoMethod = "POST" | "GET" | "PUT" | "PATCH" | "DELETE"; +export const UpdateApiRequestToolDtoMethod = { + Post: "POST", + Get: "GET", + Put: "PUT", + Patch: "PATCH", + Delete: "DELETE", +} as const; diff --git a/src/api/types/UpdateAzureCredentialDto.ts b/src/api/types/UpdateAzureCredentialDto.ts index 095e4392..2ee4719d 100644 --- a/src/api/types/UpdateAzureCredentialDto.ts +++ b/src/api/types/UpdateAzureCredentialDto.ts @@ -6,9 +6,9 @@ import * as Vapi from "../index.js"; export interface UpdateAzureCredentialDto { /** This is the service being used in Azure. */ - service?: UpdateAzureCredentialDto.Service; + service?: Vapi.UpdateAzureCredentialDtoService; /** This is the region of the Azure resource. */ - region?: UpdateAzureCredentialDto.Region; + region?: Vapi.UpdateAzureCredentialDtoRegion; /** This is not returned in the API. */ apiKey?: string; /** This is the order in which this storage provider is tried during upload retries. Lower numbers are tried first in increasing order. */ @@ -18,56 +18,3 @@ export interface UpdateAzureCredentialDto { /** This is the bucket plan that can be provided to store call artifacts in Azure Blob Storage. */ bucketPlan?: Vapi.AzureBlobStorageBucketPlan; } - -export namespace UpdateAzureCredentialDto { - /** - * This is the service being used in Azure. - */ - export type Service = "speech" | "blob_storage"; - export const Service = { - Speech: "speech", - BlobStorage: "blob_storage", - } as const; - /** - * This is the region of the Azure resource. - */ - export type Region = - | "australia" - | "canadaeast" - | "canadacentral" - | "eastus2" - | "eastus" - | "france" - | "india" - | "japaneast" - | "japanwest" - | "uaenorth" - | "northcentralus" - | "norway" - | "southcentralus" - | "swedencentral" - | "switzerland" - | "uk" - | "westus" - | "westus3"; - export const Region = { - Australia: "australia", - Canadaeast: "canadaeast", - Canadacentral: "canadacentral", - Eastus2: "eastus2", - Eastus: "eastus", - France: "france", - India: "india", - Japaneast: "japaneast", - Japanwest: "japanwest", - Uaenorth: "uaenorth", - Northcentralus: "northcentralus", - Norway: "norway", - Southcentralus: "southcentralus", - Swedencentral: "swedencentral", - Switzerland: "switzerland", - Uk: "uk", - Westus: "westus", - Westus3: "westus3", - } as const; -} diff --git a/src/api/types/UpdateAzureCredentialDtoRegion.ts b/src/api/types/UpdateAzureCredentialDtoRegion.ts new file mode 100644 index 00000000..b0281e11 --- /dev/null +++ b/src/api/types/UpdateAzureCredentialDtoRegion.ts @@ -0,0 +1,46 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the region of the Azure resource. + */ +export type UpdateAzureCredentialDtoRegion = + | "australia" + | "canadaeast" + | "canadacentral" + | "eastus2" + | "eastus" + | "france" + | "india" + | "japaneast" + | "japanwest" + | "uaenorth" + | "northcentralus" + | "norway" + | "southcentralus" + | "swedencentral" + | "switzerland" + | "uk" + | "westus" + | "westus3"; +export const UpdateAzureCredentialDtoRegion = { + Australia: "australia", + Canadaeast: "canadaeast", + Canadacentral: "canadacentral", + Eastus2: "eastus2", + Eastus: "eastus", + France: "france", + India: "india", + Japaneast: "japaneast", + Japanwest: "japanwest", + Uaenorth: "uaenorth", + Northcentralus: "northcentralus", + Norway: "norway", + Southcentralus: "southcentralus", + Swedencentral: "swedencentral", + Switzerland: "switzerland", + Uk: "uk", + Westus: "westus", + Westus3: "westus3", +} as const; diff --git a/src/api/types/UpdateAzureCredentialDtoService.ts b/src/api/types/UpdateAzureCredentialDtoService.ts new file mode 100644 index 00000000..e4511726 --- /dev/null +++ b/src/api/types/UpdateAzureCredentialDtoService.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the service being used in Azure. + */ +export type UpdateAzureCredentialDtoService = "speech" | "blob_storage"; +export const UpdateAzureCredentialDtoService = { + Speech: "speech", + BlobStorage: "blob_storage", +} as const; diff --git a/src/api/types/UpdateAzureOpenAiCredentialDto.ts b/src/api/types/UpdateAzureOpenAiCredentialDto.ts index 7e7c1a11..66599c81 100644 --- a/src/api/types/UpdateAzureOpenAiCredentialDto.ts +++ b/src/api/types/UpdateAzureOpenAiCredentialDto.ts @@ -2,9 +2,11 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface UpdateAzureOpenAiCredentialDto { - region?: UpdateAzureOpenAiCredentialDto.Region; - models?: UpdateAzureOpenAiCredentialDto.Models.Item[]; + region?: Vapi.UpdateAzureOpenAiCredentialDtoRegion; + models?: Vapi.UpdateAzureOpenAiCredentialDtoModelsItem[]; /** This is not returned in the API. */ openAIKey?: string; /** This is not returned in the API. */ @@ -13,84 +15,3 @@ export interface UpdateAzureOpenAiCredentialDto { name?: string; openAIEndpoint?: string; } - -export namespace UpdateAzureOpenAiCredentialDto { - export type Region = - | "australia" - | "canadaeast" - | "canadacentral" - | "eastus2" - | "eastus" - | "france" - | "india" - | "japaneast" - | "japanwest" - | "uaenorth" - | "northcentralus" - | "norway" - | "southcentralus" - | "swedencentral" - | "switzerland" - | "uk" - | "westus" - | "westus3"; - export const Region = { - Australia: "australia", - Canadaeast: "canadaeast", - Canadacentral: "canadacentral", - Eastus2: "eastus2", - Eastus: "eastus", - France: "france", - India: "india", - Japaneast: "japaneast", - Japanwest: "japanwest", - Uaenorth: "uaenorth", - Northcentralus: "northcentralus", - Norway: "norway", - Southcentralus: "southcentralus", - Swedencentral: "swedencentral", - Switzerland: "switzerland", - Uk: "uk", - Westus: "westus", - Westus3: "westus3", - } as const; - export type Models = Models.Item[]; - - export namespace Models { - export type Item = - | "gpt-5" - | "gpt-5-mini" - | "gpt-5-nano" - | "gpt-4.1-2025-04-14" - | "gpt-4.1-mini-2025-04-14" - | "gpt-4.1-nano-2025-04-14" - | "gpt-4o-2024-11-20" - | "gpt-4o-2024-08-06" - | "gpt-4o-2024-05-13" - | "gpt-4o-mini-2024-07-18" - | "gpt-4-turbo-2024-04-09" - | "gpt-4-0125-preview" - | "gpt-4-1106-preview" - | "gpt-4-0613" - | "gpt-35-turbo-0125" - | "gpt-35-turbo-1106"; - export const Item = { - Gpt5: "gpt-5", - Gpt5Mini: "gpt-5-mini", - Gpt5Nano: "gpt-5-nano", - Gpt4120250414: "gpt-4.1-2025-04-14", - Gpt41Mini20250414: "gpt-4.1-mini-2025-04-14", - Gpt41Nano20250414: "gpt-4.1-nano-2025-04-14", - Gpt4O20241120: "gpt-4o-2024-11-20", - Gpt4O20240806: "gpt-4o-2024-08-06", - Gpt4O20240513: "gpt-4o-2024-05-13", - Gpt4OMini20240718: "gpt-4o-mini-2024-07-18", - Gpt4Turbo20240409: "gpt-4-turbo-2024-04-09", - Gpt40125Preview: "gpt-4-0125-preview", - Gpt41106Preview: "gpt-4-1106-preview", - Gpt40613: "gpt-4-0613", - Gpt35Turbo0125: "gpt-35-turbo-0125", - Gpt35Turbo1106: "gpt-35-turbo-1106", - } as const; - } -} diff --git a/src/api/types/UpdateAzureOpenAiCredentialDtoModelsItem.ts b/src/api/types/UpdateAzureOpenAiCredentialDtoModelsItem.ts new file mode 100644 index 00000000..e90bd53e --- /dev/null +++ b/src/api/types/UpdateAzureOpenAiCredentialDtoModelsItem.ts @@ -0,0 +1,39 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type UpdateAzureOpenAiCredentialDtoModelsItem = + | "gpt-5" + | "gpt-5-mini" + | "gpt-5-nano" + | "gpt-4.1-2025-04-14" + | "gpt-4.1-mini-2025-04-14" + | "gpt-4.1-nano-2025-04-14" + | "gpt-4o-2024-11-20" + | "gpt-4o-2024-08-06" + | "gpt-4o-2024-05-13" + | "gpt-4o-mini-2024-07-18" + | "gpt-4-turbo-2024-04-09" + | "gpt-4-0125-preview" + | "gpt-4-1106-preview" + | "gpt-4-0613" + | "gpt-35-turbo-0125" + | "gpt-35-turbo-1106"; +export const UpdateAzureOpenAiCredentialDtoModelsItem = { + Gpt5: "gpt-5", + Gpt5Mini: "gpt-5-mini", + Gpt5Nano: "gpt-5-nano", + Gpt4120250414: "gpt-4.1-2025-04-14", + Gpt41Mini20250414: "gpt-4.1-mini-2025-04-14", + Gpt41Nano20250414: "gpt-4.1-nano-2025-04-14", + Gpt4O20241120: "gpt-4o-2024-11-20", + Gpt4O20240806: "gpt-4o-2024-08-06", + Gpt4O20240513: "gpt-4o-2024-05-13", + Gpt4OMini20240718: "gpt-4o-mini-2024-07-18", + Gpt4Turbo20240409: "gpt-4-turbo-2024-04-09", + Gpt40125Preview: "gpt-4-0125-preview", + Gpt41106Preview: "gpt-4-1106-preview", + Gpt40613: "gpt-4-0613", + Gpt35Turbo0125: "gpt-35-turbo-0125", + Gpt35Turbo1106: "gpt-35-turbo-1106", +} as const; diff --git a/src/api/types/UpdateAzureOpenAiCredentialDtoRegion.ts b/src/api/types/UpdateAzureOpenAiCredentialDtoRegion.ts new file mode 100644 index 00000000..285d0086 --- /dev/null +++ b/src/api/types/UpdateAzureOpenAiCredentialDtoRegion.ts @@ -0,0 +1,43 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type UpdateAzureOpenAiCredentialDtoRegion = + | "australia" + | "canadaeast" + | "canadacentral" + | "eastus2" + | "eastus" + | "france" + | "india" + | "japaneast" + | "japanwest" + | "uaenorth" + | "northcentralus" + | "norway" + | "southcentralus" + | "swedencentral" + | "switzerland" + | "uk" + | "westus" + | "westus3"; +export const UpdateAzureOpenAiCredentialDtoRegion = { + Australia: "australia", + Canadaeast: "canadaeast", + Canadacentral: "canadacentral", + Eastus2: "eastus2", + Eastus: "eastus", + France: "france", + India: "india", + Japaneast: "japaneast", + Japanwest: "japanwest", + Uaenorth: "uaenorth", + Northcentralus: "northcentralus", + Norway: "norway", + Southcentralus: "southcentralus", + Swedencentral: "swedencentral", + Switzerland: "switzerland", + Uk: "uk", + Westus: "westus", + Westus3: "westus3", +} as const; diff --git a/src/api/types/UpdateBashToolDto.ts b/src/api/types/UpdateBashToolDto.ts index 68ea6204..9c07d2e2 100644 --- a/src/api/types/UpdateBashToolDto.ts +++ b/src/api/types/UpdateBashToolDto.ts @@ -10,7 +10,7 @@ export interface UpdateBashToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: UpdateBashToolDto.Messages.Item[]; + messages?: Vapi.UpdateBashToolDtoMessagesItem[]; /** The sub type of tool. */ subType?: "bash_20241022"; /** @@ -108,15 +108,3 @@ export interface UpdateBashToolDto { /** The name of the tool, fixed to 'bash' */ name?: "bash"; } - -export namespace UpdateBashToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/UpdateBashToolDtoMessagesItem.ts b/src/api/types/UpdateBashToolDtoMessagesItem.ts new file mode 100644 index 00000000..2f5d1e20 --- /dev/null +++ b/src/api/types/UpdateBashToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateBashToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateByoPhoneNumberDto.ts b/src/api/types/UpdateByoPhoneNumberDto.ts index 07cd44ee..7f609395 100644 --- a/src/api/types/UpdateByoPhoneNumberDto.ts +++ b/src/api/types/UpdateByoPhoneNumberDto.ts @@ -13,9 +13,9 @@ export interface UpdateByoPhoneNumberDto { * * If this is not set and above conditions are met, the inbound call is hung up with an error message. */ - fallbackDestination?: UpdateByoPhoneNumberDto.FallbackDestination; + fallbackDestination?: Vapi.UpdateByoPhoneNumberDtoFallbackDestination; /** This is the hooks that will be used for incoming calls to this phone number. */ - hooks?: UpdateByoPhoneNumberDto.Hooks.Item[]; + hooks?: Vapi.UpdateByoPhoneNumberDtoHooksItem[]; /** * This is the flag to toggle the E164 check for the `number` field. This is an advanced property which should be used if you know your use case requires it. * @@ -67,20 +67,3 @@ export interface UpdateByoPhoneNumberDto { */ credentialId?: string; } - -export namespace UpdateByoPhoneNumberDto { - /** - * This is the fallback destination an inbound call will be transferred to if: - * 1. `assistantId` is not set - * 2. `squadId` is not set - * 3. and, `assistant-request` message to the `serverUrl` fails - * - * If this is not set and above conditions are met, the inbound call is hung up with an error message. - */ - export type FallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; - export type Hooks = Hooks.Item[]; - - export namespace Hooks { - export type Item = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; - } -} diff --git a/src/api/types/UpdateByoPhoneNumberDtoFallbackDestination.ts b/src/api/types/UpdateByoPhoneNumberDtoFallbackDestination.ts new file mode 100644 index 00000000..6839d393 --- /dev/null +++ b/src/api/types/UpdateByoPhoneNumberDtoFallbackDestination.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the fallback destination an inbound call will be transferred to if: + * 1. `assistantId` is not set + * 2. `squadId` is not set + * 3. and, `assistant-request` message to the `serverUrl` fails + * + * If this is not set and above conditions are met, the inbound call is hung up with an error message. + */ +export type UpdateByoPhoneNumberDtoFallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; diff --git a/src/api/types/UpdateByoPhoneNumberDtoHooksItem.ts b/src/api/types/UpdateByoPhoneNumberDtoHooksItem.ts new file mode 100644 index 00000000..f2f8f294 --- /dev/null +++ b/src/api/types/UpdateByoPhoneNumberDtoHooksItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateByoPhoneNumberDtoHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; diff --git a/src/api/types/UpdateComputerToolDto.ts b/src/api/types/UpdateComputerToolDto.ts index 0aee923b..13db7e76 100644 --- a/src/api/types/UpdateComputerToolDto.ts +++ b/src/api/types/UpdateComputerToolDto.ts @@ -10,7 +10,7 @@ export interface UpdateComputerToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: UpdateComputerToolDto.Messages.Item[]; + messages?: Vapi.UpdateComputerToolDtoMessagesItem[]; /** The sub type of tool. */ subType?: "computer_20241022"; /** @@ -114,15 +114,3 @@ export interface UpdateComputerToolDto { /** Optional display number */ displayNumber?: number; } - -export namespace UpdateComputerToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/UpdateComputerToolDtoMessagesItem.ts b/src/api/types/UpdateComputerToolDtoMessagesItem.ts new file mode 100644 index 00000000..f9e9d700 --- /dev/null +++ b/src/api/types/UpdateComputerToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateComputerToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateCustomCredentialDto.ts b/src/api/types/UpdateCustomCredentialDto.ts index 1ee76e61..a42eb1ea 100644 --- a/src/api/types/UpdateCustomCredentialDto.ts +++ b/src/api/types/UpdateCustomCredentialDto.ts @@ -6,17 +6,7 @@ import * as Vapi from "../index.js"; export interface UpdateCustomCredentialDto { /** This is the authentication plan. Supports OAuth2 RFC 6749, HMAC signing, and Bearer authentication. */ - authenticationPlan?: UpdateCustomCredentialDto.AuthenticationPlan; + authenticationPlan?: Vapi.UpdateCustomCredentialDtoAuthenticationPlan; /** This is the name of credential. This is just for your reference. */ name?: string; } - -export namespace UpdateCustomCredentialDto { - /** - * This is the authentication plan. Supports OAuth2 RFC 6749, HMAC signing, and Bearer authentication. - */ - export type AuthenticationPlan = - | Vapi.OAuth2AuthenticationPlan - | Vapi.HmacAuthenticationPlan - | Vapi.BearerAuthenticationPlan; -} diff --git a/src/api/types/UpdateCustomCredentialDtoAuthenticationPlan.ts b/src/api/types/UpdateCustomCredentialDtoAuthenticationPlan.ts new file mode 100644 index 00000000..eef99a4a --- /dev/null +++ b/src/api/types/UpdateCustomCredentialDtoAuthenticationPlan.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the authentication plan. Supports OAuth2 RFC 6749, HMAC signing, and Bearer authentication. + */ +export type UpdateCustomCredentialDtoAuthenticationPlan = + | Vapi.OAuth2AuthenticationPlan + | Vapi.HmacAuthenticationPlan + | Vapi.BearerAuthenticationPlan; diff --git a/src/api/types/UpdateDtmfToolDto.ts b/src/api/types/UpdateDtmfToolDto.ts index 02762578..5f184099 100644 --- a/src/api/types/UpdateDtmfToolDto.ts +++ b/src/api/types/UpdateDtmfToolDto.ts @@ -10,7 +10,7 @@ export interface UpdateDtmfToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: UpdateDtmfToolDto.Messages.Item[]; + messages?: Vapi.UpdateDtmfToolDtoMessagesItem[]; /** * This is the plan to reject a tool call based on the conversation state. * @@ -93,15 +93,3 @@ export interface UpdateDtmfToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace UpdateDtmfToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/UpdateDtmfToolDtoMessagesItem.ts b/src/api/types/UpdateDtmfToolDtoMessagesItem.ts new file mode 100644 index 00000000..9e48dea5 --- /dev/null +++ b/src/api/types/UpdateDtmfToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateDtmfToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateEndCallToolDto.ts b/src/api/types/UpdateEndCallToolDto.ts index 2537b101..18d627f2 100644 --- a/src/api/types/UpdateEndCallToolDto.ts +++ b/src/api/types/UpdateEndCallToolDto.ts @@ -10,7 +10,7 @@ export interface UpdateEndCallToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: UpdateEndCallToolDto.Messages.Item[]; + messages?: Vapi.UpdateEndCallToolDtoMessagesItem[]; /** * This is the plan to reject a tool call based on the conversation state. * @@ -93,15 +93,3 @@ export interface UpdateEndCallToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace UpdateEndCallToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/UpdateEndCallToolDtoMessagesItem.ts b/src/api/types/UpdateEndCallToolDtoMessagesItem.ts new file mode 100644 index 00000000..034bd9d4 --- /dev/null +++ b/src/api/types/UpdateEndCallToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateEndCallToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateFunctionToolDto.ts b/src/api/types/UpdateFunctionToolDto.ts index 4d090c05..c098ba13 100644 --- a/src/api/types/UpdateFunctionToolDto.ts +++ b/src/api/types/UpdateFunctionToolDto.ts @@ -10,7 +10,7 @@ export interface UpdateFunctionToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: UpdateFunctionToolDto.Messages.Item[]; + messages?: Vapi.UpdateFunctionToolDtoMessagesItem[]; /** * This determines if the tool is async. * @@ -116,15 +116,3 @@ export interface UpdateFunctionToolDto { /** This is the function definition of the tool. */ function?: Vapi.OpenAiFunction; } - -export namespace UpdateFunctionToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/UpdateFunctionToolDtoMessagesItem.ts b/src/api/types/UpdateFunctionToolDtoMessagesItem.ts new file mode 100644 index 00000000..ebd09301 --- /dev/null +++ b/src/api/types/UpdateFunctionToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateFunctionToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateGhlToolDto.ts b/src/api/types/UpdateGhlToolDto.ts index 877c491f..87439bab 100644 --- a/src/api/types/UpdateGhlToolDto.ts +++ b/src/api/types/UpdateGhlToolDto.ts @@ -10,7 +10,7 @@ export interface UpdateGhlToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: UpdateGhlToolDto.Messages.Item[]; + messages?: Vapi.UpdateGhlToolDtoMessagesItem[]; /** * This is the plan to reject a tool call based on the conversation state. * @@ -94,15 +94,3 @@ export interface UpdateGhlToolDto { rejectionPlan?: Vapi.ToolRejectionPlan; metadata?: Vapi.GhlToolMetadata; } - -export namespace UpdateGhlToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/UpdateGhlToolDtoMessagesItem.ts b/src/api/types/UpdateGhlToolDtoMessagesItem.ts new file mode 100644 index 00000000..7cbc99cd --- /dev/null +++ b/src/api/types/UpdateGhlToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateGhlToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateGoHighLevelCalendarAvailabilityToolDto.ts b/src/api/types/UpdateGoHighLevelCalendarAvailabilityToolDto.ts index 32550e38..dc1452fb 100644 --- a/src/api/types/UpdateGoHighLevelCalendarAvailabilityToolDto.ts +++ b/src/api/types/UpdateGoHighLevelCalendarAvailabilityToolDto.ts @@ -10,7 +10,7 @@ export interface UpdateGoHighLevelCalendarAvailabilityToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: UpdateGoHighLevelCalendarAvailabilityToolDto.Messages.Item[]; + messages?: Vapi.UpdateGoHighLevelCalendarAvailabilityToolDtoMessagesItem[]; /** * This is the plan to reject a tool call based on the conversation state. * @@ -93,15 +93,3 @@ export interface UpdateGoHighLevelCalendarAvailabilityToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace UpdateGoHighLevelCalendarAvailabilityToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/UpdateGoHighLevelCalendarAvailabilityToolDtoMessagesItem.ts b/src/api/types/UpdateGoHighLevelCalendarAvailabilityToolDtoMessagesItem.ts new file mode 100644 index 00000000..a7ebf750 --- /dev/null +++ b/src/api/types/UpdateGoHighLevelCalendarAvailabilityToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateGoHighLevelCalendarAvailabilityToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateGoHighLevelCalendarEventCreateToolDto.ts b/src/api/types/UpdateGoHighLevelCalendarEventCreateToolDto.ts index b5bd68be..ece49b38 100644 --- a/src/api/types/UpdateGoHighLevelCalendarEventCreateToolDto.ts +++ b/src/api/types/UpdateGoHighLevelCalendarEventCreateToolDto.ts @@ -10,7 +10,7 @@ export interface UpdateGoHighLevelCalendarEventCreateToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: UpdateGoHighLevelCalendarEventCreateToolDto.Messages.Item[]; + messages?: Vapi.UpdateGoHighLevelCalendarEventCreateToolDtoMessagesItem[]; /** * This is the plan to reject a tool call based on the conversation state. * @@ -93,15 +93,3 @@ export interface UpdateGoHighLevelCalendarEventCreateToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace UpdateGoHighLevelCalendarEventCreateToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/UpdateGoHighLevelCalendarEventCreateToolDtoMessagesItem.ts b/src/api/types/UpdateGoHighLevelCalendarEventCreateToolDtoMessagesItem.ts new file mode 100644 index 00000000..663c14d4 --- /dev/null +++ b/src/api/types/UpdateGoHighLevelCalendarEventCreateToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateGoHighLevelCalendarEventCreateToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateGoHighLevelContactCreateToolDto.ts b/src/api/types/UpdateGoHighLevelContactCreateToolDto.ts index 94fa7adf..bcfcc6b9 100644 --- a/src/api/types/UpdateGoHighLevelContactCreateToolDto.ts +++ b/src/api/types/UpdateGoHighLevelContactCreateToolDto.ts @@ -10,7 +10,7 @@ export interface UpdateGoHighLevelContactCreateToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: UpdateGoHighLevelContactCreateToolDto.Messages.Item[]; + messages?: Vapi.UpdateGoHighLevelContactCreateToolDtoMessagesItem[]; /** * This is the plan to reject a tool call based on the conversation state. * @@ -93,15 +93,3 @@ export interface UpdateGoHighLevelContactCreateToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace UpdateGoHighLevelContactCreateToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/UpdateGoHighLevelContactCreateToolDtoMessagesItem.ts b/src/api/types/UpdateGoHighLevelContactCreateToolDtoMessagesItem.ts new file mode 100644 index 00000000..115e9016 --- /dev/null +++ b/src/api/types/UpdateGoHighLevelContactCreateToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateGoHighLevelContactCreateToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateGoHighLevelContactGetToolDto.ts b/src/api/types/UpdateGoHighLevelContactGetToolDto.ts index 48b96bf0..51ca3099 100644 --- a/src/api/types/UpdateGoHighLevelContactGetToolDto.ts +++ b/src/api/types/UpdateGoHighLevelContactGetToolDto.ts @@ -10,7 +10,7 @@ export interface UpdateGoHighLevelContactGetToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: UpdateGoHighLevelContactGetToolDto.Messages.Item[]; + messages?: Vapi.UpdateGoHighLevelContactGetToolDtoMessagesItem[]; /** * This is the plan to reject a tool call based on the conversation state. * @@ -93,15 +93,3 @@ export interface UpdateGoHighLevelContactGetToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace UpdateGoHighLevelContactGetToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/UpdateGoHighLevelContactGetToolDtoMessagesItem.ts b/src/api/types/UpdateGoHighLevelContactGetToolDtoMessagesItem.ts new file mode 100644 index 00000000..92017d2e --- /dev/null +++ b/src/api/types/UpdateGoHighLevelContactGetToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateGoHighLevelContactGetToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateGoogleCalendarCheckAvailabilityToolDto.ts b/src/api/types/UpdateGoogleCalendarCheckAvailabilityToolDto.ts index b9e97604..41716e68 100644 --- a/src/api/types/UpdateGoogleCalendarCheckAvailabilityToolDto.ts +++ b/src/api/types/UpdateGoogleCalendarCheckAvailabilityToolDto.ts @@ -10,7 +10,7 @@ export interface UpdateGoogleCalendarCheckAvailabilityToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: UpdateGoogleCalendarCheckAvailabilityToolDto.Messages.Item[]; + messages?: Vapi.UpdateGoogleCalendarCheckAvailabilityToolDtoMessagesItem[]; /** * This is the plan to reject a tool call based on the conversation state. * @@ -93,15 +93,3 @@ export interface UpdateGoogleCalendarCheckAvailabilityToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace UpdateGoogleCalendarCheckAvailabilityToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/UpdateGoogleCalendarCheckAvailabilityToolDtoMessagesItem.ts b/src/api/types/UpdateGoogleCalendarCheckAvailabilityToolDtoMessagesItem.ts new file mode 100644 index 00000000..be127b94 --- /dev/null +++ b/src/api/types/UpdateGoogleCalendarCheckAvailabilityToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateGoogleCalendarCheckAvailabilityToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateGoogleCalendarCreateEventToolDto.ts b/src/api/types/UpdateGoogleCalendarCreateEventToolDto.ts index 55835ebf..53e3d039 100644 --- a/src/api/types/UpdateGoogleCalendarCreateEventToolDto.ts +++ b/src/api/types/UpdateGoogleCalendarCreateEventToolDto.ts @@ -10,7 +10,7 @@ export interface UpdateGoogleCalendarCreateEventToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: UpdateGoogleCalendarCreateEventToolDto.Messages.Item[]; + messages?: Vapi.UpdateGoogleCalendarCreateEventToolDtoMessagesItem[]; /** * This is the plan to reject a tool call based on the conversation state. * @@ -93,15 +93,3 @@ export interface UpdateGoogleCalendarCreateEventToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace UpdateGoogleCalendarCreateEventToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/UpdateGoogleCalendarCreateEventToolDtoMessagesItem.ts b/src/api/types/UpdateGoogleCalendarCreateEventToolDtoMessagesItem.ts new file mode 100644 index 00000000..9b35ff18 --- /dev/null +++ b/src/api/types/UpdateGoogleCalendarCreateEventToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateGoogleCalendarCreateEventToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateGoogleSheetsRowAppendToolDto.ts b/src/api/types/UpdateGoogleSheetsRowAppendToolDto.ts index e50b8928..e4489f10 100644 --- a/src/api/types/UpdateGoogleSheetsRowAppendToolDto.ts +++ b/src/api/types/UpdateGoogleSheetsRowAppendToolDto.ts @@ -10,7 +10,7 @@ export interface UpdateGoogleSheetsRowAppendToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: UpdateGoogleSheetsRowAppendToolDto.Messages.Item[]; + messages?: Vapi.UpdateGoogleSheetsRowAppendToolDtoMessagesItem[]; /** * This is the plan to reject a tool call based on the conversation state. * @@ -93,15 +93,3 @@ export interface UpdateGoogleSheetsRowAppendToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace UpdateGoogleSheetsRowAppendToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/UpdateGoogleSheetsRowAppendToolDtoMessagesItem.ts b/src/api/types/UpdateGoogleSheetsRowAppendToolDtoMessagesItem.ts new file mode 100644 index 00000000..2612cdf7 --- /dev/null +++ b/src/api/types/UpdateGoogleSheetsRowAppendToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateGoogleSheetsRowAppendToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateHandoffToolDto.ts b/src/api/types/UpdateHandoffToolDto.ts index 080bcbf0..37415b7f 100644 --- a/src/api/types/UpdateHandoffToolDto.ts +++ b/src/api/types/UpdateHandoffToolDto.ts @@ -10,7 +10,7 @@ export interface UpdateHandoffToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: UpdateHandoffToolDto.Messages.Item[]; + messages?: Vapi.UpdateHandoffToolDtoMessagesItem[]; /** * These are the destinations that the call can be handed off to. * @@ -180,7 +180,7 @@ export interface UpdateHandoffToolDto { * * The properties `customerAreaCode`, `customerIntent`, and `customerSentiment` will be passed to the server in the webhook request body. */ - destinations?: UpdateHandoffToolDto.Destinations.Item[]; + destinations?: Vapi.UpdateHandoffToolDtoDestinationsItem[]; /** * This is the plan to reject a tool call based on the conversation state. * @@ -365,21 +365,3 @@ export interface UpdateHandoffToolDto { */ function?: Vapi.OpenAiFunction; } - -export namespace UpdateHandoffToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } - - export type Destinations = Destinations.Item[]; - - export namespace Destinations { - export type Item = Vapi.HandoffDestinationAssistant | Vapi.HandoffDestinationDynamic; - } -} diff --git a/src/api/types/UpdateHandoffToolDtoDestinationsItem.ts b/src/api/types/UpdateHandoffToolDtoDestinationsItem.ts new file mode 100644 index 00000000..0d157add --- /dev/null +++ b/src/api/types/UpdateHandoffToolDtoDestinationsItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateHandoffToolDtoDestinationsItem = Vapi.HandoffDestinationAssistant | Vapi.HandoffDestinationDynamic; diff --git a/src/api/types/UpdateHandoffToolDtoMessagesItem.ts b/src/api/types/UpdateHandoffToolDtoMessagesItem.ts new file mode 100644 index 00000000..deabeecb --- /dev/null +++ b/src/api/types/UpdateHandoffToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateHandoffToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateMakeToolDto.ts b/src/api/types/UpdateMakeToolDto.ts index ac5293fd..4d38e9bf 100644 --- a/src/api/types/UpdateMakeToolDto.ts +++ b/src/api/types/UpdateMakeToolDto.ts @@ -10,7 +10,7 @@ export interface UpdateMakeToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: UpdateMakeToolDto.Messages.Item[]; + messages?: Vapi.UpdateMakeToolDtoMessagesItem[]; /** * This is the plan to reject a tool call based on the conversation state. * @@ -94,15 +94,3 @@ export interface UpdateMakeToolDto { rejectionPlan?: Vapi.ToolRejectionPlan; metadata?: Vapi.MakeToolMetadata; } - -export namespace UpdateMakeToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/UpdateMakeToolDtoMessagesItem.ts b/src/api/types/UpdateMakeToolDtoMessagesItem.ts new file mode 100644 index 00000000..f45d9e73 --- /dev/null +++ b/src/api/types/UpdateMakeToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateMakeToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateMcpToolDto.ts b/src/api/types/UpdateMcpToolDto.ts index 697949b0..def8d41f 100644 --- a/src/api/types/UpdateMcpToolDto.ts +++ b/src/api/types/UpdateMcpToolDto.ts @@ -10,7 +10,7 @@ export interface UpdateMcpToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: UpdateMcpToolDto.Messages.Item[]; + messages?: Vapi.UpdateMcpToolDtoMessagesItem[]; /** * This is the server where a `tool-calls` webhook will be sent. * @@ -105,15 +105,3 @@ export interface UpdateMcpToolDto { rejectionPlan?: Vapi.ToolRejectionPlan; metadata?: Vapi.McpToolMetadata; } - -export namespace UpdateMcpToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/UpdateMcpToolDtoMessagesItem.ts b/src/api/types/UpdateMcpToolDtoMessagesItem.ts new file mode 100644 index 00000000..7ce2eb6b --- /dev/null +++ b/src/api/types/UpdateMcpToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateMcpToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateOrgDto.ts b/src/api/types/UpdateOrgDto.ts index 7eae8c99..902b57c1 100644 --- a/src/api/types/UpdateOrgDto.ts +++ b/src/api/types/UpdateOrgDto.ts @@ -16,7 +16,7 @@ export interface UpdateOrgDto { /** This is the name of the org. This is just for your own reference. */ name?: string; /** This is the channel of the org. There is the cluster the API traffic for the org will be directed. */ - channel?: UpdateOrgDto.Channel; + channel?: Vapi.UpdateOrgDtoChannel; /** This is the monthly billing limit for the org. To go beyond $1000/mo, please contact us at support@vapi.ai. */ billingLimit?: number; /** @@ -41,14 +41,3 @@ export interface UpdateOrgDto { */ compliancePlan?: Vapi.CompliancePlan; } - -export namespace UpdateOrgDto { - /** - * This is the channel of the org. There is the cluster the API traffic for the org will be directed. - */ - export type Channel = "default" | "weekly"; - export const Channel = { - Default: "default", - Weekly: "weekly", - } as const; -} diff --git a/src/api/types/UpdateOrgDtoChannel.ts b/src/api/types/UpdateOrgDtoChannel.ts new file mode 100644 index 00000000..7c62d22a --- /dev/null +++ b/src/api/types/UpdateOrgDtoChannel.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the channel of the org. There is the cluster the API traffic for the org will be directed. + */ +export type UpdateOrgDtoChannel = "default" | "weekly"; +export const UpdateOrgDtoChannel = { + Default: "default", + Weekly: "weekly", +} as const; diff --git a/src/api/types/UpdateOutputToolDto.ts b/src/api/types/UpdateOutputToolDto.ts index e1b8f66b..738ea2b6 100644 --- a/src/api/types/UpdateOutputToolDto.ts +++ b/src/api/types/UpdateOutputToolDto.ts @@ -10,7 +10,7 @@ export interface UpdateOutputToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: UpdateOutputToolDto.Messages.Item[]; + messages?: Vapi.UpdateOutputToolDtoMessagesItem[]; /** * This is the plan to reject a tool call based on the conversation state. * @@ -93,15 +93,3 @@ export interface UpdateOutputToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace UpdateOutputToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/UpdateOutputToolDtoMessagesItem.ts b/src/api/types/UpdateOutputToolDtoMessagesItem.ts new file mode 100644 index 00000000..c6a82763 --- /dev/null +++ b/src/api/types/UpdateOutputToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateOutputToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateQueryToolDto.ts b/src/api/types/UpdateQueryToolDto.ts index d4eba98c..0a95c736 100644 --- a/src/api/types/UpdateQueryToolDto.ts +++ b/src/api/types/UpdateQueryToolDto.ts @@ -10,7 +10,7 @@ export interface UpdateQueryToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: UpdateQueryToolDto.Messages.Item[]; + messages?: Vapi.UpdateQueryToolDtoMessagesItem[]; /** The knowledge bases to query */ knowledgeBases?: Vapi.KnowledgeBase[]; /** @@ -95,15 +95,3 @@ export interface UpdateQueryToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace UpdateQueryToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/UpdateQueryToolDtoMessagesItem.ts b/src/api/types/UpdateQueryToolDtoMessagesItem.ts new file mode 100644 index 00000000..5840a200 --- /dev/null +++ b/src/api/types/UpdateQueryToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateQueryToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateSlackSendMessageToolDto.ts b/src/api/types/UpdateSlackSendMessageToolDto.ts index b068665d..a18e60d6 100644 --- a/src/api/types/UpdateSlackSendMessageToolDto.ts +++ b/src/api/types/UpdateSlackSendMessageToolDto.ts @@ -10,7 +10,7 @@ export interface UpdateSlackSendMessageToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: UpdateSlackSendMessageToolDto.Messages.Item[]; + messages?: Vapi.UpdateSlackSendMessageToolDtoMessagesItem[]; /** * This is the plan to reject a tool call based on the conversation state. * @@ -93,15 +93,3 @@ export interface UpdateSlackSendMessageToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace UpdateSlackSendMessageToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/UpdateSlackSendMessageToolDtoMessagesItem.ts b/src/api/types/UpdateSlackSendMessageToolDtoMessagesItem.ts new file mode 100644 index 00000000..55075653 --- /dev/null +++ b/src/api/types/UpdateSlackSendMessageToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateSlackSendMessageToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateSmsToolDto.ts b/src/api/types/UpdateSmsToolDto.ts index 8aa02e7a..f3edce3d 100644 --- a/src/api/types/UpdateSmsToolDto.ts +++ b/src/api/types/UpdateSmsToolDto.ts @@ -10,7 +10,7 @@ export interface UpdateSmsToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: UpdateSmsToolDto.Messages.Item[]; + messages?: Vapi.UpdateSmsToolDtoMessagesItem[]; /** * This is the plan to reject a tool call based on the conversation state. * @@ -93,15 +93,3 @@ export interface UpdateSmsToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace UpdateSmsToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/UpdateSmsToolDtoMessagesItem.ts b/src/api/types/UpdateSmsToolDtoMessagesItem.ts new file mode 100644 index 00000000..c85537ff --- /dev/null +++ b/src/api/types/UpdateSmsToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateSmsToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateTelnyxPhoneNumberDto.ts b/src/api/types/UpdateTelnyxPhoneNumberDto.ts index 51b055e7..251a4fd1 100644 --- a/src/api/types/UpdateTelnyxPhoneNumberDto.ts +++ b/src/api/types/UpdateTelnyxPhoneNumberDto.ts @@ -13,9 +13,9 @@ export interface UpdateTelnyxPhoneNumberDto { * * If this is not set and above conditions are met, the inbound call is hung up with an error message. */ - fallbackDestination?: UpdateTelnyxPhoneNumberDto.FallbackDestination; + fallbackDestination?: Vapi.UpdateTelnyxPhoneNumberDtoFallbackDestination; /** This is the hooks that will be used for incoming calls to this phone number. */ - hooks?: UpdateTelnyxPhoneNumberDto.Hooks.Item[]; + hooks?: Vapi.UpdateTelnyxPhoneNumberDtoHooksItem[]; /** This is the name of the phone number. This is just for your own reference. */ name?: string; /** @@ -51,20 +51,3 @@ export interface UpdateTelnyxPhoneNumberDto { /** This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups. */ credentialId?: string; } - -export namespace UpdateTelnyxPhoneNumberDto { - /** - * This is the fallback destination an inbound call will be transferred to if: - * 1. `assistantId` is not set - * 2. `squadId` is not set - * 3. and, `assistant-request` message to the `serverUrl` fails - * - * If this is not set and above conditions are met, the inbound call is hung up with an error message. - */ - export type FallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; - export type Hooks = Hooks.Item[]; - - export namespace Hooks { - export type Item = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; - } -} diff --git a/src/api/types/UpdateTelnyxPhoneNumberDtoFallbackDestination.ts b/src/api/types/UpdateTelnyxPhoneNumberDtoFallbackDestination.ts new file mode 100644 index 00000000..e0fc1060 --- /dev/null +++ b/src/api/types/UpdateTelnyxPhoneNumberDtoFallbackDestination.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the fallback destination an inbound call will be transferred to if: + * 1. `assistantId` is not set + * 2. `squadId` is not set + * 3. and, `assistant-request` message to the `serverUrl` fails + * + * If this is not set and above conditions are met, the inbound call is hung up with an error message. + */ +export type UpdateTelnyxPhoneNumberDtoFallbackDestination = + | Vapi.TransferDestinationNumber + | Vapi.TransferDestinationSip; diff --git a/src/api/types/UpdateTelnyxPhoneNumberDtoHooksItem.ts b/src/api/types/UpdateTelnyxPhoneNumberDtoHooksItem.ts new file mode 100644 index 00000000..6dbdd151 --- /dev/null +++ b/src/api/types/UpdateTelnyxPhoneNumberDtoHooksItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateTelnyxPhoneNumberDtoHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; diff --git a/src/api/types/UpdateTextEditorToolDto.ts b/src/api/types/UpdateTextEditorToolDto.ts index bd0d6468..2c015bc8 100644 --- a/src/api/types/UpdateTextEditorToolDto.ts +++ b/src/api/types/UpdateTextEditorToolDto.ts @@ -10,7 +10,7 @@ export interface UpdateTextEditorToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: UpdateTextEditorToolDto.Messages.Item[]; + messages?: Vapi.UpdateTextEditorToolDtoMessagesItem[]; /** The sub type of tool. */ subType?: "text_editor_20241022"; /** @@ -108,15 +108,3 @@ export interface UpdateTextEditorToolDto { /** The name of the tool, fixed to 'str_replace_editor' */ name?: "str_replace_editor"; } - -export namespace UpdateTextEditorToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } -} diff --git a/src/api/types/UpdateTextEditorToolDtoMessagesItem.ts b/src/api/types/UpdateTextEditorToolDtoMessagesItem.ts new file mode 100644 index 00000000..86d9e1d3 --- /dev/null +++ b/src/api/types/UpdateTextEditorToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateTextEditorToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateTokenDto.ts b/src/api/types/UpdateTokenDto.ts index e4bceed7..efb9c962 100644 --- a/src/api/types/UpdateTokenDto.ts +++ b/src/api/types/UpdateTokenDto.ts @@ -6,20 +6,9 @@ import * as Vapi from "../index.js"; export interface UpdateTokenDto { /** This is the tag for the token. It represents its scope. */ - tag?: UpdateTokenDto.Tag; + tag?: Vapi.UpdateTokenDtoTag; /** This is the name of the token. This is just for your own reference. */ name?: string; /** This are the restrictions for the token. */ restrictions?: Vapi.TokenRestrictions; } - -export namespace UpdateTokenDto { - /** - * This is the tag for the token. It represents its scope. - */ - export type Tag = "private" | "public"; - export const Tag = { - Private: "private", - Public: "public", - } as const; -} diff --git a/src/api/types/UpdateTokenDtoTag.ts b/src/api/types/UpdateTokenDtoTag.ts new file mode 100644 index 00000000..1115c9ed --- /dev/null +++ b/src/api/types/UpdateTokenDtoTag.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the tag for the token. It represents its scope. + */ +export type UpdateTokenDtoTag = "private" | "public"; +export const UpdateTokenDtoTag = { + Private: "private", + Public: "public", +} as const; diff --git a/src/api/types/UpdateToolTemplateDto.ts b/src/api/types/UpdateToolTemplateDto.ts index 8ece3142..c25e71c6 100644 --- a/src/api/types/UpdateToolTemplateDto.ts +++ b/src/api/types/UpdateToolTemplateDto.ts @@ -5,57 +5,12 @@ import * as Vapi from "../index.js"; export interface UpdateToolTemplateDto { - details?: UpdateToolTemplateDto.Details; - providerDetails?: UpdateToolTemplateDto.ProviderDetails; + details?: Vapi.UpdateToolTemplateDtoDetails; + providerDetails?: Vapi.UpdateToolTemplateDtoProviderDetails; metadata?: Vapi.ToolTemplateMetadata; - visibility?: UpdateToolTemplateDto.Visibility; + visibility?: Vapi.UpdateToolTemplateDtoVisibility; type: "tool"; /** The name of the template. This is just for your own reference. */ name?: string; - provider?: UpdateToolTemplateDto.Provider; -} - -export namespace UpdateToolTemplateDto { - export type Details = - | Vapi.CreateApiRequestToolDto - | Vapi.CreateBashToolDto - | Vapi.CreateComputerToolDto - | Vapi.CreateDtmfToolDto - | Vapi.CreateEndCallToolDto - | Vapi.CreateFunctionToolDto - | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto - | Vapi.CreateGoHighLevelCalendarEventCreateToolDto - | Vapi.CreateGoHighLevelContactCreateToolDto - | Vapi.CreateGoHighLevelContactGetToolDto - | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto - | Vapi.CreateGoogleCalendarCreateEventToolDto - | Vapi.CreateGoogleSheetsRowAppendToolDto - | Vapi.CreateHandoffToolDto - | Vapi.CreateMcpToolDto - | Vapi.CreateQueryToolDto - | Vapi.CreateSlackSendMessageToolDto - | Vapi.CreateSmsToolDto - | Vapi.CreateTextEditorToolDto - | Vapi.CreateTransferCallToolDto; - export type ProviderDetails = - | Vapi.MakeToolProviderDetails - | Vapi.GhlToolProviderDetails - | Vapi.FunctionToolProviderDetails - | Vapi.GoogleCalendarCreateEventToolProviderDetails - | Vapi.GoogleSheetsRowAppendToolProviderDetails - | Vapi.GoHighLevelCalendarAvailabilityToolProviderDetails - | Vapi.GoHighLevelCalendarEventCreateToolProviderDetails - | Vapi.GoHighLevelContactCreateToolProviderDetails - | Vapi.GoHighLevelContactGetToolProviderDetails; - export type Visibility = "public" | "private"; - export const Visibility = { - Public: "public", - Private: "private", - } as const; - export type Provider = "make" | "gohighlevel" | "function"; - export const Provider = { - Make: "make", - Gohighlevel: "gohighlevel", - Function: "function", - } as const; + provider?: Vapi.UpdateToolTemplateDtoProvider; } diff --git a/src/api/types/UpdateToolTemplateDtoDetails.ts b/src/api/types/UpdateToolTemplateDtoDetails.ts new file mode 100644 index 00000000..05af9341 --- /dev/null +++ b/src/api/types/UpdateToolTemplateDtoDetails.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateToolTemplateDtoDetails = + | Vapi.CreateApiRequestToolDto + | Vapi.CreateBashToolDto + | Vapi.CreateComputerToolDto + | Vapi.CreateDtmfToolDto + | Vapi.CreateEndCallToolDto + | Vapi.CreateFunctionToolDto + | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto + | Vapi.CreateGoHighLevelCalendarEventCreateToolDto + | Vapi.CreateGoHighLevelContactCreateToolDto + | Vapi.CreateGoHighLevelContactGetToolDto + | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto + | Vapi.CreateGoogleCalendarCreateEventToolDto + | Vapi.CreateGoogleSheetsRowAppendToolDto + | Vapi.CreateHandoffToolDto + | Vapi.CreateMcpToolDto + | Vapi.CreateQueryToolDto + | Vapi.CreateSlackSendMessageToolDto + | Vapi.CreateSmsToolDto + | Vapi.CreateTextEditorToolDto + | Vapi.CreateTransferCallToolDto; diff --git a/src/api/types/UpdateToolTemplateDtoProvider.ts b/src/api/types/UpdateToolTemplateDtoProvider.ts new file mode 100644 index 00000000..c7f319b2 --- /dev/null +++ b/src/api/types/UpdateToolTemplateDtoProvider.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type UpdateToolTemplateDtoProvider = "make" | "gohighlevel" | "function"; +export const UpdateToolTemplateDtoProvider = { + Make: "make", + Gohighlevel: "gohighlevel", + Function: "function", +} as const; diff --git a/src/api/types/UpdateToolTemplateDtoProviderDetails.ts b/src/api/types/UpdateToolTemplateDtoProviderDetails.ts new file mode 100644 index 00000000..e925a1b7 --- /dev/null +++ b/src/api/types/UpdateToolTemplateDtoProviderDetails.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateToolTemplateDtoProviderDetails = + | Vapi.MakeToolProviderDetails + | Vapi.GhlToolProviderDetails + | Vapi.FunctionToolProviderDetails + | Vapi.GoogleCalendarCreateEventToolProviderDetails + | Vapi.GoogleSheetsRowAppendToolProviderDetails + | Vapi.GoHighLevelCalendarAvailabilityToolProviderDetails + | Vapi.GoHighLevelCalendarEventCreateToolProviderDetails + | Vapi.GoHighLevelContactCreateToolProviderDetails + | Vapi.GoHighLevelContactGetToolProviderDetails; diff --git a/src/api/types/UpdateToolTemplateDtoVisibility.ts b/src/api/types/UpdateToolTemplateDtoVisibility.ts new file mode 100644 index 00000000..62bb1951 --- /dev/null +++ b/src/api/types/UpdateToolTemplateDtoVisibility.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type UpdateToolTemplateDtoVisibility = "public" | "private"; +export const UpdateToolTemplateDtoVisibility = { + Public: "public", + Private: "private", +} as const; diff --git a/src/api/types/UpdateTransferCallToolDto.ts b/src/api/types/UpdateTransferCallToolDto.ts index 3415f9de..f23d1fb6 100644 --- a/src/api/types/UpdateTransferCallToolDto.ts +++ b/src/api/types/UpdateTransferCallToolDto.ts @@ -10,9 +10,9 @@ export interface UpdateTransferCallToolDto { * * For some tools, this is auto-filled based on special fields like `tool.destinations`. For others like the function tool, these can be custom configured. */ - messages?: UpdateTransferCallToolDto.Messages.Item[]; + messages?: Vapi.UpdateTransferCallToolDtoMessagesItem[]; /** These are the destinations that the call can be transferred to. If no destinations are provided, server.url will be used to get the transfer destination once the tool is called. */ - destinations?: UpdateTransferCallToolDto.Destinations.Item[]; + destinations?: Vapi.UpdateTransferCallToolDtoDestinationsItem[]; /** * This is the plan to reject a tool call based on the conversation state. * @@ -95,24 +95,3 @@ export interface UpdateTransferCallToolDto { */ rejectionPlan?: Vapi.ToolRejectionPlan; } - -export namespace UpdateTransferCallToolDto { - export type Messages = Messages.Item[]; - - export namespace Messages { - export type Item = - | Vapi.ToolMessageStart - | Vapi.ToolMessageComplete - | Vapi.ToolMessageFailed - | Vapi.ToolMessageDelayed; - } - - export type Destinations = Destinations.Item[]; - - export namespace Destinations { - export type Item = - | Vapi.TransferDestinationAssistant - | Vapi.TransferDestinationNumber - | Vapi.TransferDestinationSip; - } -} diff --git a/src/api/types/UpdateTransferCallToolDtoDestinationsItem.ts b/src/api/types/UpdateTransferCallToolDtoDestinationsItem.ts new file mode 100644 index 00000000..d634d4fc --- /dev/null +++ b/src/api/types/UpdateTransferCallToolDtoDestinationsItem.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateTransferCallToolDtoDestinationsItem = + | Vapi.TransferDestinationAssistant + | Vapi.TransferDestinationNumber + | Vapi.TransferDestinationSip; diff --git a/src/api/types/UpdateTransferCallToolDtoMessagesItem.ts b/src/api/types/UpdateTransferCallToolDtoMessagesItem.ts new file mode 100644 index 00000000..e4600537 --- /dev/null +++ b/src/api/types/UpdateTransferCallToolDtoMessagesItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateTransferCallToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateTwilioPhoneNumberDto.ts b/src/api/types/UpdateTwilioPhoneNumberDto.ts index d9998976..9bcbcf63 100644 --- a/src/api/types/UpdateTwilioPhoneNumberDto.ts +++ b/src/api/types/UpdateTwilioPhoneNumberDto.ts @@ -13,9 +13,9 @@ export interface UpdateTwilioPhoneNumberDto { * * If this is not set and above conditions are met, the inbound call is hung up with an error message. */ - fallbackDestination?: UpdateTwilioPhoneNumberDto.FallbackDestination; + fallbackDestination?: Vapi.UpdateTwilioPhoneNumberDtoFallbackDestination; /** This is the hooks that will be used for incoming calls to this phone number. */ - hooks?: UpdateTwilioPhoneNumberDto.Hooks.Item[]; + hooks?: Vapi.UpdateTwilioPhoneNumberDtoHooksItem[]; /** * Controls whether Vapi sets the messaging webhook URL on the Twilio number during import. * @@ -66,20 +66,3 @@ export interface UpdateTwilioPhoneNumberDto { /** This is the Twilio API Secret for the phone number. */ twilioApiSecret?: string; } - -export namespace UpdateTwilioPhoneNumberDto { - /** - * This is the fallback destination an inbound call will be transferred to if: - * 1. `assistantId` is not set - * 2. `squadId` is not set - * 3. and, `assistant-request` message to the `serverUrl` fails - * - * If this is not set and above conditions are met, the inbound call is hung up with an error message. - */ - export type FallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; - export type Hooks = Hooks.Item[]; - - export namespace Hooks { - export type Item = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; - } -} diff --git a/src/api/types/UpdateTwilioPhoneNumberDtoFallbackDestination.ts b/src/api/types/UpdateTwilioPhoneNumberDtoFallbackDestination.ts new file mode 100644 index 00000000..31fcf42d --- /dev/null +++ b/src/api/types/UpdateTwilioPhoneNumberDtoFallbackDestination.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the fallback destination an inbound call will be transferred to if: + * 1. `assistantId` is not set + * 2. `squadId` is not set + * 3. and, `assistant-request` message to the `serverUrl` fails + * + * If this is not set and above conditions are met, the inbound call is hung up with an error message. + */ +export type UpdateTwilioPhoneNumberDtoFallbackDestination = + | Vapi.TransferDestinationNumber + | Vapi.TransferDestinationSip; diff --git a/src/api/types/UpdateTwilioPhoneNumberDtoHooksItem.ts b/src/api/types/UpdateTwilioPhoneNumberDtoHooksItem.ts new file mode 100644 index 00000000..976af5d0 --- /dev/null +++ b/src/api/types/UpdateTwilioPhoneNumberDtoHooksItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateTwilioPhoneNumberDtoHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; diff --git a/src/api/types/UpdateUserRoleDto.ts b/src/api/types/UpdateUserRoleDto.ts index 92f7c077..27329e3f 100644 --- a/src/api/types/UpdateUserRoleDto.ts +++ b/src/api/types/UpdateUserRoleDto.ts @@ -2,16 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface UpdateUserRoleDto { userId: string; - role: UpdateUserRoleDto.Role; -} - -export namespace UpdateUserRoleDto { - export type Role = "admin" | "editor" | "viewer"; - export const Role = { - Admin: "admin", - Editor: "editor", - Viewer: "viewer", - } as const; + role: Vapi.UpdateUserRoleDtoRole; } diff --git a/src/api/types/UpdateUserRoleDtoRole.ts b/src/api/types/UpdateUserRoleDtoRole.ts new file mode 100644 index 00000000..17990fe0 --- /dev/null +++ b/src/api/types/UpdateUserRoleDtoRole.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type UpdateUserRoleDtoRole = "admin" | "editor" | "viewer"; +export const UpdateUserRoleDtoRole = { + Admin: "admin", + Editor: "editor", + Viewer: "viewer", +} as const; diff --git a/src/api/types/UpdateVapiPhoneNumberDto.ts b/src/api/types/UpdateVapiPhoneNumberDto.ts index 6f6ecea6..3a8a3c08 100644 --- a/src/api/types/UpdateVapiPhoneNumberDto.ts +++ b/src/api/types/UpdateVapiPhoneNumberDto.ts @@ -13,9 +13,9 @@ export interface UpdateVapiPhoneNumberDto { * * If this is not set and above conditions are met, the inbound call is hung up with an error message. */ - fallbackDestination?: UpdateVapiPhoneNumberDto.FallbackDestination; + fallbackDestination?: Vapi.UpdateVapiPhoneNumberDtoFallbackDestination; /** This is the hooks that will be used for incoming calls to this phone number. */ - hooks?: UpdateVapiPhoneNumberDto.Hooks.Item[]; + hooks?: Vapi.UpdateVapiPhoneNumberDtoHooksItem[]; /** This is the name of the phone number. This is just for your own reference. */ name?: string; /** @@ -59,20 +59,3 @@ export interface UpdateVapiPhoneNumberDto { */ authentication?: Vapi.SipAuthentication; } - -export namespace UpdateVapiPhoneNumberDto { - /** - * This is the fallback destination an inbound call will be transferred to if: - * 1. `assistantId` is not set - * 2. `squadId` is not set - * 3. and, `assistant-request` message to the `serverUrl` fails - * - * If this is not set and above conditions are met, the inbound call is hung up with an error message. - */ - export type FallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; - export type Hooks = Hooks.Item[]; - - export namespace Hooks { - export type Item = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; - } -} diff --git a/src/api/types/UpdateVapiPhoneNumberDtoFallbackDestination.ts b/src/api/types/UpdateVapiPhoneNumberDtoFallbackDestination.ts new file mode 100644 index 00000000..d5ebaab4 --- /dev/null +++ b/src/api/types/UpdateVapiPhoneNumberDtoFallbackDestination.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the fallback destination an inbound call will be transferred to if: + * 1. `assistantId` is not set + * 2. `squadId` is not set + * 3. and, `assistant-request` message to the `serverUrl` fails + * + * If this is not set and above conditions are met, the inbound call is hung up with an error message. + */ +export type UpdateVapiPhoneNumberDtoFallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; diff --git a/src/api/types/UpdateVapiPhoneNumberDtoHooksItem.ts b/src/api/types/UpdateVapiPhoneNumberDtoHooksItem.ts new file mode 100644 index 00000000..161f6791 --- /dev/null +++ b/src/api/types/UpdateVapiPhoneNumberDtoHooksItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateVapiPhoneNumberDtoHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; diff --git a/src/api/types/UpdateVonagePhoneNumberDto.ts b/src/api/types/UpdateVonagePhoneNumberDto.ts index 0bbb7a62..1e626331 100644 --- a/src/api/types/UpdateVonagePhoneNumberDto.ts +++ b/src/api/types/UpdateVonagePhoneNumberDto.ts @@ -13,9 +13,9 @@ export interface UpdateVonagePhoneNumberDto { * * If this is not set and above conditions are met, the inbound call is hung up with an error message. */ - fallbackDestination?: UpdateVonagePhoneNumberDto.FallbackDestination; + fallbackDestination?: Vapi.UpdateVonagePhoneNumberDtoFallbackDestination; /** This is the hooks that will be used for incoming calls to this phone number. */ - hooks?: UpdateVonagePhoneNumberDto.Hooks.Item[]; + hooks?: Vapi.UpdateVonagePhoneNumberDtoHooksItem[]; /** This is the name of the phone number. This is just for your own reference. */ name?: string; /** @@ -51,20 +51,3 @@ export interface UpdateVonagePhoneNumberDto { /** This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups. */ credentialId?: string; } - -export namespace UpdateVonagePhoneNumberDto { - /** - * This is the fallback destination an inbound call will be transferred to if: - * 1. `assistantId` is not set - * 2. `squadId` is not set - * 3. and, `assistant-request` message to the `serverUrl` fails - * - * If this is not set and above conditions are met, the inbound call is hung up with an error message. - */ - export type FallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; - export type Hooks = Hooks.Item[]; - - export namespace Hooks { - export type Item = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; - } -} diff --git a/src/api/types/UpdateVonagePhoneNumberDtoFallbackDestination.ts b/src/api/types/UpdateVonagePhoneNumberDtoFallbackDestination.ts new file mode 100644 index 00000000..d05d69a5 --- /dev/null +++ b/src/api/types/UpdateVonagePhoneNumberDtoFallbackDestination.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the fallback destination an inbound call will be transferred to if: + * 1. `assistantId` is not set + * 2. `squadId` is not set + * 3. and, `assistant-request` message to the `serverUrl` fails + * + * If this is not set and above conditions are met, the inbound call is hung up with an error message. + */ +export type UpdateVonagePhoneNumberDtoFallbackDestination = + | Vapi.TransferDestinationNumber + | Vapi.TransferDestinationSip; diff --git a/src/api/types/UpdateVonagePhoneNumberDtoHooksItem.ts b/src/api/types/UpdateVonagePhoneNumberDtoHooksItem.ts new file mode 100644 index 00000000..eb80ed71 --- /dev/null +++ b/src/api/types/UpdateVonagePhoneNumberDtoHooksItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateVonagePhoneNumberDtoHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; diff --git a/src/api/types/UpdateWebhookCredentialDto.ts b/src/api/types/UpdateWebhookCredentialDto.ts index 805661b2..f979ef49 100644 --- a/src/api/types/UpdateWebhookCredentialDto.ts +++ b/src/api/types/UpdateWebhookCredentialDto.ts @@ -6,17 +6,7 @@ import * as Vapi from "../index.js"; export interface UpdateWebhookCredentialDto { /** This is the authentication plan. Supports OAuth2 RFC 6749, HMAC signing, and Bearer authentication. */ - authenticationPlan?: UpdateWebhookCredentialDto.AuthenticationPlan; + authenticationPlan?: Vapi.UpdateWebhookCredentialDtoAuthenticationPlan; /** This is the name of credential. This is just for your reference. */ name?: string; } - -export namespace UpdateWebhookCredentialDto { - /** - * This is the authentication plan. Supports OAuth2 RFC 6749, HMAC signing, and Bearer authentication. - */ - export type AuthenticationPlan = - | Vapi.OAuth2AuthenticationPlan - | Vapi.HmacAuthenticationPlan - | Vapi.BearerAuthenticationPlan; -} diff --git a/src/api/types/UpdateWebhookCredentialDtoAuthenticationPlan.ts b/src/api/types/UpdateWebhookCredentialDtoAuthenticationPlan.ts new file mode 100644 index 00000000..8a2bf9a5 --- /dev/null +++ b/src/api/types/UpdateWebhookCredentialDtoAuthenticationPlan.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the authentication plan. Supports OAuth2 RFC 6749, HMAC signing, and Bearer authentication. + */ +export type UpdateWebhookCredentialDtoAuthenticationPlan = + | Vapi.OAuth2AuthenticationPlan + | Vapi.HmacAuthenticationPlan + | Vapi.BearerAuthenticationPlan; diff --git a/src/api/types/UpdateWorkflowDto.ts b/src/api/types/UpdateWorkflowDto.ts index 20d34698..792e7ebe 100644 --- a/src/api/types/UpdateWorkflowDto.ts +++ b/src/api/types/UpdateWorkflowDto.ts @@ -5,25 +5,25 @@ import * as Vapi from "../index.js"; export interface UpdateWorkflowDto { - nodes?: UpdateWorkflowDto.Nodes.Item[]; + nodes?: Vapi.UpdateWorkflowDtoNodesItem[]; /** * This is the model for the workflow. * * This can be overridden at node level using `nodes[n].model`. */ - model?: UpdateWorkflowDto.Model; + model?: Vapi.UpdateWorkflowDtoModel; /** * This is the transcriber for the workflow. * * This can be overridden at node level using `nodes[n].transcriber`. */ - transcriber?: UpdateWorkflowDto.Transcriber; + transcriber?: Vapi.UpdateWorkflowDtoTranscriber; /** * This is the voice for the workflow. * * This can be overridden at node level using `nodes[n].voice`. */ - voice?: UpdateWorkflowDto.Voice; + voice?: Vapi.UpdateWorkflowDtoVoice; /** * This is the plan for observability of workflow's calls. * @@ -34,13 +34,13 @@ export interface UpdateWorkflowDto { * This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. * You can also provide a custom sound by providing a URL to an audio file. */ - backgroundSound?: UpdateWorkflowDto.BackgroundSound; + backgroundSound?: Vapi.UpdateWorkflowDtoBackgroundSound; /** This is a set of actions that will be performed on certain events. */ - hooks?: UpdateWorkflowDto.Hooks.Item[]; + hooks?: Vapi.UpdateWorkflowDtoHooksItem[]; /** These are dynamic credentials that will be used for the workflow 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?: UpdateWorkflowDto.Credentials.Item[]; + credentials?: Vapi.UpdateWorkflowDtoCredentialsItem[]; /** This is the voicemail detection plan for the workflow. */ - voicemailDetection?: UpdateWorkflowDto.VoicemailDetection; + voicemailDetection?: Vapi.UpdateWorkflowDtoVoicemailDetection; /** * This is the maximum duration of the call in seconds. * @@ -120,142 +120,3 @@ export interface UpdateWorkflowDto { */ voicemailMessage?: string; } - -export namespace UpdateWorkflowDto { - export type Nodes = Nodes.Item[]; - - export namespace Nodes { - export type Item = Vapi.ConversationNode | Vapi.ToolNode; - } - - /** - * This is the model for the workflow. - * - * This can be overridden at node level using `nodes[n].model`. - */ - export type Model = - | Vapi.WorkflowOpenAiModel - | Vapi.WorkflowAnthropicModel - | Vapi.WorkflowGoogleModel - | Vapi.WorkflowCustomModel; - /** - * This is the transcriber for the workflow. - * - * This can be overridden at node level using `nodes[n].transcriber`. - */ - export type Transcriber = - | Vapi.AssemblyAiTranscriber - | Vapi.AzureSpeechTranscriber - | Vapi.CustomTranscriber - | Vapi.DeepgramTranscriber - | Vapi.ElevenLabsTranscriber - | Vapi.GladiaTranscriber - | Vapi.GoogleTranscriber - | Vapi.SpeechmaticsTranscriber - | Vapi.TalkscriberTranscriber - | Vapi.OpenAiTranscriber - | Vapi.CartesiaTranscriber; - /** - * This is the voice for the workflow. - * - * This can be overridden at node level using `nodes[n].voice`. - */ - export type Voice = - | Vapi.AzureVoice - | Vapi.CartesiaVoice - | Vapi.CustomVoice - | Vapi.DeepgramVoice - | Vapi.ElevenLabsVoice - | Vapi.HumeVoice - | Vapi.LmntVoice - | Vapi.NeuphonicVoice - | Vapi.OpenAiVoice - | Vapi.PlayHtVoice - | Vapi.RimeAiVoice - | Vapi.SmallestAiVoice - | Vapi.TavusVoice - | Vapi.VapiVoice - | Vapi.SesameVoice - | Vapi.InworldVoice - | Vapi.MinimaxVoice; - /** - * This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. - * You can also provide a custom sound by providing a URL to an audio file. - */ - export type BackgroundSound = ("off" | "office") | string; - export type Hooks = Hooks.Item[]; - - export namespace Hooks { - export type Item = - | Vapi.CallHookCallEnding - | Vapi.CallHookAssistantSpeechInterrupted - | Vapi.CallHookCustomerSpeechInterrupted - | Vapi.CallHookCustomerSpeechTimeout; - } - - export type Credentials = Credentials.Item[]; - - export namespace Credentials { - export type Item = - | Vapi.CreateElevenLabsCredentialDto - | Vapi.CreateAnthropicCredentialDto - | Vapi.CreateAnyscaleCredentialDto - | Vapi.CreateAssemblyAiCredentialDto - | Vapi.CreateAzureOpenAiCredentialDto - | Vapi.CreateAzureCredentialDto - | Vapi.CreateByoSipTrunkCredentialDto - | Vapi.CreateCartesiaCredentialDto - | Vapi.CreateCerebrasCredentialDto - | Vapi.CreateCloudflareCredentialDto - | Vapi.CreateCustomLlmCredentialDto - | Vapi.CreateDeepgramCredentialDto - | Vapi.CreateDeepInfraCredentialDto - | Vapi.CreateDeepSeekCredentialDto - | Vapi.CreateGcpCredentialDto - | Vapi.CreateGladiaCredentialDto - | Vapi.CreateGoHighLevelCredentialDto - | Vapi.CreateGoogleCredentialDto - | Vapi.CreateGroqCredentialDto - | Vapi.CreateInflectionAiCredentialDto - | Vapi.CreateLangfuseCredentialDto - | Vapi.CreateLmntCredentialDto - | Vapi.CreateMakeCredentialDto - | Vapi.CreateOpenAiCredentialDto - | Vapi.CreateOpenRouterCredentialDto - | Vapi.CreatePerplexityAiCredentialDto - | Vapi.CreatePlayHtCredentialDto - | Vapi.CreateRimeAiCredentialDto - | Vapi.CreateRunpodCredentialDto - | Vapi.CreateS3CredentialDto - | Vapi.CreateSupabaseCredentialDto - | Vapi.CreateSmallestAiCredentialDto - | Vapi.CreateTavusCredentialDto - | Vapi.CreateTogetherAiCredentialDto - | Vapi.CreateTwilioCredentialDto - | Vapi.CreateVonageCredentialDto - | Vapi.CreateWebhookCredentialDto - | Vapi.CreateCustomCredentialDto - | Vapi.CreateXAiCredentialDto - | Vapi.CreateNeuphonicCredentialDto - | Vapi.CreateHumeCredentialDto - | Vapi.CreateMistralCredentialDto - | Vapi.CreateSpeechmaticsCredentialDto - | Vapi.CreateTrieveCredentialDto - | Vapi.CreateGoogleCalendarOAuth2ClientCredentialDto - | Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDto - | Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDto - | Vapi.CreateSlackOAuth2AuthorizationCredentialDto - | Vapi.CreateGoHighLevelMcpCredentialDto - | Vapi.CreateInworldCredentialDto - | Vapi.CreateMinimaxCredentialDto; - } - - /** - * This is the voicemail detection plan for the workflow. - */ - export type VoicemailDetection = - | Vapi.GoogleVoicemailDetectionPlan - | Vapi.OpenAiVoicemailDetectionPlan - | Vapi.TwilioVoicemailDetectionPlan - | Vapi.VapiVoicemailDetectionPlan; -} diff --git a/src/api/types/UpdateWorkflowDtoBackgroundSound.ts b/src/api/types/UpdateWorkflowDtoBackgroundSound.ts new file mode 100644 index 00000000..2feb0050 --- /dev/null +++ b/src/api/types/UpdateWorkflowDtoBackgroundSound.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. + * You can also provide a custom sound by providing a URL to an audio file. + */ +export type UpdateWorkflowDtoBackgroundSound = Vapi.UpdateWorkflowDtoBackgroundSoundZero | string; diff --git a/src/api/types/UpdateWorkflowDtoBackgroundSoundZero.ts b/src/api/types/UpdateWorkflowDtoBackgroundSoundZero.ts new file mode 100644 index 00000000..a881636c --- /dev/null +++ b/src/api/types/UpdateWorkflowDtoBackgroundSoundZero.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type UpdateWorkflowDtoBackgroundSoundZero = "off" | "office"; +export const UpdateWorkflowDtoBackgroundSoundZero = { + Off: "off", + Office: "office", +} as const; diff --git a/src/api/types/UpdateWorkflowDtoCredentialsItem.ts b/src/api/types/UpdateWorkflowDtoCredentialsItem.ts new file mode 100644 index 00000000..3d16c22b --- /dev/null +++ b/src/api/types/UpdateWorkflowDtoCredentialsItem.ts @@ -0,0 +1,58 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateWorkflowDtoCredentialsItem = + | Vapi.CreateElevenLabsCredentialDto + | Vapi.CreateAnthropicCredentialDto + | Vapi.CreateAnyscaleCredentialDto + | Vapi.CreateAssemblyAiCredentialDto + | Vapi.CreateAzureOpenAiCredentialDto + | Vapi.CreateAzureCredentialDto + | Vapi.CreateByoSipTrunkCredentialDto + | Vapi.CreateCartesiaCredentialDto + | Vapi.CreateCerebrasCredentialDto + | Vapi.CreateCloudflareCredentialDto + | Vapi.CreateCustomLlmCredentialDto + | Vapi.CreateDeepgramCredentialDto + | Vapi.CreateDeepInfraCredentialDto + | Vapi.CreateDeepSeekCredentialDto + | Vapi.CreateGcpCredentialDto + | Vapi.CreateGladiaCredentialDto + | Vapi.CreateGoHighLevelCredentialDto + | Vapi.CreateGoogleCredentialDto + | Vapi.CreateGroqCredentialDto + | Vapi.CreateInflectionAiCredentialDto + | Vapi.CreateLangfuseCredentialDto + | Vapi.CreateLmntCredentialDto + | Vapi.CreateMakeCredentialDto + | Vapi.CreateOpenAiCredentialDto + | Vapi.CreateOpenRouterCredentialDto + | Vapi.CreatePerplexityAiCredentialDto + | Vapi.CreatePlayHtCredentialDto + | Vapi.CreateRimeAiCredentialDto + | Vapi.CreateRunpodCredentialDto + | Vapi.CreateS3CredentialDto + | Vapi.CreateSupabaseCredentialDto + | Vapi.CreateSmallestAiCredentialDto + | Vapi.CreateTavusCredentialDto + | Vapi.CreateTogetherAiCredentialDto + | Vapi.CreateTwilioCredentialDto + | Vapi.CreateVonageCredentialDto + | Vapi.CreateWebhookCredentialDto + | Vapi.CreateCustomCredentialDto + | Vapi.CreateXAiCredentialDto + | Vapi.CreateNeuphonicCredentialDto + | Vapi.CreateHumeCredentialDto + | Vapi.CreateMistralCredentialDto + | Vapi.CreateSpeechmaticsCredentialDto + | Vapi.CreateTrieveCredentialDto + | Vapi.CreateGoogleCalendarOAuth2ClientCredentialDto + | Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDto + | Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDto + | Vapi.CreateSlackOAuth2AuthorizationCredentialDto + | Vapi.CreateGoHighLevelMcpCredentialDto + | Vapi.CreateInworldCredentialDto + | Vapi.CreateMinimaxCredentialDto; diff --git a/src/api/types/UpdateWorkflowDtoHooksItem.ts b/src/api/types/UpdateWorkflowDtoHooksItem.ts new file mode 100644 index 00000000..44ca0acc --- /dev/null +++ b/src/api/types/UpdateWorkflowDtoHooksItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateWorkflowDtoHooksItem = + | Vapi.CallHookCallEnding + | Vapi.CallHookAssistantSpeechInterrupted + | Vapi.CallHookCustomerSpeechInterrupted + | Vapi.CallHookCustomerSpeechTimeout; diff --git a/src/api/types/UpdateWorkflowDtoModel.ts b/src/api/types/UpdateWorkflowDtoModel.ts new file mode 100644 index 00000000..3ccd984c --- /dev/null +++ b/src/api/types/UpdateWorkflowDtoModel.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the model for the workflow. + * + * This can be overridden at node level using `nodes[n].model`. + */ +export type UpdateWorkflowDtoModel = + | Vapi.WorkflowOpenAiModel + | Vapi.WorkflowAnthropicModel + | Vapi.WorkflowGoogleModel + | Vapi.WorkflowCustomModel; diff --git a/src/api/types/UpdateWorkflowDtoNodesItem.ts b/src/api/types/UpdateWorkflowDtoNodesItem.ts new file mode 100644 index 00000000..8e2fb631 --- /dev/null +++ b/src/api/types/UpdateWorkflowDtoNodesItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type UpdateWorkflowDtoNodesItem = Vapi.ConversationNode | Vapi.ToolNode; diff --git a/src/api/types/UpdateWorkflowDtoTranscriber.ts b/src/api/types/UpdateWorkflowDtoTranscriber.ts new file mode 100644 index 00000000..a5376ce9 --- /dev/null +++ b/src/api/types/UpdateWorkflowDtoTranscriber.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the transcriber for the workflow. + * + * This can be overridden at node level using `nodes[n].transcriber`. + */ +export type UpdateWorkflowDtoTranscriber = + | Vapi.AssemblyAiTranscriber + | Vapi.AzureSpeechTranscriber + | Vapi.CustomTranscriber + | Vapi.DeepgramTranscriber + | Vapi.ElevenLabsTranscriber + | Vapi.GladiaTranscriber + | Vapi.GoogleTranscriber + | Vapi.SpeechmaticsTranscriber + | Vapi.TalkscriberTranscriber + | Vapi.OpenAiTranscriber + | Vapi.CartesiaTranscriber; diff --git a/src/api/types/UpdateWorkflowDtoVoice.ts b/src/api/types/UpdateWorkflowDtoVoice.ts new file mode 100644 index 00000000..4d3d8ece --- /dev/null +++ b/src/api/types/UpdateWorkflowDtoVoice.ts @@ -0,0 +1,29 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the voice for the workflow. + * + * This can be overridden at node level using `nodes[n].voice`. + */ +export type UpdateWorkflowDtoVoice = + | Vapi.AzureVoice + | Vapi.CartesiaVoice + | Vapi.CustomVoice + | Vapi.DeepgramVoice + | Vapi.ElevenLabsVoice + | Vapi.HumeVoice + | Vapi.LmntVoice + | Vapi.NeuphonicVoice + | Vapi.OpenAiVoice + | Vapi.PlayHtVoice + | Vapi.RimeAiVoice + | Vapi.SmallestAiVoice + | Vapi.TavusVoice + | Vapi.VapiVoice + | Vapi.SesameVoice + | Vapi.InworldVoice + | Vapi.MinimaxVoice; diff --git a/src/api/types/UpdateWorkflowDtoVoicemailDetection.ts b/src/api/types/UpdateWorkflowDtoVoicemailDetection.ts new file mode 100644 index 00000000..19ebd324 --- /dev/null +++ b/src/api/types/UpdateWorkflowDtoVoicemailDetection.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the voicemail detection plan for the workflow. + */ +export type UpdateWorkflowDtoVoicemailDetection = + | Vapi.GoogleVoicemailDetectionPlan + | Vapi.OpenAiVoicemailDetectionPlan + | Vapi.TwilioVoicemailDetectionPlan + | Vapi.VapiVoicemailDetectionPlan; diff --git a/src/api/types/VapiCost.ts b/src/api/types/VapiCost.ts index c433f5e0..7b55b70b 100644 --- a/src/api/types/VapiCost.ts +++ b/src/api/types/VapiCost.ts @@ -2,24 +2,15 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface VapiCost { /** This is the type of cost, always 'vapi' for this class. */ type: "vapi"; /** This is the sub type of the cost. */ - subType: VapiCost.SubType; + subType: Vapi.VapiCostSubType; /** This is the minutes of Vapi usage. This should match `call.endedAt` - `call.startedAt`. */ minutes: number; /** This is the cost of the component in USD. */ cost: number; } - -export namespace VapiCost { - /** - * This is the sub type of the cost. - */ - export type SubType = "normal" | "overage"; - export const SubType = { - Normal: "normal", - Overage: "overage", - } as const; -} diff --git a/src/api/types/VapiCostSubType.ts b/src/api/types/VapiCostSubType.ts new file mode 100644 index 00000000..a03c0ae2 --- /dev/null +++ b/src/api/types/VapiCostSubType.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the sub type of the cost. + */ +export type VapiCostSubType = "normal" | "overage"; +export const VapiCostSubType = { + Normal: "normal", + Overage: "overage", +} as const; diff --git a/src/api/types/VapiModel.ts b/src/api/types/VapiModel.ts index 4798988c..519ddfa9 100644 --- a/src/api/types/VapiModel.ts +++ b/src/api/types/VapiModel.ts @@ -12,7 +12,7 @@ export interface VapiModel { * * Both `tools` and `toolIds` can be used together. */ - tools?: VapiModel.Tools.Item[]; + tools?: Vapi.VapiModelToolsItem[]; /** * These are the tools that the assistant can use during the call. To use transient tools, use `tools`. * @@ -49,31 +49,3 @@ export interface VapiModel { */ numFastTurns?: number; } - -export namespace VapiModel { - export type Tools = Tools.Item[]; - - export namespace Tools { - export type Item = - | Vapi.CreateApiRequestToolDto - | Vapi.CreateBashToolDto - | Vapi.CreateComputerToolDto - | Vapi.CreateDtmfToolDto - | Vapi.CreateEndCallToolDto - | Vapi.CreateFunctionToolDto - | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto - | Vapi.CreateGoHighLevelCalendarEventCreateToolDto - | Vapi.CreateGoHighLevelContactCreateToolDto - | Vapi.CreateGoHighLevelContactGetToolDto - | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto - | Vapi.CreateGoogleCalendarCreateEventToolDto - | Vapi.CreateGoogleSheetsRowAppendToolDto - | Vapi.CreateHandoffToolDto - | Vapi.CreateMcpToolDto - | Vapi.CreateQueryToolDto - | Vapi.CreateSlackSendMessageToolDto - | Vapi.CreateSmsToolDto - | Vapi.CreateTextEditorToolDto - | Vapi.CreateTransferCallToolDto; - } -} diff --git a/src/api/types/VapiModelToolsItem.ts b/src/api/types/VapiModelToolsItem.ts new file mode 100644 index 00000000..d0a4520a --- /dev/null +++ b/src/api/types/VapiModelToolsItem.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type VapiModelToolsItem = + | Vapi.CreateApiRequestToolDto + | Vapi.CreateBashToolDto + | Vapi.CreateComputerToolDto + | Vapi.CreateDtmfToolDto + | Vapi.CreateEndCallToolDto + | Vapi.CreateFunctionToolDto + | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto + | Vapi.CreateGoHighLevelCalendarEventCreateToolDto + | Vapi.CreateGoHighLevelContactCreateToolDto + | Vapi.CreateGoHighLevelContactGetToolDto + | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto + | Vapi.CreateGoogleCalendarCreateEventToolDto + | Vapi.CreateGoogleSheetsRowAppendToolDto + | Vapi.CreateHandoffToolDto + | Vapi.CreateMcpToolDto + | Vapi.CreateQueryToolDto + | Vapi.CreateSlackSendMessageToolDto + | Vapi.CreateSmsToolDto + | Vapi.CreateTextEditorToolDto + | Vapi.CreateTransferCallToolDto; diff --git a/src/api/types/VapiPhoneNumber.ts b/src/api/types/VapiPhoneNumber.ts index 488569c6..accaa0e6 100644 --- a/src/api/types/VapiPhoneNumber.ts +++ b/src/api/types/VapiPhoneNumber.ts @@ -13,9 +13,9 @@ export interface VapiPhoneNumber { * * If this is not set and above conditions are met, the inbound call is hung up with an error message. */ - fallbackDestination?: VapiPhoneNumber.FallbackDestination; + fallbackDestination?: Vapi.VapiPhoneNumberFallbackDestination; /** This is the hooks that will be used for incoming calls to this phone number. */ - hooks?: VapiPhoneNumber.Hooks.Item[]; + hooks?: Vapi.VapiPhoneNumberHooksItem[]; provider: "vapi"; /** This is the unique identifier for the phone number. */ id: string; @@ -26,7 +26,7 @@ export interface VapiPhoneNumber { /** This is the ISO 8601 date-time string of when the phone number was last updated. */ updatedAt: string; /** This is the status of the phone number. */ - status?: VapiPhoneNumber.Status; + status?: Vapi.VapiPhoneNumberStatus; /** These are the digits of the phone number you purchased from Vapi. */ number?: string; /** This is the name of the phone number. This is just for your own reference. */ @@ -74,30 +74,3 @@ export interface VapiPhoneNumber { */ authentication?: Vapi.SipAuthentication; } - -export namespace VapiPhoneNumber { - /** - * This is the fallback destination an inbound call will be transferred to if: - * 1. `assistantId` is not set - * 2. `squadId` is not set - * 3. and, `assistant-request` message to the `serverUrl` fails - * - * If this is not set and above conditions are met, the inbound call is hung up with an error message. - */ - export type FallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; - export type Hooks = Hooks.Item[]; - - export namespace Hooks { - export type Item = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; - } - - /** - * This is the status of the phone number. - */ - export type Status = "active" | "activating" | "blocked"; - export const Status = { - Active: "active", - Activating: "activating", - Blocked: "blocked", - } as const; -} diff --git a/src/api/types/VapiPhoneNumberFallbackDestination.ts b/src/api/types/VapiPhoneNumberFallbackDestination.ts new file mode 100644 index 00000000..347501bd --- /dev/null +++ b/src/api/types/VapiPhoneNumberFallbackDestination.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the fallback destination an inbound call will be transferred to if: + * 1. `assistantId` is not set + * 2. `squadId` is not set + * 3. and, `assistant-request` message to the `serverUrl` fails + * + * If this is not set and above conditions are met, the inbound call is hung up with an error message. + */ +export type VapiPhoneNumberFallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; diff --git a/src/api/types/VapiPhoneNumberHooksItem.ts b/src/api/types/VapiPhoneNumberHooksItem.ts new file mode 100644 index 00000000..25a4bb05 --- /dev/null +++ b/src/api/types/VapiPhoneNumberHooksItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type VapiPhoneNumberHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; diff --git a/src/api/types/VapiPhoneNumberStatus.ts b/src/api/types/VapiPhoneNumberStatus.ts new file mode 100644 index 00000000..c0beb867 --- /dev/null +++ b/src/api/types/VapiPhoneNumberStatus.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the status of the phone number. + */ +export type VapiPhoneNumberStatus = "active" | "activating" | "blocked"; +export const VapiPhoneNumberStatus = { + Active: "active", + Activating: "activating", + Blocked: "blocked", +} as const; diff --git a/src/api/types/VapiSmartEndpointingPlan.ts b/src/api/types/VapiSmartEndpointingPlan.ts index 44c3db54..3e162363 100644 --- a/src/api/types/VapiSmartEndpointingPlan.ts +++ b/src/api/types/VapiSmartEndpointingPlan.ts @@ -2,19 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface VapiSmartEndpointingPlan { /** This is the provider for the smart endpointing plan. */ - provider: VapiSmartEndpointingPlan.Provider; -} - -export namespace VapiSmartEndpointingPlan { - /** - * This is the provider for the smart endpointing plan. - */ - export type Provider = "vapi" | "livekit" | "custom-endpointing-model"; - export const Provider = { - Vapi: "vapi", - Livekit: "livekit", - CustomEndpointingModel: "custom-endpointing-model", - } as const; + provider: Vapi.VapiSmartEndpointingPlanProvider; } diff --git a/src/api/types/VapiSmartEndpointingPlanProvider.ts b/src/api/types/VapiSmartEndpointingPlanProvider.ts new file mode 100644 index 00000000..d76b8b70 --- /dev/null +++ b/src/api/types/VapiSmartEndpointingPlanProvider.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the provider for the smart endpointing plan. + */ +export type VapiSmartEndpointingPlanProvider = "vapi" | "livekit" | "custom-endpointing-model"; +export const VapiSmartEndpointingPlanProvider = { + Vapi: "vapi", + Livekit: "livekit", + CustomEndpointingModel: "custom-endpointing-model", +} as const; diff --git a/src/api/types/VapiVoice.ts b/src/api/types/VapiVoice.ts index 52cba3a3..e73bd216 100644 --- a/src/api/types/VapiVoice.ts +++ b/src/api/types/VapiVoice.ts @@ -10,7 +10,7 @@ export interface VapiVoice { /** This is the voice provider that will be used. */ provider: "vapi"; /** The voices provided by Vapi */ - voiceId: VapiVoice.VoiceId; + voiceId: Vapi.VapiVoiceVoiceId; /** * This is the speed multiplier that will be used. * @@ -22,34 +22,3 @@ export interface VapiVoice { /** This is the plan for voice provider fallbacks in the event that the primary voice provider fails. */ fallbackPlan?: Vapi.FallbackPlan; } - -export namespace VapiVoice { - /** - * The voices provided by Vapi - */ - export type VoiceId = - | "Elliot" - | "Kylie" - | "Rohan" - | "Lily" - | "Savannah" - | "Hana" - | "Neha" - | "Cole" - | "Harry" - | "Paige" - | "Spencer"; - export const VoiceId = { - Elliot: "Elliot", - Kylie: "Kylie", - Rohan: "Rohan", - Lily: "Lily", - Savannah: "Savannah", - Hana: "Hana", - Neha: "Neha", - Cole: "Cole", - Harry: "Harry", - Paige: "Paige", - Spencer: "Spencer", - } as const; -} diff --git a/src/api/types/VapiVoiceVoiceId.ts b/src/api/types/VapiVoiceVoiceId.ts new file mode 100644 index 00000000..4ced2545 --- /dev/null +++ b/src/api/types/VapiVoiceVoiceId.ts @@ -0,0 +1,32 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * The voices provided by Vapi + */ +export type VapiVoiceVoiceId = + | "Elliot" + | "Kylie" + | "Rohan" + | "Lily" + | "Savannah" + | "Hana" + | "Neha" + | "Cole" + | "Harry" + | "Paige" + | "Spencer"; +export const VapiVoiceVoiceId = { + Elliot: "Elliot", + Kylie: "Kylie", + Rohan: "Rohan", + Lily: "Lily", + Savannah: "Savannah", + Hana: "Hana", + Neha: "Neha", + Cole: "Cole", + Harry: "Harry", + Paige: "Paige", + Spencer: "Spencer", +} as const; diff --git a/src/api/types/VapiVoicemailDetectionPlan.ts b/src/api/types/VapiVoicemailDetectionPlan.ts index 00c57697..918c8768 100644 --- a/src/api/types/VapiVoicemailDetectionPlan.ts +++ b/src/api/types/VapiVoicemailDetectionPlan.ts @@ -27,19 +27,5 @@ export interface VapiVoicemailDetectionPlan { * - 'transcript': Uses ASR/transcript-based detection * @default 'audio' (audio detection) */ - type?: VapiVoicemailDetectionPlan.Type; -} - -export namespace VapiVoicemailDetectionPlan { - /** - * This is the detection type to use for voicemail detection. - * - 'audio': Uses native audio models (default) - * - 'transcript': Uses ASR/transcript-based detection - * @default 'audio' (audio detection) - */ - export type Type = "audio" | "transcript"; - export const Type = { - Audio: "audio", - Transcript: "transcript", - } as const; + type?: Vapi.VapiVoicemailDetectionPlanType; } diff --git a/src/api/types/VapiVoicemailDetectionPlanType.ts b/src/api/types/VapiVoicemailDetectionPlanType.ts new file mode 100644 index 00000000..a8c6b530 --- /dev/null +++ b/src/api/types/VapiVoicemailDetectionPlanType.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the detection type to use for voicemail detection. + * - 'audio': Uses native audio models (default) + * - 'transcript': Uses ASR/transcript-based detection + * @default 'audio' (audio detection) + */ +export type VapiVoicemailDetectionPlanType = "audio" | "transcript"; +export const VapiVoicemailDetectionPlanType = { + Audio: "audio", + Transcript: "transcript", +} as const; diff --git a/src/api/types/VoiceLibrary.ts b/src/api/types/VoiceLibrary.ts index 1a1d4449..1c126033 100644 --- a/src/api/types/VoiceLibrary.ts +++ b/src/api/types/VoiceLibrary.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface VoiceLibrary { /** This is the voice provider that will be used. */ provider?: Record; @@ -20,7 +22,7 @@ export interface VoiceLibrary { /** The supported models of the voice. */ supportedModels?: string; /** The gender of the voice. */ - gender?: VoiceLibrary.Gender; + gender?: Vapi.VoiceLibraryGender; /** The accent of the voice. */ accent?: string; /** The preview URL of the voice. */ @@ -42,14 +44,3 @@ export interface VoiceLibrary { /** The ISO 8601 date-time string of when the voice library was last updated. */ updatedAt: string; } - -export namespace VoiceLibrary { - /** - * The gender of the voice. - */ - export type Gender = "male" | "female"; - export const Gender = { - Male: "male", - Female: "female", - } as const; -} diff --git a/src/api/types/VoiceLibraryGender.ts b/src/api/types/VoiceLibraryGender.ts new file mode 100644 index 00000000..cc649328 --- /dev/null +++ b/src/api/types/VoiceLibraryGender.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * The gender of the voice. + */ +export type VoiceLibraryGender = "male" | "female"; +export const VoiceLibraryGender = { + Male: "male", + Female: "female", +} as const; diff --git a/src/api/types/VoicemailDetectionCost.ts b/src/api/types/VoicemailDetectionCost.ts index 89f098a3..25daacd7 100644 --- a/src/api/types/VoicemailDetectionCost.ts +++ b/src/api/types/VoicemailDetectionCost.ts @@ -2,13 +2,15 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface VoicemailDetectionCost { /** This is the type of cost, always 'voicemail-detection' for this class. */ type: "voicemail-detection"; /** This is the model that was used to perform the analysis. */ model: Record; /** This is the provider that was used to detect the voicemail. */ - provider: VoicemailDetectionCost.Provider; + provider: Vapi.VoicemailDetectionCostProvider; /** This is the number of prompt text tokens used in the voicemail detection. */ promptTextTokens: number; /** This is the number of prompt audio tokens used in the voicemail detection. */ @@ -20,16 +22,3 @@ export interface VoicemailDetectionCost { /** This is the cost of the component in USD. */ cost: number; } - -export namespace VoicemailDetectionCost { - /** - * This is the provider that was used to detect the voicemail. - */ - export type Provider = "twilio" | "google" | "openai" | "vapi"; - export const Provider = { - Twilio: "twilio", - Google: "google", - Openai: "openai", - Vapi: "vapi", - } as const; -} diff --git a/src/api/types/VoicemailDetectionCostProvider.ts b/src/api/types/VoicemailDetectionCostProvider.ts new file mode 100644 index 00000000..90d1781c --- /dev/null +++ b/src/api/types/VoicemailDetectionCostProvider.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the provider that was used to detect the voicemail. + */ +export type VoicemailDetectionCostProvider = "twilio" | "google" | "openai" | "vapi"; +export const VoicemailDetectionCostProvider = { + Twilio: "twilio", + Google: "google", + Openai: "openai", + Vapi: "vapi", +} as const; diff --git a/src/api/types/VonagePhoneNumber.ts b/src/api/types/VonagePhoneNumber.ts index b01de585..88d97c8b 100644 --- a/src/api/types/VonagePhoneNumber.ts +++ b/src/api/types/VonagePhoneNumber.ts @@ -13,9 +13,9 @@ export interface VonagePhoneNumber { * * If this is not set and above conditions are met, the inbound call is hung up with an error message. */ - fallbackDestination?: VonagePhoneNumber.FallbackDestination; + fallbackDestination?: Vapi.VonagePhoneNumberFallbackDestination; /** This is the hooks that will be used for incoming calls to this phone number. */ - hooks?: VonagePhoneNumber.Hooks.Item[]; + hooks?: Vapi.VonagePhoneNumberHooksItem[]; provider: "vonage"; /** This is the unique identifier for the phone number. */ id: string; @@ -26,7 +26,7 @@ export interface VonagePhoneNumber { /** This is the ISO 8601 date-time string of when the phone number was last updated. */ updatedAt: string; /** This is the status of the phone number. */ - status?: VonagePhoneNumber.Status; + status?: Vapi.VonagePhoneNumberStatus; /** This is the name of the phone number. This is just for your own reference. */ name?: string; /** @@ -62,30 +62,3 @@ export interface VonagePhoneNumber { /** This is the credential you added in dashboard.vapi.ai/keys. This is used to configure the number to send inbound calls to Vapi, make outbound calls and do live call updates like transfers and hangups. */ credentialId: string; } - -export namespace VonagePhoneNumber { - /** - * This is the fallback destination an inbound call will be transferred to if: - * 1. `assistantId` is not set - * 2. `squadId` is not set - * 3. and, `assistant-request` message to the `serverUrl` fails - * - * If this is not set and above conditions are met, the inbound call is hung up with an error message. - */ - export type FallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; - export type Hooks = Hooks.Item[]; - - export namespace Hooks { - export type Item = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; - } - - /** - * This is the status of the phone number. - */ - export type Status = "active" | "activating" | "blocked"; - export const Status = { - Active: "active", - Activating: "activating", - Blocked: "blocked", - } as const; -} diff --git a/src/api/types/VonagePhoneNumberFallbackDestination.ts b/src/api/types/VonagePhoneNumberFallbackDestination.ts new file mode 100644 index 00000000..2731adb3 --- /dev/null +++ b/src/api/types/VonagePhoneNumberFallbackDestination.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the fallback destination an inbound call will be transferred to if: + * 1. `assistantId` is not set + * 2. `squadId` is not set + * 3. and, `assistant-request` message to the `serverUrl` fails + * + * If this is not set and above conditions are met, the inbound call is hung up with an error message. + */ +export type VonagePhoneNumberFallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; diff --git a/src/api/types/VonagePhoneNumberHooksItem.ts b/src/api/types/VonagePhoneNumberHooksItem.ts new file mode 100644 index 00000000..f1c51424 --- /dev/null +++ b/src/api/types/VonagePhoneNumberHooksItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type VonagePhoneNumberHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; diff --git a/src/api/types/VonagePhoneNumberStatus.ts b/src/api/types/VonagePhoneNumberStatus.ts new file mode 100644 index 00000000..f0773bb0 --- /dev/null +++ b/src/api/types/VonagePhoneNumberStatus.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the status of the phone number. + */ +export type VonagePhoneNumberStatus = "active" | "activating" | "blocked"; +export const VonagePhoneNumberStatus = { + Active: "active", + Activating: "activating", + Blocked: "blocked", +} as const; diff --git a/src/api/types/WebChat.ts b/src/api/types/WebChat.ts index 7760b644..4528b07a 100644 --- a/src/api/types/WebChat.ts +++ b/src/api/types/WebChat.ts @@ -10,18 +10,5 @@ export interface WebChat { /** This is the ID of the session for the chat. Send it in the next chat request to continue the conversation. */ sessionId?: string; /** This is the output messages generated by the system in response to the input. */ - output: WebChat.Output.Item[]; -} - -export namespace WebChat { - export type Output = Output.Item[]; - - export namespace Output { - export type Item = - | Vapi.SystemMessage - | Vapi.UserMessage - | Vapi.AssistantMessage - | Vapi.ToolMessage - | Vapi.DeveloperMessage; - } + output: Vapi.WebChatOutputItem[]; } diff --git a/src/api/types/WebChatOutputItem.ts b/src/api/types/WebChatOutputItem.ts new file mode 100644 index 00000000..440930a9 --- /dev/null +++ b/src/api/types/WebChatOutputItem.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type WebChatOutputItem = + | Vapi.SystemMessage + | Vapi.UserMessage + | Vapi.AssistantMessage + | Vapi.ToolMessage + | Vapi.DeveloperMessage; diff --git a/src/api/types/WebhookCredential.ts b/src/api/types/WebhookCredential.ts index ce7b92aa..62f0c838 100644 --- a/src/api/types/WebhookCredential.ts +++ b/src/api/types/WebhookCredential.ts @@ -7,7 +7,7 @@ import * as Vapi from "../index.js"; export interface WebhookCredential { provider: "webhook"; /** This is the authentication plan. Supports OAuth2 RFC 6749, HMAC signing, and Bearer authentication. */ - authenticationPlan: WebhookCredential.AuthenticationPlan; + authenticationPlan: Vapi.WebhookCredentialAuthenticationPlan; /** This is the unique identifier for the credential. */ id: string; /** This is the unique identifier for the org that this credential belongs to. */ @@ -21,13 +21,3 @@ export interface WebhookCredential { /** This is the name of credential. This is just for your reference. */ name?: string; } - -export namespace WebhookCredential { - /** - * This is the authentication plan. Supports OAuth2 RFC 6749, HMAC signing, and Bearer authentication. - */ - export type AuthenticationPlan = - | Vapi.OAuth2AuthenticationPlan - | Vapi.HmacAuthenticationPlan - | Vapi.BearerAuthenticationPlan; -} diff --git a/src/api/types/WebhookCredentialAuthenticationPlan.ts b/src/api/types/WebhookCredentialAuthenticationPlan.ts new file mode 100644 index 00000000..0d730bff --- /dev/null +++ b/src/api/types/WebhookCredentialAuthenticationPlan.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the authentication plan. Supports OAuth2 RFC 6749, HMAC signing, and Bearer authentication. + */ +export type WebhookCredentialAuthenticationPlan = + | Vapi.OAuth2AuthenticationPlan + | Vapi.HmacAuthenticationPlan + | Vapi.BearerAuthenticationPlan; diff --git a/src/api/types/Workflow.ts b/src/api/types/Workflow.ts index 8798c663..3b5c56b7 100644 --- a/src/api/types/Workflow.ts +++ b/src/api/types/Workflow.ts @@ -5,25 +5,25 @@ import * as Vapi from "../index.js"; export interface Workflow { - nodes: Workflow.Nodes.Item[]; + nodes: Vapi.WorkflowNodesItem[]; /** * This is the model for the workflow. * * This can be overridden at node level using `nodes[n].model`. */ - model?: Workflow.Model; + model?: Vapi.WorkflowModel; /** * This is the transcriber for the workflow. * * This can be overridden at node level using `nodes[n].transcriber`. */ - transcriber?: Workflow.Transcriber; + transcriber?: Vapi.WorkflowTranscriber; /** * This is the voice for the workflow. * * This can be overridden at node level using `nodes[n].voice`. */ - voice?: Workflow.Voice; + voice?: Vapi.WorkflowVoice; /** * This is the plan for observability of workflow's calls. * @@ -34,13 +34,13 @@ export interface Workflow { * This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. * You can also provide a custom sound by providing a URL to an audio file. */ - backgroundSound?: Workflow.BackgroundSound; + backgroundSound?: Vapi.WorkflowBackgroundSound; /** This is a set of actions that will be performed on certain events. */ - hooks?: Workflow.Hooks.Item[]; + hooks?: Vapi.WorkflowHooksItem[]; /** These are dynamic credentials that will be used for the workflow 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?: Workflow.Credentials.Item[]; + credentials?: Vapi.WorkflowCredentialsItem[]; /** This is the voicemail detection plan for the workflow. */ - voicemailDetection?: Workflow.VoicemailDetection; + voicemailDetection?: Vapi.WorkflowVoicemailDetection; /** * This is the maximum duration of the call in seconds. * @@ -124,142 +124,3 @@ export interface Workflow { */ voicemailMessage?: string; } - -export namespace Workflow { - export type Nodes = Nodes.Item[]; - - export namespace Nodes { - export type Item = Vapi.ConversationNode | Vapi.ToolNode; - } - - /** - * This is the model for the workflow. - * - * This can be overridden at node level using `nodes[n].model`. - */ - export type Model = - | Vapi.WorkflowOpenAiModel - | Vapi.WorkflowAnthropicModel - | Vapi.WorkflowGoogleModel - | Vapi.WorkflowCustomModel; - /** - * This is the transcriber for the workflow. - * - * This can be overridden at node level using `nodes[n].transcriber`. - */ - export type Transcriber = - | Vapi.AssemblyAiTranscriber - | Vapi.AzureSpeechTranscriber - | Vapi.CustomTranscriber - | Vapi.DeepgramTranscriber - | Vapi.ElevenLabsTranscriber - | Vapi.GladiaTranscriber - | Vapi.GoogleTranscriber - | Vapi.SpeechmaticsTranscriber - | Vapi.TalkscriberTranscriber - | Vapi.OpenAiTranscriber - | Vapi.CartesiaTranscriber; - /** - * This is the voice for the workflow. - * - * This can be overridden at node level using `nodes[n].voice`. - */ - export type Voice = - | Vapi.AzureVoice - | Vapi.CartesiaVoice - | Vapi.CustomVoice - | Vapi.DeepgramVoice - | Vapi.ElevenLabsVoice - | Vapi.HumeVoice - | Vapi.LmntVoice - | Vapi.NeuphonicVoice - | Vapi.OpenAiVoice - | Vapi.PlayHtVoice - | Vapi.RimeAiVoice - | Vapi.SmallestAiVoice - | Vapi.TavusVoice - | Vapi.VapiVoice - | Vapi.SesameVoice - | Vapi.InworldVoice - | Vapi.MinimaxVoice; - /** - * This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. - * You can also provide a custom sound by providing a URL to an audio file. - */ - export type BackgroundSound = ("off" | "office") | string; - export type Hooks = Hooks.Item[]; - - export namespace Hooks { - export type Item = - | Vapi.CallHookCallEnding - | Vapi.CallHookAssistantSpeechInterrupted - | Vapi.CallHookCustomerSpeechInterrupted - | Vapi.CallHookCustomerSpeechTimeout; - } - - export type Credentials = Credentials.Item[]; - - export namespace Credentials { - export type Item = - | Vapi.CreateElevenLabsCredentialDto - | Vapi.CreateAnthropicCredentialDto - | Vapi.CreateAnyscaleCredentialDto - | Vapi.CreateAssemblyAiCredentialDto - | Vapi.CreateAzureOpenAiCredentialDto - | Vapi.CreateAzureCredentialDto - | Vapi.CreateByoSipTrunkCredentialDto - | Vapi.CreateCartesiaCredentialDto - | Vapi.CreateCerebrasCredentialDto - | Vapi.CreateCloudflareCredentialDto - | Vapi.CreateCustomLlmCredentialDto - | Vapi.CreateDeepgramCredentialDto - | Vapi.CreateDeepInfraCredentialDto - | Vapi.CreateDeepSeekCredentialDto - | Vapi.CreateGcpCredentialDto - | Vapi.CreateGladiaCredentialDto - | Vapi.CreateGoHighLevelCredentialDto - | Vapi.CreateGoogleCredentialDto - | Vapi.CreateGroqCredentialDto - | Vapi.CreateInflectionAiCredentialDto - | Vapi.CreateLangfuseCredentialDto - | Vapi.CreateLmntCredentialDto - | Vapi.CreateMakeCredentialDto - | Vapi.CreateOpenAiCredentialDto - | Vapi.CreateOpenRouterCredentialDto - | Vapi.CreatePerplexityAiCredentialDto - | Vapi.CreatePlayHtCredentialDto - | Vapi.CreateRimeAiCredentialDto - | Vapi.CreateRunpodCredentialDto - | Vapi.CreateS3CredentialDto - | Vapi.CreateSupabaseCredentialDto - | Vapi.CreateSmallestAiCredentialDto - | Vapi.CreateTavusCredentialDto - | Vapi.CreateTogetherAiCredentialDto - | Vapi.CreateTwilioCredentialDto - | Vapi.CreateVonageCredentialDto - | Vapi.CreateWebhookCredentialDto - | Vapi.CreateCustomCredentialDto - | Vapi.CreateXAiCredentialDto - | Vapi.CreateNeuphonicCredentialDto - | Vapi.CreateHumeCredentialDto - | Vapi.CreateMistralCredentialDto - | Vapi.CreateSpeechmaticsCredentialDto - | Vapi.CreateTrieveCredentialDto - | Vapi.CreateGoogleCalendarOAuth2ClientCredentialDto - | Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDto - | Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDto - | Vapi.CreateSlackOAuth2AuthorizationCredentialDto - | Vapi.CreateGoHighLevelMcpCredentialDto - | Vapi.CreateInworldCredentialDto - | Vapi.CreateMinimaxCredentialDto; - } - - /** - * This is the voicemail detection plan for the workflow. - */ - export type VoicemailDetection = - | Vapi.GoogleVoicemailDetectionPlan - | Vapi.OpenAiVoicemailDetectionPlan - | Vapi.TwilioVoicemailDetectionPlan - | Vapi.VapiVoicemailDetectionPlan; -} diff --git a/src/api/types/WorkflowAnthropicModel.ts b/src/api/types/WorkflowAnthropicModel.ts index 830bcf72..24246c62 100644 --- a/src/api/types/WorkflowAnthropicModel.ts +++ b/src/api/types/WorkflowAnthropicModel.ts @@ -8,7 +8,7 @@ export interface WorkflowAnthropicModel { /** This is the provider of the model (`anthropic`). */ provider: "anthropic"; /** This is the specific model that will be used. */ - model: WorkflowAnthropicModel.Model; + model: Vapi.WorkflowAnthropicModelModel; /** * This is the optional configuration for Anthropic's thinking feature. * @@ -21,34 +21,3 @@ export interface WorkflowAnthropicModel { /** This is the max tokens of the model. */ maxTokens?: number; } - -export namespace WorkflowAnthropicModel { - /** - * This is the specific model that will be used. - */ - export type Model = - | "claude-3-opus-20240229" - | "claude-3-sonnet-20240229" - | "claude-3-haiku-20240307" - | "claude-3-5-sonnet-20240620" - | "claude-3-5-sonnet-20241022" - | "claude-3-5-haiku-20241022" - | "claude-3-7-sonnet-20250219" - | "claude-opus-4-20250514" - | "claude-sonnet-4-20250514" - | "claude-sonnet-4-5-20250929" - | "claude-haiku-4-5-20251001"; - export const Model = { - Claude3Opus20240229: "claude-3-opus-20240229", - Claude3Sonnet20240229: "claude-3-sonnet-20240229", - Claude3Haiku20240307: "claude-3-haiku-20240307", - Claude35Sonnet20240620: "claude-3-5-sonnet-20240620", - Claude35Sonnet20241022: "claude-3-5-sonnet-20241022", - Claude35Haiku20241022: "claude-3-5-haiku-20241022", - Claude37Sonnet20250219: "claude-3-7-sonnet-20250219", - ClaudeOpus420250514: "claude-opus-4-20250514", - ClaudeSonnet420250514: "claude-sonnet-4-20250514", - ClaudeSonnet4520250929: "claude-sonnet-4-5-20250929", - ClaudeHaiku4520251001: "claude-haiku-4-5-20251001", - } as const; -} diff --git a/src/api/types/WorkflowAnthropicModelModel.ts b/src/api/types/WorkflowAnthropicModelModel.ts new file mode 100644 index 00000000..f0eeeec9 --- /dev/null +++ b/src/api/types/WorkflowAnthropicModelModel.ts @@ -0,0 +1,32 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the specific model that will be used. + */ +export type WorkflowAnthropicModelModel = + | "claude-3-opus-20240229" + | "claude-3-sonnet-20240229" + | "claude-3-haiku-20240307" + | "claude-3-5-sonnet-20240620" + | "claude-3-5-sonnet-20241022" + | "claude-3-5-haiku-20241022" + | "claude-3-7-sonnet-20250219" + | "claude-opus-4-20250514" + | "claude-sonnet-4-20250514" + | "claude-sonnet-4-5-20250929" + | "claude-haiku-4-5-20251001"; +export const WorkflowAnthropicModelModel = { + Claude3Opus20240229: "claude-3-opus-20240229", + Claude3Sonnet20240229: "claude-3-sonnet-20240229", + Claude3Haiku20240307: "claude-3-haiku-20240307", + Claude35Sonnet20240620: "claude-3-5-sonnet-20240620", + Claude35Sonnet20241022: "claude-3-5-sonnet-20241022", + Claude35Haiku20241022: "claude-3-5-haiku-20241022", + Claude37Sonnet20250219: "claude-3-7-sonnet-20250219", + ClaudeOpus420250514: "claude-opus-4-20250514", + ClaudeSonnet420250514: "claude-sonnet-4-20250514", + ClaudeSonnet4520250929: "claude-sonnet-4-5-20250929", + ClaudeHaiku4520251001: "claude-haiku-4-5-20251001", +} as const; diff --git a/src/api/types/WorkflowBackgroundSound.ts b/src/api/types/WorkflowBackgroundSound.ts new file mode 100644 index 00000000..b198608e --- /dev/null +++ b/src/api/types/WorkflowBackgroundSound.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. + * You can also provide a custom sound by providing a URL to an audio file. + */ +export type WorkflowBackgroundSound = Vapi.WorkflowBackgroundSoundZero | string; diff --git a/src/api/types/WorkflowBackgroundSoundZero.ts b/src/api/types/WorkflowBackgroundSoundZero.ts new file mode 100644 index 00000000..cab45c31 --- /dev/null +++ b/src/api/types/WorkflowBackgroundSoundZero.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type WorkflowBackgroundSoundZero = "off" | "office"; +export const WorkflowBackgroundSoundZero = { + Off: "off", + Office: "office", +} as const; diff --git a/src/api/types/WorkflowCredentialsItem.ts b/src/api/types/WorkflowCredentialsItem.ts new file mode 100644 index 00000000..0be0de1c --- /dev/null +++ b/src/api/types/WorkflowCredentialsItem.ts @@ -0,0 +1,58 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type WorkflowCredentialsItem = + | Vapi.CreateElevenLabsCredentialDto + | Vapi.CreateAnthropicCredentialDto + | Vapi.CreateAnyscaleCredentialDto + | Vapi.CreateAssemblyAiCredentialDto + | Vapi.CreateAzureOpenAiCredentialDto + | Vapi.CreateAzureCredentialDto + | Vapi.CreateByoSipTrunkCredentialDto + | Vapi.CreateCartesiaCredentialDto + | Vapi.CreateCerebrasCredentialDto + | Vapi.CreateCloudflareCredentialDto + | Vapi.CreateCustomLlmCredentialDto + | Vapi.CreateDeepgramCredentialDto + | Vapi.CreateDeepInfraCredentialDto + | Vapi.CreateDeepSeekCredentialDto + | Vapi.CreateGcpCredentialDto + | Vapi.CreateGladiaCredentialDto + | Vapi.CreateGoHighLevelCredentialDto + | Vapi.CreateGoogleCredentialDto + | Vapi.CreateGroqCredentialDto + | Vapi.CreateInflectionAiCredentialDto + | Vapi.CreateLangfuseCredentialDto + | Vapi.CreateLmntCredentialDto + | Vapi.CreateMakeCredentialDto + | Vapi.CreateOpenAiCredentialDto + | Vapi.CreateOpenRouterCredentialDto + | Vapi.CreatePerplexityAiCredentialDto + | Vapi.CreatePlayHtCredentialDto + | Vapi.CreateRimeAiCredentialDto + | Vapi.CreateRunpodCredentialDto + | Vapi.CreateS3CredentialDto + | Vapi.CreateSupabaseCredentialDto + | Vapi.CreateSmallestAiCredentialDto + | Vapi.CreateTavusCredentialDto + | Vapi.CreateTogetherAiCredentialDto + | Vapi.CreateTwilioCredentialDto + | Vapi.CreateVonageCredentialDto + | Vapi.CreateWebhookCredentialDto + | Vapi.CreateCustomCredentialDto + | Vapi.CreateXAiCredentialDto + | Vapi.CreateNeuphonicCredentialDto + | Vapi.CreateHumeCredentialDto + | Vapi.CreateMistralCredentialDto + | Vapi.CreateSpeechmaticsCredentialDto + | Vapi.CreateTrieveCredentialDto + | Vapi.CreateGoogleCalendarOAuth2ClientCredentialDto + | Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDto + | Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDto + | Vapi.CreateSlackOAuth2AuthorizationCredentialDto + | Vapi.CreateGoHighLevelMcpCredentialDto + | Vapi.CreateInworldCredentialDto + | Vapi.CreateMinimaxCredentialDto; diff --git a/src/api/types/WorkflowCustomModel.ts b/src/api/types/WorkflowCustomModel.ts index 633fec53..82031f76 100644 --- a/src/api/types/WorkflowCustomModel.ts +++ b/src/api/types/WorkflowCustomModel.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface WorkflowCustomModel { /** This is the provider of the model (`custom-llm`). */ provider: "custom-llm"; @@ -16,7 +18,7 @@ export interface WorkflowCustomModel { * * Default is `variable`. */ - metadataSendMode?: WorkflowCustomModel.MetadataSendMode; + metadataSendMode?: Vapi.WorkflowCustomModelMetadataSendMode; /** These is the URL we'll use for the OpenAI client's `baseURL`. Ex. https://openrouter.ai/api/v1 */ url: string; /** These are the headers we'll use for the OpenAI client's `headers`. */ @@ -30,23 +32,3 @@ export interface WorkflowCustomModel { /** This is the max tokens of the model. */ maxTokens?: number; } - -export namespace WorkflowCustomModel { - /** - * This determines whether metadata is sent in requests to the custom provider. - * - * - `off` will not send any metadata. payload will look like `{ messages }` - * - `variable` will send `assistant.metadata` as a variable on the payload. payload will look like `{ messages, metadata }` - * - `destructured` will send `assistant.metadata` fields directly on the payload. payload will look like `{ messages, ...metadata }` - * - * Further, `variable` and `destructured` will send `call`, `phoneNumber`, and `customer` objects in the payload. - * - * Default is `variable`. - */ - export type MetadataSendMode = "off" | "variable" | "destructured"; - export const MetadataSendMode = { - Off: "off", - Variable: "variable", - Destructured: "destructured", - } as const; -} diff --git a/src/api/types/WorkflowCustomModelMetadataSendMode.ts b/src/api/types/WorkflowCustomModelMetadataSendMode.ts new file mode 100644 index 00000000..e7f4a14e --- /dev/null +++ b/src/api/types/WorkflowCustomModelMetadataSendMode.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This determines whether metadata is sent in requests to the custom provider. + * + * - `off` will not send any metadata. payload will look like `{ messages }` + * - `variable` will send `assistant.metadata` as a variable on the payload. payload will look like `{ messages, metadata }` + * - `destructured` will send `assistant.metadata` fields directly on the payload. payload will look like `{ messages, ...metadata }` + * + * Further, `variable` and `destructured` will send `call`, `phoneNumber`, and `customer` objects in the payload. + * + * Default is `variable`. + */ +export type WorkflowCustomModelMetadataSendMode = "off" | "variable" | "destructured"; +export const WorkflowCustomModelMetadataSendMode = { + Off: "off", + Variable: "variable", + Destructured: "destructured", +} as const; diff --git a/src/api/types/WorkflowGoogleModel.ts b/src/api/types/WorkflowGoogleModel.ts index d142bb55..40b038d1 100644 --- a/src/api/types/WorkflowGoogleModel.ts +++ b/src/api/types/WorkflowGoogleModel.ts @@ -2,50 +2,15 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface WorkflowGoogleModel { /** This is the provider of the model (`google`). */ provider: "google"; /** This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b */ - model: WorkflowGoogleModel.Model; + model: Vapi.WorkflowGoogleModelModel; /** This is the temperature of the model. */ temperature?: number; /** This is the max tokens of the model. */ maxTokens?: number; } - -export namespace WorkflowGoogleModel { - /** - * This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b - */ - export type Model = - | "gemini-2.5-pro" - | "gemini-2.5-flash" - | "gemini-2.5-flash-lite" - | "gemini-2.0-flash-thinking-exp" - | "gemini-2.0-pro-exp-02-05" - | "gemini-2.0-flash" - | "gemini-2.0-flash-lite" - | "gemini-2.0-flash-exp" - | "gemini-2.0-flash-realtime-exp" - | "gemini-1.5-flash" - | "gemini-1.5-flash-002" - | "gemini-1.5-pro" - | "gemini-1.5-pro-002" - | "gemini-1.0-pro"; - export const Model = { - Gemini25Pro: "gemini-2.5-pro", - Gemini25Flash: "gemini-2.5-flash", - Gemini25FlashLite: "gemini-2.5-flash-lite", - Gemini20FlashThinkingExp: "gemini-2.0-flash-thinking-exp", - Gemini20ProExp0205: "gemini-2.0-pro-exp-02-05", - Gemini20Flash: "gemini-2.0-flash", - Gemini20FlashLite: "gemini-2.0-flash-lite", - Gemini20FlashExp: "gemini-2.0-flash-exp", - Gemini20FlashRealtimeExp: "gemini-2.0-flash-realtime-exp", - Gemini15Flash: "gemini-1.5-flash", - Gemini15Flash002: "gemini-1.5-flash-002", - Gemini15Pro: "gemini-1.5-pro", - Gemini15Pro002: "gemini-1.5-pro-002", - Gemini10Pro: "gemini-1.0-pro", - } as const; -} diff --git a/src/api/types/WorkflowGoogleModelModel.ts b/src/api/types/WorkflowGoogleModelModel.ts new file mode 100644 index 00000000..15f80863 --- /dev/null +++ b/src/api/types/WorkflowGoogleModelModel.ts @@ -0,0 +1,38 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b + */ +export type WorkflowGoogleModelModel = + | "gemini-2.5-pro" + | "gemini-2.5-flash" + | "gemini-2.5-flash-lite" + | "gemini-2.0-flash-thinking-exp" + | "gemini-2.0-pro-exp-02-05" + | "gemini-2.0-flash" + | "gemini-2.0-flash-lite" + | "gemini-2.0-flash-exp" + | "gemini-2.0-flash-realtime-exp" + | "gemini-1.5-flash" + | "gemini-1.5-flash-002" + | "gemini-1.5-pro" + | "gemini-1.5-pro-002" + | "gemini-1.0-pro"; +export const WorkflowGoogleModelModel = { + Gemini25Pro: "gemini-2.5-pro", + Gemini25Flash: "gemini-2.5-flash", + Gemini25FlashLite: "gemini-2.5-flash-lite", + Gemini20FlashThinkingExp: "gemini-2.0-flash-thinking-exp", + Gemini20ProExp0205: "gemini-2.0-pro-exp-02-05", + Gemini20Flash: "gemini-2.0-flash", + Gemini20FlashLite: "gemini-2.0-flash-lite", + Gemini20FlashExp: "gemini-2.0-flash-exp", + Gemini20FlashRealtimeExp: "gemini-2.0-flash-realtime-exp", + Gemini15Flash: "gemini-1.5-flash", + Gemini15Flash002: "gemini-1.5-flash-002", + Gemini15Pro: "gemini-1.5-pro", + Gemini15Pro002: "gemini-1.5-pro-002", + Gemini10Pro: "gemini-1.0-pro", +} as const; diff --git a/src/api/types/WorkflowHooksItem.ts b/src/api/types/WorkflowHooksItem.ts new file mode 100644 index 00000000..d7c12fbe --- /dev/null +++ b/src/api/types/WorkflowHooksItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type WorkflowHooksItem = + | Vapi.CallHookCallEnding + | Vapi.CallHookAssistantSpeechInterrupted + | Vapi.CallHookCustomerSpeechInterrupted + | Vapi.CallHookCustomerSpeechTimeout; diff --git a/src/api/types/WorkflowModel.ts b/src/api/types/WorkflowModel.ts new file mode 100644 index 00000000..c667feee --- /dev/null +++ b/src/api/types/WorkflowModel.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the model for the workflow. + * + * This can be overridden at node level using `nodes[n].model`. + */ +export type WorkflowModel = + | Vapi.WorkflowOpenAiModel + | Vapi.WorkflowAnthropicModel + | Vapi.WorkflowGoogleModel + | Vapi.WorkflowCustomModel; diff --git a/src/api/types/WorkflowNodesItem.ts b/src/api/types/WorkflowNodesItem.ts new file mode 100644 index 00000000..cefc5d4d --- /dev/null +++ b/src/api/types/WorkflowNodesItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type WorkflowNodesItem = Vapi.ConversationNode | Vapi.ToolNode; diff --git a/src/api/types/WorkflowOpenAiModel.ts b/src/api/types/WorkflowOpenAiModel.ts index b38a8bda..ed0885dd 100644 --- a/src/api/types/WorkflowOpenAiModel.ts +++ b/src/api/types/WorkflowOpenAiModel.ts @@ -2,6 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as Vapi from "../index.js"; + export interface WorkflowOpenAiModel { /** This is the provider of the model (`openai`). */ provider: "openai"; @@ -11,207 +13,9 @@ export interface WorkflowOpenAiModel { * When using Vapi OpenAI or your own Azure Credentials, you have the option to specify the region for the selected model. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest region that make sense. * This is helpful when you are required to comply with Data Residency rules. Learn more about Azure regions here https://azure.microsoft.com/en-us/explore/global-infrastructure/data-residency/. */ - model: WorkflowOpenAiModel.Model; + model: Vapi.WorkflowOpenAiModelModel; /** This is the temperature of the model. */ temperature?: number; /** This is the max tokens of the model. */ maxTokens?: number; } - -export namespace WorkflowOpenAiModel { - /** - * This is the OpenAI model that will be used. - * - * When using Vapi OpenAI or your own Azure Credentials, you have the option to specify the region for the selected model. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest region that make sense. - * This is helpful when you are required to comply with Data Residency rules. Learn more about Azure regions here https://azure.microsoft.com/en-us/explore/global-infrastructure/data-residency/. - */ - export type Model = - | "gpt-5" - | "gpt-5-mini" - | "gpt-5-nano" - | "gpt-4.1-2025-04-14" - | "gpt-4.1-mini-2025-04-14" - | "gpt-4.1-nano-2025-04-14" - | "gpt-4.1" - | "gpt-4.1-mini" - | "gpt-4.1-nano" - | "chatgpt-4o-latest" - | "o3" - | "o3-mini" - | "o4-mini" - | "o1-mini" - | "o1-mini-2024-09-12" - | "gpt-4o-mini-2024-07-18" - | "gpt-4o-mini" - | "gpt-4o" - | "gpt-4o-2024-05-13" - | "gpt-4o-2024-08-06" - | "gpt-4o-2024-11-20" - | "gpt-4-turbo" - | "gpt-4-turbo-2024-04-09" - | "gpt-4-turbo-preview" - | "gpt-4-0125-preview" - | "gpt-4-1106-preview" - | "gpt-4" - | "gpt-4-0613" - | "gpt-3.5-turbo" - | "gpt-3.5-turbo-0125" - | "gpt-3.5-turbo-1106" - | "gpt-3.5-turbo-16k" - | "gpt-3.5-turbo-0613" - | "gpt-4.1-2025-04-14:westus" - | "gpt-4.1-2025-04-14:eastus2" - | "gpt-4.1-2025-04-14:eastus" - | "gpt-4.1-2025-04-14:westus3" - | "gpt-4.1-2025-04-14:northcentralus" - | "gpt-4.1-2025-04-14:southcentralus" - | "gpt-4.1-mini-2025-04-14:westus" - | "gpt-4.1-mini-2025-04-14:eastus2" - | "gpt-4.1-mini-2025-04-14:eastus" - | "gpt-4.1-mini-2025-04-14:westus3" - | "gpt-4.1-mini-2025-04-14:northcentralus" - | "gpt-4.1-mini-2025-04-14:southcentralus" - | "gpt-4.1-nano-2025-04-14:westus" - | "gpt-4.1-nano-2025-04-14:eastus2" - | "gpt-4.1-nano-2025-04-14:westus3" - | "gpt-4.1-nano-2025-04-14:northcentralus" - | "gpt-4.1-nano-2025-04-14:southcentralus" - | "gpt-4o-2024-11-20:swedencentral" - | "gpt-4o-2024-11-20:westus" - | "gpt-4o-2024-11-20:eastus2" - | "gpt-4o-2024-11-20:eastus" - | "gpt-4o-2024-11-20:westus3" - | "gpt-4o-2024-11-20:southcentralus" - | "gpt-4o-2024-08-06:westus" - | "gpt-4o-2024-08-06:westus3" - | "gpt-4o-2024-08-06:eastus" - | "gpt-4o-2024-08-06:eastus2" - | "gpt-4o-2024-08-06:northcentralus" - | "gpt-4o-2024-08-06:southcentralus" - | "gpt-4o-mini-2024-07-18:westus" - | "gpt-4o-mini-2024-07-18:westus3" - | "gpt-4o-mini-2024-07-18:eastus" - | "gpt-4o-mini-2024-07-18:eastus2" - | "gpt-4o-mini-2024-07-18:northcentralus" - | "gpt-4o-mini-2024-07-18:southcentralus" - | "gpt-4o-2024-05-13:eastus2" - | "gpt-4o-2024-05-13:eastus" - | "gpt-4o-2024-05-13:northcentralus" - | "gpt-4o-2024-05-13:southcentralus" - | "gpt-4o-2024-05-13:westus3" - | "gpt-4o-2024-05-13:westus" - | "gpt-4-turbo-2024-04-09:eastus2" - | "gpt-4-0125-preview:eastus" - | "gpt-4-0125-preview:northcentralus" - | "gpt-4-0125-preview:southcentralus" - | "gpt-4-1106-preview:australia" - | "gpt-4-1106-preview:canadaeast" - | "gpt-4-1106-preview:france" - | "gpt-4-1106-preview:india" - | "gpt-4-1106-preview:norway" - | "gpt-4-1106-preview:swedencentral" - | "gpt-4-1106-preview:uk" - | "gpt-4-1106-preview:westus" - | "gpt-4-1106-preview:westus3" - | "gpt-4-0613:canadaeast" - | "gpt-3.5-turbo-0125:canadaeast" - | "gpt-3.5-turbo-0125:northcentralus" - | "gpt-3.5-turbo-0125:southcentralus" - | "gpt-3.5-turbo-1106:canadaeast" - | "gpt-3.5-turbo-1106:westus"; - export const Model = { - Gpt5: "gpt-5", - Gpt5Mini: "gpt-5-mini", - Gpt5Nano: "gpt-5-nano", - Gpt4120250414: "gpt-4.1-2025-04-14", - Gpt41Mini20250414: "gpt-4.1-mini-2025-04-14", - Gpt41Nano20250414: "gpt-4.1-nano-2025-04-14", - Gpt41: "gpt-4.1", - Gpt41Mini: "gpt-4.1-mini", - Gpt41Nano: "gpt-4.1-nano", - Chatgpt4OLatest: "chatgpt-4o-latest", - O3: "o3", - O3Mini: "o3-mini", - O4Mini: "o4-mini", - O1Mini: "o1-mini", - O1Mini20240912: "o1-mini-2024-09-12", - Gpt4OMini20240718: "gpt-4o-mini-2024-07-18", - Gpt4OMini: "gpt-4o-mini", - Gpt4O: "gpt-4o", - Gpt4O20240513: "gpt-4o-2024-05-13", - Gpt4O20240806: "gpt-4o-2024-08-06", - Gpt4O20241120: "gpt-4o-2024-11-20", - Gpt4Turbo: "gpt-4-turbo", - Gpt4Turbo20240409: "gpt-4-turbo-2024-04-09", - Gpt4TurboPreview: "gpt-4-turbo-preview", - Gpt40125Preview: "gpt-4-0125-preview", - Gpt41106Preview: "gpt-4-1106-preview", - Gpt4: "gpt-4", - Gpt40613: "gpt-4-0613", - Gpt35Turbo: "gpt-3.5-turbo", - Gpt35Turbo0125: "gpt-3.5-turbo-0125", - Gpt35Turbo1106: "gpt-3.5-turbo-1106", - Gpt35Turbo16K: "gpt-3.5-turbo-16k", - Gpt35Turbo0613: "gpt-3.5-turbo-0613", - Gpt4120250414Westus: "gpt-4.1-2025-04-14:westus", - Gpt4120250414Eastus2: "gpt-4.1-2025-04-14:eastus2", - Gpt4120250414Eastus: "gpt-4.1-2025-04-14:eastus", - Gpt4120250414Westus3: "gpt-4.1-2025-04-14:westus3", - Gpt4120250414Northcentralus: "gpt-4.1-2025-04-14:northcentralus", - Gpt4120250414Southcentralus: "gpt-4.1-2025-04-14:southcentralus", - Gpt41Mini20250414Westus: "gpt-4.1-mini-2025-04-14:westus", - Gpt41Mini20250414Eastus2: "gpt-4.1-mini-2025-04-14:eastus2", - Gpt41Mini20250414Eastus: "gpt-4.1-mini-2025-04-14:eastus", - Gpt41Mini20250414Westus3: "gpt-4.1-mini-2025-04-14:westus3", - Gpt41Mini20250414Northcentralus: "gpt-4.1-mini-2025-04-14:northcentralus", - Gpt41Mini20250414Southcentralus: "gpt-4.1-mini-2025-04-14:southcentralus", - Gpt41Nano20250414Westus: "gpt-4.1-nano-2025-04-14:westus", - Gpt41Nano20250414Eastus2: "gpt-4.1-nano-2025-04-14:eastus2", - Gpt41Nano20250414Westus3: "gpt-4.1-nano-2025-04-14:westus3", - Gpt41Nano20250414Northcentralus: "gpt-4.1-nano-2025-04-14:northcentralus", - Gpt41Nano20250414Southcentralus: "gpt-4.1-nano-2025-04-14:southcentralus", - Gpt4O20241120Swedencentral: "gpt-4o-2024-11-20:swedencentral", - Gpt4O20241120Westus: "gpt-4o-2024-11-20:westus", - Gpt4O20241120Eastus2: "gpt-4o-2024-11-20:eastus2", - Gpt4O20241120Eastus: "gpt-4o-2024-11-20:eastus", - Gpt4O20241120Westus3: "gpt-4o-2024-11-20:westus3", - Gpt4O20241120Southcentralus: "gpt-4o-2024-11-20:southcentralus", - Gpt4O20240806Westus: "gpt-4o-2024-08-06:westus", - Gpt4O20240806Westus3: "gpt-4o-2024-08-06:westus3", - Gpt4O20240806Eastus: "gpt-4o-2024-08-06:eastus", - Gpt4O20240806Eastus2: "gpt-4o-2024-08-06:eastus2", - Gpt4O20240806Northcentralus: "gpt-4o-2024-08-06:northcentralus", - Gpt4O20240806Southcentralus: "gpt-4o-2024-08-06:southcentralus", - Gpt4OMini20240718Westus: "gpt-4o-mini-2024-07-18:westus", - Gpt4OMini20240718Westus3: "gpt-4o-mini-2024-07-18:westus3", - Gpt4OMini20240718Eastus: "gpt-4o-mini-2024-07-18:eastus", - Gpt4OMini20240718Eastus2: "gpt-4o-mini-2024-07-18:eastus2", - Gpt4OMini20240718Northcentralus: "gpt-4o-mini-2024-07-18:northcentralus", - Gpt4OMini20240718Southcentralus: "gpt-4o-mini-2024-07-18:southcentralus", - Gpt4O20240513Eastus2: "gpt-4o-2024-05-13:eastus2", - Gpt4O20240513Eastus: "gpt-4o-2024-05-13:eastus", - Gpt4O20240513Northcentralus: "gpt-4o-2024-05-13:northcentralus", - Gpt4O20240513Southcentralus: "gpt-4o-2024-05-13:southcentralus", - Gpt4O20240513Westus3: "gpt-4o-2024-05-13:westus3", - Gpt4O20240513Westus: "gpt-4o-2024-05-13:westus", - Gpt4Turbo20240409Eastus2: "gpt-4-turbo-2024-04-09:eastus2", - Gpt40125PreviewEastus: "gpt-4-0125-preview:eastus", - Gpt40125PreviewNorthcentralus: "gpt-4-0125-preview:northcentralus", - Gpt40125PreviewSouthcentralus: "gpt-4-0125-preview:southcentralus", - Gpt41106PreviewAustralia: "gpt-4-1106-preview:australia", - Gpt41106PreviewCanadaeast: "gpt-4-1106-preview:canadaeast", - Gpt41106PreviewFrance: "gpt-4-1106-preview:france", - Gpt41106PreviewIndia: "gpt-4-1106-preview:india", - Gpt41106PreviewNorway: "gpt-4-1106-preview:norway", - Gpt41106PreviewSwedencentral: "gpt-4-1106-preview:swedencentral", - Gpt41106PreviewUk: "gpt-4-1106-preview:uk", - Gpt41106PreviewWestus: "gpt-4-1106-preview:westus", - Gpt41106PreviewWestus3: "gpt-4-1106-preview:westus3", - Gpt40613Canadaeast: "gpt-4-0613:canadaeast", - Gpt35Turbo0125Canadaeast: "gpt-3.5-turbo-0125:canadaeast", - Gpt35Turbo0125Northcentralus: "gpt-3.5-turbo-0125:northcentralus", - Gpt35Turbo0125Southcentralus: "gpt-3.5-turbo-0125:southcentralus", - Gpt35Turbo1106Canadaeast: "gpt-3.5-turbo-1106:canadaeast", - Gpt35Turbo1106Westus: "gpt-3.5-turbo-1106:westus", - } as const; -} diff --git a/src/api/types/WorkflowOpenAiModelModel.ts b/src/api/types/WorkflowOpenAiModelModel.ts new file mode 100644 index 00000000..cb476905 --- /dev/null +++ b/src/api/types/WorkflowOpenAiModelModel.ts @@ -0,0 +1,199 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the OpenAI model that will be used. + * + * When using Vapi OpenAI or your own Azure Credentials, you have the option to specify the region for the selected model. This shouldn't be specified unless you have a specific reason to do so. Vapi will automatically find the fastest region that make sense. + * This is helpful when you are required to comply with Data Residency rules. Learn more about Azure regions here https://azure.microsoft.com/en-us/explore/global-infrastructure/data-residency/. + */ +export type WorkflowOpenAiModelModel = + | "gpt-5" + | "gpt-5-mini" + | "gpt-5-nano" + | "gpt-4.1-2025-04-14" + | "gpt-4.1-mini-2025-04-14" + | "gpt-4.1-nano-2025-04-14" + | "gpt-4.1" + | "gpt-4.1-mini" + | "gpt-4.1-nano" + | "chatgpt-4o-latest" + | "o3" + | "o3-mini" + | "o4-mini" + | "o1-mini" + | "o1-mini-2024-09-12" + | "gpt-4o-mini-2024-07-18" + | "gpt-4o-mini" + | "gpt-4o" + | "gpt-4o-2024-05-13" + | "gpt-4o-2024-08-06" + | "gpt-4o-2024-11-20" + | "gpt-4-turbo" + | "gpt-4-turbo-2024-04-09" + | "gpt-4-turbo-preview" + | "gpt-4-0125-preview" + | "gpt-4-1106-preview" + | "gpt-4" + | "gpt-4-0613" + | "gpt-3.5-turbo" + | "gpt-3.5-turbo-0125" + | "gpt-3.5-turbo-1106" + | "gpt-3.5-turbo-16k" + | "gpt-3.5-turbo-0613" + | "gpt-4.1-2025-04-14:westus" + | "gpt-4.1-2025-04-14:eastus2" + | "gpt-4.1-2025-04-14:eastus" + | "gpt-4.1-2025-04-14:westus3" + | "gpt-4.1-2025-04-14:northcentralus" + | "gpt-4.1-2025-04-14:southcentralus" + | "gpt-4.1-mini-2025-04-14:westus" + | "gpt-4.1-mini-2025-04-14:eastus2" + | "gpt-4.1-mini-2025-04-14:eastus" + | "gpt-4.1-mini-2025-04-14:westus3" + | "gpt-4.1-mini-2025-04-14:northcentralus" + | "gpt-4.1-mini-2025-04-14:southcentralus" + | "gpt-4.1-nano-2025-04-14:westus" + | "gpt-4.1-nano-2025-04-14:eastus2" + | "gpt-4.1-nano-2025-04-14:westus3" + | "gpt-4.1-nano-2025-04-14:northcentralus" + | "gpt-4.1-nano-2025-04-14:southcentralus" + | "gpt-4o-2024-11-20:swedencentral" + | "gpt-4o-2024-11-20:westus" + | "gpt-4o-2024-11-20:eastus2" + | "gpt-4o-2024-11-20:eastus" + | "gpt-4o-2024-11-20:westus3" + | "gpt-4o-2024-11-20:southcentralus" + | "gpt-4o-2024-08-06:westus" + | "gpt-4o-2024-08-06:westus3" + | "gpt-4o-2024-08-06:eastus" + | "gpt-4o-2024-08-06:eastus2" + | "gpt-4o-2024-08-06:northcentralus" + | "gpt-4o-2024-08-06:southcentralus" + | "gpt-4o-mini-2024-07-18:westus" + | "gpt-4o-mini-2024-07-18:westus3" + | "gpt-4o-mini-2024-07-18:eastus" + | "gpt-4o-mini-2024-07-18:eastus2" + | "gpt-4o-mini-2024-07-18:northcentralus" + | "gpt-4o-mini-2024-07-18:southcentralus" + | "gpt-4o-2024-05-13:eastus2" + | "gpt-4o-2024-05-13:eastus" + | "gpt-4o-2024-05-13:northcentralus" + | "gpt-4o-2024-05-13:southcentralus" + | "gpt-4o-2024-05-13:westus3" + | "gpt-4o-2024-05-13:westus" + | "gpt-4-turbo-2024-04-09:eastus2" + | "gpt-4-0125-preview:eastus" + | "gpt-4-0125-preview:northcentralus" + | "gpt-4-0125-preview:southcentralus" + | "gpt-4-1106-preview:australia" + | "gpt-4-1106-preview:canadaeast" + | "gpt-4-1106-preview:france" + | "gpt-4-1106-preview:india" + | "gpt-4-1106-preview:norway" + | "gpt-4-1106-preview:swedencentral" + | "gpt-4-1106-preview:uk" + | "gpt-4-1106-preview:westus" + | "gpt-4-1106-preview:westus3" + | "gpt-4-0613:canadaeast" + | "gpt-3.5-turbo-0125:canadaeast" + | "gpt-3.5-turbo-0125:northcentralus" + | "gpt-3.5-turbo-0125:southcentralus" + | "gpt-3.5-turbo-1106:canadaeast" + | "gpt-3.5-turbo-1106:westus"; +export const WorkflowOpenAiModelModel = { + Gpt5: "gpt-5", + Gpt5Mini: "gpt-5-mini", + Gpt5Nano: "gpt-5-nano", + Gpt4120250414: "gpt-4.1-2025-04-14", + Gpt41Mini20250414: "gpt-4.1-mini-2025-04-14", + Gpt41Nano20250414: "gpt-4.1-nano-2025-04-14", + Gpt41: "gpt-4.1", + Gpt41Mini: "gpt-4.1-mini", + Gpt41Nano: "gpt-4.1-nano", + Chatgpt4OLatest: "chatgpt-4o-latest", + O3: "o3", + O3Mini: "o3-mini", + O4Mini: "o4-mini", + O1Mini: "o1-mini", + O1Mini20240912: "o1-mini-2024-09-12", + Gpt4OMini20240718: "gpt-4o-mini-2024-07-18", + Gpt4OMini: "gpt-4o-mini", + Gpt4O: "gpt-4o", + Gpt4O20240513: "gpt-4o-2024-05-13", + Gpt4O20240806: "gpt-4o-2024-08-06", + Gpt4O20241120: "gpt-4o-2024-11-20", + Gpt4Turbo: "gpt-4-turbo", + Gpt4Turbo20240409: "gpt-4-turbo-2024-04-09", + Gpt4TurboPreview: "gpt-4-turbo-preview", + Gpt40125Preview: "gpt-4-0125-preview", + Gpt41106Preview: "gpt-4-1106-preview", + Gpt4: "gpt-4", + Gpt40613: "gpt-4-0613", + Gpt35Turbo: "gpt-3.5-turbo", + Gpt35Turbo0125: "gpt-3.5-turbo-0125", + Gpt35Turbo1106: "gpt-3.5-turbo-1106", + Gpt35Turbo16K: "gpt-3.5-turbo-16k", + Gpt35Turbo0613: "gpt-3.5-turbo-0613", + Gpt4120250414Westus: "gpt-4.1-2025-04-14:westus", + Gpt4120250414Eastus2: "gpt-4.1-2025-04-14:eastus2", + Gpt4120250414Eastus: "gpt-4.1-2025-04-14:eastus", + Gpt4120250414Westus3: "gpt-4.1-2025-04-14:westus3", + Gpt4120250414Northcentralus: "gpt-4.1-2025-04-14:northcentralus", + Gpt4120250414Southcentralus: "gpt-4.1-2025-04-14:southcentralus", + Gpt41Mini20250414Westus: "gpt-4.1-mini-2025-04-14:westus", + Gpt41Mini20250414Eastus2: "gpt-4.1-mini-2025-04-14:eastus2", + Gpt41Mini20250414Eastus: "gpt-4.1-mini-2025-04-14:eastus", + Gpt41Mini20250414Westus3: "gpt-4.1-mini-2025-04-14:westus3", + Gpt41Mini20250414Northcentralus: "gpt-4.1-mini-2025-04-14:northcentralus", + Gpt41Mini20250414Southcentralus: "gpt-4.1-mini-2025-04-14:southcentralus", + Gpt41Nano20250414Westus: "gpt-4.1-nano-2025-04-14:westus", + Gpt41Nano20250414Eastus2: "gpt-4.1-nano-2025-04-14:eastus2", + Gpt41Nano20250414Westus3: "gpt-4.1-nano-2025-04-14:westus3", + Gpt41Nano20250414Northcentralus: "gpt-4.1-nano-2025-04-14:northcentralus", + Gpt41Nano20250414Southcentralus: "gpt-4.1-nano-2025-04-14:southcentralus", + Gpt4O20241120Swedencentral: "gpt-4o-2024-11-20:swedencentral", + Gpt4O20241120Westus: "gpt-4o-2024-11-20:westus", + Gpt4O20241120Eastus2: "gpt-4o-2024-11-20:eastus2", + Gpt4O20241120Eastus: "gpt-4o-2024-11-20:eastus", + Gpt4O20241120Westus3: "gpt-4o-2024-11-20:westus3", + Gpt4O20241120Southcentralus: "gpt-4o-2024-11-20:southcentralus", + Gpt4O20240806Westus: "gpt-4o-2024-08-06:westus", + Gpt4O20240806Westus3: "gpt-4o-2024-08-06:westus3", + Gpt4O20240806Eastus: "gpt-4o-2024-08-06:eastus", + Gpt4O20240806Eastus2: "gpt-4o-2024-08-06:eastus2", + Gpt4O20240806Northcentralus: "gpt-4o-2024-08-06:northcentralus", + Gpt4O20240806Southcentralus: "gpt-4o-2024-08-06:southcentralus", + Gpt4OMini20240718Westus: "gpt-4o-mini-2024-07-18:westus", + Gpt4OMini20240718Westus3: "gpt-4o-mini-2024-07-18:westus3", + Gpt4OMini20240718Eastus: "gpt-4o-mini-2024-07-18:eastus", + Gpt4OMini20240718Eastus2: "gpt-4o-mini-2024-07-18:eastus2", + Gpt4OMini20240718Northcentralus: "gpt-4o-mini-2024-07-18:northcentralus", + Gpt4OMini20240718Southcentralus: "gpt-4o-mini-2024-07-18:southcentralus", + Gpt4O20240513Eastus2: "gpt-4o-2024-05-13:eastus2", + Gpt4O20240513Eastus: "gpt-4o-2024-05-13:eastus", + Gpt4O20240513Northcentralus: "gpt-4o-2024-05-13:northcentralus", + Gpt4O20240513Southcentralus: "gpt-4o-2024-05-13:southcentralus", + Gpt4O20240513Westus3: "gpt-4o-2024-05-13:westus3", + Gpt4O20240513Westus: "gpt-4o-2024-05-13:westus", + Gpt4Turbo20240409Eastus2: "gpt-4-turbo-2024-04-09:eastus2", + Gpt40125PreviewEastus: "gpt-4-0125-preview:eastus", + Gpt40125PreviewNorthcentralus: "gpt-4-0125-preview:northcentralus", + Gpt40125PreviewSouthcentralus: "gpt-4-0125-preview:southcentralus", + Gpt41106PreviewAustralia: "gpt-4-1106-preview:australia", + Gpt41106PreviewCanadaeast: "gpt-4-1106-preview:canadaeast", + Gpt41106PreviewFrance: "gpt-4-1106-preview:france", + Gpt41106PreviewIndia: "gpt-4-1106-preview:india", + Gpt41106PreviewNorway: "gpt-4-1106-preview:norway", + Gpt41106PreviewSwedencentral: "gpt-4-1106-preview:swedencentral", + Gpt41106PreviewUk: "gpt-4-1106-preview:uk", + Gpt41106PreviewWestus: "gpt-4-1106-preview:westus", + Gpt41106PreviewWestus3: "gpt-4-1106-preview:westus3", + Gpt40613Canadaeast: "gpt-4-0613:canadaeast", + Gpt35Turbo0125Canadaeast: "gpt-3.5-turbo-0125:canadaeast", + Gpt35Turbo0125Northcentralus: "gpt-3.5-turbo-0125:northcentralus", + Gpt35Turbo0125Southcentralus: "gpt-3.5-turbo-0125:southcentralus", + Gpt35Turbo1106Canadaeast: "gpt-3.5-turbo-1106:canadaeast", + Gpt35Turbo1106Westus: "gpt-3.5-turbo-1106:westus", +} as const; diff --git a/src/api/types/WorkflowTranscriber.ts b/src/api/types/WorkflowTranscriber.ts new file mode 100644 index 00000000..e69ac4e6 --- /dev/null +++ b/src/api/types/WorkflowTranscriber.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the transcriber for the workflow. + * + * This can be overridden at node level using `nodes[n].transcriber`. + */ +export type WorkflowTranscriber = + | Vapi.AssemblyAiTranscriber + | Vapi.AzureSpeechTranscriber + | Vapi.CustomTranscriber + | Vapi.DeepgramTranscriber + | Vapi.ElevenLabsTranscriber + | Vapi.GladiaTranscriber + | Vapi.GoogleTranscriber + | Vapi.SpeechmaticsTranscriber + | Vapi.TalkscriberTranscriber + | Vapi.OpenAiTranscriber + | Vapi.CartesiaTranscriber; diff --git a/src/api/types/WorkflowUserEditable.ts b/src/api/types/WorkflowUserEditable.ts index 900b52d8..a502d21f 100644 --- a/src/api/types/WorkflowUserEditable.ts +++ b/src/api/types/WorkflowUserEditable.ts @@ -5,25 +5,25 @@ import * as Vapi from "../index.js"; export interface WorkflowUserEditable { - nodes: WorkflowUserEditable.Nodes.Item[]; + nodes: Vapi.WorkflowUserEditableNodesItem[]; /** * This is the model for the workflow. * * This can be overridden at node level using `nodes[n].model`. */ - model?: WorkflowUserEditable.Model; + model?: Vapi.WorkflowUserEditableModel; /** * This is the transcriber for the workflow. * * This can be overridden at node level using `nodes[n].transcriber`. */ - transcriber?: WorkflowUserEditable.Transcriber; + transcriber?: Vapi.WorkflowUserEditableTranscriber; /** * This is the voice for the workflow. * * This can be overridden at node level using `nodes[n].voice`. */ - voice?: WorkflowUserEditable.Voice; + voice?: Vapi.WorkflowUserEditableVoice; /** * This is the plan for observability of workflow's calls. * @@ -34,13 +34,13 @@ export interface WorkflowUserEditable { * This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. * You can also provide a custom sound by providing a URL to an audio file. */ - backgroundSound?: WorkflowUserEditable.BackgroundSound; + backgroundSound?: Vapi.WorkflowUserEditableBackgroundSound; /** This is a set of actions that will be performed on certain events. */ - hooks?: WorkflowUserEditable.Hooks.Item[]; + hooks?: Vapi.WorkflowUserEditableHooksItem[]; /** These are dynamic credentials that will be used for the workflow 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?: WorkflowUserEditable.Credentials.Item[]; + credentials?: Vapi.WorkflowUserEditableCredentialsItem[]; /** This is the voicemail detection plan for the workflow. */ - voicemailDetection?: WorkflowUserEditable.VoicemailDetection; + voicemailDetection?: Vapi.WorkflowUserEditableVoicemailDetection; /** * This is the maximum duration of the call in seconds. * @@ -120,142 +120,3 @@ export interface WorkflowUserEditable { */ voicemailMessage?: string; } - -export namespace WorkflowUserEditable { - export type Nodes = Nodes.Item[]; - - export namespace Nodes { - export type Item = Vapi.ConversationNode | Vapi.ToolNode; - } - - /** - * This is the model for the workflow. - * - * This can be overridden at node level using `nodes[n].model`. - */ - export type Model = - | Vapi.WorkflowOpenAiModel - | Vapi.WorkflowAnthropicModel - | Vapi.WorkflowGoogleModel - | Vapi.WorkflowCustomModel; - /** - * This is the transcriber for the workflow. - * - * This can be overridden at node level using `nodes[n].transcriber`. - */ - export type Transcriber = - | Vapi.AssemblyAiTranscriber - | Vapi.AzureSpeechTranscriber - | Vapi.CustomTranscriber - | Vapi.DeepgramTranscriber - | Vapi.ElevenLabsTranscriber - | Vapi.GladiaTranscriber - | Vapi.GoogleTranscriber - | Vapi.SpeechmaticsTranscriber - | Vapi.TalkscriberTranscriber - | Vapi.OpenAiTranscriber - | Vapi.CartesiaTranscriber; - /** - * This is the voice for the workflow. - * - * This can be overridden at node level using `nodes[n].voice`. - */ - export type Voice = - | Vapi.AzureVoice - | Vapi.CartesiaVoice - | Vapi.CustomVoice - | Vapi.DeepgramVoice - | Vapi.ElevenLabsVoice - | Vapi.HumeVoice - | Vapi.LmntVoice - | Vapi.NeuphonicVoice - | Vapi.OpenAiVoice - | Vapi.PlayHtVoice - | Vapi.RimeAiVoice - | Vapi.SmallestAiVoice - | Vapi.TavusVoice - | Vapi.VapiVoice - | Vapi.SesameVoice - | Vapi.InworldVoice - | Vapi.MinimaxVoice; - /** - * This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. - * You can also provide a custom sound by providing a URL to an audio file. - */ - export type BackgroundSound = ("off" | "office") | string; - export type Hooks = Hooks.Item[]; - - export namespace Hooks { - export type Item = - | Vapi.CallHookCallEnding - | Vapi.CallHookAssistantSpeechInterrupted - | Vapi.CallHookCustomerSpeechInterrupted - | Vapi.CallHookCustomerSpeechTimeout; - } - - export type Credentials = Credentials.Item[]; - - export namespace Credentials { - export type Item = - | Vapi.CreateElevenLabsCredentialDto - | Vapi.CreateAnthropicCredentialDto - | Vapi.CreateAnyscaleCredentialDto - | Vapi.CreateAssemblyAiCredentialDto - | Vapi.CreateAzureOpenAiCredentialDto - | Vapi.CreateAzureCredentialDto - | Vapi.CreateByoSipTrunkCredentialDto - | Vapi.CreateCartesiaCredentialDto - | Vapi.CreateCerebrasCredentialDto - | Vapi.CreateCloudflareCredentialDto - | Vapi.CreateCustomLlmCredentialDto - | Vapi.CreateDeepgramCredentialDto - | Vapi.CreateDeepInfraCredentialDto - | Vapi.CreateDeepSeekCredentialDto - | Vapi.CreateGcpCredentialDto - | Vapi.CreateGladiaCredentialDto - | Vapi.CreateGoHighLevelCredentialDto - | Vapi.CreateGoogleCredentialDto - | Vapi.CreateGroqCredentialDto - | Vapi.CreateInflectionAiCredentialDto - | Vapi.CreateLangfuseCredentialDto - | Vapi.CreateLmntCredentialDto - | Vapi.CreateMakeCredentialDto - | Vapi.CreateOpenAiCredentialDto - | Vapi.CreateOpenRouterCredentialDto - | Vapi.CreatePerplexityAiCredentialDto - | Vapi.CreatePlayHtCredentialDto - | Vapi.CreateRimeAiCredentialDto - | Vapi.CreateRunpodCredentialDto - | Vapi.CreateS3CredentialDto - | Vapi.CreateSupabaseCredentialDto - | Vapi.CreateSmallestAiCredentialDto - | Vapi.CreateTavusCredentialDto - | Vapi.CreateTogetherAiCredentialDto - | Vapi.CreateTwilioCredentialDto - | Vapi.CreateVonageCredentialDto - | Vapi.CreateWebhookCredentialDto - | Vapi.CreateCustomCredentialDto - | Vapi.CreateXAiCredentialDto - | Vapi.CreateNeuphonicCredentialDto - | Vapi.CreateHumeCredentialDto - | Vapi.CreateMistralCredentialDto - | Vapi.CreateSpeechmaticsCredentialDto - | Vapi.CreateTrieveCredentialDto - | Vapi.CreateGoogleCalendarOAuth2ClientCredentialDto - | Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDto - | Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDto - | Vapi.CreateSlackOAuth2AuthorizationCredentialDto - | Vapi.CreateGoHighLevelMcpCredentialDto - | Vapi.CreateInworldCredentialDto - | Vapi.CreateMinimaxCredentialDto; - } - - /** - * This is the voicemail detection plan for the workflow. - */ - export type VoicemailDetection = - | Vapi.GoogleVoicemailDetectionPlan - | Vapi.OpenAiVoicemailDetectionPlan - | Vapi.TwilioVoicemailDetectionPlan - | Vapi.VapiVoicemailDetectionPlan; -} diff --git a/src/api/types/WorkflowUserEditableBackgroundSound.ts b/src/api/types/WorkflowUserEditableBackgroundSound.ts new file mode 100644 index 00000000..c2f676fc --- /dev/null +++ b/src/api/types/WorkflowUserEditableBackgroundSound.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the background sound in the call. Default for phone calls is 'office' and default for web calls is 'off'. + * You can also provide a custom sound by providing a URL to an audio file. + */ +export type WorkflowUserEditableBackgroundSound = Vapi.WorkflowUserEditableBackgroundSoundZero | string; diff --git a/src/api/types/WorkflowUserEditableBackgroundSoundZero.ts b/src/api/types/WorkflowUserEditableBackgroundSoundZero.ts new file mode 100644 index 00000000..11219a93 --- /dev/null +++ b/src/api/types/WorkflowUserEditableBackgroundSoundZero.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type WorkflowUserEditableBackgroundSoundZero = "off" | "office"; +export const WorkflowUserEditableBackgroundSoundZero = { + Off: "off", + Office: "office", +} as const; diff --git a/src/api/types/WorkflowUserEditableCredentialsItem.ts b/src/api/types/WorkflowUserEditableCredentialsItem.ts new file mode 100644 index 00000000..9925e08e --- /dev/null +++ b/src/api/types/WorkflowUserEditableCredentialsItem.ts @@ -0,0 +1,58 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type WorkflowUserEditableCredentialsItem = + | Vapi.CreateElevenLabsCredentialDto + | Vapi.CreateAnthropicCredentialDto + | Vapi.CreateAnyscaleCredentialDto + | Vapi.CreateAssemblyAiCredentialDto + | Vapi.CreateAzureOpenAiCredentialDto + | Vapi.CreateAzureCredentialDto + | Vapi.CreateByoSipTrunkCredentialDto + | Vapi.CreateCartesiaCredentialDto + | Vapi.CreateCerebrasCredentialDto + | Vapi.CreateCloudflareCredentialDto + | Vapi.CreateCustomLlmCredentialDto + | Vapi.CreateDeepgramCredentialDto + | Vapi.CreateDeepInfraCredentialDto + | Vapi.CreateDeepSeekCredentialDto + | Vapi.CreateGcpCredentialDto + | Vapi.CreateGladiaCredentialDto + | Vapi.CreateGoHighLevelCredentialDto + | Vapi.CreateGoogleCredentialDto + | Vapi.CreateGroqCredentialDto + | Vapi.CreateInflectionAiCredentialDto + | Vapi.CreateLangfuseCredentialDto + | Vapi.CreateLmntCredentialDto + | Vapi.CreateMakeCredentialDto + | Vapi.CreateOpenAiCredentialDto + | Vapi.CreateOpenRouterCredentialDto + | Vapi.CreatePerplexityAiCredentialDto + | Vapi.CreatePlayHtCredentialDto + | Vapi.CreateRimeAiCredentialDto + | Vapi.CreateRunpodCredentialDto + | Vapi.CreateS3CredentialDto + | Vapi.CreateSupabaseCredentialDto + | Vapi.CreateSmallestAiCredentialDto + | Vapi.CreateTavusCredentialDto + | Vapi.CreateTogetherAiCredentialDto + | Vapi.CreateTwilioCredentialDto + | Vapi.CreateVonageCredentialDto + | Vapi.CreateWebhookCredentialDto + | Vapi.CreateCustomCredentialDto + | Vapi.CreateXAiCredentialDto + | Vapi.CreateNeuphonicCredentialDto + | Vapi.CreateHumeCredentialDto + | Vapi.CreateMistralCredentialDto + | Vapi.CreateSpeechmaticsCredentialDto + | Vapi.CreateTrieveCredentialDto + | Vapi.CreateGoogleCalendarOAuth2ClientCredentialDto + | Vapi.CreateGoogleCalendarOAuth2AuthorizationCredentialDto + | Vapi.CreateGoogleSheetsOAuth2AuthorizationCredentialDto + | Vapi.CreateSlackOAuth2AuthorizationCredentialDto + | Vapi.CreateGoHighLevelMcpCredentialDto + | Vapi.CreateInworldCredentialDto + | Vapi.CreateMinimaxCredentialDto; diff --git a/src/api/types/WorkflowUserEditableHooksItem.ts b/src/api/types/WorkflowUserEditableHooksItem.ts new file mode 100644 index 00000000..c388fb92 --- /dev/null +++ b/src/api/types/WorkflowUserEditableHooksItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type WorkflowUserEditableHooksItem = + | Vapi.CallHookCallEnding + | Vapi.CallHookAssistantSpeechInterrupted + | Vapi.CallHookCustomerSpeechInterrupted + | Vapi.CallHookCustomerSpeechTimeout; diff --git a/src/api/types/WorkflowUserEditableModel.ts b/src/api/types/WorkflowUserEditableModel.ts new file mode 100644 index 00000000..9a25b7ef --- /dev/null +++ b/src/api/types/WorkflowUserEditableModel.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the model for the workflow. + * + * This can be overridden at node level using `nodes[n].model`. + */ +export type WorkflowUserEditableModel = + | Vapi.WorkflowOpenAiModel + | Vapi.WorkflowAnthropicModel + | Vapi.WorkflowGoogleModel + | Vapi.WorkflowCustomModel; diff --git a/src/api/types/WorkflowUserEditableNodesItem.ts b/src/api/types/WorkflowUserEditableNodesItem.ts new file mode 100644 index 00000000..8dc55f0b --- /dev/null +++ b/src/api/types/WorkflowUserEditableNodesItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type WorkflowUserEditableNodesItem = Vapi.ConversationNode | Vapi.ToolNode; diff --git a/src/api/types/WorkflowUserEditableTranscriber.ts b/src/api/types/WorkflowUserEditableTranscriber.ts new file mode 100644 index 00000000..31241972 --- /dev/null +++ b/src/api/types/WorkflowUserEditableTranscriber.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the transcriber for the workflow. + * + * This can be overridden at node level using `nodes[n].transcriber`. + */ +export type WorkflowUserEditableTranscriber = + | Vapi.AssemblyAiTranscriber + | Vapi.AzureSpeechTranscriber + | Vapi.CustomTranscriber + | Vapi.DeepgramTranscriber + | Vapi.ElevenLabsTranscriber + | Vapi.GladiaTranscriber + | Vapi.GoogleTranscriber + | Vapi.SpeechmaticsTranscriber + | Vapi.TalkscriberTranscriber + | Vapi.OpenAiTranscriber + | Vapi.CartesiaTranscriber; diff --git a/src/api/types/WorkflowUserEditableVoice.ts b/src/api/types/WorkflowUserEditableVoice.ts new file mode 100644 index 00000000..f2e8e707 --- /dev/null +++ b/src/api/types/WorkflowUserEditableVoice.ts @@ -0,0 +1,29 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the voice for the workflow. + * + * This can be overridden at node level using `nodes[n].voice`. + */ +export type WorkflowUserEditableVoice = + | Vapi.AzureVoice + | Vapi.CartesiaVoice + | Vapi.CustomVoice + | Vapi.DeepgramVoice + | Vapi.ElevenLabsVoice + | Vapi.HumeVoice + | Vapi.LmntVoice + | Vapi.NeuphonicVoice + | Vapi.OpenAiVoice + | Vapi.PlayHtVoice + | Vapi.RimeAiVoice + | Vapi.SmallestAiVoice + | Vapi.TavusVoice + | Vapi.VapiVoice + | Vapi.SesameVoice + | Vapi.InworldVoice + | Vapi.MinimaxVoice; diff --git a/src/api/types/WorkflowUserEditableVoicemailDetection.ts b/src/api/types/WorkflowUserEditableVoicemailDetection.ts new file mode 100644 index 00000000..dee9b740 --- /dev/null +++ b/src/api/types/WorkflowUserEditableVoicemailDetection.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the voicemail detection plan for the workflow. + */ +export type WorkflowUserEditableVoicemailDetection = + | Vapi.GoogleVoicemailDetectionPlan + | Vapi.OpenAiVoicemailDetectionPlan + | Vapi.TwilioVoicemailDetectionPlan + | Vapi.VapiVoicemailDetectionPlan; diff --git a/src/api/types/WorkflowVoice.ts b/src/api/types/WorkflowVoice.ts new file mode 100644 index 00000000..342d6eb0 --- /dev/null +++ b/src/api/types/WorkflowVoice.ts @@ -0,0 +1,29 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the voice for the workflow. + * + * This can be overridden at node level using `nodes[n].voice`. + */ +export type WorkflowVoice = + | Vapi.AzureVoice + | Vapi.CartesiaVoice + | Vapi.CustomVoice + | Vapi.DeepgramVoice + | Vapi.ElevenLabsVoice + | Vapi.HumeVoice + | Vapi.LmntVoice + | Vapi.NeuphonicVoice + | Vapi.OpenAiVoice + | Vapi.PlayHtVoice + | Vapi.RimeAiVoice + | Vapi.SmallestAiVoice + | Vapi.TavusVoice + | Vapi.VapiVoice + | Vapi.SesameVoice + | Vapi.InworldVoice + | Vapi.MinimaxVoice; diff --git a/src/api/types/WorkflowVoicemailDetection.ts b/src/api/types/WorkflowVoicemailDetection.ts new file mode 100644 index 00000000..51bb7cb5 --- /dev/null +++ b/src/api/types/WorkflowVoicemailDetection.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +/** + * This is the voicemail detection plan for the workflow. + */ +export type WorkflowVoicemailDetection = + | Vapi.GoogleVoicemailDetectionPlan + | Vapi.OpenAiVoicemailDetectionPlan + | Vapi.TwilioVoicemailDetectionPlan + | Vapi.VapiVoicemailDetectionPlan; diff --git a/src/api/types/XaiModel.ts b/src/api/types/XaiModel.ts index 881638f0..8b38b9f5 100644 --- a/src/api/types/XaiModel.ts +++ b/src/api/types/XaiModel.ts @@ -12,7 +12,7 @@ export interface XaiModel { * * Both `tools` and `toolIds` can be used together. */ - tools?: XaiModel.Tools.Item[]; + tools?: Vapi.XaiModelToolsItem[]; /** * These are the tools that the assistant can use during the call. To use transient tools, use `tools`. * @@ -22,7 +22,7 @@ export interface XaiModel { /** These are the options for the knowledge base. */ knowledgeBase?: Vapi.CreateCustomKnowledgeBaseDto; /** This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b */ - model: XaiModel.Model; + model: Vapi.XaiModelModel; provider: "xai"; /** This is the temperature that will be used for calls. Default is 0 to leverage caching for lower latency. */ temperature?: number; @@ -45,43 +45,3 @@ export interface XaiModel { */ numFastTurns?: number; } - -export namespace XaiModel { - export type Tools = Tools.Item[]; - - export namespace Tools { - export type Item = - | Vapi.CreateApiRequestToolDto - | Vapi.CreateBashToolDto - | Vapi.CreateComputerToolDto - | Vapi.CreateDtmfToolDto - | Vapi.CreateEndCallToolDto - | Vapi.CreateFunctionToolDto - | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto - | Vapi.CreateGoHighLevelCalendarEventCreateToolDto - | Vapi.CreateGoHighLevelContactCreateToolDto - | Vapi.CreateGoHighLevelContactGetToolDto - | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto - | Vapi.CreateGoogleCalendarCreateEventToolDto - | Vapi.CreateGoogleSheetsRowAppendToolDto - | Vapi.CreateHandoffToolDto - | Vapi.CreateMcpToolDto - | Vapi.CreateQueryToolDto - | Vapi.CreateSlackSendMessageToolDto - | Vapi.CreateSmsToolDto - | Vapi.CreateTextEditorToolDto - | Vapi.CreateTransferCallToolDto; - } - - /** - * This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b - */ - export type Model = "grok-beta" | "grok-2" | "grok-3" | "grok-4-fast-reasoning" | "grok-4-fast-non-reasoning"; - export const Model = { - GrokBeta: "grok-beta", - Grok2: "grok-2", - Grok3: "grok-3", - Grok4FastReasoning: "grok-4-fast-reasoning", - Grok4FastNonReasoning: "grok-4-fast-non-reasoning", - } as const; -} diff --git a/src/api/types/XaiModelModel.ts b/src/api/types/XaiModelModel.ts new file mode 100644 index 00000000..8a519721 --- /dev/null +++ b/src/api/types/XaiModelModel.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b + */ +export type XaiModelModel = "grok-beta" | "grok-2" | "grok-3" | "grok-4-fast-reasoning" | "grok-4-fast-non-reasoning"; +export const XaiModelModel = { + GrokBeta: "grok-beta", + Grok2: "grok-2", + Grok3: "grok-3", + Grok4FastReasoning: "grok-4-fast-reasoning", + Grok4FastNonReasoning: "grok-4-fast-non-reasoning", +} as const; diff --git a/src/api/types/XaiModelToolsItem.ts b/src/api/types/XaiModelToolsItem.ts new file mode 100644 index 00000000..35c4a47e --- /dev/null +++ b/src/api/types/XaiModelToolsItem.ts @@ -0,0 +1,27 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index.js"; + +export type XaiModelToolsItem = + | Vapi.CreateApiRequestToolDto + | Vapi.CreateBashToolDto + | Vapi.CreateComputerToolDto + | Vapi.CreateDtmfToolDto + | Vapi.CreateEndCallToolDto + | Vapi.CreateFunctionToolDto + | Vapi.CreateGoHighLevelCalendarAvailabilityToolDto + | Vapi.CreateGoHighLevelCalendarEventCreateToolDto + | Vapi.CreateGoHighLevelContactCreateToolDto + | Vapi.CreateGoHighLevelContactGetToolDto + | Vapi.CreateGoogleCalendarCheckAvailabilityToolDto + | Vapi.CreateGoogleCalendarCreateEventToolDto + | Vapi.CreateGoogleSheetsRowAppendToolDto + | Vapi.CreateHandoffToolDto + | Vapi.CreateMcpToolDto + | Vapi.CreateQueryToolDto + | Vapi.CreateSlackSendMessageToolDto + | Vapi.CreateSmsToolDto + | Vapi.CreateTextEditorToolDto + | Vapi.CreateTransferCallToolDto; diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 38057372..9835f96a 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -1,199 +1,422 @@ +export * from "./FallbackTranscriberPlanTranscribersItem.js"; export * from "./FallbackTranscriberPlan.js"; export * from "./AssemblyAiTranscriber.js"; +export * from "./AzureSpeechTranscriberLanguage.js"; +export * from "./AzureSpeechTranscriberSegmentationStrategy.js"; export * from "./AzureSpeechTranscriber.js"; +export * from "./CartesiaTranscriberLanguage.js"; export * from "./CartesiaTranscriber.js"; export * from "./BackoffPlan.js"; export * from "./Server.js"; export * from "./CustomTranscriber.js"; export * from "./DeepgramTranscriber.js"; +export * from "./ElevenLabsTranscriberLanguage.js"; export * from "./ElevenLabsTranscriber.js"; +export * from "./GladiaCustomVocabularyConfigDtoVocabularyItem.js"; export * from "./GladiaCustomVocabularyConfigDto.js"; +export * from "./GladiaTranscriberModel.js"; +export * from "./GladiaTranscriberLanguageBehaviour.js"; +export * from "./GladiaTranscriberLanguage.js"; +export * from "./GladiaTranscriberLanguages.js"; +export * from "./GladiaTranscriberRegion.js"; export * from "./GladiaTranscriber.js"; export * from "./SpeechmaticsCustomVocabularyItem.js"; +export * from "./SpeechmaticsTranscriberLanguage.js"; +export * from "./SpeechmaticsTranscriberOperatingPoint.js"; +export * from "./SpeechmaticsTranscriberRegion.js"; +export * from "./SpeechmaticsTranscriberNumeralStyle.js"; export * from "./SpeechmaticsTranscriber.js"; +export * from "./TalkscriberTranscriberLanguage.js"; export * from "./TalkscriberTranscriber.js"; +export * from "./GoogleTranscriberModel.js"; +export * from "./GoogleTranscriberLanguage.js"; export * from "./GoogleTranscriber.js"; +export * from "./OpenAiTranscriberModel.js"; +export * from "./OpenAiTranscriberLanguage.js"; export * from "./OpenAiTranscriber.js"; export * from "./FallbackAssemblyAiTranscriber.js"; +export * from "./FallbackAzureSpeechTranscriberLanguage.js"; +export * from "./FallbackAzureSpeechTranscriberSegmentationStrategy.js"; export * from "./FallbackAzureSpeechTranscriber.js"; +export * from "./FallbackCartesiaTranscriberLanguage.js"; export * from "./FallbackCartesiaTranscriber.js"; export * from "./FallbackCustomTranscriber.js"; export * from "./FallbackDeepgramTranscriber.js"; +export * from "./FallbackElevenLabsTranscriberLanguage.js"; export * from "./FallbackElevenLabsTranscriber.js"; export * from "./GladiaVocabularyItemDto.js"; +export * from "./FallbackGladiaTranscriberModel.js"; +export * from "./FallbackGladiaTranscriberLanguageBehaviour.js"; +export * from "./FallbackGladiaTranscriberLanguage.js"; +export * from "./FallbackGladiaTranscriberLanguages.js"; +export * from "./FallbackGladiaTranscriberRegion.js"; export * from "./FallbackGladiaTranscriber.js"; +export * from "./FallbackSpeechmaticsTranscriberLanguage.js"; +export * from "./FallbackSpeechmaticsTranscriberOperatingPoint.js"; +export * from "./FallbackSpeechmaticsTranscriberRegion.js"; +export * from "./FallbackSpeechmaticsTranscriberNumeralStyle.js"; export * from "./FallbackSpeechmaticsTranscriber.js"; +export * from "./FallbackTalkscriberTranscriberLanguage.js"; export * from "./FallbackTalkscriberTranscriber.js"; +export * from "./FallbackGoogleTranscriberModel.js"; +export * from "./FallbackGoogleTranscriberLanguage.js"; export * from "./FallbackGoogleTranscriber.js"; +export * from "./FallbackOpenAiTranscriberModel.js"; +export * from "./FallbackOpenAiTranscriberLanguage.js"; export * from "./FallbackOpenAiTranscriber.js"; export * from "./LangfuseObservabilityPlan.js"; +export * from "./TextContentLanguage.js"; export * from "./TextContent.js"; +export * from "./ConditionOperator.js"; export * from "./Condition.js"; export * from "./ToolMessageStart.js"; +export * from "./ToolMessageCompleteRole.js"; export * from "./ToolMessageComplete.js"; export * from "./ToolMessageFailed.js"; export * from "./ToolMessageDelayed.js"; +export * from "./MessageTargetRole.js"; export * from "./MessageTarget.js"; export * from "./RegexCondition.js"; export * from "./LiquidCondition.js"; +export * from "./GroupConditionOperator.js"; +export * from "./GroupConditionConditionsItem.js"; export * from "./GroupCondition.js"; +export * from "./ToolRejectionPlanConditionsItem.js"; export * from "./ToolRejectionPlan.js"; +export * from "./CreateDtmfToolDtoMessagesItem.js"; export * from "./CreateDtmfToolDto.js"; +export * from "./CreateEndCallToolDtoMessagesItem.js"; export * from "./CreateEndCallToolDto.js"; +export * from "./CreateVoicemailToolDtoMessagesItem.js"; export * from "./CreateVoicemailToolDto.js"; +export * from "./JsonSchemaType.js"; +export * from "./JsonSchemaFormat.js"; export * from "./JsonSchema.js"; export * from "./OpenAiFunctionParameters.js"; export * from "./OpenAiFunction.js"; +export * from "./CreateFunctionToolDtoMessagesItem.js"; export * from "./CreateFunctionToolDto.js"; export * from "./GhlToolMetadata.js"; +export * from "./CreateGhlToolDtoMessagesItem.js"; export * from "./CreateGhlToolDto.js"; export * from "./MakeToolMetadata.js"; +export * from "./CreateMakeToolDtoMessagesItem.js"; export * from "./CreateMakeToolDto.js"; export * from "./CustomMessage.js"; +export * from "./TransferDestinationAssistantMessage.js"; export * from "./TransferDestinationAssistant.js"; +export * from "./TransferFallbackPlanMessage.js"; export * from "./TransferFallbackPlan.js"; +export * from "./TransferAssistantModelProvider.js"; export * from "./TransferAssistantModel.js"; +export * from "./TransferAssistantFirstMessageMode.js"; export * from "./TransferAssistant.js"; +export * from "./TransferCancelToolUserEditableMessagesItem.js"; export * from "./TransferCancelToolUserEditable.js"; +export * from "./TransferSuccessfulToolUserEditableMessagesItem.js"; export * from "./TransferSuccessfulToolUserEditable.js"; export * from "./SummaryPlan.js"; +export * from "./TransferPlanMode.js"; +export * from "./TransferPlanMessage.js"; export * from "./TransferPlan.js"; +export * from "./TransferDestinationNumberMessage.js"; export * from "./TransferDestinationNumber.js"; +export * from "./TransferDestinationSipMessage.js"; export * from "./TransferDestinationSip.js"; +export * from "./CreateTransferCallToolDtoMessagesItem.js"; +export * from "./CreateTransferCallToolDtoDestinationsItem.js"; export * from "./CreateTransferCallToolDto.js"; export * from "./ContextEngineeringPlanLastNMessages.js"; export * from "./ContextEngineeringPlanNone.js"; export * from "./ContextEngineeringPlanAll.js"; export * from "./VariableExtractionAlias.js"; export * from "./VariableExtractionPlan.js"; +export * from "./HandoffDestinationAssistantContextEngineeringPlan.js"; export * from "./HandoffDestinationAssistant.js"; export * from "./HandoffDestinationDynamic.js"; +export * from "./CreateHandoffToolDtoMessagesItem.js"; +export * from "./CreateHandoffToolDtoDestinationsItem.js"; export * from "./CreateHandoffToolDto.js"; export * from "./CreateCustomKnowledgeBaseDto.js"; +export * from "./KnowledgeBaseModel.js"; export * from "./KnowledgeBase.js"; +export * from "./CreateQueryToolDtoMessagesItem.js"; export * from "./CreateQueryToolDto.js"; +export * from "./CreateGoogleCalendarCreateEventToolDtoMessagesItem.js"; export * from "./CreateGoogleCalendarCreateEventToolDto.js"; +export * from "./CreateGoogleSheetsRowAppendToolDtoMessagesItem.js"; export * from "./CreateGoogleSheetsRowAppendToolDto.js"; +export * from "./CreateGoogleCalendarCheckAvailabilityToolDtoMessagesItem.js"; export * from "./CreateGoogleCalendarCheckAvailabilityToolDto.js"; +export * from "./CreateSlackSendMessageToolDtoMessagesItem.js"; export * from "./CreateSlackSendMessageToolDto.js"; +export * from "./McpToolMetadataProtocol.js"; export * from "./McpToolMetadata.js"; +export * from "./CreateMcpToolDtoMessagesItem.js"; export * from "./CreateMcpToolDto.js"; +export * from "./CreateGoHighLevelCalendarAvailabilityToolDtoMessagesItem.js"; export * from "./CreateGoHighLevelCalendarAvailabilityToolDto.js"; +export * from "./CreateGoHighLevelCalendarEventCreateToolDtoMessagesItem.js"; export * from "./CreateGoHighLevelCalendarEventCreateToolDto.js"; +export * from "./CreateGoHighLevelContactCreateToolDtoMessagesItem.js"; export * from "./CreateGoHighLevelContactCreateToolDto.js"; +export * from "./CreateGoHighLevelContactGetToolDtoMessagesItem.js"; export * from "./CreateGoHighLevelContactGetToolDto.js"; +export * from "./OpenAiMessageRole.js"; export * from "./OpenAiMessage.js"; +export * from "./AnyscaleModelToolsItem.js"; export * from "./AnyscaleModel.js"; export * from "./AnthropicThinkingConfig.js"; +export * from "./AnthropicModelToolsItem.js"; +export * from "./AnthropicModelModel.js"; export * from "./AnthropicModel.js"; +export * from "./CerebrasModelToolsItem.js"; +export * from "./CerebrasModelModel.js"; export * from "./CerebrasModel.js"; +export * from "./CustomLlmModelToolsItem.js"; +export * from "./CustomLlmModelMetadataSendMode.js"; export * from "./CustomLlmModel.js"; +export * from "./DeepInfraModelToolsItem.js"; export * from "./DeepInfraModel.js"; +export * from "./DeepSeekModelToolsItem.js"; +export * from "./DeepSeekModelModel.js"; export * from "./DeepSeekModel.js"; +export * from "./GeminiMultimodalLivePrebuiltVoiceConfigVoiceName.js"; export * from "./GeminiMultimodalLivePrebuiltVoiceConfig.js"; export * from "./GeminiMultimodalLiveVoiceConfig.js"; export * from "./GeminiMultimodalLiveSpeechConfig.js"; export * from "./GoogleRealtimeConfig.js"; +export * from "./GoogleModelToolsItem.js"; +export * from "./GoogleModelModel.js"; export * from "./GoogleModel.js"; +export * from "./GroqModelToolsItem.js"; +export * from "./GroqModelModel.js"; export * from "./GroqModel.js"; +export * from "./InflectionAiModelToolsItem.js"; export * from "./InflectionAiModel.js"; +export * from "./OpenAiModelToolsItem.js"; +export * from "./OpenAiModelModel.js"; +export * from "./OpenAiModelFallbackModelsItem.js"; +export * from "./OpenAiModelToolStrictCompatibilityMode.js"; export * from "./OpenAiModel.js"; +export * from "./OpenRouterModelToolsItem.js"; export * from "./OpenRouterModel.js"; +export * from "./PerplexityAiModelToolsItem.js"; export * from "./PerplexityAiModel.js"; +export * from "./TogetherAiModelToolsItem.js"; export * from "./TogetherAiModel.js"; export * from "./HangupNode.js"; +export * from "./WorkflowOpenAiModelModel.js"; export * from "./WorkflowOpenAiModel.js"; +export * from "./WorkflowAnthropicModelModel.js"; export * from "./WorkflowAnthropicModel.js"; +export * from "./WorkflowGoogleModelModel.js"; export * from "./WorkflowGoogleModel.js"; +export * from "./WorkflowCustomModelMetadataSendMode.js"; export * from "./WorkflowCustomModel.js"; export * from "./GlobalNodePlan.js"; +export * from "./ConversationNodeModel.js"; +export * from "./ConversationNodeTranscriber.js"; +export * from "./ConversationNodeVoice.js"; +export * from "./ConversationNodeToolsItem.js"; export * from "./ConversationNode.js"; +export * from "./ToolNodeTool.js"; export * from "./ToolNode.js"; export * from "./VoicemailDetectionBackoffPlan.js"; +export * from "./GoogleVoicemailDetectionPlanType.js"; export * from "./GoogleVoicemailDetectionPlan.js"; +export * from "./OpenAiVoicemailDetectionPlanType.js"; export * from "./OpenAiVoicemailDetectionPlan.js"; +export * from "./TwilioVoicemailDetectionPlanVoicemailDetectionTypesItem.js"; export * from "./TwilioVoicemailDetectionPlan.js"; +export * from "./VapiVoicemailDetectionPlanType.js"; export * from "./VapiVoicemailDetectionPlan.js"; export * from "./AiEdgeCondition.js"; export * from "./Edge.js"; +export * from "./RecordingConsentPlanStayOnLineVoice.js"; export * from "./RecordingConsentPlanStayOnLine.js"; +export * from "./RecordingConsentPlanVerbalVoice.js"; export * from "./RecordingConsentPlanVerbal.js"; export * from "./SecurityFilterBase.js"; +export * from "./SecurityFilterPlanMode.js"; export * from "./SecurityFilterPlan.js"; +export * from "./CompliancePlanRecordingConsentPlan.js"; export * from "./CompliancePlan.js"; export * from "./StructuredDataPlan.js"; export * from "./StructuredDataMultiPlan.js"; +export * from "./SuccessEvaluationPlanRubric.js"; export * from "./SuccessEvaluationPlan.js"; export * from "./AnalysisPlan.js"; export * from "./TranscriptPlan.js"; +export * from "./ArtifactPlanRecordingFormat.js"; export * from "./ArtifactPlan.js"; +export * from "./RegexOptionType.js"; export * from "./RegexOption.js"; export * from "./AssistantCustomEndpointingRule.js"; export * from "./CustomerCustomEndpointingRule.js"; export * from "./BothCustomEndpointingRule.js"; +export * from "./VapiSmartEndpointingPlanProvider.js"; export * from "./VapiSmartEndpointingPlan.js"; +export * from "./LivekitSmartEndpointingPlanProvider.js"; export * from "./LivekitSmartEndpointingPlan.js"; +export * from "./CustomEndpointingModelSmartEndpointingPlanProvider.js"; export * from "./CustomEndpointingModelSmartEndpointingPlan.js"; export * from "./TranscriptionEndpointingPlan.js"; +export * from "./StartSpeakingPlanSmartEndpointingEnabled.js"; +export * from "./StartSpeakingPlanSmartEndpointingPlan.js"; +export * from "./StartSpeakingPlanCustomEndpointingRulesItem.js"; export * from "./StartSpeakingPlan.js"; export * from "./StopSpeakingPlan.js"; export * from "./MonitorPlan.js"; export * from "./SmartDenoisingPlan.js"; export * from "./FourierDenoisingPlan.js"; export * from "./BackgroundSpeechDenoisingPlan.js"; +export * from "./KeypadInputPlanDelimiters.js"; export * from "./KeypadInputPlan.js"; +export * from "./WorkflowUserEditableNodesItem.js"; +export * from "./WorkflowUserEditableModel.js"; +export * from "./WorkflowUserEditableTranscriber.js"; +export * from "./WorkflowUserEditableVoice.js"; +export * from "./WorkflowUserEditableBackgroundSoundZero.js"; +export * from "./WorkflowUserEditableBackgroundSound.js"; +export * from "./WorkflowUserEditableHooksItem.js"; +export * from "./WorkflowUserEditableCredentialsItem.js"; +export * from "./WorkflowUserEditableVoicemailDetection.js"; export * from "./WorkflowUserEditable.js"; +export * from "./VapiModelToolsItem.js"; export * from "./VapiModel.js"; +export * from "./XaiModelToolsItem.js"; +export * from "./XaiModelModel.js"; export * from "./XaiModel.js"; export * from "./ExactReplacement.js"; export * from "./RegexReplacement.js"; +export * from "./FormatPlanReplacementsItem.js"; +export * from "./FormatPlanFormattersEnabledItem.js"; export * from "./FormatPlan.js"; export * from "./ChunkPlan.js"; +export * from "./FallbackPlanVoicesItem.js"; export * from "./FallbackPlan.js"; +export * from "./AzureVoiceIdEnum.js"; +export * from "./AzureVoiceId.js"; export * from "./AzureVoice.js"; +export * from "./CartesiaExperimentalControlsSpeed.js"; +export * from "./CartesiaSpeedControl.js"; +export * from "./CartesiaExperimentalControlsEmotion.js"; export * from "./CartesiaExperimentalControls.js"; +export * from "./CartesiaVoiceModel.js"; +export * from "./CartesiaVoiceLanguage.js"; export * from "./CartesiaVoice.js"; export * from "./CustomVoice.js"; +export * from "./DeepgramVoiceId.js"; +export * from "./DeepgramVoiceModel.js"; export * from "./DeepgramVoice.js"; export * from "./ElevenLabsPronunciationDictionaryLocator.js"; +export * from "./ElevenLabsVoiceIdEnum.js"; +export * from "./ElevenLabsVoiceId.js"; +export * from "./ElevenLabsVoiceModel.js"; export * from "./ElevenLabsVoice.js"; +export * from "./HumeVoiceModel.js"; export * from "./HumeVoice.js"; +export * from "./LmntVoiceIdEnum.js"; +export * from "./LmntVoiceId.js"; +export * from "./LmntVoiceLanguage.js"; export * from "./LmntVoice.js"; +export * from "./NeuphonicVoiceModel.js"; export * from "./NeuphonicVoice.js"; +export * from "./OpenAiVoiceIdEnum.js"; +export * from "./OpenAiVoiceId.js"; +export * from "./OpenAiVoiceModel.js"; export * from "./OpenAiVoice.js"; +export * from "./PlayHtVoiceIdEnum.js"; +export * from "./PlayHtVoiceId.js"; +export * from "./PlayHtVoiceEmotion.js"; +export * from "./PlayHtVoiceModel.js"; +export * from "./PlayHtVoiceLanguage.js"; export * from "./PlayHtVoice.js"; +export * from "./RimeAiVoiceIdEnum.js"; +export * from "./RimeAiVoiceId.js"; +export * from "./RimeAiVoiceModel.js"; export * from "./RimeAiVoice.js"; export * from "./SesameVoice.js"; +export * from "./SmallestAiVoiceIdEnum.js"; +export * from "./SmallestAiVoiceId.js"; export * from "./SmallestAiVoice.js"; export * from "./TavusConversationProperties.js"; +export * from "./TavusVoiceVoiceId.js"; export * from "./TavusVoice.js"; +export * from "./VapiVoiceVoiceId.js"; export * from "./VapiVoice.js"; +export * from "./InworldVoiceVoiceId.js"; +export * from "./InworldVoiceLanguageCode.js"; export * from "./InworldVoice.js"; +export * from "./MinimaxVoiceModel.js"; +export * from "./MinimaxVoiceRegion.js"; +export * from "./MinimaxVoiceLanguageBoost.js"; export * from "./MinimaxVoice.js"; +export * from "./FallbackAzureVoiceVoiceId.js"; +export * from "./FallbackAzureVoiceId.js"; export * from "./FallbackAzureVoice.js"; +export * from "./FallbackCartesiaVoiceModel.js"; +export * from "./FallbackCartesiaVoiceLanguage.js"; export * from "./FallbackCartesiaVoice.js"; export * from "./FallbackCustomVoice.js"; +export * from "./FallbackDeepgramVoiceId.js"; +export * from "./FallbackDeepgramVoiceModel.js"; export * from "./FallbackDeepgramVoice.js"; +export * from "./FallbackElevenLabsVoiceIdEnum.js"; +export * from "./FallbackElevenLabsVoiceId.js"; +export * from "./FallbackElevenLabsVoiceModel.js"; export * from "./FallbackElevenLabsVoice.js"; +export * from "./FallbackHumeVoiceModel.js"; export * from "./FallbackHumeVoice.js"; +export * from "./FallbackLmntVoiceIdEnum.js"; +export * from "./FallbackLmntVoiceId.js"; +export * from "./FallbackLmntVoiceLanguage.js"; export * from "./FallbackLmntVoice.js"; +export * from "./FallbackNeuphonicVoiceModel.js"; export * from "./FallbackNeuphonicVoice.js"; +export * from "./FallbackOpenAiVoiceIdEnum.js"; +export * from "./FallbackOpenAiVoiceId.js"; +export * from "./FallbackOpenAiVoiceModel.js"; export * from "./FallbackOpenAiVoice.js"; +export * from "./FallbackPlayHtVoiceIdEnum.js"; +export * from "./FallbackPlayHtVoiceId.js"; +export * from "./FallbackPlayHtVoiceEmotion.js"; +export * from "./FallbackPlayHtVoiceModel.js"; +export * from "./FallbackPlayHtVoiceLanguage.js"; export * from "./FallbackPlayHtVoice.js"; +export * from "./FallbackRimeAiVoiceIdEnum.js"; +export * from "./FallbackRimeAiVoiceId.js"; +export * from "./FallbackRimeAiVoiceModel.js"; export * from "./FallbackRimeAiVoice.js"; export * from "./FallbackSesameVoice.js"; +export * from "./FallbackSmallestAiVoiceIdEnum.js"; +export * from "./FallbackSmallestAiVoiceId.js"; export * from "./FallbackSmallestAiVoice.js"; +export * from "./FallbackTavusVoiceVoiceId.js"; export * from "./FallbackTavusVoice.js"; +export * from "./FallbackVapiVoiceVoiceId.js"; export * from "./FallbackVapiVoice.js"; +export * from "./FallbackInworldVoiceVoiceId.js"; +export * from "./FallbackInworldVoiceLanguageCode.js"; export * from "./FallbackInworldVoice.js"; +export * from "./FallbackMinimaxVoiceModel.js"; +export * from "./FallbackMinimaxVoiceRegion.js"; +export * from "./FallbackMinimaxVoiceLanguageBoost.js"; export * from "./FallbackMinimaxVoice.js"; +export * from "./TransportConfigurationTwilioRecordingChannels.js"; export * from "./TransportConfigurationTwilio.js"; export * from "./CreateAnthropicCredentialDto.js"; export * from "./CreateAnyscaleCredentialDto.js"; export * from "./CreateAssemblyAiCredentialDto.js"; export * from "./AzureBlobStorageBucketPlan.js"; +export * from "./CreateAzureCredentialDtoService.js"; +export * from "./CreateAzureCredentialDtoRegion.js"; export * from "./CreateAzureCredentialDto.js"; +export * from "./CreateAzureOpenAiCredentialDtoRegion.js"; +export * from "./CreateAzureOpenAiCredentialDtoModelsItem.js"; export * from "./CreateAzureOpenAiCredentialDto.js"; +export * from "./SipTrunkGatewayOutboundProtocol.js"; export * from "./SipTrunkGateway.js"; export * from "./SipTrunkOutboundSipRegisterPlan.js"; export * from "./SipTrunkOutboundAuthenticationPlan.js"; @@ -224,6 +447,7 @@ export * from "./CreatePlayHtCredentialDto.js"; export * from "./CreateRimeAiCredentialDto.js"; export * from "./CreateRunpodCredentialDto.js"; export * from "./CreateS3CredentialDto.js"; +export * from "./SupabaseBucketPlanRegion.js"; export * from "./SupabaseBucketPlan.js"; export * from "./CreateSupabaseCredentialDto.js"; export * from "./CreateSmallestAiCredentialDto.js"; @@ -231,6 +455,7 @@ export * from "./CreateTavusCredentialDto.js"; export * from "./CreateTogetherAiCredentialDto.js"; export * from "./CreateTwilioCredentialDto.js"; export * from "./CreateVonageCredentialDto.js"; +export * from "./CreateWebhookCredentialDtoAuthenticationPlan.js"; export * from "./CreateWebhookCredentialDto.js"; export * from "./CreateXAiCredentialDto.js"; export * from "./CreateGoogleCalendarOAuth2ClientCredentialDto.js"; @@ -238,15 +463,23 @@ export * from "./CreateGoogleCalendarOAuth2AuthorizationCredentialDto.js"; export * from "./CreateGoogleSheetsOAuth2AuthorizationCredentialDto.js"; export * from "./CreateSlackOAuth2AuthorizationCredentialDto.js"; export * from "./CreateMinimaxCredentialDto.js"; +export * from "./TransferHookActionDestination.js"; export * from "./TransferHookAction.js"; +export * from "./FunctionCallHookActionMessagesItem.js"; export * from "./FunctionCallHookAction.js"; +export * from "./SayHookActionPromptItem.js"; +export * from "./SayHookActionPrompt.js"; export * from "./SayHookAction.js"; export * from "./CallHookFilter.js"; export * from "./CallHookCallEnding.js"; +export * from "./CallHookAssistantSpeechInterruptedDoItem.js"; export * from "./CallHookAssistantSpeechInterrupted.js"; +export * from "./CallHookCustomerSpeechInterruptedDoItem.js"; export * from "./CallHookCustomerSpeechInterrupted.js"; +export * from "./ToolCallHookActionTool.js"; export * from "./ToolCallHookAction.js"; export * from "./CustomerSpeechTimeoutOptions.js"; +export * from "./CallHookCustomerSpeechTimeoutDoItem.js"; export * from "./CallHookCustomerSpeechTimeout.js"; export * from "./SqlInjectionSecurityFilter.js"; export * from "./XssSecurityFilter.js"; @@ -254,17 +487,79 @@ export * from "./SsrfSecurityFilter.js"; export * from "./RceSecurityFilter.js"; export * from "./PromptInjectionSecurityFilter.js"; export * from "./RegexSecurityFilter.js"; +export * from "./CreateAssistantDtoTranscriber.js"; +export * from "./CreateAssistantDtoModel.js"; +export * from "./CreateAssistantDtoVoice.js"; +export * from "./CreateAssistantDtoFirstMessageMode.js"; +export * from "./CreateAssistantDtoVoicemailDetection.js"; +export * from "./CreateAssistantDtoClientMessagesItem.js"; +export * from "./CreateAssistantDtoServerMessagesItem.js"; +export * from "./CreateAssistantDtoBackgroundSoundZero.js"; +export * from "./CreateAssistantDtoBackgroundSound.js"; +export * from "./CreateAssistantDtoCredentialsItem.js"; +export * from "./CreateAssistantDtoHooksItem.js"; export * from "./CreateAssistantDto.js"; +export * from "./AssistantTranscriber.js"; +export * from "./AssistantModel.js"; +export * from "./AssistantVoice.js"; +export * from "./AssistantFirstMessageMode.js"; +export * from "./AssistantVoicemailDetection.js"; +export * from "./AssistantClientMessagesItem.js"; +export * from "./AssistantServerMessagesItem.js"; +export * from "./AssistantBackgroundSoundZero.js"; +export * from "./AssistantBackgroundSound.js"; +export * from "./AssistantCredentialsItem.js"; +export * from "./AssistantHooksItem.js"; export * from "./Assistant.js"; export * from "./PaginationMeta.js"; export * from "./AssistantPaginatedResponse.js"; export * from "./AssistantVersionPaginatedResponse.js"; +export * from "./AssistantOverridesTranscriber.js"; +export * from "./AssistantOverridesModel.js"; +export * from "./AssistantOverridesVoice.js"; +export * from "./AssistantOverridesFirstMessageMode.js"; +export * from "./AssistantOverridesVoicemailDetection.js"; +export * from "./AssistantOverridesClientMessagesItem.js"; +export * from "./AssistantOverridesServerMessagesItem.js"; +export * from "./AssistantOverridesBackgroundSoundZero.js"; +export * from "./AssistantOverridesBackgroundSound.js"; +export * from "./AssistantOverridesCredentialsItem.js"; +export * from "./AssistantOverridesHooksItem.js"; +export * from "./AssistantOverridesToolsAppendItem.js"; export * from "./AssistantOverrides.js"; +export * from "./SquadMemberDtoAssistantDestinationsItem.js"; export * from "./SquadMemberDto.js"; export * from "./CreateSquadDto.js"; export * from "./Squad.js"; +export * from "./WorkflowNodesItem.js"; +export * from "./WorkflowModel.js"; +export * from "./WorkflowTranscriber.js"; +export * from "./WorkflowVoice.js"; +export * from "./WorkflowBackgroundSoundZero.js"; +export * from "./WorkflowBackgroundSound.js"; +export * from "./WorkflowHooksItem.js"; +export * from "./WorkflowCredentialsItem.js"; +export * from "./WorkflowVoicemailDetection.js"; export * from "./Workflow.js"; +export * from "./CreateWorkflowDtoNodesItem.js"; +export * from "./CreateWorkflowDtoModel.js"; +export * from "./CreateWorkflowDtoTranscriber.js"; +export * from "./CreateWorkflowDtoVoice.js"; +export * from "./CreateWorkflowDtoBackgroundSoundZero.js"; +export * from "./CreateWorkflowDtoBackgroundSound.js"; +export * from "./CreateWorkflowDtoHooksItem.js"; +export * from "./CreateWorkflowDtoCredentialsItem.js"; +export * from "./CreateWorkflowDtoVoicemailDetection.js"; export * from "./CreateWorkflowDto.js"; +export * from "./UpdateWorkflowDtoNodesItem.js"; +export * from "./UpdateWorkflowDtoModel.js"; +export * from "./UpdateWorkflowDtoTranscriber.js"; +export * from "./UpdateWorkflowDtoVoice.js"; +export * from "./UpdateWorkflowDtoBackgroundSoundZero.js"; +export * from "./UpdateWorkflowDtoBackgroundSound.js"; +export * from "./UpdateWorkflowDtoHooksItem.js"; +export * from "./UpdateWorkflowDtoCredentialsItem.js"; +export * from "./UpdateWorkflowDtoVoicemailDetection.js"; export * from "./UpdateWorkflowDto.js"; export * from "./AnalysisCostBreakdown.js"; export * from "./CostBreakdown.js"; @@ -272,21 +567,37 @@ export * from "./Analysis.js"; export * from "./Monitor.js"; export * from "./Mono.js"; export * from "./Recording.js"; +export * from "./NodeArtifactMessagesItem.js"; export * from "./NodeArtifact.js"; export * from "./TurnLatency.js"; export * from "./PerformanceMetrics.js"; +export * from "./ArtifactMessagesItem.js"; export * from "./Artifact.js"; export * from "./RecordingConsent.js"; export * from "./Compliance.js"; export * from "./WorkflowOverrides.js"; +export * from "./TransferPhoneNumberHookActionDestination.js"; export * from "./TransferPhoneNumberHookAction.js"; export * from "./SayPhoneNumberHookAction.js"; +export * from "./PhoneNumberHookCallRingingDoItem.js"; export * from "./PhoneNumberHookCallRinging.js"; +export * from "./PhoneNumberCallEndingHookFilterOneOfItem.js"; export * from "./PhoneNumberCallEndingHookFilter.js"; +export * from "./PhoneNumberHookCallEndingDo.js"; export * from "./PhoneNumberHookCallEnding.js"; +export * from "./ImportTwilioPhoneNumberDtoFallbackDestination.js"; +export * from "./ImportTwilioPhoneNumberDtoHooksItem.js"; export * from "./ImportTwilioPhoneNumberDto.js"; export * from "./CreateCustomerDto.js"; export * from "./SchedulePlan.js"; +export * from "./CallType.js"; +export * from "./CallCostsItem.js"; +export * from "./CallMessagesItem.js"; +export * from "./CallPhoneCallProvider.js"; +export * from "./CallPhoneCallTransport.js"; +export * from "./CallStatus.js"; +export * from "./CallEndedReason.js"; +export * from "./CallDestination.js"; export * from "./Call.js"; export * from "./CallBatchError.js"; export * from "./CallBatchResponse.js"; @@ -301,99 +612,216 @@ export * from "./ToolCall.js"; export * from "./AssistantMessage.js"; export * from "./ToolMessage.js"; export * from "./FunctionCall.js"; +export * from "./ChatInputItem.js"; +export * from "./ChatInput.js"; +export * from "./ChatMessagesItem.js"; +export * from "./ChatOutputItem.js"; +export * from "./ChatCostsItem.js"; export * from "./Chat.js"; export * from "./TwilioSmsChatTransport.js"; +export * from "./GetChatPaginatedDtoSortOrder.js"; export * from "./GetChatPaginatedDto.js"; export * from "./ChatPaginatedResponse.js"; export * from "./CreateChatStreamResponse.js"; export * from "./ChatAssistantOverrides.js"; export * from "./CreateWebCustomerDto.js"; +export * from "./CreateWebChatDtoInputItem.js"; +export * from "./CreateWebChatDtoInput.js"; export * from "./CreateWebChatDto.js"; +export * from "./WebChatOutputItem.js"; export * from "./WebChat.js"; +export * from "./OpenAiWebChatRequestInputItem.js"; +export * from "./OpenAiWebChatRequestInput.js"; export * from "./OpenAiWebChatRequest.js"; export * from "./ResponseOutputText.js"; +export * from "./ResponseOutputMessageStatus.js"; export * from "./ResponseOutputMessage.js"; +export * from "./ResponseObjectStatus.js"; export * from "./ResponseObject.js"; export * from "./ResponseTextDeltaEvent.js"; export * from "./ResponseTextDoneEvent.js"; export * from "./ResponseCompletedEvent.js"; export * from "./ResponseErrorEvent.js"; +export * from "./CampaignStatus.js"; +export * from "./CampaignEndedReason.js"; export * from "./Campaign.js"; export * from "./CampaignPaginatedResponse.js"; +export * from "./SessionStatus.js"; +export * from "./SessionMessagesItem.js"; export * from "./Session.js"; +export * from "./GetSessionPaginatedDtoSortOrder.js"; export * from "./GetSessionPaginatedDto.js"; export * from "./SessionPaginatedResponse.js"; +export * from "./ByoPhoneNumberFallbackDestination.js"; +export * from "./ByoPhoneNumberHooksItem.js"; +export * from "./ByoPhoneNumberStatus.js"; export * from "./ByoPhoneNumber.js"; +export * from "./TwilioPhoneNumberFallbackDestination.js"; +export * from "./TwilioPhoneNumberHooksItem.js"; +export * from "./TwilioPhoneNumberStatus.js"; export * from "./TwilioPhoneNumber.js"; +export * from "./VonagePhoneNumberFallbackDestination.js"; +export * from "./VonagePhoneNumberHooksItem.js"; +export * from "./VonagePhoneNumberStatus.js"; export * from "./VonagePhoneNumber.js"; export * from "./SipAuthentication.js"; +export * from "./VapiPhoneNumberFallbackDestination.js"; +export * from "./VapiPhoneNumberHooksItem.js"; +export * from "./VapiPhoneNumberStatus.js"; export * from "./VapiPhoneNumber.js"; +export * from "./TelnyxPhoneNumberFallbackDestination.js"; +export * from "./TelnyxPhoneNumberHooksItem.js"; +export * from "./TelnyxPhoneNumberStatus.js"; export * from "./TelnyxPhoneNumber.js"; +export * from "./CreateByoPhoneNumberDtoFallbackDestination.js"; +export * from "./CreateByoPhoneNumberDtoHooksItem.js"; export * from "./CreateByoPhoneNumberDto.js"; +export * from "./CreateTwilioPhoneNumberDtoFallbackDestination.js"; +export * from "./CreateTwilioPhoneNumberDtoHooksItem.js"; export * from "./CreateTwilioPhoneNumberDto.js"; +export * from "./CreateVonagePhoneNumberDtoFallbackDestination.js"; +export * from "./CreateVonagePhoneNumberDtoHooksItem.js"; export * from "./CreateVonagePhoneNumberDto.js"; +export * from "./CreateVapiPhoneNumberDtoFallbackDestination.js"; +export * from "./CreateVapiPhoneNumberDtoHooksItem.js"; export * from "./CreateVapiPhoneNumberDto.js"; +export * from "./CreateTelnyxPhoneNumberDtoFallbackDestination.js"; +export * from "./CreateTelnyxPhoneNumberDtoHooksItem.js"; export * from "./CreateTelnyxPhoneNumberDto.js"; +export * from "./UpdateByoPhoneNumberDtoFallbackDestination.js"; +export * from "./UpdateByoPhoneNumberDtoHooksItem.js"; export * from "./UpdateByoPhoneNumberDto.js"; +export * from "./UpdateTwilioPhoneNumberDtoFallbackDestination.js"; +export * from "./UpdateTwilioPhoneNumberDtoHooksItem.js"; export * from "./UpdateTwilioPhoneNumberDto.js"; +export * from "./UpdateVonagePhoneNumberDtoFallbackDestination.js"; +export * from "./UpdateVonagePhoneNumberDtoHooksItem.js"; export * from "./UpdateVonagePhoneNumberDto.js"; +export * from "./UpdateVapiPhoneNumberDtoFallbackDestination.js"; +export * from "./UpdateVapiPhoneNumberDtoHooksItem.js"; export * from "./UpdateVapiPhoneNumberDto.js"; +export * from "./UpdateTelnyxPhoneNumberDtoFallbackDestination.js"; +export * from "./UpdateTelnyxPhoneNumberDtoHooksItem.js"; export * from "./UpdateTelnyxPhoneNumberDto.js"; +export * from "./ImportVonagePhoneNumberDtoFallbackDestination.js"; +export * from "./ImportVonagePhoneNumberDtoHooksItem.js"; export * from "./ImportVonagePhoneNumberDto.js"; +export * from "./PhoneNumberPaginatedResponseResultsItem.js"; export * from "./PhoneNumberPaginatedResponse.js"; +export * from "./ApiRequestToolMessagesItem.js"; +export * from "./ApiRequestToolMethod.js"; export * from "./ApiRequestTool.js"; +export * from "./DtmfToolMessagesItem.js"; export * from "./DtmfTool.js"; +export * from "./EndCallToolMessagesItem.js"; export * from "./EndCallTool.js"; +export * from "./FunctionToolMessagesItem.js"; export * from "./FunctionTool.js"; +export * from "./GhlToolMessagesItem.js"; export * from "./GhlTool.js"; +export * from "./MakeToolMessagesItem.js"; export * from "./MakeTool.js"; +export * from "./TransferCallToolMessagesItem.js"; +export * from "./TransferCallToolDestinationsItem.js"; export * from "./TransferCallTool.js"; +export * from "./HandoffToolMessagesItem.js"; +export * from "./HandoffToolDestinationsItem.js"; export * from "./HandoffTool.js"; +export * from "./OutputToolMessagesItem.js"; export * from "./OutputTool.js"; +export * from "./BashToolMessagesItem.js"; export * from "./BashTool.js"; +export * from "./ComputerToolMessagesItem.js"; export * from "./ComputerTool.js"; +export * from "./TextEditorToolMessagesItem.js"; export * from "./TextEditorTool.js"; +export * from "./QueryToolMessagesItem.js"; export * from "./QueryTool.js"; +export * from "./GoogleCalendarCreateEventToolMessagesItem.js"; export * from "./GoogleCalendarCreateEventTool.js"; +export * from "./GoogleSheetsRowAppendToolMessagesItem.js"; export * from "./GoogleSheetsRowAppendTool.js"; +export * from "./GoogleCalendarCheckAvailabilityToolMessagesItem.js"; export * from "./GoogleCalendarCheckAvailabilityTool.js"; +export * from "./SlackSendMessageToolMessagesItem.js"; export * from "./SlackSendMessageTool.js"; +export * from "./SmsToolMessagesItem.js"; export * from "./SmsTool.js"; +export * from "./McpToolMessagesItem.js"; export * from "./McpTool.js"; +export * from "./GoHighLevelCalendarAvailabilityToolMessagesItem.js"; export * from "./GoHighLevelCalendarAvailabilityTool.js"; +export * from "./GoHighLevelCalendarEventCreateToolMessagesItem.js"; export * from "./GoHighLevelCalendarEventCreateTool.js"; +export * from "./GoHighLevelContactCreateToolMessagesItem.js"; export * from "./GoHighLevelContactCreateTool.js"; +export * from "./GoHighLevelContactGetToolMessagesItem.js"; export * from "./GoHighLevelContactGetTool.js"; +export * from "./CreateApiRequestToolDtoMessagesItem.js"; +export * from "./CreateApiRequestToolDtoMethod.js"; export * from "./CreateApiRequestToolDto.js"; +export * from "./CreateOutputToolDtoMessagesItem.js"; export * from "./CreateOutputToolDto.js"; +export * from "./CreateBashToolDtoMessagesItem.js"; export * from "./CreateBashToolDto.js"; +export * from "./CreateComputerToolDtoMessagesItem.js"; export * from "./CreateComputerToolDto.js"; +export * from "./CreateTextEditorToolDtoMessagesItem.js"; export * from "./CreateTextEditorToolDto.js"; +export * from "./CreateSmsToolDtoMessagesItem.js"; export * from "./CreateSmsToolDto.js"; +export * from "./UpdateApiRequestToolDtoMessagesItem.js"; +export * from "./UpdateApiRequestToolDtoMethod.js"; export * from "./UpdateApiRequestToolDto.js"; +export * from "./UpdateDtmfToolDtoMessagesItem.js"; export * from "./UpdateDtmfToolDto.js"; +export * from "./UpdateEndCallToolDtoMessagesItem.js"; export * from "./UpdateEndCallToolDto.js"; +export * from "./UpdateFunctionToolDtoMessagesItem.js"; export * from "./UpdateFunctionToolDto.js"; +export * from "./UpdateGhlToolDtoMessagesItem.js"; export * from "./UpdateGhlToolDto.js"; +export * from "./UpdateMakeToolDtoMessagesItem.js"; export * from "./UpdateMakeToolDto.js"; +export * from "./UpdateHandoffToolDtoMessagesItem.js"; +export * from "./UpdateHandoffToolDtoDestinationsItem.js"; export * from "./UpdateHandoffToolDto.js"; +export * from "./UpdateTransferCallToolDtoMessagesItem.js"; +export * from "./UpdateTransferCallToolDtoDestinationsItem.js"; export * from "./UpdateTransferCallToolDto.js"; +export * from "./UpdateOutputToolDtoMessagesItem.js"; export * from "./UpdateOutputToolDto.js"; +export * from "./UpdateBashToolDtoMessagesItem.js"; export * from "./UpdateBashToolDto.js"; +export * from "./UpdateComputerToolDtoMessagesItem.js"; export * from "./UpdateComputerToolDto.js"; +export * from "./UpdateTextEditorToolDtoMessagesItem.js"; export * from "./UpdateTextEditorToolDto.js"; +export * from "./UpdateQueryToolDtoMessagesItem.js"; export * from "./UpdateQueryToolDto.js"; +export * from "./UpdateGoogleCalendarCreateEventToolDtoMessagesItem.js"; export * from "./UpdateGoogleCalendarCreateEventToolDto.js"; +export * from "./UpdateGoogleSheetsRowAppendToolDtoMessagesItem.js"; export * from "./UpdateGoogleSheetsRowAppendToolDto.js"; +export * from "./UpdateGoogleCalendarCheckAvailabilityToolDtoMessagesItem.js"; export * from "./UpdateGoogleCalendarCheckAvailabilityToolDto.js"; +export * from "./UpdateSlackSendMessageToolDtoMessagesItem.js"; export * from "./UpdateSlackSendMessageToolDto.js"; +export * from "./UpdateSmsToolDtoMessagesItem.js"; export * from "./UpdateSmsToolDto.js"; +export * from "./UpdateMcpToolDtoMessagesItem.js"; export * from "./UpdateMcpToolDto.js"; +export * from "./UpdateGoHighLevelCalendarAvailabilityToolDtoMessagesItem.js"; export * from "./UpdateGoHighLevelCalendarAvailabilityToolDto.js"; +export * from "./UpdateGoHighLevelCalendarEventCreateToolDtoMessagesItem.js"; export * from "./UpdateGoHighLevelCalendarEventCreateToolDto.js"; +export * from "./UpdateGoHighLevelContactCreateToolDtoMessagesItem.js"; export * from "./UpdateGoHighLevelContactCreateToolDto.js"; +export * from "./UpdateGoHighLevelContactGetToolDtoMessagesItem.js"; export * from "./UpdateGoHighLevelContactGetToolDto.js"; +export * from "./FileStatus.js"; export * from "./File_.js"; +export * from "./TrieveKnowledgeBaseSearchPlanSearchType.js"; export * from "./TrieveKnowledgeBaseSearchPlan.js"; export * from "./TrieveKnowledgeBase.js"; export * from "./CustomKnowledgeBase.js"; @@ -403,6 +831,7 @@ export * from "./UpdateCustomKnowledgeBaseDto.js"; export * from "./TrieveKnowledgeBaseChunkPlan.js"; export * from "./TrieveKnowledgeBaseCreate.js"; export * from "./TrieveKnowledgeBaseImport.js"; +export * from "./StructuredOutputModel.js"; export * from "./StructuredOutput.js"; export * from "./StructuredOutputPaginatedResponse.js"; export * from "./TesterPlan.js"; @@ -419,19 +848,26 @@ export * from "./CreateTestSuiteTestChatDto.js"; export * from "./UpdateTestSuiteTestVoiceDto.js"; export * from "./UpdateTestSuiteTestChatDto.js"; export * from "./TestSuiteTestScorerAi.js"; +export * from "./TestSuiteTestsPaginatedResponseResultsItem.js"; export * from "./TestSuiteTestsPaginatedResponse.js"; +export * from "./TestSuiteRunScorerAiResult.js"; export * from "./TestSuiteRunScorerAi.js"; export * from "./TestSuiteRunTestAttemptCall.js"; export * from "./TestSuiteRunTestAttemptMetadata.js"; export * from "./TestSuiteRunTestAttempt.js"; export * from "./TestSuiteRunTestResult.js"; +export * from "./TestSuiteRunStatus.js"; export * from "./TestSuiteRun.js"; export * from "./TestSuiteRunsPaginatedResponse.js"; export * from "./CreateTestSuiteRunDto.js"; export * from "./UpdateTestSuiteRunDto.js"; +export * from "./CreateEvalDtoMessagesItem.js"; export * from "./CreateEvalDto.js"; +export * from "./EvalMessagesItem.js"; export * from "./Eval.js"; +export * from "./EvalModelListOptionsProvider.js"; export * from "./EvalModelListOptions.js"; +export * from "./EvalUserEditableMessagesItem.js"; export * from "./EvalUserEditable.js"; export * from "./ChatEvalAssistantMessageMockToolCall.js"; export * from "./ChatEvalAssistantMessageMock.js"; @@ -439,41 +875,69 @@ export * from "./ChatEvalSystemMessageMock.js"; export * from "./ChatEvalToolResponseMessageMock.js"; export * from "./ChatEvalUserMessageMock.js"; export * from "./AssistantMessageEvaluationContinuePlan.js"; +export * from "./ChatEvalAssistantMessageEvaluationJudgePlan.js"; export * from "./ChatEvalAssistantMessageEvaluation.js"; export * from "./AssistantMessageJudgePlanExact.js"; +export * from "./EvalOpenAiModelModel.js"; export * from "./EvalOpenAiModel.js"; +export * from "./EvalAnthropicModelModel.js"; export * from "./EvalAnthropicModel.js"; +export * from "./EvalGoogleModelModel.js"; export * from "./EvalGoogleModel.js"; +export * from "./EvalGroqModelModel.js"; export * from "./EvalGroqModel.js"; export * from "./EvalCustomModel.js"; +export * from "./AssistantMessageJudgePlanAiModel.js"; export * from "./AssistantMessageJudgePlanAi.js"; export * from "./AssistantMessageJudgePlanRegex.js"; +export * from "./GetEvalPaginatedDtoSortOrder.js"; export * from "./GetEvalPaginatedDto.js"; export * from "./EvalPaginatedResponse.js"; +export * from "./EvalRunResultStatus.js"; +export * from "./EvalRunResultMessagesItem.js"; export * from "./EvalRunResult.js"; +export * from "./EvalRunStatus.js"; +export * from "./EvalRunEndedReason.js"; +export * from "./EvalRunTarget.js"; export * from "./EvalRun.js"; export * from "./EvalRunPaginatedResponse.js"; +export * from "./GetEvalRunPaginatedDtoSortOrder.js"; export * from "./GetEvalRunPaginatedDto.js"; export * from "./EvalRunTargetAssistant.js"; export * from "./EvalRunTargetSquad.js"; +export * from "./CreateOrgDtoChannel.js"; export * from "./CreateOrgDto.js"; export * from "./AutoReloadPlan.js"; export * from "./InvoicePlan.js"; +export * from "./SubscriptionType.js"; +export * from "./SubscriptionStatus.js"; +export * from "./SubscriptionMinutesIncludedResetFrequency.js"; export * from "./Subscription.js"; +export * from "./OrgChannel.js"; export * from "./Org.js"; +export * from "./UpdateOrgDtoChannel.js"; export * from "./UpdateOrgDto.js"; export * from "./User.js"; +export * from "./InviteUserDtoRole.js"; export * from "./InviteUserDto.js"; +export * from "./UpdateUserRoleDtoRole.js"; export * from "./UpdateUserRoleDto.js"; export * from "./JwtResponse.js"; export * from "./TokenRestrictions.js"; +export * from "./CreateTokenDtoTag.js"; export * from "./CreateTokenDto.js"; +export * from "./TokenTag.js"; export * from "./Token.js"; +export * from "./UpdateTokenDtoTag.js"; export * from "./UpdateTokenDto.js"; export * from "./AnthropicCredential.js"; export * from "./AnyscaleCredential.js"; export * from "./AssemblyAiCredential.js"; +export * from "./AzureCredentialService.js"; +export * from "./AzureCredentialRegion.js"; export * from "./AzureCredential.js"; +export * from "./AzureOpenAiCredentialRegion.js"; +export * from "./AzureOpenAiCredentialModelsItem.js"; export * from "./AzureOpenAiCredential.js"; export * from "./ByoSipTrunkCredential.js"; export * from "./CartesiaCredential.js"; @@ -512,7 +976,9 @@ export * from "./TogetherAiCredential.js"; export * from "./TrieveCredential.js"; export * from "./TwilioCredential.js"; export * from "./VonageCredential.js"; +export * from "./WebhookCredentialAuthenticationPlan.js"; export * from "./WebhookCredential.js"; +export * from "./CustomCredentialAuthenticationPlan.js"; export * from "./CustomCredential.js"; export * from "./XAiCredential.js"; export * from "./GoogleCalendarOAuth2ClientCredential.js"; @@ -529,13 +995,18 @@ export * from "./CreateMistralCredentialDto.js"; export * from "./CreateNeuphonicCredentialDto.js"; export * from "./CreateSpeechmaticsCredentialDto.js"; export * from "./CreateTrieveCredentialDto.js"; +export * from "./CreateCustomCredentialDtoAuthenticationPlan.js"; export * from "./CreateCustomCredentialDto.js"; export * from "./CreateGoHighLevelMcpCredentialDto.js"; export * from "./CreateInworldCredentialDto.js"; export * from "./UpdateAnthropicCredentialDto.js"; export * from "./UpdateAnyscaleCredentialDto.js"; export * from "./UpdateAssemblyAiCredentialDto.js"; +export * from "./UpdateAzureCredentialDtoService.js"; +export * from "./UpdateAzureCredentialDtoRegion.js"; export * from "./UpdateAzureCredentialDto.js"; +export * from "./UpdateAzureOpenAiCredentialDtoRegion.js"; +export * from "./UpdateAzureOpenAiCredentialDtoModelsItem.js"; export * from "./UpdateAzureOpenAiCredentialDto.js"; export * from "./UpdateByoSipTrunkCredentialDto.js"; export * from "./UpdateCartesiaCredentialDto.js"; @@ -573,7 +1044,9 @@ export * from "./UpdateTogetherAiCredentialDto.js"; export * from "./UpdateTrieveCredentialDto.js"; export * from "./UpdateTwilioCredentialDto.js"; export * from "./UpdateVonageCredentialDto.js"; +export * from "./UpdateWebhookCredentialDtoAuthenticationPlan.js"; export * from "./UpdateWebhookCredentialDto.js"; +export * from "./UpdateCustomCredentialDtoAuthenticationPlan.js"; export * from "./UpdateCustomCredentialDto.js"; export * from "./UpdateXAiCredentialDto.js"; export * from "./UpdateGoogleCalendarOAuth2ClientCredentialDto.js"; @@ -585,8 +1058,13 @@ export * from "./UpdateInworldCredentialDto.js"; export * from "./CredentialSessionResponse.js"; export * from "./CredentialEndUser.js"; export * from "./CredentialSessionError.js"; +export * from "./CredentialWebhookDtoType.js"; +export * from "./CredentialWebhookDtoOperation.js"; +export * from "./CredentialWebhookDtoAuthMode.js"; export * from "./CredentialWebhookDto.js"; export * from "./CredentialActionRequest.js"; +export * from "./HmacAuthenticationPlanAlgorithm.js"; +export * from "./HmacAuthenticationPlanSignatureEncoding.js"; export * from "./HmacAuthenticationPlan.js"; export * from "./BearerAuthenticationPlan.js"; export * from "./ToolTemplateSetup.js"; @@ -600,12 +1078,27 @@ export * from "./GoHighLevelCalendarEventCreateToolProviderDetails.js"; export * from "./GoHighLevelContactCreateToolProviderDetails.js"; export * from "./GoHighLevelContactGetToolProviderDetails.js"; export * from "./ToolTemplateMetadata.js"; +export * from "./CreateToolTemplateDtoDetails.js"; +export * from "./CreateToolTemplateDtoProviderDetails.js"; +export * from "./CreateToolTemplateDtoVisibility.js"; +export * from "./CreateToolTemplateDtoProvider.js"; export * from "./CreateToolTemplateDto.js"; +export * from "./TemplateDetails.js"; +export * from "./TemplateProviderDetails.js"; +export * from "./TemplateVisibility.js"; +export * from "./TemplateProvider.js"; export * from "./Template.js"; +export * from "./UpdateToolTemplateDtoDetails.js"; +export * from "./UpdateToolTemplateDtoProviderDetails.js"; +export * from "./UpdateToolTemplateDtoVisibility.js"; +export * from "./UpdateToolTemplateDtoProvider.js"; export * from "./UpdateToolTemplateDto.js"; +export * from "./VoiceLibraryGender.js"; export * from "./VoiceLibrary.js"; +export * from "./SyncVoiceLibraryDtoProvidersItem.js"; export * from "./SyncVoiceLibraryDto.js"; export * from "./CreateSesameVoiceDto.js"; +export * from "./ElevenLabsPronunciationDictionaryPermissionOnResource.js"; export * from "./ElevenLabsPronunciationDictionary.js"; export * from "./ProviderResource.js"; export * from "./ProviderResourcePaginatedResponse.js"; @@ -613,58 +1106,138 @@ export * from "./VoiceLibraryVoiceResponse.js"; export * from "./AddVoiceToProviderDto.js"; export * from "./CloneVoiceDto.js"; export * from "./VariableValueGroupBy.js"; +export * from "./TimeRangeStep.js"; export * from "./TimeRange.js"; +export * from "./AnalyticsOperationOperation.js"; +export * from "./AnalyticsOperationColumn.js"; export * from "./AnalyticsOperation.js"; +export * from "./AnalyticsQueryTable.js"; +export * from "./AnalyticsQueryGroupByItem.js"; export * from "./AnalyticsQuery.js"; export * from "./AnalyticsQueryResult.js"; +export * from "./ClientMessageWorkflowNodeStartedPhoneNumber.js"; export * from "./ClientMessageWorkflowNodeStarted.js"; +export * from "./ClientMessageConversationUpdatePhoneNumber.js"; +export * from "./ClientMessageConversationUpdateMessagesItem.js"; export * from "./ClientMessageConversationUpdate.js"; +export * from "./ClientMessageHangPhoneNumber.js"; export * from "./ClientMessageHang.js"; +export * from "./ClientMessageMetadataPhoneNumber.js"; export * from "./ClientMessageMetadata.js"; +export * from "./ClientMessageModelOutputPhoneNumber.js"; export * from "./ClientMessageModelOutput.js"; +export * from "./ClientMessageSpeechUpdatePhoneNumber.js"; +export * from "./ClientMessageSpeechUpdateStatus.js"; +export * from "./ClientMessageSpeechUpdateRole.js"; export * from "./ClientMessageSpeechUpdate.js"; +export * from "./ClientMessageTranscriptPhoneNumber.js"; +export * from "./ClientMessageTranscriptType.js"; +export * from "./ClientMessageTranscriptRole.js"; +export * from "./ClientMessageTranscriptTranscriptType.js"; export * from "./ClientMessageTranscript.js"; +export * from "./ClientMessageToolCallsPhoneNumber.js"; +export * from "./ClientMessageToolCallsToolWithToolCallListItem.js"; export * from "./ClientMessageToolCalls.js"; +export * from "./ClientMessageToolCallsResultPhoneNumber.js"; export * from "./ClientMessageToolCallsResult.js"; +export * from "./ClientMessageTransferUpdatePhoneNumber.js"; +export * from "./ClientMessageTransferUpdateDestination.js"; export * from "./ClientMessageTransferUpdate.js"; +export * from "./ClientMessageUserInterruptedPhoneNumber.js"; export * from "./ClientMessageUserInterrupted.js"; +export * from "./ClientMessageLanguageChangeDetectedPhoneNumber.js"; export * from "./ClientMessageLanguageChangeDetected.js"; +export * from "./ClientMessageVoiceInputPhoneNumber.js"; export * from "./ClientMessageVoiceInput.js"; +export * from "./ClientMessageChatCreatedPhoneNumber.js"; export * from "./ClientMessageChatCreated.js"; +export * from "./ClientMessageChatDeletedPhoneNumber.js"; export * from "./ClientMessageChatDeleted.js"; +export * from "./ClientMessageSessionCreatedPhoneNumber.js"; export * from "./ClientMessageSessionCreated.js"; +export * from "./ClientMessageSessionUpdatedPhoneNumber.js"; export * from "./ClientMessageSessionUpdated.js"; +export * from "./ClientMessageSessionDeletedPhoneNumber.js"; export * from "./ClientMessageSessionDeleted.js"; +export * from "./ClientMessageCallDeletedPhoneNumber.js"; export * from "./ClientMessageCallDeleted.js"; +export * from "./ClientMessageCallDeleteFailedPhoneNumber.js"; export * from "./ClientMessageCallDeleteFailed.js"; +export * from "./ClientMessageMessage.js"; export * from "./ClientMessage.js"; +export * from "./ServerMessageAssistantRequestPhoneNumber.js"; export * from "./ServerMessageAssistantRequest.js"; +export * from "./ServerMessageConversationUpdatePhoneNumber.js"; +export * from "./ServerMessageConversationUpdateMessagesItem.js"; export * from "./ServerMessageConversationUpdate.js"; +export * from "./ServerMessageEndOfCallReportPhoneNumber.js"; +export * from "./ServerMessageEndOfCallReportEndedReason.js"; +export * from "./ServerMessageEndOfCallReportCostsItem.js"; export * from "./ServerMessageEndOfCallReport.js"; +export * from "./ServerMessageHandoffDestinationRequestPhoneNumber.js"; export * from "./ServerMessageHandoffDestinationRequest.js"; +export * from "./ServerMessageHangPhoneNumber.js"; export * from "./ServerMessageHang.js"; +export * from "./ServerMessageKnowledgeBaseRequestPhoneNumber.js"; +export * from "./ServerMessageKnowledgeBaseRequestMessagesItem.js"; export * from "./ServerMessageKnowledgeBaseRequest.js"; +export * from "./ServerMessageModelOutputPhoneNumber.js"; export * from "./ServerMessageModelOutput.js"; +export * from "./ServerMessagePhoneCallControlPhoneNumber.js"; +export * from "./ServerMessagePhoneCallControlRequest.js"; +export * from "./ServerMessagePhoneCallControlDestination.js"; export * from "./ServerMessagePhoneCallControl.js"; +export * from "./ServerMessageSpeechUpdatePhoneNumber.js"; +export * from "./ServerMessageSpeechUpdateStatus.js"; +export * from "./ServerMessageSpeechUpdateRole.js"; export * from "./ServerMessageSpeechUpdate.js"; +export * from "./ServerMessageStatusUpdatePhoneNumber.js"; +export * from "./ServerMessageStatusUpdateStatus.js"; +export * from "./ServerMessageStatusUpdateEndedReason.js"; +export * from "./ServerMessageStatusUpdateMessagesItem.js"; +export * from "./ServerMessageStatusUpdateDestination.js"; export * from "./ServerMessageStatusUpdate.js"; +export * from "./ServerMessageToolCallsPhoneNumber.js"; +export * from "./ServerMessageToolCallsToolWithToolCallListItem.js"; export * from "./ServerMessageToolCalls.js"; +export * from "./ServerMessageTransferDestinationRequestPhoneNumber.js"; export * from "./ServerMessageTransferDestinationRequest.js"; +export * from "./ServerMessageTransferUpdatePhoneNumber.js"; +export * from "./ServerMessageTransferUpdateDestination.js"; export * from "./ServerMessageTransferUpdate.js"; +export * from "./ServerMessageTranscriptPhoneNumber.js"; +export * from "./ServerMessageTranscriptType.js"; +export * from "./ServerMessageTranscriptRole.js"; +export * from "./ServerMessageTranscriptTranscriptType.js"; export * from "./ServerMessageTranscript.js"; +export * from "./ServerMessageUserInterruptedPhoneNumber.js"; export * from "./ServerMessageUserInterrupted.js"; +export * from "./ServerMessageLanguageChangeDetectedPhoneNumber.js"; export * from "./ServerMessageLanguageChangeDetected.js"; +export * from "./ServerMessageVoiceInputPhoneNumber.js"; export * from "./ServerMessageVoiceInput.js"; +export * from "./ServerMessageVoiceRequestPhoneNumber.js"; export * from "./ServerMessageVoiceRequest.js"; +export * from "./ServerMessageCallEndpointingRequestPhoneNumber.js"; +export * from "./ServerMessageCallEndpointingRequestMessagesItem.js"; export * from "./ServerMessageCallEndpointingRequest.js"; +export * from "./ServerMessageChatCreatedPhoneNumber.js"; export * from "./ServerMessageChatCreated.js"; +export * from "./ServerMessageChatDeletedPhoneNumber.js"; export * from "./ServerMessageChatDeleted.js"; +export * from "./ServerMessageSessionCreatedPhoneNumber.js"; export * from "./ServerMessageSessionCreated.js"; +export * from "./ServerMessageSessionUpdatedPhoneNumber.js"; export * from "./ServerMessageSessionUpdated.js"; +export * from "./ServerMessageSessionDeletedPhoneNumber.js"; export * from "./ServerMessageSessionDeleted.js"; +export * from "./ServerMessageCallDeletedPhoneNumber.js"; export * from "./ServerMessageCallDeleted.js"; +export * from "./ServerMessageCallDeleteFailedPhoneNumber.js"; export * from "./ServerMessageCallDeleteFailed.js"; +export * from "./ServerMessageMessage.js"; export * from "./ServerMessage.js"; +export * from "./ServerMessageResponseAssistantRequestDestination.js"; export * from "./ServerMessageResponseAssistantRequest.js"; export * from "./ServerMessageResponseHandoffDestinationRequest.js"; export * from "./KnowledgeBaseResponseDocument.js"; @@ -672,38 +1245,60 @@ export * from "./ServerMessageResponseKnowledgeBaseRequest.js"; export * from "./ToolCallResultMessage.js"; export * from "./ToolCallResult.js"; export * from "./ServerMessageResponseToolCalls.js"; +export * from "./ServerMessageResponseTransferDestinationRequestDestination.js"; +export * from "./ServerMessageResponseTransferDestinationRequestMessage.js"; export * from "./ServerMessageResponseTransferDestinationRequest.js"; export * from "./ServerMessageResponseVoiceRequest.js"; export * from "./ServerMessageResponseCallEndpointingRequest.js"; +export * from "./ServerMessageResponseMessageResponse.js"; export * from "./ServerMessageResponse.js"; export * from "./ClientInboundMessageAddMessage.js"; +export * from "./ClientInboundMessageControlControl.js"; export * from "./ClientInboundMessageControl.js"; export * from "./ClientInboundMessageSay.js"; export * from "./ClientInboundMessageEndCall.js"; +export * from "./ClientInboundMessageTransferDestination.js"; export * from "./ClientInboundMessageTransfer.js"; +export * from "./ClientInboundMessageMessage.js"; export * from "./ClientInboundMessage.js"; export * from "./BotMessage.js"; export * from "./ToolCallMessage.js"; +export * from "./TransportCostProvider.js"; export * from "./TransportCost.js"; export * from "./TranscriberCost.js"; export * from "./ModelCost.js"; export * from "./VoiceCost.js"; +export * from "./VapiCostSubType.js"; export * from "./VapiCost.js"; +export * from "./AnalysisCostAnalysisType.js"; export * from "./AnalysisCost.js"; +export * from "./VoicemailDetectionCostProvider.js"; export * from "./VoicemailDetectionCost.js"; export * from "./KnowledgeBaseCost.js"; export * from "./ChatCost.js"; +export * from "./FunctionToolWithToolCallMessagesItem.js"; export * from "./FunctionToolWithToolCall.js"; +export * from "./GhlToolWithToolCallMessagesItem.js"; export * from "./GhlToolWithToolCall.js"; +export * from "./MakeToolWithToolCallMessagesItem.js"; export * from "./MakeToolWithToolCall.js"; +export * from "./BashToolWithToolCallMessagesItem.js"; export * from "./BashToolWithToolCall.js"; +export * from "./ComputerToolWithToolCallMessagesItem.js"; export * from "./ComputerToolWithToolCall.js"; +export * from "./TextEditorToolWithToolCallMessagesItem.js"; export * from "./TextEditorToolWithToolCall.js"; +export * from "./GoogleCalendarCreateEventToolWithToolCallMessagesItem.js"; export * from "./GoogleCalendarCreateEventToolWithToolCall.js"; +export * from "./GoogleSheetsRowAppendToolWithToolCallMessagesItem.js"; export * from "./GoogleSheetsRowAppendToolWithToolCall.js"; +export * from "./GoHighLevelCalendarAvailabilityToolWithToolCallMessagesItem.js"; export * from "./GoHighLevelCalendarAvailabilityToolWithToolCall.js"; +export * from "./GoHighLevelCalendarEventCreateToolWithToolCallMessagesItem.js"; export * from "./GoHighLevelCalendarEventCreateToolWithToolCall.js"; +export * from "./GoHighLevelContactCreateToolWithToolCallMessagesItem.js"; export * from "./GoHighLevelContactCreateToolWithToolCall.js"; +export * from "./GoHighLevelContactGetToolWithToolCallMessagesItem.js"; export * from "./GoHighLevelContactGetToolWithToolCall.js"; export * from "./AssistantUserEditable.js"; export * from "./FallbackNeetsVoice.js"; diff --git a/src/core/fetcher/Fetcher.ts b/src/core/fetcher/Fetcher.ts index 9e58ba78..39e69143 100644 --- a/src/core/fetcher/Fetcher.ts +++ b/src/core/fetcher/Fetcher.ts @@ -17,7 +17,7 @@ export declare namespace Fetcher { url: string; method: string; contentType?: string; - headers?: Record | undefined>; + headers?: Record | null | undefined>; queryParameters?: Record; body?: unknown; timeoutMs?: number; diff --git a/src/core/fetcher/requestWithRetries.ts b/src/core/fetcher/requestWithRetries.ts index add3cce0..560432ef 100644 --- a/src/core/fetcher/requestWithRetries.ts +++ b/src/core/fetcher/requestWithRetries.ts @@ -3,12 +3,55 @@ const MAX_RETRY_DELAY = 60000; // in milliseconds const DEFAULT_MAX_RETRIES = 2; const JITTER_FACTOR = 0.2; // 20% random jitter -function addJitter(delay: number): number { - // Generate a random value between -JITTER_FACTOR and +JITTER_FACTOR - const jitterMultiplier = 1 + (Math.random() * 2 - 1) * JITTER_FACTOR; +function addPositiveJitter(delay: number): number { + // Generate a random value between 0 and +JITTER_FACTOR + const jitterMultiplier = 1 + Math.random() * JITTER_FACTOR; return delay * jitterMultiplier; } +function addSymmetricJitter(delay: number): number { + // Generate a random value in a JITTER_FACTOR-sized percentage range around delay + const jitterMultiplier = 1 + (Math.random() - 0.5) * JITTER_FACTOR; + return delay * jitterMultiplier; +} + +function getRetryDelayFromHeaders(response: Response, retryAttempt: number): number { + // Check for Retry-After header first (RFC 7231), with no jitter + const retryAfter = response.headers.get("Retry-After"); + if (retryAfter) { + // Parse as number of seconds... + const retryAfterSeconds = parseInt(retryAfter, 10); + if (!isNaN(retryAfterSeconds) && retryAfterSeconds > 0) { + return Math.min(retryAfterSeconds * 1000, MAX_RETRY_DELAY); + } + + // ...or as an HTTP date; both are valid + const retryAfterDate = new Date(retryAfter); + if (!isNaN(retryAfterDate.getTime())) { + const delay = retryAfterDate.getTime() - Date.now(); + if (delay > 0) { + return Math.min(Math.max(delay, 0), MAX_RETRY_DELAY); + } + } + } + + // Then check for industry-standard X-RateLimit-Reset header, with positive jitter + const rateLimitReset = response.headers.get("X-RateLimit-Reset"); + if (rateLimitReset) { + const resetTime = parseInt(rateLimitReset, 10); + if (!isNaN(resetTime)) { + // Assume Unix timestamp in epoch seconds + const delay = resetTime * 1000 - Date.now(); + if (delay > 0) { + return addPositiveJitter(Math.min(delay, MAX_RETRY_DELAY)); + } + } + } + + // Fall back to exponential backoff, with symmetric jitter + return addSymmetricJitter(Math.min(INITIAL_RETRY_DELAY * Math.pow(2, retryAttempt), MAX_RETRY_DELAY)); +} + export async function requestWithRetries( requestFn: () => Promise, maxRetries: number = DEFAULT_MAX_RETRIES, @@ -17,13 +60,10 @@ export async function requestWithRetries( for (let i = 0; i < maxRetries; ++i) { if ([408, 429].includes(response.status) || response.status >= 500) { - // Calculate base delay using exponential backoff (in milliseconds) - const baseDelay = Math.min(INITIAL_RETRY_DELAY * Math.pow(2, i), MAX_RETRY_DELAY); - - // Add jitter to the delay - const delayWithJitter = addJitter(baseDelay); + // Get delay with appropriate jitter applied + const delay = getRetryDelayFromHeaders(response, i); - await new Promise((resolve) => setTimeout(resolve, delayWithJitter)); + await new Promise((resolve) => setTimeout(resolve, delay)); response = await requestFn(); } else { break; diff --git a/src/core/headers.ts b/src/core/headers.ts index 561314d2..85836147 100644 --- a/src/core/headers.ts +++ b/src/core/headers.ts @@ -1,9 +1,13 @@ import * as core from "./index.js"; export function mergeHeaders( - ...headersArray: (Record | undefined> | undefined)[] -): Record> { - const result: Record> = {}; + ...headersArray: ( + | Record | null | undefined> + | null + | undefined + )[] +): Record> { + const result: Record> = {}; for (const [key, value] of headersArray .filter((headers) => headers != null) @@ -19,9 +23,13 @@ export function mergeHeaders( } export function mergeOnlyDefinedHeaders( - ...headersArray: (Record | undefined> | undefined)[] -): Record> { - const result: Record> = {}; + ...headersArray: ( + | Record | null | undefined> + | null + | undefined + )[] +): Record> { + const result: Record> = {}; for (const [key, value] of headersArray .filter((headers) => headers != null) diff --git a/src/version.ts b/src/version.ts index cb3f87e9..b4ad2a35 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "0.10.3"; +export const SDK_VERSION = "0.10.4"; diff --git a/tests/unit/fetcher/requestWithRetries.test.ts b/tests/unit/fetcher/requestWithRetries.test.ts index 3cdaa40a..6f9426fc 100644 --- a/tests/unit/fetcher/requestWithRetries.test.ts +++ b/tests/unit/fetcher/requestWithRetries.test.ts @@ -129,4 +129,107 @@ describe("requestWithRetries", () => { expect(response1.status).toBe(200); expect(response2.status).toBe(200); }); + + it("should respect retry-after header with seconds value", async () => { + setTimeoutSpy = jest.spyOn(global, "setTimeout").mockImplementation((callback: (args: void) => void) => { + process.nextTick(callback); + return null as any; + }); + + mockFetch + .mockResolvedValueOnce( + new Response("", { + status: 429, + headers: new Headers({ "retry-after": "5" }), + }), + ) + .mockResolvedValueOnce(new Response("", { status: 200 })); + + const responsePromise = requestWithRetries(() => mockFetch(), 1); + await jest.runAllTimersAsync(); + const response = await responsePromise; + + expect(setTimeoutSpy).toHaveBeenCalledWith(expect.any(Function), 5000); // 5 seconds = 5000ms + expect(response.status).toBe(200); + }); + + it("should respect retry-after header with HTTP date value", async () => { + setTimeoutSpy = jest.spyOn(global, "setTimeout").mockImplementation((callback: (args: void) => void) => { + process.nextTick(callback); + return null as any; + }); + + const futureDate = new Date(Date.now() + 3000); // 3 seconds from now + mockFetch + .mockResolvedValueOnce( + new Response("", { + status: 429, + headers: new Headers({ "retry-after": futureDate.toUTCString() }), + }), + ) + .mockResolvedValueOnce(new Response("", { status: 200 })); + + const responsePromise = requestWithRetries(() => mockFetch(), 1); + await jest.runAllTimersAsync(); + const response = await responsePromise; + + // Should use the date-based delay (approximately 3000ms, but with jitter) + expect(setTimeoutSpy).toHaveBeenCalledWith(expect.any(Function), expect.any(Number)); + const actualDelay = setTimeoutSpy.mock.calls[0][1]; + expect(actualDelay).toBeGreaterThan(2000); + expect(actualDelay).toBeLessThan(4000); + expect(response.status).toBe(200); + }); + + it("should respect x-ratelimit-reset header", async () => { + setTimeoutSpy = jest.spyOn(global, "setTimeout").mockImplementation((callback: (args: void) => void) => { + process.nextTick(callback); + return null as any; + }); + + const resetTime = Math.floor((Date.now() + 4000) / 1000); // 4 seconds from now in Unix timestamp + mockFetch + .mockResolvedValueOnce( + new Response("", { + status: 429, + headers: new Headers({ "x-ratelimit-reset": resetTime.toString() }), + }), + ) + .mockResolvedValueOnce(new Response("", { status: 200 })); + + const responsePromise = requestWithRetries(() => mockFetch(), 1); + await jest.runAllTimersAsync(); + const response = await responsePromise; + + // Should use the x-ratelimit-reset delay (approximately 4000ms, but with positive jitter) + expect(setTimeoutSpy).toHaveBeenCalledWith(expect.any(Function), expect.any(Number)); + const actualDelay = setTimeoutSpy.mock.calls[0][1]; + expect(actualDelay).toBeGreaterThan(3000); + expect(actualDelay).toBeLessThan(6000); + expect(response.status).toBe(200); + }); + + it("should cap delay at MAX_RETRY_DELAY for large header values", async () => { + setTimeoutSpy = jest.spyOn(global, "setTimeout").mockImplementation((callback: (args: void) => void) => { + process.nextTick(callback); + return null as any; + }); + + mockFetch + .mockResolvedValueOnce( + new Response("", { + status: 429, + headers: new Headers({ "retry-after": "120" }), // 120 seconds = 120000ms > MAX_RETRY_DELAY (60000ms) + }), + ) + .mockResolvedValueOnce(new Response("", { status: 200 })); + + const responsePromise = requestWithRetries(() => mockFetch(), 1); + await jest.runAllTimersAsync(); + const response = await responsePromise; + + // Should be capped at MAX_RETRY_DELAY (60000ms) with jitter applied + expect(setTimeoutSpy).toHaveBeenCalledWith(expect.any(Function), 60000); // Exactly MAX_RETRY_DELAY since jitter with 0.5 random keeps it at 60000 + expect(response.status).toBe(200); + }); }); diff --git a/tests/wire/providerResources.test.ts b/tests/wire/providerResources.test.ts index e41ea54b..36691ba1 100644 --- a/tests/wire/providerResources.test.ts +++ b/tests/wire/providerResources.test.ts @@ -156,7 +156,7 @@ describe("ProviderResources", () => { }); }); - test("ProviderResourceController_getProviderResource (3f67e63e)", async () => { + test("ProviderResourceController_getProviderResource (1)", async () => { const server = mockServerPool.createServer(); const client = new VapiClient({ token: "test", environment: server.baseUrl }); @@ -213,7 +213,7 @@ describe("ProviderResources", () => { }); }); - test("ProviderResourceController_getProviderResource (5407a9f5)", async () => { + test("ProviderResourceController_getProviderResource (2)", async () => { const server = mockServerPool.createServer(); const client = new VapiClient({ token: "test", environment: server.baseUrl }); @@ -232,14 +232,10 @@ describe("ProviderResources", () => { "pronunciation-dictionary", "id", ); - }).rejects.toThrow( - new Vapi.NotFoundError({ - key: "value", - }), - ); + }).rejects.toThrow(Vapi.NotFoundError); }); - test("ProviderResourceController_deleteProviderResource (3f67e63e)", async () => { + test("ProviderResourceController_deleteProviderResource (1)", async () => { const server = mockServerPool.createServer(); const client = new VapiClient({ token: "test", environment: server.baseUrl }); @@ -296,7 +292,7 @@ describe("ProviderResources", () => { }); }); - test("ProviderResourceController_deleteProviderResource (5407a9f5)", async () => { + test("ProviderResourceController_deleteProviderResource (2)", async () => { const server = mockServerPool.createServer(); const client = new VapiClient({ token: "test", environment: server.baseUrl }); @@ -315,14 +311,10 @@ describe("ProviderResources", () => { "pronunciation-dictionary", "id", ); - }).rejects.toThrow( - new Vapi.NotFoundError({ - key: "value", - }), - ); + }).rejects.toThrow(Vapi.NotFoundError); }); - test("ProviderResourceController_updateProviderResource (3f67e63e)", async () => { + test("ProviderResourceController_updateProviderResource (1)", async () => { const server = mockServerPool.createServer(); const client = new VapiClient({ token: "test", environment: server.baseUrl }); @@ -379,7 +371,7 @@ describe("ProviderResources", () => { }); }); - test("ProviderResourceController_updateProviderResource (5407a9f5)", async () => { + test("ProviderResourceController_updateProviderResource (2)", async () => { const server = mockServerPool.createServer(); const client = new VapiClient({ token: "test", environment: server.baseUrl }); @@ -398,10 +390,6 @@ describe("ProviderResources", () => { "pronunciation-dictionary", "id", ); - }).rejects.toThrow( - new Vapi.NotFoundError({ - key: "value", - }), - ); + }).rejects.toThrow(Vapi.NotFoundError); }); }); diff --git a/yarn.lock b/yarn.lock index 5d0f5daf..af10758f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -270,42 +270,56 @@ resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== -"@inquirer/ansi@^1.0.1": +"@bundled-es-modules/cookie@^2.0.1": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@bundled-es-modules/cookie/-/cookie-2.0.1.tgz#b41376af6a06b3e32a15241d927b840a9b4de507" + integrity sha512-8o+5fRPLNbjbdGRRmJj3h6Hh1AQJf2dk3qQ/5ZFb+PXkRNiSoMGGUKlsgLfrxneb72axVJyIYji64E2+nNfYyw== + dependencies: + cookie "^0.7.2" + +"@bundled-es-modules/statuses@^1.0.1": version "1.0.1" - resolved "https://registry.yarnpkg.com/@inquirer/ansi/-/ansi-1.0.1.tgz#994f7dd16a00c547a7b110e04bf4f4eca1857929" - integrity sha512-yqq0aJW/5XPhi5xOAL1xRCpe1eh8UFVgYFpFsjEqmIR8rKLyP+HINvFXwUaxYICflJrVlxnp7lLN6As735kVpw== + resolved "https://registry.yarnpkg.com/@bundled-es-modules/statuses/-/statuses-1.0.1.tgz#761d10f44e51a94902c4da48675b71a76cc98872" + integrity sha512-yn7BklA5acgcBr+7w064fGV+SGIFySjCKpqjcWgBAIfrAkY+4GQTJJHQMeT3V/sgz23VTEVV8TtOmkvJAhFVfg== + dependencies: + statuses "^2.0.1" + +"@inquirer/ansi@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@inquirer/ansi/-/ansi-1.0.0.tgz#29525c673caf36c12e719712830705b9c31f0462" + integrity sha512-JWaTfCxI1eTmJ1BIv86vUfjVatOdxwD0DAVKYevY8SazeUUZtW+tNbsdejVO1GYE0GXJW1N1ahmiC3TFd+7wZA== "@inquirer/confirm@^5.0.0": - version "5.1.19" - resolved "https://registry.yarnpkg.com/@inquirer/confirm/-/confirm-5.1.19.tgz#bf28b420898999eb7479ab55623a3fbaf1453ff4" - integrity sha512-wQNz9cfcxrtEnUyG5PndC8g3gZ7lGDBzmWiXZkX8ot3vfZ+/BLjR8EvyGX4YzQLeVqtAlY/YScZpW7CW8qMoDQ== + version "5.1.18" + resolved "https://registry.yarnpkg.com/@inquirer/confirm/-/confirm-5.1.18.tgz#0b76e5082d834c0e3528023705b867fc1222d535" + integrity sha512-MilmWOzHa3Ks11tzvuAmFoAd/wRuaP3SwlT1IZhyMke31FKLxPiuDWcGXhU+PKveNOpAc4axzAgrgxuIJJRmLw== dependencies: - "@inquirer/core" "^10.3.0" - "@inquirer/type" "^3.0.9" + "@inquirer/core" "^10.2.2" + "@inquirer/type" "^3.0.8" -"@inquirer/core@^10.3.0": - version "10.3.0" - resolved "https://registry.yarnpkg.com/@inquirer/core/-/core-10.3.0.tgz#342e4fd62cbd33ea62089364274995dbec1f2ffe" - integrity sha512-Uv2aPPPSK5jeCplQmQ9xadnFx2Zhj9b5Dj7bU6ZeCdDNNY11nhYy4btcSdtDguHqCT2h5oNeQTcUNSGGLA7NTA== +"@inquirer/core@^10.2.2": + version "10.2.2" + resolved "https://registry.yarnpkg.com/@inquirer/core/-/core-10.2.2.tgz#d31eb50ba0c76b26e7703c2c0d1d0518144c23ab" + integrity sha512-yXq/4QUnk4sHMtmbd7irwiepjB8jXU0kkFRL4nr/aDBA2mDz13cMakEWdDwX3eSCTkk03kwcndD1zfRAIlELxA== dependencies: - "@inquirer/ansi" "^1.0.1" - "@inquirer/figures" "^1.0.14" - "@inquirer/type" "^3.0.9" + "@inquirer/ansi" "^1.0.0" + "@inquirer/figures" "^1.0.13" + "@inquirer/type" "^3.0.8" cli-width "^4.1.0" mute-stream "^2.0.0" signal-exit "^4.1.0" wrap-ansi "^6.2.0" yoctocolors-cjs "^2.1.2" -"@inquirer/figures@^1.0.14": - version "1.0.14" - resolved "https://registry.yarnpkg.com/@inquirer/figures/-/figures-1.0.14.tgz#12a7bfd344a83ae6cc5d6004b389ed11f6db6be4" - integrity sha512-DbFgdt+9/OZYFM+19dbpXOSeAstPy884FPy1KjDu4anWwymZeOYhMY1mdFri172htv6mvc/uvIAAi7b7tvjJBQ== +"@inquirer/figures@^1.0.13": + version "1.0.13" + resolved "https://registry.yarnpkg.com/@inquirer/figures/-/figures-1.0.13.tgz#ad0afd62baab1c23175115a9b62f511b6a751e45" + integrity sha512-lGPVU3yO9ZNqA7vTYz26jny41lE7yoQansmqdMLBEfqaGsmdg7V3W9mK9Pvb5IL4EVZ9GnSDGMO/cJXud5dMaw== -"@inquirer/type@^3.0.9": - version "3.0.9" - resolved "https://registry.yarnpkg.com/@inquirer/type/-/type-3.0.9.tgz#f7f9696e9276e4e1ae9332767afb9199992e31d9" - integrity sha512-QPaNt/nmE2bLGQa9b7wwyRJoLZ7pN6rcyXvzU0YCmivmJyq1BVo94G98tStRWkoD1RgDX5C+dPlhhHzNdu/W/w== +"@inquirer/type@^3.0.8": + version "3.0.8" + resolved "https://registry.yarnpkg.com/@inquirer/type/-/type-3.0.8.tgz#efc293ba0ed91e90e6267f1aacc1c70d20b8b4e8" + integrity sha512-lg9Whz8onIHRthWaN1Q9EGLa/0LFJjyM8mEUbL1eTi6yMGvBf8gvyDLtxSXztQsxMvhxxNpJYrwa1YHdq+w4Jw== "@istanbuljs/load-nyc-config@^1.0.0": version "1.1.0" @@ -558,9 +572,9 @@ "@jridgewell/sourcemap-codec" "^1.4.14" "@mswjs/interceptors@^0.39.1": - version "0.39.8" - resolved "https://registry.yarnpkg.com/@mswjs/interceptors/-/interceptors-0.39.8.tgz#0a2cf4cf26a731214ca4156273121f67dff7ebf8" - integrity sha512-2+BzZbjRO7Ct61k8fMNHEtoKjeWI9pIlHFTqBwZ5icHpqszIgEZbjb1MW5Z0+bITTCTl3gk4PDBxs9tA/csXvA== + version "0.39.6" + resolved "https://registry.yarnpkg.com/@mswjs/interceptors/-/interceptors-0.39.6.tgz#44094a578f20da4749d1a0eaf3cdb7973604004b" + integrity sha512-bndDP83naYYkfayr/qhBHMhk0YGwS1iv6vaEGcr0SQbO0IZtbOPqjKjds/WcG+bJA+1T5vCx6kprKOzn5Bg+Vw== dependencies: "@open-draft/deferred-promise" "^2.2.0" "@open-draft/logger" "^0.3.0" @@ -582,7 +596,7 @@ is-node-process "^1.2.0" outvariant "^1.4.0" -"@open-draft/until@^2.0.0": +"@open-draft/until@^2.0.0", "@open-draft/until@^2.1.0": version "2.1.0" resolved "https://registry.yarnpkg.com/@open-draft/until/-/until-2.1.0.tgz#0acf32f470af2ceaf47f095cdecd40d68666efda" integrity sha512-U69T3ItWHvLwGg5eJ0n3I62nWuE6ilHlmz7zM0npLBRvPRd7e6NYmg54vvRtP5mZG7kZqZCFVdsTWo7BPtBujg== @@ -644,6 +658,11 @@ dependencies: "@babel/types" "^7.28.2" +"@types/cookie@^0.6.0": + version "0.6.0" + resolved "https://registry.yarnpkg.com/@types/cookie/-/cookie-0.6.0.tgz#eac397f28bf1d6ae0ae081363eca2f425bedf0d5" + integrity sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA== + "@types/eslint-scope@^3.7.7": version "3.7.7" resolved "https://registry.yarnpkg.com/@types/eslint-scope/-/eslint-scope-3.7.7.tgz#3108bd5f18b0cdb277c867b3dd449c9ed7079ac5" @@ -714,16 +733,16 @@ integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== "@types/node@*": - version "24.8.1" - resolved "https://registry.yarnpkg.com/@types/node/-/node-24.8.1.tgz#74c8ae00b045a0a351f2837ec00f25dfed0053be" - integrity sha512-alv65KGRadQVfVcG69MuB4IzdYVpRwMG/mq8KWOaoOdyY617P5ivaDiMCGOFDWD2sAn5Q0mR3mRtUOgm99hL9Q== + version "24.5.2" + resolved "https://registry.yarnpkg.com/@types/node/-/node-24.5.2.tgz#52ceb83f50fe0fcfdfbd2a9fab6db2e9e7ef6446" + integrity sha512-FYxk1I7wPv3K2XBaoyH2cTnocQEu8AOZ60hPbsyukMPLv5/5qr7V1i8PLHdl6Zf87I+xZXFvPCXYjiTFq+YSDQ== dependencies: - undici-types "~7.14.0" + undici-types "~7.12.0" "@types/node@^18.19.70": - version "18.19.130" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.130.tgz#da4c6324793a79defb7a62cba3947ec5add00d59" - integrity sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg== + version "18.19.127" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.127.tgz#7c2e47fa79ad7486134700514d4a975c4607f09d" + integrity sha512-gSjxjrnKXML/yo0BO099uPixMqfpJU0TKYjpfLU7TrtA2WWDki412Np/RSTPRil1saKBhvVVKzVx/p/6p94nVA== dependencies: undici-types "~5.26.4" @@ -1058,10 +1077,10 @@ balanced-match@^1.0.0: resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== -baseline-browser-mapping@^2.8.9: - version "2.8.17" - resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.8.17.tgz#85aff3f7dd6326ea25b77ce834b96bb698545dc6" - integrity sha512-j5zJcx6golJYTG6c05LUZ3Z8Gi+M62zRT/ycz4Xq4iCOdpcxwg7ngEYD4KA0eWZC7U17qh/Smq8bYbACJ0ipBA== +baseline-browser-mapping@^2.8.3: + version "2.8.6" + resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.8.6.tgz#c37dea4291ed8d01682f85661dbe87967028642e" + integrity sha512-wrH5NNqren/QMtKUEEJf7z86YjfqW/2uw3IL3/xpqZUC95SSVIFXYQeeGjL6FT/X68IROu6RMehZQS5foy2BXw== brace-expansion@^1.1.7: version "1.1.12" @@ -1078,14 +1097,14 @@ braces@^3.0.3: dependencies: fill-range "^7.1.1" -browserslist@^4.24.0, browserslist@^4.26.3: - version "4.26.3" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.26.3.tgz#40fbfe2d1cd420281ce5b1caa8840049c79afb56" - integrity sha512-lAUU+02RFBuCKQPj/P6NgjlbCnLBMp4UtgTx7vNHd3XSIJF87s9a5rA3aH2yw3GS9DqZAUbOtZdCCiZeVRqt0w== +browserslist@^4.24.0: + version "4.26.2" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.26.2.tgz#7db3b3577ec97f1140a52db4936654911078cef3" + integrity sha512-ECFzp6uFOSB+dcZ5BK/IBaGWssbSYBHvuMeMt3MMFyhI0Z8SqGgEkBLARgpRH3hutIgPVsALcMwbDrJqPxQ65A== dependencies: - baseline-browser-mapping "^2.8.9" - caniuse-lite "^1.0.30001746" - electron-to-chromium "^1.5.227" + baseline-browser-mapping "^2.8.3" + caniuse-lite "^1.0.30001741" + electron-to-chromium "^1.5.218" node-releases "^2.0.21" update-browserslist-db "^1.1.3" @@ -1131,10 +1150,10 @@ camelcase@^6.2.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001746: - version "1.0.30001751" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001751.tgz#dacd5d9f4baeea841641640139d2b2a4df4226ad" - integrity sha512-A0QJhug0Ly64Ii3eIqHu5X51ebln3k4yTUkY1j8drqpWHVreg/VLijN48cZ1bYPiqOQuqpkIKnzr/Ul8V+p6Cw== +caniuse-lite@^1.0.30001741: + version "1.0.30001743" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001743.tgz#50ff91a991220a1ee2df5af00650dd5c308ea7cd" + integrity sha512-e6Ojr7RV14Un7dz6ASD0aZDmQPT/A+eZU+nuTNfjqmRrmkmQlnTNWH0SKmqagx9PeW87UVqapSurtAXifmtdmw== chalk@^4.0.0, chalk@^4.1.0: version "4.1.2" @@ -1184,9 +1203,9 @@ co@^4.6.0: integrity sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ== collect-v8-coverage@^1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.3.tgz#cc1f01eb8d02298cbc9a437c74c70ab4e5210b80" - integrity sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw== + version "1.0.2" + resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz#c0b29bcd33bcd0779a1344c2136051e6afd3d9e9" + integrity sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q== color-convert@^2.0.1: version "2.0.1" @@ -1222,10 +1241,10 @@ convert-source-map@^2.0.0: resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-2.0.0.tgz#4b560f649fc4e918dd0ab75cf4961e8bc882d82a" integrity sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg== -cookie@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/cookie/-/cookie-1.0.2.tgz#27360701532116bd3f1f9416929d176afe1e4610" - integrity sha512-9Kr/j4O16ISv8zBBhJoi4bXOYNTkFLOqSL3UDB0njXxCXNezjeyVrJyGOWtgfs/q2km1gwBcfH8q1yEGoMYunA== +cookie@^0.7.2: + version "0.7.2" + resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.7.2.tgz#556369c472a2ba910f2979891b526b3436237ed7" + integrity sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w== create-jest@^29.7.0: version "29.7.0" @@ -1328,10 +1347,10 @@ dunder-proto@^1.0.1: es-errors "^1.3.0" gopd "^1.2.0" -electron-to-chromium@^1.5.227: - version "1.5.237" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.237.tgz#eacf61cef3f6345d0069ab427585c5a04d7084f0" - integrity sha512-icUt1NvfhGLar5lSWH3tHNzablaA5js3HVHacQimfP8ViEBOQv+L7DKEuHdbTZ0SKCO1ogTJTIL1Gwk9S6Qvcg== +electron-to-chromium@^1.5.218: + version "1.5.221" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.221.tgz#bd98014b2a247701c4ebd713080448d539545d79" + integrity sha512-/1hFJ39wkW01ogqSyYoA4goOXOtMRy6B+yvA1u42nnsEGtHzIzmk93aPISumVQeblj47JUHLC9coCjUxb1EvtQ== emittery@^0.13.1: version "0.13.1" @@ -2296,9 +2315,9 @@ lines-and-columns@^1.1.6: integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== loader-runner@^4.2.0: - version "4.3.1" - resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-4.3.1.tgz#6c76ed29b0ccce9af379208299f07f876de737e3" - integrity sha512-IWqP2SCPhyVFTBtRcgMHdzlf9ul25NwaFx4wCEH/KjAXuuHY4yNjvPXsBokp8jCB936PyWRaPKUNh8NvylLp2Q== + version "4.3.0" + resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-4.3.0.tgz#c1b4a163b99f614830353b16755e7149ac2314e1" + integrity sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg== locate-path@^5.0.0: version "5.0.0" @@ -2391,15 +2410,18 @@ ms@^2.1.3: integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== msw@^2.8.4: - version "2.11.5" - resolved "https://registry.yarnpkg.com/msw/-/msw-2.11.5.tgz#69572ab70a60b5d72c8b6aed344595a7604241c0" - integrity sha512-atFI4GjKSJComxcigz273honh8h4j5zzpk5kwG4tGm0TPcYne6bqmVrufeRll6auBeouIkXqZYXxVbWSWxM3RA== + version "2.11.2" + resolved "https://registry.yarnpkg.com/msw/-/msw-2.11.2.tgz#622d83855f456a5f93b1528f6eb6f4c0114623c3" + integrity sha512-MI54hLCsrMwiflkcqlgYYNJJddY5/+S0SnONvhv1owOplvqohKSQyGejpNdUGyCwgs4IH7PqaNbPw/sKOEze9Q== dependencies: + "@bundled-es-modules/cookie" "^2.0.1" + "@bundled-es-modules/statuses" "^1.0.1" "@inquirer/confirm" "^5.0.0" "@mswjs/interceptors" "^0.39.1" "@open-draft/deferred-promise" "^2.2.0" + "@open-draft/until" "^2.1.0" + "@types/cookie" "^0.6.0" "@types/statuses" "^2.0.4" - cookie "^1.0.2" graphql "^16.8.1" headers-polyfill "^4.0.2" is-node-process "^1.2.0" @@ -2407,11 +2429,9 @@ msw@^2.8.4: path-to-regexp "^6.3.0" picocolors "^1.1.1" rettime "^0.7.0" - statuses "^2.0.2" strict-event-emitter "^0.5.1" tough-cookie "^6.0.0" type-fest "^4.26.1" - until-async "^3.0.2" yargs "^17.7.2" mute-stream@^2.0.0: @@ -2435,9 +2455,9 @@ node-int64@^0.4.0: integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== node-releases@^2.0.21: - version "2.0.25" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.25.tgz#95479437bd409231e03981c1f6abee67f5e962df" - integrity sha512-4auku8B/vw5psvTiiN9j1dAOsXvMoGqJuKJcR+dTdqiXEK20mMTk1UEo3HS16LeGQsVG6+qKTPM9u/qQ2LqATA== + version "2.0.21" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.21.tgz#f59b018bc0048044be2d4c4c04e4c8b18160894c" + integrity sha512-5b0pgg78U3hwXkCM8Z9b2FJdPZlr9Psr9V2gQPESdGHqbntyFJKFW4r5TeWGFzafGY3hzs1JC62VEQMbl1JFkw== normalize-path@^3.0.0: version "3.0.0" @@ -2684,10 +2704,10 @@ saxes@^6.0.0: dependencies: xmlchars "^2.2.0" -schema-utils@^4.3.0, schema-utils@^4.3.3: - version "4.3.3" - resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-4.3.3.tgz#5b1850912fa31df90716963d45d9121fdfc09f46" - integrity sha512-eflK8wEtyOE6+hsaRVPxvUKYCpRgzLqDTb8krvAsRIwOGlHoSgYLgBXoubGgLd2fT41/OUYdb48v4k4WWHQurA== +schema-utils@^4.3.0, schema-utils@^4.3.2: + version "4.3.2" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-4.3.2.tgz#0c10878bf4a73fd2b1dfd14b9462b26788c806ae" + integrity sha512-Gn/JaSk/Mt9gYubxTtSn/QCV4em9mpAPiR1rqy/Ocu19u/G9J5WWdNoUT4SiV6mFC3y6cxyFcFwdzPM3FgxGAQ== dependencies: "@types/json-schema" "^7.0.9" ajv "^8.9.0" @@ -2699,10 +2719,10 @@ semver@^6.3.0, semver@^6.3.1: resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== -semver@^7.3.4, semver@^7.5.3, semver@^7.5.4, semver@^7.7.3: - version "7.7.3" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.3.tgz#4b5f4143d007633a8dc671cd0a6ef9147b8bb946" - integrity sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q== +semver@^7.3.4, semver@^7.5.3, semver@^7.5.4, semver@^7.7.2: + version "7.7.2" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.7.2.tgz#67d99fdcd35cec21e6f8b87a7fd515a33f982b58" + integrity sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA== serialize-javascript@^6.0.2: version "6.0.2" @@ -2781,7 +2801,7 @@ stack-utils@^2.0.3: dependencies: escape-string-regexp "^2.0.0" -statuses@^2.0.2: +statuses@^2.0.1: version "2.0.2" resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.2.tgz#8f75eecef765b5e1cfcdc080da59409ed424e382" integrity sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw== @@ -2854,10 +2874,10 @@ symbol-tree@^3.2.4: resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== -tapable@^2.2.0, tapable@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.3.0.tgz#7e3ea6d5ca31ba8e078b560f0d83ce9a14aa8be6" - integrity sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg== +tapable@^2.1.1, tapable@^2.2.0: + version "2.2.3" + resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.3.tgz#4b67b635b2d97578a06a2713d2f04800c237e99b" + integrity sha512-ZL6DDuAlRlLGghwcfmSn9sK3Hr6ArtyudlSAiCqQ6IfE+b+HHbydbYDIG15IfS5do+7XQQBdBiubF/cV2dnDzg== terser-webpack-plugin@^5.3.11: version "5.3.14" @@ -2889,17 +2909,17 @@ test-exclude@^6.0.0: glob "^7.1.4" minimatch "^3.0.4" -tldts-core@^7.0.17: - version "7.0.17" - resolved "https://registry.yarnpkg.com/tldts-core/-/tldts-core-7.0.17.tgz#dadfee3750dd272ed219d7367beb7cbb2ff29eb8" - integrity sha512-DieYoGrP78PWKsrXr8MZwtQ7GLCUeLxihtjC1jZsW1DnvSMdKPitJSe8OSYDM2u5H6g3kWJZpePqkp43TfLh0g== +tldts-core@^7.0.14: + version "7.0.14" + resolved "https://registry.yarnpkg.com/tldts-core/-/tldts-core-7.0.14.tgz#eb49edf8a39a37a2372ffc22f82d6ac725ace6cd" + integrity sha512-viZGNK6+NdluOJWwTO9olaugx0bkKhscIdriQQ+lNNhwitIKvb+SvhbYgnCz6j9p7dX3cJntt4agQAKMXLjJ5g== tldts@^7.0.5: - version "7.0.17" - resolved "https://registry.yarnpkg.com/tldts/-/tldts-7.0.17.tgz#a6cdc067b9e80ea05f3be471c0ea410688cc78b2" - integrity sha512-Y1KQBgDd/NUc+LfOtKS6mNsC9CCaH+m2P1RoIZy7RAPo3C3/t8X45+zgut31cRZtZ3xKPjfn3TkGTrctC2TQIQ== + version "7.0.14" + resolved "https://registry.yarnpkg.com/tldts/-/tldts-7.0.14.tgz#5dc352e087c12978b7d1d36d8a346496e04dca72" + integrity sha512-lMNHE4aSI3LlkMUMicTmAG3tkkitjOQGDTFboPJwAg2kJXKP1ryWEyqujktg5qhrFZOkk5YFzgkxg3jErE+i5w== dependencies: - tldts-core "^7.0.17" + tldts-core "^7.0.14" tmpl@1.0.5: version "1.0.5" @@ -2938,9 +2958,9 @@ tr46@^3.0.0: punycode "^2.1.1" ts-jest@^29.3.4: - version "29.4.5" - resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.4.5.tgz#a6b0dc401e521515d5342234be87f1ca96390a6f" - integrity sha512-HO3GyiWn2qvTQA4kTgjDcXiMwYQt68a1Y8+JuLRVpdIzm+UOLSHgl/XqR4c6nzJkq5rOkjc02O2I7P7l/Yof0Q== + version "29.4.3" + resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.4.3.tgz#23264489bebb5b3e2c7966dbf6788e960f244f7c" + integrity sha512-KTWbK2Wot8VXargsLoxhSoEQ9OyMdzQXQoUDeIulWu2Tf7gghuBHeg+agZqVLdTOHhQHVKAaeuctBDRkhWE7hg== dependencies: bs-logger "^0.2.6" fast-json-stable-stringify "^2.1.0" @@ -2948,7 +2968,7 @@ ts-jest@^29.3.4: json5 "^2.2.3" lodash.memoize "^4.1.2" make-error "^1.3.6" - semver "^7.7.3" + semver "^7.7.2" type-fest "^4.41.0" yargs-parser "^21.1.1" @@ -2993,21 +3013,16 @@ undici-types@~5.26.4: resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== -undici-types@~7.14.0: - version "7.14.0" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.14.0.tgz#4c037b32ca4d7d62fae042174604341588bc0840" - integrity sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA== +undici-types@~7.12.0: + version "7.12.0" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.12.0.tgz#15c5c7475c2a3ba30659529f5cdb4674b622fafb" + integrity sha512-goOacqME2GYyOZZfb5Lgtu+1IDmAlAEu5xnD3+xTzS10hT0vzpf0SPjkXwAw9Jm+4n/mQGDP3LO8CPbYROeBfQ== universalify@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0" integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== -until-async@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/until-async/-/until-async-3.0.2.tgz#447f1531fdd7bb2b4c7a98869bdb1a4c2a23865f" - integrity sha512-IiSk4HlzAMqTUseHHe3VhIGyuFmN90zMTpD3Z3y8jeQbzLIq500MVM7Jq2vUAnTKAFPJrqwkzr6PoTcPhGcOiw== - update-browserslist-db@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz#348377dd245216f9e7060ff50b15a1b740b75420" @@ -3047,7 +3062,7 @@ walker@^1.0.8: dependencies: makeerror "1.0.12" -watchpack@^2.4.4: +watchpack@^2.4.1: version "2.4.4" resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-2.4.4.tgz#473bda72f0850453da6425081ea46fc0d7602947" integrity sha512-c5EGNOiyxxV5qmTtAB7rbiXxi1ooX1pQKMLX/MIabJjRA0SJBQOjKF+KSVfHkr9U1cADPon0mRiVe/riyaiDUA== @@ -3066,9 +3081,9 @@ webpack-sources@^3.3.3: integrity sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg== webpack@^5.97.1: - version "5.102.1" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.102.1.tgz#1003a3024741a96ba99c37431938bf61aad3d988" - integrity sha512-7h/weGm9d/ywQ6qzJ+Xy+r9n/3qgp/thalBbpOi5i223dPXKi04IBtqPN9nTd+jBc7QKfvDbaBnFipYp4sJAUQ== + version "5.101.3" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.101.3.tgz#3633b2375bb29ea4b06ffb1902734d977bc44346" + integrity sha512-7b0dTKR3Ed//AD/6kkx/o7duS8H3f1a4w3BYpIriX4BzIhjkn4teo05cptsxvLesHFKK5KObnadmCHBwGc+51A== dependencies: "@types/eslint-scope" "^3.7.7" "@types/estree" "^1.0.8" @@ -3078,7 +3093,7 @@ webpack@^5.97.1: "@webassemblyjs/wasm-parser" "^1.14.1" acorn "^8.15.0" acorn-import-phases "^1.0.3" - browserslist "^4.26.3" + browserslist "^4.24.0" chrome-trace-event "^1.0.2" enhanced-resolve "^5.17.3" es-module-lexer "^1.2.1" @@ -3090,10 +3105,10 @@ webpack@^5.97.1: loader-runner "^4.2.0" mime-types "^2.1.27" neo-async "^2.6.2" - schema-utils "^4.3.3" - tapable "^2.3.0" + schema-utils "^4.3.2" + tapable "^2.1.1" terser-webpack-plugin "^5.3.11" - watchpack "^2.4.4" + watchpack "^2.4.1" webpack-sources "^3.3.3" whatwg-encoding@^2.0.0: