telnyx 6.40.0 → 6.41.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 (124) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/client.d.mts +10 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +10 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/core/pagination.d.mts.map +1 -1
  9. package/core/pagination.d.ts.map +1 -1
  10. package/internal/detect-platform.js +1 -1
  11. package/internal/detect-platform.js.map +1 -1
  12. package/internal/detect-platform.mjs +1 -1
  13. package/internal/detect-platform.mjs.map +1 -1
  14. package/package.json +1 -1
  15. package/resources/ai/assistants/assistants.d.mts +2 -68
  16. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  17. package/resources/ai/assistants/assistants.d.ts +2 -68
  18. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  19. package/resources/ai/assistants/assistants.js.map +1 -1
  20. package/resources/ai/assistants/assistants.mjs.map +1 -1
  21. package/resources/calls/actions.d.mts +10 -21
  22. package/resources/calls/actions.d.mts.map +1 -1
  23. package/resources/calls/actions.d.ts +10 -21
  24. package/resources/calls/actions.d.ts.map +1 -1
  25. package/resources/calls/calls.d.mts +95 -1
  26. package/resources/calls/calls.d.mts.map +1 -1
  27. package/resources/calls/calls.d.ts +95 -1
  28. package/resources/calls/calls.d.ts.map +1 -1
  29. package/resources/calls/calls.js.map +1 -1
  30. package/resources/calls/calls.mjs.map +1 -1
  31. package/resources/calls/index.d.mts +1 -1
  32. package/resources/calls/index.d.mts.map +1 -1
  33. package/resources/calls/index.d.ts +1 -1
  34. package/resources/calls/index.d.ts.map +1 -1
  35. package/resources/calls/index.js.map +1 -1
  36. package/resources/calls/index.mjs.map +1 -1
  37. package/resources/index.d.mts +2 -2
  38. package/resources/index.d.mts.map +1 -1
  39. package/resources/index.d.ts +2 -2
  40. package/resources/index.d.ts.map +1 -1
  41. package/resources/index.js.map +1 -1
  42. package/resources/index.mjs.map +1 -1
  43. package/resources/inexplicit-number-orders.d.mts.map +1 -1
  44. package/resources/inexplicit-number-orders.d.ts.map +1 -1
  45. package/resources/networks/networks.d.mts.map +1 -1
  46. package/resources/networks/networks.d.ts.map +1 -1
  47. package/resources/networks/networks.js.map +1 -1
  48. package/resources/networks/networks.mjs.map +1 -1
  49. package/resources/pronunciation-dicts.d.mts +63 -393
  50. package/resources/pronunciation-dicts.d.mts.map +1 -1
  51. package/resources/pronunciation-dicts.d.ts +63 -393
  52. package/resources/pronunciation-dicts.d.ts.map +1 -1
  53. package/resources/pronunciation-dicts.js +5 -2
  54. package/resources/pronunciation-dicts.js.map +1 -1
  55. package/resources/pronunciation-dicts.mjs +5 -2
  56. package/resources/pronunciation-dicts.mjs.map +1 -1
  57. package/resources/shared.d.mts +59 -0
  58. package/resources/shared.d.mts.map +1 -1
  59. package/resources/shared.d.ts +59 -0
  60. package/resources/shared.d.ts.map +1 -1
  61. package/resources/texml/accounts/calls/calls.d.mts +12 -10
  62. package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
  63. package/resources/texml/accounts/calls/calls.d.ts +12 -10
  64. package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
  65. package/resources/texml/accounts/calls/calls.js +4 -7
  66. package/resources/texml/accounts/calls/calls.js.map +1 -1
  67. package/resources/texml/accounts/calls/calls.mjs +4 -7
  68. package/resources/texml/accounts/calls/calls.mjs.map +1 -1
  69. package/resources/virtual-cross-connects.d.mts.map +1 -1
  70. package/resources/virtual-cross-connects.d.ts.map +1 -1
  71. package/resources/voice-clones.d.mts +205 -59
  72. package/resources/voice-clones.d.mts.map +1 -1
  73. package/resources/voice-clones.d.ts +205 -59
  74. package/resources/voice-clones.d.ts.map +1 -1
  75. package/resources/voice-clones.js +21 -12
  76. package/resources/voice-clones.js.map +1 -1
  77. package/resources/voice-clones.mjs +21 -12
  78. package/resources/voice-clones.mjs.map +1 -1
  79. package/resources/whatsapp/phone-numbers/profile/index.d.mts +1 -1
  80. package/resources/whatsapp/phone-numbers/profile/index.d.mts.map +1 -1
  81. package/resources/whatsapp/phone-numbers/profile/index.d.ts +1 -1
  82. package/resources/whatsapp/phone-numbers/profile/index.d.ts.map +1 -1
  83. package/resources/whatsapp/phone-numbers/profile/index.js.map +1 -1
  84. package/resources/whatsapp/phone-numbers/profile/index.mjs.map +1 -1
  85. package/resources/whatsapp/phone-numbers/profile/photo.d.mts +30 -1
  86. package/resources/whatsapp/phone-numbers/profile/photo.d.mts.map +1 -1
  87. package/resources/whatsapp/phone-numbers/profile/photo.d.ts +30 -1
  88. package/resources/whatsapp/phone-numbers/profile/photo.d.ts.map +1 -1
  89. package/resources/whatsapp/phone-numbers/profile/photo.js +14 -0
  90. package/resources/whatsapp/phone-numbers/profile/photo.js.map +1 -1
  91. package/resources/whatsapp/phone-numbers/profile/photo.mjs +14 -0
  92. package/resources/whatsapp/phone-numbers/profile/photo.mjs.map +1 -1
  93. package/resources/whatsapp/phone-numbers/profile/profile.d.mts +2 -2
  94. package/resources/whatsapp/phone-numbers/profile/profile.d.mts.map +1 -1
  95. package/resources/whatsapp/phone-numbers/profile/profile.d.ts +2 -2
  96. package/resources/whatsapp/phone-numbers/profile/profile.d.ts.map +1 -1
  97. package/resources/whatsapp/phone-numbers/profile/profile.js.map +1 -1
  98. package/resources/whatsapp/phone-numbers/profile/profile.mjs.map +1 -1
  99. package/resources/wireguard-interfaces.d.mts.map +1 -1
  100. package/resources/wireguard-interfaces.d.ts.map +1 -1
  101. package/src/client.ts +16 -4
  102. package/src/core/pagination.ts +3 -3
  103. package/src/internal/detect-platform.ts +1 -1
  104. package/src/resources/ai/assistants/assistants.ts +4 -84
  105. package/src/resources/calls/actions.ts +11 -24
  106. package/src/resources/calls/calls.ts +106 -0
  107. package/src/resources/calls/index.ts +1 -0
  108. package/src/resources/index.ts +5 -2
  109. package/src/resources/inexplicit-number-orders.ts +2 -1
  110. package/src/resources/networks/networks.ts +2 -1
  111. package/src/resources/pronunciation-dicts.ts +70 -465
  112. package/src/resources/shared.ts +73 -0
  113. package/src/resources/texml/accounts/calls/calls.ts +15 -23
  114. package/src/resources/virtual-cross-connects.ts +2 -1
  115. package/src/resources/voice-clones.ts +235 -58
  116. package/src/resources/whatsapp/phone-numbers/profile/index.ts +1 -1
  117. package/src/resources/whatsapp/phone-numbers/profile/photo.ts +41 -1
  118. package/src/resources/whatsapp/phone-numbers/profile/profile.ts +2 -1
  119. package/src/resources/wireguard-interfaces.ts +2 -1
  120. package/src/version.ts +1 -1
  121. package/version.d.mts +1 -1
  122. package/version.d.ts +1 -1
  123. package/version.js +1 -1
  124. package/version.mjs +1 -1
@@ -14,14 +14,17 @@ export declare class VoiceClones extends APIResource {
14
14
  * @example
15
15
  * ```ts
16
16
  * const voiceClone = await client.voiceClones.create({
17
- * gender: 'male',
18
- * language: 'en',
19
- * name: 'clone-narrator',
20
- * voice_design_id: '550e8400-e29b-41d4-a716-446655440000',
17
+ * params: {
18
+ * gender: 'male',
19
+ * language: 'en',
20
+ * name: 'clone-narrator',
21
+ * voice_design_id: '550e8400-e29b-41d4-a716-446655440000',
22
+ * provider: 'telnyx',
23
+ * },
21
24
  * });
22
25
  * ```
23
26
  */
24
- create(body: VoiceCloneCreateParams, options?: RequestOptions): APIPromise<VoiceCloneCreateResponse>;
27
+ create(args: VoiceCloneCreateParams, options?: RequestOptions): APIPromise<VoiceCloneCreateResponse>;
25
28
  /**
26
29
  * Updates the name, language, or gender of a voice clone.
27
30
  *
@@ -60,18 +63,22 @@ export declare class VoiceClones extends APIResource {
60
63
  /**
61
64
  * Creates a new voice clone by uploading an audio file directly. Supported
62
65
  * formats: WAV, MP3, FLAC, OGG, M4A. For best results, provide 5–10 seconds of
63
- * clear speech. Maximum file size: 2MB.
66
+ * clear speech. Maximum file size: 5MB for Telnyx, 20MB for Minimax.
64
67
  *
65
68
  * @example
66
69
  * ```ts
67
70
  * const response = await client.voiceClones.createFromUpload({
68
- * audio_file: fs.createReadStream('path/to/file'),
69
- * language: 'lkf-Lz1vLbBu-9uDh-9AHaOS2D-Cbf',
70
- * name: 'name',
71
+ * params: {
72
+ * audio_file: fs.createReadStream('path/to/file'),
73
+ * gender: 'male',
74
+ * language: 'lkf-Lz1vLbBu-9uDh-9AHaOS2D-Cbf',
75
+ * name: 'name',
76
+ * provider: 'telnyx',
77
+ * },
71
78
  * });
72
79
  * ```
73
80
  */
74
- createFromUpload(body: VoiceCloneCreateFromUploadParams, options?: RequestOptions): APIPromise<VoiceCloneCreateFromUploadResponse>;
81
+ createFromUpload(args: VoiceCloneCreateFromUploadParams, options?: RequestOptions): APIPromise<VoiceCloneCreateFromUploadResponse>;
75
82
  /**
76
83
  * Downloads the WAV audio sample that was used to create the voice clone.
77
84
  *
@@ -113,6 +120,10 @@ export interface VoiceCloneData {
113
120
  * ISO 639-1 language code of the voice clone.
114
121
  */
115
122
  language?: string | null;
123
+ /**
124
+ * TTS model identifier for the voice clone.
125
+ */
126
+ model_id?: 'Qwen3TTS' | 'Ultra' | 'speech-2.8-turbo';
116
127
  /**
117
128
  * Name of the voice clone.
118
129
  */
@@ -126,8 +137,8 @@ export interface VoiceCloneData {
126
137
  */
127
138
  provider_supported_models?: Array<string>;
128
139
  /**
129
- * Provider-specific voice identifier used for TTS synthesis. For Telnyx clones
130
- * this equals the clone ID; for Minimax it is the Minimax-assigned voice ID.
140
+ * Provider-specific voice identifier used for TTS synthesis. May differ from the
141
+ * clone UUID depending on the provider and model.
131
142
  */
132
143
  provider_voice_id?: string | null;
133
144
  /**
@@ -142,6 +153,11 @@ export interface VoiceCloneData {
142
153
  * Version of the source voice design used. `null` for upload-based clones.
143
154
  */
144
155
  source_voice_design_version?: number | null;
156
+ /**
157
+ * Clone status. pending for Ultra clones while on-prem import is in progress,
158
+ * active once ready, failed if verification timed out, expired if not kept alive.
159
+ */
160
+ status?: 'active' | 'pending' | 'failed' | 'expired';
145
161
  /**
146
162
  * Timestamp when the voice clone was last updated.
147
163
  */
@@ -176,25 +192,62 @@ export interface VoiceCloneCreateFromUploadResponse {
176
192
  }
177
193
  export interface VoiceCloneCreateParams {
178
194
  /**
179
- * Gender of the voice clone.
180
- */
181
- gender: 'male' | 'female' | 'neutral';
182
- /**
183
- * ISO 639-1 language code for the clone (e.g. `en`, `fr`, `de`).
184
- */
185
- language: string;
186
- /**
187
- * Name for the voice clone.
195
+ * Request body for creating a voice clone from an existing voice design.
188
196
  */
189
- name: string;
190
- /**
191
- * UUID of the source voice design to clone.
192
- */
193
- voice_design_id: string;
194
- /**
195
- * Voice synthesis provider. Case-insensitive. Defaults to `telnyx`.
196
- */
197
- provider?: 'telnyx' | 'minimax';
197
+ params: VoiceCloneCreateParams.TelnyxDesignClone | VoiceCloneCreateParams.MinimaxDesignClone;
198
+ }
199
+ export declare namespace VoiceCloneCreateParams {
200
+ /**
201
+ * Create a voice clone from a voice design using the Telnyx provider.
202
+ */
203
+ interface TelnyxDesignClone {
204
+ /**
205
+ * Gender of the voice clone.
206
+ */
207
+ gender: 'male' | 'female' | 'neutral';
208
+ /**
209
+ * ISO 639-1 language code for the clone. Supports the combined Telnyx language
210
+ * set.
211
+ */
212
+ language: string;
213
+ /**
214
+ * Name for the voice clone.
215
+ */
216
+ name: string;
217
+ /**
218
+ * UUID of the source voice design to clone.
219
+ */
220
+ voice_design_id: string;
221
+ /**
222
+ * Voice synthesis provider. Defaults to `telnyx`.
223
+ */
224
+ provider?: 'telnyx' | 'minimax';
225
+ }
226
+ /**
227
+ * Create a voice clone from a voice design using the Minimax provider.
228
+ */
229
+ interface MinimaxDesignClone {
230
+ /**
231
+ * Gender of the voice clone.
232
+ */
233
+ gender: 'male' | 'female' | 'neutral';
234
+ /**
235
+ * ISO 639-1 language code for the clone. Supports the Minimax language set.
236
+ */
237
+ language: string;
238
+ /**
239
+ * Name for the voice clone.
240
+ */
241
+ name: string;
242
+ /**
243
+ * Voice synthesis provider. Must be `minimax`.
244
+ */
245
+ provider: 'telnyx' | 'minimax';
246
+ /**
247
+ * UUID of the source voice design to clone.
248
+ */
249
+ voice_design_id: string;
250
+ }
198
251
  }
199
252
  export interface VoiceCloneUpdateParams {
200
253
  /**
@@ -226,36 +279,129 @@ export interface VoiceCloneListParams extends DefaultFlatPaginationParams {
226
279
  }
227
280
  export interface VoiceCloneCreateFromUploadParams {
228
281
  /**
229
- * Audio file to clone the voice from. Supported formats: WAV, MP3, FLAC, OGG, M4A.
230
- * For best quality, provide 5–10 seconds of clear, uninterrupted speech. Maximum
231
- * size: 5MB for Telnyx, 20MB for Minimax.
232
- */
233
- audio_file: Uploadable;
234
- /**
235
- * ISO 639-1 language code (e.g. `en`, `fr`) or `auto` for automatic detection.
236
- */
237
- language: string;
238
- /**
239
- * Name for the voice clone.
282
+ * Multipart form data for creating a voice clone from a direct audio upload.
283
+ * Maximum file size: 5MB for Telnyx, 20MB for Minimax.
240
284
  */
241
- name: string;
242
- /**
243
- * Gender of the voice clone.
244
- */
245
- gender?: 'male' | 'female' | 'neutral';
246
- /**
247
- * Optional custom label describing the voice style. If omitted, falls back to the
248
- * source design's prompt text.
249
- */
250
- label?: string;
251
- /**
252
- * Voice synthesis provider. Case-insensitive. Defaults to `telnyx`.
253
- */
254
- provider?: 'telnyx' | 'minimax';
255
- /**
256
- * Optional transcript of the audio file. Providing this improves clone quality.
257
- */
258
- ref_text?: string;
285
+ params: VoiceCloneCreateFromUploadParams.TelnyxQwen3TtsClone | VoiceCloneCreateFromUploadParams.TelnyxUltraClone | VoiceCloneCreateFromUploadParams.MinimaxClone;
286
+ }
287
+ export declare namespace VoiceCloneCreateFromUploadParams {
288
+ /**
289
+ * Upload-based voice clone using the Telnyx Qwen3TTS model (default).
290
+ */
291
+ interface TelnyxQwen3TtsClone {
292
+ /**
293
+ * Audio file to clone the voice from. Supported formats: WAV, MP3, FLAC, OGG, M4A.
294
+ * For best quality, provide 5–10 seconds of clear, uninterrupted speech. Maximum
295
+ * size: 5MB.
296
+ */
297
+ audio_file: Uploadable;
298
+ /**
299
+ * Gender of the voice clone.
300
+ */
301
+ gender: 'male' | 'female' | 'neutral';
302
+ /**
303
+ * ISO 639-1 language code from the Qwen language set.
304
+ */
305
+ language: string;
306
+ /**
307
+ * Name for the voice clone.
308
+ */
309
+ name: string;
310
+ /**
311
+ * Voice synthesis provider. Must be `telnyx`.
312
+ */
313
+ provider: 'telnyx' | 'minimax';
314
+ /**
315
+ * Optional custom label describing the voice style.
316
+ */
317
+ label?: string;
318
+ /**
319
+ * TTS model identifier. Nullable/omittable — defaults to Qwen3TTS.
320
+ */
321
+ model_id?: 'Qwen3TTS' | null;
322
+ /**
323
+ * Optional transcript of the audio file. Providing this improves clone quality.
324
+ */
325
+ ref_text?: string;
326
+ }
327
+ /**
328
+ * Upload-based voice clone using the Telnyx Ultra model.
329
+ */
330
+ interface TelnyxUltraClone {
331
+ /**
332
+ * Audio file to clone the voice from. Supported formats: WAV, MP3, FLAC, OGG, M4A.
333
+ * For best quality, provide 5–10 seconds of clear, uninterrupted speech. Maximum
334
+ * size: 5MB.
335
+ */
336
+ audio_file: Uploadable;
337
+ /**
338
+ * Gender of the voice clone.
339
+ */
340
+ gender: 'male' | 'female' | 'neutral';
341
+ /**
342
+ * ISO 639-1 language code from the Ultra language set (40 languages).
343
+ */
344
+ language: string;
345
+ /**
346
+ * TTS model identifier. Must be `Ultra`.
347
+ */
348
+ model_id: 'Ultra';
349
+ /**
350
+ * Name for the voice clone.
351
+ */
352
+ name: string;
353
+ /**
354
+ * Voice synthesis provider. Must be `telnyx`.
355
+ */
356
+ provider: 'telnyx' | 'minimax';
357
+ /**
358
+ * Optional custom label describing the voice style.
359
+ */
360
+ label?: string;
361
+ /**
362
+ * Optional transcript of the audio file. Providing this improves clone quality.
363
+ */
364
+ ref_text?: string;
365
+ }
366
+ /**
367
+ * Upload-based voice clone using the Minimax provider.
368
+ */
369
+ interface MinimaxClone {
370
+ /**
371
+ * Audio file to clone the voice from. Supported formats: WAV, MP3, FLAC, OGG, M4A.
372
+ * For best quality, provide 5–10 seconds of clear, uninterrupted speech. Maximum
373
+ * size: 20MB.
374
+ */
375
+ audio_file: Uploadable;
376
+ /**
377
+ * Gender of the voice clone.
378
+ */
379
+ gender: 'male' | 'female' | 'neutral';
380
+ /**
381
+ * ISO 639-1 language code from the Minimax language set.
382
+ */
383
+ language: string;
384
+ /**
385
+ * Name for the voice clone.
386
+ */
387
+ name: string;
388
+ /**
389
+ * Voice synthesis provider. Must be `minimax`.
390
+ */
391
+ provider: 'telnyx' | 'minimax';
392
+ /**
393
+ * Optional custom label describing the voice style.
394
+ */
395
+ label?: string;
396
+ /**
397
+ * TTS model identifier. Nullable — defaults to speech-2.8-turbo.
398
+ */
399
+ model_id?: 'speech-2.8-turbo' | null;
400
+ /**
401
+ * Optional transcript of the audio file. Providing this improves clone quality.
402
+ */
403
+ ref_text?: string;
404
+ }
259
405
  }
260
406
  export declare namespace VoiceClones {
261
407
  export { type VoiceCloneData as VoiceCloneData, type VoiceCloneCreateResponse as VoiceCloneCreateResponse, type VoiceCloneUpdateResponse as VoiceCloneUpdateResponse, type VoiceCloneCreateFromUploadResponse as VoiceCloneCreateFromUploadResponse, type VoiceCloneDataDefaultFlatPagination as VoiceCloneDataDefaultFlatPagination, type VoiceCloneCreateParams as VoiceCloneCreateParams, type VoiceCloneUpdateParams as VoiceCloneUpdateParams, type VoiceCloneListParams as VoiceCloneListParams, type VoiceCloneCreateFromUploadParams as VoiceCloneCreateFromUploadParams, };
@@ -1 +1 @@
1
- {"version":3,"file":"voice-clones.d.ts","sourceRoot":"","sources":["../src/resources/voice-clones.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE;OACxE,EAAE,KAAK,UAAU,EAAE;OAEnB,EAAE,cAAc,EAAE;AAIzB;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;OAaG;IAC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CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
@@ -18,15 +18,19 @@ class VoiceClones extends resource_1.APIResource {
18
18
  * @example
19
19
  * ```ts
20
20
  * const voiceClone = await client.voiceClones.create({
21
- * gender: 'male',
22
- * language: 'en',
23
- * name: 'clone-narrator',
24
- * voice_design_id: '550e8400-e29b-41d4-a716-446655440000',
21
+ * params: {
22
+ * gender: 'male',
23
+ * language: 'en',
24
+ * name: 'clone-narrator',
25
+ * voice_design_id: '550e8400-e29b-41d4-a716-446655440000',
26
+ * provider: 'telnyx',
27
+ * },
25
28
  * });
26
29
  * ```
27
30
  */
28
- create(body, options) {
29
- return this._client.post('/voice_clones', { body, ...options });
31
+ create(args, options) {
32
+ const { params } = args;
33
+ return this._client.post('/voice_clones', { body: params, ...options });
30
34
  }
31
35
  /**
32
36
  * Updates the name, language, or gender of a voice clone.
@@ -78,19 +82,24 @@ class VoiceClones extends resource_1.APIResource {
78
82
  /**
79
83
  * Creates a new voice clone by uploading an audio file directly. Supported
80
84
  * formats: WAV, MP3, FLAC, OGG, M4A. For best results, provide 5–10 seconds of
81
- * clear speech. Maximum file size: 2MB.
85
+ * clear speech. Maximum file size: 5MB for Telnyx, 20MB for Minimax.
82
86
  *
83
87
  * @example
84
88
  * ```ts
85
89
  * const response = await client.voiceClones.createFromUpload({
86
- * audio_file: fs.createReadStream('path/to/file'),
87
- * language: 'lkf-Lz1vLbBu-9uDh-9AHaOS2D-Cbf',
88
- * name: 'name',
90
+ * params: {
91
+ * audio_file: fs.createReadStream('path/to/file'),
92
+ * gender: 'male',
93
+ * language: 'lkf-Lz1vLbBu-9uDh-9AHaOS2D-Cbf',
94
+ * name: 'name',
95
+ * provider: 'telnyx',
96
+ * },
89
97
  * });
90
98
  * ```
91
99
  */
92
- createFromUpload(body, options) {
93
- return this._client.post('/voice_clones/from_upload', (0, uploads_1.multipartFormRequestOptions)({ body, ...options }, this._client));
100
+ createFromUpload(args, options) {
101
+ const { params } = args;
102
+ return this._client.post('/voice_clones/from_upload', (0, uploads_1.multipartFormRequestOptions)({ body: params, ...options }, this._client));
94
103
  }
95
104
  /**
96
105
  * Downloads the WAV audio sample that was used to create the voice clone.
@@ -1 +1 @@
1
- {"version":3,"file":"voice-clones.js","sourceRoot":"","sources":["../src/resources/voice-clones.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA0G;AAE1G,oDAAmD;AAEnD,oDAAkE;AAClE,oDAA8C;AAE9C;;GAEG;AACH,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,EAAU,EACV,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,iBAAiB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,eAAe,EAAE,CAAA,kCAAqC,CAAA,E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AAC;IAED;;;;;;;;;;;;OAYG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,iBAAiB,EAAE,SAAS,EAAE;YACxD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAClE,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;CACF;AAjID,kCAiIC"}
@@ -15,15 +15,19 @@ export class VoiceClones extends APIResource {
15
15
  * @example
16
16
  * ```ts
17
17
  * const voiceClone = await client.voiceClones.create({
18
- * gender: 'male',
19
- * language: 'en',
20
- * name: 'clone-narrator',
21
- * voice_design_id: '550e8400-e29b-41d4-a716-446655440000',
18
+ * params: {
19
+ * gender: 'male',
20
+ * language: 'en',
21
+ * name: 'clone-narrator',
22
+ * voice_design_id: '550e8400-e29b-41d4-a716-446655440000',
23
+ * provider: 'telnyx',
24
+ * },
22
25
  * });
23
26
  * ```
24
27
  */
25
- create(body, options) {
26
- return this._client.post('/voice_clones', { body, ...options });
28
+ create(args, options) {
29
+ const { params } = args;
30
+ return this._client.post('/voice_clones', { body: params, ...options });
27
31
  }
28
32
  /**
29
33
  * Updates the name, language, or gender of a voice clone.
@@ -75,19 +79,24 @@ export class VoiceClones extends APIResource {
75
79
  /**
76
80
  * Creates a new voice clone by uploading an audio file directly. Supported
77
81
  * formats: WAV, MP3, FLAC, OGG, M4A. For best results, provide 5–10 seconds of
78
- * clear speech. Maximum file size: 2MB.
82
+ * clear speech. Maximum file size: 5MB for Telnyx, 20MB for Minimax.
79
83
  *
80
84
  * @example
81
85
  * ```ts
82
86
  * const response = await client.voiceClones.createFromUpload({
83
- * audio_file: fs.createReadStream('path/to/file'),
84
- * language: 'lkf-Lz1vLbBu-9uDh-9AHaOS2D-Cbf',
85
- * name: 'name',
87
+ * params: {
88
+ * audio_file: fs.createReadStream('path/to/file'),
89
+ * gender: 'male',
90
+ * language: 'lkf-Lz1vLbBu-9uDh-9AHaOS2D-Cbf',
91
+ * name: 'name',
92
+ * provider: 'telnyx',
93
+ * },
86
94
  * });
87
95
  * ```
88
96
  */
89
- createFromUpload(body, options) {
90
- return this._client.post('/voice_clones/from_upload', multipartFormRequestOptions({ body, ...options }, this._client));
97
+ createFromUpload(args, options) {
98
+ const { params } = args;
99
+ return this._client.post('/voice_clones/from_upload', multipartFormRequestOptions({ body: params, ...options }, this._client));
91
100
  }
92
101
  /**
93
102
  * Downloads the WAV audio sample that was used to create the voice clone.
@@ -1 +1 @@
1
- {"version":3,"file":"voice-clones.mjs","sourceRoot":"","sources":["../src/resources/voice-clones.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,qBAAqB,EAAiD;OAExE,EAAE,YAAY,EAAE;OAEhB,EAAE,2BAA2B,EAAE;OAC/B,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,EAAU,EACV,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,iBAAiB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,eAAe,EAAE,CAAA,qBAAqC,CA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;;;;;;;;;OAYG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,iBAAiB,EAAE,SAAS,EAAE;YACxD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAClE,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,3 +1,3 @@
1
- export { Photo, type PhotoUploadResponse, type PhotoUploadParams } from "./photo.mjs";
1
+ export { Photo, type PhotoRetrieveResponse, type PhotoUploadResponse, type PhotoUploadParams } from "./photo.mjs";
2
2
  export { Profile, type WhatsappProfileData, type ProfileRetrieveResponse, type ProfileUpdateResponse, type ProfileUpdateParams, } from "./profile.mjs";
3
3
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/resources/whatsapp/phone-numbers/profile/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE;OAC3D,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/resources/whatsapp/phone-numbers/profile/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE;OACvF,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB"}
@@ -1,3 +1,3 @@
1
- export { Photo, type PhotoUploadResponse, type PhotoUploadParams } from "./photo.js";
1
+ export { Photo, type PhotoRetrieveResponse, type PhotoUploadResponse, type PhotoUploadParams } from "./photo.js";
2
2
  export { Profile, type WhatsappProfileData, type ProfileRetrieveResponse, type ProfileUpdateResponse, type ProfileUpdateParams, } from "./profile.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resources/whatsapp/phone-numbers/profile/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE;OAC3D,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resources/whatsapp/phone-numbers/profile/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE;OACvF,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/whatsapp/phone-numbers/profile/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAAkF;AAAzE,8FAAA,KAAK,OAAA;AACd,wCAMmB;AALjB,kGAAA,OAAO,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/whatsapp/phone-numbers/profile/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAA8G;AAArG,8FAAA,KAAK,OAAA;AACd,wCAMmB;AALjB,kGAAA,OAAO,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../src/resources/whatsapp/phone-numbers/profile/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,KAAK,EAAoD;OAC3D,EACL,OAAO,GAKR"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../src/resources/whatsapp/phone-numbers/profile/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,KAAK,EAAgF;OACvF,EACL,OAAO,GAKR"}
@@ -7,6 +7,18 @@ import { RequestOptions } from "../../../../internal/request-options.mjs";
7
7
  * Manage Whatsapp phone numbers
8
8
  */
9
9
  export declare class Photo extends APIResource {
10
+ /**
11
+ * Get Whatsapp profile photo
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const photo =
16
+ * await client.whatsapp.phoneNumbers.profile.photo.retrieve(
17
+ * 'phone_number',
18
+ * );
19
+ * ```
20
+ */
21
+ retrieve(phoneNumber: string, options?: RequestOptions): APIPromise<PhotoRetrieveResponse>;
10
22
  /**
11
23
  * Delete Whatsapp profile photo
12
24
  *
@@ -32,6 +44,23 @@ export declare class Photo extends APIResource {
32
44
  */
33
45
  upload(phoneNumber: string, body: PhotoUploadParams, options?: RequestOptions): APIPromise<PhotoUploadResponse>;
34
46
  }
47
+ export interface PhotoRetrieveResponse {
48
+ data?: PhotoRetrieveResponse.Data;
49
+ }
50
+ export declare namespace PhotoRetrieveResponse {
51
+ interface Data {
52
+ /**
53
+ * Meta phone number ID
54
+ */
55
+ phone_number_id?: string;
56
+ /**
57
+ * URL of the business profile photo (served by Meta's CDN). May be empty if no
58
+ * photo is set.
59
+ */
60
+ profile_photo_url?: string;
61
+ record_type?: string;
62
+ }
63
+ }
35
64
  export interface PhotoUploadResponse {
36
65
  data?: ProfileAPI.WhatsappProfileData;
37
66
  }
@@ -42,6 +71,6 @@ export interface PhotoUploadParams {
42
71
  file: Uploadable;
43
72
  }
44
73
  export declare namespace Photo {
45
- export { type PhotoUploadResponse as PhotoUploadResponse, type PhotoUploadParams as PhotoUploadParams };
74
+ export { type PhotoRetrieveResponse as PhotoRetrieveResponse, type PhotoUploadResponse as PhotoUploadResponse, type PhotoUploadParams as PhotoUploadParams, };
46
75
  }
47
76
  //# sourceMappingURL=photo.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"photo.d.mts","sourceRoot":"","sources":["../../../../src/resources/whatsapp/phone-numbers/profile/photo.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OAEnB,EAAE,cAAc,EAAE;AAIzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;OASG;IACH,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOvE;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;CAMnC;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,UAAU,CAAC,mBAAmB,CAAC;CACvC;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
1
+ {"version":3,"file":"photo.d.mts","sourceRoot":"","sources":["../../../../src/resources/whatsapp/phone-numbers/profile/photo.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OAEnB,EAAE,cAAc,EAAE;AAIzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI1F;;;;;;;;;OASG;IACH,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOvE;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;CAMnC;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,qBAAqB,CAAC,IAAI,CAAC;CACnC;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,IAAI;QACnB;;WAEG;QACH,eAAe,CAAC,EAAE,MAAM,CAAC;QAEzB;;;WAGG;QACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAE3B,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,UAAU,CAAC,mBAAmB,CAAC;CACvC;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -7,6 +7,18 @@ import { RequestOptions } from "../../../../internal/request-options.js";
7
7
  * Manage Whatsapp phone numbers
8
8
  */
9
9
  export declare class Photo extends APIResource {
10
+ /**
11
+ * Get Whatsapp profile photo
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const photo =
16
+ * await client.whatsapp.phoneNumbers.profile.photo.retrieve(
17
+ * 'phone_number',
18
+ * );
19
+ * ```
20
+ */
21
+ retrieve(phoneNumber: string, options?: RequestOptions): APIPromise<PhotoRetrieveResponse>;
10
22
  /**
11
23
  * Delete Whatsapp profile photo
12
24
  *
@@ -32,6 +44,23 @@ export declare class Photo extends APIResource {
32
44
  */
33
45
  upload(phoneNumber: string, body: PhotoUploadParams, options?: RequestOptions): APIPromise<PhotoUploadResponse>;
34
46
  }
47
+ export interface PhotoRetrieveResponse {
48
+ data?: PhotoRetrieveResponse.Data;
49
+ }
50
+ export declare namespace PhotoRetrieveResponse {
51
+ interface Data {
52
+ /**
53
+ * Meta phone number ID
54
+ */
55
+ phone_number_id?: string;
56
+ /**
57
+ * URL of the business profile photo (served by Meta's CDN). May be empty if no
58
+ * photo is set.
59
+ */
60
+ profile_photo_url?: string;
61
+ record_type?: string;
62
+ }
63
+ }
35
64
  export interface PhotoUploadResponse {
36
65
  data?: ProfileAPI.WhatsappProfileData;
37
66
  }
@@ -42,6 +71,6 @@ export interface PhotoUploadParams {
42
71
  file: Uploadable;
43
72
  }
44
73
  export declare namespace Photo {
45
- export { type PhotoUploadResponse as PhotoUploadResponse, type PhotoUploadParams as PhotoUploadParams };
74
+ export { type PhotoRetrieveResponse as PhotoRetrieveResponse, type PhotoUploadResponse as PhotoUploadResponse, type PhotoUploadParams as PhotoUploadParams, };
46
75
  }
47
76
  //# sourceMappingURL=photo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"photo.d.ts","sourceRoot":"","sources":["../../../../src/resources/whatsapp/phone-numbers/profile/photo.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OAEnB,EAAE,cAAc,EAAE;AAIzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;OASG;IACH,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOvE;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;CAMnC;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,UAAU,CAAC,mBAAmB,CAAC;CACvC;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
1
+ {"version":3,"file":"photo.d.ts","sourceRoot":"","sources":["../../../../src/resources/whatsapp/phone-numbers/profile/photo.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OAEnB,EAAE,cAAc,EAAE;AAIzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI1F;;;;;;;;;OASG;IACH,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOvE;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;CAMnC;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,qBAAqB,CAAC,IAAI,CAAC;CACnC;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,IAAI;QACnB;;WAEG;QACH,eAAe,CAAC,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