@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as
|
|
4
|
+
import * as core from "../../../../../../../core";
|
|
5
5
|
import * as ElevenLabs from "../../../../../../index";
|
|
6
6
|
/**
|
|
7
7
|
* @example
|
|
@@ -23,8 +23,14 @@ export interface BodyCreateStudioProjectV1StudioProjectsPost {
|
|
|
23
23
|
defaultModelId: string;
|
|
24
24
|
/** An optional URL from which we will extract content to initialize the Studio project. 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. */
|
|
25
25
|
fromUrl?: string;
|
|
26
|
-
fromDocument?:
|
|
27
|
-
/**
|
|
26
|
+
fromDocument?: core.FileLike | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* 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.
|
|
29
|
+
*
|
|
30
|
+
* Example:
|
|
31
|
+
* [{"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"}]}]}]
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
28
34
|
fromContentJson?: string;
|
|
29
35
|
/**
|
|
30
36
|
* Output quality of the generated audio. Must be one of:
|
|
@@ -85,6 +85,9 @@ class Content {
|
|
|
85
85
|
if (request.fromDocument != null) {
|
|
86
86
|
yield _request.appendFile("from_document", request.fromDocument);
|
|
87
87
|
}
|
|
88
|
+
if (request.fromContentJson != null) {
|
|
89
|
+
_request.append("from_content_json", request.fromContentJson);
|
|
90
|
+
}
|
|
88
91
|
if (request.autoConvert != null) {
|
|
89
92
|
_request.append("auto_convert", request.autoConvert.toString());
|
|
90
93
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as
|
|
4
|
+
import * as core from "../../../../../../../../../core";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {}
|
|
@@ -9,7 +9,15 @@ import * as fs from "fs";
|
|
|
9
9
|
export interface BodyUpdateStudioProjectContentV1StudioProjectsProjectIdContentPost {
|
|
10
10
|
/** An optional URL from which we will extract content to initialize the Studio project. 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. */
|
|
11
11
|
fromUrl?: string;
|
|
12
|
-
fromDocument?:
|
|
12
|
+
fromDocument?: core.FileLike | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* 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.
|
|
15
|
+
*
|
|
16
|
+
* Example:
|
|
17
|
+
* [{"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"}]}]}]
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
fromContentJson?: string;
|
|
13
21
|
/** Whether to auto convert the Studio project to audio or not. */
|
|
14
22
|
autoConvert?: boolean;
|
|
15
23
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type ProjectsCreateRequestSourceType = "blank" | "book" | "article" | "genfm";
|
|
4
|
+
export type ProjectsCreateRequestSourceType = "blank" | "book" | "article" | "genfm" | "video";
|
|
5
5
|
export declare const ProjectsCreateRequestSourceType: {
|
|
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,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as
|
|
4
|
+
import * as core from "../../../../../core";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
@@ -11,7 +11,7 @@ import * as fs from "fs";
|
|
|
11
11
|
export interface BodyEditVoiceV1VoicesVoiceIdEditPost {
|
|
12
12
|
/** The name that identifies this voice. This will be displayed in the dropdown of the website. */
|
|
13
13
|
name: string;
|
|
14
|
-
files?:
|
|
14
|
+
files?: core.FileLike[] | undefined;
|
|
15
15
|
/** If set will remove background noise for voice samples using our audio isolation model. If the samples do not include background noise, it can make the quality worse. */
|
|
16
16
|
removeBackgroundNoise?: boolean;
|
|
17
17
|
/** A description of the voice. */
|
package/api/resources/voices/client/requests/BodyGetSimilarLibraryVoicesV1SimilarVoicesPost.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as
|
|
4
|
+
import * as core from "../../../../../core";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {}
|
|
8
8
|
*/
|
|
9
9
|
export interface BodyGetSimilarLibraryVoicesV1SimilarVoicesPost {
|
|
10
|
-
audioFile?:
|
|
10
|
+
audioFile?: core.FileLike | undefined;
|
|
11
11
|
/** Threshold for voice similarity between provided sample and library voices. Values range from 0 to 2. The smaller the value the more similar voices will be returned. */
|
|
12
12
|
similarityThreshold?: number;
|
|
13
13
|
/** Number of most similar voices to return. If similarity_threshold is provided, less than this number of voices may be returned. Values range from 1 to 100. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as
|
|
4
|
+
import * as core from "../../../../../../../core";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
@@ -12,7 +12,7 @@ import * as fs from "fs";
|
|
|
12
12
|
export interface BodyAddVoiceV1VoicesAddPost {
|
|
13
13
|
/** The name that identifies this voice. This will be displayed in the dropdown of the website. */
|
|
14
14
|
name: string;
|
|
15
|
-
files:
|
|
15
|
+
files: core.FileLike[];
|
|
16
16
|
/** If set will remove background noise for voice samples using our audio isolation model. If the samples do not include background noise, it can make the quality worse. */
|
|
17
17
|
removeBackgroundNoise?: boolean;
|
|
18
18
|
/** A description of the voice. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as
|
|
4
|
+
import * as core from "../../../../../../../../../core";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
@@ -9,7 +9,7 @@ import * as fs from "fs";
|
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
11
|
export interface BodyAddSamplesToPvcVoiceV1VoicesPvcVoiceIdSamplesPost {
|
|
12
|
-
files:
|
|
12
|
+
files: core.FileLike[];
|
|
13
13
|
/** If set will remove background noise for voice samples using our audio isolation model. If the samples do not include background noise, it can make the quality worse. */
|
|
14
14
|
removeBackgroundNoise?: boolean;
|
|
15
15
|
}
|
package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts
CHANGED
|
@@ -35,13 +35,16 @@ export declare class Audio {
|
|
|
35
35
|
*
|
|
36
36
|
* @param {string} voiceId - Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
|
|
37
37
|
* @param {string} sampleId - Sample ID to be used
|
|
38
|
+
* @param {ElevenLabs.voices.pvc.samples.AudioGetRequest} request
|
|
38
39
|
* @param {Audio.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
40
|
*
|
|
40
41
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
41
42
|
*
|
|
42
43
|
* @example
|
|
43
|
-
* await client.voices.pvc.samples.audio.get("21m00Tcm4TlvDq8ikWAM", "VW7YKqPnjY4h39yTbx2L"
|
|
44
|
+
* await client.voices.pvc.samples.audio.get("21m00Tcm4TlvDq8ikWAM", "VW7YKqPnjY4h39yTbx2L", {
|
|
45
|
+
* removeBackgroundNoise: true
|
|
46
|
+
* })
|
|
44
47
|
*/
|
|
45
|
-
get(voiceId: string, sampleId: string, requestOptions?: Audio.RequestOptions): core.HttpResponsePromise<ElevenLabs.VoiceSamplePreviewResponseModel>;
|
|
48
|
+
get(voiceId: string, sampleId: string, request?: ElevenLabs.voices.pvc.samples.AudioGetRequest, requestOptions?: Audio.RequestOptions): core.HttpResponsePromise<ElevenLabs.VoiceSamplePreviewResponseModel>;
|
|
46
49
|
private __get;
|
|
47
50
|
}
|
package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js
CHANGED
|
@@ -65,23 +65,32 @@ class Audio {
|
|
|
65
65
|
*
|
|
66
66
|
* @param {string} voiceId - Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
|
|
67
67
|
* @param {string} sampleId - Sample ID to be used
|
|
68
|
+
* @param {ElevenLabs.voices.pvc.samples.AudioGetRequest} request
|
|
68
69
|
* @param {Audio.RequestOptions} requestOptions - Request-specific configuration.
|
|
69
70
|
*
|
|
70
71
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
71
72
|
*
|
|
72
73
|
* @example
|
|
73
|
-
* await client.voices.pvc.samples.audio.get("21m00Tcm4TlvDq8ikWAM", "VW7YKqPnjY4h39yTbx2L"
|
|
74
|
+
* await client.voices.pvc.samples.audio.get("21m00Tcm4TlvDq8ikWAM", "VW7YKqPnjY4h39yTbx2L", {
|
|
75
|
+
* removeBackgroundNoise: true
|
|
76
|
+
* })
|
|
74
77
|
*/
|
|
75
|
-
get(voiceId, sampleId, requestOptions) {
|
|
76
|
-
return core.HttpResponsePromise.fromPromise(this.__get(voiceId, sampleId, requestOptions));
|
|
78
|
+
get(voiceId, sampleId, request = {}, requestOptions) {
|
|
79
|
+
return core.HttpResponsePromise.fromPromise(this.__get(voiceId, sampleId, request, requestOptions));
|
|
77
80
|
}
|
|
78
|
-
__get(
|
|
79
|
-
return __awaiter(this,
|
|
81
|
+
__get(voiceId_1, sampleId_1) {
|
|
82
|
+
return __awaiter(this, arguments, void 0, function* (voiceId, sampleId, request = {}, requestOptions) {
|
|
80
83
|
var _a, _b, _c;
|
|
84
|
+
const { removeBackgroundNoise } = request;
|
|
85
|
+
const _queryParams = {};
|
|
86
|
+
if (removeBackgroundNoise != null) {
|
|
87
|
+
_queryParams["remove_background_noise"] = removeBackgroundNoise.toString();
|
|
88
|
+
}
|
|
81
89
|
const _response = yield core.fetcher({
|
|
82
90
|
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/voices/pvc/${encodeURIComponent(voiceId)}/samples/${encodeURIComponent(sampleId)}/audio`),
|
|
83
91
|
method: "GET",
|
|
84
92
|
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),
|
|
93
|
+
queryParameters: _queryParams,
|
|
85
94
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
86
95
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
87
96
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/index.js
CHANGED
|
@@ -1,2 +1,17 @@
|
|
|
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
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* removeBackgroundNoise: true
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface AudioGetRequest {
|
|
11
|
+
/**
|
|
12
|
+
* If set will remove background noise for voice samples using our audio isolation model. If the samples do not include background noise, it can make the quality worse.
|
|
13
|
+
*/
|
|
14
|
+
removeBackgroundNoise?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type AudioGetRequest } from "./AudioGetRequest";
|
|
@@ -32,8 +32,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
35
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
39
|
exports.speakers = exports.waveform = exports.audio = void 0;
|
|
37
40
|
exports.audio = __importStar(require("./audio"));
|
|
38
41
|
exports.waveform = __importStar(require("./waveform"));
|
|
39
42
|
exports.speakers = __importStar(require("./speakers"));
|
|
43
|
+
__exportStar(require("./audio/client/requests"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as
|
|
4
|
+
import * as core from "../../../../../../../../../core";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
@@ -9,7 +9,7 @@ import * as fs from "fs";
|
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
11
|
export interface BodyRequestManualVerificationV1VoicesPvcVoiceIdVerificationPost {
|
|
12
|
-
files:
|
|
12
|
+
files: core.FileLike[];
|
|
13
13
|
/** Extra text to be used in the manual verification process. */
|
|
14
14
|
extraText?: string;
|
|
15
15
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as
|
|
4
|
+
import * as core from "../../../../../../../../../../../core";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
@@ -9,5 +9,5 @@ import * as fs from "fs";
|
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
11
|
export interface BodyVerifyPvcVoiceCaptchaV1VoicesPvcVoiceIdCaptchaPost {
|
|
12
|
-
recording:
|
|
12
|
+
recording: core.FileLike;
|
|
13
13
|
}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "../../../../environments";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
|
-
import * as ElevenLabs from "../../../index";
|
|
7
6
|
import { Groups } from "../resources/groups/client/Client";
|
|
8
7
|
import { Invites } from "../resources/invites/client/Client";
|
|
9
8
|
import { Members } from "../resources/members/client/Client";
|
|
@@ -18,18 +17,6 @@ export declare namespace Workspace {
|
|
|
18
17
|
/** Additional headers to include in requests. */
|
|
19
18
|
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
20
19
|
}
|
|
21
|
-
interface RequestOptions {
|
|
22
|
-
/** The maximum time to wait for a response in seconds. */
|
|
23
|
-
timeoutInSeconds?: number;
|
|
24
|
-
/** The number of times to retry the request. Defaults to 2. */
|
|
25
|
-
maxRetries?: number;
|
|
26
|
-
/** A hook to abort the request. */
|
|
27
|
-
abortSignal?: AbortSignal;
|
|
28
|
-
/** Override the xi-api-key header */
|
|
29
|
-
apiKey?: string | undefined;
|
|
30
|
-
/** Additional headers to include in the request. */
|
|
31
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
32
|
-
}
|
|
33
20
|
}
|
|
34
21
|
export declare class Workspace {
|
|
35
22
|
protected readonly _options: Workspace.Options;
|
|
@@ -42,58 +29,4 @@ export declare class Workspace {
|
|
|
42
29
|
get invites(): Invites;
|
|
43
30
|
get members(): Members;
|
|
44
31
|
get resources(): Resources;
|
|
45
|
-
/**
|
|
46
|
-
* Update user auto provisioning settings for the workspace.
|
|
47
|
-
*
|
|
48
|
-
* @param {ElevenLabs.BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost} request
|
|
49
|
-
* @param {Workspace.RequestOptions} requestOptions - Request-specific configuration.
|
|
50
|
-
*
|
|
51
|
-
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* await client.workspace.updateUserAutoProvisioning({
|
|
55
|
-
* enabled: true
|
|
56
|
-
* })
|
|
57
|
-
*/
|
|
58
|
-
updateUserAutoProvisioning(request: ElevenLabs.BodyUpdateUserAutoProvisioningV1WorkspaceUserAutoProvisioningPost, requestOptions?: Workspace.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
59
|
-
private __updateUserAutoProvisioning;
|
|
60
|
-
/**
|
|
61
|
-
* Get the user's default sharing preferences.
|
|
62
|
-
*
|
|
63
|
-
* @param {Workspace.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
|
-
*
|
|
65
|
-
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* await client.workspace.getDefaultSharingPreferences()
|
|
69
|
-
*/
|
|
70
|
-
getDefaultSharingPreferences(requestOptions?: Workspace.RequestOptions): core.HttpResponsePromise<ElevenLabs.DefaultSharingPreferencesResponseModel>;
|
|
71
|
-
private __getDefaultSharingPreferences;
|
|
72
|
-
/**
|
|
73
|
-
* Update the user's default sharing preferences.
|
|
74
|
-
*
|
|
75
|
-
* @param {ElevenLabs.BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost} request
|
|
76
|
-
* @param {Workspace.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
|
-
*
|
|
78
|
-
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
79
|
-
*
|
|
80
|
-
* @example
|
|
81
|
-
* await client.workspace.updateDefaultSharingPreferences({
|
|
82
|
-
* defaultSharingGroups: ["default_sharing_groups"]
|
|
83
|
-
* })
|
|
84
|
-
*/
|
|
85
|
-
updateDefaultSharingPreferences(request: ElevenLabs.BodyUpdateDefaultSharingPreferencesV1WorkspaceDefaultSharingPreferencesPost, requestOptions?: Workspace.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
86
|
-
private __updateDefaultSharingPreferences;
|
|
87
|
-
/**
|
|
88
|
-
* Get the share options for a workspace.
|
|
89
|
-
*
|
|
90
|
-
* @param {Workspace.RequestOptions} requestOptions - Request-specific configuration.
|
|
91
|
-
*
|
|
92
|
-
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
93
|
-
*
|
|
94
|
-
* @example
|
|
95
|
-
* await client.workspace.getShareOptions()
|
|
96
|
-
*/
|
|
97
|
-
getShareOptions(requestOptions?: Workspace.RequestOptions): core.HttpResponsePromise<ElevenLabs.ShareOptionResponseModel[]>;
|
|
98
|
-
private __getShareOptions;
|
|
99
32
|
}
|