@elevenlabs/elevenlabs-js 2.4.0 → 2.5.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 +3 -3
- package/Client.js +15 -15
- package/api/errors/BadRequestError.d.ts +2 -1
- package/api/resources/audioIsolation/client/requests/BodyAudioIsolationStreamV1AudioIsolationStreamPost.d.ts +2 -2
- package/api/resources/audioIsolation/client/requests/BodyAudioIsolationV1AudioIsolationPost.d.ts +2 -2
- package/api/resources/audioNative/client/requests/BodyCreatesAudioNativeEnabledProjectV1AudioNativePost.d.ts +2 -2
- package/api/resources/audioNative/client/requests/BodyUpdateAudioNativeProjectContentV1AudioNativeProjectIdContentPost.d.ts +2 -2
- package/api/resources/conversationalAi/client/Client.js +5 -0
- package/api/resources/conversationalAi/client/requests/BodyAddToKnowledgeBaseV1ConvaiKnowledgeBasePost.d.ts +3 -2
- package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/requests/BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost.d.ts +2 -2
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +2 -1
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +11 -4
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateFileDocumentV1ConvaiKnowledgeBaseFilePost.d.ts +2 -2
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsGetRequest.d.ts +10 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +2 -2
- package/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +5 -5
- package/api/resources/forcedAlignment/client/requests/BodyCreateForcedAlignmentV1ForcedAlignmentPost.d.ts +2 -2
- package/api/resources/history/client/Client.js +6 -1
- package/api/resources/index.d.ts +0 -1
- package/api/resources/index.js +0 -1
- package/api/resources/pronunciationDictionaries/client/Client.js +4 -4
- package/api/resources/pronunciationDictionaries/client/requests/BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost.d.ts +2 -2
- package/api/resources/speechToSpeech/client/requests/BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost.d.ts +2 -2
- package/api/resources/speechToSpeech/client/requests/BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost.d.ts +2 -2
- package/api/resources/speechToText/client/Client.d.ts +3 -1
- package/api/resources/speechToText/client/Client.js +10 -7
- package/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +4 -2
- package/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +9 -3
- package/api/resources/studio/resources/projects/resources/content/client/Client.js +3 -0
- package/api/resources/studio/resources/projects/resources/content/client/requests/BodyUpdateStudioProjectContentV1StudioProjectsProjectIdContentPost.d.ts +10 -2
- package/api/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.d.ts +2 -1
- package/api/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.js +1 -0
- package/api/resources/voices/client/requests/BodyEditVoiceV1VoicesVoiceIdEditPost.d.ts +2 -2
- package/api/resources/voices/client/requests/BodyGetSimilarLibraryVoicesV1SimilarVoicesPost.d.ts +2 -2
- package/api/resources/voices/resources/ivc/client/requests/BodyAddVoiceV1VoicesAddPost.d.ts +2 -2
- package/api/resources/voices/resources/pvc/resources/samples/client/requests/BodyAddSamplesToPvcVoiceV1VoicesPvcVoiceIdSamplesPost.d.ts +2 -2
- package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts +5 -2
- package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +14 -5
- package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/index.d.ts +1 -0
- package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/index.js +15 -0
- package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/requests/AudioGetRequest.d.ts +15 -0
- package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/requests/index.d.ts +1 -0
- package/api/resources/voices/resources/pvc/resources/samples/resources/index.d.ts +1 -0
- package/api/resources/voices/resources/pvc/resources/samples/resources/index.js +4 -0
- package/api/resources/voices/resources/pvc/resources/verification/client/requests/BodyRequestManualVerificationV1VoicesPvcVoiceIdVerificationPost.d.ts +2 -2
- package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/requests/BodyVerifyPvcVoiceCaptchaV1VoicesPvcVoiceIdCaptchaPost.d.ts +2 -2
- package/api/resources/workspace/client/Client.d.ts +0 -67
- package/api/resources/workspace/client/Client.js +0 -326
- package/api/resources/workspace/client/index.d.ts +0 -1
- package/api/resources/workspace/client/index.js +0 -15
- package/api/types/AddProjectRequest.d.ts +7 -1
- package/api/types/AuthConnectionLocator.d.ts +9 -0
- package/api/types/BadRequestErrorBody.d.ts +7 -0
- package/api/types/BodyAddProjectV1ProjectsAddPostSourceType.d.ts +2 -1
- package/api/types/BodyAddProjectV1ProjectsAddPostSourceType.js +1 -0
- package/api/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.d.ts +8 -0
- package/api/types/BreakdownTypes.d.ts +3 -1
- package/api/types/BreakdownTypes.js +2 -0
- package/api/types/BuiltInToolsInput.d.ts +2 -0
- package/api/types/BuiltInToolsOutput.d.ts +2 -0
- package/api/types/ChapterResponse.d.ts +2 -0
- package/api/types/ChapterWithContentResponseModel.d.ts +2 -0
- package/api/types/ForcedAlignmentResponseModel.d.ts +2 -0
- package/api/types/ForcedAlignmentWordResponseModel.d.ts +2 -0
- package/api/types/MetricType.d.ts +2 -1
- package/api/types/MetricType.js +1 -0
- package/api/types/PlayDtmfToolConfig.d.ts +11 -0
- package/api/types/ProjectExtendedResponse.d.ts +2 -2
- package/api/types/ProjectExtendedResponseModelSourceType.d.ts +2 -1
- package/api/types/ProjectExtendedResponseModelSourceType.js +1 -0
- package/api/types/ProjectResponseModelSourceType.d.ts +2 -1
- package/api/types/ProjectResponseModelSourceType.js +1 -0
- package/api/types/SystemToolConfigInputParams.d.ts +4 -1
- package/api/types/SystemToolConfigOutputParams.d.ts +4 -1
- package/api/types/WebhookToolApiSchemaConfigInput.d.ts +2 -0
- package/api/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -0
- package/api/types/WorkspaceResourceType.d.ts +2 -1
- package/api/types/WorkspaceResourceType.js +1 -0
- package/api/types/index.d.ts +3 -4
- package/api/types/index.js +3 -4
- package/core/fetcher/BinaryResponse.d.ts +17 -0
- package/core/fetcher/BinaryResponse.js +14 -0
- package/core/fetcher/Fetcher.d.ts +1 -1
- package/core/fetcher/ResponseWithBody.d.ts +4 -0
- package/core/fetcher/ResponseWithBody.js +6 -0
- package/core/fetcher/getFetchFn.js +3 -3
- package/core/fetcher/getResponseBody.js +33 -32
- package/core/fetcher/index.d.ts +1 -0
- package/core/file.d.ts +1 -0
- package/core/form-data-utils/FormDataWrapper.d.ts +5 -52
- package/core/form-data-utils/FormDataWrapper.js +104 -124
- package/core/index.d.ts +1 -0
- package/core/index.js +1 -0
- package/dist/Client.d.ts +3 -3
- package/dist/Client.js +15 -15
- package/dist/api/errors/BadRequestError.d.ts +2 -1
- package/dist/api/resources/audioIsolation/client/requests/BodyAudioIsolationStreamV1AudioIsolationStreamPost.d.ts +2 -2
- package/dist/api/resources/audioIsolation/client/requests/BodyAudioIsolationV1AudioIsolationPost.d.ts +2 -2
- package/dist/api/resources/audioNative/client/requests/BodyCreatesAudioNativeEnabledProjectV1AudioNativePost.d.ts +2 -2
- package/dist/api/resources/audioNative/client/requests/BodyUpdateAudioNativeProjectContentV1AudioNativeProjectIdContentPost.d.ts +2 -2
- package/dist/api/resources/conversationalAi/client/Client.js +5 -0
- package/dist/api/resources/conversationalAi/client/requests/BodyAddToKnowledgeBaseV1ConvaiKnowledgeBasePost.d.ts +3 -2
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/requests/BodyPostAgentAvatarV1ConvaiAgentsAgentIdAvatarPost.d.ts +2 -2
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +2 -1
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +11 -4
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/BodyCreateFileDocumentV1ConvaiKnowledgeBaseFilePost.d.ts +2 -2
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsGetRequest.d.ts +10 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +2 -2
- package/dist/api/resources/dubbing/client/requests/BodyDubAVideoOrAnAudioFileV1DubbingPost.d.ts +5 -5
- package/dist/api/resources/forcedAlignment/client/requests/BodyCreateForcedAlignmentV1ForcedAlignmentPost.d.ts +2 -2
- package/dist/api/resources/history/client/Client.js +6 -1
- package/dist/api/resources/index.d.ts +0 -1
- package/dist/api/resources/index.js +0 -1
- package/dist/api/resources/pronunciationDictionaries/client/Client.js +4 -4
- package/dist/api/resources/pronunciationDictionaries/client/requests/BodyAddAPronunciationDictionaryV1PronunciationDictionariesAddFromFilePost.d.ts +2 -2
- package/dist/api/resources/speechToSpeech/client/requests/BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost.d.ts +2 -2
- package/dist/api/resources/speechToSpeech/client/requests/BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost.d.ts +2 -2
- package/dist/api/resources/speechToText/client/Client.d.ts +3 -1
- package/dist/api/resources/speechToText/client/Client.js +10 -7
- package/dist/api/resources/speechToText/client/requests/BodySpeechToTextV1SpeechToTextPost.d.ts +4 -2
- package/dist/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +9 -3
- package/dist/api/resources/studio/resources/projects/resources/content/client/Client.js +3 -0
- package/dist/api/resources/studio/resources/projects/resources/content/client/requests/BodyUpdateStudioProjectContentV1StudioProjectsProjectIdContentPost.d.ts +10 -2
- package/dist/api/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.d.ts +2 -1
- package/dist/api/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.js +1 -0
- package/dist/api/resources/voices/client/requests/BodyEditVoiceV1VoicesVoiceIdEditPost.d.ts +2 -2
- package/dist/api/resources/voices/client/requests/BodyGetSimilarLibraryVoicesV1SimilarVoicesPost.d.ts +2 -2
- package/dist/api/resources/voices/resources/ivc/client/requests/BodyAddVoiceV1VoicesAddPost.d.ts +2 -2
- package/dist/api/resources/voices/resources/pvc/resources/samples/client/requests/BodyAddSamplesToPvcVoiceV1VoicesPvcVoiceIdSamplesPost.d.ts +2 -2
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts +5 -2
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +14 -5
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/index.d.ts +1 -0
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/index.js +15 -0
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/requests/AudioGetRequest.d.ts +15 -0
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/requests/index.d.ts +1 -0
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/requests/index.js +2 -0
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/index.d.ts +1 -0
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/index.js +4 -0
- package/dist/api/resources/voices/resources/pvc/resources/verification/client/requests/BodyRequestManualVerificationV1VoicesPvcVoiceIdVerificationPost.d.ts +2 -2
- package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/requests/BodyVerifyPvcVoiceCaptchaV1VoicesPvcVoiceIdCaptchaPost.d.ts +2 -2
- package/dist/api/resources/workspace/client/Client.d.ts +0 -67
- package/dist/api/resources/workspace/client/Client.js +0 -326
- package/dist/api/resources/workspace/client/index.d.ts +0 -1
- package/dist/api/resources/workspace/client/index.js +0 -15
- package/dist/api/types/AddProjectRequest.d.ts +7 -1
- package/dist/api/types/AuthConnectionLocator.d.ts +9 -0
- package/dist/api/types/BadRequestErrorBody.d.ts +7 -0
- package/dist/api/types/BodyAddProjectV1ProjectsAddPostSourceType.d.ts +2 -1
- package/dist/api/types/BodyAddProjectV1ProjectsAddPostSourceType.js +1 -0
- package/dist/api/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.d.ts +8 -0
- package/dist/api/types/BreakdownTypes.d.ts +3 -1
- package/dist/api/types/BreakdownTypes.js +2 -0
- package/dist/api/types/BuiltInToolsInput.d.ts +2 -0
- package/dist/api/types/BuiltInToolsOutput.d.ts +2 -0
- package/dist/api/types/ChapterResponse.d.ts +2 -0
- package/dist/api/types/ChapterWithContentResponseModel.d.ts +2 -0
- package/dist/api/types/ForcedAlignmentResponseModel.d.ts +2 -0
- package/dist/api/types/ForcedAlignmentWordResponseModel.d.ts +2 -0
- package/dist/api/types/MetricType.d.ts +2 -1
- package/dist/api/types/MetricType.js +1 -0
- package/dist/api/types/PlayDtmfToolConfig.d.ts +11 -0
- package/dist/api/types/ProjectExtendedResponse.d.ts +2 -2
- package/dist/api/types/ProjectExtendedResponseModelSourceType.d.ts +2 -1
- package/dist/api/types/ProjectExtendedResponseModelSourceType.js +1 -0
- package/dist/api/types/ProjectResponseModelSourceType.d.ts +2 -1
- package/dist/api/types/ProjectResponseModelSourceType.js +1 -0
- package/dist/api/types/SystemToolConfigInputParams.d.ts +4 -1
- package/dist/api/types/SystemToolConfigOutputParams.d.ts +4 -1
- package/dist/api/types/WebhookToolApiSchemaConfigInput.d.ts +2 -0
- package/dist/api/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -0
- package/dist/api/types/WorkspaceResourceType.d.ts +2 -1
- package/dist/api/types/WorkspaceResourceType.js +1 -0
- package/dist/api/types/index.d.ts +3 -4
- package/dist/api/types/index.js +3 -4
- package/dist/core/fetcher/BinaryResponse.d.ts +17 -0
- package/dist/core/fetcher/BinaryResponse.js +14 -0
- package/dist/core/fetcher/Fetcher.d.ts +1 -1
- package/dist/core/fetcher/ResponseWithBody.d.ts +4 -0
- package/dist/core/fetcher/ResponseWithBody.js +6 -0
- package/dist/core/fetcher/getFetchFn.js +3 -3
- package/dist/core/fetcher/getResponseBody.js +33 -32
- package/dist/core/fetcher/index.d.ts +1 -0
- package/dist/core/file.d.ts +1 -0
- package/dist/core/file.js +2 -0
- package/dist/core/form-data-utils/FormDataWrapper.d.ts +5 -52
- package/dist/core/form-data-utils/FormDataWrapper.js +104 -124
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/environments.d.ts +5 -1
- package/dist/environments.js +4 -0
- package/dist/serialization/resources/index.d.ts +0 -1
- package/dist/serialization/resources/index.js +0 -1
- package/dist/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.d.ts +1 -1
- package/dist/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.js +1 -1
- package/dist/serialization/resources/workspace/index.d.ts +0 -1
- package/dist/serialization/resources/workspace/index.js +0 -1
- package/dist/serialization/types/AuthConnectionLocator.d.ts +12 -0
- package/dist/serialization/{resources/workspace/client/getShareOptions.js → types/AuthConnectionLocator.js} +5 -4
- package/dist/serialization/types/BadRequestErrorBody.d.ts +13 -0
- package/{serialization/resources/workspace/client/getShareOptions.js → dist/serialization/types/BadRequestErrorBody.js} +6 -4
- package/dist/serialization/types/BodyAddProjectV1ProjectsAddPostSourceType.d.ts +1 -1
- package/dist/serialization/types/BodyAddProjectV1ProjectsAddPostSourceType.js +1 -1
- package/dist/serialization/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.d.ts +1 -0
- package/dist/serialization/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.js +1 -0
- package/dist/serialization/types/BreakdownTypes.d.ts +1 -1
- package/dist/serialization/types/BreakdownTypes.js +2 -0
- 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/ChapterResponse.d.ts +1 -0
- package/dist/serialization/types/ChapterResponse.js +1 -0
- package/dist/serialization/types/ChapterWithContentResponseModel.d.ts +1 -0
- package/dist/serialization/types/ChapterWithContentResponseModel.js +1 -0
- package/dist/serialization/types/ForcedAlignmentResponseModel.d.ts +1 -0
- package/dist/serialization/types/ForcedAlignmentResponseModel.js +1 -0
- package/dist/serialization/types/ForcedAlignmentWordResponseModel.d.ts +1 -0
- package/dist/serialization/types/ForcedAlignmentWordResponseModel.js +1 -0
- package/dist/serialization/types/MetricType.d.ts +1 -1
- package/dist/serialization/types/MetricType.js +9 -1
- package/dist/serialization/types/PlayDtmfToolConfig.d.ts +11 -0
- package/dist/serialization/types/PlayDtmfToolConfig.js +41 -0
- package/dist/serialization/types/ProjectExtendedResponse.d.ts +1 -1
- package/dist/serialization/types/ProjectExtendedResponse.js +1 -1
- package/dist/serialization/types/ProjectExtendedResponseModelSourceType.d.ts +1 -1
- package/dist/serialization/types/ProjectExtendedResponseModelSourceType.js +1 -1
- package/dist/serialization/types/ProjectResponseModelSourceType.d.ts +1 -1
- package/dist/serialization/types/ProjectResponseModelSourceType.js +1 -1
- package/dist/serialization/types/SystemToolConfigInputParams.d.ts +5 -1
- package/dist/serialization/types/SystemToolConfigInputParams.js +2 -0
- package/dist/serialization/types/SystemToolConfigOutputParams.d.ts +5 -1
- package/dist/serialization/types/SystemToolConfigOutputParams.js +2 -0
- package/dist/serialization/types/WebhookToolApiSchemaConfigInput.d.ts +2 -0
- package/dist/serialization/types/WebhookToolApiSchemaConfigInput.js +2 -0
- package/dist/serialization/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -0
- package/dist/serialization/types/WebhookToolApiSchemaConfigOutput.js +2 -0
- package/dist/serialization/types/WorkspaceResourceType.d.ts +1 -1
- package/dist/serialization/types/WorkspaceResourceType.js +1 -0
- package/dist/serialization/types/index.d.ts +3 -4
- package/dist/serialization/types/index.js +3 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/play.d.ts +1 -2
- package/dist/wrapper/play.js +69 -36
- package/dist/wrapper/stream.d.ts +1 -2
- package/dist/wrapper/stream.js +64 -37
- package/dist/wrapper/utils.d.ts +2 -0
- package/dist/wrapper/utils.js +41 -0
- package/environments.d.ts +5 -1
- package/environments.js +4 -0
- package/jest.browser.config.mjs +10 -0
- package/jest.config.mjs +4 -1
- package/package.json +7 -10
- package/reference.md +23 -247
- package/serialization/resources/index.d.ts +0 -1
- package/serialization/resources/index.js +0 -1
- package/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.d.ts +1 -1
- package/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.js +1 -1
- package/serialization/resources/workspace/index.d.ts +0 -1
- package/serialization/resources/workspace/index.js +0 -1
- package/serialization/types/AuthConnectionLocator.d.ts +12 -0
- package/serialization/{resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.js → types/AuthConnectionLocator.js} +4 -4
- package/serialization/types/BadRequestErrorBody.d.ts +13 -0
- package/{dist/serialization/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.js → serialization/types/BadRequestErrorBody.js} +5 -4
- package/serialization/types/BodyAddProjectV1ProjectsAddPostSourceType.d.ts +1 -1
- package/serialization/types/BodyAddProjectV1ProjectsAddPostSourceType.js +1 -1
- package/serialization/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.d.ts +1 -0
- package/serialization/types/BodyEditProjectContentV1ProjectsProjectIdContentPost.js +1 -0
- package/serialization/types/BreakdownTypes.d.ts +1 -1
- package/serialization/types/BreakdownTypes.js +2 -0
- 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/ChapterResponse.d.ts +1 -0
- package/serialization/types/ChapterResponse.js +1 -0
- package/serialization/types/ChapterWithContentResponseModel.d.ts +1 -0
- package/serialization/types/ChapterWithContentResponseModel.js +1 -0
- package/serialization/types/ForcedAlignmentResponseModel.d.ts +1 -0
- package/serialization/types/ForcedAlignmentResponseModel.js +1 -0
- package/serialization/types/ForcedAlignmentWordResponseModel.d.ts +1 -0
- package/serialization/types/ForcedAlignmentWordResponseModel.js +1 -0
- package/serialization/types/MetricType.d.ts +1 -1
- package/serialization/types/MetricType.js +9 -1
- package/serialization/types/PlayDtmfToolConfig.d.ts +11 -0
- package/serialization/types/PlayDtmfToolConfig.js +41 -0
- package/serialization/types/ProjectExtendedResponse.d.ts +1 -1
- package/serialization/types/ProjectExtendedResponse.js +1 -1
- package/serialization/types/ProjectExtendedResponseModelSourceType.d.ts +1 -1
- package/serialization/types/ProjectExtendedResponseModelSourceType.js +1 -1
- package/serialization/types/ProjectResponseModelSourceType.d.ts +1 -1
- package/serialization/types/ProjectResponseModelSourceType.js +1 -1
- package/serialization/types/SystemToolConfigInputParams.d.ts +5 -1
- package/serialization/types/SystemToolConfigInputParams.js +2 -0
- package/serialization/types/SystemToolConfigOutputParams.d.ts +5 -1
- package/serialization/types/SystemToolConfigOutputParams.js +2 -0
- package/serialization/types/WebhookToolApiSchemaConfigInput.d.ts +2 -0
- package/serialization/types/WebhookToolApiSchemaConfigInput.js +2 -0
- package/serialization/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -0
- package/serialization/types/WebhookToolApiSchemaConfigOutput.js +2 -0
- package/serialization/types/WorkspaceResourceType.d.ts +1 -1
- package/serialization/types/WorkspaceResourceType.js +1 -0
- package/serialization/types/index.d.ts +3 -4
- package/serialization/types/index.js +3 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/play.d.ts +1 -2
- package/wrapper/play.js +69 -36
- package/wrapper/stream.d.ts +1 -2
- package/wrapper/stream.js +64 -37
- package/wrapper/utils.d.ts +2 -0
- package/wrapper/utils.js +41 -0
- package/api/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.d.ts +0 -13
- package/api/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.d.ts +0 -12
- package/api/resources/workspace/client/requests/index.d.ts +0 -2
- package/api/types/BodyRetrieveVoiceSampleAudioV1VoicesPvcVoiceIdSamplesSampleIdAudioGet.d.ts +0 -7
- package/api/types/DefaultSharingPreferencesResponseModel.d.ts +0 -8
- package/api/types/WorkspaceGroupPermission.d.ts +0 -22
- package/api/types/WorkspaceGroupPermission.js +0 -24
- package/api/types/WorkspaceGroupResponseModel.d.ts +0 -10
- package/core/form-data-utils/toReadableStream.d.ts +0 -1
- package/core/form-data-utils/toReadableStream.js +0 -28
- package/dist/api/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.d.ts +0 -13
- package/dist/api/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.d.ts +0 -12
- package/dist/api/resources/workspace/client/requests/index.d.ts +0 -2
- package/dist/api/types/BodyRetrieveVoiceSampleAudioV1VoicesPvcVoiceIdSamplesSampleIdAudioGet.d.ts +0 -7
- package/dist/api/types/DefaultSharingPreferencesResponseModel.d.ts +0 -8
- package/dist/api/types/WorkspaceGroupPermission.d.ts +0 -22
- package/dist/api/types/WorkspaceGroupPermission.js +0 -24
- package/dist/api/types/WorkspaceGroupResponseModel.d.ts +0 -10
- package/dist/core/form-data-utils/toReadableStream.d.ts +0 -1
- package/dist/core/form-data-utils/toReadableStream.js +0 -28
- package/dist/serialization/resources/workspace/client/getShareOptions.d.ts +0 -11
- package/dist/serialization/resources/workspace/client/index.d.ts +0 -2
- package/dist/serialization/resources/workspace/client/index.js +0 -41
- package/dist/serialization/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.d.ts +0 -12
- package/dist/serialization/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.js +0 -43
- package/dist/serialization/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.d.ts +0 -12
- package/dist/serialization/resources/workspace/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/workspace/client/requests/index.js +0 -7
- package/dist/serialization/types/BodyRetrieveVoiceSampleAudioV1VoicesPvcVoiceIdSamplesSampleIdAudioGet.d.ts +0 -12
- package/dist/serialization/types/BodyRetrieveVoiceSampleAudioV1VoicesPvcVoiceIdSamplesSampleIdAudioGet.js +0 -43
- package/dist/serialization/types/DefaultSharingPreferencesResponseModel.d.ts +0 -13
- package/dist/serialization/types/DefaultSharingPreferencesResponseModel.js +0 -44
- package/dist/serialization/types/WorkspaceGroupPermission.d.ts +0 -10
- package/dist/serialization/types/WorkspaceGroupPermission.js +0 -58
- package/dist/serialization/types/WorkspaceGroupResponseModel.d.ts +0 -16
- package/dist/serialization/types/WorkspaceGroupResponseModel.js +0 -47
- package/serialization/resources/workspace/client/getShareOptions.d.ts +0 -11
- package/serialization/resources/workspace/client/index.d.ts +0 -2
- package/serialization/resources/workspace/client/index.js +0 -41
- package/serialization/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.d.ts +0 -12
- package/serialization/resources/workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.js +0 -43
- package/serialization/resources/workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.d.ts +0 -12
- package/serialization/resources/workspace/client/requests/index.d.ts +0 -2
- package/serialization/resources/workspace/client/requests/index.js +0 -7
- package/serialization/types/BodyRetrieveVoiceSampleAudioV1VoicesPvcVoiceIdSamplesSampleIdAudioGet.d.ts +0 -12
- package/serialization/types/BodyRetrieveVoiceSampleAudioV1VoicesPvcVoiceIdSamplesSampleIdAudioGet.js +0 -43
- package/serialization/types/DefaultSharingPreferencesResponseModel.d.ts +0 -13
- package/serialization/types/DefaultSharingPreferencesResponseModel.js +0 -44
- package/serialization/types/WorkspaceGroupPermission.d.ts +0 -10
- package/serialization/types/WorkspaceGroupPermission.js +0 -58
- package/serialization/types/WorkspaceGroupResponseModel.d.ts +0 -16
- package/serialization/types/WorkspaceGroupResponseModel.js +0 -47
- /package/api/resources/{workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.js → conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsGetRequest.js} +0 -0
- /package/api/resources/{workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.js → voices/resources/pvc/resources/samples/resources/audio/client/requests/AudioGetRequest.js} +0 -0
- /package/api/resources/{workspace → voices/resources/pvc/resources/samples/resources/audio}/client/requests/index.js +0 -0
- /package/api/types/{BodyRetrieveVoiceSampleAudioV1VoicesPvcVoiceIdSamplesSampleIdAudioGet.js → AuthConnectionLocator.js} +0 -0
- /package/api/types/{DefaultSharingPreferencesResponseModel.js → BadRequestErrorBody.js} +0 -0
- /package/api/types/{WorkspaceGroupResponseModel.js → PlayDtmfToolConfig.js} +0 -0
- /package/{dist/api/resources/workspace/client/requests/index.js → core/file.js} +0 -0
- /package/dist/api/resources/{workspace/client/requests/BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.js → conversationalAi/resources/knowledgeBase/resources/documents/client/requests/DocumentsGetRequest.js} +0 -0
- /package/dist/api/resources/{workspace/client/requests/BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.js → voices/resources/pvc/resources/samples/resources/audio/client/requests/AudioGetRequest.js} +0 -0
- /package/dist/api/types/{BodyRetrieveVoiceSampleAudioV1VoicesPvcVoiceIdSamplesSampleIdAudioGet.js → AuthConnectionLocator.js} +0 -0
- /package/dist/api/types/{DefaultSharingPreferencesResponseModel.js → BadRequestErrorBody.js} +0 -0
- /package/dist/api/types/{WorkspaceGroupResponseModel.js → PlayDtmfToolConfig.js} +0 -0
|
@@ -2,60 +2,8 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
-
};
|
|
50
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
6
|
exports.Workspace = void 0;
|
|
52
|
-
const environments = __importStar(require("../../../../environments"));
|
|
53
|
-
const core = __importStar(require("../../../../core"));
|
|
54
|
-
const ElevenLabs = __importStar(require("../../../index"));
|
|
55
|
-
const headers_js_1 = require("../../../../core/headers.js");
|
|
56
|
-
const serializers = __importStar(require("../../../../serialization/index"));
|
|
57
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
58
|
-
const errors = __importStar(require("../../../../errors/index"));
|
|
59
7
|
const Client_1 = require("../resources/groups/client/Client");
|
|
60
8
|
const Client_2 = require("../resources/invites/client/Client");
|
|
61
9
|
const Client_3 = require("../resources/members/client/Client");
|
|
@@ -80,279 +28,5 @@ class Workspace {
|
|
|
80
28
|
var _a;
|
|
81
29
|
return ((_a = this._resources) !== null && _a !== void 0 ? _a : (this._resources = new Client_4.Resources(this._options)));
|
|
82
30
|
}
|
|
83
|
-
/**
|
|
84
|
-
* Update user auto provisioning settings for the workspace.
|
|
85
|
-
*
|
|
86
|
-
* @param {ElevenLabs.BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost} request
|
|
87
|
-
* @param {Workspace.RequestOptions} requestOptions - Request-specific configuration.
|
|
88
|
-
*
|
|
89
|
-
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
90
|
-
*
|
|
91
|
-
* @example
|
|
92
|
-
* await client.workspace.updateUserAutoProvisioning({
|
|
93
|
-
* enabled: true
|
|
94
|
-
* })
|
|
95
|
-
*/
|
|
96
|
-
updateUserAutoProvisioning(request, requestOptions) {
|
|
97
|
-
return core.HttpResponsePromise.fromPromise(this.__updateUserAutoProvisioning(request, requestOptions));
|
|
98
|
-
}
|
|
99
|
-
__updateUserAutoProvisioning(request, requestOptions) {
|
|
100
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
101
|
-
var _a, _b, _c;
|
|
102
|
-
const _response = yield core.fetcher({
|
|
103
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/workspace/user-auto-provisioning"),
|
|
104
|
-
method: "POST",
|
|
105
|
-
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
106
|
-
contentType: "application/json",
|
|
107
|
-
requestType: "json",
|
|
108
|
-
body: serializers.BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost.jsonOrThrow(request, {
|
|
109
|
-
unrecognizedObjectKeys: "strip",
|
|
110
|
-
}),
|
|
111
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
112
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
113
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
114
|
-
});
|
|
115
|
-
if (_response.ok) {
|
|
116
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
117
|
-
}
|
|
118
|
-
if (_response.error.reason === "status-code") {
|
|
119
|
-
switch (_response.error.statusCode) {
|
|
120
|
-
case 422:
|
|
121
|
-
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
122
|
-
unrecognizedObjectKeys: "passthrough",
|
|
123
|
-
allowUnrecognizedUnionMembers: true,
|
|
124
|
-
allowUnrecognizedEnumValues: true,
|
|
125
|
-
breadcrumbsPrefix: ["response"],
|
|
126
|
-
}), _response.rawResponse);
|
|
127
|
-
default:
|
|
128
|
-
throw new errors.ElevenLabsError({
|
|
129
|
-
statusCode: _response.error.statusCode,
|
|
130
|
-
body: _response.error.body,
|
|
131
|
-
rawResponse: _response.rawResponse,
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
switch (_response.error.reason) {
|
|
136
|
-
case "non-json":
|
|
137
|
-
throw new errors.ElevenLabsError({
|
|
138
|
-
statusCode: _response.error.statusCode,
|
|
139
|
-
body: _response.error.rawBody,
|
|
140
|
-
rawResponse: _response.rawResponse,
|
|
141
|
-
});
|
|
142
|
-
case "timeout":
|
|
143
|
-
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling POST /v1/workspace/user-auto-provisioning.");
|
|
144
|
-
case "unknown":
|
|
145
|
-
throw new errors.ElevenLabsError({
|
|
146
|
-
message: _response.error.errorMessage,
|
|
147
|
-
rawResponse: _response.rawResponse,
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Get the user's default sharing preferences.
|
|
154
|
-
*
|
|
155
|
-
* @param {Workspace.RequestOptions} requestOptions - Request-specific configuration.
|
|
156
|
-
*
|
|
157
|
-
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
158
|
-
*
|
|
159
|
-
* @example
|
|
160
|
-
* await client.workspace.getDefaultSharingPreferences()
|
|
161
|
-
*/
|
|
162
|
-
getDefaultSharingPreferences(requestOptions) {
|
|
163
|
-
return core.HttpResponsePromise.fromPromise(this.__getDefaultSharingPreferences(requestOptions));
|
|
164
|
-
}
|
|
165
|
-
__getDefaultSharingPreferences(requestOptions) {
|
|
166
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
167
|
-
var _a, _b, _c;
|
|
168
|
-
const _response = yield core.fetcher({
|
|
169
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/workspace/default-sharing-preferences"),
|
|
170
|
-
method: "GET",
|
|
171
|
-
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
172
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
173
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
174
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
175
|
-
});
|
|
176
|
-
if (_response.ok) {
|
|
177
|
-
return {
|
|
178
|
-
data: serializers.DefaultSharingPreferencesResponseModel.parseOrThrow(_response.body, {
|
|
179
|
-
unrecognizedObjectKeys: "passthrough",
|
|
180
|
-
allowUnrecognizedUnionMembers: true,
|
|
181
|
-
allowUnrecognizedEnumValues: true,
|
|
182
|
-
breadcrumbsPrefix: ["response"],
|
|
183
|
-
}),
|
|
184
|
-
rawResponse: _response.rawResponse,
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
if (_response.error.reason === "status-code") {
|
|
188
|
-
switch (_response.error.statusCode) {
|
|
189
|
-
case 422:
|
|
190
|
-
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
191
|
-
unrecognizedObjectKeys: "passthrough",
|
|
192
|
-
allowUnrecognizedUnionMembers: true,
|
|
193
|
-
allowUnrecognizedEnumValues: true,
|
|
194
|
-
breadcrumbsPrefix: ["response"],
|
|
195
|
-
}), _response.rawResponse);
|
|
196
|
-
default:
|
|
197
|
-
throw new errors.ElevenLabsError({
|
|
198
|
-
statusCode: _response.error.statusCode,
|
|
199
|
-
body: _response.error.body,
|
|
200
|
-
rawResponse: _response.rawResponse,
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
switch (_response.error.reason) {
|
|
205
|
-
case "non-json":
|
|
206
|
-
throw new errors.ElevenLabsError({
|
|
207
|
-
statusCode: _response.error.statusCode,
|
|
208
|
-
body: _response.error.rawBody,
|
|
209
|
-
rawResponse: _response.rawResponse,
|
|
210
|
-
});
|
|
211
|
-
case "timeout":
|
|
212
|
-
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/workspace/default-sharing-preferences.");
|
|
213
|
-
case "unknown":
|
|
214
|
-
throw new errors.ElevenLabsError({
|
|
215
|
-
message: _response.error.errorMessage,
|
|
216
|
-
rawResponse: _response.rawResponse,
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* Update the user's default sharing preferences.
|
|
223
|
-
*
|
|
224
|
-
* @param {ElevenLabs.BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost} request
|
|
225
|
-
* @param {Workspace.RequestOptions} requestOptions - Request-specific configuration.
|
|
226
|
-
*
|
|
227
|
-
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
228
|
-
*
|
|
229
|
-
* @example
|
|
230
|
-
* await client.workspace.updateDefaultSharingPreferences({
|
|
231
|
-
* defaultSharingGroups: ["default_sharing_groups"]
|
|
232
|
-
* })
|
|
233
|
-
*/
|
|
234
|
-
updateDefaultSharingPreferences(request, requestOptions) {
|
|
235
|
-
return core.HttpResponsePromise.fromPromise(this.__updateDefaultSharingPreferences(request, requestOptions));
|
|
236
|
-
}
|
|
237
|
-
__updateDefaultSharingPreferences(request, requestOptions) {
|
|
238
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
239
|
-
var _a, _b, _c;
|
|
240
|
-
const _response = yield core.fetcher({
|
|
241
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/workspace/default-sharing-preferences"),
|
|
242
|
-
method: "POST",
|
|
243
|
-
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
244
|
-
contentType: "application/json",
|
|
245
|
-
requestType: "json",
|
|
246
|
-
body: serializers.BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
247
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
248
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
249
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
250
|
-
});
|
|
251
|
-
if (_response.ok) {
|
|
252
|
-
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
253
|
-
}
|
|
254
|
-
if (_response.error.reason === "status-code") {
|
|
255
|
-
switch (_response.error.statusCode) {
|
|
256
|
-
case 422:
|
|
257
|
-
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
258
|
-
unrecognizedObjectKeys: "passthrough",
|
|
259
|
-
allowUnrecognizedUnionMembers: true,
|
|
260
|
-
allowUnrecognizedEnumValues: true,
|
|
261
|
-
breadcrumbsPrefix: ["response"],
|
|
262
|
-
}), _response.rawResponse);
|
|
263
|
-
default:
|
|
264
|
-
throw new errors.ElevenLabsError({
|
|
265
|
-
statusCode: _response.error.statusCode,
|
|
266
|
-
body: _response.error.body,
|
|
267
|
-
rawResponse: _response.rawResponse,
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
switch (_response.error.reason) {
|
|
272
|
-
case "non-json":
|
|
273
|
-
throw new errors.ElevenLabsError({
|
|
274
|
-
statusCode: _response.error.statusCode,
|
|
275
|
-
body: _response.error.rawBody,
|
|
276
|
-
rawResponse: _response.rawResponse,
|
|
277
|
-
});
|
|
278
|
-
case "timeout":
|
|
279
|
-
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling POST /v1/workspace/default-sharing-preferences.");
|
|
280
|
-
case "unknown":
|
|
281
|
-
throw new errors.ElevenLabsError({
|
|
282
|
-
message: _response.error.errorMessage,
|
|
283
|
-
rawResponse: _response.rawResponse,
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
});
|
|
287
|
-
}
|
|
288
|
-
/**
|
|
289
|
-
* Get the share options for a workspace.
|
|
290
|
-
*
|
|
291
|
-
* @param {Workspace.RequestOptions} requestOptions - Request-specific configuration.
|
|
292
|
-
*
|
|
293
|
-
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
294
|
-
*
|
|
295
|
-
* @example
|
|
296
|
-
* await client.workspace.getShareOptions()
|
|
297
|
-
*/
|
|
298
|
-
getShareOptions(requestOptions) {
|
|
299
|
-
return core.HttpResponsePromise.fromPromise(this.__getShareOptions(requestOptions));
|
|
300
|
-
}
|
|
301
|
-
__getShareOptions(requestOptions) {
|
|
302
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
303
|
-
var _a, _b, _c;
|
|
304
|
-
const _response = yield core.fetcher({
|
|
305
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production).base, "v1/workspace/share-options"),
|
|
306
|
-
method: "GET",
|
|
307
|
-
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
308
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
309
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
310
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
311
|
-
});
|
|
312
|
-
if (_response.ok) {
|
|
313
|
-
return {
|
|
314
|
-
data: serializers.workspace.getShareOptions.Response.parseOrThrow(_response.body, {
|
|
315
|
-
unrecognizedObjectKeys: "passthrough",
|
|
316
|
-
allowUnrecognizedUnionMembers: true,
|
|
317
|
-
allowUnrecognizedEnumValues: true,
|
|
318
|
-
breadcrumbsPrefix: ["response"],
|
|
319
|
-
}),
|
|
320
|
-
rawResponse: _response.rawResponse,
|
|
321
|
-
};
|
|
322
|
-
}
|
|
323
|
-
if (_response.error.reason === "status-code") {
|
|
324
|
-
switch (_response.error.statusCode) {
|
|
325
|
-
case 422:
|
|
326
|
-
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
327
|
-
unrecognizedObjectKeys: "passthrough",
|
|
328
|
-
allowUnrecognizedUnionMembers: true,
|
|
329
|
-
allowUnrecognizedEnumValues: true,
|
|
330
|
-
breadcrumbsPrefix: ["response"],
|
|
331
|
-
}), _response.rawResponse);
|
|
332
|
-
default:
|
|
333
|
-
throw new errors.ElevenLabsError({
|
|
334
|
-
statusCode: _response.error.statusCode,
|
|
335
|
-
body: _response.error.body,
|
|
336
|
-
rawResponse: _response.rawResponse,
|
|
337
|
-
});
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
switch (_response.error.reason) {
|
|
341
|
-
case "non-json":
|
|
342
|
-
throw new errors.ElevenLabsError({
|
|
343
|
-
statusCode: _response.error.statusCode,
|
|
344
|
-
body: _response.error.rawBody,
|
|
345
|
-
rawResponse: _response.rawResponse,
|
|
346
|
-
});
|
|
347
|
-
case "timeout":
|
|
348
|
-
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/workspace/share-options.");
|
|
349
|
-
case "unknown":
|
|
350
|
-
throw new errors.ElevenLabsError({
|
|
351
|
-
message: _response.error.errorMessage,
|
|
352
|
-
rawResponse: _response.rawResponse,
|
|
353
|
-
});
|
|
354
|
-
}
|
|
355
|
-
});
|
|
356
|
-
}
|
|
357
31
|
}
|
|
358
32
|
exports.Workspace = Workspace;
|
|
@@ -1,17 +1,2 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./requests"), exports);
|
|
@@ -15,7 +15,13 @@ export interface AddProjectRequest {
|
|
|
15
15
|
fromUrl?: string;
|
|
16
16
|
/** An optional .epub, .pdf, .txt or similar file can be provided. If provided, we will initialize the Studio project with its content. If this is set, 'from_url' and 'from_content' must be null. If neither 'from_url', 'from_document', 'from_content' are provided we will initialize the Studio project as blank. */
|
|
17
17
|
fromDocument?: string;
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* An optional content to initialize the Studio project with. If this is set, 'from_url' and 'from_document' must be null. If neither 'from_url', 'from_document', 'from_content' are provided we will initialize the Studio project as blank.
|
|
20
|
+
*
|
|
21
|
+
* Example:
|
|
22
|
+
* [{"name": "Chapter A", "blocks": [{"sub_type": "p", "nodes": [{"voice_id": "6lCwbsX1yVjD49QmpkT0", "text": "A", "type": "tts_node"}, {"voice_id": "6lCwbsX1yVjD49QmpkT1", "text": "B", "type": "tts_node"}]}, {"sub_type": "h1", "nodes": [{"voice_id": "6lCwbsX1yVjD49QmpkT0", "text": "C", "type": "tts_node"}, {"voice_id": "6lCwbsX1yVjD49QmpkT1", "text": "D", "type": "tts_node"}]}]}, {"name": "Chapter B", "blocks": [{"sub_type": "p", "nodes": [{"voice_id": "6lCwbsX1yVjD49QmpkT0", "text": "E", "type": "tts_node"}, {"voice_id": "6lCwbsX1yVjD49QmpkT1", "text": "F", "type": "tts_node"}]}, {"sub_type": "h2", "nodes": [{"voice_id": "6lCwbsX1yVjD49QmpkT0", "text": "G", "type": "tts_node"}, {"voice_id": "6lCwbsX1yVjD49QmpkT1", "text": "H", "type": "tts_node"}]}]}]
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
19
25
|
fromContentJson?: string;
|
|
20
26
|
/**
|
|
21
27
|
* Output quality of the generated audio. Must be one of:
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type BodyAddProjectV1ProjectsAddPostSourceType = "blank" | "book" | "article" | "genfm";
|
|
4
|
+
export type BodyAddProjectV1ProjectsAddPostSourceType = "blank" | "book" | "article" | "genfm" | "video";
|
|
5
5
|
export declare const BodyAddProjectV1ProjectsAddPostSourceType: {
|
|
6
6
|
readonly Blank: "blank";
|
|
7
7
|
readonly Book: "book";
|
|
8
8
|
readonly Article: "article";
|
|
9
9
|
readonly Genfm: "genfm";
|
|
10
|
+
readonly Video: "video";
|
|
10
11
|
};
|
|
@@ -6,6 +6,14 @@ export interface BodyEditProjectContentV1ProjectsProjectIdContentPost {
|
|
|
6
6
|
fromUrl?: string;
|
|
7
7
|
/** An optional .epub, .pdf, .txt or similar file can be provided. If provided, we will initialize the Studio project with its content. If this is set, 'from_url' and 'from_content' must be null. If neither 'from_url', 'from_document', 'from_content' are provided we will initialize the Studio project as blank. */
|
|
8
8
|
fromDocument?: string;
|
|
9
|
+
/**
|
|
10
|
+
* An optional content to initialize the Studio project with. If this is set, 'from_url' and 'from_document' must be null. If neither 'from_url', 'from_document', 'from_content' are provided we will initialize the Studio project as blank.
|
|
11
|
+
*
|
|
12
|
+
* Example:
|
|
13
|
+
* [{"name": "Chapter A", "blocks": [{"sub_type": "p", "nodes": [{"voice_id": "6lCwbsX1yVjD49QmpkT0", "text": "A", "type": "tts_node"}, {"voice_id": "6lCwbsX1yVjD49QmpkT1", "text": "B", "type": "tts_node"}]}, {"sub_type": "h1", "nodes": [{"voice_id": "6lCwbsX1yVjD49QmpkT0", "text": "C", "type": "tts_node"}, {"voice_id": "6lCwbsX1yVjD49QmpkT1", "text": "D", "type": "tts_node"}]}]}, {"name": "Chapter B", "blocks": [{"sub_type": "p", "nodes": [{"voice_id": "6lCwbsX1yVjD49QmpkT0", "text": "E", "type": "tts_node"}, {"voice_id": "6lCwbsX1yVjD49QmpkT1", "text": "F", "type": "tts_node"}]}, {"sub_type": "h2", "nodes": [{"voice_id": "6lCwbsX1yVjD49QmpkT0", "text": "G", "type": "tts_node"}, {"voice_id": "6lCwbsX1yVjD49QmpkT1", "text": "H", "type": "tts_node"}]}]}]
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
fromContentJson?: string;
|
|
9
17
|
/** Whether to auto convert the Studio project to audio or not. */
|
|
10
18
|
autoConvert?: boolean;
|
|
11
19
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* How to break down the information. Cannot be "user" or "api_key" if include_workspace_metrics is False.
|
|
6
6
|
*/
|
|
7
|
-
export type BreakdownTypes = "none" | "voice" | "voice_multiplier" | "user" | "groups" | "api_keys" | "all_api_keys" | "product_type" | "model" | "resource" | "request_queue";
|
|
7
|
+
export type BreakdownTypes = "none" | "voice" | "voice_multiplier" | "user" | "groups" | "api_keys" | "all_api_keys" | "product_type" | "model" | "resource" | "request_queue" | "region" | "subresource_id";
|
|
8
8
|
export declare const BreakdownTypes: {
|
|
9
9
|
readonly None: "none";
|
|
10
10
|
readonly Voice: "voice";
|
|
@@ -17,4 +17,6 @@ export declare const BreakdownTypes: {
|
|
|
17
17
|
readonly Model: "model";
|
|
18
18
|
readonly Resource: "resource";
|
|
19
19
|
readonly RequestQueue: "request_queue";
|
|
20
|
+
readonly Region: "region";
|
|
21
|
+
readonly SubresourceId: "subresource_id";
|
|
20
22
|
};
|
|
@@ -13,4 +13,6 @@ export interface BuiltInToolsOutput {
|
|
|
13
13
|
transferToNumber?: ElevenLabs.SystemToolConfigOutput;
|
|
14
14
|
/** The skip turn tool */
|
|
15
15
|
skipTurn?: ElevenLabs.SystemToolConfigOutput;
|
|
16
|
+
/** The play DTMF tool */
|
|
17
|
+
playKeypadTouchTone?: ElevenLabs.SystemToolConfigOutput;
|
|
16
18
|
}
|
|
@@ -15,6 +15,8 @@ export interface ChapterResponse {
|
|
|
15
15
|
canBeDownloaded: boolean;
|
|
16
16
|
/** The state of the chapter. */
|
|
17
17
|
state: ElevenLabs.ChapterState;
|
|
18
|
+
/** Whether the chapter has a video. */
|
|
19
|
+
hasVideo?: boolean;
|
|
18
20
|
/** The statistics of the chapter. */
|
|
19
21
|
statistics?: ElevenLabs.ChapterStatisticsResponse;
|
|
20
22
|
/** The last conversion error of the chapter. */
|
|
@@ -15,6 +15,8 @@ export interface ChapterWithContentResponseModel {
|
|
|
15
15
|
canBeDownloaded: boolean;
|
|
16
16
|
/** The state of the chapter. */
|
|
17
17
|
state: ElevenLabs.ChapterWithContentResponseModelState;
|
|
18
|
+
/** Whether the chapter has a video. */
|
|
19
|
+
hasVideo?: boolean;
|
|
18
20
|
/** The statistics of the chapter. */
|
|
19
21
|
statistics?: ElevenLabs.ChapterStatisticsResponse;
|
|
20
22
|
/** The last conversion error of the chapter. */
|
|
@@ -10,4 +10,6 @@ export interface ForcedAlignmentResponseModel {
|
|
|
10
10
|
characters: ElevenLabs.ForcedAlignmentCharacterResponseModel[];
|
|
11
11
|
/** List of words with their timing information. */
|
|
12
12
|
words: ElevenLabs.ForcedAlignmentWordResponseModel[];
|
|
13
|
+
/** The average alignment loss/confidence score for the entire transcript, calculated from all characters. */
|
|
14
|
+
loss: number;
|
|
13
15
|
}
|
|
@@ -11,4 +11,6 @@ export interface ForcedAlignmentWordResponseModel {
|
|
|
11
11
|
start: number;
|
|
12
12
|
/** The end time of the word in seconds. */
|
|
13
13
|
end: number;
|
|
14
|
+
/** The average alignment loss/confidence score for this word, calculated from its constituent characters. */
|
|
15
|
+
loss: number;
|
|
14
16
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type MetricType = "credits" | "minutes_used" | "request_count" | "ttfb_avg" | "ttfb_p95" | "fiat_units_spent";
|
|
4
|
+
export type MetricType = "credits" | "minutes_used" | "request_count" | "ttfb_avg" | "ttfb_p95" | "fiat_units_spent" | "concurrency";
|
|
5
5
|
export declare const MetricType: {
|
|
6
6
|
readonly Credits: "credits";
|
|
7
7
|
readonly MinutesUsed: "minutes_used";
|
|
@@ -9,4 +9,5 @@ export declare const MetricType: {
|
|
|
9
9
|
readonly TtfbAvg: "ttfb_avg";
|
|
10
10
|
readonly TtfbP95: "ttfb_p95";
|
|
11
11
|
readonly FiatUnitsSpent: "fiat_units_spent";
|
|
12
|
+
readonly Concurrency: "concurrency";
|
|
12
13
|
};
|
package/api/types/MetricType.js
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Allows the agent to play DTMF tones during a phone call.
|
|
6
|
+
*
|
|
7
|
+
* This tool can be used to interact with automated phone systems, such as
|
|
8
|
+
* navigating phone menus, entering extensions, or inputting numeric codes.
|
|
9
|
+
*/
|
|
10
|
+
export interface PlayDtmfToolConfig {
|
|
11
|
+
}
|
|
@@ -69,6 +69,6 @@ export interface ProjectExtendedResponse {
|
|
|
69
69
|
pronunciationDictionaryLocators: ElevenLabs.PronunciationDictionaryLocatorResponseModel[];
|
|
70
70
|
/** Whether text normalization is applied to the project. */
|
|
71
71
|
applyTextNormalization: ElevenLabs.ProjectExtendedResponseModelApplyTextNormalization;
|
|
72
|
-
/** Experimental features
|
|
73
|
-
experimental
|
|
72
|
+
/** Experimental features for the project. */
|
|
73
|
+
experimental?: Record<string, unknown>;
|
|
74
74
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type ProjectExtendedResponseModelSourceType = "blank" | "book" | "article" | "genfm";
|
|
4
|
+
export type ProjectExtendedResponseModelSourceType = "blank" | "book" | "article" | "genfm" | "video";
|
|
5
5
|
export declare const ProjectExtendedResponseModelSourceType: {
|
|
6
6
|
readonly Blank: "blank";
|
|
7
7
|
readonly Book: "book";
|
|
8
8
|
readonly Article: "article";
|
|
9
9
|
readonly Genfm: "genfm";
|
|
10
|
+
readonly Video: "video";
|
|
10
11
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type ProjectResponseModelSourceType = "blank" | "book" | "article" | "genfm";
|
|
4
|
+
export type ProjectResponseModelSourceType = "blank" | "book" | "article" | "genfm" | "video";
|
|
5
5
|
export declare const ProjectResponseModelSourceType: {
|
|
6
6
|
readonly Blank: "blank";
|
|
7
7
|
readonly Book: "book";
|
|
8
8
|
readonly Article: "article";
|
|
9
9
|
readonly Genfm: "genfm";
|
|
10
|
+
readonly Video: "video";
|
|
10
11
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as ElevenLabs from "../index";
|
|
5
|
-
export type SystemToolConfigInputParams = ElevenLabs.SystemToolConfigInputParams.EndCall | ElevenLabs.SystemToolConfigInputParams.LanguageDetection | ElevenLabs.SystemToolConfigInputParams.SkipTurn | ElevenLabs.SystemToolConfigInputParams.TransferToAgent | ElevenLabs.SystemToolConfigInputParams.TransferToNumber;
|
|
5
|
+
export type SystemToolConfigInputParams = ElevenLabs.SystemToolConfigInputParams.EndCall | ElevenLabs.SystemToolConfigInputParams.LanguageDetection | ElevenLabs.SystemToolConfigInputParams.PlayKeypadTouchTone | ElevenLabs.SystemToolConfigInputParams.SkipTurn | ElevenLabs.SystemToolConfigInputParams.TransferToAgent | ElevenLabs.SystemToolConfigInputParams.TransferToNumber;
|
|
6
6
|
export declare namespace SystemToolConfigInputParams {
|
|
7
7
|
interface EndCall extends ElevenLabs.EndCallToolConfig {
|
|
8
8
|
systemToolType: "end_call";
|
|
@@ -10,6 +10,9 @@ export declare namespace SystemToolConfigInputParams {
|
|
|
10
10
|
interface LanguageDetection extends ElevenLabs.LanguageDetectionToolConfig {
|
|
11
11
|
systemToolType: "language_detection";
|
|
12
12
|
}
|
|
13
|
+
interface PlayKeypadTouchTone extends ElevenLabs.PlayDtmfToolConfig {
|
|
14
|
+
systemToolType: "play_keypad_touch_tone";
|
|
15
|
+
}
|
|
13
16
|
interface SkipTurn extends ElevenLabs.SkipTurnToolConfig {
|
|
14
17
|
systemToolType: "skip_turn";
|
|
15
18
|
}
|