@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
|
@@ -131,82 +131,5 @@ class Members {
|
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
-
/**
|
|
135
|
-
* Deletes a workspace member. This endpoint may only be called by workspace administrators.
|
|
136
|
-
*
|
|
137
|
-
* @param {ElevenLabs.workspace.BodyDeleteMemberV1WorkspaceMembersDelete} request
|
|
138
|
-
* @param {Members.RequestOptions} requestOptions - Request-specific configuration.
|
|
139
|
-
*
|
|
140
|
-
* @throws {@link ElevenLabs.UnprocessableEntityError}
|
|
141
|
-
*
|
|
142
|
-
* @example
|
|
143
|
-
* await client.workspace.members.delete({
|
|
144
|
-
* email: "email"
|
|
145
|
-
* })
|
|
146
|
-
*/
|
|
147
|
-
delete(request, requestOptions) {
|
|
148
|
-
return core.HttpResponsePromise.fromPromise(this.__delete(request, requestOptions));
|
|
149
|
-
}
|
|
150
|
-
__delete(request, requestOptions) {
|
|
151
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
152
|
-
var _a, _b, _c;
|
|
153
|
-
const _response = yield core.fetcher({
|
|
154
|
-
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/workspace/members"),
|
|
155
|
-
method: "DELETE",
|
|
156
|
-
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),
|
|
157
|
-
contentType: "application/json",
|
|
158
|
-
requestType: "json",
|
|
159
|
-
body: serializers.workspace.BodyDeleteMemberV1WorkspaceMembersDelete.jsonOrThrow(request, {
|
|
160
|
-
unrecognizedObjectKeys: "strip",
|
|
161
|
-
}),
|
|
162
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 240000,
|
|
163
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
164
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
165
|
-
});
|
|
166
|
-
if (_response.ok) {
|
|
167
|
-
return {
|
|
168
|
-
data: serializers.DeleteWorkspaceMemberResponseModel.parseOrThrow(_response.body, {
|
|
169
|
-
unrecognizedObjectKeys: "passthrough",
|
|
170
|
-
allowUnrecognizedUnionMembers: true,
|
|
171
|
-
allowUnrecognizedEnumValues: true,
|
|
172
|
-
breadcrumbsPrefix: ["response"],
|
|
173
|
-
}),
|
|
174
|
-
rawResponse: _response.rawResponse,
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
if (_response.error.reason === "status-code") {
|
|
178
|
-
switch (_response.error.statusCode) {
|
|
179
|
-
case 422:
|
|
180
|
-
throw new ElevenLabs.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
181
|
-
unrecognizedObjectKeys: "passthrough",
|
|
182
|
-
allowUnrecognizedUnionMembers: true,
|
|
183
|
-
allowUnrecognizedEnumValues: true,
|
|
184
|
-
breadcrumbsPrefix: ["response"],
|
|
185
|
-
}), _response.rawResponse);
|
|
186
|
-
default:
|
|
187
|
-
throw new errors.ElevenLabsError({
|
|
188
|
-
statusCode: _response.error.statusCode,
|
|
189
|
-
body: _response.error.body,
|
|
190
|
-
rawResponse: _response.rawResponse,
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
switch (_response.error.reason) {
|
|
195
|
-
case "non-json":
|
|
196
|
-
throw new errors.ElevenLabsError({
|
|
197
|
-
statusCode: _response.error.statusCode,
|
|
198
|
-
body: _response.error.rawBody,
|
|
199
|
-
rawResponse: _response.rawResponse,
|
|
200
|
-
});
|
|
201
|
-
case "timeout":
|
|
202
|
-
throw new errors.ElevenLabsTimeoutError("Timeout exceeded when calling DELETE /v1/workspace/members.");
|
|
203
|
-
case "unknown":
|
|
204
|
-
throw new errors.ElevenLabsError({
|
|
205
|
-
message: _response.error.errorMessage,
|
|
206
|
-
rawResponse: _response.rawResponse,
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
134
|
}
|
|
212
135
|
exports.Members = Members;
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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/dist/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);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -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,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../../index";
|
|
5
|
+
import * as ElevenLabs from "../../../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../../../core";
|
|
7
|
+
import { ConversationHistoryTranscriptCommonModelInput } from "../../../../../../types/ConversationHistoryTranscriptCommonModelInput";
|
|
8
|
+
import { AgentSuccessfulResponseExample } from "../../../../../../types/AgentSuccessfulResponseExample";
|
|
9
|
+
import { AgentFailureResponseExample } from "../../../../../../types/AgentFailureResponseExample";
|
|
10
|
+
import { UnitTestToolCallEvaluationModelInput } from "../../../../../../types/UnitTestToolCallEvaluationModelInput";
|
|
11
|
+
import { CreateUnitTestRequestDynamicVariablesValue } from "../../types/CreateUnitTestRequestDynamicVariablesValue";
|
|
12
|
+
export declare const CreateUnitTestRequest: core.serialization.Schema<serializers.conversationalAi.CreateUnitTestRequest.Raw, ElevenLabs.conversationalAi.CreateUnitTestRequest>;
|
|
13
|
+
export declare namespace CreateUnitTestRequest {
|
|
14
|
+
interface Raw {
|
|
15
|
+
chat_history: ConversationHistoryTranscriptCommonModelInput.Raw[];
|
|
16
|
+
success_condition: string;
|
|
17
|
+
success_examples: AgentSuccessfulResponseExample.Raw[];
|
|
18
|
+
failure_examples: AgentFailureResponseExample.Raw[];
|
|
19
|
+
tool_call_parameters?: UnitTestToolCallEvaluationModelInput.Raw | null;
|
|
20
|
+
dynamic_variables?: Record<string, CreateUnitTestRequestDynamicVariablesValue.Raw | null | undefined> | null;
|
|
21
|
+
name: string;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.CreateUnitTestRequest = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../../../core"));
|
|
41
|
+
const ConversationHistoryTranscriptCommonModelInput_1 = require("../../../../../../types/ConversationHistoryTranscriptCommonModelInput");
|
|
42
|
+
const AgentSuccessfulResponseExample_1 = require("../../../../../../types/AgentSuccessfulResponseExample");
|
|
43
|
+
const AgentFailureResponseExample_1 = require("../../../../../../types/AgentFailureResponseExample");
|
|
44
|
+
const UnitTestToolCallEvaluationModelInput_1 = require("../../../../../../types/UnitTestToolCallEvaluationModelInput");
|
|
45
|
+
const CreateUnitTestRequestDynamicVariablesValue_1 = require("../../types/CreateUnitTestRequestDynamicVariablesValue");
|
|
46
|
+
exports.CreateUnitTestRequest = core.serialization.object({
|
|
47
|
+
chatHistory: core.serialization.property("chat_history", core.serialization.list(ConversationHistoryTranscriptCommonModelInput_1.ConversationHistoryTranscriptCommonModelInput)),
|
|
48
|
+
successCondition: core.serialization.property("success_condition", core.serialization.string()),
|
|
49
|
+
successExamples: core.serialization.property("success_examples", core.serialization.list(AgentSuccessfulResponseExample_1.AgentSuccessfulResponseExample)),
|
|
50
|
+
failureExamples: core.serialization.property("failure_examples", core.serialization.list(AgentFailureResponseExample_1.AgentFailureResponseExample)),
|
|
51
|
+
toolCallParameters: core.serialization.property("tool_call_parameters", UnitTestToolCallEvaluationModelInput_1.UnitTestToolCallEvaluationModelInput.optional()),
|
|
52
|
+
dynamicVariables: core.serialization.property("dynamic_variables", core.serialization
|
|
53
|
+
.record(core.serialization.string(), CreateUnitTestRequestDynamicVariablesValue_1.CreateUnitTestRequestDynamicVariablesValue.optional())
|
|
54
|
+
.optional()),
|
|
55
|
+
name: core.serialization.string(),
|
|
56
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../../index";
|
|
5
|
+
import * as ElevenLabs from "../../../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../../../core";
|
|
7
|
+
export declare const ListTestsByIdsRequestModel: core.serialization.Schema<serializers.conversationalAi.ListTestsByIdsRequestModel.Raw, ElevenLabs.conversationalAi.ListTestsByIdsRequestModel>;
|
|
8
|
+
export declare namespace ListTestsByIdsRequestModel {
|
|
9
|
+
interface Raw {
|
|
10
|
+
test_ids: string[];
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -36,8 +36,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.ListTestsByIdsRequestModel = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../../../../core"));
|
|
41
|
-
exports.
|
|
42
|
-
|
|
41
|
+
exports.ListTestsByIdsRequestModel = core.serialization.object({
|
|
42
|
+
testIds: core.serialization.property("test_ids", core.serialization.list(core.serialization.string())),
|
|
43
43
|
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../../index";
|
|
5
|
+
import * as ElevenLabs from "../../../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../../../core";
|
|
7
|
+
import { ConversationHistoryTranscriptCommonModelInput } from "../../../../../../types/ConversationHistoryTranscriptCommonModelInput";
|
|
8
|
+
import { AgentSuccessfulResponseExample } from "../../../../../../types/AgentSuccessfulResponseExample";
|
|
9
|
+
import { AgentFailureResponseExample } from "../../../../../../types/AgentFailureResponseExample";
|
|
10
|
+
import { UnitTestToolCallEvaluationModelInput } from "../../../../../../types/UnitTestToolCallEvaluationModelInput";
|
|
11
|
+
import { UpdateUnitTestRequestDynamicVariablesValue } from "../../types/UpdateUnitTestRequestDynamicVariablesValue";
|
|
12
|
+
export declare const UpdateUnitTestRequest: core.serialization.Schema<serializers.conversationalAi.UpdateUnitTestRequest.Raw, ElevenLabs.conversationalAi.UpdateUnitTestRequest>;
|
|
13
|
+
export declare namespace UpdateUnitTestRequest {
|
|
14
|
+
interface Raw {
|
|
15
|
+
chat_history: ConversationHistoryTranscriptCommonModelInput.Raw[];
|
|
16
|
+
success_condition: string;
|
|
17
|
+
success_examples: AgentSuccessfulResponseExample.Raw[];
|
|
18
|
+
failure_examples: AgentFailureResponseExample.Raw[];
|
|
19
|
+
tool_call_parameters?: UnitTestToolCallEvaluationModelInput.Raw | null;
|
|
20
|
+
dynamic_variables?: Record<string, UpdateUnitTestRequestDynamicVariablesValue.Raw | null | undefined> | null;
|
|
21
|
+
name: string;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.UpdateUnitTestRequest = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../../../core"));
|
|
41
|
+
const ConversationHistoryTranscriptCommonModelInput_1 = require("../../../../../../types/ConversationHistoryTranscriptCommonModelInput");
|
|
42
|
+
const AgentSuccessfulResponseExample_1 = require("../../../../../../types/AgentSuccessfulResponseExample");
|
|
43
|
+
const AgentFailureResponseExample_1 = require("../../../../../../types/AgentFailureResponseExample");
|
|
44
|
+
const UnitTestToolCallEvaluationModelInput_1 = require("../../../../../../types/UnitTestToolCallEvaluationModelInput");
|
|
45
|
+
const UpdateUnitTestRequestDynamicVariablesValue_1 = require("../../types/UpdateUnitTestRequestDynamicVariablesValue");
|
|
46
|
+
exports.UpdateUnitTestRequest = core.serialization.object({
|
|
47
|
+
chatHistory: core.serialization.property("chat_history", core.serialization.list(ConversationHistoryTranscriptCommonModelInput_1.ConversationHistoryTranscriptCommonModelInput)),
|
|
48
|
+
successCondition: core.serialization.property("success_condition", core.serialization.string()),
|
|
49
|
+
successExamples: core.serialization.property("success_examples", core.serialization.list(AgentSuccessfulResponseExample_1.AgentSuccessfulResponseExample)),
|
|
50
|
+
failureExamples: core.serialization.property("failure_examples", core.serialization.list(AgentFailureResponseExample_1.AgentFailureResponseExample)),
|
|
51
|
+
toolCallParameters: core.serialization.property("tool_call_parameters", UnitTestToolCallEvaluationModelInput_1.UnitTestToolCallEvaluationModelInput.optional()),
|
|
52
|
+
dynamicVariables: core.serialization.property("dynamic_variables", core.serialization
|
|
53
|
+
.record(core.serialization.string(), UpdateUnitTestRequestDynamicVariablesValue_1.UpdateUnitTestRequestDynamicVariablesValue.optional())
|
|
54
|
+
.optional()),
|
|
55
|
+
name: core.serialization.string(),
|
|
56
|
+
});
|
package/dist/serialization/resources/conversationalAi/resources/tests/client/requests/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListTestsByIdsRequestModel = exports.UpdateUnitTestRequest = exports.CreateUnitTestRequest = void 0;
|
|
4
|
+
var CreateUnitTestRequest_1 = require("./CreateUnitTestRequest");
|
|
5
|
+
Object.defineProperty(exports, "CreateUnitTestRequest", { enumerable: true, get: function () { return CreateUnitTestRequest_1.CreateUnitTestRequest; } });
|
|
6
|
+
var UpdateUnitTestRequest_1 = require("./UpdateUnitTestRequest");
|
|
7
|
+
Object.defineProperty(exports, "UpdateUnitTestRequest", { enumerable: true, get: function () { return UpdateUnitTestRequest_1.UpdateUnitTestRequest; } });
|
|
8
|
+
var ListTestsByIdsRequestModel_1 = require("./ListTestsByIdsRequestModel");
|
|
9
|
+
Object.defineProperty(exports, "ListTestsByIdsRequestModel", { enumerable: true, get: function () { return ListTestsByIdsRequestModel_1.ListTestsByIdsRequestModel; } });
|
|
@@ -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);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -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,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../../../../index";
|
|
5
|
+
import * as ElevenLabs from "../../../../../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../../../../../core";
|
|
7
|
+
import { AdhocAgentConfigOverrideForTestRequestModel } from "../../../../../../../../types/AdhocAgentConfigOverrideForTestRequestModel";
|
|
8
|
+
export declare const ResubmitTestsRequestModel: core.serialization.Schema<serializers.conversationalAi.tests.ResubmitTestsRequestModel.Raw, ElevenLabs.conversationalAi.tests.ResubmitTestsRequestModel>;
|
|
9
|
+
export declare namespace ResubmitTestsRequestModel {
|
|
10
|
+
interface Raw {
|
|
11
|
+
test_run_ids: string[];
|
|
12
|
+
agent_config_override?: AdhocAgentConfigOverrideForTestRequestModel.Raw | null;
|
|
13
|
+
agent_id: string;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ResubmitTestsRequestModel = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../../../../../core"));
|
|
41
|
+
const AdhocAgentConfigOverrideForTestRequestModel_1 = require("../../../../../../../../types/AdhocAgentConfigOverrideForTestRequestModel");
|
|
42
|
+
exports.ResubmitTestsRequestModel = core.serialization.object({
|
|
43
|
+
testRunIds: core.serialization.property("test_run_ids", core.serialization.list(core.serialization.string())),
|
|
44
|
+
agentConfigOverride: core.serialization.property("agent_config_override", AdhocAgentConfigOverrideForTestRequestModel_1.AdhocAgentConfigOverrideForTestRequestModel.optional()),
|
|
45
|
+
agentId: core.serialization.property("agent_id", core.serialization.string()),
|
|
46
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ResubmitTestsRequestModel } from "./ResubmitTestsRequestModel";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResubmitTestsRequestModel = void 0;
|
|
4
|
+
var ResubmitTestsRequestModel_1 = require("./ResubmitTestsRequestModel");
|
|
5
|
+
Object.defineProperty(exports, "ResubmitTestsRequestModel", { enumerable: true, get: function () { return ResubmitTestsRequestModel_1.ResubmitTestsRequestModel; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|