@elevenlabs/elevenlabs-js 2.14.0 → 2.15.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/agents/client/Client.d.ts +4 -2
- package/api/resources/conversationalAi/resources/agents/client/Client.js +4 -2
- package/api/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost.d.ts +2 -1
- package/api/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost.d.ts +2 -1
- package/api/resources/textToVoice/client/Client.d.ts +16 -0
- package/api/resources/textToVoice/client/Client.js +84 -0
- package/api/resources/textToVoice/client/requests/VoiceRemixRequestModel.d.ts +36 -0
- package/api/resources/textToVoice/client/requests/VoiceRemixRequestModel.js +5 -0
- package/api/resources/textToVoice/client/requests/index.d.ts +1 -0
- package/api/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.d.ts +28 -0
- package/api/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.js +27 -0
- package/api/resources/textToVoice/types/index.d.ts +1 -0
- package/api/resources/textToVoice/types/index.js +1 -0
- package/api/types/AgentConfig.d.ts +2 -0
- package/api/types/AgentConfigApiModelWorkflowOverride.d.ts +2 -0
- package/api/types/WorkflowToolResponseModelInput.d.ts +0 -1
- package/api/types/WorkflowToolResponseModelOutput.d.ts +0 -1
- package/dist/Client.js +2 -2
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +4 -2
- package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +4 -2
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationStreamV1ConvaiAgentsAgentIdSimulateConversationStreamPost.d.ts +2 -1
- package/dist/api/resources/conversationalAi/resources/agents/client/requests/BodySimulatesAConversationV1ConvaiAgentsAgentIdSimulateConversationPost.d.ts +2 -1
- package/dist/api/resources/textToVoice/client/Client.d.ts +16 -0
- package/dist/api/resources/textToVoice/client/Client.js +84 -0
- package/dist/api/resources/textToVoice/client/requests/VoiceRemixRequestModel.d.ts +36 -0
- package/dist/api/resources/textToVoice/client/requests/VoiceRemixRequestModel.js +5 -0
- package/dist/api/resources/textToVoice/client/requests/index.d.ts +1 -0
- package/dist/api/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.d.ts +28 -0
- package/dist/api/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.js +27 -0
- package/dist/api/resources/textToVoice/types/index.d.ts +1 -0
- package/dist/api/resources/textToVoice/types/index.js +1 -0
- package/dist/api/types/AgentConfig.d.ts +2 -0
- package/dist/api/types/AgentConfigApiModelWorkflowOverride.d.ts +2 -0
- package/dist/api/types/WorkflowToolResponseModelInput.d.ts +0 -1
- package/dist/api/types/WorkflowToolResponseModelOutput.d.ts +0 -1
- package/dist/serialization/resources/textToVoice/client/requests/VoiceRemixRequestModel.d.ts +21 -0
- package/dist/serialization/resources/textToVoice/client/requests/VoiceRemixRequestModel.js +52 -0
- package/dist/serialization/resources/textToVoice/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/textToVoice/client/requests/index.js +3 -1
- package/dist/serialization/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.d.ts +10 -0
- package/dist/serialization/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.js +61 -0
- package/dist/serialization/resources/textToVoice/types/index.d.ts +1 -0
- package/dist/serialization/resources/textToVoice/types/index.js +1 -0
- package/dist/serialization/types/AgentConfig.d.ts +1 -0
- package/dist/serialization/types/AgentConfig.js +1 -0
- package/dist/serialization/types/AgentConfigApiModelWorkflowOverride.d.ts +1 -0
- package/dist/serialization/types/AgentConfigApiModelWorkflowOverride.js +1 -0
- package/dist/serialization/types/WorkflowToolResponseModelInput.d.ts +0 -2
- package/dist/serialization/types/WorkflowToolResponseModelInput.js +0 -2
- package/dist/serialization/types/WorkflowToolResponseModelOutput.d.ts +0 -2
- package/dist/serialization/types/WorkflowToolResponseModelOutput.js +0 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +75 -0
- package/serialization/resources/textToVoice/client/requests/VoiceRemixRequestModel.d.ts +21 -0
- package/serialization/resources/textToVoice/client/requests/VoiceRemixRequestModel.js +52 -0
- package/serialization/resources/textToVoice/client/requests/index.d.ts +1 -0
- package/serialization/resources/textToVoice/client/requests/index.js +3 -1
- package/serialization/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.d.ts +10 -0
- package/serialization/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.js +61 -0
- package/serialization/resources/textToVoice/types/index.d.ts +1 -0
- package/serialization/resources/textToVoice/types/index.js +1 -0
- package/serialization/types/AgentConfig.d.ts +1 -0
- package/serialization/types/AgentConfig.js +1 -0
- package/serialization/types/AgentConfigApiModelWorkflowOverride.d.ts +1 -0
- package/serialization/types/AgentConfigApiModelWorkflowOverride.js +1 -0
- package/serialization/types/WorkflowToolResponseModelInput.d.ts +0 -2
- package/serialization/types/WorkflowToolResponseModelInput.js +0 -2
- package/serialization/types/WorkflowToolResponseModelOutput.d.ts +0 -2
- package/serialization/types/WorkflowToolResponseModelOutput.js +0 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
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.TextToVoiceRemixRequestOutputFormat = void 0;
|
|
7
|
+
exports.TextToVoiceRemixRequestOutputFormat = {
|
|
8
|
+
Mp32205032: "mp3_22050_32",
|
|
9
|
+
Mp34410032: "mp3_44100_32",
|
|
10
|
+
Mp34410064: "mp3_44100_64",
|
|
11
|
+
Mp34410096: "mp3_44100_96",
|
|
12
|
+
Mp344100128: "mp3_44100_128",
|
|
13
|
+
Mp344100192: "mp3_44100_192",
|
|
14
|
+
Pcm8000: "pcm_8000",
|
|
15
|
+
Pcm16000: "pcm_16000",
|
|
16
|
+
Pcm22050: "pcm_22050",
|
|
17
|
+
Pcm24000: "pcm_24000",
|
|
18
|
+
Pcm44100: "pcm_44100",
|
|
19
|
+
Pcm48000: "pcm_48000",
|
|
20
|
+
Ulaw8000: "ulaw_8000",
|
|
21
|
+
Alaw8000: "alaw_8000",
|
|
22
|
+
Opus4800032: "opus_48000_32",
|
|
23
|
+
Opus4800064: "opus_48000_64",
|
|
24
|
+
Opus4800096: "opus_48000_96",
|
|
25
|
+
Opus48000128: "opus_48000_128",
|
|
26
|
+
Opus48000192: "opus_48000_192",
|
|
27
|
+
};
|
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./TextToVoiceCreatePreviewsRequestOutputFormat"), exports);
|
|
18
18
|
__exportStar(require("./TextToVoiceDesignRequestOutputFormat"), exports);
|
|
19
19
|
__exportStar(require("./VoiceDesignRequestModelModelId"), exports);
|
|
20
|
+
__exportStar(require("./TextToVoiceRemixRequestOutputFormat"), exports);
|
|
@@ -9,6 +9,8 @@ export interface AgentConfig {
|
|
|
9
9
|
language?: string;
|
|
10
10
|
/** Configuration for dynamic variables */
|
|
11
11
|
dynamicVariables?: ElevenLabs.DynamicVariablesConfig;
|
|
12
|
+
/** If true, the user will not be able to interrupt the agent while the first message is being delivered. */
|
|
13
|
+
disableFirstMessageInterruptions?: boolean;
|
|
12
14
|
/** The prompt for the agent */
|
|
13
15
|
prompt?: ElevenLabs.PromptAgentApiModelOutput;
|
|
14
16
|
}
|
|
@@ -9,6 +9,8 @@ export interface AgentConfigApiModelWorkflowOverride {
|
|
|
9
9
|
language?: string;
|
|
10
10
|
/** Configuration for dynamic variables */
|
|
11
11
|
dynamicVariables?: ElevenLabs.DynamicVariablesConfigWorkflowOverride;
|
|
12
|
+
/** If true, the user will not be able to interrupt the agent while the first message is being delivered. */
|
|
13
|
+
disableFirstMessageInterruptions?: boolean;
|
|
12
14
|
/** The prompt for the agent */
|
|
13
15
|
prompt?: ElevenLabs.PromptAgentApiModelWorkflowOverride;
|
|
14
16
|
}
|
|
@@ -6,6 +6,5 @@ import * as ElevenLabs from "../index";
|
|
|
6
6
|
* A common model for workflow tool responses.
|
|
7
7
|
*/
|
|
8
8
|
export interface WorkflowToolResponseModelInput {
|
|
9
|
-
finalTransfer?: ElevenLabs.TransferToAgentToolResultSuccessModel;
|
|
10
9
|
steps?: ElevenLabs.WorkflowToolResponseModelInputStepsItem[];
|
|
11
10
|
}
|
|
@@ -6,6 +6,5 @@ import * as ElevenLabs from "../index";
|
|
|
6
6
|
* A common model for workflow tool responses.
|
|
7
7
|
*/
|
|
8
8
|
export interface WorkflowToolResponseModelOutput {
|
|
9
|
-
finalTransfer?: ElevenLabs.TransferToAgentToolResultSuccessModel;
|
|
10
9
|
steps?: ElevenLabs.WorkflowToolResponseModelOutputStepsItem[];
|
|
11
10
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 VoiceRemixRequestModel: core.serialization.Schema<serializers.VoiceRemixRequestModel.Raw, Omit<ElevenLabs.VoiceRemixRequestModel, "outputFormat">>;
|
|
8
|
+
export declare namespace VoiceRemixRequestModel {
|
|
9
|
+
interface Raw {
|
|
10
|
+
voice_description: string;
|
|
11
|
+
text?: string | null;
|
|
12
|
+
auto_generate_text?: boolean | null;
|
|
13
|
+
loudness?: number | null;
|
|
14
|
+
seed?: number | null;
|
|
15
|
+
guidance_scale?: number | null;
|
|
16
|
+
stream_previews?: boolean | null;
|
|
17
|
+
remixing_session_id?: string | null;
|
|
18
|
+
remixing_session_iteration_id?: string | null;
|
|
19
|
+
prompt_strength?: number | null;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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.VoiceRemixRequestModel = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../core"));
|
|
41
|
+
exports.VoiceRemixRequestModel = core.serialization.object({
|
|
42
|
+
voiceDescription: core.serialization.property("voice_description", core.serialization.string()),
|
|
43
|
+
text: core.serialization.string().optional(),
|
|
44
|
+
autoGenerateText: core.serialization.property("auto_generate_text", core.serialization.boolean().optional()),
|
|
45
|
+
loudness: core.serialization.number().optional(),
|
|
46
|
+
seed: core.serialization.number().optional(),
|
|
47
|
+
guidanceScale: core.serialization.property("guidance_scale", core.serialization.number().optional()),
|
|
48
|
+
streamPreviews: core.serialization.property("stream_previews", core.serialization.boolean().optional()),
|
|
49
|
+
remixingSessionId: core.serialization.property("remixing_session_id", core.serialization.string().optional()),
|
|
50
|
+
remixingSessionIterationId: core.serialization.property("remixing_session_iteration_id", core.serialization.string().optional()),
|
|
51
|
+
promptStrength: core.serialization.property("prompt_strength", core.serialization.number().optional()),
|
|
52
|
+
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { VoiceDesignRequest } from "./VoiceDesignRequest";
|
|
2
2
|
export { BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost } from "./BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost";
|
|
3
3
|
export { VoiceDesignRequestModel } from "./VoiceDesignRequestModel";
|
|
4
|
+
export { VoiceRemixRequestModel } from "./VoiceRemixRequestModel";
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VoiceDesignRequestModel = exports.BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost = exports.VoiceDesignRequest = void 0;
|
|
3
|
+
exports.VoiceRemixRequestModel = exports.VoiceDesignRequestModel = exports.BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost = exports.VoiceDesignRequest = void 0;
|
|
4
4
|
var VoiceDesignRequest_1 = require("./VoiceDesignRequest");
|
|
5
5
|
Object.defineProperty(exports, "VoiceDesignRequest", { enumerable: true, get: function () { return VoiceDesignRequest_1.VoiceDesignRequest; } });
|
|
6
6
|
var BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost_1 = require("./BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost");
|
|
7
7
|
Object.defineProperty(exports, "BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost", { enumerable: true, get: function () { return BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost_1.BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost; } });
|
|
8
8
|
var VoiceDesignRequestModel_1 = require("./VoiceDesignRequestModel");
|
|
9
9
|
Object.defineProperty(exports, "VoiceDesignRequestModel", { enumerable: true, get: function () { return VoiceDesignRequestModel_1.VoiceDesignRequestModel; } });
|
|
10
|
+
var VoiceRemixRequestModel_1 = require("./VoiceRemixRequestModel");
|
|
11
|
+
Object.defineProperty(exports, "VoiceRemixRequestModel", { enumerable: true, get: function () { return VoiceRemixRequestModel_1.VoiceRemixRequestModel; } });
|
package/dist/serialization/resources/textToVoice/types/TextToVoiceRemixRequestOutputFormat.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
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 TextToVoiceRemixRequestOutputFormat: core.serialization.Schema<serializers.TextToVoiceRemixRequestOutputFormat.Raw, ElevenLabs.TextToVoiceRemixRequestOutputFormat>;
|
|
8
|
+
export declare namespace TextToVoiceRemixRequestOutputFormat {
|
|
9
|
+
type Raw = "mp3_22050_32" | "mp3_44100_32" | "mp3_44100_64" | "mp3_44100_96" | "mp3_44100_128" | "mp3_44100_192" | "pcm_8000" | "pcm_16000" | "pcm_22050" | "pcm_24000" | "pcm_44100" | "pcm_48000" | "ulaw_8000" | "alaw_8000" | "opus_48000_32" | "opus_48000_64" | "opus_48000_96" | "opus_48000_128" | "opus_48000_192";
|
|
10
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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.TextToVoiceRemixRequestOutputFormat = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.TextToVoiceRemixRequestOutputFormat = core.serialization.enum_([
|
|
42
|
+
"mp3_22050_32",
|
|
43
|
+
"mp3_44100_32",
|
|
44
|
+
"mp3_44100_64",
|
|
45
|
+
"mp3_44100_96",
|
|
46
|
+
"mp3_44100_128",
|
|
47
|
+
"mp3_44100_192",
|
|
48
|
+
"pcm_8000",
|
|
49
|
+
"pcm_16000",
|
|
50
|
+
"pcm_22050",
|
|
51
|
+
"pcm_24000",
|
|
52
|
+
"pcm_44100",
|
|
53
|
+
"pcm_48000",
|
|
54
|
+
"ulaw_8000",
|
|
55
|
+
"alaw_8000",
|
|
56
|
+
"opus_48000_32",
|
|
57
|
+
"opus_48000_64",
|
|
58
|
+
"opus_48000_96",
|
|
59
|
+
"opus_48000_128",
|
|
60
|
+
"opus_48000_192",
|
|
61
|
+
]);
|
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./TextToVoiceCreatePreviewsRequestOutputFormat"), exports);
|
|
18
18
|
__exportStar(require("./TextToVoiceDesignRequestOutputFormat"), exports);
|
|
19
19
|
__exportStar(require("./VoiceDesignRequestModelModelId"), exports);
|
|
20
|
+
__exportStar(require("./TextToVoiceRemixRequestOutputFormat"), exports);
|
|
@@ -12,6 +12,7 @@ export declare namespace AgentConfig {
|
|
|
12
12
|
first_message?: string | null;
|
|
13
13
|
language?: string | null;
|
|
14
14
|
dynamic_variables?: DynamicVariablesConfig.Raw | null;
|
|
15
|
+
disable_first_message_interruptions?: boolean | null;
|
|
15
16
|
prompt?: PromptAgentApiModelOutput.Raw | null;
|
|
16
17
|
}
|
|
17
18
|
}
|
|
@@ -44,5 +44,6 @@ exports.AgentConfig = core.serialization.object({
|
|
|
44
44
|
firstMessage: core.serialization.property("first_message", core.serialization.string().optional()),
|
|
45
45
|
language: core.serialization.string().optional(),
|
|
46
46
|
dynamicVariables: core.serialization.property("dynamic_variables", DynamicVariablesConfig_1.DynamicVariablesConfig.optional()),
|
|
47
|
+
disableFirstMessageInterruptions: core.serialization.property("disable_first_message_interruptions", core.serialization.boolean().optional()),
|
|
47
48
|
prompt: PromptAgentApiModelOutput_1.PromptAgentApiModelOutput.optional(),
|
|
48
49
|
});
|
|
@@ -12,6 +12,7 @@ export declare namespace AgentConfigApiModelWorkflowOverride {
|
|
|
12
12
|
first_message?: string | null;
|
|
13
13
|
language?: string | null;
|
|
14
14
|
dynamic_variables?: DynamicVariablesConfigWorkflowOverride.Raw | null;
|
|
15
|
+
disable_first_message_interruptions?: boolean | null;
|
|
15
16
|
prompt?: PromptAgentApiModelWorkflowOverride.Raw | null;
|
|
16
17
|
}
|
|
17
18
|
}
|
|
@@ -44,5 +44,6 @@ exports.AgentConfigApiModelWorkflowOverride = core.serialization.object({
|
|
|
44
44
|
firstMessage: core.serialization.property("first_message", core.serialization.string().optional()),
|
|
45
45
|
language: core.serialization.string().optional(),
|
|
46
46
|
dynamicVariables: core.serialization.property("dynamic_variables", DynamicVariablesConfigWorkflowOverride_1.DynamicVariablesConfigWorkflowOverride.optional()),
|
|
47
|
+
disableFirstMessageInterruptions: core.serialization.property("disable_first_message_interruptions", core.serialization.boolean().optional()),
|
|
47
48
|
prompt: PromptAgentApiModelWorkflowOverride_1.PromptAgentApiModelWorkflowOverride.optional(),
|
|
48
49
|
});
|
|
@@ -4,11 +4,9 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as ElevenLabs from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
import { TransferToAgentToolResultSuccessModel } from "./TransferToAgentToolResultSuccessModel";
|
|
8
7
|
export declare const WorkflowToolResponseModelInput: core.serialization.ObjectSchema<serializers.WorkflowToolResponseModelInput.Raw, ElevenLabs.WorkflowToolResponseModelInput>;
|
|
9
8
|
export declare namespace WorkflowToolResponseModelInput {
|
|
10
9
|
interface Raw {
|
|
11
|
-
final_transfer?: TransferToAgentToolResultSuccessModel.Raw | null;
|
|
12
10
|
steps?: serializers.WorkflowToolResponseModelInputStepsItem.Raw[] | null;
|
|
13
11
|
}
|
|
14
12
|
}
|
|
@@ -39,9 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.WorkflowToolResponseModelInput = void 0;
|
|
40
40
|
const serializers = __importStar(require("../index"));
|
|
41
41
|
const core = __importStar(require("../../core"));
|
|
42
|
-
const TransferToAgentToolResultSuccessModel_1 = require("./TransferToAgentToolResultSuccessModel");
|
|
43
42
|
exports.WorkflowToolResponseModelInput = core.serialization.object({
|
|
44
|
-
finalTransfer: core.serialization.property("final_transfer", TransferToAgentToolResultSuccessModel_1.TransferToAgentToolResultSuccessModel.optional()),
|
|
45
43
|
steps: core.serialization
|
|
46
44
|
.list(core.serialization.lazy(() => serializers.WorkflowToolResponseModelInputStepsItem))
|
|
47
45
|
.optional(),
|
|
@@ -4,11 +4,9 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as ElevenLabs from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
import { TransferToAgentToolResultSuccessModel } from "./TransferToAgentToolResultSuccessModel";
|
|
8
7
|
export declare const WorkflowToolResponseModelOutput: core.serialization.ObjectSchema<serializers.WorkflowToolResponseModelOutput.Raw, ElevenLabs.WorkflowToolResponseModelOutput>;
|
|
9
8
|
export declare namespace WorkflowToolResponseModelOutput {
|
|
10
9
|
interface Raw {
|
|
11
|
-
final_transfer?: TransferToAgentToolResultSuccessModel.Raw | null;
|
|
12
10
|
steps?: serializers.WorkflowToolResponseModelOutputStepsItem.Raw[] | null;
|
|
13
11
|
}
|
|
14
12
|
}
|
|
@@ -39,9 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.WorkflowToolResponseModelOutput = void 0;
|
|
40
40
|
const serializers = __importStar(require("../index"));
|
|
41
41
|
const core = __importStar(require("../../core"));
|
|
42
|
-
const TransferToAgentToolResultSuccessModel_1 = require("./TransferToAgentToolResultSuccessModel");
|
|
43
42
|
exports.WorkflowToolResponseModelOutput = core.serialization.object({
|
|
44
|
-
finalTransfer: core.serialization.property("final_transfer", TransferToAgentToolResultSuccessModel_1.TransferToAgentToolResultSuccessModel.optional()),
|
|
45
43
|
steps: core.serialization
|
|
46
44
|
.list(core.serialization.lazy(() => serializers.WorkflowToolResponseModelOutputStepsItem))
|
|
47
45
|
.optional(),
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v2.
|
|
1
|
+
export declare const SDK_VERSION = "v2.15.0";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -1194,6 +1194,79 @@ await client.textToVoice.design({
|
|
|
1194
1194
|
</dl>
|
|
1195
1195
|
</details>
|
|
1196
1196
|
|
|
1197
|
+
<details><summary><code>client.textToVoice.<a href="/src/api/resources/textToVoice/client/Client.ts">remix</a>(voiceId, { ...params }) -> ElevenLabs.VoiceDesignPreviewResponse</code></summary>
|
|
1198
|
+
<dl>
|
|
1199
|
+
<dd>
|
|
1200
|
+
|
|
1201
|
+
#### 📝 Description
|
|
1202
|
+
|
|
1203
|
+
<dl>
|
|
1204
|
+
<dd>
|
|
1205
|
+
|
|
1206
|
+
<dl>
|
|
1207
|
+
<dd>
|
|
1208
|
+
|
|
1209
|
+
Remix an existing voice via a prompt. This method returns a list of voice previews. Each preview has a generated_voice_id and a sample of the voice as base64 encoded mp3 audio. To create a voice use the generated_voice_id of the preferred preview with the /v1/text-to-voice endpoint.
|
|
1210
|
+
|
|
1211
|
+
</dd>
|
|
1212
|
+
</dl>
|
|
1213
|
+
</dd>
|
|
1214
|
+
</dl>
|
|
1215
|
+
|
|
1216
|
+
#### 🔌 Usage
|
|
1217
|
+
|
|
1218
|
+
<dl>
|
|
1219
|
+
<dd>
|
|
1220
|
+
|
|
1221
|
+
<dl>
|
|
1222
|
+
<dd>
|
|
1223
|
+
|
|
1224
|
+
```typescript
|
|
1225
|
+
await client.textToVoice.remix("21m00Tcm4TlvDq8ikWAM", {
|
|
1226
|
+
voiceDescription: "Make the voice have a higher pitch.",
|
|
1227
|
+
});
|
|
1228
|
+
```
|
|
1229
|
+
|
|
1230
|
+
</dd>
|
|
1231
|
+
</dl>
|
|
1232
|
+
</dd>
|
|
1233
|
+
</dl>
|
|
1234
|
+
|
|
1235
|
+
#### ⚙️ Parameters
|
|
1236
|
+
|
|
1237
|
+
<dl>
|
|
1238
|
+
<dd>
|
|
1239
|
+
|
|
1240
|
+
<dl>
|
|
1241
|
+
<dd>
|
|
1242
|
+
|
|
1243
|
+
**voiceId:** `string` — Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
|
|
1244
|
+
|
|
1245
|
+
</dd>
|
|
1246
|
+
</dl>
|
|
1247
|
+
|
|
1248
|
+
<dl>
|
|
1249
|
+
<dd>
|
|
1250
|
+
|
|
1251
|
+
**request:** `ElevenLabs.VoiceRemixRequestModel`
|
|
1252
|
+
|
|
1253
|
+
</dd>
|
|
1254
|
+
</dl>
|
|
1255
|
+
|
|
1256
|
+
<dl>
|
|
1257
|
+
<dd>
|
|
1258
|
+
|
|
1259
|
+
**requestOptions:** `TextToVoice.RequestOptions`
|
|
1260
|
+
|
|
1261
|
+
</dd>
|
|
1262
|
+
</dl>
|
|
1263
|
+
</dd>
|
|
1264
|
+
</dl>
|
|
1265
|
+
|
|
1266
|
+
</dd>
|
|
1267
|
+
</dl>
|
|
1268
|
+
</details>
|
|
1269
|
+
|
|
1197
1270
|
## user
|
|
1198
1271
|
|
|
1199
1272
|
<details><summary><code>client.user.<a href="/src/api/resources/user/client/Client.ts">get</a>() -> ElevenLabs.User</code></summary>
|
|
@@ -4201,6 +4274,7 @@ await client.conversationalAi.agents.simulateConversation("21m00Tcm4TlvDq8ikWAM"
|
|
|
4201
4274
|
simulatedUserConfig: {
|
|
4202
4275
|
firstMessage: "Hello, how can I help you today?",
|
|
4203
4276
|
language: "en",
|
|
4277
|
+
disableFirstMessageInterruptions: false,
|
|
4204
4278
|
},
|
|
4205
4279
|
},
|
|
4206
4280
|
});
|
|
@@ -4279,6 +4353,7 @@ await client.conversationalAi.agents.simulateConversationStream("21m00Tcm4TlvDq8
|
|
|
4279
4353
|
simulatedUserConfig: {
|
|
4280
4354
|
firstMessage: "Hello, how can I help you today?",
|
|
4281
4355
|
language: "en",
|
|
4356
|
+
disableFirstMessageInterruptions: false,
|
|
4282
4357
|
},
|
|
4283
4358
|
},
|
|
4284
4359
|
});
|
|
@@ -0,0 +1,21 @@
|
|
|
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 VoiceRemixRequestModel: core.serialization.Schema<serializers.VoiceRemixRequestModel.Raw, Omit<ElevenLabs.VoiceRemixRequestModel, "outputFormat">>;
|
|
8
|
+
export declare namespace VoiceRemixRequestModel {
|
|
9
|
+
interface Raw {
|
|
10
|
+
voice_description: string;
|
|
11
|
+
text?: string | null;
|
|
12
|
+
auto_generate_text?: boolean | null;
|
|
13
|
+
loudness?: number | null;
|
|
14
|
+
seed?: number | null;
|
|
15
|
+
guidance_scale?: number | null;
|
|
16
|
+
stream_previews?: boolean | null;
|
|
17
|
+
remixing_session_id?: string | null;
|
|
18
|
+
remixing_session_iteration_id?: string | null;
|
|
19
|
+
prompt_strength?: number | null;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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.VoiceRemixRequestModel = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../core"));
|
|
41
|
+
exports.VoiceRemixRequestModel = core.serialization.object({
|
|
42
|
+
voiceDescription: core.serialization.property("voice_description", core.serialization.string()),
|
|
43
|
+
text: core.serialization.string().optional(),
|
|
44
|
+
autoGenerateText: core.serialization.property("auto_generate_text", core.serialization.boolean().optional()),
|
|
45
|
+
loudness: core.serialization.number().optional(),
|
|
46
|
+
seed: core.serialization.number().optional(),
|
|
47
|
+
guidanceScale: core.serialization.property("guidance_scale", core.serialization.number().optional()),
|
|
48
|
+
streamPreviews: core.serialization.property("stream_previews", core.serialization.boolean().optional()),
|
|
49
|
+
remixingSessionId: core.serialization.property("remixing_session_id", core.serialization.string().optional()),
|
|
50
|
+
remixingSessionIterationId: core.serialization.property("remixing_session_iteration_id", core.serialization.string().optional()),
|
|
51
|
+
promptStrength: core.serialization.property("prompt_strength", core.serialization.number().optional()),
|
|
52
|
+
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { VoiceDesignRequest } from "./VoiceDesignRequest";
|
|
2
2
|
export { BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost } from "./BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost";
|
|
3
3
|
export { VoiceDesignRequestModel } from "./VoiceDesignRequestModel";
|
|
4
|
+
export { VoiceRemixRequestModel } from "./VoiceRemixRequestModel";
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VoiceDesignRequestModel = exports.BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost = exports.VoiceDesignRequest = void 0;
|
|
3
|
+
exports.VoiceRemixRequestModel = exports.VoiceDesignRequestModel = exports.BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost = exports.VoiceDesignRequest = void 0;
|
|
4
4
|
var VoiceDesignRequest_1 = require("./VoiceDesignRequest");
|
|
5
5
|
Object.defineProperty(exports, "VoiceDesignRequest", { enumerable: true, get: function () { return VoiceDesignRequest_1.VoiceDesignRequest; } });
|
|
6
6
|
var BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost_1 = require("./BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost");
|
|
7
7
|
Object.defineProperty(exports, "BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost", { enumerable: true, get: function () { return BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost_1.BodyCreateANewVoiceFromVoicePreviewV1TextToVoicePost; } });
|
|
8
8
|
var VoiceDesignRequestModel_1 = require("./VoiceDesignRequestModel");
|
|
9
9
|
Object.defineProperty(exports, "VoiceDesignRequestModel", { enumerable: true, get: function () { return VoiceDesignRequestModel_1.VoiceDesignRequestModel; } });
|
|
10
|
+
var VoiceRemixRequestModel_1 = require("./VoiceRemixRequestModel");
|
|
11
|
+
Object.defineProperty(exports, "VoiceRemixRequestModel", { enumerable: true, get: function () { return VoiceRemixRequestModel_1.VoiceRemixRequestModel; } });
|
|
@@ -0,0 +1,10 @@
|
|
|
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 TextToVoiceRemixRequestOutputFormat: core.serialization.Schema<serializers.TextToVoiceRemixRequestOutputFormat.Raw, ElevenLabs.TextToVoiceRemixRequestOutputFormat>;
|
|
8
|
+
export declare namespace TextToVoiceRemixRequestOutputFormat {
|
|
9
|
+
type Raw = "mp3_22050_32" | "mp3_44100_32" | "mp3_44100_64" | "mp3_44100_96" | "mp3_44100_128" | "mp3_44100_192" | "pcm_8000" | "pcm_16000" | "pcm_22050" | "pcm_24000" | "pcm_44100" | "pcm_48000" | "ulaw_8000" | "alaw_8000" | "opus_48000_32" | "opus_48000_64" | "opus_48000_96" | "opus_48000_128" | "opus_48000_192";
|
|
10
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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.TextToVoiceRemixRequestOutputFormat = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.TextToVoiceRemixRequestOutputFormat = core.serialization.enum_([
|
|
42
|
+
"mp3_22050_32",
|
|
43
|
+
"mp3_44100_32",
|
|
44
|
+
"mp3_44100_64",
|
|
45
|
+
"mp3_44100_96",
|
|
46
|
+
"mp3_44100_128",
|
|
47
|
+
"mp3_44100_192",
|
|
48
|
+
"pcm_8000",
|
|
49
|
+
"pcm_16000",
|
|
50
|
+
"pcm_22050",
|
|
51
|
+
"pcm_24000",
|
|
52
|
+
"pcm_44100",
|
|
53
|
+
"pcm_48000",
|
|
54
|
+
"ulaw_8000",
|
|
55
|
+
"alaw_8000",
|
|
56
|
+
"opus_48000_32",
|
|
57
|
+
"opus_48000_64",
|
|
58
|
+
"opus_48000_96",
|
|
59
|
+
"opus_48000_128",
|
|
60
|
+
"opus_48000_192",
|
|
61
|
+
]);
|
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./TextToVoiceCreatePreviewsRequestOutputFormat"), exports);
|
|
18
18
|
__exportStar(require("./TextToVoiceDesignRequestOutputFormat"), exports);
|
|
19
19
|
__exportStar(require("./VoiceDesignRequestModelModelId"), exports);
|
|
20
|
+
__exportStar(require("./TextToVoiceRemixRequestOutputFormat"), exports);
|