@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/dist/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts
CHANGED
|
@@ -45,4 +45,6 @@ export interface BodyDubAVideoOrAnAudioFileV1DubbingPost {
|
|
|
45
45
|
mode?: ElevenLabs.DubbingCreateRequestMode;
|
|
46
46
|
/** Frames per second to use when parsing a CSV file for dubbing. If not provided, FPS will be inferred from timecodes. */
|
|
47
47
|
csvFps?: number;
|
|
48
|
+
/** HCaptcha token used to prevent spam, generated on the frontend either automatically or when the client solves the hCaptcha challenge. */
|
|
49
|
+
hcaptchaToken?: string;
|
|
48
50
|
}
|
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.workspace = exports.webhooks = exports.voices = exports.v1TextToSpeechVoiceIdStreamInput = exports.v1TextToSpeechVoiceIdMultiStreamInput = exports.v1TextToDialogueStreamInput = exports.v1SpeechToTextRealtime = exports.v1RealtimeTranslation = exports.user = exports.usage = exports.tokens = exports.textToVoice = exports.textToSpeech = exports.textToSoundEffects = exports.textToDialogue = exports.studio = exports.speechToText = exports.speechToSpeech = exports.speechEngine = exports.serviceAccounts = exports.samples = exports.pronunciationDictionaries = exports.productions = exports.music = exports.models = exports.history = exports.forcedAlignment = exports.environmentVariables = exports.dubbing = exports.conversationalAi = exports.audioNative = exports.audioIsolation = void 0;
|
|
39
|
+
exports.workspaces = exports.workspace = exports.webhooks = exports.voices = exports.v1TextToSpeechVoiceIdStreamInput = exports.v1TextToSpeechVoiceIdMultiStreamInput = exports.v1TextToDialogueStreamInput = exports.v1SpeechToTextRealtime = exports.v1RealtimeTranslation = exports.user = exports.usage = exports.tokens = exports.textToVoice = exports.textToSpeech = exports.textToSoundEffects = exports.textToDialogue = exports.studio = exports.speechToText = exports.speechToSpeech = exports.speechEngine = exports.serviceAccounts = exports.samples = exports.pronunciationDictionaries = exports.productions = exports.music = exports.models = exports.history = exports.forcedAlignment = exports.environmentVariables = exports.dubbing = exports.conversationalAi = exports.audioNative = exports.audioIsolation = void 0;
|
|
40
40
|
exports.audioIsolation = __importStar(require("./audioIsolation"));
|
|
41
41
|
__exportStar(require("./audioIsolation/client/requests"), exports);
|
|
42
42
|
__exportStar(require("./audioIsolation/types"), exports);
|
|
@@ -108,3 +108,4 @@ __exportStar(require("./voices/types"), exports);
|
|
|
108
108
|
exports.webhooks = __importStar(require("./webhooks"));
|
|
109
109
|
__exportStar(require("./webhooks/client/requests"), exports);
|
|
110
110
|
exports.workspace = __importStar(require("./workspace"));
|
|
111
|
+
exports.workspaces = __importStar(require("./workspaces"));
|
|
@@ -44,14 +44,17 @@ export declare class OrdersClient {
|
|
|
44
44
|
/**
|
|
45
45
|
* Creates a new Productions order in the workspace. The order starts in the open state and can be configured with items before submission.
|
|
46
46
|
*
|
|
47
|
+
* @param {ElevenLabs.CreateOrderRequest} request
|
|
47
48
|
* @param {OrdersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
49
|
*
|
|
49
50
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
50
51
|
*
|
|
51
52
|
* @example
|
|
52
|
-
* await client.productions.orders.create(
|
|
53
|
+
* await client.productions.orders.create({
|
|
54
|
+
* sandbox: false
|
|
55
|
+
* })
|
|
53
56
|
*/
|
|
54
|
-
create(requestOptions?: OrdersClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.CreateOrderResponse>;
|
|
57
|
+
create(request?: ElevenLabs.CreateOrderRequest, requestOptions?: OrdersClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.CreateOrderResponse>;
|
|
55
58
|
private __create;
|
|
56
59
|
/**
|
|
57
60
|
* Retrieves full details for a Productions order.
|
|
@@ -164,17 +164,20 @@ class OrdersClient {
|
|
|
164
164
|
/**
|
|
165
165
|
* Creates a new Productions order in the workspace. The order starts in the open state and can be configured with items before submission.
|
|
166
166
|
*
|
|
167
|
+
* @param {ElevenLabs.CreateOrderRequest} request
|
|
167
168
|
* @param {OrdersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
168
169
|
*
|
|
169
170
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
170
171
|
*
|
|
171
172
|
* @example
|
|
172
|
-
* await client.productions.orders.create(
|
|
173
|
+
* await client.productions.orders.create({
|
|
174
|
+
* sandbox: false
|
|
175
|
+
* })
|
|
173
176
|
*/
|
|
174
|
-
create(requestOptions) {
|
|
175
|
-
return core.HttpResponsePromise.fromPromise(this.__create(requestOptions));
|
|
177
|
+
create(request, requestOptions) {
|
|
178
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
176
179
|
}
|
|
177
|
-
__create(requestOptions) {
|
|
180
|
+
__create(request, requestOptions) {
|
|
178
181
|
return __awaiter(this, void 0, void 0, function* () {
|
|
179
182
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
180
183
|
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);
|
|
@@ -182,7 +185,14 @@ class OrdersClient {
|
|
|
182
185
|
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/productions/orders"),
|
|
183
186
|
method: "POST",
|
|
184
187
|
headers: _headers,
|
|
188
|
+
contentType: "application/json",
|
|
185
189
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
190
|
+
requestType: "json",
|
|
191
|
+
body: request != null
|
|
192
|
+
? serializers.productions.orders.create.Request.jsonOrThrow(request, {
|
|
193
|
+
unrecognizedObjectKeys: "strip",
|
|
194
|
+
})
|
|
195
|
+
: undefined,
|
|
186
196
|
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 240) * 1000,
|
|
187
197
|
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
188
198
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
package/dist/api/resources/productions/resources/orders/resources/languages/client/Client.d.ts
CHANGED
|
@@ -21,6 +21,6 @@ export declare class LanguagesClient {
|
|
|
21
21
|
* @example
|
|
22
22
|
* await client.productions.orders.languages.list("dub")
|
|
23
23
|
*/
|
|
24
|
-
list(order_item_kind: ElevenLabs.OrderItemKind, requestOptions?: LanguagesClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.
|
|
24
|
+
list(order_item_kind: ElevenLabs.OrderItemKind, requestOptions?: LanguagesClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.LanguagesResponse>;
|
|
25
25
|
private __list;
|
|
26
26
|
}
|
package/dist/api/resources/productions/resources/orders/resources/languages/client/Client.js
CHANGED
|
@@ -87,7 +87,7 @@ class LanguagesClient {
|
|
|
87
87
|
});
|
|
88
88
|
if (_response.ok) {
|
|
89
89
|
return {
|
|
90
|
-
data: serializers.
|
|
90
|
+
data: serializers.LanguagesResponse.parseOrThrow(_response.body, {
|
|
91
91
|
unrecognizedObjectKeys: "passthrough",
|
|
92
92
|
allowUnrecognizedUnionMembers: true,
|
|
93
93
|
allowUnrecognizedEnumValues: true,
|
package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export interface BodySpeechToTextV1SpeechToTextPost {
|
|
|
18
18
|
enableLogging?: boolean;
|
|
19
19
|
/** The ID of the model to use for transcription. */
|
|
20
20
|
modelId: ElevenLabs.SpeechToTextConvertRequestModelId;
|
|
21
|
-
/** The file to transcribe (100ms minimum audio length). All major audio and video formats are supported. Exactly one of the file or cloud_storage_url parameters must be provided. The file size must be less than
|
|
21
|
+
/** The file to transcribe (100ms minimum audio length). All major audio and video formats are supported. Exactly one of the file or cloud_storage_url parameters must be provided. The file size must be less than 5.0GB. */
|
|
22
22
|
file?: core.file.Uploadable | undefined;
|
|
23
23
|
/** An ISO-639-1 or ISO-639-3 language_code corresponding to the language of the audio file. Can sometimes improve transcription performance if known beforehand. Defaults to null, in this case the language is predicted automatically. */
|
|
24
24
|
languageCode?: string;
|
|
@@ -36,7 +36,7 @@ export interface BodySpeechToTextV1SpeechToTextPost {
|
|
|
36
36
|
additionalFormats?: ElevenLabs.AdditionalFormats;
|
|
37
37
|
/** The format of input audio. Options are 'pcm_s16le_16' or 'other' For `pcm_s16le_16`, the input audio must be 16-bit PCM at a 16kHz sample rate, single channel (mono), and little-endian byte order. Latency will be lower than with passing an encoded waveform. */
|
|
38
38
|
fileFormat?: ElevenLabs.SpeechToTextConvertRequestFileFormat;
|
|
39
|
-
/** The HTTPS URL of the file to transcribe. Exactly one of the file or cloud_storage_url parameters must be provided. The file must be accessible via HTTPS and the file size must be less than 2GB. Any valid HTTPS URL is accepted, including URLs from cloud storage providers (AWS S3, Google Cloud Storage, Cloudflare R2, etc.), CDNs, or any other HTTPS source. URLs can be pre-signed or include authentication tokens in query parameters. */
|
|
39
|
+
/** [Deprecated] This parameter is deprecated and will be removed in the future. Use 'source_url' instead.The HTTPS URL of the file to transcribe. Exactly one of the file or cloud_storage_url parameters must be provided. The file must be accessible via HTTPS and the file size must be less than 2GB. Any valid HTTPS URL is accepted, including URLs from cloud storage providers (AWS S3, Google Cloud Storage, Cloudflare R2, etc.), CDNs, or any other HTTPS source. URLs can be pre-signed or include authentication tokens in query parameters. */
|
|
40
40
|
cloudStorageUrl?: string;
|
|
41
41
|
/** The URL of an audio or video file to transcribe. Supports hosted video or audio files, YouTube video URLs, TikTok video URLs, and other video hosting services. */
|
|
42
42
|
sourceUrl?: string;
|
|
@@ -27,7 +27,7 @@ export declare class ResourcesClient {
|
|
|
27
27
|
get(resource_id: string, request: ElevenLabs.workspace.ResourcesGetRequest, requestOptions?: ResourcesClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.ResourceMetadataResponseModel>;
|
|
28
28
|
private __get;
|
|
29
29
|
/**
|
|
30
|
-
* Grants a role on a workspace resource to a user or
|
|
30
|
+
* Grants a role (one of 'admin', 'editor', 'commenter', or 'viewer') on a workspace resource to a user, group, or workspace (service account) API key. This overrides any existing role the target has on the resource. To target a user or service account, pass only the user email; the user must be in your workspace. To target a group, pass only the group id. To target a workspace (service account) API key, pass the api key id; the resource will be shared with the service account associated with that key. You must have admin access to the resource to share it.
|
|
31
31
|
*
|
|
32
32
|
* @param {string} resource_id - The ID of the target resource.
|
|
33
33
|
* @param {ElevenLabs.workspace.BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePost} request
|
|
@@ -44,7 +44,7 @@ export declare class ResourcesClient {
|
|
|
44
44
|
share(resource_id: string, request: ElevenLabs.workspace.BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePost, requestOptions?: ResourcesClient.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
45
45
|
private __share;
|
|
46
46
|
/**
|
|
47
|
-
* Removes any existing role on a workspace resource from a user,
|
|
47
|
+
* Removes any existing role on a workspace resource from a user, group, or workspace (service account) API key. To target a user or service account, pass only the user email; the user must be in your workspace. To target a group, pass only the group id. To target a workspace (service account) API key, pass the api key id; the resource will be unshared from the service account associated with that key. You must have admin access to the resource to unshare it. You cannot remove permissions from the user who created the resource.
|
|
48
48
|
*
|
|
49
49
|
* @param {string} resource_id - The ID of the target resource.
|
|
50
50
|
* @param {ElevenLabs.workspace.BodyUnshareWorkspaceResourceV1WorkspaceResourcesResourceIdUnsharePost} request
|
|
@@ -120,7 +120,7 @@ class ResourcesClient {
|
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
/**
|
|
123
|
-
* Grants a role on a workspace resource to a user or
|
|
123
|
+
* Grants a role (one of 'admin', 'editor', 'commenter', or 'viewer') on a workspace resource to a user, group, or workspace (service account) API key. This overrides any existing role the target has on the resource. To target a user or service account, pass only the user email; the user must be in your workspace. To target a group, pass only the group id. To target a workspace (service account) API key, pass the api key id; the resource will be shared with the service account associated with that key. You must have admin access to the resource to share it.
|
|
124
124
|
*
|
|
125
125
|
* @param {string} resource_id - The ID of the target resource.
|
|
126
126
|
* @param {ElevenLabs.workspace.BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePost} request
|
|
@@ -174,7 +174,7 @@ class ResourcesClient {
|
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
/**
|
|
177
|
-
* Removes any existing role on a workspace resource from a user,
|
|
177
|
+
* Removes any existing role on a workspace resource from a user, group, or workspace (service account) API key. To target a user or service account, pass only the user email; the user must be in your workspace. To target a group, pass only the group id. To target a workspace (service account) API key, pass the api key id; the resource will be unshared from the service account associated with that key. You must have admin access to the resource to unshare it. You cannot remove permissions from the user who created the resource.
|
|
178
178
|
*
|
|
179
179
|
* @param {string} resource_id - The ID of the target resource.
|
|
180
180
|
* @param {ElevenLabs.workspace.BodyUnshareWorkspaceResourceV1WorkspaceResourcesResourceIdUnsharePost} request
|
|
@@ -7,14 +7,14 @@ import type * as ElevenLabs from "../../../../../../index";
|
|
|
7
7
|
* }
|
|
8
8
|
*/
|
|
9
9
|
export interface BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePost {
|
|
10
|
-
/** Role to
|
|
10
|
+
/** Role to grant to the target: one of 'admin', 'editor', 'commenter', or 'viewer'. */
|
|
11
11
|
role: ElevenLabs.workspace.BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePostRole;
|
|
12
12
|
/** Resource type of the target resource. */
|
|
13
13
|
resourceType: ElevenLabs.WorkspaceResourceType;
|
|
14
14
|
/** The email of the user or service account. */
|
|
15
15
|
userEmail?: string;
|
|
16
|
-
/** The ID of the target group.
|
|
16
|
+
/** The ID of the target group. Use 'default' to set the resource's baseline role — every workspace member receives this role unless they hold a higher one through a direct user grant, group membership, or workspace (service account) API key. */
|
|
17
17
|
groupId?: string;
|
|
18
|
-
/** The ID of the target workspace API key. This
|
|
18
|
+
/** The ID of the target workspace (service account) API key. This is not the API key string itself that you pass in the header for authentication — it is the key's ID, which workspace admins can find under Developers → Service Accounts. */
|
|
19
19
|
workspaceApiKeyId?: string;
|
|
20
20
|
}
|
|
@@ -10,8 +10,8 @@ export interface BodyUnshareWorkspaceResourceV1WorkspaceResourcesResourceIdUnsha
|
|
|
10
10
|
resourceType: ElevenLabs.WorkspaceResourceType;
|
|
11
11
|
/** The email of the user or service account. */
|
|
12
12
|
userEmail?: string;
|
|
13
|
-
/** The ID of the target group.
|
|
13
|
+
/** The ID of the target group. Use 'default' to set the resource's baseline role — every workspace member receives this role unless they hold a higher one through a direct user grant, group membership, or workspace (service account) API key. */
|
|
14
14
|
groupId?: string;
|
|
15
|
-
/** The ID of the target workspace API key. This
|
|
15
|
+
/** The ID of the target workspace (service account) API key. This is not the API key string itself that you pass in the header for authentication — it is the key's ID, which workspace admins can find under Developers → Service Accounts. */
|
|
16
16
|
workspaceApiKeyId?: string;
|
|
17
17
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Role to
|
|
1
|
+
/** Role to grant to the target: one of 'admin', 'editor', 'commenter', or 'viewer'. */
|
|
2
2
|
export declare const BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePostRole: {
|
|
3
3
|
readonly Admin: "admin";
|
|
4
4
|
readonly Editor: "editor";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePostRole = void 0;
|
|
5
|
-
/** Role to
|
|
5
|
+
/** Role to grant to the target: one of 'admin', 'editor', 'commenter', or 'viewer'. */
|
|
6
6
|
exports.BodyShareWorkspaceResourceV1WorkspaceResourcesResourceIdSharePostRole = {
|
|
7
7
|
Admin: "admin",
|
|
8
8
|
Editor: "editor",
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { BaseClientOptions } from "../../../../BaseClient";
|
|
2
|
+
import { type NormalizedClientOptions } from "../../../../BaseClient";
|
|
3
|
+
import { ApiKeysClient } from "../resources/apiKeys/client/Client";
|
|
4
|
+
export declare namespace WorkspacesClient {
|
|
5
|
+
type Options = BaseClientOptions;
|
|
6
|
+
}
|
|
7
|
+
export declare class WorkspacesClient {
|
|
8
|
+
protected readonly _options: NormalizedClientOptions<WorkspacesClient.Options>;
|
|
9
|
+
protected _apiKeys: ApiKeysClient | undefined;
|
|
10
|
+
constructor(options?: WorkspacesClient.Options);
|
|
11
|
+
get apiKeys(): ApiKeysClient;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.WorkspacesClient = void 0;
|
|
5
|
+
const BaseClient_1 = require("../../../../BaseClient");
|
|
6
|
+
const Client_1 = require("../resources/apiKeys/client/Client");
|
|
7
|
+
class WorkspacesClient {
|
|
8
|
+
constructor(options = {}) {
|
|
9
|
+
this._options = (0, BaseClient_1.normalizeClientOptions)(options);
|
|
10
|
+
}
|
|
11
|
+
get apiKeys() {
|
|
12
|
+
var _a;
|
|
13
|
+
return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new Client_1.ApiKeysClient(this._options)));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.WorkspacesClient = WorkspacesClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
18
|
+
__exportStar(require("./resources"), exports);
|
|
@@ -0,0 +1,28 @@
|
|
|
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 ApiKeysClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class ApiKeysClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptions<ApiKeysClient.Options>;
|
|
12
|
+
constructor(options?: ApiKeysClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Revoke the API key used to authenticate this request. Requires the query parameter `api_key_name=self` as an explicit confirmation.
|
|
15
|
+
*
|
|
16
|
+
* @param {ElevenLabs.workspaces.ApiKeysRevokeRequest} request
|
|
17
|
+
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
|
+
*
|
|
19
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* await client.workspaces.apiKeys.revoke({
|
|
23
|
+
* apiKeyName: "self"
|
|
24
|
+
* })
|
|
25
|
+
*/
|
|
26
|
+
revoke(request: ElevenLabs.workspaces.ApiKeysRevokeRequest, requestOptions?: ApiKeysClient.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
27
|
+
private __revoke;
|
|
28
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.ApiKeysClient = void 0;
|
|
47
|
+
const BaseClient_1 = require("../../../../../../BaseClient");
|
|
48
|
+
const core = __importStar(require("../../../../../../core"));
|
|
49
|
+
const headers_1 = require("../../../../../../core/headers");
|
|
50
|
+
const environments = __importStar(require("../../../../../../environments"));
|
|
51
|
+
const handleNonStatusCodeError_1 = require("../../../../../../errors/handleNonStatusCodeError");
|
|
52
|
+
const errors = __importStar(require("../../../../../../errors/index"));
|
|
53
|
+
const ElevenLabs = __importStar(require("../../../../../index"));
|
|
54
|
+
class ApiKeysClient {
|
|
55
|
+
constructor(options = {}) {
|
|
56
|
+
this._options = (0, BaseClient_1.normalizeClientOptions)(options);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Revoke the API key used to authenticate this request. Requires the query parameter `api_key_name=self` as an explicit confirmation.
|
|
60
|
+
*
|
|
61
|
+
* @param {ElevenLabs.workspaces.ApiKeysRevokeRequest} request
|
|
62
|
+
* @param {ApiKeysClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* await client.workspaces.apiKeys.revoke({
|
|
68
|
+
* apiKeyName: "self"
|
|
69
|
+
* })
|
|
70
|
+
*/
|
|
71
|
+
revoke(request, requestOptions) {
|
|
72
|
+
return core.HttpResponsePromise.fromPromise(this.__revoke(request, requestOptions));
|
|
73
|
+
}
|
|
74
|
+
__revoke(request, requestOptions) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
77
|
+
const { apiKeyName } = request;
|
|
78
|
+
const _queryParams = {};
|
|
79
|
+
_queryParams.api_key_name = apiKeyName;
|
|
80
|
+
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);
|
|
81
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
82
|
+
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/workspaces/api-keys/revoke"),
|
|
83
|
+
method: "DELETE",
|
|
84
|
+
headers: _headers,
|
|
85
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
86
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 240) * 1000,
|
|
87
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
88
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
89
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
90
|
+
logging: this._options.logging,
|
|
91
|
+
});
|
|
92
|
+
if (_response.ok) {
|
|
93
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
94
|
+
}
|
|
95
|
+
if (_response.error.reason === "status-code") {
|
|
96
|
+
switch (_response.error.statusCode) {
|
|
97
|
+
case 422:
|
|
98
|
+
throw new ElevenLabs.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
99
|
+
default:
|
|
100
|
+
throw new errors.ElevenLabsError({
|
|
101
|
+
statusCode: _response.error.statusCode,
|
|
102
|
+
body: _response.error.body,
|
|
103
|
+
rawResponse: _response.rawResponse,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v1/workspaces/api-keys/revoke");
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
exports.ApiKeysClient = ApiKeysClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
package/dist/api/resources/workspaces/resources/apiKeys/client/requests/ApiKeysRevokeRequest.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* apiKeyName: "self"
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface ApiKeysRevokeRequest {
|
|
8
|
+
/** Must be set to `self` to revoke the API key used to authenticate this request. Required as an explicit confirmation to avoid accidental revocation. */
|
|
9
|
+
apiKeyName: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { ApiKeysRevokeRequest } from "./ApiKeysRevokeRequest";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.apiKeys = void 0;
|
|
40
|
+
exports.apiKeys = __importStar(require("./apiKeys"));
|
|
41
|
+
__exportStar(require("./apiKeys/client/requests"), exports);
|
|
@@ -12,6 +12,8 @@ export interface AgentConfig {
|
|
|
12
12
|
disableFirstMessageInterruptions?: boolean;
|
|
13
13
|
/** If non-empty, the message the agent will send when max conversation duration is reached. */
|
|
14
14
|
maxConversationDurationMessage?: string;
|
|
15
|
+
/** Per-channel response behavior overrides for text conversations. Built-in channel defaults apply when unset. */
|
|
16
|
+
textBehaviorOverrides?: Record<string, ElevenLabs.BehaviorOverride | undefined>;
|
|
15
17
|
/** The prompt for the agent */
|
|
16
18
|
prompt?: ElevenLabs.PromptAgentApiModelOutput;
|
|
17
19
|
}
|
|
@@ -12,6 +12,8 @@ export interface AgentConfigApiModelWorkflowOverrideInput {
|
|
|
12
12
|
disableFirstMessageInterruptions?: boolean;
|
|
13
13
|
/** If non-empty, the message the agent will send when max conversation duration is reached. */
|
|
14
14
|
maxConversationDurationMessage?: string;
|
|
15
|
+
/** Per-channel response behavior overrides for text conversations. Built-in channel defaults apply when unset. */
|
|
16
|
+
textBehaviorOverrides?: Record<string, ElevenLabs.BehaviorOverride | undefined>;
|
|
15
17
|
/** The prompt for the agent */
|
|
16
18
|
prompt?: ElevenLabs.PromptAgentApiModelWorkflowOverrideInput;
|
|
17
19
|
}
|
|
@@ -12,6 +12,8 @@ export interface AgentConfigApiModelWorkflowOverrideOutput {
|
|
|
12
12
|
disableFirstMessageInterruptions?: boolean;
|
|
13
13
|
/** If non-empty, the message the agent will send when max conversation duration is reached. */
|
|
14
14
|
maxConversationDurationMessage?: string;
|
|
15
|
+
/** Per-channel response behavior overrides for text conversations. Built-in channel defaults apply when unset. */
|
|
16
|
+
textBehaviorOverrides?: Record<string, ElevenLabs.BehaviorOverride | undefined>;
|
|
15
17
|
/** The prompt for the agent */
|
|
16
18
|
prompt?: ElevenLabs.PromptAgentApiModelWorkflowOverrideOutput;
|
|
17
19
|
}
|
|
@@ -30,5 +30,4 @@ export interface AgentPlatformSettingsRequestModel {
|
|
|
30
30
|
trustContext?: ElevenLabs.AgentTrustContext;
|
|
31
31
|
/** Default LLM model for post-call analysis (evaluation and data collection) */
|
|
32
32
|
analysisLlm?: ElevenLabs.Llm;
|
|
33
|
-
alerting?: ElevenLabs.AgentAlertingSettings;
|
|
34
33
|
}
|
|
@@ -30,6 +30,5 @@ export interface AgentPlatformSettingsResponseModel {
|
|
|
30
30
|
trustContext?: ElevenLabs.AgentTrustContext;
|
|
31
31
|
/** Default LLM model for post-call analysis (evaluation and data collection) */
|
|
32
32
|
analysisLlm?: ElevenLabs.Llm;
|
|
33
|
-
alerting?: ElevenLabs.AgentAlertingSettings;
|
|
34
33
|
safety?: ElevenLabs.SafetyResponseModel;
|
|
35
34
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as ElevenLabs from "../index";
|
|
2
|
+
export interface BehaviorOverride {
|
|
3
|
+
/** Verbosity override. Underlying default applies when unset. */
|
|
4
|
+
verbosity?: ElevenLabs.Verbosity;
|
|
5
|
+
/** Output format override. Underlying default applies when unset. */
|
|
6
|
+
outputFormat?: ElevenLabs.OutputFormat;
|
|
7
|
+
/** Interaction budget override. Underlying default applies when unset. */
|
|
8
|
+
interactionBudget?: ElevenLabs.InteractionBudget;
|
|
9
|
+
}
|