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
@@ -99,77 +99,7 @@ export class CanaryDeploys extends APIResource {
99
99
  * - `rules` — canonical ordered list of routing rules
100
100
  */
101
101
  export interface CanaryDeploy {
102
- rules?: Array<CanaryDeploy.Rule>;
103
- }
104
-
105
- export namespace CanaryDeploy {
106
- /**
107
- * A targeting rule: `match` clauses (AND) gate `serve`.
108
- *
109
- * An empty `match` is a catch-all (always fires).
110
- */
111
- export interface Rule {
112
- /**
113
- * What a rule serves when matched.
114
- *
115
- * Exactly one of:
116
- *
117
- * - `version_id` — serve a specific version
118
- * - `rollout` — weighted random across versions; weights must sum to less than
119
- * 100, with the leftover routing to the main version
120
- */
121
- serve: Rule.Serve;
122
-
123
- match?: Array<Rule.Match>;
124
- }
125
-
126
- export namespace Rule {
127
- /**
128
- * What a rule serves when matched.
129
- *
130
- * Exactly one of:
131
- *
132
- * - `version_id` — serve a specific version
133
- * - `rollout` — weighted random across versions; weights must sum to less than
134
- * 100, with the leftover routing to the main version
135
- */
136
- export interface Serve {
137
- rollout?: Array<Serve.Rollout>;
138
-
139
- version_id?: string;
140
- }
141
-
142
- export namespace Serve {
143
- /**
144
- * One slot in a percentage rollout.
145
- */
146
- export interface Rollout {
147
- version_id: string;
148
-
149
- weight: number;
150
- }
151
- }
152
-
153
- /**
154
- * A single attribute/operator/values check.
155
- *
156
- * A clause matches when the routing context's value for `attribute` satisfies
157
- * `operator` against any of `values`.
158
- */
159
- export interface Match {
160
- /**
161
- * Attribute name from the routing context
162
- */
163
- attribute: string;
164
-
165
- /**
166
- * Match operator
167
- */
168
- operator: 'in' | 'not_in' | 'starts_with';
169
-
170
- values: Array<string>;
171
- }
172
- }
102
+ rules?: Array<RuleInput>;
173
103
  }
174
104
 
175
105
  /**
@@ -182,233 +112,112 @@ export interface CanaryDeployResponse {
182
112
 
183
113
  created_at: string;
184
114
 
185
- rules: Array<CanaryDeployResponse.Rule>;
115
+ rules: Array<RuleOutput>;
186
116
 
187
117
  updated_at: string;
188
118
  }
189
119
 
190
- export namespace CanaryDeployResponse {
120
+ /**
121
+ * A single attribute/operator/values check.
122
+ *
123
+ * A clause matches when the routing context's value for `attribute` satisfies
124
+ * `operator` against any of `values`.
125
+ */
126
+ export interface Clause {
191
127
  /**
192
- * A targeting rule: `match` clauses (AND) gate `serve`.
193
- *
194
- * An empty `match` is a catch-all (always fires).
128
+ * Attribute name from the routing context
195
129
  */
196
- export interface Rule {
197
- /**
198
- * What a rule serves when matched.
199
- *
200
- * Exactly one of:
201
- *
202
- * - `version_id` — serve a specific version
203
- * - `rollout` — weighted random across versions; weights must sum to less than
204
- * 100, with the leftover routing to the main version
205
- */
206
- serve: Rule.Serve;
207
-
208
- match?: Array<Rule.Match>;
209
- }
210
-
211
- export namespace Rule {
212
- /**
213
- * What a rule serves when matched.
214
- *
215
- * Exactly one of:
216
- *
217
- * - `version_id` — serve a specific version
218
- * - `rollout` — weighted random across versions; weights must sum to less than
219
- * 100, with the leftover routing to the main version
220
- */
221
- export interface Serve {
222
- rollout?: Array<Serve.Rollout>;
223
-
224
- version_id?: string;
225
- }
226
-
227
- export namespace Serve {
228
- /**
229
- * One slot in a percentage rollout.
230
- */
231
- export interface Rollout {
232
- version_id: string;
233
-
234
- weight: number;
235
- }
236
- }
237
-
238
- /**
239
- * A single attribute/operator/values check.
240
- *
241
- * A clause matches when the routing context's value for `attribute` satisfies
242
- * `operator` against any of `values`.
243
- */
244
- export interface Match {
245
- /**
246
- * Attribute name from the routing context
247
- */
248
- attribute: string;
130
+ attribute: string;
249
131
 
250
- /**
251
- * Match operator
252
- */
253
- operator: 'in' | 'not_in' | 'starts_with';
132
+ /**
133
+ * Match operator
134
+ */
135
+ operator: 'in' | 'not_in' | 'starts_with';
254
136
 
255
- values: Array<string>;
256
- }
257
- }
137
+ values: Array<string>;
258
138
  }
259
139
 
260
- export interface CanaryDeployCreateParams {
261
- rules?: Array<CanaryDeployCreateParams.Rule>;
140
+ /**
141
+ * One slot in a percentage rollout.
142
+ */
143
+ export interface RolloutSlot {
144
+ version_id: string;
145
+
146
+ weight: number;
262
147
  }
263
148
 
264
- export namespace CanaryDeployCreateParams {
149
+ /**
150
+ * A targeting rule: `match` clauses (AND) gate `serve`.
151
+ *
152
+ * An empty `match` is a catch-all (always fires).
153
+ */
154
+ export interface RuleInput {
265
155
  /**
266
- * A targeting rule: `match` clauses (AND) gate `serve`.
156
+ * What a rule serves when matched.
157
+ *
158
+ * Exactly one of:
267
159
  *
268
- * An empty `match` is a catch-all (always fires).
160
+ * - `version_id` serve a specific version
161
+ * - `rollout` — weighted random across versions; weights must sum to less than
162
+ * 100, with the leftover routing to the main version
269
163
  */
270
- export interface Rule {
271
- /**
272
- * What a rule serves when matched.
273
- *
274
- * Exactly one of:
275
- *
276
- * - `version_id` — serve a specific version
277
- * - `rollout` — weighted random across versions; weights must sum to less than
278
- * 100, with the leftover routing to the main version
279
- */
280
- serve: Rule.Serve;
281
-
282
- match?: Array<Rule.Match>;
283
- }
284
-
285
- export namespace Rule {
286
- /**
287
- * What a rule serves when matched.
288
- *
289
- * Exactly one of:
290
- *
291
- * - `version_id` — serve a specific version
292
- * - `rollout` — weighted random across versions; weights must sum to less than
293
- * 100, with the leftover routing to the main version
294
- */
295
- export interface Serve {
296
- rollout?: Array<Serve.Rollout>;
297
-
298
- version_id?: string;
299
- }
300
-
301
- export namespace Serve {
302
- /**
303
- * One slot in a percentage rollout.
304
- */
305
- export interface Rollout {
306
- version_id: string;
307
-
308
- weight: number;
309
- }
310
- }
164
+ serve: Serve;
311
165
 
312
- /**
313
- * A single attribute/operator/values check.
314
- *
315
- * A clause matches when the routing context's value for `attribute` satisfies
316
- * `operator` against any of `values`.
317
- */
318
- export interface Match {
319
- /**
320
- * Attribute name from the routing context
321
- */
322
- attribute: string;
323
-
324
- /**
325
- * Match operator
326
- */
327
- operator: 'in' | 'not_in' | 'starts_with';
328
-
329
- values: Array<string>;
330
- }
331
- }
332
- }
333
-
334
- export interface CanaryDeployUpdateParams {
335
- rules?: Array<CanaryDeployUpdateParams.Rule>;
166
+ match?: Array<Clause>;
336
167
  }
337
168
 
338
- export namespace CanaryDeployUpdateParams {
169
+ /**
170
+ * A targeting rule: `match` clauses (AND) gate `serve`.
171
+ *
172
+ * An empty `match` is a catch-all (always fires).
173
+ */
174
+ export interface RuleOutput {
339
175
  /**
340
- * A targeting rule: `match` clauses (AND) gate `serve`.
176
+ * What a rule serves when matched.
177
+ *
178
+ * Exactly one of:
341
179
  *
342
- * An empty `match` is a catch-all (always fires).
180
+ * - `version_id` serve a specific version
181
+ * - `rollout` — weighted random across versions; weights must sum to less than
182
+ * 100, with the leftover routing to the main version
343
183
  */
344
- export interface Rule {
345
- /**
346
- * What a rule serves when matched.
347
- *
348
- * Exactly one of:
349
- *
350
- * - `version_id` — serve a specific version
351
- * - `rollout` — weighted random across versions; weights must sum to less than
352
- * 100, with the leftover routing to the main version
353
- */
354
- serve: Rule.Serve;
355
-
356
- match?: Array<Rule.Match>;
357
- }
184
+ serve: Serve;
358
185
 
359
- export namespace Rule {
360
- /**
361
- * What a rule serves when matched.
362
- *
363
- * Exactly one of:
364
- *
365
- * - `version_id` — serve a specific version
366
- * - `rollout` — weighted random across versions; weights must sum to less than
367
- * 100, with the leftover routing to the main version
368
- */
369
- export interface Serve {
370
- rollout?: Array<Serve.Rollout>;
371
-
372
- version_id?: string;
373
- }
374
-
375
- export namespace Serve {
376
- /**
377
- * One slot in a percentage rollout.
378
- */
379
- export interface Rollout {
380
- version_id: string;
186
+ match?: Array<Clause>;
187
+ }
381
188
 
382
- weight: number;
383
- }
384
- }
189
+ /**
190
+ * What a rule serves when matched.
191
+ *
192
+ * Exactly one of:
193
+ *
194
+ * - `version_id` — serve a specific version
195
+ * - `rollout` — weighted random across versions; weights must sum to less than
196
+ * 100, with the leftover routing to the main version
197
+ */
198
+ export interface Serve {
199
+ rollout?: Array<RolloutSlot>;
385
200
 
386
- /**
387
- * A single attribute/operator/values check.
388
- *
389
- * A clause matches when the routing context's value for `attribute` satisfies
390
- * `operator` against any of `values`.
391
- */
392
- export interface Match {
393
- /**
394
- * Attribute name from the routing context
395
- */
396
- attribute: string;
201
+ version_id?: string;
202
+ }
397
203
 
398
- /**
399
- * Match operator
400
- */
401
- operator: 'in' | 'not_in' | 'starts_with';
204
+ export interface CanaryDeployCreateParams {
205
+ rules?: Array<RuleInput>;
206
+ }
402
207
 
403
- values: Array<string>;
404
- }
405
- }
208
+ export interface CanaryDeployUpdateParams {
209
+ rules?: Array<RuleInput>;
406
210
  }
407
211
 
408
212
  export declare namespace CanaryDeploys {
409
213
  export {
410
214
  type CanaryDeploy as CanaryDeploy,
411
215
  type CanaryDeployResponse as CanaryDeployResponse,
216
+ type Clause as Clause,
217
+ type RolloutSlot as RolloutSlot,
218
+ type RuleInput as RuleInput,
219
+ type RuleOutput as RuleOutput,
220
+ type Serve as Serve,
412
221
  type CanaryDeployCreateParams as CanaryDeployCreateParams,
413
222
  type CanaryDeployUpdateParams as CanaryDeployUpdateParams,
414
223
  };
@@ -3,6 +3,8 @@
3
3
  export {
4
4
  Assistants,
5
5
  type Assistant,
6
+ type AssistantIntegration,
7
+ type AssistantMcpServer,
6
8
  type AssistantTool,
7
9
  type AssistantsList,
8
10
  type AudioVisualizerConfig,
@@ -15,6 +17,7 @@ export {
15
17
  type HangupToolParams,
16
18
  type ImportMetadata,
17
19
  type InferenceEmbedding,
20
+ type InferenceEmbeddingInterruptionSettings,
18
21
  type InferenceEmbeddingWebhookToolParams,
19
22
  type InsightSettings,
20
23
  type MessagingSettings,
@@ -24,7 +27,9 @@ export {
24
27
  type PostConversationSettingsReq,
25
28
  type PrivacySettings,
26
29
  type RetrievalTool,
30
+ type StartSpeakingPlan,
27
31
  type TelephonySettings,
32
+ type TranscriptionEndpointingPlan,
28
33
  type TranscriptionSettings,
29
34
  type TranscriptionSettingsConfig,
30
35
  type TransferTool,
@@ -46,6 +51,11 @@ export {
46
51
  CanaryDeploys,
47
52
  type CanaryDeploy,
48
53
  type CanaryDeployResponse,
54
+ type Clause,
55
+ type RolloutSlot,
56
+ type RuleInput,
57
+ type RuleOutput,
58
+ type Serve,
49
59
  type CanaryDeployCreateParams,
50
60
  type CanaryDeployUpdateParams,
51
61
  } from './canary-deploys';