telnyx 6.64.0 → 6.65.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 (149) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/client.d.mts +10 -11
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +10 -11
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/ai/ai.d.mts +116 -114
  10. package/resources/ai/ai.d.mts.map +1 -1
  11. package/resources/ai/ai.d.ts +116 -114
  12. package/resources/ai/ai.d.ts.map +1 -1
  13. package/resources/ai/ai.js.map +1 -1
  14. package/resources/ai/ai.mjs.map +1 -1
  15. package/resources/ai/assistants/assistants.d.mts +332 -112
  16. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  17. package/resources/ai/assistants/assistants.d.ts +332 -112
  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/ai/assistants/canary-deploys.d.mts +241 -70
  22. package/resources/ai/assistants/canary-deploys.d.mts.map +1 -1
  23. package/resources/ai/assistants/canary-deploys.d.ts +241 -70
  24. package/resources/ai/assistants/canary-deploys.d.ts.map +1 -1
  25. package/resources/ai/assistants/index.d.mts +2 -2
  26. package/resources/ai/assistants/index.d.mts.map +1 -1
  27. package/resources/ai/assistants/index.d.ts +2 -2
  28. package/resources/ai/assistants/index.d.ts.map +1 -1
  29. package/resources/ai/assistants/index.js.map +1 -1
  30. package/resources/ai/assistants/index.mjs.map +1 -1
  31. package/resources/ai/assistants/versions.d.mts +220 -6
  32. package/resources/ai/assistants/versions.d.mts.map +1 -1
  33. package/resources/ai/assistants/versions.d.ts +220 -6
  34. package/resources/ai/assistants/versions.d.ts.map +1 -1
  35. package/resources/ai/index.d.mts +2 -2
  36. package/resources/ai/index.d.mts.map +1 -1
  37. package/resources/ai/index.d.ts +2 -2
  38. package/resources/ai/index.d.ts.map +1 -1
  39. package/resources/ai/index.js.map +1 -1
  40. package/resources/ai/index.mjs.map +1 -1
  41. package/resources/ai/openai/openai.d.mts +113 -2
  42. package/resources/ai/openai/openai.d.mts.map +1 -1
  43. package/resources/ai/openai/openai.d.ts +113 -2
  44. package/resources/ai/openai/openai.d.ts.map +1 -1
  45. package/resources/ai/openai/openai.js.map +1 -1
  46. package/resources/ai/openai/openai.mjs.map +1 -1
  47. package/resources/calls/actions.d.mts +398 -41
  48. package/resources/calls/actions.d.mts.map +1 -1
  49. package/resources/calls/actions.d.ts +398 -41
  50. package/resources/calls/actions.d.ts.map +1 -1
  51. package/resources/calls/actions.js +46 -0
  52. package/resources/calls/actions.js.map +1 -1
  53. package/resources/calls/actions.mjs +46 -0
  54. package/resources/calls/actions.mjs.map +1 -1
  55. package/resources/calls/calls.d.mts +2 -2
  56. package/resources/calls/calls.d.mts.map +1 -1
  57. package/resources/calls/calls.d.ts +2 -2
  58. package/resources/calls/calls.d.ts.map +1 -1
  59. package/resources/calls/calls.js.map +1 -1
  60. package/resources/calls/calls.mjs.map +1 -1
  61. package/resources/calls/index.d.mts +1 -1
  62. package/resources/calls/index.d.mts.map +1 -1
  63. package/resources/calls/index.d.ts +1 -1
  64. package/resources/calls/index.d.ts.map +1 -1
  65. package/resources/calls/index.js.map +1 -1
  66. package/resources/calls/index.mjs.map +1 -1
  67. package/resources/conferences/actions.d.mts +11 -1
  68. package/resources/conferences/actions.d.mts.map +1 -1
  69. package/resources/conferences/actions.d.ts +11 -1
  70. package/resources/conferences/actions.d.ts.map +1 -1
  71. package/resources/index.d.mts +5 -5
  72. package/resources/index.d.mts.map +1 -1
  73. package/resources/index.d.ts +5 -5
  74. package/resources/index.d.ts.map +1 -1
  75. package/resources/index.js.map +1 -1
  76. package/resources/index.mjs.map +1 -1
  77. package/resources/networks/networks.d.mts +2 -25
  78. package/resources/networks/networks.d.mts.map +1 -1
  79. package/resources/networks/networks.d.ts +2 -25
  80. package/resources/networks/networks.d.ts.map +1 -1
  81. package/resources/networks/networks.js.map +1 -1
  82. package/resources/networks/networks.mjs.map +1 -1
  83. package/resources/public-internet-gateways.d.mts +50 -40
  84. package/resources/public-internet-gateways.d.mts.map +1 -1
  85. package/resources/public-internet-gateways.d.ts +50 -40
  86. package/resources/public-internet-gateways.d.ts.map +1 -1
  87. package/resources/public-internet-gateways.js +1 -1
  88. package/resources/public-internet-gateways.js.map +1 -1
  89. package/resources/public-internet-gateways.mjs +1 -1
  90. package/resources/public-internet-gateways.mjs.map +1 -1
  91. package/resources/shared.d.mts +0 -10
  92. package/resources/shared.d.mts.map +1 -1
  93. package/resources/shared.d.ts +0 -10
  94. package/resources/shared.d.ts.map +1 -1
  95. package/resources/uac-connections/index.d.mts +1 -1
  96. package/resources/uac-connections/index.d.mts.map +1 -1
  97. package/resources/uac-connections/index.d.ts +1 -1
  98. package/resources/uac-connections/index.d.ts.map +1 -1
  99. package/resources/uac-connections/index.js.map +1 -1
  100. package/resources/uac-connections/index.mjs.map +1 -1
  101. package/resources/uac-connections/uac-connections.d.mts +1861 -211
  102. package/resources/uac-connections/uac-connections.d.mts.map +1 -1
  103. package/resources/uac-connections/uac-connections.d.ts +1861 -211
  104. package/resources/uac-connections/uac-connections.d.ts.map +1 -1
  105. package/resources/uac-connections/uac-connections.js +1 -1
  106. package/resources/uac-connections/uac-connections.js.map +1 -1
  107. package/resources/uac-connections/uac-connections.mjs +1 -1
  108. package/resources/uac-connections/uac-connections.mjs.map +1 -1
  109. package/resources/virtual-cross-connects.d.mts +504 -48
  110. package/resources/virtual-cross-connects.d.mts.map +1 -1
  111. package/resources/virtual-cross-connects.d.ts +504 -48
  112. package/resources/virtual-cross-connects.d.ts.map +1 -1
  113. package/resources/virtual-cross-connects.js +1 -1
  114. package/resources/virtual-cross-connects.js.map +1 -1
  115. package/resources/virtual-cross-connects.mjs +1 -1
  116. package/resources/virtual-cross-connects.mjs.map +1 -1
  117. package/resources/wireguard-interfaces.d.mts +127 -43
  118. package/resources/wireguard-interfaces.d.mts.map +1 -1
  119. package/resources/wireguard-interfaces.d.ts +127 -43
  120. package/resources/wireguard-interfaces.d.ts.map +1 -1
  121. package/resources/wireguard-interfaces.js +2 -5
  122. package/resources/wireguard-interfaces.js.map +1 -1
  123. package/resources/wireguard-interfaces.mjs +2 -5
  124. package/resources/wireguard-interfaces.mjs.map +1 -1
  125. package/src/client.ts +16 -27
  126. package/src/resources/ai/ai.ts +130 -139
  127. package/src/resources/ai/assistants/assistants.ts +362 -133
  128. package/src/resources/ai/assistants/canary-deploys.ts +266 -75
  129. package/src/resources/ai/assistants/index.ts +0 -10
  130. package/src/resources/ai/assistants/versions.ts +244 -6
  131. package/src/resources/ai/index.ts +0 -6
  132. package/src/resources/ai/openai/openai.ts +131 -2
  133. package/src/resources/calls/actions.ts +543 -76
  134. package/src/resources/calls/calls.ts +8 -4
  135. package/src/resources/calls/index.ts +4 -2
  136. package/src/resources/conferences/actions.ts +13 -1
  137. package/src/resources/index.ts +8 -13
  138. package/src/resources/networks/networks.ts +4 -31
  139. package/src/resources/public-internet-gateways.ts +55 -46
  140. package/src/resources/shared.ts +0 -12
  141. package/src/resources/uac-connections/index.ts +2 -6
  142. package/src/resources/uac-connections/uac-connections.ts +2377 -378
  143. package/src/resources/virtual-cross-connects.ts +595 -54
  144. package/src/resources/wireguard-interfaces.ts +158 -53
  145. package/src/version.ts +1 -1
  146. package/version.d.mts +1 -1
  147. package/version.d.ts +1 -1
  148. package/version.js +1 -1
  149. package/version.mjs +1 -1
@@ -2,7 +2,7 @@ import { APIResource } from "../../../core/resource.js";
2
2
  import * as Shared from "../../shared.js";
3
3
  import * as ChatAPI from "../chat.js";
4
4
  import * as CanaryDeploysAPI from "./canary-deploys.js";
5
- import { CanaryDeploy, CanaryDeployCreateParams, CanaryDeployResponse, CanaryDeployUpdateParams, CanaryDeploys, Clause, RolloutSlot, RuleInput, RuleOutput, Serve } from "./canary-deploys.js";
5
+ import { CanaryDeploy, CanaryDeployCreateParams, CanaryDeployResponse, CanaryDeployUpdateParams, CanaryDeploys } from "./canary-deploys.js";
6
6
  import * as ScheduledEventsAPI from "./scheduled-events.js";
7
7
  import { ConversationChannelType, EventStatus, ScheduledEventCreateParams, ScheduledEventDeleteParams, ScheduledEventListParams, ScheduledEventListResponse, ScheduledEventListResponsesDefaultFlatPagination, ScheduledEventResponse, ScheduledEventRetrieveParams, ScheduledEvents, ScheduledPhoneCallEventResponse, ScheduledSMSEventResponse } from "./scheduled-events.js";
8
8
  import * as TagsAPI from "./tags.js";
@@ -184,43 +184,6 @@ 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
- }
224
187
  /**
225
188
  * The handoff tool allows the assistant to hand off control of the conversation to
226
189
  * another AI assistant. By default, this will happen transparently to the end
@@ -280,7 +243,7 @@ export declare namespace AssistantTool {
280
243
  * variable string like `{{ targets }}` where `targets` is returned by the dynamic
281
244
  * variables webhook and resolves to an array of target objects at runtime.
282
245
  */
283
- targets: Array<Transfer.TargetsList> | string;
246
+ targets: Array<Transfer.UnionMember0> | string;
284
247
  /**
285
248
  * Custom headers to be added to the SIP INVITE for the transfer command.
286
249
  */
@@ -305,7 +268,7 @@ export declare namespace AssistantTool {
305
268
  warm_transfer_instructions?: string;
306
269
  }
307
270
  namespace Transfer {
308
- interface TargetsList {
271
+ interface UnionMember0 {
309
272
  /**
310
273
  * The destination number or SIP URI of the call.
311
274
  */
@@ -456,7 +419,7 @@ export declare namespace AssistantTool {
456
419
  * omitted or null, the invite tool can still be configured and targets may be
457
420
  * supplied dynamically at runtime.
458
421
  */
459
- targets?: Array<Invite.TargetsList> | string | null;
422
+ targets?: Array<Invite.UnionMember0> | string | null;
460
423
  /**
461
424
  * Configuration for voicemail detection (AMD - Answering Machine Detection) on the
462
425
  * invited call.
@@ -474,7 +437,7 @@ export declare namespace AssistantTool {
474
437
  */
475
438
  value?: string;
476
439
  }
477
- interface TargetsList {
440
+ interface UnionMember0 {
478
441
  /**
479
442
  * The destination number or SIP URI of the call.
480
443
  */
@@ -815,7 +778,7 @@ export interface InferenceEmbedding {
815
778
  * `/ai/integrations/connections`. Each item references a catalog integration by
816
779
  * `integration_id`.
817
780
  */
818
- integrations?: Array<AssistantIntegration>;
781
+ integrations?: Array<InferenceEmbedding.Integration>;
819
782
  /**
820
783
  * Settings for interruptions and how the assistant decides the user has finished
821
784
  * speaking. These timings are most relevant when using non turn-taking
@@ -824,7 +787,7 @@ export interface InferenceEmbedding {
824
787
  * `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
825
788
  * `eager_eot_threshold`).
826
789
  */
827
- interruption_settings?: InferenceEmbeddingInterruptionSettings;
790
+ interruption_settings?: InferenceEmbedding.InterruptionSettings;
828
791
  /**
829
792
  * This is only needed when using third-party inference providers selected by
830
793
  * `model`. The `identifier` for an integration secret
@@ -838,7 +801,7 @@ export interface InferenceEmbedding {
838
801
  * MCP servers attached to the assistant. Create MCP servers with
839
802
  * `/ai/mcp_servers`, then reference them by `id` here.
840
803
  */
841
- mcp_servers?: Array<AssistantMcpServer>;
804
+ mcp_servers?: Array<InferenceEmbedding.McpServer>;
842
805
  messaging_settings?: MessagingSettings;
843
806
  observability_settings?: Observability;
844
807
  /**
@@ -887,30 +850,112 @@ export interface InferenceEmbedding {
887
850
  */
888
851
  widget_settings?: WidgetSettings;
889
852
  }
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 {
853
+ export declare namespace InferenceEmbedding {
899
854
  /**
900
- * When true, disables user interruptions while the assistant greeting is playing.
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`.
901
858
  */
902
- disable_greeting_interruption?: boolean;
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
+ }
903
874
  /**
904
- * Whether users can interrupt the assistant while it is speaking.
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`).
905
881
  */
906
- enable?: boolean;
882
+ interface InterruptionSettings {
883
+ /**
884
+ * When true, disables user interruptions while the assistant greeting is playing.
885
+ */
886
+ disable_greeting_interruption?: boolean;
887
+ /**
888
+ * Whether users can interrupt the assistant while it is speaking.
889
+ */
890
+ enable?: boolean;
891
+ /**
892
+ * Controls when the assistant starts speaking after the user stops. These
893
+ * thresholds primarily apply to non turn-taking transcription models. For
894
+ * turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
895
+ * transcription end-of-turn settings under `transcription.settings` instead.
896
+ */
897
+ start_speaking_plan?: InterruptionSettings.StartSpeakingPlan;
898
+ }
899
+ namespace InterruptionSettings {
900
+ /**
901
+ * Controls when the assistant starts speaking after the user stops. These
902
+ * thresholds primarily apply to non turn-taking transcription models. For
903
+ * turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
904
+ * transcription end-of-turn settings under `transcription.settings` instead.
905
+ */
906
+ interface StartSpeakingPlan {
907
+ /**
908
+ * Endpointing thresholds used to decide when the user has finished speaking.
909
+ * Applies to non turn-taking transcription models. For `deepgram/flux`, use
910
+ * `transcription.settings.eot_threshold` / `eot_timeout_ms` /
911
+ * `eager_eot_threshold`.
912
+ */
913
+ transcription_endpointing_plan?: StartSpeakingPlan.TranscriptionEndpointingPlan;
914
+ /**
915
+ * Minimum seconds to wait before the assistant starts speaking.
916
+ */
917
+ wait_seconds?: number;
918
+ }
919
+ namespace StartSpeakingPlan {
920
+ /**
921
+ * Endpointing thresholds used to decide when the user has finished speaking.
922
+ * Applies to non turn-taking transcription models. For `deepgram/flux`, use
923
+ * `transcription.settings.eot_threshold` / `eot_timeout_ms` /
924
+ * `eager_eot_threshold`.
925
+ */
926
+ interface TranscriptionEndpointingPlan {
927
+ /**
928
+ * Seconds to wait after the transcript ends without punctuation.
929
+ */
930
+ on_no_punctuation_seconds?: number;
931
+ /**
932
+ * Seconds to wait after the transcript ends with a number.
933
+ */
934
+ on_number_seconds?: number;
935
+ /**
936
+ * Seconds to wait after the transcript ends with punctuation.
937
+ */
938
+ on_punctuation_seconds?: number;
939
+ }
940
+ }
941
+ }
907
942
  /**
908
- * Controls when the assistant starts speaking after the user stops. These
909
- * thresholds primarily apply to non turn-taking transcription models. For
910
- * turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
911
- * transcription end-of-turn settings under `transcription.settings` instead.
943
+ * Reference to an MCP server attached to an assistant. Create and manage MCP
944
+ * servers with the `/ai/mcp_servers` endpoints, then attach them to assistants by
945
+ * ID.
912
946
  */
913
- start_speaking_plan?: StartSpeakingPlan;
947
+ interface McpServer {
948
+ /**
949
+ * ID of the MCP server to attach. This must be the `id` of an MCP server returned
950
+ * by the `/ai/mcp_servers` endpoints.
951
+ */
952
+ id: string;
953
+ /**
954
+ * Optional per-assistant allowlist of MCP tool names. When omitted, the assistant
955
+ * uses the MCP server's configured `allowed_tools`.
956
+ */
957
+ allowed_tools?: Array<string>;
958
+ }
914
959
  }
915
960
  export interface InferenceEmbeddingWebhookToolParams {
916
961
  type: 'webhook';
@@ -1171,25 +1216,6 @@ export interface RetrievalTool {
1171
1216
  retrieval: ChatAPI.BucketIDs;
1172
1217
  type: 'retrieval';
1173
1218
  }
1174
- /**
1175
- * Controls when the assistant starts speaking after the user stops. These
1176
- * thresholds primarily apply to non turn-taking transcription models. For
1177
- * turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
1178
- * transcription end-of-turn settings under `transcription.settings` instead.
1179
- */
1180
- export interface StartSpeakingPlan {
1181
- /**
1182
- * Endpointing thresholds used to decide when the user has finished speaking.
1183
- * Applies to non turn-taking transcription models. For `deepgram/flux`, use
1184
- * `transcription.settings.eot_threshold` / `eot_timeout_ms` /
1185
- * `eager_eot_threshold`.
1186
- */
1187
- transcription_endpointing_plan?: TranscriptionEndpointingPlan;
1188
- /**
1189
- * Minimum seconds to wait before the assistant starts speaking.
1190
- */
1191
- wait_seconds?: number;
1192
- }
1193
1219
  export interface TelephonySettings {
1194
1220
  /**
1195
1221
  * Default Texml App used for voice calls with your assistant. This will be created
@@ -1333,26 +1359,6 @@ export declare namespace TelephonySettings {
1333
1359
  }
1334
1360
  }
1335
1361
  }
1336
- /**
1337
- * Endpointing thresholds used to decide when the user has finished speaking.
1338
- * Applies to non turn-taking transcription models. For `deepgram/flux`, use
1339
- * `transcription.settings.eot_threshold` / `eot_timeout_ms` /
1340
- * `eager_eot_threshold`.
1341
- */
1342
- export interface TranscriptionEndpointingPlan {
1343
- /**
1344
- * Seconds to wait after the transcript ends without punctuation.
1345
- */
1346
- on_no_punctuation_seconds?: number;
1347
- /**
1348
- * Seconds to wait after the transcript ends with a number.
1349
- */
1350
- on_number_seconds?: number;
1351
- /**
1352
- * Seconds to wait after the transcript ends with punctuation.
1353
- */
1354
- on_punctuation_seconds?: number;
1355
- }
1356
1362
  export interface TranscriptionSettings {
1357
1363
  /**
1358
1364
  * Integration secret identifier for the transcription provider API key. Currently
@@ -1450,10 +1456,10 @@ export declare namespace TransferTool {
1450
1456
  * variable string like `{{ targets }}` where `targets` is returned by the dynamic
1451
1457
  * variables webhook and resolves to an array of target objects at runtime.
1452
1458
  */
1453
- targets: Array<Transfer.TargetsList> | string;
1459
+ targets: Array<Transfer.UnionMember0> | string;
1454
1460
  }
1455
1461
  namespace Transfer {
1456
- interface TargetsList {
1462
+ interface UnionMember0 {
1457
1463
  /**
1458
1464
  * The destination number or SIP URI of the call.
1459
1465
  */
@@ -1814,7 +1820,7 @@ export interface AssistantCreateParams {
1814
1820
  * `/ai/integrations/connections`. Each item references a catalog integration by
1815
1821
  * `integration_id`.
1816
1822
  */
1817
- integrations?: Array<AssistantIntegration>;
1823
+ integrations?: Array<AssistantCreateParams.Integration>;
1818
1824
  /**
1819
1825
  * Settings for interruptions and how the assistant decides the user has finished
1820
1826
  * speaking. These timings are most relevant when using non turn-taking
@@ -1823,7 +1829,7 @@ export interface AssistantCreateParams {
1823
1829
  * `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
1824
1830
  * `eager_eot_threshold`).
1825
1831
  */
1826
- interruption_settings?: InferenceEmbeddingInterruptionSettings;
1832
+ interruption_settings?: AssistantCreateParams.InterruptionSettings;
1827
1833
  /**
1828
1834
  * This is only needed when using third-party inference providers selected by
1829
1835
  * `model`. The `identifier` for an integration secret
@@ -1837,7 +1843,7 @@ export interface AssistantCreateParams {
1837
1843
  * MCP servers attached to the assistant. Create MCP servers with
1838
1844
  * `/ai/mcp_servers`, then reference them by `id` here.
1839
1845
  */
1840
- mcp_servers?: Array<AssistantMcpServer>;
1846
+ mcp_servers?: Array<AssistantCreateParams.McpServer>;
1841
1847
  messaging_settings?: MessagingSettings;
1842
1848
  /**
1843
1849
  * ID of the model to use when `external_llm` is not set. You can use the
@@ -1882,6 +1888,113 @@ export interface AssistantCreateParams {
1882
1888
  */
1883
1889
  widget_settings?: WidgetSettings;
1884
1890
  }
1891
+ export declare namespace AssistantCreateParams {
1892
+ /**
1893
+ * Reference to a connected integration attached to an assistant. Discover
1894
+ * available integrations with `/ai/integrations` and connected integrations with
1895
+ * `/ai/integrations/connections`.
1896
+ */
1897
+ interface Integration {
1898
+ /**
1899
+ * Catalog integration ID to attach. This is the `id` from the integrations catalog
1900
+ * at `/ai/integrations` (the same value also appears as `integration_id` on
1901
+ * entries returned by `/ai/integrations/connections`). It is **not** the
1902
+ * connection-level `id` from `/ai/integrations/connections`.
1903
+ */
1904
+ integration_id: string;
1905
+ /**
1906
+ * Optional per-assistant allowlist of integration tool names. When omitted or
1907
+ * empty, all tools allowed by the connected integration are available to the
1908
+ * assistant.
1909
+ */
1910
+ allowed_list?: Array<string>;
1911
+ }
1912
+ /**
1913
+ * Settings for interruptions and how the assistant decides the user has finished
1914
+ * speaking. These timings are most relevant when using non turn-taking
1915
+ * transcription models. For turn-taking models like `deepgram/flux`, end-of-turn
1916
+ * behavior is controlled by the transcription end-of-turn settings under
1917
+ * `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
1918
+ * `eager_eot_threshold`).
1919
+ */
1920
+ interface InterruptionSettings {
1921
+ /**
1922
+ * When true, disables user interruptions while the assistant greeting is playing.
1923
+ */
1924
+ disable_greeting_interruption?: boolean;
1925
+ /**
1926
+ * Whether users can interrupt the assistant while it is speaking.
1927
+ */
1928
+ enable?: boolean;
1929
+ /**
1930
+ * Controls when the assistant starts speaking after the user stops. These
1931
+ * thresholds primarily apply to non turn-taking transcription models. For
1932
+ * turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
1933
+ * transcription end-of-turn settings under `transcription.settings` instead.
1934
+ */
1935
+ start_speaking_plan?: InterruptionSettings.StartSpeakingPlan;
1936
+ }
1937
+ namespace InterruptionSettings {
1938
+ /**
1939
+ * Controls when the assistant starts speaking after the user stops. These
1940
+ * thresholds primarily apply to non turn-taking transcription models. For
1941
+ * turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
1942
+ * transcription end-of-turn settings under `transcription.settings` instead.
1943
+ */
1944
+ interface StartSpeakingPlan {
1945
+ /**
1946
+ * Endpointing thresholds used to decide when the user has finished speaking.
1947
+ * Applies to non turn-taking transcription models. For `deepgram/flux`, use
1948
+ * `transcription.settings.eot_threshold` / `eot_timeout_ms` /
1949
+ * `eager_eot_threshold`.
1950
+ */
1951
+ transcription_endpointing_plan?: StartSpeakingPlan.TranscriptionEndpointingPlan;
1952
+ /**
1953
+ * Minimum seconds to wait before the assistant starts speaking.
1954
+ */
1955
+ wait_seconds?: number;
1956
+ }
1957
+ namespace StartSpeakingPlan {
1958
+ /**
1959
+ * Endpointing thresholds used to decide when the user has finished speaking.
1960
+ * Applies to non turn-taking transcription models. For `deepgram/flux`, use
1961
+ * `transcription.settings.eot_threshold` / `eot_timeout_ms` /
1962
+ * `eager_eot_threshold`.
1963
+ */
1964
+ interface TranscriptionEndpointingPlan {
1965
+ /**
1966
+ * Seconds to wait after the transcript ends without punctuation.
1967
+ */
1968
+ on_no_punctuation_seconds?: number;
1969
+ /**
1970
+ * Seconds to wait after the transcript ends with a number.
1971
+ */
1972
+ on_number_seconds?: number;
1973
+ /**
1974
+ * Seconds to wait after the transcript ends with punctuation.
1975
+ */
1976
+ on_punctuation_seconds?: number;
1977
+ }
1978
+ }
1979
+ }
1980
+ /**
1981
+ * Reference to an MCP server attached to an assistant. Create and manage MCP
1982
+ * servers with the `/ai/mcp_servers` endpoints, then attach them to assistants by
1983
+ * ID.
1984
+ */
1985
+ interface McpServer {
1986
+ /**
1987
+ * ID of the MCP server to attach. This must be the `id` of an MCP server returned
1988
+ * by the `/ai/mcp_servers` endpoints.
1989
+ */
1990
+ id: string;
1991
+ /**
1992
+ * Optional per-assistant allowlist of MCP tool names. When omitted, the assistant
1993
+ * uses the MCP server's configured `allowed_tools`.
1994
+ */
1995
+ allowed_tools?: Array<string>;
1996
+ }
1997
+ }
1885
1998
  export interface AssistantRetrieveParams {
1886
1999
  call_control_id?: string;
1887
2000
  fetch_dynamic_variables_from_webhook?: boolean;
@@ -1938,7 +2051,7 @@ export interface AssistantUpdateParams {
1938
2051
  * `/ai/integrations/connections`. Each item references a catalog integration by
1939
2052
  * `integration_id`.
1940
2053
  */
1941
- integrations?: Array<AssistantIntegration>;
2054
+ integrations?: Array<AssistantUpdateParams.Integration>;
1942
2055
  /**
1943
2056
  * Settings for interruptions and how the assistant decides the user has finished
1944
2057
  * speaking. These timings are most relevant when using non turn-taking
@@ -1947,7 +2060,7 @@ export interface AssistantUpdateParams {
1947
2060
  * `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
1948
2061
  * `eager_eot_threshold`).
1949
2062
  */
1950
- interruption_settings?: InferenceEmbeddingInterruptionSettings;
2063
+ interruption_settings?: AssistantUpdateParams.InterruptionSettings;
1951
2064
  /**
1952
2065
  * This is only needed when using third-party inference providers selected by
1953
2066
  * `model`. The `identifier` for an integration secret
@@ -1961,7 +2074,7 @@ export interface AssistantUpdateParams {
1961
2074
  * MCP servers attached to the assistant. Create MCP servers with
1962
2075
  * `/ai/mcp_servers`, then reference them by `id` here.
1963
2076
  */
1964
- mcp_servers?: Array<AssistantMcpServer>;
2077
+ mcp_servers?: Array<AssistantUpdateParams.McpServer>;
1965
2078
  messaging_settings?: MessagingSettings;
1966
2079
  /**
1967
2080
  * ID of the model to use when `external_llm` is not set. You can use the
@@ -2016,6 +2129,113 @@ export interface AssistantUpdateParams {
2016
2129
  */
2017
2130
  widget_settings?: WidgetSettings;
2018
2131
  }
2132
+ export declare namespace AssistantUpdateParams {
2133
+ /**
2134
+ * Reference to a connected integration attached to an assistant. Discover
2135
+ * available integrations with `/ai/integrations` and connected integrations with
2136
+ * `/ai/integrations/connections`.
2137
+ */
2138
+ interface Integration {
2139
+ /**
2140
+ * Catalog integration ID to attach. This is the `id` from the integrations catalog
2141
+ * at `/ai/integrations` (the same value also appears as `integration_id` on
2142
+ * entries returned by `/ai/integrations/connections`). It is **not** the
2143
+ * connection-level `id` from `/ai/integrations/connections`.
2144
+ */
2145
+ integration_id: string;
2146
+ /**
2147
+ * Optional per-assistant allowlist of integration tool names. When omitted or
2148
+ * empty, all tools allowed by the connected integration are available to the
2149
+ * assistant.
2150
+ */
2151
+ allowed_list?: Array<string>;
2152
+ }
2153
+ /**
2154
+ * Settings for interruptions and how the assistant decides the user has finished
2155
+ * speaking. These timings are most relevant when using non turn-taking
2156
+ * transcription models. For turn-taking models like `deepgram/flux`, end-of-turn
2157
+ * behavior is controlled by the transcription end-of-turn settings under
2158
+ * `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
2159
+ * `eager_eot_threshold`).
2160
+ */
2161
+ interface InterruptionSettings {
2162
+ /**
2163
+ * When true, disables user interruptions while the assistant greeting is playing.
2164
+ */
2165
+ disable_greeting_interruption?: boolean;
2166
+ /**
2167
+ * Whether users can interrupt the assistant while it is speaking.
2168
+ */
2169
+ enable?: boolean;
2170
+ /**
2171
+ * Controls when the assistant starts speaking after the user stops. These
2172
+ * thresholds primarily apply to non turn-taking transcription models. For
2173
+ * turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
2174
+ * transcription end-of-turn settings under `transcription.settings` instead.
2175
+ */
2176
+ start_speaking_plan?: InterruptionSettings.StartSpeakingPlan;
2177
+ }
2178
+ namespace InterruptionSettings {
2179
+ /**
2180
+ * Controls when the assistant starts speaking after the user stops. These
2181
+ * thresholds primarily apply to non turn-taking transcription models. For
2182
+ * turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
2183
+ * transcription end-of-turn settings under `transcription.settings` instead.
2184
+ */
2185
+ interface StartSpeakingPlan {
2186
+ /**
2187
+ * Endpointing thresholds used to decide when the user has finished speaking.
2188
+ * Applies to non turn-taking transcription models. For `deepgram/flux`, use
2189
+ * `transcription.settings.eot_threshold` / `eot_timeout_ms` /
2190
+ * `eager_eot_threshold`.
2191
+ */
2192
+ transcription_endpointing_plan?: StartSpeakingPlan.TranscriptionEndpointingPlan;
2193
+ /**
2194
+ * Minimum seconds to wait before the assistant starts speaking.
2195
+ */
2196
+ wait_seconds?: number;
2197
+ }
2198
+ namespace StartSpeakingPlan {
2199
+ /**
2200
+ * Endpointing thresholds used to decide when the user has finished speaking.
2201
+ * Applies to non turn-taking transcription models. For `deepgram/flux`, use
2202
+ * `transcription.settings.eot_threshold` / `eot_timeout_ms` /
2203
+ * `eager_eot_threshold`.
2204
+ */
2205
+ interface TranscriptionEndpointingPlan {
2206
+ /**
2207
+ * Seconds to wait after the transcript ends without punctuation.
2208
+ */
2209
+ on_no_punctuation_seconds?: number;
2210
+ /**
2211
+ * Seconds to wait after the transcript ends with a number.
2212
+ */
2213
+ on_number_seconds?: number;
2214
+ /**
2215
+ * Seconds to wait after the transcript ends with punctuation.
2216
+ */
2217
+ on_punctuation_seconds?: number;
2218
+ }
2219
+ }
2220
+ }
2221
+ /**
2222
+ * Reference to an MCP server attached to an assistant. Create and manage MCP
2223
+ * servers with the `/ai/mcp_servers` endpoints, then attach them to assistants by
2224
+ * ID.
2225
+ */
2226
+ interface McpServer {
2227
+ /**
2228
+ * ID of the MCP server to attach. This must be the `id` of an MCP server returned
2229
+ * by the `/ai/mcp_servers` endpoints.
2230
+ */
2231
+ id: string;
2232
+ /**
2233
+ * Optional per-assistant allowlist of MCP tool names. When omitted, the assistant
2234
+ * uses the MCP server's configured `allowed_tools`.
2235
+ */
2236
+ allowed_tools?: Array<string>;
2237
+ }
2238
+ }
2019
2239
  export interface AssistantChatParams {
2020
2240
  /**
2021
2241
  * The message content sent by the client to the assistant
@@ -2057,9 +2277,9 @@ export interface AssistantSendSMSParams {
2057
2277
  text?: string;
2058
2278
  }
2059
2279
  export declare namespace Assistants {
2060
- 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, };
2280
+ 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, };
2061
2281
  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, };
2062
- 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, };
2282
+ export { CanaryDeploys as CanaryDeploys, type CanaryDeploy as CanaryDeploy, type CanaryDeployResponse as CanaryDeployResponse, type CanaryDeployCreateParams as CanaryDeployCreateParams, type CanaryDeployUpdateParams as CanaryDeployUpdateParams, };
2063
2283
  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, };
2064
2284
  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, };
2065
2285
  export { Versions as Versions, type UpdateAssistant as UpdateAssistant, type VersionRetrieveParams as VersionRetrieveParams, type VersionUpdateParams as VersionUpdateParams, type VersionDeleteParams as VersionDeleteParams, type VersionPromoteParams as VersionPromoteParams, };