telnyx 6.52.0 → 6.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/client.d.mts +5 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +5 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs +1 -1
  8. package/client.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/ai/ai.d.mts +10 -12
  11. package/resources/ai/ai.d.mts.map +1 -1
  12. package/resources/ai/ai.d.ts +10 -12
  13. package/resources/ai/ai.d.ts.map +1 -1
  14. package/resources/ai/ai.js.map +1 -1
  15. package/resources/ai/ai.mjs.map +1 -1
  16. package/resources/ai/assistants/assistants.d.mts +110 -322
  17. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  18. package/resources/ai/assistants/assistants.d.ts +110 -322
  19. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  20. package/resources/ai/assistants/assistants.js.map +1 -1
  21. package/resources/ai/assistants/assistants.mjs.map +1 -1
  22. package/resources/ai/assistants/canary-deploys.d.mts +70 -241
  23. package/resources/ai/assistants/canary-deploys.d.mts.map +1 -1
  24. package/resources/ai/assistants/canary-deploys.d.ts +70 -241
  25. package/resources/ai/assistants/canary-deploys.d.ts.map +1 -1
  26. package/resources/ai/assistants/index.d.mts +2 -2
  27. package/resources/ai/assistants/index.d.mts.map +1 -1
  28. package/resources/ai/assistants/index.d.ts +2 -2
  29. package/resources/ai/assistants/index.d.ts.map +1 -1
  30. package/resources/ai/assistants/index.js.map +1 -1
  31. package/resources/ai/assistants/index.mjs.map +1 -1
  32. package/resources/ai/assistants/versions.d.mts +6 -212
  33. package/resources/ai/assistants/versions.d.mts.map +1 -1
  34. package/resources/ai/assistants/versions.d.ts +6 -212
  35. package/resources/ai/assistants/versions.d.ts.map +1 -1
  36. package/resources/ai/index.d.mts +2 -2
  37. package/resources/ai/index.d.mts.map +1 -1
  38. package/resources/ai/index.d.ts +2 -2
  39. package/resources/ai/index.d.ts.map +1 -1
  40. package/resources/ai/index.js.map +1 -1
  41. package/resources/ai/index.mjs +1 -1
  42. package/resources/ai/index.mjs.map +1 -1
  43. package/resources/ai/openai/openai.d.mts +2 -9
  44. package/resources/ai/openai/openai.d.mts.map +1 -1
  45. package/resources/ai/openai/openai.d.ts +2 -9
  46. package/resources/ai/openai/openai.d.ts.map +1 -1
  47. package/resources/ai/openai/openai.js.map +1 -1
  48. package/resources/ai/openai/openai.mjs.map +1 -1
  49. package/resources/calls/actions.d.mts +41 -119
  50. package/resources/calls/actions.d.mts.map +1 -1
  51. package/resources/calls/actions.d.ts +41 -119
  52. package/resources/calls/actions.d.ts.map +1 -1
  53. package/resources/calls/calls.d.mts +2 -2
  54. package/resources/calls/calls.d.mts.map +1 -1
  55. package/resources/calls/calls.d.ts +2 -2
  56. package/resources/calls/calls.d.ts.map +1 -1
  57. package/resources/calls/calls.js.map +1 -1
  58. package/resources/calls/calls.mjs.map +1 -1
  59. package/resources/calls/index.d.mts +1 -1
  60. package/resources/calls/index.d.mts.map +1 -1
  61. package/resources/calls/index.d.ts +1 -1
  62. package/resources/calls/index.d.ts.map +1 -1
  63. package/resources/calls/index.js.map +1 -1
  64. package/resources/calls/index.mjs.map +1 -1
  65. package/resources/conferences/actions.d.mts +1 -11
  66. package/resources/conferences/actions.d.mts.map +1 -1
  67. package/resources/conferences/actions.d.ts +1 -11
  68. package/resources/conferences/actions.d.ts.map +1 -1
  69. package/resources/index.d.mts +2 -2
  70. package/resources/index.d.mts.map +1 -1
  71. package/resources/index.d.ts +2 -2
  72. package/resources/index.d.ts.map +1 -1
  73. package/resources/index.js.map +1 -1
  74. package/resources/index.mjs +1 -1
  75. package/resources/index.mjs.map +1 -1
  76. package/resources/networks/networks.d.mts +25 -2
  77. package/resources/networks/networks.d.mts.map +1 -1
  78. package/resources/networks/networks.d.ts +25 -2
  79. package/resources/networks/networks.d.ts.map +1 -1
  80. package/resources/networks/networks.js.map +1 -1
  81. package/resources/networks/networks.mjs.map +1 -1
  82. package/resources/public-internet-gateways.d.mts +116 -6
  83. package/resources/public-internet-gateways.d.mts.map +1 -1
  84. package/resources/public-internet-gateways.d.ts +116 -6
  85. package/resources/public-internet-gateways.d.ts.map +1 -1
  86. package/resources/public-internet-gateways.js.map +1 -1
  87. package/resources/public-internet-gateways.mjs.map +1 -1
  88. package/resources/shared.d.mts +10 -0
  89. package/resources/shared.d.mts.map +1 -1
  90. package/resources/shared.d.ts +10 -0
  91. package/resources/shared.d.ts.map +1 -1
  92. package/resources/uac-connections/index.d.mts +1 -1
  93. package/resources/uac-connections/index.d.mts.map +1 -1
  94. package/resources/uac-connections/index.d.ts +1 -1
  95. package/resources/uac-connections/index.d.ts.map +1 -1
  96. package/resources/uac-connections/index.js.map +1 -1
  97. package/resources/uac-connections/index.mjs.map +1 -1
  98. package/resources/uac-connections/uac-connections.d.mts +211 -1861
  99. package/resources/uac-connections/uac-connections.d.mts.map +1 -1
  100. package/resources/uac-connections/uac-connections.d.ts +211 -1861
  101. package/resources/uac-connections/uac-connections.d.ts.map +1 -1
  102. package/resources/uac-connections/uac-connections.js +1 -1
  103. package/resources/uac-connections/uac-connections.js.map +1 -1
  104. package/resources/uac-connections/uac-connections.mjs +1 -1
  105. package/resources/uac-connections/uac-connections.mjs.map +1 -1
  106. package/resources/virtual-cross-connects.d.mts +161 -237
  107. package/resources/virtual-cross-connects.d.mts.map +1 -1
  108. package/resources/virtual-cross-connects.d.ts +161 -237
  109. package/resources/virtual-cross-connects.d.ts.map +1 -1
  110. package/resources/virtual-cross-connects.js.map +1 -1
  111. package/resources/virtual-cross-connects.mjs.map +1 -1
  112. package/resources/wireguard-interfaces.d.mts +117 -6
  113. package/resources/wireguard-interfaces.d.mts.map +1 -1
  114. package/resources/wireguard-interfaces.d.ts +117 -6
  115. package/resources/wireguard-interfaces.d.ts.map +1 -1
  116. package/resources/wireguard-interfaces.js.map +1 -1
  117. package/resources/wireguard-interfaces.mjs.map +1 -1
  118. package/src/client.ts +21 -5
  119. package/src/resources/ai/ai.ts +20 -11
  120. package/src/resources/ai/assistants/assistants.ts +131 -350
  121. package/src/resources/ai/assistants/canary-deploys.ts +75 -266
  122. package/src/resources/ai/assistants/index.ts +10 -0
  123. package/src/resources/ai/assistants/versions.ts +6 -234
  124. package/src/resources/ai/index.ts +12 -1
  125. package/src/resources/ai/openai/openai.ts +2 -13
  126. package/src/resources/calls/actions.ts +76 -192
  127. package/src/resources/calls/calls.ts +4 -0
  128. package/src/resources/calls/index.ts +2 -0
  129. package/src/resources/conferences/actions.ts +1 -13
  130. package/src/resources/index.ts +13 -3
  131. package/src/resources/networks/networks.ts +31 -4
  132. package/src/resources/public-internet-gateways.ts +144 -6
  133. package/src/resources/shared.ts +12 -0
  134. package/src/resources/uac-connections/index.ts +6 -2
  135. package/src/resources/uac-connections/uac-connections.ts +397 -2396
  136. package/src/resources/virtual-cross-connects.ts +176 -249
  137. package/src/resources/wireguard-interfaces.ts +145 -8
  138. package/src/version.ts +1 -1
  139. package/version.d.mts +1 -1
  140. package/version.d.ts +1 -1
  141. package/version.js +1 -1
  142. package/version.mjs +1 -1
@@ -174,7 +174,7 @@ export interface UpdateAssistant {
174
174
  * `/ai/integrations/connections`. Each item references a catalog integration by
175
175
  * `integration_id`.
176
176
  */
177
- integrations?: Array<UpdateAssistant.Integration>;
177
+ integrations?: Array<AssistantsAPI.AssistantIntegration>;
178
178
 
179
179
  /**
180
180
  * Settings for interruptions and how the assistant decides the user has finished
@@ -184,7 +184,7 @@ export interface UpdateAssistant {
184
184
  * `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
185
185
  * `eager_eot_threshold`).
186
186
  */
187
- interruption_settings?: UpdateAssistant.InterruptionSettings;
187
+ interruption_settings?: AssistantsAPI.InferenceEmbeddingInterruptionSettings;
188
188
 
189
189
  /**
190
190
  * This is only needed when using third-party inference providers selected by
@@ -200,7 +200,7 @@ export interface UpdateAssistant {
200
200
  * MCP servers attached to the assistant. Create MCP servers with
201
201
  * `/ai/mcp_servers`, then reference them by `id` here.
202
202
  */
203
- mcp_servers?: Array<UpdateAssistant.McpServer>;
203
+ mcp_servers?: Array<AssistantsAPI.AssistantMcpServer>;
204
204
 
205
205
  messaging_settings?: AssistantsAPI.MessagingSettings;
206
206
 
@@ -265,120 +265,6 @@ export interface UpdateAssistant {
265
265
  widget_settings?: AssistantsAPI.WidgetSettings;
266
266
  }
267
267
 
268
- export namespace UpdateAssistant {
269
- /**
270
- * Reference to a connected integration attached to an assistant. Discover
271
- * available integrations with `/ai/integrations` and connected integrations with
272
- * `/ai/integrations/connections`.
273
- */
274
- export interface Integration {
275
- /**
276
- * Catalog integration ID to attach. This is the `id` from the integrations catalog
277
- * at `/ai/integrations` (the same value also appears as `integration_id` on
278
- * entries returned by `/ai/integrations/connections`). It is **not** the
279
- * connection-level `id` from `/ai/integrations/connections`.
280
- */
281
- integration_id: string;
282
-
283
- /**
284
- * Optional per-assistant allowlist of integration tool names. When omitted or
285
- * empty, all tools allowed by the connected integration are available to the
286
- * assistant.
287
- */
288
- allowed_list?: Array<string>;
289
- }
290
-
291
- /**
292
- * Settings for interruptions and how the assistant decides the user has finished
293
- * speaking. These timings are most relevant when using non turn-taking
294
- * transcription models. For turn-taking models like `deepgram/flux`, end-of-turn
295
- * behavior is controlled by the transcription end-of-turn settings under
296
- * `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
297
- * `eager_eot_threshold`).
298
- */
299
- export interface InterruptionSettings {
300
- /**
301
- * Whether users can interrupt the assistant while it is speaking.
302
- */
303
- enable?: boolean;
304
-
305
- /**
306
- * Controls when the assistant starts speaking after the user stops. These
307
- * thresholds primarily apply to non turn-taking transcription models. For
308
- * turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
309
- * transcription end-of-turn settings under `transcription.settings` instead.
310
- */
311
- start_speaking_plan?: InterruptionSettings.StartSpeakingPlan;
312
- }
313
-
314
- export namespace InterruptionSettings {
315
- /**
316
- * Controls when the assistant starts speaking after the user stops. These
317
- * thresholds primarily apply to non turn-taking transcription models. For
318
- * turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
319
- * transcription end-of-turn settings under `transcription.settings` instead.
320
- */
321
- export interface StartSpeakingPlan {
322
- /**
323
- * Endpointing thresholds used to decide when the user has finished speaking.
324
- * Applies to non turn-taking transcription models. For `deepgram/flux`, use
325
- * `transcription.settings.eot_threshold` / `eot_timeout_ms` /
326
- * `eager_eot_threshold`.
327
- */
328
- transcription_endpointing_plan?: StartSpeakingPlan.TranscriptionEndpointingPlan;
329
-
330
- /**
331
- * Minimum seconds to wait before the assistant starts speaking.
332
- */
333
- wait_seconds?: number;
334
- }
335
-
336
- export namespace StartSpeakingPlan {
337
- /**
338
- * Endpointing thresholds used to decide when the user has finished speaking.
339
- * Applies to non turn-taking transcription models. For `deepgram/flux`, use
340
- * `transcription.settings.eot_threshold` / `eot_timeout_ms` /
341
- * `eager_eot_threshold`.
342
- */
343
- export interface TranscriptionEndpointingPlan {
344
- /**
345
- * Seconds to wait after the transcript ends without punctuation.
346
- */
347
- on_no_punctuation_seconds?: number;
348
-
349
- /**
350
- * Seconds to wait after the transcript ends with a number.
351
- */
352
- on_number_seconds?: number;
353
-
354
- /**
355
- * Seconds to wait after the transcript ends with punctuation.
356
- */
357
- on_punctuation_seconds?: number;
358
- }
359
- }
360
- }
361
-
362
- /**
363
- * Reference to an MCP server attached to an assistant. Create and manage MCP
364
- * servers with the `/ai/mcp_servers` endpoints, then attach them to assistants by
365
- * ID.
366
- */
367
- export interface McpServer {
368
- /**
369
- * ID of the MCP server to attach. This must be the `id` of an MCP server returned
370
- * by the `/ai/mcp_servers` endpoints.
371
- */
372
- id: string;
373
-
374
- /**
375
- * Optional per-assistant allowlist of MCP tool names. When omitted, the assistant
376
- * uses the MCP server's configured `allowed_tools`.
377
- */
378
- allowed_tools?: Array<string>;
379
- }
380
- }
381
-
382
268
  export interface VersionRetrieveParams {
383
269
  /**
384
270
  * Path param
@@ -469,7 +355,7 @@ export interface VersionUpdateParams {
469
355
  * integrations are at `/ai/integrations/connections`. Each item references a
470
356
  * catalog integration by `integration_id`.
471
357
  */
472
- integrations?: Array<VersionUpdateParams.Integration>;
358
+ integrations?: Array<AssistantsAPI.AssistantIntegration>;
473
359
 
474
360
  /**
475
361
  * Body param: Settings for interruptions and how the assistant decides the user
@@ -479,7 +365,7 @@ export interface VersionUpdateParams {
479
365
  * under `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
480
366
  * `eager_eot_threshold`).
481
367
  */
482
- interruption_settings?: VersionUpdateParams.InterruptionSettings;
368
+ interruption_settings?: AssistantsAPI.InferenceEmbeddingInterruptionSettings;
483
369
 
484
370
  /**
485
371
  * Body param: This is only needed when using third-party inference providers
@@ -495,7 +381,7 @@ export interface VersionUpdateParams {
495
381
  * Body param: MCP servers attached to the assistant. Create MCP servers with
496
382
  * `/ai/mcp_servers`, then reference them by `id` here.
497
383
  */
498
- mcp_servers?: Array<VersionUpdateParams.McpServer>;
384
+ mcp_servers?: Array<AssistantsAPI.AssistantMcpServer>;
499
385
 
500
386
  /**
501
387
  * Body param
@@ -582,120 +468,6 @@ export interface VersionUpdateParams {
582
468
  widget_settings?: AssistantsAPI.WidgetSettings;
583
469
  }
584
470
 
585
- export namespace VersionUpdateParams {
586
- /**
587
- * Reference to a connected integration attached to an assistant. Discover
588
- * available integrations with `/ai/integrations` and connected integrations with
589
- * `/ai/integrations/connections`.
590
- */
591
- export interface Integration {
592
- /**
593
- * Catalog integration ID to attach. This is the `id` from the integrations catalog
594
- * at `/ai/integrations` (the same value also appears as `integration_id` on
595
- * entries returned by `/ai/integrations/connections`). It is **not** the
596
- * connection-level `id` from `/ai/integrations/connections`.
597
- */
598
- integration_id: string;
599
-
600
- /**
601
- * Optional per-assistant allowlist of integration tool names. When omitted or
602
- * empty, all tools allowed by the connected integration are available to the
603
- * assistant.
604
- */
605
- allowed_list?: Array<string>;
606
- }
607
-
608
- /**
609
- * Settings for interruptions and how the assistant decides the user has finished
610
- * speaking. These timings are most relevant when using non turn-taking
611
- * transcription models. For turn-taking models like `deepgram/flux`, end-of-turn
612
- * behavior is controlled by the transcription end-of-turn settings under
613
- * `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
614
- * `eager_eot_threshold`).
615
- */
616
- export interface InterruptionSettings {
617
- /**
618
- * Whether users can interrupt the assistant while it is speaking.
619
- */
620
- enable?: boolean;
621
-
622
- /**
623
- * Controls when the assistant starts speaking after the user stops. These
624
- * thresholds primarily apply to non turn-taking transcription models. For
625
- * turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
626
- * transcription end-of-turn settings under `transcription.settings` instead.
627
- */
628
- start_speaking_plan?: InterruptionSettings.StartSpeakingPlan;
629
- }
630
-
631
- export namespace InterruptionSettings {
632
- /**
633
- * Controls when the assistant starts speaking after the user stops. These
634
- * thresholds primarily apply to non turn-taking transcription models. For
635
- * turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
636
- * transcription end-of-turn settings under `transcription.settings` instead.
637
- */
638
- export interface StartSpeakingPlan {
639
- /**
640
- * Endpointing thresholds used to decide when the user has finished speaking.
641
- * Applies to non turn-taking transcription models. For `deepgram/flux`, use
642
- * `transcription.settings.eot_threshold` / `eot_timeout_ms` /
643
- * `eager_eot_threshold`.
644
- */
645
- transcription_endpointing_plan?: StartSpeakingPlan.TranscriptionEndpointingPlan;
646
-
647
- /**
648
- * Minimum seconds to wait before the assistant starts speaking.
649
- */
650
- wait_seconds?: number;
651
- }
652
-
653
- export namespace StartSpeakingPlan {
654
- /**
655
- * Endpointing thresholds used to decide when the user has finished speaking.
656
- * Applies to non turn-taking transcription models. For `deepgram/flux`, use
657
- * `transcription.settings.eot_threshold` / `eot_timeout_ms` /
658
- * `eager_eot_threshold`.
659
- */
660
- export interface TranscriptionEndpointingPlan {
661
- /**
662
- * Seconds to wait after the transcript ends without punctuation.
663
- */
664
- on_no_punctuation_seconds?: number;
665
-
666
- /**
667
- * Seconds to wait after the transcript ends with a number.
668
- */
669
- on_number_seconds?: number;
670
-
671
- /**
672
- * Seconds to wait after the transcript ends with punctuation.
673
- */
674
- on_punctuation_seconds?: number;
675
- }
676
- }
677
- }
678
-
679
- /**
680
- * Reference to an MCP server attached to an assistant. Create and manage MCP
681
- * servers with the `/ai/mcp_servers` endpoints, then attach them to assistants by
682
- * ID.
683
- */
684
- export interface McpServer {
685
- /**
686
- * ID of the MCP server to attach. This must be the `id` of an MCP server returned
687
- * by the `/ai/mcp_servers` endpoints.
688
- */
689
- id: string;
690
-
691
- /**
692
- * Optional per-assistant allowlist of MCP tool names. When omitted, the assistant
693
- * uses the MCP server's configured `allowed_tools`.
694
- */
695
- allowed_tools?: Array<string>;
696
- }
697
- }
698
-
699
471
  export interface VersionDeleteParams {
700
472
  assistant_id: string;
701
473
  }
@@ -1,9 +1,17 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export { AI, type AIRetrieveModelsResponse, type AISummarizeResponse, type AISummarizeParams } from './ai';
3
+ export {
4
+ AI,
5
+ type ModelMetadata,
6
+ type AIRetrieveModelsResponse,
7
+ type AISummarizeResponse,
8
+ type AISummarizeParams,
9
+ } from './ai';
4
10
  export {
5
11
  Assistants,
6
12
  type Assistant,
13
+ type AssistantIntegration,
14
+ type AssistantMcpServer,
7
15
  type AssistantTool,
8
16
  type AssistantsList,
9
17
  type AudioVisualizerConfig,
@@ -16,6 +24,7 @@ export {
16
24
  type HangupToolParams,
17
25
  type ImportMetadata,
18
26
  type InferenceEmbedding,
27
+ type InferenceEmbeddingInterruptionSettings,
19
28
  type InferenceEmbeddingWebhookToolParams,
20
29
  type InsightSettings,
21
30
  type MessagingSettings,
@@ -25,7 +34,9 @@ export {
25
34
  type PostConversationSettingsReq,
26
35
  type PrivacySettings,
27
36
  type RetrievalTool,
37
+ type StartSpeakingPlan,
28
38
  type TelephonySettings,
39
+ type TranscriptionEndpointingPlan,
29
40
  type TranscriptionSettings,
30
41
  type TranscriptionSettingsConfig,
31
42
  type TransferTool,
@@ -1,6 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../../core/resource';
4
+ import * as AIAPI from '../ai';
4
5
  import * as ChatAPI from './chat';
5
6
  import { Chat, ChatCreateCompletionParams, ChatCreateCompletionResponse } from './chat';
6
7
  import * as EmbeddingsAPI from './embeddings';
@@ -35,23 +36,11 @@ export class OpenAI extends APIResource {
35
36
  }
36
37
 
37
38
  export interface OpenAIListModelsResponse {
38
- data: Array<OpenAIListModelsResponse.Data>;
39
+ data: Array<AIAPI.ModelMetadata>;
39
40
 
40
41
  object?: string;
41
42
  }
42
43
 
43
- export namespace OpenAIListModelsResponse {
44
- export interface Data {
45
- id: string;
46
-
47
- created: number;
48
-
49
- owned_by: string;
50
-
51
- object?: string;
52
- }
53
- }
54
-
55
44
  OpenAI.Embeddings = Embeddings;
56
45
  OpenAI.Chat = Chat;
57
46