@elevenlabs/elevenlabs-js 2.49.0 → 2.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.fern/metadata.json +1 -1
- package/.fern/replay.lock +240 -2
- package/BaseClient.js +2 -2
- package/Client.d.ts +3 -0
- package/Client.js +5 -0
- package/api/resources/conversationalAi/client/Client.d.ts +3 -0
- package/api/resources/conversationalAi/client/Client.js +33 -28
- package/api/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -1
- package/api/resources/conversationalAi/resources/agents/client/requests/RunAgentTestsRequestModel.d.ts +2 -0
- package/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -1
- package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +2 -1
- package/api/resources/conversationalAi/resources/conversations/client/Client.js +6 -2
- package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +4 -1
- package/api/resources/conversationalAi/resources/conversations/resources/messages/client/Client.d.ts +1 -0
- package/api/resources/conversationalAi/resources/conversations/resources/messages/client/Client.js +10 -1
- package/api/resources/conversationalAi/resources/conversations/resources/messages/client/requests/MessagesTextSearchRequest.d.ts +3 -0
- package/api/resources/conversationalAi/resources/exotel/client/Client.d.ts +30 -0
- package/api/resources/conversationalAi/resources/exotel/client/Client.js +122 -0
- package/api/resources/conversationalAi/resources/exotel/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/exotel/client/index.js +17 -0
- package/api/resources/conversationalAi/resources/exotel/client/requests/BodyHandleAnOutboundCallViaExotelV1ConvaiExotelOutboundCallPost.d.ts +16 -0
- package/api/resources/conversationalAi/resources/exotel/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/exotel/client/requests/index.js +2 -0
- package/api/resources/conversationalAi/resources/exotel/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/exotel/index.js +17 -0
- package/api/resources/conversationalAi/resources/index.d.ts +2 -0
- package/api/resources/conversationalAi/resources/index.js +3 -1
- package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +1 -1
- package/api/resources/conversationalAi/resources/phoneNumbers/types/PhoneNumbersCreateRequestBody.d.ts +4 -1
- package/api/resources/conversationalAi/resources/phoneNumbers/types/PhoneNumbersGetResponse.d.ts +4 -1
- package/api/resources/conversationalAi/resources/phoneNumbers/types/PhoneNumbersListResponseItem.d.ts +4 -1
- package/api/resources/conversationalAi/resources/phoneNumbers/types/PhoneNumbersUpdateResponse.d.ts +4 -1
- package/api/resources/dubbing/client/Client.js +3 -0
- package/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +2 -0
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +2 -1
- package/api/resources/productions/resources/orders/client/Client.d.ts +5 -2
- package/api/resources/productions/resources/orders/client/Client.js +14 -4
- package/api/resources/productions/resources/orders/resources/languages/client/Client.d.ts +1 -1
- package/api/resources/productions/resources/orders/resources/languages/client/Client.js +1 -1
- package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +2 -2
- package/api/resources/workspace/resources/resources/client/Client.d.ts +2 -2
- package/api/resources/workspace/resources/resources/client/Client.js +2 -2
- package/api/resources/workspace/resources/resources/client/requests/BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePost.d.ts +3 -3
- package/api/resources/workspace/resources/resources/client/requests/BodyUnshareWorkspaceResourceV1WorkspaceResourcesResourceIdUnsharePost.d.ts +2 -2
- package/api/resources/workspace/resources/resources/types/BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePostRole.d.ts +1 -1
- package/api/resources/workspace/resources/resources/types/BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePostRole.js +1 -1
- package/api/resources/workspaces/client/Client.d.ts +12 -0
- package/api/resources/workspaces/client/Client.js +16 -0
- package/api/resources/workspaces/client/index.d.ts +1 -0
- package/api/resources/workspaces/client/index.js +2 -0
- package/api/resources/workspaces/index.d.ts +2 -0
- package/api/resources/workspaces/index.js +18 -0
- package/api/resources/workspaces/resources/apiKeys/client/Client.d.ts +28 -0
- package/api/resources/workspaces/resources/apiKeys/client/Client.js +111 -0
- package/api/resources/workspaces/resources/apiKeys/client/index.d.ts +1 -0
- package/api/resources/workspaces/resources/apiKeys/client/index.js +17 -0
- package/api/resources/workspaces/resources/apiKeys/client/requests/ApiKeysRevokeRequest.d.ts +10 -0
- package/api/resources/workspaces/resources/apiKeys/client/requests/index.d.ts +1 -0
- package/api/resources/workspaces/resources/apiKeys/client/requests/index.js +2 -0
- package/api/resources/workspaces/resources/apiKeys/index.d.ts +1 -0
- package/api/resources/workspaces/resources/apiKeys/index.js +17 -0
- package/api/resources/workspaces/resources/index.d.ts +2 -0
- package/api/resources/workspaces/resources/index.js +41 -0
- package/api/types/AgentConfig.d.ts +2 -0
- package/api/types/AgentConfigApiModelWorkflowOverrideInput.d.ts +2 -0
- package/api/types/AgentConfigApiModelWorkflowOverrideOutput.d.ts +2 -0
- package/api/types/AgentPlatformSettingsRequestModel.d.ts +0 -1
- package/api/types/AgentPlatformSettingsResponseModel.d.ts +0 -1
- package/api/types/AgentTransfer.d.ts +2 -1
- package/api/types/BehaviorOverride.d.ts +9 -0
- package/api/types/BucketingStatus.d.ts +6 -0
- package/api/types/BucketingStatus.js +9 -0
- package/api/types/ConversationHistoryExotelPhoneCallModel.d.ts +9 -0
- package/api/types/ConversationHistoryMetadataCommonModelPhoneCall.d.ts +4 -1
- package/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.d.ts +1 -0
- package/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.js +1 -0
- package/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.d.ts +4 -1
- package/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.d.ts +4 -1
- package/api/types/ConversationInitiationSource.d.ts +4 -0
- package/api/types/ConversationInitiationSource.js +4 -0
- package/api/types/ConversationSentimentAnalysis.d.ts +9 -0
- package/api/types/ConversationSentimentAnalysisOverallLabel.d.ts +6 -0
- package/api/types/ConversationSentimentAnalysisOverallLabel.js +9 -0
- package/api/types/CreateExotelPhoneNumberRequest.d.ts +23 -0
- package/api/types/CreateOrderRequest.d.ts +4 -0
- package/api/types/CreateOrderResponse.d.ts +2 -0
- package/api/types/CreateResponseUnitTestRequest.d.ts +2 -0
- package/api/types/CreateSimulationTestRequest.d.ts +2 -0
- package/api/types/CreateToolCallUnitTestRequest.d.ts +2 -0
- package/api/types/CustomLlm.d.ts +2 -0
- package/api/types/CustomLlmAuthConnection.d.ts +5 -0
- package/api/types/DeleteClientParams.d.ts +1 -1
- package/api/types/ExotelApiSubdomain.d.ts +5 -0
- package/api/types/ExotelApiSubdomain.js +8 -0
- package/api/types/ExotelOutboundCallResponse.d.ts +7 -0
- package/api/types/GetAgentResponseModelPhoneNumbersItem.d.ts +4 -1
- package/api/types/GetPhoneNumberExotelResponseModel.d.ts +15 -0
- package/api/types/GetResponseUnitTestResponseModel.d.ts +2 -0
- package/api/types/GetSimulationTestResponseModel.d.ts +2 -0
- package/api/types/GetTestSuiteInvocationResponseModel.d.ts +4 -0
- package/api/types/GetToolCallUnitTestResponseModel.d.ts +2 -0
- package/api/types/InteractionBudget.d.ts +5 -0
- package/api/types/InteractionBudget.js +8 -0
- package/api/types/LanguagesResponse.d.ts +10 -0
- package/api/types/LanguagesResponse.js +3 -0
- package/api/types/Llm.d.ts +1 -0
- package/api/types/Llm.js +1 -0
- package/api/types/{LoadProcedureToolConfig.d.ts → LoadProcedureToolConfigInput.d.ts} +1 -1
- package/api/types/LoadProcedureToolConfigInput.js +3 -0
- package/api/types/LoadProcedureToolConfigOutput.d.ts +4 -0
- package/api/types/LoadProcedureToolConfigOutput.js +3 -0
- package/api/types/MessagesSearchResult.d.ts +4 -0
- package/api/types/Monitor.d.ts +1 -0
- package/api/types/Monitor.js +1 -0
- package/api/types/MusicGenerationMode.d.ts +7 -0
- package/api/types/MusicGenerationMode.js +10 -0
- package/api/types/OptInSmsReminderParams.d.ts +3 -0
- package/api/types/OptInSmsReminderParams.js +3 -0
- package/api/types/OptOutSmsReminderParams.d.ts +3 -0
- package/api/types/OptOutSmsReminderParams.js +3 -0
- package/api/types/OrderItemInfo.d.ts +1 -1
- package/api/types/OrderItemRequestInput.d.ts +10 -0
- package/api/types/OrderItemRequestInput.js +3 -0
- package/api/types/OrderItemRequestOutput.d.ts +10 -0
- package/api/types/OrderItemRequestOutput.js +3 -0
- package/api/types/OrderResponse.d.ts +2 -0
- package/api/types/OrderSummary.d.ts +2 -0
- package/api/types/ProcedureAtVersion.d.ts +2 -0
- package/api/types/ProcedureRefResponseModel.d.ts +3 -0
- package/api/types/ProcedureType.d.ts +5 -0
- package/api/types/ProcedureType.js +8 -0
- package/api/types/ReferencedToolCommonModelType.d.ts +1 -0
- package/api/types/ReferencedToolCommonModelType.js +1 -0
- package/api/types/RenderType.d.ts +1 -0
- package/api/types/RenderType.js +1 -0
- package/api/types/ResourceAccessInfo.d.ts +2 -0
- package/api/types/ResourceAccessInfoAccessSource.d.ts +7 -0
- package/api/types/ResourceAccessInfoAccessSource.js +10 -0
- package/api/types/ResponseUnitTestModel.d.ts +2 -0
- package/api/types/RestoreCalendarEventParams.d.ts +3 -0
- package/api/types/RestoreCalendarEventParams.js +3 -0
- package/api/types/SimulationTestModel.d.ts +2 -0
- package/api/types/SoftTimeoutConfig.d.ts +2 -0
- package/api/types/SoftTimeoutConfigWorkflowOverride.d.ts +2 -0
- package/api/types/SpeechEngineResponse.d.ts +2 -0
- package/api/types/SpeechEngineSummaryResponse.d.ts +3 -0
- package/api/types/SystemEvaluationCriteria.d.ts +4 -0
- package/api/types/SystemEvaluationCriteria.js +3 -0
- package/api/types/SystemToolConfigInputParams.d.ts +1 -1
- package/api/types/SystemToolConfigOutputParams.d.ts +1 -1
- package/api/types/TelephonyProvider.d.ts +1 -0
- package/api/types/TelephonyProvider.js +1 -0
- package/api/types/TestInvocationSummaryResponseModel.d.ts +2 -0
- package/api/types/TestRunResultBucket.d.ts +9 -0
- package/api/types/TestRunResultBucket.js +3 -0
- package/api/types/TestRunResultSummary.d.ts +7 -0
- package/api/types/TestRunResultSummary.js +3 -0
- package/api/types/ToolCallUnitTestModel.d.ts +2 -0
- package/api/types/TransferToAgentToolResultSuccessModel.d.ts +1 -0
- package/api/types/TransferToNumberResultExotelSuccessModel.d.ts +6 -0
- package/api/types/TransferToNumberResultExotelSuccessModel.js +3 -0
- package/api/types/UnitTestSummaryResponseModel.d.ts +2 -0
- package/api/types/UpdateResponseUnitTestRequest.d.ts +2 -0
- package/api/types/UpdateSimulationTestRequest.d.ts +2 -0
- package/api/types/UpdateToolCallUnitTestRequest.d.ts +2 -0
- package/api/types/UpsertOrderItemRequest.d.ts +1 -1
- package/api/types/Verbosity.d.ts +6 -0
- package/{dist/api/types/ProcedureCompilerMode.js → api/types/Verbosity.js} +5 -4
- package/api/types/WebhookToolApiSchemaConfigInput.d.ts +2 -0
- package/api/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -0
- package/api/types/WorkflowStandaloneAgentNodeModelInput.d.ts +4 -2
- package/api/types/WorkflowStandaloneAgentNodeModelOutput.d.ts +4 -2
- package/api/types/index.d.ts +28 -6
- package/api/types/index.js +28 -6
- package/dist/BaseClient.js +2 -2
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +5 -0
- package/dist/api/resources/conversationalAi/client/Client.d.ts +3 -0
- package/dist/api/resources/conversationalAi/client/Client.js +33 -28
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/RunAgentTestsRequestModel.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +2 -1
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +6 -2
- package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +4 -1
- package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/client/Client.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/client/Client.js +10 -1
- package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/client/requests/MessagesTextSearchRequest.d.ts +3 -0
- package/dist/api/resources/conversationalAi/resources/exotel/client/Client.d.ts +30 -0
- package/dist/api/resources/conversationalAi/resources/exotel/client/Client.js +122 -0
- package/dist/api/resources/conversationalAi/resources/exotel/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/exotel/client/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/exotel/client/requests/BodyHandleAnOutboundCallViaExotelV1ConvaiExotelOutboundCallPost.d.ts +16 -0
- package/dist/api/resources/conversationalAi/resources/exotel/client/requests/BodyHandleAnOutboundCallViaExotelV1ConvaiExotelOutboundCallPost.js +3 -0
- package/dist/api/resources/conversationalAi/resources/exotel/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/exotel/client/requests/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/exotel/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/exotel/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/index.js +3 -1
- package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +1 -1
- package/dist/api/resources/conversationalAi/resources/phoneNumbers/types/PhoneNumbersCreateRequestBody.d.ts +4 -1
- package/dist/api/resources/conversationalAi/resources/phoneNumbers/types/PhoneNumbersGetResponse.d.ts +4 -1
- package/dist/api/resources/conversationalAi/resources/phoneNumbers/types/PhoneNumbersListResponseItem.d.ts +4 -1
- package/dist/api/resources/conversationalAi/resources/phoneNumbers/types/PhoneNumbersUpdateResponse.d.ts +4 -1
- package/dist/api/resources/dubbing/client/Client.js +3 -0
- package/dist/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +2 -0
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +2 -1
- package/dist/api/resources/productions/resources/orders/client/Client.d.ts +5 -2
- package/dist/api/resources/productions/resources/orders/client/Client.js +14 -4
- package/dist/api/resources/productions/resources/orders/resources/languages/client/Client.d.ts +1 -1
- package/dist/api/resources/productions/resources/orders/resources/languages/client/Client.js +1 -1
- package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +2 -2
- package/dist/api/resources/workspace/resources/resources/client/Client.d.ts +2 -2
- package/dist/api/resources/workspace/resources/resources/client/Client.js +2 -2
- package/dist/api/resources/workspace/resources/resources/client/requests/BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePost.d.ts +3 -3
- package/dist/api/resources/workspace/resources/resources/client/requests/BodyUnshareWorkspaceResourceV1WorkspaceResourcesResourceIdUnsharePost.d.ts +2 -2
- package/dist/api/resources/workspace/resources/resources/types/BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePostRole.d.ts +1 -1
- package/dist/api/resources/workspace/resources/resources/types/BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePostRole.js +1 -1
- package/dist/api/resources/workspaces/client/Client.d.ts +12 -0
- package/dist/api/resources/workspaces/client/Client.js +16 -0
- package/dist/api/resources/workspaces/client/index.d.ts +1 -0
- package/dist/api/resources/workspaces/client/index.js +2 -0
- package/dist/api/resources/workspaces/index.d.ts +2 -0
- package/dist/api/resources/workspaces/index.js +18 -0
- package/dist/api/resources/workspaces/resources/apiKeys/client/Client.d.ts +28 -0
- package/dist/api/resources/workspaces/resources/apiKeys/client/Client.js +111 -0
- package/dist/api/resources/workspaces/resources/apiKeys/client/index.d.ts +1 -0
- package/dist/api/resources/workspaces/resources/apiKeys/client/index.js +17 -0
- package/dist/api/resources/workspaces/resources/apiKeys/client/requests/ApiKeysRevokeRequest.d.ts +10 -0
- package/dist/api/resources/workspaces/resources/apiKeys/client/requests/ApiKeysRevokeRequest.js +3 -0
- package/dist/api/resources/workspaces/resources/apiKeys/client/requests/index.d.ts +1 -0
- package/dist/api/resources/workspaces/resources/apiKeys/client/requests/index.js +2 -0
- package/dist/api/resources/workspaces/resources/apiKeys/index.d.ts +1 -0
- package/dist/api/resources/workspaces/resources/apiKeys/index.js +17 -0
- package/dist/api/resources/workspaces/resources/index.d.ts +2 -0
- package/dist/api/resources/workspaces/resources/index.js +41 -0
- package/dist/api/types/AgentConfig.d.ts +2 -0
- package/dist/api/types/AgentConfigApiModelWorkflowOverrideInput.d.ts +2 -0
- package/dist/api/types/AgentConfigApiModelWorkflowOverrideOutput.d.ts +2 -0
- package/dist/api/types/AgentPlatformSettingsRequestModel.d.ts +0 -1
- package/dist/api/types/AgentPlatformSettingsResponseModel.d.ts +0 -1
- package/dist/api/types/AgentTransfer.d.ts +2 -1
- package/dist/api/types/BehaviorOverride.d.ts +9 -0
- package/dist/api/types/BehaviorOverride.js +3 -0
- package/dist/api/types/BucketingStatus.d.ts +6 -0
- package/dist/api/types/BucketingStatus.js +9 -0
- package/dist/api/types/ConversationHistoryExotelPhoneCallModel.d.ts +9 -0
- package/dist/api/types/ConversationHistoryExotelPhoneCallModel.js +3 -0
- package/dist/api/types/ConversationHistoryMetadataCommonModelPhoneCall.d.ts +4 -1
- package/dist/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.d.ts +1 -0
- package/dist/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.js +1 -0
- package/dist/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.d.ts +4 -1
- package/dist/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.d.ts +4 -1
- package/dist/api/types/ConversationInitiationSource.d.ts +4 -0
- package/dist/api/types/ConversationInitiationSource.js +4 -0
- package/dist/api/types/ConversationSentimentAnalysis.d.ts +9 -0
- package/dist/api/types/ConversationSentimentAnalysis.js +3 -0
- package/dist/api/types/ConversationSentimentAnalysisOverallLabel.d.ts +6 -0
- package/dist/api/types/ConversationSentimentAnalysisOverallLabel.js +9 -0
- package/dist/api/types/CreateExotelPhoneNumberRequest.d.ts +23 -0
- package/dist/api/types/CreateExotelPhoneNumberRequest.js +3 -0
- package/dist/api/types/CreateOrderRequest.d.ts +4 -0
- package/dist/api/types/CreateOrderRequest.js +3 -0
- package/dist/api/types/CreateOrderResponse.d.ts +2 -0
- package/dist/api/types/CreateResponseUnitTestRequest.d.ts +2 -0
- package/dist/api/types/CreateSimulationTestRequest.d.ts +2 -0
- package/dist/api/types/CreateToolCallUnitTestRequest.d.ts +2 -0
- package/dist/api/types/CustomLlm.d.ts +2 -0
- package/dist/api/types/CustomLlmAuthConnection.d.ts +5 -0
- package/dist/api/types/CustomLlmAuthConnection.js +3 -0
- package/dist/api/types/DeleteClientParams.d.ts +1 -1
- package/dist/api/types/ExotelApiSubdomain.d.ts +5 -0
- package/dist/api/types/ExotelApiSubdomain.js +8 -0
- package/dist/api/types/ExotelOutboundCallResponse.d.ts +7 -0
- package/dist/api/types/ExotelOutboundCallResponse.js +3 -0
- package/dist/api/types/GetAgentResponseModelPhoneNumbersItem.d.ts +4 -1
- package/dist/api/types/GetPhoneNumberExotelResponseModel.d.ts +15 -0
- package/dist/api/types/GetPhoneNumberExotelResponseModel.js +3 -0
- package/dist/api/types/GetResponseUnitTestResponseModel.d.ts +2 -0
- package/dist/api/types/GetSimulationTestResponseModel.d.ts +2 -0
- package/dist/api/types/GetTestSuiteInvocationResponseModel.d.ts +4 -0
- package/dist/api/types/GetToolCallUnitTestResponseModel.d.ts +2 -0
- package/dist/api/types/InteractionBudget.d.ts +5 -0
- package/dist/api/types/InteractionBudget.js +8 -0
- package/dist/api/types/LanguagesResponse.d.ts +10 -0
- package/dist/api/types/LanguagesResponse.js +3 -0
- package/dist/api/types/Llm.d.ts +1 -0
- package/dist/api/types/Llm.js +1 -0
- package/dist/api/types/{LoadProcedureToolConfig.d.ts → LoadProcedureToolConfigInput.d.ts} +1 -1
- package/dist/api/types/LoadProcedureToolConfigInput.js +3 -0
- package/dist/api/types/LoadProcedureToolConfigOutput.d.ts +4 -0
- package/dist/api/types/LoadProcedureToolConfigOutput.js +3 -0
- package/dist/api/types/MessagesSearchResult.d.ts +4 -0
- package/dist/api/types/Monitor.d.ts +1 -0
- package/dist/api/types/Monitor.js +1 -0
- package/dist/api/types/MusicGenerationMode.d.ts +7 -0
- package/dist/api/types/MusicGenerationMode.js +10 -0
- package/dist/api/types/OptInSmsReminderParams.d.ts +3 -0
- package/dist/api/types/OptInSmsReminderParams.js +3 -0
- package/dist/api/types/OptOutSmsReminderParams.d.ts +3 -0
- package/dist/api/types/OptOutSmsReminderParams.js +3 -0
- package/dist/api/types/OrderItemInfo.d.ts +1 -1
- package/dist/api/types/OrderItemRequestInput.d.ts +10 -0
- package/dist/api/types/OrderItemRequestInput.js +3 -0
- package/dist/api/types/OrderItemRequestOutput.d.ts +10 -0
- package/dist/api/types/OrderItemRequestOutput.js +3 -0
- package/dist/api/types/OrderResponse.d.ts +2 -0
- package/dist/api/types/OrderSummary.d.ts +2 -0
- package/dist/api/types/ProcedureAtVersion.d.ts +2 -0
- package/dist/api/types/ProcedureRefResponseModel.d.ts +3 -0
- package/dist/api/types/ProcedureType.d.ts +5 -0
- package/dist/api/types/ProcedureType.js +8 -0
- package/dist/api/types/ReferencedToolCommonModelType.d.ts +1 -0
- package/dist/api/types/ReferencedToolCommonModelType.js +1 -0
- package/dist/api/types/RenderType.d.ts +1 -0
- package/dist/api/types/RenderType.js +1 -0
- package/dist/api/types/ResourceAccessInfo.d.ts +2 -0
- package/dist/api/types/ResourceAccessInfoAccessSource.d.ts +7 -0
- package/dist/api/types/ResourceAccessInfoAccessSource.js +10 -0
- package/dist/api/types/ResponseUnitTestModel.d.ts +2 -0
- package/dist/api/types/RestoreCalendarEventParams.d.ts +3 -0
- package/dist/api/types/RestoreCalendarEventParams.js +3 -0
- package/dist/api/types/SimulationTestModel.d.ts +2 -0
- package/dist/api/types/SoftTimeoutConfig.d.ts +2 -0
- package/dist/api/types/SoftTimeoutConfigWorkflowOverride.d.ts +2 -0
- package/dist/api/types/SpeechEngineResponse.d.ts +2 -0
- package/dist/api/types/SpeechEngineSummaryResponse.d.ts +3 -0
- package/dist/api/types/SystemEvaluationCriteria.d.ts +4 -0
- package/dist/api/types/SystemEvaluationCriteria.js +3 -0
- package/dist/api/types/SystemToolConfigInputParams.d.ts +1 -1
- package/dist/api/types/SystemToolConfigOutputParams.d.ts +1 -1
- package/dist/api/types/TelephonyProvider.d.ts +1 -0
- package/dist/api/types/TelephonyProvider.js +1 -0
- package/dist/api/types/TestInvocationSummaryResponseModel.d.ts +2 -0
- package/dist/api/types/TestRunResultBucket.d.ts +9 -0
- package/dist/api/types/TestRunResultBucket.js +3 -0
- package/dist/api/types/TestRunResultSummary.d.ts +7 -0
- package/dist/api/types/TestRunResultSummary.js +3 -0
- package/dist/api/types/ToolCallUnitTestModel.d.ts +2 -0
- package/dist/api/types/TransferToAgentToolResultSuccessModel.d.ts +1 -0
- package/dist/api/types/TransferToNumberResultExotelSuccessModel.d.ts +6 -0
- package/dist/api/types/TransferToNumberResultExotelSuccessModel.js +3 -0
- package/dist/api/types/UnitTestSummaryResponseModel.d.ts +2 -0
- package/dist/api/types/UpdateResponseUnitTestRequest.d.ts +2 -0
- package/dist/api/types/UpdateSimulationTestRequest.d.ts +2 -0
- package/dist/api/types/UpdateToolCallUnitTestRequest.d.ts +2 -0
- package/dist/api/types/UpsertOrderItemRequest.d.ts +1 -1
- package/dist/api/types/Verbosity.d.ts +6 -0
- package/{api/types/ProcedureCompilerMode.js → dist/api/types/Verbosity.js} +5 -4
- package/dist/api/types/WebhookToolApiSchemaConfigInput.d.ts +2 -0
- package/dist/api/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -0
- package/dist/api/types/WorkflowStandaloneAgentNodeModelInput.d.ts +4 -2
- package/dist/api/types/WorkflowStandaloneAgentNodeModelOutput.d.ts +4 -2
- package/dist/api/types/index.d.ts +28 -6
- package/dist/api/types/index.js +28 -6
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/RunAgentTestsRequestModel.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/RunAgentTestsRequestModel.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/exotel/client/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/exotel/client/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/exotel/client/requests/BodyHandleAnOutboundCallViaExotelV1ConvaiExotelOutboundCallPost.d.ts +15 -0
- package/dist/serialization/resources/conversationalAi/resources/exotel/client/requests/BodyHandleAnOutboundCallViaExotelV1ConvaiExotelOutboundCallPost.js +47 -0
- package/dist/serialization/resources/conversationalAi/resources/exotel/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/exotel/client/requests/index.js +5 -0
- package/dist/serialization/resources/conversationalAi/resources/exotel/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/exotel/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/index.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/index.js +3 -1
- package/dist/serialization/resources/conversationalAi/resources/phoneNumbers/types/PhoneNumbersCreateRequestBody.d.ts +5 -1
- package/dist/serialization/resources/conversationalAi/resources/phoneNumbers/types/PhoneNumbersCreateRequestBody.js +2 -0
- package/dist/serialization/resources/conversationalAi/resources/phoneNumbers/types/PhoneNumbersGetResponse.d.ts +5 -1
- package/dist/serialization/resources/conversationalAi/resources/phoneNumbers/types/PhoneNumbersGetResponse.js +2 -0
- package/dist/serialization/resources/conversationalAi/resources/phoneNumbers/types/PhoneNumbersListResponseItem.d.ts +5 -1
- package/dist/serialization/resources/conversationalAi/resources/phoneNumbers/types/PhoneNumbersListResponseItem.js +2 -0
- package/dist/serialization/resources/conversationalAi/resources/phoneNumbers/types/PhoneNumbersUpdateResponse.d.ts +5 -1
- package/dist/serialization/resources/conversationalAi/resources/phoneNumbers/types/PhoneNumbersUpdateResponse.js +2 -0
- package/dist/serialization/resources/productions/resources/orders/client/create.d.ts +8 -0
- package/dist/serialization/resources/productions/resources/orders/client/create.js +6 -0
- package/dist/serialization/resources/productions/resources/orders/client/index.d.ts +1 -0
- package/dist/serialization/resources/productions/resources/orders/client/index.js +24 -0
- package/dist/serialization/types/AgentConfig.d.ts +2 -0
- package/dist/serialization/types/AgentConfig.js +2 -0
- package/dist/serialization/types/AgentConfigApiModelWorkflowOverrideInput.d.ts +2 -0
- package/dist/serialization/types/AgentConfigApiModelWorkflowOverrideInput.js +2 -0
- package/dist/serialization/types/AgentConfigApiModelWorkflowOverrideOutput.d.ts +2 -0
- package/dist/serialization/types/AgentConfigApiModelWorkflowOverrideOutput.js +2 -0
- package/dist/serialization/types/AgentPlatformSettingsRequestModel.d.ts +0 -2
- package/dist/serialization/types/AgentPlatformSettingsRequestModel.js +0 -2
- package/dist/serialization/types/AgentPlatformSettingsResponseModel.d.ts +0 -2
- package/dist/serialization/types/AgentPlatformSettingsResponseModel.js +0 -2
- package/dist/serialization/types/AgentTransfer.d.ts +2 -1
- package/dist/serialization/types/AgentTransfer.js +2 -1
- package/dist/serialization/types/BehaviorOverride.d.ts +14 -0
- package/dist/serialization/types/BehaviorOverride.js +46 -0
- package/dist/serialization/types/BucketingStatus.d.ts +7 -0
- package/dist/serialization/types/BucketingStatus.js +39 -0
- package/dist/serialization/types/ConversationHistoryExotelPhoneCallModel.d.ts +15 -0
- package/dist/serialization/types/ConversationHistoryExotelPhoneCallModel.js +47 -0
- package/dist/serialization/types/ConversationHistoryMetadataCommonModelPhoneCall.d.ts +5 -1
- package/dist/serialization/types/ConversationHistoryMetadataCommonModelPhoneCall.js +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.d.ts +1 -1
- package/dist/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.js +1 -1
- package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.d.ts +5 -1
- package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.js +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.d.ts +5 -1
- package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.js +2 -0
- package/dist/serialization/types/ConversationInitiationSource.d.ts +1 -1
- package/dist/serialization/types/ConversationInitiationSource.js +4 -0
- package/dist/serialization/types/ConversationSentimentAnalysis.d.ts +15 -0
- package/dist/serialization/types/ConversationSentimentAnalysis.js +47 -0
- package/dist/serialization/types/ConversationSentimentAnalysisOverallLabel.d.ts +7 -0
- package/dist/serialization/types/ConversationSentimentAnalysisOverallLabel.js +39 -0
- package/dist/serialization/types/CreateExotelPhoneNumberRequest.d.ts +19 -0
- package/dist/serialization/types/CreateExotelPhoneNumberRequest.js +51 -0
- package/dist/serialization/types/CreateOrderRequest.d.ts +9 -0
- package/dist/serialization/types/{ProcedureSettings.js → CreateOrderRequest.js} +3 -4
- package/dist/serialization/types/CreateOrderResponse.d.ts +1 -0
- package/dist/serialization/types/CreateOrderResponse.js +1 -0
- package/dist/serialization/types/CreateResponseUnitTestRequest.d.ts +2 -0
- package/dist/serialization/types/CreateResponseUnitTestRequest.js +2 -0
- package/dist/serialization/types/CreateSimulationTestRequest.d.ts +2 -0
- package/dist/serialization/types/CreateSimulationTestRequest.js +2 -0
- package/dist/serialization/types/CreateToolCallUnitTestRequest.d.ts +2 -0
- package/dist/serialization/types/CreateToolCallUnitTestRequest.js +2 -0
- package/dist/serialization/types/CustomLlm.d.ts +2 -0
- package/dist/serialization/types/CustomLlm.js +2 -0
- package/dist/serialization/types/CustomLlmAuthConnection.d.ts +9 -0
- package/dist/serialization/types/CustomLlmAuthConnection.js +41 -0
- package/dist/serialization/types/ExotelApiSubdomain.d.ts +7 -0
- package/dist/serialization/types/ExotelApiSubdomain.js +39 -0
- package/dist/serialization/types/ExotelOutboundCallResponse.d.ts +12 -0
- package/dist/serialization/types/ExotelOutboundCallResponse.js +44 -0
- package/dist/serialization/types/GetAgentResponseModelPhoneNumbersItem.d.ts +5 -1
- package/dist/serialization/types/GetAgentResponseModelPhoneNumbersItem.js +2 -0
- package/dist/serialization/types/GetPhoneNumberExotelResponseModel.d.ts +15 -0
- package/dist/serialization/types/GetPhoneNumberExotelResponseModel.js +47 -0
- package/dist/serialization/types/GetResponseUnitTestResponseModel.d.ts +2 -0
- package/dist/serialization/types/GetResponseUnitTestResponseModel.js +2 -0
- package/dist/serialization/types/GetSimulationTestResponseModel.d.ts +2 -0
- package/dist/serialization/types/GetSimulationTestResponseModel.js +2 -0
- package/dist/serialization/types/GetTestSuiteInvocationResponseModel.d.ts +5 -0
- package/dist/serialization/types/GetTestSuiteInvocationResponseModel.js +5 -0
- package/dist/serialization/types/GetToolCallUnitTestResponseModel.d.ts +2 -0
- package/dist/serialization/types/GetToolCallUnitTestResponseModel.js +2 -0
- package/dist/serialization/types/InteractionBudget.d.ts +7 -0
- package/{serialization/types/ProcedureCompilerMode.js → dist/serialization/types/InteractionBudget.js} +2 -2
- package/dist/serialization/types/LanguagesResponse.d.ts +15 -0
- package/{serialization/types/RootModelAnnotatedUnionPairedLanguagesResponseSingleLanguagesResponseFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKind.js → dist/serialization/types/LanguagesResponse.js} +2 -2
- package/dist/serialization/types/Llm.d.ts +1 -1
- package/dist/serialization/types/Llm.js +1 -0
- package/dist/serialization/types/{LoadProcedureToolConfig.d.ts → LoadProcedureToolConfigInput.d.ts} +2 -2
- package/dist/serialization/types/{LoadProcedureToolConfig.js → LoadProcedureToolConfigInput.js} +2 -2
- package/dist/serialization/types/LoadProcedureToolConfigOutput.d.ts +10 -0
- package/dist/serialization/types/LoadProcedureToolConfigOutput.js +42 -0
- package/dist/serialization/types/MessagesSearchResult.d.ts +2 -0
- package/dist/serialization/types/MessagesSearchResult.js +2 -0
- package/dist/serialization/types/Monitor.d.ts +1 -1
- package/dist/serialization/types/Monitor.js +1 -1
- package/dist/serialization/types/MusicGenerationMode.d.ts +7 -0
- package/dist/serialization/types/MusicGenerationMode.js +39 -0
- package/dist/serialization/types/OptInSmsReminderParams.d.ts +9 -0
- package/{serialization/types/ProcedureSettings.js → dist/serialization/types/OptInSmsReminderParams.js} +3 -4
- package/dist/serialization/types/OptOutSmsReminderParams.d.ts +9 -0
- package/dist/serialization/types/OptOutSmsReminderParams.js +41 -0
- package/dist/serialization/types/OrderItemInfo.d.ts +2 -2
- package/dist/serialization/types/OrderItemInfo.js +2 -2
- package/dist/serialization/types/OrderItemRequestInput.d.ts +15 -0
- package/{serialization/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindInput.js → dist/serialization/types/OrderItemRequestInput.js} +2 -2
- package/dist/serialization/types/OrderItemRequestOutput.d.ts +15 -0
- package/dist/serialization/types/{RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindInput.js → OrderItemRequestOutput.js} +2 -2
- package/dist/serialization/types/OrderResponse.d.ts +1 -0
- package/dist/serialization/types/OrderResponse.js +1 -0
- package/dist/serialization/types/OrderSummary.d.ts +1 -0
- package/dist/serialization/types/OrderSummary.js +1 -0
- package/dist/serialization/types/ProcedureAtVersion.d.ts +2 -0
- package/dist/serialization/types/ProcedureAtVersion.js +2 -0
- package/dist/serialization/types/ProcedureRefResponseModel.d.ts +2 -0
- package/dist/serialization/types/ProcedureRefResponseModel.js +2 -0
- package/dist/serialization/types/ProcedureType.d.ts +7 -0
- package/dist/serialization/types/{ProcedureCompilerMode.js → ProcedureType.js} +2 -2
- package/dist/serialization/types/ReferencedToolCommonModelType.d.ts +1 -1
- package/dist/serialization/types/ReferencedToolCommonModelType.js +1 -1
- package/dist/serialization/types/RenderType.d.ts +1 -1
- package/dist/serialization/types/RenderType.js +1 -1
- package/dist/serialization/types/ResourceAccessInfo.d.ts +2 -0
- package/dist/serialization/types/ResourceAccessInfo.js +2 -0
- package/dist/serialization/types/ResourceAccessInfoAccessSource.d.ts +7 -0
- package/dist/serialization/types/ResourceAccessInfoAccessSource.js +39 -0
- package/dist/serialization/types/ResponseUnitTestModel.d.ts +2 -0
- package/dist/serialization/types/ResponseUnitTestModel.js +2 -0
- package/dist/serialization/types/RestoreCalendarEventParams.d.ts +9 -0
- package/dist/serialization/types/RestoreCalendarEventParams.js +41 -0
- package/dist/serialization/types/SimulationTestModel.d.ts +2 -0
- package/dist/serialization/types/SimulationTestModel.js +2 -0
- package/dist/serialization/types/SoftTimeoutConfig.d.ts +1 -0
- package/dist/serialization/types/SoftTimeoutConfig.js +1 -0
- package/dist/serialization/types/SoftTimeoutConfigWorkflowOverride.d.ts +1 -0
- package/dist/serialization/types/SoftTimeoutConfigWorkflowOverride.js +1 -0
- package/dist/serialization/types/SpeechEngineResponse.d.ts +2 -0
- package/dist/serialization/types/SpeechEngineResponse.js +2 -0
- package/dist/serialization/types/SpeechEngineSummaryResponse.d.ts +2 -0
- package/dist/serialization/types/SpeechEngineSummaryResponse.js +2 -0
- package/dist/serialization/types/SystemEvaluationCriteria.d.ts +10 -0
- package/dist/serialization/types/SystemEvaluationCriteria.js +42 -0
- package/dist/serialization/types/SystemToolConfigInputParams.d.ts +2 -2
- package/dist/serialization/types/SystemToolConfigInputParams.js +2 -2
- package/dist/serialization/types/SystemToolConfigOutputParams.d.ts +2 -2
- package/dist/serialization/types/SystemToolConfigOutputParams.js +2 -2
- package/dist/serialization/types/TelephonyProvider.d.ts +1 -1
- package/dist/serialization/types/TelephonyProvider.js +1 -1
- package/dist/serialization/types/TestInvocationSummaryResponseModel.d.ts +1 -0
- package/dist/serialization/types/TestInvocationSummaryResponseModel.js +1 -0
- package/dist/serialization/types/TestRunResultBucket.d.ts +13 -0
- package/dist/serialization/types/TestRunResultBucket.js +45 -0
- package/dist/serialization/types/TestRunResultSummary.d.ts +13 -0
- package/dist/serialization/types/TestRunResultSummary.js +45 -0
- package/dist/serialization/types/ToolCallUnitTestModel.d.ts +2 -0
- package/dist/serialization/types/ToolCallUnitTestModel.js +2 -0
- package/dist/serialization/types/TransferToAgentToolResultSuccessModel.d.ts +1 -0
- package/dist/serialization/types/TransferToAgentToolResultSuccessModel.js +1 -0
- package/dist/serialization/types/TransferToNumberResultExotelSuccessModel.d.ts +12 -0
- package/dist/serialization/types/TransferToNumberResultExotelSuccessModel.js +44 -0
- package/dist/serialization/types/UnitTestSummaryResponseModel.d.ts +2 -0
- package/dist/serialization/types/UnitTestSummaryResponseModel.js +2 -0
- package/dist/serialization/types/UpdateResponseUnitTestRequest.d.ts +2 -0
- package/dist/serialization/types/UpdateResponseUnitTestRequest.js +2 -0
- package/dist/serialization/types/UpdateSimulationTestRequest.d.ts +2 -0
- package/dist/serialization/types/UpdateSimulationTestRequest.js +2 -0
- package/dist/serialization/types/UpdateToolCallUnitTestRequest.d.ts +2 -0
- package/dist/serialization/types/UpdateToolCallUnitTestRequest.js +2 -0
- package/dist/serialization/types/UpsertOrderItemRequest.d.ts +2 -2
- package/dist/serialization/types/UpsertOrderItemRequest.js +2 -2
- package/dist/serialization/types/Verbosity.d.ts +7 -0
- package/dist/serialization/types/Verbosity.js +39 -0
- package/dist/serialization/types/WebhookToolApiSchemaConfigInput.d.ts +1 -0
- package/dist/serialization/types/WebhookToolApiSchemaConfigInput.js +1 -0
- package/dist/serialization/types/WebhookToolApiSchemaConfigOutput.d.ts +1 -0
- package/dist/serialization/types/WebhookToolApiSchemaConfigOutput.js +1 -0
- package/dist/serialization/types/WorkflowStandaloneAgentNodeModelInput.d.ts +2 -1
- package/dist/serialization/types/WorkflowStandaloneAgentNodeModelInput.js +2 -1
- package/dist/serialization/types/WorkflowStandaloneAgentNodeModelOutput.d.ts +2 -1
- package/dist/serialization/types/WorkflowStandaloneAgentNodeModelOutput.js +2 -1
- package/dist/serialization/types/index.d.ts +28 -6
- package/dist/serialization/types/index.js +28 -6
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/music.d.ts +11 -0
- package/dist/wrapper/music.js +15 -0
- package/dist/wrapper/speech-engine/SpeechEngineClientWrapper.js +5 -5
- package/dist/wrapper/speech-engine/SpeechEngineResource.d.ts +10 -1
- package/dist/wrapper/speech-engine/SpeechEngineResource.js +16 -1
- package/package.json +1 -1
- package/reference.md +153 -7
- package/serialization/resources/conversationalAi/resources/agents/client/requests/RunAgentTestsRequestModel.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/RunAgentTestsRequestModel.js +1 -0
- package/serialization/resources/conversationalAi/resources/exotel/client/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/exotel/client/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/exotel/client/requests/BodyHandleAnOutboundCallViaExotelV1ConvaiExotelOutboundCallPost.d.ts +15 -0
- package/serialization/resources/conversationalAi/resources/exotel/client/requests/BodyHandleAnOutboundCallViaExotelV1ConvaiExotelOutboundCallPost.js +47 -0
- package/serialization/resources/conversationalAi/resources/exotel/client/requests/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/exotel/client/requests/index.js +5 -0
- package/serialization/resources/conversationalAi/resources/exotel/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/exotel/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/index.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/index.js +3 -1
- package/serialization/resources/conversationalAi/resources/phoneNumbers/types/PhoneNumbersCreateRequestBody.d.ts +5 -1
- package/serialization/resources/conversationalAi/resources/phoneNumbers/types/PhoneNumbersCreateRequestBody.js +2 -0
- package/serialization/resources/conversationalAi/resources/phoneNumbers/types/PhoneNumbersGetResponse.d.ts +5 -1
- package/serialization/resources/conversationalAi/resources/phoneNumbers/types/PhoneNumbersGetResponse.js +2 -0
- package/serialization/resources/conversationalAi/resources/phoneNumbers/types/PhoneNumbersListResponseItem.d.ts +5 -1
- package/serialization/resources/conversationalAi/resources/phoneNumbers/types/PhoneNumbersListResponseItem.js +2 -0
- package/serialization/resources/conversationalAi/resources/phoneNumbers/types/PhoneNumbersUpdateResponse.d.ts +5 -1
- package/serialization/resources/conversationalAi/resources/phoneNumbers/types/PhoneNumbersUpdateResponse.js +2 -0
- package/serialization/resources/productions/resources/orders/client/create.d.ts +8 -0
- package/serialization/resources/productions/resources/orders/client/create.js +6 -0
- package/serialization/resources/productions/resources/orders/client/index.d.ts +1 -0
- package/serialization/resources/productions/resources/orders/client/index.js +24 -0
- package/serialization/types/AgentConfig.d.ts +2 -0
- package/serialization/types/AgentConfig.js +2 -0
- package/serialization/types/AgentConfigApiModelWorkflowOverrideInput.d.ts +2 -0
- package/serialization/types/AgentConfigApiModelWorkflowOverrideInput.js +2 -0
- package/serialization/types/AgentConfigApiModelWorkflowOverrideOutput.d.ts +2 -0
- package/serialization/types/AgentConfigApiModelWorkflowOverrideOutput.js +2 -0
- package/serialization/types/AgentPlatformSettingsRequestModel.d.ts +0 -2
- package/serialization/types/AgentPlatformSettingsRequestModel.js +0 -2
- package/serialization/types/AgentPlatformSettingsResponseModel.d.ts +0 -2
- package/serialization/types/AgentPlatformSettingsResponseModel.js +0 -2
- package/serialization/types/AgentTransfer.d.ts +2 -1
- package/serialization/types/AgentTransfer.js +2 -1
- package/serialization/types/BehaviorOverride.d.ts +14 -0
- package/serialization/types/BehaviorOverride.js +46 -0
- package/serialization/types/BucketingStatus.d.ts +7 -0
- package/serialization/types/BucketingStatus.js +39 -0
- package/serialization/types/ConversationHistoryExotelPhoneCallModel.d.ts +15 -0
- package/serialization/types/ConversationHistoryExotelPhoneCallModel.js +47 -0
- package/serialization/types/ConversationHistoryMetadataCommonModelPhoneCall.d.ts +5 -1
- package/serialization/types/ConversationHistoryMetadataCommonModelPhoneCall.js +2 -0
- package/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.d.ts +1 -1
- package/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.js +1 -1
- package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.d.ts +5 -1
- package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelInputResult.js +2 -0
- package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.d.ts +5 -1
- package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelOutputResult.js +2 -0
- package/serialization/types/ConversationInitiationSource.d.ts +1 -1
- package/serialization/types/ConversationInitiationSource.js +4 -0
- package/serialization/types/ConversationSentimentAnalysis.d.ts +15 -0
- package/serialization/types/ConversationSentimentAnalysis.js +47 -0
- package/serialization/types/ConversationSentimentAnalysisOverallLabel.d.ts +7 -0
- package/serialization/types/ConversationSentimentAnalysisOverallLabel.js +39 -0
- package/serialization/types/CreateExotelPhoneNumberRequest.d.ts +19 -0
- package/serialization/types/CreateExotelPhoneNumberRequest.js +51 -0
- package/serialization/types/CreateOrderRequest.d.ts +9 -0
- package/serialization/types/CreateOrderRequest.js +41 -0
- package/serialization/types/CreateOrderResponse.d.ts +1 -0
- package/serialization/types/CreateOrderResponse.js +1 -0
- package/serialization/types/CreateResponseUnitTestRequest.d.ts +2 -0
- package/serialization/types/CreateResponseUnitTestRequest.js +2 -0
- package/serialization/types/CreateSimulationTestRequest.d.ts +2 -0
- package/serialization/types/CreateSimulationTestRequest.js +2 -0
- package/serialization/types/CreateToolCallUnitTestRequest.d.ts +2 -0
- package/serialization/types/CreateToolCallUnitTestRequest.js +2 -0
- package/serialization/types/CustomLlm.d.ts +2 -0
- package/serialization/types/CustomLlm.js +2 -0
- package/serialization/types/CustomLlmAuthConnection.d.ts +9 -0
- package/serialization/types/CustomLlmAuthConnection.js +41 -0
- package/serialization/types/ExotelApiSubdomain.d.ts +7 -0
- package/serialization/types/ExotelApiSubdomain.js +39 -0
- package/serialization/types/ExotelOutboundCallResponse.d.ts +12 -0
- package/serialization/types/ExotelOutboundCallResponse.js +44 -0
- package/serialization/types/GetAgentResponseModelPhoneNumbersItem.d.ts +5 -1
- package/serialization/types/GetAgentResponseModelPhoneNumbersItem.js +2 -0
- package/serialization/types/GetPhoneNumberExotelResponseModel.d.ts +15 -0
- package/serialization/types/GetPhoneNumberExotelResponseModel.js +47 -0
- package/serialization/types/GetResponseUnitTestResponseModel.d.ts +2 -0
- package/serialization/types/GetResponseUnitTestResponseModel.js +2 -0
- package/serialization/types/GetSimulationTestResponseModel.d.ts +2 -0
- package/serialization/types/GetSimulationTestResponseModel.js +2 -0
- package/serialization/types/GetTestSuiteInvocationResponseModel.d.ts +5 -0
- package/serialization/types/GetTestSuiteInvocationResponseModel.js +5 -0
- package/serialization/types/GetToolCallUnitTestResponseModel.d.ts +2 -0
- package/serialization/types/GetToolCallUnitTestResponseModel.js +2 -0
- package/serialization/types/InteractionBudget.d.ts +7 -0
- package/serialization/types/InteractionBudget.js +39 -0
- package/serialization/types/LanguagesResponse.d.ts +15 -0
- package/{dist/serialization/types/RootModelAnnotatedUnionPairedLanguagesResponseSingleLanguagesResponseFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKind.js → serialization/types/LanguagesResponse.js} +2 -2
- package/serialization/types/Llm.d.ts +1 -1
- package/serialization/types/Llm.js +1 -0
- package/serialization/types/{LoadProcedureToolConfig.d.ts → LoadProcedureToolConfigInput.d.ts} +2 -2
- package/serialization/types/{LoadProcedureToolConfig.js → LoadProcedureToolConfigInput.js} +2 -2
- package/serialization/types/LoadProcedureToolConfigOutput.d.ts +10 -0
- package/serialization/types/LoadProcedureToolConfigOutput.js +42 -0
- package/serialization/types/MessagesSearchResult.d.ts +2 -0
- package/serialization/types/MessagesSearchResult.js +2 -0
- package/serialization/types/Monitor.d.ts +1 -1
- package/serialization/types/Monitor.js +1 -1
- package/serialization/types/MusicGenerationMode.d.ts +7 -0
- package/serialization/types/MusicGenerationMode.js +39 -0
- package/serialization/types/OptInSmsReminderParams.d.ts +9 -0
- package/serialization/types/OptInSmsReminderParams.js +41 -0
- package/serialization/types/OptOutSmsReminderParams.d.ts +9 -0
- package/serialization/types/OptOutSmsReminderParams.js +41 -0
- package/serialization/types/OrderItemInfo.d.ts +2 -2
- package/serialization/types/OrderItemInfo.js +2 -2
- package/serialization/types/OrderItemRequestInput.d.ts +15 -0
- package/{dist/serialization/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindOutput.js → serialization/types/OrderItemRequestInput.js} +2 -2
- package/serialization/types/OrderItemRequestOutput.d.ts +15 -0
- package/serialization/types/{RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindOutput.js → OrderItemRequestOutput.js} +2 -2
- package/serialization/types/OrderResponse.d.ts +1 -0
- package/serialization/types/OrderResponse.js +1 -0
- package/serialization/types/OrderSummary.d.ts +1 -0
- package/serialization/types/OrderSummary.js +1 -0
- package/serialization/types/ProcedureAtVersion.d.ts +2 -0
- package/serialization/types/ProcedureAtVersion.js +2 -0
- package/serialization/types/ProcedureRefResponseModel.d.ts +2 -0
- package/serialization/types/ProcedureRefResponseModel.js +2 -0
- package/serialization/types/ProcedureType.d.ts +7 -0
- package/serialization/types/ProcedureType.js +39 -0
- package/serialization/types/ReferencedToolCommonModelType.d.ts +1 -1
- package/serialization/types/ReferencedToolCommonModelType.js +1 -1
- package/serialization/types/RenderType.d.ts +1 -1
- package/serialization/types/RenderType.js +1 -1
- package/serialization/types/ResourceAccessInfo.d.ts +2 -0
- package/serialization/types/ResourceAccessInfo.js +2 -0
- package/serialization/types/ResourceAccessInfoAccessSource.d.ts +7 -0
- package/serialization/types/ResourceAccessInfoAccessSource.js +39 -0
- package/serialization/types/ResponseUnitTestModel.d.ts +2 -0
- package/serialization/types/ResponseUnitTestModel.js +2 -0
- package/serialization/types/RestoreCalendarEventParams.d.ts +9 -0
- package/serialization/types/RestoreCalendarEventParams.js +41 -0
- package/serialization/types/SimulationTestModel.d.ts +2 -0
- package/serialization/types/SimulationTestModel.js +2 -0
- package/serialization/types/SoftTimeoutConfig.d.ts +1 -0
- package/serialization/types/SoftTimeoutConfig.js +1 -0
- package/serialization/types/SoftTimeoutConfigWorkflowOverride.d.ts +1 -0
- package/serialization/types/SoftTimeoutConfigWorkflowOverride.js +1 -0
- package/serialization/types/SpeechEngineResponse.d.ts +2 -0
- package/serialization/types/SpeechEngineResponse.js +2 -0
- package/serialization/types/SpeechEngineSummaryResponse.d.ts +2 -0
- package/serialization/types/SpeechEngineSummaryResponse.js +2 -0
- package/serialization/types/SystemEvaluationCriteria.d.ts +10 -0
- package/serialization/types/SystemEvaluationCriteria.js +42 -0
- package/serialization/types/SystemToolConfigInputParams.d.ts +2 -2
- package/serialization/types/SystemToolConfigInputParams.js +2 -2
- package/serialization/types/SystemToolConfigOutputParams.d.ts +2 -2
- package/serialization/types/SystemToolConfigOutputParams.js +2 -2
- package/serialization/types/TelephonyProvider.d.ts +1 -1
- package/serialization/types/TelephonyProvider.js +1 -1
- package/serialization/types/TestInvocationSummaryResponseModel.d.ts +1 -0
- package/serialization/types/TestInvocationSummaryResponseModel.js +1 -0
- package/serialization/types/TestRunResultBucket.d.ts +13 -0
- package/serialization/types/TestRunResultBucket.js +45 -0
- package/serialization/types/TestRunResultSummary.d.ts +13 -0
- package/serialization/types/TestRunResultSummary.js +45 -0
- package/serialization/types/ToolCallUnitTestModel.d.ts +2 -0
- package/serialization/types/ToolCallUnitTestModel.js +2 -0
- package/serialization/types/TransferToAgentToolResultSuccessModel.d.ts +1 -0
- package/serialization/types/TransferToAgentToolResultSuccessModel.js +1 -0
- package/serialization/types/TransferToNumberResultExotelSuccessModel.d.ts +12 -0
- package/serialization/types/TransferToNumberResultExotelSuccessModel.js +44 -0
- package/serialization/types/UnitTestSummaryResponseModel.d.ts +2 -0
- package/serialization/types/UnitTestSummaryResponseModel.js +2 -0
- package/serialization/types/UpdateResponseUnitTestRequest.d.ts +2 -0
- package/serialization/types/UpdateResponseUnitTestRequest.js +2 -0
- package/serialization/types/UpdateSimulationTestRequest.d.ts +2 -0
- package/serialization/types/UpdateSimulationTestRequest.js +2 -0
- package/serialization/types/UpdateToolCallUnitTestRequest.d.ts +2 -0
- package/serialization/types/UpdateToolCallUnitTestRequest.js +2 -0
- package/serialization/types/UpsertOrderItemRequest.d.ts +2 -2
- package/serialization/types/UpsertOrderItemRequest.js +2 -2
- package/serialization/types/Verbosity.d.ts +7 -0
- package/serialization/types/Verbosity.js +39 -0
- package/serialization/types/WebhookToolApiSchemaConfigInput.d.ts +1 -0
- package/serialization/types/WebhookToolApiSchemaConfigInput.js +1 -0
- package/serialization/types/WebhookToolApiSchemaConfigOutput.d.ts +1 -0
- package/serialization/types/WebhookToolApiSchemaConfigOutput.js +1 -0
- package/serialization/types/WorkflowStandaloneAgentNodeModelInput.d.ts +2 -1
- package/serialization/types/WorkflowStandaloneAgentNodeModelInput.js +2 -1
- package/serialization/types/WorkflowStandaloneAgentNodeModelOutput.d.ts +2 -1
- package/serialization/types/WorkflowStandaloneAgentNodeModelOutput.js +2 -1
- package/serialization/types/index.d.ts +28 -6
- package/serialization/types/index.js +28 -6
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/music.d.ts +11 -0
- package/wrapper/music.js +15 -0
- package/wrapper/speech-engine/SpeechEngineClientWrapper.js +5 -5
- package/wrapper/speech-engine/SpeechEngineResource.d.ts +10 -1
- package/wrapper/speech-engine/SpeechEngineResource.js +16 -1
- package/api/types/ProcedureCompilerMode.d.ts +0 -5
- package/api/types/ProcedureSettings.d.ts +0 -4
- package/api/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindInput.d.ts +0 -10
- package/api/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindOutput.d.ts +0 -10
- package/api/types/RootModelAnnotatedUnionPairedLanguagesResponseSingleLanguagesResponseFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKind.d.ts +0 -10
- package/dist/api/types/ProcedureCompilerMode.d.ts +0 -5
- package/dist/api/types/ProcedureSettings.d.ts +0 -4
- package/dist/api/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindInput.d.ts +0 -10
- package/dist/api/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindOutput.d.ts +0 -10
- package/dist/api/types/RootModelAnnotatedUnionPairedLanguagesResponseSingleLanguagesResponseFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKind.d.ts +0 -10
- package/dist/serialization/types/ProcedureCompilerMode.d.ts +0 -7
- package/dist/serialization/types/ProcedureSettings.d.ts +0 -10
- package/dist/serialization/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindInput.d.ts +0 -15
- package/dist/serialization/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindOutput.d.ts +0 -15
- package/dist/serialization/types/RootModelAnnotatedUnionPairedLanguagesResponseSingleLanguagesResponseFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKind.d.ts +0 -15
- package/serialization/types/ProcedureCompilerMode.d.ts +0 -7
- package/serialization/types/ProcedureSettings.d.ts +0 -10
- package/serialization/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindInput.d.ts +0 -15
- package/serialization/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindOutput.d.ts +0 -15
- package/serialization/types/RootModelAnnotatedUnionPairedLanguagesResponseSingleLanguagesResponseFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKind.d.ts +0 -15
- /package/api/{types/LoadProcedureToolConfig.js → resources/conversationalAi/resources/exotel/client/requests/BodyHandleAnOutboundCallViaExotelV1ConvaiExotelOutboundCallPost.js} +0 -0
- /package/api/{types/ProcedureSettings.js → resources/workspaces/resources/apiKeys/client/requests/ApiKeysRevokeRequest.js} +0 -0
- /package/api/types/{RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindInput.js → BehaviorOverride.js} +0 -0
- /package/api/types/{RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindOutput.js → ConversationHistoryExotelPhoneCallModel.js} +0 -0
- /package/api/types/{RootModelAnnotatedUnionPairedLanguagesResponseSingleLanguagesResponseFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKind.js → ConversationSentimentAnalysis.js} +0 -0
- /package/{dist/api/types/LoadProcedureToolConfig.js → api/types/CreateExotelPhoneNumberRequest.js} +0 -0
- /package/{dist/api/types/ProcedureSettings.js → api/types/CreateOrderRequest.js} +0 -0
- /package/{dist/api/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindInput.js → api/types/CustomLlmAuthConnection.js} +0 -0
- /package/{dist/api/types/RootModelAnnotatedUnionDubOrderItemRequestSubtitleOrderItemRequestFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKindOutput.js → api/types/ExotelOutboundCallResponse.js} +0 -0
- /package/{dist/api/types/RootModelAnnotatedUnionPairedLanguagesResponseSingleLanguagesResponseFieldInfoAnnotationNoneTypeRequiredTrueDiscriminatorKind.js → api/types/GetPhoneNumberExotelResponseModel.js} +0 -0
package/.fern/metadata.json
CHANGED
package/.fern/replay.lock
CHANGED
|
@@ -6,5 +6,243 @@ generations:
|
|
|
6
6
|
timestamp: 2026-05-20T07:39:27.879Z
|
|
7
7
|
cli_version: unknown
|
|
8
8
|
generator_versions: {}
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
- commit_sha: c3a35abc58cb2069932026a430af4dacd1a77375
|
|
10
|
+
tree_hash: 2650cfcd8cacddeea3bfc801dcd4122976446e87
|
|
11
|
+
timestamp: 2026-05-26T13:58:18.906Z
|
|
12
|
+
cli_version: unknown
|
|
13
|
+
generator_versions:
|
|
14
|
+
fernapi/fern-typescript-sdk: 3.36.0
|
|
15
|
+
- commit_sha: d93a154a0453a9207a0a9f62d22b67f914897d4f
|
|
16
|
+
tree_hash: e07fc750f93805fbe67ee57942fc2ddc75e21dbc
|
|
17
|
+
timestamp: 2026-06-01T12:01:15.436Z
|
|
18
|
+
cli_version: unknown
|
|
19
|
+
generator_versions:
|
|
20
|
+
fernapi/fern-typescript-sdk: 3.36.0
|
|
21
|
+
current_generation: d93a154a0453a9207a0a9f62d22b67f914897d4f
|
|
22
|
+
patches:
|
|
23
|
+
- id: patch-de61f83d
|
|
24
|
+
content_hash: sha256:68befbb918546e173f9cace2b64df407a8af413e8c49f6e8d2ffca07f350cc85
|
|
25
|
+
original_commit: de61f83d12c24caaeddbe5127e980d623a146219
|
|
26
|
+
original_message: "[Speech Engine] Add full response to Speech Engine API calls (#396)"
|
|
27
|
+
original_author: Paul Asjes <paul.asjes@elevenlabs.io>
|
|
28
|
+
base_generation: ce5e816b02d6ee652e144660cde533225a31d56f
|
|
29
|
+
files:
|
|
30
|
+
- package.json
|
|
31
|
+
- src/BaseClient.ts
|
|
32
|
+
- src/version.ts
|
|
33
|
+
patch_content: |
|
|
34
|
+
diff --git a/package.json b/package.json
|
|
35
|
+
index c3c7f64f..d798dac6 100644
|
|
36
|
+
--- a/package.json
|
|
37
|
+
+++ b/package.json
|
|
38
|
+
@@ -1,6 +1,6 @@
|
|
39
|
+
{
|
|
40
|
+
"name": "@elevenlabs/elevenlabs-js",
|
|
41
|
+
- "version": "2.49.0",
|
|
42
|
+
+ "version": "2.49.1",
|
|
43
|
+
"private": false,
|
|
44
|
+
"repository": "github:elevenlabs/elevenlabs-js",
|
|
45
|
+
"license": "MIT",
|
|
46
|
+
diff --git a/src/BaseClient.ts b/src/BaseClient.ts
|
|
47
|
+
index 86d613de..f6907e8e 100644
|
|
48
|
+
--- a/src/BaseClient.ts
|
|
49
|
+
+++ b/src/BaseClient.ts
|
|
50
|
+
@@ -47,8 +47,8 @@ export function normalizeClientOptions<T extends BaseClientOptions>(options: T):
|
|
51
|
+
{
|
|
52
|
+
"X-Fern-Language": "JavaScript",
|
|
53
|
+
"X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
|
|
54
|
+
- "X-Fern-SDK-Version": "2.49.0",
|
|
55
|
+
- "User-Agent": "@elevenlabs/elevenlabs-js/2.49.0",
|
|
56
|
+
+ "X-Fern-SDK-Version": "2.49.1",
|
|
57
|
+
+ "User-Agent": "@elevenlabs/elevenlabs-js/2.49.1",
|
|
58
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
59
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
60
|
+
"xi-api-key": options?.apiKey,
|
|
61
|
+
diff --git a/src/version.ts b/src/version.ts
|
|
62
|
+
index 6f569928..c3abf658 100644
|
|
63
|
+
--- a/src/version.ts
|
|
64
|
+
+++ b/src/version.ts
|
|
65
|
+
@@ -1 +1 @@
|
|
66
|
+
-export const SDK_VERSION = "2.49.0";
|
|
67
|
+
+export const SDK_VERSION = "2.49.1";
|
|
68
|
+
theirs_snapshot:
|
|
69
|
+
package.json: |
|
|
70
|
+
{
|
|
71
|
+
"name": "@elevenlabs/elevenlabs-js",
|
|
72
|
+
"version": "2.49.1",
|
|
73
|
+
"private": false,
|
|
74
|
+
"repository": "github:elevenlabs/elevenlabs-js",
|
|
75
|
+
"license": "MIT",
|
|
76
|
+
"main": "./index.js",
|
|
77
|
+
"types": "./index.d.ts",
|
|
78
|
+
"scripts": {
|
|
79
|
+
"format": "biome format --write --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
80
|
+
"format:check": "biome format --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
81
|
+
"lint": "biome lint --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
82
|
+
"lint:fix": "biome lint --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
83
|
+
"check": "biome check --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
84
|
+
"check:fix": "biome check --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
85
|
+
"build": "tsc",
|
|
86
|
+
"prepack": "cp -rv dist/. .",
|
|
87
|
+
"test": "jest --config jest.config.mjs",
|
|
88
|
+
"test:unit": "jest --selectProjects unit",
|
|
89
|
+
"test:wire": "jest --selectProjects wire"
|
|
90
|
+
},
|
|
91
|
+
"dependencies": {
|
|
92
|
+
"node-fetch": "^2.7.0",
|
|
93
|
+
"command-exists": "^1.2.9",
|
|
94
|
+
"ws": "^8.18.3"
|
|
95
|
+
},
|
|
96
|
+
"devDependencies": {
|
|
97
|
+
"@types/node-fetch": "^2.6.12",
|
|
98
|
+
"webpack": "^5.97.1",
|
|
99
|
+
"ts-loader": "^9.5.1",
|
|
100
|
+
"jest": "^29.7.0",
|
|
101
|
+
"@jest/globals": "^29.7.0",
|
|
102
|
+
"@types/jest": "^29.5.5",
|
|
103
|
+
"ts-jest": "^29.1.1",
|
|
104
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
105
|
+
"msw": "2.11.2",
|
|
106
|
+
"@types/node": "^18.19.70",
|
|
107
|
+
"typescript": "~5.7.2",
|
|
108
|
+
"@biomejs/biome": "2.3.1",
|
|
109
|
+
"@types/command-exists": "^1.2.3",
|
|
110
|
+
"@types/ws": "^8.18.1"
|
|
111
|
+
},
|
|
112
|
+
"browser": {
|
|
113
|
+
"fs": false,
|
|
114
|
+
"os": false,
|
|
115
|
+
"path": false,
|
|
116
|
+
"stream": false,
|
|
117
|
+
"command-exists": false
|
|
118
|
+
},
|
|
119
|
+
"packageManager": "yarn@1.22.22",
|
|
120
|
+
"engines": {
|
|
121
|
+
"node": ">=18.0.0"
|
|
122
|
+
},
|
|
123
|
+
"sideEffects": false
|
|
124
|
+
}
|
|
125
|
+
src/BaseClient.ts: |
|
|
126
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
127
|
+
|
|
128
|
+
import * as core from "./core";
|
|
129
|
+
import { mergeHeaders } from "./core/headers";
|
|
130
|
+
import type * as environments from "./environments";
|
|
131
|
+
|
|
132
|
+
export interface BaseClientOptions {
|
|
133
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
134
|
+
/** Specify a custom URL to connect the client to. */
|
|
135
|
+
baseUrl?: core.Supplier<string>;
|
|
136
|
+
/** Override the xi-api-key header */
|
|
137
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
138
|
+
/** Additional headers to include in requests. */
|
|
139
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
140
|
+
/** The default maximum time to wait for a response in seconds. */
|
|
141
|
+
timeoutInSeconds?: number;
|
|
142
|
+
/** The default number of times to retry the request. Defaults to 2. */
|
|
143
|
+
maxRetries?: number;
|
|
144
|
+
/** Provide a custom fetch implementation. Useful for platforms that don't have a built-in fetch or need a custom implementation. */
|
|
145
|
+
fetch?: typeof fetch;
|
|
146
|
+
fetcher?: core.FetchFunction;
|
|
147
|
+
/** Configure logging for the client. */
|
|
148
|
+
logging?: core.logging.LogConfig | core.logging.Logger;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export interface BaseRequestOptions {
|
|
152
|
+
/** The maximum time to wait for a response in seconds. */
|
|
153
|
+
timeoutInSeconds?: number;
|
|
154
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
155
|
+
maxRetries?: number;
|
|
156
|
+
/** A hook to abort the request. */
|
|
157
|
+
abortSignal?: AbortSignal;
|
|
158
|
+
/** Override the xi-api-key header */
|
|
159
|
+
apiKey?: string | undefined;
|
|
160
|
+
/** Additional query string parameters to include in the request. */
|
|
161
|
+
queryParams?: Record<string, unknown>;
|
|
162
|
+
/** Additional headers to include in the request. */
|
|
163
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export type NormalizedClientOptions<T extends BaseClientOptions> = T & {
|
|
167
|
+
logging: core.logging.Logger;
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
export function normalizeClientOptions<T extends BaseClientOptions>(options: T): NormalizedClientOptions<T> {
|
|
171
|
+
const headers = mergeHeaders(
|
|
172
|
+
{
|
|
173
|
+
"X-Fern-Language": "JavaScript",
|
|
174
|
+
"X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
|
|
175
|
+
"X-Fern-SDK-Version": "2.49.1",
|
|
176
|
+
"User-Agent": "@elevenlabs/elevenlabs-js/2.49.1",
|
|
177
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
178
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
179
|
+
"xi-api-key": options?.apiKey,
|
|
180
|
+
},
|
|
181
|
+
options?.headers,
|
|
182
|
+
);
|
|
183
|
+
|
|
184
|
+
return {
|
|
185
|
+
...options,
|
|
186
|
+
logging: core.logging.createLogger(options?.logging),
|
|
187
|
+
headers,
|
|
188
|
+
} as NormalizedClientOptions<T>;
|
|
189
|
+
}
|
|
190
|
+
src/version.ts: |
|
|
191
|
+
export const SDK_VERSION = "2.49.1";
|
|
192
|
+
status: unresolved
|
|
193
|
+
- id: patch-f50f1558
|
|
194
|
+
content_hash: sha256:5a09c3db02b795ab544221e13bf2681e7f9bb43c07e8cd96ac063a405dc3a2c6
|
|
195
|
+
original_commit: f50f1558f741e331dd3949ded57771c012ef27ab
|
|
196
|
+
original_message: Add missing methods and test (#399)
|
|
197
|
+
original_author: Paul Asjes <paul.asjes@elevenlabs.io>
|
|
198
|
+
base_generation: d93a154a0453a9207a0a9f62d22b67f914897d4f
|
|
199
|
+
files:
|
|
200
|
+
- tests/unit/wrapper/music.test.ts
|
|
201
|
+
patch_content: |
|
|
202
|
+
diff --git a/tests/unit/wrapper/music.test.ts b/tests/unit/wrapper/music.test.ts
|
|
203
|
+
new file mode 100644
|
|
204
|
+
index 00000000..733d6344
|
|
205
|
+
--- /dev/null
|
|
206
|
+
+++ b/tests/unit/wrapper/music.test.ts
|
|
207
|
+
@@ -0,0 +1,19 @@
|
|
208
|
+
+import { describe, it, expect } from "@jest/globals";
|
|
209
|
+
+import { MusicClient } from "../../../src/api/resources/music/client/Client";
|
|
210
|
+
+import { Music } from "../../../src/wrapper/music";
|
|
211
|
+
+
|
|
212
|
+
+function getPublicMethods(proto: object): string[] {
|
|
213
|
+
+ return Object.getOwnPropertyNames(proto).filter(
|
|
214
|
+
+ (name) => name !== "constructor" && !name.startsWith("_"),
|
|
215
|
+
+ );
|
|
216
|
+
+}
|
|
217
|
+
+
|
|
218
|
+
+describe("Music wrapper", () => {
|
|
219
|
+
+ it("exposes all public methods of the generated MusicClient", () => {
|
|
220
|
+
+ const clientMethods = getPublicMethods(MusicClient.prototype);
|
|
221
|
+
+ const wrapperMethods = getPublicMethods(Music.prototype);
|
|
222
|
+
+
|
|
223
|
+
+ const missing = clientMethods.filter((m) => !wrapperMethods.includes(m));
|
|
224
|
+
+ expect(missing).toEqual([]);
|
|
225
|
+
+ });
|
|
226
|
+
+});
|
|
227
|
+
theirs_snapshot:
|
|
228
|
+
tests/unit/wrapper/music.test.ts: |
|
|
229
|
+
import { describe, it, expect } from "@jest/globals";
|
|
230
|
+
import { MusicClient } from "../../../src/api/resources/music/client/Client";
|
|
231
|
+
import { Music } from "../../../src/wrapper/music";
|
|
232
|
+
|
|
233
|
+
function getPublicMethods(proto: object): string[] {
|
|
234
|
+
return Object.getOwnPropertyNames(proto).filter(
|
|
235
|
+
(name) => name !== "constructor" && !name.startsWith("_"),
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
describe("Music wrapper", () => {
|
|
240
|
+
it("exposes all public methods of the generated MusicClient", () => {
|
|
241
|
+
const clientMethods = getPublicMethods(MusicClient.prototype);
|
|
242
|
+
const wrapperMethods = getPublicMethods(Music.prototype);
|
|
243
|
+
|
|
244
|
+
const missing = clientMethods.filter((m) => !wrapperMethods.includes(m));
|
|
245
|
+
expect(missing).toEqual([]);
|
|
246
|
+
});
|
|
247
|
+
});
|
|
248
|
+
user_owned: true
|
package/BaseClient.js
CHANGED
|
@@ -41,8 +41,8 @@ function normalizeClientOptions(options) {
|
|
|
41
41
|
const headers = (0, headers_1.mergeHeaders)({
|
|
42
42
|
"X-Fern-Language": "JavaScript",
|
|
43
43
|
"X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
|
|
44
|
-
"X-Fern-SDK-Version": "2.
|
|
45
|
-
"User-Agent": "@elevenlabs/elevenlabs-js/2.
|
|
44
|
+
"X-Fern-SDK-Version": "2.51.0",
|
|
45
|
+
"User-Agent": "@elevenlabs/elevenlabs-js/2.51.0",
|
|
46
46
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
47
47
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
48
48
|
"xi-api-key": options === null || options === void 0 ? void 0 : options.apiKey,
|
package/Client.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ import { UserClient } from "./api/resources/user/client/Client";
|
|
|
25
25
|
import { VoicesClient } from "./api/resources/voices/client/Client";
|
|
26
26
|
import { WebhooksClient } from "./api/resources/webhooks/client/Client";
|
|
27
27
|
import { WorkspaceClient } from "./api/resources/workspace/client/Client";
|
|
28
|
+
import { WorkspacesClient } from "./api/resources/workspaces/client/Client";
|
|
28
29
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient";
|
|
29
30
|
import { type NormalizedClientOptions } from "./BaseClient";
|
|
30
31
|
import * as core from "./core";
|
|
@@ -62,6 +63,7 @@ export declare class ElevenLabsClient {
|
|
|
62
63
|
protected _productions: ProductionsClient | undefined;
|
|
63
64
|
protected _tokens: TokensClient | undefined;
|
|
64
65
|
protected _workspace: WorkspaceClient | undefined;
|
|
66
|
+
protected _workspaces: WorkspacesClient | undefined;
|
|
65
67
|
constructor(options?: ElevenLabsClient.Options);
|
|
66
68
|
get history(): HistoryClient;
|
|
67
69
|
get textToSoundEffects(): TextToSoundEffectsClient;
|
|
@@ -90,6 +92,7 @@ export declare class ElevenLabsClient {
|
|
|
90
92
|
get productions(): ProductionsClient;
|
|
91
93
|
get tokens(): TokensClient;
|
|
92
94
|
get workspace(): WorkspaceClient;
|
|
95
|
+
get workspaces(): WorkspacesClient;
|
|
93
96
|
/**
|
|
94
97
|
* Add a generated voice to the voice library.
|
|
95
98
|
*
|
package/Client.js
CHANGED
|
@@ -71,6 +71,7 @@ const Client_24 = require("./api/resources/user/client/Client");
|
|
|
71
71
|
const Client_25 = require("./api/resources/voices/client/Client");
|
|
72
72
|
const Client_26 = require("./api/resources/webhooks/client/Client");
|
|
73
73
|
const Client_27 = require("./api/resources/workspace/client/Client");
|
|
74
|
+
const Client_28 = require("./api/resources/workspaces/client/Client");
|
|
74
75
|
const BaseClient_1 = require("./BaseClient");
|
|
75
76
|
const core = __importStar(require("./core"));
|
|
76
77
|
const headers_1 = require("./core/headers");
|
|
@@ -189,6 +190,10 @@ class ElevenLabsClient {
|
|
|
189
190
|
var _a;
|
|
190
191
|
return ((_a = this._workspace) !== null && _a !== void 0 ? _a : (this._workspace = new Client_27.WorkspaceClient(this._options)));
|
|
191
192
|
}
|
|
193
|
+
get workspaces() {
|
|
194
|
+
var _a;
|
|
195
|
+
return ((_a = this._workspaces) !== null && _a !== void 0 ? _a : (this._workspaces = new Client_28.WorkspacesClient(this._options)));
|
|
196
|
+
}
|
|
192
197
|
/**
|
|
193
198
|
* Add a generated voice to the voice library.
|
|
194
199
|
*
|
|
@@ -7,6 +7,7 @@ import { AnalyticsClient } from "../resources/analytics/client/Client";
|
|
|
7
7
|
import { BatchCallsClient } from "../resources/batchCalls/client/Client";
|
|
8
8
|
import { ConversationsClient } from "../resources/conversations/client/Client";
|
|
9
9
|
import { DashboardClient } from "../resources/dashboard/client/Client";
|
|
10
|
+
import { ExotelClient } from "../resources/exotel/client/Client";
|
|
10
11
|
import { KnowledgeBaseClient } from "../resources/knowledgeBase/client/Client";
|
|
11
12
|
import { LlmClient } from "../resources/llm/client/Client";
|
|
12
13
|
import { LlmUsageClient } from "../resources/llmUsage/client/Client";
|
|
@@ -30,6 +31,7 @@ export declare class ConversationalAiClient {
|
|
|
30
31
|
protected readonly _options: NormalizedClientOptions<ConversationalAiClient.Options>;
|
|
31
32
|
protected _conversations: ConversationsClient | undefined;
|
|
32
33
|
protected _twilio: TwilioClient | undefined;
|
|
34
|
+
protected _exotel: ExotelClient | undefined;
|
|
33
35
|
protected _whatsapp: WhatsappClient | undefined;
|
|
34
36
|
protected _agents: AgentsClient | undefined;
|
|
35
37
|
protected _tests: TestsClient | undefined;
|
|
@@ -50,6 +52,7 @@ export declare class ConversationalAiClient {
|
|
|
50
52
|
constructor(options?: ConversationalAiClient.Options);
|
|
51
53
|
get conversations(): ConversationsClient;
|
|
52
54
|
get twilio(): TwilioClient;
|
|
55
|
+
get exotel(): ExotelClient;
|
|
53
56
|
get whatsapp(): WhatsappClient;
|
|
54
57
|
get agents(): AgentsClient;
|
|
55
58
|
get tests(): TestsClient;
|
|
@@ -57,20 +57,21 @@ const Client_2 = require("../resources/analytics/client/Client");
|
|
|
57
57
|
const Client_3 = require("../resources/batchCalls/client/Client");
|
|
58
58
|
const Client_4 = require("../resources/conversations/client/Client");
|
|
59
59
|
const Client_5 = require("../resources/dashboard/client/Client");
|
|
60
|
-
const Client_6 = require("../resources/
|
|
61
|
-
const Client_7 = require("../resources/
|
|
62
|
-
const Client_8 = require("../resources/
|
|
63
|
-
const Client_9 = require("../resources/
|
|
64
|
-
const Client_10 = require("../resources/
|
|
65
|
-
const Client_11 = require("../resources/
|
|
66
|
-
const Client_12 = require("../resources/
|
|
67
|
-
const Client_13 = require("../resources/
|
|
68
|
-
const Client_14 = require("../resources/
|
|
69
|
-
const Client_15 = require("../resources/
|
|
70
|
-
const Client_16 = require("../resources/
|
|
71
|
-
const Client_17 = require("../resources/
|
|
72
|
-
const Client_18 = require("../resources/
|
|
73
|
-
const Client_19 = require("../resources/
|
|
60
|
+
const Client_6 = require("../resources/exotel/client/Client");
|
|
61
|
+
const Client_7 = require("../resources/knowledgeBase/client/Client");
|
|
62
|
+
const Client_8 = require("../resources/llm/client/Client");
|
|
63
|
+
const Client_9 = require("../resources/llmUsage/client/Client");
|
|
64
|
+
const Client_10 = require("../resources/mcpServers/client/Client");
|
|
65
|
+
const Client_11 = require("../resources/phoneNumbers/client/Client");
|
|
66
|
+
const Client_12 = require("../resources/secrets/client/Client");
|
|
67
|
+
const Client_13 = require("../resources/settings/client/Client");
|
|
68
|
+
const Client_14 = require("../resources/sipTrunk/client/Client");
|
|
69
|
+
const Client_15 = require("../resources/tests/client/Client");
|
|
70
|
+
const Client_16 = require("../resources/tools/client/Client");
|
|
71
|
+
const Client_17 = require("../resources/twilio/client/Client");
|
|
72
|
+
const Client_18 = require("../resources/users/client/Client");
|
|
73
|
+
const Client_19 = require("../resources/whatsapp/client/Client");
|
|
74
|
+
const Client_20 = require("../resources/whatsappAccounts/client/Client");
|
|
74
75
|
class ConversationalAiClient {
|
|
75
76
|
constructor(options = {}) {
|
|
76
77
|
this._options = (0, BaseClient_1.normalizeClientOptions)(options);
|
|
@@ -81,11 +82,15 @@ class ConversationalAiClient {
|
|
|
81
82
|
}
|
|
82
83
|
get twilio() {
|
|
83
84
|
var _a;
|
|
84
|
-
return ((_a = this._twilio) !== null && _a !== void 0 ? _a : (this._twilio = new
|
|
85
|
+
return ((_a = this._twilio) !== null && _a !== void 0 ? _a : (this._twilio = new Client_17.TwilioClient(this._options)));
|
|
86
|
+
}
|
|
87
|
+
get exotel() {
|
|
88
|
+
var _a;
|
|
89
|
+
return ((_a = this._exotel) !== null && _a !== void 0 ? _a : (this._exotel = new Client_6.ExotelClient(this._options)));
|
|
85
90
|
}
|
|
86
91
|
get whatsapp() {
|
|
87
92
|
var _a;
|
|
88
|
-
return ((_a = this._whatsapp) !== null && _a !== void 0 ? _a : (this._whatsapp = new
|
|
93
|
+
return ((_a = this._whatsapp) !== null && _a !== void 0 ? _a : (this._whatsapp = new Client_19.WhatsappClient(this._options)));
|
|
89
94
|
}
|
|
90
95
|
get agents() {
|
|
91
96
|
var _a;
|
|
@@ -93,39 +98,39 @@ class ConversationalAiClient {
|
|
|
93
98
|
}
|
|
94
99
|
get tests() {
|
|
95
100
|
var _a;
|
|
96
|
-
return ((_a = this._tests) !== null && _a !== void 0 ? _a : (this._tests = new
|
|
101
|
+
return ((_a = this._tests) !== null && _a !== void 0 ? _a : (this._tests = new Client_15.TestsClient(this._options)));
|
|
97
102
|
}
|
|
98
103
|
get users() {
|
|
99
104
|
var _a;
|
|
100
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
105
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_18.UsersClient(this._options)));
|
|
101
106
|
}
|
|
102
107
|
get phoneNumbers() {
|
|
103
108
|
var _a;
|
|
104
|
-
return ((_a = this._phoneNumbers) !== null && _a !== void 0 ? _a : (this._phoneNumbers = new
|
|
109
|
+
return ((_a = this._phoneNumbers) !== null && _a !== void 0 ? _a : (this._phoneNumbers = new Client_11.PhoneNumbersClient(this._options)));
|
|
105
110
|
}
|
|
106
111
|
get llmUsage() {
|
|
107
112
|
var _a;
|
|
108
|
-
return ((_a = this._llmUsage) !== null && _a !== void 0 ? _a : (this._llmUsage = new
|
|
113
|
+
return ((_a = this._llmUsage) !== null && _a !== void 0 ? _a : (this._llmUsage = new Client_9.LlmUsageClient(this._options)));
|
|
109
114
|
}
|
|
110
115
|
get llm() {
|
|
111
116
|
var _a;
|
|
112
|
-
return ((_a = this._llm) !== null && _a !== void 0 ? _a : (this._llm = new
|
|
117
|
+
return ((_a = this._llm) !== null && _a !== void 0 ? _a : (this._llm = new Client_8.LlmClient(this._options)));
|
|
113
118
|
}
|
|
114
119
|
get knowledgeBase() {
|
|
115
120
|
var _a;
|
|
116
|
-
return ((_a = this._knowledgeBase) !== null && _a !== void 0 ? _a : (this._knowledgeBase = new
|
|
121
|
+
return ((_a = this._knowledgeBase) !== null && _a !== void 0 ? _a : (this._knowledgeBase = new Client_7.KnowledgeBaseClient(this._options)));
|
|
117
122
|
}
|
|
118
123
|
get tools() {
|
|
119
124
|
var _a;
|
|
120
|
-
return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new
|
|
125
|
+
return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_16.ToolsClient(this._options)));
|
|
121
126
|
}
|
|
122
127
|
get settings() {
|
|
123
128
|
var _a;
|
|
124
|
-
return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new
|
|
129
|
+
return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new Client_13.SettingsClient(this._options)));
|
|
125
130
|
}
|
|
126
131
|
get secrets() {
|
|
127
132
|
var _a;
|
|
128
|
-
return ((_a = this._secrets) !== null && _a !== void 0 ? _a : (this._secrets = new
|
|
133
|
+
return ((_a = this._secrets) !== null && _a !== void 0 ? _a : (this._secrets = new Client_12.SecretsClient(this._options)));
|
|
129
134
|
}
|
|
130
135
|
get batchCalls() {
|
|
131
136
|
var _a;
|
|
@@ -133,15 +138,15 @@ class ConversationalAiClient {
|
|
|
133
138
|
}
|
|
134
139
|
get sipTrunk() {
|
|
135
140
|
var _a;
|
|
136
|
-
return ((_a = this._sipTrunk) !== null && _a !== void 0 ? _a : (this._sipTrunk = new
|
|
141
|
+
return ((_a = this._sipTrunk) !== null && _a !== void 0 ? _a : (this._sipTrunk = new Client_14.SipTrunkClient(this._options)));
|
|
137
142
|
}
|
|
138
143
|
get mcpServers() {
|
|
139
144
|
var _a;
|
|
140
|
-
return ((_a = this._mcpServers) !== null && _a !== void 0 ? _a : (this._mcpServers = new
|
|
145
|
+
return ((_a = this._mcpServers) !== null && _a !== void 0 ? _a : (this._mcpServers = new Client_10.McpServersClient(this._options)));
|
|
141
146
|
}
|
|
142
147
|
get whatsappAccounts() {
|
|
143
148
|
var _a;
|
|
144
|
-
return ((_a = this._whatsappAccounts) !== null && _a !== void 0 ? _a : (this._whatsappAccounts = new
|
|
149
|
+
return ((_a = this._whatsappAccounts) !== null && _a !== void 0 ? _a : (this._whatsappAccounts = new Client_20.WhatsappAccountsClient(this._options)));
|
|
145
150
|
}
|
|
146
151
|
get analytics() {
|
|
147
152
|
var _a;
|
|
@@ -7,7 +7,7 @@ import type * as ElevenLabs from "../../../../../../index";
|
|
|
7
7
|
* }
|
|
8
8
|
*/
|
|
9
9
|
export interface BodyCreateAgentV1ConvaiAgentsCreatePost {
|
|
10
|
-
/**
|
|
10
|
+
/** Deprecated: all agents are versioned. This parameter is ignored. */
|
|
11
11
|
enableVersioning?: boolean;
|
|
12
12
|
/** Conversation configuration for an agent */
|
|
13
13
|
conversationConfig: ElevenLabs.ConversationalConfig;
|
|
@@ -14,4 +14,6 @@ export interface RunAgentTestsRequestModel {
|
|
|
14
14
|
agentConfigOverride?: ElevenLabs.AdhocAgentConfigOverrideForTestRequestModel;
|
|
15
15
|
/** ID of the branch to run the tests on. If not provided, the tests will be run on the agent default configuration. */
|
|
16
16
|
branchId?: string;
|
|
17
|
+
/** Number of times to run each test. When greater than 1, results are grouped and summarized. */
|
|
18
|
+
repeatCount?: number;
|
|
17
19
|
}
|
package/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type * as ElevenLabs from "../../../../../../index";
|
|
|
7
7
|
* }
|
|
8
8
|
*/
|
|
9
9
|
export interface UpdateAgentRequest {
|
|
10
|
-
/**
|
|
10
|
+
/** Deprecated: all agents are versioned. This parameter is ignored. */
|
|
11
11
|
enableVersioningIfNotEnabled?: boolean;
|
|
12
12
|
/** The ID of the branch to use */
|
|
13
13
|
branchId?: string;
|
|
@@ -102,7 +102,8 @@ export declare class ConversationsClient {
|
|
|
102
102
|
* branchId: "branch_id",
|
|
103
103
|
* topicIds: ["topic_ids"],
|
|
104
104
|
* excludeStatuses: ["initiated"],
|
|
105
|
-
* tagIds: ["tag_ids"]
|
|
105
|
+
* tagIds: ["tag_ids"],
|
|
106
|
+
* workflowNodeEnteredId: "workflow_node_entered_id"
|
|
106
107
|
* })
|
|
107
108
|
*/
|
|
108
109
|
list(request?: ElevenLabs.conversationalAi.ConversationsListRequest, requestOptions?: ConversationsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetConversationsPageResponseModel>;
|
|
@@ -270,7 +270,8 @@ class ConversationsClient {
|
|
|
270
270
|
* branchId: "branch_id",
|
|
271
271
|
* topicIds: ["topic_ids"],
|
|
272
272
|
* excludeStatuses: ["initiated"],
|
|
273
|
-
* tagIds: ["tag_ids"]
|
|
273
|
+
* tagIds: ["tag_ids"],
|
|
274
|
+
* workflowNodeEnteredId: "workflow_node_entered_id"
|
|
274
275
|
* })
|
|
275
276
|
*/
|
|
276
277
|
list(request = {}, requestOptions) {
|
|
@@ -279,7 +280,7 @@ class ConversationsClient {
|
|
|
279
280
|
__list() {
|
|
280
281
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
281
282
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
282
|
-
const { cursor, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, callDurationMinSecs, callDurationMaxSecs, ratingMax, ratingMin, hasFeedbackComment, userId, evaluationParams, dataCollectionParams, toolNames, toolNamesSuccessful, toolNamesErrored, mainLanguages, pageSize, summaryMode, search, conversationInitiationSource, textOnly, branchId, topicIds, excludeStatuses, tagIds, } = request;
|
|
283
|
+
const { cursor, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, callDurationMinSecs, callDurationMaxSecs, ratingMax, ratingMin, hasFeedbackComment, userId, evaluationParams, dataCollectionParams, toolNames, toolNamesSuccessful, toolNamesErrored, mainLanguages, pageSize, summaryMode, search, conversationInitiationSource, textOnly, branchId, topicIds, excludeStatuses, tagIds, workflowNodeEnteredId, } = request;
|
|
283
284
|
const _queryParams = {};
|
|
284
285
|
if (cursor != null) {
|
|
285
286
|
_queryParams.cursor = cursor;
|
|
@@ -409,6 +410,9 @@ class ConversationsClient {
|
|
|
409
410
|
_queryParams.tag_ids = tagIds;
|
|
410
411
|
}
|
|
411
412
|
}
|
|
413
|
+
if (workflowNodeEnteredId != null) {
|
|
414
|
+
_queryParams.workflow_node_entered_id = workflowNodeEnteredId;
|
|
415
|
+
}
|
|
412
416
|
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
413
417
|
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
414
418
|
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, "v1/convai/conversations"),
|
|
@@ -27,7 +27,8 @@ import type * as ElevenLabs from "../../../../../../index";
|
|
|
27
27
|
* branchId: "branch_id",
|
|
28
28
|
* topicIds: ["topic_ids"],
|
|
29
29
|
* excludeStatuses: ["initiated"],
|
|
30
|
-
* tagIds: ["tag_ids"]
|
|
30
|
+
* tagIds: ["tag_ids"],
|
|
31
|
+
* workflowNodeEnteredId: "workflow_node_entered_id"
|
|
31
32
|
* }
|
|
32
33
|
*/
|
|
33
34
|
export interface ConversationsListRequest {
|
|
@@ -81,4 +82,6 @@ export interface ConversationsListRequest {
|
|
|
81
82
|
excludeStatuses?: ElevenLabs.conversationalAi.ConversationsListRequestExcludeStatusesItem | ElevenLabs.conversationalAi.ConversationsListRequestExcludeStatusesItem[];
|
|
82
83
|
/** Filter conversations by conversation tag IDs assigned via the conversation-tags endpoints. */
|
|
83
84
|
tagIds?: string | string[];
|
|
85
|
+
/** Filter conversations to only those that entered the given node. */
|
|
86
|
+
workflowNodeEnteredId?: string;
|
|
84
87
|
}
|
package/api/resources/conversationalAi/resources/conversations/resources/messages/client/Client.js
CHANGED
|
@@ -88,6 +88,7 @@ class MessagesClient {
|
|
|
88
88
|
* conversationInitiationSource: "unknown",
|
|
89
89
|
* textOnly: true,
|
|
90
90
|
* branchId: "branch_id",
|
|
91
|
+
* topicIds: ["topic_ids"],
|
|
91
92
|
* sortBy: "search_score",
|
|
92
93
|
* cursor: "cursor"
|
|
93
94
|
* })
|
|
@@ -98,7 +99,7 @@ class MessagesClient {
|
|
|
98
99
|
__textSearch(request, requestOptions) {
|
|
99
100
|
return __awaiter(this, void 0, void 0, function* () {
|
|
100
101
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
101
|
-
const { textQuery, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, callDurationMinSecs, callDurationMaxSecs, ratingMax, ratingMin, hasFeedbackComment, userId, evaluationParams, dataCollectionParams, toolNames, toolNamesSuccessful, toolNamesErrored, mainLanguages, pageSize, summaryMode, conversationInitiationSource, textOnly, branchId, sortBy, cursor, } = request;
|
|
102
|
+
const { textQuery, agentId, callSuccessful, callStartBeforeUnix, callStartAfterUnix, callDurationMinSecs, callDurationMaxSecs, ratingMax, ratingMin, hasFeedbackComment, userId, evaluationParams, dataCollectionParams, toolNames, toolNamesSuccessful, toolNamesErrored, mainLanguages, pageSize, summaryMode, conversationInitiationSource, textOnly, branchId, topicIds, sortBy, cursor, } = request;
|
|
102
103
|
const _queryParams = {};
|
|
103
104
|
_queryParams.text_query = textQuery;
|
|
104
105
|
if (agentId != null) {
|
|
@@ -197,6 +198,14 @@ class MessagesClient {
|
|
|
197
198
|
if (branchId != null) {
|
|
198
199
|
_queryParams.branch_id = branchId;
|
|
199
200
|
}
|
|
201
|
+
if (topicIds != null) {
|
|
202
|
+
if (Array.isArray(topicIds)) {
|
|
203
|
+
_queryParams.topic_ids = topicIds.map((item) => item);
|
|
204
|
+
}
|
|
205
|
+
else {
|
|
206
|
+
_queryParams.topic_ids = topicIds;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
200
209
|
if (sortBy != null) {
|
|
201
210
|
_queryParams.sort_by = serializers.MessageSearchSortBy.jsonOrThrow(sortBy, {
|
|
202
211
|
unrecognizedObjectKeys: "strip",
|
|
@@ -24,6 +24,7 @@ import type * as ElevenLabs from "../../../../../../../../index";
|
|
|
24
24
|
* conversationInitiationSource: "unknown",
|
|
25
25
|
* textOnly: true,
|
|
26
26
|
* branchId: "branch_id",
|
|
27
|
+
* topicIds: ["topic_ids"],
|
|
27
28
|
* sortBy: "search_score",
|
|
28
29
|
* cursor: "cursor"
|
|
29
30
|
* }
|
|
@@ -71,6 +72,8 @@ export interface MessagesTextSearchRequest {
|
|
|
71
72
|
textOnly?: boolean;
|
|
72
73
|
/** Filter conversations by branch ID. */
|
|
73
74
|
branchId?: string;
|
|
75
|
+
/** Filter conversations by topic IDs assigned during topic discovery. */
|
|
76
|
+
topicIds?: string | string[];
|
|
74
77
|
/** Sort order for search results. 'search_score' sorts by search score, 'created_at' sorts by conversation start time. */
|
|
75
78
|
sortBy?: ElevenLabs.MessageSearchSortBy;
|
|
76
79
|
/** Used for fetching next page. Cursor is returned in the response. */
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient";
|
|
2
|
+
import { type NormalizedClientOptions } from "../../../../../../BaseClient";
|
|
3
|
+
import * as core from "../../../../../../core";
|
|
4
|
+
import * as ElevenLabs from "../../../../../index";
|
|
5
|
+
export declare namespace ExotelClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class ExotelClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptions<ExotelClient.Options>;
|
|
12
|
+
constructor(options?: ExotelClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Handle an outbound call via Exotel Connect API
|
|
15
|
+
*
|
|
16
|
+
* @param {ElevenLabs.conversationalAi.BodyHandleAnOutboundCallViaExotelV1ConvaiExotelOutboundCallPost} request
|
|
17
|
+
* @param {ExotelClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
|
+
*
|
|
19
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* await client.conversationalAi.exotel.outboundCall({
|
|
23
|
+
* agentId: "agent_id",
|
|
24
|
+
* agentPhoneNumberId: "agent_phone_number_id",
|
|
25
|
+
* toNumber: "to_number"
|
|
26
|
+
* })
|
|
27
|
+
*/
|
|
28
|
+
outboundCall(request: ElevenLabs.conversationalAi.BodyHandleAnOutboundCallViaExotelV1ConvaiExotelOutboundCallPost, requestOptions?: ExotelClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.ExotelOutboundCallResponse>;
|
|
29
|
+
private __outboundCall;
|
|
30
|
+
}
|