telnyx 6.65.0 → 6.66.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 (177) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/client.d.mts +11 -10
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +11 -10
  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 +114 -116
  10. package/resources/ai/ai.d.mts.map +1 -1
  11. package/resources/ai/ai.d.ts +114 -116
  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 +139 -334
  16. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  17. package/resources/ai/assistants/assistants.d.ts +139 -334
  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 +70 -241
  22. package/resources/ai/assistants/canary-deploys.d.mts.map +1 -1
  23. package/resources/ai/assistants/canary-deploys.d.ts +70 -241
  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 +6 -220
  32. package/resources/ai/assistants/versions.d.mts.map +1 -1
  33. package/resources/ai/assistants/versions.d.ts +6 -220
  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 +2 -113
  42. package/resources/ai/openai/openai.d.mts.map +1 -1
  43. package/resources/ai/openai/openai.d.ts +2 -113
  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 +177 -120
  48. package/resources/calls/actions.d.mts.map +1 -1
  49. package/resources/calls/actions.d.ts +177 -120
  50. package/resources/calls/actions.d.ts.map +1 -1
  51. package/resources/calls/actions.js +3 -5
  52. package/resources/calls/actions.js.map +1 -1
  53. package/resources/calls/actions.mjs +3 -5
  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 +1 -11
  68. package/resources/conferences/actions.d.mts.map +1 -1
  69. package/resources/conferences/actions.d.ts +1 -11
  70. package/resources/conferences/actions.d.ts.map +1 -1
  71. package/resources/faxes/faxes.d.mts +24 -8
  72. package/resources/faxes/faxes.d.mts.map +1 -1
  73. package/resources/faxes/faxes.d.ts +24 -8
  74. package/resources/faxes/faxes.d.ts.map +1 -1
  75. package/resources/faxes/faxes.js +12 -0
  76. package/resources/faxes/faxes.js.map +1 -1
  77. package/resources/faxes/faxes.mjs +12 -0
  78. package/resources/faxes/faxes.mjs.map +1 -1
  79. package/resources/index.d.mts +5 -5
  80. package/resources/index.d.mts.map +1 -1
  81. package/resources/index.d.ts +5 -5
  82. package/resources/index.d.ts.map +1 -1
  83. package/resources/index.js.map +1 -1
  84. package/resources/index.mjs.map +1 -1
  85. package/resources/networks/networks.d.mts +25 -2
  86. package/resources/networks/networks.d.mts.map +1 -1
  87. package/resources/networks/networks.d.ts +25 -2
  88. package/resources/networks/networks.d.ts.map +1 -1
  89. package/resources/networks/networks.js.map +1 -1
  90. package/resources/networks/networks.mjs.map +1 -1
  91. package/resources/public-internet-gateways.d.mts +40 -50
  92. package/resources/public-internet-gateways.d.mts.map +1 -1
  93. package/resources/public-internet-gateways.d.ts +40 -50
  94. package/resources/public-internet-gateways.d.ts.map +1 -1
  95. package/resources/public-internet-gateways.js +1 -1
  96. package/resources/public-internet-gateways.js.map +1 -1
  97. package/resources/public-internet-gateways.mjs +1 -1
  98. package/resources/public-internet-gateways.mjs.map +1 -1
  99. package/resources/shared.d.mts +10 -0
  100. package/resources/shared.d.mts.map +1 -1
  101. package/resources/shared.d.ts +10 -0
  102. package/resources/shared.d.ts.map +1 -1
  103. package/resources/texml/accounts/calls/calls.d.mts +27 -6
  104. package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
  105. package/resources/texml/accounts/calls/calls.d.ts +27 -6
  106. package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
  107. package/resources/texml/accounts/calls/calls.js.map +1 -1
  108. package/resources/texml/accounts/calls/calls.mjs.map +1 -1
  109. package/resources/texml/texml.d.mts +9 -2
  110. package/resources/texml/texml.d.mts.map +1 -1
  111. package/resources/texml/texml.d.ts +9 -2
  112. package/resources/texml/texml.d.ts.map +1 -1
  113. package/resources/texml/texml.js.map +1 -1
  114. package/resources/texml/texml.mjs.map +1 -1
  115. package/resources/uac-connections/index.d.mts +1 -1
  116. package/resources/uac-connections/index.d.mts.map +1 -1
  117. package/resources/uac-connections/index.d.ts +1 -1
  118. package/resources/uac-connections/index.d.ts.map +1 -1
  119. package/resources/uac-connections/index.js.map +1 -1
  120. package/resources/uac-connections/index.mjs.map +1 -1
  121. package/resources/uac-connections/uac-connections.d.mts +211 -1861
  122. package/resources/uac-connections/uac-connections.d.mts.map +1 -1
  123. package/resources/uac-connections/uac-connections.d.ts +211 -1861
  124. package/resources/uac-connections/uac-connections.d.ts.map +1 -1
  125. package/resources/uac-connections/uac-connections.js +1 -1
  126. package/resources/uac-connections/uac-connections.js.map +1 -1
  127. package/resources/uac-connections/uac-connections.mjs +1 -1
  128. package/resources/uac-connections/uac-connections.mjs.map +1 -1
  129. package/resources/virtual-cross-connects.d.mts +48 -504
  130. package/resources/virtual-cross-connects.d.mts.map +1 -1
  131. package/resources/virtual-cross-connects.d.ts +48 -504
  132. package/resources/virtual-cross-connects.d.ts.map +1 -1
  133. package/resources/virtual-cross-connects.js +1 -1
  134. package/resources/virtual-cross-connects.js.map +1 -1
  135. package/resources/virtual-cross-connects.mjs +1 -1
  136. package/resources/virtual-cross-connects.mjs.map +1 -1
  137. package/resources/webhooks.d.mts +20 -10
  138. package/resources/webhooks.d.mts.map +1 -1
  139. package/resources/webhooks.d.ts +20 -10
  140. package/resources/webhooks.d.ts.map +1 -1
  141. package/resources/wireguard-interfaces.d.mts +43 -127
  142. package/resources/wireguard-interfaces.d.mts.map +1 -1
  143. package/resources/wireguard-interfaces.d.ts +43 -127
  144. package/resources/wireguard-interfaces.d.ts.map +1 -1
  145. package/resources/wireguard-interfaces.js +5 -2
  146. package/resources/wireguard-interfaces.js.map +1 -1
  147. package/resources/wireguard-interfaces.mjs +5 -2
  148. package/resources/wireguard-interfaces.mjs.map +1 -1
  149. package/src/client.ts +27 -16
  150. package/src/resources/ai/ai.ts +139 -130
  151. package/src/resources/ai/assistants/assistants.ts +164 -363
  152. package/src/resources/ai/assistants/canary-deploys.ts +75 -266
  153. package/src/resources/ai/assistants/index.ts +10 -0
  154. package/src/resources/ai/assistants/versions.ts +6 -244
  155. package/src/resources/ai/index.ts +6 -0
  156. package/src/resources/ai/openai/openai.ts +2 -131
  157. package/src/resources/calls/actions.ts +284 -184
  158. package/src/resources/calls/calls.ts +4 -0
  159. package/src/resources/calls/index.ts +2 -0
  160. package/src/resources/conferences/actions.ts +1 -13
  161. package/src/resources/faxes/faxes.ts +24 -8
  162. package/src/resources/index.ts +13 -8
  163. package/src/resources/networks/networks.ts +31 -4
  164. package/src/resources/public-internet-gateways.ts +46 -55
  165. package/src/resources/shared.ts +12 -0
  166. package/src/resources/texml/accounts/calls/calls.ts +30 -6
  167. package/src/resources/texml/texml.ts +10 -2
  168. package/src/resources/uac-connections/index.ts +6 -2
  169. package/src/resources/uac-connections/uac-connections.ts +397 -2396
  170. package/src/resources/virtual-cross-connects.ts +54 -595
  171. package/src/resources/webhooks.ts +21 -10
  172. package/src/resources/wireguard-interfaces.ts +53 -158
  173. package/src/version.ts +1 -1
  174. package/version.d.mts +1 -1
  175. package/version.d.ts +1 -1
  176. package/version.js +1 -1
  177. package/version.mjs +1 -1
@@ -52,6 +52,8 @@ import {
52
52
  AssistantDeleteResponse,
53
53
  AssistantGetTexmlResponse,
54
54
  AssistantImportsParams,
55
+ AssistantIntegration,
56
+ AssistantMcpServer,
55
57
  AssistantRetrieveParams,
56
58
  AssistantSendSMSParams,
57
59
  AssistantSendSMSResponse,
@@ -69,6 +71,7 @@ import {
69
71
  HangupToolParams,
70
72
  ImportMetadata,
71
73
  InferenceEmbedding,
74
+ InferenceEmbeddingInterruptionSettings,
72
75
  InferenceEmbeddingWebhookToolParams,
73
76
  InsightSettings,
74
77
  MessagingSettings,
@@ -78,7 +81,9 @@ import {
78
81
  PostConversationSettingsReq,
79
82
  PrivacySettings,
80
83
  RetrievalTool,
84
+ StartSpeakingPlan,
81
85
  TelephonySettings,
86
+ TranscriptionEndpointingPlan,
82
87
  TranscriptionSettings,
83
88
  TranscriptionSettingsConfig,
84
89
  TransferTool,
@@ -222,142 +227,140 @@ export class AI extends APIResource {
222
227
  }
223
228
  }
224
229
 
225
- export type AICreateResponseResponse = { [key: string]: unknown };
230
+ /**
231
+ * Metadata for a model available on Telnyx Inference. Returned by
232
+ * `GET /v2/ai/openai/models` (and the deprecated `GET /v2/ai/models`). Open-source
233
+ * models live under their Hugging Face organization (e.g. `moonshotai/Kimi-K2.6`,
234
+ * `zai-org/GLM-5.1-FP8`, `MiniMaxAI/MiniMax-M2.7`); fine-tuned models are owned by
235
+ * the Telnyx organization that trained them.
236
+ */
237
+ export interface ModelMetadata {
238
+ /**
239
+ * Model identifier. For open-source models, follows the
240
+ * `{organization}/{model_name}` convention from Hugging Face (e.g.
241
+ * `moonshotai/Kimi-K2.6`).
242
+ */
243
+ id: string;
226
244
 
227
- export interface AIRetrieveModelsResponse {
228
- data: Array<AIRetrieveModelsResponse.Data>;
245
+ /**
246
+ * Maximum total tokens (prompt + completion) supported by the model in a single
247
+ * request.
248
+ */
249
+ context_length: number;
250
+
251
+ /**
252
+ * Timestamp at which the model was registered on Telnyx Inference (ISO 8601).
253
+ */
254
+ created: string;
255
+
256
+ /**
257
+ * ISO language codes the model supports (e.g. `en`, `es`).
258
+ */
259
+ languages: Array<string>;
260
+
261
+ /**
262
+ * License the model is distributed under, e.g. `Apache 2.0`, `MIT`,
263
+ * `Llama 3 Community License`.
264
+ */
265
+ license: string;
266
+
267
+ /**
268
+ * Organization that originally published the model, matching the prefix of `id`
269
+ * for open-source models.
270
+ */
271
+ organization: string;
272
+
273
+ /**
274
+ * Owner of the model. `Telnyx` for Telnyx-hosted open-source models, the upstream
275
+ * provider name for proxied models, or the Telnyx organization id for fine-tuned
276
+ * models.
277
+ */
278
+ owned_by: string;
279
+
280
+ /**
281
+ * Total parameter count of the model.
282
+ */
283
+ parameters: number;
284
+
285
+ /**
286
+ * Billing tier the model belongs to. Used together with `pricing` to determine
287
+ * cost per 1M tokens.
288
+ */
289
+ tier: 'small' | 'medium' | 'large' | 'unlisted';
290
+
291
+ /**
292
+ * Base model the fine-tuned model was trained from. Only set for fine-tuned
293
+ * models.
294
+ */
295
+ base_model?: string | null;
296
+
297
+ /**
298
+ * Short, human-readable summary of what the model is best suited for.
299
+ */
300
+ description?: string | null;
229
301
 
302
+ /**
303
+ * Whether the model can be used as a base for a fine-tuning job via
304
+ * `POST /v2/ai/fine_tuning/jobs`.
305
+ */
306
+ is_fine_tunable?: boolean;
307
+
308
+ /**
309
+ * Whether the model accepts image inputs in chat completions (multimodal vision
310
+ * support).
311
+ */
312
+ is_vision_supported?: boolean;
313
+
314
+ /**
315
+ * Maximum number of completion (output) tokens the model will generate per
316
+ * request. `null` if unconstrained beyond `context_length`.
317
+ */
318
+ max_completion_tokens?: number | null;
319
+
320
+ /**
321
+ * Object type. Always `model`.
322
+ */
230
323
  object?: string;
231
- }
232
324
 
233
- export namespace AIRetrieveModelsResponse {
234
325
  /**
235
- * Metadata for a model available on Telnyx Inference. Returned by
236
- * `GET /v2/ai/openai/models` (and the deprecated `GET /v2/ai/models`). Open-source
237
- * models live under their Hugging Face organization (e.g. `moonshotai/Kimi-K2.6`,
238
- * `zai-org/GLM-5.1-FP8`, `MiniMaxAI/MiniMax-M2.7`); fine-tuned models are owned by
239
- * the Telnyx organization that trained them.
326
+ * Human-readable parameter count, e.g. `1.0T`, `753.9B`, `8B`.
240
327
  */
241
- export interface Data {
242
- /**
243
- * Model identifier. For open-source models, follows the
244
- * `{organization}/{model_name}` convention from Hugging Face (e.g.
245
- * `moonshotai/Kimi-K2.6`).
246
- */
247
- id: string;
248
-
249
- /**
250
- * Maximum total tokens (prompt + completion) supported by the model in a single
251
- * request.
252
- */
253
- context_length: number;
254
-
255
- /**
256
- * Timestamp at which the model was registered on Telnyx Inference (ISO 8601).
257
- */
258
- created: string;
259
-
260
- /**
261
- * ISO language codes the model supports (e.g. `en`, `es`).
262
- */
263
- languages: Array<string>;
264
-
265
- /**
266
- * License the model is distributed under, e.g. `Apache 2.0`, `MIT`,
267
- * `Llama 3 Community License`.
268
- */
269
- license: string;
270
-
271
- /**
272
- * Organization that originally published the model, matching the prefix of `id`
273
- * for open-source models.
274
- */
275
- organization: string;
276
-
277
- /**
278
- * Owner of the model. `Telnyx` for Telnyx-hosted open-source models, the upstream
279
- * provider name for proxied models, or the Telnyx organization id for fine-tuned
280
- * models.
281
- */
282
- owned_by: string;
283
-
284
- /**
285
- * Total parameter count of the model.
286
- */
287
- parameters: number;
288
-
289
- /**
290
- * Billing tier the model belongs to. Used together with `pricing` to determine
291
- * cost per 1M tokens.
292
- */
293
- tier: 'small' | 'medium' | 'large' | 'unlisted';
294
-
295
- /**
296
- * Base model the fine-tuned model was trained from. Only set for fine-tuned
297
- * models.
298
- */
299
- base_model?: string | null;
300
-
301
- /**
302
- * Short, human-readable summary of what the model is best suited for.
303
- */
304
- description?: string | null;
305
-
306
- /**
307
- * Whether the model can be used as a base for a fine-tuning job via
308
- * `POST /v2/ai/fine_tuning/jobs`.
309
- */
310
- is_fine_tunable?: boolean;
311
-
312
- /**
313
- * Whether the model accepts image inputs in chat completions (multimodal vision
314
- * support).
315
- */
316
- is_vision_supported?: boolean;
317
-
318
- /**
319
- * Maximum number of completion (output) tokens the model will generate per
320
- * request. `null` if unconstrained beyond `context_length`.
321
- */
322
- max_completion_tokens?: number | null;
323
-
324
- /**
325
- * Object type. Always `model`.
326
- */
327
- object?: string;
328
-
329
- /**
330
- * Human-readable parameter count, e.g. `1.0T`, `753.9B`, `8B`.
331
- */
332
- parameters_str?: string | null;
333
-
334
- /**
335
- * Mapping of token kind to price, as strings to preserve precision. Typical keys
336
- * are `prompt`, `cached_prompt`, and `completion`. When pricing is available the
337
- * block also includes `currency` (ISO 4217 code matching the account's configured
338
- * billing currency) and `unit` (the denomination the prices are quoted in,
339
- * currently always `1M_tokens` for token-priced models).
340
- */
341
- pricing?: { [key: string]: string };
342
-
343
- /**
344
- * Whether Telnyx currently recommends this model as the LLM powering a Telnyx AI
345
- * Assistant.
346
- */
347
- recommended_for_assistants?: boolean;
348
-
349
- /**
350
- * Public region names where the model is currently deployed (e.g. `us-central-1`,
351
- * `eu-central-1`).
352
- */
353
- regions?: Array<string>;
354
-
355
- /**
356
- * Primary task the model is intended for, e.g. `text-generation`,
357
- * `audio-text-to-text`, `feature-extraction` (embeddings).
358
- */
359
- task?: string;
360
- }
328
+ parameters_str?: string | null;
329
+
330
+ /**
331
+ * Mapping of token kind to price, as strings to preserve precision. Typical keys
332
+ * are `prompt`, `cached_prompt`, and `completion`. When pricing is available the
333
+ * block also includes `currency` (ISO 4217 code matching the account's configured
334
+ * billing currency) and `unit` (the denomination the prices are quoted in,
335
+ * currently always `1M_tokens` for token-priced models).
336
+ */
337
+ pricing?: { [key: string]: string };
338
+
339
+ /**
340
+ * Whether Telnyx currently recommends this model as the LLM powering a Telnyx AI
341
+ * Assistant.
342
+ */
343
+ recommended_for_assistants?: boolean;
344
+
345
+ /**
346
+ * Public region names where the model is currently deployed (e.g. `us-central-1`,
347
+ * `eu-central-1`).
348
+ */
349
+ regions?: Array<string>;
350
+
351
+ /**
352
+ * Primary task the model is intended for, e.g. `text-generation`,
353
+ * `audio-text-to-text`, `feature-extraction` (embeddings).
354
+ */
355
+ task?: string;
356
+ }
357
+
358
+ export type AICreateResponseResponse = { [key: string]: unknown };
359
+
360
+ export interface AIRetrieveModelsResponse {
361
+ data: Array<ModelMetadata>;
362
+
363
+ object?: string;
361
364
  }
362
365
 
363
366
  export interface AISummarizeResponse {
@@ -406,6 +409,7 @@ AI.Tools = Tools;
406
409
 
407
410
  export declare namespace AI {
408
411
  export {
412
+ type ModelMetadata as ModelMetadata,
409
413
  type AICreateResponseResponse as AICreateResponseResponse,
410
414
  type AIRetrieveModelsResponse as AIRetrieveModelsResponse,
411
415
  type AISummarizeResponse as AISummarizeResponse,
@@ -416,6 +420,8 @@ export declare namespace AI {
416
420
  export {
417
421
  Assistants as Assistants,
418
422
  type Assistant as Assistant,
423
+ type AssistantIntegration as AssistantIntegration,
424
+ type AssistantMcpServer as AssistantMcpServer,
419
425
  type AssistantTool as AssistantTool,
420
426
  type AssistantsList as AssistantsList,
421
427
  type AudioVisualizerConfig as AudioVisualizerConfig,
@@ -428,6 +434,7 @@ export declare namespace AI {
428
434
  type HangupToolParams as HangupToolParams,
429
435
  type ImportMetadata as ImportMetadata,
430
436
  type InferenceEmbedding as InferenceEmbedding,
437
+ type InferenceEmbeddingInterruptionSettings as InferenceEmbeddingInterruptionSettings,
431
438
  type InferenceEmbeddingWebhookToolParams as InferenceEmbeddingWebhookToolParams,
432
439
  type InsightSettings as InsightSettings,
433
440
  type MessagingSettings as MessagingSettings,
@@ -437,7 +444,9 @@ export declare namespace AI {
437
444
  type PostConversationSettingsReq as PostConversationSettingsReq,
438
445
  type PrivacySettings as PrivacySettings,
439
446
  type RetrievalTool as RetrievalTool,
447
+ type StartSpeakingPlan as StartSpeakingPlan,
440
448
  type TelephonySettings as TelephonySettings,
449
+ type TranscriptionEndpointingPlan as TranscriptionEndpointingPlan,
441
450
  type TranscriptionSettings as TranscriptionSettings,
442
451
  type TranscriptionSettingsConfig as TranscriptionSettingsConfig,
443
452
  type TransferTool as TransferTool,