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
@@ -2,7 +2,7 @@ import { APIResource } from "../../../core/resource.mjs";
2
2
  import * as Shared from "../../shared.mjs";
3
3
  import * as ChatAPI from "../chat.mjs";
4
4
  import * as CanaryDeploysAPI from "./canary-deploys.mjs";
5
- import { CanaryDeploy, CanaryDeployCreateParams, CanaryDeployResponse, CanaryDeployUpdateParams, CanaryDeploys } from "./canary-deploys.mjs";
5
+ import { CanaryDeploy, CanaryDeployCreateParams, CanaryDeployResponse, CanaryDeployUpdateParams, CanaryDeploys, Clause, RolloutSlot, RuleInput, RuleOutput, Serve } from "./canary-deploys.mjs";
6
6
  import * as ScheduledEventsAPI from "./scheduled-events.mjs";
7
7
  import { ConversationChannelType, EventStatus, ScheduledEventCreateParams, ScheduledEventDeleteParams, ScheduledEventListParams, ScheduledEventListResponse, ScheduledEventListResponsesDefaultFlatPagination, ScheduledEventResponse, ScheduledEventRetrieveParams, ScheduledEvents, ScheduledPhoneCallEventResponse, ScheduledSMSEventResponse } from "./scheduled-events.mjs";
8
8
  import * as TagsAPI from "./tags.mjs";
@@ -184,6 +184,43 @@ export interface Assistant {
184
184
  */
185
185
  tools?: Array<Shared.BookAppointmentTool | Shared.CheckAvailabilityTool | WebhookTool | HangupTool | TransferTool | Shared.CallControlRetrievalTool>;
186
186
  }
187
+ /**
188
+ * Reference to a connected integration attached to an assistant. Discover
189
+ * available integrations with `/ai/integrations` and connected integrations with
190
+ * `/ai/integrations/connections`.
191
+ */
192
+ export interface AssistantIntegration {
193
+ /**
194
+ * Catalog integration ID to attach. This is the `id` from the integrations catalog
195
+ * at `/ai/integrations` (the same value also appears as `integration_id` on
196
+ * entries returned by `/ai/integrations/connections`). It is **not** the
197
+ * connection-level `id` from `/ai/integrations/connections`.
198
+ */
199
+ integration_id: string;
200
+ /**
201
+ * Optional per-assistant allowlist of integration tool names. When omitted or
202
+ * empty, all tools allowed by the connected integration are available to the
203
+ * assistant.
204
+ */
205
+ allowed_list?: Array<string>;
206
+ }
207
+ /**
208
+ * Reference to an MCP server attached to an assistant. Create and manage MCP
209
+ * servers with the `/ai/mcp_servers` endpoints, then attach them to assistants by
210
+ * ID.
211
+ */
212
+ export interface AssistantMcpServer {
213
+ /**
214
+ * ID of the MCP server to attach. This must be the `id` of an MCP server returned
215
+ * by the `/ai/mcp_servers` endpoints.
216
+ */
217
+ id: string;
218
+ /**
219
+ * Optional per-assistant allowlist of MCP tool names. When omitted, the assistant
220
+ * uses the MCP server's configured `allowed_tools`.
221
+ */
222
+ allowed_tools?: Array<string>;
223
+ }
187
224
  /**
188
225
  * The handoff tool allows the assistant to hand off control of the conversation to
189
226
  * another AI assistant. By default, this will happen transparently to the end
@@ -243,7 +280,7 @@ export declare namespace AssistantTool {
243
280
  * variable string like `{{ targets }}` where `targets` is returned by the dynamic
244
281
  * variables webhook and resolves to an array of target objects at runtime.
245
282
  */
246
- targets: Array<Transfer.UnionMember0> | string;
283
+ targets: Array<Transfer.TargetsList> | string;
247
284
  /**
248
285
  * Custom headers to be added to the SIP INVITE for the transfer command.
249
286
  */
@@ -268,7 +305,7 @@ export declare namespace AssistantTool {
268
305
  warm_transfer_instructions?: string;
269
306
  }
270
307
  namespace Transfer {
271
- interface UnionMember0 {
308
+ interface TargetsList {
272
309
  /**
273
310
  * The destination number or SIP URI of the call.
274
311
  */
@@ -419,7 +456,7 @@ export declare namespace AssistantTool {
419
456
  * omitted or null, the invite tool can still be configured and targets may be
420
457
  * supplied dynamically at runtime.
421
458
  */
422
- targets?: Array<Invite.UnionMember0> | string | null;
459
+ targets?: Array<Invite.TargetsList> | string | null;
423
460
  /**
424
461
  * Configuration for voicemail detection (AMD - Answering Machine Detection) on the
425
462
  * invited call.
@@ -437,7 +474,7 @@ export declare namespace AssistantTool {
437
474
  */
438
475
  value?: string;
439
476
  }
440
- interface UnionMember0 {
477
+ interface TargetsList {
441
478
  /**
442
479
  * The destination number or SIP URI of the call.
443
480
  */
@@ -778,7 +815,7 @@ export interface InferenceEmbedding {
778
815
  * `/ai/integrations/connections`. Each item references a catalog integration by
779
816
  * `integration_id`.
780
817
  */
781
- integrations?: Array<InferenceEmbedding.Integration>;
818
+ integrations?: Array<AssistantIntegration>;
782
819
  /**
783
820
  * Settings for interruptions and how the assistant decides the user has finished
784
821
  * speaking. These timings are most relevant when using non turn-taking
@@ -787,7 +824,7 @@ export interface InferenceEmbedding {
787
824
  * `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
788
825
  * `eager_eot_threshold`).
789
826
  */
790
- interruption_settings?: InferenceEmbedding.InterruptionSettings;
827
+ interruption_settings?: InferenceEmbeddingInterruptionSettings;
791
828
  /**
792
829
  * This is only needed when using third-party inference providers selected by
793
830
  * `model`. The `identifier` for an integration secret
@@ -801,7 +838,7 @@ export interface InferenceEmbedding {
801
838
  * MCP servers attached to the assistant. Create MCP servers with
802
839
  * `/ai/mcp_servers`, then reference them by `id` here.
803
840
  */
804
- mcp_servers?: Array<InferenceEmbedding.McpServer>;
841
+ mcp_servers?: Array<AssistantMcpServer>;
805
842
  messaging_settings?: MessagingSettings;
806
843
  observability_settings?: Observability;
807
844
  /**
@@ -850,108 +887,26 @@ export interface InferenceEmbedding {
850
887
  */
851
888
  widget_settings?: WidgetSettings;
852
889
  }
853
- export declare namespace InferenceEmbedding {
890
+ /**
891
+ * Settings for interruptions and how the assistant decides the user has finished
892
+ * speaking. These timings are most relevant when using non turn-taking
893
+ * transcription models. For turn-taking models like `deepgram/flux`, end-of-turn
894
+ * behavior is controlled by the transcription end-of-turn settings under
895
+ * `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
896
+ * `eager_eot_threshold`).
897
+ */
898
+ export interface InferenceEmbeddingInterruptionSettings {
854
899
  /**
855
- * Reference to a connected integration attached to an assistant. Discover
856
- * available integrations with `/ai/integrations` and connected integrations with
857
- * `/ai/integrations/connections`.
900
+ * Whether users can interrupt the assistant while it is speaking.
858
901
  */
859
- interface Integration {
860
- /**
861
- * Catalog integration ID to attach. This is the `id` from the integrations catalog
862
- * at `/ai/integrations` (the same value also appears as `integration_id` on
863
- * entries returned by `/ai/integrations/connections`). It is **not** the
864
- * connection-level `id` from `/ai/integrations/connections`.
865
- */
866
- integration_id: string;
867
- /**
868
- * Optional per-assistant allowlist of integration tool names. When omitted or
869
- * empty, all tools allowed by the connected integration are available to the
870
- * assistant.
871
- */
872
- allowed_list?: Array<string>;
873
- }
902
+ enable?: boolean;
874
903
  /**
875
- * Settings for interruptions and how the assistant decides the user has finished
876
- * speaking. These timings are most relevant when using non turn-taking
877
- * transcription models. For turn-taking models like `deepgram/flux`, end-of-turn
878
- * behavior is controlled by the transcription end-of-turn settings under
879
- * `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
880
- * `eager_eot_threshold`).
904
+ * Controls when the assistant starts speaking after the user stops. These
905
+ * thresholds primarily apply to non turn-taking transcription models. For
906
+ * turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
907
+ * transcription end-of-turn settings under `transcription.settings` instead.
881
908
  */
882
- interface InterruptionSettings {
883
- /**
884
- * Whether users can interrupt the assistant while it is speaking.
885
- */
886
- enable?: boolean;
887
- /**
888
- * Controls when the assistant starts speaking after the user stops. These
889
- * thresholds primarily apply to non turn-taking transcription models. For
890
- * turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
891
- * transcription end-of-turn settings under `transcription.settings` instead.
892
- */
893
- start_speaking_plan?: InterruptionSettings.StartSpeakingPlan;
894
- }
895
- namespace InterruptionSettings {
896
- /**
897
- * Controls when the assistant starts speaking after the user stops. These
898
- * thresholds primarily apply to non turn-taking transcription models. For
899
- * turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
900
- * transcription end-of-turn settings under `transcription.settings` instead.
901
- */
902
- interface StartSpeakingPlan {
903
- /**
904
- * Endpointing thresholds used to decide when the user has finished speaking.
905
- * Applies to non turn-taking transcription models. For `deepgram/flux`, use
906
- * `transcription.settings.eot_threshold` / `eot_timeout_ms` /
907
- * `eager_eot_threshold`.
908
- */
909
- transcription_endpointing_plan?: StartSpeakingPlan.TranscriptionEndpointingPlan;
910
- /**
911
- * Minimum seconds to wait before the assistant starts speaking.
912
- */
913
- wait_seconds?: number;
914
- }
915
- namespace StartSpeakingPlan {
916
- /**
917
- * Endpointing thresholds used to decide when the user has finished speaking.
918
- * Applies to non turn-taking transcription models. For `deepgram/flux`, use
919
- * `transcription.settings.eot_threshold` / `eot_timeout_ms` /
920
- * `eager_eot_threshold`.
921
- */
922
- interface TranscriptionEndpointingPlan {
923
- /**
924
- * Seconds to wait after the transcript ends without punctuation.
925
- */
926
- on_no_punctuation_seconds?: number;
927
- /**
928
- * Seconds to wait after the transcript ends with a number.
929
- */
930
- on_number_seconds?: number;
931
- /**
932
- * Seconds to wait after the transcript ends with punctuation.
933
- */
934
- on_punctuation_seconds?: number;
935
- }
936
- }
937
- }
938
- /**
939
- * Reference to an MCP server attached to an assistant. Create and manage MCP
940
- * servers with the `/ai/mcp_servers` endpoints, then attach them to assistants by
941
- * ID.
942
- */
943
- interface McpServer {
944
- /**
945
- * ID of the MCP server to attach. This must be the `id` of an MCP server returned
946
- * by the `/ai/mcp_servers` endpoints.
947
- */
948
- id: string;
949
- /**
950
- * Optional per-assistant allowlist of MCP tool names. When omitted, the assistant
951
- * uses the MCP server's configured `allowed_tools`.
952
- */
953
- allowed_tools?: Array<string>;
954
- }
909
+ start_speaking_plan?: StartSpeakingPlan;
955
910
  }
956
911
  export interface InferenceEmbeddingWebhookToolParams {
957
912
  type: 'webhook';
@@ -1212,6 +1167,25 @@ export interface RetrievalTool {
1212
1167
  retrieval: ChatAPI.BucketIDs;
1213
1168
  type: 'retrieval';
1214
1169
  }
1170
+ /**
1171
+ * Controls when the assistant starts speaking after the user stops. These
1172
+ * thresholds primarily apply to non turn-taking transcription models. For
1173
+ * turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
1174
+ * transcription end-of-turn settings under `transcription.settings` instead.
1175
+ */
1176
+ export interface StartSpeakingPlan {
1177
+ /**
1178
+ * Endpointing thresholds used to decide when the user has finished speaking.
1179
+ * Applies to non turn-taking transcription models. For `deepgram/flux`, use
1180
+ * `transcription.settings.eot_threshold` / `eot_timeout_ms` /
1181
+ * `eager_eot_threshold`.
1182
+ */
1183
+ transcription_endpointing_plan?: TranscriptionEndpointingPlan;
1184
+ /**
1185
+ * Minimum seconds to wait before the assistant starts speaking.
1186
+ */
1187
+ wait_seconds?: number;
1188
+ }
1215
1189
  export interface TelephonySettings {
1216
1190
  /**
1217
1191
  * Default Texml App used for voice calls with your assistant. This will be created
@@ -1355,6 +1329,26 @@ export declare namespace TelephonySettings {
1355
1329
  }
1356
1330
  }
1357
1331
  }
1332
+ /**
1333
+ * Endpointing thresholds used to decide when the user has finished speaking.
1334
+ * Applies to non turn-taking transcription models. For `deepgram/flux`, use
1335
+ * `transcription.settings.eot_threshold` / `eot_timeout_ms` /
1336
+ * `eager_eot_threshold`.
1337
+ */
1338
+ export interface TranscriptionEndpointingPlan {
1339
+ /**
1340
+ * Seconds to wait after the transcript ends without punctuation.
1341
+ */
1342
+ on_no_punctuation_seconds?: number;
1343
+ /**
1344
+ * Seconds to wait after the transcript ends with a number.
1345
+ */
1346
+ on_number_seconds?: number;
1347
+ /**
1348
+ * Seconds to wait after the transcript ends with punctuation.
1349
+ */
1350
+ on_punctuation_seconds?: number;
1351
+ }
1358
1352
  export interface TranscriptionSettings {
1359
1353
  /**
1360
1354
  * Integration secret identifier for the transcription provider API key. Currently
@@ -1452,10 +1446,10 @@ export declare namespace TransferTool {
1452
1446
  * variable string like `{{ targets }}` where `targets` is returned by the dynamic
1453
1447
  * variables webhook and resolves to an array of target objects at runtime.
1454
1448
  */
1455
- targets: Array<Transfer.UnionMember0> | string;
1449
+ targets: Array<Transfer.TargetsList> | string;
1456
1450
  }
1457
1451
  namespace Transfer {
1458
- interface UnionMember0 {
1452
+ interface TargetsList {
1459
1453
  /**
1460
1454
  * The destination number or SIP URI of the call.
1461
1455
  */
@@ -1816,7 +1810,7 @@ export interface AssistantCreateParams {
1816
1810
  * `/ai/integrations/connections`. Each item references a catalog integration by
1817
1811
  * `integration_id`.
1818
1812
  */
1819
- integrations?: Array<AssistantCreateParams.Integration>;
1813
+ integrations?: Array<AssistantIntegration>;
1820
1814
  /**
1821
1815
  * Settings for interruptions and how the assistant decides the user has finished
1822
1816
  * speaking. These timings are most relevant when using non turn-taking
@@ -1825,7 +1819,7 @@ export interface AssistantCreateParams {
1825
1819
  * `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
1826
1820
  * `eager_eot_threshold`).
1827
1821
  */
1828
- interruption_settings?: AssistantCreateParams.InterruptionSettings;
1822
+ interruption_settings?: InferenceEmbeddingInterruptionSettings;
1829
1823
  /**
1830
1824
  * This is only needed when using third-party inference providers selected by
1831
1825
  * `model`. The `identifier` for an integration secret
@@ -1839,7 +1833,7 @@ export interface AssistantCreateParams {
1839
1833
  * MCP servers attached to the assistant. Create MCP servers with
1840
1834
  * `/ai/mcp_servers`, then reference them by `id` here.
1841
1835
  */
1842
- mcp_servers?: Array<AssistantCreateParams.McpServer>;
1836
+ mcp_servers?: Array<AssistantMcpServer>;
1843
1837
  messaging_settings?: MessagingSettings;
1844
1838
  /**
1845
1839
  * ID of the model to use when `external_llm` is not set. You can use the
@@ -1884,109 +1878,6 @@ export interface AssistantCreateParams {
1884
1878
  */
1885
1879
  widget_settings?: WidgetSettings;
1886
1880
  }
1887
- export declare namespace AssistantCreateParams {
1888
- /**
1889
- * Reference to a connected integration attached to an assistant. Discover
1890
- * available integrations with `/ai/integrations` and connected integrations with
1891
- * `/ai/integrations/connections`.
1892
- */
1893
- interface Integration {
1894
- /**
1895
- * Catalog integration ID to attach. This is the `id` from the integrations catalog
1896
- * at `/ai/integrations` (the same value also appears as `integration_id` on
1897
- * entries returned by `/ai/integrations/connections`). It is **not** the
1898
- * connection-level `id` from `/ai/integrations/connections`.
1899
- */
1900
- integration_id: string;
1901
- /**
1902
- * Optional per-assistant allowlist of integration tool names. When omitted or
1903
- * empty, all tools allowed by the connected integration are available to the
1904
- * assistant.
1905
- */
1906
- allowed_list?: Array<string>;
1907
- }
1908
- /**
1909
- * Settings for interruptions and how the assistant decides the user has finished
1910
- * speaking. These timings are most relevant when using non turn-taking
1911
- * transcription models. For turn-taking models like `deepgram/flux`, end-of-turn
1912
- * behavior is controlled by the transcription end-of-turn settings under
1913
- * `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
1914
- * `eager_eot_threshold`).
1915
- */
1916
- interface InterruptionSettings {
1917
- /**
1918
- * Whether users can interrupt the assistant while it is speaking.
1919
- */
1920
- enable?: boolean;
1921
- /**
1922
- * Controls when the assistant starts speaking after the user stops. These
1923
- * thresholds primarily apply to non turn-taking transcription models. For
1924
- * turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
1925
- * transcription end-of-turn settings under `transcription.settings` instead.
1926
- */
1927
- start_speaking_plan?: InterruptionSettings.StartSpeakingPlan;
1928
- }
1929
- namespace InterruptionSettings {
1930
- /**
1931
- * Controls when the assistant starts speaking after the user stops. These
1932
- * thresholds primarily apply to non turn-taking transcription models. For
1933
- * turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
1934
- * transcription end-of-turn settings under `transcription.settings` instead.
1935
- */
1936
- interface StartSpeakingPlan {
1937
- /**
1938
- * Endpointing thresholds used to decide when the user has finished speaking.
1939
- * Applies to non turn-taking transcription models. For `deepgram/flux`, use
1940
- * `transcription.settings.eot_threshold` / `eot_timeout_ms` /
1941
- * `eager_eot_threshold`.
1942
- */
1943
- transcription_endpointing_plan?: StartSpeakingPlan.TranscriptionEndpointingPlan;
1944
- /**
1945
- * Minimum seconds to wait before the assistant starts speaking.
1946
- */
1947
- wait_seconds?: number;
1948
- }
1949
- namespace StartSpeakingPlan {
1950
- /**
1951
- * Endpointing thresholds used to decide when the user has finished speaking.
1952
- * Applies to non turn-taking transcription models. For `deepgram/flux`, use
1953
- * `transcription.settings.eot_threshold` / `eot_timeout_ms` /
1954
- * `eager_eot_threshold`.
1955
- */
1956
- interface TranscriptionEndpointingPlan {
1957
- /**
1958
- * Seconds to wait after the transcript ends without punctuation.
1959
- */
1960
- on_no_punctuation_seconds?: number;
1961
- /**
1962
- * Seconds to wait after the transcript ends with a number.
1963
- */
1964
- on_number_seconds?: number;
1965
- /**
1966
- * Seconds to wait after the transcript ends with punctuation.
1967
- */
1968
- on_punctuation_seconds?: number;
1969
- }
1970
- }
1971
- }
1972
- /**
1973
- * Reference to an MCP server attached to an assistant. Create and manage MCP
1974
- * servers with the `/ai/mcp_servers` endpoints, then attach them to assistants by
1975
- * ID.
1976
- */
1977
- interface McpServer {
1978
- /**
1979
- * ID of the MCP server to attach. This must be the `id` of an MCP server returned
1980
- * by the `/ai/mcp_servers` endpoints.
1981
- */
1982
- id: string;
1983
- /**
1984
- * Optional per-assistant allowlist of MCP tool names. When omitted, the assistant
1985
- * uses the MCP server's configured `allowed_tools`.
1986
- */
1987
- allowed_tools?: Array<string>;
1988
- }
1989
- }
1990
1881
  export interface AssistantRetrieveParams {
1991
1882
  call_control_id?: string;
1992
1883
  fetch_dynamic_variables_from_webhook?: boolean;
@@ -2043,7 +1934,7 @@ export interface AssistantUpdateParams {
2043
1934
  * `/ai/integrations/connections`. Each item references a catalog integration by
2044
1935
  * `integration_id`.
2045
1936
  */
2046
- integrations?: Array<AssistantUpdateParams.Integration>;
1937
+ integrations?: Array<AssistantIntegration>;
2047
1938
  /**
2048
1939
  * Settings for interruptions and how the assistant decides the user has finished
2049
1940
  * speaking. These timings are most relevant when using non turn-taking
@@ -2052,7 +1943,7 @@ export interface AssistantUpdateParams {
2052
1943
  * `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
2053
1944
  * `eager_eot_threshold`).
2054
1945
  */
2055
- interruption_settings?: AssistantUpdateParams.InterruptionSettings;
1946
+ interruption_settings?: InferenceEmbeddingInterruptionSettings;
2056
1947
  /**
2057
1948
  * This is only needed when using third-party inference providers selected by
2058
1949
  * `model`. The `identifier` for an integration secret
@@ -2066,7 +1957,7 @@ export interface AssistantUpdateParams {
2066
1957
  * MCP servers attached to the assistant. Create MCP servers with
2067
1958
  * `/ai/mcp_servers`, then reference them by `id` here.
2068
1959
  */
2069
- mcp_servers?: Array<AssistantUpdateParams.McpServer>;
1960
+ mcp_servers?: Array<AssistantMcpServer>;
2070
1961
  messaging_settings?: MessagingSettings;
2071
1962
  /**
2072
1963
  * ID of the model to use when `external_llm` is not set. You can use the
@@ -2121,109 +2012,6 @@ export interface AssistantUpdateParams {
2121
2012
  */
2122
2013
  widget_settings?: WidgetSettings;
2123
2014
  }
2124
- export declare namespace AssistantUpdateParams {
2125
- /**
2126
- * Reference to a connected integration attached to an assistant. Discover
2127
- * available integrations with `/ai/integrations` and connected integrations with
2128
- * `/ai/integrations/connections`.
2129
- */
2130
- interface Integration {
2131
- /**
2132
- * Catalog integration ID to attach. This is the `id` from the integrations catalog
2133
- * at `/ai/integrations` (the same value also appears as `integration_id` on
2134
- * entries returned by `/ai/integrations/connections`). It is **not** the
2135
- * connection-level `id` from `/ai/integrations/connections`.
2136
- */
2137
- integration_id: string;
2138
- /**
2139
- * Optional per-assistant allowlist of integration tool names. When omitted or
2140
- * empty, all tools allowed by the connected integration are available to the
2141
- * assistant.
2142
- */
2143
- allowed_list?: Array<string>;
2144
- }
2145
- /**
2146
- * Settings for interruptions and how the assistant decides the user has finished
2147
- * speaking. These timings are most relevant when using non turn-taking
2148
- * transcription models. For turn-taking models like `deepgram/flux`, end-of-turn
2149
- * behavior is controlled by the transcription end-of-turn settings under
2150
- * `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
2151
- * `eager_eot_threshold`).
2152
- */
2153
- interface InterruptionSettings {
2154
- /**
2155
- * Whether users can interrupt the assistant while it is speaking.
2156
- */
2157
- enable?: boolean;
2158
- /**
2159
- * Controls when the assistant starts speaking after the user stops. These
2160
- * thresholds primarily apply to non turn-taking transcription models. For
2161
- * turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
2162
- * transcription end-of-turn settings under `transcription.settings` instead.
2163
- */
2164
- start_speaking_plan?: InterruptionSettings.StartSpeakingPlan;
2165
- }
2166
- namespace InterruptionSettings {
2167
- /**
2168
- * Controls when the assistant starts speaking after the user stops. These
2169
- * thresholds primarily apply to non turn-taking transcription models. For
2170
- * turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
2171
- * transcription end-of-turn settings under `transcription.settings` instead.
2172
- */
2173
- interface StartSpeakingPlan {
2174
- /**
2175
- * Endpointing thresholds used to decide when the user has finished speaking.
2176
- * Applies to non turn-taking transcription models. For `deepgram/flux`, use
2177
- * `transcription.settings.eot_threshold` / `eot_timeout_ms` /
2178
- * `eager_eot_threshold`.
2179
- */
2180
- transcription_endpointing_plan?: StartSpeakingPlan.TranscriptionEndpointingPlan;
2181
- /**
2182
- * Minimum seconds to wait before the assistant starts speaking.
2183
- */
2184
- wait_seconds?: number;
2185
- }
2186
- namespace StartSpeakingPlan {
2187
- /**
2188
- * Endpointing thresholds used to decide when the user has finished speaking.
2189
- * Applies to non turn-taking transcription models. For `deepgram/flux`, use
2190
- * `transcription.settings.eot_threshold` / `eot_timeout_ms` /
2191
- * `eager_eot_threshold`.
2192
- */
2193
- interface TranscriptionEndpointingPlan {
2194
- /**
2195
- * Seconds to wait after the transcript ends without punctuation.
2196
- */
2197
- on_no_punctuation_seconds?: number;
2198
- /**
2199
- * Seconds to wait after the transcript ends with a number.
2200
- */
2201
- on_number_seconds?: number;
2202
- /**
2203
- * Seconds to wait after the transcript ends with punctuation.
2204
- */
2205
- on_punctuation_seconds?: number;
2206
- }
2207
- }
2208
- }
2209
- /**
2210
- * Reference to an MCP server attached to an assistant. Create and manage MCP
2211
- * servers with the `/ai/mcp_servers` endpoints, then attach them to assistants by
2212
- * ID.
2213
- */
2214
- interface McpServer {
2215
- /**
2216
- * ID of the MCP server to attach. This must be the `id` of an MCP server returned
2217
- * by the `/ai/mcp_servers` endpoints.
2218
- */
2219
- id: string;
2220
- /**
2221
- * Optional per-assistant allowlist of MCP tool names. When omitted, the assistant
2222
- * uses the MCP server's configured `allowed_tools`.
2223
- */
2224
- allowed_tools?: Array<string>;
2225
- }
2226
- }
2227
2015
  export interface AssistantChatParams {
2228
2016
  /**
2229
2017
  * The message content sent by the client to the assistant
@@ -2265,9 +2053,9 @@ export interface AssistantSendSMSParams {
2265
2053
  text?: string;
2266
2054
  }
2267
2055
  export declare namespace Assistants {
2268
- export { type Assistant as Assistant, type AssistantTool as AssistantTool, type AssistantsList as AssistantsList, type AudioVisualizerConfig as AudioVisualizerConfig, type EnabledFeatures as EnabledFeatures, type ExternalLlm as ExternalLlm, type ExternalLlmReq as ExternalLlmReq, type FallbackConfig as FallbackConfig, type FallbackConfigReq as FallbackConfigReq, type HangupTool as HangupTool, type HangupToolParams as HangupToolParams, type ImportMetadata as ImportMetadata, type InferenceEmbedding as InferenceEmbedding, type InferenceEmbeddingWebhookToolParams as InferenceEmbeddingWebhookToolParams, type InsightSettings as InsightSettings, type MessagingSettings as MessagingSettings, type Observability as Observability, type ObservabilityReq as ObservabilityReq, type PostConversationSettings as PostConversationSettings, type PostConversationSettingsReq as PostConversationSettingsReq, type PrivacySettings as PrivacySettings, type RetrievalTool as RetrievalTool, type TelephonySettings as TelephonySettings, type TranscriptionSettings as TranscriptionSettings, type TranscriptionSettingsConfig as TranscriptionSettingsConfig, type TransferTool as TransferTool, type VoiceSettings as VoiceSettings, type WebhookTool as WebhookTool, type WidgetSettings as WidgetSettings, type AssistantDeleteResponse as AssistantDeleteResponse, type AssistantChatResponse as AssistantChatResponse, type AssistantGetTexmlResponse as AssistantGetTexmlResponse, type AssistantSendSMSResponse as AssistantSendSMSResponse, type AssistantCreateParams as AssistantCreateParams, type AssistantRetrieveParams as AssistantRetrieveParams, type AssistantUpdateParams as AssistantUpdateParams, type AssistantChatParams as AssistantChatParams, type AssistantImportsParams as AssistantImportsParams, type AssistantSendSMSParams as AssistantSendSMSParams, };
2056
+ export { type Assistant as Assistant, type AssistantIntegration as AssistantIntegration, type AssistantMcpServer as AssistantMcpServer, type AssistantTool as AssistantTool, type AssistantsList as AssistantsList, type AudioVisualizerConfig as AudioVisualizerConfig, type EnabledFeatures as EnabledFeatures, type ExternalLlm as ExternalLlm, type ExternalLlmReq as ExternalLlmReq, type FallbackConfig as FallbackConfig, type FallbackConfigReq as FallbackConfigReq, type HangupTool as HangupTool, type HangupToolParams as HangupToolParams, type ImportMetadata as ImportMetadata, type InferenceEmbedding as InferenceEmbedding, type InferenceEmbeddingInterruptionSettings as InferenceEmbeddingInterruptionSettings, type InferenceEmbeddingWebhookToolParams as InferenceEmbeddingWebhookToolParams, type InsightSettings as InsightSettings, type MessagingSettings as MessagingSettings, type Observability as Observability, type ObservabilityReq as ObservabilityReq, type PostConversationSettings as PostConversationSettings, type PostConversationSettingsReq as PostConversationSettingsReq, type PrivacySettings as PrivacySettings, type RetrievalTool as RetrievalTool, type StartSpeakingPlan as StartSpeakingPlan, type TelephonySettings as TelephonySettings, type TranscriptionEndpointingPlan as TranscriptionEndpointingPlan, type TranscriptionSettings as TranscriptionSettings, type TranscriptionSettingsConfig as TranscriptionSettingsConfig, type TransferTool as TransferTool, type VoiceSettings as VoiceSettings, type WebhookTool as WebhookTool, type WidgetSettings as WidgetSettings, type AssistantDeleteResponse as AssistantDeleteResponse, type AssistantChatResponse as AssistantChatResponse, type AssistantGetTexmlResponse as AssistantGetTexmlResponse, type AssistantSendSMSResponse as AssistantSendSMSResponse, type AssistantCreateParams as AssistantCreateParams, type AssistantRetrieveParams as AssistantRetrieveParams, type AssistantUpdateParams as AssistantUpdateParams, type AssistantChatParams as AssistantChatParams, type AssistantImportsParams as AssistantImportsParams, type AssistantSendSMSParams as AssistantSendSMSParams, };
2269
2057
  export { Tests as Tests, type AssistantTest as AssistantTest, type TelnyxConversationChannel as TelnyxConversationChannel, type AssistantTestsDefaultFlatPagination as AssistantTestsDefaultFlatPagination, type TestCreateParams as TestCreateParams, type TestUpdateParams as TestUpdateParams, type TestListParams as TestListParams, };
2270
- export { CanaryDeploys as CanaryDeploys, type CanaryDeploy as CanaryDeploy, type CanaryDeployResponse as CanaryDeployResponse, type CanaryDeployCreateParams as CanaryDeployCreateParams, type CanaryDeployUpdateParams as CanaryDeployUpdateParams, };
2058
+ export { CanaryDeploys as CanaryDeploys, type CanaryDeploy as CanaryDeploy, type CanaryDeployResponse as CanaryDeployResponse, type Clause as Clause, type RolloutSlot as RolloutSlot, type RuleInput as RuleInput, type RuleOutput as RuleOutput, type Serve as Serve, type CanaryDeployCreateParams as CanaryDeployCreateParams, type CanaryDeployUpdateParams as CanaryDeployUpdateParams, };
2271
2059
  export { ScheduledEvents as ScheduledEvents, type ConversationChannelType as ConversationChannelType, type EventStatus as EventStatus, type ScheduledEventResponse as ScheduledEventResponse, type ScheduledPhoneCallEventResponse as ScheduledPhoneCallEventResponse, type ScheduledSMSEventResponse as ScheduledSMSEventResponse, type ScheduledEventListResponse as ScheduledEventListResponse, type ScheduledEventListResponsesDefaultFlatPagination as ScheduledEventListResponsesDefaultFlatPagination, type ScheduledEventCreateParams as ScheduledEventCreateParams, type ScheduledEventRetrieveParams as ScheduledEventRetrieveParams, type ScheduledEventListParams as ScheduledEventListParams, type ScheduledEventDeleteParams as ScheduledEventDeleteParams, };
2272
2060
  export { Tools as Tools, type ToolAddResponse as ToolAddResponse, type ToolRemoveResponse as ToolRemoveResponse, type ToolTestResponse as ToolTestResponse, type ToolAddParams as ToolAddParams, type ToolRemoveParams as ToolRemoveParams, type ToolTestParams as ToolTestParams, };
2273
2061
  export { Versions as Versions, type UpdateAssistant as UpdateAssistant, type VersionRetrieveParams as VersionRetrieveParams, type VersionUpdateParams as VersionUpdateParams, type VersionDeleteParams as VersionDeleteParams, type VersionPromoteParams as VersionPromoteParams, };