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
@@ -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';