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
@@ -99,7 +99,77 @@ export class CanaryDeploys extends APIResource {
99
99
  * - `rules` — canonical ordered list of routing rules
100
100
  */
101
101
  export interface CanaryDeploy {
102
- rules?: Array<RuleInput>;
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
+ }
103
173
  }
104
174
 
105
175
  /**
@@ -112,112 +182,233 @@ export interface CanaryDeployResponse {
112
182
 
113
183
  created_at: string;
114
184
 
115
- rules: Array<RuleOutput>;
185
+ rules: Array<CanaryDeployResponse.Rule>;
116
186
 
117
187
  updated_at: string;
118
188
  }
119
189
 
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 {
190
+ export namespace CanaryDeployResponse {
127
191
  /**
128
- * Attribute name from the routing context
192
+ * A targeting rule: `match` clauses (AND) gate `serve`.
193
+ *
194
+ * An empty `match` is a catch-all (always fires).
129
195
  */
130
- attribute: string;
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;
131
207
 
132
- /**
133
- * Match operator
134
- */
135
- operator: 'in' | 'not_in' | 'starts_with';
208
+ match?: Array<Rule.Match>;
209
+ }
136
210
 
137
- values: Array<string>;
138
- }
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>;
139
223
 
140
- /**
141
- * One slot in a percentage rollout.
142
- */
143
- export interface RolloutSlot {
144
- version_id: string;
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;
145
233
 
146
- weight: number;
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;
249
+
250
+ /**
251
+ * Match operator
252
+ */
253
+ operator: 'in' | 'not_in' | 'starts_with';
254
+
255
+ values: Array<string>;
256
+ }
257
+ }
147
258
  }
148
259
 
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 {
260
+ export interface CanaryDeployCreateParams {
261
+ rules?: Array<CanaryDeployCreateParams.Rule>;
262
+ }
263
+
264
+ export namespace CanaryDeployCreateParams {
155
265
  /**
156
- * What a rule serves when matched.
157
- *
158
- * Exactly one of:
266
+ * A targeting rule: `match` clauses (AND) gate `serve`.
159
267
  *
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
268
+ * An empty `match` is a catch-all (always fires).
163
269
  */
164
- serve: Serve;
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
+ }
165
311
 
166
- match?: Array<Clause>;
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
+ }
167
332
  }
168
333
 
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 {
334
+ export interface CanaryDeployUpdateParams {
335
+ rules?: Array<CanaryDeployUpdateParams.Rule>;
336
+ }
337
+
338
+ export namespace CanaryDeployUpdateParams {
175
339
  /**
176
- * What a rule serves when matched.
177
- *
178
- * Exactly one of:
340
+ * A targeting rule: `match` clauses (AND) gate `serve`.
179
341
  *
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
342
+ * An empty `match` is a catch-all (always fires).
183
343
  */
184
- serve: Serve;
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;
185
355
 
186
- match?: Array<Clause>;
187
- }
356
+ match?: Array<Rule.Match>;
357
+ }
188
358
 
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>;
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>;
200
371
 
201
- version_id?: string;
202
- }
372
+ version_id?: string;
373
+ }
203
374
 
204
- export interface CanaryDeployCreateParams {
205
- rules?: Array<RuleInput>;
206
- }
375
+ export namespace Serve {
376
+ /**
377
+ * One slot in a percentage rollout.
378
+ */
379
+ export interface Rollout {
380
+ version_id: string;
207
381
 
208
- export interface CanaryDeployUpdateParams {
209
- rules?: Array<RuleInput>;
382
+ weight: number;
383
+ }
384
+ }
385
+
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;
397
+
398
+ /**
399
+ * Match operator
400
+ */
401
+ operator: 'in' | 'not_in' | 'starts_with';
402
+
403
+ values: Array<string>;
404
+ }
405
+ }
210
406
  }
211
407
 
212
408
  export declare namespace CanaryDeploys {
213
409
  export {
214
410
  type CanaryDeploy as CanaryDeploy,
215
411
  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,
221
412
  type CanaryDeployCreateParams as CanaryDeployCreateParams,
222
413
  type CanaryDeployUpdateParams as CanaryDeployUpdateParams,
223
414
  };
@@ -3,8 +3,6 @@
3
3
  export {
4
4
  Assistants,
5
5
  type Assistant,
6
- type AssistantIntegration,
7
- type AssistantMcpServer,
8
6
  type AssistantTool,
9
7
  type AssistantsList,
10
8
  type AudioVisualizerConfig,
@@ -17,7 +15,6 @@ export {
17
15
  type HangupToolParams,
18
16
  type ImportMetadata,
19
17
  type InferenceEmbedding,
20
- type InferenceEmbeddingInterruptionSettings,
21
18
  type InferenceEmbeddingWebhookToolParams,
22
19
  type InsightSettings,
23
20
  type MessagingSettings,
@@ -27,9 +24,7 @@ export {
27
24
  type PostConversationSettingsReq,
28
25
  type PrivacySettings,
29
26
  type RetrievalTool,
30
- type StartSpeakingPlan,
31
27
  type TelephonySettings,
32
- type TranscriptionEndpointingPlan,
33
28
  type TranscriptionSettings,
34
29
  type TranscriptionSettingsConfig,
35
30
  type TransferTool,
@@ -51,11 +46,6 @@ export {
51
46
  CanaryDeploys,
52
47
  type CanaryDeploy,
53
48
  type CanaryDeployResponse,
54
- type Clause,
55
- type RolloutSlot,
56
- type RuleInput,
57
- type RuleOutput,
58
- type Serve,
59
49
  type CanaryDeployCreateParams,
60
50
  type CanaryDeployUpdateParams,
61
51
  } from './canary-deploys';