@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
@@ -1,12 +0,0 @@
1
- import * as serializers from "../index";
2
- import * as ElevenLabs from "../../api/index";
3
- import * as core from "../../core";
4
- import { WhatsAppMetadata } from "./WhatsAppMetadata";
5
- import { WhatsAppCall } from "./WhatsAppCall";
6
- export declare const WhatsAppCalls: core.serialization.ObjectSchema<serializers.WhatsAppCalls.Raw, ElevenLabs.WhatsAppCalls>;
7
- export declare namespace WhatsAppCalls {
8
- interface Raw {
9
- metadata: WhatsAppMetadata.Raw;
10
- calls: WhatsAppCall.Raw[];
11
- }
12
- }
@@ -1,44 +0,0 @@
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.WhatsAppCalls = void 0;
38
- const core = __importStar(require("../../core"));
39
- const WhatsAppMetadata_1 = require("./WhatsAppMetadata");
40
- const WhatsAppCall_1 = require("./WhatsAppCall");
41
- exports.WhatsAppCalls = core.serialization.object({
42
- metadata: WhatsAppMetadata_1.WhatsAppMetadata,
43
- calls: core.serialization.list(WhatsAppCall_1.WhatsAppCall),
44
- });
@@ -1,10 +0,0 @@
1
- import * as serializers from "../index";
2
- import * as ElevenLabs from "../../api/index";
3
- import * as core from "../../core";
4
- import { WhatsAppCalls } from "./WhatsAppCalls";
5
- export declare const WhatsAppChangeCalls: core.serialization.ObjectSchema<serializers.WhatsAppChangeCalls.Raw, ElevenLabs.WhatsAppChangeCalls>;
6
- export declare namespace WhatsAppChangeCalls {
7
- interface Raw {
8
- value: WhatsAppCalls.Raw;
9
- }
10
- }
@@ -1,42 +0,0 @@
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.WhatsAppChangeCalls = void 0;
38
- const core = __importStar(require("../../core"));
39
- const WhatsAppCalls_1 = require("./WhatsAppCalls");
40
- exports.WhatsAppChangeCalls = core.serialization.object({
41
- value: WhatsAppCalls_1.WhatsAppCalls,
42
- });
@@ -1,8 +0,0 @@
1
- import * as serializers from "../index";
2
- import * as ElevenLabs from "../../api/index";
3
- import * as core from "../../core";
4
- export declare const WhatsAppChangeMessages: core.serialization.ObjectSchema<serializers.WhatsAppChangeMessages.Raw, ElevenLabs.WhatsAppChangeMessages>;
5
- export declare namespace WhatsAppChangeMessages {
6
- interface Raw {
7
- }
8
- }
@@ -1,11 +0,0 @@
1
- import * as serializers from "../index";
2
- import * as ElevenLabs from "../../api/index";
3
- import * as core from "../../core";
4
- import { WhatsAppBusinessAccount } from "./WhatsAppBusinessAccount";
5
- export declare const WhatsAppEventRequest: core.serialization.ObjectSchema<serializers.WhatsAppEventRequest.Raw, ElevenLabs.WhatsAppEventRequest>;
6
- export declare namespace WhatsAppEventRequest {
7
- interface Raw {
8
- object: "whatsapp_business_account";
9
- entry: WhatsAppBusinessAccount.Raw[];
10
- }
11
- }
@@ -1,43 +0,0 @@
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.WhatsAppEventRequest = void 0;
38
- const core = __importStar(require("../../core"));
39
- const WhatsAppBusinessAccount_1 = require("./WhatsAppBusinessAccount");
40
- exports.WhatsAppEventRequest = core.serialization.object({
41
- object: core.serialization.stringLiteral("whatsapp_business_account"),
42
- entry: core.serialization.list(WhatsAppBusinessAccount_1.WhatsAppBusinessAccount),
43
- });
@@ -1,9 +0,0 @@
1
- import * as serializers from "../index";
2
- import * as ElevenLabs from "../../api/index";
3
- import * as core from "../../core";
4
- export declare const WhatsAppMetadata: core.serialization.ObjectSchema<serializers.WhatsAppMetadata.Raw, ElevenLabs.WhatsAppMetadata>;
5
- export declare namespace WhatsAppMetadata {
6
- interface Raw {
7
- phone_number_id: string;
8
- }
9
- }
@@ -1,41 +0,0 @@
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.WhatsAppMetadata = void 0;
38
- const core = __importStar(require("../../core"));
39
- exports.WhatsAppMetadata = core.serialization.object({
40
- phoneNumberId: core.serialization.property("phone_number_id", core.serialization.string()),
41
- });
@@ -1,10 +0,0 @@
1
- import * as serializers from "../index";
2
- import * as ElevenLabs from "../../api/index";
3
- import * as core from "../../core";
4
- export declare const WhatsAppSession: core.serialization.ObjectSchema<serializers.WhatsAppSession.Raw, ElevenLabs.WhatsAppSession>;
5
- export declare namespace WhatsAppSession {
6
- interface Raw {
7
- sdp_type: string;
8
- sdp: string;
9
- }
10
- }
@@ -1,42 +0,0 @@
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.WhatsAppSession = void 0;
38
- const core = __importStar(require("../../core"));
39
- exports.WhatsAppSession = core.serialization.object({
40
- sdpType: core.serialization.property("sdp_type", core.serialization.string()),
41
- sdp: core.serialization.string(),
42
- });