telnyx 6.53.0 → 6.55.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.
- package/CHANGELOG.md +16 -0
- package/client.d.mts +4 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -5
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +12 -10
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +12 -10
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +322 -110
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +322 -110
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/assistants/canary-deploys.d.mts +241 -70
- package/resources/ai/assistants/canary-deploys.d.mts.map +1 -1
- package/resources/ai/assistants/canary-deploys.d.ts +241 -70
- package/resources/ai/assistants/canary-deploys.d.ts.map +1 -1
- package/resources/ai/assistants/index.d.mts +2 -2
- package/resources/ai/assistants/index.d.mts.map +1 -1
- package/resources/ai/assistants/index.d.ts +2 -2
- package/resources/ai/assistants/index.d.ts.map +1 -1
- package/resources/ai/assistants/index.js.map +1 -1
- package/resources/ai/assistants/index.mjs.map +1 -1
- package/resources/ai/assistants/scheduled-events.d.mts +43 -0
- package/resources/ai/assistants/scheduled-events.d.mts.map +1 -1
- package/resources/ai/assistants/scheduled-events.d.ts +43 -0
- package/resources/ai/assistants/scheduled-events.d.ts.map +1 -1
- package/resources/ai/assistants/versions.d.mts +212 -6
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +212 -6
- package/resources/ai/assistants/versions.d.ts.map +1 -1
- package/resources/ai/index.d.mts +2 -2
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +2 -2
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs +1 -1
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/openai/openai.d.mts +9 -2
- package/resources/ai/openai/openai.d.mts.map +1 -1
- package/resources/ai/openai/openai.d.ts +9 -2
- package/resources/ai/openai/openai.d.ts.map +1 -1
- package/resources/ai/openai/openai.js.map +1 -1
- package/resources/ai/openai/openai.mjs.map +1 -1
- package/resources/calls/actions.d.mts +119 -41
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +119 -41
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/calls.d.mts +2 -2
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +2 -2
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs.map +1 -1
- package/resources/calls/index.d.mts +1 -1
- package/resources/calls/index.d.mts.map +1 -1
- package/resources/calls/index.d.ts +1 -1
- package/resources/calls/index.d.ts.map +1 -1
- package/resources/calls/index.js.map +1 -1
- package/resources/calls/index.mjs.map +1 -1
- package/resources/conferences/actions.d.mts +11 -1
- package/resources/conferences/actions.d.mts.map +1 -1
- package/resources/conferences/actions.d.ts +11 -1
- package/resources/conferences/actions.d.ts.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/networks/networks.d.mts +2 -25
- package/resources/networks/networks.d.mts.map +1 -1
- package/resources/networks/networks.d.ts +2 -25
- package/resources/networks/networks.d.ts.map +1 -1
- package/resources/networks/networks.js.map +1 -1
- package/resources/networks/networks.mjs.map +1 -1
- package/resources/public-internet-gateways.d.mts +6 -116
- package/resources/public-internet-gateways.d.mts.map +1 -1
- package/resources/public-internet-gateways.d.ts +6 -116
- package/resources/public-internet-gateways.d.ts.map +1 -1
- package/resources/public-internet-gateways.js.map +1 -1
- package/resources/public-internet-gateways.mjs.map +1 -1
- package/resources/shared.d.mts +0 -10
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +0 -10
- package/resources/shared.d.ts.map +1 -1
- package/resources/uac-connections/index.d.mts +1 -1
- package/resources/uac-connections/index.d.mts.map +1 -1
- package/resources/uac-connections/index.d.ts +1 -1
- package/resources/uac-connections/index.d.ts.map +1 -1
- package/resources/uac-connections/index.js.map +1 -1
- package/resources/uac-connections/index.mjs.map +1 -1
- package/resources/uac-connections/uac-connections.d.mts +1861 -211
- package/resources/uac-connections/uac-connections.d.mts.map +1 -1
- package/resources/uac-connections/uac-connections.d.ts +1861 -211
- package/resources/uac-connections/uac-connections.d.ts.map +1 -1
- package/resources/uac-connections/uac-connections.js +1 -1
- package/resources/uac-connections/uac-connections.js.map +1 -1
- package/resources/uac-connections/uac-connections.mjs +1 -1
- package/resources/uac-connections/uac-connections.mjs.map +1 -1
- package/resources/virtual-cross-connects.d.mts +237 -161
- package/resources/virtual-cross-connects.d.mts.map +1 -1
- package/resources/virtual-cross-connects.d.ts +237 -161
- package/resources/virtual-cross-connects.d.ts.map +1 -1
- package/resources/virtual-cross-connects.js.map +1 -1
- package/resources/virtual-cross-connects.mjs.map +1 -1
- package/resources/wireguard-interfaces.d.mts +6 -117
- package/resources/wireguard-interfaces.d.mts.map +1 -1
- package/resources/wireguard-interfaces.d.ts +6 -117
- package/resources/wireguard-interfaces.d.ts.map +1 -1
- package/resources/wireguard-interfaces.js.map +1 -1
- package/resources/wireguard-interfaces.mjs.map +1 -1
- package/src/client.ts +5 -21
- package/src/resources/ai/ai.ts +11 -20
- package/src/resources/ai/assistants/assistants.ts +350 -131
- package/src/resources/ai/assistants/canary-deploys.ts +266 -75
- package/src/resources/ai/assistants/index.ts +0 -10
- package/src/resources/ai/assistants/scheduled-events.ts +56 -0
- package/src/resources/ai/assistants/versions.ts +234 -6
- package/src/resources/ai/index.ts +1 -12
- package/src/resources/ai/openai/openai.ts +13 -2
- package/src/resources/calls/actions.ts +192 -76
- package/src/resources/calls/calls.ts +0 -4
- package/src/resources/calls/index.ts +0 -2
- package/src/resources/conferences/actions.ts +13 -1
- package/src/resources/index.ts +3 -13
- package/src/resources/networks/networks.ts +4 -31
- package/src/resources/public-internet-gateways.ts +6 -144
- package/src/resources/shared.ts +0 -12
- package/src/resources/uac-connections/index.ts +2 -6
- package/src/resources/uac-connections/uac-connections.ts +2377 -378
- package/src/resources/virtual-cross-connects.ts +249 -176
- package/src/resources/wireguard-interfaces.ts +8 -145
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- 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<
|
|
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<
|
|
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
|
-
*
|
|
192
|
+
* A targeting rule: `match` clauses (AND) gate `serve`.
|
|
193
|
+
*
|
|
194
|
+
* An empty `match` is a catch-all (always fires).
|
|
129
195
|
*/
|
|
130
|
-
|
|
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
|
-
|
|
134
|
-
*/
|
|
135
|
-
operator: 'in' | 'not_in' | 'starts_with';
|
|
208
|
+
match?: Array<Rule.Match>;
|
|
209
|
+
}
|
|
136
210
|
|
|
137
|
-
|
|
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
|
-
|
|
142
|
-
|
|
143
|
-
export
|
|
144
|
-
|
|
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
|
-
|
|
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
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
export interface RuleInput {
|
|
260
|
+
export interface CanaryDeployCreateParams {
|
|
261
|
+
rules?: Array<CanaryDeployCreateParams.Rule>;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export namespace CanaryDeployCreateParams {
|
|
155
265
|
/**
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
* Exactly one of:
|
|
266
|
+
* A targeting rule: `match` clauses (AND) gate `serve`.
|
|
159
267
|
*
|
|
160
|
-
*
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
export interface RuleOutput {
|
|
334
|
+
export interface CanaryDeployUpdateParams {
|
|
335
|
+
rules?: Array<CanaryDeployUpdateParams.Rule>;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
export namespace CanaryDeployUpdateParams {
|
|
175
339
|
/**
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
* Exactly one of:
|
|
340
|
+
* A targeting rule: `match` clauses (AND) gate `serve`.
|
|
179
341
|
*
|
|
180
|
-
*
|
|
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
|
-
|
|
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
|
-
|
|
187
|
-
}
|
|
356
|
+
match?: Array<Rule.Match>;
|
|
357
|
+
}
|
|
188
358
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
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
|
-
|
|
202
|
-
}
|
|
372
|
+
version_id?: string;
|
|
373
|
+
}
|
|
203
374
|
|
|
204
|
-
export
|
|
205
|
-
|
|
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
|
-
|
|
209
|
-
|
|
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';
|
|
@@ -131,12 +131,29 @@ export interface ScheduledPhoneCallEventResponse {
|
|
|
131
131
|
|
|
132
132
|
telnyx_end_user_target: string;
|
|
133
133
|
|
|
134
|
+
call_attempts?: Array<ScheduledPhoneCallEventResponse.CallAttempt>;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Duration of the call in seconds
|
|
138
|
+
*/
|
|
139
|
+
call_duration?: number;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Values: busy, canceled, no-answer, ringing, completed, failed, in-progress
|
|
143
|
+
*/
|
|
144
|
+
call_status?: string;
|
|
145
|
+
|
|
134
146
|
conversation_id?: string;
|
|
135
147
|
|
|
136
148
|
conversation_metadata?: { [key: string]: string | number | boolean };
|
|
137
149
|
|
|
138
150
|
created_at?: string;
|
|
139
151
|
|
|
152
|
+
/**
|
|
153
|
+
* Date time at which call was sent
|
|
154
|
+
*/
|
|
155
|
+
dispatched_at?: string;
|
|
156
|
+
|
|
140
157
|
/**
|
|
141
158
|
* A map of dynamic variable names to values. These variables can be referenced in
|
|
142
159
|
* the assistant's instructions and messages using {{variable_name}} syntax.
|
|
@@ -145,15 +162,46 @@ export interface ScheduledPhoneCallEventResponse {
|
|
|
145
162
|
|
|
146
163
|
errors?: Array<string>;
|
|
147
164
|
|
|
165
|
+
/**
|
|
166
|
+
* Configure number of retries on client errors: busy, no-answer, failed, canceled
|
|
167
|
+
* (caller hung up before the callee answered)
|
|
168
|
+
*/
|
|
169
|
+
max_retries_client_errors?: number;
|
|
170
|
+
|
|
148
171
|
retry_attempts?: number;
|
|
149
172
|
|
|
150
173
|
retry_count?: number;
|
|
151
174
|
|
|
175
|
+
retry_interval_secs?: number;
|
|
176
|
+
|
|
152
177
|
scheduled_event_id?: string;
|
|
153
178
|
|
|
154
179
|
status?: EventStatus;
|
|
155
180
|
}
|
|
156
181
|
|
|
182
|
+
export namespace ScheduledPhoneCallEventResponse {
|
|
183
|
+
/**
|
|
184
|
+
* One row in `call_attempts` — captures the terminal outcome of a single dispatch.
|
|
185
|
+
*/
|
|
186
|
+
export interface CallAttempt {
|
|
187
|
+
attempt_number: number;
|
|
188
|
+
|
|
189
|
+
attempted_at: string;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Values: busy, canceled, no-answer, ringing, completed, failed, in-progress
|
|
193
|
+
*/
|
|
194
|
+
call_status: string;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Duration of the call in seconds
|
|
198
|
+
*/
|
|
199
|
+
call_duration?: number;
|
|
200
|
+
|
|
201
|
+
telnyx_call_control_id?: string;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
157
205
|
export interface ScheduledSMSEventResponse {
|
|
158
206
|
assistant_id: string;
|
|
159
207
|
|
|
@@ -220,6 +268,14 @@ export interface ScheduledEventCreateParams {
|
|
|
220
268
|
*/
|
|
221
269
|
dynamic_variables?: { [key: string]: string };
|
|
222
270
|
|
|
271
|
+
/**
|
|
272
|
+
* Configure number of retries on client errors: busy, no-answer, failed, canceled
|
|
273
|
+
* (caller hung up before the callee answered)
|
|
274
|
+
*/
|
|
275
|
+
max_retries_client_errors?: number;
|
|
276
|
+
|
|
277
|
+
retry_interval_secs?: number;
|
|
278
|
+
|
|
223
279
|
/**
|
|
224
280
|
* Required for sms scheduled events. The text to be sent to the end user.
|
|
225
281
|
*/
|