@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
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as ElevenLabs from "../../../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* chatHistory: [{
|
|
9
|
+
* role: "user",
|
|
10
|
+
* timeInCallSecs: 1
|
|
11
|
+
* }],
|
|
12
|
+
* successCondition: "success_condition",
|
|
13
|
+
* successExamples: [{
|
|
14
|
+
* response: "response",
|
|
15
|
+
* type: "success"
|
|
16
|
+
* }],
|
|
17
|
+
* failureExamples: [{
|
|
18
|
+
* response: "response",
|
|
19
|
+
* type: "failure"
|
|
20
|
+
* }],
|
|
21
|
+
* name: "name"
|
|
22
|
+
* }
|
|
23
|
+
*/
|
|
24
|
+
export interface UpdateUnitTestRequest {
|
|
25
|
+
chatHistory: ElevenLabs.ConversationHistoryTranscriptCommonModelInput[];
|
|
26
|
+
/** A prompt that evaluates whether the agent's response is successful. Should return True or False. */
|
|
27
|
+
successCondition: string;
|
|
28
|
+
/** Non-empty list of example responses that should be considered successful */
|
|
29
|
+
successExamples: ElevenLabs.AgentSuccessfulResponseExample[];
|
|
30
|
+
/** Non-empty list of example responses that should be considered failures */
|
|
31
|
+
failureExamples: ElevenLabs.AgentFailureResponseExample[];
|
|
32
|
+
/** How to evaluate the agent's tool call (if any). If empty, the tool call is not evaluated. */
|
|
33
|
+
toolCallParameters?: ElevenLabs.UnitTestToolCallEvaluationModelInput;
|
|
34
|
+
/** Dynamic variables to replace in the agent config during testing */
|
|
35
|
+
dynamicVariables?: Record<string, ElevenLabs.conversationalAi.UpdateUnitTestRequestDynamicVariablesValue | undefined>;
|
|
36
|
+
name: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { type CreateUnitTestRequest } from "./CreateUnitTestRequest";
|
|
2
|
+
export { type UpdateUnitTestRequest } from "./UpdateUnitTestRequest";
|
|
3
|
+
export { type ListTestsByIdsRequestModel } from "./ListTestsByIdsRequestModel";
|
|
4
|
+
export { type TestsListRequest } from "./TestsListRequest";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
19
|
+
__exportStar(require("./resources"), exports);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.invocations = void 0;
|
|
40
|
+
exports.invocations = __importStar(require("./invocations"));
|
|
41
|
+
__exportStar(require("./invocations/client/requests"), exports);
|
package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.d.ts
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
export declare namespace Invocations {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.ElevenLabsEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
/** Override the xi-api-key header */
|
|
13
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
14
|
+
/** Additional headers to include in requests. */
|
|
15
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
16
|
+
}
|
|
17
|
+
interface RequestOptions {
|
|
18
|
+
/** The maximum time to wait for a response in seconds. */
|
|
19
|
+
timeoutInSeconds?: number;
|
|
20
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
21
|
+
maxRetries?: number;
|
|
22
|
+
/** A hook to abort the request. */
|
|
23
|
+
abortSignal?: AbortSignal;
|
|
24
|
+
/** Override the xi-api-key header */
|
|
25
|
+
apiKey?: string | undefined;
|
|
26
|
+
/** Additional headers to include in the request. */
|
|
27
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export declare class Invocations {
|
|
31
|
+
protected readonly _options: Invocations.Options;
|
|
32
|
+
constructor(_options?: Invocations.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Gets a test invocation by ID.
|
|
35
|
+
*
|
|
36
|
+
* @param {string} testInvocationId - The id of a test invocation. This is returned when tests are run.
|
|
37
|
+
* @param {Invocations.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
+
*
|
|
39
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.conversationalAi.tests.invocations.get("test_invocation_id")
|
|
43
|
+
*/
|
|
44
|
+
get(testInvocationId: string, requestOptions?: Invocations.RequestOptions): core.HttpResponsePromise<ElevenLabs.GetTestSuiteInvocationResponseModel>;
|
|
45
|
+
private __get;
|
|
46
|
+
/**
|
|
47
|
+
* Resubmits specific test runs from a test invocation.
|
|
48
|
+
*
|
|
49
|
+
* @param {string} testInvocationId - The id of a test invocation. This is returned when tests are run.
|
|
50
|
+
* @param {ElevenLabs.conversationalAi.tests.ResubmitTestsRequestModel} request
|
|
51
|
+
* @param {Invocations.RequestOptions} requestOptions - Request-specific configuration.
|
|
52
|
+
*
|
|
53
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* await client.conversationalAi.tests.invocations.resubmit("test_invocation_id", {
|
|
57
|
+
* testRunIds: ["test_run_ids"],
|
|
58
|
+
* agentId: "agent_id"
|
|
59
|
+
* })
|
|
60
|
+
*/
|
|
61
|
+
resubmit(testInvocationId: string, request: ElevenLabs.conversationalAi.tests.ResubmitTestsRequestModel, requestOptions?: Invocations.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
62
|
+
private __resubmit;
|
|
63
|
+
}
|
package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/Client.js
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
+
exports.Invocations = void 0;
|
|
49
|
+
const environments = __importStar(require("../../../../../../../../environments"));
|
|
50
|
+
const core = __importStar(require("../../../../../../../../core"));
|
|
51
|
+
const ElevenLabs = __importStar(require("../../../../../../../index"));
|
|
52
|
+
const headers_1 = require("../../../../../../../../core/headers");
|
|
53
|
+
const serializers = __importStar(require("../../../../../../../../serialization/index"));
|
|
54
|
+
const errors = __importStar(require("../../../../../../../../errors/index"));
|
|
55
|
+
class Invocations {
|
|
56
|
+
constructor(_options = {}) {
|
|
57
|
+
this._options = _options;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Gets a test invocation by ID.
|
|
61
|
+
*
|
|
62
|
+
* @param {string} testInvocationId - The id of a test invocation. This is returned when tests are run.
|
|
63
|
+
* @param {Invocations.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* await client.conversationalAi.tests.invocations.get("test_invocation_id")
|
|
69
|
+
*/
|
|
70
|
+
get(testInvocationId, requestOptions) {
|
|
71
|
+
return core.HttpResponsePromise.fromPromise(this.__get(testInvocationId, requestOptions));
|
|
72
|
+
}
|
|
73
|
+
__get(testInvocationId, requestOptions) {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
var _a, _b, _c;
|
|
76
|
+
const _response = yield core.fetcher({
|
|
77
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/test-invocations/${encodeURIComponent(testInvocationId)}`),
|
|
78
|
+
method: "GET",
|
|
79
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
80
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
81
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
82
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
83
|
+
});
|
|
84
|
+
if (_response.ok) {
|
|
85
|
+
return {
|
|
86
|
+
data: serializers.GetTestSuiteInvocationResponseModel.parseOrThrow(_response.body, {
|
|
87
|
+
unrecognizedObjectKeys: "passthrough",
|
|
88
|
+
allowUnrecognizedUnionMembers: true,
|
|
89
|
+
allowUnrecognizedEnumValues: true,
|
|
90
|
+
breadcrumbsPrefix: ["response"],
|
|
91
|
+
}),
|
|
92
|
+
rawResponse: _response.rawResponse,
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
if (_response.error.reason === "status-code") {
|
|
96
|
+
switch (_response.error.statusCode) {
|
|
97
|
+
case 422:
|
|
98
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
99
|
+
unrecognizedObjectKeys: "passthrough",
|
|
100
|
+
allowUnrecognizedUnionMembers: true,
|
|
101
|
+
allowUnrecognizedEnumValues: true,
|
|
102
|
+
breadcrumbsPrefix: ["response"],
|
|
103
|
+
}), _response.rawResponse);
|
|
104
|
+
default:
|
|
105
|
+
throw new errors.ElevenLabsError({
|
|
106
|
+
statusCode: _response.error.statusCode,
|
|
107
|
+
body: _response.error.body,
|
|
108
|
+
rawResponse: _response.rawResponse,
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
switch (_response.error.reason) {
|
|
113
|
+
case "non-json":
|
|
114
|
+
throw new errors.ElevenLabsError({
|
|
115
|
+
statusCode: _response.error.statusCode,
|
|
116
|
+
body: _response.error.rawBody,
|
|
117
|
+
rawResponse: _response.rawResponse,
|
|
118
|
+
});
|
|
119
|
+
case "timeout":
|
|
120
|
+
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling GET /v1/convai/test-invocations/{test_invocation_id}.");
|
|
121
|
+
case "unknown":
|
|
122
|
+
throw new errors.ElevenLabsError({
|
|
123
|
+
message: _response.error.errorMessage,
|
|
124
|
+
rawResponse: _response.rawResponse,
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Resubmits specific test runs from a test invocation.
|
|
131
|
+
*
|
|
132
|
+
* @param {string} testInvocationId - The id of a test invocation. This is returned when tests are run.
|
|
133
|
+
* @param {ElevenLabs.conversationalAi.tests.ResubmitTestsRequestModel} request
|
|
134
|
+
* @param {Invocations.RequestOptions} requestOptions - Request-specific configuration.
|
|
135
|
+
*
|
|
136
|
+
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* await client.conversationalAi.tests.invocations.resubmit("test_invocation_id", {
|
|
140
|
+
* testRunIds: ["test_run_ids"],
|
|
141
|
+
* agentId: "agent_id"
|
|
142
|
+
* })
|
|
143
|
+
*/
|
|
144
|
+
resubmit(testInvocationId, request, requestOptions) {
|
|
145
|
+
return core.HttpResponsePromise.fromPromise(this.__resubmit(testInvocationId, request, requestOptions));
|
|
146
|
+
}
|
|
147
|
+
__resubmit(testInvocationId, request, requestOptions) {
|
|
148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
149
|
+
var _a, _b, _c;
|
|
150
|
+
const _response = yield core.fetcher({
|
|
151
|
+
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/convai/test-invocations/${encodeURIComponent(testInvocationId)}/resubmit`),
|
|
152
|
+
method: "POST",
|
|
153
|
+
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
154
|
+
contentType: "application/json",
|
|
155
|
+
requestType: "json",
|
|
156
|
+
body: serializers.conversationalAi.tests.ResubmitTestsRequestModel.jsonOrThrow(request, {
|
|
157
|
+
unrecognizedObjectKeys: "strip",
|
|
158
|
+
}),
|
|
159
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
160
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
161
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
162
|
+
});
|
|
163
|
+
if (_response.ok) {
|
|
164
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
165
|
+
}
|
|
166
|
+
if (_response.error.reason === "status-code") {
|
|
167
|
+
switch (_response.error.statusCode) {
|
|
168
|
+
case 422:
|
|
169
|
+
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
170
|
+
unrecognizedObjectKeys: "passthrough",
|
|
171
|
+
allowUnrecognizedUnionMembers: true,
|
|
172
|
+
allowUnrecognizedEnumValues: true,
|
|
173
|
+
breadcrumbsPrefix: ["response"],
|
|
174
|
+
}), _response.rawResponse);
|
|
175
|
+
default:
|
|
176
|
+
throw new errors.ElevenLabsError({
|
|
177
|
+
statusCode: _response.error.statusCode,
|
|
178
|
+
body: _response.error.body,
|
|
179
|
+
rawResponse: _response.rawResponse,
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
switch (_response.error.reason) {
|
|
184
|
+
case "non-json":
|
|
185
|
+
throw new errors.ElevenLabsError({
|
|
186
|
+
statusCode: _response.error.statusCode,
|
|
187
|
+
body: _response.error.rawBody,
|
|
188
|
+
rawResponse: _response.rawResponse,
|
|
189
|
+
});
|
|
190
|
+
case "timeout":
|
|
191
|
+
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling POST /v1/convai/test-invocations/{test_invocation_id}/resubmit.");
|
|
192
|
+
case "unknown":
|
|
193
|
+
throw new errors.ElevenLabsError({
|
|
194
|
+
message: _response.error.errorMessage,
|
|
195
|
+
rawResponse: _response.rawResponse,
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
exports.Invocations = Invocations;
|
package/dist/api/resources/conversationalAi/resources/tests/resources/invocations/client/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as ElevenLabs from "../../../../../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* testRunIds: ["test_run_ids"],
|
|
9
|
+
* agentId: "agent_id"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface ResubmitTestsRequestModel {
|
|
13
|
+
/** List of test run IDs to resubmit */
|
|
14
|
+
testRunIds: string[];
|
|
15
|
+
/** Configuration overrides to use for testing. If not provided, the agent's default configuration will be used. */
|
|
16
|
+
agentConfigOverride?: ElevenLabs.AdhocAgentConfigOverrideForTestRequestModel;
|
|
17
|
+
/** Agent ID to resubmit tests for */
|
|
18
|
+
agentId: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type ResubmitTestsRequestModel } from "./ResubmitTestsRequestModel";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./CreateUnitTestRequestDynamicVariablesValue"), exports);
|
|
18
|
+
__exportStar(require("./UpdateUnitTestRequestDynamicVariablesValue"), exports);
|
|
@@ -44,6 +44,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
44
44
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
48
|
+
var t = {};
|
|
49
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
50
|
+
t[p] = s[p];
|
|
51
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
52
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
53
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
54
|
+
t[p[i]] = s[p[i]];
|
|
55
|
+
}
|
|
56
|
+
return t;
|
|
57
|
+
};
|
|
47
58
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
59
|
exports.Resource = void 0;
|
|
49
60
|
const environments = __importStar(require("../../../../../../environments"));
|
|
@@ -390,13 +401,19 @@ class Resource {
|
|
|
390
401
|
__render(dubbingId, language, request, requestOptions) {
|
|
391
402
|
return __awaiter(this, void 0, void 0, function* () {
|
|
392
403
|
var _a, _b, _c;
|
|
404
|
+
const { shouldNormalizeVolume } = request, _body = __rest(request, ["shouldNormalizeVolume"]);
|
|
405
|
+
const _queryParams = {};
|
|
406
|
+
if (shouldNormalizeVolume != null) {
|
|
407
|
+
_queryParams["should_normalize_volume"] = shouldNormalizeVolume.toString();
|
|
408
|
+
}
|
|
393
409
|
const _response = yield core.fetcher({
|
|
394
410
|
url: core.url.join((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.ElevenLabsEnvironment.Production, `v1/dubbing/resource/${encodeURIComponent(dubbingId)}/render/${encodeURIComponent(language)}`),
|
|
395
411
|
method: "POST",
|
|
396
412
|
headers: (0, headers_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ "xi-api-key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
397
413
|
contentType: "application/json",
|
|
414
|
+
queryParameters: _queryParams,
|
|
398
415
|
requestType: "json",
|
|
399
|
-
body: serializers.dubbing.BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost.jsonOrThrow(
|
|
416
|
+
body: serializers.dubbing.BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
400
417
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
401
418
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
402
419
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -9,6 +9,10 @@ import * as ElevenLabs from "../../../../../../index";
|
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
11
|
export interface BodyRenderAudioOrVideoForTheGivenLanguageV1DubbingResourceDubbingIdRenderLanguagePost {
|
|
12
|
+
/**
|
|
13
|
+
* Whether to normalize the volume of the rendered audio.
|
|
14
|
+
*/
|
|
15
|
+
shouldNormalizeVolume?: boolean;
|
|
12
16
|
/** The type of the render. One of ['mp4', 'aac', 'mp3', 'wav', 'aaf', 'tracks_zip', 'clips_zip'] */
|
|
13
17
|
renderType: ElevenLabs.RenderType;
|
|
14
18
|
}
|
|
@@ -15,6 +15,8 @@ export interface CreateSoundEffectRequest {
|
|
|
15
15
|
outputFormat?: ElevenLabs.TextToSoundEffectsConvertRequestOutputFormat;
|
|
16
16
|
/** The text that will get converted into a sound effect. */
|
|
17
17
|
text: string;
|
|
18
|
+
/** Whether to create a sound effect that loops smoothly. */
|
|
19
|
+
loop?: boolean;
|
|
18
20
|
/** The duration of the sound which will be generated in seconds. Must be at least 0.5 and at most 30. If set to None we will guess the optimal duration using the prompt. Defaults to None. */
|
|
19
21
|
durationSeconds?: number;
|
|
20
22
|
/** A higher prompt influence makes your generation follow the prompt more closely while also making generations less variable. Must be a value between 0 and 1. Defaults to 0.3. */
|
|
@@ -45,19 +45,4 @@ export declare class Members {
|
|
|
45
45
|
*/
|
|
46
46
|
update(request: ElevenLabs.workspace.UpdateMemberRequest, requestOptions?: Members.RequestOptions): core.HttpResponsePromise<ElevenLabs.UpdateWorkspaceMemberResponseModel>;
|
|
47
47
|
private __update;
|
|
48
|
-
/**
|
|
49
|
-
* Deletes a workspace member. This endpoint may only be called by workspace administrators.
|
|
50
|
-
*
|
|
51
|
-
* @param {ElevenLabs.workspace.BodyDeleteMemberV1WorkspaceMembersDelete} request
|
|
52
|
-
* @param {Members.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
|
-
*
|
|
54
|
-
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* await client.workspace.members.delete({
|
|
58
|
-
* email: "email"
|
|
59
|
-
* })
|
|
60
|
-
*/
|
|
61
|
-
delete(request: ElevenLabs.workspace.BodyDeleteMemberV1WorkspaceMembersDelete, requestOptions?: Members.RequestOptions): core.HttpResponsePromise<ElevenLabs.DeleteWorkspaceMemberResponseModel>;
|
|
62
|
-
private __delete;
|
|
63
48
|
}
|