telnyx 5.30.0 → 5.32.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 +17 -0
- package/client.d.mts +1 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +1 -0
- package/client.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +2 -2
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +2 -2
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +9 -3
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +9 -3
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/index.d.mts +1 -1
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +1 -1
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/missions/index.d.mts +2 -2
- package/resources/ai/missions/index.d.mts.map +1 -1
- package/resources/ai/missions/index.d.ts +2 -2
- package/resources/ai/missions/index.d.ts.map +1 -1
- package/resources/ai/missions/index.js.map +1 -1
- package/resources/ai/missions/index.mjs.map +1 -1
- package/resources/ai/missions/missions.d.mts +14 -59
- package/resources/ai/missions/missions.d.mts.map +1 -1
- package/resources/ai/missions/missions.d.ts +14 -59
- package/resources/ai/missions/missions.d.ts.map +1 -1
- package/resources/ai/missions/missions.js +2 -5
- package/resources/ai/missions/missions.js.map +1 -1
- package/resources/ai/missions/missions.mjs +2 -5
- package/resources/ai/missions/missions.mjs.map +1 -1
- package/resources/ai/missions/runs/index.d.mts +2 -2
- package/resources/ai/missions/runs/index.d.mts.map +1 -1
- package/resources/ai/missions/runs/index.d.ts +2 -2
- package/resources/ai/missions/runs/index.d.ts.map +1 -1
- package/resources/ai/missions/runs/index.js.map +1 -1
- package/resources/ai/missions/runs/index.mjs.map +1 -1
- package/resources/ai/missions/runs/plan.d.mts +19 -81
- package/resources/ai/missions/runs/plan.d.mts.map +1 -1
- package/resources/ai/missions/runs/plan.d.ts +19 -81
- package/resources/ai/missions/runs/plan.d.ts.map +1 -1
- package/resources/ai/missions/runs/runs.d.mts +20 -166
- package/resources/ai/missions/runs/runs.d.mts.map +1 -1
- package/resources/ai/missions/runs/runs.d.ts +20 -166
- package/resources/ai/missions/runs/runs.d.ts.map +1 -1
- package/resources/ai/missions/runs/runs.js +2 -2
- package/resources/ai/missions/runs/runs.js.map +1 -1
- package/resources/ai/missions/runs/runs.mjs +2 -2
- package/resources/ai/missions/runs/runs.mjs.map +1 -1
- package/resources/calls/actions.d.mts +18 -47
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +18 -47
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/actions.js.map +1 -1
- package/resources/calls/actions.mjs.map +1 -1
- package/resources/conferences/actions.d.mts +2 -21
- package/resources/conferences/actions.d.mts.map +1 -1
- package/resources/conferences/actions.d.ts +2 -21
- package/resources/conferences/actions.d.ts.map +1 -1
- package/resources/conferences/actions.js.map +1 -1
- package/resources/conferences/actions.mjs.map +1 -1
- package/resources/messaging-10dlc/brand/brand.d.mts +68 -1
- package/resources/messaging-10dlc/brand/brand.d.mts.map +1 -1
- package/resources/messaging-10dlc/brand/brand.d.ts +68 -1
- package/resources/messaging-10dlc/brand/brand.d.ts.map +1 -1
- package/resources/messaging-10dlc/brand/brand.js +25 -0
- package/resources/messaging-10dlc/brand/brand.js.map +1 -1
- package/resources/messaging-10dlc/brand/brand.mjs +25 -0
- package/resources/messaging-10dlc/brand/brand.mjs.map +1 -1
- package/resources/messaging-10dlc/brand/index.d.mts +1 -1
- package/resources/messaging-10dlc/brand/index.d.mts.map +1 -1
- package/resources/messaging-10dlc/brand/index.d.ts +1 -1
- package/resources/messaging-10dlc/brand/index.d.ts.map +1 -1
- package/resources/messaging-10dlc/brand/index.js.map +1 -1
- package/resources/messaging-10dlc/brand/index.mjs.map +1 -1
- package/resources/messaging-10dlc/index.d.mts +1 -1
- package/resources/messaging-10dlc/index.d.mts.map +1 -1
- package/resources/messaging-10dlc/index.d.ts +1 -1
- package/resources/messaging-10dlc/index.d.ts.map +1 -1
- package/resources/messaging-10dlc/index.js.map +1 -1
- package/resources/messaging-10dlc/index.mjs.map +1 -1
- package/resources/messaging-10dlc/messaging-10dlc.d.mts +2 -2
- package/resources/messaging-10dlc/messaging-10dlc.d.mts.map +1 -1
- package/resources/messaging-10dlc/messaging-10dlc.d.ts +2 -2
- package/resources/messaging-10dlc/messaging-10dlc.d.ts.map +1 -1
- package/resources/messaging-10dlc/messaging-10dlc.js.map +1 -1
- package/resources/messaging-10dlc/messaging-10dlc.mjs.map +1 -1
- package/resources/shared.d.mts +18 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +18 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/texml/accounts/conferences/conferences.d.mts +3 -1
- package/resources/texml/accounts/conferences/conferences.d.mts.map +1 -1
- package/resources/texml/accounts/conferences/conferences.d.ts +3 -1
- package/resources/texml/accounts/conferences/conferences.d.ts.map +1 -1
- package/src/client.ts +1 -0
- package/src/resources/ai/ai.ts +4 -4
- package/src/resources/ai/assistants/assistants.ts +3 -3
- package/src/resources/ai/index.ts +2 -2
- package/src/resources/ai/missions/index.ts +4 -6
- package/src/resources/ai/missions/missions.ts +20 -93
- package/src/resources/ai/missions/runs/index.ts +3 -4
- package/src/resources/ai/missions/runs/plan.ts +18 -107
- package/src/resources/ai/missions/runs/runs.ts +23 -205
- package/src/resources/calls/actions.ts +8 -55
- package/src/resources/conferences/actions.ts +2 -25
- package/src/resources/messaging-10dlc/brand/brand.ts +85 -0
- package/src/resources/messaging-10dlc/brand/index.ts +2 -0
- package/src/resources/messaging-10dlc/index.ts +2 -0
- package/src/resources/messaging-10dlc/messaging-10dlc.ts +4 -0
- package/src/resources/shared.ts +22 -0
- package/src/resources/texml/accounts/conferences/conferences.ts +1 -1
- 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
|
@@ -36,16 +36,14 @@ import {
|
|
|
36
36
|
} from './tools';
|
|
37
37
|
import * as RunsAPI from './runs/runs';
|
|
38
38
|
import {
|
|
39
|
+
MissionRunData,
|
|
40
|
+
MissionRunDataDefaultFlatPagination,
|
|
39
41
|
RunCancelRunParams,
|
|
40
42
|
RunCancelRunResponse,
|
|
41
43
|
RunCreateParams,
|
|
42
44
|
RunCreateResponse,
|
|
43
45
|
RunListParams,
|
|
44
|
-
RunListResponse,
|
|
45
|
-
RunListResponsesDefaultFlatPagination,
|
|
46
46
|
RunListRunsParams,
|
|
47
|
-
RunListRunsResponse,
|
|
48
|
-
RunListRunsResponsesDefaultFlatPagination,
|
|
49
47
|
RunPauseRunParams,
|
|
50
48
|
RunPauseRunResponse,
|
|
51
49
|
RunResumeRunParams,
|
|
@@ -106,7 +104,7 @@ export class Missions extends APIResource {
|
|
|
106
104
|
* @example
|
|
107
105
|
* ```ts
|
|
108
106
|
* // Automatically fetches more pages as needed.
|
|
109
|
-
* for await (const
|
|
107
|
+
* for await (const missionData of client.ai.missions.list()) {
|
|
110
108
|
* // ...
|
|
111
109
|
* }
|
|
112
110
|
* ```
|
|
@@ -114,11 +112,8 @@ export class Missions extends APIResource {
|
|
|
114
112
|
list(
|
|
115
113
|
query: MissionListParams | null | undefined = {},
|
|
116
114
|
options?: RequestOptions,
|
|
117
|
-
): PagePromise<
|
|
118
|
-
return this._client.getAPIList('/ai/missions', DefaultFlatPagination<
|
|
119
|
-
query,
|
|
120
|
-
...options,
|
|
121
|
-
});
|
|
115
|
+
): PagePromise<MissionDataDefaultFlatPagination, MissionData> {
|
|
116
|
+
return this._client.getAPIList('/ai/missions', DefaultFlatPagination<MissionData>, { query, ...options });
|
|
122
117
|
}
|
|
123
118
|
|
|
124
119
|
/**
|
|
@@ -192,64 +187,12 @@ export class Missions extends APIResource {
|
|
|
192
187
|
}
|
|
193
188
|
}
|
|
194
189
|
|
|
195
|
-
export type
|
|
190
|
+
export type MissionDataDefaultFlatPagination = DefaultFlatPagination<MissionData>;
|
|
196
191
|
|
|
197
192
|
export type MissionListEventsResponsesDefaultFlatPagination =
|
|
198
193
|
DefaultFlatPagination<MissionListEventsResponse>;
|
|
199
194
|
|
|
200
|
-
export interface
|
|
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 {
|
|
195
|
+
export interface MissionData {
|
|
253
196
|
created_at: string;
|
|
254
197
|
|
|
255
198
|
execution_mode: 'external' | 'managed';
|
|
@@ -269,6 +212,14 @@ export interface MissionListResponse {
|
|
|
269
212
|
model?: string;
|
|
270
213
|
}
|
|
271
214
|
|
|
215
|
+
export interface MissionCreateResponse {
|
|
216
|
+
data: MissionData;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export interface MissionRetrieveResponse {
|
|
220
|
+
data: MissionData;
|
|
221
|
+
}
|
|
222
|
+
|
|
272
223
|
export type MissionCloneMissionResponse = unknown;
|
|
273
224
|
|
|
274
225
|
export interface MissionListEventsResponse {
|
|
@@ -301,29 +252,7 @@ export interface MissionListEventsResponse {
|
|
|
301
252
|
}
|
|
302
253
|
|
|
303
254
|
export interface MissionUpdateMissionResponse {
|
|
304
|
-
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
|
-
}
|
|
255
|
+
data: MissionData;
|
|
327
256
|
}
|
|
328
257
|
|
|
329
258
|
export interface MissionCreateParams {
|
|
@@ -367,13 +296,13 @@ Missions.Tools = Tools;
|
|
|
367
296
|
|
|
368
297
|
export declare namespace Missions {
|
|
369
298
|
export {
|
|
299
|
+
type MissionData as MissionData,
|
|
370
300
|
type MissionCreateResponse as MissionCreateResponse,
|
|
371
301
|
type MissionRetrieveResponse as MissionRetrieveResponse,
|
|
372
|
-
type MissionListResponse as MissionListResponse,
|
|
373
302
|
type MissionCloneMissionResponse as MissionCloneMissionResponse,
|
|
374
303
|
type MissionListEventsResponse as MissionListEventsResponse,
|
|
375
304
|
type MissionUpdateMissionResponse as MissionUpdateMissionResponse,
|
|
376
|
-
type
|
|
305
|
+
type MissionDataDefaultFlatPagination as MissionDataDefaultFlatPagination,
|
|
377
306
|
type MissionListEventsResponsesDefaultFlatPagination as MissionListEventsResponsesDefaultFlatPagination,
|
|
378
307
|
type MissionCreateParams as MissionCreateParams,
|
|
379
308
|
type MissionListParams as MissionListParams,
|
|
@@ -383,16 +312,14 @@ export declare namespace Missions {
|
|
|
383
312
|
|
|
384
313
|
export {
|
|
385
314
|
Runs as Runs,
|
|
315
|
+
type MissionRunData as MissionRunData,
|
|
386
316
|
type RunCreateResponse as RunCreateResponse,
|
|
387
317
|
type RunRetrieveResponse as RunRetrieveResponse,
|
|
388
318
|
type RunUpdateResponse as RunUpdateResponse,
|
|
389
|
-
type RunListResponse as RunListResponse,
|
|
390
319
|
type RunCancelRunResponse as RunCancelRunResponse,
|
|
391
|
-
type RunListRunsResponse as RunListRunsResponse,
|
|
392
320
|
type RunPauseRunResponse as RunPauseRunResponse,
|
|
393
321
|
type RunResumeRunResponse as RunResumeRunResponse,
|
|
394
|
-
type
|
|
395
|
-
type RunListRunsResponsesDefaultFlatPagination as RunListRunsResponsesDefaultFlatPagination,
|
|
322
|
+
type MissionRunDataDefaultFlatPagination as MissionRunDataDefaultFlatPagination,
|
|
396
323
|
type RunCreateParams as RunCreateParams,
|
|
397
324
|
type RunRetrieveParams as RunRetrieveParams,
|
|
398
325
|
type RunUpdateParams as RunUpdateParams,
|
|
@@ -12,6 +12,7 @@ export {
|
|
|
12
12
|
} from './events';
|
|
13
13
|
export {
|
|
14
14
|
Plan,
|
|
15
|
+
type PlanStepData,
|
|
15
16
|
type PlanCreateResponse,
|
|
16
17
|
type PlanRetrieveResponse,
|
|
17
18
|
type PlanAddStepsToPlanResponse,
|
|
@@ -25,12 +26,11 @@ export {
|
|
|
25
26
|
} from './plan';
|
|
26
27
|
export {
|
|
27
28
|
Runs,
|
|
29
|
+
type MissionRunData,
|
|
28
30
|
type RunCreateResponse,
|
|
29
31
|
type RunRetrieveResponse,
|
|
30
32
|
type RunUpdateResponse,
|
|
31
|
-
type RunListResponse,
|
|
32
33
|
type RunCancelRunResponse,
|
|
33
|
-
type RunListRunsResponse,
|
|
34
34
|
type RunPauseRunResponse,
|
|
35
35
|
type RunResumeRunResponse,
|
|
36
36
|
type RunCreateParams,
|
|
@@ -41,8 +41,7 @@ export {
|
|
|
41
41
|
type RunListRunsParams,
|
|
42
42
|
type RunPauseRunParams,
|
|
43
43
|
type RunResumeRunParams,
|
|
44
|
-
type
|
|
45
|
-
type RunListRunsResponsesDefaultFlatPagination,
|
|
44
|
+
type MissionRunDataDefaultFlatPagination,
|
|
46
45
|
} from './runs';
|
|
47
46
|
export {
|
|
48
47
|
TelnyxAgents,
|
|
@@ -130,134 +130,44 @@ export class Plan extends APIResource {
|
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
export interface
|
|
134
|
-
|
|
135
|
-
}
|
|
133
|
+
export interface PlanStepData {
|
|
134
|
+
description: string;
|
|
136
135
|
|
|
137
|
-
|
|
138
|
-
export interface Data {
|
|
139
|
-
description: string;
|
|
140
|
-
|
|
141
|
-
run_id: string;
|
|
136
|
+
run_id: string;
|
|
142
137
|
|
|
143
|
-
|
|
138
|
+
sequence: number;
|
|
144
139
|
|
|
145
|
-
|
|
140
|
+
status: 'pending' | 'in_progress' | 'completed' | 'skipped' | 'failed';
|
|
146
141
|
|
|
147
|
-
|
|
142
|
+
step_id: string;
|
|
148
143
|
|
|
149
|
-
|
|
144
|
+
completed_at?: string;
|
|
150
145
|
|
|
151
|
-
|
|
146
|
+
metadata?: { [key: string]: unknown };
|
|
152
147
|
|
|
153
|
-
|
|
148
|
+
parent_step_id?: string;
|
|
154
149
|
|
|
155
|
-
|
|
156
|
-
}
|
|
150
|
+
started_at?: string;
|
|
157
151
|
}
|
|
158
152
|
|
|
159
|
-
export interface
|
|
160
|
-
data: Array<
|
|
153
|
+
export interface PlanCreateResponse {
|
|
154
|
+
data: Array<PlanStepData>;
|
|
161
155
|
}
|
|
162
156
|
|
|
163
|
-
export
|
|
164
|
-
|
|
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
|
-
}
|
|
157
|
+
export interface PlanRetrieveResponse {
|
|
158
|
+
data: Array<PlanStepData>;
|
|
183
159
|
}
|
|
184
160
|
|
|
185
161
|
export interface PlanAddStepsToPlanResponse {
|
|
186
|
-
data: Array<
|
|
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
|
-
}
|
|
162
|
+
data: Array<PlanStepData>;
|
|
209
163
|
}
|
|
210
164
|
|
|
211
165
|
export interface PlanGetStepDetailsResponse {
|
|
212
|
-
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
|
-
}
|
|
166
|
+
data: PlanStepData;
|
|
235
167
|
}
|
|
236
168
|
|
|
237
169
|
export interface PlanUpdateStepResponse {
|
|
238
|
-
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
|
-
}
|
|
170
|
+
data: PlanStepData;
|
|
261
171
|
}
|
|
262
172
|
|
|
263
173
|
export interface PlanCreateParams {
|
|
@@ -346,6 +256,7 @@ export interface PlanUpdateStepParams {
|
|
|
346
256
|
|
|
347
257
|
export declare namespace Plan {
|
|
348
258
|
export {
|
|
259
|
+
type PlanStepData as PlanStepData,
|
|
349
260
|
type PlanCreateResponse as PlanCreateResponse,
|
|
350
261
|
type PlanRetrieveResponse as PlanRetrieveResponse,
|
|
351
262
|
type PlanAddStepsToPlanResponse as PlanAddStepsToPlanResponse,
|
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
PlanGetStepDetailsResponse,
|
|
24
24
|
PlanRetrieveParams,
|
|
25
25
|
PlanRetrieveResponse,
|
|
26
|
+
PlanStepData,
|
|
26
27
|
PlanUpdateStepParams,
|
|
27
28
|
PlanUpdateStepResponse,
|
|
28
29
|
} from './plan';
|
|
@@ -109,7 +110,7 @@ export class Runs extends APIResource {
|
|
|
109
110
|
* @example
|
|
110
111
|
* ```ts
|
|
111
112
|
* // Automatically fetches more pages as needed.
|
|
112
|
-
* for await (const
|
|
113
|
+
* for await (const missionRunData of client.ai.missions.runs.list(
|
|
113
114
|
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
114
115
|
* )) {
|
|
115
116
|
* // ...
|
|
@@ -120,10 +121,10 @@ export class Runs extends APIResource {
|
|
|
120
121
|
missionID: string,
|
|
121
122
|
query: RunListParams | null | undefined = {},
|
|
122
123
|
options?: RequestOptions,
|
|
123
|
-
): PagePromise<
|
|
124
|
+
): PagePromise<MissionRunDataDefaultFlatPagination, MissionRunData> {
|
|
124
125
|
return this._client.getAPIList(
|
|
125
126
|
path`/ai/missions/${missionID}/runs`,
|
|
126
|
-
DefaultFlatPagination<
|
|
127
|
+
DefaultFlatPagination<MissionRunData>,
|
|
127
128
|
{ query, ...options },
|
|
128
129
|
);
|
|
129
130
|
}
|
|
@@ -154,7 +155,7 @@ export class Runs extends APIResource {
|
|
|
154
155
|
* @example
|
|
155
156
|
* ```ts
|
|
156
157
|
* // Automatically fetches more pages as needed.
|
|
157
|
-
* for await (const
|
|
158
|
+
* for await (const missionRunData of client.ai.missions.runs.listRuns()) {
|
|
158
159
|
* // ...
|
|
159
160
|
* }
|
|
160
161
|
* ```
|
|
@@ -162,8 +163,8 @@ export class Runs extends APIResource {
|
|
|
162
163
|
listRuns(
|
|
163
164
|
query: RunListRunsParams | null | undefined = {},
|
|
164
165
|
options?: RequestOptions,
|
|
165
|
-
): PagePromise<
|
|
166
|
-
return this._client.getAPIList('/ai/missions/runs', DefaultFlatPagination<
|
|
166
|
+
): PagePromise<MissionRunDataDefaultFlatPagination, MissionRunData> {
|
|
167
|
+
return this._client.getAPIList('/ai/missions/runs', DefaultFlatPagination<MissionRunData>, {
|
|
167
168
|
query,
|
|
168
169
|
...options,
|
|
169
170
|
});
|
|
@@ -210,101 +211,9 @@ export class Runs extends APIResource {
|
|
|
210
211
|
}
|
|
211
212
|
}
|
|
212
213
|
|
|
213
|
-
export type
|
|
214
|
+
export type MissionRunDataDefaultFlatPagination = DefaultFlatPagination<MissionRunData>;
|
|
214
215
|
|
|
215
|
-
export
|
|
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 {
|
|
216
|
+
export interface MissionRunData {
|
|
308
217
|
mission_id: string;
|
|
309
218
|
|
|
310
219
|
run_id: string;
|
|
@@ -328,118 +237,28 @@ export interface RunListResponse {
|
|
|
328
237
|
result_summary?: string;
|
|
329
238
|
}
|
|
330
239
|
|
|
331
|
-
export interface
|
|
332
|
-
data:
|
|
240
|
+
export interface RunCreateResponse {
|
|
241
|
+
data: MissionRunData;
|
|
333
242
|
}
|
|
334
243
|
|
|
335
|
-
export
|
|
336
|
-
|
|
337
|
-
mission_id: string;
|
|
338
|
-
|
|
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
|
-
}
|
|
244
|
+
export interface RunRetrieveResponse {
|
|
245
|
+
data: MissionRunData;
|
|
359
246
|
}
|
|
360
247
|
|
|
361
|
-
export interface
|
|
362
|
-
|
|
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;
|
|
248
|
+
export interface RunUpdateResponse {
|
|
249
|
+
data: MissionRunData;
|
|
383
250
|
}
|
|
384
251
|
|
|
385
|
-
export interface
|
|
386
|
-
data:
|
|
252
|
+
export interface RunCancelRunResponse {
|
|
253
|
+
data: MissionRunData;
|
|
387
254
|
}
|
|
388
255
|
|
|
389
|
-
export
|
|
390
|
-
|
|
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
|
-
}
|
|
256
|
+
export interface RunPauseRunResponse {
|
|
257
|
+
data: MissionRunData;
|
|
413
258
|
}
|
|
414
259
|
|
|
415
260
|
export interface RunResumeRunResponse {
|
|
416
|
-
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
|
-
}
|
|
261
|
+
data: MissionRunData;
|
|
443
262
|
}
|
|
444
263
|
|
|
445
264
|
export interface RunCreateParams {
|
|
@@ -510,16 +329,14 @@ Runs.TelnyxAgents = TelnyxAgents;
|
|
|
510
329
|
|
|
511
330
|
export declare namespace Runs {
|
|
512
331
|
export {
|
|
332
|
+
type MissionRunData as MissionRunData,
|
|
513
333
|
type RunCreateResponse as RunCreateResponse,
|
|
514
334
|
type RunRetrieveResponse as RunRetrieveResponse,
|
|
515
335
|
type RunUpdateResponse as RunUpdateResponse,
|
|
516
|
-
type RunListResponse as RunListResponse,
|
|
517
336
|
type RunCancelRunResponse as RunCancelRunResponse,
|
|
518
|
-
type RunListRunsResponse as RunListRunsResponse,
|
|
519
337
|
type RunPauseRunResponse as RunPauseRunResponse,
|
|
520
338
|
type RunResumeRunResponse as RunResumeRunResponse,
|
|
521
|
-
type
|
|
522
|
-
type RunListRunsResponsesDefaultFlatPagination as RunListRunsResponsesDefaultFlatPagination,
|
|
339
|
+
type MissionRunDataDefaultFlatPagination as MissionRunDataDefaultFlatPagination,
|
|
523
340
|
type RunCreateParams as RunCreateParams,
|
|
524
341
|
type RunRetrieveParams as RunRetrieveParams,
|
|
525
342
|
type RunUpdateParams as RunUpdateParams,
|
|
@@ -543,6 +360,7 @@ export declare namespace Runs {
|
|
|
543
360
|
|
|
544
361
|
export {
|
|
545
362
|
Plan as Plan,
|
|
363
|
+
type PlanStepData as PlanStepData,
|
|
546
364
|
type PlanCreateResponse as PlanCreateResponse,
|
|
547
365
|
type PlanRetrieveResponse as PlanRetrieveResponse,
|
|
548
366
|
type PlanAddStepsToPlanResponse as PlanAddStepsToPlanResponse,
|