@elevenlabs/elevenlabs-js 2.7.0 → 2.9.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/Client.d.ts +13 -0
- package/Client.js +77 -12
- package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +4 -4
- package/api/resources/conversationalAi/resources/agents/client/Client.js +4 -4
- package/api/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +0 -1
- package/api/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost.d.ts +4 -2
- package/api/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost.d.ts +4 -2
- package/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +0 -1
- package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +15 -0
- package/api/resources/conversationalAi/resources/conversations/client/Client.js +86 -1
- package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsGetWebrtcTokenRequest.d.ts +19 -0
- package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +8 -0
- package/api/resources/conversationalAi/resources/conversations/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/conversations/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/conversations/index.js +1 -0
- package/api/resources/conversationalAi/resources/conversations/types/ConversationsListRequestSummaryMode.d.ts +11 -0
- package/api/resources/conversationalAi/resources/conversations/types/ConversationsListRequestSummaryMode.js +10 -0
- package/api/resources/conversationalAi/resources/conversations/types/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/conversations/types/index.js +17 -0
- package/api/resources/conversationalAi/resources/index.d.ts +2 -1
- package/api/resources/conversationalAi/resources/index.js +3 -2
- package/api/resources/dubbing/client/Client.js +3 -0
- package/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +2 -0
- package/api/resources/dubbing/client/requests/DubbingListRequest.d.ts +1 -1
- package/api/resources/dubbing/types/DubbingListRequestDubbingStatus.d.ts +1 -1
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +2 -1
- package/api/resources/serviceAccounts/client/Client.d.ts +48 -0
- package/api/resources/serviceAccounts/client/Client.js +134 -0
- package/api/resources/serviceAccounts/client/index.d.ts +1 -0
- package/api/resources/serviceAccounts/client/index.js +2 -0
- package/api/resources/serviceAccounts/index.d.ts +2 -0
- package/api/resources/serviceAccounts/index.js +18 -0
- package/api/resources/serviceAccounts/resources/apiKeys/client/Client.d.ts +96 -0
- package/api/resources/serviceAccounts/resources/apiKeys/client/Client.js +341 -0
- package/api/resources/serviceAccounts/resources/apiKeys/client/index.d.ts +2 -0
- package/api/resources/serviceAccounts/resources/apiKeys/client/index.js +17 -0
- package/api/resources/serviceAccounts/resources/apiKeys/client/requests/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPost.d.ts +18 -0
- package/api/resources/serviceAccounts/resources/apiKeys/client/requests/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatch.d.ts +22 -0
- package/api/resources/serviceAccounts/resources/apiKeys/client/requests/index.d.ts +2 -0
- package/api/resources/serviceAccounts/resources/apiKeys/client/requests/index.js +2 -0
- package/api/resources/serviceAccounts/resources/apiKeys/index.d.ts +2 -0
- package/api/resources/serviceAccounts/resources/apiKeys/index.js +18 -0
- package/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.d.ts +8 -0
- package/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts +31 -0
- package/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js +33 -0
- package/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.d.ts +8 -0
- package/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts +31 -0
- package/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js +33 -0
- package/api/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +4 -0
- package/api/resources/serviceAccounts/resources/apiKeys/types/index.js +20 -0
- package/api/resources/serviceAccounts/resources/index.d.ts +3 -0
- package/api/resources/serviceAccounts/resources/index.js +42 -0
- package/api/resources/speechToText/client/Client.d.ts +2 -2
- package/api/resources/speechToText/client/Client.js +5 -2
- package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +7 -0
- package/api/resources/speechToText/types/SpeechToTextConvertResponse.d.ts +5 -0
- package/api/resources/speechToText/types/index.d.ts +1 -0
- package/api/resources/speechToText/types/index.js +1 -0
- package/api/resources/studio/resources/projects/client/Client.d.ts +1 -4
- package/api/resources/studio/resources/projects/client/Client.js +10 -7
- package/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +4 -7
- package/api/resources/textToVoice/client/Client.d.ts +0 -17
- package/api/resources/textToVoice/client/Client.js +0 -77
- package/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +4 -0
- package/api/resources/textToVoice/client/requests/index.d.ts +0 -1
- package/api/resources/voices/client/Client.js +9 -1
- package/api/resources/voices/client/requests/VoicesSearchRequest.d.ts +4 -0
- package/api/types/AddProjectRequest.d.ts +1 -130
- package/api/types/AgentConfig.d.ts +11 -1
- package/api/types/AgentSummaryResponseModel.d.ts +2 -0
- package/api/types/AsrProvider.d.ts +1 -5
- package/api/types/AsrProvider.js +0 -5
- package/api/types/BatchCallRecipientStatus.d.ts +2 -1
- package/api/types/BatchCallRecipientStatus.js +1 -0
- package/api/types/BuiltInToolsInput.d.ts +2 -0
- package/api/types/BuiltInToolsOutput.d.ts +2 -0
- package/api/types/CaptionStyleCharacterAnimationModel.d.ts +8 -0
- package/api/types/CaptionStyleCharacterAnimationModelEnterType.d.ts +8 -0
- package/api/types/CaptionStyleCharacterAnimationModelEnterType.js +10 -0
- package/api/types/CaptionStyleCharacterAnimationModelExitType.d.ts +8 -0
- package/api/types/CaptionStyleCharacterAnimationModelExitType.js +10 -0
- package/api/types/CaptionStyleHorizontalPlacementModel.d.ts +8 -0
- package/api/types/CaptionStyleHorizontalPlacementModelAlign.d.ts +9 -0
- package/api/types/CaptionStyleHorizontalPlacementModelAlign.js +11 -0
- package/api/types/CaptionStyleModel.d.ts +29 -0
- package/api/types/CaptionStyleModelTextAlign.d.ts +9 -0
- package/api/types/CaptionStyleModelTextAlign.js +11 -0
- package/api/types/CaptionStyleModelTextStyle.d.ts +8 -0
- package/api/types/CaptionStyleModelTextStyle.js +10 -0
- package/api/types/CaptionStyleModelTextWeight.d.ts +8 -0
- package/api/types/CaptionStyleModelTextWeight.js +10 -0
- package/api/types/CaptionStyleSectionAnimationModel.d.ts +8 -0
- package/api/types/CaptionStyleSectionAnimationModelEnterType.d.ts +9 -0
- package/api/types/CaptionStyleSectionAnimationModelEnterType.js +11 -0
- package/api/types/CaptionStyleSectionAnimationModelExitType.d.ts +9 -0
- package/api/types/CaptionStyleSectionAnimationModelExitType.js +11 -0
- package/api/types/CaptionStyleTemplateModel.d.ts +7 -0
- package/api/types/CaptionStyleVerticalPlacementModel.d.ts +8 -0
- package/api/types/CaptionStyleVerticalPlacementModelAlign.d.ts +9 -0
- package/api/types/CaptionStyleVerticalPlacementModelAlign.js +11 -0
- package/api/types/CaptionStyleWordAnimationModel.d.ts +8 -0
- package/api/types/CaptionStyleWordAnimationModelEnterType.d.ts +9 -0
- package/api/types/CaptionStyleWordAnimationModelEnterType.js +11 -0
- package/api/types/CaptionStyleWordAnimationModelExitType.d.ts +9 -0
- package/api/types/CaptionStyleWordAnimationModelExitType.js +11 -0
- package/api/types/ClientToolConfigInput.d.ts +6 -0
- package/api/types/ClientToolConfigOutput.d.ts +6 -0
- package/api/types/ConversationHistoryAnalysisCommonModel.d.ts +1 -0
- package/api/types/ConversationHistoryTranscriptCommonModelInput.d.ts +1 -1
- package/api/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +5 -0
- package/api/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +1 -1
- package/api/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +5 -0
- package/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +14 -0
- package/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.d.ts +9 -0
- package/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.js +11 -0
- package/api/types/ConversationHistoryTranscriptSystemToolResultCommonModel.d.ts +15 -0
- package/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +37 -0
- package/api/types/ConversationHistoryTranscriptToolCallCommonModel.d.ts +1 -1
- package/api/types/ConversationInitiationClientDataInternal.d.ts +1 -0
- package/api/types/ConversationInitiationClientDataRequestInput.d.ts +1 -0
- package/api/types/ConversationInitiationClientDataRequestOutput.d.ts +1 -0
- package/api/types/ConversationInitiationSource.d.ts +2 -1
- package/api/types/ConversationInitiationSource.js +1 -0
- package/api/types/ConversationInitiationSourceInfo.d.ts +13 -0
- package/api/types/ConversationSimulationSpecification.d.ts +1 -1
- package/api/types/ConversationSummaryResponseModel.d.ts +3 -0
- package/api/types/ConversationSummaryResponseModelDirection.d.ts +8 -0
- package/api/types/ConversationSummaryResponseModelDirection.js +10 -0
- package/api/types/ConversationalConfig.d.ts +1 -1
- package/api/types/DubbedSegment.d.ts +1 -0
- package/api/types/DynamicVariableAssignment.d.ts +14 -0
- package/api/types/DynamicVariableUpdateCommonModel.d.ts +14 -0
- package/api/types/EndCallToolResultModel.d.ts +8 -0
- package/api/types/FeaturesUsageCommonModel.d.ts +5 -0
- package/api/types/GetAgentResponseModel.d.ts +0 -1
- package/api/types/LanguageDetectionToolResultModel.d.ts +8 -0
- package/api/types/Llm.d.ts +15 -1
- package/api/types/Llm.js +14 -0
- package/api/types/MultichannelSpeechToTextResponseModel.d.ts +11 -0
- package/api/types/PlayDtmfResultErrorModel.d.ts +8 -0
- package/api/types/PlayDtmfResultSuccessModel.d.ts +8 -0
- package/api/types/ProjectExtendedResponse.d.ts +4 -0
- package/api/types/ProjectResponse.d.ts +4 -0
- package/api/types/PromptAgentApiModelInputToolsItem.d.ts +2 -1
- package/api/types/PromptAgentApiModelOutputToolsItem.d.ts +2 -1
- package/api/types/PromptAgentApiModelOverride.d.ts +2 -0
- package/api/types/PromptAgentApiModelOverrideConfig.d.ts +2 -0
- package/api/types/SaveVoicePreviewRequest.d.ts +4 -0
- package/api/types/SegmentSubtitleFrame.d.ts +8 -0
- package/api/types/SkipTurnToolResponseModel.d.ts +7 -0
- package/api/types/SpeakerSegment.d.ts +1 -0
- package/api/types/SpeechToTextChunkResponseModel.d.ts +2 -0
- package/api/types/SpeechToTextWebhookResponseModel.d.ts +9 -0
- package/api/types/SubscriptionExtrasResponseModel.d.ts +2 -2
- package/api/types/SystemToolConfigInput.d.ts +6 -0
- package/api/types/SystemToolConfigInputParams.d.ts +4 -1
- package/api/types/SystemToolConfigOutput.d.ts +6 -0
- package/api/types/SystemToolConfigOutputParams.d.ts +4 -1
- package/api/types/TextToSpeechApplyTextNormalizationEnum.d.ts +1 -1
- package/api/types/TokenResponseModel.d.ts +6 -0
- package/api/types/Tool.d.ts +3 -0
- package/api/types/ToolRequestModelToolConfig.d.ts +2 -1
- package/api/types/ToolResponseModel.d.ts +1 -0
- package/api/types/ToolResponseModelToolConfig.d.ts +2 -1
- package/api/types/ToolType.d.ts +10 -0
- package/api/types/ToolType.js +12 -0
- package/api/types/ToolUsageStatsResponseModel.d.ts +8 -0
- package/api/types/TransferToAgentToolResultErrorModel.d.ts +8 -0
- package/api/types/TransferToAgentToolResultSuccessModel.d.ts +12 -0
- package/api/types/TransferToNumberResultErrorModel.d.ts +8 -0
- package/api/types/TransferToNumberResultErrorModel.js +5 -0
- package/api/types/TransferToNumberResultSipSuccessModel.d.ts +9 -0
- package/api/types/TransferToNumberResultSipSuccessModel.js +5 -0
- package/api/types/TransferToNumberResultTwilioSuccessModel.d.ts +12 -0
- package/api/types/TransferToNumberResultTwilioSuccessModel.js +5 -0
- package/api/types/UpdatePronunciationDictionariesRequest.d.ts +1 -7
- package/api/types/VoiceResponseModelSafetyControl.d.ts +1 -2
- package/api/types/VoiceResponseModelSafetyControl.js +0 -1
- package/api/types/VoicemailDetectionToolConfig.d.ts +14 -0
- package/api/types/VoicemailDetectionToolConfig.js +5 -0
- package/api/types/WebhookToolConfigInput.d.ts +6 -0
- package/api/types/WebhookToolConfigOutput.d.ts +6 -0
- package/api/types/WidgetConfig.d.ts +4 -0
- package/api/types/WidgetConfigResponse.d.ts +4 -0
- package/{dist/api/types/AgentBan.d.ts → api/types/WorkspaceApiKeyListResponseModel.d.ts} +2 -4
- package/api/types/WorkspaceApiKeyListResponseModel.js +5 -0
- package/api/types/WorkspaceApiKeyResponseModel.d.ts +15 -0
- package/api/types/WorkspaceApiKeyResponseModel.js +5 -0
- package/api/types/WorkspaceApiKeyResponseModelPermissionsItem.d.ts +31 -0
- package/api/types/WorkspaceApiKeyResponseModelPermissionsItem.js +33 -0
- package/api/types/WorkspaceCreateApiKeyResponseModel.d.ts +6 -0
- package/api/types/WorkspaceCreateApiKeyResponseModel.js +5 -0
- package/api/types/WorkspaceResourceType.d.ts +2 -1
- package/api/types/WorkspaceResourceType.js +1 -0
- package/api/types/WorkspaceServiceAccountListResponseModel.d.ts +7 -0
- package/api/types/WorkspaceServiceAccountListResponseModel.js +5 -0
- package/api/types/WorkspaceServiceAccountResponseModel.d.ts +10 -0
- package/api/types/WorkspaceServiceAccountResponseModel.js +5 -0
- package/api/types/index.d.ts +54 -24
- package/api/types/index.js +54 -24
- package/dist/Client.d.ts +13 -0
- package/dist/Client.js +77 -12
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +4 -4
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +4 -4
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +0 -1
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost.d.ts +4 -2
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost.d.ts +4 -2
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +0 -1
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +15 -0
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +86 -1
- package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsGetWebrtcTokenRequest.d.ts +19 -0
- package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsGetWebrtcTokenRequest.js +5 -0
- package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +8 -0
- package/dist/api/resources/conversationalAi/resources/conversations/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/conversations/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/conversations/index.js +1 -0
- package/dist/api/resources/conversationalAi/resources/conversations/types/ConversationsListRequestSummaryMode.d.ts +11 -0
- package/dist/api/resources/conversationalAi/resources/conversations/types/ConversationsListRequestSummaryMode.js +10 -0
- package/dist/api/resources/conversationalAi/resources/conversations/types/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/conversations/types/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/index.d.ts +2 -1
- package/dist/api/resources/conversationalAi/resources/index.js +3 -2
- package/dist/api/resources/dubbing/client/Client.js +3 -0
- package/dist/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +2 -0
- package/dist/api/resources/dubbing/client/requests/DubbingListRequest.d.ts +1 -1
- package/dist/api/resources/dubbing/types/DubbingListRequestDubbingStatus.d.ts +1 -1
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +2 -1
- package/dist/api/resources/serviceAccounts/client/Client.d.ts +48 -0
- package/dist/api/resources/serviceAccounts/client/Client.js +134 -0
- package/dist/api/resources/serviceAccounts/client/index.d.ts +1 -0
- package/dist/api/resources/serviceAccounts/client/index.js +2 -0
- package/dist/api/resources/serviceAccounts/index.d.ts +2 -0
- package/dist/api/resources/serviceAccounts/index.js +18 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/client/Client.d.ts +96 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/client/Client.js +341 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/client/index.d.ts +2 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/client/index.js +17 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/client/requests/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPost.d.ts +18 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/client/requests/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPost.js +5 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/client/requests/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatch.d.ts +22 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/client/requests/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatch.js +5 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/client/requests/index.d.ts +2 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/client/requests/index.js +2 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/index.d.ts +2 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/index.js +18 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.d.ts +8 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.js +5 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts +31 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js +33 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.d.ts +8 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.js +5 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts +31 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js +33 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +4 -0
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/index.js +20 -0
- package/dist/api/resources/serviceAccounts/resources/index.d.ts +3 -0
- package/dist/api/resources/serviceAccounts/resources/index.js +42 -0
- package/dist/api/resources/speechToText/client/Client.d.ts +2 -2
- package/dist/api/resources/speechToText/client/Client.js +5 -2
- package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +7 -0
- package/dist/api/resources/speechToText/types/SpeechToTextConvertResponse.d.ts +5 -0
- package/dist/api/resources/speechToText/types/SpeechToTextConvertResponse.js +5 -0
- package/dist/api/resources/speechToText/types/index.d.ts +1 -0
- package/dist/api/resources/speechToText/types/index.js +1 -0
- package/dist/api/resources/studio/resources/projects/client/Client.d.ts +1 -4
- package/dist/api/resources/studio/resources/projects/client/Client.js +10 -7
- package/dist/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +4 -7
- package/dist/api/resources/textToVoice/client/Client.d.ts +0 -17
- package/dist/api/resources/textToVoice/client/Client.js +0 -77
- package/dist/api/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +4 -0
- package/dist/api/resources/textToVoice/client/requests/index.d.ts +0 -1
- package/dist/api/resources/voices/client/Client.js +9 -1
- package/dist/api/resources/voices/client/requests/VoicesSearchRequest.d.ts +4 -0
- package/dist/api/types/AddProjectRequest.d.ts +1 -130
- package/dist/api/types/AgentConfig.d.ts +11 -1
- package/dist/api/types/AgentSummaryResponseModel.d.ts +2 -0
- package/dist/api/types/AsrProvider.d.ts +1 -5
- package/dist/api/types/AsrProvider.js +0 -5
- package/dist/api/types/BatchCallRecipientStatus.d.ts +2 -1
- package/dist/api/types/BatchCallRecipientStatus.js +1 -0
- package/dist/api/types/BuiltInToolsInput.d.ts +2 -0
- package/dist/api/types/BuiltInToolsOutput.d.ts +2 -0
- package/dist/api/types/CaptionStyleCharacterAnimationModel.d.ts +8 -0
- package/dist/api/types/CaptionStyleCharacterAnimationModel.js +5 -0
- package/dist/api/types/CaptionStyleCharacterAnimationModelEnterType.d.ts +8 -0
- package/dist/api/types/CaptionStyleCharacterAnimationModelEnterType.js +10 -0
- package/dist/api/types/CaptionStyleCharacterAnimationModelExitType.d.ts +8 -0
- package/dist/api/types/CaptionStyleCharacterAnimationModelExitType.js +10 -0
- package/dist/api/types/CaptionStyleHorizontalPlacementModel.d.ts +8 -0
- package/dist/api/types/CaptionStyleHorizontalPlacementModel.js +5 -0
- package/dist/api/types/CaptionStyleHorizontalPlacementModelAlign.d.ts +9 -0
- package/dist/api/types/CaptionStyleHorizontalPlacementModelAlign.js +11 -0
- package/dist/api/types/CaptionStyleModel.d.ts +29 -0
- package/dist/api/types/CaptionStyleModel.js +5 -0
- package/dist/api/types/CaptionStyleModelTextAlign.d.ts +9 -0
- package/dist/api/types/CaptionStyleModelTextAlign.js +11 -0
- package/dist/api/types/CaptionStyleModelTextStyle.d.ts +8 -0
- package/dist/api/types/CaptionStyleModelTextStyle.js +10 -0
- package/dist/api/types/CaptionStyleModelTextWeight.d.ts +8 -0
- package/dist/api/types/CaptionStyleModelTextWeight.js +10 -0
- package/dist/api/types/CaptionStyleSectionAnimationModel.d.ts +8 -0
- package/dist/api/types/CaptionStyleSectionAnimationModel.js +5 -0
- package/dist/api/types/CaptionStyleSectionAnimationModelEnterType.d.ts +9 -0
- package/dist/api/types/CaptionStyleSectionAnimationModelEnterType.js +11 -0
- package/dist/api/types/CaptionStyleSectionAnimationModelExitType.d.ts +9 -0
- package/dist/api/types/CaptionStyleSectionAnimationModelExitType.js +11 -0
- package/dist/api/types/CaptionStyleTemplateModel.d.ts +7 -0
- package/dist/api/types/CaptionStyleTemplateModel.js +5 -0
- package/dist/api/types/CaptionStyleVerticalPlacementModel.d.ts +8 -0
- package/dist/api/types/CaptionStyleVerticalPlacementModel.js +5 -0
- package/dist/api/types/CaptionStyleVerticalPlacementModelAlign.d.ts +9 -0
- package/dist/api/types/CaptionStyleVerticalPlacementModelAlign.js +11 -0
- package/dist/api/types/CaptionStyleWordAnimationModel.d.ts +8 -0
- package/dist/api/types/CaptionStyleWordAnimationModel.js +5 -0
- package/dist/api/types/CaptionStyleWordAnimationModelEnterType.d.ts +9 -0
- package/dist/api/types/CaptionStyleWordAnimationModelEnterType.js +11 -0
- package/dist/api/types/CaptionStyleWordAnimationModelExitType.d.ts +9 -0
- package/dist/api/types/CaptionStyleWordAnimationModelExitType.js +11 -0
- package/dist/api/types/ClientToolConfigInput.d.ts +6 -0
- package/dist/api/types/ClientToolConfigOutput.d.ts +6 -0
- package/dist/api/types/ConversationHistoryAnalysisCommonModel.d.ts +1 -0
- package/dist/api/types/ConversationHistoryTranscriptCommonModelInput.d.ts +1 -1
- package/dist/api/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +5 -0
- package/dist/api/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.js +5 -0
- package/dist/api/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +1 -1
- package/dist/api/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +5 -0
- package/dist/api/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.js +5 -0
- package/dist/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +14 -0
- package/dist/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.js +5 -0
- package/dist/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.d.ts +9 -0
- package/dist/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.js +11 -0
- package/dist/api/types/ConversationHistoryTranscriptSystemToolResultCommonModel.d.ts +15 -0
- package/dist/api/types/ConversationHistoryTranscriptSystemToolResultCommonModel.js +5 -0
- package/dist/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +37 -0
- package/dist/api/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.js +5 -0
- package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModel.d.ts +1 -1
- package/dist/api/types/ConversationInitiationClientDataInternal.d.ts +1 -0
- package/dist/api/types/ConversationInitiationClientDataRequestInput.d.ts +1 -0
- package/dist/api/types/ConversationInitiationClientDataRequestOutput.d.ts +1 -0
- package/dist/api/types/ConversationInitiationSource.d.ts +2 -1
- package/dist/api/types/ConversationInitiationSource.js +1 -0
- package/dist/api/types/ConversationInitiationSourceInfo.d.ts +13 -0
- package/dist/api/types/ConversationInitiationSourceInfo.js +5 -0
- package/dist/api/types/ConversationSimulationSpecification.d.ts +1 -1
- package/dist/api/types/ConversationSummaryResponseModel.d.ts +3 -0
- package/dist/api/types/ConversationSummaryResponseModelDirection.d.ts +8 -0
- package/dist/api/types/ConversationSummaryResponseModelDirection.js +10 -0
- package/dist/api/types/ConversationalConfig.d.ts +1 -1
- package/dist/api/types/DubbedSegment.d.ts +1 -0
- package/dist/api/types/DynamicVariableAssignment.d.ts +14 -0
- package/dist/api/types/DynamicVariableAssignment.js +5 -0
- package/dist/api/types/DynamicVariableUpdateCommonModel.d.ts +14 -0
- package/dist/api/types/DynamicVariableUpdateCommonModel.js +5 -0
- package/dist/api/types/EndCallToolResultModel.d.ts +8 -0
- package/dist/api/types/EndCallToolResultModel.js +5 -0
- package/dist/api/types/FeaturesUsageCommonModel.d.ts +5 -0
- package/dist/api/types/GetAgentResponseModel.d.ts +0 -1
- package/dist/api/types/LanguageDetectionToolResultModel.d.ts +8 -0
- package/dist/api/types/LanguageDetectionToolResultModel.js +5 -0
- package/dist/api/types/Llm.d.ts +15 -1
- package/dist/api/types/Llm.js +14 -0
- package/dist/api/types/MultichannelSpeechToTextResponseModel.d.ts +11 -0
- package/dist/api/types/MultichannelSpeechToTextResponseModel.js +5 -0
- package/dist/api/types/PlayDtmfResultErrorModel.d.ts +8 -0
- package/dist/api/types/PlayDtmfResultErrorModel.js +5 -0
- package/dist/api/types/PlayDtmfResultSuccessModel.d.ts +8 -0
- package/dist/api/types/PlayDtmfResultSuccessModel.js +5 -0
- package/dist/api/types/ProjectExtendedResponse.d.ts +4 -0
- package/dist/api/types/ProjectResponse.d.ts +4 -0
- package/dist/api/types/PromptAgentApiModelInputToolsItem.d.ts +2 -1
- package/dist/api/types/PromptAgentApiModelOutputToolsItem.d.ts +2 -1
- package/dist/api/types/PromptAgentApiModelOverride.d.ts +2 -0
- package/dist/api/types/PromptAgentApiModelOverrideConfig.d.ts +2 -0
- package/dist/api/types/SaveVoicePreviewRequest.d.ts +4 -0
- package/dist/api/types/SaveVoicePreviewRequest.js +5 -0
- package/dist/api/types/SegmentSubtitleFrame.d.ts +8 -0
- package/dist/api/types/SegmentSubtitleFrame.js +5 -0
- package/dist/api/types/SkipTurnToolResponseModel.d.ts +7 -0
- package/dist/api/types/SkipTurnToolResponseModel.js +5 -0
- package/dist/api/types/SpeakerSegment.d.ts +1 -0
- package/dist/api/types/SpeechToTextChunkResponseModel.d.ts +2 -0
- package/dist/api/types/SpeechToTextWebhookResponseModel.d.ts +9 -0
- package/dist/api/types/SpeechToTextWebhookResponseModel.js +5 -0
- package/dist/api/types/SubscriptionExtrasResponseModel.d.ts +2 -2
- package/dist/api/types/SystemToolConfigInput.d.ts +6 -0
- package/dist/api/types/SystemToolConfigInputParams.d.ts +4 -1
- package/dist/api/types/SystemToolConfigOutput.d.ts +6 -0
- package/dist/api/types/SystemToolConfigOutputParams.d.ts +4 -1
- package/dist/api/types/TextToSpeechApplyTextNormalizationEnum.d.ts +1 -1
- package/dist/api/types/TokenResponseModel.d.ts +6 -0
- package/dist/api/types/TokenResponseModel.js +5 -0
- package/dist/api/types/Tool.d.ts +3 -0
- package/dist/api/types/ToolRequestModelToolConfig.d.ts +2 -1
- package/dist/api/types/ToolResponseModel.d.ts +1 -0
- package/dist/api/types/ToolResponseModelToolConfig.d.ts +2 -1
- package/dist/api/types/ToolType.d.ts +10 -0
- package/dist/api/types/ToolType.js +12 -0
- package/dist/api/types/ToolUsageStatsResponseModel.d.ts +8 -0
- package/dist/api/types/ToolUsageStatsResponseModel.js +5 -0
- package/dist/api/types/TransferToAgentToolResultErrorModel.d.ts +8 -0
- package/dist/api/types/TransferToAgentToolResultErrorModel.js +5 -0
- package/dist/api/types/TransferToAgentToolResultSuccessModel.d.ts +12 -0
- package/dist/api/types/TransferToAgentToolResultSuccessModel.js +5 -0
- package/dist/api/types/TransferToNumberResultErrorModel.d.ts +8 -0
- package/dist/api/types/TransferToNumberResultErrorModel.js +5 -0
- package/dist/api/types/TransferToNumberResultSipSuccessModel.d.ts +9 -0
- package/dist/api/types/TransferToNumberResultSipSuccessModel.js +5 -0
- package/dist/api/types/TransferToNumberResultTwilioSuccessModel.d.ts +12 -0
- package/dist/api/types/TransferToNumberResultTwilioSuccessModel.js +5 -0
- package/dist/api/types/UpdatePronunciationDictionariesRequest.d.ts +1 -7
- package/dist/api/types/VoiceResponseModelSafetyControl.d.ts +1 -2
- package/dist/api/types/VoiceResponseModelSafetyControl.js +0 -1
- package/dist/api/types/VoicemailDetectionToolConfig.d.ts +14 -0
- package/dist/api/types/VoicemailDetectionToolConfig.js +5 -0
- package/dist/api/types/WebhookToolConfigInput.d.ts +6 -0
- package/dist/api/types/WebhookToolConfigOutput.d.ts +6 -0
- package/dist/api/types/WidgetConfig.d.ts +4 -0
- package/dist/api/types/WidgetConfigResponse.d.ts +4 -0
- package/{api/types/AgentBan.d.ts → dist/api/types/WorkspaceApiKeyListResponseModel.d.ts} +2 -4
- package/dist/api/types/WorkspaceApiKeyListResponseModel.js +5 -0
- package/dist/api/types/WorkspaceApiKeyResponseModel.d.ts +15 -0
- package/dist/api/types/WorkspaceApiKeyResponseModel.js +5 -0
- package/dist/api/types/WorkspaceApiKeyResponseModelPermissionsItem.d.ts +31 -0
- package/dist/api/types/WorkspaceApiKeyResponseModelPermissionsItem.js +33 -0
- package/dist/api/types/WorkspaceCreateApiKeyResponseModel.d.ts +6 -0
- package/dist/api/types/WorkspaceCreateApiKeyResponseModel.js +5 -0
- package/dist/api/types/WorkspaceResourceType.d.ts +2 -1
- package/dist/api/types/WorkspaceResourceType.js +1 -0
- package/dist/api/types/WorkspaceServiceAccountListResponseModel.d.ts +7 -0
- package/dist/api/types/WorkspaceServiceAccountListResponseModel.js +5 -0
- package/dist/api/types/WorkspaceServiceAccountResponseModel.d.ts +10 -0
- package/dist/api/types/WorkspaceServiceAccountResponseModel.js +5 -0
- package/dist/api/types/index.d.ts +54 -24
- package/dist/api/types/index.js +54 -24
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +0 -1
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.js +0 -1
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +0 -1
- package/dist/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +0 -1
- package/dist/serialization/resources/conversationalAi/resources/conversations/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/conversations/index.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/conversations/types/ConversationsListRequestSummaryMode.d.ts +10 -0
- package/dist/serialization/resources/conversationalAi/resources/conversations/types/ConversationsListRequestSummaryMode.js +41 -0
- package/dist/serialization/resources/conversationalAi/resources/conversations/types/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/conversations/types/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/index.d.ts +2 -1
- package/dist/serialization/resources/conversationalAi/resources/index.js +3 -2
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +2 -1
- package/dist/serialization/resources/serviceAccounts/index.d.ts +1 -0
- package/dist/serialization/resources/serviceAccounts/index.js +17 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/client/index.d.ts +1 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/client/index.js +17 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/client/requests/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPost.d.ts +15 -0
- package/dist/serialization/{types/BodyEditBasicProjectInfoV1ProjectsProjectIdPost.js → resources/serviceAccounts/resources/apiKeys/client/requests/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPost.js} +6 -9
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/client/requests/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatch.d.ts +16 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/client/requests/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatch.js +47 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/client/requests/index.js +7 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/index.d.ts +2 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/index.js +18 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.d.ts +11 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.js +45 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts +10 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js +67 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.d.ts +11 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.js +45 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts +10 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js +67 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +4 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/index.js +20 -0
- package/dist/serialization/resources/serviceAccounts/resources/index.d.ts +3 -0
- package/dist/serialization/resources/serviceAccounts/resources/index.js +42 -0
- package/dist/serialization/resources/speechToText/types/SpeechToTextConvertResponse.d.ts +13 -0
- package/dist/serialization/resources/speechToText/types/SpeechToTextConvertResponse.js +48 -0
- package/dist/serialization/resources/speechToText/types/index.d.ts +1 -0
- package/dist/serialization/resources/speechToText/types/index.js +1 -0
- package/dist/serialization/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +2 -0
- package/dist/serialization/resources/textToVoice/client/requests/VoiceDesignRequestModel.js +2 -0
- package/dist/serialization/resources/textToVoice/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/textToVoice/client/requests/index.js +1 -3
- package/dist/serialization/types/AddProjectRequest.d.ts +2 -34
- package/dist/serialization/types/AddProjectRequest.js +1 -33
- package/dist/serialization/types/AgentConfig.d.ts +9 -2
- package/dist/serialization/types/AgentConfig.js +8 -1
- package/dist/serialization/types/AgentSummaryResponseModel.d.ts +1 -0
- package/dist/serialization/types/AgentSummaryResponseModel.js +1 -0
- package/dist/serialization/types/AsrProvider.d.ts +1 -1
- package/dist/serialization/types/AsrProvider.js +1 -1
- package/dist/serialization/types/BatchCallRecipientStatus.d.ts +1 -1
- package/dist/serialization/types/BatchCallRecipientStatus.js +1 -1
- package/dist/serialization/types/BuiltInToolsInput.d.ts +1 -0
- package/dist/serialization/types/BuiltInToolsInput.js +1 -0
- package/dist/serialization/types/BuiltInToolsOutput.d.ts +1 -0
- package/dist/serialization/types/BuiltInToolsOutput.js +1 -0
- package/dist/serialization/types/CaptionStyleCharacterAnimationModel.d.ts +15 -0
- package/dist/serialization/types/CaptionStyleCharacterAnimationModel.js +46 -0
- package/dist/serialization/types/CaptionStyleCharacterAnimationModelEnterType.d.ts +10 -0
- package/dist/serialization/types/{BodyAddProjectV1ProjectsAddPostSourceType.js → CaptionStyleCharacterAnimationModelEnterType.js} +2 -2
- package/dist/serialization/types/CaptionStyleCharacterAnimationModelExitType.d.ts +10 -0
- package/dist/serialization/types/{BodyAddProjectV1ProjectsAddPostFiction.js → CaptionStyleCharacterAnimationModelExitType.js} +2 -2
- package/dist/serialization/types/CaptionStyleHorizontalPlacementModel.d.ts +14 -0
- package/dist/serialization/types/CaptionStyleHorizontalPlacementModel.js +45 -0
- package/dist/serialization/types/CaptionStyleHorizontalPlacementModelAlign.d.ts +10 -0
- package/{serialization/types/BodyAddProjectV1ProjectsAddPostSourceType.js → dist/serialization/types/CaptionStyleHorizontalPlacementModelAlign.js} +2 -2
- package/dist/serialization/types/CaptionStyleModel.d.ts +43 -0
- package/dist/serialization/types/CaptionStyleModel.js +74 -0
- package/dist/serialization/types/CaptionStyleModelTextAlign.d.ts +10 -0
- package/{serialization/types/BodyAddProjectV1ProjectsAddPostFiction.js → dist/serialization/types/CaptionStyleModelTextAlign.js} +2 -2
- package/dist/serialization/types/CaptionStyleModelTextStyle.d.ts +10 -0
- package/dist/serialization/types/CaptionStyleModelTextStyle.js +41 -0
- package/dist/serialization/types/CaptionStyleModelTextWeight.d.ts +10 -0
- package/dist/serialization/types/CaptionStyleModelTextWeight.js +41 -0
- package/dist/serialization/types/CaptionStyleSectionAnimationModel.d.ts +15 -0
- package/dist/serialization/types/CaptionStyleSectionAnimationModel.js +46 -0
- package/dist/serialization/types/CaptionStyleSectionAnimationModelEnterType.d.ts +10 -0
- package/dist/serialization/types/CaptionStyleSectionAnimationModelEnterType.js +41 -0
- package/dist/serialization/types/CaptionStyleSectionAnimationModelExitType.d.ts +10 -0
- package/dist/serialization/types/CaptionStyleSectionAnimationModelExitType.js +41 -0
- package/dist/serialization/types/CaptionStyleTemplateModel.d.ts +13 -0
- package/dist/serialization/types/CaptionStyleTemplateModel.js +44 -0
- package/dist/serialization/types/CaptionStyleVerticalPlacementModel.d.ts +14 -0
- package/dist/serialization/types/CaptionStyleVerticalPlacementModel.js +45 -0
- package/dist/serialization/types/CaptionStyleVerticalPlacementModelAlign.d.ts +10 -0
- package/dist/serialization/types/CaptionStyleVerticalPlacementModelAlign.js +41 -0
- package/dist/serialization/types/CaptionStyleWordAnimationModel.d.ts +15 -0
- package/dist/serialization/types/{BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost.js → CaptionStyleWordAnimationModel.js} +6 -3
- package/dist/serialization/types/CaptionStyleWordAnimationModelEnterType.d.ts +10 -0
- package/dist/serialization/types/CaptionStyleWordAnimationModelEnterType.js +41 -0
- package/dist/serialization/types/CaptionStyleWordAnimationModelExitType.d.ts +10 -0
- package/dist/serialization/types/CaptionStyleWordAnimationModelExitType.js +41 -0
- package/dist/serialization/types/ClientToolConfigInput.d.ts +4 -0
- package/dist/serialization/types/ClientToolConfigInput.js +4 -0
- package/dist/serialization/types/ClientToolConfigOutput.d.ts +4 -0
- package/dist/serialization/types/ClientToolConfigOutput.js +4 -0
- package/dist/serialization/types/ConversationHistoryAnalysisCommonModel.d.ts +1 -0
- package/dist/serialization/types/ConversationHistoryAnalysisCommonModel.js +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInput.d.ts +2 -2
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInput.js +2 -2
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +12 -0
- package/dist/serialization/types/{BodyCreatePodcastV1ProjectsPodcastCreatePostSource.js → ConversationHistoryTranscriptCommonModelInputToolResultsItem.js} +6 -8
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +2 -2
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutput.js +2 -2
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +12 -0
- package/{serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePostSource.js → dist/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.js} +6 -8
- package/dist/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +21 -0
- package/dist/serialization/types/{ConversationHistoryTranscriptToolResultCommonModel.js → ConversationHistoryTranscriptOtherToolsResultCommonModel.js} +6 -3
- package/dist/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.d.ts +10 -0
- package/dist/serialization/types/{BodyAddProjectV1ProjectsAddPostTargetAudience.js → ConversationHistoryTranscriptOtherToolsResultCommonModelType.js} +2 -2
- package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModel.d.ts +22 -0
- package/dist/serialization/types/{BodyEditChapterV1ProjectsProjectIdChaptersChapterIdPatch.js → ConversationHistoryTranscriptSystemToolResultCommonModel.js} +13 -5
- package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +50 -0
- package/dist/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.js +67 -0
- package/dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModel.d.ts +2 -1
- package/dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModel.js +2 -1
- package/dist/serialization/types/ConversationInitiationClientDataInternal.d.ts +2 -0
- package/dist/serialization/types/ConversationInitiationClientDataInternal.js +2 -0
- package/dist/serialization/types/ConversationInitiationClientDataRequestInput.d.ts +2 -0
- package/dist/serialization/types/ConversationInitiationClientDataRequestInput.js +2 -0
- package/dist/serialization/types/ConversationInitiationClientDataRequestOutput.d.ts +2 -0
- package/dist/serialization/types/ConversationInitiationClientDataRequestOutput.js +2 -0
- package/dist/serialization/types/ConversationInitiationSource.d.ts +1 -1
- package/dist/serialization/types/ConversationInitiationSource.js +1 -0
- package/dist/serialization/types/ConversationInitiationSourceInfo.d.ts +14 -0
- package/dist/serialization/types/{BodyAddToKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost.js → ConversationInitiationSourceInfo.js} +5 -5
- package/dist/serialization/types/ConversationSimulationSpecification.d.ts +1 -1
- package/dist/serialization/types/ConversationSummaryResponseModel.d.ts +4 -0
- package/dist/serialization/types/ConversationSummaryResponseModel.js +4 -0
- package/dist/serialization/types/ConversationSummaryResponseModelDirection.d.ts +10 -0
- package/dist/serialization/types/ConversationSummaryResponseModelDirection.js +41 -0
- package/dist/serialization/types/ConversationalConfig.d.ts +1 -1
- package/dist/serialization/types/DubbedSegment.d.ts +2 -0
- package/dist/serialization/types/DubbedSegment.js +2 -0
- package/dist/serialization/types/DynamicVariableAssignment.d.ts +14 -0
- package/dist/serialization/types/DynamicVariableAssignment.js +45 -0
- package/dist/serialization/types/DynamicVariableUpdateCommonModel.d.ts +17 -0
- package/dist/serialization/types/DynamicVariableUpdateCommonModel.js +48 -0
- package/dist/serialization/types/EndCallToolResultModel.d.ts +14 -0
- package/dist/serialization/types/EndCallToolResultModel.js +45 -0
- package/dist/serialization/types/FeaturesUsageCommonModel.d.ts +5 -0
- package/dist/serialization/types/FeaturesUsageCommonModel.js +5 -0
- package/dist/serialization/types/GetAgentResponseModel.d.ts +0 -1
- package/dist/serialization/types/GetAgentResponseModel.js +0 -1
- package/dist/serialization/types/LanguageDetectionToolResultModel.d.ts +14 -0
- package/{serialization/types/AgentBan.js → dist/serialization/types/LanguageDetectionToolResultModel.js} +4 -5
- package/dist/serialization/types/Llm.d.ts +1 -1
- package/dist/serialization/types/Llm.js +14 -0
- package/dist/serialization/types/MultichannelSpeechToTextResponseModel.d.ts +13 -0
- package/dist/serialization/types/MultichannelSpeechToTextResponseModel.js +44 -0
- package/dist/serialization/types/PlayDtmfResultErrorModel.d.ts +14 -0
- package/dist/serialization/types/PlayDtmfResultErrorModel.js +45 -0
- package/dist/serialization/types/PlayDtmfResultSuccessModel.d.ts +14 -0
- package/dist/serialization/types/{AgentBan.js → PlayDtmfResultSuccessModel.js} +4 -5
- package/dist/serialization/types/ProjectExtendedResponse.d.ts +3 -0
- package/dist/serialization/types/ProjectExtendedResponse.js +3 -0
- package/dist/serialization/types/ProjectResponse.d.ts +3 -0
- package/dist/serialization/types/ProjectResponse.js +3 -0
- package/dist/serialization/types/PromptAgentApiModelInputToolsItem.d.ts +2 -2
- package/dist/serialization/types/PromptAgentApiModelInputToolsItem.js +3 -2
- package/dist/serialization/types/PromptAgentApiModelOutputToolsItem.d.ts +2 -2
- package/dist/serialization/types/PromptAgentApiModelOutputToolsItem.js +3 -2
- package/dist/serialization/types/PromptAgentApiModelOverride.d.ts +1 -0
- package/dist/serialization/types/PromptAgentApiModelOverride.js +1 -0
- package/dist/serialization/types/PromptAgentApiModelOverrideConfig.d.ts +1 -0
- package/dist/serialization/types/PromptAgentApiModelOverrideConfig.js +1 -0
- package/dist/serialization/types/SaveVoicePreviewRequest.d.ts +10 -0
- package/dist/serialization/types/SaveVoicePreviewRequest.js +41 -0
- package/dist/serialization/types/SegmentSubtitleFrame.d.ts +14 -0
- package/dist/serialization/types/SegmentSubtitleFrame.js +45 -0
- package/dist/serialization/types/SkipTurnToolResponseModel.d.ts +13 -0
- package/dist/serialization/types/SkipTurnToolResponseModel.js +44 -0
- package/dist/serialization/types/SpeakerSegment.d.ts +2 -0
- package/dist/serialization/types/SpeakerSegment.js +2 -0
- package/dist/serialization/types/SpeechToTextChunkResponseModel.d.ts +1 -0
- package/dist/serialization/types/SpeechToTextChunkResponseModel.js +1 -0
- package/dist/serialization/types/SpeechToTextWebhookResponseModel.d.ts +13 -0
- package/dist/serialization/types/SpeechToTextWebhookResponseModel.js +44 -0
- package/dist/serialization/types/SystemToolConfigInput.d.ts +4 -0
- package/dist/serialization/types/SystemToolConfigInput.js +4 -0
- package/dist/serialization/types/SystemToolConfigInputParams.d.ts +5 -1
- package/dist/serialization/types/SystemToolConfigInputParams.js +2 -0
- package/dist/serialization/types/SystemToolConfigOutput.d.ts +4 -0
- package/dist/serialization/types/SystemToolConfigOutput.js +4 -0
- package/dist/serialization/types/SystemToolConfigOutputParams.d.ts +5 -1
- package/dist/serialization/types/SystemToolConfigOutputParams.js +2 -0
- package/dist/serialization/types/TokenResponseModel.d.ts +12 -0
- package/dist/serialization/types/TokenResponseModel.js +43 -0
- package/dist/serialization/types/Tool.d.ts +3 -0
- package/dist/serialization/types/Tool.js +3 -0
- package/dist/serialization/types/ToolRequestModelToolConfig.d.ts +2 -2
- package/dist/serialization/types/ToolRequestModelToolConfig.js +3 -2
- package/dist/serialization/types/ToolResponseModel.d.ts +2 -0
- package/dist/serialization/types/ToolResponseModel.js +2 -0
- package/dist/serialization/types/ToolResponseModelToolConfig.d.ts +2 -2
- package/dist/serialization/types/ToolResponseModelToolConfig.js +3 -2
- package/dist/serialization/types/ToolType.d.ts +10 -0
- package/dist/serialization/types/ToolType.js +41 -0
- package/dist/serialization/types/ToolUsageStatsResponseModel.d.ts +13 -0
- package/{serialization/types/BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost.js → dist/serialization/types/ToolUsageStatsResponseModel.js} +4 -4
- package/dist/serialization/types/TransferToAgentToolResultErrorModel.d.ts +14 -0
- package/dist/serialization/types/{BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost.js → TransferToAgentToolResultErrorModel.js} +5 -3
- package/dist/serialization/types/TransferToAgentToolResultSuccessModel.d.ts +18 -0
- package/dist/serialization/types/TransferToAgentToolResultSuccessModel.js +49 -0
- package/dist/serialization/types/TransferToNumberResultErrorModel.d.ts +14 -0
- package/dist/serialization/types/TransferToNumberResultErrorModel.js +45 -0
- package/dist/serialization/types/TransferToNumberResultSipSuccessModel.d.ts +15 -0
- package/dist/serialization/types/TransferToNumberResultSipSuccessModel.js +46 -0
- package/dist/serialization/types/TransferToNumberResultTwilioSuccessModel.d.ts +18 -0
- package/dist/serialization/types/TransferToNumberResultTwilioSuccessModel.js +49 -0
- package/dist/serialization/types/UpdatePronunciationDictionariesRequest.d.ts +2 -6
- package/dist/serialization/types/UpdatePronunciationDictionariesRequest.js +1 -5
- package/dist/serialization/types/VoiceResponseModelSafetyControl.d.ts +1 -1
- package/dist/serialization/types/VoiceResponseModelSafetyControl.js +1 -8
- package/dist/serialization/types/VoicemailDetectionToolConfig.d.ts +12 -0
- package/dist/serialization/types/VoicemailDetectionToolConfig.js +43 -0
- package/dist/serialization/types/WebhookToolConfigInput.d.ts +4 -0
- package/dist/serialization/types/WebhookToolConfigInput.js +4 -0
- package/dist/serialization/types/WebhookToolConfigOutput.d.ts +4 -0
- package/dist/serialization/types/WebhookToolConfigOutput.js +4 -0
- package/dist/serialization/types/WidgetConfig.d.ts +2 -0
- package/dist/serialization/types/WidgetConfig.js +2 -0
- package/dist/serialization/types/WidgetConfigResponse.d.ts +2 -0
- package/dist/serialization/types/WidgetConfigResponse.js +2 -0
- package/dist/serialization/types/WorkspaceApiKeyListResponseModel.d.ts +13 -0
- package/dist/serialization/types/WorkspaceApiKeyListResponseModel.js +44 -0
- package/dist/serialization/types/WorkspaceApiKeyResponseModel.d.ts +21 -0
- package/dist/serialization/types/WorkspaceApiKeyResponseModel.js +52 -0
- package/dist/serialization/types/WorkspaceApiKeyResponseModelPermissionsItem.d.ts +10 -0
- package/dist/serialization/types/WorkspaceApiKeyResponseModelPermissionsItem.js +67 -0
- package/dist/serialization/types/WorkspaceCreateApiKeyResponseModel.d.ts +12 -0
- package/dist/serialization/types/WorkspaceCreateApiKeyResponseModel.js +43 -0
- package/dist/serialization/types/WorkspaceResourceType.d.ts +1 -1
- package/dist/serialization/types/WorkspaceResourceType.js +1 -0
- package/dist/serialization/types/WorkspaceServiceAccountListResponseModel.d.ts +13 -0
- package/dist/serialization/types/WorkspaceServiceAccountListResponseModel.js +44 -0
- package/dist/serialization/types/WorkspaceServiceAccountResponseModel.d.ts +16 -0
- package/dist/serialization/types/WorkspaceServiceAccountResponseModel.js +47 -0
- package/dist/serialization/types/index.d.ts +54 -24
- package/dist/serialization/types/index.js +54 -24
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +11 -11
- package/reference.md +476 -74
- package/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.d.ts +0 -1
- package/serialization/resources/conversationalAi/resources/agents/client/requests/BodyCreateAgentV1ConvaiAgentsCreatePost.js +0 -1
- package/serialization/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost.js +1 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost.js +1 -0
- package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.d.ts +0 -1
- package/serialization/resources/conversationalAi/resources/agents/client/requests/UpdateAgentRequest.js +0 -1
- package/serialization/resources/conversationalAi/resources/conversations/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/conversations/index.js +1 -0
- package/serialization/resources/conversationalAi/resources/conversations/types/ConversationsListRequestSummaryMode.d.ts +10 -0
- package/serialization/resources/conversationalAi/resources/conversations/types/ConversationsListRequestSummaryMode.js +41 -0
- package/serialization/resources/conversationalAi/resources/conversations/types/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/conversations/types/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/index.d.ts +2 -1
- package/serialization/resources/conversationalAi/resources/index.js +3 -2
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +2 -1
- package/serialization/resources/serviceAccounts/index.d.ts +1 -0
- package/serialization/resources/serviceAccounts/index.js +17 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/client/index.d.ts +1 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/client/index.js +17 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/client/requests/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPost.d.ts +15 -0
- package/serialization/{types/BodyEditBasicProjectInfoV1ProjectsProjectIdPost.js → resources/serviceAccounts/resources/apiKeys/client/requests/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPost.js} +6 -9
- package/serialization/resources/serviceAccounts/resources/apiKeys/client/requests/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatch.d.ts +16 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/client/requests/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatch.js +47 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/client/requests/index.d.ts +2 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/client/requests/index.js +7 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/index.d.ts +2 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/index.js +18 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.d.ts +11 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.js +45 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts +10 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js +67 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.d.ts +11 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.js +45 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts +10 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js +67 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +4 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/index.js +20 -0
- package/serialization/resources/serviceAccounts/resources/index.d.ts +3 -0
- package/serialization/resources/serviceAccounts/resources/index.js +42 -0
- package/serialization/resources/speechToText/types/SpeechToTextConvertResponse.d.ts +13 -0
- package/serialization/resources/speechToText/types/SpeechToTextConvertResponse.js +48 -0
- package/serialization/resources/speechToText/types/index.d.ts +1 -0
- package/serialization/resources/speechToText/types/index.js +1 -0
- package/serialization/resources/textToVoice/client/requests/VoiceDesignRequestModel.d.ts +2 -0
- package/serialization/resources/textToVoice/client/requests/VoiceDesignRequestModel.js +2 -0
- package/serialization/resources/textToVoice/client/requests/index.d.ts +0 -1
- package/serialization/resources/textToVoice/client/requests/index.js +1 -3
- package/serialization/types/AddProjectRequest.d.ts +2 -34
- package/serialization/types/AddProjectRequest.js +1 -33
- package/serialization/types/AgentConfig.d.ts +9 -2
- package/serialization/types/AgentConfig.js +8 -1
- package/serialization/types/AgentSummaryResponseModel.d.ts +1 -0
- package/serialization/types/AgentSummaryResponseModel.js +1 -0
- package/serialization/types/AsrProvider.d.ts +1 -1
- package/serialization/types/AsrProvider.js +1 -1
- package/serialization/types/BatchCallRecipientStatus.d.ts +1 -1
- package/serialization/types/BatchCallRecipientStatus.js +1 -1
- package/serialization/types/BuiltInToolsInput.d.ts +1 -0
- package/serialization/types/BuiltInToolsInput.js +1 -0
- package/serialization/types/BuiltInToolsOutput.d.ts +1 -0
- package/serialization/types/BuiltInToolsOutput.js +1 -0
- package/serialization/types/CaptionStyleCharacterAnimationModel.d.ts +15 -0
- package/serialization/types/CaptionStyleCharacterAnimationModel.js +46 -0
- package/serialization/types/CaptionStyleCharacterAnimationModelEnterType.d.ts +10 -0
- package/serialization/types/CaptionStyleCharacterAnimationModelEnterType.js +41 -0
- package/serialization/types/CaptionStyleCharacterAnimationModelExitType.d.ts +10 -0
- package/serialization/types/CaptionStyleCharacterAnimationModelExitType.js +41 -0
- package/serialization/types/CaptionStyleHorizontalPlacementModel.d.ts +14 -0
- package/serialization/types/CaptionStyleHorizontalPlacementModel.js +45 -0
- package/serialization/types/CaptionStyleHorizontalPlacementModelAlign.d.ts +10 -0
- package/serialization/types/CaptionStyleHorizontalPlacementModelAlign.js +41 -0
- package/serialization/types/CaptionStyleModel.d.ts +43 -0
- package/serialization/types/CaptionStyleModel.js +74 -0
- package/serialization/types/CaptionStyleModelTextAlign.d.ts +10 -0
- package/serialization/types/CaptionStyleModelTextAlign.js +41 -0
- package/serialization/types/CaptionStyleModelTextStyle.d.ts +10 -0
- package/serialization/types/CaptionStyleModelTextStyle.js +41 -0
- package/serialization/types/CaptionStyleModelTextWeight.d.ts +10 -0
- package/serialization/types/CaptionStyleModelTextWeight.js +41 -0
- package/serialization/types/CaptionStyleSectionAnimationModel.d.ts +15 -0
- package/serialization/types/CaptionStyleSectionAnimationModel.js +46 -0
- package/serialization/types/CaptionStyleSectionAnimationModelEnterType.d.ts +10 -0
- package/serialization/types/CaptionStyleSectionAnimationModelEnterType.js +41 -0
- package/serialization/types/CaptionStyleSectionAnimationModelExitType.d.ts +10 -0
- package/serialization/types/CaptionStyleSectionAnimationModelExitType.js +41 -0
- package/serialization/types/CaptionStyleTemplateModel.d.ts +13 -0
- package/serialization/types/CaptionStyleTemplateModel.js +44 -0
- package/serialization/types/CaptionStyleVerticalPlacementModel.d.ts +14 -0
- package/serialization/types/CaptionStyleVerticalPlacementModel.js +45 -0
- package/serialization/types/CaptionStyleVerticalPlacementModelAlign.d.ts +10 -0
- package/serialization/types/CaptionStyleVerticalPlacementModelAlign.js +41 -0
- package/serialization/types/CaptionStyleWordAnimationModel.d.ts +15 -0
- package/serialization/types/{BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost.js → CaptionStyleWordAnimationModel.js} +6 -3
- package/serialization/types/CaptionStyleWordAnimationModelEnterType.d.ts +10 -0
- package/serialization/types/CaptionStyleWordAnimationModelEnterType.js +41 -0
- package/serialization/types/CaptionStyleWordAnimationModelExitType.d.ts +10 -0
- package/serialization/types/CaptionStyleWordAnimationModelExitType.js +41 -0
- package/serialization/types/ClientToolConfigInput.d.ts +4 -0
- package/serialization/types/ClientToolConfigInput.js +4 -0
- package/serialization/types/ClientToolConfigOutput.d.ts +4 -0
- package/serialization/types/ClientToolConfigOutput.js +4 -0
- package/serialization/types/ConversationHistoryAnalysisCommonModel.d.ts +1 -0
- package/serialization/types/ConversationHistoryAnalysisCommonModel.js +1 -0
- package/serialization/types/ConversationHistoryTranscriptCommonModelInput.d.ts +2 -2
- package/serialization/types/ConversationHistoryTranscriptCommonModelInput.js +2 -2
- package/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +12 -0
- package/serialization/types/{BodyAddProjectV1ProjectsAddPostTargetAudience.js → ConversationHistoryTranscriptCommonModelInputToolResultsItem.js} +7 -2
- package/serialization/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +2 -2
- package/serialization/types/ConversationHistoryTranscriptCommonModelOutput.js +2 -2
- package/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +12 -0
- package/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.js +46 -0
- package/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModel.d.ts +21 -0
- package/serialization/types/{ConversationHistoryTranscriptToolResultCommonModel.js → ConversationHistoryTranscriptOtherToolsResultCommonModel.js} +6 -3
- package/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.d.ts +10 -0
- package/{dist/serialization/types/BodyAddProjectV1ProjectsAddPostApplyTextNormalization.js → serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.js} +2 -2
- package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModel.d.ts +22 -0
- package/serialization/types/{BodyEditChapterV1ProjectsProjectIdChaptersChapterIdPatch.js → ConversationHistoryTranscriptSystemToolResultCommonModel.js} +13 -5
- package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.d.ts +50 -0
- package/serialization/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.js +67 -0
- package/serialization/types/ConversationHistoryTranscriptToolCallCommonModel.d.ts +2 -1
- package/serialization/types/ConversationHistoryTranscriptToolCallCommonModel.js +2 -1
- package/serialization/types/ConversationInitiationClientDataInternal.d.ts +2 -0
- package/serialization/types/ConversationInitiationClientDataInternal.js +2 -0
- package/serialization/types/ConversationInitiationClientDataRequestInput.d.ts +2 -0
- package/serialization/types/ConversationInitiationClientDataRequestInput.js +2 -0
- package/serialization/types/ConversationInitiationClientDataRequestOutput.d.ts +2 -0
- package/serialization/types/ConversationInitiationClientDataRequestOutput.js +2 -0
- package/serialization/types/ConversationInitiationSource.d.ts +1 -1
- package/serialization/types/ConversationInitiationSource.js +1 -0
- package/serialization/types/ConversationInitiationSourceInfo.d.ts +14 -0
- package/serialization/types/ConversationInitiationSourceInfo.js +45 -0
- package/serialization/types/ConversationSimulationSpecification.d.ts +1 -1
- package/serialization/types/ConversationSummaryResponseModel.d.ts +4 -0
- package/serialization/types/ConversationSummaryResponseModel.js +4 -0
- package/serialization/types/ConversationSummaryResponseModelDirection.d.ts +10 -0
- package/serialization/types/ConversationSummaryResponseModelDirection.js +41 -0
- package/serialization/types/ConversationalConfig.d.ts +1 -1
- package/serialization/types/DubbedSegment.d.ts +2 -0
- package/serialization/types/DubbedSegment.js +2 -0
- package/serialization/types/DynamicVariableAssignment.d.ts +14 -0
- package/serialization/types/DynamicVariableAssignment.js +45 -0
- package/serialization/types/DynamicVariableUpdateCommonModel.d.ts +17 -0
- package/serialization/types/DynamicVariableUpdateCommonModel.js +48 -0
- package/serialization/types/EndCallToolResultModel.d.ts +14 -0
- package/serialization/types/EndCallToolResultModel.js +45 -0
- package/serialization/types/FeaturesUsageCommonModel.d.ts +5 -0
- package/serialization/types/FeaturesUsageCommonModel.js +5 -0
- package/serialization/types/GetAgentResponseModel.d.ts +0 -1
- package/serialization/types/GetAgentResponseModel.js +0 -1
- package/serialization/types/LanguageDetectionToolResultModel.d.ts +14 -0
- package/serialization/types/LanguageDetectionToolResultModel.js +45 -0
- package/serialization/types/Llm.d.ts +1 -1
- package/serialization/types/Llm.js +14 -0
- package/serialization/types/MultichannelSpeechToTextResponseModel.d.ts +13 -0
- package/serialization/types/MultichannelSpeechToTextResponseModel.js +44 -0
- package/serialization/types/PlayDtmfResultErrorModel.d.ts +14 -0
- package/serialization/types/PlayDtmfResultErrorModel.js +45 -0
- package/serialization/types/PlayDtmfResultSuccessModel.d.ts +14 -0
- package/{dist/serialization/types/BodyAddToKnowledgeBaseV1ConvaiAddToKnowledgeBasePost.js → serialization/types/PlayDtmfResultSuccessModel.js} +5 -5
- package/serialization/types/ProjectExtendedResponse.d.ts +3 -0
- package/serialization/types/ProjectExtendedResponse.js +3 -0
- package/serialization/types/ProjectResponse.d.ts +3 -0
- package/serialization/types/ProjectResponse.js +3 -0
- package/serialization/types/PromptAgentApiModelInputToolsItem.d.ts +2 -2
- package/serialization/types/PromptAgentApiModelInputToolsItem.js +3 -2
- package/serialization/types/PromptAgentApiModelOutputToolsItem.d.ts +2 -2
- package/serialization/types/PromptAgentApiModelOutputToolsItem.js +3 -2
- package/serialization/types/PromptAgentApiModelOverride.d.ts +1 -0
- package/serialization/types/PromptAgentApiModelOverride.js +1 -0
- package/serialization/types/PromptAgentApiModelOverrideConfig.d.ts +1 -0
- package/serialization/types/PromptAgentApiModelOverrideConfig.js +1 -0
- package/serialization/types/SaveVoicePreviewRequest.d.ts +10 -0
- package/serialization/types/SaveVoicePreviewRequest.js +41 -0
- package/serialization/types/SegmentSubtitleFrame.d.ts +14 -0
- package/serialization/types/SegmentSubtitleFrame.js +45 -0
- package/serialization/types/SkipTurnToolResponseModel.d.ts +13 -0
- package/serialization/types/SkipTurnToolResponseModel.js +44 -0
- package/serialization/types/SpeakerSegment.d.ts +2 -0
- package/serialization/types/SpeakerSegment.js +2 -0
- package/serialization/types/SpeechToTextChunkResponseModel.d.ts +1 -0
- package/serialization/types/SpeechToTextChunkResponseModel.js +1 -0
- package/serialization/types/SpeechToTextWebhookResponseModel.d.ts +13 -0
- package/serialization/types/SpeechToTextWebhookResponseModel.js +44 -0
- package/serialization/types/SystemToolConfigInput.d.ts +4 -0
- package/serialization/types/SystemToolConfigInput.js +4 -0
- package/serialization/types/SystemToolConfigInputParams.d.ts +5 -1
- package/serialization/types/SystemToolConfigInputParams.js +2 -0
- package/serialization/types/SystemToolConfigOutput.d.ts +4 -0
- package/serialization/types/SystemToolConfigOutput.js +4 -0
- package/serialization/types/SystemToolConfigOutputParams.d.ts +5 -1
- package/serialization/types/SystemToolConfigOutputParams.js +2 -0
- package/serialization/types/TokenResponseModel.d.ts +12 -0
- package/serialization/types/TokenResponseModel.js +43 -0
- package/serialization/types/Tool.d.ts +3 -0
- package/serialization/types/Tool.js +3 -0
- package/serialization/types/ToolRequestModelToolConfig.d.ts +2 -2
- package/serialization/types/ToolRequestModelToolConfig.js +3 -2
- package/serialization/types/ToolResponseModel.d.ts +2 -0
- package/serialization/types/ToolResponseModel.js +2 -0
- package/serialization/types/ToolResponseModelToolConfig.d.ts +2 -2
- package/serialization/types/ToolResponseModelToolConfig.js +3 -2
- package/serialization/types/ToolType.d.ts +10 -0
- package/serialization/types/ToolType.js +41 -0
- package/serialization/types/ToolUsageStatsResponseModel.d.ts +13 -0
- package/{dist/serialization/types/BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost.js → serialization/types/ToolUsageStatsResponseModel.js} +4 -4
- package/serialization/types/TransferToAgentToolResultErrorModel.d.ts +14 -0
- package/serialization/types/TransferToAgentToolResultErrorModel.js +45 -0
- package/serialization/types/TransferToAgentToolResultSuccessModel.d.ts +18 -0
- package/serialization/types/TransferToAgentToolResultSuccessModel.js +49 -0
- package/serialization/types/TransferToNumberResultErrorModel.d.ts +14 -0
- package/serialization/types/TransferToNumberResultErrorModel.js +45 -0
- package/serialization/types/TransferToNumberResultSipSuccessModel.d.ts +15 -0
- package/serialization/types/TransferToNumberResultSipSuccessModel.js +46 -0
- package/serialization/types/TransferToNumberResultTwilioSuccessModel.d.ts +18 -0
- package/serialization/types/TransferToNumberResultTwilioSuccessModel.js +49 -0
- package/serialization/types/UpdatePronunciationDictionariesRequest.d.ts +2 -6
- package/serialization/types/UpdatePronunciationDictionariesRequest.js +1 -5
- package/serialization/types/VoiceResponseModelSafetyControl.d.ts +1 -1
- package/serialization/types/VoiceResponseModelSafetyControl.js +1 -8
- package/serialization/types/VoicemailDetectionToolConfig.d.ts +12 -0
- package/serialization/types/VoicemailDetectionToolConfig.js +43 -0
- package/serialization/types/WebhookToolConfigInput.d.ts +4 -0
- package/serialization/types/WebhookToolConfigInput.js +4 -0
- package/serialization/types/WebhookToolConfigOutput.d.ts +4 -0
- package/serialization/types/WebhookToolConfigOutput.js +4 -0
- package/serialization/types/WidgetConfig.d.ts +2 -0
- package/serialization/types/WidgetConfig.js +2 -0
- package/serialization/types/WidgetConfigResponse.d.ts +2 -0
- package/serialization/types/WidgetConfigResponse.js +2 -0
- package/serialization/types/WorkspaceApiKeyListResponseModel.d.ts +13 -0
- package/serialization/types/WorkspaceApiKeyListResponseModel.js +44 -0
- package/serialization/types/WorkspaceApiKeyResponseModel.d.ts +21 -0
- package/serialization/types/WorkspaceApiKeyResponseModel.js +52 -0
- package/serialization/types/WorkspaceApiKeyResponseModelPermissionsItem.d.ts +10 -0
- package/serialization/types/WorkspaceApiKeyResponseModelPermissionsItem.js +67 -0
- package/serialization/types/WorkspaceCreateApiKeyResponseModel.d.ts +12 -0
- package/serialization/types/WorkspaceCreateApiKeyResponseModel.js +43 -0
- package/serialization/types/WorkspaceResourceType.d.ts +1 -1
- package/serialization/types/WorkspaceResourceType.js +1 -0
- package/serialization/types/WorkspaceServiceAccountListResponseModel.d.ts +13 -0
- package/serialization/types/WorkspaceServiceAccountListResponseModel.js +44 -0
- package/serialization/types/WorkspaceServiceAccountResponseModel.d.ts +16 -0
- package/serialization/types/WorkspaceServiceAccountResponseModel.js +47 -0
- package/serialization/types/index.d.ts +54 -24
- package/serialization/types/index.js +54 -24
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/textToVoice/client/requests/SaveVoicePreviewRequest.d.ts +0 -23
- package/api/types/BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost.d.ts +0 -9
- package/api/types/BodyAddProjectV1ProjectsAddPostApplyTextNormalization.d.ts +0 -10
- package/api/types/BodyAddProjectV1ProjectsAddPostApplyTextNormalization.js +0 -12
- package/api/types/BodyAddProjectV1ProjectsAddPostFiction.d.ts +0 -8
- package/api/types/BodyAddProjectV1ProjectsAddPostFiction.js +0 -10
- package/api/types/BodyAddProjectV1ProjectsAddPostSourceType.d.ts +0 -11
- package/api/types/BodyAddProjectV1ProjectsAddPostSourceType.js +0 -13
- package/api/types/BodyAddProjectV1ProjectsAddPostTargetAudience.d.ts +0 -10
- package/api/types/BodyAddProjectV1ProjectsAddPostTargetAudience.js +0 -12
- package/api/types/BodyAddToKnowledgeBaseV1ConvaiAddToKnowledgeBasePost.d.ts +0 -11
- package/api/types/BodyAddToKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost.d.ts +0 -11
- package/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.d.ts +0 -94
- package/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePostDurationScale.d.ts +0 -15
- package/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePostDurationScale.js +0 -11
- package/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePostMode.d.ts +0 -16
- package/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePostQualityPreset.d.ts +0 -18
- package/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePostQualityPreset.js +0 -13
- package/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePostSource.d.ts +0 -8
- package/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePostSourceItem.d.ts +0 -13
- package/api/types/BodyEditBasicProjectInfoV1ProjectsProjectIdPost.d.ts +0 -19
- package/api/types/BodyEditChapterV1ProjectsProjectIdChaptersChapterIdPatch.d.ts +0 -10
- package/api/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.d.ts +0 -19
- package/api/types/BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost.d.ts +0 -7
- package/api/types/BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost.d.ts +0 -7
- package/api/types/ConversationHistoryTranscriptToolResultCommonModel.d.ts +0 -12
- package/api/types/McpToolConfigInput.d.ts +0 -29
- package/api/types/McpToolConfigOutput.d.ts +0 -29
- package/dist/api/resources/textToVoice/client/requests/SaveVoicePreviewRequest.d.ts +0 -23
- package/dist/api/types/BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost.d.ts +0 -9
- package/dist/api/types/BodyAddProjectV1ProjectsAddPostApplyTextNormalization.d.ts +0 -10
- package/dist/api/types/BodyAddProjectV1ProjectsAddPostApplyTextNormalization.js +0 -12
- package/dist/api/types/BodyAddProjectV1ProjectsAddPostFiction.d.ts +0 -8
- package/dist/api/types/BodyAddProjectV1ProjectsAddPostFiction.js +0 -10
- package/dist/api/types/BodyAddProjectV1ProjectsAddPostSourceType.d.ts +0 -11
- package/dist/api/types/BodyAddProjectV1ProjectsAddPostSourceType.js +0 -13
- package/dist/api/types/BodyAddProjectV1ProjectsAddPostTargetAudience.d.ts +0 -10
- package/dist/api/types/BodyAddProjectV1ProjectsAddPostTargetAudience.js +0 -12
- package/dist/api/types/BodyAddToKnowledgeBaseV1ConvaiAddToKnowledgeBasePost.d.ts +0 -11
- package/dist/api/types/BodyAddToKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost.d.ts +0 -11
- package/dist/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.d.ts +0 -94
- package/dist/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePostDurationScale.d.ts +0 -15
- package/dist/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePostDurationScale.js +0 -11
- package/dist/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePostMode.d.ts +0 -16
- package/dist/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePostQualityPreset.d.ts +0 -18
- package/dist/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePostQualityPreset.js +0 -13
- package/dist/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePostSource.d.ts +0 -8
- package/dist/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePostSourceItem.d.ts +0 -13
- package/dist/api/types/BodyEditBasicProjectInfoV1ProjectsProjectIdPost.d.ts +0 -19
- package/dist/api/types/BodyEditChapterV1ProjectsProjectIdChaptersChapterIdPatch.d.ts +0 -10
- package/dist/api/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.d.ts +0 -19
- package/dist/api/types/BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost.d.ts +0 -7
- package/dist/api/types/BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost.d.ts +0 -7
- package/dist/api/types/ConversationHistoryTranscriptToolResultCommonModel.d.ts +0 -12
- package/dist/api/types/McpToolConfigInput.d.ts +0 -29
- package/dist/api/types/McpToolConfigOutput.d.ts +0 -29
- package/dist/serialization/resources/textToVoice/client/requests/SaveVoicePreviewRequest.d.ts +0 -16
- package/dist/serialization/resources/textToVoice/client/requests/SaveVoicePreviewRequest.js +0 -47
- package/dist/serialization/types/AgentBan.d.ts +0 -15
- package/dist/serialization/types/BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost.d.ts +0 -13
- package/dist/serialization/types/BodyAddProjectV1ProjectsAddPostApplyTextNormalization.d.ts +0 -10
- package/dist/serialization/types/BodyAddProjectV1ProjectsAddPostFiction.d.ts +0 -10
- package/dist/serialization/types/BodyAddProjectV1ProjectsAddPostSourceType.d.ts +0 -10
- package/dist/serialization/types/BodyAddProjectV1ProjectsAddPostTargetAudience.d.ts +0 -10
- package/dist/serialization/types/BodyAddToKnowledgeBaseV1ConvaiAddToKnowledgeBasePost.d.ts +0 -14
- package/dist/serialization/types/BodyAddToKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost.d.ts +0 -14
- package/dist/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.d.ts +0 -26
- package/dist/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.js +0 -57
- package/dist/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePostDurationScale.d.ts +0 -10
- package/dist/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePostDurationScale.js +0 -41
- package/dist/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePostMode.d.ts +0 -18
- package/dist/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePostMode.js +0 -51
- package/dist/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePostQualityPreset.d.ts +0 -10
- package/dist/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePostQualityPreset.js +0 -41
- package/dist/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePostSource.d.ts +0 -13
- package/dist/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePostSourceItem.d.ts +0 -18
- package/dist/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePostSourceItem.js +0 -51
- package/dist/serialization/types/BodyEditBasicProjectInfoV1ProjectsProjectIdPost.d.ts +0 -18
- package/dist/serialization/types/BodyEditChapterV1ProjectsProjectIdChaptersChapterIdPatch.d.ts +0 -14
- package/dist/serialization/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.d.ts +0 -15
- package/dist/serialization/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.js +0 -46
- package/dist/serialization/types/BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost.d.ts +0 -12
- package/dist/serialization/types/BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost.d.ts +0 -12
- package/dist/serialization/types/ConversationHistoryTranscriptToolResultCommonModel.d.ts +0 -18
- package/dist/serialization/types/McpToolConfigInput.d.ts +0 -24
- package/dist/serialization/types/McpToolConfigInput.js +0 -56
- package/dist/serialization/types/McpToolConfigOutput.d.ts +0 -24
- package/dist/serialization/types/McpToolConfigOutput.js +0 -56
- package/serialization/resources/textToVoice/client/requests/SaveVoicePreviewRequest.d.ts +0 -16
- package/serialization/resources/textToVoice/client/requests/SaveVoicePreviewRequest.js +0 -47
- package/serialization/types/AgentBan.d.ts +0 -15
- package/serialization/types/BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost.d.ts +0 -13
- package/serialization/types/BodyAddProjectV1ProjectsAddPostApplyTextNormalization.d.ts +0 -10
- package/serialization/types/BodyAddProjectV1ProjectsAddPostApplyTextNormalization.js +0 -41
- package/serialization/types/BodyAddProjectV1ProjectsAddPostFiction.d.ts +0 -10
- package/serialization/types/BodyAddProjectV1ProjectsAddPostSourceType.d.ts +0 -10
- package/serialization/types/BodyAddProjectV1ProjectsAddPostTargetAudience.d.ts +0 -10
- package/serialization/types/BodyAddToKnowledgeBaseV1ConvaiAddToKnowledgeBasePost.d.ts +0 -14
- package/serialization/types/BodyAddToKnowledgeBaseV1ConvaiAddToKnowledgeBasePost.js +0 -45
- package/serialization/types/BodyAddToKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost.d.ts +0 -14
- package/serialization/types/BodyAddToKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost.js +0 -45
- package/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.d.ts +0 -26
- package/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.js +0 -57
- package/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePostDurationScale.d.ts +0 -10
- package/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePostDurationScale.js +0 -41
- package/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePostMode.d.ts +0 -18
- package/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePostMode.js +0 -51
- package/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePostQualityPreset.d.ts +0 -10
- package/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePostQualityPreset.js +0 -41
- package/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePostSource.d.ts +0 -13
- package/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePostSourceItem.d.ts +0 -18
- package/serialization/types/BodyCreatePodcastV1ProjectsPodcastCreatePostSourceItem.js +0 -51
- package/serialization/types/BodyEditBasicProjectInfoV1ProjectsProjectIdPost.d.ts +0 -18
- package/serialization/types/BodyEditChapterV1ProjectsProjectIdChaptersChapterIdPatch.d.ts +0 -14
- package/serialization/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.d.ts +0 -15
- package/serialization/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.js +0 -46
- package/serialization/types/BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost.d.ts +0 -12
- package/serialization/types/BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost.d.ts +0 -12
- package/serialization/types/BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost.js +0 -43
- package/serialization/types/ConversationHistoryTranscriptToolResultCommonModel.d.ts +0 -18
- package/serialization/types/McpToolConfigInput.d.ts +0 -24
- package/serialization/types/McpToolConfigInput.js +0 -56
- package/serialization/types/McpToolConfigOutput.d.ts +0 -24
- package/serialization/types/McpToolConfigOutput.js +0 -56
- /package/api/resources/{textToVoice/client/requests/SaveVoicePreviewRequest.js → conversationalAi/resources/conversations/client/requests/ConversationsGetWebrtcTokenRequest.js} +0 -0
- /package/api/{types/AgentBan.js → resources/serviceAccounts/resources/apiKeys/client/requests/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPost.js} +0 -0
- /package/api/{types/BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost.js → resources/serviceAccounts/resources/apiKeys/client/requests/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatch.js} +0 -0
- /package/api/{types/BodyAddToKnowledgeBaseV1ConvaiAddToKnowledgeBasePost.js → resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.js} +0 -0
- /package/api/{types/BodyAddToKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost.js → resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.js} +0 -0
- /package/api/{types/BodyCreatePodcastV1ProjectsPodcastCreatePost.js → resources/speechToText/types/SpeechToTextConvertResponse.js} +0 -0
- /package/api/types/{BodyCreatePodcastV1ProjectsPodcastCreatePostMode.js → CaptionStyleCharacterAnimationModel.js} +0 -0
- /package/api/types/{BodyCreatePodcastV1ProjectsPodcastCreatePostSource.js → CaptionStyleHorizontalPlacementModel.js} +0 -0
- /package/api/types/{BodyCreatePodcastV1ProjectsPodcastCreatePostSourceItem.js → CaptionStyleModel.js} +0 -0
- /package/api/types/{BodyEditBasicProjectInfoV1ProjectsProjectIdPost.js → CaptionStyleSectionAnimationModel.js} +0 -0
- /package/api/types/{BodyEditChapterV1ProjectsProjectIdChaptersChapterIdPatch.js → CaptionStyleTemplateModel.js} +0 -0
- /package/api/types/{BodyEditProjectContentV1ProjectsProjectIdContentPost.js → CaptionStyleVerticalPlacementModel.js} +0 -0
- /package/api/types/{BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost.js → CaptionStyleWordAnimationModel.js} +0 -0
- /package/api/types/{BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost.js → ConversationHistoryTranscriptCommonModelInputToolResultsItem.js} +0 -0
- /package/api/types/{ConversationHistoryTranscriptToolResultCommonModel.js → ConversationHistoryTranscriptCommonModelOutputToolResultsItem.js} +0 -0
- /package/api/types/{McpToolConfigInput.js → ConversationHistoryTranscriptOtherToolsResultCommonModel.js} +0 -0
- /package/api/types/{McpToolConfigOutput.js → ConversationHistoryTranscriptSystemToolResultCommonModel.js} +0 -0
- /package/{dist/api/resources/textToVoice/client/requests/SaveVoicePreviewRequest.js → api/types/ConversationHistoryTranscriptSystemToolResultCommonModelResult.js} +0 -0
- /package/{dist/api/types/AgentBan.js → api/types/ConversationInitiationSourceInfo.js} +0 -0
- /package/{dist/api/types/BodyAddChapterToAProjectV1ProjectsProjectIdChaptersAddPost.js → api/types/DynamicVariableAssignment.js} +0 -0
- /package/{dist/api/types/BodyAddToKnowledgeBaseV1ConvaiAddToKnowledgeBasePost.js → api/types/DynamicVariableUpdateCommonModel.js} +0 -0
- /package/{dist/api/types/BodyAddToKnowledgeBaseV1ConvaiAgentsAgentIdAddToKnowledgeBasePost.js → api/types/EndCallToolResultModel.js} +0 -0
- /package/{dist/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePost.js → api/types/LanguageDetectionToolResultModel.js} +0 -0
- /package/{dist/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePostMode.js → api/types/MultichannelSpeechToTextResponseModel.js} +0 -0
- /package/{dist/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePostSource.js → api/types/PlayDtmfResultErrorModel.js} +0 -0
- /package/{dist/api/types/BodyCreatePodcastV1ProjectsPodcastCreatePostSourceItem.js → api/types/PlayDtmfResultSuccessModel.js} +0 -0
- /package/{dist/api/types/BodyEditBasicProjectInfoV1ProjectsProjectIdPost.js → api/types/SaveVoicePreviewRequest.js} +0 -0
- /package/{dist/api/types/BodyEditChapterV1ProjectsProjectIdChaptersChapterIdPatch.js → api/types/SegmentSubtitleFrame.js} +0 -0
- /package/{dist/api/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.js → api/types/SkipTurnToolResponseModel.js} +0 -0
- /package/{dist/api/types/BodyStreamChapterAudioV1ProjectsProjectIdChaptersChapterIdSnapshotsChapterSnapshotIdStreamPost.js → api/types/SpeechToTextWebhookResponseModel.js} +0 -0
- /package/{dist/api/types/BodyStreamProjectAudioV1ProjectsProjectIdSnapshotsProjectSnapshotIdStreamPost.js → api/types/TokenResponseModel.js} +0 -0
- /package/{dist/api/types/ConversationHistoryTranscriptToolResultCommonModel.js → api/types/ToolUsageStatsResponseModel.js} +0 -0
- /package/{dist/api/types/McpToolConfigInput.js → api/types/TransferToAgentToolResultErrorModel.js} +0 -0
- /package/{dist/api/types/McpToolConfigOutput.js → api/types/TransferToAgentToolResultSuccessModel.js} +0 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import * as ElevenLabs from "../../../index";
|
|
7
|
+
import { ApiKeys } from "../resources/apiKeys/client/Client";
|
|
8
|
+
export declare namespace ServiceAccounts {
|
|
9
|
+
interface Options {
|
|
10
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
11
|
+
/** Specify a custom URL to connect the client to. */
|
|
12
|
+
baseUrl?: core.Supplier<string>;
|
|
13
|
+
/** Override the xi-api-key header */
|
|
14
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
15
|
+
/** Additional headers to include in requests. */
|
|
16
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
17
|
+
}
|
|
18
|
+
interface RequestOptions {
|
|
19
|
+
/** The maximum time to wait for a response in seconds. */
|
|
20
|
+
timeoutInSeconds?: number;
|
|
21
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
22
|
+
maxRetries?: number;
|
|
23
|
+
/** A hook to abort the request. */
|
|
24
|
+
abortSignal?: AbortSignal;
|
|
25
|
+
/** Override the xi-api-key header */
|
|
26
|
+
apiKey?: string | undefined;
|
|
27
|
+
/** Additional headers to include in the request. */
|
|
28
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export declare class ServiceAccounts {
|
|
32
|
+
protected readonly _options: ServiceAccounts.Options;
|
|
33
|
+
protected _apiKeys: ApiKeys | undefined;
|
|
34
|
+
constructor(_options?: ServiceAccounts.Options);
|
|
35
|
+
get apiKeys(): ApiKeys;
|
|
36
|
+
/**
|
|
37
|
+
* List all service accounts in the workspace
|
|
38
|
+
*
|
|
39
|
+
* @param {ServiceAccounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
40
|
+
*
|
|
41
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* await client.serviceAccounts.list()
|
|
45
|
+
*/
|
|
46
|
+
list(requestOptions?: ServiceAccounts.RequestOptions): core.HttpResponsePromise<ElevenLabs.WorkspaceServiceAccountListResponseModel>;
|
|
47
|
+
private __list;
|
|
48
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.ServiceAccounts = void 0;
|
|
49
|
+
const environments = __importStar(require("../../../../environments"));
|
|
50
|
+
const core = __importStar(require("../../../../core"));
|
|
51
|
+
const ElevenLabs = __importStar(require("../../../index"));
|
|
52
|
+
const headers_1 = require("../../../../core/headers");
|
|
53
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
54
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
55
|
+
const Client_1 = require("../resources/apiKeys/client/Client");
|
|
56
|
+
class ServiceAccounts {
|
|
57
|
+
constructor(_options = {}) {
|
|
58
|
+
this._options = _options;
|
|
59
|
+
}
|
|
60
|
+
get apiKeys() {
|
|
61
|
+
var _a;
|
|
62
|
+
return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new Client_1.ApiKeys(this._options)));
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* List all service accounts in the workspace
|
|
66
|
+
*
|
|
67
|
+
* @param {ServiceAccounts.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* await client.serviceAccounts.list()
|
|
73
|
+
*/
|
|
74
|
+
list(requestOptions) {
|
|
75
|
+
return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
|
|
76
|
+
}
|
|
77
|
+
__list(requestOptions) {
|
|
78
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
+
var _a, _b, _c;
|
|
80
|
+
const _response = yield core.fetcher({
|
|
81
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, "v1/service-accounts"),
|
|
82
|
+
method: "GET",
|
|
83
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
84
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
85
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
86
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
87
|
+
});
|
|
88
|
+
if (_response.ok) {
|
|
89
|
+
return {
|
|
90
|
+
data: serializers.WorkspaceServiceAccountListResponseModel.parseOrThrow(_response.body, {
|
|
91
|
+
unrecognizedObjectKeys: "passthrough",
|
|
92
|
+
allowUnrecognizedUnionMembers: true,
|
|
93
|
+
allowUnrecognizedEnumValues: true,
|
|
94
|
+
breadcrumbsPrefix: ["response"],
|
|
95
|
+
}),
|
|
96
|
+
rawResponse: _response.rawResponse,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
if (_response.error.reason === "status-code") {
|
|
100
|
+
switch (_response.error.statusCode) {
|
|
101
|
+
case 422:
|
|
102
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
103
|
+
unrecognizedObjectKeys: "passthrough",
|
|
104
|
+
allowUnrecognizedUnionMembers: true,
|
|
105
|
+
allowUnrecognizedEnumValues: true,
|
|
106
|
+
breadcrumbsPrefix: ["response"],
|
|
107
|
+
}), _response.rawResponse);
|
|
108
|
+
default:
|
|
109
|
+
throw new errors.ElevenLabsError({
|
|
110
|
+
statusCode: _response.error.statusCode,
|
|
111
|
+
body: _response.error.body,
|
|
112
|
+
rawResponse: _response.rawResponse,
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
switch (_response.error.reason) {
|
|
117
|
+
case "non-json":
|
|
118
|
+
throw new errors.ElevenLabsError({
|
|
119
|
+
statusCode: _response.error.statusCode,
|
|
120
|
+
body: _response.error.rawBody,
|
|
121
|
+
rawResponse: _response.rawResponse,
|
|
122
|
+
});
|
|
123
|
+
case "timeout":
|
|
124
|
+
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/service-accounts.");
|
|
125
|
+
case "unknown":
|
|
126
|
+
throw new errors.ElevenLabsError({
|
|
127
|
+
message: _response.error.errorMessage,
|
|
128
|
+
rawResponse: _response.rawResponse,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
exports.ServiceAccounts = ServiceAccounts;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resources"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
import * as ElevenLabs from "../../../../../index";
|
|
7
|
+
export declare namespace ApiKeys {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
/** Override the xi-api-key header */
|
|
13
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
14
|
+
/** Additional headers to include in requests. */
|
|
15
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Override the xi-api-key header */
|
|
25
|
+
apiKey?: string | undefined;
|
|
26
|
+
/** Additional headers to include in the request. */
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export declare class ApiKeys {
|
|
31
|
+
protected readonly _options: ApiKeys.Options;
|
|
32
|
+
constructor(_options?: ApiKeys.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Get all API keys for a service account
|
|
35
|
+
*
|
|
36
|
+
* @param {string} serviceAccountUserId
|
|
37
|
+
* @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.serviceAccounts.apiKeys.list("service_account_user_id")
|
|
43
|
+
*/
|
|
44
|
+
list(serviceAccountUserId: string, requestOptions?: ApiKeys.RequestOptions): core.HttpResponsePromise<ElevenLabs.WorkspaceApiKeyListResponseModel>;
|
|
45
|
+
private __list;
|
|
46
|
+
/**
|
|
47
|
+
* Create a new API key for a service account
|
|
48
|
+
*
|
|
49
|
+
* @param {string} serviceAccountUserId
|
|
50
|
+
* @param {ElevenLabs.serviceAccounts.BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPost} request
|
|
51
|
+
* @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
|
|
52
|
+
*
|
|
53
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* await client.serviceAccounts.apiKeys.create("service_account_user_id", {
|
|
57
|
+
* name: "name",
|
|
58
|
+
* permissions: ["text_to_speech"]
|
|
59
|
+
* })
|
|
60
|
+
*/
|
|
61
|
+
create(serviceAccountUserId: string, request: ElevenLabs.serviceAccounts.BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPost, requestOptions?: ApiKeys.RequestOptions): core.HttpResponsePromise<ElevenLabs.WorkspaceCreateApiKeyResponseModel>;
|
|
62
|
+
private __create;
|
|
63
|
+
/**
|
|
64
|
+
* Delete an existing API key for a service account
|
|
65
|
+
*
|
|
66
|
+
* @param {string} serviceAccountUserId
|
|
67
|
+
* @param {string} apiKeyId
|
|
68
|
+
* @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* await client.serviceAccounts.apiKeys.delete("service_account_user_id", "api_key_id")
|
|
74
|
+
*/
|
|
75
|
+
delete(serviceAccountUserId: string, apiKeyId: string, requestOptions?: ApiKeys.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
76
|
+
private __delete;
|
|
77
|
+
/**
|
|
78
|
+
* Update an existing API key for a service account
|
|
79
|
+
*
|
|
80
|
+
* @param {string} serviceAccountUserId
|
|
81
|
+
* @param {string} apiKeyId
|
|
82
|
+
* @param {ElevenLabs.serviceAccounts.BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatch} request
|
|
83
|
+
* @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* await client.serviceAccounts.apiKeys.update("service_account_user_id", "api_key_id", {
|
|
89
|
+
* isEnabled: true,
|
|
90
|
+
* name: "Sneaky Fox",
|
|
91
|
+
* permissions: ["text_to_speech"]
|
|
92
|
+
* })
|
|
93
|
+
*/
|
|
94
|
+
update(serviceAccountUserId: string, apiKeyId: string, request: ElevenLabs.serviceAccounts.BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatch, requestOptions?: ApiKeys.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
95
|
+
private __update;
|
|
96
|
+
}
|
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.ApiKeys = void 0;
|
|
49
|
+
const environments = __importStar(require("../../../../../../environments"));
|
|
50
|
+
const core = __importStar(require("../../../../../../core"));
|
|
51
|
+
const ElevenLabs = __importStar(require("../../../../../index"));
|
|
52
|
+
const headers_1 = require("../../../../../../core/headers");
|
|
53
|
+
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
54
|
+
const errors = __importStar(require("../../../../../../errors/index"));
|
|
55
|
+
class ApiKeys {
|
|
56
|
+
constructor(_options = {}) {
|
|
57
|
+
this._options = _options;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Get all API keys for a service account
|
|
61
|
+
*
|
|
62
|
+
* @param {string} serviceAccountUserId
|
|
63
|
+
* @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* await client.serviceAccounts.apiKeys.list("service_account_user_id")
|
|
69
|
+
*/
|
|
70
|
+
list(serviceAccountUserId, requestOptions) {
|
|
71
|
+
return core.HttpResponsePromise.fromPromise(this.__list(serviceAccountUserId, requestOptions));
|
|
72
|
+
}
|
|
73
|
+
__list(serviceAccountUserId, requestOptions) {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
var _a, _b, _c;
|
|
76
|
+
const _response = yield core.fetcher({
|
|
77
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/service-accounts/${encodeURIComponent(serviceAccountUserId)}/api-keys`),
|
|
78
|
+
method: "GET",
|
|
79
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
80
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
81
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
82
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
83
|
+
});
|
|
84
|
+
if (_response.ok) {
|
|
85
|
+
return {
|
|
86
|
+
data: serializers.WorkspaceApiKeyListResponseModel.parseOrThrow(_response.body, {
|
|
87
|
+
unrecognizedObjectKeys: "passthrough",
|
|
88
|
+
allowUnrecognizedUnionMembers: true,
|
|
89
|
+
allowUnrecognizedEnumValues: true,
|
|
90
|
+
breadcrumbsPrefix: ["response"],
|
|
91
|
+
}),
|
|
92
|
+
rawResponse: _response.rawResponse,
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
if (_response.error.reason === "status-code") {
|
|
96
|
+
switch (_response.error.statusCode) {
|
|
97
|
+
case 422:
|
|
98
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
99
|
+
unrecognizedObjectKeys: "passthrough",
|
|
100
|
+
allowUnrecognizedUnionMembers: true,
|
|
101
|
+
allowUnrecognizedEnumValues: true,
|
|
102
|
+
breadcrumbsPrefix: ["response"],
|
|
103
|
+
}), _response.rawResponse);
|
|
104
|
+
default:
|
|
105
|
+
throw new errors.ElevenLabsError({
|
|
106
|
+
statusCode: _response.error.statusCode,
|
|
107
|
+
body: _response.error.body,
|
|
108
|
+
rawResponse: _response.rawResponse,
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
switch (_response.error.reason) {
|
|
113
|
+
case "non-json":
|
|
114
|
+
throw new errors.ElevenLabsError({
|
|
115
|
+
statusCode: _response.error.statusCode,
|
|
116
|
+
body: _response.error.rawBody,
|
|
117
|
+
rawResponse: _response.rawResponse,
|
|
118
|
+
});
|
|
119
|
+
case "timeout":
|
|
120
|
+
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/service-accounts/{service_account_user_id}/api-keys.");
|
|
121
|
+
case "unknown":
|
|
122
|
+
throw new errors.ElevenLabsError({
|
|
123
|
+
message: _response.error.errorMessage,
|
|
124
|
+
rawResponse: _response.rawResponse,
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Create a new API key for a service account
|
|
131
|
+
*
|
|
132
|
+
* @param {string} serviceAccountUserId
|
|
133
|
+
* @param {ElevenLabs.serviceAccounts.BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPost} request
|
|
134
|
+
* @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
|
|
135
|
+
*
|
|
136
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* await client.serviceAccounts.apiKeys.create("service_account_user_id", {
|
|
140
|
+
* name: "name",
|
|
141
|
+
* permissions: ["text_to_speech"]
|
|
142
|
+
* })
|
|
143
|
+
*/
|
|
144
|
+
create(serviceAccountUserId, request, requestOptions) {
|
|
145
|
+
return core.HttpResponsePromise.fromPromise(this.__create(serviceAccountUserId, request, requestOptions));
|
|
146
|
+
}
|
|
147
|
+
__create(serviceAccountUserId, request, requestOptions) {
|
|
148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
149
|
+
var _a, _b, _c;
|
|
150
|
+
const _response = yield core.fetcher({
|
|
151
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/service-accounts/${encodeURIComponent(serviceAccountUserId)}/api-keys`),
|
|
152
|
+
method: "POST",
|
|
153
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
154
|
+
contentType: "application/json",
|
|
155
|
+
requestType: "json",
|
|
156
|
+
body: serializers.serviceAccounts.BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
157
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
158
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
159
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
160
|
+
});
|
|
161
|
+
if (_response.ok) {
|
|
162
|
+
return {
|
|
163
|
+
data: serializers.WorkspaceCreateApiKeyResponseModel.parseOrThrow(_response.body, {
|
|
164
|
+
unrecognizedObjectKeys: "passthrough",
|
|
165
|
+
allowUnrecognizedUnionMembers: true,
|
|
166
|
+
allowUnrecognizedEnumValues: true,
|
|
167
|
+
breadcrumbsPrefix: ["response"],
|
|
168
|
+
}),
|
|
169
|
+
rawResponse: _response.rawResponse,
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
if (_response.error.reason === "status-code") {
|
|
173
|
+
switch (_response.error.statusCode) {
|
|
174
|
+
case 422:
|
|
175
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
176
|
+
unrecognizedObjectKeys: "passthrough",
|
|
177
|
+
allowUnrecognizedUnionMembers: true,
|
|
178
|
+
allowUnrecognizedEnumValues: true,
|
|
179
|
+
breadcrumbsPrefix: ["response"],
|
|
180
|
+
}), _response.rawResponse);
|
|
181
|
+
default:
|
|
182
|
+
throw new errors.ElevenLabsError({
|
|
183
|
+
statusCode: _response.error.statusCode,
|
|
184
|
+
body: _response.error.body,
|
|
185
|
+
rawResponse: _response.rawResponse,
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
switch (_response.error.reason) {
|
|
190
|
+
case "non-json":
|
|
191
|
+
throw new errors.ElevenLabsError({
|
|
192
|
+
statusCode: _response.error.statusCode,
|
|
193
|
+
body: _response.error.rawBody,
|
|
194
|
+
rawResponse: _response.rawResponse,
|
|
195
|
+
});
|
|
196
|
+
case "timeout":
|
|
197
|
+
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling POST /v1/service-accounts/{service_account_user_id}/api-keys.");
|
|
198
|
+
case "unknown":
|
|
199
|
+
throw new errors.ElevenLabsError({
|
|
200
|
+
message: _response.error.errorMessage,
|
|
201
|
+
rawResponse: _response.rawResponse,
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Delete an existing API key for a service account
|
|
208
|
+
*
|
|
209
|
+
* @param {string} serviceAccountUserId
|
|
210
|
+
* @param {string} apiKeyId
|
|
211
|
+
* @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
|
|
212
|
+
*
|
|
213
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
214
|
+
*
|
|
215
|
+
* @example
|
|
216
|
+
* await client.serviceAccounts.apiKeys.delete("service_account_user_id", "api_key_id")
|
|
217
|
+
*/
|
|
218
|
+
delete(serviceAccountUserId, apiKeyId, requestOptions) {
|
|
219
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(serviceAccountUserId, apiKeyId, requestOptions));
|
|
220
|
+
}
|
|
221
|
+
__delete(serviceAccountUserId, apiKeyId, requestOptions) {
|
|
222
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
223
|
+
var _a, _b, _c;
|
|
224
|
+
const _response = yield core.fetcher({
|
|
225
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/service-accounts/${encodeURIComponent(serviceAccountUserId)}/api-keys/${encodeURIComponent(apiKeyId)}`),
|
|
226
|
+
method: "DELETE",
|
|
227
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
228
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
229
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
230
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
231
|
+
});
|
|
232
|
+
if (_response.ok) {
|
|
233
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
234
|
+
}
|
|
235
|
+
if (_response.error.reason === "status-code") {
|
|
236
|
+
switch (_response.error.statusCode) {
|
|
237
|
+
case 422:
|
|
238
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
239
|
+
unrecognizedObjectKeys: "passthrough",
|
|
240
|
+
allowUnrecognizedUnionMembers: true,
|
|
241
|
+
allowUnrecognizedEnumValues: true,
|
|
242
|
+
breadcrumbsPrefix: ["response"],
|
|
243
|
+
}), _response.rawResponse);
|
|
244
|
+
default:
|
|
245
|
+
throw new errors.ElevenLabsError({
|
|
246
|
+
statusCode: _response.error.statusCode,
|
|
247
|
+
body: _response.error.body,
|
|
248
|
+
rawResponse: _response.rawResponse,
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
switch (_response.error.reason) {
|
|
253
|
+
case "non-json":
|
|
254
|
+
throw new errors.ElevenLabsError({
|
|
255
|
+
statusCode: _response.error.statusCode,
|
|
256
|
+
body: _response.error.rawBody,
|
|
257
|
+
rawResponse: _response.rawResponse,
|
|
258
|
+
});
|
|
259
|
+
case "timeout":
|
|
260
|
+
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling DELETE /v1/service-accounts/{service_account_user_id}/api-keys/{api_key_id}.");
|
|
261
|
+
case "unknown":
|
|
262
|
+
throw new errors.ElevenLabsError({
|
|
263
|
+
message: _response.error.errorMessage,
|
|
264
|
+
rawResponse: _response.rawResponse,
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Update an existing API key for a service account
|
|
271
|
+
*
|
|
272
|
+
* @param {string} serviceAccountUserId
|
|
273
|
+
* @param {string} apiKeyId
|
|
274
|
+
* @param {ElevenLabs.serviceAccounts.BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatch} request
|
|
275
|
+
* @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
|
|
276
|
+
*
|
|
277
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
278
|
+
*
|
|
279
|
+
* @example
|
|
280
|
+
* await client.serviceAccounts.apiKeys.update("service_account_user_id", "api_key_id", {
|
|
281
|
+
* isEnabled: true,
|
|
282
|
+
* name: "Sneaky Fox",
|
|
283
|
+
* permissions: ["text_to_speech"]
|
|
284
|
+
* })
|
|
285
|
+
*/
|
|
286
|
+
update(serviceAccountUserId, apiKeyId, request, requestOptions) {
|
|
287
|
+
return core.HttpResponsePromise.fromPromise(this.__update(serviceAccountUserId, apiKeyId, request, requestOptions));
|
|
288
|
+
}
|
|
289
|
+
__update(serviceAccountUserId, apiKeyId, request, requestOptions) {
|
|
290
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
291
|
+
var _a, _b, _c;
|
|
292
|
+
const _response = yield core.fetcher({
|
|
293
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/service-accounts/${encodeURIComponent(serviceAccountUserId)}/api-keys/${encodeURIComponent(apiKeyId)}`),
|
|
294
|
+
method: "PATCH",
|
|
295
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
296
|
+
contentType: "application/json",
|
|
297
|
+
requestType: "json",
|
|
298
|
+
body: serializers.serviceAccounts.BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
299
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
300
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
301
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
302
|
+
});
|
|
303
|
+
if (_response.ok) {
|
|
304
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
305
|
+
}
|
|
306
|
+
if (_response.error.reason === "status-code") {
|
|
307
|
+
switch (_response.error.statusCode) {
|
|
308
|
+
case 422:
|
|
309
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
310
|
+
unrecognizedObjectKeys: "passthrough",
|
|
311
|
+
allowUnrecognizedUnionMembers: true,
|
|
312
|
+
allowUnrecognizedEnumValues: true,
|
|
313
|
+
breadcrumbsPrefix: ["response"],
|
|
314
|
+
}), _response.rawResponse);
|
|
315
|
+
default:
|
|
316
|
+
throw new errors.ElevenLabsError({
|
|
317
|
+
statusCode: _response.error.statusCode,
|
|
318
|
+
body: _response.error.body,
|
|
319
|
+
rawResponse: _response.rawResponse,
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
switch (_response.error.reason) {
|
|
324
|
+
case "non-json":
|
|
325
|
+
throw new errors.ElevenLabsError({
|
|
326
|
+
statusCode: _response.error.statusCode,
|
|
327
|
+
body: _response.error.rawBody,
|
|
328
|
+
rawResponse: _response.rawResponse,
|
|
329
|
+
});
|
|
330
|
+
case "timeout":
|
|
331
|
+
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling PATCH /v1/service-accounts/{service_account_user_id}/api-keys/{api_key_id}.");
|
|
332
|
+
case "unknown":
|
|
333
|
+
throw new errors.ElevenLabsError({
|
|
334
|
+
message: _response.error.errorMessage,
|
|
335
|
+
rawResponse: _response.rawResponse,
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
exports.ApiKeys = ApiKeys;
|