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
@@ -100,7 +100,7 @@ export class PronunciationDicts extends APIResource {
100
100
  * @example
101
101
  * ```ts
102
102
  * // Automatically fetches more pages as needed.
103
- * for await (const pronunciationDictListResponse of client.pronunciationDicts.list()) {
103
+ * for await (const pronunciationDictData of client.pronunciationDicts.list()) {
104
104
  * // ...
105
105
  * }
106
106
  * ```
@@ -108,12 +108,11 @@ export class PronunciationDicts extends APIResource {
108
108
  list(
109
109
  query: PronunciationDictListParams | null | undefined = {},
110
110
  options?: RequestOptions,
111
- ): PagePromise<PronunciationDictListResponsesDefaultFlatPagination, PronunciationDictListResponse> {
112
- return this._client.getAPIList(
113
- '/pronunciation_dicts',
114
- DefaultFlatPagination<PronunciationDictListResponse>,
115
- { query, ...options },
116
- );
111
+ ): PagePromise<PronunciationDictDataDefaultFlatPagination, PronunciationDictData> {
112
+ return this._client.getAPIList('/pronunciation_dicts', DefaultFlatPagination<PronunciationDictData>, {
113
+ query,
114
+ ...options,
115
+ });
117
116
  }
118
117
 
119
118
  /**
@@ -134,325 +133,34 @@ export class PronunciationDicts extends APIResource {
134
133
  }
135
134
  }
136
135
 
137
- export type PronunciationDictListResponsesDefaultFlatPagination =
138
- DefaultFlatPagination<PronunciationDictListResponse>;
136
+ export type PronunciationDictDataDefaultFlatPagination = DefaultFlatPagination<PronunciationDictData>;
139
137
 
140
138
  /**
141
- * Response containing a single pronunciation dictionary.
139
+ * An alias pronunciation item. When the `text` value is found in input, it is
140
+ * replaced with the `alias` before speech synthesis.
142
141
  */
143
- export interface PronunciationDictCreateResponse {
142
+ export interface PronunciationDictAliasItem {
144
143
  /**
145
- * A pronunciation dictionary record.
144
+ * The replacement text that will be spoken instead.
146
145
  */
147
- data?: PronunciationDictCreateResponse.Data;
148
- }
146
+ alias: string;
149
147
 
150
- export namespace PronunciationDictCreateResponse {
151
148
  /**
152
- * A pronunciation dictionary record.
149
+ * The text to match in the input. Case-insensitive matching is used during
150
+ * synthesis.
153
151
  */
154
- export interface Data {
155
- /**
156
- * Unique identifier for the pronunciation dictionary.
157
- */
158
- id?: string;
159
-
160
- /**
161
- * ISO 8601 timestamp with millisecond precision.
162
- */
163
- created_at?: string;
164
-
165
- /**
166
- * List of pronunciation items (alias or phoneme type).
167
- */
168
- items?: Array<Data.PronunciationDictAliasItem | Data.PronunciationDictPhonemeItem>;
169
-
170
- /**
171
- * Human-readable name for the dictionary. Must be unique within the organization.
172
- */
173
- name?: string;
174
-
175
- /**
176
- * Identifies the resource type.
177
- */
178
- record_type?: 'pronunciation_dict';
179
-
180
- /**
181
- * ISO 8601 timestamp with millisecond precision.
182
- */
183
- updated_at?: string;
184
-
185
- /**
186
- * Auto-incrementing version number. Increases by 1 on each update. Used for
187
- * optimistic concurrency control and cache invalidation.
188
- */
189
- version?: number;
190
- }
191
-
192
- export namespace Data {
193
- /**
194
- * An alias pronunciation item. When the `text` value is found in input, it is
195
- * replaced with the `alias` before speech synthesis.
196
- */
197
- export interface PronunciationDictAliasItem {
198
- /**
199
- * The replacement text that will be spoken instead.
200
- */
201
- alias: string;
202
-
203
- /**
204
- * The text to match in the input. Case-insensitive matching is used during
205
- * synthesis.
206
- */
207
- text: string;
152
+ text: string;
208
153
 
209
- /**
210
- * The item type.
211
- */
212
- type: 'alias';
213
- }
214
-
215
- /**
216
- * A phoneme pronunciation item. When the `text` value is found in input, it is
217
- * pronounced using the specified IPA phoneme notation.
218
- */
219
- export interface PronunciationDictPhonemeItem {
220
- /**
221
- * The phonetic alphabet used for the phoneme notation.
222
- */
223
- alphabet: 'ipa';
224
-
225
- /**
226
- * The phoneme notation representing the desired pronunciation.
227
- */
228
- phoneme: string;
229
-
230
- /**
231
- * The text to match in the input. Case-insensitive matching is used during
232
- * synthesis.
233
- */
234
- text: string;
235
-
236
- /**
237
- * The item type.
238
- */
239
- type: 'phoneme';
240
- }
241
- }
242
- }
243
-
244
- /**
245
- * Response containing a single pronunciation dictionary.
246
- */
247
- export interface PronunciationDictRetrieveResponse {
248
- /**
249
- * A pronunciation dictionary record.
250
- */
251
- data?: PronunciationDictRetrieveResponse.Data;
252
- }
253
-
254
- export namespace PronunciationDictRetrieveResponse {
255
154
  /**
256
- * A pronunciation dictionary record.
155
+ * The item type.
257
156
  */
258
- export interface Data {
259
- /**
260
- * Unique identifier for the pronunciation dictionary.
261
- */
262
- id?: string;
263
-
264
- /**
265
- * ISO 8601 timestamp with millisecond precision.
266
- */
267
- created_at?: string;
268
-
269
- /**
270
- * List of pronunciation items (alias or phoneme type).
271
- */
272
- items?: Array<Data.PronunciationDictAliasItem | Data.PronunciationDictPhonemeItem>;
273
-
274
- /**
275
- * Human-readable name for the dictionary. Must be unique within the organization.
276
- */
277
- name?: string;
278
-
279
- /**
280
- * Identifies the resource type.
281
- */
282
- record_type?: 'pronunciation_dict';
283
-
284
- /**
285
- * ISO 8601 timestamp with millisecond precision.
286
- */
287
- updated_at?: string;
288
-
289
- /**
290
- * Auto-incrementing version number. Increases by 1 on each update. Used for
291
- * optimistic concurrency control and cache invalidation.
292
- */
293
- version?: number;
294
- }
295
-
296
- export namespace Data {
297
- /**
298
- * An alias pronunciation item. When the `text` value is found in input, it is
299
- * replaced with the `alias` before speech synthesis.
300
- */
301
- export interface PronunciationDictAliasItem {
302
- /**
303
- * The replacement text that will be spoken instead.
304
- */
305
- alias: string;
306
-
307
- /**
308
- * The text to match in the input. Case-insensitive matching is used during
309
- * synthesis.
310
- */
311
- text: string;
312
-
313
- /**
314
- * The item type.
315
- */
316
- type: 'alias';
317
- }
318
-
319
- /**
320
- * A phoneme pronunciation item. When the `text` value is found in input, it is
321
- * pronounced using the specified IPA phoneme notation.
322
- */
323
- export interface PronunciationDictPhonemeItem {
324
- /**
325
- * The phonetic alphabet used for the phoneme notation.
326
- */
327
- alphabet: 'ipa';
328
-
329
- /**
330
- * The phoneme notation representing the desired pronunciation.
331
- */
332
- phoneme: string;
333
-
334
- /**
335
- * The text to match in the input. Case-insensitive matching is used during
336
- * synthesis.
337
- */
338
- text: string;
339
-
340
- /**
341
- * The item type.
342
- */
343
- type: 'phoneme';
344
- }
345
- }
346
- }
347
-
348
- /**
349
- * Response containing a single pronunciation dictionary.
350
- */
351
- export interface PronunciationDictUpdateResponse {
352
- /**
353
- * A pronunciation dictionary record.
354
- */
355
- data?: PronunciationDictUpdateResponse.Data;
356
- }
357
-
358
- export namespace PronunciationDictUpdateResponse {
359
- /**
360
- * A pronunciation dictionary record.
361
- */
362
- export interface Data {
363
- /**
364
- * Unique identifier for the pronunciation dictionary.
365
- */
366
- id?: string;
367
-
368
- /**
369
- * ISO 8601 timestamp with millisecond precision.
370
- */
371
- created_at?: string;
372
-
373
- /**
374
- * List of pronunciation items (alias or phoneme type).
375
- */
376
- items?: Array<Data.PronunciationDictAliasItem | Data.PronunciationDictPhonemeItem>;
377
-
378
- /**
379
- * Human-readable name for the dictionary. Must be unique within the organization.
380
- */
381
- name?: string;
382
-
383
- /**
384
- * Identifies the resource type.
385
- */
386
- record_type?: 'pronunciation_dict';
387
-
388
- /**
389
- * ISO 8601 timestamp with millisecond precision.
390
- */
391
- updated_at?: string;
392
-
393
- /**
394
- * Auto-incrementing version number. Increases by 1 on each update. Used for
395
- * optimistic concurrency control and cache invalidation.
396
- */
397
- version?: number;
398
- }
399
-
400
- export namespace Data {
401
- /**
402
- * An alias pronunciation item. When the `text` value is found in input, it is
403
- * replaced with the `alias` before speech synthesis.
404
- */
405
- export interface PronunciationDictAliasItem {
406
- /**
407
- * The replacement text that will be spoken instead.
408
- */
409
- alias: string;
410
-
411
- /**
412
- * The text to match in the input. Case-insensitive matching is used during
413
- * synthesis.
414
- */
415
- text: string;
416
-
417
- /**
418
- * The item type.
419
- */
420
- type: 'alias';
421
- }
422
-
423
- /**
424
- * A phoneme pronunciation item. When the `text` value is found in input, it is
425
- * pronounced using the specified IPA phoneme notation.
426
- */
427
- export interface PronunciationDictPhonemeItem {
428
- /**
429
- * The phonetic alphabet used for the phoneme notation.
430
- */
431
- alphabet: 'ipa';
432
-
433
- /**
434
- * The phoneme notation representing the desired pronunciation.
435
- */
436
- phoneme: string;
437
-
438
- /**
439
- * The text to match in the input. Case-insensitive matching is used during
440
- * synthesis.
441
- */
442
- text: string;
443
-
444
- /**
445
- * The item type.
446
- */
447
- type: 'phoneme';
448
- }
449
- }
157
+ type: 'alias';
450
158
  }
451
159
 
452
160
  /**
453
161
  * A pronunciation dictionary record.
454
162
  */
455
- export interface PronunciationDictListResponse {
163
+ export interface PronunciationDictData {
456
164
  /**
457
165
  * Unique identifier for the pronunciation dictionary.
458
166
  */
@@ -466,10 +174,7 @@ export interface PronunciationDictListResponse {
466
174
  /**
467
175
  * List of pronunciation items (alias or phoneme type).
468
176
  */
469
- items?: Array<
470
- | PronunciationDictListResponse.PronunciationDictAliasItem
471
- | PronunciationDictListResponse.PronunciationDictPhonemeItem
472
- >;
177
+ items?: Array<PronunciationDictAliasItem | PronunciationDictPhonemeItem>;
473
178
 
474
179
  /**
475
180
  * Human-readable name for the dictionary. Must be unique within the organization.
@@ -493,199 +198,99 @@ export interface PronunciationDictListResponse {
493
198
  version?: number;
494
199
  }
495
200
 
496
- export namespace PronunciationDictListResponse {
201
+ /**
202
+ * A phoneme pronunciation item. When the `text` value is found in input, it is
203
+ * pronounced using the specified IPA phoneme notation.
204
+ */
205
+ export interface PronunciationDictPhonemeItem {
497
206
  /**
498
- * An alias pronunciation item. When the `text` value is found in input, it is
499
- * replaced with the `alias` before speech synthesis.
207
+ * The phonetic alphabet used for the phoneme notation.
500
208
  */
501
- export interface PronunciationDictAliasItem {
502
- /**
503
- * The replacement text that will be spoken instead.
504
- */
505
- alias: string;
506
-
507
- /**
508
- * The text to match in the input. Case-insensitive matching is used during
509
- * synthesis.
510
- */
511
- text: string;
512
-
513
- /**
514
- * The item type.
515
- */
516
- type: 'alias';
517
- }
209
+ alphabet: 'ipa';
518
210
 
519
211
  /**
520
- * A phoneme pronunciation item. When the `text` value is found in input, it is
521
- * pronounced using the specified IPA phoneme notation.
212
+ * The phoneme notation representing the desired pronunciation.
522
213
  */
523
- export interface PronunciationDictPhonemeItem {
524
- /**
525
- * The phonetic alphabet used for the phoneme notation.
526
- */
527
- alphabet: 'ipa';
214
+ phoneme: string;
528
215
 
529
- /**
530
- * The phoneme notation representing the desired pronunciation.
531
- */
532
- phoneme: string;
533
-
534
- /**
535
- * The text to match in the input. Case-insensitive matching is used during
536
- * synthesis.
537
- */
538
- text: string;
539
-
540
- /**
541
- * The item type.
542
- */
543
- type: 'phoneme';
544
- }
545
- }
546
-
547
- export interface PronunciationDictCreateParams {
548
216
  /**
549
- * List of pronunciation items (alias or phoneme type). At least one item is
550
- * required.
217
+ * The text to match in the input. Case-insensitive matching is used during
218
+ * synthesis.
551
219
  */
552
- items: Array<
553
- | PronunciationDictCreateParams.PronunciationDictAliasItem
554
- | PronunciationDictCreateParams.PronunciationDictPhonemeItem
555
- >;
220
+ text: string;
556
221
 
557
222
  /**
558
- * Human-readable name. Must be unique within the organization.
223
+ * The item type.
559
224
  */
560
- name: string;
225
+ type: 'phoneme';
561
226
  }
562
227
 
563
- export namespace PronunciationDictCreateParams {
228
+ /**
229
+ * Response containing a single pronunciation dictionary.
230
+ */
231
+ export interface PronunciationDictCreateResponse {
564
232
  /**
565
- * An alias pronunciation item. When the `text` value is found in input, it is
566
- * replaced with the `alias` before speech synthesis.
233
+ * A pronunciation dictionary record.
567
234
  */
568
- export interface PronunciationDictAliasItem {
569
- /**
570
- * The replacement text that will be spoken instead.
571
- */
572
- alias: string;
573
-
574
- /**
575
- * The text to match in the input. Case-insensitive matching is used during
576
- * synthesis.
577
- */
578
- text: string;
579
-
580
- /**
581
- * The item type.
582
- */
583
- type: 'alias';
584
- }
235
+ data?: PronunciationDictData;
236
+ }
585
237
 
238
+ /**
239
+ * Response containing a single pronunciation dictionary.
240
+ */
241
+ export interface PronunciationDictRetrieveResponse {
586
242
  /**
587
- * A phoneme pronunciation item. When the `text` value is found in input, it is
588
- * pronounced using the specified IPA phoneme notation.
243
+ * A pronunciation dictionary record.
589
244
  */
590
- export interface PronunciationDictPhonemeItem {
591
- /**
592
- * The phonetic alphabet used for the phoneme notation.
593
- */
594
- alphabet: 'ipa';
595
-
596
- /**
597
- * The phoneme notation representing the desired pronunciation.
598
- */
599
- phoneme: string;
600
-
601
- /**
602
- * The text to match in the input. Case-insensitive matching is used during
603
- * synthesis.
604
- */
605
- text: string;
245
+ data?: PronunciationDictData;
246
+ }
606
247
 
607
- /**
608
- * The item type.
609
- */
610
- type: 'phoneme';
611
- }
248
+ /**
249
+ * Response containing a single pronunciation dictionary.
250
+ */
251
+ export interface PronunciationDictUpdateResponse {
252
+ /**
253
+ * A pronunciation dictionary record.
254
+ */
255
+ data?: PronunciationDictData;
612
256
  }
613
257
 
614
- export interface PronunciationDictUpdateParams {
258
+ export interface PronunciationDictCreateParams {
615
259
  /**
616
- * Updated list of pronunciation items (alias or phoneme type).
260
+ * List of pronunciation items (alias or phoneme type). At least one item is
261
+ * required.
617
262
  */
618
- items?: Array<
619
- | PronunciationDictUpdateParams.PronunciationDictAliasItem
620
- | PronunciationDictUpdateParams.PronunciationDictPhonemeItem
621
- >;
263
+ items: Array<PronunciationDictAliasItem | PronunciationDictPhonemeItem>;
622
264
 
623
265
  /**
624
- * Updated dictionary name.
266
+ * Human-readable name. Must be unique within the organization.
625
267
  */
626
- name?: string;
268
+ name: string;
627
269
  }
628
270
 
629
- export namespace PronunciationDictUpdateParams {
271
+ export interface PronunciationDictUpdateParams {
630
272
  /**
631
- * An alias pronunciation item. When the `text` value is found in input, it is
632
- * replaced with the `alias` before speech synthesis.
273
+ * Updated list of pronunciation items (alias or phoneme type).
633
274
  */
634
- export interface PronunciationDictAliasItem {
635
- /**
636
- * The replacement text that will be spoken instead.
637
- */
638
- alias: string;
639
-
640
- /**
641
- * The text to match in the input. Case-insensitive matching is used during
642
- * synthesis.
643
- */
644
- text: string;
645
-
646
- /**
647
- * The item type.
648
- */
649
- type: 'alias';
650
- }
275
+ items?: Array<PronunciationDictAliasItem | PronunciationDictPhonemeItem>;
651
276
 
652
277
  /**
653
- * A phoneme pronunciation item. When the `text` value is found in input, it is
654
- * pronounced using the specified IPA phoneme notation.
278
+ * Updated dictionary name.
655
279
  */
656
- export interface PronunciationDictPhonemeItem {
657
- /**
658
- * The phonetic alphabet used for the phoneme notation.
659
- */
660
- alphabet: 'ipa';
661
-
662
- /**
663
- * The phoneme notation representing the desired pronunciation.
664
- */
665
- phoneme: string;
666
-
667
- /**
668
- * The text to match in the input. Case-insensitive matching is used during
669
- * synthesis.
670
- */
671
- text: string;
672
-
673
- /**
674
- * The item type.
675
- */
676
- type: 'phoneme';
677
- }
280
+ name?: string;
678
281
  }
679
282
 
680
283
  export interface PronunciationDictListParams extends DefaultFlatPaginationParams {}
681
284
 
682
285
  export declare namespace PronunciationDicts {
683
286
  export {
287
+ type PronunciationDictAliasItem as PronunciationDictAliasItem,
288
+ type PronunciationDictData as PronunciationDictData,
289
+ type PronunciationDictPhonemeItem as PronunciationDictPhonemeItem,
684
290
  type PronunciationDictCreateResponse as PronunciationDictCreateResponse,
685
291
  type PronunciationDictRetrieveResponse as PronunciationDictRetrieveResponse,
686
292
  type PronunciationDictUpdateResponse as PronunciationDictUpdateResponse,
687
- type PronunciationDictListResponse as PronunciationDictListResponse,
688
- type PronunciationDictListResponsesDefaultFlatPagination as PronunciationDictListResponsesDefaultFlatPagination,
293
+ type PronunciationDictDataDefaultFlatPagination as PronunciationDictDataDefaultFlatPagination,
689
294
  type PronunciationDictCreateParams as PronunciationDictCreateParams,
690
295
  type PronunciationDictUpdateParams as PronunciationDictUpdateParams,
691
296
  type PronunciationDictListParams as PronunciationDictListParams,
@@ -70,6 +70,79 @@ export interface AzureVoiceSettings {
70
70
  region?: string;
71
71
  }
72
72
 
73
+ export interface BookAppointmentTool {
74
+ book_appointment: BookAppointmentToolParams;
75
+
76
+ type: 'book_appointment';
77
+ }
78
+
79
+ export interface BookAppointmentToolParams {
80
+ /**
81
+ * Reference to an integration secret that contains your Cal.com API key. You would
82
+ * pass the `identifier` for an integration secret
83
+ * [/v2/integration_secrets](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
84
+ * that refers to your Cal.com API key.
85
+ */
86
+ api_key_ref: string;
87
+
88
+ /**
89
+ * Event Type ID for which slots are being fetched.
90
+ * [cal.com](https://cal.com/docs/api-reference/v2/bookings/create-a-booking#body-event-type-id)
91
+ */
92
+ event_type_id: number;
93
+
94
+ /**
95
+ * The name of the attendee
96
+ * [cal.com](https://cal.com/docs/api-reference/v2/bookings/create-a-booking#body-attendee-name).
97
+ * If not provided, the assistant will ask for the attendee's name.
98
+ */
99
+ attendee_name?: string;
100
+
101
+ /**
102
+ * The timezone of the attendee
103
+ * [cal.com](https://cal.com/docs/api-reference/v2/bookings/create-a-booking#body-attendee-timezone).
104
+ * If not provided, the assistant will ask for the attendee's timezone.
105
+ */
106
+ attendee_timezone?: string;
107
+ }
108
+
109
+ export interface CallControlBucketIDs {
110
+ bucket_ids: Array<string>;
111
+
112
+ /**
113
+ * The maximum number of results to retrieve as context for the language model.
114
+ */
115
+ max_num_results?: number;
116
+ }
117
+
118
+ export interface CallControlRetrievalTool {
119
+ retrieval: CallControlBucketIDs;
120
+
121
+ type: 'retrieval';
122
+ }
123
+
124
+ export interface CheckAvailabilityTool {
125
+ check_availability: CheckAvailabilityToolParams;
126
+
127
+ type: 'check_availability';
128
+ }
129
+
130
+ export interface CheckAvailabilityToolParams {
131
+ /**
132
+ * Reference to an integration secret that contains your Cal.com API key. You would
133
+ * pass the `identifier` for an integration secret
134
+ * [/v2/integration_secrets](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
135
+ * that refers to your Cal.com API key.
136
+ */
137
+ api_key_ref: string;
138
+
139
+ /**
140
+ * Event Type ID for which slots are being fetched.
141
+ * [cal.com](https://cal.com/docs/api-reference/v2/slots/get-available-slots#parameter-event-type-id)
142
+ */
143
+ event_type_id: number;
144
+ }
145
+
73
146
  /**
74
147
  * Configuration options for Jitter Buffer. Enables Jitter Buffer for RTP streams
75
148
  * of SIP Trunking calls. The feature is off unless enabled. You may define min and