@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
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
|
3
|
+
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
4
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
5
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
6
|
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
7
|
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
8
|
+
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
|
9
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
10
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
11
|
+
function fulfill(value) { resume("next", value); }
|
|
12
|
+
function reject(value) { resume("throw", value); }
|
|
13
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
14
|
+
};
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.isNode = isNode;
|
|
17
|
+
exports.toAsyncIterable = toAsyncIterable;
|
|
18
|
+
function isNode() {
|
|
19
|
+
var _a;
|
|
20
|
+
return (typeof process !== "undefined" &&
|
|
21
|
+
process.versions != null &&
|
|
22
|
+
process.versions.node != null &&
|
|
23
|
+
((_a = process.release) === null || _a === void 0 ? void 0 : _a.name) === "node");
|
|
24
|
+
}
|
|
25
|
+
function toAsyncIterable(stream) {
|
|
26
|
+
return __asyncGenerator(this, arguments, function* toAsyncIterable_1() {
|
|
27
|
+
const reader = stream.getReader();
|
|
28
|
+
try {
|
|
29
|
+
while (true) {
|
|
30
|
+
const { done, value } = yield __await(reader.read());
|
|
31
|
+
if (done) {
|
|
32
|
+
return yield __await(void 0);
|
|
33
|
+
}
|
|
34
|
+
yield yield __await(value);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
finally {
|
|
38
|
+
reader.releaseLock();
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
package/environments.d.ts
CHANGED
|
@@ -18,5 +18,9 @@ export declare const ElevenLabsEnvironment: {
|
|
|
18
18
|
readonly base: "https://api.eu.residency.elevenlabs.io";
|
|
19
19
|
readonly wss: "wss://api.elevenlabs.io";
|
|
20
20
|
};
|
|
21
|
+
readonly ProductionIndia: {
|
|
22
|
+
readonly base: "https://api.in.residency.elevenlabs.io";
|
|
23
|
+
readonly wss: "wss://api.elevenlabs.io";
|
|
24
|
+
};
|
|
21
25
|
};
|
|
22
|
-
export type ElevenLabsEnvironment = typeof ElevenLabsEnvironment.Production | typeof ElevenLabsEnvironment.ProductionUs | typeof ElevenLabsEnvironment.ProductionEu;
|
|
26
|
+
export type ElevenLabsEnvironment = typeof ElevenLabsEnvironment.Production | typeof ElevenLabsEnvironment.ProductionUs | typeof ElevenLabsEnvironment.ProductionEu | typeof ElevenLabsEnvironment.ProductionIndia;
|
package/environments.js
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** @type {import('jest').Config} */
|
|
2
|
+
export default {
|
|
3
|
+
preset: "ts-jest",
|
|
4
|
+
testEnvironment: "<rootDir>/tests/BrowserTestEnvironment.ts",
|
|
5
|
+
testMatch: ["**/tests/**/*.browser.test.ts"],
|
|
6
|
+
moduleNameMapper: {
|
|
7
|
+
"^(\\.{1,2}/.*)\\.js$": "$1",
|
|
8
|
+
},
|
|
9
|
+
passWithNoTests: true,
|
|
10
|
+
};
|
package/jest.config.mjs
CHANGED
|
@@ -3,7 +3,10 @@ export default {
|
|
|
3
3
|
preset: "ts-jest",
|
|
4
4
|
testEnvironment: "node",
|
|
5
5
|
moduleNameMapper: {
|
|
6
|
-
"(
|
|
6
|
+
"^(\.{1,2}/.*)\.js$": "$1",
|
|
7
7
|
},
|
|
8
|
+
testPathIgnorePatterns: ["<rootDir>/.*\\.browser\\.test\\.ts$"],
|
|
8
9
|
setupFilesAfterEnv: ["<rootDir>/tests/mock-server/setup.ts"],
|
|
10
|
+
|
|
11
|
+
passWithNoTests: true,
|
|
9
12
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevenlabs/elevenlabs-js",
|
|
3
|
-
"version": "v2.
|
|
3
|
+
"version": "v2.5.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": "https://github.com/elevenlabs/elevenlabs-js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,19 +10,16 @@
|
|
|
10
10
|
"format": "prettier . --write --ignore-unknown",
|
|
11
11
|
"build": "tsc",
|
|
12
12
|
"prepack": "cp -rv dist/. .",
|
|
13
|
-
"test": "jest tests/unit
|
|
14
|
-
"test:
|
|
13
|
+
"test": "jest tests/unit",
|
|
14
|
+
"test:browser": "jest --config jest.browser.config.mjs",
|
|
15
|
+
"test:wire": "jest tests/wire",
|
|
15
16
|
"wire:test": "yarn test:wire"
|
|
16
17
|
},
|
|
17
18
|
"dependencies": {
|
|
18
19
|
"url-join": "4.0.1",
|
|
19
|
-
"form-data": "^4.0.0",
|
|
20
|
-
"formdata-node": "^6.0.3",
|
|
21
20
|
"node-fetch": "^2.7.0",
|
|
22
21
|
"qs": "^6.13.1",
|
|
23
|
-
"
|
|
24
|
-
"command-exists": "^1.2.9",
|
|
25
|
-
"execa": "^5.1.1"
|
|
22
|
+
"command-exists": "^1.2.9"
|
|
26
23
|
},
|
|
27
24
|
"devDependencies": {
|
|
28
25
|
"@types/url-join": "4.0.1",
|
|
@@ -45,8 +42,8 @@
|
|
|
45
42
|
"fs": false,
|
|
46
43
|
"os": false,
|
|
47
44
|
"path": false,
|
|
48
|
-
"
|
|
49
|
-
"
|
|
45
|
+
"stream": false,
|
|
46
|
+
"command-exists": false
|
|
50
47
|
},
|
|
51
48
|
"packageManager": "yarn@1.22.22"
|
|
52
49
|
}
|
package/reference.md
CHANGED
|
@@ -1204,7 +1204,7 @@ await client.textToVoice.design({
|
|
|
1204
1204
|
</dl>
|
|
1205
1205
|
</details>
|
|
1206
1206
|
|
|
1207
|
-
##
|
|
1207
|
+
## user
|
|
1208
1208
|
|
|
1209
1209
|
<details><summary><code>client.user.<a href="/src/api/resources/user/client/Client.ts">get</a>() -> ElevenLabs.User</code></summary>
|
|
1210
1210
|
<dl>
|
|
@@ -2334,7 +2334,7 @@ await client.audioNative.update("21m00Tcm4TlvDq8ikWAM", {});
|
|
|
2334
2334
|
</dl>
|
|
2335
2335
|
</details>
|
|
2336
2336
|
|
|
2337
|
-
##
|
|
2337
|
+
## usage
|
|
2338
2338
|
|
|
2339
2339
|
<details><summary><code>client.usage.<a href="/src/api/resources/usage/client/Client.ts">get</a>({ ...params }) -> ElevenLabs.UsageCharactersResponseModel</code></summary>
|
|
2340
2340
|
<dl>
|
|
@@ -2667,248 +2667,6 @@ await client.pronunciationDictionaries.list();
|
|
|
2667
2667
|
</dl>
|
|
2668
2668
|
</details>
|
|
2669
2669
|
|
|
2670
|
-
## Workspace
|
|
2671
|
-
|
|
2672
|
-
<details><summary><code>client.workspace.<a href="/src/api/resources/workspace/client/Client.ts">updateUserAutoProvisioning</a>({ ...params }) -> unknown</code></summary>
|
|
2673
|
-
<dl>
|
|
2674
|
-
<dd>
|
|
2675
|
-
|
|
2676
|
-
#### 📝 Description
|
|
2677
|
-
|
|
2678
|
-
<dl>
|
|
2679
|
-
<dd>
|
|
2680
|
-
|
|
2681
|
-
<dl>
|
|
2682
|
-
<dd>
|
|
2683
|
-
|
|
2684
|
-
Update user auto provisioning settings for the workspace.
|
|
2685
|
-
|
|
2686
|
-
</dd>
|
|
2687
|
-
</dl>
|
|
2688
|
-
</dd>
|
|
2689
|
-
</dl>
|
|
2690
|
-
|
|
2691
|
-
#### 🔌 Usage
|
|
2692
|
-
|
|
2693
|
-
<dl>
|
|
2694
|
-
<dd>
|
|
2695
|
-
|
|
2696
|
-
<dl>
|
|
2697
|
-
<dd>
|
|
2698
|
-
|
|
2699
|
-
```typescript
|
|
2700
|
-
await client.workspace.updateUserAutoProvisioning({
|
|
2701
|
-
enabled: true,
|
|
2702
|
-
});
|
|
2703
|
-
```
|
|
2704
|
-
|
|
2705
|
-
</dd>
|
|
2706
|
-
</dl>
|
|
2707
|
-
</dd>
|
|
2708
|
-
</dl>
|
|
2709
|
-
|
|
2710
|
-
#### ⚙️ Parameters
|
|
2711
|
-
|
|
2712
|
-
<dl>
|
|
2713
|
-
<dd>
|
|
2714
|
-
|
|
2715
|
-
<dl>
|
|
2716
|
-
<dd>
|
|
2717
|
-
|
|
2718
|
-
**request:** `ElevenLabs.BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost`
|
|
2719
|
-
|
|
2720
|
-
</dd>
|
|
2721
|
-
</dl>
|
|
2722
|
-
|
|
2723
|
-
<dl>
|
|
2724
|
-
<dd>
|
|
2725
|
-
|
|
2726
|
-
**requestOptions:** `Workspace.RequestOptions`
|
|
2727
|
-
|
|
2728
|
-
</dd>
|
|
2729
|
-
</dl>
|
|
2730
|
-
</dd>
|
|
2731
|
-
</dl>
|
|
2732
|
-
|
|
2733
|
-
</dd>
|
|
2734
|
-
</dl>
|
|
2735
|
-
</details>
|
|
2736
|
-
|
|
2737
|
-
<details><summary><code>client.workspace.<a href="/src/api/resources/workspace/client/Client.ts">getDefaultSharingPreferences</a>() -> ElevenLabs.DefaultSharingPreferencesResponseModel</code></summary>
|
|
2738
|
-
<dl>
|
|
2739
|
-
<dd>
|
|
2740
|
-
|
|
2741
|
-
#### 📝 Description
|
|
2742
|
-
|
|
2743
|
-
<dl>
|
|
2744
|
-
<dd>
|
|
2745
|
-
|
|
2746
|
-
<dl>
|
|
2747
|
-
<dd>
|
|
2748
|
-
|
|
2749
|
-
Get the user's default sharing preferences.
|
|
2750
|
-
|
|
2751
|
-
</dd>
|
|
2752
|
-
</dl>
|
|
2753
|
-
</dd>
|
|
2754
|
-
</dl>
|
|
2755
|
-
|
|
2756
|
-
#### 🔌 Usage
|
|
2757
|
-
|
|
2758
|
-
<dl>
|
|
2759
|
-
<dd>
|
|
2760
|
-
|
|
2761
|
-
<dl>
|
|
2762
|
-
<dd>
|
|
2763
|
-
|
|
2764
|
-
```typescript
|
|
2765
|
-
await client.workspace.getDefaultSharingPreferences();
|
|
2766
|
-
```
|
|
2767
|
-
|
|
2768
|
-
</dd>
|
|
2769
|
-
</dl>
|
|
2770
|
-
</dd>
|
|
2771
|
-
</dl>
|
|
2772
|
-
|
|
2773
|
-
#### ⚙️ Parameters
|
|
2774
|
-
|
|
2775
|
-
<dl>
|
|
2776
|
-
<dd>
|
|
2777
|
-
|
|
2778
|
-
<dl>
|
|
2779
|
-
<dd>
|
|
2780
|
-
|
|
2781
|
-
**requestOptions:** `Workspace.RequestOptions`
|
|
2782
|
-
|
|
2783
|
-
</dd>
|
|
2784
|
-
</dl>
|
|
2785
|
-
</dd>
|
|
2786
|
-
</dl>
|
|
2787
|
-
|
|
2788
|
-
</dd>
|
|
2789
|
-
</dl>
|
|
2790
|
-
</details>
|
|
2791
|
-
|
|
2792
|
-
<details><summary><code>client.workspace.<a href="/src/api/resources/workspace/client/Client.ts">updateDefaultSharingPreferences</a>({ ...params }) -> unknown</code></summary>
|
|
2793
|
-
<dl>
|
|
2794
|
-
<dd>
|
|
2795
|
-
|
|
2796
|
-
#### 📝 Description
|
|
2797
|
-
|
|
2798
|
-
<dl>
|
|
2799
|
-
<dd>
|
|
2800
|
-
|
|
2801
|
-
<dl>
|
|
2802
|
-
<dd>
|
|
2803
|
-
|
|
2804
|
-
Update the user's default sharing preferences.
|
|
2805
|
-
|
|
2806
|
-
</dd>
|
|
2807
|
-
</dl>
|
|
2808
|
-
</dd>
|
|
2809
|
-
</dl>
|
|
2810
|
-
|
|
2811
|
-
#### 🔌 Usage
|
|
2812
|
-
|
|
2813
|
-
<dl>
|
|
2814
|
-
<dd>
|
|
2815
|
-
|
|
2816
|
-
<dl>
|
|
2817
|
-
<dd>
|
|
2818
|
-
|
|
2819
|
-
```typescript
|
|
2820
|
-
await client.workspace.updateDefaultSharingPreferences({
|
|
2821
|
-
defaultSharingGroups: ["default_sharing_groups"],
|
|
2822
|
-
});
|
|
2823
|
-
```
|
|
2824
|
-
|
|
2825
|
-
</dd>
|
|
2826
|
-
</dl>
|
|
2827
|
-
</dd>
|
|
2828
|
-
</dl>
|
|
2829
|
-
|
|
2830
|
-
#### ⚙️ Parameters
|
|
2831
|
-
|
|
2832
|
-
<dl>
|
|
2833
|
-
<dd>
|
|
2834
|
-
|
|
2835
|
-
<dl>
|
|
2836
|
-
<dd>
|
|
2837
|
-
|
|
2838
|
-
**request:** `ElevenLabs.BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost`
|
|
2839
|
-
|
|
2840
|
-
</dd>
|
|
2841
|
-
</dl>
|
|
2842
|
-
|
|
2843
|
-
<dl>
|
|
2844
|
-
<dd>
|
|
2845
|
-
|
|
2846
|
-
**requestOptions:** `Workspace.RequestOptions`
|
|
2847
|
-
|
|
2848
|
-
</dd>
|
|
2849
|
-
</dl>
|
|
2850
|
-
</dd>
|
|
2851
|
-
</dl>
|
|
2852
|
-
|
|
2853
|
-
</dd>
|
|
2854
|
-
</dl>
|
|
2855
|
-
</details>
|
|
2856
|
-
|
|
2857
|
-
<details><summary><code>client.workspace.<a href="/src/api/resources/workspace/client/Client.ts">getShareOptions</a>() -> ElevenLabs.ShareOptionResponseModel[]</code></summary>
|
|
2858
|
-
<dl>
|
|
2859
|
-
<dd>
|
|
2860
|
-
|
|
2861
|
-
#### 📝 Description
|
|
2862
|
-
|
|
2863
|
-
<dl>
|
|
2864
|
-
<dd>
|
|
2865
|
-
|
|
2866
|
-
<dl>
|
|
2867
|
-
<dd>
|
|
2868
|
-
|
|
2869
|
-
Get the share options for a workspace.
|
|
2870
|
-
|
|
2871
|
-
</dd>
|
|
2872
|
-
</dl>
|
|
2873
|
-
</dd>
|
|
2874
|
-
</dl>
|
|
2875
|
-
|
|
2876
|
-
#### 🔌 Usage
|
|
2877
|
-
|
|
2878
|
-
<dl>
|
|
2879
|
-
<dd>
|
|
2880
|
-
|
|
2881
|
-
<dl>
|
|
2882
|
-
<dd>
|
|
2883
|
-
|
|
2884
|
-
```typescript
|
|
2885
|
-
await client.workspace.getShareOptions();
|
|
2886
|
-
```
|
|
2887
|
-
|
|
2888
|
-
</dd>
|
|
2889
|
-
</dl>
|
|
2890
|
-
</dd>
|
|
2891
|
-
</dl>
|
|
2892
|
-
|
|
2893
|
-
#### ⚙️ Parameters
|
|
2894
|
-
|
|
2895
|
-
<dl>
|
|
2896
|
-
<dd>
|
|
2897
|
-
|
|
2898
|
-
<dl>
|
|
2899
|
-
<dd>
|
|
2900
|
-
|
|
2901
|
-
**requestOptions:** `Workspace.RequestOptions`
|
|
2902
|
-
|
|
2903
|
-
</dd>
|
|
2904
|
-
</dl>
|
|
2905
|
-
</dd>
|
|
2906
|
-
</dl>
|
|
2907
|
-
|
|
2908
|
-
</dd>
|
|
2909
|
-
</dl>
|
|
2910
|
-
</details>
|
|
2911
|
-
|
|
2912
2670
|
## Webhooks
|
|
2913
2671
|
|
|
2914
2672
|
<details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">list</a>({ ...params }) -> ElevenLabs.WorkspaceWebhookListResponseModel</code></summary>
|
|
@@ -6811,7 +6569,7 @@ await client.conversationalAi.knowledgeBase.documents.createFromText({
|
|
|
6811
6569
|
</dl>
|
|
6812
6570
|
</details>
|
|
6813
6571
|
|
|
6814
|
-
<details><summary><code>client.conversationalAi.knowledgeBase.documents.<a href="/src/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.ts">get</a>(documentationId) -> ElevenLabs.DocumentsGetResponse</code></summary>
|
|
6572
|
+
<details><summary><code>client.conversationalAi.knowledgeBase.documents.<a href="/src/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.ts">get</a>(documentationId, { ...params }) -> ElevenLabs.DocumentsGetResponse</code></summary>
|
|
6815
6573
|
<dl>
|
|
6816
6574
|
<dd>
|
|
6817
6575
|
|
|
@@ -6863,6 +6621,14 @@ await client.conversationalAi.knowledgeBase.documents.get("21m00Tcm4TlvDq8ikWAM"
|
|
|
6863
6621
|
<dl>
|
|
6864
6622
|
<dd>
|
|
6865
6623
|
|
|
6624
|
+
**request:** `ElevenLabs.conversationalAi.knowledgeBase.DocumentsGetRequest`
|
|
6625
|
+
|
|
6626
|
+
</dd>
|
|
6627
|
+
</dl>
|
|
6628
|
+
|
|
6629
|
+
<dl>
|
|
6630
|
+
<dd>
|
|
6631
|
+
|
|
6866
6632
|
**requestOptions:** `Documents.RequestOptions`
|
|
6867
6633
|
|
|
6868
6634
|
</dd>
|
|
@@ -10755,7 +10521,7 @@ await client.voices.pvc.verification.request("21m00Tcm4TlvDq8ikWAM", {
|
|
|
10755
10521
|
|
|
10756
10522
|
## Voices Pvc Samples Audio
|
|
10757
10523
|
|
|
10758
|
-
<details><summary><code>client.voices.pvc.samples.audio.<a href="/src/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.ts">get</a>(voiceId, sampleId) -> ElevenLabs.VoiceSamplePreviewResponseModel</code></summary>
|
|
10524
|
+
<details><summary><code>client.voices.pvc.samples.audio.<a href="/src/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.ts">get</a>(voiceId, sampleId, { ...params }) -> ElevenLabs.VoiceSamplePreviewResponseModel</code></summary>
|
|
10759
10525
|
<dl>
|
|
10760
10526
|
<dd>
|
|
10761
10527
|
|
|
@@ -10783,7 +10549,9 @@ Retrieve the first 30 seconds of voice sample audio with or without noise remova
|
|
|
10783
10549
|
<dd>
|
|
10784
10550
|
|
|
10785
10551
|
```typescript
|
|
10786
|
-
await client.voices.pvc.samples.audio.get("21m00Tcm4TlvDq8ikWAM", "VW7YKqPnjY4h39yTbx2L"
|
|
10552
|
+
await client.voices.pvc.samples.audio.get("21m00Tcm4TlvDq8ikWAM", "VW7YKqPnjY4h39yTbx2L", {
|
|
10553
|
+
removeBackgroundNoise: true,
|
|
10554
|
+
});
|
|
10787
10555
|
```
|
|
10788
10556
|
|
|
10789
10557
|
</dd>
|
|
@@ -10815,6 +10583,14 @@ await client.voices.pvc.samples.audio.get("21m00Tcm4TlvDq8ikWAM", "VW7YKqPnjY4h3
|
|
|
10815
10583
|
<dl>
|
|
10816
10584
|
<dd>
|
|
10817
10585
|
|
|
10586
|
+
**request:** `ElevenLabs.voices.pvc.samples.AudioGetRequest`
|
|
10587
|
+
|
|
10588
|
+
</dd>
|
|
10589
|
+
</dl>
|
|
10590
|
+
|
|
10591
|
+
<dl>
|
|
10592
|
+
<dd>
|
|
10593
|
+
|
|
10818
10594
|
**requestOptions:** `Audio.RequestOptions`
|
|
10819
10595
|
|
|
10820
10596
|
</dd>
|
|
@@ -36,5 +36,4 @@ export * from "./textToVoice/client/requests";
|
|
|
36
36
|
export * from "./voices/client/requests";
|
|
37
37
|
export * from "./studio/client/requests";
|
|
38
38
|
export * from "./pronunciationDictionaries/client/requests";
|
|
39
|
-
export * from "./workspace/client/requests";
|
|
40
39
|
export * from "./conversationalAi/client/requests";
|
|
@@ -75,5 +75,4 @@ __exportStar(require("./textToVoice/client/requests"), exports);
|
|
|
75
75
|
__exportStar(require("./voices/client/requests"), exports);
|
|
76
76
|
__exportStar(require("./studio/client/requests"), exports);
|
|
77
77
|
__exportStar(require("./pronunciationDictionaries/client/requests"), exports);
|
|
78
|
-
__exportStar(require("./workspace/client/requests"), exports);
|
|
79
78
|
__exportStar(require("./conversationalAi/client/requests"), exports);
|
package/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ import * as ElevenLabs from "../../../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../../../core";
|
|
7
7
|
export declare const ProjectsCreateRequestSourceType: core.serialization.Schema<serializers.studio.ProjectsCreateRequestSourceType.Raw, ElevenLabs.studio.ProjectsCreateRequestSourceType>;
|
|
8
8
|
export declare namespace ProjectsCreateRequestSourceType {
|
|
9
|
-
type Raw = "blank" | "book" | "article" | "genfm";
|
|
9
|
+
type Raw = "blank" | "book" | "article" | "genfm" | "video";
|
|
10
10
|
}
|
package/serialization/resources/studio/resources/projects/types/ProjectsCreateRequestSourceType.js
CHANGED
|
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.ProjectsCreateRequestSourceType = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../../../core"));
|
|
41
|
-
exports.ProjectsCreateRequestSourceType = core.serialization.enum_(["blank", "book", "article", "genfm"]);
|
|
41
|
+
exports.ProjectsCreateRequestSourceType = core.serialization.enum_(["blank", "book", "article", "genfm", "video"]);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as ElevenLabs from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const AuthConnectionLocator: core.serialization.ObjectSchema<serializers.AuthConnectionLocator.Raw, ElevenLabs.AuthConnectionLocator>;
|
|
8
|
+
export declare namespace AuthConnectionLocator {
|
|
9
|
+
interface Raw {
|
|
10
|
+
auth_connection_id: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -36,8 +36,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
const core = __importStar(require("
|
|
41
|
-
exports.
|
|
42
|
-
|
|
39
|
+
exports.AuthConnectionLocator = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.AuthConnectionLocator = core.serialization.object({
|
|
42
|
+
authConnectionId: core.serialization.property("auth_connection_id", core.serialization.string()),
|
|
43
43
|
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as ElevenLabs from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const BadRequestErrorBody: core.serialization.ObjectSchema<serializers.BadRequestErrorBody.Raw, ElevenLabs.BadRequestErrorBody>;
|
|
8
|
+
export declare namespace BadRequestErrorBody {
|
|
9
|
+
interface Raw {
|
|
10
|
+
error?: string | null;
|
|
11
|
+
message?: string | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -36,8 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
const core = __importStar(require("
|
|
41
|
-
exports.
|
|
42
|
-
|
|
39
|
+
exports.BadRequestErrorBody = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.BadRequestErrorBody = core.serialization.object({
|
|
42
|
+
error: core.serialization.string().optional(),
|
|
43
|
+
message: core.serialization.string().optional(),
|
|
43
44
|
});
|
|
@@ -6,5 +6,5 @@ import * as ElevenLabs from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const BodyAddProjectV1ProjectsAddPostSourceType: core.serialization.Schema<serializers.BodyAddProjectV1ProjectsAddPostSourceType.Raw, ElevenLabs.BodyAddProjectV1ProjectsAddPostSourceType>;
|
|
8
8
|
export declare namespace BodyAddProjectV1ProjectsAddPostSourceType {
|
|
9
|
-
type Raw = "blank" | "book" | "article" | "genfm";
|
|
9
|
+
type Raw = "blank" | "book" | "article" | "genfm" | "video";
|
|
10
10
|
}
|
|
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.BodyAddProjectV1ProjectsAddPostSourceType = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
-
exports.BodyAddProjectV1ProjectsAddPostSourceType = core.serialization.enum_(["blank", "book", "article", "genfm"]);
|
|
41
|
+
exports.BodyAddProjectV1ProjectsAddPostSourceType = core.serialization.enum_(["blank", "book", "article", "genfm", "video"]);
|
|
@@ -41,5 +41,6 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
exports.BodyEditProjectContentV1ProjectsProjectIdContentPost = core.serialization.object({
|
|
42
42
|
fromUrl: core.serialization.property("from_url", core.serialization.string().optional()),
|
|
43
43
|
fromDocument: core.serialization.property("from_document", core.serialization.string().optional()),
|
|
44
|
+
fromContentJson: core.serialization.property("from_content_json", core.serialization.string().optional()),
|
|
44
45
|
autoConvert: core.serialization.property("auto_convert", core.serialization.boolean().optional()),
|
|
45
46
|
});
|
|
@@ -6,5 +6,5 @@ import * as ElevenLabs from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const BreakdownTypes: core.serialization.Schema<serializers.BreakdownTypes.Raw, ElevenLabs.BreakdownTypes>;
|
|
8
8
|
export declare namespace BreakdownTypes {
|
|
9
|
-
type Raw = "none" | "voice" | "voice_multiplier" | "user" | "groups" | "api_keys" | "all_api_keys" | "product_type" | "model" | "resource" | "request_queue";
|
|
9
|
+
type Raw = "none" | "voice" | "voice_multiplier" | "user" | "groups" | "api_keys" | "all_api_keys" | "product_type" | "model" | "resource" | "request_queue" | "region" | "subresource_id";
|
|
10
10
|
}
|
|
@@ -13,5 +13,6 @@ export declare namespace BuiltInToolsInput {
|
|
|
13
13
|
transfer_to_agent?: SystemToolConfigInput.Raw | null;
|
|
14
14
|
transfer_to_number?: SystemToolConfigInput.Raw | null;
|
|
15
15
|
skip_turn?: SystemToolConfigInput.Raw | null;
|
|
16
|
+
play_keypad_touch_tone?: SystemToolConfigInput.Raw | null;
|
|
16
17
|
}
|
|
17
18
|
}
|
|
@@ -45,4 +45,5 @@ exports.BuiltInToolsInput = core.serialization.object({
|
|
|
45
45
|
transferToAgent: core.serialization.property("transfer_to_agent", SystemToolConfigInput_1.SystemToolConfigInput.optional()),
|
|
46
46
|
transferToNumber: core.serialization.property("transfer_to_number", SystemToolConfigInput_1.SystemToolConfigInput.optional()),
|
|
47
47
|
skipTurn: core.serialization.property("skip_turn", SystemToolConfigInput_1.SystemToolConfigInput.optional()),
|
|
48
|
+
playKeypadTouchTone: core.serialization.property("play_keypad_touch_tone", SystemToolConfigInput_1.SystemToolConfigInput.optional()),
|
|
48
49
|
});
|
|
@@ -13,5 +13,6 @@ export declare namespace BuiltInToolsOutput {
|
|
|
13
13
|
transfer_to_agent?: SystemToolConfigOutput.Raw | null;
|
|
14
14
|
transfer_to_number?: SystemToolConfigOutput.Raw | null;
|
|
15
15
|
skip_turn?: SystemToolConfigOutput.Raw | null;
|
|
16
|
+
play_keypad_touch_tone?: SystemToolConfigOutput.Raw | null;
|
|
16
17
|
}
|
|
17
18
|
}
|
|
@@ -45,4 +45,5 @@ exports.BuiltInToolsOutput = core.serialization.object({
|
|
|
45
45
|
transferToAgent: core.serialization.property("transfer_to_agent", SystemToolConfigOutput_1.SystemToolConfigOutput.optional()),
|
|
46
46
|
transferToNumber: core.serialization.property("transfer_to_number", SystemToolConfigOutput_1.SystemToolConfigOutput.optional()),
|
|
47
47
|
skipTurn: core.serialization.property("skip_turn", SystemToolConfigOutput_1.SystemToolConfigOutput.optional()),
|
|
48
|
+
playKeypadTouchTone: core.serialization.property("play_keypad_touch_tone", SystemToolConfigOutput_1.SystemToolConfigOutput.optional()),
|
|
48
49
|
});
|
|
@@ -15,6 +15,7 @@ export declare namespace ChapterResponse {
|
|
|
15
15
|
conversion_progress?: number | null;
|
|
16
16
|
can_be_downloaded: boolean;
|
|
17
17
|
state: ChapterState.Raw;
|
|
18
|
+
has_video?: boolean | null;
|
|
18
19
|
statistics?: ChapterStatisticsResponse.Raw | null;
|
|
19
20
|
last_conversion_error?: string | null;
|
|
20
21
|
}
|
|
@@ -47,6 +47,7 @@ exports.ChapterResponse = core.serialization.object({
|
|
|
47
47
|
conversionProgress: core.serialization.property("conversion_progress", core.serialization.number().optional()),
|
|
48
48
|
canBeDownloaded: core.serialization.property("can_be_downloaded", core.serialization.boolean()),
|
|
49
49
|
state: ChapterState_1.ChapterState,
|
|
50
|
+
hasVideo: core.serialization.property("has_video", core.serialization.boolean().optional()),
|
|
50
51
|
statistics: ChapterStatisticsResponse_1.ChapterStatisticsResponse.optional(),
|
|
51
52
|
lastConversionError: core.serialization.property("last_conversion_error", core.serialization.string().optional()),
|
|
52
53
|
});
|