@elevenlabs/elevenlabs-js 2.36.0 → 2.37.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/BaseClient.js +2 -2
- package/api/resources/audioNative/client/Client.d.ts +15 -0
- package/api/resources/audioNative/client/Client.js +67 -0
- package/api/resources/audioNative/client/requests/BodyUpdateAudioNativeContentFromUrlV1AudioNativeContentPost.d.ts +10 -0
- package/api/resources/audioNative/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/client/Client.d.ts +3 -0
- package/api/resources/conversationalAi/client/Client.js +29 -24
- package/api/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
- package/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -2
- package/api/resources/conversationalAi/resources/agents/types/BodyCreateAgentV1ConvaiAgentsCreatePostCoachingSettings.d.ts +10 -0
- package/api/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchCoachingSettings.d.ts +10 -0
- package/api/resources/conversationalAi/resources/agents/types/index.d.ts +2 -1
- package/api/resources/conversationalAi/resources/agents/types/index.js +2 -1
- package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +6 -0
- package/api/resources/conversationalAi/resources/conversations/client/Client.js +10 -0
- package/api/resources/conversationalAi/resources/conversations/resources/files/client/Client.d.ts +44 -0
- package/api/resources/conversationalAi/resources/conversations/resources/files/client/Client.js +191 -0
- package/api/resources/conversationalAi/resources/conversations/resources/files/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/conversations/resources/files/client/index.js +17 -0
- package/api/resources/conversationalAi/resources/conversations/resources/files/client/requests/BodyUploadFileV1ConvaiConversationsConversationIdFilesPost.d.ts +11 -0
- package/api/resources/conversationalAi/resources/conversations/resources/files/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/conversations/resources/files/client/requests/index.js +2 -0
- package/api/resources/conversationalAi/resources/conversations/resources/files/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/conversations/resources/files/index.js +17 -0
- package/api/resources/conversationalAi/resources/conversations/resources/index.d.ts +5 -0
- package/api/resources/conversationalAi/resources/conversations/resources/index.js +6 -1
- package/api/resources/conversationalAi/resources/conversations/resources/messages/client/Client.d.ts +61 -0
- package/api/resources/conversationalAi/resources/conversations/resources/messages/client/Client.js +297 -0
- package/api/resources/conversationalAi/resources/conversations/resources/messages/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/conversations/resources/messages/client/index.js +17 -0
- package/api/resources/conversationalAi/resources/conversations/resources/messages/client/requests/MessagesSearchRequest.d.ts +19 -0
- package/api/resources/conversationalAi/resources/conversations/resources/messages/client/requests/MessagesTextSearchRequest.d.ts +63 -0
- package/api/resources/conversationalAi/resources/conversations/resources/messages/client/requests/index.d.ts +2 -0
- package/api/resources/conversationalAi/resources/conversations/resources/messages/client/requests/index.js +2 -0
- package/api/resources/conversationalAi/resources/conversations/resources/messages/index.d.ts +2 -0
- package/api/resources/conversationalAi/resources/conversations/resources/messages/index.js +18 -0
- package/api/resources/conversationalAi/resources/conversations/resources/messages/types/MessagesTextSearchRequestSummaryMode.d.ts +6 -0
- package/api/resources/conversationalAi/resources/conversations/resources/messages/types/MessagesTextSearchRequestSummaryMode.js +9 -0
- package/api/resources/conversationalAi/resources/conversations/resources/messages/types/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/conversations/resources/messages/types/index.js +17 -0
- package/api/resources/conversationalAi/resources/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/index.js +2 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +1 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +1 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/client/requests/BodyComputeRagIndexesInBatchV1ConvaiKnowledgeBaseRagIndexPost.d.ts +1 -1
- package/api/resources/conversationalAi/resources/llm/client/Client.d.ts +25 -0
- package/api/resources/conversationalAi/resources/llm/client/Client.js +119 -0
- package/api/resources/conversationalAi/resources/llm/client/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/llm/client/index.js +2 -0
- package/api/resources/conversationalAi/resources/llm/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/llm/index.js +17 -0
- package/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +4 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/index.js +1 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideCreateRequestModel.d.ts +2 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideUpdateRequestModel.d.ts +2 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/index.js +1 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideCreateRequestModelInputOverridesValue.d.ts +13 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideUpdateRequestModelInputOverridesValue.d.ts +13 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/index.d.ts +2 -0
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/index.js +18 -0
- package/api/resources/conversationalAi/resources/tests/client/Client.d.ts +4 -1
- package/api/resources/conversationalAi/resources/tests/client/Client.js +16 -2
- package/api/resources/conversationalAi/resources/tests/client/requests/TestsListRequest.d.ts +11 -1
- package/api/resources/conversationalAi/resources/tests/types/TestsListRequestSortMode.d.ts +6 -0
- package/api/resources/conversationalAi/resources/tests/types/TestsListRequestSortMode.js +9 -0
- package/api/resources/conversationalAi/resources/tests/types/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/tests/types/index.js +1 -0
- package/api/resources/conversationalAi/resources/twilio/client/requests/BodyHandleAnOutboundCallViaTwilioV1ConvaiTwilioOutboundCallPost.d.ts +2 -0
- package/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +2 -0
- package/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +2 -0
- package/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +2 -0
- package/api/resources/pronunciationDictionaries/client/Client.d.ts +2 -0
- package/api/resources/pronunciationDictionaries/client/Client.js +2 -0
- package/api/resources/pronunciationDictionaries/client/requests/BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromRulesPost.d.ts +2 -0
- package/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +2 -0
- package/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +2 -0
- package/api/resources/pronunciationDictionaries/resources/rules/client/requests/PronunciationDictionary.d.ts +2 -0
- package/api/resources/voices/client/requests/BodyAddSharedVoiceV1VoicesAddPublicUserIdVoiceIdPost.d.ts +1 -0
- package/api/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.d.ts +2 -0
- package/api/types/AgentPlatformSettingsRequestModel.d.ts +3 -1
- package/api/types/AgentPlatformSettingsResponseModel.d.ts +3 -1
- package/api/types/AgentSimulatedChatTestResponseModel.d.ts +1 -1
- package/api/types/AgentTestEntityType.d.ts +5 -0
- package/api/types/AgentTestEntityType.js +8 -0
- package/api/types/AgentTestFolderPathSegmentResponseModel.d.ts +4 -0
- package/api/types/ApiIntegrationWebhookOverridesInput.d.ts +1 -0
- package/api/types/ApiIntegrationWebhookOverridesInputSchemaOverridesValue.d.ts +13 -0
- package/api/types/ApiIntegrationWebhookOverridesOutput.d.ts +1 -0
- package/api/types/ApiIntegrationWebhookOverridesOutputSchemaOverridesValue.d.ts +13 -0
- package/api/types/ApiIntegrationWebhookOverridesOutputSchemaOverridesValue.js +3 -0
- package/api/types/ChatSourceMedium.d.ts +7 -0
- package/{dist/api/types/ConversationHistoryTranscriptCommonModelInputSourceMedium.js → api/types/ChatSourceMedium.js} +4 -2
- package/api/types/ClientEvent.d.ts +1 -0
- package/api/types/ClientEvent.js +1 -0
- package/api/types/ClipAnimation.d.ts +7 -0
- package/api/types/ClipAnimation.js +3 -0
- package/api/types/ClipAnimationEnterEffect.d.ts +17 -0
- package/api/types/ClipAnimationEnterEffect.js +20 -0
- package/api/types/ClipAnimationExitEffect.d.ts +17 -0
- package/api/types/ClipAnimationExitEffect.js +20 -0
- package/api/types/CoachedAgentSettings.d.ts +3 -0
- package/api/types/CoachedAgentSettings.js +3 -0
- package/api/types/CoachingAgentSettings.d.ts +7 -0
- package/api/types/CoachingAgentSettings.js +3 -0
- package/api/types/ConfigEntityType.d.ts +68 -0
- package/api/types/ConfigEntityType.js +71 -0
- package/api/types/ConstantSchemaOverride.d.ts +5 -0
- package/api/types/ConstantSchemaOverride.js +3 -0
- package/api/types/ConstantSchemaOverrideConstantValue.d.ts +4 -0
- package/api/types/ConstantSchemaOverrideConstantValue.js +3 -0
- package/api/types/ContentConfig.d.ts +1 -1
- package/api/types/ConvAiFileUploadResponseModel.d.ts +3 -0
- package/api/types/ConvAiFileUploadResponseModel.js +3 -0
- package/api/types/ConversationHistoryRedactionConfig.d.ts +7 -0
- package/api/types/ConversationHistoryRedactionConfig.js +3 -0
- package/api/types/ConversationHistoryTranscriptCommonModelInput.d.ts +1 -1
- package/api/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +1 -1
- package/api/types/ConversationHistoryTranscriptFileInputResponseModel.d.ts +6 -0
- package/api/types/ConversationHistoryTranscriptFileInputResponseModel.js +3 -0
- package/api/types/ConversationHistoryTranscriptResponseModel.d.ts +19 -0
- package/api/types/ConversationHistoryTranscriptResponseModel.js +3 -0
- package/api/types/ConversationHistoryTranscriptResponseModelRole.d.ts +5 -0
- package/api/types/ConversationHistoryTranscriptResponseModelRole.js +8 -0
- package/api/types/ConversationHistoryTranscriptResponseModelToolResultsItem.d.ts +2 -0
- package/api/types/ConversationHistoryTranscriptResponseModelToolResultsItem.js +3 -0
- package/api/types/ConversationUserResponseModel.d.ts +3 -2
- package/api/types/CreateClientParams.d.ts +6 -0
- package/api/types/CreateClientParams.js +3 -0
- package/api/types/CreatePreviouslyGeneratedVoiceRequest.d.ts +1 -12
- package/api/types/CreateProductParams.d.ts +3 -0
- package/api/types/CreateProductParams.js +3 -0
- package/api/types/CreateResponseUnitTestRequest.d.ts +2 -0
- package/api/types/CreateServiceParams.d.ts +6 -0
- package/api/types/CreateServiceParams.js +3 -0
- package/api/types/CreateSimulationTestRequest.d.ts +2 -0
- package/api/types/CreateStaffParams.d.ts +6 -0
- package/api/types/CreateStaffParams.js +3 -0
- package/api/types/CreateToolCallUnitTestRequest.d.ts +2 -0
- package/api/types/DeleteClientParams.d.ts +6 -0
- package/api/types/DeleteClientParams.js +3 -0
- package/api/types/DeleteProductParams.d.ts +3 -0
- package/api/types/DeleteProductParams.js +3 -0
- package/api/types/DeleteServiceParams.d.ts +6 -0
- package/api/types/DeleteServiceParams.js +3 -0
- package/api/types/DeleteStaffParams.d.ts +6 -0
- package/api/types/DeleteStaffParams.js +3 -0
- package/api/types/DependentBranchInfo.d.ts +7 -0
- package/api/types/DependentBranchInfo.js +3 -0
- package/api/types/DynamicVariableSchemaOverride.d.ts +4 -0
- package/api/types/DynamicVariableSchemaOverride.js +3 -0
- package/api/types/EmbeddingModelEnum.d.ts +1 -0
- package/api/types/EmbeddingModelEnum.js +1 -0
- package/api/types/FocusGuardrail.d.ts +3 -0
- package/api/types/FocusGuardrail.js +3 -0
- package/api/types/GenerateVoiceRequest.d.ts +1 -13
- package/api/types/GenerationSourceContext.d.ts +14 -0
- package/api/types/GenerationSourceContext.js +3 -0
- package/api/types/GetAgentResponseModel.d.ts +2 -0
- package/api/types/GetAgentResponseModelCoachingSettings.d.ts +13 -0
- package/api/types/GetAgentResponseModelCoachingSettings.js +3 -0
- package/api/types/GetClientByPhoneParams.d.ts +6 -0
- package/api/types/GetClientByPhoneParams.js +3 -0
- package/api/types/GetConversationResponseModel.d.ts +1 -1
- package/api/types/GetKnowledgeBaseDependentAgentsResponseModel.d.ts +1 -0
- package/api/types/GetToolDependentAgentsResponseModel.d.ts +1 -0
- package/api/types/GuardrailsV1Input.d.ts +2 -1
- package/api/types/GuardrailsV1Output.d.ts +2 -1
- package/api/types/LibraryVoiceResponse.d.ts +2 -0
- package/api/types/ListAssetsParams.d.ts +3 -0
- package/api/types/ListAssetsParams.js +3 -0
- package/api/types/ListClientsParams.d.ts +6 -0
- package/api/types/ListClientsParams.js +3 -0
- package/api/types/ListProductsParams.d.ts +3 -0
- package/api/types/ListProductsParams.js +3 -0
- package/api/types/ListServicesParams.d.ts +3 -0
- package/api/types/ListServicesParams.js +3 -0
- package/api/types/ListStaffParams.d.ts +3 -0
- package/api/types/ListStaffParams.js +3 -0
- package/api/types/LlmDeprecationConfigModel.d.ts +12 -0
- package/api/types/LlmDeprecationConfigModel.js +3 -0
- package/api/types/LlmDeprecationInfoModel.d.ts +19 -0
- package/api/types/LlmDeprecationInfoModel.js +3 -0
- package/api/types/LlmInfoModelInput.d.ts +21 -0
- package/api/types/LlmInfoModelInput.js +3 -0
- package/api/types/LlmInfoModelOutput.d.ts +21 -0
- package/api/types/LlmInfoModelOutput.js +3 -0
- package/api/types/LlmListResponseModelInput.d.ts +7 -0
- package/api/types/LlmListResponseModelInput.js +3 -0
- package/api/types/LlmListResponseModelOutput.d.ts +7 -0
- package/api/types/LlmListResponseModelOutput.js +3 -0
- package/api/types/LlmSchemaOverride.d.ts +4 -0
- package/api/types/LlmSchemaOverride.js +3 -0
- package/api/types/McpServerConfigInput.d.ts +2 -0
- package/api/types/McpServerConfigOutput.d.ts +2 -0
- package/api/types/McpToolConfigOverride.d.ts +2 -0
- package/api/types/McpToolConfigOverrideInputOverridesValue.d.ts +13 -0
- package/api/types/McpToolConfigOverrideInputOverridesValue.js +3 -0
- package/api/types/MessagesSearchResponse.d.ts +9 -0
- package/api/types/MessagesSearchResponse.js +3 -0
- package/api/types/MessagesSearchResult.d.ts +14 -0
- package/api/types/MessagesSearchResult.js +3 -0
- package/api/types/MusicExploreSongSourceContext.d.ts +8 -0
- package/api/types/MusicExploreSongSourceContext.js +3 -0
- package/api/types/NoCoachingSettings.d.ts +3 -0
- package/api/types/NoCoachingSettings.js +3 -0
- package/api/types/PendingClipTaskType.d.ts +1 -0
- package/api/types/PendingClipTaskType.js +1 -0
- package/api/types/PermissionType.d.ts +1 -0
- package/api/types/PermissionType.js +1 -0
- package/api/types/{PrivacyConfig.d.ts → PrivacyConfigInput.d.ts} +4 -1
- package/api/types/PrivacyConfigInput.js +3 -0
- package/api/types/PrivacyConfigOutput.d.ts +17 -0
- package/api/types/PrivacyConfigOutput.js +3 -0
- package/api/types/ProcedureRefResponseModel.d.ts +8 -0
- package/api/types/ProcedureRefResponseModel.js +3 -0
- package/api/types/ProjectExtendedResponseModelAssetsItem.d.ts +1 -0
- package/api/types/ProjectExternalAudioResponseModel.d.ts +3 -2
- package/api/types/ProjectExternalAudioResponseModelSourceContext.d.ts +13 -0
- package/api/types/ProjectExternalAudioResponseModelSourceContext.js +3 -0
- package/api/types/ProjectImageResponseModel.d.ts +1 -0
- package/api/types/ProjectVideoResponseModel.d.ts +7 -3
- package/api/types/PromptAgentApiModelInputToolsItem.d.ts +5 -1
- package/api/types/PromptAgentApiModelOutputToolsItem.d.ts +5 -1
- package/api/types/PromptAgentApiModelWorkflowOverrideInputToolsItem.d.ts +5 -1
- package/api/types/PromptAgentApiModelWorkflowOverrideOutputToolsItem.d.ts +5 -1
- package/api/types/PromptInjectionGuardrail.d.ts +3 -0
- package/api/types/PromptInjectionGuardrail.js +3 -0
- package/api/types/PronunciationDictionaryAliasRuleRequestModel.d.ts +4 -0
- package/api/types/PronunciationDictionaryAliasRuleResponseModel.d.ts +4 -0
- package/api/types/PronunciationDictionaryPhonemeRuleRequestModel.d.ts +4 -0
- package/api/types/PronunciationDictionaryPhonemeRuleResponseModel.d.ts +4 -0
- package/api/types/RagConfig.d.ts +2 -0
- package/api/types/RagConfigWorkflowOverride.d.ts +2 -0
- package/api/types/RagIndexStatus.d.ts +1 -0
- package/api/types/RagIndexStatus.js +1 -0
- package/api/types/ReferenceVideo.d.ts +7 -0
- package/api/types/ReferenceVideo.js +3 -0
- package/api/types/ResponseFilter.d.ts +12 -0
- package/api/types/ResponseFilter.js +3 -0
- package/api/types/SayNodeLiteralMessageInput.d.ts +5 -0
- package/api/types/SayNodeLiteralMessageInput.js +3 -0
- package/api/types/SayNodeLiteralMessageOutput.d.ts +5 -0
- package/api/types/SayNodeLiteralMessageOutput.js +3 -0
- package/api/types/SayNodePromptMessageInput.d.ts +5 -0
- package/api/types/SayNodePromptMessageInput.js +3 -0
- package/api/types/SayNodePromptMessageOutput.d.ts +5 -0
- package/api/types/SayNodePromptMessageOutput.js +3 -0
- package/api/types/SearchClientsParams.d.ts +6 -0
- package/api/types/SearchClientsParams.js +3 -0
- package/api/types/SeatType.d.ts +5 -0
- package/api/types/SeatType.js +5 -0
- package/api/types/SfxSourceContext.d.ts +8 -0
- package/api/types/SfxSourceContext.js +3 -0
- package/api/types/SongSourceContext.d.ts +10 -0
- package/api/types/SongSourceContext.js +3 -0
- package/api/types/StudioClipReference.d.ts +9 -0
- package/api/types/StudioClipReference.js +3 -0
- package/api/types/StudioClipReferenceClipType.d.ts +7 -0
- package/api/types/StudioClipReferenceClipType.js +10 -0
- package/api/types/TestType.d.ts +1 -0
- package/api/types/TestType.js +1 -0
- package/api/types/ToolType.d.ts +1 -0
- package/api/types/ToolType.js +1 -0
- package/api/types/UnitTestSummaryResponseModel.d.ts +9 -1
- package/api/types/UpdateClientParams.d.ts +6 -0
- package/api/types/UpdateClientParams.js +3 -0
- package/api/types/UpdateProductParams.d.ts +3 -0
- package/api/types/UpdateProductParams.js +3 -0
- package/api/types/UpdateResponseUnitTestRequest.d.ts +2 -0
- package/api/types/UpdateServiceParams.d.ts +6 -0
- package/api/types/UpdateServiceParams.js +3 -0
- package/api/types/UpdateSimulationTestRequest.d.ts +2 -0
- package/api/types/UpdateStaffParams.d.ts +6 -0
- package/api/types/UpdateStaffParams.js +3 -0
- package/api/types/UpdateToolCallUnitTestRequest.d.ts +2 -0
- package/api/types/User.d.ts +2 -0
- package/api/types/Voice.d.ts +2 -0
- package/api/types/VoiceGenerationParameterOptionResponse.d.ts +1 -4
- package/api/types/VoiceGenerationParameterResponse.d.ts +1 -10
- package/api/types/WidgetConfig.d.ts +10 -0
- package/api/types/WidgetConfigInputSyntaxHighlightTheme.d.ts +5 -0
- package/api/types/WidgetConfigInputSyntaxHighlightTheme.js +8 -0
- package/api/types/WidgetConfigOutputSyntaxHighlightTheme.d.ts +5 -0
- package/api/types/WidgetConfigOutputSyntaxHighlightTheme.js +8 -0
- package/api/types/WidgetConfigResponse.d.ts +10 -0
- package/api/types/WidgetConfigResponseModelSyntaxHighlightTheme.d.ts +5 -0
- package/api/types/WidgetConfigResponseModelSyntaxHighlightTheme.js +8 -0
- package/api/types/WidgetTextContents.d.ts +22 -0
- package/api/types/WorkspaceGroupPermission.d.ts +1 -0
- package/api/types/WorkspaceGroupPermission.js +1 -0
- package/api/types/WorkspaceGroupResponseModel.d.ts +1 -0
- package/api/types/WorkspaceResourceType.d.ts +3 -0
- package/api/types/WorkspaceResourceType.js +3 -0
- package/api/types/index.d.ts +73 -8
- package/api/types/index.js +73 -8
- package/dist/BaseClient.js +2 -2
- package/dist/api/resources/audioNative/client/Client.d.ts +15 -0
- package/dist/api/resources/audioNative/client/Client.js +67 -0
- package/dist/api/resources/audioNative/client/requests/BodyUpdateAudioNativeContentFromUrlV1AudioNativeContentPost.d.ts +10 -0
- package/dist/api/resources/audioNative/client/requests/BodyUpdateAudioNativeContentFromUrlV1AudioNativeContentPost.js +3 -0
- package/dist/api/resources/audioNative/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/client/Client.d.ts +3 -0
- package/dist/api/resources/conversationalAi/client/Client.js +29 -24
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +1 -2
- package/dist/api/resources/conversationalAi/resources/agents/types/BodyCreateAgentV1ConvaiAgentsCreatePostCoachingSettings.d.ts +10 -0
- package/dist/api/resources/conversationalAi/resources/agents/types/BodyCreateAgentV1ConvaiAgentsCreatePostCoachingSettings.js +3 -0
- package/dist/api/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchCoachingSettings.d.ts +10 -0
- package/dist/api/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchCoachingSettings.js +3 -0
- package/dist/api/resources/conversationalAi/resources/agents/types/index.d.ts +2 -1
- package/dist/api/resources/conversationalAi/resources/agents/types/index.js +2 -1
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +6 -0
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +10 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/files/client/Client.d.ts +44 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/files/client/Client.js +191 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/files/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/files/client/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/files/client/requests/BodyUploadFileV1ConvaiConversationsConversationIdFilesPost.d.ts +11 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/files/client/requests/BodyUploadFileV1ConvaiConversationsConversationIdFilesPost.js +3 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/files/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/files/client/requests/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/files/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/files/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/index.d.ts +5 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/index.js +6 -1
- package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/client/Client.d.ts +61 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/client/Client.js +297 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/client/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/client/requests/MessagesSearchRequest.d.ts +19 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/client/requests/MessagesSearchRequest.js +3 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/client/requests/MessagesTextSearchRequest.d.ts +63 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/client/requests/MessagesTextSearchRequest.js +3 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/client/requests/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/client/requests/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/index.js +18 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/types/MessagesTextSearchRequestSummaryMode.d.ts +6 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/types/MessagesTextSearchRequestSummaryMode.js +9 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/types/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/conversations/resources/messages/types/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/index.js +2 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +1 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/requests/BodyComputeRagIndexesInBatchV1ConvaiKnowledgeBaseRagIndexPost.d.ts +1 -1
- package/dist/api/resources/conversationalAi/resources/llm/client/Client.d.ts +25 -0
- package/dist/api/resources/conversationalAi/resources/llm/client/Client.js +119 -0
- package/dist/api/resources/conversationalAi/resources/llm/client/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/llm/client/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/llm/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/llm/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +4 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/index.js +1 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideCreateRequestModel.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideUpdateRequestModel.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/index.js +1 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideCreateRequestModelInputOverridesValue.d.ts +13 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideCreateRequestModelInputOverridesValue.js +3 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideUpdateRequestModelInputOverridesValue.d.ts +13 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideUpdateRequestModelInputOverridesValue.js +3 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/index.js +18 -0
- package/dist/api/resources/conversationalAi/resources/tests/client/Client.d.ts +4 -1
- package/dist/api/resources/conversationalAi/resources/tests/client/Client.js +16 -2
- package/dist/api/resources/conversationalAi/resources/tests/client/requests/TestsListRequest.d.ts +11 -1
- package/dist/api/resources/conversationalAi/resources/tests/types/TestsListRequestSortMode.d.ts +6 -0
- package/dist/api/resources/conversationalAi/resources/tests/types/TestsListRequestSortMode.js +9 -0
- package/dist/api/resources/conversationalAi/resources/tests/types/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/tests/types/index.js +1 -0
- package/dist/api/resources/conversationalAi/resources/twilio/client/requests/BodyHandleAnOutboundCallViaTwilioV1ConvaiTwilioOutboundCallPost.d.ts +2 -0
- package/dist/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +2 -0
- package/dist/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +2 -0
- package/dist/api/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +2 -0
- package/dist/api/resources/pronunciationDictionaries/client/Client.d.ts +2 -0
- package/dist/api/resources/pronunciationDictionaries/client/Client.js +2 -0
- package/dist/api/resources/pronunciationDictionaries/client/requests/BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromRulesPost.d.ts +2 -0
- package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +2 -0
- package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +2 -0
- package/dist/api/resources/pronunciationDictionaries/resources/rules/client/requests/PronunciationDictionary.d.ts +2 -0
- package/dist/api/resources/voices/client/requests/BodyAddSharedVoiceV1VoicesAddPublicUserIdVoiceIdPost.d.ts +1 -0
- package/dist/api/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.d.ts +2 -0
- package/dist/api/types/AgentPlatformSettingsRequestModel.d.ts +3 -1
- package/dist/api/types/AgentPlatformSettingsResponseModel.d.ts +3 -1
- package/dist/api/types/AgentSimulatedChatTestResponseModel.d.ts +1 -1
- package/dist/api/types/AgentTestEntityType.d.ts +5 -0
- package/dist/api/types/AgentTestEntityType.js +8 -0
- package/dist/api/types/AgentTestFolderPathSegmentResponseModel.d.ts +4 -0
- package/dist/api/types/AgentTestFolderPathSegmentResponseModel.js +3 -0
- package/dist/api/types/ApiIntegrationWebhookOverridesInput.d.ts +1 -0
- package/dist/api/types/ApiIntegrationWebhookOverridesInputSchemaOverridesValue.d.ts +13 -0
- package/dist/api/types/ApiIntegrationWebhookOverridesInputSchemaOverridesValue.js +3 -0
- package/dist/api/types/ApiIntegrationWebhookOverridesOutput.d.ts +1 -0
- package/dist/api/types/ApiIntegrationWebhookOverridesOutputSchemaOverridesValue.d.ts +13 -0
- package/dist/api/types/ApiIntegrationWebhookOverridesOutputSchemaOverridesValue.js +3 -0
- package/dist/api/types/ChatSourceMedium.d.ts +7 -0
- package/{api/types/ConversationHistoryTranscriptCommonModelInputSourceMedium.js → dist/api/types/ChatSourceMedium.js} +4 -2
- package/dist/api/types/ClientEvent.d.ts +1 -0
- package/dist/api/types/ClientEvent.js +1 -0
- package/dist/api/types/ClipAnimation.d.ts +7 -0
- package/dist/api/types/ClipAnimation.js +3 -0
- package/dist/api/types/ClipAnimationEnterEffect.d.ts +17 -0
- package/dist/api/types/ClipAnimationEnterEffect.js +20 -0
- package/dist/api/types/ClipAnimationExitEffect.d.ts +17 -0
- package/dist/api/types/ClipAnimationExitEffect.js +20 -0
- package/dist/api/types/CoachedAgentSettings.d.ts +3 -0
- package/dist/api/types/CoachedAgentSettings.js +3 -0
- package/dist/api/types/CoachingAgentSettings.d.ts +7 -0
- package/dist/api/types/CoachingAgentSettings.js +3 -0
- package/dist/api/types/ConfigEntityType.d.ts +68 -0
- package/dist/api/types/ConfigEntityType.js +71 -0
- package/dist/api/types/ConstantSchemaOverride.d.ts +5 -0
- package/dist/api/types/ConstantSchemaOverride.js +3 -0
- package/dist/api/types/ConstantSchemaOverrideConstantValue.d.ts +4 -0
- package/dist/api/types/ConstantSchemaOverrideConstantValue.js +3 -0
- package/dist/api/types/ContentConfig.d.ts +1 -1
- package/dist/api/types/ConvAiFileUploadResponseModel.d.ts +3 -0
- package/dist/api/types/ConvAiFileUploadResponseModel.js +3 -0
- package/dist/api/types/ConversationHistoryRedactionConfig.d.ts +7 -0
- package/dist/api/types/ConversationHistoryRedactionConfig.js +3 -0
- package/dist/api/types/ConversationHistoryTranscriptCommonModelInput.d.ts +1 -1
- package/dist/api/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +1 -1
- package/dist/api/types/ConversationHistoryTranscriptFileInputResponseModel.d.ts +6 -0
- package/dist/api/types/ConversationHistoryTranscriptFileInputResponseModel.js +3 -0
- package/dist/api/types/ConversationHistoryTranscriptResponseModel.d.ts +19 -0
- package/dist/api/types/ConversationHistoryTranscriptResponseModel.js +3 -0
- package/dist/api/types/ConversationHistoryTranscriptResponseModelRole.d.ts +5 -0
- package/dist/api/types/ConversationHistoryTranscriptResponseModelRole.js +8 -0
- package/dist/api/types/ConversationHistoryTranscriptResponseModelToolResultsItem.d.ts +2 -0
- package/dist/api/types/ConversationHistoryTranscriptResponseModelToolResultsItem.js +3 -0
- package/dist/api/types/ConversationUserResponseModel.d.ts +3 -2
- package/dist/api/types/CreateClientParams.d.ts +6 -0
- package/dist/api/types/CreateClientParams.js +3 -0
- package/dist/api/types/CreatePreviouslyGeneratedVoiceRequest.d.ts +1 -12
- package/dist/api/types/CreateProductParams.d.ts +3 -0
- package/dist/api/types/CreateProductParams.js +3 -0
- package/dist/api/types/CreateResponseUnitTestRequest.d.ts +2 -0
- package/dist/api/types/CreateServiceParams.d.ts +6 -0
- package/dist/api/types/CreateServiceParams.js +3 -0
- package/dist/api/types/CreateSimulationTestRequest.d.ts +2 -0
- package/dist/api/types/CreateStaffParams.d.ts +6 -0
- package/dist/api/types/CreateStaffParams.js +3 -0
- package/dist/api/types/CreateToolCallUnitTestRequest.d.ts +2 -0
- package/dist/api/types/DeleteClientParams.d.ts +6 -0
- package/dist/api/types/DeleteClientParams.js +3 -0
- package/dist/api/types/DeleteProductParams.d.ts +3 -0
- package/dist/api/types/DeleteProductParams.js +3 -0
- package/dist/api/types/DeleteServiceParams.d.ts +6 -0
- package/dist/api/types/DeleteServiceParams.js +3 -0
- package/dist/api/types/DeleteStaffParams.d.ts +6 -0
- package/dist/api/types/DeleteStaffParams.js +3 -0
- package/dist/api/types/DependentBranchInfo.d.ts +7 -0
- package/dist/api/types/DependentBranchInfo.js +3 -0
- package/dist/api/types/DynamicVariableSchemaOverride.d.ts +4 -0
- package/dist/api/types/DynamicVariableSchemaOverride.js +3 -0
- package/dist/api/types/EmbeddingModelEnum.d.ts +1 -0
- package/dist/api/types/EmbeddingModelEnum.js +1 -0
- package/dist/api/types/FocusGuardrail.d.ts +3 -0
- package/dist/api/types/FocusGuardrail.js +3 -0
- package/dist/api/types/GenerateVoiceRequest.d.ts +1 -13
- package/dist/api/types/GenerationSourceContext.d.ts +14 -0
- package/dist/api/types/GenerationSourceContext.js +3 -0
- package/dist/api/types/GetAgentResponseModel.d.ts +2 -0
- package/dist/api/types/GetAgentResponseModelCoachingSettings.d.ts +13 -0
- package/dist/api/types/GetAgentResponseModelCoachingSettings.js +3 -0
- package/dist/api/types/GetClientByPhoneParams.d.ts +6 -0
- package/dist/api/types/GetClientByPhoneParams.js +3 -0
- package/dist/api/types/GetConversationResponseModel.d.ts +1 -1
- package/dist/api/types/GetKnowledgeBaseDependentAgentsResponseModel.d.ts +1 -0
- package/dist/api/types/GetToolDependentAgentsResponseModel.d.ts +1 -0
- package/dist/api/types/GuardrailsV1Input.d.ts +2 -1
- package/dist/api/types/GuardrailsV1Output.d.ts +2 -1
- package/dist/api/types/LibraryVoiceResponse.d.ts +2 -0
- package/dist/api/types/ListAssetsParams.d.ts +3 -0
- package/dist/api/types/ListAssetsParams.js +3 -0
- package/dist/api/types/ListClientsParams.d.ts +6 -0
- package/dist/api/types/ListClientsParams.js +3 -0
- package/dist/api/types/ListProductsParams.d.ts +3 -0
- package/dist/api/types/ListProductsParams.js +3 -0
- package/dist/api/types/ListServicesParams.d.ts +3 -0
- package/dist/api/types/ListServicesParams.js +3 -0
- package/dist/api/types/ListStaffParams.d.ts +3 -0
- package/dist/api/types/ListStaffParams.js +3 -0
- package/dist/api/types/LlmDeprecationConfigModel.d.ts +12 -0
- package/dist/api/types/LlmDeprecationConfigModel.js +3 -0
- package/dist/api/types/LlmDeprecationInfoModel.d.ts +19 -0
- package/dist/api/types/LlmDeprecationInfoModel.js +3 -0
- package/dist/api/types/LlmInfoModelInput.d.ts +21 -0
- package/dist/api/types/LlmInfoModelInput.js +3 -0
- package/dist/api/types/LlmInfoModelOutput.d.ts +21 -0
- package/dist/api/types/LlmInfoModelOutput.js +3 -0
- package/dist/api/types/LlmListResponseModelInput.d.ts +7 -0
- package/dist/api/types/LlmListResponseModelInput.js +3 -0
- package/dist/api/types/LlmListResponseModelOutput.d.ts +7 -0
- package/dist/api/types/LlmListResponseModelOutput.js +3 -0
- package/dist/api/types/LlmSchemaOverride.d.ts +4 -0
- package/dist/api/types/LlmSchemaOverride.js +3 -0
- package/dist/api/types/McpServerConfigInput.d.ts +2 -0
- package/dist/api/types/McpServerConfigOutput.d.ts +2 -0
- package/dist/api/types/McpToolConfigOverride.d.ts +2 -0
- package/dist/api/types/McpToolConfigOverrideInputOverridesValue.d.ts +13 -0
- package/dist/api/types/McpToolConfigOverrideInputOverridesValue.js +3 -0
- package/dist/api/types/MessagesSearchResponse.d.ts +9 -0
- package/dist/api/types/MessagesSearchResponse.js +3 -0
- package/dist/api/types/MessagesSearchResult.d.ts +14 -0
- package/dist/api/types/MessagesSearchResult.js +3 -0
- package/dist/api/types/MusicExploreSongSourceContext.d.ts +8 -0
- package/dist/api/types/MusicExploreSongSourceContext.js +3 -0
- package/dist/api/types/NoCoachingSettings.d.ts +3 -0
- package/dist/api/types/NoCoachingSettings.js +3 -0
- package/dist/api/types/PendingClipTaskType.d.ts +1 -0
- package/dist/api/types/PendingClipTaskType.js +1 -0
- package/dist/api/types/PermissionType.d.ts +1 -0
- package/dist/api/types/PermissionType.js +1 -0
- package/dist/api/types/{PrivacyConfig.d.ts → PrivacyConfigInput.d.ts} +4 -1
- package/dist/api/types/PrivacyConfigInput.js +3 -0
- package/dist/api/types/PrivacyConfigOutput.d.ts +17 -0
- package/dist/api/types/PrivacyConfigOutput.js +3 -0
- package/dist/api/types/ProcedureRefResponseModel.d.ts +8 -0
- package/dist/api/types/ProcedureRefResponseModel.js +3 -0
- package/dist/api/types/ProjectExtendedResponseModelAssetsItem.d.ts +1 -0
- package/dist/api/types/ProjectExternalAudioResponseModel.d.ts +3 -2
- package/dist/api/types/ProjectExternalAudioResponseModelSourceContext.d.ts +13 -0
- package/dist/api/types/ProjectExternalAudioResponseModelSourceContext.js +3 -0
- package/dist/api/types/ProjectImageResponseModel.d.ts +1 -0
- package/dist/api/types/ProjectVideoResponseModel.d.ts +7 -3
- package/dist/api/types/PromptAgentApiModelInputToolsItem.d.ts +5 -1
- package/dist/api/types/PromptAgentApiModelOutputToolsItem.d.ts +5 -1
- package/dist/api/types/PromptAgentApiModelWorkflowOverrideInputToolsItem.d.ts +5 -1
- package/dist/api/types/PromptAgentApiModelWorkflowOverrideOutputToolsItem.d.ts +5 -1
- package/dist/api/types/PromptInjectionGuardrail.d.ts +3 -0
- package/dist/api/types/PromptInjectionGuardrail.js +3 -0
- package/dist/api/types/PronunciationDictionaryAliasRuleRequestModel.d.ts +4 -0
- package/dist/api/types/PronunciationDictionaryAliasRuleResponseModel.d.ts +4 -0
- package/dist/api/types/PronunciationDictionaryPhonemeRuleRequestModel.d.ts +4 -0
- package/dist/api/types/PronunciationDictionaryPhonemeRuleResponseModel.d.ts +4 -0
- package/dist/api/types/RagConfig.d.ts +2 -0
- package/dist/api/types/RagConfigWorkflowOverride.d.ts +2 -0
- package/dist/api/types/RagIndexStatus.d.ts +1 -0
- package/dist/api/types/RagIndexStatus.js +1 -0
- package/dist/api/types/ReferenceVideo.d.ts +7 -0
- package/dist/api/types/ReferenceVideo.js +3 -0
- package/dist/api/types/ResponseFilter.d.ts +12 -0
- package/dist/api/types/ResponseFilter.js +3 -0
- package/dist/api/types/SayNodeLiteralMessageInput.d.ts +5 -0
- package/dist/api/types/SayNodeLiteralMessageInput.js +3 -0
- package/dist/api/types/SayNodeLiteralMessageOutput.d.ts +5 -0
- package/dist/api/types/SayNodeLiteralMessageOutput.js +3 -0
- package/dist/api/types/SayNodePromptMessageInput.d.ts +5 -0
- package/dist/api/types/SayNodePromptMessageInput.js +3 -0
- package/dist/api/types/SayNodePromptMessageOutput.d.ts +5 -0
- package/dist/api/types/SayNodePromptMessageOutput.js +3 -0
- package/dist/api/types/SearchClientsParams.d.ts +6 -0
- package/dist/api/types/SearchClientsParams.js +3 -0
- package/dist/api/types/SeatType.d.ts +5 -0
- package/dist/api/types/SeatType.js +5 -0
- package/dist/api/types/SfxSourceContext.d.ts +8 -0
- package/dist/api/types/SfxSourceContext.js +3 -0
- package/dist/api/types/SongSourceContext.d.ts +10 -0
- package/dist/api/types/SongSourceContext.js +3 -0
- package/dist/api/types/StudioClipReference.d.ts +9 -0
- package/dist/api/types/StudioClipReference.js +3 -0
- package/dist/api/types/StudioClipReferenceClipType.d.ts +7 -0
- package/dist/api/types/StudioClipReferenceClipType.js +10 -0
- package/dist/api/types/TestType.d.ts +1 -0
- package/dist/api/types/TestType.js +1 -0
- package/dist/api/types/ToolType.d.ts +1 -0
- package/dist/api/types/ToolType.js +1 -0
- package/dist/api/types/UnitTestSummaryResponseModel.d.ts +9 -1
- package/dist/api/types/UpdateClientParams.d.ts +6 -0
- package/dist/api/types/UpdateClientParams.js +3 -0
- package/dist/api/types/UpdateProductParams.d.ts +3 -0
- package/dist/api/types/UpdateProductParams.js +3 -0
- package/dist/api/types/UpdateResponseUnitTestRequest.d.ts +2 -0
- package/dist/api/types/UpdateServiceParams.d.ts +6 -0
- package/dist/api/types/UpdateServiceParams.js +3 -0
- package/dist/api/types/UpdateSimulationTestRequest.d.ts +2 -0
- package/dist/api/types/UpdateStaffParams.d.ts +6 -0
- package/dist/api/types/UpdateStaffParams.js +3 -0
- package/dist/api/types/UpdateToolCallUnitTestRequest.d.ts +2 -0
- package/dist/api/types/User.d.ts +2 -0
- package/dist/api/types/Voice.d.ts +2 -0
- package/dist/api/types/VoiceGenerationParameterOptionResponse.d.ts +1 -4
- package/dist/api/types/VoiceGenerationParameterResponse.d.ts +1 -10
- package/dist/api/types/WidgetConfig.d.ts +10 -0
- package/dist/api/types/WidgetConfigInputSyntaxHighlightTheme.d.ts +5 -0
- package/dist/api/types/WidgetConfigInputSyntaxHighlightTheme.js +8 -0
- package/dist/api/types/WidgetConfigOutputSyntaxHighlightTheme.d.ts +5 -0
- package/dist/api/types/WidgetConfigOutputSyntaxHighlightTheme.js +8 -0
- package/dist/api/types/WidgetConfigResponse.d.ts +10 -0
- package/dist/api/types/WidgetConfigResponseModelSyntaxHighlightTheme.d.ts +5 -0
- package/dist/api/types/WidgetConfigResponseModelSyntaxHighlightTheme.js +8 -0
- package/dist/api/types/WidgetTextContents.d.ts +22 -0
- package/dist/api/types/WorkspaceGroupPermission.d.ts +1 -0
- package/dist/api/types/WorkspaceGroupPermission.js +1 -0
- package/dist/api/types/WorkspaceGroupResponseModel.d.ts +1 -0
- package/dist/api/types/WorkspaceResourceType.d.ts +3 -0
- package/dist/api/types/WorkspaceResourceType.js +3 -0
- package/dist/api/types/index.d.ts +73 -8
- package/dist/api/types/index.js +73 -8
- package/dist/serialization/resources/audioNative/client/index.d.ts +1 -0
- package/dist/serialization/resources/audioNative/client/index.js +17 -0
- package/dist/serialization/resources/audioNative/client/requests/BodyUpdateAudioNativeContentFromUrlV1AudioNativeContentPost.d.ts +9 -0
- package/dist/serialization/resources/audioNative/client/requests/BodyUpdateAudioNativeContentFromUrlV1AudioNativeContentPost.js +41 -0
- package/dist/serialization/resources/audioNative/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/audioNative/client/requests/index.js +5 -0
- package/dist/serialization/resources/audioNative/index.d.ts +1 -0
- package/dist/serialization/resources/audioNative/index.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.js +2 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +2 -2
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +2 -2
- package/dist/serialization/resources/conversationalAi/resources/agents/types/BodyCreateAgentV1ConvaiAgentsCreatePostCoachingSettings.d.ts +15 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/types/{BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.js → BodyCreateAgentV1ConvaiAgentsCreatePostCoachingSettings.js} +12 -4
- package/dist/serialization/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchCoachingSettings.d.ts +15 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchCoachingSettings.js +49 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/types/index.d.ts +2 -1
- package/dist/serialization/resources/conversationalAi/resources/agents/types/index.js +2 -1
- package/dist/serialization/resources/conversationalAi/resources/conversations/resources/index.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/conversations/resources/index.js +3 -1
- package/dist/serialization/resources/conversationalAi/resources/conversations/resources/messages/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/conversations/resources/messages/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/conversations/resources/messages/types/MessagesTextSearchRequestSummaryMode.d.ts +7 -0
- package/dist/serialization/resources/conversationalAi/resources/conversations/resources/messages/types/MessagesTextSearchRequestSummaryMode.js +39 -0
- package/dist/serialization/resources/conversationalAi/resources/conversations/resources/messages/types/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/conversations/resources/messages/types/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +4 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.js +4 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/index.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideCreateRequestModel.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideCreateRequestModel.js +4 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideUpdateRequestModel.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideUpdateRequestModel.js +4 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/index.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideCreateRequestModelInputOverridesValue.d.ts +19 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideCreateRequestModelInputOverridesValue.js +51 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideUpdateRequestModelInputOverridesValue.d.ts +19 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideUpdateRequestModelInputOverridesValue.js +51 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/index.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/index.js +18 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/types/TestsListRequestSortMode.d.ts +7 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/types/TestsListRequestSortMode.js +39 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/types/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/types/index.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/twilio/client/requests/BodyHandleAnOutboundCallViaTwilioV1ConvaiTwilioOutboundCallPost.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/twilio/client/requests/BodyHandleAnOutboundCallViaTwilioV1ConvaiTwilioOutboundCallPost.js +1 -0
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +1 -0
- package/dist/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +1 -0
- package/dist/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +1 -0
- package/dist/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +1 -0
- package/dist/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +1 -0
- package/dist/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +1 -0
- package/dist/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.js +1 -0
- package/dist/serialization/resources/voices/client/requests/BodyAddSharedVoiceV1VoicesAddPublicUserIdVoiceIdPost.d.ts +1 -0
- package/dist/serialization/resources/voices/client/requests/BodyAddSharedVoiceV1VoicesAddPublicUserIdVoiceIdPost.js +1 -0
- package/dist/serialization/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.d.ts +1 -0
- package/dist/serialization/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.js +1 -0
- package/dist/serialization/types/AgentPlatformSettingsRequestModel.d.ts +3 -2
- package/dist/serialization/types/AgentPlatformSettingsRequestModel.js +3 -2
- package/dist/serialization/types/AgentPlatformSettingsResponseModel.d.ts +3 -2
- package/dist/serialization/types/AgentPlatformSettingsResponseModel.js +3 -2
- package/dist/serialization/types/AgentSimulatedChatTestResponseModel.d.ts +2 -2
- package/dist/serialization/types/AgentSimulatedChatTestResponseModel.js +2 -2
- package/dist/serialization/types/AgentTestEntityType.d.ts +7 -0
- package/dist/serialization/types/{ConversationHistoryTranscriptCommonModelInputSourceMedium.js → AgentTestEntityType.js} +2 -2
- package/dist/serialization/types/AgentTestFolderPathSegmentResponseModel.d.ts +10 -0
- package/dist/serialization/types/AgentTestFolderPathSegmentResponseModel.js +42 -0
- package/dist/serialization/types/ApiIntegrationWebhookOverridesInput.d.ts +2 -0
- package/dist/serialization/types/ApiIntegrationWebhookOverridesInput.js +4 -0
- package/dist/serialization/types/ApiIntegrationWebhookOverridesInputSchemaOverridesValue.d.ts +19 -0
- package/dist/serialization/types/ApiIntegrationWebhookOverridesInputSchemaOverridesValue.js +51 -0
- package/dist/serialization/types/ApiIntegrationWebhookOverridesOutput.d.ts +2 -0
- package/dist/serialization/types/ApiIntegrationWebhookOverridesOutput.js +4 -0
- package/dist/serialization/types/ApiIntegrationWebhookOverridesOutputSchemaOverridesValue.d.ts +19 -0
- package/dist/serialization/types/ApiIntegrationWebhookOverridesOutputSchemaOverridesValue.js +51 -0
- package/dist/serialization/types/ChatSourceMedium.d.ts +7 -0
- package/{serialization/types/ConversationHistoryTranscriptCommonModelInputSourceMedium.js → dist/serialization/types/ChatSourceMedium.js} +2 -2
- package/dist/serialization/types/ClientEvent.d.ts +1 -1
- package/dist/serialization/types/ClientEvent.js +1 -0
- package/dist/serialization/types/ClipAnimation.d.ts +14 -0
- package/dist/serialization/types/ClipAnimation.js +46 -0
- package/dist/serialization/types/ClipAnimationEnterEffect.d.ts +7 -0
- package/dist/serialization/types/ClipAnimationEnterEffect.js +54 -0
- package/dist/serialization/types/ClipAnimationExitEffect.d.ts +7 -0
- package/dist/serialization/types/ClipAnimationExitEffect.js +54 -0
- package/dist/serialization/types/CoachedAgentSettings.d.ts +9 -0
- package/dist/serialization/types/CoachedAgentSettings.js +41 -0
- package/dist/serialization/types/CoachingAgentSettings.d.ts +10 -0
- package/dist/serialization/types/CoachingAgentSettings.js +42 -0
- package/dist/serialization/types/ConfigEntityType.d.ts +7 -0
- package/dist/serialization/types/ConfigEntityType.js +95 -0
- package/dist/serialization/types/ConstantSchemaOverride.d.ts +10 -0
- package/dist/serialization/types/ConstantSchemaOverride.js +42 -0
- package/dist/serialization/types/ConstantSchemaOverrideConstantValue.d.ts +7 -0
- package/dist/serialization/types/{BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostAge.js → ConstantSchemaOverrideConstantValue.js} +7 -2
- package/dist/serialization/types/ContentConfig.d.ts +1 -1
- package/dist/serialization/types/ContentConfig.js +1 -1
- package/dist/serialization/types/ConvAiFileUploadResponseModel.d.ts +9 -0
- package/dist/serialization/types/ConvAiFileUploadResponseModel.js +41 -0
- package/dist/serialization/types/ConversationHistoryRedactionConfig.d.ts +11 -0
- package/dist/serialization/types/ConversationHistoryRedactionConfig.js +43 -0
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInput.d.ts +2 -2
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInput.js +2 -2
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +2 -2
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutput.js +2 -2
- package/dist/serialization/types/ConversationHistoryTranscriptFileInputResponseModel.d.ts +12 -0
- package/dist/serialization/types/ConversationHistoryTranscriptFileInputResponseModel.js +44 -0
- package/dist/serialization/types/ConversationHistoryTranscriptResponseModel.d.ts +35 -0
- package/dist/serialization/types/ConversationHistoryTranscriptResponseModel.js +67 -0
- package/dist/serialization/types/ConversationHistoryTranscriptResponseModelRole.d.ts +7 -0
- package/dist/serialization/types/ConversationHistoryTranscriptResponseModelRole.js +39 -0
- package/dist/serialization/types/ConversationHistoryTranscriptResponseModelToolResultsItem.d.ts +10 -0
- package/dist/serialization/types/ConversationHistoryTranscriptResponseModelToolResultsItem.js +48 -0
- package/dist/serialization/types/ConversationUserResponseModel.d.ts +3 -2
- package/dist/serialization/types/ConversationUserResponseModel.js +3 -2
- package/dist/serialization/types/CreateClientParams.d.ts +9 -0
- package/dist/serialization/types/CreateClientParams.js +41 -0
- package/dist/serialization/types/CreatePreviouslyGeneratedVoiceRequest.d.ts +2 -8
- package/dist/serialization/types/CreatePreviouslyGeneratedVoiceRequest.js +1 -7
- package/dist/serialization/types/CreateProductParams.d.ts +9 -0
- package/dist/serialization/types/CreateProductParams.js +41 -0
- package/dist/serialization/types/CreateResponseUnitTestRequest.d.ts +1 -0
- package/dist/serialization/types/CreateResponseUnitTestRequest.js +1 -0
- package/dist/serialization/types/CreateServiceParams.d.ts +9 -0
- package/dist/serialization/types/CreateServiceParams.js +41 -0
- package/dist/serialization/types/CreateSimulationTestRequest.d.ts +1 -0
- package/dist/serialization/types/CreateSimulationTestRequest.js +1 -0
- package/dist/serialization/types/CreateStaffParams.d.ts +9 -0
- package/dist/serialization/types/CreateStaffParams.js +41 -0
- package/dist/serialization/types/CreateToolCallUnitTestRequest.d.ts +1 -0
- package/dist/serialization/types/CreateToolCallUnitTestRequest.js +1 -0
- package/dist/serialization/types/DeleteClientParams.d.ts +9 -0
- package/dist/serialization/types/DeleteClientParams.js +41 -0
- package/dist/serialization/types/DeleteProductParams.d.ts +9 -0
- package/dist/serialization/types/DeleteProductParams.js +41 -0
- package/dist/serialization/types/DeleteServiceParams.d.ts +9 -0
- package/dist/serialization/types/DeleteServiceParams.js +41 -0
- package/dist/serialization/types/DeleteStaffParams.d.ts +9 -0
- package/dist/serialization/types/DeleteStaffParams.js +41 -0
- package/dist/serialization/types/DependentBranchInfo.d.ts +13 -0
- package/dist/serialization/types/DependentBranchInfo.js +45 -0
- package/dist/serialization/types/DynamicVariableSchemaOverride.d.ts +9 -0
- package/dist/serialization/types/DynamicVariableSchemaOverride.js +41 -0
- package/dist/serialization/types/EmbeddingModelEnum.d.ts +1 -1
- package/dist/serialization/types/EmbeddingModelEnum.js +1 -1
- package/{serialization/types/AlignmentGuardrail.d.ts → dist/serialization/types/FocusGuardrail.d.ts} +2 -2
- package/dist/serialization/types/{AlignmentGuardrail.js → FocusGuardrail.js} +2 -2
- package/dist/serialization/types/GenerateVoiceRequest.d.ts +2 -10
- package/dist/serialization/types/GenerateVoiceRequest.js +1 -9
- package/dist/serialization/types/GenerationSourceContext.d.ts +19 -0
- package/dist/serialization/types/GenerationSourceContext.js +51 -0
- package/dist/serialization/types/GetAgentResponseModel.d.ts +2 -0
- package/dist/serialization/types/GetAgentResponseModel.js +2 -0
- package/dist/serialization/types/GetAgentResponseModelCoachingSettings.d.ts +19 -0
- package/dist/serialization/types/GetAgentResponseModelCoachingSettings.js +51 -0
- package/dist/serialization/types/GetClientByPhoneParams.d.ts +9 -0
- package/dist/serialization/types/GetClientByPhoneParams.js +41 -0
- package/dist/serialization/types/GetConversationResponseModel.d.ts +2 -2
- package/dist/serialization/types/GetConversationResponseModel.js +2 -2
- package/dist/serialization/types/GetKnowledgeBaseDependentAgentsResponseModel.d.ts +2 -0
- package/dist/serialization/types/GetKnowledgeBaseDependentAgentsResponseModel.js +2 -0
- package/dist/serialization/types/GetToolDependentAgentsResponseModel.d.ts +2 -0
- package/dist/serialization/types/GetToolDependentAgentsResponseModel.js +2 -0
- package/dist/serialization/types/GuardrailsV1Input.d.ts +4 -2
- package/dist/serialization/types/GuardrailsV1Input.js +4 -2
- package/dist/serialization/types/GuardrailsV1Output.d.ts +4 -2
- package/dist/serialization/types/GuardrailsV1Output.js +4 -2
- package/dist/serialization/types/LibraryVoiceResponse.d.ts +1 -0
- package/dist/serialization/types/LibraryVoiceResponse.js +1 -0
- package/dist/serialization/types/ListAssetsParams.d.ts +9 -0
- package/dist/serialization/types/ListAssetsParams.js +41 -0
- package/dist/serialization/types/ListClientsParams.d.ts +9 -0
- package/dist/serialization/types/ListClientsParams.js +41 -0
- package/dist/serialization/types/ListProductsParams.d.ts +9 -0
- package/dist/serialization/types/ListProductsParams.js +41 -0
- package/dist/serialization/types/ListServicesParams.d.ts +9 -0
- package/dist/serialization/types/ListServicesParams.js +41 -0
- package/dist/serialization/types/ListStaffParams.d.ts +9 -0
- package/dist/serialization/types/ListStaffParams.js +41 -0
- package/dist/serialization/types/LlmDeprecationConfigModel.d.ts +13 -0
- package/dist/serialization/types/LlmDeprecationConfigModel.js +45 -0
- package/dist/serialization/types/LlmDeprecationInfoModel.d.ts +18 -0
- package/dist/serialization/types/LlmDeprecationInfoModel.js +50 -0
- package/dist/serialization/types/LlmInfoModelInput.d.ts +20 -0
- package/dist/serialization/types/LlmInfoModelInput.js +52 -0
- package/dist/serialization/types/LlmInfoModelOutput.d.ts +20 -0
- package/dist/serialization/types/LlmInfoModelOutput.js +52 -0
- package/dist/serialization/types/LlmListResponseModelInput.d.ts +12 -0
- package/dist/serialization/types/LlmListResponseModelInput.js +44 -0
- package/dist/serialization/types/LlmListResponseModelOutput.d.ts +12 -0
- package/dist/serialization/types/LlmListResponseModelOutput.js +44 -0
- package/dist/serialization/types/LlmSchemaOverride.d.ts +9 -0
- package/{serialization/types/ProcedureDraftRef.js → dist/serialization/types/LlmSchemaOverride.js} +3 -3
- package/dist/serialization/types/McpServerConfigInput.d.ts +2 -0
- package/dist/serialization/types/McpServerConfigInput.js +2 -0
- package/dist/serialization/types/McpServerConfigOutput.d.ts +2 -0
- package/dist/serialization/types/McpServerConfigOutput.js +2 -0
- package/dist/serialization/types/McpToolConfigOverride.d.ts +2 -0
- package/dist/serialization/types/McpToolConfigOverride.js +4 -0
- package/dist/serialization/types/McpToolConfigOverrideInputOverridesValue.d.ts +19 -0
- package/dist/serialization/types/McpToolConfigOverrideInputOverridesValue.js +51 -0
- package/dist/serialization/types/MessagesSearchResponse.d.ts +14 -0
- package/dist/serialization/types/MessagesSearchResponse.js +46 -0
- package/dist/serialization/types/MessagesSearchResult.d.ts +15 -0
- package/dist/serialization/types/MessagesSearchResult.js +47 -0
- package/dist/serialization/types/MusicExploreSongSourceContext.d.ts +14 -0
- package/dist/serialization/types/MusicExploreSongSourceContext.js +46 -0
- package/dist/serialization/types/NoCoachingSettings.d.ts +9 -0
- package/dist/serialization/types/NoCoachingSettings.js +41 -0
- package/dist/serialization/types/PendingClipTaskType.d.ts +1 -1
- package/dist/serialization/types/PendingClipTaskType.js +1 -1
- package/dist/serialization/types/PermissionType.d.ts +1 -1
- package/dist/serialization/types/PermissionType.js +1 -0
- package/dist/serialization/types/{PrivacyConfig.d.ts → PrivacyConfigInput.d.ts} +4 -2
- package/dist/serialization/types/{PrivacyConfig.js → PrivacyConfigInput.js} +4 -2
- package/dist/serialization/types/PrivacyConfigOutput.d.ts +16 -0
- package/dist/serialization/types/PrivacyConfigOutput.js +48 -0
- package/dist/serialization/types/ProcedureRefResponseModel.d.ts +11 -0
- package/dist/serialization/types/{ProcedureVersionRef.js → ProcedureRefResponseModel.js} +4 -3
- package/dist/serialization/types/ProjectExternalAudioResponseModel.d.ts +4 -2
- package/dist/serialization/types/ProjectExternalAudioResponseModel.js +4 -2
- package/dist/serialization/types/ProjectExternalAudioResponseModelSourceContext.d.ts +19 -0
- package/dist/serialization/types/ProjectExternalAudioResponseModelSourceContext.js +51 -0
- package/dist/serialization/types/ProjectImageResponseModel.d.ts +2 -0
- package/dist/serialization/types/ProjectImageResponseModel.js +2 -0
- package/dist/serialization/types/ProjectVideoResponseModel.d.ts +9 -3
- package/dist/serialization/types/ProjectVideoResponseModel.js +9 -3
- package/dist/serialization/types/PromptAgentApiModelInputToolsItem.d.ts +5 -1
- package/dist/serialization/types/PromptAgentApiModelInputToolsItem.js +3 -0
- package/dist/serialization/types/PromptAgentApiModelOutputToolsItem.d.ts +5 -1
- package/dist/serialization/types/PromptAgentApiModelOutputToolsItem.js +3 -0
- package/dist/serialization/types/PromptAgentApiModelWorkflowOverrideInputToolsItem.d.ts +5 -1
- package/dist/serialization/types/PromptAgentApiModelWorkflowOverrideInputToolsItem.js +3 -0
- package/dist/serialization/types/PromptAgentApiModelWorkflowOverrideOutputToolsItem.d.ts +5 -1
- package/dist/serialization/types/PromptAgentApiModelWorkflowOverrideOutputToolsItem.js +3 -0
- package/dist/serialization/types/PromptInjectionGuardrail.d.ts +9 -0
- package/dist/serialization/types/PromptInjectionGuardrail.js +41 -0
- package/dist/serialization/types/PronunciationDictionaryAliasRuleRequestModel.d.ts +2 -0
- package/dist/serialization/types/PronunciationDictionaryAliasRuleRequestModel.js +2 -0
- package/dist/serialization/types/PronunciationDictionaryAliasRuleResponseModel.d.ts +2 -0
- package/dist/serialization/types/PronunciationDictionaryAliasRuleResponseModel.js +2 -0
- package/dist/serialization/types/PronunciationDictionaryPhonemeRuleRequestModel.d.ts +2 -0
- package/dist/serialization/types/PronunciationDictionaryPhonemeRuleRequestModel.js +2 -0
- package/dist/serialization/types/PronunciationDictionaryPhonemeRuleResponseModel.d.ts +2 -0
- package/dist/serialization/types/PronunciationDictionaryPhonemeRuleResponseModel.js +2 -0
- package/dist/serialization/types/RagConfig.d.ts +1 -0
- package/dist/serialization/types/RagConfig.js +1 -0
- package/dist/serialization/types/RagConfigWorkflowOverride.d.ts +1 -0
- package/dist/serialization/types/RagConfigWorkflowOverride.js +1 -0
- package/dist/serialization/types/RagIndexStatus.d.ts +1 -1
- package/dist/serialization/types/RagIndexStatus.js +1 -0
- package/dist/serialization/types/ReferenceVideo.d.ts +13 -0
- package/dist/serialization/types/ReferenceVideo.js +45 -0
- package/dist/serialization/types/ResponseFilter.d.ts +12 -0
- package/dist/serialization/types/ResponseFilter.js +44 -0
- package/dist/serialization/types/SayNodeLiteralMessageInput.d.ts +10 -0
- package/dist/serialization/types/SayNodeLiteralMessageInput.js +42 -0
- package/dist/serialization/types/SayNodeLiteralMessageOutput.d.ts +10 -0
- package/dist/serialization/types/SayNodeLiteralMessageOutput.js +42 -0
- package/dist/serialization/types/SayNodePromptMessageInput.d.ts +10 -0
- package/dist/serialization/types/SayNodePromptMessageInput.js +42 -0
- package/dist/serialization/types/SayNodePromptMessageOutput.d.ts +10 -0
- package/dist/serialization/types/SayNodePromptMessageOutput.js +42 -0
- package/dist/serialization/types/SearchClientsParams.d.ts +9 -0
- package/dist/serialization/types/SearchClientsParams.js +41 -0
- package/dist/serialization/types/SfxSourceContext.d.ts +11 -0
- package/dist/serialization/types/SfxSourceContext.js +43 -0
- package/dist/serialization/types/SongSourceContext.d.ts +16 -0
- package/dist/serialization/types/SongSourceContext.js +48 -0
- package/dist/serialization/types/StudioClipReference.d.ts +15 -0
- package/dist/serialization/types/StudioClipReference.js +47 -0
- package/dist/serialization/types/StudioClipReferenceClipType.d.ts +7 -0
- package/dist/serialization/types/StudioClipReferenceClipType.js +39 -0
- package/dist/serialization/types/TestType.d.ts +1 -1
- package/dist/serialization/types/TestType.js +1 -1
- package/dist/serialization/types/ToolType.d.ts +1 -1
- package/dist/serialization/types/ToolType.js +1 -0
- package/dist/serialization/types/UnitTestSummaryResponseModel.d.ts +6 -0
- package/dist/serialization/types/UnitTestSummaryResponseModel.js +6 -0
- package/dist/serialization/types/UpdateClientParams.d.ts +9 -0
- package/dist/serialization/types/UpdateClientParams.js +41 -0
- package/dist/serialization/types/UpdateProductParams.d.ts +9 -0
- package/dist/serialization/types/UpdateProductParams.js +41 -0
- package/dist/serialization/types/UpdateResponseUnitTestRequest.d.ts +1 -0
- package/dist/serialization/types/UpdateResponseUnitTestRequest.js +1 -0
- package/dist/serialization/types/UpdateServiceParams.d.ts +9 -0
- package/dist/serialization/types/UpdateServiceParams.js +41 -0
- package/dist/serialization/types/UpdateSimulationTestRequest.d.ts +1 -0
- package/dist/serialization/types/UpdateSimulationTestRequest.js +1 -0
- package/dist/serialization/types/UpdateStaffParams.d.ts +9 -0
- package/dist/serialization/types/UpdateStaffParams.js +41 -0
- package/dist/serialization/types/UpdateToolCallUnitTestRequest.d.ts +1 -0
- package/dist/serialization/types/UpdateToolCallUnitTestRequest.js +1 -0
- package/dist/serialization/types/User.d.ts +2 -0
- package/dist/serialization/types/User.js +2 -0
- package/dist/serialization/types/Voice.d.ts +1 -0
- package/dist/serialization/types/Voice.js +1 -0
- package/dist/serialization/types/VoiceGenerationParameterOptionResponse.d.ts +2 -5
- package/dist/serialization/types/VoiceGenerationParameterOptionResponse.js +1 -4
- package/dist/serialization/types/VoiceGenerationParameterResponse.d.ts +2 -11
- package/dist/serialization/types/VoiceGenerationParameterResponse.js +1 -10
- package/dist/serialization/types/WidgetConfig.d.ts +6 -0
- package/dist/serialization/types/WidgetConfig.js +6 -0
- package/dist/serialization/types/WidgetConfigInputSyntaxHighlightTheme.d.ts +7 -0
- package/dist/serialization/types/WidgetConfigInputSyntaxHighlightTheme.js +39 -0
- package/dist/serialization/types/WidgetConfigOutputSyntaxHighlightTheme.d.ts +7 -0
- package/dist/serialization/types/WidgetConfigOutputSyntaxHighlightTheme.js +39 -0
- package/dist/serialization/types/WidgetConfigResponse.d.ts +6 -0
- package/dist/serialization/types/WidgetConfigResponse.js +6 -0
- package/dist/serialization/types/WidgetConfigResponseModelSyntaxHighlightTheme.d.ts +7 -0
- package/dist/serialization/types/WidgetConfigResponseModelSyntaxHighlightTheme.js +39 -0
- package/dist/serialization/types/WidgetTextContents.d.ts +11 -0
- package/dist/serialization/types/WidgetTextContents.js +11 -0
- package/dist/serialization/types/WorkspaceGroupPermission.d.ts +1 -1
- package/dist/serialization/types/WorkspaceGroupPermission.js +1 -0
- package/dist/serialization/types/WorkspaceGroupResponseModel.d.ts +1 -0
- package/dist/serialization/types/WorkspaceGroupResponseModel.js +1 -0
- package/dist/serialization/types/WorkspaceResourceType.d.ts +1 -1
- package/dist/serialization/types/WorkspaceResourceType.js +3 -0
- package/dist/serialization/types/index.d.ts +73 -8
- package/dist/serialization/types/index.js +73 -8
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/music.d.ts +1 -0
- package/dist/wrapper/music.js +4 -1
- package/package.json +1 -1
- package/reference.md +424 -2
- package/serialization/resources/audioNative/client/index.d.ts +1 -0
- package/serialization/resources/audioNative/client/index.js +17 -0
- package/serialization/resources/audioNative/client/requests/BodyUpdateAudioNativeContentFromUrlV1AudioNativeContentPost.d.ts +9 -0
- package/serialization/resources/audioNative/client/requests/BodyUpdateAudioNativeContentFromUrlV1AudioNativeContentPost.js +41 -0
- package/serialization/resources/audioNative/client/requests/index.d.ts +1 -0
- package/serialization/resources/audioNative/client/requests/index.js +5 -0
- package/serialization/resources/audioNative/index.d.ts +1 -0
- package/serialization/resources/audioNative/index.js +1 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.js +2 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +2 -2
- package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +2 -2
- package/serialization/resources/conversationalAi/resources/agents/types/BodyCreateAgentV1ConvaiAgentsCreatePostCoachingSettings.d.ts +15 -0
- package/serialization/resources/conversationalAi/resources/agents/types/{BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.js → BodyCreateAgentV1ConvaiAgentsCreatePostCoachingSettings.js} +12 -4
- package/serialization/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchCoachingSettings.d.ts +15 -0
- package/serialization/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchCoachingSettings.js +49 -0
- package/serialization/resources/conversationalAi/resources/agents/types/index.d.ts +2 -1
- package/serialization/resources/conversationalAi/resources/agents/types/index.js +2 -1
- package/serialization/resources/conversationalAi/resources/conversations/resources/index.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/conversations/resources/index.js +3 -1
- package/serialization/resources/conversationalAi/resources/conversations/resources/messages/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/conversations/resources/messages/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/conversations/resources/messages/types/MessagesTextSearchRequestSummaryMode.d.ts +7 -0
- package/serialization/resources/conversationalAi/resources/conversations/resources/messages/types/MessagesTextSearchRequestSummaryMode.js +39 -0
- package/serialization/resources/conversationalAi/resources/conversations/resources/messages/types/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/conversations/resources/messages/types/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.d.ts +4 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/client/requests/McpServerConfigUpdateRequestModel.js +4 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/index.js +1 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideCreateRequestModel.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideCreateRequestModel.js +4 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideUpdateRequestModel.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/requests/McpToolConfigOverrideUpdateRequestModel.js +4 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/index.js +1 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideCreateRequestModelInputOverridesValue.d.ts +19 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideCreateRequestModelInputOverridesValue.js +51 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideUpdateRequestModelInputOverridesValue.d.ts +19 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideUpdateRequestModelInputOverridesValue.js +51 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/index.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/index.js +18 -0
- package/serialization/resources/conversationalAi/resources/tests/types/TestsListRequestSortMode.d.ts +7 -0
- package/serialization/resources/conversationalAi/resources/tests/types/TestsListRequestSortMode.js +39 -0
- package/serialization/resources/conversationalAi/resources/tests/types/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/tests/types/index.js +1 -0
- package/serialization/resources/conversationalAi/resources/twilio/client/requests/BodyHandleAnOutboundCallViaTwilioV1ConvaiTwilioOutboundCallPost.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/twilio/client/requests/BodyHandleAnOutboundCallViaTwilioV1ConvaiTwilioOutboundCallPost.js +1 -0
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +1 -0
- package/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +1 -0
- package/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +1 -0
- package/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +1 -0
- package/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +1 -0
- package/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.d.ts +1 -0
- package/serialization/resources/music/client/requests/BodyStreamComposedMusicV1MusicStreamPost.js +1 -0
- package/serialization/resources/voices/client/requests/BodyAddSharedVoiceV1VoicesAddPublicUserIdVoiceIdPost.d.ts +1 -0
- package/serialization/resources/voices/client/requests/BodyAddSharedVoiceV1VoicesAddPublicUserIdVoiceIdPost.js +1 -0
- package/serialization/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.d.ts +1 -0
- package/serialization/resources/webhooks/client/requests/BodyUpdateWorkspaceWebhookV1WorkspaceWebhooksWebhookIdPatch.js +1 -0
- package/serialization/types/AgentPlatformSettingsRequestModel.d.ts +3 -2
- package/serialization/types/AgentPlatformSettingsRequestModel.js +3 -2
- package/serialization/types/AgentPlatformSettingsResponseModel.d.ts +3 -2
- package/serialization/types/AgentPlatformSettingsResponseModel.js +3 -2
- package/serialization/types/AgentSimulatedChatTestResponseModel.d.ts +2 -2
- package/serialization/types/AgentSimulatedChatTestResponseModel.js +2 -2
- package/serialization/types/AgentTestEntityType.d.ts +7 -0
- package/serialization/types/AgentTestEntityType.js +39 -0
- package/serialization/types/AgentTestFolderPathSegmentResponseModel.d.ts +10 -0
- package/serialization/types/AgentTestFolderPathSegmentResponseModel.js +42 -0
- package/serialization/types/ApiIntegrationWebhookOverridesInput.d.ts +2 -0
- package/serialization/types/ApiIntegrationWebhookOverridesInput.js +4 -0
- package/serialization/types/ApiIntegrationWebhookOverridesInputSchemaOverridesValue.d.ts +19 -0
- package/serialization/types/ApiIntegrationWebhookOverridesInputSchemaOverridesValue.js +51 -0
- package/serialization/types/ApiIntegrationWebhookOverridesOutput.d.ts +2 -0
- package/serialization/types/ApiIntegrationWebhookOverridesOutput.js +4 -0
- package/serialization/types/ApiIntegrationWebhookOverridesOutputSchemaOverridesValue.d.ts +19 -0
- package/serialization/types/ApiIntegrationWebhookOverridesOutputSchemaOverridesValue.js +51 -0
- package/serialization/types/ChatSourceMedium.d.ts +7 -0
- package/serialization/types/ChatSourceMedium.js +39 -0
- package/serialization/types/ClientEvent.d.ts +1 -1
- package/serialization/types/ClientEvent.js +1 -0
- package/serialization/types/ClipAnimation.d.ts +14 -0
- package/serialization/types/ClipAnimation.js +46 -0
- package/serialization/types/ClipAnimationEnterEffect.d.ts +7 -0
- package/serialization/types/ClipAnimationEnterEffect.js +54 -0
- package/serialization/types/ClipAnimationExitEffect.d.ts +7 -0
- package/serialization/types/ClipAnimationExitEffect.js +54 -0
- package/serialization/types/CoachedAgentSettings.d.ts +9 -0
- package/serialization/types/CoachedAgentSettings.js +41 -0
- package/serialization/types/CoachingAgentSettings.d.ts +10 -0
- package/serialization/types/CoachingAgentSettings.js +42 -0
- package/serialization/types/ConfigEntityType.d.ts +7 -0
- package/serialization/types/ConfigEntityType.js +95 -0
- package/serialization/types/ConstantSchemaOverride.d.ts +10 -0
- package/serialization/types/ConstantSchemaOverride.js +42 -0
- package/serialization/types/ConstantSchemaOverrideConstantValue.d.ts +7 -0
- package/{dist/serialization/types/BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostGender.js → serialization/types/ConstantSchemaOverrideConstantValue.js} +7 -2
- package/serialization/types/ContentConfig.d.ts +1 -1
- package/serialization/types/ContentConfig.js +1 -1
- package/serialization/types/ConvAiFileUploadResponseModel.d.ts +9 -0
- package/serialization/types/ConvAiFileUploadResponseModel.js +41 -0
- package/serialization/types/ConversationHistoryRedactionConfig.d.ts +11 -0
- package/serialization/types/ConversationHistoryRedactionConfig.js +43 -0
- package/serialization/types/ConversationHistoryTranscriptCommonModelInput.d.ts +2 -2
- package/serialization/types/ConversationHistoryTranscriptCommonModelInput.js +2 -2
- package/serialization/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +2 -2
- package/serialization/types/ConversationHistoryTranscriptCommonModelOutput.js +2 -2
- package/serialization/types/ConversationHistoryTranscriptFileInputResponseModel.d.ts +12 -0
- package/serialization/types/ConversationHistoryTranscriptFileInputResponseModel.js +44 -0
- package/serialization/types/ConversationHistoryTranscriptResponseModel.d.ts +35 -0
- package/serialization/types/ConversationHistoryTranscriptResponseModel.js +67 -0
- package/serialization/types/ConversationHistoryTranscriptResponseModelRole.d.ts +7 -0
- package/serialization/types/ConversationHistoryTranscriptResponseModelRole.js +39 -0
- package/serialization/types/ConversationHistoryTranscriptResponseModelToolResultsItem.d.ts +10 -0
- package/serialization/types/ConversationHistoryTranscriptResponseModelToolResultsItem.js +48 -0
- package/serialization/types/ConversationUserResponseModel.d.ts +3 -2
- package/serialization/types/ConversationUserResponseModel.js +3 -2
- package/serialization/types/CreateClientParams.d.ts +9 -0
- package/serialization/types/CreateClientParams.js +41 -0
- package/serialization/types/CreatePreviouslyGeneratedVoiceRequest.d.ts +2 -8
- package/serialization/types/CreatePreviouslyGeneratedVoiceRequest.js +1 -7
- package/serialization/types/CreateProductParams.d.ts +9 -0
- package/serialization/types/CreateProductParams.js +41 -0
- package/serialization/types/CreateResponseUnitTestRequest.d.ts +1 -0
- package/serialization/types/CreateResponseUnitTestRequest.js +1 -0
- package/serialization/types/CreateServiceParams.d.ts +9 -0
- package/serialization/types/CreateServiceParams.js +41 -0
- package/serialization/types/CreateSimulationTestRequest.d.ts +1 -0
- package/serialization/types/CreateSimulationTestRequest.js +1 -0
- package/serialization/types/CreateStaffParams.d.ts +9 -0
- package/serialization/types/CreateStaffParams.js +41 -0
- package/serialization/types/CreateToolCallUnitTestRequest.d.ts +1 -0
- package/serialization/types/CreateToolCallUnitTestRequest.js +1 -0
- package/serialization/types/DeleteClientParams.d.ts +9 -0
- package/serialization/types/DeleteClientParams.js +41 -0
- package/serialization/types/DeleteProductParams.d.ts +9 -0
- package/serialization/types/DeleteProductParams.js +41 -0
- package/serialization/types/DeleteServiceParams.d.ts +9 -0
- package/serialization/types/DeleteServiceParams.js +41 -0
- package/serialization/types/DeleteStaffParams.d.ts +9 -0
- package/serialization/types/DeleteStaffParams.js +41 -0
- package/serialization/types/DependentBranchInfo.d.ts +13 -0
- package/serialization/types/DependentBranchInfo.js +45 -0
- package/serialization/types/DynamicVariableSchemaOverride.d.ts +9 -0
- package/serialization/types/DynamicVariableSchemaOverride.js +41 -0
- package/serialization/types/EmbeddingModelEnum.d.ts +1 -1
- package/serialization/types/EmbeddingModelEnum.js +1 -1
- package/{dist/serialization/types/AlignmentGuardrail.d.ts → serialization/types/FocusGuardrail.d.ts} +2 -2
- package/serialization/types/{AlignmentGuardrail.js → FocusGuardrail.js} +2 -2
- package/serialization/types/GenerateVoiceRequest.d.ts +2 -10
- package/serialization/types/GenerateVoiceRequest.js +1 -9
- package/serialization/types/GenerationSourceContext.d.ts +19 -0
- package/serialization/types/GenerationSourceContext.js +51 -0
- package/serialization/types/GetAgentResponseModel.d.ts +2 -0
- package/serialization/types/GetAgentResponseModel.js +2 -0
- package/serialization/types/GetAgentResponseModelCoachingSettings.d.ts +19 -0
- package/serialization/types/GetAgentResponseModelCoachingSettings.js +51 -0
- package/serialization/types/GetClientByPhoneParams.d.ts +9 -0
- package/serialization/types/GetClientByPhoneParams.js +41 -0
- package/serialization/types/GetConversationResponseModel.d.ts +2 -2
- package/serialization/types/GetConversationResponseModel.js +2 -2
- package/serialization/types/GetKnowledgeBaseDependentAgentsResponseModel.d.ts +2 -0
- package/serialization/types/GetKnowledgeBaseDependentAgentsResponseModel.js +2 -0
- package/serialization/types/GetToolDependentAgentsResponseModel.d.ts +2 -0
- package/serialization/types/GetToolDependentAgentsResponseModel.js +2 -0
- package/serialization/types/GuardrailsV1Input.d.ts +4 -2
- package/serialization/types/GuardrailsV1Input.js +4 -2
- package/serialization/types/GuardrailsV1Output.d.ts +4 -2
- package/serialization/types/GuardrailsV1Output.js +4 -2
- package/serialization/types/LibraryVoiceResponse.d.ts +1 -0
- package/serialization/types/LibraryVoiceResponse.js +1 -0
- package/serialization/types/ListAssetsParams.d.ts +9 -0
- package/serialization/types/ListAssetsParams.js +41 -0
- package/serialization/types/ListClientsParams.d.ts +9 -0
- package/serialization/types/ListClientsParams.js +41 -0
- package/serialization/types/ListProductsParams.d.ts +9 -0
- package/serialization/types/ListProductsParams.js +41 -0
- package/serialization/types/ListServicesParams.d.ts +9 -0
- package/serialization/types/ListServicesParams.js +41 -0
- package/serialization/types/ListStaffParams.d.ts +9 -0
- package/serialization/types/ListStaffParams.js +41 -0
- package/serialization/types/LlmDeprecationConfigModel.d.ts +13 -0
- package/serialization/types/LlmDeprecationConfigModel.js +45 -0
- package/serialization/types/LlmDeprecationInfoModel.d.ts +18 -0
- package/serialization/types/LlmDeprecationInfoModel.js +50 -0
- package/serialization/types/LlmInfoModelInput.d.ts +20 -0
- package/serialization/types/LlmInfoModelInput.js +52 -0
- package/serialization/types/LlmInfoModelOutput.d.ts +20 -0
- package/serialization/types/LlmInfoModelOutput.js +52 -0
- package/serialization/types/LlmListResponseModelInput.d.ts +12 -0
- package/serialization/types/LlmListResponseModelInput.js +44 -0
- package/serialization/types/LlmListResponseModelOutput.d.ts +12 -0
- package/serialization/types/LlmListResponseModelOutput.js +44 -0
- package/serialization/types/LlmSchemaOverride.d.ts +9 -0
- package/{dist/serialization/types/ProcedureDraftRef.js → serialization/types/LlmSchemaOverride.js} +3 -3
- package/serialization/types/McpServerConfigInput.d.ts +2 -0
- package/serialization/types/McpServerConfigInput.js +2 -0
- package/serialization/types/McpServerConfigOutput.d.ts +2 -0
- package/serialization/types/McpServerConfigOutput.js +2 -0
- package/serialization/types/McpToolConfigOverride.d.ts +2 -0
- package/serialization/types/McpToolConfigOverride.js +4 -0
- package/serialization/types/McpToolConfigOverrideInputOverridesValue.d.ts +19 -0
- package/serialization/types/McpToolConfigOverrideInputOverridesValue.js +51 -0
- package/serialization/types/MessagesSearchResponse.d.ts +14 -0
- package/serialization/types/MessagesSearchResponse.js +46 -0
- package/serialization/types/MessagesSearchResult.d.ts +15 -0
- package/serialization/types/MessagesSearchResult.js +47 -0
- package/serialization/types/MusicExploreSongSourceContext.d.ts +14 -0
- package/serialization/types/MusicExploreSongSourceContext.js +46 -0
- package/serialization/types/NoCoachingSettings.d.ts +9 -0
- package/serialization/types/NoCoachingSettings.js +41 -0
- package/serialization/types/PendingClipTaskType.d.ts +1 -1
- package/serialization/types/PendingClipTaskType.js +1 -1
- package/serialization/types/PermissionType.d.ts +1 -1
- package/serialization/types/PermissionType.js +1 -0
- package/serialization/types/{PrivacyConfig.d.ts → PrivacyConfigInput.d.ts} +4 -2
- package/serialization/types/{PrivacyConfig.js → PrivacyConfigInput.js} +4 -2
- package/serialization/types/PrivacyConfigOutput.d.ts +16 -0
- package/serialization/types/PrivacyConfigOutput.js +48 -0
- package/serialization/types/ProcedureRefResponseModel.d.ts +11 -0
- package/serialization/types/{ProcedureVersionRef.js → ProcedureRefResponseModel.js} +4 -3
- package/serialization/types/ProjectExternalAudioResponseModel.d.ts +4 -2
- package/serialization/types/ProjectExternalAudioResponseModel.js +4 -2
- package/serialization/types/ProjectExternalAudioResponseModelSourceContext.d.ts +19 -0
- package/serialization/types/ProjectExternalAudioResponseModelSourceContext.js +51 -0
- package/serialization/types/ProjectImageResponseModel.d.ts +2 -0
- package/serialization/types/ProjectImageResponseModel.js +2 -0
- package/serialization/types/ProjectVideoResponseModel.d.ts +9 -3
- package/serialization/types/ProjectVideoResponseModel.js +9 -3
- package/serialization/types/PromptAgentApiModelInputToolsItem.d.ts +5 -1
- package/serialization/types/PromptAgentApiModelInputToolsItem.js +3 -0
- package/serialization/types/PromptAgentApiModelOutputToolsItem.d.ts +5 -1
- package/serialization/types/PromptAgentApiModelOutputToolsItem.js +3 -0
- package/serialization/types/PromptAgentApiModelWorkflowOverrideInputToolsItem.d.ts +5 -1
- package/serialization/types/PromptAgentApiModelWorkflowOverrideInputToolsItem.js +3 -0
- package/serialization/types/PromptAgentApiModelWorkflowOverrideOutputToolsItem.d.ts +5 -1
- package/serialization/types/PromptAgentApiModelWorkflowOverrideOutputToolsItem.js +3 -0
- package/serialization/types/PromptInjectionGuardrail.d.ts +9 -0
- package/serialization/types/PromptInjectionGuardrail.js +41 -0
- package/serialization/types/PronunciationDictionaryAliasRuleRequestModel.d.ts +2 -0
- package/serialization/types/PronunciationDictionaryAliasRuleRequestModel.js +2 -0
- package/serialization/types/PronunciationDictionaryAliasRuleResponseModel.d.ts +2 -0
- package/serialization/types/PronunciationDictionaryAliasRuleResponseModel.js +2 -0
- package/serialization/types/PronunciationDictionaryPhonemeRuleRequestModel.d.ts +2 -0
- package/serialization/types/PronunciationDictionaryPhonemeRuleRequestModel.js +2 -0
- package/serialization/types/PronunciationDictionaryPhonemeRuleResponseModel.d.ts +2 -0
- package/serialization/types/PronunciationDictionaryPhonemeRuleResponseModel.js +2 -0
- package/serialization/types/RagConfig.d.ts +1 -0
- package/serialization/types/RagConfig.js +1 -0
- package/serialization/types/RagConfigWorkflowOverride.d.ts +1 -0
- package/serialization/types/RagConfigWorkflowOverride.js +1 -0
- package/serialization/types/RagIndexStatus.d.ts +1 -1
- package/serialization/types/RagIndexStatus.js +1 -0
- package/serialization/types/ReferenceVideo.d.ts +13 -0
- package/serialization/types/ReferenceVideo.js +45 -0
- package/serialization/types/ResponseFilter.d.ts +12 -0
- package/serialization/types/ResponseFilter.js +44 -0
- package/serialization/types/SayNodeLiteralMessageInput.d.ts +10 -0
- package/serialization/types/SayNodeLiteralMessageInput.js +42 -0
- package/serialization/types/SayNodeLiteralMessageOutput.d.ts +10 -0
- package/serialization/types/SayNodeLiteralMessageOutput.js +42 -0
- package/serialization/types/SayNodePromptMessageInput.d.ts +10 -0
- package/serialization/types/SayNodePromptMessageInput.js +42 -0
- package/serialization/types/SayNodePromptMessageOutput.d.ts +10 -0
- package/serialization/types/SayNodePromptMessageOutput.js +42 -0
- package/serialization/types/SearchClientsParams.d.ts +9 -0
- package/serialization/types/SearchClientsParams.js +41 -0
- package/serialization/types/SfxSourceContext.d.ts +11 -0
- package/serialization/types/SfxSourceContext.js +43 -0
- package/serialization/types/SongSourceContext.d.ts +16 -0
- package/serialization/types/SongSourceContext.js +48 -0
- package/serialization/types/StudioClipReference.d.ts +15 -0
- package/serialization/types/StudioClipReference.js +47 -0
- package/serialization/types/StudioClipReferenceClipType.d.ts +7 -0
- package/serialization/types/StudioClipReferenceClipType.js +39 -0
- package/serialization/types/TestType.d.ts +1 -1
- package/serialization/types/TestType.js +1 -1
- package/serialization/types/ToolType.d.ts +1 -1
- package/serialization/types/ToolType.js +1 -0
- package/serialization/types/UnitTestSummaryResponseModel.d.ts +6 -0
- package/serialization/types/UnitTestSummaryResponseModel.js +6 -0
- package/serialization/types/UpdateClientParams.d.ts +9 -0
- package/serialization/types/UpdateClientParams.js +41 -0
- package/serialization/types/UpdateProductParams.d.ts +9 -0
- package/serialization/types/UpdateProductParams.js +41 -0
- package/serialization/types/UpdateResponseUnitTestRequest.d.ts +1 -0
- package/serialization/types/UpdateResponseUnitTestRequest.js +1 -0
- package/serialization/types/UpdateServiceParams.d.ts +9 -0
- package/serialization/types/UpdateServiceParams.js +41 -0
- package/serialization/types/UpdateSimulationTestRequest.d.ts +1 -0
- package/serialization/types/UpdateSimulationTestRequest.js +1 -0
- package/serialization/types/UpdateStaffParams.d.ts +9 -0
- package/serialization/types/UpdateStaffParams.js +41 -0
- package/serialization/types/UpdateToolCallUnitTestRequest.d.ts +1 -0
- package/serialization/types/UpdateToolCallUnitTestRequest.js +1 -0
- package/serialization/types/User.d.ts +2 -0
- package/serialization/types/User.js +2 -0
- package/serialization/types/Voice.d.ts +1 -0
- package/serialization/types/Voice.js +1 -0
- package/serialization/types/VoiceGenerationParameterOptionResponse.d.ts +2 -5
- package/serialization/types/VoiceGenerationParameterOptionResponse.js +1 -4
- package/serialization/types/VoiceGenerationParameterResponse.d.ts +2 -11
- package/serialization/types/VoiceGenerationParameterResponse.js +1 -10
- package/serialization/types/WidgetConfig.d.ts +6 -0
- package/serialization/types/WidgetConfig.js +6 -0
- package/serialization/types/WidgetConfigInputSyntaxHighlightTheme.d.ts +7 -0
- package/serialization/types/WidgetConfigInputSyntaxHighlightTheme.js +39 -0
- package/serialization/types/WidgetConfigOutputSyntaxHighlightTheme.d.ts +7 -0
- package/serialization/types/WidgetConfigOutputSyntaxHighlightTheme.js +39 -0
- package/serialization/types/WidgetConfigResponse.d.ts +6 -0
- package/serialization/types/WidgetConfigResponse.js +6 -0
- package/serialization/types/WidgetConfigResponseModelSyntaxHighlightTheme.d.ts +7 -0
- package/serialization/types/WidgetConfigResponseModelSyntaxHighlightTheme.js +39 -0
- package/serialization/types/WidgetTextContents.d.ts +11 -0
- package/serialization/types/WidgetTextContents.js +11 -0
- package/serialization/types/WorkspaceGroupPermission.d.ts +1 -1
- package/serialization/types/WorkspaceGroupPermission.js +1 -0
- package/serialization/types/WorkspaceGroupResponseModel.d.ts +1 -0
- package/serialization/types/WorkspaceGroupResponseModel.js +1 -0
- package/serialization/types/WorkspaceResourceType.d.ts +1 -1
- package/serialization/types/WorkspaceResourceType.js +3 -0
- package/serialization/types/index.d.ts +73 -8
- package/serialization/types/index.js +73 -8
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/music.d.ts +1 -0
- package/wrapper/music.js +4 -1
- package/api/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.d.ts +0 -2
- package/api/types/AlignmentGuardrail.d.ts +0 -3
- package/api/types/BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostAge.d.ts +0 -7
- package/api/types/BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostAge.js +0 -10
- package/api/types/BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostGender.d.ts +0 -6
- package/api/types/BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostGender.js +0 -9
- package/api/types/ConversationHistoryTranscriptCommonModelInputSourceMedium.d.ts +0 -5
- package/api/types/ConversationHistoryTranscriptCommonModelOutputSourceMedium.d.ts +0 -5
- package/api/types/ConversationHistoryTranscriptCommonModelOutputSourceMedium.js +0 -8
- package/api/types/ProcedureDraftRef.d.ts +0 -4
- package/api/types/ProcedureVersionRef.d.ts +0 -6
- package/dist/api/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.d.ts +0 -2
- package/dist/api/types/AlignmentGuardrail.d.ts +0 -3
- package/dist/api/types/BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostAge.d.ts +0 -7
- package/dist/api/types/BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostAge.js +0 -10
- package/dist/api/types/BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostGender.d.ts +0 -6
- package/dist/api/types/BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostGender.js +0 -9
- package/dist/api/types/ConversationHistoryTranscriptCommonModelInputSourceMedium.d.ts +0 -5
- package/dist/api/types/ConversationHistoryTranscriptCommonModelOutputSourceMedium.d.ts +0 -5
- package/dist/api/types/ConversationHistoryTranscriptCommonModelOutputSourceMedium.js +0 -8
- package/dist/api/types/ProcedureDraftRef.d.ts +0 -4
- package/dist/api/types/ProcedureVersionRef.d.ts +0 -6
- package/dist/serialization/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.d.ts +0 -9
- package/dist/serialization/types/BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostAge.d.ts +0 -7
- package/dist/serialization/types/BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostGender.d.ts +0 -7
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInputSourceMedium.d.ts +0 -7
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutputSourceMedium.d.ts +0 -7
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutputSourceMedium.js +0 -39
- package/dist/serialization/types/ProcedureDraftRef.d.ts +0 -9
- package/dist/serialization/types/ProcedureVersionRef.d.ts +0 -10
- package/serialization/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.d.ts +0 -9
- package/serialization/types/BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostAge.d.ts +0 -7
- package/serialization/types/BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostAge.js +0 -39
- package/serialization/types/BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostGender.d.ts +0 -7
- package/serialization/types/BodyGenerateARandomVoiceV1VoiceGenerationGenerateVoicePostGender.js +0 -39
- package/serialization/types/ConversationHistoryTranscriptCommonModelInputSourceMedium.d.ts +0 -7
- package/serialization/types/ConversationHistoryTranscriptCommonModelOutputSourceMedium.d.ts +0 -7
- package/serialization/types/ConversationHistoryTranscriptCommonModelOutputSourceMedium.js +0 -39
- package/serialization/types/ProcedureDraftRef.d.ts +0 -9
- package/serialization/types/ProcedureVersionRef.d.ts +0 -10
- /package/api/resources/{conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.js → audioNative/client/requests/BodyUpdateAudioNativeContentFromUrlV1AudioNativeContentPost.js} +0 -0
- /package/api/{types/AlignmentGuardrail.js → resources/conversationalAi/resources/agents/types/BodyCreateAgentV1ConvaiAgentsCreatePostCoachingSettings.js} +0 -0
- /package/api/{types/PrivacyConfig.js → resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchCoachingSettings.js} +0 -0
- /package/api/{types/ProcedureDraftRef.js → resources/conversationalAi/resources/conversations/resources/files/client/requests/BodyUploadFileV1ConvaiConversationsConversationIdFilesPost.js} +0 -0
- /package/api/{types/ProcedureVersionRef.js → resources/conversationalAi/resources/conversations/resources/messages/client/requests/MessagesSearchRequest.js} +0 -0
- /package/{dist/api/resources/conversationalAi/resources/agents/types/BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem.js → api/resources/conversationalAi/resources/conversations/resources/messages/client/requests/MessagesTextSearchRequest.js} +0 -0
- /package/{dist/api/types/AlignmentGuardrail.js → api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideCreateRequestModelInputOverridesValue.js} +0 -0
- /package/{dist/api/types/PrivacyConfig.js → api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/types/McpToolConfigOverrideUpdateRequestModelInputOverridesValue.js} +0 -0
- /package/{dist/api/types/ProcedureDraftRef.js → api/types/AgentTestFolderPathSegmentResponseModel.js} +0 -0
- /package/{dist/api/types/ProcedureVersionRef.js → api/types/ApiIntegrationWebhookOverridesInputSchemaOverridesValue.js} +0 -0
package/BaseClient.js
CHANGED
|
@@ -41,8 +41,8 @@ function normalizeClientOptions(options) {
|
|
|
41
41
|
const headers = (0, headers_1.mergeHeaders)({
|
|
42
42
|
"X-Fern-Language": "JavaScript",
|
|
43
43
|
"X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
|
|
44
|
-
"X-Fern-SDK-Version": "v2.
|
|
45
|
-
"User-Agent": "@elevenlabs/elevenlabs-js/v2.
|
|
44
|
+
"X-Fern-SDK-Version": "v2.37.0",
|
|
45
|
+
"User-Agent": "@elevenlabs/elevenlabs-js/v2.37.0",
|
|
46
46
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
47
47
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
48
48
|
"xi-api-key": options === null || options === void 0 ? void 0 : options.apiKey,
|
|
@@ -54,4 +54,19 @@ export declare class AudioNativeClient {
|
|
|
54
54
|
*/
|
|
55
55
|
update(project_id: string, request: ElevenLabs.BodyUpdateAudioNativeProjectContentV1AudioNativeProjectIdContentPost, requestOptions?: AudioNativeClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.AudioNativeEditContentResponseModel>;
|
|
56
56
|
private __update;
|
|
57
|
+
/**
|
|
58
|
+
* Finds an AudioNative project matching the provided URL, extracts content from the URL, updates the project content, and queues it for conversion and auto-publishing.
|
|
59
|
+
*
|
|
60
|
+
* @param {ElevenLabs.BodyUpdateAudioNativeContentFromUrlV1AudioNativeContentPost} request
|
|
61
|
+
* @param {AudioNativeClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* await client.audioNative.updateContentFromUrl({
|
|
67
|
+
* url: "https://elevenlabs.io/blog/the_first_ai_that_can_laugh/"
|
|
68
|
+
* })
|
|
69
|
+
*/
|
|
70
|
+
updateContentFromUrl(request: ElevenLabs.BodyUpdateAudioNativeContentFromUrlV1AudioNativeContentPost, requestOptions?: AudioNativeClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.AudioNativeEditContentResponseModel>;
|
|
71
|
+
private __updateContentFromUrl;
|
|
57
72
|
}
|
|
@@ -304,5 +304,72 @@ class AudioNativeClient {
|
|
|
304
304
|
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/audio-native/{project_id}/content");
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
|
+
/**
|
|
308
|
+
* Finds an AudioNative project matching the provided URL, extracts content from the URL, updates the project content, and queues it for conversion and auto-publishing.
|
|
309
|
+
*
|
|
310
|
+
* @param {ElevenLabs.BodyUpdateAudioNativeContentFromUrlV1AudioNativeContentPost} request
|
|
311
|
+
* @param {AudioNativeClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
312
|
+
*
|
|
313
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
314
|
+
*
|
|
315
|
+
* @example
|
|
316
|
+
* await client.audioNative.updateContentFromUrl({
|
|
317
|
+
* url: "https://elevenlabs.io/blog/the_first_ai_that_can_laugh/"
|
|
318
|
+
* })
|
|
319
|
+
*/
|
|
320
|
+
updateContentFromUrl(request, requestOptions) {
|
|
321
|
+
return core.HttpResponsePromise.fromPromise(this.__updateContentFromUrl(request, requestOptions));
|
|
322
|
+
}
|
|
323
|
+
__updateContentFromUrl(request, requestOptions) {
|
|
324
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
325
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
326
|
+
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);
|
|
327
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
328
|
+
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/audio-native/content"),
|
|
329
|
+
method: "POST",
|
|
330
|
+
headers: _headers,
|
|
331
|
+
contentType: "application/json",
|
|
332
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
333
|
+
requestType: "json",
|
|
334
|
+
body: serializers.BodyUpdateAudioNativeContentFromUrlV1AudioNativeContentPost.jsonOrThrow(request, {
|
|
335
|
+
unrecognizedObjectKeys: "strip",
|
|
336
|
+
}),
|
|
337
|
+
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,
|
|
338
|
+
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,
|
|
339
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
340
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
341
|
+
logging: this._options.logging,
|
|
342
|
+
});
|
|
343
|
+
if (_response.ok) {
|
|
344
|
+
return {
|
|
345
|
+
data: serializers.AudioNativeEditContentResponseModel.parseOrThrow(_response.body, {
|
|
346
|
+
unrecognizedObjectKeys: "passthrough",
|
|
347
|
+
allowUnrecognizedUnionMembers: true,
|
|
348
|
+
allowUnrecognizedEnumValues: true,
|
|
349
|
+
breadcrumbsPrefix: ["response"],
|
|
350
|
+
}),
|
|
351
|
+
rawResponse: _response.rawResponse,
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
if (_response.error.reason === "status-code") {
|
|
355
|
+
switch (_response.error.statusCode) {
|
|
356
|
+
case 422:
|
|
357
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
358
|
+
unrecognizedObjectKeys: "passthrough",
|
|
359
|
+
allowUnrecognizedUnionMembers: true,
|
|
360
|
+
allowUnrecognizedEnumValues: true,
|
|
361
|
+
breadcrumbsPrefix: ["response"],
|
|
362
|
+
}), _response.rawResponse);
|
|
363
|
+
default:
|
|
364
|
+
throw new errors.ElevenLabsError({
|
|
365
|
+
statusCode: _response.error.statusCode,
|
|
366
|
+
body: _response.error.body,
|
|
367
|
+
rawResponse: _response.rawResponse,
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/audio-native/content");
|
|
372
|
+
});
|
|
373
|
+
}
|
|
307
374
|
}
|
|
308
375
|
exports.AudioNativeClient = AudioNativeClient;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export type { BodyCreatesAudioNativeEnabledProjectV1AudioNativePost } from "./BodyCreatesAudioNativeEnabledProjectV1AudioNativePost";
|
|
2
|
+
export type { BodyUpdateAudioNativeContentFromUrlV1AudioNativeContentPost } from "./BodyUpdateAudioNativeContentFromUrlV1AudioNativeContentPost";
|
|
2
3
|
export type { BodyUpdateAudioNativeProjectContentV1AudioNativeProjectIdContentPost } from "./BodyUpdateAudioNativeProjectContentV1AudioNativeProjectIdContentPost";
|
|
@@ -8,6 +8,7 @@ import { BatchCallsClient } from "../resources/batchCalls/client/Client";
|
|
|
8
8
|
import { ConversationsClient } from "../resources/conversations/client/Client";
|
|
9
9
|
import { DashboardClient } from "../resources/dashboard/client/Client";
|
|
10
10
|
import { KnowledgeBaseClient } from "../resources/knowledgeBase/client/Client";
|
|
11
|
+
import { LlmClient } from "../resources/llm/client/Client";
|
|
11
12
|
import { LlmUsageClient } from "../resources/llmUsage/client/Client";
|
|
12
13
|
import { McpServersClient } from "../resources/mcpServers/client/Client";
|
|
13
14
|
import { PhoneNumbersClient } from "../resources/phoneNumbers/client/Client";
|
|
@@ -35,6 +36,7 @@ export declare class ConversationalAiClient {
|
|
|
35
36
|
protected _users: UsersClient | undefined;
|
|
36
37
|
protected _phoneNumbers: PhoneNumbersClient | undefined;
|
|
37
38
|
protected _llmUsage: LlmUsageClient | undefined;
|
|
39
|
+
protected _llm: LlmClient | undefined;
|
|
38
40
|
protected _knowledgeBase: KnowledgeBaseClient | undefined;
|
|
39
41
|
protected _tools: ToolsClient | undefined;
|
|
40
42
|
protected _settings: SettingsClient | undefined;
|
|
@@ -54,6 +56,7 @@ export declare class ConversationalAiClient {
|
|
|
54
56
|
get users(): UsersClient;
|
|
55
57
|
get phoneNumbers(): PhoneNumbersClient;
|
|
56
58
|
get llmUsage(): LlmUsageClient;
|
|
59
|
+
get llm(): LlmClient;
|
|
57
60
|
get knowledgeBase(): KnowledgeBaseClient;
|
|
58
61
|
get tools(): ToolsClient;
|
|
59
62
|
get settings(): SettingsClient;
|
|
@@ -58,18 +58,19 @@ const Client_3 = require("../resources/batchCalls/client/Client");
|
|
|
58
58
|
const Client_4 = require("../resources/conversations/client/Client");
|
|
59
59
|
const Client_5 = require("../resources/dashboard/client/Client");
|
|
60
60
|
const Client_6 = require("../resources/knowledgeBase/client/Client");
|
|
61
|
-
const Client_7 = require("../resources/
|
|
62
|
-
const Client_8 = require("../resources/
|
|
63
|
-
const Client_9 = require("../resources/
|
|
64
|
-
const Client_10 = require("../resources/
|
|
65
|
-
const Client_11 = require("../resources/
|
|
66
|
-
const Client_12 = require("../resources/
|
|
67
|
-
const Client_13 = require("../resources/
|
|
68
|
-
const Client_14 = require("../resources/
|
|
69
|
-
const Client_15 = require("../resources/
|
|
70
|
-
const Client_16 = require("../resources/
|
|
71
|
-
const Client_17 = require("../resources/
|
|
72
|
-
const Client_18 = require("../resources/
|
|
61
|
+
const Client_7 = require("../resources/llm/client/Client");
|
|
62
|
+
const Client_8 = require("../resources/llmUsage/client/Client");
|
|
63
|
+
const Client_9 = require("../resources/mcpServers/client/Client");
|
|
64
|
+
const Client_10 = require("../resources/phoneNumbers/client/Client");
|
|
65
|
+
const Client_11 = require("../resources/secrets/client/Client");
|
|
66
|
+
const Client_12 = require("../resources/settings/client/Client");
|
|
67
|
+
const Client_13 = require("../resources/sipTrunk/client/Client");
|
|
68
|
+
const Client_14 = require("../resources/tests/client/Client");
|
|
69
|
+
const Client_15 = require("../resources/tools/client/Client");
|
|
70
|
+
const Client_16 = require("../resources/twilio/client/Client");
|
|
71
|
+
const Client_17 = require("../resources/users/client/Client");
|
|
72
|
+
const Client_18 = require("../resources/whatsapp/client/Client");
|
|
73
|
+
const Client_19 = require("../resources/whatsappAccounts/client/Client");
|
|
73
74
|
class ConversationalAiClient {
|
|
74
75
|
constructor(options = {}) {
|
|
75
76
|
this._options = (0, BaseClient_1.normalizeClientOptions)(options);
|
|
@@ -80,11 +81,11 @@ class ConversationalAiClient {
|
|
|
80
81
|
}
|
|
81
82
|
get twilio() {
|
|
82
83
|
var _a;
|
|
83
|
-
return ((_a = this._twilio) !== null && _a !== void 0 ? _a : (this._twilio = new
|
|
84
|
+
return ((_a = this._twilio) !== null && _a !== void 0 ? _a : (this._twilio = new Client_16.TwilioClient(this._options)));
|
|
84
85
|
}
|
|
85
86
|
get whatsapp() {
|
|
86
87
|
var _a;
|
|
87
|
-
return ((_a = this._whatsapp) !== null && _a !== void 0 ? _a : (this._whatsapp = new
|
|
88
|
+
return ((_a = this._whatsapp) !== null && _a !== void 0 ? _a : (this._whatsapp = new Client_18.WhatsappClient(this._options)));
|
|
88
89
|
}
|
|
89
90
|
get agents() {
|
|
90
91
|
var _a;
|
|
@@ -92,19 +93,23 @@ class ConversationalAiClient {
|
|
|
92
93
|
}
|
|
93
94
|
get tests() {
|
|
94
95
|
var _a;
|
|
95
|
-
return ((_a = this._tests) !== null && _a !== void 0 ? _a : (this._tests = new
|
|
96
|
+
return ((_a = this._tests) !== null && _a !== void 0 ? _a : (this._tests = new Client_14.TestsClient(this._options)));
|
|
96
97
|
}
|
|
97
98
|
get users() {
|
|
98
99
|
var _a;
|
|
99
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
100
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_17.UsersClient(this._options)));
|
|
100
101
|
}
|
|
101
102
|
get phoneNumbers() {
|
|
102
103
|
var _a;
|
|
103
|
-
return ((_a = this._phoneNumbers) !== null && _a !== void 0 ? _a : (this._phoneNumbers = new
|
|
104
|
+
return ((_a = this._phoneNumbers) !== null && _a !== void 0 ? _a : (this._phoneNumbers = new Client_10.PhoneNumbersClient(this._options)));
|
|
104
105
|
}
|
|
105
106
|
get llmUsage() {
|
|
106
107
|
var _a;
|
|
107
|
-
return ((_a = this._llmUsage) !== null && _a !== void 0 ? _a : (this._llmUsage = new
|
|
108
|
+
return ((_a = this._llmUsage) !== null && _a !== void 0 ? _a : (this._llmUsage = new Client_8.LlmUsageClient(this._options)));
|
|
109
|
+
}
|
|
110
|
+
get llm() {
|
|
111
|
+
var _a;
|
|
112
|
+
return ((_a = this._llm) !== null && _a !== void 0 ? _a : (this._llm = new Client_7.LlmClient(this._options)));
|
|
108
113
|
}
|
|
109
114
|
get knowledgeBase() {
|
|
110
115
|
var _a;
|
|
@@ -112,15 +117,15 @@ class ConversationalAiClient {
|
|
|
112
117
|
}
|
|
113
118
|
get tools() {
|
|
114
119
|
var _a;
|
|
115
|
-
return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new
|
|
120
|
+
return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_15.ToolsClient(this._options)));
|
|
116
121
|
}
|
|
117
122
|
get settings() {
|
|
118
123
|
var _a;
|
|
119
|
-
return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new
|
|
124
|
+
return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new Client_12.SettingsClient(this._options)));
|
|
120
125
|
}
|
|
121
126
|
get secrets() {
|
|
122
127
|
var _a;
|
|
123
|
-
return ((_a = this._secrets) !== null && _a !== void 0 ? _a : (this._secrets = new
|
|
128
|
+
return ((_a = this._secrets) !== null && _a !== void 0 ? _a : (this._secrets = new Client_11.SecretsClient(this._options)));
|
|
124
129
|
}
|
|
125
130
|
get batchCalls() {
|
|
126
131
|
var _a;
|
|
@@ -128,15 +133,15 @@ class ConversationalAiClient {
|
|
|
128
133
|
}
|
|
129
134
|
get sipTrunk() {
|
|
130
135
|
var _a;
|
|
131
|
-
return ((_a = this._sipTrunk) !== null && _a !== void 0 ? _a : (this._sipTrunk = new
|
|
136
|
+
return ((_a = this._sipTrunk) !== null && _a !== void 0 ? _a : (this._sipTrunk = new Client_13.SipTrunkClient(this._options)));
|
|
132
137
|
}
|
|
133
138
|
get mcpServers() {
|
|
134
139
|
var _a;
|
|
135
|
-
return ((_a = this._mcpServers) !== null && _a !== void 0 ? _a : (this._mcpServers = new
|
|
140
|
+
return ((_a = this._mcpServers) !== null && _a !== void 0 ? _a : (this._mcpServers = new Client_9.McpServersClient(this._options)));
|
|
136
141
|
}
|
|
137
142
|
get whatsappAccounts() {
|
|
138
143
|
var _a;
|
|
139
|
-
return ((_a = this._whatsappAccounts) !== null && _a !== void 0 ? _a : (this._whatsappAccounts = new
|
|
144
|
+
return ((_a = this._whatsappAccounts) !== null && _a !== void 0 ? _a : (this._whatsappAccounts = new Client_19.WhatsappAccountsClient(this._options)));
|
|
140
145
|
}
|
|
141
146
|
get analytics() {
|
|
142
147
|
var _a;
|
package/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts
CHANGED
|
@@ -18,8 +18,7 @@ export interface UpdateAgentRequest {
|
|
|
18
18
|
name?: string;
|
|
19
19
|
/** Tags to help classify and filter the agent */
|
|
20
20
|
tags?: string[];
|
|
21
|
+
coachingSettings?: ElevenLabs.conversationalAi.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchCoachingSettings;
|
|
21
22
|
/** Description for this version when publishing changes (only applicable for versioned agents) */
|
|
22
23
|
versionDescription?: string;
|
|
23
|
-
/** List of procedure refs used for this agent version. */
|
|
24
|
-
procedureRefs?: ElevenLabs.conversationalAi.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchProcedureRefsItem[];
|
|
25
24
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as ElevenLabs from "../../../../../index";
|
|
2
|
+
export type BodyCreateAgentV1ConvaiAgentsCreatePostCoachingSettings = ElevenLabs.conversationalAi.BodyCreateAgentV1ConvaiAgentsCreatePostCoachingSettings.Coached | ElevenLabs.conversationalAi.BodyCreateAgentV1ConvaiAgentsCreatePostCoachingSettings.None;
|
|
3
|
+
export declare namespace BodyCreateAgentV1ConvaiAgentsCreatePostCoachingSettings {
|
|
4
|
+
interface Coached extends ElevenLabs.CoachedAgentSettings {
|
|
5
|
+
type: "coached";
|
|
6
|
+
}
|
|
7
|
+
interface None extends ElevenLabs.NoCoachingSettings {
|
|
8
|
+
type: "none";
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as ElevenLabs from "../../../../../index";
|
|
2
|
+
export type BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchCoachingSettings = ElevenLabs.conversationalAi.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchCoachingSettings.Coached | ElevenLabs.conversationalAi.BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchCoachingSettings.None;
|
|
3
|
+
export declare namespace BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchCoachingSettings {
|
|
4
|
+
interface Coached extends ElevenLabs.CoachedAgentSettings {
|
|
5
|
+
type: "coached";
|
|
6
|
+
}
|
|
7
|
+
interface None extends ElevenLabs.NoCoachingSettings {
|
|
8
|
+
type: "none";
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./BodyCreateAgentV1ConvaiAgentsCreatePostCoachingSettings";
|
|
2
|
+
export * from "./BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchCoachingSettings";
|
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./BodyCreateAgentV1ConvaiAgentsCreatePostCoachingSettings"), exports);
|
|
18
|
+
__exportStar(require("./BodyPatchesAnAgentSettingsV1ConvaiAgentsAgentIdPatchCoachingSettings"), exports);
|
|
@@ -4,6 +4,8 @@ import * as core from "../../../../../../core";
|
|
|
4
4
|
import * as ElevenLabs from "../../../../../index";
|
|
5
5
|
import { AudioClient } from "../resources/audio/client/Client";
|
|
6
6
|
import { FeedbackClient } from "../resources/feedback/client/Client";
|
|
7
|
+
import { FilesClient } from "../resources/files/client/Client";
|
|
8
|
+
import { MessagesClient } from "../resources/messages/client/Client";
|
|
7
9
|
export declare namespace ConversationsClient {
|
|
8
10
|
type Options = BaseClientOptions;
|
|
9
11
|
interface RequestOptions extends BaseRequestOptions {
|
|
@@ -13,9 +15,13 @@ export declare class ConversationsClient {
|
|
|
13
15
|
protected readonly _options: NormalizedClientOptions<ConversationsClient.Options>;
|
|
14
16
|
protected _audio: AudioClient | undefined;
|
|
15
17
|
protected _feedback: FeedbackClient | undefined;
|
|
18
|
+
protected _messages: MessagesClient | undefined;
|
|
19
|
+
protected _files: FilesClient | undefined;
|
|
16
20
|
constructor(options?: ConversationsClient.Options);
|
|
17
21
|
get audio(): AudioClient;
|
|
18
22
|
get feedback(): FeedbackClient;
|
|
23
|
+
get messages(): MessagesClient;
|
|
24
|
+
get files(): FilesClient;
|
|
19
25
|
/**
|
|
20
26
|
* Get a signed url to start a conversation with an agent with an agent that requires authorization
|
|
21
27
|
*
|
|
@@ -54,6 +54,8 @@ const serializers = __importStar(require("../../../../../../serialization/index"
|
|
|
54
54
|
const ElevenLabs = __importStar(require("../../../../../index"));
|
|
55
55
|
const Client_1 = require("../resources/audio/client/Client");
|
|
56
56
|
const Client_2 = require("../resources/feedback/client/Client");
|
|
57
|
+
const Client_3 = require("../resources/files/client/Client");
|
|
58
|
+
const Client_4 = require("../resources/messages/client/Client");
|
|
57
59
|
class ConversationsClient {
|
|
58
60
|
constructor(options = {}) {
|
|
59
61
|
this._options = (0, BaseClient_1.normalizeClientOptions)(options);
|
|
@@ -66,6 +68,14 @@ class ConversationsClient {
|
|
|
66
68
|
var _a;
|
|
67
69
|
return ((_a = this._feedback) !== null && _a !== void 0 ? _a : (this._feedback = new Client_2.FeedbackClient(this._options)));
|
|
68
70
|
}
|
|
71
|
+
get messages() {
|
|
72
|
+
var _a;
|
|
73
|
+
return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new Client_4.MessagesClient(this._options)));
|
|
74
|
+
}
|
|
75
|
+
get files() {
|
|
76
|
+
var _a;
|
|
77
|
+
return ((_a = this._files) !== null && _a !== void 0 ? _a : (this._files = new Client_3.FilesClient(this._options)));
|
|
78
|
+
}
|
|
69
79
|
/**
|
|
70
80
|
* Get a signed url to start a conversation with an agent with an agent that requires authorization
|
|
71
81
|
*
|
package/api/resources/conversationalAi/resources/conversations/resources/files/client/Client.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
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 FilesClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class FilesClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptions<FilesClient.Options>;
|
|
12
|
+
constructor(options?: FilesClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* Upload an image or PDF file for a conversation. Returns a unique file ID that can be used to reference the file in the conversation.
|
|
15
|
+
*
|
|
16
|
+
* @param {string} conversation_id
|
|
17
|
+
* @param {ElevenLabs.conversationalAi.conversations.BodyUploadFileV1ConvaiConversationsConversationIdFilesPost} request
|
|
18
|
+
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
19
|
+
*
|
|
20
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* import { createReadStream } from "fs";
|
|
24
|
+
* await client.conversationalAi.conversations.files.create("conversation_id", {
|
|
25
|
+
* file: fs.createReadStream("/path/to/your/file")
|
|
26
|
+
* })
|
|
27
|
+
*/
|
|
28
|
+
create(conversation_id: string, request: ElevenLabs.conversationalAi.conversations.BodyUploadFileV1ConvaiConversationsConversationIdFilesPost, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.ConvAiFileUploadResponseModel>;
|
|
29
|
+
private __create;
|
|
30
|
+
/**
|
|
31
|
+
* Remove a file upload from a conversation. Only possible if the file hasn't already been used in the conversation.
|
|
32
|
+
*
|
|
33
|
+
* @param {string} conversation_id
|
|
34
|
+
* @param {string} file_id
|
|
35
|
+
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* await client.conversationalAi.conversations.files.delete("conversation_id", "file_id")
|
|
41
|
+
*/
|
|
42
|
+
delete(conversation_id: string, file_id: string, requestOptions?: FilesClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.ConvAiFileUploadResponseModel>;
|
|
43
|
+
private __delete;
|
|
44
|
+
}
|
package/api/resources/conversationalAi/resources/conversations/resources/files/client/Client.js
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
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.FilesClient = 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 serializers = __importStar(require("../../../../../../../../serialization/index"));
|
|
54
|
+
const ElevenLabs = __importStar(require("../../../../../../../index"));
|
|
55
|
+
class FilesClient {
|
|
56
|
+
constructor(options = {}) {
|
|
57
|
+
this._options = (0, BaseClient_1.normalizeClientOptions)(options);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Upload an image or PDF file for a conversation. Returns a unique file ID that can be used to reference the file in the conversation.
|
|
61
|
+
*
|
|
62
|
+
* @param {string} conversation_id
|
|
63
|
+
* @param {ElevenLabs.conversationalAi.conversations.BodyUploadFileV1ConvaiConversationsConversationIdFilesPost} request
|
|
64
|
+
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* import { createReadStream } from "fs";
|
|
70
|
+
* await client.conversationalAi.conversations.files.create("conversation_id", {
|
|
71
|
+
* file: fs.createReadStream("/path/to/your/file")
|
|
72
|
+
* })
|
|
73
|
+
*/
|
|
74
|
+
create(conversation_id, request, requestOptions) {
|
|
75
|
+
return core.HttpResponsePromise.fromPromise(this.__create(conversation_id, request, requestOptions));
|
|
76
|
+
}
|
|
77
|
+
__create(conversation_id, request, requestOptions) {
|
|
78
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
80
|
+
const _request = yield core.newFormData();
|
|
81
|
+
yield _request.appendFile("file", request.file);
|
|
82
|
+
const _maybeEncodedRequest = yield _request.getRequest();
|
|
83
|
+
const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)(Object.assign({ "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 }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
84
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
85
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, `v1/convai/conversations/${core.url.encodePathParam(conversation_id)}/files`),
|
|
86
|
+
method: "POST",
|
|
87
|
+
headers: _headers,
|
|
88
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
89
|
+
requestType: "file",
|
|
90
|
+
duplex: _maybeEncodedRequest.duplex,
|
|
91
|
+
body: _maybeEncodedRequest.body,
|
|
92
|
+
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,
|
|
93
|
+
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,
|
|
94
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
95
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
96
|
+
logging: this._options.logging,
|
|
97
|
+
});
|
|
98
|
+
if (_response.ok) {
|
|
99
|
+
return {
|
|
100
|
+
data: serializers.ConvAiFileUploadResponseModel.parseOrThrow(_response.body, {
|
|
101
|
+
unrecognizedObjectKeys: "passthrough",
|
|
102
|
+
allowUnrecognizedUnionMembers: true,
|
|
103
|
+
allowUnrecognizedEnumValues: true,
|
|
104
|
+
breadcrumbsPrefix: ["response"],
|
|
105
|
+
}),
|
|
106
|
+
rawResponse: _response.rawResponse,
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
if (_response.error.reason === "status-code") {
|
|
110
|
+
switch (_response.error.statusCode) {
|
|
111
|
+
case 422:
|
|
112
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
113
|
+
unrecognizedObjectKeys: "passthrough",
|
|
114
|
+
allowUnrecognizedUnionMembers: true,
|
|
115
|
+
allowUnrecognizedEnumValues: true,
|
|
116
|
+
breadcrumbsPrefix: ["response"],
|
|
117
|
+
}), _response.rawResponse);
|
|
118
|
+
default:
|
|
119
|
+
throw new errors.ElevenLabsError({
|
|
120
|
+
statusCode: _response.error.statusCode,
|
|
121
|
+
body: _response.error.body,
|
|
122
|
+
rawResponse: _response.rawResponse,
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/convai/conversations/{conversation_id}/files");
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Remove a file upload from a conversation. Only possible if the file hasn't already been used in the conversation.
|
|
131
|
+
*
|
|
132
|
+
* @param {string} conversation_id
|
|
133
|
+
* @param {string} file_id
|
|
134
|
+
* @param {FilesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
135
|
+
*
|
|
136
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* await client.conversationalAi.conversations.files.delete("conversation_id", "file_id")
|
|
140
|
+
*/
|
|
141
|
+
delete(conversation_id, file_id, requestOptions) {
|
|
142
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(conversation_id, file_id, requestOptions));
|
|
143
|
+
}
|
|
144
|
+
__delete(conversation_id, file_id, requestOptions) {
|
|
145
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
146
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
147
|
+
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);
|
|
148
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
149
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ElevenLabsEnvironment.Production, `v1/convai/conversations/${core.url.encodePathParam(conversation_id)}/files/${core.url.encodePathParam(file_id)}`),
|
|
150
|
+
method: "DELETE",
|
|
151
|
+
headers: _headers,
|
|
152
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
153
|
+
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,
|
|
154
|
+
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,
|
|
155
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
156
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
157
|
+
logging: this._options.logging,
|
|
158
|
+
});
|
|
159
|
+
if (_response.ok) {
|
|
160
|
+
return {
|
|
161
|
+
data: serializers.ConvAiFileUploadResponseModel.parseOrThrow(_response.body, {
|
|
162
|
+
unrecognizedObjectKeys: "passthrough",
|
|
163
|
+
allowUnrecognizedUnionMembers: true,
|
|
164
|
+
allowUnrecognizedEnumValues: true,
|
|
165
|
+
breadcrumbsPrefix: ["response"],
|
|
166
|
+
}),
|
|
167
|
+
rawResponse: _response.rawResponse,
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
if (_response.error.reason === "status-code") {
|
|
171
|
+
switch (_response.error.statusCode) {
|
|
172
|
+
case 422:
|
|
173
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
174
|
+
unrecognizedObjectKeys: "passthrough",
|
|
175
|
+
allowUnrecognizedUnionMembers: true,
|
|
176
|
+
allowUnrecognizedEnumValues: true,
|
|
177
|
+
breadcrumbsPrefix: ["response"],
|
|
178
|
+
}), _response.rawResponse);
|
|
179
|
+
default:
|
|
180
|
+
throw new errors.ElevenLabsError({
|
|
181
|
+
statusCode: _response.error.statusCode,
|
|
182
|
+
body: _response.error.body,
|
|
183
|
+
rawResponse: _response.rawResponse,
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v1/convai/conversations/{conversation_id}/files/{file_id}");
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
exports.FilesClient = FilesClient;
|
package/api/resources/conversationalAi/resources/conversations/resources/files/client/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
package/api/resources/conversationalAi/resources/conversations/resources/files/client/index.js
ADDED
|
@@ -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);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as core from "../../../../../../../../../core";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* file: fs.createReadStream("/path/to/your/file")
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface BodyUploadFileV1ConvaiConversationsConversationIdFilesPost {
|
|
9
|
+
/** Image or PDF file to upload */
|
|
10
|
+
file: core.file.Uploadable;
|
|
11
|
+
}
|