├── tests ├── wire │ └── .gitkeep ├── unit │ ├── test-file.txt │ └── fetcher │ │ └── test-file.txt ├── mock-server │ ├── randomBaseUrl.ts │ └── setup.ts └── tsconfig.json ├── pnpm-workspace.yaml ├── .gitignore ├── src ├── exports.ts ├── core │ ├── logging │ │ └── index.ts │ ├── runtime │ │ └── index.ts │ ├── file │ │ ├── exports.ts │ │ └── index.ts │ ├── exports.ts │ ├── fetcher │ │ ├── getFetchFn.ts │ │ ├── ResponseWithBody.ts │ │ ├── createRequestUrl.ts │ │ └── getHeader.ts │ ├── form-data-utils │ │ └── index.ts │ ├── url │ │ └── index.ts │ ├── auth │ │ ├── AuthProvider.ts │ │ ├── index.ts │ │ └── AuthRequest.ts │ └── index.ts ├── version.ts ├── api │ ├── resources │ │ ├── files │ │ │ ├── index.ts │ │ │ └── client │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ ├── GetFilesRequest.ts │ │ │ │ ├── DeleteFilesRequest.ts │ │ │ │ └── index.ts │ │ ├── squads │ │ │ ├── index.ts │ │ │ └── client │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ ├── GetSquadsRequest.ts │ │ │ │ ├── DeleteSquadsRequest.ts │ │ │ │ └── index.ts │ │ ├── analytics │ │ │ ├── index.ts │ │ │ └── client │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ └── index.ts │ │ ├── calls │ │ │ ├── client │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ └── GetCallsRequest.ts │ │ │ ├── index.ts │ │ │ └── types │ │ │ │ ├── index.ts │ │ │ │ └── CreateCallsResponse.ts │ │ ├── chats │ │ │ ├── client │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── GetChatsRequest.ts │ │ │ │ │ └── DeleteChatsRequest.ts │ │ │ ├── index.ts │ │ │ └── types │ │ │ │ ├── CreateChatsResponse.ts │ │ │ │ └── ListChatsRequestSortOrder.ts │ │ ├── eval │ │ │ ├── client │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── EvalControllerGetRequest.ts │ │ │ │ │ ├── EvalControllerGetRunRequest.ts │ │ │ │ │ ├── EvalControllerRemoveRequest.ts │ │ │ │ │ └── EvalControllerRemoveRunRequest.ts │ │ │ ├── index.ts │ │ │ └── types │ │ │ │ ├── CreateEvalRunDtoTarget.ts │ │ │ │ └── index.ts │ │ ├── insight │ │ │ ├── client │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── InsightControllerRemoveRequest.ts │ │ │ │ │ └── InsightControllerFindOneRequest.ts │ │ │ ├── index.ts │ │ │ └── types │ │ │ │ ├── InsightControllerCreateResponse.ts │ │ │ │ ├── InsightControllerFindOneResponse.ts │ │ │ │ ├── InsightControllerRemoveResponse.ts │ │ │ │ └── InsightControllerUpdateResponse.ts │ │ ├── sessions │ │ │ ├── client │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── GetSessionsRequest.ts │ │ │ │ │ └── DeleteSessionsRequest.ts │ │ │ └── index.ts │ │ ├── tools │ │ │ ├── client │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── GetToolsRequest.ts │ │ │ │ │ ├── DeleteToolsRequest.ts │ │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── types │ │ │ │ └── ToolControllerTestCodeExecutionResponse.ts │ │ ├── assistants │ │ │ ├── client │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── GetAssistantsRequest.ts │ │ │ │ │ ├── DeleteAssistantsRequest.ts │ │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── campaigns │ │ │ ├── client │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── CampaignControllerRemoveRequest.ts │ │ │ │ │ └── CampaignControllerFindOneRequest.ts │ │ │ ├── index.ts │ │ │ └── types │ │ │ │ └── index.ts │ │ ├── phoneNumbers │ │ │ ├── client │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── GetPhoneNumbersRequest.ts │ │ │ │ │ └── DeletePhoneNumbersRequest.ts │ │ │ └── index.ts │ │ ├── providerResources │ │ │ ├── client │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── structuredOutputs │ │ │ ├── client │ │ │ │ ├── index.ts │ │ │ │ └── requests │ │ │ │ │ ├── StructuredOutputControllerFindOneRequest.ts │ │ │ │ │ └── StructuredOutputControllerRemoveRequest.ts │ │ │ ├── index.ts │ │ │ └── types │ │ │ │ └── index.ts │ │ └── observabilityScorecard │ │ │ ├── client │ │ │ ├── index.ts │ │ │ └── requests │ │ │ │ ├── ScorecardControllerGetRequest.ts │ │ │ │ └── ScorecardControllerRemoveRequest.ts │ │ │ ├── index.ts │ │ │ └── types │ │ │ └── index.ts │ ├── errors │ │ └── index.ts │ ├── index.ts │ └── types │ │ ├── SbcConfiguration.ts │ │ ├── SecurityFilterBase.ts │ │ ├── FailedEdgeCondition.ts │ │ ├── LogicEdgeCondition.ts │ │ ├── SayAssistantHookAction.ts │ │ ├── AssistantHookCallEnding.ts │ │ ├── NeetsVoice.ts │ │ ├── TransferAssistantHookAction.ts │ │ ├── FunctionCallAssistantHookAction.ts │ │ ├── FallbackNeetsVoice.ts │ │ ├── AssistantHookAssistantSpeechInterrupted.ts │ │ ├── AssistantHookCustomerSpeechInterrupted.ts │ │ ├── AssistantUserEditable.ts │ │ ├── CredentialSessionResponse.ts │ │ ├── GhlToolMetadata.ts │ │ ├── JwtResponse.ts │ │ ├── CredentialSessionError.ts │ │ ├── MakeToolMetadata.ts │ │ ├── ChatCostsItem.ts │ │ ├── CredentialActionRequest.ts │ │ ├── WorkflowNodesItem.ts │ │ ├── CreateTestSuiteRunDto.ts │ │ ├── UpdateTestSuiteRunDto.ts │ │ ├── FileObject.ts │ │ ├── SessionCostsItem.ts │ │ ├── SmartDenoisingPlan.ts │ │ ├── VariableValueGroupBy.ts │ │ ├── CreateWorkflowDtoNodesItem.ts │ │ ├── UpdateWorkflowDtoNodesItem.ts │ │ ├── CartesiaSpeedControl.ts │ │ ├── TemplateType.ts │ │ ├── ToolTemplateMetadata.ts │ │ ├── WorkflowUserEditableNodesItem.ts │ │ ├── FormatPlanReplacementsItem.ts │ │ ├── SipTrunkOutboundSipRegisterPlan.ts │ │ ├── ToolTemplateSetup.ts │ │ ├── CallBatchError.ts │ │ ├── OpenAiMessage.ts │ │ ├── ByoPhoneNumberHooksItem.ts │ │ ├── ChatAssistantOverrides.ts │ │ ├── ContextEngineeringPlanAll.ts │ │ ├── HangupNodeType.ts │ │ ├── TestSuiteRunTestAttemptMetadata.ts │ │ ├── TextContentType.ts │ │ ├── UpdateUserRoleDto.ts │ │ ├── CallHookCustomerSpeechTimeoutDoItem.ts │ │ ├── CallHookModelResponseTimeoutDoItem.ts │ │ ├── ContextEngineeringPlanNone.ts │ │ ├── VapiPhoneNumberHooksItem.ts │ │ ├── XaiModelProvider.ts │ │ ├── CallPaginatedResponse.ts │ │ ├── ChatPaginatedResponse.ts │ │ ├── EvalPaginatedResponse.ts │ │ ├── GroqModelProvider.ts │ │ ├── HandoffToolDestinationsItem.ts │ │ ├── TelnyxPhoneNumberHooksItem.ts │ │ ├── TwilioPhoneNumberHooksItem.ts │ │ ├── VapiModelProvider.ts │ │ ├── VonagePhoneNumberHooksItem.ts │ │ ├── AiEdgeConditionType.ts │ │ ├── CallHookAssistantSpeechInterruptedDoItem.ts │ │ ├── CallHookCustomerSpeechInterruptedDoItem.ts │ │ ├── FallbackTranscriberPlan.ts │ │ ├── AzureVoiceId.ts │ │ ├── CreateByoPhoneNumberDtoHooksItem.ts │ │ ├── CreateVapiPhoneNumberDtoHooksItem.ts │ │ ├── CredentialEndUser.ts │ │ ├── EvalRunPaginatedResponse.ts │ │ ├── GladiaCustomVocabularyConfigDtoVocabularyItem.ts │ │ ├── InsightPaginatedResponse.ts │ │ ├── InsightRunResponse.ts │ │ ├── LmntVoiceId.ts │ │ ├── PhoneNumberHookCallRingingDoItem.ts │ │ ├── SessionPaginatedResponse.ts │ │ ├── UpdateByoPhoneNumberDtoHooksItem.ts │ │ ├── UpdateVapiPhoneNumberDtoHooksItem.ts │ │ ├── AssistantPaginatedResponse.ts │ │ ├── CampaignPaginatedResponse.ts │ │ ├── CreateTelnyxPhoneNumberDtoHooksItem.ts │ │ ├── CreateTwilioPhoneNumberDtoHooksItem.ts │ │ ├── CreateVonagePhoneNumberDtoHooksItem.ts │ │ ├── GeminiMultimodalLiveSpeechConfig.ts │ │ ├── GhlToolType.ts │ │ ├── GoogleModelProvider.ts │ │ ├── ImportTwilioPhoneNumberDtoHooksItem.ts │ │ ├── ImportVonagePhoneNumberDtoHooksItem.ts │ │ ├── PlayHtVoiceId.ts │ │ ├── RimeAiVoiceId.ts │ │ ├── ScorecardPaginatedResponse.ts │ │ ├── TestSuiteTestsPaginatedResponseResultsItem.ts │ │ ├── UpdateTelnyxPhoneNumberDtoHooksItem.ts │ │ ├── UpdateTwilioPhoneNumberDtoHooksItem.ts │ │ ├── UpdateVonagePhoneNumberDtoHooksItem.ts │ │ ├── BarInsightMetadata.ts │ │ ├── CompliancePlanRecordingConsentPlan.ts │ │ ├── CreateHandoffToolDtoDestinationsItem.ts │ │ ├── GcpCredentialProvider.ts │ │ ├── InviteUserDto.ts │ │ ├── RceSecurityFilter.ts │ │ ├── StartSpeakingPlanSmartEndpointingEnabled.ts │ │ ├── TestSuitesPaginatedResponse.ts │ │ ├── UpdateHandoffToolDtoDestinationsItem.ts │ │ ├── XssSecurityFilter.ts │ │ ├── BashToolName.ts │ │ ├── CreateSesameVoiceDto.ts │ │ ├── FileStatus.ts │ │ ├── GroqCredentialProvider.ts │ │ ├── HumeCredentialProvider.ts │ │ ├── LineInsightMetadata.ts │ │ ├── LmntCredentialProvider.ts │ │ ├── MakeCredentialProvider.ts │ │ ├── MakeToolType.ts │ │ ├── SmallestAiVoiceId.ts │ │ ├── SsrfSecurityFilter.ts │ │ ├── TavusVoiceVoiceId.ts │ │ ├── TestSuiteRunTestAttemptCall.ts │ │ ├── TextContent.ts │ │ ├── AnyscaleModelProvider.ts │ │ ├── AzureCredentialProvider.ts │ │ ├── CerebrasModelProvider.ts │ │ ├── ComplianceOverride.ts │ │ ├── DeepSeekModelProvider.ts │ │ ├── FallbackLmntVoiceId.ts │ │ ├── FunctionCall.ts │ │ ├── GeminiMultimodalLiveVoiceConfig.ts │ │ ├── TavusCredentialProvider.ts │ │ ├── TavusVoiceVoiceIdZero.ts │ │ ├── TestSuiteRunsPaginatedResponse.ts │ │ ├── CallHookTranscriberEndpointedSpeechLowConfidenceDoItem.ts │ │ ├── DeepInfraModelProvider.ts │ │ ├── EvalModelListOptions.ts │ │ ├── EvalRunTarget.ts │ │ ├── TemplateVisibility.ts │ │ ├── UpdateGoogleCalendarOAuth2ClientCredentialDto.ts │ │ ├── AutoReloadPlan.ts │ │ ├── BashToolSubType.ts │ │ ├── ChatCostType.ts │ │ ├── CreateToolTemplateDtoType.ts │ │ ├── FallbackAzureVoiceId.ts │ │ ├── FallbackPlayHtVoiceId.ts │ │ ├── FallbackRimeAiVoiceId.ts │ │ ├── GladiaCredentialProvider.ts │ │ ├── OpenAiCredentialProvider.ts │ │ ├── OpenRouterModelProvider.ts │ │ ├── PlayHtCredentialProvider.ts │ │ ├── ProviderResourcePaginatedResponse.ts │ │ ├── RimeAiCredentialProvider.ts │ │ ├── RunpodCredentialProvider.ts │ │ ├── StructuredOutputPaginatedResponse.ts │ │ ├── SyncVoiceLibraryDto.ts │ │ ├── ToolCallFunction.ts │ │ ├── ToolMessageRole.ts │ │ ├── TrieveCredentialProvider.ts │ │ ├── TwilioCredentialProvider.ts │ │ ├── UpdateToolTemplateDtoType.ts │ │ ├── VapiCostType.ts │ │ ├── VonageCredentialProvider.ts │ │ ├── AzureVoiceIdEnum.ts │ │ ├── GeminiMultimodalLivePrebuiltVoiceConfig.ts │ │ ├── InworldCredentialProvider.ts │ │ ├── MistralCredentialProvider.ts │ │ ├── OutputToolType.ts │ │ ├── SesameVoiceModel.ts │ │ ├── SquadMemberDtoAssistantDestinationsItem.ts │ │ ├── TogetherAiModelProvider.ts │ │ ├── TransferDestinationSipType.ts │ │ ├── WebhookCredentialProvider.ts │ │ ├── CartesiaExperimentalControls.ts │ │ ├── CartesiaTranscriberModel.ts │ │ ├── FallbackSmallestAiVoiceId.ts │ │ ├── FallbackTavusVoiceVoiceId.ts │ │ ├── ModelCostType.ts │ │ ├── ResponseErrorEventType.ts │ │ ├── ResponseObjectObject.ts │ │ ├── SayHookActionType.ts │ │ ├── SqlInjectionSecurityFilter.ts │ │ ├── VoiceCostType.ts │ │ ├── AnyscaleCredentialProvider.ts │ │ ├── CartesiaCredentialProvider.ts │ │ ├── CerebrasCredentialProvider.ts │ │ ├── ChatInput.ts │ │ ├── ComputerToolName.ts │ │ ├── CustomMessageType.ts │ │ ├── DeepSeekCredentialProvider.ts │ │ ├── DeepgramCredentialProvider.ts │ │ ├── HumeVoiceProvider.ts │ │ ├── InflectionAiModelProvider.ts │ │ ├── InviteUserDtoRole.ts │ │ ├── LangfuseCredentialProvider.ts │ │ ├── LmntVoiceProvider.ts │ │ ├── PerplexityAiModelProvider.ts │ │ ├── PromptInjectionSecurityFilter.ts │ │ ├── TokenTag.ts │ │ ├── VapiVoiceProvider.ts │ │ ├── WellSaidCredentialProvider.ts │ │ ├── CreateGhlToolDtoType.ts │ │ ├── CustomCredentialProvider.ts │ │ ├── ServerMessageResponseCallEndpointingRequest.ts │ │ ├── TemplateProvider.ts │ │ ├── UpdateGroqCredentialDto.ts │ │ ├── UpdateHumeCredentialDto.ts │ │ ├── UpdateLmntCredentialDto.ts │ │ ├── UpdateXAiCredentialDto.ts │ │ ├── AnthropicThinkingConfigType.ts │ │ ├── AssistantVersionPaginatedResponse.ts │ │ ├── AzureVoiceProvider.ts │ │ ├── BashToolMessagesItem.ts │ │ ├── CartesiaTranscriberProvider.ts │ │ ├── ChatOutputItem.ts │ │ ├── CodeToolEnvironmentVariable.ts │ │ ├── CodeToolMessagesItem.ts │ │ ├── ContextEngineeringPlanAllType.ts │ │ ├── DtmfToolMessagesItem.ts │ │ ├── GhlToolMessagesItem.ts │ │ ├── HumeVoiceModel.ts │ │ ├── InworldVoiceModel.ts │ │ ├── MakeToolMessagesItem.ts │ │ ├── McpToolMessagesItem.ts │ │ ├── McpToolMetadata.ts │ │ ├── PaginationMeta.ts │ │ ├── QueryToolMessagesItem.ts │ │ ├── SessionCostType.ts │ │ ├── SmsToolMessagesItem.ts │ │ ├── TavusVoiceProvider.ts │ │ ├── TransferMode.ts │ │ ├── UpdateGladiaCredentialDto.ts │ │ ├── UpdateGoogleCredentialDto.ts │ │ ├── UpdateOpenAiCredentialDto.ts │ │ ├── UpdateRimeAiCredentialDto.ts │ │ ├── UpdateRunpodCredentialDto.ts │ │ ├── UpdateTrieveCredentialDto.ts │ │ ├── VapiCostSubType.ts │ │ ├── VapiSmartEndpointingPlan.ts │ │ ├── VoiceLibraryGender.ts │ │ ├── AnthropicCredentialProvider.ts │ │ ├── ChatInputOneItem.ts │ │ ├── ChatMessagesItem.ts │ │ ├── ComputerToolSubType.ts │ │ ├── CreateBashToolDtoName.ts │ │ ├── CreateCodeToolDtoType.ts │ │ ├── CreateMakeToolDtoType.ts │ │ ├── CustomLlmCredentialProvider.ts │ │ ├── DeepInfraCredentialProvider.ts │ │ ├── EndCallToolMessagesItem.ts │ │ ├── FallbackPlan.ts │ │ ├── GroupConditionType.ts │ │ ├── HandoffToolMessagesItem.ts │ │ ├── KnowledgeBaseProvider.ts │ │ ├── NeuphonicCredentialProvider.ts │ │ ├── OpenAiVoiceProvider.ts │ │ ├── OutputToolMessagesItem.ts │ │ ├── PlayHtVoiceProvider.ts │ │ ├── RceSecurityFilterType.ts │ │ ├── RegexConditionType.ts │ │ ├── RimeAiVoiceProvider.ts │ │ ├── S3CredentialProvider.ts │ │ ├── SesameVoiceProvider.ts │ │ ├── TransferCallToolDestinationsItem.ts │ │ ├── TransferDestinationNumberType.ts │ │ ├── TransferFallbackPlanMessage.ts │ │ ├── UpdateAnthropicCredentialDto.ts │ │ ├── UpdateAnyscaleCredentialDto.ts │ │ ├── UpdateBashToolDtoName.ts │ │ ├── UpdateCartesiaCredentialDto.ts │ │ ├── UpdateCerebrasCredentialDto.ts │ │ ├── UpdateDeepInfraCredentialDto.ts │ │ ├── UpdateDeepSeekCredentialDto.ts │ │ ├── UpdateMistralCredentialDto.ts │ │ ├── UpdateNeuphonicCredentialDto.ts │ │ ├── UpdateWellSaidCredentialDto.ts │ │ ├── WorkflowVoicemailDetectionZero.ts │ │ ├── XssSecurityFilterType.ts │ │ ├── AnalysisCostType.ts │ │ ├── ApiRequestToolMessagesItem.ts │ │ ├── AssemblyAiCredentialProvider.ts │ │ ├── AssistantMessageRole.ts │ │ ├── AssistantVoicemailDetectionZero.ts │ │ ├── CallMessagesItem.ts │ │ ├── ComputerToolMessagesItem.ts │ │ ├── ContextEngineeringPlanNoneType.ts │ │ ├── DeveloperMessageRole.ts │ │ ├── EvalGroqModelProvider.ts │ │ ├── EvalRunType.ts │ │ ├── FunctionToolMessagesItem.ts │ │ ├── GhlToolWithToolCallType.ts │ │ ├── HandoffDestinationDynamicType.ts │ │ ├── LiquidConditionType.ts │ │ ├── OpenRouterCredentialProvider.ts │ │ ├── ResponseOutputTextType.ts │ │ ├── SessionMessagesItem.ts │ │ ├── SmallestAiCredentialProvider.ts │ │ ├── SsrfSecurityFilterType.ts │ │ ├── TextEditorToolMessagesItem.ts │ │ ├── TogetherAiCredentialProvider.ts │ │ ├── UpdateAssemblyAiCredentialDto.ts │ │ ├── UpdateGoHighLevelCredentialDto.ts │ │ ├── UpdateOpenRouterCredentialDto.ts │ │ ├── UpdateTogetherAiCredentialDto.ts │ │ ├── UpdateUserRoleDtoRole.ts │ │ ├── WebChatOutputItem.ts │ │ ├── ArtifactMessagesItem.ts │ │ ├── CallHookCallEndingOn.ts │ │ ├── ClientInboundMessage.ts │ │ ├── Compliance.ts │ │ ├── CreateGhlToolDtoMessagesItem.ts │ │ ├── CreateMcpToolDtoMessagesItem.ts │ │ ├── CreateSmsToolDtoMessagesItem.ts │ │ ├── FallbackTavusVoiceVoiceIdZero.ts │ │ ├── GoHighLevelCredentialProvider.ts │ │ ├── InworldVoiceProvider.ts │ │ ├── MinimaxVoiceProvider.ts │ │ ├── OpenAiModelProvider.ts │ │ ├── PhoneNumberHookCallEndingDo.ts │ │ ├── RegexSecurityFilterType.ts │ │ ├── SpkiPemPublicKeyConfig.ts │ │ ├── TestSuiteTestChatType.ts │ │ ├── ToolCallHookActionType.ts │ │ ├── TransferCallToolMessagesItem.ts │ │ ├── TransportCostType.ts │ │ ├── UpdateGhlToolDtoMessagesItem.ts │ │ ├── UpdateInflectionAiCredentialDto.ts │ │ ├── UpdateMcpToolDtoMessagesItem.ts │ │ ├── UpdatePerplexityAiCredentialDto.ts │ │ ├── UpdateSmsToolDtoMessagesItem.ts │ │ ├── WorkflowBackgroundSoundZero.ts │ │ ├── AnthropicModelProvider.ts │ │ ├── AssistantBackgroundSoundZero.ts │ │ ├── AzureOpenAiCredentialProvider.ts │ │ ├── BashToolWithToolCallName.ts │ │ ├── BashToolWithToolCallType.ts │ │ ├── CallHookFilterType.ts │ │ ├── CartesiaVoiceProvider.ts │ │ ├── ClientInboundMessageEndCall.ts │ │ ├── CreateBashToolDtoMessagesItem.ts │ │ ├── CreateBashToolDtoSubType.ts │ │ ├── CreateCodeToolDtoMessagesItem.ts │ │ ├── CreateDtmfToolDtoMessagesItem.ts │ │ ├── CreateGoogleCalendarOAuth2ClientCredentialDto.ts │ │ ├── CreateMakeToolDtoMessagesItem.ts │ │ ├── CreateOutputToolDtoMessagesItem.ts │ │ ├── CreateQueryToolDtoMessagesItem.ts │ │ ├── CreateTransferCallToolDtoDestinationsItem.ts │ │ ├── CredentialWebhookDtoType.ts │ │ ├── DeepgramVoiceProvider.ts │ │ ├── ElevenLabsVoiceId.ts │ │ ├── FallbackSesameVoiceModel.ts │ │ ├── GhlToolWithToolCallMessagesItem.ts │ │ ├── GladiaTranscriberModel.ts │ │ ├── InsightType.ts │ │ ├── MakeToolWithToolCallType.ts │ │ ├── TextEditorToolSubType.ts │ │ ├── UpdateBashToolDtoMessagesItem.ts │ │ ├── UpdateBashToolDtoSubType.ts │ │ ├── UpdateCodeToolDtoMessagesItem.ts │ │ ├── UpdateDtmfToolDtoMessagesItem.ts │ │ ├── UpdateMakeToolDtoMessagesItem.ts │ │ ├── UpdateOutputToolDtoMessagesItem.ts │ │ ├── UpdateQueryToolDtoMessagesItem.ts │ │ ├── UpdateTransferCallToolDtoDestinationsItem.ts │ │ ├── WellSaidVoiceModel.ts │ │ ├── WellSaidVoiceProvider.ts │ │ ├── AiEdgeCondition.ts │ │ ├── BashToolWithToolCallMessagesItem.ts │ │ ├── ClientInboundMessageTransferDestination.ts │ │ ├── CreateComputerToolDtoMessagesItem.ts │ │ ├── CreateEndCallToolDtoMessagesItem.ts │ │ ├── CreateFunctionToolDtoMessagesItem.ts │ │ ├── CreateHandoffToolDtoMessagesItem.ts │ │ ├── CreateOutputToolDtoType.ts │ │ ├── CreateWebChatDtoInput.ts │ │ ├── EvalGoogleModelProvider.ts │ │ ├── EvalOpenAiModelProvider.ts │ │ ├── GhlToolProviderDetailsType.ts │ │ ├── HandoffDestinationAssistantType.ts │ │ ├── MakeToolWithToolCallMessagesItem.ts │ │ ├── NeuphonicVoiceProvider.ts │ │ ├── NodeArtifactMessagesItem.ts │ │ ├── PerplexityAiCredentialProvider.ts │ │ ├── ResponseOutputMessageRole.ts │ │ ├── ResponseOutputMessageType.ts │ │ ├── SayHookActionPromptOneItem.ts │ │ ├── SlackSendMessageToolMessagesItem.ts │ │ ├── SpeechmaticsCredentialProvider.ts │ │ ├── TestSuiteRunScorerAiType.ts │ │ ├── TestSuiteTestVoiceType.ts │ │ ├── TransferHookActionType.ts │ │ ├── UpdateComputerToolDtoMessagesItem.ts │ │ ├── UpdateEndCallToolDtoMessagesItem.ts │ │ ├── UpdateFunctionToolDtoMessagesItem.ts │ │ ├── UpdateHandoffToolDtoMessagesItem.ts │ │ ├── AnalyticsQueryTable.ts │ │ ├── BarInsightQueriesItem.ts │ │ ├── ComputerToolWithToolCallMessagesItem.ts │ │ ├── CreateApiRequestToolDtoMessagesItem.ts │ │ ├── CreateGroqCredentialDto.ts │ │ ├── CreateHumeCredentialDto.ts │ │ ├── CreateLmntCredentialDto.ts │ │ ├── CreateTextEditorToolDtoMessagesItem.ts │ │ ├── CreateVoicemailToolDtoMessagesItem.ts │ │ ├── CreateWebChatDtoInputOneItem.ts │ │ ├── CreateXAiCredentialDto.ts │ │ ├── FallbackCartesiaTranscriberModel.ts │ │ ├── FallbackHumeVoiceProvider.ts │ │ ├── FallbackLmntVoiceProvider.ts │ │ ├── FallbackVapiVoiceProvider.ts │ │ ├── FunctionCallHookActionMessagesItem.ts │ │ ├── FunctionToolWithToolCallMessagesItem.ts │ │ ├── LangfuseObservabilityPlanProvider.ts │ │ ├── PieInsightQueriesItem.ts │ │ ├── ResponseCompletedEvent.ts │ │ ├── ResponseCompletedEventType.ts │ │ ├── SupabaseCredentialProvider.ts │ │ ├── TestSuiteTestScorerAiType.ts │ │ ├── TextEditorToolName.ts │ │ └── TransferDestinationAssistantType.ts ├── errors │ ├── index.ts │ └── VapiTimeoutError.ts ├── environments.ts └── index.ts ├── tsconfig.json ├── .fernignore ├── tsconfig.cjs.json └── tsconfig.esm.json /tests/wire/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pnpm-workspace.yaml: -------------------------------------------------------------------------------- 1 | packages: ['.'] -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | /dist -------------------------------------------------------------------------------- /src/exports.ts: -------------------------------------------------------------------------------- 1 | export * from "./core/exports.js"; 2 | -------------------------------------------------------------------------------- /tests/unit/test-file.txt: -------------------------------------------------------------------------------- 1 | This is a test file! 2 | -------------------------------------------------------------------------------- /src/core/logging/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./logger.js"; 2 | -------------------------------------------------------------------------------- /src/version.ts: -------------------------------------------------------------------------------- 1 | export const SDK_VERSION = "0.12.0"; 2 | -------------------------------------------------------------------------------- /tests/unit/fetcher/test-file.txt: -------------------------------------------------------------------------------- 1 | This is a test file! 2 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.cjs.json" 3 | } 4 | -------------------------------------------------------------------------------- /src/api/resources/files/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client/index.js"; 2 | -------------------------------------------------------------------------------- /src/api/resources/squads/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client/index.js"; 2 | -------------------------------------------------------------------------------- /src/core/runtime/index.ts: -------------------------------------------------------------------------------- 1 | export { RUNTIME } from "./runtime.js"; 2 | -------------------------------------------------------------------------------- /src/api/resources/analytics/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client/index.js"; 2 | -------------------------------------------------------------------------------- /src/core/file/exports.ts: -------------------------------------------------------------------------------- 1 | export type { Uploadable } from "./types.js"; 2 | -------------------------------------------------------------------------------- /src/api/resources/calls/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests/index.js"; 2 | -------------------------------------------------------------------------------- /src/api/resources/chats/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests/index.js"; 2 | -------------------------------------------------------------------------------- /src/api/resources/eval/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests/index.js"; 2 | -------------------------------------------------------------------------------- /src/api/resources/files/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests/index.js"; 2 | -------------------------------------------------------------------------------- /src/api/resources/insight/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests/index.js"; 2 | -------------------------------------------------------------------------------- /src/api/resources/sessions/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests/index.js"; 2 | -------------------------------------------------------------------------------- /src/api/resources/squads/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests/index.js"; 2 | -------------------------------------------------------------------------------- /src/api/resources/tools/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests/index.js"; 2 | -------------------------------------------------------------------------------- /.fernignore: -------------------------------------------------------------------------------- 1 | # Specify files that shouldn't be modified by Fern 2 | 3 | README.md 4 | -------------------------------------------------------------------------------- /src/api/resources/analytics/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests/index.js"; 2 | -------------------------------------------------------------------------------- /src/api/resources/assistants/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests/index.js"; 2 | -------------------------------------------------------------------------------- /src/api/resources/campaigns/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests/index.js"; 2 | -------------------------------------------------------------------------------- /src/api/resources/phoneNumbers/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests/index.js"; 2 | -------------------------------------------------------------------------------- /src/core/file/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./file.js"; 2 | export * from "./types.js"; 3 | -------------------------------------------------------------------------------- /src/api/resources/providerResources/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests/index.js"; 2 | -------------------------------------------------------------------------------- /src/api/resources/structuredOutputs/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests/index.js"; 2 | -------------------------------------------------------------------------------- /src/api/resources/observabilityScorecard/client/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./requests/index.js"; 2 | -------------------------------------------------------------------------------- /src/core/exports.ts: -------------------------------------------------------------------------------- 1 | export * from "./file/exports.js"; 2 | export * from "./logging/exports.js"; 3 | -------------------------------------------------------------------------------- /src/api/errors/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./BadRequestError.js"; 2 | export * from "./NotFoundError.js"; 3 | -------------------------------------------------------------------------------- /src/api/resources/eval/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client/index.js"; 2 | export * from "./types/index.js"; 3 | -------------------------------------------------------------------------------- /src/api/resources/calls/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client/index.js"; 2 | export * from "./types/index.js"; 3 | -------------------------------------------------------------------------------- /src/api/resources/campaigns/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client/index.js"; 2 | export * from "./types/index.js"; 3 | -------------------------------------------------------------------------------- /src/api/resources/chats/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client/index.js"; 2 | export * from "./types/index.js"; 3 | -------------------------------------------------------------------------------- /src/api/resources/insight/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client/index.js"; 2 | export * from "./types/index.js"; 3 | -------------------------------------------------------------------------------- /src/api/resources/sessions/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client/index.js"; 2 | export * from "./types/index.js"; 3 | -------------------------------------------------------------------------------- /src/api/resources/tools/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client/index.js"; 2 | export * from "./types/index.js"; 3 | -------------------------------------------------------------------------------- /src/api/resources/assistants/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client/index.js"; 2 | export * from "./types/index.js"; 3 | -------------------------------------------------------------------------------- /src/api/resources/phoneNumbers/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client/index.js"; 2 | export * from "./types/index.js"; 3 | -------------------------------------------------------------------------------- /src/api/resources/analytics/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export type { AnalyticsQueryDto } from "./AnalyticsQueryDto.js"; 2 | -------------------------------------------------------------------------------- /src/api/resources/providerResources/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client/index.js"; 2 | export * from "./types/index.js"; 3 | -------------------------------------------------------------------------------- /src/api/resources/structuredOutputs/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client/index.js"; 2 | export * from "./types/index.js"; 3 | -------------------------------------------------------------------------------- /src/core/fetcher/getFetchFn.ts: -------------------------------------------------------------------------------- 1 | export async function getFetchFn(): Promise { 2 | return fetch; 3 | } 4 | -------------------------------------------------------------------------------- /src/api/resources/observabilityScorecard/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./client/index.js"; 2 | export * from "./types/index.js"; 3 | -------------------------------------------------------------------------------- /src/api/resources/observabilityScorecard/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./ScorecardControllerGetPaginatedRequestSortOrder.js"; 2 | -------------------------------------------------------------------------------- /src/errors/index.ts: -------------------------------------------------------------------------------- 1 | export { VapiError } from "./VapiError.js"; 2 | export { VapiTimeoutError } from "./VapiTimeoutError.js"; 3 | -------------------------------------------------------------------------------- /src/api/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./errors/index.js"; 2 | export * from "./resources/index.js"; 3 | export * from "./types/index.js"; 4 | -------------------------------------------------------------------------------- /src/api/types/SbcConfiguration.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export type SbcConfiguration = {}; 4 | -------------------------------------------------------------------------------- /src/core/form-data-utils/index.ts: -------------------------------------------------------------------------------- 1 | export { encodeAsFormParameter } from "./encodeAsFormParameter.js"; 2 | export * from "./FormDataWrapper.js"; 3 | -------------------------------------------------------------------------------- /src/api/types/SecurityFilterBase.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export type SecurityFilterBase = {}; 4 | -------------------------------------------------------------------------------- /src/api/resources/calls/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./CallControllerFindAllPaginatedRequestSortOrder.js"; 2 | export * from "./CreateCallsResponse.js"; 3 | -------------------------------------------------------------------------------- /src/api/types/FailedEdgeCondition.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export type FailedEdgeCondition = unknown; 4 | -------------------------------------------------------------------------------- /src/api/types/LogicEdgeCondition.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export type LogicEdgeCondition = unknown; 4 | -------------------------------------------------------------------------------- /src/api/types/SayAssistantHookAction.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export type SayAssistantHookAction = unknown; 4 | -------------------------------------------------------------------------------- /src/api/types/AssistantHookCallEnding.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export type AssistantHookCallEnding = unknown; 4 | -------------------------------------------------------------------------------- /src/api/types/NeetsVoice.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface NeetsVoice { 4 | voiceId?: unknown; 5 | } 6 | -------------------------------------------------------------------------------- /src/core/url/index.ts: -------------------------------------------------------------------------------- 1 | export { encodePathParam } from "./encodePathParam.js"; 2 | export { join } from "./join.js"; 3 | export { toQueryString } from "./qs.js"; 4 | -------------------------------------------------------------------------------- /src/api/types/TransferAssistantHookAction.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export type TransferAssistantHookAction = unknown; 4 | -------------------------------------------------------------------------------- /src/api/resources/structuredOutputs/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./StructuredOutputControllerFindAllRequestSortOrder.js"; 2 | export * from "./UpdateStructuredOutputDtoModel.js"; 3 | -------------------------------------------------------------------------------- /src/api/types/FunctionCallAssistantHookAction.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export type FunctionCallAssistantHookAction = unknown; 4 | -------------------------------------------------------------------------------- /src/core/auth/AuthProvider.ts: -------------------------------------------------------------------------------- 1 | import type { AuthRequest } from "./AuthRequest.js"; 2 | 3 | export interface AuthProvider { 4 | getAuthRequest(): Promise; 5 | } 6 | -------------------------------------------------------------------------------- /src/api/types/FallbackNeetsVoice.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface FallbackNeetsVoice { 4 | voiceId?: unknown; 5 | } 6 | -------------------------------------------------------------------------------- /src/api/types/AssistantHookAssistantSpeechInterrupted.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export type AssistantHookAssistantSpeechInterrupted = unknown; 4 | -------------------------------------------------------------------------------- /src/api/types/AssistantHookCustomerSpeechInterrupted.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export type AssistantHookCustomerSpeechInterrupted = unknown; 4 | -------------------------------------------------------------------------------- /src/api/types/AssistantUserEditable.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface AssistantUserEditable { 4 | serverMessages?: unknown; 5 | } 6 | -------------------------------------------------------------------------------- /src/api/types/CredentialSessionResponse.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface CredentialSessionResponse { 4 | sessionToken: string; 5 | } 6 | -------------------------------------------------------------------------------- /src/api/types/GhlToolMetadata.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface GhlToolMetadata { 4 | workflowId?: string; 5 | locationId?: string; 6 | } 7 | -------------------------------------------------------------------------------- /src/api/types/JwtResponse.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface JwtResponse { 4 | accessToken: string; 5 | aud: Record; 6 | } 7 | -------------------------------------------------------------------------------- /tests/mock-server/randomBaseUrl.ts: -------------------------------------------------------------------------------- 1 | export function randomBaseUrl(): string { 2 | const randomString = Math.random().toString(36).substring(2, 15); 3 | return `http://${randomString}.localhost`; 4 | } 5 | -------------------------------------------------------------------------------- /src/api/types/CredentialSessionError.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface CredentialSessionError { 4 | type: string; 5 | description: string; 6 | } 7 | -------------------------------------------------------------------------------- /src/api/types/MakeToolMetadata.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface MakeToolMetadata { 4 | scenarioId?: number; 5 | triggerHookId?: number; 6 | } 7 | -------------------------------------------------------------------------------- /src/api/types/ChatCostsItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type ChatCostsItem = Vapi.ModelCost | Vapi.ChatCost; 6 | -------------------------------------------------------------------------------- /src/api/resources/campaigns/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./CampaignControllerFindAllRequestSortOrder.js"; 2 | export * from "./CampaignControllerFindAllRequestStatus.js"; 3 | export * from "./UpdateCampaignDtoStatus.js"; 4 | -------------------------------------------------------------------------------- /src/api/types/CredentialActionRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface CredentialActionRequest { 4 | action_name: string; 5 | input: Record; 6 | } 7 | -------------------------------------------------------------------------------- /src/api/types/WorkflowNodesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type WorkflowNodesItem = Vapi.ConversationNode | Vapi.ToolNode; 6 | -------------------------------------------------------------------------------- /src/core/auth/index.ts: -------------------------------------------------------------------------------- 1 | export type { AuthProvider } from "./AuthProvider.js"; 2 | export type { AuthRequest } from "./AuthRequest.js"; 3 | export { BasicAuth } from "./BasicAuth.js"; 4 | export { BearerToken } from "./BearerToken.js"; 5 | -------------------------------------------------------------------------------- /src/api/types/CreateTestSuiteRunDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface CreateTestSuiteRunDto { 4 | /** This is the name of the test suite run. */ 5 | name?: string; 6 | } 7 | -------------------------------------------------------------------------------- /src/api/types/UpdateTestSuiteRunDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdateTestSuiteRunDto { 4 | /** This is the name of the test suite run. */ 5 | name?: string; 6 | } 7 | -------------------------------------------------------------------------------- /tsconfig.cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.base.json", 3 | "compilerOptions": { 4 | "module": "CommonJS", 5 | "outDir": "dist/cjs" 6 | }, 7 | "include": ["src"], 8 | "exclude": [] 9 | } 10 | -------------------------------------------------------------------------------- /src/api/types/FileObject.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const FileObject = { 4 | File: "file", 5 | } as const; 6 | export type FileObject = (typeof FileObject)[keyof typeof FileObject]; 7 | -------------------------------------------------------------------------------- /src/api/types/SessionCostsItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type SessionCostsItem = Vapi.ModelCost | Vapi.AnalysisCost | Vapi.SessionCost; 6 | -------------------------------------------------------------------------------- /src/api/types/SmartDenoisingPlan.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface SmartDenoisingPlan { 4 | /** Whether smart denoising using Krisp is enabled. */ 5 | enabled?: boolean; 6 | } 7 | -------------------------------------------------------------------------------- /src/api/types/VariableValueGroupBy.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface VariableValueGroupBy { 4 | /** This is the key of the variable value to group by. */ 5 | key: string; 6 | } 7 | -------------------------------------------------------------------------------- /src/api/types/CreateWorkflowDtoNodesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CreateWorkflowDtoNodesItem = Vapi.ConversationNode | Vapi.ToolNode; 6 | -------------------------------------------------------------------------------- /src/api/types/UpdateWorkflowDtoNodesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type UpdateWorkflowDtoNodesItem = Vapi.ConversationNode | Vapi.ToolNode; 6 | -------------------------------------------------------------------------------- /src/api/resources/calls/types/CreateCallsResponse.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../../../index.js"; 4 | 5 | export type CreateCallsResponse = Vapi.Call | Vapi.CallBatchResponse; 6 | -------------------------------------------------------------------------------- /src/api/types/CartesiaSpeedControl.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CartesiaSpeedControl = Vapi.CartesiaExperimentalControlsSpeedZero | number; 6 | -------------------------------------------------------------------------------- /src/api/types/TemplateType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const TemplateType = { 4 | Tool: "tool", 5 | } as const; 6 | export type TemplateType = (typeof TemplateType)[keyof typeof TemplateType]; 7 | -------------------------------------------------------------------------------- /src/api/types/ToolTemplateMetadata.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface ToolTemplateMetadata { 4 | collectionType?: string; 5 | collectionId?: string; 6 | collectionName?: string; 7 | } 8 | -------------------------------------------------------------------------------- /src/api/types/WorkflowUserEditableNodesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type WorkflowUserEditableNodesItem = Vapi.ConversationNode | Vapi.ToolNode; 6 | -------------------------------------------------------------------------------- /src/environments.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const VapiEnvironment = { 4 | Default: "https://api.vapi.ai", 5 | } as const; 6 | 7 | export type VapiEnvironment = typeof VapiEnvironment.Default; 8 | -------------------------------------------------------------------------------- /src/api/types/FormatPlanReplacementsItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type FormatPlanReplacementsItem = Vapi.ExactReplacement | Vapi.RegexReplacement; 6 | -------------------------------------------------------------------------------- /src/api/types/SipTrunkOutboundSipRegisterPlan.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface SipTrunkOutboundSipRegisterPlan { 4 | domain?: string; 5 | username?: string; 6 | realm?: string; 7 | } 8 | -------------------------------------------------------------------------------- /src/api/types/ToolTemplateSetup.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface ToolTemplateSetup { 4 | title: string; 5 | description?: string; 6 | videoUrl?: string; 7 | docsUrl?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/resources/chats/types/CreateChatsResponse.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../../../index.js"; 4 | 5 | export type CreateChatsResponse = Vapi.Chat | Vapi.CreateChatStreamResponse; 6 | -------------------------------------------------------------------------------- /src/api/types/CallBatchError.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface CallBatchError { 6 | customer: Vapi.CreateCustomerDto; 7 | error: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/OpenAiMessage.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface OpenAiMessage { 6 | content: string | null; 7 | role: Vapi.OpenAiMessageRole; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/ByoPhoneNumberHooksItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type ByoPhoneNumberHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; 6 | -------------------------------------------------------------------------------- /src/api/types/ChatAssistantOverrides.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface ChatAssistantOverrides { 4 | /** Variable values for template substitution */ 5 | variableValues?: Record; 6 | } 7 | -------------------------------------------------------------------------------- /src/api/types/ContextEngineeringPlanAll.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface ContextEngineeringPlanAll { 6 | type: Vapi.ContextEngineeringPlanAllType; 7 | } 8 | -------------------------------------------------------------------------------- /src/api/types/HangupNodeType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const HangupNodeType = { 4 | Hangup: "hangup", 5 | } as const; 6 | export type HangupNodeType = (typeof HangupNodeType)[keyof typeof HangupNodeType]; 7 | -------------------------------------------------------------------------------- /src/api/types/TestSuiteRunTestAttemptMetadata.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface TestSuiteRunTestAttemptMetadata { 4 | /** This is the session ID for the test attempt. */ 5 | sessionId: string; 6 | } 7 | -------------------------------------------------------------------------------- /src/api/types/TextContentType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const TextContentType = { 4 | Text: "text", 5 | } as const; 6 | export type TextContentType = (typeof TextContentType)[keyof typeof TextContentType]; 7 | -------------------------------------------------------------------------------- /src/api/types/UpdateUserRoleDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface UpdateUserRoleDto { 6 | userId: string; 7 | role: Vapi.UpdateUserRoleDtoRole; 8 | } 9 | -------------------------------------------------------------------------------- /src/core/auth/AuthRequest.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Request parameters for authentication requests. 3 | */ 4 | export interface AuthRequest { 5 | /** 6 | * The headers to be included in the request. 7 | */ 8 | headers: Record; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/types/CallHookCustomerSpeechTimeoutDoItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CallHookCustomerSpeechTimeoutDoItem = Vapi.SayHookAction | Vapi.ToolCallHookAction; 6 | -------------------------------------------------------------------------------- /src/api/types/CallHookModelResponseTimeoutDoItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CallHookModelResponseTimeoutDoItem = Vapi.SayHookAction | Vapi.ToolCallHookAction; 6 | -------------------------------------------------------------------------------- /src/api/types/ContextEngineeringPlanNone.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface ContextEngineeringPlanNone { 6 | type: Vapi.ContextEngineeringPlanNoneType; 7 | } 8 | -------------------------------------------------------------------------------- /src/api/types/VapiPhoneNumberHooksItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type VapiPhoneNumberHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; 6 | -------------------------------------------------------------------------------- /src/api/types/XaiModelProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const XaiModelProvider = { 4 | Xai: "xai", 5 | } as const; 6 | export type XaiModelProvider = (typeof XaiModelProvider)[keyof typeof XaiModelProvider]; 7 | -------------------------------------------------------------------------------- /tests/mock-server/setup.ts: -------------------------------------------------------------------------------- 1 | import { afterAll, beforeAll } from "vitest"; 2 | 3 | import { mockServerPool } from "./MockServerPool"; 4 | 5 | beforeAll(() => { 6 | mockServerPool.listen(); 7 | }); 8 | afterAll(() => { 9 | mockServerPool.close(); 10 | }); 11 | -------------------------------------------------------------------------------- /src/api/types/CallPaginatedResponse.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface CallPaginatedResponse { 6 | results: Vapi.Call[]; 7 | metadata: Vapi.PaginationMeta; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/ChatPaginatedResponse.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface ChatPaginatedResponse { 6 | results: Vapi.Chat[]; 7 | metadata: Vapi.PaginationMeta; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/EvalPaginatedResponse.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface EvalPaginatedResponse { 6 | results: Vapi.Eval[]; 7 | metadata: Vapi.PaginationMeta; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/GroqModelProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const GroqModelProvider = { 4 | Groq: "groq", 5 | } as const; 6 | export type GroqModelProvider = (typeof GroqModelProvider)[keyof typeof GroqModelProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/HandoffToolDestinationsItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type HandoffToolDestinationsItem = Vapi.HandoffDestinationAssistant | Vapi.HandoffDestinationDynamic; 6 | -------------------------------------------------------------------------------- /src/api/types/TelnyxPhoneNumberHooksItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type TelnyxPhoneNumberHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; 6 | -------------------------------------------------------------------------------- /src/api/types/TwilioPhoneNumberHooksItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type TwilioPhoneNumberHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; 6 | -------------------------------------------------------------------------------- /src/api/types/VapiModelProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const VapiModelProvider = { 4 | Vapi: "vapi", 5 | } as const; 6 | export type VapiModelProvider = (typeof VapiModelProvider)[keyof typeof VapiModelProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/VonagePhoneNumberHooksItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type VonagePhoneNumberHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; 6 | -------------------------------------------------------------------------------- /tsconfig.esm.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.base.json", 3 | "compilerOptions": { 4 | "module": "esnext", 5 | "outDir": "dist/esm", 6 | "verbatimModuleSyntax": true 7 | }, 8 | "include": ["src"], 9 | "exclude": [] 10 | } 11 | -------------------------------------------------------------------------------- /src/api/types/AiEdgeConditionType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const AiEdgeConditionType = { 4 | Ai: "ai", 5 | } as const; 6 | export type AiEdgeConditionType = (typeof AiEdgeConditionType)[keyof typeof AiEdgeConditionType]; 7 | -------------------------------------------------------------------------------- /src/api/types/CallHookAssistantSpeechInterruptedDoItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CallHookAssistantSpeechInterruptedDoItem = Vapi.SayHookAction | Vapi.ToolCallHookAction; 6 | -------------------------------------------------------------------------------- /src/api/types/CallHookCustomerSpeechInterruptedDoItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CallHookCustomerSpeechInterruptedDoItem = Vapi.SayHookAction | Vapi.ToolCallHookAction; 6 | -------------------------------------------------------------------------------- /src/api/types/FallbackTranscriberPlan.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface FallbackTranscriberPlan { 6 | transcribers: Vapi.FallbackTranscriberPlanTranscribersItem[]; 7 | } 8 | -------------------------------------------------------------------------------- /src/api/resources/calls/client/requests/GetCallsRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface GetCallsRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/chats/client/requests/GetChatsRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface GetChatsRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/files/client/requests/GetFilesRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface GetFilesRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/tools/client/requests/GetToolsRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface GetToolsRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/types/AzureVoiceId.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | /** 6 | * This is the provider-specific ID that will be used. 7 | */ 8 | export type AzureVoiceId = Vapi.AzureVoiceIdEnum | string; 9 | -------------------------------------------------------------------------------- /src/api/types/CreateByoPhoneNumberDtoHooksItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CreateByoPhoneNumberDtoHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; 6 | -------------------------------------------------------------------------------- /src/api/types/CreateVapiPhoneNumberDtoHooksItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CreateVapiPhoneNumberDtoHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; 6 | -------------------------------------------------------------------------------- /src/api/types/CredentialEndUser.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface CredentialEndUser { 4 | endUserEmail?: string | null; 5 | endUserId: string; 6 | organizationId: string; 7 | tags?: Record; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/EvalRunPaginatedResponse.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface EvalRunPaginatedResponse { 6 | results: Vapi.EvalRun[]; 7 | metadata: Vapi.PaginationMeta; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/GladiaCustomVocabularyConfigDtoVocabularyItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type GladiaCustomVocabularyConfigDtoVocabularyItem = string | Vapi.GladiaVocabularyItemDto; 6 | -------------------------------------------------------------------------------- /src/api/types/InsightPaginatedResponse.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface InsightPaginatedResponse { 6 | results: Vapi.Insight[]; 7 | metadata: Vapi.PaginationMeta; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/InsightRunResponse.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface InsightRunResponse { 4 | id: string; 5 | insightId: string; 6 | orgId: string; 7 | createdAt: string; 8 | updatedAt: string; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/types/LmntVoiceId.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | /** 6 | * This is the provider-specific ID that will be used. 7 | */ 8 | export type LmntVoiceId = Vapi.LmntVoiceIdEnum | string; 9 | -------------------------------------------------------------------------------- /src/api/types/PhoneNumberHookCallRingingDoItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type PhoneNumberHookCallRingingDoItem = Vapi.TransferPhoneNumberHookAction | Vapi.SayPhoneNumberHookAction; 6 | -------------------------------------------------------------------------------- /src/api/types/SessionPaginatedResponse.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface SessionPaginatedResponse { 6 | results: Vapi.Session[]; 7 | metadata: Vapi.PaginationMeta; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/UpdateByoPhoneNumberDtoHooksItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type UpdateByoPhoneNumberDtoHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; 6 | -------------------------------------------------------------------------------- /src/api/types/UpdateVapiPhoneNumberDtoHooksItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type UpdateVapiPhoneNumberDtoHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; 6 | -------------------------------------------------------------------------------- /src/api/resources/chats/client/requests/DeleteChatsRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface DeleteChatsRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/files/client/requests/DeleteFilesRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface DeleteFilesRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/squads/client/requests/GetSquadsRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface GetSquadsRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/tools/client/requests/DeleteToolsRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface DeleteToolsRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/types/AssistantPaginatedResponse.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface AssistantPaginatedResponse { 6 | results: Vapi.Assistant[]; 7 | metadata: Vapi.PaginationMeta; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/CampaignPaginatedResponse.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface CampaignPaginatedResponse { 6 | results: Vapi.Campaign[]; 7 | metadata: Vapi.PaginationMeta; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/CreateTelnyxPhoneNumberDtoHooksItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CreateTelnyxPhoneNumberDtoHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; 6 | -------------------------------------------------------------------------------- /src/api/types/CreateTwilioPhoneNumberDtoHooksItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CreateTwilioPhoneNumberDtoHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; 6 | -------------------------------------------------------------------------------- /src/api/types/CreateVonagePhoneNumberDtoHooksItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CreateVonagePhoneNumberDtoHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; 6 | -------------------------------------------------------------------------------- /src/api/types/GeminiMultimodalLiveSpeechConfig.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface GeminiMultimodalLiveSpeechConfig { 6 | voiceConfig: Vapi.GeminiMultimodalLiveVoiceConfig; 7 | } 8 | -------------------------------------------------------------------------------- /src/api/types/GhlToolType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The type of tool. "ghl" for GHL tool. */ 4 | export const GhlToolType = { 5 | Ghl: "ghl", 6 | } as const; 7 | export type GhlToolType = (typeof GhlToolType)[keyof typeof GhlToolType]; 8 | -------------------------------------------------------------------------------- /src/api/types/GoogleModelProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const GoogleModelProvider = { 4 | Google: "google", 5 | } as const; 6 | export type GoogleModelProvider = (typeof GoogleModelProvider)[keyof typeof GoogleModelProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/ImportTwilioPhoneNumberDtoHooksItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type ImportTwilioPhoneNumberDtoHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; 6 | -------------------------------------------------------------------------------- /src/api/types/ImportVonagePhoneNumberDtoHooksItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type ImportVonagePhoneNumberDtoHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; 6 | -------------------------------------------------------------------------------- /src/api/types/PlayHtVoiceId.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | /** 6 | * This is the provider-specific ID that will be used. 7 | */ 8 | export type PlayHtVoiceId = Vapi.PlayHtVoiceIdEnum | string; 9 | -------------------------------------------------------------------------------- /src/api/types/RimeAiVoiceId.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | /** 6 | * This is the provider-specific ID that will be used. 7 | */ 8 | export type RimeAiVoiceId = Vapi.RimeAiVoiceIdEnum | string; 9 | -------------------------------------------------------------------------------- /src/api/types/ScorecardPaginatedResponse.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface ScorecardPaginatedResponse { 6 | results: Vapi.Scorecard[]; 7 | metadata: Vapi.PaginationMeta; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/TestSuiteTestsPaginatedResponseResultsItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type TestSuiteTestsPaginatedResponseResultsItem = Vapi.TestSuiteTestVoice | Vapi.TestSuiteTestChat; 6 | -------------------------------------------------------------------------------- /src/api/types/UpdateTelnyxPhoneNumberDtoHooksItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type UpdateTelnyxPhoneNumberDtoHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; 6 | -------------------------------------------------------------------------------- /src/api/types/UpdateTwilioPhoneNumberDtoHooksItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type UpdateTwilioPhoneNumberDtoHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; 6 | -------------------------------------------------------------------------------- /src/api/types/UpdateVonagePhoneNumberDtoHooksItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type UpdateVonagePhoneNumberDtoHooksItem = Vapi.PhoneNumberHookCallRinging | Vapi.PhoneNumberHookCallEnding; 6 | -------------------------------------------------------------------------------- /src/core/fetcher/ResponseWithBody.ts: -------------------------------------------------------------------------------- 1 | export type ResponseWithBody = Response & { 2 | body: ReadableStream; 3 | }; 4 | 5 | export function isResponseWithBody(response: Response): response is ResponseWithBody { 6 | return (response as ResponseWithBody).body != null; 7 | } 8 | -------------------------------------------------------------------------------- /src/api/resources/sessions/client/requests/GetSessionsRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface GetSessionsRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/squads/client/requests/DeleteSquadsRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface DeleteSquadsRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/types/BarInsightMetadata.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface BarInsightMetadata { 4 | xAxisLabel?: string; 5 | yAxisLabel?: string; 6 | yAxisMin?: number; 7 | yAxisMax?: number; 8 | name?: string; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/types/CompliancePlanRecordingConsentPlan.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CompliancePlanRecordingConsentPlan = Vapi.RecordingConsentPlanStayOnLine | Vapi.RecordingConsentPlanVerbal; 6 | -------------------------------------------------------------------------------- /src/api/types/CreateHandoffToolDtoDestinationsItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CreateHandoffToolDtoDestinationsItem = Vapi.HandoffDestinationAssistant | Vapi.HandoffDestinationDynamic; 6 | -------------------------------------------------------------------------------- /src/api/types/GcpCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const GcpCredentialProvider = { 4 | Gcp: "gcp", 5 | } as const; 6 | export type GcpCredentialProvider = (typeof GcpCredentialProvider)[keyof typeof GcpCredentialProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/InviteUserDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface InviteUserDto { 6 | emails: string[]; 7 | role: Vapi.InviteUserDtoRole; 8 | redirectTo?: string; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/types/RceSecurityFilter.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface RceSecurityFilter { 6 | /** The type of security threat to filter. */ 7 | type: Vapi.RceSecurityFilterType; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/StartSpeakingPlanSmartEndpointingEnabled.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type StartSpeakingPlanSmartEndpointingEnabled = boolean | Vapi.StartSpeakingPlanSmartEndpointingEnabledOne; 6 | -------------------------------------------------------------------------------- /src/api/types/TestSuitesPaginatedResponse.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface TestSuitesPaginatedResponse { 6 | results: Vapi.TestSuite[]; 7 | metadata: Vapi.PaginationMeta; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/UpdateHandoffToolDtoDestinationsItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type UpdateHandoffToolDtoDestinationsItem = Vapi.HandoffDestinationAssistant | Vapi.HandoffDestinationDynamic; 6 | -------------------------------------------------------------------------------- /src/api/types/XssSecurityFilter.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface XssSecurityFilter { 6 | /** The type of security threat to filter. */ 7 | type: Vapi.XssSecurityFilterType; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/resources/assistants/client/requests/GetAssistantsRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface GetAssistantsRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/eval/client/requests/EvalControllerGetRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface EvalControllerGetRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/files/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export type { CreateFileDto } from "./CreateFileDto.js"; 2 | export type { DeleteFilesRequest } from "./DeleteFilesRequest.js"; 3 | export type { GetFilesRequest } from "./GetFilesRequest.js"; 4 | export type { UpdateFileDto } from "./UpdateFileDto.js"; 5 | -------------------------------------------------------------------------------- /src/api/resources/sessions/client/requests/DeleteSessionsRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface DeleteSessionsRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/types/BashToolName.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The name of the tool, fixed to 'bash' */ 4 | export const BashToolName = { 5 | Bash: "bash", 6 | } as const; 7 | export type BashToolName = (typeof BashToolName)[keyof typeof BashToolName]; 8 | -------------------------------------------------------------------------------- /src/api/types/CreateSesameVoiceDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface CreateSesameVoiceDto { 4 | /** The name of the voice. */ 5 | voiceName?: string; 6 | /** The transcript of the utterance. */ 7 | transcription?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/FileStatus.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const FileStatus = { 4 | Processing: "processing", 5 | Done: "done", 6 | Failed: "failed", 7 | } as const; 8 | export type FileStatus = (typeof FileStatus)[keyof typeof FileStatus]; 9 | -------------------------------------------------------------------------------- /src/api/types/GroqCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const GroqCredentialProvider = { 4 | Groq: "groq", 5 | } as const; 6 | export type GroqCredentialProvider = (typeof GroqCredentialProvider)[keyof typeof GroqCredentialProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/HumeCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const HumeCredentialProvider = { 4 | Hume: "hume", 5 | } as const; 6 | export type HumeCredentialProvider = (typeof HumeCredentialProvider)[keyof typeof HumeCredentialProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/LineInsightMetadata.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface LineInsightMetadata { 4 | xAxisLabel?: string; 5 | yAxisLabel?: string; 6 | yAxisMin?: number; 7 | yAxisMax?: number; 8 | name?: string; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/types/LmntCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const LmntCredentialProvider = { 4 | Lmnt: "lmnt", 5 | } as const; 6 | export type LmntCredentialProvider = (typeof LmntCredentialProvider)[keyof typeof LmntCredentialProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/MakeCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const MakeCredentialProvider = { 4 | Make: "make", 5 | } as const; 6 | export type MakeCredentialProvider = (typeof MakeCredentialProvider)[keyof typeof MakeCredentialProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/MakeToolType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The type of tool. "make" for Make tool. */ 4 | export const MakeToolType = { 5 | Make: "make", 6 | } as const; 7 | export type MakeToolType = (typeof MakeToolType)[keyof typeof MakeToolType]; 8 | -------------------------------------------------------------------------------- /src/api/types/SmallestAiVoiceId.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | /** 6 | * This is the provider-specific ID that will be used. 7 | */ 8 | export type SmallestAiVoiceId = Vapi.SmallestAiVoiceIdEnum | string; 9 | -------------------------------------------------------------------------------- /src/api/types/SsrfSecurityFilter.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface SsrfSecurityFilter { 6 | /** The type of security threat to filter. */ 7 | type: Vapi.SsrfSecurityFilterType; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/TavusVoiceVoiceId.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | /** 6 | * This is the provider-specific ID that will be used. 7 | */ 8 | export type TavusVoiceVoiceId = Vapi.TavusVoiceVoiceIdZero | string; 9 | -------------------------------------------------------------------------------- /src/api/types/TestSuiteRunTestAttemptCall.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface TestSuiteRunTestAttemptCall { 6 | /** This is the artifact of the call. */ 7 | artifact: Vapi.Artifact; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/TextContent.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface TextContent { 6 | type: Vapi.TextContentType; 7 | text: string; 8 | language: Vapi.TextContentLanguage; 9 | } 10 | -------------------------------------------------------------------------------- /src/errors/VapiTimeoutError.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export class VapiTimeoutError extends Error { 4 | constructor(message: string) { 5 | super(message); 6 | Object.setPrototypeOf(this, VapiTimeoutError.prototype); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/api/resources/assistants/client/requests/DeleteAssistantsRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface DeleteAssistantsRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/phoneNumbers/client/requests/GetPhoneNumbersRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface GetPhoneNumbersRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/types/AnyscaleModelProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const AnyscaleModelProvider = { 4 | Anyscale: "anyscale", 5 | } as const; 6 | export type AnyscaleModelProvider = (typeof AnyscaleModelProvider)[keyof typeof AnyscaleModelProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/AzureCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const AzureCredentialProvider = { 4 | Azure: "azure", 5 | } as const; 6 | export type AzureCredentialProvider = (typeof AzureCredentialProvider)[keyof typeof AzureCredentialProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/CerebrasModelProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const CerebrasModelProvider = { 4 | Cerebras: "cerebras", 5 | } as const; 6 | export type CerebrasModelProvider = (typeof CerebrasModelProvider)[keyof typeof CerebrasModelProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/ComplianceOverride.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface ComplianceOverride { 4 | /** Force storage for this output under HIPAA. Only enable if output contains no sensitive data. */ 5 | forceStoreOnHipaaEnabled?: boolean; 6 | } 7 | -------------------------------------------------------------------------------- /src/api/types/DeepSeekModelProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const DeepSeekModelProvider = { 4 | DeepSeek: "deep-seek", 5 | } as const; 6 | export type DeepSeekModelProvider = (typeof DeepSeekModelProvider)[keyof typeof DeepSeekModelProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/FallbackLmntVoiceId.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | /** 6 | * This is the provider-specific ID that will be used. 7 | */ 8 | export type FallbackLmntVoiceId = Vapi.FallbackLmntVoiceIdEnum | string; 9 | -------------------------------------------------------------------------------- /src/api/types/FunctionCall.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface FunctionCall { 4 | /** This is the arguments to call the function with */ 5 | arguments: string; 6 | /** This is the name of the function to call */ 7 | name: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/GeminiMultimodalLiveVoiceConfig.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface GeminiMultimodalLiveVoiceConfig { 6 | prebuiltVoiceConfig: Vapi.GeminiMultimodalLivePrebuiltVoiceConfig; 7 | } 8 | -------------------------------------------------------------------------------- /src/api/types/TavusCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const TavusCredentialProvider = { 4 | Tavus: "tavus", 5 | } as const; 6 | export type TavusCredentialProvider = (typeof TavusCredentialProvider)[keyof typeof TavusCredentialProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/TavusVoiceVoiceIdZero.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const TavusVoiceVoiceIdZero = { 4 | R52Da2535A: "r52da2535a", 5 | } as const; 6 | export type TavusVoiceVoiceIdZero = (typeof TavusVoiceVoiceIdZero)[keyof typeof TavusVoiceVoiceIdZero]; 7 | -------------------------------------------------------------------------------- /src/api/types/TestSuiteRunsPaginatedResponse.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface TestSuiteRunsPaginatedResponse { 6 | results: Vapi.TestSuiteRun[]; 7 | metadata: Vapi.PaginationMeta; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/resources/eval/client/requests/EvalControllerGetRunRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface EvalControllerGetRunRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/eval/client/requests/EvalControllerRemoveRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface EvalControllerRemoveRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/phoneNumbers/client/requests/DeletePhoneNumbersRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface DeletePhoneNumbersRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/types/CallHookTranscriberEndpointedSpeechLowConfidenceDoItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CallHookTranscriberEndpointedSpeechLowConfidenceDoItem = Vapi.SayHookAction | Vapi.ToolCallHookAction; 6 | -------------------------------------------------------------------------------- /src/api/types/DeepInfraModelProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const DeepInfraModelProvider = { 4 | Deepinfra: "deepinfra", 5 | } as const; 6 | export type DeepInfraModelProvider = (typeof DeepInfraModelProvider)[keyof typeof DeepInfraModelProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/EvalModelListOptions.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface EvalModelListOptions { 6 | /** This is the provider of the model. */ 7 | provider: Vapi.EvalModelListOptionsProvider; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/EvalRunTarget.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | /** 6 | * This is the target that will be run against the eval 7 | */ 8 | export type EvalRunTarget = Vapi.EvalRunTargetAssistant | Vapi.EvalRunTargetSquad; 9 | -------------------------------------------------------------------------------- /src/api/types/TemplateVisibility.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const TemplateVisibility = { 4 | Public: "public", 5 | Private: "private", 6 | } as const; 7 | export type TemplateVisibility = (typeof TemplateVisibility)[keyof typeof TemplateVisibility]; 8 | -------------------------------------------------------------------------------- /src/api/types/UpdateGoogleCalendarOAuth2ClientCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdateGoogleCalendarOAuth2ClientCredentialDto { 4 | /** This is the name of credential. This is just for your reference. */ 5 | name?: string; 6 | } 7 | -------------------------------------------------------------------------------- /tests/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.base.json", 3 | "compilerOptions": { 4 | "outDir": null, 5 | "rootDir": "..", 6 | "baseUrl": "..", 7 | "types": ["vitest/globals"] 8 | }, 9 | "include": ["../src", "../tests"], 10 | "exclude": [] 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/eval/client/requests/EvalControllerRemoveRunRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface EvalControllerRemoveRunRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/insight/client/requests/InsightControllerRemoveRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface InsightControllerRemoveRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/insight/types/InsightControllerCreateResponse.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../../../index.js"; 4 | 5 | export type InsightControllerCreateResponse = Vapi.BarInsight | Vapi.PieInsight | Vapi.LineInsight | Vapi.TextInsight; 6 | -------------------------------------------------------------------------------- /src/api/resources/insight/types/InsightControllerFindOneResponse.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../../../index.js"; 4 | 5 | export type InsightControllerFindOneResponse = Vapi.BarInsight | Vapi.PieInsight | Vapi.LineInsight | Vapi.TextInsight; 6 | -------------------------------------------------------------------------------- /src/api/resources/insight/types/InsightControllerRemoveResponse.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../../../index.js"; 4 | 5 | export type InsightControllerRemoveResponse = Vapi.BarInsight | Vapi.PieInsight | Vapi.LineInsight | Vapi.TextInsight; 6 | -------------------------------------------------------------------------------- /src/api/resources/insight/types/InsightControllerUpdateResponse.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../../../index.js"; 4 | 5 | export type InsightControllerUpdateResponse = Vapi.BarInsight | Vapi.PieInsight | Vapi.LineInsight | Vapi.TextInsight; 6 | -------------------------------------------------------------------------------- /src/api/resources/squads/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export type { DeleteSquadsRequest } from "./DeleteSquadsRequest.js"; 2 | export type { GetSquadsRequest } from "./GetSquadsRequest.js"; 3 | export type { ListSquadsRequest } from "./ListSquadsRequest.js"; 4 | export type { UpdateSquadDto } from "./UpdateSquadDto.js"; 5 | -------------------------------------------------------------------------------- /src/api/resources/tools/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export type { DeleteToolsRequest } from "./DeleteToolsRequest.js"; 2 | export type { GetToolsRequest } from "./GetToolsRequest.js"; 3 | export type { ListToolsRequest } from "./ListToolsRequest.js"; 4 | export type { UpdateToolsRequest } from "./UpdateToolsRequest.js"; 5 | -------------------------------------------------------------------------------- /src/api/types/AutoReloadPlan.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface AutoReloadPlan { 4 | /** This the amount of credits to reload. */ 5 | credits: number; 6 | /** This is the limit at which the reload is triggered. */ 7 | threshold: number; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/BashToolSubType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The sub type of tool. */ 4 | export const BashToolSubType = { 5 | Bash20241022: "bash_20241022", 6 | } as const; 7 | export type BashToolSubType = (typeof BashToolSubType)[keyof typeof BashToolSubType]; 8 | -------------------------------------------------------------------------------- /src/api/types/ChatCostType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the type of cost, always 'chat' for this class. */ 4 | export const ChatCostType = { 5 | Chat: "chat", 6 | } as const; 7 | export type ChatCostType = (typeof ChatCostType)[keyof typeof ChatCostType]; 8 | -------------------------------------------------------------------------------- /src/api/types/CreateToolTemplateDtoType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const CreateToolTemplateDtoType = { 4 | Tool: "tool", 5 | } as const; 6 | export type CreateToolTemplateDtoType = (typeof CreateToolTemplateDtoType)[keyof typeof CreateToolTemplateDtoType]; 7 | -------------------------------------------------------------------------------- /src/api/types/FallbackAzureVoiceId.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | /** 6 | * This is the provider-specific ID that will be used. 7 | */ 8 | export type FallbackAzureVoiceId = Vapi.FallbackAzureVoiceVoiceIdZero | string; 9 | -------------------------------------------------------------------------------- /src/api/types/FallbackPlayHtVoiceId.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | /** 6 | * This is the provider-specific ID that will be used. 7 | */ 8 | export type FallbackPlayHtVoiceId = Vapi.FallbackPlayHtVoiceIdEnum | string; 9 | -------------------------------------------------------------------------------- /src/api/types/FallbackRimeAiVoiceId.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | /** 6 | * This is the provider-specific ID that will be used. 7 | */ 8 | export type FallbackRimeAiVoiceId = Vapi.FallbackRimeAiVoiceIdEnum | string; 9 | -------------------------------------------------------------------------------- /src/api/types/GladiaCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const GladiaCredentialProvider = { 4 | Gladia: "gladia", 5 | } as const; 6 | export type GladiaCredentialProvider = (typeof GladiaCredentialProvider)[keyof typeof GladiaCredentialProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/OpenAiCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const OpenAiCredentialProvider = { 4 | Openai: "openai", 5 | } as const; 6 | export type OpenAiCredentialProvider = (typeof OpenAiCredentialProvider)[keyof typeof OpenAiCredentialProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/OpenRouterModelProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const OpenRouterModelProvider = { 4 | Openrouter: "openrouter", 5 | } as const; 6 | export type OpenRouterModelProvider = (typeof OpenRouterModelProvider)[keyof typeof OpenRouterModelProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/PlayHtCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const PlayHtCredentialProvider = { 4 | Playht: "playht", 5 | } as const; 6 | export type PlayHtCredentialProvider = (typeof PlayHtCredentialProvider)[keyof typeof PlayHtCredentialProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/ProviderResourcePaginatedResponse.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface ProviderResourcePaginatedResponse { 6 | results: Vapi.ProviderResource[]; 7 | metadata: Vapi.PaginationMeta; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/RimeAiCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const RimeAiCredentialProvider = { 4 | RimeAi: "rime-ai", 5 | } as const; 6 | export type RimeAiCredentialProvider = (typeof RimeAiCredentialProvider)[keyof typeof RimeAiCredentialProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/RunpodCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const RunpodCredentialProvider = { 4 | Runpod: "runpod", 5 | } as const; 6 | export type RunpodCredentialProvider = (typeof RunpodCredentialProvider)[keyof typeof RunpodCredentialProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/StructuredOutputPaginatedResponse.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface StructuredOutputPaginatedResponse { 6 | results: Vapi.StructuredOutput[]; 7 | metadata: Vapi.PaginationMeta; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/SyncVoiceLibraryDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface SyncVoiceLibraryDto { 6 | /** List of providers you want to sync. */ 7 | providers?: Vapi.SyncVoiceLibraryDtoProvidersItem[]; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/ToolCallFunction.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface ToolCallFunction { 4 | /** This is the arguments to call the function with */ 5 | arguments: string; 6 | /** This is the name of the function to call */ 7 | name: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/ToolMessageRole.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the role of the message author */ 4 | export const ToolMessageRole = { 5 | Tool: "tool", 6 | } as const; 7 | export type ToolMessageRole = (typeof ToolMessageRole)[keyof typeof ToolMessageRole]; 8 | -------------------------------------------------------------------------------- /src/api/types/TrieveCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const TrieveCredentialProvider = { 4 | Trieve: "trieve", 5 | } as const; 6 | export type TrieveCredentialProvider = (typeof TrieveCredentialProvider)[keyof typeof TrieveCredentialProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/TwilioCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const TwilioCredentialProvider = { 4 | Twilio: "twilio", 5 | } as const; 6 | export type TwilioCredentialProvider = (typeof TwilioCredentialProvider)[keyof typeof TwilioCredentialProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/UpdateToolTemplateDtoType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const UpdateToolTemplateDtoType = { 4 | Tool: "tool", 5 | } as const; 6 | export type UpdateToolTemplateDtoType = (typeof UpdateToolTemplateDtoType)[keyof typeof UpdateToolTemplateDtoType]; 7 | -------------------------------------------------------------------------------- /src/api/types/VapiCostType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the type of cost, always 'vapi' for this class. */ 4 | export const VapiCostType = { 5 | Vapi: "vapi", 6 | } as const; 7 | export type VapiCostType = (typeof VapiCostType)[keyof typeof VapiCostType]; 8 | -------------------------------------------------------------------------------- /src/api/types/VonageCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const VonageCredentialProvider = { 4 | Vonage: "vonage", 5 | } as const; 6 | export type VonageCredentialProvider = (typeof VonageCredentialProvider)[keyof typeof VonageCredentialProvider]; 7 | -------------------------------------------------------------------------------- /src/api/resources/campaigns/client/requests/CampaignControllerRemoveRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface CampaignControllerRemoveRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/insight/client/requests/InsightControllerFindOneRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface InsightControllerFindOneRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/types/AzureVoiceIdEnum.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const AzureVoiceIdEnum = { 4 | Andrew: "andrew", 5 | Brian: "brian", 6 | Emma: "emma", 7 | } as const; 8 | export type AzureVoiceIdEnum = (typeof AzureVoiceIdEnum)[keyof typeof AzureVoiceIdEnum]; 9 | -------------------------------------------------------------------------------- /src/api/types/GeminiMultimodalLivePrebuiltVoiceConfig.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface GeminiMultimodalLivePrebuiltVoiceConfig { 6 | voiceName: Vapi.GeminiMultimodalLivePrebuiltVoiceConfigVoiceName; 7 | } 8 | -------------------------------------------------------------------------------- /src/api/types/InworldCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const InworldCredentialProvider = { 4 | Inworld: "inworld", 5 | } as const; 6 | export type InworldCredentialProvider = (typeof InworldCredentialProvider)[keyof typeof InworldCredentialProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/MistralCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const MistralCredentialProvider = { 4 | Mistral: "mistral", 5 | } as const; 6 | export type MistralCredentialProvider = (typeof MistralCredentialProvider)[keyof typeof MistralCredentialProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/OutputToolType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The type of tool. "output" for Output tool. */ 4 | export const OutputToolType = { 5 | Output: "output", 6 | } as const; 7 | export type OutputToolType = (typeof OutputToolType)[keyof typeof OutputToolType]; 8 | -------------------------------------------------------------------------------- /src/api/types/SesameVoiceModel.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the model that will be used. */ 4 | export const SesameVoiceModel = { 5 | Csm1B: "csm-1b", 6 | } as const; 7 | export type SesameVoiceModel = (typeof SesameVoiceModel)[keyof typeof SesameVoiceModel]; 8 | -------------------------------------------------------------------------------- /src/api/types/SquadMemberDtoAssistantDestinationsItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type SquadMemberDtoAssistantDestinationsItem = 6 | | Vapi.TransferDestinationAssistant 7 | | Vapi.HandoffDestinationAssistant; 8 | -------------------------------------------------------------------------------- /src/api/types/TogetherAiModelProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const TogetherAiModelProvider = { 4 | TogetherAi: "together-ai", 5 | } as const; 6 | export type TogetherAiModelProvider = (typeof TogetherAiModelProvider)[keyof typeof TogetherAiModelProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/TransferDestinationSipType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const TransferDestinationSipType = { 4 | Sip: "sip", 5 | } as const; 6 | export type TransferDestinationSipType = (typeof TransferDestinationSipType)[keyof typeof TransferDestinationSipType]; 7 | -------------------------------------------------------------------------------- /src/api/types/WebhookCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const WebhookCredentialProvider = { 4 | Webhook: "webhook", 5 | } as const; 6 | export type WebhookCredentialProvider = (typeof WebhookCredentialProvider)[keyof typeof WebhookCredentialProvider]; 7 | -------------------------------------------------------------------------------- /src/api/resources/campaigns/client/requests/CampaignControllerFindOneRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface CampaignControllerFindOneRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/types/CartesiaExperimentalControls.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface CartesiaExperimentalControls { 6 | speed?: Vapi.CartesiaSpeedControl; 7 | emotion?: Vapi.CartesiaExperimentalControlsEmotion; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/CartesiaTranscriberModel.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const CartesiaTranscriberModel = { 4 | InkWhisper: "ink-whisper", 5 | } as const; 6 | export type CartesiaTranscriberModel = (typeof CartesiaTranscriberModel)[keyof typeof CartesiaTranscriberModel]; 7 | -------------------------------------------------------------------------------- /src/api/types/FallbackSmallestAiVoiceId.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | /** 6 | * This is the provider-specific ID that will be used. 7 | */ 8 | export type FallbackSmallestAiVoiceId = Vapi.FallbackSmallestAiVoiceIdEnum | string; 9 | -------------------------------------------------------------------------------- /src/api/types/FallbackTavusVoiceVoiceId.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | /** 6 | * This is the provider-specific ID that will be used. 7 | */ 8 | export type FallbackTavusVoiceVoiceId = Vapi.FallbackTavusVoiceVoiceIdZero | string; 9 | -------------------------------------------------------------------------------- /src/api/types/ModelCostType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the type of cost, always 'model' for this class. */ 4 | export const ModelCostType = { 5 | Model: "model", 6 | } as const; 7 | export type ModelCostType = (typeof ModelCostType)[keyof typeof ModelCostType]; 8 | -------------------------------------------------------------------------------- /src/api/types/ResponseErrorEventType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** Event type */ 4 | export const ResponseErrorEventType = { 5 | Error: "error", 6 | } as const; 7 | export type ResponseErrorEventType = (typeof ResponseErrorEventType)[keyof typeof ResponseErrorEventType]; 8 | -------------------------------------------------------------------------------- /src/api/types/ResponseObjectObject.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The object type */ 4 | export const ResponseObjectObject = { 5 | Response: "response", 6 | } as const; 7 | export type ResponseObjectObject = (typeof ResponseObjectObject)[keyof typeof ResponseObjectObject]; 8 | -------------------------------------------------------------------------------- /src/api/types/SayHookActionType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the type of action - must be "say" */ 4 | export const SayHookActionType = { 5 | Say: "say", 6 | } as const; 7 | export type SayHookActionType = (typeof SayHookActionType)[keyof typeof SayHookActionType]; 8 | -------------------------------------------------------------------------------- /src/api/types/SqlInjectionSecurityFilter.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface SqlInjectionSecurityFilter { 6 | /** The type of security threat to filter. */ 7 | type: Vapi.SqlInjectionSecurityFilterType; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/VoiceCostType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the type of cost, always 'voice' for this class. */ 4 | export const VoiceCostType = { 5 | Voice: "voice", 6 | } as const; 7 | export type VoiceCostType = (typeof VoiceCostType)[keyof typeof VoiceCostType]; 8 | -------------------------------------------------------------------------------- /src/api/resources/observabilityScorecard/client/requests/ScorecardControllerGetRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface ScorecardControllerGetRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/types/AnyscaleCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const AnyscaleCredentialProvider = { 4 | Anyscale: "anyscale", 5 | } as const; 6 | export type AnyscaleCredentialProvider = (typeof AnyscaleCredentialProvider)[keyof typeof AnyscaleCredentialProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/CartesiaCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const CartesiaCredentialProvider = { 4 | Cartesia: "cartesia", 5 | } as const; 6 | export type CartesiaCredentialProvider = (typeof CartesiaCredentialProvider)[keyof typeof CartesiaCredentialProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/CerebrasCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const CerebrasCredentialProvider = { 4 | Cerebras: "cerebras", 5 | } as const; 6 | export type CerebrasCredentialProvider = (typeof CerebrasCredentialProvider)[keyof typeof CerebrasCredentialProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/ChatInput.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | /** 6 | * This is the input text for the chat. 7 | * Can be a string or an array of chat messages. 8 | */ 9 | export type ChatInput = string | Vapi.ChatInputOneItem[]; 10 | -------------------------------------------------------------------------------- /src/api/types/ComputerToolName.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The name of the tool, fixed to 'computer' */ 4 | export const ComputerToolName = { 5 | Computer: "computer", 6 | } as const; 7 | export type ComputerToolName = (typeof ComputerToolName)[keyof typeof ComputerToolName]; 8 | -------------------------------------------------------------------------------- /src/api/types/CustomMessageType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is a custom message. */ 4 | export const CustomMessageType = { 5 | CustomMessage: "custom-message", 6 | } as const; 7 | export type CustomMessageType = (typeof CustomMessageType)[keyof typeof CustomMessageType]; 8 | -------------------------------------------------------------------------------- /src/api/types/DeepSeekCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const DeepSeekCredentialProvider = { 4 | DeepSeek: "deep-seek", 5 | } as const; 6 | export type DeepSeekCredentialProvider = (typeof DeepSeekCredentialProvider)[keyof typeof DeepSeekCredentialProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/DeepgramCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const DeepgramCredentialProvider = { 4 | Deepgram: "deepgram", 5 | } as const; 6 | export type DeepgramCredentialProvider = (typeof DeepgramCredentialProvider)[keyof typeof DeepgramCredentialProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/HumeVoiceProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the voice provider that will be used. */ 4 | export const HumeVoiceProvider = { 5 | Hume: "hume", 6 | } as const; 7 | export type HumeVoiceProvider = (typeof HumeVoiceProvider)[keyof typeof HumeVoiceProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/InflectionAiModelProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const InflectionAiModelProvider = { 4 | InflectionAi: "inflection-ai", 5 | } as const; 6 | export type InflectionAiModelProvider = (typeof InflectionAiModelProvider)[keyof typeof InflectionAiModelProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/InviteUserDtoRole.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const InviteUserDtoRole = { 4 | Admin: "admin", 5 | Editor: "editor", 6 | Viewer: "viewer", 7 | } as const; 8 | export type InviteUserDtoRole = (typeof InviteUserDtoRole)[keyof typeof InviteUserDtoRole]; 9 | -------------------------------------------------------------------------------- /src/api/types/LangfuseCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const LangfuseCredentialProvider = { 4 | Langfuse: "langfuse", 5 | } as const; 6 | export type LangfuseCredentialProvider = (typeof LangfuseCredentialProvider)[keyof typeof LangfuseCredentialProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/LmntVoiceProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the voice provider that will be used. */ 4 | export const LmntVoiceProvider = { 5 | Lmnt: "lmnt", 6 | } as const; 7 | export type LmntVoiceProvider = (typeof LmntVoiceProvider)[keyof typeof LmntVoiceProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/PerplexityAiModelProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const PerplexityAiModelProvider = { 4 | PerplexityAi: "perplexity-ai", 5 | } as const; 6 | export type PerplexityAiModelProvider = (typeof PerplexityAiModelProvider)[keyof typeof PerplexityAiModelProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/PromptInjectionSecurityFilter.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface PromptInjectionSecurityFilter { 6 | /** The type of security threat to filter. */ 7 | type: Vapi.PromptInjectionSecurityFilterType; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/TokenTag.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the tag for the token. It represents its scope. */ 4 | export const TokenTag = { 5 | Private: "private", 6 | Public: "public", 7 | } as const; 8 | export type TokenTag = (typeof TokenTag)[keyof typeof TokenTag]; 9 | -------------------------------------------------------------------------------- /src/api/types/VapiVoiceProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the voice provider that will be used. */ 4 | export const VapiVoiceProvider = { 5 | Vapi: "vapi", 6 | } as const; 7 | export type VapiVoiceProvider = (typeof VapiVoiceProvider)[keyof typeof VapiVoiceProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/WellSaidCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const WellSaidCredentialProvider = { 4 | Wellsaid: "wellsaid", 5 | } as const; 6 | export type WellSaidCredentialProvider = (typeof WellSaidCredentialProvider)[keyof typeof WellSaidCredentialProvider]; 7 | -------------------------------------------------------------------------------- /src/api/resources/observabilityScorecard/client/requests/ScorecardControllerRemoveRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface ScorecardControllerRemoveRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/types/CreateGhlToolDtoType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The type of tool. "ghl" for GHL tool. */ 4 | export const CreateGhlToolDtoType = { 5 | Ghl: "ghl", 6 | } as const; 7 | export type CreateGhlToolDtoType = (typeof CreateGhlToolDtoType)[keyof typeof CreateGhlToolDtoType]; 8 | -------------------------------------------------------------------------------- /src/api/types/CustomCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const CustomCredentialProvider = { 4 | CustomCredential: "custom-credential", 5 | } as const; 6 | export type CustomCredentialProvider = (typeof CustomCredentialProvider)[keyof typeof CustomCredentialProvider]; 7 | -------------------------------------------------------------------------------- /src/api/types/ServerMessageResponseCallEndpointingRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface ServerMessageResponseCallEndpointingRequest { 4 | /** This is the timeout in seconds to wait before considering the user's speech as finished. */ 5 | timeoutSeconds: number; 6 | } 7 | -------------------------------------------------------------------------------- /src/api/types/TemplateProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const TemplateProvider = { 4 | Make: "make", 5 | Gohighlevel: "gohighlevel", 6 | Function: "function", 7 | } as const; 8 | export type TemplateProvider = (typeof TemplateProvider)[keyof typeof TemplateProvider]; 9 | -------------------------------------------------------------------------------- /src/api/types/UpdateGroqCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdateGroqCredentialDto { 4 | /** This is not returned in the API. */ 5 | apiKey?: string; 6 | /** This is the name of credential. This is just for your reference. */ 7 | name?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/UpdateHumeCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdateHumeCredentialDto { 4 | /** This is not returned in the API. */ 5 | apiKey?: string; 6 | /** This is the name of credential. This is just for your reference. */ 7 | name?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/UpdateLmntCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdateLmntCredentialDto { 4 | /** This is not returned in the API. */ 5 | apiKey?: string; 6 | /** This is the name of credential. This is just for your reference. */ 7 | name?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/UpdateXAiCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdateXAiCredentialDto { 4 | /** This is not returned in the API. */ 5 | apiKey?: string; 6 | /** This is the name of credential. This is just for your reference. */ 7 | name?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/AnthropicThinkingConfigType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const AnthropicThinkingConfigType = { 4 | Enabled: "enabled", 5 | } as const; 6 | export type AnthropicThinkingConfigType = 7 | (typeof AnthropicThinkingConfigType)[keyof typeof AnthropicThinkingConfigType]; 8 | -------------------------------------------------------------------------------- /src/api/types/AssistantVersionPaginatedResponse.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface AssistantVersionPaginatedResponse { 6 | results: unknown[]; 7 | metadata: Vapi.PaginationMeta; 8 | nextPageState?: string; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/types/AzureVoiceProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the voice provider that will be used. */ 4 | export const AzureVoiceProvider = { 5 | Azure: "azure", 6 | } as const; 7 | export type AzureVoiceProvider = (typeof AzureVoiceProvider)[keyof typeof AzureVoiceProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/BashToolMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type BashToolMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/CartesiaTranscriberProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const CartesiaTranscriberProvider = { 4 | Cartesia: "cartesia", 5 | } as const; 6 | export type CartesiaTranscriberProvider = 7 | (typeof CartesiaTranscriberProvider)[keyof typeof CartesiaTranscriberProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/ChatOutputItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type ChatOutputItem = 6 | | Vapi.SystemMessage 7 | | Vapi.UserMessage 8 | | Vapi.AssistantMessage 9 | | Vapi.ToolMessage 10 | | Vapi.DeveloperMessage; 11 | -------------------------------------------------------------------------------- /src/api/types/CodeToolEnvironmentVariable.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface CodeToolEnvironmentVariable { 4 | /** Name of the environment variable */ 5 | name: string; 6 | /** Value of the environment variable. Supports Liquid templates. */ 7 | value: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/CodeToolMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CodeToolMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/ContextEngineeringPlanAllType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const ContextEngineeringPlanAllType = { 4 | All: "all", 5 | } as const; 6 | export type ContextEngineeringPlanAllType = 7 | (typeof ContextEngineeringPlanAllType)[keyof typeof ContextEngineeringPlanAllType]; 8 | -------------------------------------------------------------------------------- /src/api/types/DtmfToolMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type DtmfToolMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/GhlToolMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type GhlToolMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/HumeVoiceModel.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the model that will be used. */ 4 | export const HumeVoiceModel = { 5 | Octave: "octave", 6 | Octave2: "octave2", 7 | } as const; 8 | export type HumeVoiceModel = (typeof HumeVoiceModel)[keyof typeof HumeVoiceModel]; 9 | -------------------------------------------------------------------------------- /src/api/types/InworldVoiceModel.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the model that will be used. */ 4 | export const InworldVoiceModel = { 5 | InworldTts1: "inworld-tts-1", 6 | } as const; 7 | export type InworldVoiceModel = (typeof InworldVoiceModel)[keyof typeof InworldVoiceModel]; 8 | -------------------------------------------------------------------------------- /src/api/types/MakeToolMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type MakeToolMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/McpToolMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type McpToolMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/McpToolMetadata.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface McpToolMetadata { 6 | /** This is the protocol used for MCP communication. Defaults to Streamable HTTP. */ 7 | protocol?: Vapi.McpToolMetadataProtocol; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/PaginationMeta.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface PaginationMeta { 4 | itemsPerPage: number; 5 | totalItems: number; 6 | currentPage: number; 7 | itemsBeyondRetention?: boolean; 8 | createdAtLe?: string; 9 | createdAtGe?: string; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/types/QueryToolMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type QueryToolMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/SessionCostType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the type of cost, always 'session' for this class. */ 4 | export const SessionCostType = { 5 | Session: "session", 6 | } as const; 7 | export type SessionCostType = (typeof SessionCostType)[keyof typeof SessionCostType]; 8 | -------------------------------------------------------------------------------- /src/api/types/SmsToolMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type SmsToolMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/TavusVoiceProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the voice provider that will be used. */ 4 | export const TavusVoiceProvider = { 5 | Tavus: "tavus", 6 | } as const; 7 | export type TavusVoiceProvider = (typeof TavusVoiceProvider)[keyof typeof TavusVoiceProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/TransferMode.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const TransferMode = { 4 | RollingHistory: "rolling-history", 5 | SwapSystemMessageInHistory: "swap-system-message-in-history", 6 | } as const; 7 | export type TransferMode = (typeof TransferMode)[keyof typeof TransferMode]; 8 | -------------------------------------------------------------------------------- /src/api/types/UpdateGladiaCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdateGladiaCredentialDto { 4 | /** This is not returned in the API. */ 5 | apiKey?: string; 6 | /** This is the name of credential. This is just for your reference. */ 7 | name?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/UpdateGoogleCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdateGoogleCredentialDto { 4 | /** This is not returned in the API. */ 5 | apiKey?: string; 6 | /** This is the name of credential. This is just for your reference. */ 7 | name?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/UpdateOpenAiCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdateOpenAiCredentialDto { 4 | /** This is not returned in the API. */ 5 | apiKey?: string; 6 | /** This is the name of credential. This is just for your reference. */ 7 | name?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/UpdateRimeAiCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdateRimeAiCredentialDto { 4 | /** This is not returned in the API. */ 5 | apiKey?: string; 6 | /** This is the name of credential. This is just for your reference. */ 7 | name?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/UpdateRunpodCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdateRunpodCredentialDto { 4 | /** This is not returned in the API. */ 5 | apiKey?: string; 6 | /** This is the name of credential. This is just for your reference. */ 7 | name?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/UpdateTrieveCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdateTrieveCredentialDto { 4 | /** This is not returned in the API. */ 5 | apiKey?: string; 6 | /** This is the name of credential. This is just for your reference. */ 7 | name?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/VapiCostSubType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the sub type of the cost. */ 4 | export const VapiCostSubType = { 5 | Normal: "normal", 6 | Overage: "overage", 7 | } as const; 8 | export type VapiCostSubType = (typeof VapiCostSubType)[keyof typeof VapiCostSubType]; 9 | -------------------------------------------------------------------------------- /src/api/types/VapiSmartEndpointingPlan.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface VapiSmartEndpointingPlan { 6 | /** This is the provider for the smart endpointing plan. */ 7 | provider: Vapi.VapiSmartEndpointingPlanProvider; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/VoiceLibraryGender.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The gender of the voice. */ 4 | export const VoiceLibraryGender = { 5 | Male: "male", 6 | Female: "female", 7 | } as const; 8 | export type VoiceLibraryGender = (typeof VoiceLibraryGender)[keyof typeof VoiceLibraryGender]; 9 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | export * as Vapi from "./api/index.js"; 2 | export type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js"; 3 | export { VapiClient } from "./Client.js"; 4 | export { VapiEnvironment } from "./environments.js"; 5 | export { VapiError, VapiTimeoutError } from "./errors/index.js"; 6 | export * from "./exports.js"; 7 | -------------------------------------------------------------------------------- /src/api/resources/structuredOutputs/client/requests/StructuredOutputControllerFindOneRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface StructuredOutputControllerFindOneRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/resources/structuredOutputs/client/requests/StructuredOutputControllerRemoveRequest.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * @example 5 | * { 6 | * id: "id" 7 | * } 8 | */ 9 | export interface StructuredOutputControllerRemoveRequest { 10 | id: string; 11 | } 12 | -------------------------------------------------------------------------------- /src/api/types/AnthropicCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const AnthropicCredentialProvider = { 4 | Anthropic: "anthropic", 5 | } as const; 6 | export type AnthropicCredentialProvider = 7 | (typeof AnthropicCredentialProvider)[keyof typeof AnthropicCredentialProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/ChatInputOneItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type ChatInputOneItem = 6 | | Vapi.SystemMessage 7 | | Vapi.UserMessage 8 | | Vapi.AssistantMessage 9 | | Vapi.ToolMessage 10 | | Vapi.DeveloperMessage; 11 | -------------------------------------------------------------------------------- /src/api/types/ChatMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type ChatMessagesItem = 6 | | Vapi.SystemMessage 7 | | Vapi.UserMessage 8 | | Vapi.AssistantMessage 9 | | Vapi.ToolMessage 10 | | Vapi.DeveloperMessage; 11 | -------------------------------------------------------------------------------- /src/api/types/ComputerToolSubType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The sub type of tool. */ 4 | export const ComputerToolSubType = { 5 | Computer20241022: "computer_20241022", 6 | } as const; 7 | export type ComputerToolSubType = (typeof ComputerToolSubType)[keyof typeof ComputerToolSubType]; 8 | -------------------------------------------------------------------------------- /src/api/types/CreateBashToolDtoName.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The name of the tool, fixed to 'bash' */ 4 | export const CreateBashToolDtoName = { 5 | Bash: "bash", 6 | } as const; 7 | export type CreateBashToolDtoName = (typeof CreateBashToolDtoName)[keyof typeof CreateBashToolDtoName]; 8 | -------------------------------------------------------------------------------- /src/api/types/CreateCodeToolDtoType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The type of tool. "code" for Code tool. */ 4 | export const CreateCodeToolDtoType = { 5 | Code: "code", 6 | } as const; 7 | export type CreateCodeToolDtoType = (typeof CreateCodeToolDtoType)[keyof typeof CreateCodeToolDtoType]; 8 | -------------------------------------------------------------------------------- /src/api/types/CreateMakeToolDtoType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The type of tool. "make" for Make tool. */ 4 | export const CreateMakeToolDtoType = { 5 | Make: "make", 6 | } as const; 7 | export type CreateMakeToolDtoType = (typeof CreateMakeToolDtoType)[keyof typeof CreateMakeToolDtoType]; 8 | -------------------------------------------------------------------------------- /src/api/types/CustomLlmCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const CustomLlmCredentialProvider = { 4 | CustomLlm: "custom-llm", 5 | } as const; 6 | export type CustomLlmCredentialProvider = 7 | (typeof CustomLlmCredentialProvider)[keyof typeof CustomLlmCredentialProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/DeepInfraCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const DeepInfraCredentialProvider = { 4 | Deepinfra: "deepinfra", 5 | } as const; 6 | export type DeepInfraCredentialProvider = 7 | (typeof DeepInfraCredentialProvider)[keyof typeof DeepInfraCredentialProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/EndCallToolMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type EndCallToolMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/FallbackPlan.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface FallbackPlan { 6 | /** This is the list of voices to fallback to in the event that the primary voice provider fails. */ 7 | voices: Vapi.FallbackPlanVoicesItem[]; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/GroupConditionType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the type discriminator for group condition */ 4 | export const GroupConditionType = { 5 | Group: "group", 6 | } as const; 7 | export type GroupConditionType = (typeof GroupConditionType)[keyof typeof GroupConditionType]; 8 | -------------------------------------------------------------------------------- /src/api/types/HandoffToolMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type HandoffToolMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/KnowledgeBaseProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The provider of the knowledge base */ 4 | export const KnowledgeBaseProvider = { 5 | Google: "google", 6 | } as const; 7 | export type KnowledgeBaseProvider = (typeof KnowledgeBaseProvider)[keyof typeof KnowledgeBaseProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/NeuphonicCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const NeuphonicCredentialProvider = { 4 | Neuphonic: "neuphonic", 5 | } as const; 6 | export type NeuphonicCredentialProvider = 7 | (typeof NeuphonicCredentialProvider)[keyof typeof NeuphonicCredentialProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/OpenAiVoiceProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the voice provider that will be used. */ 4 | export const OpenAiVoiceProvider = { 5 | Openai: "openai", 6 | } as const; 7 | export type OpenAiVoiceProvider = (typeof OpenAiVoiceProvider)[keyof typeof OpenAiVoiceProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/OutputToolMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type OutputToolMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/PlayHtVoiceProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the voice provider that will be used. */ 4 | export const PlayHtVoiceProvider = { 5 | Playht: "playht", 6 | } as const; 7 | export type PlayHtVoiceProvider = (typeof PlayHtVoiceProvider)[keyof typeof PlayHtVoiceProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/RceSecurityFilterType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The type of security threat to filter. */ 4 | export const RceSecurityFilterType = { 5 | Rce: "rce", 6 | } as const; 7 | export type RceSecurityFilterType = (typeof RceSecurityFilterType)[keyof typeof RceSecurityFilterType]; 8 | -------------------------------------------------------------------------------- /src/api/types/RegexConditionType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the type discriminator for regex condition */ 4 | export const RegexConditionType = { 5 | Regex: "regex", 6 | } as const; 7 | export type RegexConditionType = (typeof RegexConditionType)[keyof typeof RegexConditionType]; 8 | -------------------------------------------------------------------------------- /src/api/types/RimeAiVoiceProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the voice provider that will be used. */ 4 | export const RimeAiVoiceProvider = { 5 | RimeAi: "rime-ai", 6 | } as const; 7 | export type RimeAiVoiceProvider = (typeof RimeAiVoiceProvider)[keyof typeof RimeAiVoiceProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/S3CredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** Credential provider. Only allowed value is s3 */ 4 | export const S3CredentialProvider = { 5 | S3: "s3", 6 | } as const; 7 | export type S3CredentialProvider = (typeof S3CredentialProvider)[keyof typeof S3CredentialProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/SesameVoiceProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the voice provider that will be used. */ 4 | export const SesameVoiceProvider = { 5 | Sesame: "sesame", 6 | } as const; 7 | export type SesameVoiceProvider = (typeof SesameVoiceProvider)[keyof typeof SesameVoiceProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/TransferCallToolDestinationsItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type TransferCallToolDestinationsItem = 6 | | Vapi.TransferDestinationAssistant 7 | | Vapi.TransferDestinationNumber 8 | | Vapi.TransferDestinationSip; 9 | -------------------------------------------------------------------------------- /src/api/types/TransferDestinationNumberType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const TransferDestinationNumberType = { 4 | Number: "number", 5 | } as const; 6 | export type TransferDestinationNumberType = 7 | (typeof TransferDestinationNumberType)[keyof typeof TransferDestinationNumberType]; 8 | -------------------------------------------------------------------------------- /src/api/types/TransferFallbackPlanMessage.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | /** 6 | * This is the message the assistant will deliver to the customer if the transfer fails. 7 | */ 8 | export type TransferFallbackPlanMessage = string | Vapi.CustomMessage; 9 | -------------------------------------------------------------------------------- /src/api/types/UpdateAnthropicCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdateAnthropicCredentialDto { 4 | /** This is not returned in the API. */ 5 | apiKey?: string; 6 | /** This is the name of credential. This is just for your reference. */ 7 | name?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/UpdateAnyscaleCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdateAnyscaleCredentialDto { 4 | /** This is not returned in the API. */ 5 | apiKey?: string; 6 | /** This is the name of credential. This is just for your reference. */ 7 | name?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/UpdateBashToolDtoName.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The name of the tool, fixed to 'bash' */ 4 | export const UpdateBashToolDtoName = { 5 | Bash: "bash", 6 | } as const; 7 | export type UpdateBashToolDtoName = (typeof UpdateBashToolDtoName)[keyof typeof UpdateBashToolDtoName]; 8 | -------------------------------------------------------------------------------- /src/api/types/UpdateCartesiaCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdateCartesiaCredentialDto { 4 | /** This is not returned in the API. */ 5 | apiKey?: string; 6 | /** This is the name of credential. This is just for your reference. */ 7 | name?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/UpdateCerebrasCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdateCerebrasCredentialDto { 4 | /** This is not returned in the API. */ 5 | apiKey?: string; 6 | /** This is the name of credential. This is just for your reference. */ 7 | name?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/UpdateDeepInfraCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdateDeepInfraCredentialDto { 4 | /** This is not returned in the API. */ 5 | apiKey?: string; 6 | /** This is the name of credential. This is just for your reference. */ 7 | name?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/UpdateDeepSeekCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdateDeepSeekCredentialDto { 4 | /** This is not returned in the API. */ 5 | apiKey?: string; 6 | /** This is the name of credential. This is just for your reference. */ 7 | name?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/UpdateMistralCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdateMistralCredentialDto { 4 | /** This is not returned in the API. */ 5 | apiKey?: string; 6 | /** This is the name of credential. This is just for your reference. */ 7 | name?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/UpdateNeuphonicCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdateNeuphonicCredentialDto { 4 | /** This is not returned in the API. */ 5 | apiKey?: string; 6 | /** This is the name of credential. This is just for your reference. */ 7 | name?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/UpdateWellSaidCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdateWellSaidCredentialDto { 4 | /** This is not returned in the API. */ 5 | apiKey?: string; 6 | /** This is the name of credential. This is just for your reference. */ 7 | name?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/WorkflowVoicemailDetectionZero.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const WorkflowVoicemailDetectionZero = { 4 | Off: "off", 5 | } as const; 6 | export type WorkflowVoicemailDetectionZero = 7 | (typeof WorkflowVoicemailDetectionZero)[keyof typeof WorkflowVoicemailDetectionZero]; 8 | -------------------------------------------------------------------------------- /src/api/types/XssSecurityFilterType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The type of security threat to filter. */ 4 | export const XssSecurityFilterType = { 5 | Xss: "xss", 6 | } as const; 7 | export type XssSecurityFilterType = (typeof XssSecurityFilterType)[keyof typeof XssSecurityFilterType]; 8 | -------------------------------------------------------------------------------- /src/api/resources/assistants/client/requests/index.ts: -------------------------------------------------------------------------------- 1 | export type { DeleteAssistantsRequest } from "./DeleteAssistantsRequest.js"; 2 | export type { GetAssistantsRequest } from "./GetAssistantsRequest.js"; 3 | export type { ListAssistantsRequest } from "./ListAssistantsRequest.js"; 4 | export type { UpdateAssistantDto } from "./UpdateAssistantDto.js"; 5 | -------------------------------------------------------------------------------- /src/api/resources/chats/types/ListChatsRequestSortOrder.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const ListChatsRequestSortOrder = { 4 | Asc: "ASC", 5 | Desc: "DESC", 6 | } as const; 7 | export type ListChatsRequestSortOrder = (typeof ListChatsRequestSortOrder)[keyof typeof ListChatsRequestSortOrder]; 8 | -------------------------------------------------------------------------------- /src/api/resources/eval/types/CreateEvalRunDtoTarget.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../../../index.js"; 4 | 5 | /** 6 | * This is the target that will be run against the eval 7 | */ 8 | export type CreateEvalRunDtoTarget = Vapi.EvalRunTargetAssistant | Vapi.EvalRunTargetSquad; 9 | -------------------------------------------------------------------------------- /src/api/types/AnalysisCostType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the type of cost, always 'analysis' for this class. */ 4 | export const AnalysisCostType = { 5 | Analysis: "analysis", 6 | } as const; 7 | export type AnalysisCostType = (typeof AnalysisCostType)[keyof typeof AnalysisCostType]; 8 | -------------------------------------------------------------------------------- /src/api/types/ApiRequestToolMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type ApiRequestToolMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/AssemblyAiCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const AssemblyAiCredentialProvider = { 4 | AssemblyAi: "assembly-ai", 5 | } as const; 6 | export type AssemblyAiCredentialProvider = 7 | (typeof AssemblyAiCredentialProvider)[keyof typeof AssemblyAiCredentialProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/AssistantMessageRole.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the role of the message author */ 4 | export const AssistantMessageRole = { 5 | Assistant: "assistant", 6 | } as const; 7 | export type AssistantMessageRole = (typeof AssistantMessageRole)[keyof typeof AssistantMessageRole]; 8 | -------------------------------------------------------------------------------- /src/api/types/AssistantVoicemailDetectionZero.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const AssistantVoicemailDetectionZero = { 4 | Off: "off", 5 | } as const; 6 | export type AssistantVoicemailDetectionZero = 7 | (typeof AssistantVoicemailDetectionZero)[keyof typeof AssistantVoicemailDetectionZero]; 8 | -------------------------------------------------------------------------------- /src/api/types/CallMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CallMessagesItem = 6 | | Vapi.UserMessage 7 | | Vapi.SystemMessage 8 | | Vapi.BotMessage 9 | | Vapi.ToolCallMessage 10 | | Vapi.ToolCallResultMessage; 11 | -------------------------------------------------------------------------------- /src/api/types/ComputerToolMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type ComputerToolMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/ContextEngineeringPlanNoneType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const ContextEngineeringPlanNoneType = { 4 | None: "none", 5 | } as const; 6 | export type ContextEngineeringPlanNoneType = 7 | (typeof ContextEngineeringPlanNoneType)[keyof typeof ContextEngineeringPlanNoneType]; 8 | -------------------------------------------------------------------------------- /src/api/types/DeveloperMessageRole.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the role of the message author */ 4 | export const DeveloperMessageRole = { 5 | Developer: "developer", 6 | } as const; 7 | export type DeveloperMessageRole = (typeof DeveloperMessageRole)[keyof typeof DeveloperMessageRole]; 8 | -------------------------------------------------------------------------------- /src/api/types/EvalGroqModelProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the provider of the model (`groq`). */ 4 | export const EvalGroqModelProvider = { 5 | Groq: "groq", 6 | } as const; 7 | export type EvalGroqModelProvider = (typeof EvalGroqModelProvider)[keyof typeof EvalGroqModelProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/EvalRunType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** 4 | * This is the type of the run. 5 | * Currently it is fixed to `eval`. 6 | */ 7 | export const EvalRunType = { 8 | Eval: "eval", 9 | } as const; 10 | export type EvalRunType = (typeof EvalRunType)[keyof typeof EvalRunType]; 11 | -------------------------------------------------------------------------------- /src/api/types/FunctionToolMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type FunctionToolMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/GhlToolWithToolCallType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The type of tool. "ghl" for GHL tool. */ 4 | export const GhlToolWithToolCallType = { 5 | Ghl: "ghl", 6 | } as const; 7 | export type GhlToolWithToolCallType = (typeof GhlToolWithToolCallType)[keyof typeof GhlToolWithToolCallType]; 8 | -------------------------------------------------------------------------------- /src/api/types/HandoffDestinationDynamicType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const HandoffDestinationDynamicType = { 4 | Dynamic: "dynamic", 5 | } as const; 6 | export type HandoffDestinationDynamicType = 7 | (typeof HandoffDestinationDynamicType)[keyof typeof HandoffDestinationDynamicType]; 8 | -------------------------------------------------------------------------------- /src/api/types/LiquidConditionType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the type discriminator for liquid condition */ 4 | export const LiquidConditionType = { 5 | Liquid: "liquid", 6 | } as const; 7 | export type LiquidConditionType = (typeof LiquidConditionType)[keyof typeof LiquidConditionType]; 8 | -------------------------------------------------------------------------------- /src/api/types/OpenRouterCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const OpenRouterCredentialProvider = { 4 | Openrouter: "openrouter", 5 | } as const; 6 | export type OpenRouterCredentialProvider = 7 | (typeof OpenRouterCredentialProvider)[keyof typeof OpenRouterCredentialProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/ResponseOutputTextType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The type of the output text */ 4 | export const ResponseOutputTextType = { 5 | OutputText: "output_text", 6 | } as const; 7 | export type ResponseOutputTextType = (typeof ResponseOutputTextType)[keyof typeof ResponseOutputTextType]; 8 | -------------------------------------------------------------------------------- /src/api/types/SessionMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type SessionMessagesItem = 6 | | Vapi.SystemMessage 7 | | Vapi.UserMessage 8 | | Vapi.AssistantMessage 9 | | Vapi.ToolMessage 10 | | Vapi.DeveloperMessage; 11 | -------------------------------------------------------------------------------- /src/api/types/SmallestAiCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const SmallestAiCredentialProvider = { 4 | SmallestAi: "smallest-ai", 5 | } as const; 6 | export type SmallestAiCredentialProvider = 7 | (typeof SmallestAiCredentialProvider)[keyof typeof SmallestAiCredentialProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/SsrfSecurityFilterType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The type of security threat to filter. */ 4 | export const SsrfSecurityFilterType = { 5 | Ssrf: "ssrf", 6 | } as const; 7 | export type SsrfSecurityFilterType = (typeof SsrfSecurityFilterType)[keyof typeof SsrfSecurityFilterType]; 8 | -------------------------------------------------------------------------------- /src/api/types/TextEditorToolMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type TextEditorToolMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/TogetherAiCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const TogetherAiCredentialProvider = { 4 | TogetherAi: "together-ai", 5 | } as const; 6 | export type TogetherAiCredentialProvider = 7 | (typeof TogetherAiCredentialProvider)[keyof typeof TogetherAiCredentialProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/UpdateAssemblyAiCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdateAssemblyAiCredentialDto { 4 | /** This is not returned in the API. */ 5 | apiKey?: string; 6 | /** This is the name of credential. This is just for your reference. */ 7 | name?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/UpdateGoHighLevelCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdateGoHighLevelCredentialDto { 4 | /** This is not returned in the API. */ 5 | apiKey?: string; 6 | /** This is the name of credential. This is just for your reference. */ 7 | name?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/UpdateOpenRouterCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdateOpenRouterCredentialDto { 4 | /** This is not returned in the API. */ 5 | apiKey?: string; 6 | /** This is the name of credential. This is just for your reference. */ 7 | name?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/UpdateTogetherAiCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdateTogetherAiCredentialDto { 4 | /** This is not returned in the API. */ 5 | apiKey?: string; 6 | /** This is the name of credential. This is just for your reference. */ 7 | name?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/UpdateUserRoleDtoRole.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const UpdateUserRoleDtoRole = { 4 | Admin: "admin", 5 | Editor: "editor", 6 | Viewer: "viewer", 7 | } as const; 8 | export type UpdateUserRoleDtoRole = (typeof UpdateUserRoleDtoRole)[keyof typeof UpdateUserRoleDtoRole]; 9 | -------------------------------------------------------------------------------- /src/api/types/WebChatOutputItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type WebChatOutputItem = 6 | | Vapi.SystemMessage 7 | | Vapi.UserMessage 8 | | Vapi.AssistantMessage 9 | | Vapi.ToolMessage 10 | | Vapi.DeveloperMessage; 11 | -------------------------------------------------------------------------------- /src/core/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./auth/index.js"; 2 | export * from "./base64.js"; 3 | export * from "./fetcher/index.js"; 4 | export * as file from "./file/index.js"; 5 | export * from "./form-data-utils/index.js"; 6 | export * as logging from "./logging/index.js"; 7 | export * from "./runtime/index.js"; 8 | export * as url from "./url/index.js"; 9 | -------------------------------------------------------------------------------- /src/api/types/ArtifactMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type ArtifactMessagesItem = 6 | | Vapi.UserMessage 7 | | Vapi.SystemMessage 8 | | Vapi.BotMessage 9 | | Vapi.ToolCallMessage 10 | | Vapi.ToolCallResultMessage; 11 | -------------------------------------------------------------------------------- /src/api/types/CallHookCallEndingOn.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the event that triggers this hook */ 4 | export const CallHookCallEndingOn = { 5 | CallEnding: "call.ending", 6 | } as const; 7 | export type CallHookCallEndingOn = (typeof CallHookCallEndingOn)[keyof typeof CallHookCallEndingOn]; 8 | -------------------------------------------------------------------------------- /src/api/types/ClientInboundMessage.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface ClientInboundMessage { 6 | /** These are the messages that can be sent from client-side SDKs to control the call. */ 7 | message: Vapi.ClientInboundMessageMessage; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/Compliance.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface Compliance { 6 | /** This is the recording consent of the call. Configure in `assistant.compliancePlan.recordingConsentPlan`. */ 7 | recordingConsent?: Vapi.RecordingConsent; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/CreateGhlToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CreateGhlToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/CreateMcpToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CreateMcpToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/CreateSmsToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CreateSmsToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/FallbackTavusVoiceVoiceIdZero.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const FallbackTavusVoiceVoiceIdZero = { 4 | R52Da2535A: "r52da2535a", 5 | } as const; 6 | export type FallbackTavusVoiceVoiceIdZero = 7 | (typeof FallbackTavusVoiceVoiceIdZero)[keyof typeof FallbackTavusVoiceVoiceIdZero]; 8 | -------------------------------------------------------------------------------- /src/api/types/GoHighLevelCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const GoHighLevelCredentialProvider = { 4 | Gohighlevel: "gohighlevel", 5 | } as const; 6 | export type GoHighLevelCredentialProvider = 7 | (typeof GoHighLevelCredentialProvider)[keyof typeof GoHighLevelCredentialProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/InworldVoiceProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the voice provider that will be used. */ 4 | export const InworldVoiceProvider = { 5 | Inworld: "inworld", 6 | } as const; 7 | export type InworldVoiceProvider = (typeof InworldVoiceProvider)[keyof typeof InworldVoiceProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/MinimaxVoiceProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the voice provider that will be used. */ 4 | export const MinimaxVoiceProvider = { 5 | Minimax: "minimax", 6 | } as const; 7 | export type MinimaxVoiceProvider = (typeof MinimaxVoiceProvider)[keyof typeof MinimaxVoiceProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/OpenAiModelProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the provider that will be used for the model. */ 4 | export const OpenAiModelProvider = { 5 | Openai: "openai", 6 | } as const; 7 | export type OpenAiModelProvider = (typeof OpenAiModelProvider)[keyof typeof OpenAiModelProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/PhoneNumberHookCallEndingDo.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | /** 6 | * This is the action to perform when the hook triggers 7 | */ 8 | export type PhoneNumberHookCallEndingDo = Vapi.TransferPhoneNumberHookAction | Vapi.SayPhoneNumberHookAction; 9 | -------------------------------------------------------------------------------- /src/api/types/RegexSecurityFilterType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The type of security threat to filter. */ 4 | export const RegexSecurityFilterType = { 5 | Regex: "regex", 6 | } as const; 7 | export type RegexSecurityFilterType = (typeof RegexSecurityFilterType)[keyof typeof RegexSecurityFilterType]; 8 | -------------------------------------------------------------------------------- /src/api/types/SpkiPemPublicKeyConfig.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface SpkiPemPublicKeyConfig { 4 | /** Optional name of the key for identification purposes. */ 5 | name?: string; 6 | format: "spki-pem"; 7 | /** The PEM-encoded public key. */ 8 | pem: string; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/types/TestSuiteTestChatType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the type of the test, which must be chat. */ 4 | export const TestSuiteTestChatType = { 5 | Chat: "chat", 6 | } as const; 7 | export type TestSuiteTestChatType = (typeof TestSuiteTestChatType)[keyof typeof TestSuiteTestChatType]; 8 | -------------------------------------------------------------------------------- /src/api/types/ToolCallHookActionType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the type of action - must be "tool" */ 4 | export const ToolCallHookActionType = { 5 | Tool: "tool", 6 | } as const; 7 | export type ToolCallHookActionType = (typeof ToolCallHookActionType)[keyof typeof ToolCallHookActionType]; 8 | -------------------------------------------------------------------------------- /src/api/types/TransferCallToolMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type TransferCallToolMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/TransportCostType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the type of cost, always 'transport' for this class. */ 4 | export const TransportCostType = { 5 | Transport: "transport", 6 | } as const; 7 | export type TransportCostType = (typeof TransportCostType)[keyof typeof TransportCostType]; 8 | -------------------------------------------------------------------------------- /src/api/types/UpdateGhlToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type UpdateGhlToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/UpdateInflectionAiCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdateInflectionAiCredentialDto { 4 | /** This is not returned in the API. */ 5 | apiKey?: string; 6 | /** This is the name of credential. This is just for your reference. */ 7 | name?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/UpdateMcpToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type UpdateMcpToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/UpdatePerplexityAiCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface UpdatePerplexityAiCredentialDto { 4 | /** This is not returned in the API. */ 5 | apiKey?: string; 6 | /** This is the name of credential. This is just for your reference. */ 7 | name?: string; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/UpdateSmsToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type UpdateSmsToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/WorkflowBackgroundSoundZero.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const WorkflowBackgroundSoundZero = { 4 | Off: "off", 5 | Office: "office", 6 | } as const; 7 | export type WorkflowBackgroundSoundZero = 8 | (typeof WorkflowBackgroundSoundZero)[keyof typeof WorkflowBackgroundSoundZero]; 9 | -------------------------------------------------------------------------------- /src/core/fetcher/createRequestUrl.ts: -------------------------------------------------------------------------------- 1 | import { toQueryString } from "../url/qs.js"; 2 | 3 | export function createRequestUrl(baseUrl: string, queryParameters?: Record): string { 4 | const queryString = toQueryString(queryParameters, { arrayFormat: "repeat" }); 5 | return queryString ? `${baseUrl}?${queryString}` : baseUrl; 6 | } 7 | -------------------------------------------------------------------------------- /src/core/fetcher/getHeader.ts: -------------------------------------------------------------------------------- 1 | export function getHeader(headers: Record, header: string): string | undefined { 2 | for (const [headerKey, headerValue] of Object.entries(headers)) { 3 | if (headerKey.toLowerCase() === header.toLowerCase()) { 4 | return headerValue; 5 | } 6 | } 7 | return undefined; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/AnthropicModelProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The provider identifier for Anthropic. */ 4 | export const AnthropicModelProvider = { 5 | Anthropic: "anthropic", 6 | } as const; 7 | export type AnthropicModelProvider = (typeof AnthropicModelProvider)[keyof typeof AnthropicModelProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/AssistantBackgroundSoundZero.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const AssistantBackgroundSoundZero = { 4 | Off: "off", 5 | Office: "office", 6 | } as const; 7 | export type AssistantBackgroundSoundZero = 8 | (typeof AssistantBackgroundSoundZero)[keyof typeof AssistantBackgroundSoundZero]; 9 | -------------------------------------------------------------------------------- /src/api/types/AzureOpenAiCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const AzureOpenAiCredentialProvider = { 4 | AzureOpenai: "azure-openai", 5 | } as const; 6 | export type AzureOpenAiCredentialProvider = 7 | (typeof AzureOpenAiCredentialProvider)[keyof typeof AzureOpenAiCredentialProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/BashToolWithToolCallName.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The name of the tool, fixed to 'bash' */ 4 | export const BashToolWithToolCallName = { 5 | Bash: "bash", 6 | } as const; 7 | export type BashToolWithToolCallName = (typeof BashToolWithToolCallName)[keyof typeof BashToolWithToolCallName]; 8 | -------------------------------------------------------------------------------- /src/api/types/BashToolWithToolCallType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The type of tool. "bash" for Bash tool. */ 4 | export const BashToolWithToolCallType = { 5 | Bash: "bash", 6 | } as const; 7 | export type BashToolWithToolCallType = (typeof BashToolWithToolCallType)[keyof typeof BashToolWithToolCallType]; 8 | -------------------------------------------------------------------------------- /src/api/types/CallHookFilterType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the type of filter - currently only "oneOf" is supported */ 4 | export const CallHookFilterType = { 5 | OneOf: "oneOf", 6 | } as const; 7 | export type CallHookFilterType = (typeof CallHookFilterType)[keyof typeof CallHookFilterType]; 8 | -------------------------------------------------------------------------------- /src/api/types/CartesiaVoiceProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the voice provider that will be used. */ 4 | export const CartesiaVoiceProvider = { 5 | Cartesia: "cartesia", 6 | } as const; 7 | export type CartesiaVoiceProvider = (typeof CartesiaVoiceProvider)[keyof typeof CartesiaVoiceProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/ClientInboundMessageEndCall.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface ClientInboundMessageEndCall { 6 | /** This is the type of the message. Send "end-call" message to end the call. */ 7 | type: Vapi.ClientInboundMessageEndCallType; 8 | } 9 | -------------------------------------------------------------------------------- /src/api/types/CreateBashToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CreateBashToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/CreateBashToolDtoSubType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The sub type of tool. */ 4 | export const CreateBashToolDtoSubType = { 5 | Bash20241022: "bash_20241022", 6 | } as const; 7 | export type CreateBashToolDtoSubType = (typeof CreateBashToolDtoSubType)[keyof typeof CreateBashToolDtoSubType]; 8 | -------------------------------------------------------------------------------- /src/api/types/CreateCodeToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CreateCodeToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/CreateDtmfToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CreateDtmfToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/CreateGoogleCalendarOAuth2ClientCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface CreateGoogleCalendarOAuth2ClientCredentialDto { 4 | provider: "google.calendar.oauth2-client"; 5 | /** This is the name of credential. This is just for your reference. */ 6 | name?: string; 7 | } 8 | -------------------------------------------------------------------------------- /src/api/types/CreateMakeToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CreateMakeToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/CreateOutputToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CreateOutputToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/CreateQueryToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CreateQueryToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/CreateTransferCallToolDtoDestinationsItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CreateTransferCallToolDtoDestinationsItem = 6 | | Vapi.TransferDestinationAssistant 7 | | Vapi.TransferDestinationNumber 8 | | Vapi.TransferDestinationSip; 9 | -------------------------------------------------------------------------------- /src/api/types/CredentialWebhookDtoType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const CredentialWebhookDtoType = { 4 | Auth: "auth", 5 | Sync: "sync", 6 | Forward: "forward", 7 | } as const; 8 | export type CredentialWebhookDtoType = (typeof CredentialWebhookDtoType)[keyof typeof CredentialWebhookDtoType]; 9 | -------------------------------------------------------------------------------- /src/api/types/DeepgramVoiceProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the voice provider that will be used. */ 4 | export const DeepgramVoiceProvider = { 5 | Deepgram: "deepgram", 6 | } as const; 7 | export type DeepgramVoiceProvider = (typeof DeepgramVoiceProvider)[keyof typeof DeepgramVoiceProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/ElevenLabsVoiceId.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | /** 6 | * This is the provider-specific ID that will be used. Ensure the Voice is present in your 11Labs Voice Library. 7 | */ 8 | export type ElevenLabsVoiceId = Vapi.ElevenLabsVoiceIdEnum | string; 9 | -------------------------------------------------------------------------------- /src/api/types/FallbackSesameVoiceModel.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the model that will be used. */ 4 | export const FallbackSesameVoiceModel = { 5 | Csm1B: "csm-1b", 6 | } as const; 7 | export type FallbackSesameVoiceModel = (typeof FallbackSesameVoiceModel)[keyof typeof FallbackSesameVoiceModel]; 8 | -------------------------------------------------------------------------------- /src/api/types/GhlToolWithToolCallMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type GhlToolWithToolCallMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/GladiaTranscriberModel.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const GladiaTranscriberModel = { 4 | Fast: "fast", 5 | Accurate: "accurate", 6 | Solaria1: "solaria-1", 7 | } as const; 8 | export type GladiaTranscriberModel = (typeof GladiaTranscriberModel)[keyof typeof GladiaTranscriberModel]; 9 | -------------------------------------------------------------------------------- /src/api/types/InsightType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the type of the Insight. */ 4 | export const InsightType = { 5 | Bar: "bar", 6 | Line: "line", 7 | Pie: "pie", 8 | Text: "text", 9 | } as const; 10 | export type InsightType = (typeof InsightType)[keyof typeof InsightType]; 11 | -------------------------------------------------------------------------------- /src/api/types/MakeToolWithToolCallType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The type of tool. "make" for Make tool. */ 4 | export const MakeToolWithToolCallType = { 5 | Make: "make", 6 | } as const; 7 | export type MakeToolWithToolCallType = (typeof MakeToolWithToolCallType)[keyof typeof MakeToolWithToolCallType]; 8 | -------------------------------------------------------------------------------- /src/api/types/TextEditorToolSubType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The sub type of tool. */ 4 | export const TextEditorToolSubType = { 5 | TextEditor20241022: "text_editor_20241022", 6 | } as const; 7 | export type TextEditorToolSubType = (typeof TextEditorToolSubType)[keyof typeof TextEditorToolSubType]; 8 | -------------------------------------------------------------------------------- /src/api/types/UpdateBashToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type UpdateBashToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/UpdateBashToolDtoSubType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The sub type of tool. */ 4 | export const UpdateBashToolDtoSubType = { 5 | Bash20241022: "bash_20241022", 6 | } as const; 7 | export type UpdateBashToolDtoSubType = (typeof UpdateBashToolDtoSubType)[keyof typeof UpdateBashToolDtoSubType]; 8 | -------------------------------------------------------------------------------- /src/api/types/UpdateCodeToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type UpdateCodeToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/UpdateDtmfToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type UpdateDtmfToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/UpdateMakeToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type UpdateMakeToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/UpdateOutputToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type UpdateOutputToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/UpdateQueryToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type UpdateQueryToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/UpdateTransferCallToolDtoDestinationsItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type UpdateTransferCallToolDtoDestinationsItem = 6 | | Vapi.TransferDestinationAssistant 7 | | Vapi.TransferDestinationNumber 8 | | Vapi.TransferDestinationSip; 9 | -------------------------------------------------------------------------------- /src/api/types/WellSaidVoiceModel.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the model that will be used. */ 4 | export const WellSaidVoiceModel = { 5 | Caruso: "caruso", 6 | Legacy: "legacy", 7 | } as const; 8 | export type WellSaidVoiceModel = (typeof WellSaidVoiceModel)[keyof typeof WellSaidVoiceModel]; 9 | -------------------------------------------------------------------------------- /src/api/types/WellSaidVoiceProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the voice provider that will be used. */ 4 | export const WellSaidVoiceProvider = { 5 | Wellsaid: "wellsaid", 6 | } as const; 7 | export type WellSaidVoiceProvider = (typeof WellSaidVoiceProvider)[keyof typeof WellSaidVoiceProvider]; 8 | -------------------------------------------------------------------------------- /src/api/resources/eval/types/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./CreateEvalRunDtoTarget.js"; 2 | export * from "./CreateEvalRunDtoType.js"; 3 | export * from "./EvalControllerGetPaginatedRequestSortOrder.js"; 4 | export * from "./EvalControllerGetRunsPaginatedRequestSortOrder.js"; 5 | export * from "./UpdateEvalDtoMessagesItem.js"; 6 | export * from "./UpdateEvalDtoType.js"; 7 | -------------------------------------------------------------------------------- /src/api/types/AiEdgeCondition.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface AiEdgeCondition { 6 | type: Vapi.AiEdgeConditionType; 7 | /** This is the prompt for the AI edge condition. It should evaluate to a boolean. */ 8 | prompt: string; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/types/BashToolWithToolCallMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type BashToolWithToolCallMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/ClientInboundMessageTransferDestination.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | /** 6 | * This is the destination to transfer the call to. 7 | */ 8 | export type ClientInboundMessageTransferDestination = Vapi.TransferDestinationNumber | Vapi.TransferDestinationSip; 9 | -------------------------------------------------------------------------------- /src/api/types/CreateComputerToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CreateComputerToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/CreateEndCallToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CreateEndCallToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/CreateFunctionToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CreateFunctionToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/CreateHandoffToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CreateHandoffToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/CreateOutputToolDtoType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The type of tool. "output" for Output tool. */ 4 | export const CreateOutputToolDtoType = { 5 | Output: "output", 6 | } as const; 7 | export type CreateOutputToolDtoType = (typeof CreateOutputToolDtoType)[keyof typeof CreateOutputToolDtoType]; 8 | -------------------------------------------------------------------------------- /src/api/types/CreateWebChatDtoInput.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | /** 6 | * This is the input text for the chat. 7 | * Can be a string or an array of chat messages. 8 | */ 9 | export type CreateWebChatDtoInput = string | Vapi.CreateWebChatDtoInputOneItem[]; 10 | -------------------------------------------------------------------------------- /src/api/types/EvalGoogleModelProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the provider of the model (`google`). */ 4 | export const EvalGoogleModelProvider = { 5 | Google: "google", 6 | } as const; 7 | export type EvalGoogleModelProvider = (typeof EvalGoogleModelProvider)[keyof typeof EvalGoogleModelProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/EvalOpenAiModelProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the provider of the model (`openai`). */ 4 | export const EvalOpenAiModelProvider = { 5 | Openai: "openai", 6 | } as const; 7 | export type EvalOpenAiModelProvider = (typeof EvalOpenAiModelProvider)[keyof typeof EvalOpenAiModelProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/GhlToolProviderDetailsType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The type of tool. "ghl" for GHL tool. */ 4 | export const GhlToolProviderDetailsType = { 5 | Ghl: "ghl", 6 | } as const; 7 | export type GhlToolProviderDetailsType = (typeof GhlToolProviderDetailsType)[keyof typeof GhlToolProviderDetailsType]; 8 | -------------------------------------------------------------------------------- /src/api/types/HandoffDestinationAssistantType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const HandoffDestinationAssistantType = { 4 | Assistant: "assistant", 5 | } as const; 6 | export type HandoffDestinationAssistantType = 7 | (typeof HandoffDestinationAssistantType)[keyof typeof HandoffDestinationAssistantType]; 8 | -------------------------------------------------------------------------------- /src/api/types/MakeToolWithToolCallMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type MakeToolWithToolCallMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/NeuphonicVoiceProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the voice provider that will be used. */ 4 | export const NeuphonicVoiceProvider = { 5 | Neuphonic: "neuphonic", 6 | } as const; 7 | export type NeuphonicVoiceProvider = (typeof NeuphonicVoiceProvider)[keyof typeof NeuphonicVoiceProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/NodeArtifactMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type NodeArtifactMessagesItem = 6 | | Vapi.UserMessage 7 | | Vapi.SystemMessage 8 | | Vapi.BotMessage 9 | | Vapi.ToolCallMessage 10 | | Vapi.ToolCallResultMessage; 11 | -------------------------------------------------------------------------------- /src/api/types/PerplexityAiCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const PerplexityAiCredentialProvider = { 4 | PerplexityAi: "perplexity-ai", 5 | } as const; 6 | export type PerplexityAiCredentialProvider = 7 | (typeof PerplexityAiCredentialProvider)[keyof typeof PerplexityAiCredentialProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/ResponseOutputMessageRole.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The role of the output message */ 4 | export const ResponseOutputMessageRole = { 5 | Assistant: "assistant", 6 | } as const; 7 | export type ResponseOutputMessageRole = (typeof ResponseOutputMessageRole)[keyof typeof ResponseOutputMessageRole]; 8 | -------------------------------------------------------------------------------- /src/api/types/ResponseOutputMessageType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The type of the output message */ 4 | export const ResponseOutputMessageType = { 5 | Message: "message", 6 | } as const; 7 | export type ResponseOutputMessageType = (typeof ResponseOutputMessageType)[keyof typeof ResponseOutputMessageType]; 8 | -------------------------------------------------------------------------------- /src/api/types/SayHookActionPromptOneItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type SayHookActionPromptOneItem = 6 | | Vapi.SystemMessage 7 | | Vapi.UserMessage 8 | | Vapi.AssistantMessage 9 | | Vapi.ToolMessage 10 | | Vapi.DeveloperMessage; 11 | -------------------------------------------------------------------------------- /src/api/types/SlackSendMessageToolMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type SlackSendMessageToolMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/SpeechmaticsCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const SpeechmaticsCredentialProvider = { 4 | Speechmatics: "speechmatics", 5 | } as const; 6 | export type SpeechmaticsCredentialProvider = 7 | (typeof SpeechmaticsCredentialProvider)[keyof typeof SpeechmaticsCredentialProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/TestSuiteRunScorerAiType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the type of the scorer, which must be AI. */ 4 | export const TestSuiteRunScorerAiType = { 5 | Ai: "ai", 6 | } as const; 7 | export type TestSuiteRunScorerAiType = (typeof TestSuiteRunScorerAiType)[keyof typeof TestSuiteRunScorerAiType]; 8 | -------------------------------------------------------------------------------- /src/api/types/TestSuiteTestVoiceType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the type of the test, which must be voice. */ 4 | export const TestSuiteTestVoiceType = { 5 | Voice: "voice", 6 | } as const; 7 | export type TestSuiteTestVoiceType = (typeof TestSuiteTestVoiceType)[keyof typeof TestSuiteTestVoiceType]; 8 | -------------------------------------------------------------------------------- /src/api/types/TransferHookActionType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the type of action - must be "transfer" */ 4 | export const TransferHookActionType = { 5 | Transfer: "transfer", 6 | } as const; 7 | export type TransferHookActionType = (typeof TransferHookActionType)[keyof typeof TransferHookActionType]; 8 | -------------------------------------------------------------------------------- /src/api/types/UpdateComputerToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type UpdateComputerToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/UpdateEndCallToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type UpdateEndCallToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/UpdateFunctionToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type UpdateFunctionToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/UpdateHandoffToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type UpdateHandoffToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/resources/tools/types/ToolControllerTestCodeExecutionResponse.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface ToolControllerTestCodeExecutionResponse { 4 | success?: boolean; 5 | result?: Record; 6 | error?: string; 7 | logs?: string; 8 | executionTimeMs?: number; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/types/AnalyticsQueryTable.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the table you want to query. */ 4 | export const AnalyticsQueryTable = { 5 | Call: "call", 6 | Subscription: "subscription", 7 | } as const; 8 | export type AnalyticsQueryTable = (typeof AnalyticsQueryTable)[keyof typeof AnalyticsQueryTable]; 9 | -------------------------------------------------------------------------------- /src/api/types/BarInsightQueriesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type BarInsightQueriesItem = 6 | | Vapi.JsonQueryOnCallTableWithStringTypeColumn 7 | | Vapi.JsonQueryOnCallTableWithNumberTypeColumn 8 | | Vapi.JsonQueryOnCallTableWithStructuredOutputColumn; 9 | -------------------------------------------------------------------------------- /src/api/types/ComputerToolWithToolCallMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type ComputerToolWithToolCallMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/CreateApiRequestToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CreateApiRequestToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/CreateGroqCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface CreateGroqCredentialDto { 4 | provider: "groq"; 5 | /** This is not returned in the API. */ 6 | apiKey: string; 7 | /** This is the name of credential. This is just for your reference. */ 8 | name?: string; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/types/CreateHumeCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface CreateHumeCredentialDto { 4 | provider: "hume"; 5 | /** This is not returned in the API. */ 6 | apiKey: string; 7 | /** This is the name of credential. This is just for your reference. */ 8 | name?: string; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/types/CreateLmntCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface CreateLmntCredentialDto { 4 | provider: "lmnt"; 5 | /** This is not returned in the API. */ 6 | apiKey: string; 7 | /** This is the name of credential. This is just for your reference. */ 8 | name?: string; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/types/CreateTextEditorToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CreateTextEditorToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/CreateVoicemailToolDtoMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CreateVoicemailToolDtoMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/CreateWebChatDtoInputOneItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type CreateWebChatDtoInputOneItem = 6 | | Vapi.SystemMessage 7 | | Vapi.UserMessage 8 | | Vapi.AssistantMessage 9 | | Vapi.ToolMessage 10 | | Vapi.DeveloperMessage; 11 | -------------------------------------------------------------------------------- /src/api/types/CreateXAiCredentialDto.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export interface CreateXAiCredentialDto { 4 | provider: "xai"; 5 | /** This is not returned in the API. */ 6 | apiKey: string; 7 | /** This is the name of credential. This is just for your reference. */ 8 | name?: string; 9 | } 10 | -------------------------------------------------------------------------------- /src/api/types/FallbackCartesiaTranscriberModel.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const FallbackCartesiaTranscriberModel = { 4 | InkWhisper: "ink-whisper", 5 | } as const; 6 | export type FallbackCartesiaTranscriberModel = 7 | (typeof FallbackCartesiaTranscriberModel)[keyof typeof FallbackCartesiaTranscriberModel]; 8 | -------------------------------------------------------------------------------- /src/api/types/FallbackHumeVoiceProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the voice provider that will be used. */ 4 | export const FallbackHumeVoiceProvider = { 5 | Hume: "hume", 6 | } as const; 7 | export type FallbackHumeVoiceProvider = (typeof FallbackHumeVoiceProvider)[keyof typeof FallbackHumeVoiceProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/FallbackLmntVoiceProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the voice provider that will be used. */ 4 | export const FallbackLmntVoiceProvider = { 5 | Lmnt: "lmnt", 6 | } as const; 7 | export type FallbackLmntVoiceProvider = (typeof FallbackLmntVoiceProvider)[keyof typeof FallbackLmntVoiceProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/FallbackVapiVoiceProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the voice provider that will be used. */ 4 | export const FallbackVapiVoiceProvider = { 5 | Vapi: "vapi", 6 | } as const; 7 | export type FallbackVapiVoiceProvider = (typeof FallbackVapiVoiceProvider)[keyof typeof FallbackVapiVoiceProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/FunctionCallHookActionMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type FunctionCallHookActionMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/FunctionToolWithToolCallMessagesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type FunctionToolWithToolCallMessagesItem = 6 | | Vapi.ToolMessageStart 7 | | Vapi.ToolMessageComplete 8 | | Vapi.ToolMessageFailed 9 | | Vapi.ToolMessageDelayed; 10 | -------------------------------------------------------------------------------- /src/api/types/LangfuseObservabilityPlanProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const LangfuseObservabilityPlanProvider = { 4 | Langfuse: "langfuse", 5 | } as const; 6 | export type LangfuseObservabilityPlanProvider = 7 | (typeof LangfuseObservabilityPlanProvider)[keyof typeof LangfuseObservabilityPlanProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/PieInsightQueriesItem.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export type PieInsightQueriesItem = 6 | | Vapi.JsonQueryOnCallTableWithStringTypeColumn 7 | | Vapi.JsonQueryOnCallTableWithNumberTypeColumn 8 | | Vapi.JsonQueryOnCallTableWithStructuredOutputColumn; 9 | -------------------------------------------------------------------------------- /src/api/types/ResponseCompletedEvent.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | import type * as Vapi from "../index.js"; 4 | 5 | export interface ResponseCompletedEvent { 6 | /** The completed response */ 7 | response: Vapi.ResponseObject; 8 | /** Event type */ 9 | type: Vapi.ResponseCompletedEventType; 10 | } 11 | -------------------------------------------------------------------------------- /src/api/types/ResponseCompletedEventType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** Event type */ 4 | export const ResponseCompletedEventType = { 5 | ResponseCompleted: "response.completed", 6 | } as const; 7 | export type ResponseCompletedEventType = (typeof ResponseCompletedEventType)[keyof typeof ResponseCompletedEventType]; 8 | -------------------------------------------------------------------------------- /src/api/types/SupabaseCredentialProvider.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is for supabase storage. */ 4 | export const SupabaseCredentialProvider = { 5 | Supabase: "supabase", 6 | } as const; 7 | export type SupabaseCredentialProvider = (typeof SupabaseCredentialProvider)[keyof typeof SupabaseCredentialProvider]; 8 | -------------------------------------------------------------------------------- /src/api/types/TestSuiteTestScorerAiType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** This is the type of the scorer, which must be AI. */ 4 | export const TestSuiteTestScorerAiType = { 5 | Ai: "ai", 6 | } as const; 7 | export type TestSuiteTestScorerAiType = (typeof TestSuiteTestScorerAiType)[keyof typeof TestSuiteTestScorerAiType]; 8 | -------------------------------------------------------------------------------- /src/api/types/TextEditorToolName.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | /** The name of the tool, fixed to 'str_replace_editor' */ 4 | export const TextEditorToolName = { 5 | StrReplaceEditor: "str_replace_editor", 6 | } as const; 7 | export type TextEditorToolName = (typeof TextEditorToolName)[keyof typeof TextEditorToolName]; 8 | -------------------------------------------------------------------------------- /src/api/types/TransferDestinationAssistantType.ts: -------------------------------------------------------------------------------- 1 | // This file was auto-generated by Fern from our API Definition. 2 | 3 | export const TransferDestinationAssistantType = { 4 | Assistant: "assistant", 5 | } as const; 6 | export type TransferDestinationAssistantType = 7 | (typeof TransferDestinationAssistantType)[keyof typeof TransferDestinationAssistantType]; 8 | --------------------------------------------------------------------------------