telnyx 5.26.0 → 5.27.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 (59) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/resources/ai/ai.d.mts +2 -2
  4. package/resources/ai/ai.d.mts.map +1 -1
  5. package/resources/ai/ai.d.ts +2 -2
  6. package/resources/ai/ai.d.ts.map +1 -1
  7. package/resources/ai/index.d.mts +1 -1
  8. package/resources/ai/index.d.mts.map +1 -1
  9. package/resources/ai/index.d.ts +1 -1
  10. package/resources/ai/index.d.ts.map +1 -1
  11. package/resources/ai/missions/index.d.mts +2 -2
  12. package/resources/ai/missions/index.d.mts.map +1 -1
  13. package/resources/ai/missions/index.d.ts +2 -2
  14. package/resources/ai/missions/index.d.ts.map +1 -1
  15. package/resources/ai/missions/index.js.map +1 -1
  16. package/resources/ai/missions/index.mjs.map +1 -1
  17. package/resources/ai/missions/missions.d.mts +59 -14
  18. package/resources/ai/missions/missions.d.mts.map +1 -1
  19. package/resources/ai/missions/missions.d.ts +59 -14
  20. package/resources/ai/missions/missions.d.ts.map +1 -1
  21. package/resources/ai/missions/missions.js +5 -2
  22. package/resources/ai/missions/missions.js.map +1 -1
  23. package/resources/ai/missions/missions.mjs +5 -2
  24. package/resources/ai/missions/missions.mjs.map +1 -1
  25. package/resources/ai/missions/runs/index.d.mts +2 -2
  26. package/resources/ai/missions/runs/index.d.mts.map +1 -1
  27. package/resources/ai/missions/runs/index.d.ts +2 -2
  28. package/resources/ai/missions/runs/index.d.ts.map +1 -1
  29. package/resources/ai/missions/runs/index.js.map +1 -1
  30. package/resources/ai/missions/runs/index.mjs.map +1 -1
  31. package/resources/ai/missions/runs/plan.d.mts +81 -19
  32. package/resources/ai/missions/runs/plan.d.mts.map +1 -1
  33. package/resources/ai/missions/runs/plan.d.ts +81 -19
  34. package/resources/ai/missions/runs/plan.d.ts.map +1 -1
  35. package/resources/ai/missions/runs/runs.d.mts +166 -20
  36. package/resources/ai/missions/runs/runs.d.mts.map +1 -1
  37. package/resources/ai/missions/runs/runs.d.ts +166 -20
  38. package/resources/ai/missions/runs/runs.d.ts.map +1 -1
  39. package/resources/ai/missions/runs/runs.js +2 -2
  40. package/resources/ai/missions/runs/runs.js.map +1 -1
  41. package/resources/ai/missions/runs/runs.mjs +2 -2
  42. package/resources/ai/missions/runs/runs.mjs.map +1 -1
  43. package/resources/texml/accounts/conferences/participants.d.mts +6 -0
  44. package/resources/texml/accounts/conferences/participants.d.mts.map +1 -1
  45. package/resources/texml/accounts/conferences/participants.d.ts +6 -0
  46. package/resources/texml/accounts/conferences/participants.d.ts.map +1 -1
  47. package/src/resources/ai/ai.ts +4 -4
  48. package/src/resources/ai/index.ts +2 -2
  49. package/src/resources/ai/missions/index.ts +6 -4
  50. package/src/resources/ai/missions/missions.ts +93 -20
  51. package/src/resources/ai/missions/runs/index.ts +4 -3
  52. package/src/resources/ai/missions/runs/plan.ts +107 -18
  53. package/src/resources/ai/missions/runs/runs.ts +205 -23
  54. package/src/resources/texml/accounts/conferences/participants.ts +7 -0
  55. package/src/version.ts +1 -1
  56. package/version.d.mts +1 -1
  57. package/version.d.ts +1 -1
  58. package/version.js +1 -1
  59. package/version.mjs +1 -1
@@ -36,14 +36,16 @@ import {
36
36
  } from './tools';
37
37
  import * as RunsAPI from './runs/runs';
38
38
  import {
39
- MissionRunData,
40
- MissionRunDataDefaultFlatPagination,
41
39
  RunCancelRunParams,
42
40
  RunCancelRunResponse,
43
41
  RunCreateParams,
44
42
  RunCreateResponse,
45
43
  RunListParams,
44
+ RunListResponse,
45
+ RunListResponsesDefaultFlatPagination,
46
46
  RunListRunsParams,
47
+ RunListRunsResponse,
48
+ RunListRunsResponsesDefaultFlatPagination,
47
49
  RunPauseRunParams,
48
50
  RunPauseRunResponse,
49
51
  RunResumeRunParams,
@@ -104,7 +106,7 @@ export class Missions extends APIResource {
104
106
  * @example
105
107
  * ```ts
106
108
  * // Automatically fetches more pages as needed.
107
- * for await (const missionData of client.ai.missions.list()) {
109
+ * for await (const missionListResponse of client.ai.missions.list()) {
108
110
  * // ...
109
111
  * }
110
112
  * ```
@@ -112,8 +114,11 @@ export class Missions extends APIResource {
112
114
  list(
113
115
  query: MissionListParams | null | undefined = {},
114
116
  options?: RequestOptions,
115
- ): PagePromise<MissionDataDefaultFlatPagination, MissionData> {
116
- return this._client.getAPIList('/ai/missions', DefaultFlatPagination<MissionData>, { query, ...options });
117
+ ): PagePromise<MissionListResponsesDefaultFlatPagination, MissionListResponse> {
118
+ return this._client.getAPIList('/ai/missions', DefaultFlatPagination<MissionListResponse>, {
119
+ query,
120
+ ...options,
121
+ });
117
122
  }
118
123
 
119
124
  /**
@@ -187,12 +192,64 @@ export class Missions extends APIResource {
187
192
  }
188
193
  }
189
194
 
190
- export type MissionDataDefaultFlatPagination = DefaultFlatPagination<MissionData>;
195
+ export type MissionListResponsesDefaultFlatPagination = DefaultFlatPagination<MissionListResponse>;
191
196
 
192
197
  export type MissionListEventsResponsesDefaultFlatPagination =
193
198
  DefaultFlatPagination<MissionListEventsResponse>;
194
199
 
195
- export interface MissionData {
200
+ export interface MissionCreateResponse {
201
+ data: MissionCreateResponse.Data;
202
+ }
203
+
204
+ export namespace MissionCreateResponse {
205
+ export interface Data {
206
+ created_at: string;
207
+
208
+ execution_mode: 'external' | 'managed';
209
+
210
+ mission_id: string;
211
+
212
+ name: string;
213
+
214
+ updated_at: string;
215
+
216
+ description?: string;
217
+
218
+ instructions?: string;
219
+
220
+ metadata?: { [key: string]: unknown };
221
+
222
+ model?: string;
223
+ }
224
+ }
225
+
226
+ export interface MissionRetrieveResponse {
227
+ data: MissionRetrieveResponse.Data;
228
+ }
229
+
230
+ export namespace MissionRetrieveResponse {
231
+ export interface Data {
232
+ created_at: string;
233
+
234
+ execution_mode: 'external' | 'managed';
235
+
236
+ mission_id: string;
237
+
238
+ name: string;
239
+
240
+ updated_at: string;
241
+
242
+ description?: string;
243
+
244
+ instructions?: string;
245
+
246
+ metadata?: { [key: string]: unknown };
247
+
248
+ model?: string;
249
+ }
250
+ }
251
+
252
+ export interface MissionListResponse {
196
253
  created_at: string;
197
254
 
198
255
  execution_mode: 'external' | 'managed';
@@ -212,14 +269,6 @@ export interface MissionData {
212
269
  model?: string;
213
270
  }
214
271
 
215
- export interface MissionCreateResponse {
216
- data: MissionData;
217
- }
218
-
219
- export interface MissionRetrieveResponse {
220
- data: MissionData;
221
- }
222
-
223
272
  export type MissionCloneMissionResponse = unknown;
224
273
 
225
274
  export interface MissionListEventsResponse {
@@ -252,7 +301,29 @@ export interface MissionListEventsResponse {
252
301
  }
253
302
 
254
303
  export interface MissionUpdateMissionResponse {
255
- data: MissionData;
304
+ data: MissionUpdateMissionResponse.Data;
305
+ }
306
+
307
+ export namespace MissionUpdateMissionResponse {
308
+ export interface Data {
309
+ created_at: string;
310
+
311
+ execution_mode: 'external' | 'managed';
312
+
313
+ mission_id: string;
314
+
315
+ name: string;
316
+
317
+ updated_at: string;
318
+
319
+ description?: string;
320
+
321
+ instructions?: string;
322
+
323
+ metadata?: { [key: string]: unknown };
324
+
325
+ model?: string;
326
+ }
256
327
  }
257
328
 
258
329
  export interface MissionCreateParams {
@@ -296,13 +367,13 @@ Missions.Tools = Tools;
296
367
 
297
368
  export declare namespace Missions {
298
369
  export {
299
- type MissionData as MissionData,
300
370
  type MissionCreateResponse as MissionCreateResponse,
301
371
  type MissionRetrieveResponse as MissionRetrieveResponse,
372
+ type MissionListResponse as MissionListResponse,
302
373
  type MissionCloneMissionResponse as MissionCloneMissionResponse,
303
374
  type MissionListEventsResponse as MissionListEventsResponse,
304
375
  type MissionUpdateMissionResponse as MissionUpdateMissionResponse,
305
- type MissionDataDefaultFlatPagination as MissionDataDefaultFlatPagination,
376
+ type MissionListResponsesDefaultFlatPagination as MissionListResponsesDefaultFlatPagination,
306
377
  type MissionListEventsResponsesDefaultFlatPagination as MissionListEventsResponsesDefaultFlatPagination,
307
378
  type MissionCreateParams as MissionCreateParams,
308
379
  type MissionListParams as MissionListParams,
@@ -312,14 +383,16 @@ export declare namespace Missions {
312
383
 
313
384
  export {
314
385
  Runs as Runs,
315
- type MissionRunData as MissionRunData,
316
386
  type RunCreateResponse as RunCreateResponse,
317
387
  type RunRetrieveResponse as RunRetrieveResponse,
318
388
  type RunUpdateResponse as RunUpdateResponse,
389
+ type RunListResponse as RunListResponse,
319
390
  type RunCancelRunResponse as RunCancelRunResponse,
391
+ type RunListRunsResponse as RunListRunsResponse,
320
392
  type RunPauseRunResponse as RunPauseRunResponse,
321
393
  type RunResumeRunResponse as RunResumeRunResponse,
322
- type MissionRunDataDefaultFlatPagination as MissionRunDataDefaultFlatPagination,
394
+ type RunListResponsesDefaultFlatPagination as RunListResponsesDefaultFlatPagination,
395
+ type RunListRunsResponsesDefaultFlatPagination as RunListRunsResponsesDefaultFlatPagination,
323
396
  type RunCreateParams as RunCreateParams,
324
397
  type RunRetrieveParams as RunRetrieveParams,
325
398
  type RunUpdateParams as RunUpdateParams,
@@ -12,7 +12,6 @@ export {
12
12
  } from './events';
13
13
  export {
14
14
  Plan,
15
- type PlanStepData,
16
15
  type PlanCreateResponse,
17
16
  type PlanRetrieveResponse,
18
17
  type PlanAddStepsToPlanResponse,
@@ -26,11 +25,12 @@ export {
26
25
  } from './plan';
27
26
  export {
28
27
  Runs,
29
- type MissionRunData,
30
28
  type RunCreateResponse,
31
29
  type RunRetrieveResponse,
32
30
  type RunUpdateResponse,
31
+ type RunListResponse,
33
32
  type RunCancelRunResponse,
33
+ type RunListRunsResponse,
34
34
  type RunPauseRunResponse,
35
35
  type RunResumeRunResponse,
36
36
  type RunCreateParams,
@@ -41,7 +41,8 @@ export {
41
41
  type RunListRunsParams,
42
42
  type RunPauseRunParams,
43
43
  type RunResumeRunParams,
44
- type MissionRunDataDefaultFlatPagination,
44
+ type RunListResponsesDefaultFlatPagination,
45
+ type RunListRunsResponsesDefaultFlatPagination,
45
46
  } from './runs';
46
47
  export {
47
48
  TelnyxAgents,
@@ -130,44 +130,134 @@ export class Plan extends APIResource {
130
130
  }
131
131
  }
132
132
 
133
- export interface PlanStepData {
134
- description: string;
133
+ export interface PlanCreateResponse {
134
+ data: Array<PlanCreateResponse.Data>;
135
+ }
135
136
 
136
- run_id: string;
137
+ export namespace PlanCreateResponse {
138
+ export interface Data {
139
+ description: string;
137
140
 
138
- sequence: number;
141
+ run_id: string;
139
142
 
140
- status: 'pending' | 'in_progress' | 'completed' | 'skipped' | 'failed';
143
+ sequence: number;
141
144
 
142
- step_id: string;
145
+ status: 'pending' | 'in_progress' | 'completed' | 'skipped' | 'failed';
143
146
 
144
- completed_at?: string;
147
+ step_id: string;
145
148
 
146
- metadata?: { [key: string]: unknown };
149
+ completed_at?: string;
147
150
 
148
- parent_step_id?: string;
151
+ metadata?: { [key: string]: unknown };
149
152
 
150
- started_at?: string;
151
- }
153
+ parent_step_id?: string;
152
154
 
153
- export interface PlanCreateResponse {
154
- data: Array<PlanStepData>;
155
+ started_at?: string;
156
+ }
155
157
  }
156
158
 
157
159
  export interface PlanRetrieveResponse {
158
- data: Array<PlanStepData>;
160
+ data: Array<PlanRetrieveResponse.Data>;
161
+ }
162
+
163
+ export namespace PlanRetrieveResponse {
164
+ export interface Data {
165
+ description: string;
166
+
167
+ run_id: string;
168
+
169
+ sequence: number;
170
+
171
+ status: 'pending' | 'in_progress' | 'completed' | 'skipped' | 'failed';
172
+
173
+ step_id: string;
174
+
175
+ completed_at?: string;
176
+
177
+ metadata?: { [key: string]: unknown };
178
+
179
+ parent_step_id?: string;
180
+
181
+ started_at?: string;
182
+ }
159
183
  }
160
184
 
161
185
  export interface PlanAddStepsToPlanResponse {
162
- data: Array<PlanStepData>;
186
+ data: Array<PlanAddStepsToPlanResponse.Data>;
187
+ }
188
+
189
+ export namespace PlanAddStepsToPlanResponse {
190
+ export interface Data {
191
+ description: string;
192
+
193
+ run_id: string;
194
+
195
+ sequence: number;
196
+
197
+ status: 'pending' | 'in_progress' | 'completed' | 'skipped' | 'failed';
198
+
199
+ step_id: string;
200
+
201
+ completed_at?: string;
202
+
203
+ metadata?: { [key: string]: unknown };
204
+
205
+ parent_step_id?: string;
206
+
207
+ started_at?: string;
208
+ }
163
209
  }
164
210
 
165
211
  export interface PlanGetStepDetailsResponse {
166
- data: PlanStepData;
212
+ data: PlanGetStepDetailsResponse.Data;
213
+ }
214
+
215
+ export namespace PlanGetStepDetailsResponse {
216
+ export interface Data {
217
+ description: string;
218
+
219
+ run_id: string;
220
+
221
+ sequence: number;
222
+
223
+ status: 'pending' | 'in_progress' | 'completed' | 'skipped' | 'failed';
224
+
225
+ step_id: string;
226
+
227
+ completed_at?: string;
228
+
229
+ metadata?: { [key: string]: unknown };
230
+
231
+ parent_step_id?: string;
232
+
233
+ started_at?: string;
234
+ }
167
235
  }
168
236
 
169
237
  export interface PlanUpdateStepResponse {
170
- data: PlanStepData;
238
+ data: PlanUpdateStepResponse.Data;
239
+ }
240
+
241
+ export namespace PlanUpdateStepResponse {
242
+ export interface Data {
243
+ description: string;
244
+
245
+ run_id: string;
246
+
247
+ sequence: number;
248
+
249
+ status: 'pending' | 'in_progress' | 'completed' | 'skipped' | 'failed';
250
+
251
+ step_id: string;
252
+
253
+ completed_at?: string;
254
+
255
+ metadata?: { [key: string]: unknown };
256
+
257
+ parent_step_id?: string;
258
+
259
+ started_at?: string;
260
+ }
171
261
  }
172
262
 
173
263
  export interface PlanCreateParams {
@@ -256,7 +346,6 @@ export interface PlanUpdateStepParams {
256
346
 
257
347
  export declare namespace Plan {
258
348
  export {
259
- type PlanStepData as PlanStepData,
260
349
  type PlanCreateResponse as PlanCreateResponse,
261
350
  type PlanRetrieveResponse as PlanRetrieveResponse,
262
351
  type PlanAddStepsToPlanResponse as PlanAddStepsToPlanResponse,
@@ -23,7 +23,6 @@ import {
23
23
  PlanGetStepDetailsResponse,
24
24
  PlanRetrieveParams,
25
25
  PlanRetrieveResponse,
26
- PlanStepData,
27
26
  PlanUpdateStepParams,
28
27
  PlanUpdateStepResponse,
29
28
  } from './plan';
@@ -110,7 +109,7 @@ export class Runs extends APIResource {
110
109
  * @example
111
110
  * ```ts
112
111
  * // Automatically fetches more pages as needed.
113
- * for await (const missionRunData of client.ai.missions.runs.list(
112
+ * for await (const runListResponse of client.ai.missions.runs.list(
114
113
  * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
115
114
  * )) {
116
115
  * // ...
@@ -121,10 +120,10 @@ export class Runs extends APIResource {
121
120
  missionID: string,
122
121
  query: RunListParams | null | undefined = {},
123
122
  options?: RequestOptions,
124
- ): PagePromise<MissionRunDataDefaultFlatPagination, MissionRunData> {
123
+ ): PagePromise<RunListResponsesDefaultFlatPagination, RunListResponse> {
125
124
  return this._client.getAPIList(
126
125
  path`/ai/missions/${missionID}/runs`,
127
- DefaultFlatPagination<MissionRunData>,
126
+ DefaultFlatPagination<RunListResponse>,
128
127
  { query, ...options },
129
128
  );
130
129
  }
@@ -155,7 +154,7 @@ export class Runs extends APIResource {
155
154
  * @example
156
155
  * ```ts
157
156
  * // Automatically fetches more pages as needed.
158
- * for await (const missionRunData of client.ai.missions.runs.listRuns()) {
157
+ * for await (const runListRunsResponse of client.ai.missions.runs.listRuns()) {
159
158
  * // ...
160
159
  * }
161
160
  * ```
@@ -163,8 +162,8 @@ export class Runs extends APIResource {
163
162
  listRuns(
164
163
  query: RunListRunsParams | null | undefined = {},
165
164
  options?: RequestOptions,
166
- ): PagePromise<MissionRunDataDefaultFlatPagination, MissionRunData> {
167
- return this._client.getAPIList('/ai/missions/runs', DefaultFlatPagination<MissionRunData>, {
165
+ ): PagePromise<RunListRunsResponsesDefaultFlatPagination, RunListRunsResponse> {
166
+ return this._client.getAPIList('/ai/missions/runs', DefaultFlatPagination<RunListRunsResponse>, {
168
167
  query,
169
168
  ...options,
170
169
  });
@@ -211,9 +210,101 @@ export class Runs extends APIResource {
211
210
  }
212
211
  }
213
212
 
214
- export type MissionRunDataDefaultFlatPagination = DefaultFlatPagination<MissionRunData>;
213
+ export type RunListResponsesDefaultFlatPagination = DefaultFlatPagination<RunListResponse>;
215
214
 
216
- export interface MissionRunData {
215
+ export type RunListRunsResponsesDefaultFlatPagination = DefaultFlatPagination<RunListRunsResponse>;
216
+
217
+ export interface RunCreateResponse {
218
+ data: RunCreateResponse.Data;
219
+ }
220
+
221
+ export namespace RunCreateResponse {
222
+ export interface Data {
223
+ mission_id: string;
224
+
225
+ run_id: string;
226
+
227
+ started_at: string;
228
+
229
+ status: 'pending' | 'running' | 'paused' | 'succeeded' | 'failed' | 'cancelled';
230
+
231
+ updated_at: string;
232
+
233
+ error?: string;
234
+
235
+ finished_at?: string;
236
+
237
+ input?: { [key: string]: unknown };
238
+
239
+ metadata?: { [key: string]: unknown };
240
+
241
+ result_payload?: { [key: string]: unknown };
242
+
243
+ result_summary?: string;
244
+ }
245
+ }
246
+
247
+ export interface RunRetrieveResponse {
248
+ data: RunRetrieveResponse.Data;
249
+ }
250
+
251
+ export namespace RunRetrieveResponse {
252
+ export interface Data {
253
+ mission_id: string;
254
+
255
+ run_id: string;
256
+
257
+ started_at: string;
258
+
259
+ status: 'pending' | 'running' | 'paused' | 'succeeded' | 'failed' | 'cancelled';
260
+
261
+ updated_at: string;
262
+
263
+ error?: string;
264
+
265
+ finished_at?: string;
266
+
267
+ input?: { [key: string]: unknown };
268
+
269
+ metadata?: { [key: string]: unknown };
270
+
271
+ result_payload?: { [key: string]: unknown };
272
+
273
+ result_summary?: string;
274
+ }
275
+ }
276
+
277
+ export interface RunUpdateResponse {
278
+ data: RunUpdateResponse.Data;
279
+ }
280
+
281
+ export namespace RunUpdateResponse {
282
+ export interface Data {
283
+ mission_id: string;
284
+
285
+ run_id: string;
286
+
287
+ started_at: string;
288
+
289
+ status: 'pending' | 'running' | 'paused' | 'succeeded' | 'failed' | 'cancelled';
290
+
291
+ updated_at: string;
292
+
293
+ error?: string;
294
+
295
+ finished_at?: string;
296
+
297
+ input?: { [key: string]: unknown };
298
+
299
+ metadata?: { [key: string]: unknown };
300
+
301
+ result_payload?: { [key: string]: unknown };
302
+
303
+ result_summary?: string;
304
+ }
305
+ }
306
+
307
+ export interface RunListResponse {
217
308
  mission_id: string;
218
309
 
219
310
  run_id: string;
@@ -237,28 +328,118 @@ export interface MissionRunData {
237
328
  result_summary?: string;
238
329
  }
239
330
 
240
- export interface RunCreateResponse {
241
- data: MissionRunData;
331
+ export interface RunCancelRunResponse {
332
+ data: RunCancelRunResponse.Data;
242
333
  }
243
334
 
244
- export interface RunRetrieveResponse {
245
- data: MissionRunData;
246
- }
335
+ export namespace RunCancelRunResponse {
336
+ export interface Data {
337
+ mission_id: string;
247
338
 
248
- export interface RunUpdateResponse {
249
- data: MissionRunData;
339
+ run_id: string;
340
+
341
+ started_at: string;
342
+
343
+ status: 'pending' | 'running' | 'paused' | 'succeeded' | 'failed' | 'cancelled';
344
+
345
+ updated_at: string;
346
+
347
+ error?: string;
348
+
349
+ finished_at?: string;
350
+
351
+ input?: { [key: string]: unknown };
352
+
353
+ metadata?: { [key: string]: unknown };
354
+
355
+ result_payload?: { [key: string]: unknown };
356
+
357
+ result_summary?: string;
358
+ }
250
359
  }
251
360
 
252
- export interface RunCancelRunResponse {
253
- data: MissionRunData;
361
+ export interface RunListRunsResponse {
362
+ mission_id: string;
363
+
364
+ run_id: string;
365
+
366
+ started_at: string;
367
+
368
+ status: 'pending' | 'running' | 'paused' | 'succeeded' | 'failed' | 'cancelled';
369
+
370
+ updated_at: string;
371
+
372
+ error?: string;
373
+
374
+ finished_at?: string;
375
+
376
+ input?: { [key: string]: unknown };
377
+
378
+ metadata?: { [key: string]: unknown };
379
+
380
+ result_payload?: { [key: string]: unknown };
381
+
382
+ result_summary?: string;
254
383
  }
255
384
 
256
385
  export interface RunPauseRunResponse {
257
- data: MissionRunData;
386
+ data: RunPauseRunResponse.Data;
387
+ }
388
+
389
+ export namespace RunPauseRunResponse {
390
+ export interface Data {
391
+ mission_id: string;
392
+
393
+ run_id: string;
394
+
395
+ started_at: string;
396
+
397
+ status: 'pending' | 'running' | 'paused' | 'succeeded' | 'failed' | 'cancelled';
398
+
399
+ updated_at: string;
400
+
401
+ error?: string;
402
+
403
+ finished_at?: string;
404
+
405
+ input?: { [key: string]: unknown };
406
+
407
+ metadata?: { [key: string]: unknown };
408
+
409
+ result_payload?: { [key: string]: unknown };
410
+
411
+ result_summary?: string;
412
+ }
258
413
  }
259
414
 
260
415
  export interface RunResumeRunResponse {
261
- data: MissionRunData;
416
+ data: RunResumeRunResponse.Data;
417
+ }
418
+
419
+ export namespace RunResumeRunResponse {
420
+ export interface Data {
421
+ mission_id: string;
422
+
423
+ run_id: string;
424
+
425
+ started_at: string;
426
+
427
+ status: 'pending' | 'running' | 'paused' | 'succeeded' | 'failed' | 'cancelled';
428
+
429
+ updated_at: string;
430
+
431
+ error?: string;
432
+
433
+ finished_at?: string;
434
+
435
+ input?: { [key: string]: unknown };
436
+
437
+ metadata?: { [key: string]: unknown };
438
+
439
+ result_payload?: { [key: string]: unknown };
440
+
441
+ result_summary?: string;
442
+ }
262
443
  }
263
444
 
264
445
  export interface RunCreateParams {
@@ -329,14 +510,16 @@ Runs.TelnyxAgents = TelnyxAgents;
329
510
 
330
511
  export declare namespace Runs {
331
512
  export {
332
- type MissionRunData as MissionRunData,
333
513
  type RunCreateResponse as RunCreateResponse,
334
514
  type RunRetrieveResponse as RunRetrieveResponse,
335
515
  type RunUpdateResponse as RunUpdateResponse,
516
+ type RunListResponse as RunListResponse,
336
517
  type RunCancelRunResponse as RunCancelRunResponse,
518
+ type RunListRunsResponse as RunListRunsResponse,
337
519
  type RunPauseRunResponse as RunPauseRunResponse,
338
520
  type RunResumeRunResponse as RunResumeRunResponse,
339
- type MissionRunDataDefaultFlatPagination as MissionRunDataDefaultFlatPagination,
521
+ type RunListResponsesDefaultFlatPagination as RunListResponsesDefaultFlatPagination,
522
+ type RunListRunsResponsesDefaultFlatPagination as RunListRunsResponsesDefaultFlatPagination,
340
523
  type RunCreateParams as RunCreateParams,
341
524
  type RunRetrieveParams as RunRetrieveParams,
342
525
  type RunUpdateParams as RunUpdateParams,
@@ -360,7 +543,6 @@ export declare namespace Runs {
360
543
 
361
544
  export {
362
545
  Plan as Plan,
363
- type PlanStepData as PlanStepData,
364
546
  type PlanCreateResponse as PlanCreateResponse,
365
547
  type PlanRetrieveResponse as PlanRetrieveResponse,
366
548
  type PlanAddStepsToPlanResponse as PlanAddStepsToPlanResponse,
@@ -705,6 +705,13 @@ export interface ParticipantParticipantsParams {
705
705
  */
706
706
  From?: string;
707
707
 
708
+ /**
709
+ * Body param: A unique label for the participant that will be added to the
710
+ * conference. The label can be used to reference the participant for updates via
711
+ * the TeXML REST API.
712
+ */
713
+ Label?: string;
714
+
708
715
  /**
709
716
  * Body param: Whether to detect if a human or an answering machine picked up the
710
717
  * call. Use `Enable` if you would like to ne notified as soon as the called party
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '5.26.0'; // x-release-please-version
1
+ export const VERSION = '5.27.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.26.0";
1
+ export declare const VERSION = "5.27.0";
2
2
  //# sourceMappingURL=version.d.mts.map