From df35a871ec34a0450b89413d7e93957b3a1d3f96 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 14 Jan 2025 15:30:29 +0000 Subject: [PATCH] Release 0.3.0 --- package.json | 2 +- src/api/resources/analytics/client/Client.ts | 4 +- src/api/resources/assistants/client/Client.ts | 20 +- .../client/requests/UpdateAssistantDto.ts | 2 + .../UpdateAssistantDtoCredentialsItem.ts | 41 +++ .../types/UpdateAssistantDtoModel.ts | 1 + .../types/UpdateAssistantDtoTranscriber.ts | 1 + .../types/UpdateAssistantDtoVoice.ts | 1 + src/api/resources/assistants/types/index.ts | 1 + src/api/resources/blocks/client/Client.ts | 24 +- .../resources/blocks/client/requests/index.ts | 1 - .../blocks/types/BlocksUpdateRequest.ts | 10 + .../blocks/types/UpdateBlockDtoStepsItem.ts | 7 - src/api/resources/blocks/types/index.ts | 4 +- src/api/resources/calls/client/Client.ts | 20 +- src/api/resources/files/client/Client.ts | 20 +- .../resources/knowledgeBases/client/Client.ts | 23 +- .../types/KnowledgeBasesUpdateRequest.ts} | 2 +- .../resources/knowledgeBases/types/index.ts | 1 + src/api/resources/logs/client/Client.ts | 87 ++++- ...LoggingControllerLogsDeleteQueryRequest.ts | 30 ++ .../resources/logs/client/requests/index.ts | 1 + .../resources/phoneNumbers/client/Client.ts | 24 +- .../phoneNumbers/client/requests/index.ts | 1 - .../types/PhoneNumbersUpdateRequest.ts | 11 + src/api/resources/phoneNumbers/types/index.ts | 2 +- src/api/resources/squads/client/Client.ts | 20 +- src/api/resources/tools/client/Client.ts | 24 +- .../resources/tools/client/requests/index.ts | 1 - .../tools/types/ToolsUpdateRequest.ts | 17 + src/api/resources/tools/types/index.ts | 2 +- src/api/types/Assistant.ts | 2 + src/api/types/AssistantCredentialsItem.ts | 41 +++ src/api/types/AssistantModel.ts | 1 + src/api/types/AssistantOverrides.ts | 2 + .../AssistantOverridesCredentialsItem.ts | 41 +++ src/api/types/AssistantOverridesModel.ts | 1 + .../types/AssistantOverridesTranscriber.ts | 1 + src/api/types/AssistantOverridesVoice.ts | 1 + src/api/types/AssistantTranscriber.ts | 1 + src/api/types/AssistantVoice.ts | 1 + src/api/types/AutoReloadPlanDto.ts | 13 - src/api/types/AzureBlobStorageBucketPlan.ts | 20 ++ src/api/types/AzureCredential.ts | 4 +- src/api/types/AzureCredentialRegion.ts | 4 +- src/api/types/AzureCredentialService.ts | 13 + src/api/types/AzureOpenAiCredential.ts | 2 + src/api/types/AzureOpenAiCredentialRegion.ts | 4 +- src/api/types/AzureSpeechTranscriber.ts | 12 + .../types/AzureSpeechTranscriberLanguage.ts | 297 ++++++++++++++++++ src/api/types/BuyPhoneNumberDto.ts | 16 +- src/api/types/ByoPhoneNumber.ts | 16 +- src/api/types/CallEndedReason.ts | 146 +++++---- src/api/types/CartesiaVoiceModel.ts | 4 +- src/api/types/CerebrasCredential.ts | 19 ++ src/api/types/ChatDto.ts | 12 + src/api/types/ChatServiceResponse.ts | 5 + src/api/types/CloudflareCredential.ts | 28 ++ src/api/types/CloudflareR2BucketPlan.ts | 24 ++ src/api/types/CreateAssistantDto.ts | 2 + .../CreateAssistantDtoCredentialsItem.ts | 41 +++ src/api/types/CreateAssistantDtoModel.ts | 1 + .../types/CreateAssistantDtoTranscriber.ts | 1 + src/api/types/CreateAssistantDtoVoice.ts | 1 + src/api/types/CreateAzureCredentialDto.ts | 4 +- .../types/CreateAzureCredentialDtoRegion.ts | 4 +- .../types/CreateAzureCredentialDtoService.ts | 13 + .../types/CreateAzureOpenAiCredentialDto.ts | 2 + .../CreateAzureOpenAiCredentialDtoRegion.ts | 4 +- src/api/types/CreateByoPhoneNumberDto.ts | 16 +- src/api/types/CreateCerebrasCredentialDto.ts | 11 + .../types/CreateCloudflareCredentialDto.ts | 20 ++ src/api/types/CreateDeepSeekCredentialDto.ts | 11 + src/api/types/CreateOrgDto.ts | 12 +- .../types/CreateSmallestAiCredentialDto.ts | 11 + src/api/types/CreateTwilioPhoneNumberDto.ts | 16 +- src/api/types/CreateVapiPhoneNumberDto.ts | 16 +- src/api/types/CreateVonagePhoneNumberDto.ts | 16 +- src/api/types/CreditsBuyDto.ts | 8 - src/api/types/DeepSeekCredential.ts | 19 ++ src/api/types/DeepSeekModel.ts | 49 +++ src/api/types/DeepSeekModelToolsItem.ts | 14 + src/api/types/ElevenLabsVoiceModel.ts | 4 + src/api/types/FallbackCartesiaVoiceModel.ts | 4 +- src/api/types/FallbackElevenLabsVoiceModel.ts | 4 + src/api/types/FallbackOpenAiVoice.ts | 2 +- src/api/types/FallbackOpenAiVoiceId.ts | 2 +- src/api/types/FallbackPlanVoicesItem.ts | 1 + src/api/types/FallbackSmallestAiVoice.ts | 18 ++ src/api/types/FallbackSmallestAiVoiceId.ts | 10 + .../types/FallbackSmallestAiVoiceIdEnum.ts | 58 ++++ ...GeminiMultimodalLivePrebuiltVoiceConfig.ts | 9 + ...timodalLivePrebuiltVoiceConfigVoiceName.ts | 13 + ...ts => GeminiMultimodalLiveSpeechConfig.ts} | 5 +- .../types/GeminiMultimodalLiveVoiceConfig.ts | 9 + src/api/types/GoogleModel.ts | 5 + src/api/types/GoogleModelModel.ts | 4 + src/api/types/GoogleRealtimeConfig.ts | 33 ++ src/api/types/GroqModelModel.ts | 8 +- src/api/types/HipaaBuyDto.ts | 10 - src/api/types/ImportTwilioPhoneNumberDto.ts | 16 +- src/api/types/ImportVonagePhoneNumberDto.ts | 16 +- .../types/OpenAiModelFallbackModelsItem.ts | 12 + src/api/types/OpenAiModelModel.ts | 12 + src/api/types/OpenAiVoice.ts | 2 +- src/api/types/OpenAiVoiceId.ts | 2 +- src/api/types/Org.ts | 12 +- src/api/types/OrgWithOrgUser.ts | 12 +- src/api/types/Payment.ts | 38 --- src/api/types/PaymentRetryDto.ts | 8 - src/api/types/PaymentStatus.ts | 15 - ...ServerMessageEndOfCallReportEndedReason.ts | 146 +++++---- src/api/types/ServerMessageStatusUpdate.ts | 2 + .../ServerMessageStatusUpdateEndedReason.ts | 146 +++++---- src/api/types/SmallestAiCredential.ts | 19 ++ src/api/types/SmallestAiVoice.ts | 20 ++ src/api/types/SmallestAiVoiceId.ts | 10 + src/api/types/SmallestAiVoiceIdEnum.ts | 58 ++++ src/api/types/Subscription.ts | 2 +- .../SubscriptionConcurrencyLineBuyDto.ts | 8 - .../SubscriptionConcurrencyLineRemoveDto.ts | 8 - src/api/types/SubscriptionCouponAddDto.ts | 10 - src/api/types/SubscriptionMonthlyCharge.ts | 10 - .../types/SyncVoiceLibraryDtoProvidersItem.ts | 2 + src/api/types/TransferPlan.ts | 10 +- src/api/types/TransferPlanMessage.ts | 2 +- src/api/types/TwilioPhoneNumber.ts | 16 +- src/api/types/UpdateAnthropicCredentialDto.ts | 3 +- src/api/types/UpdateAnyscaleCredentialDto.ts | 3 +- .../types/UpdateAssemblyAiCredentialDto.ts | 3 +- src/api/types/UpdateAzureCredentialDto.ts | 5 +- .../types/UpdateAzureCredentialDtoRegion.ts | 4 +- .../types/UpdateAzureCredentialDtoService.ts | 13 + .../types/UpdateAzureOpenAiCredentialDto.ts | 11 +- .../UpdateAzureOpenAiCredentialDtoRegion.ts | 4 +- src/api/types/UpdateBashToolDto.ts | 44 +++ .../UpdateBashToolDtoMessagesItem.ts} | 4 +- src/api/types/UpdateByoPhoneNumberDto.ts | 61 ++++ ...teByoPhoneNumberDtoFallbackDestination.ts} | 4 +- .../types/UpdateByoSipTrunkCredentialDto.ts | 8 +- src/api/types/UpdateCartesiaCredentialDto.ts | 3 +- src/api/types/UpdateCerebrasCredentialDto.ts | 10 + .../types/UpdateCloudflareCredentialDto.ts | 18 ++ src/api/types/UpdateComputerToolDto.ts | 50 +++ .../UpdateComputerToolDtoMessagesItem.ts | 11 + .../UpdateConversationBlockDto.ts} | 12 +- .../UpdateConversationBlockDtoMessagesItem.ts | 7 + src/api/types/UpdateCustomKnowledgeBaseDto.ts | 51 +++ src/api/types/UpdateCustomLlmCredentialDto.ts | 3 +- src/api/types/UpdateDeepInfraCredentialDto.ts | 3 +- src/api/types/UpdateDeepSeekCredentialDto.ts | 10 + src/api/types/UpdateDeepgramCredentialDto.ts | 7 +- .../UpdateDtmfToolDto.ts} | 6 +- .../types/UpdateDtmfToolDtoMessagesItem.ts | 11 + .../types/UpdateElevenLabsCredentialDto.ts | 4 +- src/api/types/UpdateEndCallToolDto.ts | 40 +++ .../types/UpdateEndCallToolDtoMessagesItem.ts | 11 + src/api/types/UpdateFunctionToolDto.ts | 40 +++ .../UpdateFunctionToolDtoMessagesItem.ts | 11 + src/api/types/UpdateGcpCredentialDto.ts | 7 +- src/api/types/UpdateGhlToolDto.ts | 41 +++ src/api/types/UpdateGhlToolDtoMessagesItem.ts | 11 + src/api/types/UpdateGladiaCredentialDto.ts | 3 +- .../types/UpdateGoHighLevelCredentialDto.ts | 3 +- src/api/types/UpdateGoogleCredentialDto.ts | 4 +- src/api/types/UpdateGroqCredentialDto.ts | 3 +- .../types/UpdateInflectionAiCredentialDto.ts | 4 +- src/api/types/UpdateLangfuseCredentialDto.ts | 7 +- src/api/types/UpdateLmntCredentialDto.ts | 3 +- src/api/types/UpdateMakeCredentialDto.ts | 7 +- src/api/types/UpdateMakeToolDto.ts | 41 +++ .../types/UpdateMakeToolDtoMessagesItem.ts | 11 + src/api/types/UpdateOpenAiCredentialDto.ts | 3 +- .../types/UpdateOpenRouterCredentialDto.ts | 3 +- src/api/types/UpdateOrgDto.ts | 12 +- src/api/types/UpdateOutputToolDto.ts | 40 +++ .../types/UpdateOutputToolDtoMessagesItem.ts | 11 + .../types/UpdatePerplexityAiCredentialDto.ts | 3 +- src/api/types/UpdatePlayHtCredentialDto.ts | 5 +- src/api/types/UpdateRimeAiCredentialDto.ts | 3 +- src/api/types/UpdateRunpodCredentialDto.ts | 3 +- src/api/types/UpdateS3CredentialDto.ts | 12 +- .../types/UpdateSmallestAiCredentialDto.ts | 10 + src/api/types/UpdateTavusCredentialDto.ts | 3 +- src/api/types/UpdateTextEditorToolDto.ts | 44 +++ .../UpdateTextEditorToolDtoMessagesItem.ts | 11 + .../types/UpdateTogetherAiCredentialDto.ts | 3 +- src/api/types/UpdateTokenDto.ts | 14 + src/api/types/UpdateTokenDtoTag.ts | 13 + src/api/types/UpdateToolCallBlockDto.ts | 37 +++ .../UpdateToolCallBlockDtoMessagesItem.ts | 7 + .../UpdateToolCallBlockDtoTool.ts} | 4 +- src/api/types/UpdateTransferCallToolDto.ts | 42 +++ ...dateTransferCallToolDtoDestinationsItem.ts | 11 + .../UpdateTransferCallToolDtoMessagesItem.ts | 11 + src/api/types/UpdateTrieveKnowledgeBaseDto.ts | 22 ++ src/api/types/UpdateTwilioCredentialDto.ts | 5 +- .../UpdateTwilioPhoneNumberDto.ts} | 28 +- ...TwilioPhoneNumberDtoFallbackDestination.ts | 17 + src/api/types/UpdateVapiPhoneNumberDto.ts | 53 ++++ ...teVapiPhoneNumberDtoFallbackDestination.ts | 15 + src/api/types/UpdateVonageCredentialDto.ts | 5 +- src/api/types/UpdateVonagePhoneNumberDto.ts | 45 +++ ...VonagePhoneNumberDtoFallbackDestination.ts | 17 + src/api/types/UpdateWorkflowBlockDto.ts | 35 +++ .../UpdateWorkflowBlockDtoMessagesItem.ts | 7 + .../types/UpdateWorkflowBlockDtoStepsItem.ts | 7 + src/api/types/UpdateXAiCredentialDto.ts | 4 +- src/api/types/VapiPhoneNumber.ts | 16 +- src/api/types/VonagePhoneNumber.ts | 16 +- src/api/types/index.ts | 181 +++++++---- src/version.ts | 2 +- yarn.lock | 150 ++++----- 213 files changed, 2970 insertions(+), 821 deletions(-) create mode 100644 src/api/resources/assistants/types/UpdateAssistantDtoCredentialsItem.ts create mode 100644 src/api/resources/blocks/types/BlocksUpdateRequest.ts delete mode 100644 src/api/resources/blocks/types/UpdateBlockDtoStepsItem.ts rename src/api/resources/{blocks/types/UpdateBlockDtoMessagesItem.ts => knowledgeBases/types/KnowledgeBasesUpdateRequest.ts} (50%) create mode 100644 src/api/resources/logs/client/requests/LoggingControllerLogsDeleteQueryRequest.ts create mode 100644 src/api/resources/phoneNumbers/types/PhoneNumbersUpdateRequest.ts create mode 100644 src/api/resources/tools/types/ToolsUpdateRequest.ts create mode 100644 src/api/types/AssistantCredentialsItem.ts create mode 100644 src/api/types/AssistantOverridesCredentialsItem.ts delete mode 100644 src/api/types/AutoReloadPlanDto.ts create mode 100644 src/api/types/AzureBlobStorageBucketPlan.ts create mode 100644 src/api/types/AzureCredentialService.ts create mode 100644 src/api/types/AzureSpeechTranscriber.ts create mode 100644 src/api/types/AzureSpeechTranscriberLanguage.ts create mode 100644 src/api/types/CerebrasCredential.ts create mode 100644 src/api/types/ChatDto.ts create mode 100644 src/api/types/ChatServiceResponse.ts create mode 100644 src/api/types/CloudflareCredential.ts create mode 100644 src/api/types/CloudflareR2BucketPlan.ts create mode 100644 src/api/types/CreateAssistantDtoCredentialsItem.ts create mode 100644 src/api/types/CreateAzureCredentialDtoService.ts create mode 100644 src/api/types/CreateCerebrasCredentialDto.ts create mode 100644 src/api/types/CreateCloudflareCredentialDto.ts create mode 100644 src/api/types/CreateDeepSeekCredentialDto.ts create mode 100644 src/api/types/CreateSmallestAiCredentialDto.ts delete mode 100644 src/api/types/CreditsBuyDto.ts create mode 100644 src/api/types/DeepSeekCredential.ts create mode 100644 src/api/types/DeepSeekModel.ts create mode 100644 src/api/types/DeepSeekModelToolsItem.ts create mode 100644 src/api/types/FallbackSmallestAiVoice.ts create mode 100644 src/api/types/FallbackSmallestAiVoiceId.ts create mode 100644 src/api/types/FallbackSmallestAiVoiceIdEnum.ts create mode 100644 src/api/types/GeminiMultimodalLivePrebuiltVoiceConfig.ts create mode 100644 src/api/types/GeminiMultimodalLivePrebuiltVoiceConfigVoiceName.ts rename src/api/types/{PaymentsPaginatedResponse.ts => GeminiMultimodalLiveSpeechConfig.ts} (50%) create mode 100644 src/api/types/GeminiMultimodalLiveVoiceConfig.ts create mode 100644 src/api/types/GoogleRealtimeConfig.ts delete mode 100644 src/api/types/HipaaBuyDto.ts delete mode 100644 src/api/types/Payment.ts delete mode 100644 src/api/types/PaymentRetryDto.ts delete mode 100644 src/api/types/PaymentStatus.ts create mode 100644 src/api/types/SmallestAiCredential.ts create mode 100644 src/api/types/SmallestAiVoice.ts create mode 100644 src/api/types/SmallestAiVoiceId.ts create mode 100644 src/api/types/SmallestAiVoiceIdEnum.ts delete mode 100644 src/api/types/SubscriptionConcurrencyLineBuyDto.ts delete mode 100644 src/api/types/SubscriptionConcurrencyLineRemoveDto.ts delete mode 100644 src/api/types/SubscriptionCouponAddDto.ts delete mode 100644 src/api/types/SubscriptionMonthlyCharge.ts create mode 100644 src/api/types/UpdateAzureCredentialDtoService.ts create mode 100644 src/api/types/UpdateBashToolDto.ts rename src/api/{resources/tools/types/UpdateToolDtoMessagesItem.ts => types/UpdateBashToolDtoMessagesItem.ts} (70%) create mode 100644 src/api/types/UpdateByoPhoneNumberDto.ts rename src/api/{resources/phoneNumbers/types/UpdatePhoneNumberDtoFallbackDestination.ts => types/UpdateByoPhoneNumberDtoFallbackDestination.ts} (71%) create mode 100644 src/api/types/UpdateCerebrasCredentialDto.ts create mode 100644 src/api/types/UpdateCloudflareCredentialDto.ts create mode 100644 src/api/types/UpdateComputerToolDto.ts create mode 100644 src/api/types/UpdateComputerToolDtoMessagesItem.ts rename src/api/{resources/blocks/client/requests/UpdateBlockDto.ts => types/UpdateConversationBlockDto.ts} (88%) create mode 100644 src/api/types/UpdateConversationBlockDtoMessagesItem.ts create mode 100644 src/api/types/UpdateCustomKnowledgeBaseDto.ts create mode 100644 src/api/types/UpdateDeepSeekCredentialDto.ts rename src/api/{resources/tools/client/requests/UpdateToolDto.ts => types/UpdateDtmfToolDto.ts} (94%) create mode 100644 src/api/types/UpdateDtmfToolDtoMessagesItem.ts create mode 100644 src/api/types/UpdateEndCallToolDto.ts create mode 100644 src/api/types/UpdateEndCallToolDtoMessagesItem.ts create mode 100644 src/api/types/UpdateFunctionToolDto.ts create mode 100644 src/api/types/UpdateFunctionToolDtoMessagesItem.ts create mode 100644 src/api/types/UpdateGhlToolDto.ts create mode 100644 src/api/types/UpdateGhlToolDtoMessagesItem.ts create mode 100644 src/api/types/UpdateMakeToolDto.ts create mode 100644 src/api/types/UpdateMakeToolDtoMessagesItem.ts create mode 100644 src/api/types/UpdateOutputToolDto.ts create mode 100644 src/api/types/UpdateOutputToolDtoMessagesItem.ts create mode 100644 src/api/types/UpdateSmallestAiCredentialDto.ts create mode 100644 src/api/types/UpdateTextEditorToolDto.ts create mode 100644 src/api/types/UpdateTextEditorToolDtoMessagesItem.ts create mode 100644 src/api/types/UpdateTokenDto.ts create mode 100644 src/api/types/UpdateTokenDtoTag.ts create mode 100644 src/api/types/UpdateToolCallBlockDto.ts create mode 100644 src/api/types/UpdateToolCallBlockDtoMessagesItem.ts rename src/api/{resources/blocks/types/UpdateBlockDtoTool.ts => types/UpdateToolCallBlockDtoTool.ts} (83%) create mode 100644 src/api/types/UpdateTransferCallToolDto.ts create mode 100644 src/api/types/UpdateTransferCallToolDtoDestinationsItem.ts create mode 100644 src/api/types/UpdateTransferCallToolDtoMessagesItem.ts create mode 100644 src/api/types/UpdateTrieveKnowledgeBaseDto.ts rename src/api/{resources/phoneNumbers/client/requests/UpdatePhoneNumberDto.ts => types/UpdateTwilioPhoneNumberDto.ts} (63%) create mode 100644 src/api/types/UpdateTwilioPhoneNumberDtoFallbackDestination.ts create mode 100644 src/api/types/UpdateVapiPhoneNumberDto.ts create mode 100644 src/api/types/UpdateVapiPhoneNumberDtoFallbackDestination.ts create mode 100644 src/api/types/UpdateVonagePhoneNumberDto.ts create mode 100644 src/api/types/UpdateVonagePhoneNumberDtoFallbackDestination.ts create mode 100644 src/api/types/UpdateWorkflowBlockDto.ts create mode 100644 src/api/types/UpdateWorkflowBlockDtoMessagesItem.ts create mode 100644 src/api/types/UpdateWorkflowBlockDtoStepsItem.ts diff --git a/package.json b/package.json index d6a01a5..bf241cc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vapi-ai/server-sdk", - "version": "0.2.2", + "version": "0.3.0", "private": false, "repository": "https://github.com/VapiAI/server-sdk-typescript", "main": "./index.js", diff --git a/src/api/resources/analytics/client/Client.ts b/src/api/resources/analytics/client/Client.ts index c836325..474cd52 100644 --- a/src/api/resources/analytics/client/Client.ts +++ b/src/api/resources/analytics/client/Client.ts @@ -43,8 +43,8 @@ export class Analytics { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/assistants/client/Client.ts b/src/api/resources/assistants/client/Client.ts index 7daeb99..cc606ee 100644 --- a/src/api/resources/assistants/client/Client.ts +++ b/src/api/resources/assistants/client/Client.ts @@ -96,8 +96,8 @@ export class Assistants { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -153,8 +153,8 @@ export class Assistants { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -207,8 +207,8 @@ export class Assistants { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -260,8 +260,8 @@ export class Assistants { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -318,8 +318,8 @@ export class Assistants { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/assistants/client/requests/UpdateAssistantDto.ts b/src/api/resources/assistants/client/requests/UpdateAssistantDto.ts index 42ea95e..308110a 100644 --- a/src/api/resources/assistants/client/requests/UpdateAssistantDto.ts +++ b/src/api/resources/assistants/client/requests/UpdateAssistantDto.ts @@ -66,6 +66,8 @@ export interface UpdateAssistantDto { modelOutputInMessagesEnabled?: boolean; /** These are the configurations to be passed to the transport providers of assistant's calls, like Twilio. You can store multiple configurations for different transport providers. For a call, only the configuration matching the call transport provider is used. */ transportConfigurations?: Vapi.TransportConfigurationTwilio[]; + /** These are dynamic credentials that will be used for the assistant calls. By default, all the credentials are available for use in the call but you can supplement an additional credentials using this. Dynamic credentials override existing credentials. */ + credentials?: Vapi.UpdateAssistantDtoCredentialsItem[]; /** * This is the name of the assistant. * diff --git a/src/api/resources/assistants/types/UpdateAssistantDtoCredentialsItem.ts b/src/api/resources/assistants/types/UpdateAssistantDtoCredentialsItem.ts new file mode 100644 index 0000000..bdc813a --- /dev/null +++ b/src/api/resources/assistants/types/UpdateAssistantDtoCredentialsItem.ts @@ -0,0 +1,41 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../../../index"; + +export type UpdateAssistantDtoCredentialsItem = + | Vapi.CreateAnthropicCredentialDto + | Vapi.CreateAnyscaleCredentialDto + | Vapi.CreateAssemblyAiCredentialDto + | Vapi.CreateAzureOpenAiCredentialDto + | Vapi.CreateAzureCredentialDto + | Vapi.CreateByoSipTrunkCredentialDto + | Vapi.CreateCartesiaCredentialDto + | Vapi.CreateCloudflareCredentialDto + | Vapi.CreateCustomLlmCredentialDto + | Vapi.CreateDeepgramCredentialDto + | Vapi.CreateDeepInfraCredentialDto + | Vapi.CreateDeepSeekCredentialDto + | Vapi.CreateElevenLabsCredentialDto + | Vapi.CreateGcpCredentialDto + | Vapi.CreateGladiaCredentialDto + | Vapi.CreateGoHighLevelCredentialDto + | Vapi.CreateGroqCredentialDto + | Vapi.CreateLangfuseCredentialDto + | Vapi.CreateLmntCredentialDto + | Vapi.CreateMakeCredentialDto + | Vapi.CreateOpenAiCredentialDto + | Vapi.CreateOpenRouterCredentialDto + | Vapi.CreatePerplexityAiCredentialDto + | Vapi.CreatePlayHtCredentialDto + | Vapi.CreateRimeAiCredentialDto + | Vapi.CreateRunpodCredentialDto + | Vapi.CreateS3CredentialDto + | Vapi.CreateSmallestAiCredentialDto + | Vapi.CreateTavusCredentialDto + | Vapi.CreateTogetherAiCredentialDto + | Vapi.CreateTwilioCredentialDto + | Vapi.CreateVonageCredentialDto + | Vapi.CreateWebhookCredentialDto + | Vapi.CreateXAiCredentialDto; diff --git a/src/api/resources/assistants/types/UpdateAssistantDtoModel.ts b/src/api/resources/assistants/types/UpdateAssistantDtoModel.ts index 9fe786f..2dfdc83 100644 --- a/src/api/resources/assistants/types/UpdateAssistantDtoModel.ts +++ b/src/api/resources/assistants/types/UpdateAssistantDtoModel.ts @@ -15,6 +15,7 @@ export type UpdateAssistantDtoModel = | Vapi.GoogleModel | Vapi.GroqModel | Vapi.InflectionAiModel + | Vapi.DeepSeekModel | Vapi.OpenAiModel | Vapi.OpenRouterModel | Vapi.PerplexityAiModel diff --git a/src/api/resources/assistants/types/UpdateAssistantDtoTranscriber.ts b/src/api/resources/assistants/types/UpdateAssistantDtoTranscriber.ts index d1b840b..846aaf5 100644 --- a/src/api/resources/assistants/types/UpdateAssistantDtoTranscriber.ts +++ b/src/api/resources/assistants/types/UpdateAssistantDtoTranscriber.ts @@ -9,6 +9,7 @@ import * as Vapi from "../../../index"; */ export type UpdateAssistantDtoTranscriber = | Vapi.AssemblyAiTranscriber + | Vapi.AzureSpeechTranscriber | Vapi.CustomTranscriber | Vapi.DeepgramTranscriber | Vapi.GladiaTranscriber diff --git a/src/api/resources/assistants/types/UpdateAssistantDtoVoice.ts b/src/api/resources/assistants/types/UpdateAssistantDtoVoice.ts index fc76238..52e0aee 100644 --- a/src/api/resources/assistants/types/UpdateAssistantDtoVoice.ts +++ b/src/api/resources/assistants/types/UpdateAssistantDtoVoice.ts @@ -18,4 +18,5 @@ export type UpdateAssistantDtoVoice = | Vapi.OpenAiVoice | Vapi.PlayHtVoice | Vapi.RimeAiVoice + | Vapi.SmallestAiVoice | Vapi.TavusVoice; diff --git a/src/api/resources/assistants/types/index.ts b/src/api/resources/assistants/types/index.ts index e35a92a..3288db4 100644 --- a/src/api/resources/assistants/types/index.ts +++ b/src/api/resources/assistants/types/index.ts @@ -5,3 +5,4 @@ export * from "./UpdateAssistantDtoFirstMessageMode"; export * from "./UpdateAssistantDtoClientMessagesItem"; export * from "./UpdateAssistantDtoServerMessagesItem"; export * from "./UpdateAssistantDtoBackgroundSound"; +export * from "./UpdateAssistantDtoCredentialsItem"; diff --git a/src/api/resources/blocks/client/Client.ts b/src/api/resources/blocks/client/Client.ts index 0cf0b81..109b1ba 100644 --- a/src/api/resources/blocks/client/Client.ts +++ b/src/api/resources/blocks/client/Client.ts @@ -96,8 +96,8 @@ export class Blocks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -153,8 +153,8 @@ export class Blocks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -207,8 +207,8 @@ export class Blocks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -260,8 +260,8 @@ export class Blocks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -300,12 +300,12 @@ export class Blocks { /** * @param {string} id - * @param {Vapi.UpdateBlockDto} request + * @param {Vapi.BlocksUpdateRequest} request * @param {Blocks.RequestOptions} requestOptions - Request-specific configuration. */ public async update( id: string, - request: Vapi.UpdateBlockDto = {}, + request: Vapi.BlocksUpdateRequest, requestOptions?: Blocks.RequestOptions ): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -318,8 +318,8 @@ export class Blocks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/blocks/client/requests/index.ts b/src/api/resources/blocks/client/requests/index.ts index f52312d..93ae33a 100644 --- a/src/api/resources/blocks/client/requests/index.ts +++ b/src/api/resources/blocks/client/requests/index.ts @@ -1,2 +1 @@ export { type BlocksListRequest } from "./BlocksListRequest"; -export { type UpdateBlockDto } from "./UpdateBlockDto"; diff --git a/src/api/resources/blocks/types/BlocksUpdateRequest.ts b/src/api/resources/blocks/types/BlocksUpdateRequest.ts new file mode 100644 index 0000000..fb1e447 --- /dev/null +++ b/src/api/resources/blocks/types/BlocksUpdateRequest.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../../../index"; + +export type BlocksUpdateRequest = + | Vapi.UpdateConversationBlockDto + | Vapi.UpdateToolCallBlockDto + | Vapi.UpdateWorkflowBlockDto; diff --git a/src/api/resources/blocks/types/UpdateBlockDtoStepsItem.ts b/src/api/resources/blocks/types/UpdateBlockDtoStepsItem.ts deleted file mode 100644 index 585d0ce..0000000 --- a/src/api/resources/blocks/types/UpdateBlockDtoStepsItem.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Vapi from "../../../index"; - -export type UpdateBlockDtoStepsItem = Vapi.HandoffStep | Vapi.CallbackStep; diff --git a/src/api/resources/blocks/types/index.ts b/src/api/resources/blocks/types/index.ts index b2df9a3..f0be90f 100644 --- a/src/api/resources/blocks/types/index.ts +++ b/src/api/resources/blocks/types/index.ts @@ -3,7 +3,5 @@ export * from "./BlocksCreateRequest"; export * from "./BlocksCreateResponse"; export * from "./BlocksGetResponse"; export * from "./BlocksDeleteResponse"; -export * from "./UpdateBlockDtoMessagesItem"; -export * from "./UpdateBlockDtoTool"; -export * from "./UpdateBlockDtoStepsItem"; +export * from "./BlocksUpdateRequest"; export * from "./BlocksUpdateResponse"; diff --git a/src/api/resources/calls/client/Client.ts b/src/api/resources/calls/client/Client.ts index 0bcea03..e8c1402 100644 --- a/src/api/resources/calls/client/Client.ts +++ b/src/api/resources/calls/client/Client.ts @@ -111,8 +111,8 @@ export class Calls { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -165,8 +165,8 @@ export class Calls { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -219,8 +219,8 @@ export class Calls { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -272,8 +272,8 @@ export class Calls { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -330,8 +330,8 @@ export class Calls { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts index 140a79c..2842f34 100644 --- a/src/api/resources/files/client/Client.ts +++ b/src/api/resources/files/client/Client.ts @@ -46,8 +46,8 @@ export class Files { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -104,8 +104,8 @@ export class Files { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ..._maybeEncodedRequest.headers, @@ -164,8 +164,8 @@ export class Files { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -217,8 +217,8 @@ export class Files { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -275,8 +275,8 @@ export class Files { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/knowledgeBases/client/Client.ts b/src/api/resources/knowledgeBases/client/Client.ts index 6792a46..a69804b 100644 --- a/src/api/resources/knowledgeBases/client/Client.ts +++ b/src/api/resources/knowledgeBases/client/Client.ts @@ -96,8 +96,8 @@ export class KnowledgeBases { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -153,8 +153,8 @@ export class KnowledgeBases { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -210,8 +210,8 @@ export class KnowledgeBases { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -266,8 +266,8 @@ export class KnowledgeBases { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -306,10 +306,12 @@ export class KnowledgeBases { /** * @param {string} id + * @param {Vapi.KnowledgeBasesUpdateRequest} request * @param {KnowledgeBases.RequestOptions} requestOptions - Request-specific configuration. */ public async update( id: string, + request: Vapi.KnowledgeBasesUpdateRequest, requestOptions?: KnowledgeBases.RequestOptions ): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -322,14 +324,15 @@ export class KnowledgeBases { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, }, contentType: "application/json", requestType: "json", + body: request, timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, diff --git a/src/api/resources/blocks/types/UpdateBlockDtoMessagesItem.ts b/src/api/resources/knowledgeBases/types/KnowledgeBasesUpdateRequest.ts similarity index 50% rename from src/api/resources/blocks/types/UpdateBlockDtoMessagesItem.ts rename to src/api/resources/knowledgeBases/types/KnowledgeBasesUpdateRequest.ts index 32ce148..e63a268 100644 --- a/src/api/resources/blocks/types/UpdateBlockDtoMessagesItem.ts +++ b/src/api/resources/knowledgeBases/types/KnowledgeBasesUpdateRequest.ts @@ -4,4 +4,4 @@ import * as Vapi from "../../../index"; -export type UpdateBlockDtoMessagesItem = Vapi.BlockStartMessage | Vapi.BlockCompleteMessage; +export type KnowledgeBasesUpdateRequest = Vapi.UpdateTrieveKnowledgeBaseDto | Vapi.UpdateCustomKnowledgeBaseDto; diff --git a/src/api/resources/knowledgeBases/types/index.ts b/src/api/resources/knowledgeBases/types/index.ts index fdc493c..95d71b5 100644 --- a/src/api/resources/knowledgeBases/types/index.ts +++ b/src/api/resources/knowledgeBases/types/index.ts @@ -3,4 +3,5 @@ export * from "./KnowledgeBasesCreateRequest"; export * from "./KnowledgeBasesCreateResponse"; export * from "./KnowledgeBasesGetResponse"; export * from "./KnowledgeBasesDeleteResponse"; +export * from "./KnowledgeBasesUpdateRequest"; export * from "./KnowledgeBasesUpdateResponse"; diff --git a/src/api/resources/logs/client/Client.ts b/src/api/resources/logs/client/Client.ts index f10103e..4c4d14a 100644 --- a/src/api/resources/logs/client/Client.ts +++ b/src/api/resources/logs/client/Client.ts @@ -128,8 +128,8 @@ export class Logs { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -176,6 +176,89 @@ export class Logs { }); } + /** + * @param {Vapi.LoggingControllerLogsDeleteQueryRequest} request + * @param {Logs.RequestOptions} requestOptions - Request-specific configuration. + */ + public async loggingControllerLogsDeleteQuery( + request: Vapi.LoggingControllerLogsDeleteQueryRequest = {}, + requestOptions?: Logs.RequestOptions + ): Promise { + const { orgId, assistantId, phoneNumberId, customerId, squadId, callId } = request; + const _queryParams: Record = {}; + if (orgId != null) { + _queryParams["orgId"] = orgId; + } + + if (assistantId != null) { + _queryParams["assistantId"] = assistantId; + } + + if (phoneNumberId != null) { + _queryParams["phoneNumberId"] = phoneNumberId; + } + + if (customerId != null) { + _queryParams["customerId"] = customerId; + } + + if (squadId != null) { + _queryParams["squadId"] = squadId; + } + + if (callId != null) { + _queryParams["callId"] = callId; + } + + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.VapiEnvironment.Default, + "logs" + ), + method: "DELETE", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@vapi-ai/server-sdk", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + ...requestOptions?.headers, + }, + contentType: "application/json", + queryParameters: _queryParams, + requestType: "json", + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return; + } + + if (_response.error.reason === "status-code") { + throw new errors.VapiError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.VapiError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.VapiTimeoutError("Timeout exceeded when calling DELETE /logs."); + case "unknown": + throw new errors.VapiError({ + message: _response.error.errorMessage, + }); + } + } + protected async _getAuthorizationHeader(): Promise { const bearer = await core.Supplier.get(this._options.token); if (bearer != null) { diff --git a/src/api/resources/logs/client/requests/LoggingControllerLogsDeleteQueryRequest.ts b/src/api/resources/logs/client/requests/LoggingControllerLogsDeleteQueryRequest.ts new file mode 100644 index 0000000..15747ec --- /dev/null +++ b/src/api/resources/logs/client/requests/LoggingControllerLogsDeleteQueryRequest.ts @@ -0,0 +1,30 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface LoggingControllerLogsDeleteQueryRequest { + /** + * This is the unique identifier for the org that this log belongs to. + */ + orgId?: string; + /** + * This is the ID of the assistant. + */ + assistantId?: string; + /** + * This is the ID of the phone number. + */ + phoneNumberId?: string; + /** + * This is the ID of the customer. + */ + customerId?: string; + /** + * This is the ID of the squad. + */ + squadId?: string; + /** + * This is the ID of the call. + */ + callId?: string; +} diff --git a/src/api/resources/logs/client/requests/index.ts b/src/api/resources/logs/client/requests/index.ts index dcb65eb..71b5aad 100644 --- a/src/api/resources/logs/client/requests/index.ts +++ b/src/api/resources/logs/client/requests/index.ts @@ -1 +1,2 @@ export { type LogsGetRequest } from "./LogsGetRequest"; +export { type LoggingControllerLogsDeleteQueryRequest } from "./LoggingControllerLogsDeleteQueryRequest"; diff --git a/src/api/resources/phoneNumbers/client/Client.ts b/src/api/resources/phoneNumbers/client/Client.ts index 8bbe802..c894406 100644 --- a/src/api/resources/phoneNumbers/client/Client.ts +++ b/src/api/resources/phoneNumbers/client/Client.ts @@ -96,8 +96,8 @@ export class PhoneNumbers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -153,8 +153,8 @@ export class PhoneNumbers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -207,8 +207,8 @@ export class PhoneNumbers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -263,8 +263,8 @@ export class PhoneNumbers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -303,12 +303,12 @@ export class PhoneNumbers { /** * @param {string} id - * @param {Vapi.UpdatePhoneNumberDto} request + * @param {Vapi.PhoneNumbersUpdateRequest} request * @param {PhoneNumbers.RequestOptions} requestOptions - Request-specific configuration. */ public async update( id: string, - request: Vapi.UpdatePhoneNumberDto = {}, + request: Vapi.PhoneNumbersUpdateRequest, requestOptions?: PhoneNumbers.RequestOptions ): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -321,8 +321,8 @@ export class PhoneNumbers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/phoneNumbers/client/requests/index.ts b/src/api/resources/phoneNumbers/client/requests/index.ts index afb1027..e5f5759 100644 --- a/src/api/resources/phoneNumbers/client/requests/index.ts +++ b/src/api/resources/phoneNumbers/client/requests/index.ts @@ -1,2 +1 @@ export { type PhoneNumbersListRequest } from "./PhoneNumbersListRequest"; -export { type UpdatePhoneNumberDto } from "./UpdatePhoneNumberDto"; diff --git a/src/api/resources/phoneNumbers/types/PhoneNumbersUpdateRequest.ts b/src/api/resources/phoneNumbers/types/PhoneNumbersUpdateRequest.ts new file mode 100644 index 0000000..283b6bb --- /dev/null +++ b/src/api/resources/phoneNumbers/types/PhoneNumbersUpdateRequest.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../../../index"; + +export type PhoneNumbersUpdateRequest = + | Vapi.UpdateByoPhoneNumberDto + | Vapi.UpdateTwilioPhoneNumberDto + | Vapi.UpdateVonagePhoneNumberDto + | Vapi.UpdateVapiPhoneNumberDto; diff --git a/src/api/resources/phoneNumbers/types/index.ts b/src/api/resources/phoneNumbers/types/index.ts index 6e331de..d1caa00 100644 --- a/src/api/resources/phoneNumbers/types/index.ts +++ b/src/api/resources/phoneNumbers/types/index.ts @@ -3,5 +3,5 @@ export * from "./PhoneNumbersCreateRequest"; export * from "./PhoneNumbersCreateResponse"; export * from "./PhoneNumbersGetResponse"; export * from "./PhoneNumbersDeleteResponse"; -export * from "./UpdatePhoneNumberDtoFallbackDestination"; +export * from "./PhoneNumbersUpdateRequest"; export * from "./PhoneNumbersUpdateResponse"; diff --git a/src/api/resources/squads/client/Client.ts b/src/api/resources/squads/client/Client.ts index d6fe3fa..e64af0a 100644 --- a/src/api/resources/squads/client/Client.ts +++ b/src/api/resources/squads/client/Client.ts @@ -96,8 +96,8 @@ export class Squads { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -150,8 +150,8 @@ export class Squads { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -204,8 +204,8 @@ export class Squads { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -257,8 +257,8 @@ export class Squads { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -315,8 +315,8 @@ export class Squads { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/tools/client/Client.ts b/src/api/resources/tools/client/Client.ts index a0cd15b..cd74276 100644 --- a/src/api/resources/tools/client/Client.ts +++ b/src/api/resources/tools/client/Client.ts @@ -96,8 +96,8 @@ export class Tools { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -153,8 +153,8 @@ export class Tools { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -207,8 +207,8 @@ export class Tools { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -260,8 +260,8 @@ export class Tools { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, @@ -300,12 +300,12 @@ export class Tools { /** * @param {string} id - * @param {Vapi.UpdateToolDto} request + * @param {Vapi.ToolsUpdateRequest} request * @param {Tools.RequestOptions} requestOptions - Request-specific configuration. */ public async update( id: string, - request: Vapi.UpdateToolDto = {}, + request: Vapi.ToolsUpdateRequest, requestOptions?: Tools.RequestOptions ): Promise { const _response = await (this._options.fetcher ?? core.fetcher)({ @@ -318,8 +318,8 @@ export class Tools { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@vapi-ai/server-sdk", - "X-Fern-SDK-Version": "0.2.2", - "User-Agent": "@vapi-ai/server-sdk/0.2.2", + "X-Fern-SDK-Version": "0.3.0", + "User-Agent": "@vapi-ai/server-sdk/0.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...requestOptions?.headers, diff --git a/src/api/resources/tools/client/requests/index.ts b/src/api/resources/tools/client/requests/index.ts index 00eb77f..7fa9f5b 100644 --- a/src/api/resources/tools/client/requests/index.ts +++ b/src/api/resources/tools/client/requests/index.ts @@ -1,2 +1 @@ export { type ToolsListRequest } from "./ToolsListRequest"; -export { type UpdateToolDto } from "./UpdateToolDto"; diff --git a/src/api/resources/tools/types/ToolsUpdateRequest.ts b/src/api/resources/tools/types/ToolsUpdateRequest.ts new file mode 100644 index 0000000..97adeab --- /dev/null +++ b/src/api/resources/tools/types/ToolsUpdateRequest.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../../../index"; + +export type ToolsUpdateRequest = + | Vapi.UpdateDtmfToolDto + | Vapi.UpdateEndCallToolDto + | Vapi.UpdateFunctionToolDto + | Vapi.UpdateGhlToolDto + | Vapi.UpdateMakeToolDto + | Vapi.UpdateTransferCallToolDto + | Vapi.UpdateOutputToolDto + | Vapi.UpdateBashToolDto + | Vapi.UpdateComputerToolDto + | Vapi.UpdateTextEditorToolDto; diff --git a/src/api/resources/tools/types/index.ts b/src/api/resources/tools/types/index.ts index c44d646..14c6826 100644 --- a/src/api/resources/tools/types/index.ts +++ b/src/api/resources/tools/types/index.ts @@ -3,5 +3,5 @@ export * from "./ToolsCreateRequest"; export * from "./ToolsCreateResponse"; export * from "./ToolsGetResponse"; export * from "./ToolsDeleteResponse"; -export * from "./UpdateToolDtoMessagesItem"; +export * from "./ToolsUpdateRequest"; export * from "./ToolsUpdateResponse"; diff --git a/src/api/types/Assistant.ts b/src/api/types/Assistant.ts index bc4d8b6..7508f2b 100644 --- a/src/api/types/Assistant.ts +++ b/src/api/types/Assistant.ts @@ -66,6 +66,8 @@ export interface Assistant { modelOutputInMessagesEnabled?: boolean; /** These are the configurations to be passed to the transport providers of assistant's calls, like Twilio. You can store multiple configurations for different transport providers. For a call, only the configuration matching the call transport provider is used. */ transportConfigurations?: Vapi.TransportConfigurationTwilio[]; + /** These are dynamic credentials that will be used for the assistant calls. By default, all the credentials are available for use in the call but you can supplement an additional credentials using this. Dynamic credentials override existing credentials. */ + credentials?: Vapi.AssistantCredentialsItem[]; /** * This is the name of the assistant. * diff --git a/src/api/types/AssistantCredentialsItem.ts b/src/api/types/AssistantCredentialsItem.ts new file mode 100644 index 0000000..9bf51fd --- /dev/null +++ b/src/api/types/AssistantCredentialsItem.ts @@ -0,0 +1,41 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export type AssistantCredentialsItem = + | Vapi.CreateAnthropicCredentialDto + | Vapi.CreateAnyscaleCredentialDto + | Vapi.CreateAssemblyAiCredentialDto + | Vapi.CreateAzureOpenAiCredentialDto + | Vapi.CreateAzureCredentialDto + | Vapi.CreateByoSipTrunkCredentialDto + | Vapi.CreateCartesiaCredentialDto + | Vapi.CreateCloudflareCredentialDto + | Vapi.CreateCustomLlmCredentialDto + | Vapi.CreateDeepgramCredentialDto + | Vapi.CreateDeepInfraCredentialDto + | Vapi.CreateDeepSeekCredentialDto + | Vapi.CreateElevenLabsCredentialDto + | Vapi.CreateGcpCredentialDto + | Vapi.CreateGladiaCredentialDto + | Vapi.CreateGoHighLevelCredentialDto + | Vapi.CreateGroqCredentialDto + | Vapi.CreateLangfuseCredentialDto + | Vapi.CreateLmntCredentialDto + | Vapi.CreateMakeCredentialDto + | Vapi.CreateOpenAiCredentialDto + | Vapi.CreateOpenRouterCredentialDto + | Vapi.CreatePerplexityAiCredentialDto + | Vapi.CreatePlayHtCredentialDto + | Vapi.CreateRimeAiCredentialDto + | Vapi.CreateRunpodCredentialDto + | Vapi.CreateS3CredentialDto + | Vapi.CreateSmallestAiCredentialDto + | Vapi.CreateTavusCredentialDto + | Vapi.CreateTogetherAiCredentialDto + | Vapi.CreateTwilioCredentialDto + | Vapi.CreateVonageCredentialDto + | Vapi.CreateWebhookCredentialDto + | Vapi.CreateXAiCredentialDto; diff --git a/src/api/types/AssistantModel.ts b/src/api/types/AssistantModel.ts index da36fc8..7ee82c9 100644 --- a/src/api/types/AssistantModel.ts +++ b/src/api/types/AssistantModel.ts @@ -15,6 +15,7 @@ export type AssistantModel = | Vapi.GoogleModel | Vapi.GroqModel | Vapi.InflectionAiModel + | Vapi.DeepSeekModel | Vapi.OpenAiModel | Vapi.OpenRouterModel | Vapi.PerplexityAiModel diff --git a/src/api/types/AssistantOverrides.ts b/src/api/types/AssistantOverrides.ts index 40fe056..e898b2c 100644 --- a/src/api/types/AssistantOverrides.ts +++ b/src/api/types/AssistantOverrides.ts @@ -66,6 +66,8 @@ export interface AssistantOverrides { modelOutputInMessagesEnabled?: boolean; /** These are the configurations to be passed to the transport providers of assistant's calls, like Twilio. You can store multiple configurations for different transport providers. For a call, only the configuration matching the call transport provider is used. */ transportConfigurations?: Vapi.TransportConfigurationTwilio[]; + /** These are dynamic credentials that will be used for the assistant calls. By default, all the credentials are available for use in the call but you can supplement an additional credentials using this. Dynamic credentials override existing credentials. */ + credentials?: Vapi.AssistantOverridesCredentialsItem[]; /** * 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 diff --git a/src/api/types/AssistantOverridesCredentialsItem.ts b/src/api/types/AssistantOverridesCredentialsItem.ts new file mode 100644 index 0000000..eb7b9a9 --- /dev/null +++ b/src/api/types/AssistantOverridesCredentialsItem.ts @@ -0,0 +1,41 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export type AssistantOverridesCredentialsItem = + | Vapi.CreateAnthropicCredentialDto + | Vapi.CreateAnyscaleCredentialDto + | Vapi.CreateAssemblyAiCredentialDto + | Vapi.CreateAzureOpenAiCredentialDto + | Vapi.CreateAzureCredentialDto + | Vapi.CreateByoSipTrunkCredentialDto + | Vapi.CreateCartesiaCredentialDto + | Vapi.CreateCloudflareCredentialDto + | Vapi.CreateCustomLlmCredentialDto + | Vapi.CreateDeepgramCredentialDto + | Vapi.CreateDeepInfraCredentialDto + | Vapi.CreateDeepSeekCredentialDto + | Vapi.CreateElevenLabsCredentialDto + | Vapi.CreateGcpCredentialDto + | Vapi.CreateGladiaCredentialDto + | Vapi.CreateGoHighLevelCredentialDto + | Vapi.CreateGroqCredentialDto + | Vapi.CreateLangfuseCredentialDto + | Vapi.CreateLmntCredentialDto + | Vapi.CreateMakeCredentialDto + | Vapi.CreateOpenAiCredentialDto + | Vapi.CreateOpenRouterCredentialDto + | Vapi.CreatePerplexityAiCredentialDto + | Vapi.CreatePlayHtCredentialDto + | Vapi.CreateRimeAiCredentialDto + | Vapi.CreateRunpodCredentialDto + | Vapi.CreateS3CredentialDto + | Vapi.CreateSmallestAiCredentialDto + | Vapi.CreateTavusCredentialDto + | Vapi.CreateTogetherAiCredentialDto + | Vapi.CreateTwilioCredentialDto + | Vapi.CreateVonageCredentialDto + | Vapi.CreateWebhookCredentialDto + | Vapi.CreateXAiCredentialDto; diff --git a/src/api/types/AssistantOverridesModel.ts b/src/api/types/AssistantOverridesModel.ts index e35f788..fcc7c82 100644 --- a/src/api/types/AssistantOverridesModel.ts +++ b/src/api/types/AssistantOverridesModel.ts @@ -15,6 +15,7 @@ export type AssistantOverridesModel = | Vapi.GoogleModel | Vapi.GroqModel | Vapi.InflectionAiModel + | Vapi.DeepSeekModel | Vapi.OpenAiModel | Vapi.OpenRouterModel | Vapi.PerplexityAiModel diff --git a/src/api/types/AssistantOverridesTranscriber.ts b/src/api/types/AssistantOverridesTranscriber.ts index 1472b21..f0d5f35 100644 --- a/src/api/types/AssistantOverridesTranscriber.ts +++ b/src/api/types/AssistantOverridesTranscriber.ts @@ -9,6 +9,7 @@ import * as Vapi from "../index"; */ export type AssistantOverridesTranscriber = | Vapi.AssemblyAiTranscriber + | Vapi.AzureSpeechTranscriber | Vapi.CustomTranscriber | Vapi.DeepgramTranscriber | Vapi.GladiaTranscriber diff --git a/src/api/types/AssistantOverridesVoice.ts b/src/api/types/AssistantOverridesVoice.ts index 50fa81f..1dc7a26 100644 --- a/src/api/types/AssistantOverridesVoice.ts +++ b/src/api/types/AssistantOverridesVoice.ts @@ -18,4 +18,5 @@ export type AssistantOverridesVoice = | Vapi.OpenAiVoice | Vapi.PlayHtVoice | Vapi.RimeAiVoice + | Vapi.SmallestAiVoice | Vapi.TavusVoice; diff --git a/src/api/types/AssistantTranscriber.ts b/src/api/types/AssistantTranscriber.ts index 5505623..485fac6 100644 --- a/src/api/types/AssistantTranscriber.ts +++ b/src/api/types/AssistantTranscriber.ts @@ -9,6 +9,7 @@ import * as Vapi from "../index"; */ export type AssistantTranscriber = | Vapi.AssemblyAiTranscriber + | Vapi.AzureSpeechTranscriber | Vapi.CustomTranscriber | Vapi.DeepgramTranscriber | Vapi.GladiaTranscriber diff --git a/src/api/types/AssistantVoice.ts b/src/api/types/AssistantVoice.ts index ffc8254..7088878 100644 --- a/src/api/types/AssistantVoice.ts +++ b/src/api/types/AssistantVoice.ts @@ -18,4 +18,5 @@ export type AssistantVoice = | Vapi.OpenAiVoice | Vapi.PlayHtVoice | Vapi.RimeAiVoice + | Vapi.SmallestAiVoice | Vapi.TavusVoice; diff --git a/src/api/types/AutoReloadPlanDto.ts b/src/api/types/AutoReloadPlanDto.ts deleted file mode 100644 index e48e3e9..0000000 --- a/src/api/types/AutoReloadPlanDto.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Vapi from "../index"; - -export interface AutoReloadPlanDto { - /** - * This is the auto reload plan to be configured for the subscription. - * It can be null if no auto reload plan is set. - */ - autoReloadPlan?: Vapi.AutoReloadPlan; -} diff --git a/src/api/types/AzureBlobStorageBucketPlan.ts b/src/api/types/AzureBlobStorageBucketPlan.ts new file mode 100644 index 0000000..aa6e350 --- /dev/null +++ b/src/api/types/AzureBlobStorageBucketPlan.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface AzureBlobStorageBucketPlan { + /** This is the blob storage connection string for the Azure resource. */ + connectionString: string; + /** This is the container name for the Azure blob storage. */ + containerName: string; + /** + * This is the path where call artifacts will be stored. + * + * Usage: + * - To store call artifacts in a specific folder, set this to the full path. Eg. "/folder-name1/folder-name2". + * - To store call artifacts in the root of the bucket, leave this blank. + * + * @default "/" + */ + path?: string; +} diff --git a/src/api/types/AzureCredential.ts b/src/api/types/AzureCredential.ts index 15a5f81..192623f 100644 --- a/src/api/types/AzureCredential.ts +++ b/src/api/types/AzureCredential.ts @@ -7,7 +7,7 @@ import * as Vapi from "../index"; export interface AzureCredential { provider: "azure"; /** This is the service being used in Azure. */ - service: "speech"; + service: Vapi.AzureCredentialService; /** This is the region of the Azure resource. */ region?: Vapi.AzureCredentialRegion; /** This is not returned in the API. */ @@ -22,4 +22,6 @@ export interface AzureCredential { updatedAt: string; /** This is the name of credential. This is just for your reference. */ name?: string; + /** This is the bucket plan that can be provided to store call artifacts in Azure Blob Storage. */ + bucketPlan?: Vapi.AzureBlobStorageBucketPlan; } diff --git a/src/api/types/AzureCredentialRegion.ts b/src/api/types/AzureCredentialRegion.ts index 7a50b55..ec65ddc 100644 --- a/src/api/types/AzureCredentialRegion.ts +++ b/src/api/types/AzureCredentialRegion.ts @@ -17,7 +17,7 @@ export type AzureCredentialRegion = | "northcentralus" | "norway" | "southcentralus" - | "sweden" + | "swedencentral" | "switzerland" | "uk" | "westus" @@ -35,7 +35,7 @@ export const AzureCredentialRegion = { Northcentralus: "northcentralus", Norway: "norway", Southcentralus: "southcentralus", - Sweden: "sweden", + Swedencentral: "swedencentral", Switzerland: "switzerland", Uk: "uk", Westus: "westus", diff --git a/src/api/types/AzureCredentialService.ts b/src/api/types/AzureCredentialService.ts new file mode 100644 index 0000000..a28b6c3 --- /dev/null +++ b/src/api/types/AzureCredentialService.ts @@ -0,0 +1,13 @@ +/** + * 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 52c1dfe..73fc2d9 100644 --- a/src/api/types/AzureOpenAiCredential.ts +++ b/src/api/types/AzureOpenAiCredential.ts @@ -10,6 +10,8 @@ export interface AzureOpenAiCredential { models: Vapi.AzureOpenAiCredentialModelsItem[]; /** This is not returned in the API. */ openAIKey: string; + /** This is not returned in the API. */ + ocpApimSubscriptionKey?: string; /** This is the unique identifier for the credential. */ id: string; /** This is the unique identifier for the org that this credential belongs to. */ diff --git a/src/api/types/AzureOpenAiCredentialRegion.ts b/src/api/types/AzureOpenAiCredentialRegion.ts index 26dde5b..1ca8614 100644 --- a/src/api/types/AzureOpenAiCredentialRegion.ts +++ b/src/api/types/AzureOpenAiCredentialRegion.ts @@ -14,7 +14,7 @@ export type AzureOpenAiCredentialRegion = | "northcentralus" | "norway" | "southcentralus" - | "sweden" + | "swedencentral" | "switzerland" | "uk" | "westus" @@ -32,7 +32,7 @@ export const AzureOpenAiCredentialRegion = { Northcentralus: "northcentralus", Norway: "norway", Southcentralus: "southcentralus", - Sweden: "sweden", + Swedencentral: "swedencentral", Switzerland: "switzerland", Uk: "uk", Westus: "westus", diff --git a/src/api/types/AzureSpeechTranscriber.ts b/src/api/types/AzureSpeechTranscriber.ts new file mode 100644 index 0000000..1d7257a --- /dev/null +++ b/src/api/types/AzureSpeechTranscriber.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +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?: Vapi.AzureSpeechTranscriberLanguage; +} diff --git a/src/api/types/AzureSpeechTranscriberLanguage.ts b/src/api/types/AzureSpeechTranscriberLanguage.ts new file mode 100644 index 0000000..82d0fdb --- /dev/null +++ b/src/api/types/AzureSpeechTranscriberLanguage.ts @@ -0,0 +1,297 @@ +/** + * 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/BuyPhoneNumberDto.ts b/src/api/types/BuyPhoneNumberDto.ts index 272fd47..251549e 100644 --- a/src/api/types/BuyPhoneNumberDto.ts +++ b/src/api/types/BuyPhoneNumberDto.ts @@ -31,17 +31,13 @@ export interface BuyPhoneNumberDto { */ squadId?: string; /** - * This is the server URL where messages will be sent for calls on this number. This includes the `assistant-request` message. + * This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema. * - * You can see the shape of the messages sent in `ServerMessage`. + * The order of precedence is: * - * This overrides the `org.serverUrl`. Order of precedence: tool.server.url > assistant.serverUrl > phoneNumber.serverUrl > org.serverUrl. + * 1. assistant.server + * 2. phoneNumber.server + * 3. org.server */ - serverUrl?: string; - /** - * This is the secret Vapi will send with every message to your server. It's sent as a header called x-vapi-secret. - * - * Same precedence logic as serverUrl. - */ - serverUrlSecret?: string; + server?: Vapi.Server; } diff --git a/src/api/types/ByoPhoneNumber.ts b/src/api/types/ByoPhoneNumber.ts index efb8dad..47e9fee 100644 --- a/src/api/types/ByoPhoneNumber.ts +++ b/src/api/types/ByoPhoneNumber.ts @@ -50,19 +50,15 @@ export interface ByoPhoneNumber { */ squadId?: string; /** - * This is the server URL where messages will be sent for calls on this number. This includes the `assistant-request` message. + * This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema. * - * You can see the shape of the messages sent in `ServerMessage`. + * The order of precedence is: * - * This overrides the `org.serverUrl`. Order of precedence: tool.server.url > assistant.serverUrl > phoneNumber.serverUrl > org.serverUrl. + * 1. assistant.server + * 2. phoneNumber.server + * 3. org.server */ - serverUrl?: string; - /** - * This is the secret Vapi will send with every message to your server. It's sent as a header called x-vapi-secret. - * - * Same precedence logic as serverUrl. - */ - serverUrlSecret?: string; + server?: Vapi.Server; /** This is the number of the customer. */ number?: string; /** diff --git a/src/api/types/CallEndedReason.ts b/src/api/types/CallEndedReason.ts index 69f35bd..b8a36f8 100644 --- a/src/api/types/CallEndedReason.ts +++ b/src/api/types/CallEndedReason.ts @@ -6,6 +6,30 @@ * This is the explanation for how the call ended. */ export type CallEndedReason = + | "assistant-not-invalid" + | "assistant-not-provided" + | "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" + | "assistant-ended-call" + | "assistant-said-end-call-phrase" + | "assistant-forwarded-call" + | "assistant-join-timed-out" + | "customer-busy" + | "customer-ended-call" + | "customer-did-not-answer" + | "customer-did-not-give-microphone-permission" + | "assistant-said-message-with-end-call-enabled" + | "exceeded-max-duration" + | "manually-canceled" + | "phone-call-provider-closed-websocket" + | "db-error" + | "assistant-not-found" + | "license-check-failed" | "pipeline-error-openai-voice-failed" | "pipeline-error-cartesia-voice-failed" | "pipeline-error-deepgram-voice-failed" @@ -15,9 +39,12 @@ export type CallEndedReason = | "pipeline-error-azure-voice-failed" | "pipeline-error-rime-ai-voice-failed" | "pipeline-error-neets-voice-failed" - | "db-error" - | "assistant-not-found" - | "license-check-failed" + | "pipeline-error-smallest-ai-voice-failed" + | "pipeline-error-deepgram-transcriber-failed" + | "pipeline-error-gladia-transcriber-failed" + | "pipeline-error-assembly-ai-transcriber-failed" + | "pipeline-error-talkscriber-transcriber-failed" + | "pipeline-error-azure-speech-transcriber-failed" | "pipeline-error-vapi-llm-failed" | "pipeline-error-vapi-400-bad-request-validation-failed" | "pipeline-error-vapi-401-unauthorized" @@ -37,36 +64,14 @@ export type CallEndedReason = | "vapifault-web-call-worker-setup-failed" | "vapifault-transport-connected-but-call-not-active" | "vapifault-call-started-but-connection-to-transport-missing" - | "pipeline-error-deepgram-transcriber-failed" - | "pipeline-error-gladia-transcriber-failed" - | "pipeline-error-assembly-ai-transcriber-failed" | "pipeline-error-openai-llm-failed" | "pipeline-error-azure-openai-llm-failed" | "pipeline-error-groq-llm-failed" | "pipeline-error-google-llm-failed" | "pipeline-error-xai-llm-failed" | "pipeline-error-inflection-ai-llm-failed" - | "assistant-not-invalid" - | "assistant-not-provided" - | "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" - | "assistant-ended-call" - | "assistant-said-end-call-phrase" - | "assistant-forwarded-call" - | "assistant-join-timed-out" - | "customer-busy" - | "customer-ended-call" - | "customer-did-not-answer" - | "customer-did-not-give-microphone-permission" - | "assistant-said-message-with-end-call-enabled" - | "exceeded-max-duration" - | "manually-canceled" - | "phone-call-provider-closed-websocket" + | "pipeline-error-cerebras-llm-failed" + | "pipeline-error-deep-seek-llm-failed" | "pipeline-error-openai-400-bad-request-validation-failed" | "pipeline-error-openai-401-unauthorized" | "pipeline-error-openai-403-model-access-denied" @@ -87,6 +92,11 @@ export type CallEndedReason = | "pipeline-error-inflection-ai-403-model-access-denied" | "pipeline-error-inflection-ai-429-exceeded-quota" | "pipeline-error-inflection-ai-500-server-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-azure-openai-400-bad-request-validation-failed" | "pipeline-error-azure-openai-401-unauthorized" | "pipeline-error-azure-openai-403-model-access-denied" @@ -97,6 +107,11 @@ export type CallEndedReason = | "pipeline-error-groq-403-model-access-denied" | "pipeline-error-groq-429-exceeded-quota" | "pipeline-error-groq-500-server-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-anthropic-400-bad-request-validation-failed" | "pipeline-error-anthropic-401-unauthorized" | "pipeline-error-anthropic-403-model-access-denied" @@ -184,6 +199,8 @@ export type CallEndedReason = | "pipeline-error-playht-429-exceeded-quota" | "pipeline-error-playht-502-gateway-error" | "pipeline-error-playht-504-gateway-error" + | "pipeline-error-tavus-video-failed" + | "pipeline-error-custom-transcriber-failed" | "pipeline-error-deepgram-returning-403-model-access-denied" | "pipeline-error-deepgram-returning-401-invalid-credentials" | "pipeline-error-deepgram-returning-404-not-found" @@ -191,8 +208,6 @@ export type CallEndedReason = | "pipeline-error-deepgram-returning-500-invalid-json" | "pipeline-error-deepgram-returning-502-network-error" | "pipeline-error-deepgram-returning-502-bad-gateway-ehostunreach" - | "pipeline-error-tavus-video-failed" - | "pipeline-error-custom-transcriber-failed" | "silence-timed-out" | "sip-gateway-failed-to-connect-call" | "twilio-failed-to-connect-call" @@ -201,6 +216,30 @@ export type CallEndedReason = | "voicemail"; export const CallEndedReason = { + AssistantNotInvalid: "assistant-not-invalid", + AssistantNotProvided: "assistant-not-provided", + 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", + AssistantEndedCall: "assistant-ended-call", + AssistantSaidEndCallPhrase: "assistant-said-end-call-phrase", + AssistantForwardedCall: "assistant-forwarded-call", + AssistantJoinTimedOut: "assistant-join-timed-out", + CustomerBusy: "customer-busy", + CustomerEndedCall: "customer-ended-call", + CustomerDidNotAnswer: "customer-did-not-answer", + CustomerDidNotGiveMicrophonePermission: "customer-did-not-give-microphone-permission", + AssistantSaidMessageWithEndCallEnabled: "assistant-said-message-with-end-call-enabled", + ExceededMaxDuration: "exceeded-max-duration", + ManuallyCanceled: "manually-canceled", + PhoneCallProviderClosedWebsocket: "phone-call-provider-closed-websocket", + DbError: "db-error", + AssistantNotFound: "assistant-not-found", + LicenseCheckFailed: "license-check-failed", PipelineErrorOpenaiVoiceFailed: "pipeline-error-openai-voice-failed", PipelineErrorCartesiaVoiceFailed: "pipeline-error-cartesia-voice-failed", PipelineErrorDeepgramVoiceFailed: "pipeline-error-deepgram-voice-failed", @@ -210,9 +249,12 @@ export const CallEndedReason = { PipelineErrorAzureVoiceFailed: "pipeline-error-azure-voice-failed", PipelineErrorRimeAiVoiceFailed: "pipeline-error-rime-ai-voice-failed", PipelineErrorNeetsVoiceFailed: "pipeline-error-neets-voice-failed", - DbError: "db-error", - AssistantNotFound: "assistant-not-found", - LicenseCheckFailed: "license-check-failed", + PipelineErrorSmallestAiVoiceFailed: "pipeline-error-smallest-ai-voice-failed", + PipelineErrorDeepgramTranscriberFailed: "pipeline-error-deepgram-transcriber-failed", + PipelineErrorGladiaTranscriberFailed: "pipeline-error-gladia-transcriber-failed", + PipelineErrorAssemblyAiTranscriberFailed: "pipeline-error-assembly-ai-transcriber-failed", + PipelineErrorTalkscriberTranscriberFailed: "pipeline-error-talkscriber-transcriber-failed", + PipelineErrorAzureSpeechTranscriberFailed: "pipeline-error-azure-speech-transcriber-failed", PipelineErrorVapiLlmFailed: "pipeline-error-vapi-llm-failed", PipelineErrorVapi400BadRequestValidationFailed: "pipeline-error-vapi-400-bad-request-validation-failed", PipelineErrorVapi401Unauthorized: "pipeline-error-vapi-401-unauthorized", @@ -232,36 +274,14 @@ export const CallEndedReason = { VapifaultWebCallWorkerSetupFailed: "vapifault-web-call-worker-setup-failed", VapifaultTransportConnectedButCallNotActive: "vapifault-transport-connected-but-call-not-active", VapifaultCallStartedButConnectionToTransportMissing: "vapifault-call-started-but-connection-to-transport-missing", - PipelineErrorDeepgramTranscriberFailed: "pipeline-error-deepgram-transcriber-failed", - PipelineErrorGladiaTranscriberFailed: "pipeline-error-gladia-transcriber-failed", - PipelineErrorAssemblyAiTranscriberFailed: "pipeline-error-assembly-ai-transcriber-failed", PipelineErrorOpenaiLlmFailed: "pipeline-error-openai-llm-failed", PipelineErrorAzureOpenaiLlmFailed: "pipeline-error-azure-openai-llm-failed", PipelineErrorGroqLlmFailed: "pipeline-error-groq-llm-failed", PipelineErrorGoogleLlmFailed: "pipeline-error-google-llm-failed", PipelineErrorXaiLlmFailed: "pipeline-error-xai-llm-failed", PipelineErrorInflectionAiLlmFailed: "pipeline-error-inflection-ai-llm-failed", - AssistantNotInvalid: "assistant-not-invalid", - AssistantNotProvided: "assistant-not-provided", - 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", - AssistantEndedCall: "assistant-ended-call", - AssistantSaidEndCallPhrase: "assistant-said-end-call-phrase", - AssistantForwardedCall: "assistant-forwarded-call", - AssistantJoinTimedOut: "assistant-join-timed-out", - CustomerBusy: "customer-busy", - CustomerEndedCall: "customer-ended-call", - CustomerDidNotAnswer: "customer-did-not-answer", - CustomerDidNotGiveMicrophonePermission: "customer-did-not-give-microphone-permission", - AssistantSaidMessageWithEndCallEnabled: "assistant-said-message-with-end-call-enabled", - ExceededMaxDuration: "exceeded-max-duration", - ManuallyCanceled: "manually-canceled", - PhoneCallProviderClosedWebsocket: "phone-call-provider-closed-websocket", + PipelineErrorCerebrasLlmFailed: "pipeline-error-cerebras-llm-failed", + PipelineErrorDeepSeekLlmFailed: "pipeline-error-deep-seek-llm-failed", PipelineErrorOpenai400BadRequestValidationFailed: "pipeline-error-openai-400-bad-request-validation-failed", PipelineErrorOpenai401Unauthorized: "pipeline-error-openai-401-unauthorized", PipelineErrorOpenai403ModelAccessDenied: "pipeline-error-openai-403-model-access-denied", @@ -283,6 +303,11 @@ export const CallEndedReason = { 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", + 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", PipelineErrorAzureOpenai400BadRequestValidationFailed: "pipeline-error-azure-openai-400-bad-request-validation-failed", PipelineErrorAzureOpenai401Unauthorized: "pipeline-error-azure-openai-401-unauthorized", @@ -294,6 +319,11 @@ export const CallEndedReason = { PipelineErrorGroq403ModelAccessDenied: "pipeline-error-groq-403-model-access-denied", PipelineErrorGroq429ExceededQuota: "pipeline-error-groq-429-exceeded-quota", PipelineErrorGroq500ServerError: "pipeline-error-groq-500-server-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", PipelineErrorAnthropic400BadRequestValidationFailed: "pipeline-error-anthropic-400-bad-request-validation-failed", PipelineErrorAnthropic401Unauthorized: "pipeline-error-anthropic-401-unauthorized", PipelineErrorAnthropic403ModelAccessDenied: "pipeline-error-anthropic-403-model-access-denied", @@ -393,6 +423,8 @@ export const CallEndedReason = { PipelineErrorPlayht429ExceededQuota: "pipeline-error-playht-429-exceeded-quota", PipelineErrorPlayht502GatewayError: "pipeline-error-playht-502-gateway-error", PipelineErrorPlayht504GatewayError: "pipeline-error-playht-504-gateway-error", + PipelineErrorTavusVideoFailed: "pipeline-error-tavus-video-failed", + PipelineErrorCustomTranscriberFailed: "pipeline-error-custom-transcriber-failed", PipelineErrorDeepgramReturning403ModelAccessDenied: "pipeline-error-deepgram-returning-403-model-access-denied", PipelineErrorDeepgramReturning401InvalidCredentials: "pipeline-error-deepgram-returning-401-invalid-credentials", PipelineErrorDeepgramReturning404NotFound: "pipeline-error-deepgram-returning-404-not-found", @@ -402,8 +434,6 @@ export const CallEndedReason = { PipelineErrorDeepgramReturning502NetworkError: "pipeline-error-deepgram-returning-502-network-error", PipelineErrorDeepgramReturning502BadGatewayEhostunreach: "pipeline-error-deepgram-returning-502-bad-gateway-ehostunreach", - PipelineErrorTavusVideoFailed: "pipeline-error-tavus-video-failed", - PipelineErrorCustomTranscriberFailed: "pipeline-error-custom-transcriber-failed", SilenceTimedOut: "silence-timed-out", SipGatewayFailedToConnectCall: "sip-gateway-failed-to-connect-call", TwilioFailedToConnectCall: "twilio-failed-to-connect-call", diff --git a/src/api/types/CartesiaVoiceModel.ts b/src/api/types/CartesiaVoiceModel.ts index c7c9dc0..1068347 100644 --- a/src/api/types/CartesiaVoiceModel.ts +++ b/src/api/types/CartesiaVoiceModel.ts @@ -5,9 +5,11 @@ /** * 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-english" | "sonic-multilingual"; +export type CartesiaVoiceModel = "sonic-english" | "sonic-multilingual" | "sonic-preview" | "sonic"; export const CartesiaVoiceModel = { SonicEnglish: "sonic-english", SonicMultilingual: "sonic-multilingual", + SonicPreview: "sonic-preview", + Sonic: "sonic", } as const; diff --git a/src/api/types/CerebrasCredential.ts b/src/api/types/CerebrasCredential.ts new file mode 100644 index 0000000..614187d --- /dev/null +++ b/src/api/types/CerebrasCredential.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface CerebrasCredential { + provider: "cerebras"; + /** This is not returned in the API. */ + apiKey: string; + /** This is the unique identifier for the credential. */ + id: string; + /** This is the unique identifier for the org that this credential belongs to. */ + orgId: string; + /** This is the ISO 8601 date-time string of when the credential was created. */ + createdAt: string; + /** This is the ISO 8601 date-time string of when the assistant was last updated. */ + updatedAt: string; + /** This is the name of credential. This is just for your reference. */ + name?: string; +} diff --git a/src/api/types/ChatDto.ts b/src/api/types/ChatDto.ts new file mode 100644 index 0000000..8a6a341 --- /dev/null +++ b/src/api/types/ChatDto.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export interface ChatDto { + messages: Vapi.OpenAiMessage[]; + assistantId?: string; + assistant?: Vapi.CreateAssistantDto; + assistantOverrides?: Vapi.AssistantOverrides; +} diff --git a/src/api/types/ChatServiceResponse.ts b/src/api/types/ChatServiceResponse.ts new file mode 100644 index 0000000..e84a8a1 --- /dev/null +++ b/src/api/types/ChatServiceResponse.ts @@ -0,0 +1,5 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface ChatServiceResponse {} diff --git a/src/api/types/CloudflareCredential.ts b/src/api/types/CloudflareCredential.ts new file mode 100644 index 0000000..e05d40a --- /dev/null +++ b/src/api/types/CloudflareCredential.ts @@ -0,0 +1,28 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export interface CloudflareCredential { + /** Credential provider. Only allowed value is cloudflare */ + provider: "cloudflare"; + /** Cloudflare Account Id. */ + accountId?: string; + /** Cloudflare API Key / Token. */ + apiKey?: string; + /** Cloudflare Account Email. */ + accountEmail?: string; + /** This is the unique identifier for the credential. */ + id: string; + /** This is the unique identifier for the org that this credential belongs to. */ + orgId: string; + /** This is the ISO 8601 date-time string of when the credential was created. */ + createdAt: string; + /** This is the ISO 8601 date-time string of when the assistant was last updated. */ + updatedAt: string; + /** This is the name of credential. This is just for your reference. */ + name?: string; + /** This is the bucket plan that can be provided to store call artifacts in R2 */ + bucketPlan?: Vapi.CloudflareR2BucketPlan; +} diff --git a/src/api/types/CloudflareR2BucketPlan.ts b/src/api/types/CloudflareR2BucketPlan.ts new file mode 100644 index 0000000..7491eb6 --- /dev/null +++ b/src/api/types/CloudflareR2BucketPlan.ts @@ -0,0 +1,24 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface CloudflareR2BucketPlan { + /** Cloudflare R2 Access key ID. */ + accessKeyId?: string; + /** Cloudflare R2 access key secret. This is not returned in the API. */ + secretAccessKey?: string; + /** Cloudflare R2 base url. */ + url?: string; + /** This is the name of the bucket. */ + name: string; + /** + * This is the path where call artifacts will be stored. + * + * Usage: + * - To store call artifacts in a specific folder, set this to the full path. Eg. "/folder-name1/folder-name2". + * - To store call artifacts in the root of the bucket, leave this blank. + * + * @default "/" + */ + path?: string; +} diff --git a/src/api/types/CreateAssistantDto.ts b/src/api/types/CreateAssistantDto.ts index 84533ae..e02ceb2 100644 --- a/src/api/types/CreateAssistantDto.ts +++ b/src/api/types/CreateAssistantDto.ts @@ -66,6 +66,8 @@ export interface CreateAssistantDto { modelOutputInMessagesEnabled?: boolean; /** These are the configurations to be passed to the transport providers of assistant's calls, like Twilio. You can store multiple configurations for different transport providers. For a call, only the configuration matching the call transport provider is used. */ transportConfigurations?: Vapi.TransportConfigurationTwilio[]; + /** These are dynamic credentials that will be used for the assistant calls. By default, all the credentials are available for use in the call but you can supplement an additional credentials using this. Dynamic credentials override existing credentials. */ + credentials?: Vapi.CreateAssistantDtoCredentialsItem[]; /** * This is the name of the assistant. * diff --git a/src/api/types/CreateAssistantDtoCredentialsItem.ts b/src/api/types/CreateAssistantDtoCredentialsItem.ts new file mode 100644 index 0000000..836303c --- /dev/null +++ b/src/api/types/CreateAssistantDtoCredentialsItem.ts @@ -0,0 +1,41 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export type CreateAssistantDtoCredentialsItem = + | Vapi.CreateAnthropicCredentialDto + | Vapi.CreateAnyscaleCredentialDto + | Vapi.CreateAssemblyAiCredentialDto + | Vapi.CreateAzureOpenAiCredentialDto + | Vapi.CreateAzureCredentialDto + | Vapi.CreateByoSipTrunkCredentialDto + | Vapi.CreateCartesiaCredentialDto + | Vapi.CreateCloudflareCredentialDto + | Vapi.CreateCustomLlmCredentialDto + | Vapi.CreateDeepgramCredentialDto + | Vapi.CreateDeepInfraCredentialDto + | Vapi.CreateDeepSeekCredentialDto + | Vapi.CreateElevenLabsCredentialDto + | Vapi.CreateGcpCredentialDto + | Vapi.CreateGladiaCredentialDto + | Vapi.CreateGoHighLevelCredentialDto + | Vapi.CreateGroqCredentialDto + | Vapi.CreateLangfuseCredentialDto + | Vapi.CreateLmntCredentialDto + | Vapi.CreateMakeCredentialDto + | Vapi.CreateOpenAiCredentialDto + | Vapi.CreateOpenRouterCredentialDto + | Vapi.CreatePerplexityAiCredentialDto + | Vapi.CreatePlayHtCredentialDto + | Vapi.CreateRimeAiCredentialDto + | Vapi.CreateRunpodCredentialDto + | Vapi.CreateS3CredentialDto + | Vapi.CreateSmallestAiCredentialDto + | Vapi.CreateTavusCredentialDto + | Vapi.CreateTogetherAiCredentialDto + | Vapi.CreateTwilioCredentialDto + | Vapi.CreateVonageCredentialDto + | Vapi.CreateWebhookCredentialDto + | Vapi.CreateXAiCredentialDto; diff --git a/src/api/types/CreateAssistantDtoModel.ts b/src/api/types/CreateAssistantDtoModel.ts index 1915e3f..999ee59 100644 --- a/src/api/types/CreateAssistantDtoModel.ts +++ b/src/api/types/CreateAssistantDtoModel.ts @@ -15,6 +15,7 @@ export type CreateAssistantDtoModel = | Vapi.GoogleModel | Vapi.GroqModel | Vapi.InflectionAiModel + | Vapi.DeepSeekModel | Vapi.OpenAiModel | Vapi.OpenRouterModel | Vapi.PerplexityAiModel diff --git a/src/api/types/CreateAssistantDtoTranscriber.ts b/src/api/types/CreateAssistantDtoTranscriber.ts index c283c22..ad4ac90 100644 --- a/src/api/types/CreateAssistantDtoTranscriber.ts +++ b/src/api/types/CreateAssistantDtoTranscriber.ts @@ -9,6 +9,7 @@ import * as Vapi from "../index"; */ export type CreateAssistantDtoTranscriber = | Vapi.AssemblyAiTranscriber + | Vapi.AzureSpeechTranscriber | Vapi.CustomTranscriber | Vapi.DeepgramTranscriber | Vapi.GladiaTranscriber diff --git a/src/api/types/CreateAssistantDtoVoice.ts b/src/api/types/CreateAssistantDtoVoice.ts index 6a623d1..d1ec094 100644 --- a/src/api/types/CreateAssistantDtoVoice.ts +++ b/src/api/types/CreateAssistantDtoVoice.ts @@ -18,4 +18,5 @@ export type CreateAssistantDtoVoice = | Vapi.OpenAiVoice | Vapi.PlayHtVoice | Vapi.RimeAiVoice + | Vapi.SmallestAiVoice | Vapi.TavusVoice; diff --git a/src/api/types/CreateAzureCredentialDto.ts b/src/api/types/CreateAzureCredentialDto.ts index 09938f8..36653b9 100644 --- a/src/api/types/CreateAzureCredentialDto.ts +++ b/src/api/types/CreateAzureCredentialDto.ts @@ -7,11 +7,13 @@ import * as Vapi from "../index"; export interface CreateAzureCredentialDto { provider: "azure"; /** This is the service being used in Azure. */ - service: "speech"; + service: Vapi.CreateAzureCredentialDtoService; /** This is the region of the Azure resource. */ region?: Vapi.CreateAzureCredentialDtoRegion; /** This is not returned in the API. */ apiKey?: string; + /** This is the bucket plan that can be provided to store call artifacts in Azure Blob Storage. */ + bucketPlan?: Vapi.AzureBlobStorageBucketPlan; /** This is the name of credential. This is just for your reference. */ name?: string; } diff --git a/src/api/types/CreateAzureCredentialDtoRegion.ts b/src/api/types/CreateAzureCredentialDtoRegion.ts index 20050c3..fa8e33b 100644 --- a/src/api/types/CreateAzureCredentialDtoRegion.ts +++ b/src/api/types/CreateAzureCredentialDtoRegion.ts @@ -17,7 +17,7 @@ export type CreateAzureCredentialDtoRegion = | "northcentralus" | "norway" | "southcentralus" - | "sweden" + | "swedencentral" | "switzerland" | "uk" | "westus" @@ -35,7 +35,7 @@ export const CreateAzureCredentialDtoRegion = { Northcentralus: "northcentralus", Norway: "norway", Southcentralus: "southcentralus", - Sweden: "sweden", + Swedencentral: "swedencentral", Switzerland: "switzerland", Uk: "uk", Westus: "westus", diff --git a/src/api/types/CreateAzureCredentialDtoService.ts b/src/api/types/CreateAzureCredentialDtoService.ts new file mode 100644 index 0000000..72c769c --- /dev/null +++ b/src/api/types/CreateAzureCredentialDtoService.ts @@ -0,0 +1,13 @@ +/** + * 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 f79e6b1..6772631 100644 --- a/src/api/types/CreateAzureOpenAiCredentialDto.ts +++ b/src/api/types/CreateAzureOpenAiCredentialDto.ts @@ -10,6 +10,8 @@ export interface CreateAzureOpenAiCredentialDto { models: Vapi.CreateAzureOpenAiCredentialDtoModelsItem[]; /** This is not returned in the API. */ openAIKey: string; + /** This is not returned in the API. */ + ocpApimSubscriptionKey?: string; openAIEndpoint: string; /** This is the name of credential. This is just for your reference. */ name?: string; diff --git a/src/api/types/CreateAzureOpenAiCredentialDtoRegion.ts b/src/api/types/CreateAzureOpenAiCredentialDtoRegion.ts index 32a0dc4..00998b2 100644 --- a/src/api/types/CreateAzureOpenAiCredentialDtoRegion.ts +++ b/src/api/types/CreateAzureOpenAiCredentialDtoRegion.ts @@ -14,7 +14,7 @@ export type CreateAzureOpenAiCredentialDtoRegion = | "northcentralus" | "norway" | "southcentralus" - | "sweden" + | "swedencentral" | "switzerland" | "uk" | "westus" @@ -32,7 +32,7 @@ export const CreateAzureOpenAiCredentialDtoRegion = { Northcentralus: "northcentralus", Norway: "norway", Southcentralus: "southcentralus", - Sweden: "sweden", + Swedencentral: "swedencentral", Switzerland: "switzerland", Uk: "uk", Westus: "westus", diff --git a/src/api/types/CreateByoPhoneNumberDto.ts b/src/api/types/CreateByoPhoneNumberDto.ts index 3000290..4636b34 100644 --- a/src/api/types/CreateByoPhoneNumberDto.ts +++ b/src/api/types/CreateByoPhoneNumberDto.ts @@ -50,17 +50,13 @@ export interface CreateByoPhoneNumberDto { */ squadId?: string; /** - * This is the server URL where messages will be sent for calls on this number. This includes the `assistant-request` message. + * This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema. * - * You can see the shape of the messages sent in `ServerMessage`. + * The order of precedence is: * - * This overrides the `org.serverUrl`. Order of precedence: tool.server.url > assistant.serverUrl > phoneNumber.serverUrl > org.serverUrl. + * 1. assistant.server + * 2. phoneNumber.server + * 3. org.server */ - serverUrl?: string; - /** - * This is the secret Vapi will send with every message to your server. It's sent as a header called x-vapi-secret. - * - * Same precedence logic as serverUrl. - */ - serverUrlSecret?: string; + server?: Vapi.Server; } diff --git a/src/api/types/CreateCerebrasCredentialDto.ts b/src/api/types/CreateCerebrasCredentialDto.ts new file mode 100644 index 0000000..9ed1e94 --- /dev/null +++ b/src/api/types/CreateCerebrasCredentialDto.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface CreateCerebrasCredentialDto { + provider: "cerebras"; + /** This is not returned in the API. */ + apiKey: string; + /** This is the name of credential. This is just for your reference. */ + name?: string; +} diff --git a/src/api/types/CreateCloudflareCredentialDto.ts b/src/api/types/CreateCloudflareCredentialDto.ts new file mode 100644 index 0000000..2504de8 --- /dev/null +++ b/src/api/types/CreateCloudflareCredentialDto.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export interface CreateCloudflareCredentialDto { + /** Credential provider. Only allowed value is cloudflare */ + provider: "cloudflare"; + /** Cloudflare Account Id. */ + accountId?: string; + /** Cloudflare API Key / Token. */ + apiKey?: string; + /** Cloudflare Account Email. */ + accountEmail?: string; + /** This is the bucket plan that can be provided to store call artifacts in R2 */ + bucketPlan?: Vapi.CloudflareR2BucketPlan; + /** This is the name of credential. This is just for your reference. */ + name?: string; +} diff --git a/src/api/types/CreateDeepSeekCredentialDto.ts b/src/api/types/CreateDeepSeekCredentialDto.ts new file mode 100644 index 0000000..022e9f0 --- /dev/null +++ b/src/api/types/CreateDeepSeekCredentialDto.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface CreateDeepSeekCredentialDto { + provider: "deep-seek"; + /** This is not returned in the API. */ + apiKey: string; + /** This is the name of credential. This is just for your reference. */ + name?: string; +} diff --git a/src/api/types/CreateOrgDto.ts b/src/api/types/CreateOrgDto.ts index 15a68e0..4e33c24 100644 --- a/src/api/types/CreateOrgDto.ts +++ b/src/api/types/CreateOrgDto.ts @@ -20,13 +20,15 @@ export interface CreateOrgDto { /** This is the monthly billing limit for the org. To go beyond $1000/mo, please contact us at support@vapi.ai. */ billingLimit?: number; /** - * This is the URL Vapi will communicate with via HTTP GET and POST Requests. This is used for retrieving context, function calling, and end-of-call reports. + * This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema. * - * All requests will be sent with the call object among other things relevant to that message. You can find more details in the Server URL documentation. + * The order of precedence is: + * + * 1. assistant.server + * 2. phoneNumber.server + * 3. org.server */ - serverUrl?: string; - /** This is the secret you can set that Vapi will send with every request to your server. Will be sent as a header called x-vapi-secret. */ - serverUrlSecret?: string; + server?: Vapi.Server; /** This is the concurrency limit for the org. This is the maximum number of calls that can be active at any given time. To go beyond 10, please contact us at support@vapi.ai. */ concurrencyLimit?: number; } diff --git a/src/api/types/CreateSmallestAiCredentialDto.ts b/src/api/types/CreateSmallestAiCredentialDto.ts new file mode 100644 index 0000000..29a5462 --- /dev/null +++ b/src/api/types/CreateSmallestAiCredentialDto.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface CreateSmallestAiCredentialDto { + provider: "smallest-ai"; + /** This is not returned in the API. */ + apiKey: string; + /** This is the name of credential. This is just for your reference. */ + name?: string; +} diff --git a/src/api/types/CreateTwilioPhoneNumberDto.ts b/src/api/types/CreateTwilioPhoneNumberDto.ts index 5c4d3f5..fb2f35d 100644 --- a/src/api/types/CreateTwilioPhoneNumberDto.ts +++ b/src/api/types/CreateTwilioPhoneNumberDto.ts @@ -36,17 +36,13 @@ export interface CreateTwilioPhoneNumberDto { */ squadId?: string; /** - * This is the server URL where messages will be sent for calls on this number. This includes the `assistant-request` message. + * This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema. * - * You can see the shape of the messages sent in `ServerMessage`. + * The order of precedence is: * - * This overrides the `org.serverUrl`. Order of precedence: tool.server.url > assistant.serverUrl > phoneNumber.serverUrl > org.serverUrl. + * 1. assistant.server + * 2. phoneNumber.server + * 3. org.server */ - serverUrl?: string; - /** - * This is the secret Vapi will send with every message to your server. It's sent as a header called x-vapi-secret. - * - * Same precedence logic as serverUrl. - */ - serverUrlSecret?: string; + server?: Vapi.Server; } diff --git a/src/api/types/CreateVapiPhoneNumberDto.ts b/src/api/types/CreateVapiPhoneNumberDto.ts index 2a322b7..b4e771a 100644 --- a/src/api/types/CreateVapiPhoneNumberDto.ts +++ b/src/api/types/CreateVapiPhoneNumberDto.ts @@ -42,17 +42,13 @@ export interface CreateVapiPhoneNumberDto { */ squadId?: string; /** - * This is the server URL where messages will be sent for calls on this number. This includes the `assistant-request` message. + * This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema. * - * You can see the shape of the messages sent in `ServerMessage`. + * The order of precedence is: * - * This overrides the `org.serverUrl`. Order of precedence: tool.server.url > assistant.serverUrl > phoneNumber.serverUrl > org.serverUrl. + * 1. assistant.server + * 2. phoneNumber.server + * 3. org.server */ - serverUrl?: string; - /** - * This is the secret Vapi will send with every message to your server. It's sent as a header called x-vapi-secret. - * - * Same precedence logic as serverUrl. - */ - serverUrlSecret?: string; + server?: Vapi.Server; } diff --git a/src/api/types/CreateVonagePhoneNumberDto.ts b/src/api/types/CreateVonagePhoneNumberDto.ts index b1c5eb9..ea2da3a 100644 --- a/src/api/types/CreateVonagePhoneNumberDto.ts +++ b/src/api/types/CreateVonagePhoneNumberDto.ts @@ -34,17 +34,13 @@ export interface CreateVonagePhoneNumberDto { */ squadId?: string; /** - * This is the server URL where messages will be sent for calls on this number. This includes the `assistant-request` message. + * This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema. * - * You can see the shape of the messages sent in `ServerMessage`. + * The order of precedence is: * - * This overrides the `org.serverUrl`. Order of precedence: tool.server.url > assistant.serverUrl > phoneNumber.serverUrl > org.serverUrl. + * 1. assistant.server + * 2. phoneNumber.server + * 3. org.server */ - serverUrl?: string; - /** - * This is the secret Vapi will send with every message to your server. It's sent as a header called x-vapi-secret. - * - * Same precedence logic as serverUrl. - */ - serverUrlSecret?: string; + server?: Vapi.Server; } diff --git a/src/api/types/CreditsBuyDto.ts b/src/api/types/CreditsBuyDto.ts deleted file mode 100644 index f06f860..0000000 --- a/src/api/types/CreditsBuyDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface CreditsBuyDto { - /** This is the number of credits to add to the subscription. */ - credits: number; -} diff --git a/src/api/types/DeepSeekCredential.ts b/src/api/types/DeepSeekCredential.ts new file mode 100644 index 0000000..76e2474 --- /dev/null +++ b/src/api/types/DeepSeekCredential.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface DeepSeekCredential { + provider: "deep-seek"; + /** This is not returned in the API. */ + apiKey: string; + /** This is the unique identifier for the credential. */ + id: string; + /** This is the unique identifier for the org that this credential belongs to. */ + orgId: string; + /** This is the ISO 8601 date-time string of when the credential was created. */ + createdAt: string; + /** This is the ISO 8601 date-time string of when the assistant was last updated. */ + updatedAt: string; + /** This is the name of credential. This is just for your reference. */ + name?: string; +} diff --git a/src/api/types/DeepSeekModel.ts b/src/api/types/DeepSeekModel.ts new file mode 100644 index 0000000..b360ac5 --- /dev/null +++ b/src/api/types/DeepSeekModel.ts @@ -0,0 +1,49 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export interface DeepSeekModel { + /** This is the starting state for the conversation. */ + messages?: Vapi.OpenAiMessage[]; + /** + * These are the tools that the assistant can use during the call. To use existing tools, use `toolIds`. + * + * Both `tools` and `toolIds` can be used together. + */ + tools?: Vapi.DeepSeekModelToolsItem[]; + /** + * These are the tools that the assistant can use during the call. To use transient tools, use `tools`. + * + * Both `tools` and `toolIds` can be used together. + */ + toolIds?: string[]; + /** These are the options for the knowledge base. */ + knowledgeBase?: Vapi.CreateCustomKnowledgeBaseDto; + /** This is the ID of the knowledge base the model will use. */ + knowledgeBaseId?: string; + /** This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b */ + model: "deepseek-chat"; + provider: "deep-seek"; + /** 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. */ + maxTokens?: number; + /** + * This determines whether we detect user's emotion while they speak and send it as an additional info to model. + * + * Default `false` because the model is usually are good at understanding the user's emotion from text. + * + * @default false + */ + emotionRecognitionEnabled?: boolean; + /** + * This sets how many turns at the start of the conversation to use a smaller, faster model from the same provider before switching to the primary model. Example, gpt-3.5-turbo if provider is openai. + * + * Default is 0. + * + * @default 0 + */ + numFastTurns?: number; +} diff --git a/src/api/types/DeepSeekModelToolsItem.ts b/src/api/types/DeepSeekModelToolsItem.ts new file mode 100644 index 0000000..5746785 --- /dev/null +++ b/src/api/types/DeepSeekModelToolsItem.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export type DeepSeekModelToolsItem = + | Vapi.CreateDtmfToolDto + | Vapi.CreateEndCallToolDto + | Vapi.CreateVoicemailToolDto + | Vapi.CreateFunctionToolDto + | Vapi.CreateGhlToolDto + | Vapi.CreateMakeToolDto + | Vapi.CreateTransferCallToolDto; diff --git a/src/api/types/ElevenLabsVoiceModel.ts b/src/api/types/ElevenLabsVoiceModel.ts index 9a850c0..a2d1ccc 100644 --- a/src/api/types/ElevenLabsVoiceModel.ts +++ b/src/api/types/ElevenLabsVoiceModel.ts @@ -9,11 +9,15 @@ 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/FallbackCartesiaVoiceModel.ts b/src/api/types/FallbackCartesiaVoiceModel.ts index 5d47295..562b3c7 100644 --- a/src/api/types/FallbackCartesiaVoiceModel.ts +++ b/src/api/types/FallbackCartesiaVoiceModel.ts @@ -5,9 +5,11 @@ /** * 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-english" | "sonic-multilingual"; +export type FallbackCartesiaVoiceModel = "sonic-english" | "sonic-multilingual" | "sonic-preview" | "sonic"; export const FallbackCartesiaVoiceModel = { SonicEnglish: "sonic-english", SonicMultilingual: "sonic-multilingual", + SonicPreview: "sonic-preview", + Sonic: "sonic", } as const; diff --git a/src/api/types/FallbackElevenLabsVoiceModel.ts b/src/api/types/FallbackElevenLabsVoiceModel.ts index 64155b7..287d69e 100644 --- a/src/api/types/FallbackElevenLabsVoiceModel.ts +++ b/src/api/types/FallbackElevenLabsVoiceModel.ts @@ -9,11 +9,15 @@ 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/FallbackOpenAiVoice.ts b/src/api/types/FallbackOpenAiVoice.ts index ad02691..8064074 100644 --- a/src/api/types/FallbackOpenAiVoice.ts +++ b/src/api/types/FallbackOpenAiVoice.ts @@ -9,7 +9,7 @@ export interface FallbackOpenAiVoice { provider: "openai"; /** * This is the provider-specific ID that will be used. - * Please note that ash, ballad, coral, sage, and verse may only be used with the `gpt-4o-realtime-preview-2024-10-01` model. + * Please note that ash, ballad, coral, sage, and verse may only be used with realtime models. */ voiceId: Vapi.FallbackOpenAiVoiceId; /** This is the speed multiplier that will be used. */ diff --git a/src/api/types/FallbackOpenAiVoiceId.ts b/src/api/types/FallbackOpenAiVoiceId.ts index 63d9a85..0dedeb6 100644 --- a/src/api/types/FallbackOpenAiVoiceId.ts +++ b/src/api/types/FallbackOpenAiVoiceId.ts @@ -4,7 +4,7 @@ /** * This is the provider-specific ID that will be used. - * Please note that ash, ballad, coral, sage, and verse may only be used with the `gpt-4o-realtime-preview-2024-10-01` model. + * Please note that ash, ballad, coral, sage, and verse may only be used with realtime models. */ export type FallbackOpenAiVoiceId = | "alloy" diff --git a/src/api/types/FallbackPlanVoicesItem.ts b/src/api/types/FallbackPlanVoicesItem.ts index 7c0c3a7..c01585a 100644 --- a/src/api/types/FallbackPlanVoicesItem.ts +++ b/src/api/types/FallbackPlanVoicesItem.ts @@ -15,4 +15,5 @@ export type FallbackPlanVoicesItem = | Vapi.FallbackOpenAiVoice | Vapi.FallbackPlayHtVoice | Vapi.FallbackRimeAiVoice + | Vapi.FallbackSmallestAiVoice | Vapi.FallbackTavusVoice; diff --git a/src/api/types/FallbackSmallestAiVoice.ts b/src/api/types/FallbackSmallestAiVoice.ts new file mode 100644 index 0000000..59367b3 --- /dev/null +++ b/src/api/types/FallbackSmallestAiVoice.ts @@ -0,0 +1,18 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +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: 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. */ + speed?: number; + /** This is the plan for chunking the model output before it is sent to the voice provider. */ + chunkPlan?: Vapi.ChunkPlan; +} diff --git a/src/api/types/FallbackSmallestAiVoiceId.ts b/src/api/types/FallbackSmallestAiVoiceId.ts new file mode 100644 index 0000000..a215975 --- /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"; + +/** + * 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 0000000..b9d96b4 --- /dev/null +++ b/src/api/types/FallbackSmallestAiVoiceIdEnum.ts @@ -0,0 +1,58 @@ +/** + * 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/GeminiMultimodalLivePrebuiltVoiceConfig.ts b/src/api/types/GeminiMultimodalLivePrebuiltVoiceConfig.ts new file mode 100644 index 0000000..63f2f1b --- /dev/null +++ b/src/api/types/GeminiMultimodalLivePrebuiltVoiceConfig.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +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 0000000..8cb7b37 --- /dev/null +++ b/src/api/types/GeminiMultimodalLivePrebuiltVoiceConfigVoiceName.ts @@ -0,0 +1,13 @@ +/** + * 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/PaymentsPaginatedResponse.ts b/src/api/types/GeminiMultimodalLiveSpeechConfig.ts similarity index 50% rename from src/api/types/PaymentsPaginatedResponse.ts rename to src/api/types/GeminiMultimodalLiveSpeechConfig.ts index 85bb8ea..65ab186 100644 --- a/src/api/types/PaymentsPaginatedResponse.ts +++ b/src/api/types/GeminiMultimodalLiveSpeechConfig.ts @@ -4,7 +4,6 @@ import * as Vapi from "../index"; -export interface PaymentsPaginatedResponse { - results: Vapi.Payment[]; - metadata: Vapi.PaginationMeta; +export interface GeminiMultimodalLiveSpeechConfig { + voiceConfig: Vapi.GeminiMultimodalLiveVoiceConfig; } diff --git a/src/api/types/GeminiMultimodalLiveVoiceConfig.ts b/src/api/types/GeminiMultimodalLiveVoiceConfig.ts new file mode 100644 index 0000000..e28b29a --- /dev/null +++ b/src/api/types/GeminiMultimodalLiveVoiceConfig.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export interface GeminiMultimodalLiveVoiceConfig { + prebuiltVoiceConfig: Vapi.GeminiMultimodalLivePrebuiltVoiceConfig; +} diff --git a/src/api/types/GoogleModel.ts b/src/api/types/GoogleModel.ts index 6ee0434..68ad522 100644 --- a/src/api/types/GoogleModel.ts +++ b/src/api/types/GoogleModel.ts @@ -26,6 +26,11 @@ export interface GoogleModel { /** This is the Google model that will be used. */ model: Vapi.GoogleModelModel; provider: "google"; + /** + * This is the session configuration for the Gemini Flash 2.0 Multimodal Live API. + * Only applicable if the model `gemini-2.0-flash-realtime-exp` is selected. + */ + realtimeConfig?: Vapi.GoogleRealtimeConfig; /** 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. */ diff --git a/src/api/types/GoogleModelModel.ts b/src/api/types/GoogleModelModel.ts index 31e80aa..4a40c96 100644 --- a/src/api/types/GoogleModelModel.ts +++ b/src/api/types/GoogleModelModel.ts @@ -6,6 +6,8 @@ * This is the Google model that will be used. */ export type GoogleModelModel = + | "gemini-2.0-flash-exp" + | "gemini-2.0-flash-realtime-exp" | "gemini-1.5-flash" | "gemini-1.5-flash-002" | "gemini-1.5-pro" @@ -13,6 +15,8 @@ export type GoogleModelModel = | "gemini-1.0-pro"; export const GoogleModelModel = { + 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", diff --git a/src/api/types/GoogleRealtimeConfig.ts b/src/api/types/GoogleRealtimeConfig.ts new file mode 100644 index 0000000..d13dccb --- /dev/null +++ b/src/api/types/GoogleRealtimeConfig.ts @@ -0,0 +1,33 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export interface GoogleRealtimeConfig { + /** + * This is the nucleus sampling parameter that controls the cumulative probability of tokens considered during text generation. + * Only applicable with the Gemini Flash 2.0 Multimodal Live API. + */ + topP?: number; + /** + * This is the top-k sampling parameter that limits the number of highest probability tokens considered during text generation. + * Only applicable with the Gemini Flash 2.0 Multimodal Live API. + */ + topK?: number; + /** + * This is the presence penalty parameter that influences the model's likelihood to repeat information by penalizing tokens based on their presence in the text. + * Only applicable with the Gemini Flash 2.0 Multimodal Live API. + */ + presencePenalty?: number; + /** + * This is the frequency penalty parameter that influences the model's likelihood to repeat tokens by penalizing them based on their frequency in the text. + * Only applicable with the Gemini Flash 2.0 Multimodal Live API. + */ + frequencyPenalty?: number; + /** + * This is the speech configuration object that defines the voice settings to be used for the model's speech output. + * Only applicable with the Gemini Flash 2.0 Multimodal Live API. + */ + speechConfig?: Vapi.GeminiMultimodalLiveSpeechConfig; +} diff --git a/src/api/types/GroqModelModel.ts b/src/api/types/GroqModelModel.ts index 5bfd305..20fef3a 100644 --- a/src/api/types/GroqModelModel.ts +++ b/src/api/types/GroqModelModel.ts @@ -6,26 +6,22 @@ * This is the name of the model. Ex. cognitivecomputations/dolphin-mixtral-8x7b */ export type GroqModelModel = + | "llama-3.3-70b-versatile" | "llama-3.1-405b-reasoning" | "llama-3.1-70b-versatile" | "llama-3.1-8b-instant" | "mixtral-8x7b-32768" | "llama3-8b-8192" | "llama3-70b-8192" - | "llama3-groq-8b-8192-tool-use-preview" - | "llama3-groq-70b-8192-tool-use-preview" - | "gemma-7b-it" | "gemma2-9b-it"; export const GroqModelModel = { + Llama3370BVersatile: "llama-3.3-70b-versatile", Llama31405BReasoning: "llama-3.1-405b-reasoning", Llama3170BVersatile: "llama-3.1-70b-versatile", Llama318BInstant: "llama-3.1-8b-instant", Mixtral8X7B32768: "mixtral-8x7b-32768", Llama38B8192: "llama3-8b-8192", Llama370B8192: "llama3-70b-8192", - Llama3Groq8B8192ToolUsePreview: "llama3-groq-8b-8192-tool-use-preview", - Llama3Groq70B8192ToolUsePreview: "llama3-groq-70b-8192-tool-use-preview", - Gemma7BIt: "gemma-7b-it", Gemma29BIt: "gemma2-9b-it", } as const; diff --git a/src/api/types/HipaaBuyDto.ts b/src/api/types/HipaaBuyDto.ts deleted file mode 100644 index aa0d21f..0000000 --- a/src/api/types/HipaaBuyDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface HipaaBuyDto { - /** This is the name of the recipient. */ - recipientName: string; - /** This is the name of the recipient organization. */ - recipientOrganization: string; -} diff --git a/src/api/types/ImportTwilioPhoneNumberDto.ts b/src/api/types/ImportTwilioPhoneNumberDto.ts index 726a01a..0068a55 100644 --- a/src/api/types/ImportTwilioPhoneNumberDto.ts +++ b/src/api/types/ImportTwilioPhoneNumberDto.ts @@ -35,17 +35,13 @@ export interface ImportTwilioPhoneNumberDto { */ squadId?: string; /** - * This is the server URL where messages will be sent for calls on this number. This includes the `assistant-request` message. + * This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema. * - * You can see the shape of the messages sent in `ServerMessage`. + * The order of precedence is: * - * This overrides the `org.serverUrl`. Order of precedence: tool.server.url > assistant.serverUrl > phoneNumber.serverUrl > org.serverUrl. + * 1. assistant.server + * 2. phoneNumber.server + * 3. org.server */ - serverUrl?: string; - /** - * This is the secret Vapi will send with every message to your server. It's sent as a header called x-vapi-secret. - * - * Same precedence logic as serverUrl. - */ - serverUrlSecret?: string; + server?: Vapi.Server; } diff --git a/src/api/types/ImportVonagePhoneNumberDto.ts b/src/api/types/ImportVonagePhoneNumberDto.ts index 58c5a4a..f8e3d77 100644 --- a/src/api/types/ImportVonagePhoneNumberDto.ts +++ b/src/api/types/ImportVonagePhoneNumberDto.ts @@ -37,17 +37,13 @@ export interface ImportVonagePhoneNumberDto { */ squadId?: string; /** - * This is the server URL where messages will be sent for calls on this number. This includes the `assistant-request` message. + * This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema. * - * You can see the shape of the messages sent in `ServerMessage`. + * The order of precedence is: * - * This overrides the `org.serverUrl`. Order of precedence: tool.server.url > assistant.serverUrl > phoneNumber.serverUrl > org.serverUrl. + * 1. assistant.server + * 2. phoneNumber.server + * 3. org.server */ - serverUrl?: string; - /** - * This is the secret Vapi will send with every message to your server. It's sent as a header called x-vapi-secret. - * - * Same precedence logic as serverUrl. - */ - serverUrlSecret?: string; + server?: Vapi.Server; } diff --git a/src/api/types/OpenAiModelFallbackModelsItem.ts b/src/api/types/OpenAiModelFallbackModelsItem.ts index f9d38bf..5951091 100644 --- a/src/api/types/OpenAiModelFallbackModelsItem.ts +++ b/src/api/types/OpenAiModelFallbackModelsItem.ts @@ -3,7 +3,13 @@ */ export type OpenAiModelFallbackModelsItem = + | "o1-preview" + | "o1-preview-2024-09-12" + | "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-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4o" @@ -24,7 +30,13 @@ export type OpenAiModelFallbackModelsItem = | "gpt-3.5-turbo-0613"; export const OpenAiModelFallbackModelsItem = { + O1Preview: "o1-preview", + O1Preview20240912: "o1-preview-2024-09-12", + 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", Gpt4OMini: "gpt-4o-mini", Gpt4OMini20240718: "gpt-4o-mini-2024-07-18", Gpt4O: "gpt-4o", diff --git a/src/api/types/OpenAiModelModel.ts b/src/api/types/OpenAiModelModel.ts index 69c7eac..d5f3673 100644 --- a/src/api/types/OpenAiModelModel.ts +++ b/src/api/types/OpenAiModelModel.ts @@ -6,7 +6,13 @@ * This is the OpenAI model that will be used. */ export type OpenAiModelModel = + | "o1-preview" + | "o1-preview-2024-09-12" + | "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-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4o" @@ -27,7 +33,13 @@ export type OpenAiModelModel = | "gpt-3.5-turbo-0613"; export const OpenAiModelModel = { + O1Preview: "o1-preview", + O1Preview20240912: "o1-preview-2024-09-12", + 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", Gpt4OMini: "gpt-4o-mini", Gpt4OMini20240718: "gpt-4o-mini-2024-07-18", Gpt4O: "gpt-4o", diff --git a/src/api/types/OpenAiVoice.ts b/src/api/types/OpenAiVoice.ts index 813a98f..45f9e5b 100644 --- a/src/api/types/OpenAiVoice.ts +++ b/src/api/types/OpenAiVoice.ts @@ -9,7 +9,7 @@ export interface OpenAiVoice { provider: "openai"; /** * This is the provider-specific ID that will be used. - * Please note that ash, ballad, coral, sage, and verse may only be used with the `gpt-4o-realtime-preview-2024-10-01` model. + * Please note that ash, ballad, coral, sage, and verse may only be used with realtime models. */ voiceId: Vapi.OpenAiVoiceId; /** This is the speed multiplier that will be used. */ diff --git a/src/api/types/OpenAiVoiceId.ts b/src/api/types/OpenAiVoiceId.ts index f392754..8a6fe85 100644 --- a/src/api/types/OpenAiVoiceId.ts +++ b/src/api/types/OpenAiVoiceId.ts @@ -4,7 +4,7 @@ /** * This is the provider-specific ID that will be used. - * Please note that ash, ballad, coral, sage, and verse may only be used with the `gpt-4o-realtime-preview-2024-10-01` model. + * Please note that ash, ballad, coral, sage, and verse may only be used with realtime models. */ export type OpenAiVoiceId = | "alloy" diff --git a/src/api/types/Org.ts b/src/api/types/Org.ts index 6accbf4..5c0ec18 100644 --- a/src/api/types/Org.ts +++ b/src/api/types/Org.ts @@ -39,13 +39,15 @@ export interface Org { /** This is the monthly billing limit for the org. To go beyond $1000/mo, please contact us at support@vapi.ai. */ billingLimit?: number; /** - * This is the URL Vapi will communicate with via HTTP GET and POST Requests. This is used for retrieving context, function calling, and end-of-call reports. + * This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema. * - * All requests will be sent with the call object among other things relevant to that message. You can find more details in the Server URL documentation. + * The order of precedence is: + * + * 1. assistant.server + * 2. phoneNumber.server + * 3. org.server */ - serverUrl?: string; - /** This is the secret you can set that Vapi will send with every request to your server. Will be sent as a header called x-vapi-secret. */ - serverUrlSecret?: string; + server?: Vapi.Server; /** This is the concurrency limit for the org. This is the maximum number of calls that can be active at any given time. To go beyond 10, please contact us at support@vapi.ai. */ concurrencyLimit?: number; } diff --git a/src/api/types/OrgWithOrgUser.ts b/src/api/types/OrgWithOrgUser.ts index 2760468..64fba64 100644 --- a/src/api/types/OrgWithOrgUser.ts +++ b/src/api/types/OrgWithOrgUser.ts @@ -39,13 +39,15 @@ export interface OrgWithOrgUser { /** This is the monthly billing limit for the org. To go beyond $1000/mo, please contact us at support@vapi.ai. */ billingLimit?: number; /** - * This is the URL Vapi will communicate with via HTTP GET and POST Requests. This is used for retrieving context, function calling, and end-of-call reports. + * This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema. * - * All requests will be sent with the call object among other things relevant to that message. You can find more details in the Server URL documentation. + * The order of precedence is: + * + * 1. assistant.server + * 2. phoneNumber.server + * 3. org.server */ - serverUrl?: string; - /** This is the secret you can set that Vapi will send with every request to your server. Will be sent as a header called x-vapi-secret. */ - serverUrlSecret?: string; + server?: Vapi.Server; /** This is the concurrency limit for the org. This is the maximum number of calls that can be active at any given time. To go beyond 10, please contact us at support@vapi.ai. */ concurrencyLimit?: number; invitedByUserId?: string; diff --git a/src/api/types/Payment.ts b/src/api/types/Payment.ts deleted file mode 100644 index 4baee32..0000000 --- a/src/api/types/Payment.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Vapi from "../index"; - -export interface Payment { - /** This is the id of the payment */ - id: string; - /** This is the id of the org */ - orgId?: string; - /** - * This is the total cost of the payment, which is the sum of all the costs in the costs object. - * - * Note: this is a string to avoid floating point precision issues. - */ - cost: string; - /** This is the itemized breakdown of payment amounts */ - costs: Record[]; - /** This is the status of the payment */ - status: Vapi.PaymentStatus; - /** This is the timestamp when the payment was created */ - createdAt: string; - /** This is the timestamp when the payment was last updated */ - updatedAt: string; - /** This indicates if this payment was automatically generated by the auto-reload feature */ - isAutoReload: boolean; - /** This is the id of the subscription the payment belongs to */ - subscriptionId: string; - /** This is the id of the call */ - callId?: string; - /** This is the id of the purchased phone number */ - phoneNumberId?: string; - /** This is the id of the associated stripe payment intent */ - stripePaymentIntentId?: string; - /** This is the id of the associated stripe invoice */ - stripeInvoiceId?: string; -} diff --git a/src/api/types/PaymentRetryDto.ts b/src/api/types/PaymentRetryDto.ts deleted file mode 100644 index 4694b4b..0000000 --- a/src/api/types/PaymentRetryDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface PaymentRetryDto { - /** This is the payment ID to retry. */ - paymentId: string; -} diff --git a/src/api/types/PaymentStatus.ts b/src/api/types/PaymentStatus.ts deleted file mode 100644 index 8f2a5f8..0000000 --- a/src/api/types/PaymentStatus.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * This is the status of the payment - */ -export type PaymentStatus = "past-due" | "pending" | "finalized" | "refunded"; - -export const PaymentStatus = { - PastDue: "past-due", - Pending: "pending", - Finalized: "finalized", - Refunded: "refunded", -} as const; diff --git a/src/api/types/ServerMessageEndOfCallReportEndedReason.ts b/src/api/types/ServerMessageEndOfCallReportEndedReason.ts index 18c13d4..c5cf326 100644 --- a/src/api/types/ServerMessageEndOfCallReportEndedReason.ts +++ b/src/api/types/ServerMessageEndOfCallReportEndedReason.ts @@ -6,6 +6,30 @@ * This is the reason the call ended. This can also be found at `call.endedReason` on GET /call/:id. */ export type ServerMessageEndOfCallReportEndedReason = + | "assistant-not-invalid" + | "assistant-not-provided" + | "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" + | "assistant-ended-call" + | "assistant-said-end-call-phrase" + | "assistant-forwarded-call" + | "assistant-join-timed-out" + | "customer-busy" + | "customer-ended-call" + | "customer-did-not-answer" + | "customer-did-not-give-microphone-permission" + | "assistant-said-message-with-end-call-enabled" + | "exceeded-max-duration" + | "manually-canceled" + | "phone-call-provider-closed-websocket" + | "db-error" + | "assistant-not-found" + | "license-check-failed" | "pipeline-error-openai-voice-failed" | "pipeline-error-cartesia-voice-failed" | "pipeline-error-deepgram-voice-failed" @@ -15,9 +39,12 @@ export type ServerMessageEndOfCallReportEndedReason = | "pipeline-error-azure-voice-failed" | "pipeline-error-rime-ai-voice-failed" | "pipeline-error-neets-voice-failed" - | "db-error" - | "assistant-not-found" - | "license-check-failed" + | "pipeline-error-smallest-ai-voice-failed" + | "pipeline-error-deepgram-transcriber-failed" + | "pipeline-error-gladia-transcriber-failed" + | "pipeline-error-assembly-ai-transcriber-failed" + | "pipeline-error-talkscriber-transcriber-failed" + | "pipeline-error-azure-speech-transcriber-failed" | "pipeline-error-vapi-llm-failed" | "pipeline-error-vapi-400-bad-request-validation-failed" | "pipeline-error-vapi-401-unauthorized" @@ -37,36 +64,14 @@ export type ServerMessageEndOfCallReportEndedReason = | "vapifault-web-call-worker-setup-failed" | "vapifault-transport-connected-but-call-not-active" | "vapifault-call-started-but-connection-to-transport-missing" - | "pipeline-error-deepgram-transcriber-failed" - | "pipeline-error-gladia-transcriber-failed" - | "pipeline-error-assembly-ai-transcriber-failed" | "pipeline-error-openai-llm-failed" | "pipeline-error-azure-openai-llm-failed" | "pipeline-error-groq-llm-failed" | "pipeline-error-google-llm-failed" | "pipeline-error-xai-llm-failed" | "pipeline-error-inflection-ai-llm-failed" - | "assistant-not-invalid" - | "assistant-not-provided" - | "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" - | "assistant-ended-call" - | "assistant-said-end-call-phrase" - | "assistant-forwarded-call" - | "assistant-join-timed-out" - | "customer-busy" - | "customer-ended-call" - | "customer-did-not-answer" - | "customer-did-not-give-microphone-permission" - | "assistant-said-message-with-end-call-enabled" - | "exceeded-max-duration" - | "manually-canceled" - | "phone-call-provider-closed-websocket" + | "pipeline-error-cerebras-llm-failed" + | "pipeline-error-deep-seek-llm-failed" | "pipeline-error-openai-400-bad-request-validation-failed" | "pipeline-error-openai-401-unauthorized" | "pipeline-error-openai-403-model-access-denied" @@ -87,6 +92,11 @@ export type ServerMessageEndOfCallReportEndedReason = | "pipeline-error-inflection-ai-403-model-access-denied" | "pipeline-error-inflection-ai-429-exceeded-quota" | "pipeline-error-inflection-ai-500-server-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-azure-openai-400-bad-request-validation-failed" | "pipeline-error-azure-openai-401-unauthorized" | "pipeline-error-azure-openai-403-model-access-denied" @@ -97,6 +107,11 @@ export type ServerMessageEndOfCallReportEndedReason = | "pipeline-error-groq-403-model-access-denied" | "pipeline-error-groq-429-exceeded-quota" | "pipeline-error-groq-500-server-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-anthropic-400-bad-request-validation-failed" | "pipeline-error-anthropic-401-unauthorized" | "pipeline-error-anthropic-403-model-access-denied" @@ -184,6 +199,8 @@ export type ServerMessageEndOfCallReportEndedReason = | "pipeline-error-playht-429-exceeded-quota" | "pipeline-error-playht-502-gateway-error" | "pipeline-error-playht-504-gateway-error" + | "pipeline-error-tavus-video-failed" + | "pipeline-error-custom-transcriber-failed" | "pipeline-error-deepgram-returning-403-model-access-denied" | "pipeline-error-deepgram-returning-401-invalid-credentials" | "pipeline-error-deepgram-returning-404-not-found" @@ -191,8 +208,6 @@ export type ServerMessageEndOfCallReportEndedReason = | "pipeline-error-deepgram-returning-500-invalid-json" | "pipeline-error-deepgram-returning-502-network-error" | "pipeline-error-deepgram-returning-502-bad-gateway-ehostunreach" - | "pipeline-error-tavus-video-failed" - | "pipeline-error-custom-transcriber-failed" | "silence-timed-out" | "sip-gateway-failed-to-connect-call" | "twilio-failed-to-connect-call" @@ -201,6 +216,30 @@ export type ServerMessageEndOfCallReportEndedReason = | "voicemail"; export const ServerMessageEndOfCallReportEndedReason = { + AssistantNotInvalid: "assistant-not-invalid", + AssistantNotProvided: "assistant-not-provided", + 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", + AssistantEndedCall: "assistant-ended-call", + AssistantSaidEndCallPhrase: "assistant-said-end-call-phrase", + AssistantForwardedCall: "assistant-forwarded-call", + AssistantJoinTimedOut: "assistant-join-timed-out", + CustomerBusy: "customer-busy", + CustomerEndedCall: "customer-ended-call", + CustomerDidNotAnswer: "customer-did-not-answer", + CustomerDidNotGiveMicrophonePermission: "customer-did-not-give-microphone-permission", + AssistantSaidMessageWithEndCallEnabled: "assistant-said-message-with-end-call-enabled", + ExceededMaxDuration: "exceeded-max-duration", + ManuallyCanceled: "manually-canceled", + PhoneCallProviderClosedWebsocket: "phone-call-provider-closed-websocket", + DbError: "db-error", + AssistantNotFound: "assistant-not-found", + LicenseCheckFailed: "license-check-failed", PipelineErrorOpenaiVoiceFailed: "pipeline-error-openai-voice-failed", PipelineErrorCartesiaVoiceFailed: "pipeline-error-cartesia-voice-failed", PipelineErrorDeepgramVoiceFailed: "pipeline-error-deepgram-voice-failed", @@ -210,9 +249,12 @@ export const ServerMessageEndOfCallReportEndedReason = { PipelineErrorAzureVoiceFailed: "pipeline-error-azure-voice-failed", PipelineErrorRimeAiVoiceFailed: "pipeline-error-rime-ai-voice-failed", PipelineErrorNeetsVoiceFailed: "pipeline-error-neets-voice-failed", - DbError: "db-error", - AssistantNotFound: "assistant-not-found", - LicenseCheckFailed: "license-check-failed", + PipelineErrorSmallestAiVoiceFailed: "pipeline-error-smallest-ai-voice-failed", + PipelineErrorDeepgramTranscriberFailed: "pipeline-error-deepgram-transcriber-failed", + PipelineErrorGladiaTranscriberFailed: "pipeline-error-gladia-transcriber-failed", + PipelineErrorAssemblyAiTranscriberFailed: "pipeline-error-assembly-ai-transcriber-failed", + PipelineErrorTalkscriberTranscriberFailed: "pipeline-error-talkscriber-transcriber-failed", + PipelineErrorAzureSpeechTranscriberFailed: "pipeline-error-azure-speech-transcriber-failed", PipelineErrorVapiLlmFailed: "pipeline-error-vapi-llm-failed", PipelineErrorVapi400BadRequestValidationFailed: "pipeline-error-vapi-400-bad-request-validation-failed", PipelineErrorVapi401Unauthorized: "pipeline-error-vapi-401-unauthorized", @@ -232,36 +274,14 @@ export const ServerMessageEndOfCallReportEndedReason = { VapifaultWebCallWorkerSetupFailed: "vapifault-web-call-worker-setup-failed", VapifaultTransportConnectedButCallNotActive: "vapifault-transport-connected-but-call-not-active", VapifaultCallStartedButConnectionToTransportMissing: "vapifault-call-started-but-connection-to-transport-missing", - PipelineErrorDeepgramTranscriberFailed: "pipeline-error-deepgram-transcriber-failed", - PipelineErrorGladiaTranscriberFailed: "pipeline-error-gladia-transcriber-failed", - PipelineErrorAssemblyAiTranscriberFailed: "pipeline-error-assembly-ai-transcriber-failed", PipelineErrorOpenaiLlmFailed: "pipeline-error-openai-llm-failed", PipelineErrorAzureOpenaiLlmFailed: "pipeline-error-azure-openai-llm-failed", PipelineErrorGroqLlmFailed: "pipeline-error-groq-llm-failed", PipelineErrorGoogleLlmFailed: "pipeline-error-google-llm-failed", PipelineErrorXaiLlmFailed: "pipeline-error-xai-llm-failed", PipelineErrorInflectionAiLlmFailed: "pipeline-error-inflection-ai-llm-failed", - AssistantNotInvalid: "assistant-not-invalid", - AssistantNotProvided: "assistant-not-provided", - 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", - AssistantEndedCall: "assistant-ended-call", - AssistantSaidEndCallPhrase: "assistant-said-end-call-phrase", - AssistantForwardedCall: "assistant-forwarded-call", - AssistantJoinTimedOut: "assistant-join-timed-out", - CustomerBusy: "customer-busy", - CustomerEndedCall: "customer-ended-call", - CustomerDidNotAnswer: "customer-did-not-answer", - CustomerDidNotGiveMicrophonePermission: "customer-did-not-give-microphone-permission", - AssistantSaidMessageWithEndCallEnabled: "assistant-said-message-with-end-call-enabled", - ExceededMaxDuration: "exceeded-max-duration", - ManuallyCanceled: "manually-canceled", - PhoneCallProviderClosedWebsocket: "phone-call-provider-closed-websocket", + PipelineErrorCerebrasLlmFailed: "pipeline-error-cerebras-llm-failed", + PipelineErrorDeepSeekLlmFailed: "pipeline-error-deep-seek-llm-failed", PipelineErrorOpenai400BadRequestValidationFailed: "pipeline-error-openai-400-bad-request-validation-failed", PipelineErrorOpenai401Unauthorized: "pipeline-error-openai-401-unauthorized", PipelineErrorOpenai403ModelAccessDenied: "pipeline-error-openai-403-model-access-denied", @@ -283,6 +303,11 @@ export const ServerMessageEndOfCallReportEndedReason = { 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", + 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", PipelineErrorAzureOpenai400BadRequestValidationFailed: "pipeline-error-azure-openai-400-bad-request-validation-failed", PipelineErrorAzureOpenai401Unauthorized: "pipeline-error-azure-openai-401-unauthorized", @@ -294,6 +319,11 @@ export const ServerMessageEndOfCallReportEndedReason = { PipelineErrorGroq403ModelAccessDenied: "pipeline-error-groq-403-model-access-denied", PipelineErrorGroq429ExceededQuota: "pipeline-error-groq-429-exceeded-quota", PipelineErrorGroq500ServerError: "pipeline-error-groq-500-server-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", PipelineErrorAnthropic400BadRequestValidationFailed: "pipeline-error-anthropic-400-bad-request-validation-failed", PipelineErrorAnthropic401Unauthorized: "pipeline-error-anthropic-401-unauthorized", PipelineErrorAnthropic403ModelAccessDenied: "pipeline-error-anthropic-403-model-access-denied", @@ -393,6 +423,8 @@ export const ServerMessageEndOfCallReportEndedReason = { PipelineErrorPlayht429ExceededQuota: "pipeline-error-playht-429-exceeded-quota", PipelineErrorPlayht502GatewayError: "pipeline-error-playht-502-gateway-error", PipelineErrorPlayht504GatewayError: "pipeline-error-playht-504-gateway-error", + PipelineErrorTavusVideoFailed: "pipeline-error-tavus-video-failed", + PipelineErrorCustomTranscriberFailed: "pipeline-error-custom-transcriber-failed", PipelineErrorDeepgramReturning403ModelAccessDenied: "pipeline-error-deepgram-returning-403-model-access-denied", PipelineErrorDeepgramReturning401InvalidCredentials: "pipeline-error-deepgram-returning-401-invalid-credentials", PipelineErrorDeepgramReturning404NotFound: "pipeline-error-deepgram-returning-404-not-found", @@ -402,8 +434,6 @@ export const ServerMessageEndOfCallReportEndedReason = { PipelineErrorDeepgramReturning502NetworkError: "pipeline-error-deepgram-returning-502-network-error", PipelineErrorDeepgramReturning502BadGatewayEhostunreach: "pipeline-error-deepgram-returning-502-bad-gateway-ehostunreach", - PipelineErrorTavusVideoFailed: "pipeline-error-tavus-video-failed", - PipelineErrorCustomTranscriberFailed: "pipeline-error-custom-transcriber-failed", SilenceTimedOut: "silence-timed-out", SipGatewayFailedToConnectCall: "sip-gateway-failed-to-connect-call", TwilioFailedToConnectCall: "twilio-failed-to-connect-call", diff --git a/src/api/types/ServerMessageStatusUpdate.ts b/src/api/types/ServerMessageStatusUpdate.ts index a6a8aa7..4f19745 100644 --- a/src/api/types/ServerMessageStatusUpdate.ts +++ b/src/api/types/ServerMessageStatusUpdate.ts @@ -63,6 +63,8 @@ export interface ServerMessageStatusUpdate { call?: Vapi.Call; /** This is the transcript of the call. This is only sent if the status is "forwarding". */ transcript?: string; + /** This is the summary of the call. This is only sent if the status is "forwarding". */ + summary?: string; /** * This is the inbound phone call debugging artifacts. This is only sent if the status is "ended" and there was an error accepting the inbound phone call. * diff --git a/src/api/types/ServerMessageStatusUpdateEndedReason.ts b/src/api/types/ServerMessageStatusUpdateEndedReason.ts index d206ffa..c03fc34 100644 --- a/src/api/types/ServerMessageStatusUpdateEndedReason.ts +++ b/src/api/types/ServerMessageStatusUpdateEndedReason.ts @@ -6,6 +6,30 @@ * This is the reason the call ended. This is only sent if the status is "ended". */ export type ServerMessageStatusUpdateEndedReason = + | "assistant-not-invalid" + | "assistant-not-provided" + | "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" + | "assistant-ended-call" + | "assistant-said-end-call-phrase" + | "assistant-forwarded-call" + | "assistant-join-timed-out" + | "customer-busy" + | "customer-ended-call" + | "customer-did-not-answer" + | "customer-did-not-give-microphone-permission" + | "assistant-said-message-with-end-call-enabled" + | "exceeded-max-duration" + | "manually-canceled" + | "phone-call-provider-closed-websocket" + | "db-error" + | "assistant-not-found" + | "license-check-failed" | "pipeline-error-openai-voice-failed" | "pipeline-error-cartesia-voice-failed" | "pipeline-error-deepgram-voice-failed" @@ -15,9 +39,12 @@ export type ServerMessageStatusUpdateEndedReason = | "pipeline-error-azure-voice-failed" | "pipeline-error-rime-ai-voice-failed" | "pipeline-error-neets-voice-failed" - | "db-error" - | "assistant-not-found" - | "license-check-failed" + | "pipeline-error-smallest-ai-voice-failed" + | "pipeline-error-deepgram-transcriber-failed" + | "pipeline-error-gladia-transcriber-failed" + | "pipeline-error-assembly-ai-transcriber-failed" + | "pipeline-error-talkscriber-transcriber-failed" + | "pipeline-error-azure-speech-transcriber-failed" | "pipeline-error-vapi-llm-failed" | "pipeline-error-vapi-400-bad-request-validation-failed" | "pipeline-error-vapi-401-unauthorized" @@ -37,36 +64,14 @@ export type ServerMessageStatusUpdateEndedReason = | "vapifault-web-call-worker-setup-failed" | "vapifault-transport-connected-but-call-not-active" | "vapifault-call-started-but-connection-to-transport-missing" - | "pipeline-error-deepgram-transcriber-failed" - | "pipeline-error-gladia-transcriber-failed" - | "pipeline-error-assembly-ai-transcriber-failed" | "pipeline-error-openai-llm-failed" | "pipeline-error-azure-openai-llm-failed" | "pipeline-error-groq-llm-failed" | "pipeline-error-google-llm-failed" | "pipeline-error-xai-llm-failed" | "pipeline-error-inflection-ai-llm-failed" - | "assistant-not-invalid" - | "assistant-not-provided" - | "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" - | "assistant-ended-call" - | "assistant-said-end-call-phrase" - | "assistant-forwarded-call" - | "assistant-join-timed-out" - | "customer-busy" - | "customer-ended-call" - | "customer-did-not-answer" - | "customer-did-not-give-microphone-permission" - | "assistant-said-message-with-end-call-enabled" - | "exceeded-max-duration" - | "manually-canceled" - | "phone-call-provider-closed-websocket" + | "pipeline-error-cerebras-llm-failed" + | "pipeline-error-deep-seek-llm-failed" | "pipeline-error-openai-400-bad-request-validation-failed" | "pipeline-error-openai-401-unauthorized" | "pipeline-error-openai-403-model-access-denied" @@ -87,6 +92,11 @@ export type ServerMessageStatusUpdateEndedReason = | "pipeline-error-inflection-ai-403-model-access-denied" | "pipeline-error-inflection-ai-429-exceeded-quota" | "pipeline-error-inflection-ai-500-server-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-azure-openai-400-bad-request-validation-failed" | "pipeline-error-azure-openai-401-unauthorized" | "pipeline-error-azure-openai-403-model-access-denied" @@ -97,6 +107,11 @@ export type ServerMessageStatusUpdateEndedReason = | "pipeline-error-groq-403-model-access-denied" | "pipeline-error-groq-429-exceeded-quota" | "pipeline-error-groq-500-server-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-anthropic-400-bad-request-validation-failed" | "pipeline-error-anthropic-401-unauthorized" | "pipeline-error-anthropic-403-model-access-denied" @@ -184,6 +199,8 @@ export type ServerMessageStatusUpdateEndedReason = | "pipeline-error-playht-429-exceeded-quota" | "pipeline-error-playht-502-gateway-error" | "pipeline-error-playht-504-gateway-error" + | "pipeline-error-tavus-video-failed" + | "pipeline-error-custom-transcriber-failed" | "pipeline-error-deepgram-returning-403-model-access-denied" | "pipeline-error-deepgram-returning-401-invalid-credentials" | "pipeline-error-deepgram-returning-404-not-found" @@ -191,8 +208,6 @@ export type ServerMessageStatusUpdateEndedReason = | "pipeline-error-deepgram-returning-500-invalid-json" | "pipeline-error-deepgram-returning-502-network-error" | "pipeline-error-deepgram-returning-502-bad-gateway-ehostunreach" - | "pipeline-error-tavus-video-failed" - | "pipeline-error-custom-transcriber-failed" | "silence-timed-out" | "sip-gateway-failed-to-connect-call" | "twilio-failed-to-connect-call" @@ -201,6 +216,30 @@ export type ServerMessageStatusUpdateEndedReason = | "voicemail"; export const ServerMessageStatusUpdateEndedReason = { + AssistantNotInvalid: "assistant-not-invalid", + AssistantNotProvided: "assistant-not-provided", + 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", + AssistantEndedCall: "assistant-ended-call", + AssistantSaidEndCallPhrase: "assistant-said-end-call-phrase", + AssistantForwardedCall: "assistant-forwarded-call", + AssistantJoinTimedOut: "assistant-join-timed-out", + CustomerBusy: "customer-busy", + CustomerEndedCall: "customer-ended-call", + CustomerDidNotAnswer: "customer-did-not-answer", + CustomerDidNotGiveMicrophonePermission: "customer-did-not-give-microphone-permission", + AssistantSaidMessageWithEndCallEnabled: "assistant-said-message-with-end-call-enabled", + ExceededMaxDuration: "exceeded-max-duration", + ManuallyCanceled: "manually-canceled", + PhoneCallProviderClosedWebsocket: "phone-call-provider-closed-websocket", + DbError: "db-error", + AssistantNotFound: "assistant-not-found", + LicenseCheckFailed: "license-check-failed", PipelineErrorOpenaiVoiceFailed: "pipeline-error-openai-voice-failed", PipelineErrorCartesiaVoiceFailed: "pipeline-error-cartesia-voice-failed", PipelineErrorDeepgramVoiceFailed: "pipeline-error-deepgram-voice-failed", @@ -210,9 +249,12 @@ export const ServerMessageStatusUpdateEndedReason = { PipelineErrorAzureVoiceFailed: "pipeline-error-azure-voice-failed", PipelineErrorRimeAiVoiceFailed: "pipeline-error-rime-ai-voice-failed", PipelineErrorNeetsVoiceFailed: "pipeline-error-neets-voice-failed", - DbError: "db-error", - AssistantNotFound: "assistant-not-found", - LicenseCheckFailed: "license-check-failed", + PipelineErrorSmallestAiVoiceFailed: "pipeline-error-smallest-ai-voice-failed", + PipelineErrorDeepgramTranscriberFailed: "pipeline-error-deepgram-transcriber-failed", + PipelineErrorGladiaTranscriberFailed: "pipeline-error-gladia-transcriber-failed", + PipelineErrorAssemblyAiTranscriberFailed: "pipeline-error-assembly-ai-transcriber-failed", + PipelineErrorTalkscriberTranscriberFailed: "pipeline-error-talkscriber-transcriber-failed", + PipelineErrorAzureSpeechTranscriberFailed: "pipeline-error-azure-speech-transcriber-failed", PipelineErrorVapiLlmFailed: "pipeline-error-vapi-llm-failed", PipelineErrorVapi400BadRequestValidationFailed: "pipeline-error-vapi-400-bad-request-validation-failed", PipelineErrorVapi401Unauthorized: "pipeline-error-vapi-401-unauthorized", @@ -232,36 +274,14 @@ export const ServerMessageStatusUpdateEndedReason = { VapifaultWebCallWorkerSetupFailed: "vapifault-web-call-worker-setup-failed", VapifaultTransportConnectedButCallNotActive: "vapifault-transport-connected-but-call-not-active", VapifaultCallStartedButConnectionToTransportMissing: "vapifault-call-started-but-connection-to-transport-missing", - PipelineErrorDeepgramTranscriberFailed: "pipeline-error-deepgram-transcriber-failed", - PipelineErrorGladiaTranscriberFailed: "pipeline-error-gladia-transcriber-failed", - PipelineErrorAssemblyAiTranscriberFailed: "pipeline-error-assembly-ai-transcriber-failed", PipelineErrorOpenaiLlmFailed: "pipeline-error-openai-llm-failed", PipelineErrorAzureOpenaiLlmFailed: "pipeline-error-azure-openai-llm-failed", PipelineErrorGroqLlmFailed: "pipeline-error-groq-llm-failed", PipelineErrorGoogleLlmFailed: "pipeline-error-google-llm-failed", PipelineErrorXaiLlmFailed: "pipeline-error-xai-llm-failed", PipelineErrorInflectionAiLlmFailed: "pipeline-error-inflection-ai-llm-failed", - AssistantNotInvalid: "assistant-not-invalid", - AssistantNotProvided: "assistant-not-provided", - 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", - AssistantEndedCall: "assistant-ended-call", - AssistantSaidEndCallPhrase: "assistant-said-end-call-phrase", - AssistantForwardedCall: "assistant-forwarded-call", - AssistantJoinTimedOut: "assistant-join-timed-out", - CustomerBusy: "customer-busy", - CustomerEndedCall: "customer-ended-call", - CustomerDidNotAnswer: "customer-did-not-answer", - CustomerDidNotGiveMicrophonePermission: "customer-did-not-give-microphone-permission", - AssistantSaidMessageWithEndCallEnabled: "assistant-said-message-with-end-call-enabled", - ExceededMaxDuration: "exceeded-max-duration", - ManuallyCanceled: "manually-canceled", - PhoneCallProviderClosedWebsocket: "phone-call-provider-closed-websocket", + PipelineErrorCerebrasLlmFailed: "pipeline-error-cerebras-llm-failed", + PipelineErrorDeepSeekLlmFailed: "pipeline-error-deep-seek-llm-failed", PipelineErrorOpenai400BadRequestValidationFailed: "pipeline-error-openai-400-bad-request-validation-failed", PipelineErrorOpenai401Unauthorized: "pipeline-error-openai-401-unauthorized", PipelineErrorOpenai403ModelAccessDenied: "pipeline-error-openai-403-model-access-denied", @@ -283,6 +303,11 @@ export const ServerMessageStatusUpdateEndedReason = { 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", + 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", PipelineErrorAzureOpenai400BadRequestValidationFailed: "pipeline-error-azure-openai-400-bad-request-validation-failed", PipelineErrorAzureOpenai401Unauthorized: "pipeline-error-azure-openai-401-unauthorized", @@ -294,6 +319,11 @@ export const ServerMessageStatusUpdateEndedReason = { PipelineErrorGroq403ModelAccessDenied: "pipeline-error-groq-403-model-access-denied", PipelineErrorGroq429ExceededQuota: "pipeline-error-groq-429-exceeded-quota", PipelineErrorGroq500ServerError: "pipeline-error-groq-500-server-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", PipelineErrorAnthropic400BadRequestValidationFailed: "pipeline-error-anthropic-400-bad-request-validation-failed", PipelineErrorAnthropic401Unauthorized: "pipeline-error-anthropic-401-unauthorized", PipelineErrorAnthropic403ModelAccessDenied: "pipeline-error-anthropic-403-model-access-denied", @@ -393,6 +423,8 @@ export const ServerMessageStatusUpdateEndedReason = { PipelineErrorPlayht429ExceededQuota: "pipeline-error-playht-429-exceeded-quota", PipelineErrorPlayht502GatewayError: "pipeline-error-playht-502-gateway-error", PipelineErrorPlayht504GatewayError: "pipeline-error-playht-504-gateway-error", + PipelineErrorTavusVideoFailed: "pipeline-error-tavus-video-failed", + PipelineErrorCustomTranscriberFailed: "pipeline-error-custom-transcriber-failed", PipelineErrorDeepgramReturning403ModelAccessDenied: "pipeline-error-deepgram-returning-403-model-access-denied", PipelineErrorDeepgramReturning401InvalidCredentials: "pipeline-error-deepgram-returning-401-invalid-credentials", PipelineErrorDeepgramReturning404NotFound: "pipeline-error-deepgram-returning-404-not-found", @@ -402,8 +434,6 @@ export const ServerMessageStatusUpdateEndedReason = { PipelineErrorDeepgramReturning502NetworkError: "pipeline-error-deepgram-returning-502-network-error", PipelineErrorDeepgramReturning502BadGatewayEhostunreach: "pipeline-error-deepgram-returning-502-bad-gateway-ehostunreach", - PipelineErrorTavusVideoFailed: "pipeline-error-tavus-video-failed", - PipelineErrorCustomTranscriberFailed: "pipeline-error-custom-transcriber-failed", SilenceTimedOut: "silence-timed-out", SipGatewayFailedToConnectCall: "sip-gateway-failed-to-connect-call", TwilioFailedToConnectCall: "twilio-failed-to-connect-call", diff --git a/src/api/types/SmallestAiCredential.ts b/src/api/types/SmallestAiCredential.ts new file mode 100644 index 0000000..e345cb8 --- /dev/null +++ b/src/api/types/SmallestAiCredential.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface SmallestAiCredential { + provider: "smallest-ai"; + /** This is not returned in the API. */ + apiKey: string; + /** This is the unique identifier for the credential. */ + id: string; + /** This is the unique identifier for the org that this credential belongs to. */ + orgId: string; + /** This is the ISO 8601 date-time string of when the credential was created. */ + createdAt: string; + /** This is the ISO 8601 date-time string of when the assistant was last updated. */ + updatedAt: string; + /** This is the name of credential. This is just for your reference. */ + name?: string; +} diff --git a/src/api/types/SmallestAiVoice.ts b/src/api/types/SmallestAiVoice.ts new file mode 100644 index 0000000..116ea86 --- /dev/null +++ b/src/api/types/SmallestAiVoice.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +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: 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. */ + speed?: number; + /** 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; +} diff --git a/src/api/types/SmallestAiVoiceId.ts b/src/api/types/SmallestAiVoiceId.ts new file mode 100644 index 0000000..4adcaaf --- /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"; + +/** + * 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 0000000..f1e8912 --- /dev/null +++ b/src/api/types/SmallestAiVoiceIdEnum.ts @@ -0,0 +1,58 @@ +/** + * 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/Subscription.ts b/src/api/types/Subscription.ts index 2b03be8..ffd6dba 100644 --- a/src/api/types/Subscription.ts +++ b/src/api/types/Subscription.ts @@ -57,7 +57,7 @@ export interface Subscription { * to detect users who try to abuse our system through multiple sign-ups. */ stripePaymentMethodFingerprint?: string; - /** This is the stripe customer's email. */ + /** This is the customer's email on Stripe. */ stripeCustomerEmail?: string; /** This is the email of the referrer for the subscription. */ referredByEmail?: string; diff --git a/src/api/types/SubscriptionConcurrencyLineBuyDto.ts b/src/api/types/SubscriptionConcurrencyLineBuyDto.ts deleted file mode 100644 index 6199cd4..0000000 --- a/src/api/types/SubscriptionConcurrencyLineBuyDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface SubscriptionConcurrencyLineBuyDto { - /** This is the number of concurrency lines to purchase. */ - quantity: number; -} diff --git a/src/api/types/SubscriptionConcurrencyLineRemoveDto.ts b/src/api/types/SubscriptionConcurrencyLineRemoveDto.ts deleted file mode 100644 index bffd8ae..0000000 --- a/src/api/types/SubscriptionConcurrencyLineRemoveDto.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface SubscriptionConcurrencyLineRemoveDto { - /** This is the number of concurrency lines to remove. */ - quantity: number; -} diff --git a/src/api/types/SubscriptionCouponAddDto.ts b/src/api/types/SubscriptionCouponAddDto.ts deleted file mode 100644 index c07e34f..0000000 --- a/src/api/types/SubscriptionCouponAddDto.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface SubscriptionCouponAddDto { - /** This is the ID of the org within the subscription which the coupon will take effect on. */ - orgId: string; - /** This is the code of the coupon to apply to the subscription. */ - couponCode: string; -} diff --git a/src/api/types/SubscriptionMonthlyCharge.ts b/src/api/types/SubscriptionMonthlyCharge.ts deleted file mode 100644 index cdf03c7..0000000 --- a/src/api/types/SubscriptionMonthlyCharge.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface SubscriptionMonthlyCharge { - /** This is the monthly charge for the subscription. */ - monthlyCharge: number; - /** These are the different costs that make up the monthly charge. */ - costs: Record[]; -} diff --git a/src/api/types/SyncVoiceLibraryDtoProvidersItem.ts b/src/api/types/SyncVoiceLibraryDtoProvidersItem.ts index 7b94633..101fb0d 100644 --- a/src/api/types/SyncVoiceLibraryDtoProvidersItem.ts +++ b/src/api/types/SyncVoiceLibraryDtoProvidersItem.ts @@ -13,6 +13,7 @@ export type SyncVoiceLibraryDtoProvidersItem = | "openai" | "playht" | "rime-ai" + | "smallest-ai" | "tavus"; export const SyncVoiceLibraryDtoProvidersItem = { @@ -26,5 +27,6 @@ export const SyncVoiceLibraryDtoProvidersItem = { Openai: "openai", Playht: "playht", RimeAi: "rime-ai", + SmallestAi: "smallest-ai", Tavus: "tavus", } as const; diff --git a/src/api/types/TransferPlan.ts b/src/api/types/TransferPlan.ts index 8ff9522..c9579eb 100644 --- a/src/api/types/TransferPlan.ts +++ b/src/api/types/TransferPlan.ts @@ -23,14 +23,20 @@ export interface TransferPlan { * This is the message the assistant will deliver to the destination party before connecting the customer. * * Usage: - * - Used only when `mode` is `warm-transfer-say-message` or `warm-transfer-wait-for-operator-to-speak-first-and-then-say-message`. + * - Used only when `mode` is `blind-transfer-add-summary-to-sip-header`, `warm-transfer-say-message` or `warm-transfer-wait-for-operator-to-speak-first-and-then-say-message`. */ message?: Vapi.TransferPlanMessage; + /** + * This specifies the SIP verb to use while transferring the call. + * - 'refer': Uses SIP REFER to transfer the call (default) + * - 'bye': Ends current call with SIP BYE + */ + sipVerb?: Record; /** * This is the plan for generating a summary of the call to present to the destination party. * * Usage: - * - Used only when `mode` is `warm-transfer-say-summary` or `warm-transfer-wait-for-operator-to-speak-first-and-then-say-summary`. + * - Used only when `mode` is `blind-transfer-add-summary-to-sip-header` or `warm-transfer-say-summary` or `warm-transfer-wait-for-operator-to-speak-first-and-then-say-summary`. */ summaryPlan?: Vapi.SummaryPlan; } diff --git a/src/api/types/TransferPlanMessage.ts b/src/api/types/TransferPlanMessage.ts index 3484273..0cda2c2 100644 --- a/src/api/types/TransferPlanMessage.ts +++ b/src/api/types/TransferPlanMessage.ts @@ -8,6 +8,6 @@ import * as Vapi from "../index"; * This is the message the assistant will deliver to the destination party before connecting the customer. * * Usage: - * - Used only when `mode` is `warm-transfer-say-message` or `warm-transfer-wait-for-operator-to-speak-first-and-then-say-message`. + * - Used only when `mode` is `blind-transfer-add-summary-to-sip-header`, `warm-transfer-say-message` or `warm-transfer-wait-for-operator-to-speak-first-and-then-say-message`. */ export type TransferPlanMessage = string | Vapi.CustomMessage; diff --git a/src/api/types/TwilioPhoneNumber.ts b/src/api/types/TwilioPhoneNumber.ts index 2f1f7f0..78d25ad 100644 --- a/src/api/types/TwilioPhoneNumber.ts +++ b/src/api/types/TwilioPhoneNumber.ts @@ -38,19 +38,15 @@ export interface TwilioPhoneNumber { */ squadId?: string; /** - * This is the server URL where messages will be sent for calls on this number. This includes the `assistant-request` message. + * This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema. * - * You can see the shape of the messages sent in `ServerMessage`. + * The order of precedence is: * - * This overrides the `org.serverUrl`. Order of precedence: tool.server.url > assistant.serverUrl > phoneNumber.serverUrl > org.serverUrl. + * 1. assistant.server + * 2. phoneNumber.server + * 3. org.server */ - serverUrl?: string; - /** - * This is the secret Vapi will send with every message to your server. It's sent as a header called x-vapi-secret. - * - * Same precedence logic as serverUrl. - */ - serverUrlSecret?: string; + server?: Vapi.Server; /** These are the digits of the phone number you own on your Twilio. */ number: string; /** This is the Twilio Account SID for the phone number. */ diff --git a/src/api/types/UpdateAnthropicCredentialDto.ts b/src/api/types/UpdateAnthropicCredentialDto.ts index 7c61f17..f56fa8c 100644 --- a/src/api/types/UpdateAnthropicCredentialDto.ts +++ b/src/api/types/UpdateAnthropicCredentialDto.ts @@ -3,9 +3,8 @@ */ export interface UpdateAnthropicCredentialDto { - provider: "anthropic"; /** This is not returned in the API. */ - apiKey: string; + apiKey?: string; /** This is the name of credential. This is just for your reference. */ name?: string; } diff --git a/src/api/types/UpdateAnyscaleCredentialDto.ts b/src/api/types/UpdateAnyscaleCredentialDto.ts index 565ed58..9f86076 100644 --- a/src/api/types/UpdateAnyscaleCredentialDto.ts +++ b/src/api/types/UpdateAnyscaleCredentialDto.ts @@ -3,9 +3,8 @@ */ export interface UpdateAnyscaleCredentialDto { - provider: "anyscale"; /** This is not returned in the API. */ - apiKey: string; + apiKey?: string; /** This is the name of credential. This is just for your reference. */ name?: string; } diff --git a/src/api/types/UpdateAssemblyAiCredentialDto.ts b/src/api/types/UpdateAssemblyAiCredentialDto.ts index fbcfeb0..7fcd4dc 100644 --- a/src/api/types/UpdateAssemblyAiCredentialDto.ts +++ b/src/api/types/UpdateAssemblyAiCredentialDto.ts @@ -3,9 +3,8 @@ */ export interface UpdateAssemblyAiCredentialDto { - provider: "assembly-ai"; /** This is not returned in the API. */ - apiKey: string; + apiKey?: string; /** This is the name of credential. This is just for your reference. */ name?: string; } diff --git a/src/api/types/UpdateAzureCredentialDto.ts b/src/api/types/UpdateAzureCredentialDto.ts index c356fe6..fe6f2b8 100644 --- a/src/api/types/UpdateAzureCredentialDto.ts +++ b/src/api/types/UpdateAzureCredentialDto.ts @@ -5,13 +5,14 @@ import * as Vapi from "../index"; export interface UpdateAzureCredentialDto { - provider: "azure"; /** This is the service being used in Azure. */ - service: "speech"; + service?: Vapi.UpdateAzureCredentialDtoService; /** This is the region of the Azure resource. */ region?: Vapi.UpdateAzureCredentialDtoRegion; /** This is not returned in the API. */ apiKey?: string; /** This is the name of credential. This is just for your reference. */ name?: string; + /** This is the bucket plan that can be provided to store call artifacts in Azure Blob Storage. */ + bucketPlan?: Vapi.AzureBlobStorageBucketPlan; } diff --git a/src/api/types/UpdateAzureCredentialDtoRegion.ts b/src/api/types/UpdateAzureCredentialDtoRegion.ts index 9b3b93d..a472159 100644 --- a/src/api/types/UpdateAzureCredentialDtoRegion.ts +++ b/src/api/types/UpdateAzureCredentialDtoRegion.ts @@ -17,7 +17,7 @@ export type UpdateAzureCredentialDtoRegion = | "northcentralus" | "norway" | "southcentralus" - | "sweden" + | "swedencentral" | "switzerland" | "uk" | "westus" @@ -35,7 +35,7 @@ export const UpdateAzureCredentialDtoRegion = { Northcentralus: "northcentralus", Norway: "norway", Southcentralus: "southcentralus", - Sweden: "sweden", + Swedencentral: "swedencentral", Switzerland: "switzerland", Uk: "uk", Westus: "westus", diff --git a/src/api/types/UpdateAzureCredentialDtoService.ts b/src/api/types/UpdateAzureCredentialDtoService.ts new file mode 100644 index 0000000..03a8a67 --- /dev/null +++ b/src/api/types/UpdateAzureCredentialDtoService.ts @@ -0,0 +1,13 @@ +/** + * 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 8742b32..906f9c2 100644 --- a/src/api/types/UpdateAzureOpenAiCredentialDto.ts +++ b/src/api/types/UpdateAzureOpenAiCredentialDto.ts @@ -5,12 +5,13 @@ import * as Vapi from "../index"; export interface UpdateAzureOpenAiCredentialDto { - provider: "azure-openai"; - region: Vapi.UpdateAzureOpenAiCredentialDtoRegion; - models: Vapi.UpdateAzureOpenAiCredentialDtoModelsItem[]; + region?: Vapi.UpdateAzureOpenAiCredentialDtoRegion; + models?: Vapi.UpdateAzureOpenAiCredentialDtoModelsItem[]; /** This is not returned in the API. */ - openAIKey: string; - openAIEndpoint: string; + openAIKey?: string; + /** This is not returned in the API. */ + ocpApimSubscriptionKey?: string; /** This is the name of credential. This is just for your reference. */ name?: string; + openAIEndpoint?: string; } diff --git a/src/api/types/UpdateAzureOpenAiCredentialDtoRegion.ts b/src/api/types/UpdateAzureOpenAiCredentialDtoRegion.ts index 688922f..a46861d 100644 --- a/src/api/types/UpdateAzureOpenAiCredentialDtoRegion.ts +++ b/src/api/types/UpdateAzureOpenAiCredentialDtoRegion.ts @@ -14,7 +14,7 @@ export type UpdateAzureOpenAiCredentialDtoRegion = | "northcentralus" | "norway" | "southcentralus" - | "sweden" + | "swedencentral" | "switzerland" | "uk" | "westus" @@ -32,7 +32,7 @@ export const UpdateAzureOpenAiCredentialDtoRegion = { Northcentralus: "northcentralus", Norway: "norway", Southcentralus: "southcentralus", - Sweden: "sweden", + Swedencentral: "swedencentral", Switzerland: "switzerland", Uk: "uk", Westus: "westus", diff --git a/src/api/types/UpdateBashToolDto.ts b/src/api/types/UpdateBashToolDto.ts new file mode 100644 index 0000000..4280bda --- /dev/null +++ b/src/api/types/UpdateBashToolDto.ts @@ -0,0 +1,44 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export interface UpdateBashToolDto { + /** + * This determines if the tool is async. + * + * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server. + * + * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server. + * + * Defaults to synchronous (`false`). + */ + async?: boolean; + /** + * These are the messages that will be spoken to the user as the tool is running. + * + * 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?: Vapi.UpdateBashToolDtoMessagesItem[]; + /** The sub type of tool. */ + subType?: "bash_20241022"; + /** + * This is the function definition of the tool. + * + * For `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases. + * + * An example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument "reason". Then, in `messages` array, you can have many "request-complete" messages. One of these messages will be triggered if the `messages[].conditions` matches the "reason" argument. + */ + function?: Vapi.OpenAiFunction; + /** + * This is the server that will be hit when this tool is requested by the model. + * + * All requests will be sent with the call object among other things. You can find more details in the Server URL documentation. + * + * This overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl. + */ + server?: Vapi.Server; + /** The name of the tool, fixed to 'bash' */ + name?: "bash"; +} diff --git a/src/api/resources/tools/types/UpdateToolDtoMessagesItem.ts b/src/api/types/UpdateBashToolDtoMessagesItem.ts similarity index 70% rename from src/api/resources/tools/types/UpdateToolDtoMessagesItem.ts rename to src/api/types/UpdateBashToolDtoMessagesItem.ts index 147f371..d3b361a 100644 --- a/src/api/resources/tools/types/UpdateToolDtoMessagesItem.ts +++ b/src/api/types/UpdateBashToolDtoMessagesItem.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vapi from "../../../index"; +import * as Vapi from "../index"; -export type UpdateToolDtoMessagesItem = +export type UpdateBashToolDtoMessagesItem = | Vapi.ToolMessageStart | Vapi.ToolMessageComplete | Vapi.ToolMessageFailed diff --git a/src/api/types/UpdateByoPhoneNumberDto.ts b/src/api/types/UpdateByoPhoneNumberDto.ts new file mode 100644 index 0000000..487cc64 --- /dev/null +++ b/src/api/types/UpdateByoPhoneNumberDto.ts @@ -0,0 +1,61 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export interface 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. + */ + fallbackDestination?: Vapi.UpdateByoPhoneNumberDtoFallbackDestination; + /** + * 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. + * + * Use cases: + * - `false`: To allow non-E164 numbers like `+001234567890`, `1234`, or `abc`. This is useful for dialing out to non-E164 numbers on your SIP trunks. + * - `true` (default): To allow only E164 numbers like `+14155551234`. This is standard for PSTN calls. + * + * If `false`, the `number` is still required to only contain alphanumeric characters (regex: `/^\+?[a-zA-Z0-9]+$/`). + * + * @default true (E164 check is enabled) + */ + numberE164CheckEnabled?: boolean; + /** This is the name of the phone number. This is just for your own reference. */ + name?: string; + /** + * This is the assistant that will be used for incoming calls to this phone number. + * + * If neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected. + */ + assistantId?: string; + /** + * This is the squad that will be used for incoming calls to this phone number. + * + * If neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected. + */ + squadId?: string; + /** + * This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema. + * + * The order of precedence is: + * + * 1. assistant.server + * 2. phoneNumber.server + * 3. org.server + */ + server?: Vapi.Server; + /** This is the number of the customer. */ + number?: string; + /** + * This is the credential of your own SIP trunk or Carrier (type `byo-sip-trunk`) which can be used to make calls to this phone number. + * + * You can add the SIP trunk or Carrier credential in the Provider Credentials page on the Dashboard to get the credentialId. + */ + credentialId?: string; +} diff --git a/src/api/resources/phoneNumbers/types/UpdatePhoneNumberDtoFallbackDestination.ts b/src/api/types/UpdateByoPhoneNumberDtoFallbackDestination.ts similarity index 71% rename from src/api/resources/phoneNumbers/types/UpdatePhoneNumberDtoFallbackDestination.ts rename to src/api/types/UpdateByoPhoneNumberDtoFallbackDestination.ts index ef847c5..2776e49 100644 --- a/src/api/resources/phoneNumbers/types/UpdatePhoneNumberDtoFallbackDestination.ts +++ b/src/api/types/UpdateByoPhoneNumberDtoFallbackDestination.ts @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vapi from "../../../index"; +import * as Vapi from "../index"; /** * This is the fallback destination an inbound call will be transferred to if: @@ -12,4 +12,4 @@ import * as Vapi from "../../../index"; * * If this is not set and above conditions are met, the inbound call is hung up with an error message. */ -export type UpdatePhoneNumberDtoFallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; +export type UpdateByoPhoneNumberDtoFallbackDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; diff --git a/src/api/types/UpdateByoSipTrunkCredentialDto.ts b/src/api/types/UpdateByoSipTrunkCredentialDto.ts index 1074c3d..47abf4b 100644 --- a/src/api/types/UpdateByoSipTrunkCredentialDto.ts +++ b/src/api/types/UpdateByoSipTrunkCredentialDto.ts @@ -5,10 +5,10 @@ import * as Vapi from "../index"; export interface UpdateByoSipTrunkCredentialDto { - /** This can be used to bring your own SIP trunks or to connect to a Carrier. */ - provider?: "byo-sip-trunk"; + /** This is the name of credential. This is just for your reference. */ + name?: string; /** This is the list of SIP trunk's gateways. */ - gateways: Vapi.SipTrunkGateway[]; + gateways?: Vapi.SipTrunkGateway[]; /** This can be used to configure the outbound authentication if required by the SIP trunk. */ outboundAuthenticationPlan?: Vapi.SipTrunkOutboundAuthenticationPlan; /** @@ -26,6 +26,4 @@ export interface UpdateByoSipTrunkCredentialDto { sipDiversionHeader?: string; /** This is an advanced configuration for enterprise deployments. This uses the onprem SBC to trunk into the SIP trunk's `gateways`, rather than the managed SBC provided by Vapi. */ sbcConfiguration?: Vapi.SbcConfiguration; - /** This is the name of credential. This is just for your reference. */ - name?: string; } diff --git a/src/api/types/UpdateCartesiaCredentialDto.ts b/src/api/types/UpdateCartesiaCredentialDto.ts index 82d587d..8e30939 100644 --- a/src/api/types/UpdateCartesiaCredentialDto.ts +++ b/src/api/types/UpdateCartesiaCredentialDto.ts @@ -3,9 +3,8 @@ */ export interface UpdateCartesiaCredentialDto { - provider: "cartesia"; /** This is not returned in the API. */ - apiKey: string; + apiKey?: string; /** This is the name of credential. This is just for your reference. */ name?: string; } diff --git a/src/api/types/UpdateCerebrasCredentialDto.ts b/src/api/types/UpdateCerebrasCredentialDto.ts new file mode 100644 index 0000000..b1efc84 --- /dev/null +++ b/src/api/types/UpdateCerebrasCredentialDto.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface UpdateCerebrasCredentialDto { + /** This is not returned in the API. */ + apiKey?: string; + /** This is the name of credential. This is just for your reference. */ + name?: string; +} diff --git a/src/api/types/UpdateCloudflareCredentialDto.ts b/src/api/types/UpdateCloudflareCredentialDto.ts new file mode 100644 index 0000000..c1e18d9 --- /dev/null +++ b/src/api/types/UpdateCloudflareCredentialDto.ts @@ -0,0 +1,18 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export interface UpdateCloudflareCredentialDto { + /** Cloudflare Account Id. */ + accountId?: string; + /** Cloudflare API Key / Token. */ + apiKey?: string; + /** Cloudflare Account Email. */ + accountEmail?: string; + /** This is the name of credential. This is just for your reference. */ + name?: string; + /** This is the bucket plan that can be provided to store call artifacts in R2 */ + bucketPlan?: Vapi.CloudflareR2BucketPlan; +} diff --git a/src/api/types/UpdateComputerToolDto.ts b/src/api/types/UpdateComputerToolDto.ts new file mode 100644 index 0000000..9223cad --- /dev/null +++ b/src/api/types/UpdateComputerToolDto.ts @@ -0,0 +1,50 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export interface UpdateComputerToolDto { + /** + * This determines if the tool is async. + * + * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server. + * + * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server. + * + * Defaults to synchronous (`false`). + */ + async?: boolean; + /** + * These are the messages that will be spoken to the user as the tool is running. + * + * 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?: Vapi.UpdateComputerToolDtoMessagesItem[]; + /** The sub type of tool. */ + subType?: "computer_20241022"; + /** + * This is the function definition of the tool. + * + * For `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases. + * + * An example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument "reason". Then, in `messages` array, you can have many "request-complete" messages. One of these messages will be triggered if the `messages[].conditions` matches the "reason" argument. + */ + function?: Vapi.OpenAiFunction; + /** + * This is the server that will be hit when this tool is requested by the model. + * + * All requests will be sent with the call object among other things. You can find more details in the Server URL documentation. + * + * This overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl. + */ + server?: Vapi.Server; + /** The name of the tool, fixed to 'computer' */ + name?: "computer"; + /** The display width in pixels */ + displayWidthPx?: number; + /** The display height in pixels */ + displayHeightPx?: number; + /** Optional display number */ + displayNumber?: number; +} diff --git a/src/api/types/UpdateComputerToolDtoMessagesItem.ts b/src/api/types/UpdateComputerToolDtoMessagesItem.ts new file mode 100644 index 0000000..50a9512 --- /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"; + +export type UpdateComputerToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/resources/blocks/client/requests/UpdateBlockDto.ts b/src/api/types/UpdateConversationBlockDto.ts similarity index 88% rename from src/api/resources/blocks/client/requests/UpdateBlockDto.ts rename to src/api/types/UpdateConversationBlockDto.ts index 36e5a5b..c813f31 100644 --- a/src/api/resources/blocks/client/requests/UpdateBlockDto.ts +++ b/src/api/types/UpdateConversationBlockDto.ts @@ -2,11 +2,11 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vapi from "../../../../index"; +import * as Vapi from "../index"; -export interface UpdateBlockDto { +export interface UpdateConversationBlockDto { /** These are the pre-configured messages that will be spoken to the user while the block is running. */ - messages?: Vapi.UpdateBlockDtoMessagesItem[]; + messages?: Vapi.UpdateConversationBlockDtoMessagesItem[]; /** * This is the input schema for the block. This is the input the block needs to run. It's given to the block as `steps[0].input` * @@ -28,10 +28,6 @@ export interface UpdateBlockDto { * 2. a workflow can execute a block multiple times. example, if a step is called multiple times or if a block is used in multiple steps. {{blockName.output.propertyName}} will reference the latest usage of the block. this liquid variable is just provided for convenience when creating blocks outside of a workflow with steps. */ outputSchema?: Vapi.JsonSchema; - /** This is the tool that the block will call. To use an existing tool, use `toolId`. */ - tool?: Vapi.UpdateBlockDtoTool; - /** These are the steps in the workflow. */ - steps?: Vapi.UpdateBlockDtoStepsItem[]; /** This is the name of the block. This is just for your reference. */ name?: string; /** @@ -56,6 +52,4 @@ export interface UpdateBlockDto { * 2. a workflow can execute a block multiple times. example, if a step is called multiple times or if a block is used in multiple steps. {{blockName.output/input.propertyName}} will reference the latest usage of the block. this liquid variable is just provided for convenience when creating blocks outside of a workflow with steps. */ instruction?: string; - /** This is the id of the tool that the block will call. To use a transient tool, use `tool`. */ - toolId?: string; } diff --git a/src/api/types/UpdateConversationBlockDtoMessagesItem.ts b/src/api/types/UpdateConversationBlockDtoMessagesItem.ts new file mode 100644 index 0000000..b716616 --- /dev/null +++ b/src/api/types/UpdateConversationBlockDtoMessagesItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export type UpdateConversationBlockDtoMessagesItem = Vapi.BlockStartMessage | Vapi.BlockCompleteMessage; diff --git a/src/api/types/UpdateCustomKnowledgeBaseDto.ts b/src/api/types/UpdateCustomKnowledgeBaseDto.ts new file mode 100644 index 0000000..bca267b --- /dev/null +++ b/src/api/types/UpdateCustomKnowledgeBaseDto.ts @@ -0,0 +1,51 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export interface UpdateCustomKnowledgeBaseDto { + /** + * /** + * This is where the knowledge base request will be sent. + * + * Request Example: + * + * POST https://{server.url} + * Content-Type: application/json + * + * { + * "messsage": { + * "type": "knowledge-base-request", + * "messages": [ + * { + * "role": "user", + * "content": "Why is ocean blue?" + * } + * ], + * ...other metadata about the call... + * } + * } + * + * Response Expected: + * ``` + * { + * "message": { + * "role": "assistant", + * "content": "The ocean is blue because water absorbs everything but blue.", + * }, // YOU CAN RETURN THE EXACT RESPONSE TO SPEAK + * "documents": [ + * { + * "content": "The ocean is blue primarily because water absorbs colors in the red part of the light spectrum and scatters the blue light, making it more visible to our eyes.", + * "similarity": 1 + * }, + * { + * "content": "Blue light is scattered more by the water molecules than other colors, enhancing the blue appearance of the ocean.", + * "similarity": .5 + * } + * ] // OR, YOU CAN RETURN AN ARRAY OF DOCUMENTS THAT WILL BE SENT TO THE MODEL + * } + * ``` + */ + server?: Vapi.Server; +} diff --git a/src/api/types/UpdateCustomLlmCredentialDto.ts b/src/api/types/UpdateCustomLlmCredentialDto.ts index 206144a..1a8e85b 100644 --- a/src/api/types/UpdateCustomLlmCredentialDto.ts +++ b/src/api/types/UpdateCustomLlmCredentialDto.ts @@ -5,9 +5,8 @@ import * as Vapi from "../index"; export interface UpdateCustomLlmCredentialDto { - provider: "custom-llm"; /** This is not returned in the API. */ - apiKey: string; + apiKey?: string; /** This is the authentication plan. Currently supports OAuth2 RFC 6749. To use Bearer authentication, use apiKey */ authenticationPlan?: Vapi.OAuth2AuthenticationPlan; /** This is the name of credential. This is just for your reference. */ diff --git a/src/api/types/UpdateDeepInfraCredentialDto.ts b/src/api/types/UpdateDeepInfraCredentialDto.ts index 049b5f7..bdc8130 100644 --- a/src/api/types/UpdateDeepInfraCredentialDto.ts +++ b/src/api/types/UpdateDeepInfraCredentialDto.ts @@ -3,9 +3,8 @@ */ export interface UpdateDeepInfraCredentialDto { - provider: "deepinfra"; /** This is not returned in the API. */ - apiKey: string; + apiKey?: string; /** This is the name of credential. This is just for your reference. */ name?: string; } diff --git a/src/api/types/UpdateDeepSeekCredentialDto.ts b/src/api/types/UpdateDeepSeekCredentialDto.ts new file mode 100644 index 0000000..4154c71 --- /dev/null +++ b/src/api/types/UpdateDeepSeekCredentialDto.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface UpdateDeepSeekCredentialDto { + /** This is not returned in the API. */ + apiKey?: string; + /** This is the name of credential. This is just for your reference. */ + name?: string; +} diff --git a/src/api/types/UpdateDeepgramCredentialDto.ts b/src/api/types/UpdateDeepgramCredentialDto.ts index 7708fd6..1f5a76f 100644 --- a/src/api/types/UpdateDeepgramCredentialDto.ts +++ b/src/api/types/UpdateDeepgramCredentialDto.ts @@ -3,11 +3,10 @@ */ export interface UpdateDeepgramCredentialDto { - provider: "deepgram"; /** This is not returned in the API. */ - apiKey: string; - /** This can be used to point to an onprem Deepgram instance. Defaults to api.deepgram.com. */ - apiUrl?: string; + apiKey?: string; /** This is the name of credential. This is just for your reference. */ name?: string; + /** This can be used to point to an onprem Deepgram instance. Defaults to api.deepgram.com. */ + apiUrl?: string; } diff --git a/src/api/resources/tools/client/requests/UpdateToolDto.ts b/src/api/types/UpdateDtmfToolDto.ts similarity index 94% rename from src/api/resources/tools/client/requests/UpdateToolDto.ts rename to src/api/types/UpdateDtmfToolDto.ts index bdf1b3f..3ce784d 100644 --- a/src/api/resources/tools/client/requests/UpdateToolDto.ts +++ b/src/api/types/UpdateDtmfToolDto.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vapi from "../../../../index"; +import * as Vapi from "../index"; -export interface UpdateToolDto { +export interface UpdateDtmfToolDto { /** * This determines if the tool is async. * @@ -20,7 +20,7 @@ export interface UpdateToolDto { * * 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?: Vapi.UpdateToolDtoMessagesItem[]; + messages?: Vapi.UpdateDtmfToolDtoMessagesItem[]; /** * This is the function definition of the tool. * diff --git a/src/api/types/UpdateDtmfToolDtoMessagesItem.ts b/src/api/types/UpdateDtmfToolDtoMessagesItem.ts new file mode 100644 index 0000000..37c6638 --- /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"; + +export type UpdateDtmfToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateElevenLabsCredentialDto.ts b/src/api/types/UpdateElevenLabsCredentialDto.ts index dd85494..123b503 100644 --- a/src/api/types/UpdateElevenLabsCredentialDto.ts +++ b/src/api/types/UpdateElevenLabsCredentialDto.ts @@ -3,9 +3,9 @@ */ export interface UpdateElevenLabsCredentialDto { - provider: "11labs"; /** This is not returned in the API. */ - apiKey: string; + apiKey?: string; /** This is the name of credential. This is just for your reference. */ name?: string; + provider?: "11labs"; } diff --git a/src/api/types/UpdateEndCallToolDto.ts b/src/api/types/UpdateEndCallToolDto.ts new file mode 100644 index 0000000..cc9083c --- /dev/null +++ b/src/api/types/UpdateEndCallToolDto.ts @@ -0,0 +1,40 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export interface UpdateEndCallToolDto { + /** + * This determines if the tool is async. + * + * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server. + * + * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server. + * + * Defaults to synchronous (`false`). + */ + async?: boolean; + /** + * These are the messages that will be spoken to the user as the tool is running. + * + * 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?: Vapi.UpdateEndCallToolDtoMessagesItem[]; + /** + * This is the function definition of the tool. + * + * For `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases. + * + * An example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument "reason". Then, in `messages` array, you can have many "request-complete" messages. One of these messages will be triggered if the `messages[].conditions` matches the "reason" argument. + */ + function?: Vapi.OpenAiFunction; + /** + * This is the server that will be hit when this tool is requested by the model. + * + * All requests will be sent with the call object among other things. You can find more details in the Server URL documentation. + * + * This overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl. + */ + server?: Vapi.Server; +} diff --git a/src/api/types/UpdateEndCallToolDtoMessagesItem.ts b/src/api/types/UpdateEndCallToolDtoMessagesItem.ts new file mode 100644 index 0000000..3017016 --- /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"; + +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 new file mode 100644 index 0000000..0c97e1b --- /dev/null +++ b/src/api/types/UpdateFunctionToolDto.ts @@ -0,0 +1,40 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export interface UpdateFunctionToolDto { + /** + * This determines if the tool is async. + * + * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server. + * + * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server. + * + * Defaults to synchronous (`false`). + */ + async?: boolean; + /** + * These are the messages that will be spoken to the user as the tool is running. + * + * 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?: Vapi.UpdateFunctionToolDtoMessagesItem[]; + /** + * This is the function definition of the tool. + * + * For `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases. + * + * An example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument "reason". Then, in `messages` array, you can have many "request-complete" messages. One of these messages will be triggered if the `messages[].conditions` matches the "reason" argument. + */ + function?: Vapi.OpenAiFunction; + /** + * This is the server that will be hit when this tool is requested by the model. + * + * All requests will be sent with the call object among other things. You can find more details in the Server URL documentation. + * + * This overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl. + */ + server?: Vapi.Server; +} diff --git a/src/api/types/UpdateFunctionToolDtoMessagesItem.ts b/src/api/types/UpdateFunctionToolDtoMessagesItem.ts new file mode 100644 index 0000000..87ff563 --- /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"; + +export type UpdateFunctionToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateGcpCredentialDto.ts b/src/api/types/UpdateGcpCredentialDto.ts index 63d23ea..97083bd 100644 --- a/src/api/types/UpdateGcpCredentialDto.ts +++ b/src/api/types/UpdateGcpCredentialDto.ts @@ -5,15 +5,14 @@ import * as Vapi from "../index"; export interface UpdateGcpCredentialDto { - provider: "gcp"; + /** This is the name of credential. This is just for your reference. */ + name?: string; /** * This is the GCP key. This is the JSON that can be generated in the Google Cloud Console at https://console.cloud.google.com/iam-admin/serviceaccounts/details//keys. * * The schema is identical to the JSON that GCP outputs. */ - gcpKey: Vapi.GcpKey; + gcpKey?: Vapi.GcpKey; /** This is the bucket plan that can be provided to store call artifacts in GCP. */ bucketPlan?: Vapi.BucketPlan; - /** This is the name of credential. This is just for your reference. */ - name?: string; } diff --git a/src/api/types/UpdateGhlToolDto.ts b/src/api/types/UpdateGhlToolDto.ts new file mode 100644 index 0000000..fee85db --- /dev/null +++ b/src/api/types/UpdateGhlToolDto.ts @@ -0,0 +1,41 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export interface UpdateGhlToolDto { + /** + * This determines if the tool is async. + * + * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server. + * + * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server. + * + * Defaults to synchronous (`false`). + */ + async?: boolean; + /** + * These are the messages that will be spoken to the user as the tool is running. + * + * 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?: Vapi.UpdateGhlToolDtoMessagesItem[]; + /** + * This is the function definition of the tool. + * + * For `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases. + * + * An example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument "reason". Then, in `messages` array, you can have many "request-complete" messages. One of these messages will be triggered if the `messages[].conditions` matches the "reason" argument. + */ + function?: Vapi.OpenAiFunction; + /** + * This is the server that will be hit when this tool is requested by the model. + * + * All requests will be sent with the call object among other things. You can find more details in the Server URL documentation. + * + * This overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl. + */ + server?: Vapi.Server; + metadata?: Vapi.GhlToolMetadata; +} diff --git a/src/api/types/UpdateGhlToolDtoMessagesItem.ts b/src/api/types/UpdateGhlToolDtoMessagesItem.ts new file mode 100644 index 0000000..6414c9e --- /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"; + +export type UpdateGhlToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateGladiaCredentialDto.ts b/src/api/types/UpdateGladiaCredentialDto.ts index c4474cb..9e7470e 100644 --- a/src/api/types/UpdateGladiaCredentialDto.ts +++ b/src/api/types/UpdateGladiaCredentialDto.ts @@ -3,9 +3,8 @@ */ export interface UpdateGladiaCredentialDto { - provider: "gladia"; /** This is not returned in the API. */ - apiKey: string; + apiKey?: string; /** This is the name of credential. This is just for your reference. */ name?: string; } diff --git a/src/api/types/UpdateGoHighLevelCredentialDto.ts b/src/api/types/UpdateGoHighLevelCredentialDto.ts index 473d0de..a15a237 100644 --- a/src/api/types/UpdateGoHighLevelCredentialDto.ts +++ b/src/api/types/UpdateGoHighLevelCredentialDto.ts @@ -3,9 +3,8 @@ */ export interface UpdateGoHighLevelCredentialDto { - provider: "gohighlevel"; /** This is not returned in the API. */ - apiKey: string; + apiKey?: string; /** This is the name of credential. This is just for your reference. */ name?: string; } diff --git a/src/api/types/UpdateGoogleCredentialDto.ts b/src/api/types/UpdateGoogleCredentialDto.ts index ac7d800..a9e90d4 100644 --- a/src/api/types/UpdateGoogleCredentialDto.ts +++ b/src/api/types/UpdateGoogleCredentialDto.ts @@ -3,10 +3,8 @@ */ export interface UpdateGoogleCredentialDto { - /** This is the key for Gemini in Google AI Studio. Get it from here: https://aistudio.google.com/app/apikey */ - provider: "google"; /** This is not returned in the API. */ - apiKey: string; + apiKey?: string; /** This is the name of credential. This is just for your reference. */ name?: string; } diff --git a/src/api/types/UpdateGroqCredentialDto.ts b/src/api/types/UpdateGroqCredentialDto.ts index 1221204..26097bf 100644 --- a/src/api/types/UpdateGroqCredentialDto.ts +++ b/src/api/types/UpdateGroqCredentialDto.ts @@ -3,9 +3,8 @@ */ export interface UpdateGroqCredentialDto { - provider: "groq"; /** This is not returned in the API. */ - apiKey: string; + apiKey?: string; /** This is the name of credential. This is just for your reference. */ name?: string; } diff --git a/src/api/types/UpdateInflectionAiCredentialDto.ts b/src/api/types/UpdateInflectionAiCredentialDto.ts index 99ee85d..e3ac8f9 100644 --- a/src/api/types/UpdateInflectionAiCredentialDto.ts +++ b/src/api/types/UpdateInflectionAiCredentialDto.ts @@ -3,10 +3,8 @@ */ export interface UpdateInflectionAiCredentialDto { - /** This is the api key for Pi in InflectionAI's console. Get it from here: https://developers.inflection.ai/keys, billing will need to be setup */ - provider: "inflection-ai"; /** This is not returned in the API. */ - apiKey: string; + apiKey?: string; /** This is the name of credential. This is just for your reference. */ name?: string; } diff --git a/src/api/types/UpdateLangfuseCredentialDto.ts b/src/api/types/UpdateLangfuseCredentialDto.ts index 6f09c37..199e5f8 100644 --- a/src/api/types/UpdateLangfuseCredentialDto.ts +++ b/src/api/types/UpdateLangfuseCredentialDto.ts @@ -3,13 +3,12 @@ */ export interface UpdateLangfuseCredentialDto { - provider: "langfuse"; /** The public key for Langfuse project. Eg: pk-lf-... */ - publicKey: string; + publicKey?: string; /** The secret key for Langfuse project. Eg: sk-lf-... .This is not returned in the API. */ - apiKey: string; + apiKey?: string; /** The host URL for Langfuse project. Eg: https://cloud.langfuse.com */ - apiUrl: string; + apiUrl?: string; /** This is the name of credential. This is just for your reference. */ name?: string; } diff --git a/src/api/types/UpdateLmntCredentialDto.ts b/src/api/types/UpdateLmntCredentialDto.ts index 0710b99..7f33657 100644 --- a/src/api/types/UpdateLmntCredentialDto.ts +++ b/src/api/types/UpdateLmntCredentialDto.ts @@ -3,9 +3,8 @@ */ export interface UpdateLmntCredentialDto { - provider: "lmnt"; /** This is not returned in the API. */ - apiKey: string; + apiKey?: string; /** This is the name of credential. This is just for your reference. */ name?: string; } diff --git a/src/api/types/UpdateMakeCredentialDto.ts b/src/api/types/UpdateMakeCredentialDto.ts index 7e4183d..de6ece2 100644 --- a/src/api/types/UpdateMakeCredentialDto.ts +++ b/src/api/types/UpdateMakeCredentialDto.ts @@ -3,13 +3,12 @@ */ export interface UpdateMakeCredentialDto { - provider: "make"; /** Team ID */ - teamId: string; + teamId?: string; /** Region of your application. For example: eu1, eu2, us1, us2 */ - region: string; + region?: string; /** This is not returned in the API. */ - apiKey: string; + apiKey?: string; /** This is the name of credential. This is just for your reference. */ name?: string; } diff --git a/src/api/types/UpdateMakeToolDto.ts b/src/api/types/UpdateMakeToolDto.ts new file mode 100644 index 0000000..c5b290e --- /dev/null +++ b/src/api/types/UpdateMakeToolDto.ts @@ -0,0 +1,41 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export interface UpdateMakeToolDto { + /** + * This determines if the tool is async. + * + * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server. + * + * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server. + * + * Defaults to synchronous (`false`). + */ + async?: boolean; + /** + * These are the messages that will be spoken to the user as the tool is running. + * + * 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?: Vapi.UpdateMakeToolDtoMessagesItem[]; + /** + * This is the function definition of the tool. + * + * For `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases. + * + * An example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument "reason". Then, in `messages` array, you can have many "request-complete" messages. One of these messages will be triggered if the `messages[].conditions` matches the "reason" argument. + */ + function?: Vapi.OpenAiFunction; + /** + * This is the server that will be hit when this tool is requested by the model. + * + * All requests will be sent with the call object among other things. You can find more details in the Server URL documentation. + * + * This overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl. + */ + server?: Vapi.Server; + metadata?: Vapi.MakeToolMetadata; +} diff --git a/src/api/types/UpdateMakeToolDtoMessagesItem.ts b/src/api/types/UpdateMakeToolDtoMessagesItem.ts new file mode 100644 index 0000000..0b5a75b --- /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"; + +export type UpdateMakeToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateOpenAiCredentialDto.ts b/src/api/types/UpdateOpenAiCredentialDto.ts index 3384c6c..f892b56 100644 --- a/src/api/types/UpdateOpenAiCredentialDto.ts +++ b/src/api/types/UpdateOpenAiCredentialDto.ts @@ -3,9 +3,8 @@ */ export interface UpdateOpenAiCredentialDto { - provider: "openai"; /** This is not returned in the API. */ - apiKey: string; + apiKey?: string; /** This is the name of credential. This is just for your reference. */ name?: string; } diff --git a/src/api/types/UpdateOpenRouterCredentialDto.ts b/src/api/types/UpdateOpenRouterCredentialDto.ts index 812cd0a..cc40692 100644 --- a/src/api/types/UpdateOpenRouterCredentialDto.ts +++ b/src/api/types/UpdateOpenRouterCredentialDto.ts @@ -3,9 +3,8 @@ */ export interface UpdateOpenRouterCredentialDto { - provider: "openrouter"; /** This is not returned in the API. */ - apiKey: string; + apiKey?: string; /** This is the name of credential. This is just for your reference. */ name?: string; } diff --git a/src/api/types/UpdateOrgDto.ts b/src/api/types/UpdateOrgDto.ts index 6ff08ee..a9ac84f 100644 --- a/src/api/types/UpdateOrgDto.ts +++ b/src/api/types/UpdateOrgDto.ts @@ -20,13 +20,15 @@ export interface UpdateOrgDto { /** This is the monthly billing limit for the org. To go beyond $1000/mo, please contact us at support@vapi.ai. */ billingLimit?: number; /** - * This is the URL Vapi will communicate with via HTTP GET and POST Requests. This is used for retrieving context, function calling, and end-of-call reports. + * This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema. * - * All requests will be sent with the call object among other things relevant to that message. You can find more details in the Server URL documentation. + * The order of precedence is: + * + * 1. assistant.server + * 2. phoneNumber.server + * 3. org.server */ - serverUrl?: string; - /** This is the secret you can set that Vapi will send with every request to your server. Will be sent as a header called x-vapi-secret. */ - serverUrlSecret?: string; + server?: Vapi.Server; /** This is the concurrency limit for the org. This is the maximum number of calls that can be active at any given time. To go beyond 10, please contact us at support@vapi.ai. */ concurrencyLimit?: number; } diff --git a/src/api/types/UpdateOutputToolDto.ts b/src/api/types/UpdateOutputToolDto.ts new file mode 100644 index 0000000..84b8b52 --- /dev/null +++ b/src/api/types/UpdateOutputToolDto.ts @@ -0,0 +1,40 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export interface UpdateOutputToolDto { + /** + * This determines if the tool is async. + * + * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server. + * + * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server. + * + * Defaults to synchronous (`false`). + */ + async?: boolean; + /** + * These are the messages that will be spoken to the user as the tool is running. + * + * 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?: Vapi.UpdateOutputToolDtoMessagesItem[]; + /** + * This is the function definition of the tool. + * + * For `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases. + * + * An example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument "reason". Then, in `messages` array, you can have many "request-complete" messages. One of these messages will be triggered if the `messages[].conditions` matches the "reason" argument. + */ + function?: Vapi.OpenAiFunction; + /** + * This is the server that will be hit when this tool is requested by the model. + * + * All requests will be sent with the call object among other things. You can find more details in the Server URL documentation. + * + * This overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl. + */ + server?: Vapi.Server; +} diff --git a/src/api/types/UpdateOutputToolDtoMessagesItem.ts b/src/api/types/UpdateOutputToolDtoMessagesItem.ts new file mode 100644 index 0000000..b7ba93f --- /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"; + +export type UpdateOutputToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdatePerplexityAiCredentialDto.ts b/src/api/types/UpdatePerplexityAiCredentialDto.ts index adff2cf..df3971a 100644 --- a/src/api/types/UpdatePerplexityAiCredentialDto.ts +++ b/src/api/types/UpdatePerplexityAiCredentialDto.ts @@ -3,9 +3,8 @@ */ export interface UpdatePerplexityAiCredentialDto { - provider: "perplexity-ai"; /** This is not returned in the API. */ - apiKey: string; + apiKey?: string; /** This is the name of credential. This is just for your reference. */ name?: string; } diff --git a/src/api/types/UpdatePlayHtCredentialDto.ts b/src/api/types/UpdatePlayHtCredentialDto.ts index f24e025..5504e71 100644 --- a/src/api/types/UpdatePlayHtCredentialDto.ts +++ b/src/api/types/UpdatePlayHtCredentialDto.ts @@ -3,10 +3,9 @@ */ export interface UpdatePlayHtCredentialDto { - provider: "playht"; /** This is not returned in the API. */ - apiKey: string; - userId: string; + apiKey?: string; /** This is the name of credential. This is just for your reference. */ name?: string; + userId?: string; } diff --git a/src/api/types/UpdateRimeAiCredentialDto.ts b/src/api/types/UpdateRimeAiCredentialDto.ts index d32b753..39192bc 100644 --- a/src/api/types/UpdateRimeAiCredentialDto.ts +++ b/src/api/types/UpdateRimeAiCredentialDto.ts @@ -3,9 +3,8 @@ */ export interface UpdateRimeAiCredentialDto { - provider: "rime-ai"; /** This is not returned in the API. */ - apiKey: string; + apiKey?: string; /** This is the name of credential. This is just for your reference. */ name?: string; } diff --git a/src/api/types/UpdateRunpodCredentialDto.ts b/src/api/types/UpdateRunpodCredentialDto.ts index a2efdd2..284e4c7 100644 --- a/src/api/types/UpdateRunpodCredentialDto.ts +++ b/src/api/types/UpdateRunpodCredentialDto.ts @@ -3,9 +3,8 @@ */ export interface UpdateRunpodCredentialDto { - provider: "runpod"; /** This is not returned in the API. */ - apiKey: string; + apiKey?: string; /** This is the name of credential. This is just for your reference. */ name?: string; } diff --git a/src/api/types/UpdateS3CredentialDto.ts b/src/api/types/UpdateS3CredentialDto.ts index 2d3cc08..f2793f1 100644 --- a/src/api/types/UpdateS3CredentialDto.ts +++ b/src/api/types/UpdateS3CredentialDto.ts @@ -3,18 +3,16 @@ */ export interface UpdateS3CredentialDto { - /** Credential provider. Only allowed value is s3 */ - provider: "s3"; /** AWS access key ID. */ - awsAccessKeyId: string; + awsAccessKeyId?: string; /** AWS access key secret. This is not returned in the API. */ - awsSecretAccessKey: string; + awsSecretAccessKey?: string; /** AWS region in which the S3 bucket is located. */ - region: string; + region?: string; /** AWS S3 bucket name. */ - s3BucketName: string; + s3BucketName?: string; /** The path prefix for the uploaded recording. Ex. "recordings/" */ - s3PathPrefix: string; + s3PathPrefix?: string; /** This is the name of credential. This is just for your reference. */ name?: string; } diff --git a/src/api/types/UpdateSmallestAiCredentialDto.ts b/src/api/types/UpdateSmallestAiCredentialDto.ts new file mode 100644 index 0000000..e261d60 --- /dev/null +++ b/src/api/types/UpdateSmallestAiCredentialDto.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface UpdateSmallestAiCredentialDto { + /** This is not returned in the API. */ + apiKey?: string; + /** This is the name of credential. This is just for your reference. */ + name?: string; +} diff --git a/src/api/types/UpdateTavusCredentialDto.ts b/src/api/types/UpdateTavusCredentialDto.ts index 95e04e6..24c83d1 100644 --- a/src/api/types/UpdateTavusCredentialDto.ts +++ b/src/api/types/UpdateTavusCredentialDto.ts @@ -3,9 +3,8 @@ */ export interface UpdateTavusCredentialDto { - provider: "tavus"; /** This is not returned in the API. */ - apiKey: string; + apiKey?: string; /** This is the name of credential. This is just for your reference. */ name?: string; } diff --git a/src/api/types/UpdateTextEditorToolDto.ts b/src/api/types/UpdateTextEditorToolDto.ts new file mode 100644 index 0000000..010d7b6 --- /dev/null +++ b/src/api/types/UpdateTextEditorToolDto.ts @@ -0,0 +1,44 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export interface UpdateTextEditorToolDto { + /** + * This determines if the tool is async. + * + * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server. + * + * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server. + * + * Defaults to synchronous (`false`). + */ + async?: boolean; + /** + * These are the messages that will be spoken to the user as the tool is running. + * + * 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?: Vapi.UpdateTextEditorToolDtoMessagesItem[]; + /** The sub type of tool. */ + subType?: "text_editor_20241022"; + /** + * This is the function definition of the tool. + * + * For `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases. + * + * An example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument "reason". Then, in `messages` array, you can have many "request-complete" messages. One of these messages will be triggered if the `messages[].conditions` matches the "reason" argument. + */ + function?: Vapi.OpenAiFunction; + /** + * This is the server that will be hit when this tool is requested by the model. + * + * All requests will be sent with the call object among other things. You can find more details in the Server URL documentation. + * + * This overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl. + */ + server?: Vapi.Server; + /** The name of the tool, fixed to 'str_replace_editor' */ + name?: "str_replace_editor"; +} diff --git a/src/api/types/UpdateTextEditorToolDtoMessagesItem.ts b/src/api/types/UpdateTextEditorToolDtoMessagesItem.ts new file mode 100644 index 0000000..6567b3f --- /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"; + +export type UpdateTextEditorToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateTogetherAiCredentialDto.ts b/src/api/types/UpdateTogetherAiCredentialDto.ts index 4440517..397b8bd 100644 --- a/src/api/types/UpdateTogetherAiCredentialDto.ts +++ b/src/api/types/UpdateTogetherAiCredentialDto.ts @@ -3,9 +3,8 @@ */ export interface UpdateTogetherAiCredentialDto { - provider: "together-ai"; /** This is not returned in the API. */ - apiKey: string; + apiKey?: string; /** This is the name of credential. This is just for your reference. */ name?: string; } diff --git a/src/api/types/UpdateTokenDto.ts b/src/api/types/UpdateTokenDto.ts new file mode 100644 index 0000000..935e3a4 --- /dev/null +++ b/src/api/types/UpdateTokenDto.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export interface UpdateTokenDto { + /** This is the tag for the token. It represents its scope. */ + 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; +} diff --git a/src/api/types/UpdateTokenDtoTag.ts b/src/api/types/UpdateTokenDtoTag.ts new file mode 100644 index 0000000..5975d57 --- /dev/null +++ b/src/api/types/UpdateTokenDtoTag.ts @@ -0,0 +1,13 @@ +/** + * 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/UpdateToolCallBlockDto.ts b/src/api/types/UpdateToolCallBlockDto.ts new file mode 100644 index 0000000..a863ba8 --- /dev/null +++ b/src/api/types/UpdateToolCallBlockDto.ts @@ -0,0 +1,37 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export interface UpdateToolCallBlockDto { + /** These are the pre-configured messages that will be spoken to the user while the block is running. */ + messages?: Vapi.UpdateToolCallBlockDtoMessagesItem[]; + /** + * This is the input schema for the block. This is the input the block needs to run. It's given to the block as `steps[0].input` + * + * These are accessible as variables: + * - ({{input.propertyName}}) in context of the block execution (step) + * - ({{stepName.input.propertyName}}) in context of the workflow + */ + inputSchema?: Vapi.JsonSchema; + /** + * This is the output schema for the block. This is the output the block will return to the workflow (`{{stepName.output}}`). + * + * These are accessible as variables: + * - ({{output.propertyName}}) in context of the block execution (step) + * - ({{stepName.output.propertyName}}) in context of the workflow (read caveat #1) + * - ({{blockName.output.propertyName}}) in context of the workflow (read caveat #2) + * + * Caveats: + * 1. a workflow can execute a step multiple times. example, if a loop is used in the graph. {{stepName.output.propertyName}} will reference the latest usage of the step. + * 2. a workflow can execute a block multiple times. example, if a step is called multiple times or if a block is used in multiple steps. {{blockName.output.propertyName}} will reference the latest usage of the block. this liquid variable is just provided for convenience when creating blocks outside of a workflow with steps. + */ + outputSchema?: Vapi.JsonSchema; + /** This is the tool that the block will call. To use an existing tool, use `toolId`. */ + tool?: Vapi.UpdateToolCallBlockDtoTool; + /** This is the name of the block. This is just for your reference. */ + name?: string; + /** This is the id of the tool that the block will call. To use a transient tool, use `tool`. */ + toolId?: string; +} diff --git a/src/api/types/UpdateToolCallBlockDtoMessagesItem.ts b/src/api/types/UpdateToolCallBlockDtoMessagesItem.ts new file mode 100644 index 0000000..f1a9b03 --- /dev/null +++ b/src/api/types/UpdateToolCallBlockDtoMessagesItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export type UpdateToolCallBlockDtoMessagesItem = Vapi.BlockStartMessage | Vapi.BlockCompleteMessage; diff --git a/src/api/resources/blocks/types/UpdateBlockDtoTool.ts b/src/api/types/UpdateToolCallBlockDtoTool.ts similarity index 83% rename from src/api/resources/blocks/types/UpdateBlockDtoTool.ts rename to src/api/types/UpdateToolCallBlockDtoTool.ts index 6390bea..86433c2 100644 --- a/src/api/resources/blocks/types/UpdateBlockDtoTool.ts +++ b/src/api/types/UpdateToolCallBlockDtoTool.ts @@ -2,12 +2,12 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vapi from "../../../index"; +import * as Vapi from "../index"; /** * This is the tool that the block will call. To use an existing tool, use `toolId`. */ -export type UpdateBlockDtoTool = +export type UpdateToolCallBlockDtoTool = | Vapi.CreateDtmfToolDto | Vapi.CreateEndCallToolDto | Vapi.CreateVoicemailToolDto diff --git a/src/api/types/UpdateTransferCallToolDto.ts b/src/api/types/UpdateTransferCallToolDto.ts new file mode 100644 index 0000000..de4f47c --- /dev/null +++ b/src/api/types/UpdateTransferCallToolDto.ts @@ -0,0 +1,42 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export interface UpdateTransferCallToolDto { + /** + * This determines if the tool is async. + * + * If async, the assistant will move forward without waiting for your server to respond. This is useful if you just want to trigger something on your server. + * + * If sync, the assistant will wait for your server to respond. This is useful if want assistant to respond with the result from your server. + * + * Defaults to synchronous (`false`). + */ + async?: boolean; + /** + * These are the messages that will be spoken to the user as the tool is running. + * + * 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?: 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?: Vapi.UpdateTransferCallToolDtoDestinationsItem[]; + /** + * This is the function definition of the tool. + * + * For `endCall`, `transferCall`, and `dtmf` tools, this is auto-filled based on tool-specific fields like `tool.destinations`. But, even in those cases, you can provide a custom function definition for advanced use cases. + * + * An example of an advanced use case is if you want to customize the message that's spoken for `endCall` tool. You can specify a function where it returns an argument "reason". Then, in `messages` array, you can have many "request-complete" messages. One of these messages will be triggered if the `messages[].conditions` matches the "reason" argument. + */ + function?: Vapi.OpenAiFunction; + /** + * This is the server that will be hit when this tool is requested by the model. + * + * All requests will be sent with the call object among other things. You can find more details in the Server URL documentation. + * + * This overrides the serverUrl set on the org and the phoneNumber. Order of precedence: highest tool.server.url, then assistant.serverUrl, then phoneNumber.serverUrl, then org.serverUrl. + */ + server?: Vapi.Server; +} diff --git a/src/api/types/UpdateTransferCallToolDtoDestinationsItem.ts b/src/api/types/UpdateTransferCallToolDtoDestinationsItem.ts new file mode 100644 index 0000000..6a00ac4 --- /dev/null +++ b/src/api/types/UpdateTransferCallToolDtoDestinationsItem.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export type UpdateTransferCallToolDtoDestinationsItem = + | Vapi.TransferDestinationAssistant + | Vapi.TransferDestinationStep + | Vapi.TransferDestinationNumber + | Vapi.TransferDestinationSip; diff --git a/src/api/types/UpdateTransferCallToolDtoMessagesItem.ts b/src/api/types/UpdateTransferCallToolDtoMessagesItem.ts new file mode 100644 index 0000000..4c7581a --- /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"; + +export type UpdateTransferCallToolDtoMessagesItem = + | Vapi.ToolMessageStart + | Vapi.ToolMessageComplete + | Vapi.ToolMessageFailed + | Vapi.ToolMessageDelayed; diff --git a/src/api/types/UpdateTrieveKnowledgeBaseDto.ts b/src/api/types/UpdateTrieveKnowledgeBaseDto.ts new file mode 100644 index 0000000..bab4d79 --- /dev/null +++ b/src/api/types/UpdateTrieveKnowledgeBaseDto.ts @@ -0,0 +1,22 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export interface UpdateTrieveKnowledgeBaseDto { + /** This is the name of the knowledge base. */ + name?: string; + /** This is the plan on how to search the vector store while a call is going on. */ + vectorStoreSearchPlan?: Vapi.TrieveKnowledgeBaseVectorStoreSearchPlan; + /** This is the plan if you want us to create a new vector store on your behalf. To use an existing vector store from your account, use `vectoreStoreProviderId` */ + vectorStoreCreatePlan?: Vapi.TrieveKnowledgeBaseVectorStoreCreatePlan; + /** + * This is an vector store that you already have on your account with the provider. To create a new vector store, use vectorStoreCreatePlan. + * + * Usage: + * - To bring your own vector store from Trieve, go to https://trieve.ai + * - Create a dataset, and use the datasetId here. + */ + vectorStoreProviderId?: string; +} diff --git a/src/api/types/UpdateTwilioCredentialDto.ts b/src/api/types/UpdateTwilioCredentialDto.ts index 919c2c4..bc443a3 100644 --- a/src/api/types/UpdateTwilioCredentialDto.ts +++ b/src/api/types/UpdateTwilioCredentialDto.ts @@ -3,10 +3,9 @@ */ export interface UpdateTwilioCredentialDto { - provider: "twilio"; /** This is not returned in the API. */ - authToken: string; - accountSid: string; + authToken?: string; /** This is the name of credential. This is just for your reference. */ name?: string; + accountSid?: string; } diff --git a/src/api/resources/phoneNumbers/client/requests/UpdatePhoneNumberDto.ts b/src/api/types/UpdateTwilioPhoneNumberDto.ts similarity index 63% rename from src/api/resources/phoneNumbers/client/requests/UpdatePhoneNumberDto.ts rename to src/api/types/UpdateTwilioPhoneNumberDto.ts index f5efb05..c692d16 100644 --- a/src/api/resources/phoneNumbers/client/requests/UpdatePhoneNumberDto.ts +++ b/src/api/types/UpdateTwilioPhoneNumberDto.ts @@ -2,9 +2,9 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Vapi from "../../../../index"; +import * as Vapi from "../index"; -export interface UpdatePhoneNumberDto { +export interface UpdateTwilioPhoneNumberDto { /** * This is the fallback destination an inbound call will be transferred to if: * 1. `assistantId` is not set @@ -13,7 +13,7 @@ export interface UpdatePhoneNumberDto { * * If this is not set and above conditions are met, the inbound call is hung up with an error message. */ - fallbackDestination?: Vapi.UpdatePhoneNumberDtoFallbackDestination; + fallbackDestination?: Vapi.UpdateTwilioPhoneNumberDtoFallbackDestination; /** This is the name of the phone number. This is just for your own reference. */ name?: string; /** @@ -29,17 +29,19 @@ export interface UpdatePhoneNumberDto { */ squadId?: string; /** - * This is the server URL where messages will be sent for calls on this number. This includes the `assistant-request` message. + * This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema. * - * You can see the shape of the messages sent in `ServerMessage`. + * The order of precedence is: * - * This overrides the `org.serverUrl`. Order of precedence: tool.server.url > assistant.serverUrl > phoneNumber.serverUrl > org.serverUrl. + * 1. assistant.server + * 2. phoneNumber.server + * 3. org.server */ - serverUrl?: string; - /** - * This is the secret Vapi will send with every message to your server. It's sent as a header called x-vapi-secret. - * - * Same precedence logic as serverUrl. - */ - serverUrlSecret?: string; + server?: Vapi.Server; + /** These are the digits of the phone number you own on your Twilio. */ + number?: string; + /** This is the Twilio Account SID for the phone number. */ + twilioAccountSid?: string; + /** This is the Twilio Auth Token for the phone number. */ + twilioAuthToken?: string; } diff --git a/src/api/types/UpdateTwilioPhoneNumberDtoFallbackDestination.ts b/src/api/types/UpdateTwilioPhoneNumberDtoFallbackDestination.ts new file mode 100644 index 0000000..f9618f4 --- /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"; + +/** + * 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/UpdateVapiPhoneNumberDto.ts b/src/api/types/UpdateVapiPhoneNumberDto.ts new file mode 100644 index 0000000..f620c2d --- /dev/null +++ b/src/api/types/UpdateVapiPhoneNumberDto.ts @@ -0,0 +1,53 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export interface 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. + */ + fallbackDestination?: Vapi.UpdateVapiPhoneNumberDtoFallbackDestination; + /** This is the name of the phone number. This is just for your own reference. */ + name?: string; + /** + * This is the assistant that will be used for incoming calls to this phone number. + * + * If neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected. + */ + assistantId?: string; + /** + * This is the squad that will be used for incoming calls to this phone number. + * + * If neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected. + */ + squadId?: string; + /** + * This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema. + * + * The order of precedence is: + * + * 1. assistant.server + * 2. phoneNumber.server + * 3. org.server + */ + server?: Vapi.Server; + /** + * This is the SIP URI of the phone number. You can SIP INVITE this. The assistant attached to this number will answer. + * + * This is case-insensitive. + */ + sipUri?: string; + /** + * This enables authentication for incoming SIP INVITE requests to the `sipUri`. + * + * If not set, any username/password to the 401 challenge of the SIP INVITE will be accepted. + */ + authentication?: Vapi.SipAuthentication; +} diff --git a/src/api/types/UpdateVapiPhoneNumberDtoFallbackDestination.ts b/src/api/types/UpdateVapiPhoneNumberDtoFallbackDestination.ts new file mode 100644 index 0000000..9439864 --- /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"; + +/** + * 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/UpdateVonageCredentialDto.ts b/src/api/types/UpdateVonageCredentialDto.ts index 74a8f0f..fde19f3 100644 --- a/src/api/types/UpdateVonageCredentialDto.ts +++ b/src/api/types/UpdateVonageCredentialDto.ts @@ -3,10 +3,9 @@ */ export interface UpdateVonageCredentialDto { - provider: "vonage"; /** This is not returned in the API. */ - apiSecret: string; - apiKey: string; + apiSecret?: string; /** This is the name of credential. This is just for your reference. */ name?: string; + apiKey?: string; } diff --git a/src/api/types/UpdateVonagePhoneNumberDto.ts b/src/api/types/UpdateVonagePhoneNumberDto.ts new file mode 100644 index 0000000..a639829 --- /dev/null +++ b/src/api/types/UpdateVonagePhoneNumberDto.ts @@ -0,0 +1,45 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export interface 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. + */ + fallbackDestination?: Vapi.UpdateVonagePhoneNumberDtoFallbackDestination; + /** This is the name of the phone number. This is just for your own reference. */ + name?: string; + /** + * This is the assistant that will be used for incoming calls to this phone number. + * + * If neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected. + */ + assistantId?: string; + /** + * This is the squad that will be used for incoming calls to this phone number. + * + * If neither `assistantId` nor `squadId` is set, `assistant-request` will be sent to your Server URL. Check `ServerMessage` and `ServerMessageResponse` for the shape of the message and response that is expected. + */ + squadId?: string; + /** + * This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema. + * + * The order of precedence is: + * + * 1. assistant.server + * 2. phoneNumber.server + * 3. org.server + */ + server?: Vapi.Server; + /** These are the digits of the phone number you own on your Vonage. */ + number?: string; + /** This is the credential that is used to make outgoing calls, and do operations like call transfer and hang up. */ + credentialId?: string; +} diff --git a/src/api/types/UpdateVonagePhoneNumberDtoFallbackDestination.ts b/src/api/types/UpdateVonagePhoneNumberDtoFallbackDestination.ts new file mode 100644 index 0000000..175df9a --- /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"; + +/** + * 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/UpdateWorkflowBlockDto.ts b/src/api/types/UpdateWorkflowBlockDto.ts new file mode 100644 index 0000000..87cd6fc --- /dev/null +++ b/src/api/types/UpdateWorkflowBlockDto.ts @@ -0,0 +1,35 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export interface UpdateWorkflowBlockDto { + /** These are the pre-configured messages that will be spoken to the user while the block is running. */ + messages?: Vapi.UpdateWorkflowBlockDtoMessagesItem[]; + /** + * This is the input schema for the block. This is the input the block needs to run. It's given to the block as `steps[0].input` + * + * These are accessible as variables: + * - ({{input.propertyName}}) in context of the block execution (step) + * - ({{stepName.input.propertyName}}) in context of the workflow + */ + inputSchema?: Vapi.JsonSchema; + /** + * This is the output schema for the block. This is the output the block will return to the workflow (`{{stepName.output}}`). + * + * These are accessible as variables: + * - ({{output.propertyName}}) in context of the block execution (step) + * - ({{stepName.output.propertyName}}) in context of the workflow (read caveat #1) + * - ({{blockName.output.propertyName}}) in context of the workflow (read caveat #2) + * + * Caveats: + * 1. a workflow can execute a step multiple times. example, if a loop is used in the graph. {{stepName.output.propertyName}} will reference the latest usage of the step. + * 2. a workflow can execute a block multiple times. example, if a step is called multiple times or if a block is used in multiple steps. {{blockName.output.propertyName}} will reference the latest usage of the block. this liquid variable is just provided for convenience when creating blocks outside of a workflow with steps. + */ + outputSchema?: Vapi.JsonSchema; + /** These are the steps in the workflow. */ + steps?: Vapi.UpdateWorkflowBlockDtoStepsItem[]; + /** This is the name of the block. This is just for your reference. */ + name?: string; +} diff --git a/src/api/types/UpdateWorkflowBlockDtoMessagesItem.ts b/src/api/types/UpdateWorkflowBlockDtoMessagesItem.ts new file mode 100644 index 0000000..6695579 --- /dev/null +++ b/src/api/types/UpdateWorkflowBlockDtoMessagesItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export type UpdateWorkflowBlockDtoMessagesItem = Vapi.BlockStartMessage | Vapi.BlockCompleteMessage; diff --git a/src/api/types/UpdateWorkflowBlockDtoStepsItem.ts b/src/api/types/UpdateWorkflowBlockDtoStepsItem.ts new file mode 100644 index 0000000..d0e5b96 --- /dev/null +++ b/src/api/types/UpdateWorkflowBlockDtoStepsItem.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as Vapi from "../index"; + +export type UpdateWorkflowBlockDtoStepsItem = Vapi.HandoffStep | Vapi.CallbackStep; diff --git a/src/api/types/UpdateXAiCredentialDto.ts b/src/api/types/UpdateXAiCredentialDto.ts index 0225cc0..57acd17 100644 --- a/src/api/types/UpdateXAiCredentialDto.ts +++ b/src/api/types/UpdateXAiCredentialDto.ts @@ -3,10 +3,8 @@ */ export interface UpdateXAiCredentialDto { - /** This is the api key for Grok in XAi's console. Get it from here: https://console.x.ai */ - provider: "xai"; /** This is not returned in the API. */ - apiKey: string; + apiKey?: string; /** This is the name of credential. This is just for your reference. */ name?: string; } diff --git a/src/api/types/VapiPhoneNumber.ts b/src/api/types/VapiPhoneNumber.ts index fdccc24..7d0053e 100644 --- a/src/api/types/VapiPhoneNumber.ts +++ b/src/api/types/VapiPhoneNumber.ts @@ -38,19 +38,15 @@ export interface VapiPhoneNumber { */ squadId?: string; /** - * This is the server URL where messages will be sent for calls on this number. This includes the `assistant-request` message. + * This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema. * - * You can see the shape of the messages sent in `ServerMessage`. + * The order of precedence is: * - * This overrides the `org.serverUrl`. Order of precedence: tool.server.url > assistant.serverUrl > phoneNumber.serverUrl > org.serverUrl. + * 1. assistant.server + * 2. phoneNumber.server + * 3. org.server */ - serverUrl?: string; - /** - * This is the secret Vapi will send with every message to your server. It's sent as a header called x-vapi-secret. - * - * Same precedence logic as serverUrl. - */ - serverUrlSecret?: string; + server?: Vapi.Server; /** * This is the SIP URI of the phone number. You can SIP INVITE this. The assistant attached to this number will answer. * diff --git a/src/api/types/VonagePhoneNumber.ts b/src/api/types/VonagePhoneNumber.ts index f827bac..7659d2b 100644 --- a/src/api/types/VonagePhoneNumber.ts +++ b/src/api/types/VonagePhoneNumber.ts @@ -38,19 +38,15 @@ export interface VonagePhoneNumber { */ squadId?: string; /** - * This is the server URL where messages will be sent for calls on this number. This includes the `assistant-request` message. + * This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema. * - * You can see the shape of the messages sent in `ServerMessage`. + * The order of precedence is: * - * This overrides the `org.serverUrl`. Order of precedence: tool.server.url > assistant.serverUrl > phoneNumber.serverUrl > org.serverUrl. + * 1. assistant.server + * 2. phoneNumber.server + * 3. org.server */ - serverUrl?: string; - /** - * This is the secret Vapi will send with every message to your server. It's sent as a header called x-vapi-secret. - * - * Same precedence logic as serverUrl. - */ - serverUrlSecret?: string; + server?: Vapi.Server; /** These are the digits of the phone number you own on your Vonage. */ number: string; /** This is the credential that is used to make outgoing calls, and do operations like call transfer and hang up. */ diff --git a/src/api/types/index.ts b/src/api/types/index.ts index b24b9a3..922887c 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -8,6 +8,8 @@ export * from "./GladiaTranscriberModel"; export * from "./GladiaTranscriberLanguageBehaviour"; export * from "./GladiaTranscriberLanguage"; export * from "./GladiaTranscriber"; +export * from "./AzureSpeechTranscriberLanguage"; +export * from "./AzureSpeechTranscriber"; export * from "./TextContentLanguage"; export * from "./TextContent"; export * from "./ConditionOperator"; @@ -64,6 +66,11 @@ export * from "./CustomLlmModelMetadataSendMode"; export * from "./CustomLlmModel"; export * from "./DeepInfraModelToolsItem"; export * from "./DeepInfraModel"; +export * from "./GeminiMultimodalLivePrebuiltVoiceConfigVoiceName"; +export * from "./GeminiMultimodalLivePrebuiltVoiceConfig"; +export * from "./GeminiMultimodalLiveVoiceConfig"; +export * from "./GeminiMultimodalLiveSpeechConfig"; +export * from "./GoogleRealtimeConfig"; export * from "./GoogleModelToolsItem"; export * from "./GoogleModelModel"; export * from "./GoogleModel"; @@ -72,6 +79,8 @@ export * from "./GroqModelModel"; export * from "./GroqModel"; export * from "./InflectionAiModelToolsItem"; export * from "./InflectionAiModel"; +export * from "./DeepSeekModelToolsItem"; +export * from "./DeepSeekModel"; export * from "./OpenAiModelToolsItem"; export * from "./OpenAiModelModel"; export * from "./OpenAiModelFallbackModelsItem"; @@ -128,6 +137,9 @@ export * from "./RimeAiVoiceIdEnum"; export * from "./RimeAiVoiceId"; export * from "./RimeAiVoiceModel"; export * from "./RimeAiVoice"; +export * from "./SmallestAiVoiceIdEnum"; +export * from "./SmallestAiVoiceId"; +export * from "./SmallestAiVoice"; export * from "./TavusConversationProperties"; export * from "./TavusVoiceVoiceId"; export * from "./TavusVoice"; @@ -163,10 +175,61 @@ export * from "./FallbackRimeAiVoiceIdEnum"; export * from "./FallbackRimeAiVoiceId"; export * from "./FallbackRimeAiVoiceModel"; export * from "./FallbackRimeAiVoice"; +export * from "./FallbackSmallestAiVoiceIdEnum"; +export * from "./FallbackSmallestAiVoiceId"; +export * from "./FallbackSmallestAiVoice"; export * from "./FallbackTavusVoiceVoiceId"; export * from "./FallbackTavusVoice"; export * from "./TransportConfigurationTwilioRecordingChannels"; export * from "./TransportConfigurationTwilio"; +export * from "./CreateAnthropicCredentialDto"; +export * from "./CreateAnyscaleCredentialDto"; +export * from "./CreateAssemblyAiCredentialDto"; +export * from "./AzureBlobStorageBucketPlan"; +export * from "./CreateAzureCredentialDtoService"; +export * from "./CreateAzureCredentialDtoRegion"; +export * from "./CreateAzureCredentialDto"; +export * from "./CreateAzureOpenAiCredentialDtoRegion"; +export * from "./CreateAzureOpenAiCredentialDtoModelsItem"; +export * from "./CreateAzureOpenAiCredentialDto"; +export * from "./SipTrunkGatewayOutboundProtocol"; +export * from "./SipTrunkGateway"; +export * from "./SipTrunkOutboundSipRegisterPlan"; +export * from "./SipTrunkOutboundAuthenticationPlan"; +export * from "./SbcConfiguration"; +export * from "./CreateByoSipTrunkCredentialDto"; +export * from "./CreateCartesiaCredentialDto"; +export * from "./CloudflareR2BucketPlan"; +export * from "./CreateCloudflareCredentialDto"; +export * from "./OAuth2AuthenticationPlan"; +export * from "./CreateCustomLlmCredentialDto"; +export * from "./CreateDeepgramCredentialDto"; +export * from "./CreateDeepInfraCredentialDto"; +export * from "./CreateDeepSeekCredentialDto"; +export * from "./CreateElevenLabsCredentialDto"; +export * from "./GcpKey"; +export * from "./BucketPlan"; +export * from "./CreateGcpCredentialDto"; +export * from "./CreateGladiaCredentialDto"; +export * from "./CreateGoHighLevelCredentialDto"; +export * from "./CreateGroqCredentialDto"; +export * from "./CreateLangfuseCredentialDto"; +export * from "./CreateLmntCredentialDto"; +export * from "./CreateMakeCredentialDto"; +export * from "./CreateOpenAiCredentialDto"; +export * from "./CreateOpenRouterCredentialDto"; +export * from "./CreatePerplexityAiCredentialDto"; +export * from "./CreatePlayHtCredentialDto"; +export * from "./CreateRimeAiCredentialDto"; +export * from "./CreateRunpodCredentialDto"; +export * from "./CreateS3CredentialDto"; +export * from "./CreateSmallestAiCredentialDto"; +export * from "./CreateTavusCredentialDto"; +export * from "./CreateTogetherAiCredentialDto"; +export * from "./CreateTwilioCredentialDto"; +export * from "./CreateVonageCredentialDto"; +export * from "./CreateWebhookCredentialDto"; +export * from "./CreateXAiCredentialDto"; export * from "./TwilioVoicemailDetectionVoicemailDetectionTypesItem"; export * from "./TwilioVoicemailDetection"; export * from "./StructuredDataPlan"; @@ -191,6 +254,7 @@ export * from "./CreateAssistantDtoFirstMessageMode"; export * from "./CreateAssistantDtoClientMessagesItem"; export * from "./CreateAssistantDtoServerMessagesItem"; export * from "./CreateAssistantDtoBackgroundSound"; +export * from "./CreateAssistantDtoCredentialsItem"; export * from "./CreateAssistantDto"; export * from "./AssistantOverridesTranscriber"; export * from "./AssistantOverridesModel"; @@ -199,6 +263,7 @@ export * from "./AssistantOverridesFirstMessageMode"; export * from "./AssistantOverridesClientMessagesItem"; export * from "./AssistantOverridesServerMessagesItem"; export * from "./AssistantOverridesBackgroundSound"; +export * from "./AssistantOverridesCredentialsItem"; export * from "./AssistantOverrides"; export * from "./SquadMemberDto"; export * from "./CreateSquadDto"; @@ -233,6 +298,7 @@ export * from "./AssistantFirstMessageMode"; export * from "./AssistantClientMessagesItem"; export * from "./AssistantServerMessagesItem"; export * from "./AssistantBackgroundSound"; +export * from "./AssistantCredentialsItem"; export * from "./Assistant"; export * from "./ByoPhoneNumberFallbackDestination"; export * from "./ByoPhoneNumber"; @@ -251,27 +317,20 @@ export * from "./CreateVonagePhoneNumberDtoFallbackDestination"; export * from "./CreateVonagePhoneNumberDto"; export * from "./CreateVapiPhoneNumberDtoFallbackDestination"; export * from "./CreateVapiPhoneNumberDto"; +export * from "./UpdateByoPhoneNumberDtoFallbackDestination"; +export * from "./UpdateByoPhoneNumberDto"; +export * from "./UpdateTwilioPhoneNumberDtoFallbackDestination"; +export * from "./UpdateTwilioPhoneNumberDto"; +export * from "./UpdateVonagePhoneNumberDtoFallbackDestination"; +export * from "./UpdateVonagePhoneNumberDto"; +export * from "./UpdateVapiPhoneNumberDtoFallbackDestination"; +export * from "./UpdateVapiPhoneNumberDto"; export * from "./BuyPhoneNumberDtoFallbackDestination"; export * from "./BuyPhoneNumberDto"; export * from "./ImportVonagePhoneNumberDtoFallbackDestination"; export * from "./ImportVonagePhoneNumberDto"; export * from "./PhoneNumberPaginatedResponseResultsItem"; export * from "./PhoneNumberPaginatedResponse"; -export * from "./AutoReloadPlan"; -export * from "./SubscriptionType"; -export * from "./SubscriptionStatus"; -export * from "./Subscription"; -export * from "./PaymentStatus"; -export * from "./Payment"; -export * from "./PaymentsPaginatedResponse"; -export * from "./SubscriptionMonthlyCharge"; -export * from "./CreditsBuyDto"; -export * from "./AutoReloadPlanDto"; -export * from "./PaymentRetryDto"; -export * from "./SubscriptionConcurrencyLineBuyDto"; -export * from "./SubscriptionConcurrencyLineRemoveDto"; -export * from "./HipaaBuyDto"; -export * from "./SubscriptionCouponAddDto"; export * from "./Squad"; export * from "./TrieveKnowledgeBaseVectorStoreSearchPlanSearchType"; export * from "./TrieveKnowledgeBaseVectorStoreSearchPlan"; @@ -279,6 +338,8 @@ export * from "./TrieveKnowledgeBaseVectorStoreCreatePlan"; export * from "./TrieveKnowledgeBase"; export * from "./CustomKnowledgeBase"; export * from "./CreateTrieveKnowledgeBaseDto"; +export * from "./UpdateTrieveKnowledgeBaseDto"; +export * from "./UpdateCustomKnowledgeBaseDto"; export * from "./ConversationBlockMessagesItem"; export * from "./ConversationBlock"; export * from "./ToolCallBlockMessagesItem"; @@ -302,6 +363,14 @@ export * from "./CreateToolCallBlockDto"; export * from "./CreateWorkflowBlockDtoMessagesItem"; export * from "./CreateWorkflowBlockDtoStepsItem"; export * from "./CreateWorkflowBlockDto"; +export * from "./UpdateConversationBlockDtoMessagesItem"; +export * from "./UpdateConversationBlockDto"; +export * from "./UpdateToolCallBlockDtoMessagesItem"; +export * from "./UpdateToolCallBlockDtoTool"; +export * from "./UpdateToolCallBlockDto"; +export * from "./UpdateWorkflowBlockDtoMessagesItem"; +export * from "./UpdateWorkflowBlockDtoStepsItem"; +export * from "./UpdateWorkflowBlockDto"; export * from "./DtmfToolMessagesItem"; export * from "./DtmfTool"; export * from "./EndCallToolMessagesItem"; @@ -331,6 +400,27 @@ export * from "./CreateComputerToolDtoMessagesItem"; export * from "./CreateComputerToolDto"; export * from "./CreateTextEditorToolDtoMessagesItem"; export * from "./CreateTextEditorToolDto"; +export * from "./UpdateDtmfToolDtoMessagesItem"; +export * from "./UpdateDtmfToolDto"; +export * from "./UpdateEndCallToolDtoMessagesItem"; +export * from "./UpdateEndCallToolDto"; +export * from "./UpdateFunctionToolDtoMessagesItem"; +export * from "./UpdateFunctionToolDto"; +export * from "./UpdateGhlToolDtoMessagesItem"; +export * from "./UpdateGhlToolDto"; +export * from "./UpdateMakeToolDtoMessagesItem"; +export * from "./UpdateMakeToolDto"; +export * from "./UpdateTransferCallToolDtoMessagesItem"; +export * from "./UpdateTransferCallToolDtoDestinationsItem"; +export * from "./UpdateTransferCallToolDto"; +export * from "./UpdateOutputToolDtoMessagesItem"; +export * from "./UpdateOutputToolDto"; +export * from "./UpdateBashToolDtoMessagesItem"; +export * from "./UpdateBashToolDto"; +export * from "./UpdateComputerToolDtoMessagesItem"; +export * from "./UpdateComputerToolDto"; +export * from "./UpdateTextEditorToolDtoMessagesItem"; +export * from "./UpdateTextEditorToolDto"; export * from "./FileStatus"; export * from "./File_"; export * from "./Metrics"; @@ -352,29 +442,27 @@ export * from "./LogResource"; export * from "./LogRequestHttpMethod"; export * from "./Log"; export * from "./LogsPaginatedResponse"; +export * from "./ChatDto"; +export * from "./ChatServiceResponse"; export * from "./AnthropicCredential"; export * from "./AnyscaleCredential"; export * from "./AssemblyAiCredential"; +export * from "./AzureCredentialService"; export * from "./AzureCredentialRegion"; export * from "./AzureCredential"; export * from "./AzureOpenAiCredentialRegion"; export * from "./AzureOpenAiCredentialModelsItem"; export * from "./AzureOpenAiCredential"; -export * from "./SipTrunkGatewayOutboundProtocol"; -export * from "./SipTrunkGateway"; -export * from "./SipTrunkOutboundSipRegisterPlan"; -export * from "./SipTrunkOutboundAuthenticationPlan"; -export * from "./SbcConfiguration"; export * from "./ByoSipTrunkCredential"; export * from "./CartesiaCredential"; -export * from "./OAuth2AuthenticationPlan"; +export * from "./CerebrasCredential"; +export * from "./CloudflareCredential"; export * from "./Oauth2AuthenticationSession"; export * from "./CustomLlmCredential"; export * from "./DeepgramCredential"; export * from "./DeepInfraCredential"; +export * from "./DeepSeekCredential"; export * from "./ElevenLabsCredential"; -export * from "./GcpKey"; -export * from "./BucketPlan"; export * from "./GcpCredential"; export * from "./GladiaCredential"; export * from "./GoHighLevelCredential"; @@ -391,51 +479,20 @@ export * from "./PlayHtCredential"; export * from "./RimeAiCredential"; export * from "./RunpodCredential"; export * from "./S3Credential"; +export * from "./SmallestAiCredential"; export * from "./TavusCredential"; export * from "./TogetherAiCredential"; export * from "./TwilioCredential"; export * from "./VonageCredential"; export * from "./WebhookCredential"; export * from "./XAiCredential"; -export * from "./CreateAnthropicCredentialDto"; -export * from "./CreateAnyscaleCredentialDto"; -export * from "./CreateAssemblyAiCredentialDto"; -export * from "./CreateAzureCredentialDtoRegion"; -export * from "./CreateAzureCredentialDto"; -export * from "./CreateAzureOpenAiCredentialDtoRegion"; -export * from "./CreateAzureOpenAiCredentialDtoModelsItem"; -export * from "./CreateAzureOpenAiCredentialDto"; -export * from "./CreateByoSipTrunkCredentialDto"; -export * from "./CreateCartesiaCredentialDto"; -export * from "./CreateCustomLlmCredentialDto"; -export * from "./CreateDeepgramCredentialDto"; -export * from "./CreateDeepInfraCredentialDto"; -export * from "./CreateElevenLabsCredentialDto"; -export * from "./CreateGcpCredentialDto"; -export * from "./CreateGladiaCredentialDto"; -export * from "./CreateGoHighLevelCredentialDto"; +export * from "./CreateCerebrasCredentialDto"; export * from "./CreateGoogleCredentialDto"; -export * from "./CreateGroqCredentialDto"; export * from "./CreateInflectionAiCredentialDto"; -export * from "./CreateLangfuseCredentialDto"; -export * from "./CreateLmntCredentialDto"; -export * from "./CreateMakeCredentialDto"; -export * from "./CreateOpenAiCredentialDto"; -export * from "./CreateOpenRouterCredentialDto"; -export * from "./CreatePerplexityAiCredentialDto"; -export * from "./CreatePlayHtCredentialDto"; -export * from "./CreateRimeAiCredentialDto"; -export * from "./CreateRunpodCredentialDto"; -export * from "./CreateS3CredentialDto"; -export * from "./CreateTavusCredentialDto"; -export * from "./CreateTogetherAiCredentialDto"; -export * from "./CreateTwilioCredentialDto"; -export * from "./CreateVonageCredentialDto"; -export * from "./CreateWebhookCredentialDto"; -export * from "./CreateXAiCredentialDto"; export * from "./UpdateAnthropicCredentialDto"; export * from "./UpdateAnyscaleCredentialDto"; export * from "./UpdateAssemblyAiCredentialDto"; +export * from "./UpdateAzureCredentialDtoService"; export * from "./UpdateAzureCredentialDtoRegion"; export * from "./UpdateAzureCredentialDto"; export * from "./UpdateAzureOpenAiCredentialDtoRegion"; @@ -443,9 +500,12 @@ export * from "./UpdateAzureOpenAiCredentialDtoModelsItem"; export * from "./UpdateAzureOpenAiCredentialDto"; export * from "./UpdateByoSipTrunkCredentialDto"; export * from "./UpdateCartesiaCredentialDto"; +export * from "./UpdateCerebrasCredentialDto"; +export * from "./UpdateCloudflareCredentialDto"; export * from "./UpdateCustomLlmCredentialDto"; export * from "./UpdateDeepgramCredentialDto"; export * from "./UpdateDeepInfraCredentialDto"; +export * from "./UpdateDeepSeekCredentialDto"; export * from "./UpdateElevenLabsCredentialDto"; export * from "./UpdateGcpCredentialDto"; export * from "./UpdateGladiaCredentialDto"; @@ -463,6 +523,7 @@ export * from "./UpdatePlayHtCredentialDto"; export * from "./UpdateRimeAiCredentialDto"; export * from "./UpdateRunpodCredentialDto"; export * from "./UpdateS3CredentialDto"; +export * from "./UpdateSmallestAiCredentialDto"; export * from "./UpdateTavusCredentialDto"; export * from "./UpdateTogetherAiCredentialDto"; export * from "./UpdateTwilioCredentialDto"; @@ -470,6 +531,10 @@ export * from "./UpdateVonageCredentialDto"; export * from "./UpdateXAiCredentialDto"; export * from "./CreateOrgDtoChannel"; export * from "./CreateOrgDto"; +export * from "./AutoReloadPlan"; +export * from "./SubscriptionType"; +export * from "./SubscriptionStatus"; +export * from "./Subscription"; export * from "./OrgPlan"; export * from "./OrgChannel"; export * from "./Org"; @@ -513,6 +578,8 @@ export * from "./CreateTokenDtoTag"; export * from "./CreateTokenDto"; export * from "./TokenTag"; export * from "./Token"; +export * from "./UpdateTokenDtoTag"; +export * from "./UpdateTokenDto"; export * from "./SyncVoiceLibraryDtoProvidersItem"; export * from "./SyncVoiceLibraryDto"; export * from "./ClientMessageConversationUpdateMessagesItem"; diff --git a/src/version.ts b/src/version.ts index c499869..c5505af 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "0.2.2"; +export const SDK_VERSION = "0.3.0"; diff --git a/yarn.lock b/yarn.lock index 7b008b1..094b270 100644 --- a/yarn.lock +++ b/yarn.lock @@ -19,10 +19,10 @@ js-tokens "^4.0.0" picocolors "^1.0.0" -"@babel/compat-data@^7.25.9": - version "7.26.3" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.26.3.tgz#99488264a56b2aded63983abd6a417f03b92ed02" - integrity sha512-nHIxvKPniQXpmQLb0vhY3VaFb3S0YrTAwpOWJZh1wn3oJPjJk9Asva204PsBdmAE8vpzfHudT8DB0scYvy9q0g== +"@babel/compat-data@^7.26.5": + version "7.26.5" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.26.5.tgz#df93ac37f4417854130e21d72c66ff3d4b897fc7" + integrity sha512-XvcZi1KWf88RVbF9wn8MN6tYFloU5qX8KjuF3E1PVBmJ9eypXfs4GRiJwLuTZL0iSnJUKn1BFPa5BPZZJyFzPg== "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9": version "7.26.0" @@ -45,23 +45,23 @@ json5 "^2.2.3" semver "^6.3.1" -"@babel/generator@^7.26.0", "@babel/generator@^7.26.3", "@babel/generator@^7.7.2": - version "7.26.3" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.26.3.tgz#ab8d4360544a425c90c248df7059881f4b2ce019" - integrity sha512-6FF/urZvD0sTeO7k6/B15pMLC4CHUv1426lzr3N01aHJTl046uCAh9LXW/fzeXXjPNCJ6iABW5XaWOsIZB93aQ== +"@babel/generator@^7.26.0", "@babel/generator@^7.26.5", "@babel/generator@^7.7.2": + version "7.26.5" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.26.5.tgz#e44d4ab3176bbcaf78a5725da5f1dc28802a9458" + integrity sha512-2caSP6fN9I7HOe6nqhtft7V4g7/V/gfDsC3Ag4W7kEzzvRGKqiv0pu0HogPiZ3KaVSoNDhUws6IJjDjpfmYIXw== dependencies: - "@babel/parser" "^7.26.3" - "@babel/types" "^7.26.3" + "@babel/parser" "^7.26.5" + "@babel/types" "^7.26.5" "@jridgewell/gen-mapping" "^0.3.5" "@jridgewell/trace-mapping" "^0.3.25" jsesc "^3.0.2" "@babel/helper-compilation-targets@^7.25.9": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.9.tgz#55af025ce365be3cdc0c1c1e56c6af617ce88875" - integrity sha512-j9Db8Suy6yV/VHa4qzrj9yZfZxhLWQdVnRlXxmKLYlhWUVB1sB2G5sxuWYXk/whHD9iW76PmNzxZ4UCnTQTVEQ== + version "7.26.5" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.26.5.tgz#75d92bb8d8d51301c0d49e52a65c9a7fe94514d8" + integrity sha512-IXuyn5EkouFJscIDuFF5EsiSolseme1s0CZB+QxVugqJLYmKdxI1VfIBOst0SUu4rnk2Z7kqTwmoO1lp3HIfnA== dependencies: - "@babel/compat-data" "^7.25.9" + "@babel/compat-data" "^7.26.5" "@babel/helper-validator-option" "^7.25.9" browserslist "^4.24.0" lru-cache "^5.1.1" @@ -85,9 +85,9 @@ "@babel/traverse" "^7.25.9" "@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.25.9", "@babel/helper-plugin-utils@^7.8.0": - version "7.25.9" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.25.9.tgz#9cbdd63a9443a2c92a725cca7ebca12cc8dd9f46" - integrity sha512-kSMlyUVdWe25rEsRGviIgOWnoT/nfABVWlqt9N19/dIPWViAOW2s9wznP5tURbs/IDuNk4gPy3YdYRgH3uxhBw== + version "7.26.5" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.26.5.tgz#18580d00c9934117ad719392c4f6585c9333cc35" + integrity sha512-RS+jZcRdZdRFzMyr+wcsaqOmld1/EqTghfaBGQQd/WnRdzdlvSZ//kF7U8VQTxf1ynZ4cjUcYgjVGx13ewNPMg== "@babel/helper-string-parser@^7.25.9": version "7.25.9" @@ -112,12 +112,12 @@ "@babel/template" "^7.25.9" "@babel/types" "^7.26.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.25.9", "@babel/parser@^7.26.0", "@babel/parser@^7.26.3": - version "7.26.3" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.26.3.tgz#8c51c5db6ddf08134af1ddbacf16aaab48bac234" - integrity sha512-WJ/CvmY8Mea8iDXo6a7RK2wbmJITT5fN3BEkRuFlxVyNx8jOKIIhmC4fSkTcPcf8JyavbBwIe6OpiCOBXt/IcA== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.25.9", "@babel/parser@^7.26.0", "@babel/parser@^7.26.5": + version "7.26.5" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.26.5.tgz#6fec9aebddef25ca57a935c86dbb915ae2da3e1f" + integrity sha512-SRJ4jYmXRqV1/Xc+TIVG84WjHBXKlxO9sHQnA2Pf12QQEAp1LOh6kDzNHXcUnbH1QI0FDoPPVOt+vyUDucxpaw== dependencies: - "@babel/types" "^7.26.3" + "@babel/types" "^7.26.5" "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" @@ -248,22 +248,22 @@ "@babel/types" "^7.25.9" "@babel/traverse@^7.25.9": - version "7.26.4" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.26.4.tgz#ac3a2a84b908dde6d463c3bfa2c5fdc1653574bd" - integrity sha512-fH+b7Y4p3yqvApJALCPJcwb0/XaOSgtK4pzV6WVjPR5GLFQBRI7pfoX2V2iM48NXvX07NUxxm1Vw98YjqTcU5w== + version "7.26.5" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.26.5.tgz#6d0be3e772ff786456c1a37538208286f6e79021" + integrity sha512-rkOSPOw+AXbgtwUga3U4u8RpoK9FEFWBNAlTpcnkLFjL5CT+oyHNuUUC/xx6XefEJ16r38r8Bc/lfp6rYuHeJQ== dependencies: "@babel/code-frame" "^7.26.2" - "@babel/generator" "^7.26.3" - "@babel/parser" "^7.26.3" + "@babel/generator" "^7.26.5" + "@babel/parser" "^7.26.5" "@babel/template" "^7.25.9" - "@babel/types" "^7.26.3" + "@babel/types" "^7.26.5" debug "^4.3.1" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.25.9", "@babel/types@^7.26.0", "@babel/types@^7.26.3", "@babel/types@^7.3.3": - version "7.26.3" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.26.3.tgz#37e79830f04c2b5687acc77db97fbc75fb81f3c0" - integrity sha512-vN5p+1kl59GVKMvTHt55NzzmYVxprfJD+ql7U9NFIfKCBkYE55LYtS+WtPlaYOyzydrKI8Nezd+aZextrd+FMA== +"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.25.9", "@babel/types@^7.26.0", "@babel/types@^7.26.5", "@babel/types@^7.3.3": + version "7.26.5" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.26.5.tgz#7a1e1c01d28e26d1fe7f8ec9567b3b92b9d07747" + integrity sha512-L6mZmwFDK6Cjh1nRCLXpa6no13ZIioJDz7mdkzHv399pThrTa/k0nUlNaenOeh2kWu/iaOQYElEpKPUswUa9Vg== dependencies: "@babel/helper-string-parser" "^7.25.9" "@babel/helper-validator-identifier" "^7.25.9" @@ -656,9 +656,9 @@ form-data "^4.0.0" "@types/node@*": - version "22.10.2" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.10.2.tgz#a485426e6d1fdafc7b0d4c7b24e2c78182ddabb9" - integrity sha512-Xxr6BBRCAOQixvonOye19wnzyDiUtTeqldOOmj3CkeblonbccA12PFwlufvRdrpjXxqnmUaeiU5EOA+7s5diUQ== + version "22.10.6" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.10.6.tgz#5c6795e71635876039f853cbccd59f523d9e4239" + integrity sha512-qNiuwC4ZDAUNcY47xgaSuS92cjf8JbSUoaKS77bmLG1rU7MlATVSiw/IlrjtIyyskXBZ8KkNfjK/P5na7rgXbQ== dependencies: undici-types "~6.20.0" @@ -1049,9 +1049,9 @@ braces@^3.0.3: fill-range "^7.1.1" browserslist@^4.24.0: - version "4.24.3" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.3.tgz#5fc2725ca8fb3c1432e13dac278c7cc103e026d2" - integrity sha512-1CPmv8iobE2fyRMV97dAcMVegvvWKxmq94hkLiAkUGwKVTyDLw33K+ZxiFrREKmmps4rIw6grcCFCnTMSZ/YiA== + version "4.24.4" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.4.tgz#c6b2865a3f08bcb860a0e827389003b9fe686e4b" + integrity sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A== dependencies: caniuse-lite "^1.0.30001688" electron-to-chromium "^1.5.73" @@ -1117,9 +1117,9 @@ camelcase@^6.2.0: integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caniuse-lite@^1.0.30001688: - version "1.0.30001690" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001690.tgz#f2d15e3aaf8e18f76b2b8c1481abde063b8104c8" - integrity sha512-5ExiE3qQN6oF8Clf8ifIDcMRCRE/dMGcETG/XGMD8/XiXm6HXQgQTh1yZYLXXpSOsEUlJm1Xr7kGULZTuGtP/w== + version "1.0.30001692" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001692.tgz#4585729d95e6b95be5b439da6ab55250cd125bf9" + integrity sha512-A95VKan0kdtrsnMubMKxEKUKImOPSuCpYgxSQBo036P5YYgVIcOYJEgt/txJWqObiRQeISNCfef9nvlQ0vbV7A== chalk@^4.0.0, chalk@^4.1.0: version "4.1.2" @@ -1294,7 +1294,7 @@ domexception@^4.0.0: dependencies: webidl-conversions "^7.0.0" -dunder-proto@^1.0.0: +dunder-proto@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/dunder-proto/-/dunder-proto-1.0.1.tgz#d7ae667e1dc83482f8b70fd0f6eefc50da30f58a" integrity sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A== @@ -1304,9 +1304,9 @@ dunder-proto@^1.0.0: gopd "^1.2.0" electron-to-chromium@^1.5.73: - version "1.5.76" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.76.tgz#db20295c5061b68f07c8ea4dfcbd701485d94a3d" - integrity sha512-CjVQyG7n7Sr+eBXE86HIulnL5N8xZY1sgmOPGuq/F0Rr0FJq63lg0kEtOIDfZBk44FnDLf6FUJ+dsJcuiUDdDQ== + version "1.5.82" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.82.tgz#b9116ac6d6b6346c2baa49f14c1272ba2ce1ccdb" + integrity sha512-Zq16uk1hfQhyGx5GpwPAYDwddJuSGhtRhgOA2mCxANYaDT79nAeGnaXogMGng4KqLaJUVnOnuL0+TDop9nLOiA== emittery@^0.13.1: version "0.13.1" @@ -1349,14 +1349,14 @@ es-errors@^1.3.0: integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== es-module-lexer@^1.2.1: - version "1.5.4" - resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.5.4.tgz#a8efec3a3da991e60efa6b633a7cad6ab8d26b78" - integrity sha512-MVNK56NiMrOwitFB7cqDwq0CQutbw+0BvLshJSse0MUNU+y1FC3bUS/AQg7oUng+/wKrrki7JfmwtVHkVfPLlw== + version "1.6.0" + resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.6.0.tgz#da49f587fd9e68ee2404fe4e256c0c7d3a81be21" + integrity sha512-qqnD1yMU6tk/jnaMosogGySTZP8YtUgAffA9nMN+E/rjxcfRQ6IEk7IiozUjgxKoFHBGjTLnrHB/YC45r/59EQ== es-object-atoms@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/es-object-atoms/-/es-object-atoms-1.0.0.tgz#ddb55cd47ac2e240701260bc2a8e31ecb643d941" - integrity sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw== + version "1.0.1" + resolved "https://registry.yarnpkg.com/es-object-atoms/-/es-object-atoms-1.0.1.tgz#ecdf38b6784b194d38065df324300bbf515c73ed" + integrity sha512-BPOBuyUF9QIVhuNLhbToCLHP6+0MHwZ7xLBkPPCZqK4JmpJgGnv10035STzzQwFpqdzNFMB3irvDI63IagvDwA== dependencies: es-errors "^1.3.0" @@ -1468,9 +1468,9 @@ fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0, fast-json-sta integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== fast-uri@^3.0.1: - version "3.0.3" - resolved "https://registry.yarnpkg.com/fast-uri/-/fast-uri-3.0.3.tgz#892a1c91802d5d7860de728f18608a0573142241" - integrity sha512-aLrHthzCjH5He4Z2H9YZ+v6Ujb9ocRuW6ZzkJQOrTxleEijANq4v1TsaPaVG1PZcuurEzrLcWRyYBYXD5cEiaw== + version "3.0.5" + resolved "https://registry.yarnpkg.com/fast-uri/-/fast-uri-3.0.5.tgz#19f5f9691d0dab9b85861a7bb5d98fca961da9cd" + integrity sha512-5JnBCWpFlMo0a3ciDy/JckMzzv1U9coZrIhedq+HXxxUfDTAiS0LA8OKVao4G9BxmCVck/jtA5r3KAtRWEyD8Q== fb-watchman@^2.0.0: version "2.0.2" @@ -1539,26 +1539,34 @@ get-caller-file@^2.0.5: integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== get-intrinsic@^1.2.5, get-intrinsic@^1.2.6: - version "1.2.6" - resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.6.tgz#43dd3dd0e7b49b82b2dfcad10dc824bf7fc265d5" - integrity sha512-qxsEs+9A+u85HhllWJJFicJfPDhRmjzoYdl64aMWW9yRIJmSyxdn8IEkuIM530/7T+lv0TIHd8L6Q/ra0tEoeA== + version "1.2.7" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.7.tgz#dcfcb33d3272e15f445d15124bc0a216189b9044" + integrity sha512-VW6Pxhsrk0KAOqs3WEd0klDiF/+V7gQOpAvY1jVU/LHmaD/kQO4523aiJuikX/QAKYiW6x8Jh+RJej1almdtCA== dependencies: call-bind-apply-helpers "^1.0.1" - dunder-proto "^1.0.0" es-define-property "^1.0.1" es-errors "^1.3.0" es-object-atoms "^1.0.0" function-bind "^1.1.2" + get-proto "^1.0.0" gopd "^1.2.0" has-symbols "^1.1.0" hasown "^2.0.2" - math-intrinsics "^1.0.0" + math-intrinsics "^1.1.0" get-package-type@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== +get-proto@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/get-proto/-/get-proto-1.0.1.tgz#150b3f2743869ef3e851ec0c49d15b1d14d00ee1" + integrity sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g== + dependencies: + dunder-proto "^1.0.1" + es-object-atoms "^1.0.0" + get-stream@^6.0.0: version "6.0.1" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" @@ -2294,7 +2302,7 @@ makeerror@1.0.12: dependencies: tmpl "1.0.5" -math-intrinsics@^1.0.0: +math-intrinsics@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz#a0dd74be81e2aa5c2f27e65ce283605ee4e2b7f9" integrity sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g== @@ -2467,7 +2475,7 @@ path-parse@^1.0.7: resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== -picocolors@^1.0.0, picocolors@^1.1.0: +picocolors@^1.0.0, picocolors@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b" integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA== @@ -2558,9 +2566,9 @@ react-is@^18.0.0: integrity sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg== readable-stream@^4.5.2: - version "4.6.0" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-4.6.0.tgz#ce412dfb19c04efde1c5936d99c27f37a1ff94c9" - integrity sha512-cbAdYt0VcnpN2Bekq7PU+k363ZRsPwJoEEJOEtSJQlJXzwaxt3FIo/uL+KeDSGIjJqtkwyge4KQgD2S2kd+CQw== + version "4.7.0" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-4.7.0.tgz#cedbd8a1146c13dfff8dab14068028d58c15ac91" + integrity sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg== dependencies: abort-controller "^3.0.0" buffer "^6.0.3" @@ -2926,9 +2934,9 @@ ts-jest@29.1.1: yargs-parser "^21.0.1" ts-loader@^9.3.1: - version "9.5.1" - resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-9.5.1.tgz#63d5912a86312f1fbe32cef0859fb8b2193d9b89" - integrity sha512-rNH3sK9kGZcH9dYzC7CewQm4NtxJTjSEVRJ2DyBZR7f8/wcta+iV44UPCXc5+nzDzivKtlzV6c9P4e+oFhDLYg== + version "9.5.2" + resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-9.5.2.tgz#1f3d7f4bb709b487aaa260e8f19b301635d08020" + integrity sha512-Qo4piXvOTWcMGIgRiuFa6nHNm+54HbYaZCKqc9eeZCLRy3XqafQgwX2F7mofrbJG3g7EEb+lkiR+z2Lic2s3Zw== dependencies: chalk "^4.1.0" enhanced-resolve "^5.0.0" @@ -2962,12 +2970,12 @@ universalify@^0.2.0: integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== update-browserslist-db@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.1.tgz#80846fba1d79e82547fb661f8d141e0945755fe5" - integrity sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A== + version "1.1.2" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.2.tgz#97e9c96ab0ae7bcac08e9ae5151d26e6bc6b5580" + integrity sha512-PPypAm5qvlD7XMZC3BujecnaOxwhrtoFR+Dqkk5Aa/6DssiH0ibKoketaj9w8LP7Bont1rYeoV5plxD7RTEPRg== dependencies: escalade "^3.2.0" - picocolors "^1.1.0" + picocolors "^1.1.1" uri-js@^4.2.2: version "4.4.1"