@elevenlabs/elevenlabs-js 2.12.1 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.js +2 -2
- package/api/resources/conversationalAi/resources/tests/client/Client.d.ts +147 -0
- package/api/resources/conversationalAi/resources/tests/client/Client.js +537 -0
- package/api/resources/conversationalAi/resources/tests/client/index.d.ts +2 -0
- package/api/resources/conversationalAi/resources/tests/client/index.js +17 -0
- package/api/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +37 -0
- package/api/resources/conversationalAi/resources/tests/client/requests/ListTestsByIdsRequestModel.d.ts +13 -0
- package/api/resources/conversationalAi/resources/tests/client/requests/TestsListRequest.d.ts +21 -0
- package/api/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +37 -0
- package/api/resources/conversationalAi/resources/tests/client/requests/index.d.ts +4 -0
- package/api/resources/conversationalAi/resources/tests/client/requests/index.js +2 -0
- package/api/resources/conversationalAi/resources/tests/index.d.ts +3 -0
- package/api/resources/conversationalAi/resources/tests/index.js +19 -0
- package/api/resources/conversationalAi/resources/tests/resources/index.d.ts +2 -0
- package/api/resources/conversationalAi/resources/tests/resources/index.js +41 -0
- package/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.d.ts +63 -0
- package/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.js +201 -0
- package/api/resources/conversationalAi/resources/tests/resources/invocations/client/index.d.ts +2 -0
- package/api/resources/conversationalAi/resources/tests/resources/invocations/client/index.js +17 -0
- package/api/resources/conversationalAi/resources/tests/resources/invocations/client/requests/ResubmitTestsRequestModel.d.ts +19 -0
- package/api/resources/conversationalAi/resources/tests/resources/invocations/client/requests/ResubmitTestsRequestModel.js +5 -0
- package/api/resources/conversationalAi/resources/tests/resources/invocations/client/requests/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/tests/resources/invocations/client/requests/index.js +2 -0
- package/api/resources/conversationalAi/resources/tests/resources/invocations/index.d.ts +1 -0
- package/api/resources/conversationalAi/resources/tests/resources/invocations/index.js +17 -0
- package/api/resources/conversationalAi/resources/tests/types/CreateUnitTestRequestDynamicVariablesValue.d.ts +4 -0
- package/api/resources/conversationalAi/resources/tests/types/CreateUnitTestRequestDynamicVariablesValue.js +5 -0
- package/api/resources/conversationalAi/resources/tests/types/UpdateUnitTestRequestDynamicVariablesValue.d.ts +4 -0
- package/api/resources/conversationalAi/resources/tests/types/UpdateUnitTestRequestDynamicVariablesValue.js +5 -0
- package/api/resources/conversationalAi/resources/tests/types/index.d.ts +2 -0
- package/api/resources/conversationalAi/resources/tests/types/index.js +18 -0
- package/api/resources/dubbing/resources/resource/client/Client.js +18 -1
- package/api/resources/dubbing/resources/resource/client/requests/BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost.d.ts +4 -0
- package/api/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.d.ts +2 -0
- package/api/resources/workspace/resources/members/client/Client.d.ts +0 -15
- package/api/resources/workspace/resources/members/client/Client.js +0 -77
- package/api/resources/workspace/resources/members/client/requests/index.d.ts +0 -1
- package/api/types/AgentMetadataResponseModel.d.ts +2 -0
- package/api/types/InvoiceResponse.d.ts +3 -0
- package/api/types/InvoiceResponseModelPaymentIntentStatus.d.ts +13 -0
- package/api/types/InvoiceResponseModelPaymentIntentStatus.js +15 -0
- package/api/types/Subscription.d.ts +2 -0
- package/api/types/TtsConversationalConfigOverride.d.ts +6 -0
- package/api/types/TtsConversationalConfigOverrideConfig.d.ts +6 -0
- package/api/types/Voice.d.ts +2 -0
- package/api/types/VoicePreviewResponseModel.d.ts +2 -0
- package/api/types/index.d.ts +1 -1
- package/api/types/index.js +1 -1
- package/dist/Client.js +2 -2
- package/dist/api/resources/conversationalAi/resources/tests/client/Client.d.ts +147 -0
- package/dist/api/resources/conversationalAi/resources/tests/client/Client.js +537 -0
- package/dist/api/resources/conversationalAi/resources/tests/client/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/tests/client/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +37 -0
- package/dist/api/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.js +5 -0
- package/dist/api/resources/conversationalAi/resources/tests/client/requests/ListTestsByIdsRequestModel.d.ts +13 -0
- package/dist/api/resources/conversationalAi/resources/tests/client/requests/ListTestsByIdsRequestModel.js +5 -0
- package/dist/api/resources/conversationalAi/resources/tests/client/requests/TestsListRequest.d.ts +21 -0
- package/dist/api/resources/conversationalAi/resources/tests/client/requests/TestsListRequest.js +5 -0
- package/dist/api/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +37 -0
- package/dist/api/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.js +5 -0
- package/dist/api/resources/conversationalAi/resources/tests/client/requests/index.d.ts +4 -0
- package/dist/api/resources/conversationalAi/resources/tests/client/requests/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/tests/index.d.ts +3 -0
- package/dist/api/resources/conversationalAi/resources/tests/index.js +19 -0
- package/dist/api/resources/conversationalAi/resources/tests/resources/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/tests/resources/index.js +41 -0
- package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.d.ts +63 -0
- package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.js +201 -0
- package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/requests/ResubmitTestsRequestModel.d.ts +19 -0
- package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/requests/ResubmitTestsRequestModel.js +5 -0
- package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/requests/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/requests/index.js +2 -0
- package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/index.d.ts +1 -0
- package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/index.js +17 -0
- package/dist/api/resources/conversationalAi/resources/tests/types/CreateUnitTestRequestDynamicVariablesValue.d.ts +4 -0
- package/dist/api/resources/conversationalAi/resources/tests/types/CreateUnitTestRequestDynamicVariablesValue.js +5 -0
- package/dist/api/resources/conversationalAi/resources/tests/types/UpdateUnitTestRequestDynamicVariablesValue.d.ts +4 -0
- package/dist/api/resources/conversationalAi/resources/tests/types/UpdateUnitTestRequestDynamicVariablesValue.js +5 -0
- package/dist/api/resources/conversationalAi/resources/tests/types/index.d.ts +2 -0
- package/dist/api/resources/conversationalAi/resources/tests/types/index.js +18 -0
- package/dist/api/resources/dubbing/resources/resource/client/Client.js +18 -1
- package/dist/api/resources/dubbing/resources/resource/client/requests/BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost.d.ts +4 -0
- package/dist/api/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.d.ts +2 -0
- package/dist/api/resources/workspace/resources/members/client/Client.d.ts +0 -15
- package/dist/api/resources/workspace/resources/members/client/Client.js +0 -77
- package/dist/api/resources/workspace/resources/members/client/requests/index.d.ts +0 -1
- package/dist/api/types/AgentMetadataResponseModel.d.ts +2 -0
- package/dist/api/types/InvoiceResponse.d.ts +3 -0
- package/dist/api/types/InvoiceResponseModelPaymentIntentStatus.d.ts +13 -0
- package/dist/api/types/InvoiceResponseModelPaymentIntentStatus.js +15 -0
- package/dist/api/types/Subscription.d.ts +2 -0
- package/dist/api/types/TtsConversationalConfigOverride.d.ts +6 -0
- package/dist/api/types/TtsConversationalConfigOverrideConfig.d.ts +6 -0
- package/dist/api/types/Voice.d.ts +2 -0
- package/dist/api/types/VoicePreviewResponseModel.d.ts +2 -0
- package/dist/api/types/index.d.ts +1 -1
- package/dist/api/types/index.js +1 -1
- package/dist/serialization/resources/conversationalAi/resources/tests/client/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/client/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +23 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.js +56 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/ListTestsByIdsRequestModel.d.ts +12 -0
- package/dist/serialization/resources/{workspace/resources/members/client/requests/BodyDeleteMemberV1WorkspaceMembersDelete.js → conversationalAi/resources/tests/client/requests/ListTestsByIdsRequestModel.js} +3 -3
- package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +23 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.js +56 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/index.d.ts +3 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/index.js +9 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/index.d.ts +3 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/index.js +19 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/resources/index.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/resources/index.js +41 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/requests/ResubmitTestsRequestModel.d.ts +15 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/requests/ResubmitTestsRequestModel.js +46 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/requests/index.js +5 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/resources/invocations/index.d.ts +1 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/resources/invocations/index.js +17 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/types/CreateUnitTestRequestDynamicVariablesValue.d.ts +10 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/types/CreateUnitTestRequestDynamicVariablesValue.js +46 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/types/UpdateUnitTestRequestDynamicVariablesValue.d.ts +10 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/types/UpdateUnitTestRequestDynamicVariablesValue.js +46 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/types/index.d.ts +2 -0
- package/dist/serialization/resources/conversationalAi/resources/tests/types/index.js +18 -0
- package/dist/serialization/resources/dubbing/resources/resource/client/requests/BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost.d.ts +1 -1
- package/dist/serialization/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.d.ts +1 -0
- package/dist/serialization/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.js +1 -0
- package/dist/serialization/resources/workspace/resources/members/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/workspace/resources/members/client/requests/index.js +1 -3
- package/dist/serialization/types/AgentMetadataResponseModel.d.ts +1 -0
- package/dist/serialization/types/AgentMetadataResponseModel.js +1 -0
- package/dist/serialization/types/InvoiceResponse.d.ts +2 -0
- package/dist/serialization/types/InvoiceResponse.js +2 -0
- package/dist/serialization/types/InvoiceResponseModelPaymentIntentStatus.d.ts +10 -0
- package/dist/serialization/types/{DeleteWorkspaceMemberResponseModel.js → InvoiceResponseModelPaymentIntentStatus.js} +10 -4
- package/dist/serialization/types/Subscription.d.ts +1 -0
- package/dist/serialization/types/Subscription.js +1 -0
- package/dist/serialization/types/TtsConversationalConfigOverride.d.ts +3 -0
- package/dist/serialization/types/TtsConversationalConfigOverride.js +3 -0
- package/dist/serialization/types/TtsConversationalConfigOverrideConfig.d.ts +3 -0
- package/dist/serialization/types/TtsConversationalConfigOverrideConfig.js +3 -0
- package/dist/serialization/types/Voice.d.ts +1 -0
- package/dist/serialization/types/Voice.js +1 -0
- package/dist/serialization/types/VoicePreviewResponseModel.d.ts +1 -0
- package/dist/serialization/types/VoicePreviewResponseModel.js +1 -0
- package/dist/serialization/types/index.d.ts +1 -1
- package/dist/serialization/types/index.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +0 -65
- package/serialization/resources/conversationalAi/resources/tests/client/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/tests/client/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.d.ts +23 -0
- package/serialization/resources/conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.js +56 -0
- package/serialization/resources/conversationalAi/resources/tests/client/requests/ListTestsByIdsRequestModel.d.ts +12 -0
- package/serialization/resources/{workspace/resources/members/client/requests/BodyDeleteMemberV1WorkspaceMembersDelete.js → conversationalAi/resources/tests/client/requests/ListTestsByIdsRequestModel.js} +3 -3
- package/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.d.ts +23 -0
- package/serialization/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.js +56 -0
- package/serialization/resources/conversationalAi/resources/tests/client/requests/index.d.ts +3 -0
- package/serialization/resources/conversationalAi/resources/tests/client/requests/index.js +9 -0
- package/serialization/resources/conversationalAi/resources/tests/index.d.ts +3 -0
- package/serialization/resources/conversationalAi/resources/tests/index.js +19 -0
- package/serialization/resources/conversationalAi/resources/tests/resources/index.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/tests/resources/index.js +41 -0
- package/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/requests/ResubmitTestsRequestModel.d.ts +15 -0
- package/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/requests/ResubmitTestsRequestModel.js +46 -0
- package/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/requests/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/tests/resources/invocations/client/requests/index.js +5 -0
- package/serialization/resources/conversationalAi/resources/tests/resources/invocations/index.d.ts +1 -0
- package/serialization/resources/conversationalAi/resources/tests/resources/invocations/index.js +17 -0
- package/serialization/resources/conversationalAi/resources/tests/types/CreateUnitTestRequestDynamicVariablesValue.d.ts +10 -0
- package/serialization/resources/conversationalAi/resources/tests/types/CreateUnitTestRequestDynamicVariablesValue.js +46 -0
- package/serialization/resources/conversationalAi/resources/tests/types/UpdateUnitTestRequestDynamicVariablesValue.d.ts +10 -0
- package/serialization/resources/conversationalAi/resources/tests/types/UpdateUnitTestRequestDynamicVariablesValue.js +46 -0
- package/serialization/resources/conversationalAi/resources/tests/types/index.d.ts +2 -0
- package/serialization/resources/conversationalAi/resources/tests/types/index.js +18 -0
- package/serialization/resources/dubbing/resources/resource/client/requests/BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost.d.ts +1 -1
- package/serialization/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.d.ts +1 -0
- package/serialization/resources/textToSoundEffects/client/requests/CreateSoundEffectRequest.js +1 -0
- package/serialization/resources/workspace/resources/members/client/requests/index.d.ts +0 -1
- package/serialization/resources/workspace/resources/members/client/requests/index.js +1 -3
- package/serialization/types/AgentMetadataResponseModel.d.ts +1 -0
- package/serialization/types/AgentMetadataResponseModel.js +1 -0
- package/serialization/types/InvoiceResponse.d.ts +2 -0
- package/serialization/types/InvoiceResponse.js +2 -0
- package/serialization/types/InvoiceResponseModelPaymentIntentStatus.d.ts +10 -0
- package/serialization/types/{DeleteWorkspaceMemberResponseModel.js → InvoiceResponseModelPaymentIntentStatus.js} +10 -4
- package/serialization/types/Subscription.d.ts +1 -0
- package/serialization/types/Subscription.js +1 -0
- package/serialization/types/TtsConversationalConfigOverride.d.ts +3 -0
- package/serialization/types/TtsConversationalConfigOverride.js +3 -0
- package/serialization/types/TtsConversationalConfigOverrideConfig.d.ts +3 -0
- package/serialization/types/TtsConversationalConfigOverrideConfig.js +3 -0
- package/serialization/types/Voice.d.ts +1 -0
- package/serialization/types/Voice.js +1 -0
- package/serialization/types/VoicePreviewResponseModel.d.ts +1 -0
- package/serialization/types/VoicePreviewResponseModel.js +1 -0
- package/serialization/types/index.d.ts +1 -1
- package/serialization/types/index.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/workspace/resources/members/client/requests/BodyDeleteMemberV1WorkspaceMembersDelete.d.ts +0 -13
- package/api/types/DeleteWorkspaceMemberResponseModel.d.ts +0 -7
- package/dist/api/resources/workspace/resources/members/client/requests/BodyDeleteMemberV1WorkspaceMembersDelete.d.ts +0 -13
- package/dist/api/types/DeleteWorkspaceMemberResponseModel.d.ts +0 -7
- package/dist/serialization/resources/workspace/resources/members/client/requests/BodyDeleteMemberV1WorkspaceMembersDelete.d.ts +0 -12
- package/dist/serialization/types/DeleteWorkspaceMemberResponseModel.d.ts +0 -12
- package/serialization/resources/workspace/resources/members/client/requests/BodyDeleteMemberV1WorkspaceMembersDelete.d.ts +0 -12
- package/serialization/types/DeleteWorkspaceMemberResponseModel.d.ts +0 -12
- /package/api/resources/{workspace/resources/members/client/requests/BodyDeleteMemberV1WorkspaceMembersDelete.js → conversationalAi/resources/tests/client/requests/CreateUnitTestRequest.js} +0 -0
- /package/api/{types/DeleteWorkspaceMemberResponseModel.js → resources/conversationalAi/resources/tests/client/requests/ListTestsByIdsRequestModel.js} +0 -0
- /package/{dist/api/resources/workspace/resources/members/client/requests/BodyDeleteMemberV1WorkspaceMembersDelete.js → api/resources/conversationalAi/resources/tests/client/requests/TestsListRequest.js} +0 -0
- /package/{dist/api/types/DeleteWorkspaceMemberResponseModel.js → api/resources/conversationalAi/resources/tests/client/requests/UpdateUnitTestRequest.js} +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as ElevenLabs from "../index";
|
|
4
5
|
export interface InvoiceResponse {
|
|
5
6
|
/** The amount due in cents. */
|
|
6
7
|
amountDueCents: number;
|
|
@@ -10,4 +11,6 @@ export interface InvoiceResponse {
|
|
|
10
11
|
discountAmountOff?: number;
|
|
11
12
|
/** The Unix timestamp of the next payment attempt. */
|
|
12
13
|
nextPaymentAttemptUnix: number;
|
|
14
|
+
/** The status of this invoice's payment intent. None when there is no payment intent. */
|
|
15
|
+
paymentIntentStatus?: ElevenLabs.InvoiceResponseModelPaymentIntentStatus;
|
|
13
16
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type InvoiceResponseModelPaymentIntentStatus = "canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method" | "succeeded";
|
|
5
|
+
export declare const InvoiceResponseModelPaymentIntentStatus: {
|
|
6
|
+
readonly Canceled: "canceled";
|
|
7
|
+
readonly Processing: "processing";
|
|
8
|
+
readonly RequiresAction: "requires_action";
|
|
9
|
+
readonly RequiresCapture: "requires_capture";
|
|
10
|
+
readonly RequiresConfirmation: "requires_confirmation";
|
|
11
|
+
readonly RequiresPaymentMethod: "requires_payment_method";
|
|
12
|
+
readonly Succeeded: "succeeded";
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.InvoiceResponseModelPaymentIntentStatus = void 0;
|
|
7
|
+
exports.InvoiceResponseModelPaymentIntentStatus = {
|
|
8
|
+
Canceled: "canceled",
|
|
9
|
+
Processing: "processing",
|
|
10
|
+
RequiresAction: "requires_action",
|
|
11
|
+
RequiresCapture: "requires_capture",
|
|
12
|
+
RequiresConfirmation: "requires_confirmation",
|
|
13
|
+
RequiresPaymentMethod: "requires_payment_method",
|
|
14
|
+
Succeeded: "succeeded",
|
|
15
|
+
};
|
|
@@ -45,6 +45,8 @@ export interface Subscription {
|
|
|
45
45
|
characterRefreshPeriod?: ElevenLabs.ExtendedSubscriptionResponseModelCharacterRefreshPeriod;
|
|
46
46
|
/** The next invoice for the user. */
|
|
47
47
|
nextInvoice?: ElevenLabs.InvoiceResponse;
|
|
48
|
+
/** The open invoices for the user. */
|
|
49
|
+
openInvoices: ElevenLabs.InvoiceResponse[];
|
|
48
50
|
/** Whether the user has open invoices. */
|
|
49
51
|
hasOpenInvoices: boolean;
|
|
50
52
|
/** The pending change for the user. */
|
|
@@ -4,4 +4,10 @@
|
|
|
4
4
|
export interface TtsConversationalConfigOverride {
|
|
5
5
|
/** The voice ID to use for TTS */
|
|
6
6
|
voiceId?: string;
|
|
7
|
+
/** The stability of generated speech */
|
|
8
|
+
stability?: number;
|
|
9
|
+
/** The speed of generated speech */
|
|
10
|
+
speed?: number;
|
|
11
|
+
/** The similarity boost for generated speech */
|
|
12
|
+
similarityBoost?: number;
|
|
7
13
|
}
|
|
@@ -4,4 +4,10 @@
|
|
|
4
4
|
export interface TtsConversationalConfigOverrideConfig {
|
|
5
5
|
/** Whether to allow overriding the voice_id field. */
|
|
6
6
|
voiceId?: boolean;
|
|
7
|
+
/** Whether to allow overriding the stability field. */
|
|
8
|
+
stability?: boolean;
|
|
9
|
+
/** Whether to allow overriding the speed field. */
|
|
10
|
+
speed?: boolean;
|
|
11
|
+
/** Whether to allow overriding the similarity_boost field. */
|
|
12
|
+
similarityBoost?: boolean;
|
|
7
13
|
}
|
package/api/types/Voice.d.ts
CHANGED
|
@@ -41,6 +41,8 @@ export interface Voice {
|
|
|
41
41
|
isLegacy?: boolean;
|
|
42
42
|
/** Whether the voice is mixed. */
|
|
43
43
|
isMixed?: boolean;
|
|
44
|
+
/** Timestamp when the voice was marked as favorite in Unix time. */
|
|
45
|
+
favoritedAtUnix?: number;
|
|
44
46
|
/** The creation time of the voice in Unix time. */
|
|
45
47
|
createdAtUnix?: number;
|
|
46
48
|
}
|
package/api/types/index.d.ts
CHANGED
|
@@ -190,7 +190,6 @@ export * from "./DeleteVoiceResponseModel";
|
|
|
190
190
|
export * from "./DeleteVoiceSampleResponseModel";
|
|
191
191
|
export * from "./DeleteWorkspaceGroupMemberResponseModel";
|
|
192
192
|
export * from "./DeleteWorkspaceInviteResponseModel";
|
|
193
|
-
export * from "./DeleteWorkspaceMemberResponseModel";
|
|
194
193
|
export * from "./DependentAvailableAgentIdentifierAccessLevel";
|
|
195
194
|
export * from "./DependentAvailableAgentIdentifier";
|
|
196
195
|
export * from "./DependentAvailableToolIdentifierAccessLevel";
|
|
@@ -294,6 +293,7 @@ export * from "./HtmlExportOptions";
|
|
|
294
293
|
export * from "./ImageAvatar";
|
|
295
294
|
export * from "./InboundSipTrunkConfigRequestModel";
|
|
296
295
|
export * from "./IntegrationType";
|
|
296
|
+
export * from "./InvoiceResponseModelPaymentIntentStatus";
|
|
297
297
|
export * from "./InvoiceResponse";
|
|
298
298
|
export * from "./KnowledgeBaseDocumentChunkResponseModel";
|
|
299
299
|
export * from "./KnowledgeBaseDocumentMetadataResponseModel";
|
package/api/types/index.js
CHANGED
|
@@ -206,7 +206,6 @@ __exportStar(require("./DeleteVoiceResponseModel"), exports);
|
|
|
206
206
|
__exportStar(require("./DeleteVoiceSampleResponseModel"), exports);
|
|
207
207
|
__exportStar(require("./DeleteWorkspaceGroupMemberResponseModel"), exports);
|
|
208
208
|
__exportStar(require("./DeleteWorkspaceInviteResponseModel"), exports);
|
|
209
|
-
__exportStar(require("./DeleteWorkspaceMemberResponseModel"), exports);
|
|
210
209
|
__exportStar(require("./DependentAvailableAgentIdentifierAccessLevel"), exports);
|
|
211
210
|
__exportStar(require("./DependentAvailableAgentIdentifier"), exports);
|
|
212
211
|
__exportStar(require("./DependentAvailableToolIdentifierAccessLevel"), exports);
|
|
@@ -310,6 +309,7 @@ __exportStar(require("./HtmlExportOptions"), exports);
|
|
|
310
309
|
__exportStar(require("./ImageAvatar"), exports);
|
|
311
310
|
__exportStar(require("./InboundSipTrunkConfigRequestModel"), exports);
|
|
312
311
|
__exportStar(require("./IntegrationType"), exports);
|
|
312
|
+
__exportStar(require("./InvoiceResponseModelPaymentIntentStatus"), exports);
|
|
313
313
|
__exportStar(require("./InvoiceResponse"), exports);
|
|
314
314
|
__exportStar(require("./KnowledgeBaseDocumentChunkResponseModel"), exports);
|
|
315
315
|
__exportStar(require("./KnowledgeBaseDocumentMetadataResponseModel"), exports);
|
package/dist/Client.js
CHANGED
|
@@ -79,8 +79,8 @@ class ElevenLabsClient {
|
|
|
79
79
|
"xi-api-key": _options === null || _options === void 0 ? void 0 : _options.apiKey,
|
|
80
80
|
"X-Fern-Language": "JavaScript",
|
|
81
81
|
"X-Fern-SDK-Name": "@elevenlabs/elevenlabs-js",
|
|
82
|
-
"X-Fern-SDK-Version": "v2.
|
|
83
|
-
"User-Agent": "@elevenlabs/elevenlabs-js/v2.
|
|
82
|
+
"X-Fern-SDK-Version": "v2.13.0",
|
|
83
|
+
"User-Agent": "@elevenlabs/elevenlabs-js/v2.13.0",
|
|
84
84
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
85
85
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
86
86
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
import * as ElevenLabs from "../../../../../index";
|
|
7
|
+
import { Invocations } from "../resources/invocations/client/Client";
|
|
8
|
+
export declare namespace Tests {
|
|
9
|
+
interface Options {
|
|
10
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
11
|
+
/** Specify a custom URL to connect the client to. */
|
|
12
|
+
baseUrl?: core.Supplier<string>;
|
|
13
|
+
/** Override the xi-api-key header */
|
|
14
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
15
|
+
/** Additional headers to include in requests. */
|
|
16
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
17
|
+
}
|
|
18
|
+
interface RequestOptions {
|
|
19
|
+
/** The maximum time to wait for a response in seconds. */
|
|
20
|
+
timeoutInSeconds?: number;
|
|
21
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
22
|
+
maxRetries?: number;
|
|
23
|
+
/** A hook to abort the request. */
|
|
24
|
+
abortSignal?: AbortSignal;
|
|
25
|
+
/** Override the xi-api-key header */
|
|
26
|
+
apiKey?: string | undefined;
|
|
27
|
+
/** Additional headers to include in the request. */
|
|
28
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export declare class Tests {
|
|
32
|
+
protected readonly _options: Tests.Options;
|
|
33
|
+
protected _invocations: Invocations | undefined;
|
|
34
|
+
constructor(_options?: Tests.Options);
|
|
35
|
+
get invocations(): Invocations;
|
|
36
|
+
/**
|
|
37
|
+
* Creates a new agent response test.
|
|
38
|
+
*
|
|
39
|
+
* @param {ElevenLabs.conversationalAi.CreateUnitTestRequest} request
|
|
40
|
+
* @param {Tests.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
|
+
*
|
|
42
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* await client.conversationalAi.tests.create({
|
|
46
|
+
* chatHistory: [{
|
|
47
|
+
* role: "user",
|
|
48
|
+
* timeInCallSecs: 1
|
|
49
|
+
* }],
|
|
50
|
+
* successCondition: "success_condition",
|
|
51
|
+
* successExamples: [{
|
|
52
|
+
* response: "response",
|
|
53
|
+
* type: "success"
|
|
54
|
+
* }],
|
|
55
|
+
* failureExamples: [{
|
|
56
|
+
* response: "response",
|
|
57
|
+
* type: "failure"
|
|
58
|
+
* }],
|
|
59
|
+
* name: "name"
|
|
60
|
+
* })
|
|
61
|
+
*/
|
|
62
|
+
create(request: ElevenLabs.conversationalAi.CreateUnitTestRequest, requestOptions?: Tests.RequestOptions): core.HttpResponsePromise<ElevenLabs.CreateUnitTestResponseModel>;
|
|
63
|
+
private __create;
|
|
64
|
+
/**
|
|
65
|
+
* Gets an agent response test by ID.
|
|
66
|
+
*
|
|
67
|
+
* @param {string} testId - The id of a chat response test. This is returned on test creation.
|
|
68
|
+
* @param {Tests.RequestOptions} requestOptions - Request-specific configuration.
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* await client.conversationalAi.tests.get("TeaqRRdTcIfIu2i7BYfT")
|
|
74
|
+
*/
|
|
75
|
+
get(testId: string, requestOptions?: Tests.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetUnitTestResponseModel>;
|
|
76
|
+
private __get;
|
|
77
|
+
/**
|
|
78
|
+
* Updates an agent response test by ID.
|
|
79
|
+
*
|
|
80
|
+
* @param {string} testId - The id of a chat response test. This is returned on test creation.
|
|
81
|
+
* @param {ElevenLabs.conversationalAi.UpdateUnitTestRequest} request
|
|
82
|
+
* @param {Tests.RequestOptions} requestOptions - Request-specific configuration.
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* await client.conversationalAi.tests.update("TeaqRRdTcIfIu2i7BYfT", {
|
|
88
|
+
* chatHistory: [{
|
|
89
|
+
* role: "user",
|
|
90
|
+
* timeInCallSecs: 1
|
|
91
|
+
* }],
|
|
92
|
+
* successCondition: "success_condition",
|
|
93
|
+
* successExamples: [{
|
|
94
|
+
* response: "response",
|
|
95
|
+
* type: "success"
|
|
96
|
+
* }],
|
|
97
|
+
* failureExamples: [{
|
|
98
|
+
* response: "response",
|
|
99
|
+
* type: "failure"
|
|
100
|
+
* }],
|
|
101
|
+
* name: "name"
|
|
102
|
+
* })
|
|
103
|
+
*/
|
|
104
|
+
update(testId: string, request: ElevenLabs.conversationalAi.UpdateUnitTestRequest, requestOptions?: Tests.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetUnitTestResponseModel>;
|
|
105
|
+
private __update;
|
|
106
|
+
/**
|
|
107
|
+
* Deletes an agent response test by ID.
|
|
108
|
+
*
|
|
109
|
+
* @param {string} testId - The id of a chat response test. This is returned on test creation.
|
|
110
|
+
* @param {Tests.RequestOptions} requestOptions - Request-specific configuration.
|
|
111
|
+
*
|
|
112
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* await client.conversationalAi.tests.delete("TeaqRRdTcIfIu2i7BYfT")
|
|
116
|
+
*/
|
|
117
|
+
delete(testId: string, requestOptions?: Tests.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
118
|
+
private __delete;
|
|
119
|
+
/**
|
|
120
|
+
* Gets multiple agent response tests by their IDs. Returns a dictionary mapping test IDs to test summaries.
|
|
121
|
+
*
|
|
122
|
+
* @param {ElevenLabs.conversationalAi.ListTestsByIdsRequestModel} request
|
|
123
|
+
* @param {Tests.RequestOptions} requestOptions - Request-specific configuration.
|
|
124
|
+
*
|
|
125
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
126
|
+
*
|
|
127
|
+
* @example
|
|
128
|
+
* await client.conversationalAi.tests.summaries({
|
|
129
|
+
* testIds: ["test_id_1", "test_id_2"]
|
|
130
|
+
* })
|
|
131
|
+
*/
|
|
132
|
+
summaries(request: ElevenLabs.conversationalAi.ListTestsByIdsRequestModel, requestOptions?: Tests.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetTestsSummariesByIdsResponseModel>;
|
|
133
|
+
private __summaries;
|
|
134
|
+
/**
|
|
135
|
+
* Lists all agent response tests with pagination support and optional search filtering.
|
|
136
|
+
*
|
|
137
|
+
* @param {ElevenLabs.conversationalAi.TestsListRequest} request
|
|
138
|
+
* @param {Tests.RequestOptions} requestOptions - Request-specific configuration.
|
|
139
|
+
*
|
|
140
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* await client.conversationalAi.tests.list()
|
|
144
|
+
*/
|
|
145
|
+
list(request?: ElevenLabs.conversationalAi.TestsListRequest, requestOptions?: Tests.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetTestsPageResponseModel>;
|
|
146
|
+
private __list;
|
|
147
|
+
}
|