@elevenlabs/elevenlabs-js 2.26.0 → 2.27.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/.fern/metadata.json +2 -2
- package/BaseClient.d.ts +5 -1
- package/BaseClient.js +48 -0
- package/Client.d.ts +76 -76
- package/Client.js +29 -49
- package/api/errors/BadRequestError.js +5 -1
- package/api/errors/ConflictError.js +5 -1
- package/api/errors/ForbiddenError.js +5 -1
- package/api/errors/NotFoundError.js +5 -1
- package/api/errors/TooEarlyError.js +5 -1
- package/api/errors/UnauthorizedError.js +5 -1
- package/api/errors/UnprocessableEntityError.js +5 -1
- package/api/resources/audioIsolation/client/Client.d.ts +8 -8
- package/api/resources/audioIsolation/client/Client.js +9 -35
- package/api/resources/audioNative/client/Client.d.ts +12 -12
- package/api/resources/audioNative/client/Client.js +13 -53
- package/api/resources/conversationalAi/client/Client.d.ts +59 -59
- package/api/resources/conversationalAi/client/Client.js +30 -84
- package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +36 -36
- package/api/resources/conversationalAi/resources/agents/client/Client.js +29 -153
- package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +8 -8
- package/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +9 -21
- package/api/resources/conversationalAi/resources/agents/resources/link/client/Client.d.ts +8 -8
- package/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +9 -21
- package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +8 -8
- package/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +9 -21
- package/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.d.ts +11 -11
- package/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +10 -22
- package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.d.ts +8 -8
- package/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +9 -21
- package/api/resources/conversationalAi/resources/analytics/client/Client.d.ts +9 -9
- package/api/resources/conversationalAi/resources/analytics/client/Client.js +7 -6
- package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/Client.d.ts +8 -8
- package/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/Client.js +9 -21
- package/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +16 -16
- package/api/resources/conversationalAi/resources/batchCalls/client/Client.js +17 -85
- package/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +22 -22
- package/api/resources/conversationalAi/resources/conversations/client/Client.js +19 -87
- package/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.d.ts +7 -7
- package/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +8 -20
- package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.d.ts +8 -8
- package/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +9 -21
- package/api/resources/conversationalAi/resources/dashboard/client/Client.d.ts +9 -9
- package/api/resources/conversationalAi/resources/dashboard/client/Client.js +7 -6
- package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.d.ts +10 -10
- package/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +11 -37
- package/api/resources/conversationalAi/resources/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/index.js +1 -0
- package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +14 -14
- package/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +11 -23
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.d.ts +8 -8
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +9 -21
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +25 -25
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +24 -134
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.d.ts +8 -8
- package/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +9 -21
- package/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +8 -8
- package/api/resources/conversationalAi/resources/llmUsage/client/Client.js +9 -21
- package/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +28 -28
- package/api/resources/conversationalAi/resources/mcpServers/client/Client.js +21 -89
- package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.d.ts +8 -8
- package/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.js +9 -21
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.d.ts +10 -10
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.js +11 -37
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/Client.d.ts +14 -14
- package/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/Client.js +15 -69
- package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.d.ts +8 -8
- package/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.js +9 -21
- package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +16 -16
- package/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +17 -85
- package/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +14 -14
- package/api/resources/conversationalAi/resources/secrets/client/Client.js +15 -69
- package/api/resources/conversationalAi/resources/settings/client/Client.d.ts +10 -10
- package/api/resources/conversationalAi/resources/settings/client/Client.js +11 -37
- package/api/resources/conversationalAi/resources/sipTrunk/client/Client.d.ts +8 -8
- package/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +9 -21
- package/api/resources/conversationalAi/resources/tests/client/Client.d.ts +21 -21
- package/api/resources/conversationalAi/resources/tests/client/Client.js +20 -102
- package/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.d.ts +12 -12
- package/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.js +13 -53
- package/api/resources/conversationalAi/resources/tools/client/Client.d.ts +18 -18
- package/api/resources/conversationalAi/resources/tools/client/Client.js +19 -101
- package/api/resources/conversationalAi/resources/twilio/client/Client.d.ts +25 -8
- package/api/resources/conversationalAi/resources/twilio/client/Client.js +67 -20
- package/api/resources/conversationalAi/resources/twilio/client/requests/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost.d.ts +16 -0
- package/api/resources/conversationalAi/resources/twilio/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/twilio/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/twilio/index.js +1 -0
- package/api/resources/conversationalAi/resources/twilio/types/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPostDirection.d.ts +5 -0
- package/api/resources/conversationalAi/resources/twilio/types/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPostDirection.js +8 -0
- package/api/resources/conversationalAi/resources/twilio/types/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/twilio/types/index.js +17 -0
- package/api/resources/dubbing/client/Client.d.ts +23 -23
- package/api/resources/dubbing/client/Client.js +18 -72
- package/api/resources/dubbing/resources/audio/client/Client.d.ts +7 -7
- package/api/resources/dubbing/resources/audio/client/Client.js +8 -20
- package/api/resources/dubbing/resources/resource/client/Client.d.ts +28 -28
- package/api/resources/dubbing/resources/resource/client/Client.js +23 -105
- package/api/resources/dubbing/resources/resource/resources/language/client/Client.d.ts +8 -8
- package/api/resources/dubbing/resources/resource/resources/language/client/Client.js +9 -21
- package/api/resources/dubbing/resources/resource/resources/segment/client/Client.d.ts +10 -10
- package/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +11 -37
- package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.d.ts +15 -15
- package/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +14 -54
- package/api/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.d.ts +6 -0
- package/api/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.d.ts +6 -0
- package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.d.ts +8 -8
- package/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +9 -21
- package/api/resources/dubbing/resources/transcript/client/Client.d.ts +8 -8
- package/api/resources/dubbing/resources/transcript/client/Client.js +9 -21
- package/api/resources/forcedAlignment/client/Client.d.ts +8 -8
- package/api/resources/forcedAlignment/client/Client.js +9 -21
- package/api/resources/history/client/Client.d.ts +14 -14
- package/api/resources/history/client/Client.js +15 -83
- package/api/resources/models/client/Client.d.ts +8 -8
- package/api/resources/models/client/Client.js +9 -21
- package/api/resources/music/client/Client.d.ts +13 -13
- package/api/resources/music/client/Client.js +15 -66
- package/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +2 -0
- package/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +4 -0
- package/api/resources/music/client/requests/BodyStemSeparationV1MusicStemSeparationPost.d.ts +2 -0
- package/api/resources/music/resources/compositionPlan/client/Client.d.ts +8 -8
- package/api/resources/music/resources/compositionPlan/client/Client.js +9 -21
- package/api/resources/pronunciationDictionaries/client/Client.d.ts +20 -20
- package/api/resources/pronunciationDictionaries/client/Client.js +19 -101
- package/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +10 -10
- package/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +11 -37
- package/api/resources/samples/client/Client.d.ts +8 -8
- package/api/resources/samples/client/Client.js +9 -21
- package/api/resources/serviceAccounts/client/Client.d.ts +11 -11
- package/api/resources/serviceAccounts/client/Client.js +10 -22
- package/api/resources/serviceAccounts/resources/apiKeys/client/Client.d.ts +16 -16
- package/api/resources/serviceAccounts/resources/apiKeys/client/Client.js +17 -71
- package/api/resources/serviceAccounts/resources/apiKeys/client/requests/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPost.d.ts +1 -1
- package/api/resources/serviceAccounts/resources/apiKeys/client/requests/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatch.d.ts +1 -1
- package/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.d.ts +1 -1
- package/api/resources/serviceAccounts/resources/apiKeys/types/{BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts → BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.d.ts} +2 -2
- package/{dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js → api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.js} +2 -2
- package/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.d.ts +1 -1
- package/api/resources/serviceAccounts/resources/apiKeys/types/{BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts → BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.d.ts} +2 -2
- package/{dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js → api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.js} +2 -2
- package/api/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +2 -2
- package/api/resources/serviceAccounts/resources/apiKeys/types/index.js +2 -2
- package/api/resources/speechToSpeech/client/Client.d.ts +8 -8
- package/api/resources/speechToSpeech/client/Client.js +9 -35
- package/api/resources/speechToText/client/Client.d.ts +11 -11
- package/api/resources/speechToText/client/Client.js +10 -22
- package/api/resources/speechToText/resources/transcripts/client/Client.d.ts +10 -10
- package/api/resources/speechToText/resources/transcripts/client/Client.js +11 -37
- package/api/resources/studio/client/Client.d.ts +12 -11
- package/api/resources/studio/client/Client.js +11 -22
- package/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +1 -0
- package/api/resources/studio/resources/projects/client/Client.d.ts +30 -30
- package/api/resources/studio/resources/projects/client/Client.js +23 -105
- package/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +7 -1
- package/api/resources/studio/resources/projects/resources/chapters/client/Client.d.ts +21 -21
- package/api/resources/studio/resources/projects/resources/chapters/client/Client.js +20 -102
- package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.d.ts +11 -11
- package/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +12 -52
- package/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +8 -8
- package/api/resources/studio/resources/projects/resources/content/client/Client.js +9 -21
- package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.d.ts +8 -8
- package/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +9 -21
- package/api/resources/studio/resources/projects/resources/snapshots/client/Client.d.ts +12 -12
- package/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +13 -67
- package/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSource.d.ts +1 -1
- package/api/resources/studio/types/{BodyCreatePodcastV1StudioPodcastsPostSourceItem.d.ts → BodyCreatePodcastV1StudioPodcastsPostSourceTwoItem.d.ts} +2 -2
- package/api/resources/studio/types/index.d.ts +1 -1
- package/api/resources/studio/types/index.js +1 -1
- package/api/resources/textToDialogue/client/Client.d.ts +11 -11
- package/api/resources/textToDialogue/client/Client.js +12 -66
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +1 -1
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +1 -1
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +1 -1
- package/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +1 -1
- package/api/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.d.ts +1 -1
- package/api/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.js +1 -1
- package/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization.d.ts +1 -1
- package/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization.js +1 -1
- package/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization.d.ts +1 -1
- package/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization.js +1 -1
- package/api/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.d.ts +1 -1
- package/api/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.js +1 -1
- package/api/resources/textToSoundEffects/client/Client.d.ts +7 -7
- package/api/resources/textToSoundEffects/client/Client.js +8 -20
- package/api/resources/textToSpeech/client/Client.d.ts +11 -11
- package/api/resources/textToSpeech/client/Client.js +12 -66
- package/api/resources/textToSpeech/client/requests/BodyTextToSpeechFull.d.ts +1 -1
- package/api/resources/textToSpeech/client/requests/BodyTextToSpeechFullWithTimestamps.d.ts +1 -1
- package/api/resources/textToSpeech/client/requests/StreamTextToSpeechRequest.d.ts +1 -1
- package/api/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts +1 -1
- package/api/resources/textToSpeech/types/BodyTextToSpeechFullApplyTextNormalization.d.ts +1 -1
- package/api/resources/textToSpeech/types/BodyTextToSpeechFullApplyTextNormalization.js +1 -1
- package/api/resources/textToSpeech/types/BodyTextToSpeechFullWithTimestampsApplyTextNormalization.d.ts +1 -1
- package/api/resources/textToSpeech/types/BodyTextToSpeechFullWithTimestampsApplyTextNormalization.js +1 -1
- package/api/resources/textToSpeech/types/BodyTextToSpeechStreamApplyTextNormalization.d.ts +1 -1
- package/api/resources/textToSpeech/types/BodyTextToSpeechStreamApplyTextNormalization.js +1 -1
- package/api/resources/textToSpeech/types/BodyTextToSpeechStreamWithTimestampsApplyTextNormalization.d.ts +1 -1
- package/api/resources/textToSpeech/types/BodyTextToSpeechStreamWithTimestampsApplyTextNormalization.js +1 -1
- package/api/resources/textToVoice/client/Client.d.ts +17 -17
- package/api/resources/textToVoice/client/Client.js +16 -70
- package/api/resources/textToVoice/resources/preview/client/Client.d.ts +7 -7
- package/api/resources/textToVoice/resources/preview/client/Client.js +8 -20
- package/api/resources/tokens/client/Client.d.ts +9 -9
- package/api/resources/tokens/client/Client.js +7 -6
- package/api/resources/tokens/resources/singleUse/client/Client.d.ts +8 -8
- package/api/resources/tokens/resources/singleUse/client/Client.js +9 -21
- package/api/resources/usage/client/Client.d.ts +8 -8
- package/api/resources/usage/client/Client.js +9 -21
- package/api/resources/user/client/Client.d.ts +11 -11
- package/api/resources/user/client/Client.js +10 -22
- package/api/resources/user/resources/subscription/client/Client.d.ts +8 -8
- package/api/resources/user/resources/subscription/client/Client.js +9 -21
- package/api/resources/voices/client/Client.d.ts +34 -34
- package/api/resources/voices/client/Client.js +27 -137
- package/api/resources/voices/client/requests/VoicesSearchRequest.d.ts +2 -2
- package/api/resources/voices/resources/ivc/client/Client.d.ts +8 -8
- package/api/resources/voices/resources/ivc/client/Client.js +9 -21
- package/api/resources/voices/resources/pvc/client/Client.d.ts +18 -18
- package/api/resources/voices/resources/pvc/client/Client.js +15 -55
- package/api/resources/voices/resources/pvc/resources/samples/client/Client.d.ts +21 -21
- package/api/resources/voices/resources/pvc/resources/samples/client/Client.js +16 -56
- package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts +8 -8
- package/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +9 -21
- package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.d.ts +13 -13
- package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +12 -38
- package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.d.ts +8 -8
- package/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +9 -21
- package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.d.ts +8 -8
- package/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +9 -21
- package/api/resources/voices/resources/pvc/resources/verification/client/Client.d.ts +11 -11
- package/api/resources/voices/resources/pvc/resources/verification/client/Client.js +10 -22
- package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.d.ts +10 -10
- package/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +11 -37
- package/api/resources/voices/resources/samples/client/Client.d.ts +9 -9
- package/api/resources/voices/resources/samples/client/Client.js +7 -6
- package/api/resources/voices/resources/samples/resources/audio/client/Client.d.ts +7 -7
- package/api/resources/voices/resources/samples/resources/audio/client/Client.js +8 -20
- package/api/resources/voices/resources/settings/client/Client.d.ts +12 -12
- package/api/resources/voices/resources/settings/client/Client.js +13 -53
- package/api/resources/webhooks/client/Client.d.ts +14 -14
- package/api/resources/webhooks/client/Client.js +15 -69
- package/api/resources/workspace/client/Client.d.ts +18 -18
- package/api/resources/workspace/client/Client.js +10 -9
- package/api/resources/workspace/resources/groups/client/Client.d.ts +11 -11
- package/api/resources/workspace/resources/groups/client/Client.js +10 -22
- package/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +10 -10
- package/api/resources/workspace/resources/groups/resources/members/client/Client.js +11 -37
- package/api/resources/workspace/resources/invites/client/Client.d.ts +12 -12
- package/api/resources/workspace/resources/invites/client/Client.js +13 -53
- package/api/resources/workspace/resources/members/client/Client.d.ts +8 -8
- package/api/resources/workspace/resources/members/client/Client.js +9 -21
- package/api/resources/workspace/resources/resources/client/Client.d.ts +12 -12
- package/api/resources/workspace/resources/resources/client/Client.js +13 -53
- package/api/types/BackupLlmDefault.d.ts +3 -1
- package/api/types/BackupLlmDisabled.d.ts +3 -1
- package/api/types/BackupLlmOverride.d.ts +1 -0
- package/api/types/BillingPeriod.d.ts +7 -0
- package/api/types/{SubscriptionResponseModelBillingPeriod.js → BillingPeriod.js} +2 -2
- package/api/types/CharacterRefreshPeriod.d.ts +7 -0
- package/{dist/api/types/SubscriptionResponseModelBillingPeriod.js → api/types/CharacterRefreshPeriod.js} +2 -2
- package/api/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +14 -0
- package/api/types/ConversationHistoryTranscriptCommonModelInput.d.ts +1 -1
- package/api/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +1 -1
- package/api/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +1 -1
- package/api/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +1 -1
- package/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.d.ts +0 -1
- package/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.js +0 -1
- package/api/types/ConversationHistoryTranscriptToolCallApiIntegrationWebhookDetails.d.ts +7 -0
- package/{dist/api/types/ConversationHistoryTranscriptToolCallCommonModel.d.ts → api/types/ConversationHistoryTranscriptToolCallCommonModelInput.d.ts} +2 -2
- package/api/types/ConversationHistoryTranscriptToolCallCommonModelInputToolDetails.d.ts +16 -0
- package/api/types/ConversationHistoryTranscriptToolCallCommonModelOutput.d.ts +9 -0
- package/api/types/ConversationHistoryTranscriptToolCallCommonModelOutputToolDetails.d.ts +16 -0
- package/api/types/ConversationHistoryTranscriptToolCallWebhookDetails.d.ts +1 -0
- package/api/types/DetailedMusicResponse.d.ts +2 -0
- package/{dist/api/types/DiscountResposneModel.d.ts → api/types/DiscountResponseModel.d.ts} +1 -1
- package/api/types/DiscountResponseModel.js +3 -0
- package/api/types/DubbingResource.d.ts +2 -2
- package/api/types/GetVoicesV2Response.d.ts +4 -0
- package/api/types/InvoiceResponse.d.ts +1 -1
- package/api/types/MultipartMusicResponse.d.ts +1 -1
- package/api/types/PendingSubscriptionSwitchResponseModel.d.ts +1 -1
- package/api/types/PodcastTextSource.d.ts +2 -0
- package/api/types/PodcastUrlSource.d.ts +2 -0
- package/api/types/RagConfig.d.ts +2 -0
- package/api/types/RagConfigWorkflowOverride.d.ts +2 -0
- package/api/types/Subscription.d.ts +2 -2
- package/api/types/SubscriptionResponse.d.ts +2 -2
- package/api/types/SystemToolConfigInput.d.ts +2 -0
- package/api/types/SystemToolConfigOutput.d.ts +2 -0
- package/api/types/WhatsAppConversationInfo.d.ts +2 -0
- package/api/types/WhatsAppConversationInfoDirection.d.ts +6 -0
- package/api/types/WhatsAppConversationInfoDirection.js +9 -0
- package/api/types/WordTimestamp.d.ts +5 -0
- package/api/types/WordTimestamp.js +3 -0
- package/api/types/WorkflowToolNestedToolsStepModelInput.d.ts +1 -1
- package/api/types/WorkflowToolNestedToolsStepModelInputResultsItem.d.ts +1 -1
- package/api/types/WorkflowToolNestedToolsStepModelOutput.d.ts +1 -1
- package/api/types/WorkflowToolNestedToolsStepModelOutputResultsItem.d.ts +1 -1
- package/api/types/index.d.ts +11 -8
- package/api/types/index.js +11 -8
- package/core/fetcher/BinaryResponse.d.ts +6 -7
- package/core/fetcher/Fetcher.d.ts +5 -1
- package/core/fetcher/Fetcher.js +2 -1
- package/core/fetcher/getResponseBody.js +18 -4
- package/core/fetcher/signals.d.ts +1 -1
- package/core/runtime/runtime.js +11 -10
- package/core/schemas/builders/object/object.js +14 -1
- package/dist/BaseClient.d.ts +5 -1
- package/dist/BaseClient.js +48 -0
- package/dist/Client.d.ts +76 -76
- package/dist/Client.js +29 -49
- package/dist/api/errors/BadRequestError.js +5 -1
- package/dist/api/errors/ConflictError.js +5 -1
- package/dist/api/errors/ForbiddenError.js +5 -1
- package/dist/api/errors/NotFoundError.js +5 -1
- package/dist/api/errors/TooEarlyError.js +5 -1
- package/dist/api/errors/UnauthorizedError.js +5 -1
- package/dist/api/errors/UnprocessableEntityError.js +5 -1
- package/dist/api/resources/audioIsolation/client/Client.d.ts +8 -8
- package/dist/api/resources/audioIsolation/client/Client.js +9 -35
- package/dist/api/resources/audioNative/client/Client.d.ts +12 -12
- package/dist/api/resources/audioNative/client/Client.js +13 -53
- package/dist/api/resources/conversationalAi/client/Client.d.ts +59 -59
- package/dist/api/resources/conversationalAi/client/Client.js +30 -84
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +36 -36
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +29 -153
- package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.d.ts +8 -8
- package/dist/api/resources/conversationalAi/resources/agents/resources/knowledgeBase/client/Client.js +9 -21
- package/dist/api/resources/conversationalAi/resources/agents/resources/link/client/Client.d.ts +8 -8
- package/dist/api/resources/conversationalAi/resources/agents/resources/link/client/Client.js +9 -21
- package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.d.ts +8 -8
- package/dist/api/resources/conversationalAi/resources/agents/resources/llmUsage/client/Client.js +9 -21
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.d.ts +11 -11
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/client/Client.js +10 -22
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.d.ts +8 -8
- package/dist/api/resources/conversationalAi/resources/agents/resources/widget/resources/avatar/client/Client.js +9 -21
- package/dist/api/resources/conversationalAi/resources/analytics/client/Client.d.ts +9 -9
- package/dist/api/resources/conversationalAi/resources/analytics/client/Client.js +7 -6
- package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/Client.d.ts +8 -8
- package/dist/api/resources/conversationalAi/resources/analytics/resources/liveCount/client/Client.js +9 -21
- package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.d.ts +16 -16
- package/dist/api/resources/conversationalAi/resources/batchCalls/client/Client.js +17 -85
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.d.ts +22 -22
- package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +19 -87
- package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.d.ts +7 -7
- package/dist/api/resources/conversationalAi/resources/conversations/resources/audio/client/Client.js +8 -20
- package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.d.ts +8 -8
- package/dist/api/resources/conversationalAi/resources/conversations/resources/feedback/client/Client.js +9 -21
- package/dist/api/resources/conversationalAi/resources/dashboard/client/Client.d.ts +9 -9
- package/dist/api/resources/conversationalAi/resources/dashboard/client/Client.js +7 -6
- package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.d.ts +10 -10
- package/dist/api/resources/conversationalAi/resources/dashboard/resources/settings/client/Client.js +11 -37
- package/dist/api/resources/conversationalAi/resources/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/index.js +1 -0
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.d.ts +14 -14
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/client/Client.js +11 -23
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.d.ts +8 -8
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/document/client/Client.js +9 -21
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.d.ts +25 -25
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/client/Client.js +24 -134
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.d.ts +8 -8
- package/dist/api/resources/conversationalAi/resources/knowledgeBase/resources/documents/resources/chunk/client/Client.js +9 -21
- package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.d.ts +8 -8
- package/dist/api/resources/conversationalAi/resources/llmUsage/client/Client.js +9 -21
- package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +28 -28
- package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.js +21 -89
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.d.ts +8 -8
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/approvalPolicy/client/Client.js +9 -21
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.d.ts +10 -10
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolApprovals/client/Client.js +11 -37
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/Client.d.ts +14 -14
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/toolConfigs/client/Client.js +15 -69
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.d.ts +8 -8
- package/dist/api/resources/conversationalAi/resources/mcpServers/resources/tools/client/Client.js +9 -21
- package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.d.ts +16 -16
- package/dist/api/resources/conversationalAi/resources/phoneNumbers/client/Client.js +17 -85
- package/dist/api/resources/conversationalAi/resources/secrets/client/Client.d.ts +14 -14
- package/dist/api/resources/conversationalAi/resources/secrets/client/Client.js +15 -69
- package/dist/api/resources/conversationalAi/resources/settings/client/Client.d.ts +10 -10
- package/dist/api/resources/conversationalAi/resources/settings/client/Client.js +11 -37
- package/dist/api/resources/conversationalAi/resources/sipTrunk/client/Client.d.ts +8 -8
- package/dist/api/resources/conversationalAi/resources/sipTrunk/client/Client.js +9 -21
- package/dist/api/resources/conversationalAi/resources/tests/client/Client.d.ts +21 -21
- package/dist/api/resources/conversationalAi/resources/tests/client/Client.js +20 -102
- package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.d.ts +12 -12
- package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.js +13 -53
- package/dist/api/resources/conversationalAi/resources/tools/client/Client.d.ts +18 -18
- package/dist/api/resources/conversationalAi/resources/tools/client/Client.js +19 -101
- package/dist/api/resources/conversationalAi/resources/twilio/client/Client.d.ts +25 -8
- package/dist/api/resources/conversationalAi/resources/twilio/client/Client.js +67 -20
- package/dist/api/resources/conversationalAi/resources/twilio/client/requests/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost.d.ts +16 -0
- package/dist/api/resources/conversationalAi/resources/twilio/client/requests/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost.js +3 -0
- package/dist/api/resources/conversationalAi/resources/twilio/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/twilio/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/twilio/index.js +1 -0
- package/dist/api/resources/conversationalAi/resources/twilio/types/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPostDirection.d.ts +5 -0
- package/dist/api/resources/conversationalAi/resources/twilio/types/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPostDirection.js +8 -0
- package/dist/api/resources/conversationalAi/resources/twilio/types/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/twilio/types/index.js +17 -0
- package/dist/api/resources/dubbing/client/Client.d.ts +23 -23
- package/dist/api/resources/dubbing/client/Client.js +18 -72
- package/dist/api/resources/dubbing/resources/audio/client/Client.d.ts +7 -7
- package/dist/api/resources/dubbing/resources/audio/client/Client.js +8 -20
- package/dist/api/resources/dubbing/resources/resource/client/Client.d.ts +28 -28
- package/dist/api/resources/dubbing/resources/resource/client/Client.js +23 -105
- package/dist/api/resources/dubbing/resources/resource/resources/language/client/Client.d.ts +8 -8
- package/dist/api/resources/dubbing/resources/resource/resources/language/client/Client.js +9 -21
- package/dist/api/resources/dubbing/resources/resource/resources/segment/client/Client.d.ts +10 -10
- package/dist/api/resources/dubbing/resources/resource/resources/segment/client/Client.js +11 -37
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.d.ts +15 -15
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/Client.js +14 -54
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.d.ts +6 -0
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.d.ts +6 -0
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.d.ts +8 -8
- package/dist/api/resources/dubbing/resources/resource/resources/speaker/resources/segment/client/Client.js +9 -21
- package/dist/api/resources/dubbing/resources/transcript/client/Client.d.ts +8 -8
- package/dist/api/resources/dubbing/resources/transcript/client/Client.js +9 -21
- package/dist/api/resources/forcedAlignment/client/Client.d.ts +8 -8
- package/dist/api/resources/forcedAlignment/client/Client.js +9 -21
- package/dist/api/resources/history/client/Client.d.ts +14 -14
- package/dist/api/resources/history/client/Client.js +15 -83
- package/dist/api/resources/models/client/Client.d.ts +8 -8
- package/dist/api/resources/models/client/Client.js +9 -21
- package/dist/api/resources/music/client/Client.d.ts +13 -13
- package/dist/api/resources/music/client/Client.js +15 -66
- package/dist/api/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +2 -0
- package/dist/api/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +4 -0
- package/dist/api/resources/music/client/requests/BodyStemSeparationV1MusicStemSeparationPost.d.ts +2 -0
- package/dist/api/resources/music/resources/compositionPlan/client/Client.d.ts +8 -8
- package/dist/api/resources/music/resources/compositionPlan/client/Client.js +9 -21
- package/dist/api/resources/pronunciationDictionaries/client/Client.d.ts +20 -20
- package/dist/api/resources/pronunciationDictionaries/client/Client.js +19 -101
- package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.d.ts +10 -10
- package/dist/api/resources/pronunciationDictionaries/resources/rules/client/Client.js +11 -37
- package/dist/api/resources/samples/client/Client.d.ts +8 -8
- package/dist/api/resources/samples/client/Client.js +9 -21
- package/dist/api/resources/serviceAccounts/client/Client.d.ts +11 -11
- package/dist/api/resources/serviceAccounts/client/Client.js +10 -22
- package/dist/api/resources/serviceAccounts/resources/apiKeys/client/Client.d.ts +16 -16
- package/dist/api/resources/serviceAccounts/resources/apiKeys/client/Client.js +17 -71
- package/dist/api/resources/serviceAccounts/resources/apiKeys/client/requests/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPost.d.ts +1 -1
- package/dist/api/resources/serviceAccounts/resources/apiKeys/client/requests/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatch.d.ts +1 -1
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.d.ts +1 -1
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/{BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts → BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.d.ts} +2 -2
- package/{api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js → dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.js} +2 -2
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.d.ts +1 -1
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/{BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts → BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.d.ts} +2 -2
- package/{api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js → dist/api/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.js} +2 -2
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +2 -2
- package/dist/api/resources/serviceAccounts/resources/apiKeys/types/index.js +2 -2
- package/dist/api/resources/speechToSpeech/client/Client.d.ts +8 -8
- package/dist/api/resources/speechToSpeech/client/Client.js +9 -35
- package/dist/api/resources/speechToText/client/Client.d.ts +11 -11
- package/dist/api/resources/speechToText/client/Client.js +10 -22
- package/dist/api/resources/speechToText/resources/transcripts/client/Client.d.ts +10 -10
- package/dist/api/resources/speechToText/resources/transcripts/client/Client.js +11 -37
- package/dist/api/resources/studio/client/Client.d.ts +12 -11
- package/dist/api/resources/studio/client/Client.js +11 -22
- package/dist/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +1 -0
- package/dist/api/resources/studio/resources/projects/client/Client.d.ts +30 -30
- package/dist/api/resources/studio/resources/projects/client/Client.js +23 -105
- package/dist/api/resources/studio/resources/projects/client/requests/BodyCreateStudioProjectV1StudioProjectsPost.d.ts +7 -1
- package/dist/api/resources/studio/resources/projects/resources/chapters/client/Client.d.ts +21 -21
- package/dist/api/resources/studio/resources/projects/resources/chapters/client/Client.js +20 -102
- package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.d.ts +11 -11
- package/dist/api/resources/studio/resources/projects/resources/chapters/resources/snapshots/client/Client.js +12 -52
- package/dist/api/resources/studio/resources/projects/resources/content/client/Client.d.ts +8 -8
- package/dist/api/resources/studio/resources/projects/resources/content/client/Client.js +9 -21
- package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.d.ts +8 -8
- package/dist/api/resources/studio/resources/projects/resources/pronunciationDictionaries/client/Client.js +9 -21
- package/dist/api/resources/studio/resources/projects/resources/snapshots/client/Client.d.ts +12 -12
- package/dist/api/resources/studio/resources/projects/resources/snapshots/client/Client.js +13 -67
- package/dist/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSource.d.ts +1 -1
- package/dist/api/resources/studio/types/{BodyCreatePodcastV1StudioPodcastsPostSourceItem.d.ts → BodyCreatePodcastV1StudioPodcastsPostSourceTwoItem.d.ts} +2 -2
- package/dist/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSourceTwoItem.js +3 -0
- package/dist/api/resources/studio/types/index.d.ts +1 -1
- package/dist/api/resources/studio/types/index.js +1 -1
- package/dist/api/resources/textToDialogue/client/Client.d.ts +11 -11
- package/dist/api/resources/textToDialogue/client/Client.js +12 -66
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueFullWithTimestamps.d.ts +1 -1
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPost.d.ts +1 -1
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueMultiVoiceV1TextToDialoguePost.d.ts +1 -1
- package/dist/api/resources/textToDialogue/client/requests/BodyTextToDialogueStreamWithTimestamps.d.ts +1 -1
- package/dist/api/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.d.ts +1 -1
- package/dist/api/resources/textToDialogue/types/BodyTextToDialogueFullWithTimestampsApplyTextNormalization.js +1 -1
- package/dist/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization.d.ts +1 -1
- package/dist/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceStreamingV1TextToDialogueStreamPostApplyTextNormalization.js +1 -1
- package/dist/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization.d.ts +1 -1
- package/dist/api/resources/textToDialogue/types/BodyTextToDialogueMultiVoiceV1TextToDialoguePostApplyTextNormalization.js +1 -1
- package/dist/api/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.d.ts +1 -1
- package/dist/api/resources/textToDialogue/types/BodyTextToDialogueStreamWithTimestampsApplyTextNormalization.js +1 -1
- package/dist/api/resources/textToSoundEffects/client/Client.d.ts +7 -7
- package/dist/api/resources/textToSoundEffects/client/Client.js +8 -20
- package/dist/api/resources/textToSpeech/client/Client.d.ts +11 -11
- package/dist/api/resources/textToSpeech/client/Client.js +12 -66
- package/dist/api/resources/textToSpeech/client/requests/BodyTextToSpeechFull.d.ts +1 -1
- package/dist/api/resources/textToSpeech/client/requests/BodyTextToSpeechFullWithTimestamps.d.ts +1 -1
- package/dist/api/resources/textToSpeech/client/requests/StreamTextToSpeechRequest.d.ts +1 -1
- package/dist/api/resources/textToSpeech/client/requests/StreamTextToSpeechWithTimestampsRequest.d.ts +1 -1
- package/dist/api/resources/textToSpeech/types/BodyTextToSpeechFullApplyTextNormalization.d.ts +1 -1
- package/dist/api/resources/textToSpeech/types/BodyTextToSpeechFullApplyTextNormalization.js +1 -1
- package/dist/api/resources/textToSpeech/types/BodyTextToSpeechFullWithTimestampsApplyTextNormalization.d.ts +1 -1
- package/dist/api/resources/textToSpeech/types/BodyTextToSpeechFullWithTimestampsApplyTextNormalization.js +1 -1
- package/dist/api/resources/textToSpeech/types/BodyTextToSpeechStreamApplyTextNormalization.d.ts +1 -1
- package/dist/api/resources/textToSpeech/types/BodyTextToSpeechStreamApplyTextNormalization.js +1 -1
- package/dist/api/resources/textToSpeech/types/BodyTextToSpeechStreamWithTimestampsApplyTextNormalization.d.ts +1 -1
- package/dist/api/resources/textToSpeech/types/BodyTextToSpeechStreamWithTimestampsApplyTextNormalization.js +1 -1
- package/dist/api/resources/textToVoice/client/Client.d.ts +17 -17
- package/dist/api/resources/textToVoice/client/Client.js +16 -70
- package/dist/api/resources/textToVoice/resources/preview/client/Client.d.ts +7 -7
- package/dist/api/resources/textToVoice/resources/preview/client/Client.js +8 -20
- package/dist/api/resources/tokens/client/Client.d.ts +9 -9
- package/dist/api/resources/tokens/client/Client.js +7 -6
- package/dist/api/resources/tokens/resources/singleUse/client/Client.d.ts +8 -8
- package/dist/api/resources/tokens/resources/singleUse/client/Client.js +9 -21
- package/dist/api/resources/usage/client/Client.d.ts +8 -8
- package/dist/api/resources/usage/client/Client.js +9 -21
- package/dist/api/resources/user/client/Client.d.ts +11 -11
- package/dist/api/resources/user/client/Client.js +10 -22
- package/dist/api/resources/user/resources/subscription/client/Client.d.ts +8 -8
- package/dist/api/resources/user/resources/subscription/client/Client.js +9 -21
- package/dist/api/resources/voices/client/Client.d.ts +34 -34
- package/dist/api/resources/voices/client/Client.js +27 -137
- package/dist/api/resources/voices/client/requests/VoicesSearchRequest.d.ts +2 -2
- package/dist/api/resources/voices/resources/ivc/client/Client.d.ts +8 -8
- package/dist/api/resources/voices/resources/ivc/client/Client.js +9 -21
- package/dist/api/resources/voices/resources/pvc/client/Client.d.ts +18 -18
- package/dist/api/resources/voices/resources/pvc/client/Client.js +15 -55
- package/dist/api/resources/voices/resources/pvc/resources/samples/client/Client.d.ts +21 -21
- package/dist/api/resources/voices/resources/pvc/resources/samples/client/Client.js +16 -56
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.d.ts +8 -8
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/audio/client/Client.js +9 -21
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.d.ts +13 -13
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/client/Client.js +12 -38
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.d.ts +8 -8
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/speakers/resources/audio/client/Client.js +9 -21
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.d.ts +8 -8
- package/dist/api/resources/voices/resources/pvc/resources/samples/resources/waveform/client/Client.js +9 -21
- package/dist/api/resources/voices/resources/pvc/resources/verification/client/Client.d.ts +11 -11
- package/dist/api/resources/voices/resources/pvc/resources/verification/client/Client.js +10 -22
- package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.d.ts +10 -10
- package/dist/api/resources/voices/resources/pvc/resources/verification/resources/captcha/client/Client.js +11 -37
- package/dist/api/resources/voices/resources/samples/client/Client.d.ts +9 -9
- package/dist/api/resources/voices/resources/samples/client/Client.js +7 -6
- package/dist/api/resources/voices/resources/samples/resources/audio/client/Client.d.ts +7 -7
- package/dist/api/resources/voices/resources/samples/resources/audio/client/Client.js +8 -20
- package/dist/api/resources/voices/resources/settings/client/Client.d.ts +12 -12
- package/dist/api/resources/voices/resources/settings/client/Client.js +13 -53
- package/dist/api/resources/webhooks/client/Client.d.ts +14 -14
- package/dist/api/resources/webhooks/client/Client.js +15 -69
- package/dist/api/resources/workspace/client/Client.d.ts +18 -18
- package/dist/api/resources/workspace/client/Client.js +10 -9
- package/dist/api/resources/workspace/resources/groups/client/Client.d.ts +11 -11
- package/dist/api/resources/workspace/resources/groups/client/Client.js +10 -22
- package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.d.ts +10 -10
- package/dist/api/resources/workspace/resources/groups/resources/members/client/Client.js +11 -37
- package/dist/api/resources/workspace/resources/invites/client/Client.d.ts +12 -12
- package/dist/api/resources/workspace/resources/invites/client/Client.js +13 -53
- package/dist/api/resources/workspace/resources/members/client/Client.d.ts +8 -8
- package/dist/api/resources/workspace/resources/members/client/Client.js +9 -21
- package/dist/api/resources/workspace/resources/resources/client/Client.d.ts +12 -12
- package/dist/api/resources/workspace/resources/resources/client/Client.js +13 -53
- package/dist/api/types/BackupLlmDefault.d.ts +3 -1
- package/dist/api/types/BackupLlmDisabled.d.ts +3 -1
- package/dist/api/types/BackupLlmOverride.d.ts +1 -0
- package/dist/api/types/BillingPeriod.d.ts +7 -0
- package/{api/types/ExtendedSubscriptionResponseModelBillingPeriod.js → dist/api/types/BillingPeriod.js} +2 -2
- package/dist/api/types/CharacterRefreshPeriod.d.ts +7 -0
- package/dist/api/types/{ExtendedSubscriptionResponseModelBillingPeriod.js → CharacterRefreshPeriod.js} +2 -2
- package/dist/api/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +14 -0
- package/dist/api/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.js +3 -0
- package/dist/api/types/ConversationHistoryTranscriptCommonModelInput.d.ts +1 -1
- package/dist/api/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +1 -1
- package/dist/api/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +1 -1
- package/dist/api/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +1 -1
- package/dist/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.d.ts +0 -1
- package/dist/api/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.js +0 -1
- package/dist/api/types/ConversationHistoryTranscriptToolCallApiIntegrationWebhookDetails.d.ts +7 -0
- package/dist/api/types/ConversationHistoryTranscriptToolCallApiIntegrationWebhookDetails.js +3 -0
- package/{api/types/ConversationHistoryTranscriptToolCallCommonModel.d.ts → dist/api/types/ConversationHistoryTranscriptToolCallCommonModelInput.d.ts} +2 -2
- package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModelInput.js +3 -0
- package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModelInputToolDetails.d.ts +16 -0
- package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModelInputToolDetails.js +3 -0
- package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModelOutput.d.ts +9 -0
- package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModelOutput.js +3 -0
- package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModelOutputToolDetails.d.ts +16 -0
- package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModelOutputToolDetails.js +3 -0
- package/dist/api/types/ConversationHistoryTranscriptToolCallWebhookDetails.d.ts +1 -0
- package/dist/api/types/DetailedMusicResponse.d.ts +2 -0
- package/{api/types/DiscountResposneModel.d.ts → dist/api/types/DiscountResponseModel.d.ts} +1 -1
- package/dist/api/types/DiscountResponseModel.js +3 -0
- package/dist/api/types/DubbingResource.d.ts +2 -2
- package/dist/api/types/GetVoicesV2Response.d.ts +4 -0
- package/dist/api/types/InvoiceResponse.d.ts +1 -1
- package/dist/api/types/MultipartMusicResponse.d.ts +1 -1
- package/dist/api/types/PendingSubscriptionSwitchResponseModel.d.ts +1 -1
- package/dist/api/types/PodcastTextSource.d.ts +2 -0
- package/dist/api/types/PodcastUrlSource.d.ts +2 -0
- package/dist/api/types/RagConfig.d.ts +2 -0
- package/dist/api/types/RagConfigWorkflowOverride.d.ts +2 -0
- package/dist/api/types/Subscription.d.ts +2 -2
- package/dist/api/types/SubscriptionResponse.d.ts +2 -2
- package/dist/api/types/SystemToolConfigInput.d.ts +2 -0
- package/dist/api/types/SystemToolConfigOutput.d.ts +2 -0
- package/dist/api/types/WhatsAppConversationInfo.d.ts +2 -0
- package/dist/api/types/WhatsAppConversationInfoDirection.d.ts +6 -0
- package/dist/api/types/WhatsAppConversationInfoDirection.js +9 -0
- package/dist/api/types/WordTimestamp.d.ts +5 -0
- package/dist/api/types/WordTimestamp.js +3 -0
- package/dist/api/types/WorkflowToolNestedToolsStepModelInput.d.ts +1 -1
- package/dist/api/types/WorkflowToolNestedToolsStepModelInputResultsItem.d.ts +1 -1
- package/dist/api/types/WorkflowToolNestedToolsStepModelOutput.d.ts +1 -1
- package/dist/api/types/WorkflowToolNestedToolsStepModelOutputResultsItem.d.ts +1 -1
- package/dist/api/types/index.d.ts +11 -8
- package/dist/api/types/index.js +11 -8
- package/dist/core/fetcher/BinaryResponse.d.ts +6 -7
- package/dist/core/fetcher/Fetcher.d.ts +5 -1
- package/dist/core/fetcher/Fetcher.js +2 -1
- package/dist/core/fetcher/getResponseBody.js +18 -4
- package/dist/core/fetcher/signals.d.ts +1 -1
- package/dist/core/runtime/runtime.js +11 -10
- package/dist/core/schemas/builders/object/object.js +14 -1
- package/dist/errors/ElevenLabsError.js +5 -1
- package/dist/errors/ElevenLabsTimeoutError.js +5 -1
- package/dist/errors/handleNonStatusCodeError.d.ts +2 -0
- package/dist/errors/handleNonStatusCodeError.js +65 -0
- package/dist/serialization/resources/conversationalAi/resources/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/index.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/twilio/client/requests/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost.d.ts +15 -0
- package/dist/serialization/resources/conversationalAi/resources/twilio/client/requests/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost.js +47 -0
- package/dist/serialization/resources/conversationalAi/resources/twilio/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/twilio/client/requests/index.js +3 -1
- package/dist/serialization/resources/conversationalAi/resources/twilio/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/twilio/index.js +1 -0
- package/dist/serialization/resources/conversationalAi/resources/twilio/types/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPostDirection.d.ts +7 -0
- package/dist/serialization/resources/conversationalAi/resources/twilio/types/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPostDirection.js +39 -0
- package/dist/serialization/resources/conversationalAi/resources/twilio/types/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/twilio/types/index.js +17 -0
- package/dist/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.d.ts +3 -0
- package/dist/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.js +3 -0
- package/dist/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.d.ts +3 -0
- package/dist/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.js +3 -0
- package/dist/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +1 -0
- package/dist/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +1 -0
- package/dist/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +2 -0
- package/dist/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +2 -0
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.d.ts +2 -2
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.js +2 -2
- package/{serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts → dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.d.ts} +2 -2
- package/{serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js → dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.js} +2 -2
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.d.ts +2 -2
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.js +2 -2
- package/{serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts → dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.d.ts} +2 -2
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/{BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js → BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.js} +2 -2
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +2 -2
- package/dist/serialization/resources/serviceAccounts/resources/apiKeys/types/index.js +2 -2
- package/dist/serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSource.d.ts +2 -2
- package/dist/serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSource.js +2 -2
- package/dist/serialization/resources/studio/types/{BodyCreatePodcastV1StudioPodcastsPostSourceItem.d.ts → BodyCreatePodcastV1StudioPodcastsPostSourceTwoItem.d.ts} +3 -3
- package/{serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSourceItem.js → dist/serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSourceTwoItem.js} +2 -2
- package/dist/serialization/resources/studio/types/index.d.ts +1 -1
- package/dist/serialization/resources/studio/types/index.js +1 -1
- package/dist/serialization/types/BackupLlmDefault.d.ts +3 -1
- package/dist/serialization/types/BackupLlmDefault.js +3 -1
- package/dist/serialization/types/BackupLlmDisabled.d.ts +3 -1
- package/dist/serialization/types/BackupLlmDisabled.js +3 -1
- package/dist/serialization/types/BackupLlmOverride.d.ts +1 -0
- package/dist/serialization/types/BackupLlmOverride.js +1 -0
- package/dist/serialization/types/BillingPeriod.d.ts +7 -0
- package/dist/serialization/types/{SubscriptionResponseModelBillingPeriod.js → BillingPeriod.js} +2 -2
- package/dist/serialization/types/CharacterRefreshPeriod.d.ts +7 -0
- package/{serialization/types/SubscriptionResponseModelBillingPeriod.js → dist/serialization/types/CharacterRefreshPeriod.js} +2 -2
- package/dist/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +20 -0
- package/dist/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.js +52 -0
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInput.d.ts +2 -2
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInput.js +2 -2
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +2 -1
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.js +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +2 -2
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutput.js +2 -2
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +2 -1
- package/dist/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.js +2 -0
- package/dist/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.d.ts +1 -1
- package/dist/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.js +1 -1
- package/dist/serialization/types/ConversationHistoryTranscriptToolCallApiIntegrationWebhookDetails.d.ts +13 -0
- package/dist/serialization/types/ConversationHistoryTranscriptToolCallApiIntegrationWebhookDetails.js +45 -0
- package/dist/serialization/types/{ConversationHistoryTranscriptToolCallCommonModel.d.ts → ConversationHistoryTranscriptToolCallCommonModelInput.d.ts} +4 -4
- package/{serialization/types/ConversationHistoryTranscriptToolCallCommonModel.js → dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModelInput.js} +4 -4
- package/{serialization/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.d.ts → dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModelInputToolDetails.d.ts} +7 -3
- package/dist/serialization/types/{ConversationHistoryTranscriptToolCallCommonModelToolDetails.js → ConversationHistoryTranscriptToolCallCommonModelInputToolDetails.js} +4 -2
- package/dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModelOutput.d.ts +16 -0
- package/dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModelOutput.js +48 -0
- package/dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModelOutputToolDetails.d.ts +23 -0
- package/dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModelOutputToolDetails.js +53 -0
- package/dist/serialization/types/ConversationHistoryTranscriptToolCallWebhookDetails.d.ts +1 -0
- package/dist/serialization/types/ConversationHistoryTranscriptToolCallWebhookDetails.js +1 -0
- package/dist/serialization/types/DetailedMusicResponse.d.ts +2 -0
- package/dist/serialization/types/DetailedMusicResponse.js +2 -0
- package/{serialization/types/DiscountResposneModel.d.ts → dist/serialization/types/DiscountResponseModel.d.ts} +2 -2
- package/dist/serialization/types/{DiscountResposneModel.js → DiscountResponseModel.js} +2 -2
- package/dist/serialization/types/DubbingResource.d.ts +2 -2
- package/dist/serialization/types/DubbingResource.js +2 -2
- package/dist/serialization/types/InvoiceResponse.d.ts +2 -2
- package/dist/serialization/types/InvoiceResponse.js +2 -2
- package/dist/serialization/types/PendingSubscriptionSwitchResponseModel.d.ts +2 -2
- package/dist/serialization/types/PendingSubscriptionSwitchResponseModel.js +2 -2
- package/dist/serialization/types/PodcastTextSource.d.ts +1 -0
- package/dist/serialization/types/PodcastTextSource.js +1 -0
- package/dist/serialization/types/PodcastUrlSource.d.ts +1 -0
- package/dist/serialization/types/PodcastUrlSource.js +1 -0
- package/dist/serialization/types/RagConfig.d.ts +1 -0
- package/dist/serialization/types/RagConfig.js +1 -0
- package/dist/serialization/types/RagConfigWorkflowOverride.d.ts +1 -0
- package/dist/serialization/types/RagConfigWorkflowOverride.js +1 -0
- package/dist/serialization/types/Subscription.d.ts +4 -4
- package/dist/serialization/types/Subscription.js +4 -4
- package/dist/serialization/types/SubscriptionResponse.d.ts +4 -4
- package/dist/serialization/types/SubscriptionResponse.js +4 -4
- package/dist/serialization/types/SystemToolConfigInput.d.ts +1 -0
- package/dist/serialization/types/SystemToolConfigInput.js +1 -0
- package/dist/serialization/types/SystemToolConfigOutput.d.ts +1 -0
- package/dist/serialization/types/SystemToolConfigOutput.js +1 -0
- package/dist/serialization/types/WhatsAppConversationInfo.d.ts +2 -0
- package/dist/serialization/types/WhatsAppConversationInfo.js +2 -0
- package/dist/serialization/types/WhatsAppConversationInfoDirection.d.ts +7 -0
- package/dist/serialization/types/{ExtendedSubscriptionResponseModelBillingPeriod.js → WhatsAppConversationInfoDirection.js} +2 -2
- package/dist/serialization/types/WordTimestamp.d.ts +11 -0
- package/dist/serialization/types/{PendingSubscriptionSwitchResponseModelNextBillingPeriod.js → WordTimestamp.js} +6 -2
- package/dist/serialization/types/WorkflowToolNestedToolsStepModelInput.d.ts +2 -2
- package/dist/serialization/types/WorkflowToolNestedToolsStepModelInput.js +2 -2
- package/dist/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.d.ts +2 -1
- package/dist/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.js +2 -0
- package/dist/serialization/types/WorkflowToolNestedToolsStepModelOutput.d.ts +2 -2
- package/dist/serialization/types/WorkflowToolNestedToolsStepModelOutput.js +2 -2
- package/dist/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.d.ts +2 -1
- package/dist/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.js +2 -0
- package/dist/serialization/types/index.d.ts +11 -8
- package/dist/serialization/types/index.js +11 -8
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/ElevenLabsClient.d.ts +1 -1
- package/dist/wrapper/music.d.ts +4 -4
- package/dist/wrapper/music.js +1 -1
- package/dist/wrapper/realtime/scribe.d.ts +2 -2
- package/dist/wrapper/speechToText.d.ts +1 -1
- package/dist/wrapper/speechToText.js +1 -1
- package/dist/wrapper/webhooks.d.ts +1 -1
- package/dist/wrapper/webhooks.js +1 -1
- package/errors/ElevenLabsError.js +5 -1
- package/errors/ElevenLabsTimeoutError.js +5 -1
- package/errors/handleNonStatusCodeError.d.ts +2 -0
- package/errors/handleNonStatusCodeError.js +65 -0
- package/package.json +1 -1
- package/reference.md +290 -222
- package/serialization/resources/conversationalAi/resources/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/index.js +1 -0
- package/serialization/resources/conversationalAi/resources/twilio/client/requests/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost.d.ts +15 -0
- package/serialization/resources/conversationalAi/resources/twilio/client/requests/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost.js +47 -0
- package/serialization/resources/conversationalAi/resources/twilio/client/requests/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/twilio/client/requests/index.js +3 -1
- package/serialization/resources/conversationalAi/resources/twilio/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/twilio/index.js +1 -0
- package/serialization/resources/conversationalAi/resources/twilio/types/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPostDirection.d.ts +7 -0
- package/serialization/resources/conversationalAi/resources/twilio/types/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPostDirection.js +39 -0
- package/serialization/resources/conversationalAi/resources/twilio/types/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/twilio/types/index.js +17 -0
- package/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.d.ts +3 -0
- package/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyCreateANewSpeakerV1DubbingResourceDubbingIdSpeakerPost.js +3 -0
- package/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.d.ts +3 -0
- package/serialization/resources/dubbing/resources/resource/resources/speaker/client/requests/BodyUpdateMetadataForASpeakerV1DubbingResourceDubbingIdSpeakerSpeakerIdPatch.js +3 -0
- package/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.d.ts +1 -0
- package/serialization/resources/music/client/requests/BodyComposeMusicV1MusicPost.js +1 -0
- package/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.d.ts +2 -0
- package/serialization/resources/music/client/requests/BodyComposeMusicWithADetailedResponseV1MusicDetailedPost.js +2 -0
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.d.ts +2 -2
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions.js +2 -2
- package/{dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.d.ts → serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.d.ts} +2 -2
- package/{dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsItem.js → serialization/resources/serviceAccounts/resources/apiKeys/types/BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem.js} +2 -2
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.d.ts +2 -2
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions.js +2 -2
- package/{dist/serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.d.ts → serialization/resources/serviceAccounts/resources/apiKeys/types/BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.d.ts} +2 -2
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/{BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsItem.js → BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem.js} +2 -2
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/index.d.ts +2 -2
- package/serialization/resources/serviceAccounts/resources/apiKeys/types/index.js +2 -2
- package/serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSource.d.ts +2 -2
- package/serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSource.js +2 -2
- package/serialization/resources/studio/types/{BodyCreatePodcastV1StudioPodcastsPostSourceItem.d.ts → BodyCreatePodcastV1StudioPodcastsPostSourceTwoItem.d.ts} +3 -3
- package/{dist/serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSourceItem.js → serialization/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSourceTwoItem.js} +2 -2
- package/serialization/resources/studio/types/index.d.ts +1 -1
- package/serialization/resources/studio/types/index.js +1 -1
- package/serialization/types/BackupLlmDefault.d.ts +3 -1
- package/serialization/types/BackupLlmDefault.js +3 -1
- package/serialization/types/BackupLlmDisabled.d.ts +3 -1
- package/serialization/types/BackupLlmDisabled.js +3 -1
- package/serialization/types/BackupLlmOverride.d.ts +1 -0
- package/serialization/types/BackupLlmOverride.js +1 -0
- package/serialization/types/BillingPeriod.d.ts +7 -0
- package/serialization/types/{ExtendedSubscriptionResponseModelBillingPeriod.js → BillingPeriod.js} +2 -2
- package/serialization/types/CharacterRefreshPeriod.d.ts +7 -0
- package/serialization/types/CharacterRefreshPeriod.js +39 -0
- package/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.d.ts +20 -0
- package/serialization/types/ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.js +52 -0
- package/serialization/types/ConversationHistoryTranscriptCommonModelInput.d.ts +2 -2
- package/serialization/types/ConversationHistoryTranscriptCommonModelInput.js +2 -2
- package/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.d.ts +2 -1
- package/serialization/types/ConversationHistoryTranscriptCommonModelInputToolResultsItem.js +2 -0
- package/serialization/types/ConversationHistoryTranscriptCommonModelOutput.d.ts +2 -2
- package/serialization/types/ConversationHistoryTranscriptCommonModelOutput.js +2 -2
- package/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.d.ts +2 -1
- package/serialization/types/ConversationHistoryTranscriptCommonModelOutputToolResultsItem.js +2 -0
- package/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.d.ts +1 -1
- package/serialization/types/ConversationHistoryTranscriptOtherToolsResultCommonModelType.js +1 -1
- package/serialization/types/ConversationHistoryTranscriptToolCallApiIntegrationWebhookDetails.d.ts +13 -0
- package/serialization/types/ConversationHistoryTranscriptToolCallApiIntegrationWebhookDetails.js +45 -0
- package/serialization/types/{ConversationHistoryTranscriptToolCallCommonModel.d.ts → ConversationHistoryTranscriptToolCallCommonModelInput.d.ts} +4 -4
- package/{dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModel.js → serialization/types/ConversationHistoryTranscriptToolCallCommonModelInput.js} +4 -4
- package/{dist/serialization/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.d.ts → serialization/types/ConversationHistoryTranscriptToolCallCommonModelInputToolDetails.d.ts} +7 -3
- package/serialization/types/{ConversationHistoryTranscriptToolCallCommonModelToolDetails.js → ConversationHistoryTranscriptToolCallCommonModelInputToolDetails.js} +4 -2
- package/serialization/types/ConversationHistoryTranscriptToolCallCommonModelOutput.d.ts +16 -0
- package/serialization/types/ConversationHistoryTranscriptToolCallCommonModelOutput.js +48 -0
- package/serialization/types/ConversationHistoryTranscriptToolCallCommonModelOutputToolDetails.d.ts +23 -0
- package/serialization/types/ConversationHistoryTranscriptToolCallCommonModelOutputToolDetails.js +53 -0
- package/serialization/types/ConversationHistoryTranscriptToolCallWebhookDetails.d.ts +1 -0
- package/serialization/types/ConversationHistoryTranscriptToolCallWebhookDetails.js +1 -0
- package/serialization/types/DetailedMusicResponse.d.ts +2 -0
- package/serialization/types/DetailedMusicResponse.js +2 -0
- package/{dist/serialization/types/DiscountResposneModel.d.ts → serialization/types/DiscountResponseModel.d.ts} +2 -2
- package/serialization/types/{DiscountResposneModel.js → DiscountResponseModel.js} +2 -2
- package/serialization/types/DubbingResource.d.ts +2 -2
- package/serialization/types/DubbingResource.js +2 -2
- package/serialization/types/InvoiceResponse.d.ts +2 -2
- package/serialization/types/InvoiceResponse.js +2 -2
- package/serialization/types/PendingSubscriptionSwitchResponseModel.d.ts +2 -2
- package/serialization/types/PendingSubscriptionSwitchResponseModel.js +2 -2
- package/serialization/types/PodcastTextSource.d.ts +1 -0
- package/serialization/types/PodcastTextSource.js +1 -0
- package/serialization/types/PodcastUrlSource.d.ts +1 -0
- package/serialization/types/PodcastUrlSource.js +1 -0
- package/serialization/types/RagConfig.d.ts +1 -0
- package/serialization/types/RagConfig.js +1 -0
- package/serialization/types/RagConfigWorkflowOverride.d.ts +1 -0
- package/serialization/types/RagConfigWorkflowOverride.js +1 -0
- package/serialization/types/Subscription.d.ts +4 -4
- package/serialization/types/Subscription.js +4 -4
- package/serialization/types/SubscriptionResponse.d.ts +4 -4
- package/serialization/types/SubscriptionResponse.js +4 -4
- package/serialization/types/SystemToolConfigInput.d.ts +1 -0
- package/serialization/types/SystemToolConfigInput.js +1 -0
- package/serialization/types/SystemToolConfigOutput.d.ts +1 -0
- package/serialization/types/SystemToolConfigOutput.js +1 -0
- package/serialization/types/WhatsAppConversationInfo.d.ts +2 -0
- package/serialization/types/WhatsAppConversationInfo.js +2 -0
- package/serialization/types/WhatsAppConversationInfoDirection.d.ts +7 -0
- package/serialization/types/WhatsAppConversationInfoDirection.js +39 -0
- package/serialization/types/WordTimestamp.d.ts +11 -0
- package/{dist/serialization/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.js → serialization/types/WordTimestamp.js} +6 -2
- package/serialization/types/WorkflowToolNestedToolsStepModelInput.d.ts +2 -2
- package/serialization/types/WorkflowToolNestedToolsStepModelInput.js +2 -2
- package/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.d.ts +2 -1
- package/serialization/types/WorkflowToolNestedToolsStepModelInputResultsItem.js +2 -0
- package/serialization/types/WorkflowToolNestedToolsStepModelOutput.d.ts +2 -2
- package/serialization/types/WorkflowToolNestedToolsStepModelOutput.js +2 -2
- package/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.d.ts +2 -1
- package/serialization/types/WorkflowToolNestedToolsStepModelOutputResultsItem.js +2 -0
- package/serialization/types/index.d.ts +11 -8
- package/serialization/types/index.js +11 -8
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/ElevenLabsClient.d.ts +1 -1
- package/wrapper/music.d.ts +4 -4
- package/wrapper/music.js +1 -1
- package/wrapper/realtime/scribe.d.ts +2 -2
- package/wrapper/speechToText.d.ts +1 -1
- package/wrapper/speechToText.js +1 -1
- package/wrapper/webhooks.d.ts +1 -1
- package/wrapper/webhooks.js +1 -1
- package/api/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.d.ts +0 -13
- package/api/types/ExtendedSubscriptionResponseModelBillingPeriod.d.ts +0 -7
- package/api/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.d.ts +0 -7
- package/api/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.js +0 -10
- package/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +0 -8
- package/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.js +0 -11
- package/api/types/SubscriptionResponseModelBillingPeriod.d.ts +0 -7
- package/api/types/SubscriptionResponseModelCharacterRefreshPeriod.d.ts +0 -7
- package/api/types/SubscriptionResponseModelCharacterRefreshPeriod.js +0 -10
- package/core/fetcher/ResponseWithBody.d.ts +0 -4
- package/core/fetcher/ResponseWithBody.js +0 -6
- package/dist/api/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.d.ts +0 -13
- package/dist/api/types/ExtendedSubscriptionResponseModelBillingPeriod.d.ts +0 -7
- package/dist/api/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.d.ts +0 -7
- package/dist/api/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.js +0 -10
- package/dist/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +0 -8
- package/dist/api/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.js +0 -11
- package/dist/api/types/SubscriptionResponseModelBillingPeriod.d.ts +0 -7
- package/dist/api/types/SubscriptionResponseModelCharacterRefreshPeriod.d.ts +0 -7
- package/dist/api/types/SubscriptionResponseModelCharacterRefreshPeriod.js +0 -10
- package/dist/core/fetcher/ResponseWithBody.d.ts +0 -4
- package/dist/core/fetcher/ResponseWithBody.js +0 -6
- package/dist/serialization/types/ExtendedSubscriptionResponseModelBillingPeriod.d.ts +0 -7
- package/dist/serialization/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.d.ts +0 -7
- package/dist/serialization/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +0 -7
- package/dist/serialization/types/SubscriptionResponseModelBillingPeriod.d.ts +0 -7
- package/dist/serialization/types/SubscriptionResponseModelCharacterRefreshPeriod.d.ts +0 -7
- package/dist/serialization/types/SubscriptionResponseModelCharacterRefreshPeriod.js +0 -39
- package/serialization/types/ExtendedSubscriptionResponseModelBillingPeriod.d.ts +0 -7
- package/serialization/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.d.ts +0 -7
- package/serialization/types/ExtendedSubscriptionResponseModelCharacterRefreshPeriod.js +0 -39
- package/serialization/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.d.ts +0 -7
- package/serialization/types/PendingSubscriptionSwitchResponseModelNextBillingPeriod.js +0 -39
- package/serialization/types/SubscriptionResponseModelBillingPeriod.d.ts +0 -7
- package/serialization/types/SubscriptionResponseModelCharacterRefreshPeriod.d.ts +0 -7
- package/serialization/types/SubscriptionResponseModelCharacterRefreshPeriod.js +0 -39
- /package/api/resources/{studio/types/BodyCreatePodcastV1StudioPodcastsPostSourceItem.js → conversationalAi/resources/twilio/client/requests/BodyRegisterATwilioCallAndReturnTwiMlV1ConvaiTwilioRegisterCallPost.js} +0 -0
- /package/api/{types/ConversationHistoryTranscriptToolCallCommonModel.js → resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSourceTwoItem.js} +0 -0
- /package/api/types/{ConversationHistoryTranscriptToolCallCommonModelToolDetails.js → ConversationHistoryTranscriptApiIntegrationWebhookToolsResultCommonModel.js} +0 -0
- /package/api/types/{DiscountResposneModel.js → ConversationHistoryTranscriptToolCallApiIntegrationWebhookDetails.js} +0 -0
- /package/{dist/api/resources/studio/types/BodyCreatePodcastV1StudioPodcastsPostSourceItem.js → api/types/ConversationHistoryTranscriptToolCallCommonModelInput.js} +0 -0
- /package/{dist/api/types/ConversationHistoryTranscriptToolCallCommonModel.js → api/types/ConversationHistoryTranscriptToolCallCommonModelInputToolDetails.js} +0 -0
- /package/{dist/api/types/ConversationHistoryTranscriptToolCallCommonModelToolDetails.js → api/types/ConversationHistoryTranscriptToolCallCommonModelOutput.js} +0 -0
- /package/{dist/api/types/DiscountResposneModel.js → api/types/ConversationHistoryTranscriptToolCallCommonModelOutputToolDetails.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from "./BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions";
|
|
2
|
-
export * from "./
|
|
2
|
+
export * from "./BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem";
|
|
3
3
|
export * from "./BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions";
|
|
4
|
-
export * from "./
|
|
4
|
+
export * from "./BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem";
|
|
@@ -15,6 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissions"), exports);
|
|
18
|
-
__exportStar(require("./
|
|
18
|
+
__exportStar(require("./BodyCreateServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysPostPermissionsZeroItem"), exports);
|
|
19
19
|
__exportStar(require("./BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissions"), exports);
|
|
20
|
-
__exportStar(require("./
|
|
20
|
+
__exportStar(require("./BodyEditServiceAccountApiKeyV1ServiceAccountsServiceAccountUserIdApiKeysApiKeyIdPatchPermissionsZeroItem"), exports);
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient";
|
|
2
|
+
import { type NormalizedClientOptions } from "../../../../BaseClient";
|
|
2
3
|
import * as core from "../../../../core";
|
|
3
4
|
import * as ElevenLabs from "../../../index";
|
|
4
|
-
export declare namespace
|
|
5
|
-
|
|
6
|
-
}
|
|
5
|
+
export declare namespace SpeechToSpeechClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
export declare class
|
|
11
|
-
protected readonly _options:
|
|
12
|
-
constructor(
|
|
10
|
+
export declare class SpeechToSpeechClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptions<SpeechToSpeechClient.Options>;
|
|
12
|
+
constructor(options?: SpeechToSpeechClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Transform audio from one voice to another. Maintain full control over emotion, timing and delivery.
|
|
15
15
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
16
16
|
*/
|
|
17
|
-
convert(voice_id: string, request: ElevenLabs.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost, requestOptions?:
|
|
17
|
+
convert(voice_id: string, request: ElevenLabs.BodySpeechToSpeechV1SpeechToSpeechVoiceIdPost, requestOptions?: SpeechToSpeechClient.RequestOptions): core.HttpResponsePromise<ReadableStream<Uint8Array>>;
|
|
18
18
|
private __convert;
|
|
19
19
|
/**
|
|
20
20
|
* Stream audio from one voice to another. Maintain full control over emotion, timing and delivery.
|
|
21
21
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
22
22
|
*/
|
|
23
|
-
stream(voice_id: string, request: ElevenLabs.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost, requestOptions?:
|
|
23
|
+
stream(voice_id: string, request: ElevenLabs.BodySpeechToSpeechStreamingV1SpeechToSpeechVoiceIdStreamPost, requestOptions?: SpeechToSpeechClient.RequestOptions): core.HttpResponsePromise<ReadableStream<Uint8Array>>;
|
|
24
24
|
private __stream;
|
|
25
25
|
}
|
|
@@ -43,16 +43,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
-
exports.
|
|
46
|
+
exports.SpeechToSpeechClient = void 0;
|
|
47
|
+
const BaseClient_1 = require("../../../../BaseClient");
|
|
47
48
|
const core = __importStar(require("../../../../core"));
|
|
48
49
|
const headers_1 = require("../../../../core/headers");
|
|
49
50
|
const environments = __importStar(require("../../../../environments"));
|
|
51
|
+
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
50
52
|
const errors = __importStar(require("../../../../errors/index"));
|
|
51
53
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
52
54
|
const ElevenLabs = __importStar(require("../../../index"));
|
|
53
|
-
class
|
|
54
|
-
constructor(
|
|
55
|
-
this._options =
|
|
55
|
+
class SpeechToSpeechClient {
|
|
56
|
+
constructor(options = {}) {
|
|
57
|
+
this._options = (0, BaseClient_1.normalizeClientOptions)(options);
|
|
56
58
|
}
|
|
57
59
|
/**
|
|
58
60
|
* Transform audio from one voice to another. Maintain full control over emotion, timing and delivery.
|
|
@@ -130,21 +132,7 @@ class SpeechToSpeech {
|
|
|
130
132
|
});
|
|
131
133
|
}
|
|
132
134
|
}
|
|
133
|
-
|
|
134
|
-
case "non-json":
|
|
135
|
-
throw new errors.ElevenLabsError({
|
|
136
|
-
statusCode: _response.error.statusCode,
|
|
137
|
-
body: _response.error.rawBody,
|
|
138
|
-
rawResponse: _response.rawResponse,
|
|
139
|
-
});
|
|
140
|
-
case "timeout":
|
|
141
|
-
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling POST /v1/speech-to-speech/{voice_id}.");
|
|
142
|
-
case "unknown":
|
|
143
|
-
throw new errors.ElevenLabsError({
|
|
144
|
-
message: _response.error.errorMessage,
|
|
145
|
-
rawResponse: _response.rawResponse,
|
|
146
|
-
});
|
|
147
|
-
}
|
|
135
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/speech-to-speech/{voice_id}");
|
|
148
136
|
});
|
|
149
137
|
}
|
|
150
138
|
/**
|
|
@@ -223,22 +211,8 @@ class SpeechToSpeech {
|
|
|
223
211
|
});
|
|
224
212
|
}
|
|
225
213
|
}
|
|
226
|
-
|
|
227
|
-
case "non-json":
|
|
228
|
-
throw new errors.ElevenLabsError({
|
|
229
|
-
statusCode: _response.error.statusCode,
|
|
230
|
-
body: _response.error.rawBody,
|
|
231
|
-
rawResponse: _response.rawResponse,
|
|
232
|
-
});
|
|
233
|
-
case "timeout":
|
|
234
|
-
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling POST /v1/speech-to-speech/{voice_id}/stream.");
|
|
235
|
-
case "unknown":
|
|
236
|
-
throw new errors.ElevenLabsError({
|
|
237
|
-
message: _response.error.errorMessage,
|
|
238
|
-
rawResponse: _response.rawResponse,
|
|
239
|
-
});
|
|
240
|
-
}
|
|
214
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/speech-to-speech/{voice_id}/stream");
|
|
241
215
|
});
|
|
242
216
|
}
|
|
243
217
|
}
|
|
244
|
-
exports.
|
|
218
|
+
exports.SpeechToSpeechClient = SpeechToSpeechClient;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient";
|
|
2
|
+
import { type NormalizedClientOptions } from "../../../../BaseClient";
|
|
2
3
|
import * as core from "../../../../core";
|
|
3
4
|
import * as ElevenLabs from "../../../index";
|
|
4
|
-
import {
|
|
5
|
-
export declare namespace
|
|
6
|
-
|
|
7
|
-
}
|
|
5
|
+
import { TranscriptsClient } from "../resources/transcripts/client/Client";
|
|
6
|
+
export declare namespace SpeechToTextClient {
|
|
7
|
+
type Options = BaseClientOptions;
|
|
8
8
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
export declare class
|
|
12
|
-
protected readonly _options:
|
|
13
|
-
protected _transcripts:
|
|
14
|
-
constructor(
|
|
15
|
-
get transcripts():
|
|
11
|
+
export declare class SpeechToTextClient {
|
|
12
|
+
protected readonly _options: NormalizedClientOptions<SpeechToTextClient.Options>;
|
|
13
|
+
protected _transcripts: TranscriptsClient | undefined;
|
|
14
|
+
constructor(options?: SpeechToTextClient.Options);
|
|
15
|
+
get transcripts(): TranscriptsClient;
|
|
16
16
|
/**
|
|
17
17
|
* Transcribe an audio or video file. If webhook is set to true, the request will be processed asynchronously and results sent to configured webhooks. When use_multi_channel is true and the provided audio has multiple channels, a 'transcripts' object with separate transcripts for each channel is returned. Otherwise, returns a single transcript. The optional webhook_metadata parameter allows you to attach custom data that will be included in webhook responses for request correlation and tracking.
|
|
18
18
|
*
|
|
19
19
|
* @param {ElevenLabs.BodySpeechToTextV1SpeechToTextPost} request
|
|
20
|
-
* @param {
|
|
20
|
+
* @param {SpeechToTextClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
21
21
|
*
|
|
22
22
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
23
23
|
*
|
|
@@ -28,6 +28,6 @@ export declare class SpeechToText {
|
|
|
28
28
|
* modelId: "model_id"
|
|
29
29
|
* })
|
|
30
30
|
*/
|
|
31
|
-
convert(request: ElevenLabs.BodySpeechToTextV1SpeechToTextPost, requestOptions?:
|
|
31
|
+
convert(request: ElevenLabs.BodySpeechToTextV1SpeechToTextPost, requestOptions?: SpeechToTextClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.SpeechToTextConvertResponse>;
|
|
32
32
|
private __convert;
|
|
33
33
|
}
|
|
@@ -43,28 +43,30 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
-
exports.
|
|
46
|
+
exports.SpeechToTextClient = void 0;
|
|
47
|
+
const BaseClient_1 = require("../../../../BaseClient");
|
|
47
48
|
const core = __importStar(require("../../../../core"));
|
|
48
49
|
const headers_1 = require("../../../../core/headers");
|
|
49
50
|
const json_1 = require("../../../../core/json");
|
|
50
51
|
const environments = __importStar(require("../../../../environments"));
|
|
52
|
+
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
51
53
|
const errors = __importStar(require("../../../../errors/index"));
|
|
52
54
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
53
55
|
const ElevenLabs = __importStar(require("../../../index"));
|
|
54
56
|
const Client_1 = require("../resources/transcripts/client/Client");
|
|
55
|
-
class
|
|
56
|
-
constructor(
|
|
57
|
-
this._options =
|
|
57
|
+
class SpeechToTextClient {
|
|
58
|
+
constructor(options = {}) {
|
|
59
|
+
this._options = (0, BaseClient_1.normalizeClientOptions)(options);
|
|
58
60
|
}
|
|
59
61
|
get transcripts() {
|
|
60
62
|
var _a;
|
|
61
|
-
return ((_a = this._transcripts) !== null && _a !== void 0 ? _a : (this._transcripts = new Client_1.
|
|
63
|
+
return ((_a = this._transcripts) !== null && _a !== void 0 ? _a : (this._transcripts = new Client_1.TranscriptsClient(this._options)));
|
|
62
64
|
}
|
|
63
65
|
/**
|
|
64
66
|
* Transcribe an audio or video file. If webhook is set to true, the request will be processed asynchronously and results sent to configured webhooks. When use_multi_channel is true and the provided audio has multiple channels, a 'transcripts' object with separate transcripts for each channel is returned. Otherwise, returns a single transcript. The optional webhook_metadata parameter allows you to attach custom data that will be included in webhook responses for request correlation and tracking.
|
|
65
67
|
*
|
|
66
68
|
* @param {ElevenLabs.BodySpeechToTextV1SpeechToTextPost} request
|
|
67
|
-
* @param {
|
|
69
|
+
* @param {SpeechToTextClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
70
|
*
|
|
69
71
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
70
72
|
*
|
|
@@ -186,22 +188,8 @@ class SpeechToText {
|
|
|
186
188
|
});
|
|
187
189
|
}
|
|
188
190
|
}
|
|
189
|
-
|
|
190
|
-
case "non-json":
|
|
191
|
-
throw new errors.ElevenLabsError({
|
|
192
|
-
statusCode: _response.error.statusCode,
|
|
193
|
-
body: _response.error.rawBody,
|
|
194
|
-
rawResponse: _response.rawResponse,
|
|
195
|
-
});
|
|
196
|
-
case "timeout":
|
|
197
|
-
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling POST /v1/speech-to-text.");
|
|
198
|
-
case "unknown":
|
|
199
|
-
throw new errors.ElevenLabsError({
|
|
200
|
-
message: _response.error.errorMessage,
|
|
201
|
-
rawResponse: _response.rawResponse,
|
|
202
|
-
});
|
|
203
|
-
}
|
|
191
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/speech-to-text");
|
|
204
192
|
});
|
|
205
193
|
}
|
|
206
194
|
}
|
|
207
|
-
exports.
|
|
195
|
+
exports.SpeechToTextClient = SpeechToTextClient;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient";
|
|
2
|
+
import { type NormalizedClientOptions } from "../../../../../../BaseClient";
|
|
2
3
|
import * as core from "../../../../../../core";
|
|
3
4
|
import * as ElevenLabs from "../../../../../index";
|
|
4
|
-
export declare namespace
|
|
5
|
-
|
|
6
|
-
}
|
|
5
|
+
export declare namespace TranscriptsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
export declare class
|
|
11
|
-
protected readonly _options:
|
|
12
|
-
constructor(
|
|
10
|
+
export declare class TranscriptsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptions<TranscriptsClient.Options>;
|
|
12
|
+
constructor(options?: TranscriptsClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Retrieve a previously generated transcript by its ID.
|
|
15
15
|
*
|
|
16
16
|
* @param {string} transcription_id - The unique ID of the transcript to retrieve
|
|
17
|
-
* @param {
|
|
17
|
+
* @param {TranscriptsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
18
|
*
|
|
19
19
|
* @throws {@link ElevenLabs.UnauthorizedError}
|
|
20
20
|
* @throws {@link ElevenLabs.NotFoundError}
|
|
@@ -23,13 +23,13 @@ export declare class Transcripts {
|
|
|
23
23
|
* @example
|
|
24
24
|
* await client.speechToText.transcripts.get("transcription_id")
|
|
25
25
|
*/
|
|
26
|
-
get(transcription_id: string, requestOptions?:
|
|
26
|
+
get(transcription_id: string, requestOptions?: TranscriptsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.speechToText.TranscriptsGetResponse>;
|
|
27
27
|
private __get;
|
|
28
28
|
/**
|
|
29
29
|
* Delete a previously generated transcript by its ID.
|
|
30
30
|
*
|
|
31
31
|
* @param {string} transcription_id - The unique ID of the transcript to delete
|
|
32
|
-
* @param {
|
|
32
|
+
* @param {TranscriptsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
33
33
|
*
|
|
34
34
|
* @throws {@link ElevenLabs.UnauthorizedError}
|
|
35
35
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
@@ -37,6 +37,6 @@ export declare class Transcripts {
|
|
|
37
37
|
* @example
|
|
38
38
|
* await client.speechToText.transcripts.delete("transcription_id")
|
|
39
39
|
*/
|
|
40
|
-
delete(transcription_id: string, requestOptions?:
|
|
40
|
+
delete(transcription_id: string, requestOptions?: TranscriptsClient.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
41
41
|
private __delete;
|
|
42
42
|
}
|
|
@@ -43,22 +43,24 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
-
exports.
|
|
46
|
+
exports.TranscriptsClient = void 0;
|
|
47
|
+
const BaseClient_1 = require("../../../../../../BaseClient");
|
|
47
48
|
const core = __importStar(require("../../../../../../core"));
|
|
48
49
|
const headers_1 = require("../../../../../../core/headers");
|
|
49
50
|
const environments = __importStar(require("../../../../../../environments"));
|
|
51
|
+
const handleNonStatusCodeError_1 = require("../../../../../../errors/handleNonStatusCodeError");
|
|
50
52
|
const errors = __importStar(require("../../../../../../errors/index"));
|
|
51
53
|
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
52
54
|
const ElevenLabs = __importStar(require("../../../../../index"));
|
|
53
|
-
class
|
|
54
|
-
constructor(
|
|
55
|
-
this._options =
|
|
55
|
+
class TranscriptsClient {
|
|
56
|
+
constructor(options = {}) {
|
|
57
|
+
this._options = (0, BaseClient_1.normalizeClientOptions)(options);
|
|
56
58
|
}
|
|
57
59
|
/**
|
|
58
60
|
* Retrieve a previously generated transcript by its ID.
|
|
59
61
|
*
|
|
60
62
|
* @param {string} transcription_id - The unique ID of the transcript to retrieve
|
|
61
|
-
* @param {
|
|
63
|
+
* @param {TranscriptsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
64
|
*
|
|
63
65
|
* @throws {@link ElevenLabs.UnauthorizedError}
|
|
64
66
|
* @throws {@link ElevenLabs.NotFoundError}
|
|
@@ -117,28 +119,14 @@ class Transcripts {
|
|
|
117
119
|
});
|
|
118
120
|
}
|
|
119
121
|
}
|
|
120
|
-
|
|
121
|
-
case "non-json":
|
|
122
|
-
throw new errors.ElevenLabsError({
|
|
123
|
-
statusCode: _response.error.statusCode,
|
|
124
|
-
body: _response.error.rawBody,
|
|
125
|
-
rawResponse: _response.rawResponse,
|
|
126
|
-
});
|
|
127
|
-
case "timeout":
|
|
128
|
-
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/speech-to-text/transcripts/{transcription_id}.");
|
|
129
|
-
case "unknown":
|
|
130
|
-
throw new errors.ElevenLabsError({
|
|
131
|
-
message: _response.error.errorMessage,
|
|
132
|
-
rawResponse: _response.rawResponse,
|
|
133
|
-
});
|
|
134
|
-
}
|
|
122
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/speech-to-text/transcripts/{transcription_id}");
|
|
135
123
|
});
|
|
136
124
|
}
|
|
137
125
|
/**
|
|
138
126
|
* Delete a previously generated transcript by its ID.
|
|
139
127
|
*
|
|
140
128
|
* @param {string} transcription_id - The unique ID of the transcript to delete
|
|
141
|
-
* @param {
|
|
129
|
+
* @param {TranscriptsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
142
130
|
*
|
|
143
131
|
* @throws {@link ElevenLabs.UnauthorizedError}
|
|
144
132
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
@@ -186,22 +174,8 @@ class Transcripts {
|
|
|
186
174
|
});
|
|
187
175
|
}
|
|
188
176
|
}
|
|
189
|
-
|
|
190
|
-
case "non-json":
|
|
191
|
-
throw new errors.ElevenLabsError({
|
|
192
|
-
statusCode: _response.error.statusCode,
|
|
193
|
-
body: _response.error.rawBody,
|
|
194
|
-
rawResponse: _response.rawResponse,
|
|
195
|
-
});
|
|
196
|
-
case "timeout":
|
|
197
|
-
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling DELETE /v1/speech-to-text/transcripts/{transcription_id}.");
|
|
198
|
-
case "unknown":
|
|
199
|
-
throw new errors.ElevenLabsError({
|
|
200
|
-
message: _response.error.errorMessage,
|
|
201
|
-
rawResponse: _response.rawResponse,
|
|
202
|
-
});
|
|
203
|
-
}
|
|
177
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v1/speech-to-text/transcripts/{transcription_id}");
|
|
204
178
|
});
|
|
205
179
|
}
|
|
206
180
|
}
|
|
207
|
-
exports.
|
|
181
|
+
exports.TranscriptsClient = TranscriptsClient;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient";
|
|
2
|
+
import { type NormalizedClientOptions } from "../../../../BaseClient";
|
|
2
3
|
import * as core from "../../../../core";
|
|
3
4
|
import * as ElevenLabs from "../../../index";
|
|
4
|
-
import {
|
|
5
|
-
export declare namespace
|
|
6
|
-
|
|
7
|
-
}
|
|
5
|
+
import { ProjectsClient } from "../resources/projects/client/Client";
|
|
6
|
+
export declare namespace StudioClient {
|
|
7
|
+
type Options = BaseClientOptions;
|
|
8
8
|
interface RequestOptions extends BaseRequestOptions {
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
export declare class
|
|
12
|
-
protected readonly _options:
|
|
13
|
-
protected _projects:
|
|
14
|
-
constructor(
|
|
15
|
-
get projects():
|
|
11
|
+
export declare class StudioClient {
|
|
12
|
+
protected readonly _options: NormalizedClientOptions<StudioClient.Options>;
|
|
13
|
+
protected _projects: ProjectsClient | undefined;
|
|
14
|
+
constructor(options?: StudioClient.Options);
|
|
15
|
+
get projects(): ProjectsClient;
|
|
16
16
|
/**
|
|
17
17
|
* Create and auto-convert a podcast project. Currently, the LLM cost is covered by us but you will still be charged for the audio generation. In the future, you will be charged for both the LLM and audio generation costs.
|
|
18
18
|
*
|
|
19
19
|
* @param {ElevenLabs.BodyCreatePodcastV1StudioPodcastsPost} request
|
|
20
|
-
* @param {
|
|
20
|
+
* @param {StudioClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
21
21
|
*
|
|
22
22
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
23
23
|
*
|
|
@@ -33,10 +33,11 @@ export declare class Studio {
|
|
|
33
33
|
* }
|
|
34
34
|
* },
|
|
35
35
|
* source: {
|
|
36
|
+
* type: "text",
|
|
36
37
|
* text: "This is a test podcast."
|
|
37
38
|
* }
|
|
38
39
|
* })
|
|
39
40
|
*/
|
|
40
|
-
createPodcast(request: ElevenLabs.BodyCreatePodcastV1StudioPodcastsPost, requestOptions?:
|
|
41
|
+
createPodcast(request: ElevenLabs.BodyCreatePodcastV1StudioPodcastsPost, requestOptions?: StudioClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.PodcastProjectResponseModel>;
|
|
41
42
|
private __createPodcast;
|
|
42
43
|
}
|
|
@@ -54,27 +54,29 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
54
54
|
return t;
|
|
55
55
|
};
|
|
56
56
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57
|
-
exports.
|
|
57
|
+
exports.StudioClient = void 0;
|
|
58
|
+
const BaseClient_1 = require("../../../../BaseClient");
|
|
58
59
|
const core = __importStar(require("../../../../core"));
|
|
59
60
|
const headers_1 = require("../../../../core/headers");
|
|
60
61
|
const environments = __importStar(require("../../../../environments"));
|
|
62
|
+
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
61
63
|
const errors = __importStar(require("../../../../errors/index"));
|
|
62
64
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
63
65
|
const ElevenLabs = __importStar(require("../../../index"));
|
|
64
66
|
const Client_1 = require("../resources/projects/client/Client");
|
|
65
|
-
class
|
|
66
|
-
constructor(
|
|
67
|
-
this._options =
|
|
67
|
+
class StudioClient {
|
|
68
|
+
constructor(options = {}) {
|
|
69
|
+
this._options = (0, BaseClient_1.normalizeClientOptions)(options);
|
|
68
70
|
}
|
|
69
71
|
get projects() {
|
|
70
72
|
var _a;
|
|
71
|
-
return ((_a = this._projects) !== null && _a !== void 0 ? _a : (this._projects = new Client_1.
|
|
73
|
+
return ((_a = this._projects) !== null && _a !== void 0 ? _a : (this._projects = new Client_1.ProjectsClient(this._options)));
|
|
72
74
|
}
|
|
73
75
|
/**
|
|
74
76
|
* Create and auto-convert a podcast project. Currently, the LLM cost is covered by us but you will still be charged for the audio generation. In the future, you will be charged for both the LLM and audio generation costs.
|
|
75
77
|
*
|
|
76
78
|
* @param {ElevenLabs.BodyCreatePodcastV1StudioPodcastsPost} request
|
|
77
|
-
* @param {
|
|
79
|
+
* @param {StudioClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
78
80
|
*
|
|
79
81
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
80
82
|
*
|
|
@@ -90,6 +92,7 @@ class Studio {
|
|
|
90
92
|
* }
|
|
91
93
|
* },
|
|
92
94
|
* source: {
|
|
95
|
+
* type: "text",
|
|
93
96
|
* text: "This is a test podcast."
|
|
94
97
|
* }
|
|
95
98
|
* })
|
|
@@ -149,22 +152,8 @@ class Studio {
|
|
|
149
152
|
});
|
|
150
153
|
}
|
|
151
154
|
}
|
|
152
|
-
|
|
153
|
-
case "non-json":
|
|
154
|
-
throw new errors.ElevenLabsError({
|
|
155
|
-
statusCode: _response.error.statusCode,
|
|
156
|
-
body: _response.error.rawBody,
|
|
157
|
-
rawResponse: _response.rawResponse,
|
|
158
|
-
});
|
|
159
|
-
case "timeout":
|
|
160
|
-
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling POST /v1/studio/podcasts.");
|
|
161
|
-
case "unknown":
|
|
162
|
-
throw new errors.ElevenLabsError({
|
|
163
|
-
message: _response.error.errorMessage,
|
|
164
|
-
rawResponse: _response.rawResponse,
|
|
165
|
-
});
|
|
166
|
-
}
|
|
155
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/studio/podcasts");
|
|
167
156
|
});
|
|
168
157
|
}
|
|
169
158
|
}
|
|
170
|
-
exports.
|
|
159
|
+
exports.StudioClient = StudioClient;
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient";
|
|
2
|
+
import { type NormalizedClientOptions } from "../../../../../../BaseClient";
|
|
2
3
|
import * as core from "../../../../../../core";
|
|
3
4
|
import * as ElevenLabs from "../../../../../index";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
export declare namespace
|
|
9
|
-
|
|
10
|
-
}
|
|
5
|
+
import { ChaptersClient } from "../resources/chapters/client/Client";
|
|
6
|
+
import { ContentClient } from "../resources/content/client/Client";
|
|
7
|
+
import { PronunciationDictionariesClient } from "../resources/pronunciationDictionaries/client/Client";
|
|
8
|
+
import { SnapshotsClient } from "../resources/snapshots/client/Client";
|
|
9
|
+
export declare namespace ProjectsClient {
|
|
10
|
+
type Options = BaseClientOptions;
|
|
11
11
|
interface RequestOptions extends BaseRequestOptions {
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
export declare class
|
|
15
|
-
protected readonly _options:
|
|
16
|
-
protected _pronunciationDictionaries:
|
|
17
|
-
protected _content:
|
|
18
|
-
protected _snapshots:
|
|
19
|
-
protected _chapters:
|
|
20
|
-
constructor(
|
|
21
|
-
get pronunciationDictionaries():
|
|
22
|
-
get content():
|
|
23
|
-
get snapshots():
|
|
24
|
-
get chapters():
|
|
14
|
+
export declare class ProjectsClient {
|
|
15
|
+
protected readonly _options: NormalizedClientOptions<ProjectsClient.Options>;
|
|
16
|
+
protected _pronunciationDictionaries: PronunciationDictionariesClient | undefined;
|
|
17
|
+
protected _content: ContentClient | undefined;
|
|
18
|
+
protected _snapshots: SnapshotsClient | undefined;
|
|
19
|
+
protected _chapters: ChaptersClient | undefined;
|
|
20
|
+
constructor(options?: ProjectsClient.Options);
|
|
21
|
+
get pronunciationDictionaries(): PronunciationDictionariesClient;
|
|
22
|
+
get content(): ContentClient;
|
|
23
|
+
get snapshots(): SnapshotsClient;
|
|
24
|
+
get chapters(): ChaptersClient;
|
|
25
25
|
/**
|
|
26
26
|
* Returns a list of your Studio projects with metadata.
|
|
27
27
|
*
|
|
28
|
-
* @param {
|
|
28
|
+
* @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
29
29
|
*
|
|
30
30
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
33
|
* await client.studio.projects.list()
|
|
34
34
|
*/
|
|
35
|
-
list(requestOptions?:
|
|
35
|
+
list(requestOptions?: ProjectsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetProjectsResponse>;
|
|
36
36
|
private __list;
|
|
37
37
|
/**
|
|
38
38
|
* Creates a new Studio project, it can be either initialized as blank, from a document or from a URL.
|
|
39
39
|
*
|
|
40
40
|
* @param {ElevenLabs.studio.BodyCreateStudioProjectV1StudioProjectsPost} request
|
|
41
|
-
* @param {
|
|
41
|
+
* @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
42
42
|
*
|
|
43
43
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
44
44
|
*
|
|
@@ -48,14 +48,14 @@ export declare class Projects {
|
|
|
48
48
|
* name: "name"
|
|
49
49
|
* })
|
|
50
50
|
*/
|
|
51
|
-
create(request: ElevenLabs.studio.BodyCreateStudioProjectV1StudioProjectsPost, requestOptions?:
|
|
51
|
+
create(request: ElevenLabs.studio.BodyCreateStudioProjectV1StudioProjectsPost, requestOptions?: ProjectsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.AddProjectResponseModel>;
|
|
52
52
|
private __create;
|
|
53
53
|
/**
|
|
54
54
|
* Returns information about a specific Studio project. This endpoint returns more detailed information about a project than `GET /v1/studio`.
|
|
55
55
|
*
|
|
56
56
|
* @param {string} project_id - The ID of the project to be used. You can use the [List projects](/docs/api-reference/studio/get-projects) endpoint to list all the available projects.
|
|
57
57
|
* @param {ElevenLabs.studio.ProjectsGetRequest} request
|
|
58
|
-
* @param {
|
|
58
|
+
* @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
59
59
|
*
|
|
60
60
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
61
61
|
*
|
|
@@ -64,14 +64,14 @@ export declare class Projects {
|
|
|
64
64
|
* shareId: "share_id"
|
|
65
65
|
* })
|
|
66
66
|
*/
|
|
67
|
-
get(project_id: string, request?: ElevenLabs.studio.ProjectsGetRequest, requestOptions?:
|
|
67
|
+
get(project_id: string, request?: ElevenLabs.studio.ProjectsGetRequest, requestOptions?: ProjectsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.ProjectExtendedResponse>;
|
|
68
68
|
private __get;
|
|
69
69
|
/**
|
|
70
70
|
* Updates the specified Studio project by setting the values of the parameters passed.
|
|
71
71
|
*
|
|
72
72
|
* @param {string} project_id - The ID of the project to be used. You can use the [List projects](/docs/api-reference/studio/get-projects) endpoint to list all the available projects.
|
|
73
73
|
* @param {ElevenLabs.studio.BodyUpdateStudioProjectV1StudioProjectsProjectIdPost} request
|
|
74
|
-
* @param {
|
|
74
|
+
* @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
75
|
*
|
|
76
76
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
77
77
|
*
|
|
@@ -82,32 +82,32 @@ export declare class Projects {
|
|
|
82
82
|
* defaultParagraphVoiceId: "21m00Tcm4TlvDq8ikWAM"
|
|
83
83
|
* })
|
|
84
84
|
*/
|
|
85
|
-
update(project_id: string, request: ElevenLabs.studio.BodyUpdateStudioProjectV1StudioProjectsProjectIdPost, requestOptions?:
|
|
85
|
+
update(project_id: string, request: ElevenLabs.studio.BodyUpdateStudioProjectV1StudioProjectsProjectIdPost, requestOptions?: ProjectsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.EditProjectResponseModel>;
|
|
86
86
|
private __update;
|
|
87
87
|
/**
|
|
88
88
|
* Deletes a Studio project.
|
|
89
89
|
*
|
|
90
90
|
* @param {string} project_id - The ID of the project to be used. You can use the [List projects](/docs/api-reference/studio/get-projects) endpoint to list all the available projects.
|
|
91
|
-
* @param {
|
|
91
|
+
* @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
92
92
|
*
|
|
93
93
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
94
94
|
*
|
|
95
95
|
* @example
|
|
96
96
|
* await client.studio.projects.delete("21m00Tcm4TlvDq8ikWAM")
|
|
97
97
|
*/
|
|
98
|
-
delete(project_id: string, requestOptions?:
|
|
98
|
+
delete(project_id: string, requestOptions?: ProjectsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.DeleteProjectResponseModel>;
|
|
99
99
|
private __delete;
|
|
100
100
|
/**
|
|
101
101
|
* Starts conversion of a Studio project and all of its chapters.
|
|
102
102
|
*
|
|
103
103
|
* @param {string} project_id - The ID of the project to be used. You can use the [List projects](/docs/api-reference/studio/get-projects) endpoint to list all the available projects.
|
|
104
|
-
* @param {
|
|
104
|
+
* @param {ProjectsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
105
105
|
*
|
|
106
106
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
107
107
|
*
|
|
108
108
|
* @example
|
|
109
109
|
* await client.studio.projects.convert("21m00Tcm4TlvDq8ikWAM")
|
|
110
110
|
*/
|
|
111
|
-
convert(project_id: string, requestOptions?:
|
|
111
|
+
convert(project_id: string, requestOptions?: ProjectsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.ConvertProjectResponseModel>;
|
|
112
112
|
private __convert;
|
|
113
113
|
}
|