@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
package/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
|
+
}
|