@elevenlabs/elevenlabs-js 2.23.0 → 2.24.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.
Files changed (80) hide show
  1. package/Client.js +2 -2
  2. package/api/resources/conversationalAi/resources/conversations/client/Client.js +17 -1
  3. package/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +4 -0
  4. package/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +13 -0
  5. package/api/resources/conversationalAi/resources/mcpServers/client/Client.js +64 -0
  6. package/api/types/AsrProvider.d.ts +5 -1
  7. package/api/types/AsrProvider.js +5 -0
  8. package/api/types/ConversationSummaryResponseModel.d.ts +1 -0
  9. package/api/types/ProjectExtendedResponse.d.ts +2 -0
  10. package/api/types/ProjectVoiceResponseModel.d.ts +11 -0
  11. package/api/types/ProjectVoiceResponseModel.js +3 -0
  12. package/api/types/WebhookToolApiSchemaConfigInput.d.ts +2 -0
  13. package/api/types/WebhookToolApiSchemaConfigInputContentType.d.ts +6 -0
  14. package/api/types/WebhookToolApiSchemaConfigInputContentType.js +9 -0
  15. package/api/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -0
  16. package/api/types/WebhookToolApiSchemaConfigOutputContentType.d.ts +6 -0
  17. package/api/types/WebhookToolApiSchemaConfigOutputContentType.js +9 -0
  18. package/api/types/index.d.ts +3 -0
  19. package/api/types/index.js +3 -0
  20. package/dist/Client.js +2 -2
  21. package/dist/api/resources/conversationalAi/resources/conversations/client/Client.js +17 -1
  22. package/dist/api/resources/conversationalAi/resources/conversations/client/requests/ConversationsListRequest.d.ts +4 -0
  23. package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.d.ts +13 -0
  24. package/dist/api/resources/conversationalAi/resources/mcpServers/client/Client.js +64 -0
  25. package/dist/api/types/AsrProvider.d.ts +5 -1
  26. package/dist/api/types/AsrProvider.js +5 -0
  27. package/dist/api/types/ConversationSummaryResponseModel.d.ts +1 -0
  28. package/dist/api/types/ProjectExtendedResponse.d.ts +2 -0
  29. package/dist/api/types/ProjectVoiceResponseModel.d.ts +11 -0
  30. package/dist/api/types/ProjectVoiceResponseModel.js +3 -0
  31. package/dist/api/types/WebhookToolApiSchemaConfigInput.d.ts +2 -0
  32. package/dist/api/types/WebhookToolApiSchemaConfigInputContentType.d.ts +6 -0
  33. package/dist/api/types/WebhookToolApiSchemaConfigInputContentType.js +9 -0
  34. package/dist/api/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -0
  35. package/dist/api/types/WebhookToolApiSchemaConfigOutputContentType.d.ts +6 -0
  36. package/dist/api/types/WebhookToolApiSchemaConfigOutputContentType.js +9 -0
  37. package/dist/api/types/index.d.ts +3 -0
  38. package/dist/api/types/index.js +3 -0
  39. package/dist/serialization/types/AsrProvider.d.ts +1 -1
  40. package/dist/serialization/types/AsrProvider.js +1 -1
  41. package/dist/serialization/types/ConversationSummaryResponseModel.d.ts +1 -0
  42. package/dist/serialization/types/ConversationSummaryResponseModel.js +1 -0
  43. package/dist/serialization/types/ProjectExtendedResponse.d.ts +2 -0
  44. package/dist/serialization/types/ProjectExtendedResponse.js +2 -0
  45. package/dist/serialization/types/ProjectVoiceResponseModel.d.ts +17 -0
  46. package/dist/serialization/types/ProjectVoiceResponseModel.js +49 -0
  47. package/dist/serialization/types/WebhookToolApiSchemaConfigInput.d.ts +2 -0
  48. package/dist/serialization/types/WebhookToolApiSchemaConfigInput.js +2 -0
  49. package/dist/serialization/types/WebhookToolApiSchemaConfigInputContentType.d.ts +7 -0
  50. package/dist/serialization/types/WebhookToolApiSchemaConfigInputContentType.js +39 -0
  51. package/dist/serialization/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -0
  52. package/dist/serialization/types/WebhookToolApiSchemaConfigOutput.js +2 -0
  53. package/dist/serialization/types/WebhookToolApiSchemaConfigOutputContentType.d.ts +7 -0
  54. package/dist/serialization/types/WebhookToolApiSchemaConfigOutputContentType.js +39 -0
  55. package/dist/serialization/types/index.d.ts +3 -0
  56. package/dist/serialization/types/index.js +3 -0
  57. package/dist/version.d.ts +1 -1
  58. package/dist/version.js +1 -1
  59. package/package.json +1 -1
  60. package/reference.md +63 -0
  61. package/serialization/types/AsrProvider.d.ts +1 -1
  62. package/serialization/types/AsrProvider.js +1 -1
  63. package/serialization/types/ConversationSummaryResponseModel.d.ts +1 -0
  64. package/serialization/types/ConversationSummaryResponseModel.js +1 -0
  65. package/serialization/types/ProjectExtendedResponse.d.ts +2 -0
  66. package/serialization/types/ProjectExtendedResponse.js +2 -0
  67. package/serialization/types/ProjectVoiceResponseModel.d.ts +17 -0
  68. package/serialization/types/ProjectVoiceResponseModel.js +49 -0
  69. package/serialization/types/WebhookToolApiSchemaConfigInput.d.ts +2 -0
  70. package/serialization/types/WebhookToolApiSchemaConfigInput.js +2 -0
  71. package/serialization/types/WebhookToolApiSchemaConfigInputContentType.d.ts +7 -0
  72. package/serialization/types/WebhookToolApiSchemaConfigInputContentType.js +39 -0
  73. package/serialization/types/WebhookToolApiSchemaConfigOutput.d.ts +2 -0
  74. package/serialization/types/WebhookToolApiSchemaConfigOutput.js +2 -0
  75. package/serialization/types/WebhookToolApiSchemaConfigOutputContentType.d.ts +7 -0
  76. package/serialization/types/WebhookToolApiSchemaConfigOutputContentType.js +39 -0
  77. package/serialization/types/index.d.ts +3 -0
  78. package/serialization/types/index.js +3 -0
  79. package/version.d.ts +1 -1
  80. package/version.js +1 -1
@@ -52,4 +52,5 @@ exports.ConversationSummaryResponseModel = core.serialization.object({
52
52
  transcriptSummary: core.serialization.property("transcript_summary", core.serialization.string().optional()),
53
53
  callSummaryTitle: core.serialization.property("call_summary_title", core.serialization.string().optional()),
54
54
  direction: ConversationSummaryResponseModelDirection_1.ConversationSummaryResponseModelDirection.optional(),
55
+ rating: core.serialization.number().optional(),
55
56
  });
@@ -15,6 +15,7 @@ import { PronunciationDictionaryVersionResponseModel } from "./PronunciationDict
15
15
  import { PronunciationDictionaryLocatorResponseModel } from "./PronunciationDictionaryLocatorResponseModel";
16
16
  import { ProjectExtendedResponseModelApplyTextNormalization } from "./ProjectExtendedResponseModelApplyTextNormalization";
17
17
  import { ProjectExtendedResponseModelAssetsItem } from "./ProjectExtendedResponseModelAssetsItem";
18
+ import { ProjectVoiceResponseModel } from "./ProjectVoiceResponseModel";
18
19
  export declare const ProjectExtendedResponse: core.serialization.ObjectSchema<serializers.ProjectExtendedResponse.Raw, ElevenLabs.ProjectExtendedResponse>;
19
20
  export declare namespace ProjectExtendedResponse {
20
21
  interface Raw {
@@ -58,5 +59,6 @@ export declare namespace ProjectExtendedResponse {
58
59
  apply_text_normalization: ProjectExtendedResponseModelApplyTextNormalization.Raw;
59
60
  experimental?: Record<string, unknown> | null;
60
61
  assets: ProjectExtendedResponseModelAssetsItem.Raw[];
62
+ voices: ProjectVoiceResponseModel.Raw[];
61
63
  }
62
64
  }
@@ -50,6 +50,7 @@ const PronunciationDictionaryVersionResponseModel_1 = require("./PronunciationDi
50
50
  const PronunciationDictionaryLocatorResponseModel_1 = require("./PronunciationDictionaryLocatorResponseModel");
51
51
  const ProjectExtendedResponseModelApplyTextNormalization_1 = require("./ProjectExtendedResponseModelApplyTextNormalization");
52
52
  const ProjectExtendedResponseModelAssetsItem_1 = require("./ProjectExtendedResponseModelAssetsItem");
53
+ const ProjectVoiceResponseModel_1 = require("./ProjectVoiceResponseModel");
53
54
  exports.ProjectExtendedResponse = core.serialization.object({
54
55
  projectId: core.serialization.property("project_id", core.serialization.string()),
55
56
  name: core.serialization.string(),
@@ -91,4 +92,5 @@ exports.ProjectExtendedResponse = core.serialization.object({
91
92
  applyTextNormalization: core.serialization.property("apply_text_normalization", ProjectExtendedResponseModelApplyTextNormalization_1.ProjectExtendedResponseModelApplyTextNormalization),
92
93
  experimental: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
93
94
  assets: core.serialization.list(ProjectExtendedResponseModelAssetsItem_1.ProjectExtendedResponseModelAssetsItem),
95
+ voices: core.serialization.list(ProjectVoiceResponseModel_1.ProjectVoiceResponseModel),
94
96
  });
@@ -0,0 +1,17 @@
1
+ import * as serializers from "../index";
2
+ import * as ElevenLabs from "../../api/index";
3
+ import * as core from "../../core";
4
+ export declare const ProjectVoiceResponseModel: core.serialization.ObjectSchema<serializers.ProjectVoiceResponseModel.Raw, ElevenLabs.ProjectVoiceResponseModel>;
5
+ export declare namespace ProjectVoiceResponseModel {
6
+ interface Raw {
7
+ voice_id: string;
8
+ alias: string;
9
+ stability: number;
10
+ similarity_boost: number;
11
+ style: number;
12
+ is_pinned: boolean;
13
+ use_speaker_boost: boolean;
14
+ volume_gain: number;
15
+ speed: number;
16
+ }
17
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.ProjectVoiceResponseModel = void 0;
38
+ const core = __importStar(require("../../core"));
39
+ exports.ProjectVoiceResponseModel = core.serialization.object({
40
+ voiceId: core.serialization.property("voice_id", core.serialization.string()),
41
+ alias: core.serialization.string(),
42
+ stability: core.serialization.number(),
43
+ similarityBoost: core.serialization.property("similarity_boost", core.serialization.number()),
44
+ style: core.serialization.number(),
45
+ isPinned: core.serialization.property("is_pinned", core.serialization.boolean()),
46
+ useSpeakerBoost: core.serialization.property("use_speaker_boost", core.serialization.boolean()),
47
+ volumeGain: core.serialization.property("volume_gain", core.serialization.number()),
48
+ speed: core.serialization.number(),
49
+ });
@@ -5,6 +5,7 @@ import { WebhookToolApiSchemaConfigInputMethod } from "./WebhookToolApiSchemaCon
5
5
  import { LiteralJsonSchemaProperty } from "./LiteralJsonSchemaProperty";
6
6
  import { QueryParamsJsonSchema } from "./QueryParamsJsonSchema";
7
7
  import { WebhookToolApiSchemaConfigInputRequestHeadersValue } from "./WebhookToolApiSchemaConfigInputRequestHeadersValue";
8
+ import { WebhookToolApiSchemaConfigInputContentType } from "./WebhookToolApiSchemaConfigInputContentType";
8
9
  import { AuthConnectionLocator } from "./AuthConnectionLocator";
9
10
  export declare const WebhookToolApiSchemaConfigInput: core.serialization.ObjectSchema<serializers.WebhookToolApiSchemaConfigInput.Raw, ElevenLabs.WebhookToolApiSchemaConfigInput>;
10
11
  export declare namespace WebhookToolApiSchemaConfigInput {
@@ -15,6 +16,7 @@ export declare namespace WebhookToolApiSchemaConfigInput {
15
16
  query_params_schema?: QueryParamsJsonSchema.Raw | null;
16
17
  request_body_schema?: serializers.ObjectJsonSchemaPropertyInput.Raw | null;
17
18
  request_headers?: Record<string, WebhookToolApiSchemaConfigInputRequestHeadersValue.Raw> | null;
19
+ content_type?: WebhookToolApiSchemaConfigInputContentType.Raw | null;
18
20
  auth_connection?: AuthConnectionLocator.Raw | null;
19
21
  }
20
22
  }
@@ -41,6 +41,7 @@ const WebhookToolApiSchemaConfigInputMethod_1 = require("./WebhookToolApiSchemaC
41
41
  const LiteralJsonSchemaProperty_1 = require("./LiteralJsonSchemaProperty");
42
42
  const QueryParamsJsonSchema_1 = require("./QueryParamsJsonSchema");
43
43
  const WebhookToolApiSchemaConfigInputRequestHeadersValue_1 = require("./WebhookToolApiSchemaConfigInputRequestHeadersValue");
44
+ const WebhookToolApiSchemaConfigInputContentType_1 = require("./WebhookToolApiSchemaConfigInputContentType");
44
45
  const AuthConnectionLocator_1 = require("./AuthConnectionLocator");
45
46
  exports.WebhookToolApiSchemaConfigInput = core.serialization.object({
46
47
  url: core.serialization.string(),
@@ -51,5 +52,6 @@ exports.WebhookToolApiSchemaConfigInput = core.serialization.object({
51
52
  requestHeaders: core.serialization.property("request_headers", core.serialization
52
53
  .record(core.serialization.string(), WebhookToolApiSchemaConfigInputRequestHeadersValue_1.WebhookToolApiSchemaConfigInputRequestHeadersValue)
53
54
  .optional()),
55
+ contentType: core.serialization.property("content_type", WebhookToolApiSchemaConfigInputContentType_1.WebhookToolApiSchemaConfigInputContentType.optional()),
54
56
  authConnection: core.serialization.property("auth_connection", AuthConnectionLocator_1.AuthConnectionLocator.optional()),
55
57
  });
@@ -0,0 +1,7 @@
1
+ import * as serializers from "../index";
2
+ import * as ElevenLabs from "../../api/index";
3
+ import * as core from "../../core";
4
+ export declare const WebhookToolApiSchemaConfigInputContentType: core.serialization.Schema<serializers.WebhookToolApiSchemaConfigInputContentType.Raw, ElevenLabs.WebhookToolApiSchemaConfigInputContentType>;
5
+ export declare namespace WebhookToolApiSchemaConfigInputContentType {
6
+ type Raw = "application/json" | "application/x-www-form-urlencoded";
7
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.WebhookToolApiSchemaConfigInputContentType = void 0;
38
+ const core = __importStar(require("../../core"));
39
+ exports.WebhookToolApiSchemaConfigInputContentType = core.serialization.enum_(["application/json", "application/x-www-form-urlencoded"]);
@@ -5,6 +5,7 @@ import { WebhookToolApiSchemaConfigOutputMethod } from "./WebhookToolApiSchemaCo
5
5
  import { LiteralJsonSchemaProperty } from "./LiteralJsonSchemaProperty";
6
6
  import { QueryParamsJsonSchema } from "./QueryParamsJsonSchema";
7
7
  import { WebhookToolApiSchemaConfigOutputRequestHeadersValue } from "./WebhookToolApiSchemaConfigOutputRequestHeadersValue";
8
+ import { WebhookToolApiSchemaConfigOutputContentType } from "./WebhookToolApiSchemaConfigOutputContentType";
8
9
  import { AuthConnectionLocator } from "./AuthConnectionLocator";
9
10
  export declare const WebhookToolApiSchemaConfigOutput: core.serialization.ObjectSchema<serializers.WebhookToolApiSchemaConfigOutput.Raw, ElevenLabs.WebhookToolApiSchemaConfigOutput>;
10
11
  export declare namespace WebhookToolApiSchemaConfigOutput {
@@ -15,6 +16,7 @@ export declare namespace WebhookToolApiSchemaConfigOutput {
15
16
  query_params_schema?: QueryParamsJsonSchema.Raw | null;
16
17
  request_body_schema?: serializers.ObjectJsonSchemaPropertyOutput.Raw | null;
17
18
  request_headers?: Record<string, WebhookToolApiSchemaConfigOutputRequestHeadersValue.Raw> | null;
19
+ content_type?: WebhookToolApiSchemaConfigOutputContentType.Raw | null;
18
20
  auth_connection?: AuthConnectionLocator.Raw | null;
19
21
  }
20
22
  }
@@ -41,6 +41,7 @@ const WebhookToolApiSchemaConfigOutputMethod_1 = require("./WebhookToolApiSchema
41
41
  const LiteralJsonSchemaProperty_1 = require("./LiteralJsonSchemaProperty");
42
42
  const QueryParamsJsonSchema_1 = require("./QueryParamsJsonSchema");
43
43
  const WebhookToolApiSchemaConfigOutputRequestHeadersValue_1 = require("./WebhookToolApiSchemaConfigOutputRequestHeadersValue");
44
+ const WebhookToolApiSchemaConfigOutputContentType_1 = require("./WebhookToolApiSchemaConfigOutputContentType");
44
45
  const AuthConnectionLocator_1 = require("./AuthConnectionLocator");
45
46
  exports.WebhookToolApiSchemaConfigOutput = core.serialization.object({
46
47
  url: core.serialization.string(),
@@ -51,5 +52,6 @@ exports.WebhookToolApiSchemaConfigOutput = core.serialization.object({
51
52
  requestHeaders: core.serialization.property("request_headers", core.serialization
52
53
  .record(core.serialization.string(), WebhookToolApiSchemaConfigOutputRequestHeadersValue_1.WebhookToolApiSchemaConfigOutputRequestHeadersValue)
53
54
  .optional()),
55
+ contentType: core.serialization.property("content_type", WebhookToolApiSchemaConfigOutputContentType_1.WebhookToolApiSchemaConfigOutputContentType.optional()),
54
56
  authConnection: core.serialization.property("auth_connection", AuthConnectionLocator_1.AuthConnectionLocator.optional()),
55
57
  });
@@ -0,0 +1,7 @@
1
+ import * as serializers from "../index";
2
+ import * as ElevenLabs from "../../api/index";
3
+ import * as core from "../../core";
4
+ export declare const WebhookToolApiSchemaConfigOutputContentType: core.serialization.Schema<serializers.WebhookToolApiSchemaConfigOutputContentType.Raw, ElevenLabs.WebhookToolApiSchemaConfigOutputContentType>;
5
+ export declare namespace WebhookToolApiSchemaConfigOutputContentType {
6
+ type Raw = "application/json" | "application/x-www-form-urlencoded";
7
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.WebhookToolApiSchemaConfigOutputContentType = void 0;
38
+ const core = __importStar(require("../../core"));
39
+ exports.WebhookToolApiSchemaConfigOutputContentType = core.serialization.enum_(["application/json", "application/x-www-form-urlencoded"]);
@@ -516,6 +516,7 @@ export * from "./ProjectSnapshotResponse";
516
516
  export * from "./ProjectSnapshotsResponse";
517
517
  export * from "./ProjectVideoResponseModel";
518
518
  export * from "./ProjectVideoThumbnailSheetResponseModel";
519
+ export * from "./ProjectVoiceResponseModel";
519
520
  export * from "./PromptAgentApiModelInputBackupLlmConfig";
520
521
  export * from "./PromptAgentApiModelInputToolsItem";
521
522
  export * from "./PromptAgentApiModelInput";
@@ -737,9 +738,11 @@ export * from "./WebhookAuthMethodType";
737
738
  export * from "./WebhookEventType";
738
739
  export * from "./WebhookToolApiSchemaConfigInputMethod";
739
740
  export * from "./WebhookToolApiSchemaConfigInputRequestHeadersValue";
741
+ export * from "./WebhookToolApiSchemaConfigInputContentType";
740
742
  export * from "./WebhookToolApiSchemaConfigInput";
741
743
  export * from "./WebhookToolApiSchemaConfigOutputMethod";
742
744
  export * from "./WebhookToolApiSchemaConfigOutputRequestHeadersValue";
745
+ export * from "./WebhookToolApiSchemaConfigOutputContentType";
743
746
  export * from "./WebhookToolApiSchemaConfigOutput";
744
747
  export * from "./WebhookToolConfigInput";
745
748
  export * from "./WebhookToolConfigOutput";
@@ -532,6 +532,7 @@ __exportStar(require("./ProjectSnapshotResponse"), exports);
532
532
  __exportStar(require("./ProjectSnapshotsResponse"), exports);
533
533
  __exportStar(require("./ProjectVideoResponseModel"), exports);
534
534
  __exportStar(require("./ProjectVideoThumbnailSheetResponseModel"), exports);
535
+ __exportStar(require("./ProjectVoiceResponseModel"), exports);
535
536
  __exportStar(require("./PromptAgentApiModelInputBackupLlmConfig"), exports);
536
537
  __exportStar(require("./PromptAgentApiModelInputToolsItem"), exports);
537
538
  __exportStar(require("./PromptAgentApiModelInput"), exports);
@@ -753,9 +754,11 @@ __exportStar(require("./WebhookAuthMethodType"), exports);
753
754
  __exportStar(require("./WebhookEventType"), exports);
754
755
  __exportStar(require("./WebhookToolApiSchemaConfigInputMethod"), exports);
755
756
  __exportStar(require("./WebhookToolApiSchemaConfigInputRequestHeadersValue"), exports);
757
+ __exportStar(require("./WebhookToolApiSchemaConfigInputContentType"), exports);
756
758
  __exportStar(require("./WebhookToolApiSchemaConfigInput"), exports);
757
759
  __exportStar(require("./WebhookToolApiSchemaConfigOutputMethod"), exports);
758
760
  __exportStar(require("./WebhookToolApiSchemaConfigOutputRequestHeadersValue"), exports);
761
+ __exportStar(require("./WebhookToolApiSchemaConfigOutputContentType"), exports);
759
762
  __exportStar(require("./WebhookToolApiSchemaConfigOutput"), exports);
760
763
  __exportStar(require("./WebhookToolConfigInput"), exports);
761
764
  __exportStar(require("./WebhookToolConfigOutput"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v2.23.0";
1
+ export declare const SDK_VERSION = "v2.24.0";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "v2.23.0";
4
+ exports.SDK_VERSION = "v2.24.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevenlabs/elevenlabs-js",
3
- "version": "v2.23.0",
3
+ "version": "v2.24.0",
4
4
  "private": false,
5
5
  "repository": "github:elevenlabs/elevenlabs-js",
6
6
  "license": "MIT",
package/reference.md CHANGED
@@ -7368,6 +7368,69 @@ await client.conversationalAi.mcpServers.get("mcp_server_id");
7368
7368
  </dl>
7369
7369
  </details>
7370
7370
 
7371
+ <details><summary><code>client.conversationalAi.mcpServers.<a href="/src/api/resources/conversationalAi/resources/mcpServers/client/Client.ts">delete</a>(mcpServerId) -> unknown</code></summary>
7372
+ <dl>
7373
+ <dd>
7374
+
7375
+ #### 📝 Description
7376
+
7377
+ <dl>
7378
+ <dd>
7379
+
7380
+ <dl>
7381
+ <dd>
7382
+
7383
+ Delete a specific MCP server configuration from the workspace.
7384
+
7385
+ </dd>
7386
+ </dl>
7387
+ </dd>
7388
+ </dl>
7389
+
7390
+ #### 🔌 Usage
7391
+
7392
+ <dl>
7393
+ <dd>
7394
+
7395
+ <dl>
7396
+ <dd>
7397
+
7398
+ ```typescript
7399
+ await client.conversationalAi.mcpServers.delete("mcp_server_id");
7400
+ ```
7401
+
7402
+ </dd>
7403
+ </dl>
7404
+ </dd>
7405
+ </dl>
7406
+
7407
+ #### ⚙️ Parameters
7408
+
7409
+ <dl>
7410
+ <dd>
7411
+
7412
+ <dl>
7413
+ <dd>
7414
+
7415
+ **mcpServerId:** `string` — ID of the MCP Server.
7416
+
7417
+ </dd>
7418
+ </dl>
7419
+
7420
+ <dl>
7421
+ <dd>
7422
+
7423
+ **requestOptions:** `McpServers.RequestOptions`
7424
+
7425
+ </dd>
7426
+ </dl>
7427
+ </dd>
7428
+ </dl>
7429
+
7430
+ </dd>
7431
+ </dl>
7432
+ </details>
7433
+
7371
7434
  <details><summary><code>client.conversationalAi.mcpServers.<a href="/src/api/resources/conversationalAi/resources/mcpServers/client/Client.ts">update</a>(mcpServerId, { ...params }) -> ElevenLabs.McpServerResponseModel</code></summary>
7372
7435
  <dl>
7373
7436
  <dd>
@@ -3,5 +3,5 @@ import * as ElevenLabs from "../../api/index";
3
3
  import * as core from "../../core";
4
4
  export declare const AsrProvider: core.serialization.Schema<serializers.AsrProvider.Raw, ElevenLabs.AsrProvider>;
5
5
  export declare namespace AsrProvider {
6
- type Raw = "elevenlabs";
6
+ type Raw = "elevenlabs" | "scribe_realtime";
7
7
  }
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.AsrProvider = void 0;
38
38
  const core = __importStar(require("../../core"));
39
- exports.AsrProvider = core.serialization.stringLiteral("elevenlabs");
39
+ exports.AsrProvider = core.serialization.enum_(["elevenlabs", "scribe_realtime"]);
@@ -19,5 +19,6 @@ export declare namespace ConversationSummaryResponseModel {
19
19
  transcript_summary?: string | null;
20
20
  call_summary_title?: string | null;
21
21
  direction?: ConversationSummaryResponseModelDirection.Raw | null;
22
+ rating?: number | null;
22
23
  }
23
24
  }
@@ -52,4 +52,5 @@ exports.ConversationSummaryResponseModel = core.serialization.object({
52
52
  transcriptSummary: core.serialization.property("transcript_summary", core.serialization.string().optional()),
53
53
  callSummaryTitle: core.serialization.property("call_summary_title", core.serialization.string().optional()),
54
54
  direction: ConversationSummaryResponseModelDirection_1.ConversationSummaryResponseModelDirection.optional(),
55
+ rating: core.serialization.number().optional(),
55
56
  });
@@ -15,6 +15,7 @@ import { PronunciationDictionaryVersionResponseModel } from "./PronunciationDict
15
15
  import { PronunciationDictionaryLocatorResponseModel } from "./PronunciationDictionaryLocatorResponseModel";
16
16
  import { ProjectExtendedResponseModelApplyTextNormalization } from "./ProjectExtendedResponseModelApplyTextNormalization";
17
17
  import { ProjectExtendedResponseModelAssetsItem } from "./ProjectExtendedResponseModelAssetsItem";
18
+ import { ProjectVoiceResponseModel } from "./ProjectVoiceResponseModel";
18
19
  export declare const ProjectExtendedResponse: core.serialization.ObjectSchema<serializers.ProjectExtendedResponse.Raw, ElevenLabs.ProjectExtendedResponse>;
19
20
  export declare namespace ProjectExtendedResponse {
20
21
  interface Raw {
@@ -58,5 +59,6 @@ export declare namespace ProjectExtendedResponse {
58
59
  apply_text_normalization: ProjectExtendedResponseModelApplyTextNormalization.Raw;
59
60
  experimental?: Record<string, unknown> | null;
60
61
  assets: ProjectExtendedResponseModelAssetsItem.Raw[];
62
+ voices: ProjectVoiceResponseModel.Raw[];
61
63
  }
62
64
  }
@@ -50,6 +50,7 @@ const PronunciationDictionaryVersionResponseModel_1 = require("./PronunciationDi
50
50
  const PronunciationDictionaryLocatorResponseModel_1 = require("./PronunciationDictionaryLocatorResponseModel");
51
51
  const ProjectExtendedResponseModelApplyTextNormalization_1 = require("./ProjectExtendedResponseModelApplyTextNormalization");
52
52
  const ProjectExtendedResponseModelAssetsItem_1 = require("./ProjectExtendedResponseModelAssetsItem");
53
+ const ProjectVoiceResponseModel_1 = require("./ProjectVoiceResponseModel");
53
54
  exports.ProjectExtendedResponse = core.serialization.object({
54
55
  projectId: core.serialization.property("project_id", core.serialization.string()),
55
56
  name: core.serialization.string(),
@@ -91,4 +92,5 @@ exports.ProjectExtendedResponse = core.serialization.object({
91
92
  applyTextNormalization: core.serialization.property("apply_text_normalization", ProjectExtendedResponseModelApplyTextNormalization_1.ProjectExtendedResponseModelApplyTextNormalization),
92
93
  experimental: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
93
94
  assets: core.serialization.list(ProjectExtendedResponseModelAssetsItem_1.ProjectExtendedResponseModelAssetsItem),
95
+ voices: core.serialization.list(ProjectVoiceResponseModel_1.ProjectVoiceResponseModel),
94
96
  });
@@ -0,0 +1,17 @@
1
+ import * as serializers from "../index";
2
+ import * as ElevenLabs from "../../api/index";
3
+ import * as core from "../../core";
4
+ export declare const ProjectVoiceResponseModel: core.serialization.ObjectSchema<serializers.ProjectVoiceResponseModel.Raw, ElevenLabs.ProjectVoiceResponseModel>;
5
+ export declare namespace ProjectVoiceResponseModel {
6
+ interface Raw {
7
+ voice_id: string;
8
+ alias: string;
9
+ stability: number;
10
+ similarity_boost: number;
11
+ style: number;
12
+ is_pinned: boolean;
13
+ use_speaker_boost: boolean;
14
+ volume_gain: number;
15
+ speed: number;
16
+ }
17
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.ProjectVoiceResponseModel = void 0;
38
+ const core = __importStar(require("../../core"));
39
+ exports.ProjectVoiceResponseModel = core.serialization.object({
40
+ voiceId: core.serialization.property("voice_id", core.serialization.string()),
41
+ alias: core.serialization.string(),
42
+ stability: core.serialization.number(),
43
+ similarityBoost: core.serialization.property("similarity_boost", core.serialization.number()),
44
+ style: core.serialization.number(),
45
+ isPinned: core.serialization.property("is_pinned", core.serialization.boolean()),
46
+ useSpeakerBoost: core.serialization.property("use_speaker_boost", core.serialization.boolean()),
47
+ volumeGain: core.serialization.property("volume_gain", core.serialization.number()),
48
+ speed: core.serialization.number(),
49
+ });
@@ -5,6 +5,7 @@ import { WebhookToolApiSchemaConfigInputMethod } from "./WebhookToolApiSchemaCon
5
5
  import { LiteralJsonSchemaProperty } from "./LiteralJsonSchemaProperty";
6
6
  import { QueryParamsJsonSchema } from "./QueryParamsJsonSchema";
7
7
  import { WebhookToolApiSchemaConfigInputRequestHeadersValue } from "./WebhookToolApiSchemaConfigInputRequestHeadersValue";
8
+ import { WebhookToolApiSchemaConfigInputContentType } from "./WebhookToolApiSchemaConfigInputContentType";
8
9
  import { AuthConnectionLocator } from "./AuthConnectionLocator";
9
10
  export declare const WebhookToolApiSchemaConfigInput: core.serialization.ObjectSchema<serializers.WebhookToolApiSchemaConfigInput.Raw, ElevenLabs.WebhookToolApiSchemaConfigInput>;
10
11
  export declare namespace WebhookToolApiSchemaConfigInput {
@@ -15,6 +16,7 @@ export declare namespace WebhookToolApiSchemaConfigInput {
15
16
  query_params_schema?: QueryParamsJsonSchema.Raw | null;
16
17
  request_body_schema?: serializers.ObjectJsonSchemaPropertyInput.Raw | null;
17
18
  request_headers?: Record<string, WebhookToolApiSchemaConfigInputRequestHeadersValue.Raw> | null;
19
+ content_type?: WebhookToolApiSchemaConfigInputContentType.Raw | null;
18
20
  auth_connection?: AuthConnectionLocator.Raw | null;
19
21
  }
20
22
  }
@@ -41,6 +41,7 @@ const WebhookToolApiSchemaConfigInputMethod_1 = require("./WebhookToolApiSchemaC
41
41
  const LiteralJsonSchemaProperty_1 = require("./LiteralJsonSchemaProperty");
42
42
  const QueryParamsJsonSchema_1 = require("./QueryParamsJsonSchema");
43
43
  const WebhookToolApiSchemaConfigInputRequestHeadersValue_1 = require("./WebhookToolApiSchemaConfigInputRequestHeadersValue");
44
+ const WebhookToolApiSchemaConfigInputContentType_1 = require("./WebhookToolApiSchemaConfigInputContentType");
44
45
  const AuthConnectionLocator_1 = require("./AuthConnectionLocator");
45
46
  exports.WebhookToolApiSchemaConfigInput = core.serialization.object({
46
47
  url: core.serialization.string(),
@@ -51,5 +52,6 @@ exports.WebhookToolApiSchemaConfigInput = core.serialization.object({
51
52
  requestHeaders: core.serialization.property("request_headers", core.serialization
52
53
  .record(core.serialization.string(), WebhookToolApiSchemaConfigInputRequestHeadersValue_1.WebhookToolApiSchemaConfigInputRequestHeadersValue)
53
54
  .optional()),
55
+ contentType: core.serialization.property("content_type", WebhookToolApiSchemaConfigInputContentType_1.WebhookToolApiSchemaConfigInputContentType.optional()),
54
56
  authConnection: core.serialization.property("auth_connection", AuthConnectionLocator_1.AuthConnectionLocator.optional()),
55
57
  });
@@ -0,0 +1,7 @@
1
+ import * as serializers from "../index";
2
+ import * as ElevenLabs from "../../api/index";
3
+ import * as core from "../../core";
4
+ export declare const WebhookToolApiSchemaConfigInputContentType: core.serialization.Schema<serializers.WebhookToolApiSchemaConfigInputContentType.Raw, ElevenLabs.WebhookToolApiSchemaConfigInputContentType>;
5
+ export declare namespace WebhookToolApiSchemaConfigInputContentType {
6
+ type Raw = "application/json" | "application/x-www-form-urlencoded";
7
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.WebhookToolApiSchemaConfigInputContentType = void 0;
38
+ const core = __importStar(require("../../core"));
39
+ exports.WebhookToolApiSchemaConfigInputContentType = core.serialization.enum_(["application/json", "application/x-www-form-urlencoded"]);
@@ -5,6 +5,7 @@ import { WebhookToolApiSchemaConfigOutputMethod } from "./WebhookToolApiSchemaCo
5
5
  import { LiteralJsonSchemaProperty } from "./LiteralJsonSchemaProperty";
6
6
  import { QueryParamsJsonSchema } from "./QueryParamsJsonSchema";
7
7
  import { WebhookToolApiSchemaConfigOutputRequestHeadersValue } from "./WebhookToolApiSchemaConfigOutputRequestHeadersValue";
8
+ import { WebhookToolApiSchemaConfigOutputContentType } from "./WebhookToolApiSchemaConfigOutputContentType";
8
9
  import { AuthConnectionLocator } from "./AuthConnectionLocator";
9
10
  export declare const WebhookToolApiSchemaConfigOutput: core.serialization.ObjectSchema<serializers.WebhookToolApiSchemaConfigOutput.Raw, ElevenLabs.WebhookToolApiSchemaConfigOutput>;
10
11
  export declare namespace WebhookToolApiSchemaConfigOutput {
@@ -15,6 +16,7 @@ export declare namespace WebhookToolApiSchemaConfigOutput {
15
16
  query_params_schema?: QueryParamsJsonSchema.Raw | null;
16
17
  request_body_schema?: serializers.ObjectJsonSchemaPropertyOutput.Raw | null;
17
18
  request_headers?: Record<string, WebhookToolApiSchemaConfigOutputRequestHeadersValue.Raw> | null;
19
+ content_type?: WebhookToolApiSchemaConfigOutputContentType.Raw | null;
18
20
  auth_connection?: AuthConnectionLocator.Raw | null;
19
21
  }
20
22
  }