@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,65 +1,65 @@
|
|
|
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
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
export declare namespace
|
|
20
|
-
|
|
21
|
-
}
|
|
5
|
+
import { AgentsClient } from "../resources/agents/client/Client";
|
|
6
|
+
import { AnalyticsClient } from "../resources/analytics/client/Client";
|
|
7
|
+
import { BatchCallsClient } from "../resources/batchCalls/client/Client";
|
|
8
|
+
import { ConversationsClient } from "../resources/conversations/client/Client";
|
|
9
|
+
import { DashboardClient } from "../resources/dashboard/client/Client";
|
|
10
|
+
import { KnowledgeBaseClient } from "../resources/knowledgeBase/client/Client";
|
|
11
|
+
import { LlmUsageClient } from "../resources/llmUsage/client/Client";
|
|
12
|
+
import { McpServersClient } from "../resources/mcpServers/client/Client";
|
|
13
|
+
import { PhoneNumbersClient } from "../resources/phoneNumbers/client/Client";
|
|
14
|
+
import { SecretsClient } from "../resources/secrets/client/Client";
|
|
15
|
+
import { SettingsClient } from "../resources/settings/client/Client";
|
|
16
|
+
import { SipTrunkClient } from "../resources/sipTrunk/client/Client";
|
|
17
|
+
import { TestsClient } from "../resources/tests/client/Client";
|
|
18
|
+
import { ToolsClient } from "../resources/tools/client/Client";
|
|
19
|
+
import { TwilioClient } from "../resources/twilio/client/Client";
|
|
20
|
+
export declare namespace ConversationalAiClient {
|
|
21
|
+
type Options = BaseClientOptions;
|
|
22
22
|
interface RequestOptions extends BaseRequestOptions {
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
export declare class
|
|
26
|
-
protected readonly _options:
|
|
27
|
-
protected _conversations:
|
|
28
|
-
protected _twilio:
|
|
29
|
-
protected _agents:
|
|
30
|
-
protected _tests:
|
|
31
|
-
protected _phoneNumbers:
|
|
32
|
-
protected _llmUsage:
|
|
33
|
-
protected _knowledgeBase:
|
|
34
|
-
protected _tools:
|
|
35
|
-
protected _settings:
|
|
36
|
-
protected _secrets:
|
|
37
|
-
protected _batchCalls:
|
|
38
|
-
protected _sipTrunk:
|
|
39
|
-
protected _mcpServers:
|
|
40
|
-
protected _analytics:
|
|
41
|
-
protected _dashboard:
|
|
42
|
-
constructor(
|
|
43
|
-
get conversations():
|
|
44
|
-
get twilio():
|
|
45
|
-
get agents():
|
|
46
|
-
get tests():
|
|
47
|
-
get phoneNumbers():
|
|
48
|
-
get llmUsage():
|
|
49
|
-
get knowledgeBase():
|
|
50
|
-
get tools():
|
|
51
|
-
get settings():
|
|
52
|
-
get secrets():
|
|
53
|
-
get batchCalls():
|
|
54
|
-
get sipTrunk():
|
|
55
|
-
get mcpServers():
|
|
56
|
-
get analytics():
|
|
57
|
-
get dashboard():
|
|
25
|
+
export declare class ConversationalAiClient {
|
|
26
|
+
protected readonly _options: NormalizedClientOptions<ConversationalAiClient.Options>;
|
|
27
|
+
protected _conversations: ConversationsClient | undefined;
|
|
28
|
+
protected _twilio: TwilioClient | undefined;
|
|
29
|
+
protected _agents: AgentsClient | undefined;
|
|
30
|
+
protected _tests: TestsClient | undefined;
|
|
31
|
+
protected _phoneNumbers: PhoneNumbersClient | undefined;
|
|
32
|
+
protected _llmUsage: LlmUsageClient | undefined;
|
|
33
|
+
protected _knowledgeBase: KnowledgeBaseClient | undefined;
|
|
34
|
+
protected _tools: ToolsClient | undefined;
|
|
35
|
+
protected _settings: SettingsClient | undefined;
|
|
36
|
+
protected _secrets: SecretsClient | undefined;
|
|
37
|
+
protected _batchCalls: BatchCallsClient | undefined;
|
|
38
|
+
protected _sipTrunk: SipTrunkClient | undefined;
|
|
39
|
+
protected _mcpServers: McpServersClient | undefined;
|
|
40
|
+
protected _analytics: AnalyticsClient | undefined;
|
|
41
|
+
protected _dashboard: DashboardClient | undefined;
|
|
42
|
+
constructor(options?: ConversationalAiClient.Options);
|
|
43
|
+
get conversations(): ConversationsClient;
|
|
44
|
+
get twilio(): TwilioClient;
|
|
45
|
+
get agents(): AgentsClient;
|
|
46
|
+
get tests(): TestsClient;
|
|
47
|
+
get phoneNumbers(): PhoneNumbersClient;
|
|
48
|
+
get llmUsage(): LlmUsageClient;
|
|
49
|
+
get knowledgeBase(): KnowledgeBaseClient;
|
|
50
|
+
get tools(): ToolsClient;
|
|
51
|
+
get settings(): SettingsClient;
|
|
52
|
+
get secrets(): SecretsClient;
|
|
53
|
+
get batchCalls(): BatchCallsClient;
|
|
54
|
+
get sipTrunk(): SipTrunkClient;
|
|
55
|
+
get mcpServers(): McpServersClient;
|
|
56
|
+
get analytics(): AnalyticsClient;
|
|
57
|
+
get dashboard(): DashboardClient;
|
|
58
58
|
/**
|
|
59
59
|
* Upload a file or webpage URL to create a knowledge base document. <br> <Note> After creating the document, update the agent's knowledge base by calling [Update agent](/docs/api-reference/agents/update). </Note>
|
|
60
60
|
*
|
|
61
61
|
* @param {ElevenLabs.BodyAddToKnowledgeBaseV1ConvaiKnowledgeBasePost} request
|
|
62
|
-
* @param {
|
|
62
|
+
* @param {ConversationalAiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
63
|
*
|
|
64
64
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
65
65
|
*
|
|
@@ -69,45 +69,45 @@ export declare class ConversationalAi {
|
|
|
69
69
|
* agentId: "agent_id"
|
|
70
70
|
* })
|
|
71
71
|
*/
|
|
72
|
-
addToKnowledgeBase(request: ElevenLabs.BodyAddToKnowledgeBaseV1ConvaiKnowledgeBasePost, requestOptions?:
|
|
72
|
+
addToKnowledgeBase(request: ElevenLabs.BodyAddToKnowledgeBaseV1ConvaiKnowledgeBasePost, requestOptions?: ConversationalAiClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.AddKnowledgeBaseResponseModel>;
|
|
73
73
|
private __addToKnowledgeBase;
|
|
74
74
|
/**
|
|
75
75
|
* Provides information about all RAG indexes of the specified knowledgebase document.
|
|
76
76
|
*
|
|
77
77
|
* @param {string} documentation_id - The id of a document from the knowledge base. This is returned on document addition.
|
|
78
|
-
* @param {
|
|
78
|
+
* @param {ConversationalAiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
79
79
|
*
|
|
80
80
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
81
81
|
*
|
|
82
82
|
* @example
|
|
83
83
|
* await client.conversationalAi.getDocumentRagIndexes("21m00Tcm4TlvDq8ikWAM")
|
|
84
84
|
*/
|
|
85
|
-
getDocumentRagIndexes(documentation_id: string, requestOptions?:
|
|
85
|
+
getDocumentRagIndexes(documentation_id: string, requestOptions?: ConversationalAiClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.RagDocumentIndexesResponseModel>;
|
|
86
86
|
private __getDocumentRagIndexes;
|
|
87
87
|
/**
|
|
88
88
|
* Delete RAG index for the knowledgebase document.
|
|
89
89
|
*
|
|
90
90
|
* @param {string} documentation_id - The id of a document from the knowledge base. This is returned on document addition.
|
|
91
91
|
* @param {string} rag_index_id - The id of RAG index of document from the knowledge base.
|
|
92
|
-
* @param {
|
|
92
|
+
* @param {ConversationalAiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
93
93
|
*
|
|
94
94
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
95
95
|
*
|
|
96
96
|
* @example
|
|
97
97
|
* await client.conversationalAi.deleteDocumentRagIndex("21m00Tcm4TlvDq8ikWAM", "21m00Tcm4TlvDq8ikWAM")
|
|
98
98
|
*/
|
|
99
|
-
deleteDocumentRagIndex(documentation_id: string, rag_index_id: string, requestOptions?:
|
|
99
|
+
deleteDocumentRagIndex(documentation_id: string, rag_index_id: string, requestOptions?: ConversationalAiClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.RagDocumentIndexResponseModel>;
|
|
100
100
|
private __deleteDocumentRagIndex;
|
|
101
101
|
/**
|
|
102
102
|
* Provides total size and other information of RAG indexes used by knowledgebase documents
|
|
103
103
|
*
|
|
104
|
-
* @param {
|
|
104
|
+
* @param {ConversationalAiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
105
105
|
*
|
|
106
106
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
107
107
|
*
|
|
108
108
|
* @example
|
|
109
109
|
* await client.conversationalAi.ragIndexOverview()
|
|
110
110
|
*/
|
|
111
|
-
ragIndexOverview(requestOptions?:
|
|
111
|
+
ragIndexOverview(requestOptions?: ConversationalAiClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.RagIndexOverviewResponseModel>;
|
|
112
112
|
private __ragIndexOverview;
|
|
113
113
|
}
|
|
@@ -43,10 +43,12 @@ 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.ConversationalAiClient = 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"));
|
|
@@ -65,75 +67,75 @@ const Client_12 = require("../resources/sipTrunk/client/Client");
|
|
|
65
67
|
const Client_13 = require("../resources/tests/client/Client");
|
|
66
68
|
const Client_14 = require("../resources/tools/client/Client");
|
|
67
69
|
const Client_15 = require("../resources/twilio/client/Client");
|
|
68
|
-
class
|
|
69
|
-
constructor(
|
|
70
|
-
this._options =
|
|
70
|
+
class ConversationalAiClient {
|
|
71
|
+
constructor(options = {}) {
|
|
72
|
+
this._options = (0, BaseClient_1.normalizeClientOptions)(options);
|
|
71
73
|
}
|
|
72
74
|
get conversations() {
|
|
73
75
|
var _a;
|
|
74
|
-
return ((_a = this._conversations) !== null && _a !== void 0 ? _a : (this._conversations = new Client_4.
|
|
76
|
+
return ((_a = this._conversations) !== null && _a !== void 0 ? _a : (this._conversations = new Client_4.ConversationsClient(this._options)));
|
|
75
77
|
}
|
|
76
78
|
get twilio() {
|
|
77
79
|
var _a;
|
|
78
|
-
return ((_a = this._twilio) !== null && _a !== void 0 ? _a : (this._twilio = new Client_15.
|
|
80
|
+
return ((_a = this._twilio) !== null && _a !== void 0 ? _a : (this._twilio = new Client_15.TwilioClient(this._options)));
|
|
79
81
|
}
|
|
80
82
|
get agents() {
|
|
81
83
|
var _a;
|
|
82
|
-
return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Client_1.
|
|
84
|
+
return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Client_1.AgentsClient(this._options)));
|
|
83
85
|
}
|
|
84
86
|
get tests() {
|
|
85
87
|
var _a;
|
|
86
|
-
return ((_a = this._tests) !== null && _a !== void 0 ? _a : (this._tests = new Client_13.
|
|
88
|
+
return ((_a = this._tests) !== null && _a !== void 0 ? _a : (this._tests = new Client_13.TestsClient(this._options)));
|
|
87
89
|
}
|
|
88
90
|
get phoneNumbers() {
|
|
89
91
|
var _a;
|
|
90
|
-
return ((_a = this._phoneNumbers) !== null && _a !== void 0 ? _a : (this._phoneNumbers = new Client_9.
|
|
92
|
+
return ((_a = this._phoneNumbers) !== null && _a !== void 0 ? _a : (this._phoneNumbers = new Client_9.PhoneNumbersClient(this._options)));
|
|
91
93
|
}
|
|
92
94
|
get llmUsage() {
|
|
93
95
|
var _a;
|
|
94
|
-
return ((_a = this._llmUsage) !== null && _a !== void 0 ? _a : (this._llmUsage = new Client_7.
|
|
96
|
+
return ((_a = this._llmUsage) !== null && _a !== void 0 ? _a : (this._llmUsage = new Client_7.LlmUsageClient(this._options)));
|
|
95
97
|
}
|
|
96
98
|
get knowledgeBase() {
|
|
97
99
|
var _a;
|
|
98
|
-
return ((_a = this._knowledgeBase) !== null && _a !== void 0 ? _a : (this._knowledgeBase = new Client_6.
|
|
100
|
+
return ((_a = this._knowledgeBase) !== null && _a !== void 0 ? _a : (this._knowledgeBase = new Client_6.KnowledgeBaseClient(this._options)));
|
|
99
101
|
}
|
|
100
102
|
get tools() {
|
|
101
103
|
var _a;
|
|
102
|
-
return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_14.
|
|
104
|
+
return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_14.ToolsClient(this._options)));
|
|
103
105
|
}
|
|
104
106
|
get settings() {
|
|
105
107
|
var _a;
|
|
106
|
-
return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new Client_11.
|
|
108
|
+
return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new Client_11.SettingsClient(this._options)));
|
|
107
109
|
}
|
|
108
110
|
get secrets() {
|
|
109
111
|
var _a;
|
|
110
|
-
return ((_a = this._secrets) !== null && _a !== void 0 ? _a : (this._secrets = new Client_10.
|
|
112
|
+
return ((_a = this._secrets) !== null && _a !== void 0 ? _a : (this._secrets = new Client_10.SecretsClient(this._options)));
|
|
111
113
|
}
|
|
112
114
|
get batchCalls() {
|
|
113
115
|
var _a;
|
|
114
|
-
return ((_a = this._batchCalls) !== null && _a !== void 0 ? _a : (this._batchCalls = new Client_3.
|
|
116
|
+
return ((_a = this._batchCalls) !== null && _a !== void 0 ? _a : (this._batchCalls = new Client_3.BatchCallsClient(this._options)));
|
|
115
117
|
}
|
|
116
118
|
get sipTrunk() {
|
|
117
119
|
var _a;
|
|
118
|
-
return ((_a = this._sipTrunk) !== null && _a !== void 0 ? _a : (this._sipTrunk = new Client_12.
|
|
120
|
+
return ((_a = this._sipTrunk) !== null && _a !== void 0 ? _a : (this._sipTrunk = new Client_12.SipTrunkClient(this._options)));
|
|
119
121
|
}
|
|
120
122
|
get mcpServers() {
|
|
121
123
|
var _a;
|
|
122
|
-
return ((_a = this._mcpServers) !== null && _a !== void 0 ? _a : (this._mcpServers = new Client_8.
|
|
124
|
+
return ((_a = this._mcpServers) !== null && _a !== void 0 ? _a : (this._mcpServers = new Client_8.McpServersClient(this._options)));
|
|
123
125
|
}
|
|
124
126
|
get analytics() {
|
|
125
127
|
var _a;
|
|
126
|
-
return ((_a = this._analytics) !== null && _a !== void 0 ? _a : (this._analytics = new Client_2.
|
|
128
|
+
return ((_a = this._analytics) !== null && _a !== void 0 ? _a : (this._analytics = new Client_2.AnalyticsClient(this._options)));
|
|
127
129
|
}
|
|
128
130
|
get dashboard() {
|
|
129
131
|
var _a;
|
|
130
|
-
return ((_a = this._dashboard) !== null && _a !== void 0 ? _a : (this._dashboard = new Client_5.
|
|
132
|
+
return ((_a = this._dashboard) !== null && _a !== void 0 ? _a : (this._dashboard = new Client_5.DashboardClient(this._options)));
|
|
131
133
|
}
|
|
132
134
|
/**
|
|
133
135
|
* Upload a file or webpage URL to create a knowledge base document. <br> <Note> After creating the document, update the agent's knowledge base by calling [Update agent](/docs/api-reference/agents/update). </Note>
|
|
134
136
|
*
|
|
135
137
|
* @param {ElevenLabs.BodyAddToKnowledgeBaseV1ConvaiKnowledgeBasePost} request
|
|
136
|
-
* @param {
|
|
138
|
+
* @param {ConversationalAiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
137
139
|
*
|
|
138
140
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
139
141
|
*
|
|
@@ -207,28 +209,14 @@ class ConversationalAi {
|
|
|
207
209
|
});
|
|
208
210
|
}
|
|
209
211
|
}
|
|
210
|
-
|
|
211
|
-
case "non-json":
|
|
212
|
-
throw new errors.ElevenLabsError({
|
|
213
|
-
statusCode: _response.error.statusCode,
|
|
214
|
-
body: _response.error.rawBody,
|
|
215
|
-
rawResponse: _response.rawResponse,
|
|
216
|
-
});
|
|
217
|
-
case "timeout":
|
|
218
|
-
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling POST /v1/convai/knowledge-base.");
|
|
219
|
-
case "unknown":
|
|
220
|
-
throw new errors.ElevenLabsError({
|
|
221
|
-
message: _response.error.errorMessage,
|
|
222
|
-
rawResponse: _response.rawResponse,
|
|
223
|
-
});
|
|
224
|
-
}
|
|
212
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/convai/knowledge-base");
|
|
225
213
|
});
|
|
226
214
|
}
|
|
227
215
|
/**
|
|
228
216
|
* Provides information about all RAG indexes of the specified knowledgebase document.
|
|
229
217
|
*
|
|
230
218
|
* @param {string} documentation_id - The id of a document from the knowledge base. This is returned on document addition.
|
|
231
|
-
* @param {
|
|
219
|
+
* @param {ConversationalAiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
232
220
|
*
|
|
233
221
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
234
222
|
*
|
|
@@ -281,21 +269,7 @@ class ConversationalAi {
|
|
|
281
269
|
});
|
|
282
270
|
}
|
|
283
271
|
}
|
|
284
|
-
|
|
285
|
-
case "non-json":
|
|
286
|
-
throw new errors.ElevenLabsError({
|
|
287
|
-
statusCode: _response.error.statusCode,
|
|
288
|
-
body: _response.error.rawBody,
|
|
289
|
-
rawResponse: _response.rawResponse,
|
|
290
|
-
});
|
|
291
|
-
case "timeout":
|
|
292
|
-
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/convai/knowledge-base/{documentation_id}/rag-index.");
|
|
293
|
-
case "unknown":
|
|
294
|
-
throw new errors.ElevenLabsError({
|
|
295
|
-
message: _response.error.errorMessage,
|
|
296
|
-
rawResponse: _response.rawResponse,
|
|
297
|
-
});
|
|
298
|
-
}
|
|
272
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/knowledge-base/{documentation_id}/rag-index");
|
|
299
273
|
});
|
|
300
274
|
}
|
|
301
275
|
/**
|
|
@@ -303,7 +277,7 @@ class ConversationalAi {
|
|
|
303
277
|
*
|
|
304
278
|
* @param {string} documentation_id - The id of a document from the knowledge base. This is returned on document addition.
|
|
305
279
|
* @param {string} rag_index_id - The id of RAG index of document from the knowledge base.
|
|
306
|
-
* @param {
|
|
280
|
+
* @param {ConversationalAiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
307
281
|
*
|
|
308
282
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
309
283
|
*
|
|
@@ -356,27 +330,13 @@ class ConversationalAi {
|
|
|
356
330
|
});
|
|
357
331
|
}
|
|
358
332
|
}
|
|
359
|
-
|
|
360
|
-
case "non-json":
|
|
361
|
-
throw new errors.ElevenLabsError({
|
|
362
|
-
statusCode: _response.error.statusCode,
|
|
363
|
-
body: _response.error.rawBody,
|
|
364
|
-
rawResponse: _response.rawResponse,
|
|
365
|
-
});
|
|
366
|
-
case "timeout":
|
|
367
|
-
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling DELETE /v1/convai/knowledge-base/{documentation_id}/rag-index/{rag_index_id}.");
|
|
368
|
-
case "unknown":
|
|
369
|
-
throw new errors.ElevenLabsError({
|
|
370
|
-
message: _response.error.errorMessage,
|
|
371
|
-
rawResponse: _response.rawResponse,
|
|
372
|
-
});
|
|
373
|
-
}
|
|
333
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v1/convai/knowledge-base/{documentation_id}/rag-index/{rag_index_id}");
|
|
374
334
|
});
|
|
375
335
|
}
|
|
376
336
|
/**
|
|
377
337
|
* Provides total size and other information of RAG indexes used by knowledgebase documents
|
|
378
338
|
*
|
|
379
|
-
* @param {
|
|
339
|
+
* @param {ConversationalAiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
380
340
|
*
|
|
381
341
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
382
342
|
*
|
|
@@ -429,22 +389,8 @@ class ConversationalAi {
|
|
|
429
389
|
});
|
|
430
390
|
}
|
|
431
391
|
}
|
|
432
|
-
|
|
433
|
-
case "non-json":
|
|
434
|
-
throw new errors.ElevenLabsError({
|
|
435
|
-
statusCode: _response.error.statusCode,
|
|
436
|
-
body: _response.error.rawBody,
|
|
437
|
-
rawResponse: _response.rawResponse,
|
|
438
|
-
});
|
|
439
|
-
case "timeout":
|
|
440
|
-
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/convai/knowledge-base/rag-index.");
|
|
441
|
-
case "unknown":
|
|
442
|
-
throw new errors.ElevenLabsError({
|
|
443
|
-
message: _response.error.errorMessage,
|
|
444
|
-
rawResponse: _response.rawResponse,
|
|
445
|
-
});
|
|
446
|
-
}
|
|
392
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/convai/knowledge-base/rag-index");
|
|
447
393
|
});
|
|
448
394
|
}
|
|
449
395
|
}
|
|
450
|
-
exports.
|
|
396
|
+
exports.ConversationalAiClient = ConversationalAiClient;
|
|
@@ -1,32 +1,32 @@
|
|
|
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 { KnowledgeBaseClient } from "../resources/knowledgeBase/client/Client";
|
|
6
|
+
import { LinkClient } from "../resources/link/client/Client";
|
|
7
|
+
import { LlmUsageClient } from "../resources/llmUsage/client/Client";
|
|
8
|
+
import { WidgetClient } from "../resources/widget/client/Client";
|
|
9
|
+
export declare namespace AgentsClient {
|
|
10
|
+
type Options = BaseClientOptions;
|
|
11
11
|
interface RequestOptions extends BaseRequestOptions {
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
export declare class
|
|
15
|
-
protected readonly _options:
|
|
16
|
-
protected _widget:
|
|
17
|
-
protected _link:
|
|
18
|
-
protected _knowledgeBase:
|
|
19
|
-
protected _llmUsage:
|
|
20
|
-
constructor(
|
|
21
|
-
get widget():
|
|
22
|
-
get link():
|
|
23
|
-
get knowledgeBase():
|
|
24
|
-
get llmUsage():
|
|
14
|
+
export declare class AgentsClient {
|
|
15
|
+
protected readonly _options: NormalizedClientOptions<AgentsClient.Options>;
|
|
16
|
+
protected _widget: WidgetClient | undefined;
|
|
17
|
+
protected _link: LinkClient | undefined;
|
|
18
|
+
protected _knowledgeBase: KnowledgeBaseClient | undefined;
|
|
19
|
+
protected _llmUsage: LlmUsageClient | undefined;
|
|
20
|
+
constructor(options?: AgentsClient.Options);
|
|
21
|
+
get widget(): WidgetClient;
|
|
22
|
+
get link(): LinkClient;
|
|
23
|
+
get knowledgeBase(): KnowledgeBaseClient;
|
|
24
|
+
get llmUsage(): LlmUsageClient;
|
|
25
25
|
/**
|
|
26
26
|
* Create an agent from a config object
|
|
27
27
|
*
|
|
28
28
|
* @param {ElevenLabs.conversationalAi.BodyCreateAgentV1ConvaiAgentsCreatePost} request
|
|
29
|
-
* @param {
|
|
29
|
+
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
30
|
*
|
|
31
31
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
32
32
|
*
|
|
@@ -35,53 +35,53 @@ export declare class Agents {
|
|
|
35
35
|
* conversationConfig: {}
|
|
36
36
|
* })
|
|
37
37
|
*/
|
|
38
|
-
create(request: ElevenLabs.conversationalAi.BodyCreateAgentV1ConvaiAgentsCreatePost, requestOptions?:
|
|
38
|
+
create(request: ElevenLabs.conversationalAi.BodyCreateAgentV1ConvaiAgentsCreatePost, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.CreateAgentResponseModel>;
|
|
39
39
|
private __create;
|
|
40
40
|
/**
|
|
41
41
|
* Retrieve config for an agent
|
|
42
42
|
*
|
|
43
43
|
* @param {string} agent_id - The id of an agent. This is returned on agent creation.
|
|
44
|
-
* @param {
|
|
44
|
+
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
45
45
|
*
|
|
46
46
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
49
|
* await client.conversationalAi.agents.get("agent_3701k3ttaq12ewp8b7qv5rfyszkz")
|
|
50
50
|
*/
|
|
51
|
-
get(agent_id: string, requestOptions?:
|
|
51
|
+
get(agent_id: string, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetAgentResponseModel>;
|
|
52
52
|
private __get;
|
|
53
53
|
/**
|
|
54
54
|
* Delete an agent
|
|
55
55
|
*
|
|
56
56
|
* @param {string} agent_id - The id of an agent. This is returned on agent creation.
|
|
57
|
-
* @param {
|
|
57
|
+
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
58
58
|
*
|
|
59
59
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
62
|
* await client.conversationalAi.agents.delete("agent_3701k3ttaq12ewp8b7qv5rfyszkz")
|
|
63
63
|
*/
|
|
64
|
-
delete(agent_id: string, requestOptions?:
|
|
64
|
+
delete(agent_id: string, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
65
65
|
private __delete;
|
|
66
66
|
/**
|
|
67
67
|
* Patches an Agent settings
|
|
68
68
|
*
|
|
69
69
|
* @param {string} agent_id - The id of an agent. This is returned on agent creation.
|
|
70
70
|
* @param {ElevenLabs.conversationalAi.UpdateAgentRequest} request
|
|
71
|
-
* @param {
|
|
71
|
+
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
72
72
|
*
|
|
73
73
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
74
74
|
*
|
|
75
75
|
* @example
|
|
76
76
|
* await client.conversationalAi.agents.update("agent_3701k3ttaq12ewp8b7qv5rfyszkz")
|
|
77
77
|
*/
|
|
78
|
-
update(agent_id: string, request?: ElevenLabs.conversationalAi.UpdateAgentRequest, requestOptions?:
|
|
78
|
+
update(agent_id: string, request?: ElevenLabs.conversationalAi.UpdateAgentRequest, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetAgentResponseModel>;
|
|
79
79
|
private __update;
|
|
80
80
|
/**
|
|
81
81
|
* Returns a list of your agents and their metadata.
|
|
82
82
|
*
|
|
83
83
|
* @param {ElevenLabs.conversationalAi.AgentsListRequest} request
|
|
84
|
-
* @param {
|
|
84
|
+
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
85
85
|
*
|
|
86
86
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
87
87
|
*
|
|
@@ -95,28 +95,28 @@ export declare class Agents {
|
|
|
95
95
|
* cursor: "cursor"
|
|
96
96
|
* })
|
|
97
97
|
*/
|
|
98
|
-
list(request?: ElevenLabs.conversationalAi.AgentsListRequest, requestOptions?:
|
|
98
|
+
list(request?: ElevenLabs.conversationalAi.AgentsListRequest, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetAgentsPageResponseModel>;
|
|
99
99
|
private __list;
|
|
100
100
|
/**
|
|
101
101
|
* Create a new agent by duplicating an existing one
|
|
102
102
|
*
|
|
103
103
|
* @param {string} agent_id - The id of an agent. This is returned on agent creation.
|
|
104
104
|
* @param {ElevenLabs.conversationalAi.BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost} request
|
|
105
|
-
* @param {
|
|
105
|
+
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
106
106
|
*
|
|
107
107
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
108
108
|
*
|
|
109
109
|
* @example
|
|
110
110
|
* await client.conversationalAi.agents.duplicate("agent_3701k3ttaq12ewp8b7qv5rfyszkz")
|
|
111
111
|
*/
|
|
112
|
-
duplicate(agent_id: string, request?: ElevenLabs.conversationalAi.BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost, requestOptions?:
|
|
112
|
+
duplicate(agent_id: string, request?: ElevenLabs.conversationalAi.BodyDuplicateAgentV1ConvaiAgentsAgentIdDuplicatePost, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.CreateAgentResponseModel>;
|
|
113
113
|
private __duplicate;
|
|
114
114
|
/**
|
|
115
115
|
* Run a conversation between the agent and a simulated user.
|
|
116
116
|
*
|
|
117
117
|
* @param {string} agent_id - The id of an agent. This is returned on agent creation.
|
|
118
118
|
* @param {ElevenLabs.conversationalAi.BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost} request
|
|
119
|
-
* @param {
|
|
119
|
+
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
120
120
|
*
|
|
121
121
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
122
122
|
*
|
|
@@ -131,14 +131,14 @@ export declare class Agents {
|
|
|
131
131
|
* }
|
|
132
132
|
* })
|
|
133
133
|
*/
|
|
134
|
-
simulateConversation(agent_id: string, request: ElevenLabs.conversationalAi.BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost, requestOptions?:
|
|
134
|
+
simulateConversation(agent_id: string, request: ElevenLabs.conversationalAi.BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.AgentSimulatedChatTestResponseModel>;
|
|
135
135
|
private __simulateConversation;
|
|
136
136
|
/**
|
|
137
137
|
* Run a conversation between the agent and a simulated user and stream back the response. Response is streamed back as partial lists of messages that should be concatenated and once the conversation has complete a single final message with the conversation analysis will be sent.
|
|
138
138
|
*
|
|
139
139
|
* @param {string} agent_id - The id of an agent. This is returned on agent creation.
|
|
140
140
|
* @param {ElevenLabs.conversationalAi.BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost} request
|
|
141
|
-
* @param {
|
|
141
|
+
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
142
142
|
*
|
|
143
143
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
144
144
|
*
|
|
@@ -153,14 +153,14 @@ export declare class Agents {
|
|
|
153
153
|
* }
|
|
154
154
|
* })
|
|
155
155
|
*/
|
|
156
|
-
simulateConversationStream(agent_id: string, request: ElevenLabs.conversationalAi.BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost, requestOptions?:
|
|
156
|
+
simulateConversationStream(agent_id: string, request: ElevenLabs.conversationalAi.BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
157
157
|
private __simulateConversationStream;
|
|
158
158
|
/**
|
|
159
159
|
* Run selected tests on the agent with provided configuration. If the agent configuration is provided, it will be used to override default agent configuration.
|
|
160
160
|
*
|
|
161
161
|
* @param {string} agent_id - The id of an agent. This is returned on agent creation.
|
|
162
162
|
* @param {ElevenLabs.conversationalAi.RunAgentTestsRequestModel} request
|
|
163
|
-
* @param {
|
|
163
|
+
* @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
164
164
|
*
|
|
165
165
|
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
166
166
|
*
|
|
@@ -171,6 +171,6 @@ export declare class Agents {
|
|
|
171
171
|
* }]
|
|
172
172
|
* })
|
|
173
173
|
*/
|
|
174
|
-
runTests(agent_id: string, request: ElevenLabs.conversationalAi.RunAgentTestsRequestModel, requestOptions?:
|
|
174
|
+
runTests(agent_id: string, request: ElevenLabs.conversationalAi.RunAgentTestsRequestModel, requestOptions?: AgentsClient.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetTestSuiteInvocationResponseModel>;
|
|
175
175
|
private __runTests;
|
|
176
176
|
}
|