@elevenlabs/elevenlabs-js 2.19.0 → 2.20.1

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 (220) hide show
  1. package/Client.js +2 -2
  2. package/api/resources/conversationalAi/resources/agents/client/Client.d.ts +3 -5
  3. package/api/resources/conversationalAi/resources/agents/client/Client.js +11 -15
  4. package/api/resources/conversationalAi/resources/agents/client/requests/AgentsListRequest.d.ts +3 -0
  5. package/api/resources/conversationalAi/resources/agents/client/requests/index.d.ts +0 -1
  6. package/api/resources/studio/client/Client.d.ts +1 -0
  7. package/api/resources/studio/client/Client.js +18 -2
  8. package/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +3 -0
  9. package/api/types/AgentDefinitionSource.d.ts +7 -0
  10. package/api/types/AgentDefinitionSource.js +10 -0
  11. package/api/types/AgentSummaryResponseModel.d.ts +2 -0
  12. package/api/types/ClientToolConfigInput.d.ts +2 -0
  13. package/api/types/ClientToolConfigOutput.d.ts +2 -0
  14. package/api/types/ConversationHistoryMetadataCommonModel.d.ts +3 -0
  15. package/api/types/CreateAgentResponseModel.d.ts +0 -4
  16. package/api/types/GetAgentResponseModel.d.ts +0 -2
  17. package/api/types/ProjectExtendedResponse.d.ts +2 -0
  18. package/api/types/ProjectResponse.d.ts +2 -0
  19. package/api/types/ToolExecutionMode.d.ts +6 -0
  20. package/api/types/ToolExecutionMode.js +9 -0
  21. package/api/types/WebhookToolConfigInput.d.ts +2 -0
  22. package/api/types/WebhookToolConfigOutput.d.ts +2 -0
  23. package/api/types/WhatsAppConversationInfo.d.ts +4 -0
  24. package/api/types/index.d.ts +3 -10
  25. package/api/types/index.js +3 -10
  26. package/dist/Client.js +2 -2
  27. package/dist/api/resources/conversationalAi/resources/agents/client/Client.d.ts +3 -5
  28. package/dist/api/resources/conversationalAi/resources/agents/client/Client.js +11 -15
  29. package/dist/api/resources/conversationalAi/resources/agents/client/requests/AgentsListRequest.d.ts +3 -0
  30. package/dist/api/resources/conversationalAi/resources/agents/client/requests/index.d.ts +0 -1
  31. package/dist/api/resources/studio/client/Client.d.ts +1 -0
  32. package/dist/api/resources/studio/client/Client.js +18 -2
  33. package/dist/api/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +3 -0
  34. package/dist/api/types/AgentDefinitionSource.d.ts +7 -0
  35. package/dist/api/types/AgentDefinitionSource.js +10 -0
  36. package/dist/api/types/AgentSummaryResponseModel.d.ts +2 -0
  37. package/dist/api/types/ClientToolConfigInput.d.ts +2 -0
  38. package/dist/api/types/ClientToolConfigOutput.d.ts +2 -0
  39. package/dist/api/types/ConversationHistoryMetadataCommonModel.d.ts +3 -0
  40. package/dist/api/types/CreateAgentResponseModel.d.ts +0 -4
  41. package/dist/api/types/GetAgentResponseModel.d.ts +0 -2
  42. package/dist/api/types/ProjectExtendedResponse.d.ts +2 -0
  43. package/dist/api/types/ProjectResponse.d.ts +2 -0
  44. package/dist/api/types/ToolExecutionMode.d.ts +6 -0
  45. package/dist/api/types/ToolExecutionMode.js +9 -0
  46. package/dist/api/types/WebhookToolConfigInput.d.ts +2 -0
  47. package/dist/api/types/WebhookToolConfigOutput.d.ts +2 -0
  48. package/dist/api/types/WhatsAppConversationInfo.d.ts +4 -0
  49. package/dist/api/types/index.d.ts +3 -10
  50. package/dist/api/types/index.js +3 -10
  51. package/dist/serialization/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +1 -1
  52. package/dist/serialization/types/AgentDefinitionSource.d.ts +7 -0
  53. package/dist/serialization/types/{WhatsAppChangeMessages.js → AgentDefinitionSource.js} +2 -2
  54. package/dist/serialization/types/AgentSummaryResponseModel.d.ts +1 -0
  55. package/dist/serialization/types/AgentSummaryResponseModel.js +1 -0
  56. package/dist/serialization/types/ClientToolConfigInput.d.ts +2 -0
  57. package/dist/serialization/types/ClientToolConfigInput.js +2 -0
  58. package/dist/serialization/types/ClientToolConfigOutput.d.ts +2 -0
  59. package/dist/serialization/types/ClientToolConfigOutput.js +2 -0
  60. package/dist/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +5 -0
  61. package/dist/serialization/types/ConversationHistoryMetadataCommonModel.js +5 -0
  62. package/dist/serialization/types/CreateAgentResponseModel.d.ts +0 -2
  63. package/dist/serialization/types/CreateAgentResponseModel.js +0 -2
  64. package/dist/serialization/types/GetAgentResponseModel.d.ts +0 -1
  65. package/dist/serialization/types/GetAgentResponseModel.js +0 -1
  66. package/dist/serialization/types/ProjectExtendedResponse.d.ts +1 -0
  67. package/dist/serialization/types/ProjectExtendedResponse.js +1 -0
  68. package/dist/serialization/types/ProjectResponse.d.ts +1 -0
  69. package/dist/serialization/types/ProjectResponse.js +1 -0
  70. package/dist/serialization/types/ToolExecutionMode.d.ts +7 -0
  71. package/{serialization/types/WhatsAppCallDirection.js → dist/serialization/types/ToolExecutionMode.js} +2 -2
  72. package/dist/serialization/types/WebhookToolConfigInput.d.ts +2 -0
  73. package/dist/serialization/types/WebhookToolConfigInput.js +2 -0
  74. package/dist/serialization/types/WebhookToolConfigOutput.d.ts +2 -0
  75. package/dist/serialization/types/WebhookToolConfigOutput.js +2 -0
  76. package/dist/serialization/types/WhatsAppConversationInfo.d.ts +10 -0
  77. package/dist/serialization/types/{WhatsAppMetadata.js → WhatsAppConversationInfo.js} +4 -3
  78. package/dist/serialization/types/index.d.ts +3 -10
  79. package/dist/serialization/types/index.js +3 -10
  80. package/dist/version.d.ts +1 -1
  81. package/dist/version.js +1 -1
  82. package/dist/wrapper/ElevenLabsClient.d.ts +3 -0
  83. package/dist/wrapper/ElevenLabsClient.js +8 -1
  84. package/dist/wrapper/index.d.ts +2 -0
  85. package/dist/wrapper/index.js +8 -1
  86. package/dist/wrapper/music.d.ts +74 -3
  87. package/dist/wrapper/music.js +127 -14
  88. package/dist/wrapper/realtime/connection.d.ts +179 -0
  89. package/dist/wrapper/realtime/connection.js +260 -0
  90. package/dist/wrapper/realtime/index.d.ts +2 -0
  91. package/dist/wrapper/realtime/index.js +10 -0
  92. package/dist/wrapper/realtime/scribe.d.ts +112 -0
  93. package/dist/wrapper/realtime/scribe.js +265 -0
  94. package/dist/wrapper/speechToText.d.ts +6 -0
  95. package/dist/wrapper/speechToText.js +14 -0
  96. package/package.json +11 -10
  97. package/reference.md +4 -12
  98. package/serialization/resources/studio/client/requests/BodyCreatePodcastV1StudioPodcastsPost.d.ts +1 -1
  99. package/serialization/types/AgentDefinitionSource.d.ts +7 -0
  100. package/serialization/types/{WhatsAppChangeMessages.js → AgentDefinitionSource.js} +2 -2
  101. package/serialization/types/AgentSummaryResponseModel.d.ts +1 -0
  102. package/serialization/types/AgentSummaryResponseModel.js +1 -0
  103. package/serialization/types/ClientToolConfigInput.d.ts +2 -0
  104. package/serialization/types/ClientToolConfigInput.js +2 -0
  105. package/serialization/types/ClientToolConfigOutput.d.ts +2 -0
  106. package/serialization/types/ClientToolConfigOutput.js +2 -0
  107. package/serialization/types/ConversationHistoryMetadataCommonModel.d.ts +5 -0
  108. package/serialization/types/ConversationHistoryMetadataCommonModel.js +5 -0
  109. package/serialization/types/CreateAgentResponseModel.d.ts +0 -2
  110. package/serialization/types/CreateAgentResponseModel.js +0 -2
  111. package/serialization/types/GetAgentResponseModel.d.ts +0 -1
  112. package/serialization/types/GetAgentResponseModel.js +0 -1
  113. package/serialization/types/ProjectExtendedResponse.d.ts +1 -0
  114. package/serialization/types/ProjectExtendedResponse.js +1 -0
  115. package/serialization/types/ProjectResponse.d.ts +1 -0
  116. package/serialization/types/ProjectResponse.js +1 -0
  117. package/serialization/types/ToolExecutionMode.d.ts +7 -0
  118. package/{dist/serialization/types/WhatsAppCallDirection.js → serialization/types/ToolExecutionMode.js} +2 -2
  119. package/serialization/types/WebhookToolConfigInput.d.ts +2 -0
  120. package/serialization/types/WebhookToolConfigInput.js +2 -0
  121. package/serialization/types/WebhookToolConfigOutput.d.ts +2 -0
  122. package/serialization/types/WebhookToolConfigOutput.js +2 -0
  123. package/serialization/types/WhatsAppConversationInfo.d.ts +10 -0
  124. package/{dist/serialization/types/WhatsAppChangeCalls.js → serialization/types/WhatsAppConversationInfo.js} +4 -4
  125. package/serialization/types/index.d.ts +3 -10
  126. package/serialization/types/index.js +3 -10
  127. package/version.d.ts +1 -1
  128. package/version.js +1 -1
  129. package/wrapper/ElevenLabsClient.d.ts +3 -0
  130. package/wrapper/ElevenLabsClient.js +8 -1
  131. package/wrapper/index.d.ts +2 -0
  132. package/wrapper/index.js +8 -1
  133. package/wrapper/music.d.ts +74 -3
  134. package/wrapper/music.js +127 -14
  135. package/wrapper/realtime/connection.d.ts +179 -0
  136. package/wrapper/realtime/connection.js +260 -0
  137. package/wrapper/realtime/index.d.ts +2 -0
  138. package/wrapper/realtime/index.js +10 -0
  139. package/wrapper/realtime/scribe.d.ts +112 -0
  140. package/wrapper/realtime/scribe.js +265 -0
  141. package/wrapper/speechToText.d.ts +6 -0
  142. package/wrapper/speechToText.js +14 -0
  143. package/api/resources/conversationalAi/resources/agents/client/requests/AgentsGetRequest.d.ts +0 -10
  144. package/api/types/WhatsAppBusinessAccount.d.ts +0 -5
  145. package/api/types/WhatsAppBusinessAccountChangesItem.d.ts +0 -10
  146. package/api/types/WhatsAppBusinessAccountChangesItem.js +0 -3
  147. package/api/types/WhatsAppCall.d.ts +0 -10
  148. package/api/types/WhatsAppCall.js +0 -3
  149. package/api/types/WhatsAppCallDirection.d.ts +0 -5
  150. package/api/types/WhatsAppCallDirection.js +0 -8
  151. package/api/types/WhatsAppCalls.d.ts +0 -5
  152. package/api/types/WhatsAppCalls.js +0 -3
  153. package/api/types/WhatsAppChangeCalls.d.ts +0 -4
  154. package/api/types/WhatsAppChangeCalls.js +0 -3
  155. package/api/types/WhatsAppChangeMessages.d.ts +0 -2
  156. package/api/types/WhatsAppChangeMessages.js +0 -3
  157. package/api/types/WhatsAppEventRequest.d.ts +0 -5
  158. package/api/types/WhatsAppEventRequest.js +0 -3
  159. package/api/types/WhatsAppMetadata.d.ts +0 -3
  160. package/api/types/WhatsAppMetadata.js +0 -3
  161. package/api/types/WhatsAppSession.d.ts +0 -4
  162. package/api/types/WhatsAppSession.js +0 -3
  163. package/dist/api/resources/conversationalAi/resources/agents/client/requests/AgentsGetRequest.d.ts +0 -10
  164. package/dist/api/resources/conversationalAi/resources/agents/client/requests/AgentsGetRequest.js +0 -3
  165. package/dist/api/types/WhatsAppBusinessAccount.d.ts +0 -5
  166. package/dist/api/types/WhatsAppBusinessAccount.js +0 -3
  167. package/dist/api/types/WhatsAppBusinessAccountChangesItem.d.ts +0 -10
  168. package/dist/api/types/WhatsAppBusinessAccountChangesItem.js +0 -3
  169. package/dist/api/types/WhatsAppCall.d.ts +0 -10
  170. package/dist/api/types/WhatsAppCall.js +0 -3
  171. package/dist/api/types/WhatsAppCallDirection.d.ts +0 -5
  172. package/dist/api/types/WhatsAppCallDirection.js +0 -8
  173. package/dist/api/types/WhatsAppCalls.d.ts +0 -5
  174. package/dist/api/types/WhatsAppCalls.js +0 -3
  175. package/dist/api/types/WhatsAppChangeCalls.d.ts +0 -4
  176. package/dist/api/types/WhatsAppChangeCalls.js +0 -3
  177. package/dist/api/types/WhatsAppChangeMessages.d.ts +0 -2
  178. package/dist/api/types/WhatsAppChangeMessages.js +0 -3
  179. package/dist/api/types/WhatsAppEventRequest.d.ts +0 -5
  180. package/dist/api/types/WhatsAppEventRequest.js +0 -3
  181. package/dist/api/types/WhatsAppMetadata.d.ts +0 -3
  182. package/dist/api/types/WhatsAppMetadata.js +0 -3
  183. package/dist/api/types/WhatsAppSession.d.ts +0 -4
  184. package/dist/api/types/WhatsAppSession.js +0 -3
  185. package/dist/serialization/types/WhatsAppBusinessAccount.d.ts +0 -11
  186. package/dist/serialization/types/WhatsAppBusinessAccount.js +0 -43
  187. package/dist/serialization/types/WhatsAppBusinessAccountChangesItem.d.ts +0 -15
  188. package/dist/serialization/types/WhatsAppBusinessAccountChangesItem.js +0 -49
  189. package/dist/serialization/types/WhatsAppCall.d.ts +0 -17
  190. package/dist/serialization/types/WhatsAppCall.js +0 -49
  191. package/dist/serialization/types/WhatsAppCallDirection.d.ts +0 -7
  192. package/dist/serialization/types/WhatsAppCalls.d.ts +0 -12
  193. package/dist/serialization/types/WhatsAppCalls.js +0 -44
  194. package/dist/serialization/types/WhatsAppChangeCalls.d.ts +0 -10
  195. package/dist/serialization/types/WhatsAppChangeMessages.d.ts +0 -8
  196. package/dist/serialization/types/WhatsAppEventRequest.d.ts +0 -11
  197. package/dist/serialization/types/WhatsAppEventRequest.js +0 -43
  198. package/dist/serialization/types/WhatsAppMetadata.d.ts +0 -9
  199. package/dist/serialization/types/WhatsAppSession.d.ts +0 -10
  200. package/dist/serialization/types/WhatsAppSession.js +0 -42
  201. package/serialization/types/WhatsAppBusinessAccount.d.ts +0 -11
  202. package/serialization/types/WhatsAppBusinessAccount.js +0 -43
  203. package/serialization/types/WhatsAppBusinessAccountChangesItem.d.ts +0 -15
  204. package/serialization/types/WhatsAppBusinessAccountChangesItem.js +0 -49
  205. package/serialization/types/WhatsAppCall.d.ts +0 -17
  206. package/serialization/types/WhatsAppCall.js +0 -49
  207. package/serialization/types/WhatsAppCallDirection.d.ts +0 -7
  208. package/serialization/types/WhatsAppCalls.d.ts +0 -12
  209. package/serialization/types/WhatsAppCalls.js +0 -44
  210. package/serialization/types/WhatsAppChangeCalls.d.ts +0 -10
  211. package/serialization/types/WhatsAppChangeCalls.js +0 -42
  212. package/serialization/types/WhatsAppChangeMessages.d.ts +0 -8
  213. package/serialization/types/WhatsAppEventRequest.d.ts +0 -11
  214. package/serialization/types/WhatsAppEventRequest.js +0 -43
  215. package/serialization/types/WhatsAppMetadata.d.ts +0 -9
  216. package/serialization/types/WhatsAppMetadata.js +0 -41
  217. package/serialization/types/WhatsAppSession.d.ts +0 -10
  218. package/serialization/types/WhatsAppSession.js +0 -42
  219. /package/api/{resources/conversationalAi/resources/agents/client/requests/AgentsGetRequest.js → types/WhatsAppConversationInfo.js} +0 -0
  220. /package/{api/types/WhatsAppBusinessAccount.js → dist/api/types/WhatsAppConversationInfo.js} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevenlabs/elevenlabs-js",
3
- "version": "v2.19.0",
3
+ "version": "v2.20.1",
4
4
  "private": false,
5
5
  "repository": "github:elevenlabs/elevenlabs-js",
6
6
  "license": "MIT",
@@ -15,24 +15,25 @@
15
15
  "test:wire": "jest --selectProjects wire"
16
16
  },
17
17
  "dependencies": {
18
+ "command-exists": "^1.2.9",
18
19
  "node-fetch": "^2.7.0",
19
- "command-exists": "^1.2.9"
20
+ "ws": "^8.18.3"
20
21
  },
21
22
  "devDependencies": {
22
- "@types/node-fetch": "^2.6.12",
23
- "webpack": "^5.97.1",
24
- "ts-loader": "^9.5.1",
25
- "jest": "^29.7.0",
26
23
  "@jest/globals": "^29.7.0",
24
+ "@types/command-exists": "^1.2.3",
27
25
  "@types/jest": "^29.5.5",
28
- "ts-jest": "^29.1.1",
26
+ "@types/node": "^18.19.70",
27
+ "@types/node-fetch": "^2.6.12",
28
+ "@types/ws": "^8.18.1",
29
+ "jest": "^29.7.0",
29
30
  "jest-environment-jsdom": "^29.7.0",
30
31
  "msw": "2.11.2",
31
- "@types/node": "^18.19.70",
32
32
  "prettier": "^3.4.2",
33
+ "ts-jest": "^29.1.1",
34
+ "ts-loader": "^9.5.1",
33
35
  "typescript": "~5.7.2",
34
- "@types/command-exists": "^1.2.3",
35
- "@types/ws": "^8.18.1"
36
+ "webpack": "^5.97.1"
36
37
  },
37
38
  "browser": {
38
39
  "fs": false,
package/reference.md CHANGED
@@ -2074,6 +2074,7 @@ Create and auto-convert a podcast project. Currently, the LLM cost is covered by
2074
2074
 
2075
2075
  ```typescript
2076
2076
  await client.studio.createPodcast({
2077
+ safetyIdentifier: "safety-identifier",
2077
2078
  modelId: "eleven_multilingual_v2",
2078
2079
  mode: {
2079
2080
  type: "conversation",
@@ -4334,7 +4335,7 @@ await client.conversationalAi.agents.create({
4334
4335
  </dl>
4335
4336
  </details>
4336
4337
 
4337
- <details><summary><code>client.conversationalAi.agents.<a href="/src/api/resources/conversationalAi/resources/agents/client/Client.ts">get</a>(agentId, { ...params }) -> ElevenLabs.GetAgentResponseModel</code></summary>
4338
+ <details><summary><code>client.conversationalAi.agents.<a href="/src/api/resources/conversationalAi/resources/agents/client/Client.ts">get</a>(agentId) -> ElevenLabs.GetAgentResponseModel</code></summary>
4338
4339
  <dl>
4339
4340
  <dd>
4340
4341
 
@@ -4362,9 +4363,7 @@ Retrieve config for an agent
4362
4363
  <dd>
4363
4364
 
4364
4365
  ```typescript
4365
- await client.conversationalAi.agents.get("agent_3701k3ttaq12ewp8b7qv5rfyszkz", {
4366
- versionId: "version_id",
4367
- });
4366
+ await client.conversationalAi.agents.get("agent_3701k3ttaq12ewp8b7qv5rfyszkz");
4368
4367
  ```
4369
4368
 
4370
4369
  </dd>
@@ -4388,14 +4387,6 @@ await client.conversationalAi.agents.get("agent_3701k3ttaq12ewp8b7qv5rfyszkz", {
4388
4387
  <dl>
4389
4388
  <dd>
4390
4389
 
4391
- **request:** `ElevenLabs.conversationalAi.AgentsGetRequest`
4392
-
4393
- </dd>
4394
- </dl>
4395
-
4396
- <dl>
4397
- <dd>
4398
-
4399
4390
  **requestOptions:** `Agents.RequestOptions`
4400
4391
 
4401
4392
  </dd>
@@ -4572,6 +4563,7 @@ Returns a list of your agents and their metadata.
4572
4563
  await client.conversationalAi.agents.list({
4573
4564
  pageSize: 1,
4574
4565
  search: "search",
4566
+ archived: true,
4575
4567
  sortDirection: "asc",
4576
4568
  sortBy: "name",
4577
4569
  cursor: "cursor",
@@ -6,7 +6,7 @@ import { BodyCreatePodcastV1StudioPodcastsPostSource } from "../../types/BodyCre
6
6
  import { BodyCreatePodcastV1StudioPodcastsPostQualityPreset } from "../../types/BodyCreatePodcastV1StudioPodcastsPostQualityPreset";
7
7
  import { BodyCreatePodcastV1StudioPodcastsPostDurationScale } from "../../types/BodyCreatePodcastV1StudioPodcastsPostDurationScale";
8
8
  import { BodyCreatePodcastV1StudioPodcastsPostApplyTextNormalization } from "../../types/BodyCreatePodcastV1StudioPodcastsPostApplyTextNormalization";
9
- export declare const BodyCreatePodcastV1StudioPodcastsPost: core.serialization.Schema<serializers.BodyCreatePodcastV1StudioPodcastsPost.Raw, ElevenLabs.BodyCreatePodcastV1StudioPodcastsPost>;
9
+ export declare const BodyCreatePodcastV1StudioPodcastsPost: core.serialization.Schema<serializers.BodyCreatePodcastV1StudioPodcastsPost.Raw, Omit<ElevenLabs.BodyCreatePodcastV1StudioPodcastsPost, "safetyIdentifier">>;
10
10
  export declare namespace BodyCreatePodcastV1StudioPodcastsPost {
11
11
  interface Raw {
12
12
  model_id: string;
@@ -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 AgentDefinitionSource: core.serialization.Schema<serializers.AgentDefinitionSource.Raw, ElevenLabs.AgentDefinitionSource>;
5
+ export declare namespace AgentDefinitionSource {
6
+ type Raw = "cli" | "ui" | "api" | "unknown";
7
+ }
@@ -34,6 +34,6 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.WhatsAppChangeMessages = void 0;
37
+ exports.AgentDefinitionSource = void 0;
38
38
  const core = __importStar(require("../../core"));
39
- exports.WhatsAppChangeMessages = core.serialization.object({});
39
+ exports.AgentDefinitionSource = core.serialization.enum_(["cli", "ui", "api", "unknown"]);
@@ -11,5 +11,6 @@ export declare namespace AgentSummaryResponseModel {
11
11
  created_at_unix_secs: number;
12
12
  access_info: ResourceAccessInfo.Raw;
13
13
  last_call_time_unix_secs?: number | null;
14
+ archived?: boolean | null;
14
15
  }
15
16
  }
@@ -44,4 +44,5 @@ exports.AgentSummaryResponseModel = core.serialization.object({
44
44
  createdAtUnixSecs: core.serialization.property("created_at_unix_secs", core.serialization.number()),
45
45
  accessInfo: core.serialization.property("access_info", ResourceAccessInfo_1.ResourceAccessInfo),
46
46
  lastCallTimeUnixSecs: core.serialization.property("last_call_time_unix_secs", core.serialization.number().optional()),
47
+ archived: core.serialization.boolean().optional(),
47
48
  });
@@ -3,6 +3,7 @@ import * as ElevenLabs from "../../api/index";
3
3
  import * as core from "../../core";
4
4
  import { DynamicVariableAssignment } from "./DynamicVariableAssignment";
5
5
  import { DynamicVariablesConfig } from "./DynamicVariablesConfig";
6
+ import { ToolExecutionMode } from "./ToolExecutionMode";
6
7
  export declare const ClientToolConfigInput: core.serialization.ObjectSchema<serializers.ClientToolConfigInput.Raw, ElevenLabs.ClientToolConfigInput>;
7
8
  export declare namespace ClientToolConfigInput {
8
9
  interface Raw {
@@ -15,5 +16,6 @@ export declare namespace ClientToolConfigInput {
15
16
  parameters?: serializers.ObjectJsonSchemaPropertyInput.Raw | null;
16
17
  expects_response?: boolean | null;
17
18
  dynamic_variables?: DynamicVariablesConfig.Raw | null;
19
+ execution_mode?: ToolExecutionMode.Raw | null;
18
20
  }
19
21
  }
@@ -39,6 +39,7 @@ const serializers = __importStar(require("../index"));
39
39
  const core = __importStar(require("../../core"));
40
40
  const DynamicVariableAssignment_1 = require("./DynamicVariableAssignment");
41
41
  const DynamicVariablesConfig_1 = require("./DynamicVariablesConfig");
42
+ const ToolExecutionMode_1 = require("./ToolExecutionMode");
42
43
  exports.ClientToolConfigInput = core.serialization.object({
43
44
  name: core.serialization.string(),
44
45
  description: core.serialization.string(),
@@ -49,4 +50,5 @@ exports.ClientToolConfigInput = core.serialization.object({
49
50
  parameters: core.serialization.lazyObject(() => serializers.ObjectJsonSchemaPropertyInput).optional(),
50
51
  expectsResponse: core.serialization.property("expects_response", core.serialization.boolean().optional()),
51
52
  dynamicVariables: core.serialization.property("dynamic_variables", DynamicVariablesConfig_1.DynamicVariablesConfig.optional()),
53
+ executionMode: core.serialization.property("execution_mode", ToolExecutionMode_1.ToolExecutionMode.optional()),
52
54
  });
@@ -3,6 +3,7 @@ import * as ElevenLabs from "../../api/index";
3
3
  import * as core from "../../core";
4
4
  import { DynamicVariableAssignment } from "./DynamicVariableAssignment";
5
5
  import { DynamicVariablesConfig } from "./DynamicVariablesConfig";
6
+ import { ToolExecutionMode } from "./ToolExecutionMode";
6
7
  export declare const ClientToolConfigOutput: core.serialization.ObjectSchema<serializers.ClientToolConfigOutput.Raw, ElevenLabs.ClientToolConfigOutput>;
7
8
  export declare namespace ClientToolConfigOutput {
8
9
  interface Raw {
@@ -15,5 +16,6 @@ export declare namespace ClientToolConfigOutput {
15
16
  parameters?: serializers.ObjectJsonSchemaPropertyOutput.Raw | null;
16
17
  expects_response?: boolean | null;
17
18
  dynamic_variables?: DynamicVariablesConfig.Raw | null;
19
+ execution_mode?: ToolExecutionMode.Raw | null;
18
20
  }
19
21
  }
@@ -39,6 +39,7 @@ const serializers = __importStar(require("../index"));
39
39
  const core = __importStar(require("../../core"));
40
40
  const DynamicVariableAssignment_1 = require("./DynamicVariableAssignment");
41
41
  const DynamicVariablesConfig_1 = require("./DynamicVariablesConfig");
42
+ const ToolExecutionMode_1 = require("./ToolExecutionMode");
42
43
  exports.ClientToolConfigOutput = core.serialization.object({
43
44
  name: core.serialization.string(),
44
45
  description: core.serialization.string(),
@@ -49,4 +50,5 @@ exports.ClientToolConfigOutput = core.serialization.object({
49
50
  parameters: core.serialization.lazyObject(() => serializers.ObjectJsonSchemaPropertyOutput).optional(),
50
51
  expectsResponse: core.serialization.property("expects_response", core.serialization.boolean().optional()),
51
52
  dynamicVariables: core.serialization.property("dynamic_variables", DynamicVariablesConfig_1.DynamicVariablesConfig.optional()),
53
+ executionMode: core.serialization.property("execution_mode", ToolExecutionMode_1.ToolExecutionMode.optional()),
52
54
  });
@@ -14,6 +14,8 @@ import { ConversationHistoryElevenAssistantCommonModel } from "./ConversationHis
14
14
  import { ConversationInitiationSource } from "./ConversationInitiationSource";
15
15
  import { ConversationHistoryMetadataCommonModelInitiationTrigger } from "./ConversationHistoryMetadataCommonModelInitiationTrigger";
16
16
  import { AsyncConversationMetadata } from "./AsyncConversationMetadata";
17
+ import { WhatsAppConversationInfo } from "./WhatsAppConversationInfo";
18
+ import { AgentDefinitionSource } from "./AgentDefinitionSource";
17
19
  export declare const ConversationHistoryMetadataCommonModel: core.serialization.ObjectSchema<serializers.ConversationHistoryMetadataCommonModel.Raw, ElevenLabs.ConversationHistoryMetadataCommonModel>;
18
20
  export declare namespace ConversationHistoryMetadataCommonModel {
19
21
  interface Raw {
@@ -40,5 +42,8 @@ export declare namespace ConversationHistoryMetadataCommonModel {
40
42
  timezone?: string | null;
41
43
  initiation_trigger?: ConversationHistoryMetadataCommonModelInitiationTrigger.Raw | null;
42
44
  async_metadata?: AsyncConversationMetadata.Raw | null;
45
+ whatsapp?: WhatsAppConversationInfo.Raw | null;
46
+ agent_created_from?: AgentDefinitionSource.Raw | null;
47
+ agent_last_updated_from?: AgentDefinitionSource.Raw | null;
43
48
  }
44
49
  }
@@ -49,6 +49,8 @@ const ConversationHistoryElevenAssistantCommonModel_1 = require("./ConversationH
49
49
  const ConversationInitiationSource_1 = require("./ConversationInitiationSource");
50
50
  const ConversationHistoryMetadataCommonModelInitiationTrigger_1 = require("./ConversationHistoryMetadataCommonModelInitiationTrigger");
51
51
  const AsyncConversationMetadata_1 = require("./AsyncConversationMetadata");
52
+ const WhatsAppConversationInfo_1 = require("./WhatsAppConversationInfo");
53
+ const AgentDefinitionSource_1 = require("./AgentDefinitionSource");
52
54
  exports.ConversationHistoryMetadataCommonModel = core.serialization.object({
53
55
  startTimeUnixSecs: core.serialization.property("start_time_unix_secs", core.serialization.number()),
54
56
  acceptedTimeUnixSecs: core.serialization.property("accepted_time_unix_secs", core.serialization.number().optional()),
@@ -73,4 +75,7 @@ exports.ConversationHistoryMetadataCommonModel = core.serialization.object({
73
75
  timezone: core.serialization.string().optional(),
74
76
  initiationTrigger: core.serialization.property("initiation_trigger", ConversationHistoryMetadataCommonModelInitiationTrigger_1.ConversationHistoryMetadataCommonModelInitiationTrigger.optional()),
75
77
  asyncMetadata: core.serialization.property("async_metadata", AsyncConversationMetadata_1.AsyncConversationMetadata.optional()),
78
+ whatsapp: WhatsAppConversationInfo_1.WhatsAppConversationInfo.optional(),
79
+ agentCreatedFrom: core.serialization.property("agent_created_from", AgentDefinitionSource_1.AgentDefinitionSource.optional()),
80
+ agentLastUpdatedFrom: core.serialization.property("agent_last_updated_from", AgentDefinitionSource_1.AgentDefinitionSource.optional()),
76
81
  });
@@ -5,7 +5,5 @@ export declare const CreateAgentResponseModel: core.serialization.ObjectSchema<s
5
5
  export declare namespace CreateAgentResponseModel {
6
6
  interface Raw {
7
7
  agent_id: string;
8
- main_branch_id?: string | null;
9
- initial_version_id?: string | null;
10
8
  }
11
9
  }
@@ -38,6 +38,4 @@ exports.CreateAgentResponseModel = void 0;
38
38
  const core = __importStar(require("../../core"));
39
39
  exports.CreateAgentResponseModel = core.serialization.object({
40
40
  agentId: core.serialization.property("agent_id", core.serialization.string()),
41
- mainBranchId: core.serialization.property("main_branch_id", core.serialization.string().optional()),
42
- initialVersionId: core.serialization.property("initial_version_id", core.serialization.string().optional()),
43
41
  });
@@ -19,6 +19,5 @@ export declare namespace GetAgentResponseModel {
19
19
  workflow?: AgentWorkflowResponseModel.Raw | null;
20
20
  access_info?: ResourceAccessInfo.Raw | null;
21
21
  tags?: string[] | null;
22
- version_id?: string | null;
23
22
  }
24
23
  }
@@ -52,5 +52,4 @@ exports.GetAgentResponseModel = core.serialization.object({
52
52
  workflow: AgentWorkflowResponseModel_1.AgentWorkflowResponseModel.optional(),
53
53
  accessInfo: core.serialization.property("access_info", ResourceAccessInfo_1.ResourceAccessInfo.optional()),
54
54
  tags: core.serialization.list(core.serialization.string()).optional(),
55
- versionId: core.serialization.property("version_id", core.serialization.string().optional()),
56
55
  });
@@ -20,6 +20,7 @@ export declare namespace ProjectExtendedResponse {
20
20
  project_id: string;
21
21
  name: string;
22
22
  create_date_unix: number;
23
+ created_by_user_id?: string | null;
23
24
  default_title_voice_id: string;
24
25
  default_paragraph_voice_id: string;
25
26
  default_model_id: string;
@@ -53,6 +53,7 @@ exports.ProjectExtendedResponse = core.serialization.object({
53
53
  projectId: core.serialization.property("project_id", core.serialization.string()),
54
54
  name: core.serialization.string(),
55
55
  createDateUnix: core.serialization.property("create_date_unix", core.serialization.number()),
56
+ createdByUserId: core.serialization.property("created_by_user_id", core.serialization.string().optional()),
56
57
  defaultTitleVoiceId: core.serialization.property("default_title_voice_id", core.serialization.string()),
57
58
  defaultParagraphVoiceId: core.serialization.property("default_paragraph_voice_id", core.serialization.string()),
58
59
  defaultModelId: core.serialization.property("default_model_id", core.serialization.string()),
@@ -15,6 +15,7 @@ export declare namespace ProjectResponse {
15
15
  project_id: string;
16
16
  name: string;
17
17
  create_date_unix: number;
18
+ created_by_user_id?: string | null;
18
19
  default_title_voice_id: string;
19
20
  default_paragraph_voice_id: string;
20
21
  default_model_id: string;
@@ -48,6 +48,7 @@ exports.ProjectResponse = core.serialization.object({
48
48
  projectId: core.serialization.property("project_id", core.serialization.string()),
49
49
  name: core.serialization.string(),
50
50
  createDateUnix: core.serialization.property("create_date_unix", core.serialization.number()),
51
+ createdByUserId: core.serialization.property("created_by_user_id", core.serialization.string().optional()),
51
52
  defaultTitleVoiceId: core.serialization.property("default_title_voice_id", core.serialization.string()),
52
53
  defaultParagraphVoiceId: core.serialization.property("default_paragraph_voice_id", core.serialization.string()),
53
54
  defaultModelId: core.serialization.property("default_model_id", core.serialization.string()),
@@ -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 ToolExecutionMode: core.serialization.Schema<serializers.ToolExecutionMode.Raw, ElevenLabs.ToolExecutionMode>;
5
+ export declare namespace ToolExecutionMode {
6
+ type Raw = "immediate" | "post_tool_speech" | "async";
7
+ }
@@ -34,6 +34,6 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.WhatsAppCallDirection = void 0;
37
+ exports.ToolExecutionMode = void 0;
38
38
  const core = __importStar(require("../../core"));
39
- exports.WhatsAppCallDirection = core.serialization.enum_(["USER_INITIATED", "BUSINESS_INITIATED"]);
39
+ exports.ToolExecutionMode = core.serialization.enum_(["immediate", "post_tool_speech", "async"]);
@@ -4,6 +4,7 @@ import * as core from "../../core";
4
4
  import { DynamicVariableAssignment } from "./DynamicVariableAssignment";
5
5
  import { WebhookToolApiSchemaConfigInput } from "./WebhookToolApiSchemaConfigInput";
6
6
  import { DynamicVariablesConfig } from "./DynamicVariablesConfig";
7
+ import { ToolExecutionMode } from "./ToolExecutionMode";
7
8
  export declare const WebhookToolConfigInput: core.serialization.ObjectSchema<serializers.WebhookToolConfigInput.Raw, ElevenLabs.WebhookToolConfigInput>;
8
9
  export declare namespace WebhookToolConfigInput {
9
10
  interface Raw {
@@ -15,5 +16,6 @@ export declare namespace WebhookToolConfigInput {
15
16
  assignments?: DynamicVariableAssignment.Raw[] | null;
16
17
  api_schema: WebhookToolApiSchemaConfigInput.Raw;
17
18
  dynamic_variables?: DynamicVariablesConfig.Raw | null;
19
+ execution_mode?: ToolExecutionMode.Raw | null;
18
20
  }
19
21
  }
@@ -39,6 +39,7 @@ const core = __importStar(require("../../core"));
39
39
  const DynamicVariableAssignment_1 = require("./DynamicVariableAssignment");
40
40
  const WebhookToolApiSchemaConfigInput_1 = require("./WebhookToolApiSchemaConfigInput");
41
41
  const DynamicVariablesConfig_1 = require("./DynamicVariablesConfig");
42
+ const ToolExecutionMode_1 = require("./ToolExecutionMode");
42
43
  exports.WebhookToolConfigInput = core.serialization.object({
43
44
  name: core.serialization.string(),
44
45
  description: core.serialization.string(),
@@ -48,4 +49,5 @@ exports.WebhookToolConfigInput = core.serialization.object({
48
49
  assignments: core.serialization.list(DynamicVariableAssignment_1.DynamicVariableAssignment).optional(),
49
50
  apiSchema: core.serialization.property("api_schema", WebhookToolApiSchemaConfigInput_1.WebhookToolApiSchemaConfigInput),
50
51
  dynamicVariables: core.serialization.property("dynamic_variables", DynamicVariablesConfig_1.DynamicVariablesConfig.optional()),
52
+ executionMode: core.serialization.property("execution_mode", ToolExecutionMode_1.ToolExecutionMode.optional()),
51
53
  });
@@ -4,6 +4,7 @@ import * as core from "../../core";
4
4
  import { DynamicVariableAssignment } from "./DynamicVariableAssignment";
5
5
  import { WebhookToolApiSchemaConfigOutput } from "./WebhookToolApiSchemaConfigOutput";
6
6
  import { DynamicVariablesConfig } from "./DynamicVariablesConfig";
7
+ import { ToolExecutionMode } from "./ToolExecutionMode";
7
8
  export declare const WebhookToolConfigOutput: core.serialization.ObjectSchema<serializers.WebhookToolConfigOutput.Raw, ElevenLabs.WebhookToolConfigOutput>;
8
9
  export declare namespace WebhookToolConfigOutput {
9
10
  interface Raw {
@@ -15,5 +16,6 @@ export declare namespace WebhookToolConfigOutput {
15
16
  assignments?: DynamicVariableAssignment.Raw[] | null;
16
17
  api_schema: WebhookToolApiSchemaConfigOutput.Raw;
17
18
  dynamic_variables?: DynamicVariablesConfig.Raw | null;
19
+ execution_mode?: ToolExecutionMode.Raw | null;
18
20
  }
19
21
  }
@@ -39,6 +39,7 @@ const core = __importStar(require("../../core"));
39
39
  const DynamicVariableAssignment_1 = require("./DynamicVariableAssignment");
40
40
  const WebhookToolApiSchemaConfigOutput_1 = require("./WebhookToolApiSchemaConfigOutput");
41
41
  const DynamicVariablesConfig_1 = require("./DynamicVariablesConfig");
42
+ const ToolExecutionMode_1 = require("./ToolExecutionMode");
42
43
  exports.WebhookToolConfigOutput = core.serialization.object({
43
44
  name: core.serialization.string(),
44
45
  description: core.serialization.string(),
@@ -48,4 +49,5 @@ exports.WebhookToolConfigOutput = core.serialization.object({
48
49
  assignments: core.serialization.list(DynamicVariableAssignment_1.DynamicVariableAssignment).optional(),
49
50
  apiSchema: core.serialization.property("api_schema", WebhookToolApiSchemaConfigOutput_1.WebhookToolApiSchemaConfigOutput),
50
51
  dynamicVariables: core.serialization.property("dynamic_variables", DynamicVariablesConfig_1.DynamicVariablesConfig.optional()),
52
+ executionMode: core.serialization.property("execution_mode", ToolExecutionMode_1.ToolExecutionMode.optional()),
51
53
  });
@@ -0,0 +1,10 @@
1
+ import * as serializers from "../index";
2
+ import * as ElevenLabs from "../../api/index";
3
+ import * as core from "../../core";
4
+ export declare const WhatsAppConversationInfo: core.serialization.ObjectSchema<serializers.WhatsAppConversationInfo.Raw, ElevenLabs.WhatsAppConversationInfo>;
5
+ export declare namespace WhatsAppConversationInfo {
6
+ interface Raw {
7
+ whatsapp_business_account_id: string;
8
+ whatsapp_user_id: string;
9
+ }
10
+ }
@@ -34,9 +34,9 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.WhatsAppChangeCalls = void 0;
37
+ exports.WhatsAppConversationInfo = void 0;
38
38
  const core = __importStar(require("../../core"));
39
- const WhatsAppCalls_1 = require("./WhatsAppCalls");
40
- exports.WhatsAppChangeCalls = core.serialization.object({
41
- value: WhatsAppCalls_1.WhatsAppCalls,
39
+ exports.WhatsAppConversationInfo = core.serialization.object({
40
+ whatsappBusinessAccountId: core.serialization.property("whatsapp_business_account_id", core.serialization.string()),
41
+ whatsappUserId: core.serialization.property("whatsapp_user_id", core.serialization.string()),
42
42
  });
@@ -77,6 +77,7 @@ export * from "./AgentConfigApiModelWorkflowOverrideOutput";
77
77
  export * from "./AgentConfigOverrideInput";
78
78
  export * from "./AgentConfigOverrideOutput";
79
79
  export * from "./AgentConfigOverrideConfig";
80
+ export * from "./AgentDefinitionSource";
80
81
  export * from "./AgentFailureResponseExample";
81
82
  export * from "./AgentMetadata";
82
83
  export * from "./AgentMetadataResponseModel";
@@ -623,6 +624,7 @@ export * from "./TimeRange";
623
624
  export * from "./TokenResponseModel";
624
625
  export * from "./Tool";
625
626
  export * from "./ToolAnnotations";
627
+ export * from "./ToolExecutionMode";
626
628
  export * from "./ToolMockConfig";
627
629
  export * from "./ToolRequestModelToolConfig";
628
630
  export * from "./ToolRequestModel";
@@ -698,16 +700,7 @@ export * from "./WebhookToolApiSchemaConfigOutput";
698
700
  export * from "./WebhookToolConfigInput";
699
701
  export * from "./WebhookToolConfigOutput";
700
702
  export * from "./WebhookUsageType";
701
- export * from "./WhatsAppBusinessAccountChangesItem";
702
- export * from "./WhatsAppBusinessAccount";
703
- export * from "./WhatsAppCallDirection";
704
- export * from "./WhatsAppCall";
705
- export * from "./WhatsAppCalls";
706
- export * from "./WhatsAppChangeCalls";
707
- export * from "./WhatsAppChangeMessages";
708
- export * from "./WhatsAppEventRequest";
709
- export * from "./WhatsAppMetadata";
710
- export * from "./WhatsAppSession";
703
+ export * from "./WhatsAppConversationInfo";
711
704
  export * from "./WidgetConfigInputAvatar";
712
705
  export * from "./WidgetConfig";
713
706
  export * from "./WidgetConfigOutputAvatar";
@@ -93,6 +93,7 @@ __exportStar(require("./AgentConfigApiModelWorkflowOverrideOutput"), exports);
93
93
  __exportStar(require("./AgentConfigOverrideInput"), exports);
94
94
  __exportStar(require("./AgentConfigOverrideOutput"), exports);
95
95
  __exportStar(require("./AgentConfigOverrideConfig"), exports);
96
+ __exportStar(require("./AgentDefinitionSource"), exports);
96
97
  __exportStar(require("./AgentFailureResponseExample"), exports);
97
98
  __exportStar(require("./AgentMetadata"), exports);
98
99
  __exportStar(require("./AgentMetadataResponseModel"), exports);
@@ -639,6 +640,7 @@ __exportStar(require("./TimeRange"), exports);
639
640
  __exportStar(require("./TokenResponseModel"), exports);
640
641
  __exportStar(require("./Tool"), exports);
641
642
  __exportStar(require("./ToolAnnotations"), exports);
643
+ __exportStar(require("./ToolExecutionMode"), exports);
642
644
  __exportStar(require("./ToolMockConfig"), exports);
643
645
  __exportStar(require("./ToolRequestModelToolConfig"), exports);
644
646
  __exportStar(require("./ToolRequestModel"), exports);
@@ -714,16 +716,7 @@ __exportStar(require("./WebhookToolApiSchemaConfigOutput"), exports);
714
716
  __exportStar(require("./WebhookToolConfigInput"), exports);
715
717
  __exportStar(require("./WebhookToolConfigOutput"), exports);
716
718
  __exportStar(require("./WebhookUsageType"), exports);
717
- __exportStar(require("./WhatsAppBusinessAccountChangesItem"), exports);
718
- __exportStar(require("./WhatsAppBusinessAccount"), exports);
719
- __exportStar(require("./WhatsAppCallDirection"), exports);
720
- __exportStar(require("./WhatsAppCall"), exports);
721
- __exportStar(require("./WhatsAppCalls"), exports);
722
- __exportStar(require("./WhatsAppChangeCalls"), exports);
723
- __exportStar(require("./WhatsAppChangeMessages"), exports);
724
- __exportStar(require("./WhatsAppEventRequest"), exports);
725
- __exportStar(require("./WhatsAppMetadata"), exports);
726
- __exportStar(require("./WhatsAppSession"), exports);
719
+ __exportStar(require("./WhatsAppConversationInfo"), exports);
727
720
  __exportStar(require("./WidgetConfigInputAvatar"), exports);
728
721
  __exportStar(require("./WidgetConfig"), exports);
729
722
  __exportStar(require("./WidgetConfigOutputAvatar"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v2.19.0";
1
+ export declare const SDK_VERSION = "v2.20.1";
package/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.19.0";
4
+ exports.SDK_VERSION = "v2.20.1";
@@ -2,6 +2,7 @@ import { ElevenLabsClient as FernClient } from "../Client";
2
2
  import type * as core from "../core";
3
3
  import { WebhooksClient } from "./webhooks";
4
4
  import { Music } from "./music";
5
+ import { SpeechToText } from "./speechToText";
5
6
  export declare namespace ElevenLabsClient {
6
7
  interface Options extends FernClient.Options {
7
8
  /**
@@ -14,7 +15,9 @@ export declare namespace ElevenLabsClient {
14
15
  export declare class ElevenLabsClient extends FernClient {
15
16
  private _customWebhooks;
16
17
  private _customMusic;
18
+ private _customSpeechToText;
17
19
  constructor(options?: ElevenLabsClient.Options);
18
20
  get webhooks(): WebhooksClient;
19
21
  get music(): Music;
22
+ get speechToText(): SpeechToText;
20
23
  }
@@ -38,6 +38,7 @@ const Client_1 = require("../Client");
38
38
  const errors = __importStar(require("../errors"));
39
39
  const webhooks_1 = require("./webhooks");
40
40
  const music_1 = require("./music");
41
+ const speechToText_1 = require("./speechToText");
41
42
  class ElevenLabsClient extends Client_1.ElevenLabsClient {
42
43
  constructor(options = {}) {
43
44
  var _a;
@@ -56,12 +57,18 @@ class ElevenLabsClient extends Client_1.ElevenLabsClient {
56
57
  }
57
58
  return this._customWebhooks;
58
59
  }
59
- // @ts-expect-error - Intentionally overriding parent getter with custom Music wrapper
60
+ // @ts-expect-error - Intentionally overriding with wrapper Music that has enhanced composeDetailed
60
61
  get music() {
61
62
  if (!this._customMusic) {
62
63
  this._customMusic = new music_1.Music(this._options);
63
64
  }
64
65
  return this._customMusic;
65
66
  }
67
+ get speechToText() {
68
+ if (!this._customSpeechToText) {
69
+ this._customSpeechToText = new speechToText_1.SpeechToText(this._options);
70
+ }
71
+ return this._customSpeechToText;
72
+ }
66
73
  }
67
74
  exports.ElevenLabsClient = ElevenLabsClient;
@@ -2,3 +2,5 @@ export { ElevenLabsClient } from "./ElevenLabsClient";
2
2
  export { Music, type SongMetadata, type MultipartResponse } from "./music";
3
3
  export { play } from "./play";
4
4
  export { stream } from "./stream";
5
+ export { SpeechToText } from "./speechToText";
6
+ export { RealtimeConnection, RealtimeEvents, AudioFormat, CommitStrategy, type AudioOptions, type UrlOptions } from "./realtime";
package/wrapper/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.stream = exports.play = exports.Music = exports.ElevenLabsClient = void 0;
3
+ exports.CommitStrategy = exports.AudioFormat = exports.RealtimeEvents = exports.RealtimeConnection = exports.SpeechToText = exports.stream = exports.play = exports.Music = exports.ElevenLabsClient = void 0;
4
4
  var ElevenLabsClient_1 = require("./ElevenLabsClient");
5
5
  Object.defineProperty(exports, "ElevenLabsClient", { enumerable: true, get: function () { return ElevenLabsClient_1.ElevenLabsClient; } });
6
6
  var music_1 = require("./music");
@@ -9,3 +9,10 @@ var play_1 = require("./play");
9
9
  Object.defineProperty(exports, "play", { enumerable: true, get: function () { return play_1.play; } });
10
10
  var stream_1 = require("./stream");
11
11
  Object.defineProperty(exports, "stream", { enumerable: true, get: function () { return stream_1.stream; } });
12
+ var speechToText_1 = require("./speechToText");
13
+ Object.defineProperty(exports, "SpeechToText", { enumerable: true, get: function () { return speechToText_1.SpeechToText; } });
14
+ var realtime_1 = require("./realtime");
15
+ Object.defineProperty(exports, "RealtimeConnection", { enumerable: true, get: function () { return realtime_1.RealtimeConnection; } });
16
+ Object.defineProperty(exports, "RealtimeEvents", { enumerable: true, get: function () { return realtime_1.RealtimeEvents; } });
17
+ Object.defineProperty(exports, "AudioFormat", { enumerable: true, get: function () { return realtime_1.AudioFormat; } });
18
+ Object.defineProperty(exports, "CommitStrategy", { enumerable: true, get: function () { return realtime_1.CommitStrategy; } });