@nimble-way/nimble-js 0.17.0 → 0.19.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 +22 -0
- package/package.json +1 -1
- package/resources/agent.d.mts +17 -13
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +17 -13
- package/resources/agent.d.ts.map +1 -1
- package/resources/batches.d.mts +11 -7
- package/resources/batches.d.mts.map +1 -1
- package/resources/batches.d.ts +11 -7
- package/resources/batches.d.ts.map +1 -1
- package/resources/crawl.d.mts +11 -1
- package/resources/crawl.d.mts.map +1 -1
- package/resources/crawl.d.ts +11 -1
- package/resources/crawl.d.ts.map +1 -1
- package/resources/jobs/jobs.d.mts +447 -0
- package/resources/jobs/jobs.d.mts.map +1 -1
- package/resources/jobs/jobs.d.ts +447 -0
- package/resources/jobs/jobs.d.ts.map +1 -1
- package/resources/jobs/jobs.js.map +1 -1
- package/resources/jobs/jobs.mjs.map +1 -1
- package/resources/jobs/runs/artifacts.d.mts +67 -0
- package/resources/jobs/runs/artifacts.d.mts.map +1 -1
- package/resources/jobs/runs/artifacts.d.ts +67 -0
- package/resources/jobs/runs/artifacts.d.ts.map +1 -1
- package/resources/jobs/runs/runs.d.mts +139 -0
- package/resources/jobs/runs/runs.d.mts.map +1 -1
- package/resources/jobs/runs/runs.d.ts +139 -0
- package/resources/jobs/runs/runs.d.ts.map +1 -1
- package/resources/jobs/runs/runs.js.map +1 -1
- package/resources/jobs/runs/runs.mjs.map +1 -1
- package/resources/media.d.mts +11 -7
- package/resources/media.d.mts.map +1 -1
- package/resources/media.d.ts +11 -7
- package/resources/media.d.ts.map +1 -1
- package/resources/serp.d.mts +22 -14
- package/resources/serp.d.mts.map +1 -1
- package/resources/serp.d.ts +22 -14
- package/resources/serp.d.ts.map +1 -1
- package/resources/task-agent/runs.d.mts +332 -69
- package/resources/task-agent/runs.d.mts.map +1 -1
- package/resources/task-agent/runs.d.ts +332 -69
- package/resources/task-agent/runs.d.ts.map +1 -1
- package/resources/task-agent/runs.js +21 -6
- package/resources/task-agent/runs.js.map +1 -1
- package/resources/task-agent/runs.mjs +21 -6
- package/resources/task-agent/runs.mjs.map +1 -1
- package/resources/task-agent/task-agent.d.mts +131 -33
- package/resources/task-agent/task-agent.d.mts.map +1 -1
- package/resources/task-agent/task-agent.d.ts +131 -33
- package/resources/task-agent/task-agent.d.ts.map +1 -1
- package/resources/task-agent/task-agent.js +12 -14
- package/resources/task-agent/task-agent.js.map +1 -1
- package/resources/task-agent/task-agent.mjs +12 -14
- package/resources/task-agent/task-agent.mjs.map +1 -1
- package/resources/task-agent/templates.d.mts +15 -6
- package/resources/task-agent/templates.d.mts.map +1 -1
- package/resources/task-agent/templates.d.ts +15 -6
- package/resources/task-agent/templates.d.ts.map +1 -1
- package/resources/task-agent/templates.js +2 -2
- package/resources/task-agent/templates.mjs +2 -2
- package/resources/tasks.d.mts +22 -14
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts +22 -14
- package/resources/tasks.d.ts.map +1 -1
- package/resources/top-level.d.mts +77 -20
- package/resources/top-level.d.mts.map +1 -1
- package/resources/top-level.d.ts +77 -20
- package/resources/top-level.d.ts.map +1 -1
- package/src/resources/agent.ts +20 -15
- package/src/resources/batches.ts +12 -7
- package/src/resources/crawl.ts +21 -1
- package/src/resources/jobs/jobs.ts +447 -0
- package/src/resources/jobs/runs/artifacts.ts +67 -0
- package/src/resources/jobs/runs/runs.ts +139 -0
- package/src/resources/media.ts +12 -7
- package/src/resources/serp.ts +24 -14
- package/src/resources/task-agent/runs.ts +370 -78
- package/src/resources/task-agent/task-agent.ts +141 -47
- package/src/resources/task-agent/templates.ts +16 -7
- package/src/resources/tasks.ts +24 -14
- package/src/resources/top-level.ts +118 -20
- 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
|
@@ -57,136 +57,332 @@ export class Jobs extends APIResource {
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
/**
|
|
61
|
+
* A configured job: an agent plus its schedule, inputs, and destination.
|
|
62
|
+
*/
|
|
60
63
|
export interface JobCreateResponse {
|
|
64
|
+
/**
|
|
65
|
+
* Unique job identifier (job\_<n>).
|
|
66
|
+
*/
|
|
61
67
|
id: string;
|
|
62
68
|
|
|
69
|
+
/**
|
|
70
|
+
* Job name.
|
|
71
|
+
*/
|
|
63
72
|
name: string;
|
|
64
73
|
|
|
74
|
+
/**
|
|
75
|
+
* Name of the agent this job runs.
|
|
76
|
+
*/
|
|
65
77
|
agent_name?: string | null;
|
|
66
78
|
|
|
79
|
+
/**
|
|
80
|
+
* When the job was created.
|
|
81
|
+
*/
|
|
67
82
|
created_at?: string | null;
|
|
68
83
|
|
|
84
|
+
/**
|
|
85
|
+
* Free-text description of the job.
|
|
86
|
+
*/
|
|
69
87
|
description?: string | null;
|
|
70
88
|
|
|
89
|
+
/**
|
|
90
|
+
* Where a job writes its results.
|
|
91
|
+
*/
|
|
71
92
|
destination?: JobCreateResponse.Destination | null;
|
|
72
93
|
|
|
94
|
+
/**
|
|
95
|
+
* Human-friendly job name shown in the UI.
|
|
96
|
+
*/
|
|
73
97
|
display_name?: string | null;
|
|
74
98
|
|
|
99
|
+
/**
|
|
100
|
+
* Configuration for the input data a job processes.
|
|
101
|
+
*/
|
|
75
102
|
inputs?: JobCreateResponse.Inputs | null;
|
|
76
103
|
|
|
104
|
+
/**
|
|
105
|
+
* Timestamp of the most recent run.
|
|
106
|
+
*/
|
|
77
107
|
last_run_at?: string | null;
|
|
78
108
|
|
|
109
|
+
/**
|
|
110
|
+
* Status of the most recent run.
|
|
111
|
+
*/
|
|
79
112
|
last_run_status?: 'PENDING' | 'RUNNING' | 'SUCCESS' | 'FAILED' | 'CANCELLED' | 'TIMEOUT' | 'WARNING' | null;
|
|
80
113
|
|
|
114
|
+
/**
|
|
115
|
+
* Cron-based schedule controlling when a job runs automatically.
|
|
116
|
+
*/
|
|
81
117
|
schedule?: JobCreateResponse.Schedule | null;
|
|
82
118
|
|
|
119
|
+
/**
|
|
120
|
+
* When the job was last updated.
|
|
121
|
+
*/
|
|
83
122
|
updated_at?: string | null;
|
|
84
123
|
}
|
|
85
124
|
|
|
86
125
|
export namespace JobCreateResponse {
|
|
126
|
+
/**
|
|
127
|
+
* Where a job writes its results.
|
|
128
|
+
*/
|
|
87
129
|
export interface Destination {
|
|
130
|
+
/**
|
|
131
|
+
* Destination path the output is written to.
|
|
132
|
+
*/
|
|
88
133
|
path: string;
|
|
89
134
|
|
|
135
|
+
/**
|
|
136
|
+
* Destination kind: a local 'file' or an 's3' bucket.
|
|
137
|
+
*/
|
|
90
138
|
type: 'file' | 's3';
|
|
91
139
|
|
|
140
|
+
/**
|
|
141
|
+
* Output file format.
|
|
142
|
+
*/
|
|
92
143
|
format?: 'jsonl' | 'csv' | 'parquet';
|
|
93
144
|
}
|
|
94
145
|
|
|
146
|
+
/**
|
|
147
|
+
* Configuration for the input data a job processes.
|
|
148
|
+
*/
|
|
95
149
|
export interface Inputs {
|
|
150
|
+
/**
|
|
151
|
+
* How inputs are supplied: an 's3' bucket, 'inline' records, or an uploaded
|
|
152
|
+
* 'file'.
|
|
153
|
+
*/
|
|
96
154
|
type: 's3' | 'inline' | 'file';
|
|
97
155
|
|
|
156
|
+
/**
|
|
157
|
+
* Inline list of input records. Used when type is 'inline'.
|
|
158
|
+
*/
|
|
98
159
|
data?: Array<{ [key: string]: unknown }> | null;
|
|
99
160
|
|
|
161
|
+
/**
|
|
162
|
+
* Path to the input file; must start with 's3' or 'file\_'. Used for 's3'/'file'
|
|
163
|
+
* types.
|
|
164
|
+
*/
|
|
100
165
|
file_path?: string | null;
|
|
101
166
|
}
|
|
102
167
|
|
|
168
|
+
/**
|
|
169
|
+
* Cron-based schedule controlling when a job runs automatically.
|
|
170
|
+
*/
|
|
103
171
|
export interface Schedule {
|
|
172
|
+
/**
|
|
173
|
+
* Cron expression defining when the job runs.
|
|
174
|
+
*/
|
|
104
175
|
cron: string;
|
|
105
176
|
|
|
177
|
+
/**
|
|
178
|
+
* Whether the schedule is currently active.
|
|
179
|
+
*/
|
|
106
180
|
enabled: boolean;
|
|
107
181
|
}
|
|
108
182
|
}
|
|
109
183
|
|
|
184
|
+
/**
|
|
185
|
+
* A configured job: an agent plus its schedule, inputs, and destination.
|
|
186
|
+
*/
|
|
110
187
|
export interface JobUpdateResponse {
|
|
188
|
+
/**
|
|
189
|
+
* Unique job identifier (job\_<n>).
|
|
190
|
+
*/
|
|
111
191
|
id: string;
|
|
112
192
|
|
|
193
|
+
/**
|
|
194
|
+
* Job name.
|
|
195
|
+
*/
|
|
113
196
|
name: string;
|
|
114
197
|
|
|
198
|
+
/**
|
|
199
|
+
* Name of the agent this job runs.
|
|
200
|
+
*/
|
|
115
201
|
agent_name?: string | null;
|
|
116
202
|
|
|
203
|
+
/**
|
|
204
|
+
* When the job was created.
|
|
205
|
+
*/
|
|
117
206
|
created_at?: string | null;
|
|
118
207
|
|
|
208
|
+
/**
|
|
209
|
+
* Free-text description of the job.
|
|
210
|
+
*/
|
|
119
211
|
description?: string | null;
|
|
120
212
|
|
|
213
|
+
/**
|
|
214
|
+
* Where a job writes its results.
|
|
215
|
+
*/
|
|
121
216
|
destination?: JobUpdateResponse.Destination | null;
|
|
122
217
|
|
|
218
|
+
/**
|
|
219
|
+
* Human-friendly job name shown in the UI.
|
|
220
|
+
*/
|
|
123
221
|
display_name?: string | null;
|
|
124
222
|
|
|
223
|
+
/**
|
|
224
|
+
* Configuration for the input data a job processes.
|
|
225
|
+
*/
|
|
125
226
|
inputs?: JobUpdateResponse.Inputs | null;
|
|
126
227
|
|
|
228
|
+
/**
|
|
229
|
+
* Timestamp of the most recent run.
|
|
230
|
+
*/
|
|
127
231
|
last_run_at?: string | null;
|
|
128
232
|
|
|
233
|
+
/**
|
|
234
|
+
* Status of the most recent run.
|
|
235
|
+
*/
|
|
129
236
|
last_run_status?: 'PENDING' | 'RUNNING' | 'SUCCESS' | 'FAILED' | 'CANCELLED' | 'TIMEOUT' | 'WARNING' | null;
|
|
130
237
|
|
|
238
|
+
/**
|
|
239
|
+
* Cron-based schedule controlling when a job runs automatically.
|
|
240
|
+
*/
|
|
131
241
|
schedule?: JobUpdateResponse.Schedule | null;
|
|
132
242
|
|
|
243
|
+
/**
|
|
244
|
+
* When the job was last updated.
|
|
245
|
+
*/
|
|
133
246
|
updated_at?: string | null;
|
|
134
247
|
}
|
|
135
248
|
|
|
136
249
|
export namespace JobUpdateResponse {
|
|
250
|
+
/**
|
|
251
|
+
* Where a job writes its results.
|
|
252
|
+
*/
|
|
137
253
|
export interface Destination {
|
|
254
|
+
/**
|
|
255
|
+
* Destination path the output is written to.
|
|
256
|
+
*/
|
|
138
257
|
path: string;
|
|
139
258
|
|
|
259
|
+
/**
|
|
260
|
+
* Destination kind: a local 'file' or an 's3' bucket.
|
|
261
|
+
*/
|
|
140
262
|
type: 'file' | 's3';
|
|
141
263
|
|
|
264
|
+
/**
|
|
265
|
+
* Output file format.
|
|
266
|
+
*/
|
|
142
267
|
format?: 'jsonl' | 'csv' | 'parquet';
|
|
143
268
|
}
|
|
144
269
|
|
|
270
|
+
/**
|
|
271
|
+
* Configuration for the input data a job processes.
|
|
272
|
+
*/
|
|
145
273
|
export interface Inputs {
|
|
274
|
+
/**
|
|
275
|
+
* How inputs are supplied: an 's3' bucket, 'inline' records, or an uploaded
|
|
276
|
+
* 'file'.
|
|
277
|
+
*/
|
|
146
278
|
type: 's3' | 'inline' | 'file';
|
|
147
279
|
|
|
280
|
+
/**
|
|
281
|
+
* Inline list of input records. Used when type is 'inline'.
|
|
282
|
+
*/
|
|
148
283
|
data?: Array<{ [key: string]: unknown }> | null;
|
|
149
284
|
|
|
285
|
+
/**
|
|
286
|
+
* Path to the input file; must start with 's3' or 'file\_'. Used for 's3'/'file'
|
|
287
|
+
* types.
|
|
288
|
+
*/
|
|
150
289
|
file_path?: string | null;
|
|
151
290
|
}
|
|
152
291
|
|
|
292
|
+
/**
|
|
293
|
+
* Cron-based schedule controlling when a job runs automatically.
|
|
294
|
+
*/
|
|
153
295
|
export interface Schedule {
|
|
296
|
+
/**
|
|
297
|
+
* Cron expression defining when the job runs.
|
|
298
|
+
*/
|
|
154
299
|
cron: string;
|
|
155
300
|
|
|
301
|
+
/**
|
|
302
|
+
* Whether the schedule is currently active.
|
|
303
|
+
*/
|
|
156
304
|
enabled: boolean;
|
|
157
305
|
}
|
|
158
306
|
}
|
|
159
307
|
|
|
308
|
+
/**
|
|
309
|
+
* A page of jobs.
|
|
310
|
+
*/
|
|
160
311
|
export interface JobListResponse {
|
|
312
|
+
/**
|
|
313
|
+
* Jobs on this page.
|
|
314
|
+
*/
|
|
161
315
|
items: Array<JobListResponse.Item>;
|
|
162
316
|
|
|
317
|
+
/**
|
|
318
|
+
* Current page number.
|
|
319
|
+
*/
|
|
163
320
|
page: number;
|
|
164
321
|
|
|
322
|
+
/**
|
|
323
|
+
* Number of items per page.
|
|
324
|
+
*/
|
|
165
325
|
per_page: number;
|
|
166
326
|
|
|
327
|
+
/**
|
|
328
|
+
* Total number of jobs matching the query.
|
|
329
|
+
*/
|
|
167
330
|
total: number;
|
|
168
331
|
}
|
|
169
332
|
|
|
170
333
|
export namespace JobListResponse {
|
|
334
|
+
/**
|
|
335
|
+
* A configured job: an agent plus its schedule, inputs, and destination.
|
|
336
|
+
*/
|
|
171
337
|
export interface Item {
|
|
338
|
+
/**
|
|
339
|
+
* Unique job identifier (job\_<n>).
|
|
340
|
+
*/
|
|
172
341
|
id: string;
|
|
173
342
|
|
|
343
|
+
/**
|
|
344
|
+
* Job name.
|
|
345
|
+
*/
|
|
174
346
|
name: string;
|
|
175
347
|
|
|
348
|
+
/**
|
|
349
|
+
* Name of the agent this job runs.
|
|
350
|
+
*/
|
|
176
351
|
agent_name?: string | null;
|
|
177
352
|
|
|
353
|
+
/**
|
|
354
|
+
* When the job was created.
|
|
355
|
+
*/
|
|
178
356
|
created_at?: string | null;
|
|
179
357
|
|
|
358
|
+
/**
|
|
359
|
+
* Free-text description of the job.
|
|
360
|
+
*/
|
|
180
361
|
description?: string | null;
|
|
181
362
|
|
|
363
|
+
/**
|
|
364
|
+
* Where a job writes its results.
|
|
365
|
+
*/
|
|
182
366
|
destination?: Item.Destination | null;
|
|
183
367
|
|
|
368
|
+
/**
|
|
369
|
+
* Human-friendly job name shown in the UI.
|
|
370
|
+
*/
|
|
184
371
|
display_name?: string | null;
|
|
185
372
|
|
|
373
|
+
/**
|
|
374
|
+
* Configuration for the input data a job processes.
|
|
375
|
+
*/
|
|
186
376
|
inputs?: Item.Inputs | null;
|
|
187
377
|
|
|
378
|
+
/**
|
|
379
|
+
* Timestamp of the most recent run.
|
|
380
|
+
*/
|
|
188
381
|
last_run_at?: string | null;
|
|
189
382
|
|
|
383
|
+
/**
|
|
384
|
+
* Status of the most recent run.
|
|
385
|
+
*/
|
|
190
386
|
last_run_status?:
|
|
191
387
|
| 'PENDING'
|
|
192
388
|
| 'RUNNING'
|
|
@@ -197,178 +393,429 @@ export namespace JobListResponse {
|
|
|
197
393
|
| 'WARNING'
|
|
198
394
|
| null;
|
|
199
395
|
|
|
396
|
+
/**
|
|
397
|
+
* Cron-based schedule controlling when a job runs automatically.
|
|
398
|
+
*/
|
|
200
399
|
schedule?: Item.Schedule | null;
|
|
201
400
|
|
|
401
|
+
/**
|
|
402
|
+
* When the job was last updated.
|
|
403
|
+
*/
|
|
202
404
|
updated_at?: string | null;
|
|
203
405
|
}
|
|
204
406
|
|
|
205
407
|
export namespace Item {
|
|
408
|
+
/**
|
|
409
|
+
* Where a job writes its results.
|
|
410
|
+
*/
|
|
206
411
|
export interface Destination {
|
|
412
|
+
/**
|
|
413
|
+
* Destination path the output is written to.
|
|
414
|
+
*/
|
|
207
415
|
path: string;
|
|
208
416
|
|
|
417
|
+
/**
|
|
418
|
+
* Destination kind: a local 'file' or an 's3' bucket.
|
|
419
|
+
*/
|
|
209
420
|
type: 'file' | 's3';
|
|
210
421
|
|
|
422
|
+
/**
|
|
423
|
+
* Output file format.
|
|
424
|
+
*/
|
|
211
425
|
format?: 'jsonl' | 'csv' | 'parquet';
|
|
212
426
|
}
|
|
213
427
|
|
|
428
|
+
/**
|
|
429
|
+
* Configuration for the input data a job processes.
|
|
430
|
+
*/
|
|
214
431
|
export interface Inputs {
|
|
432
|
+
/**
|
|
433
|
+
* How inputs are supplied: an 's3' bucket, 'inline' records, or an uploaded
|
|
434
|
+
* 'file'.
|
|
435
|
+
*/
|
|
215
436
|
type: 's3' | 'inline' | 'file';
|
|
216
437
|
|
|
438
|
+
/**
|
|
439
|
+
* Inline list of input records. Used when type is 'inline'.
|
|
440
|
+
*/
|
|
217
441
|
data?: Array<{ [key: string]: unknown }> | null;
|
|
218
442
|
|
|
443
|
+
/**
|
|
444
|
+
* Path to the input file; must start with 's3' or 'file\_'. Used for 's3'/'file'
|
|
445
|
+
* types.
|
|
446
|
+
*/
|
|
219
447
|
file_path?: string | null;
|
|
220
448
|
}
|
|
221
449
|
|
|
450
|
+
/**
|
|
451
|
+
* Cron-based schedule controlling when a job runs automatically.
|
|
452
|
+
*/
|
|
222
453
|
export interface Schedule {
|
|
454
|
+
/**
|
|
455
|
+
* Cron expression defining when the job runs.
|
|
456
|
+
*/
|
|
223
457
|
cron: string;
|
|
224
458
|
|
|
459
|
+
/**
|
|
460
|
+
* Whether the schedule is currently active.
|
|
461
|
+
*/
|
|
225
462
|
enabled: boolean;
|
|
226
463
|
}
|
|
227
464
|
}
|
|
228
465
|
}
|
|
229
466
|
|
|
467
|
+
/**
|
|
468
|
+
* A configured job: an agent plus its schedule, inputs, and destination.
|
|
469
|
+
*/
|
|
230
470
|
export interface JobGetResponse {
|
|
471
|
+
/**
|
|
472
|
+
* Unique job identifier (job\_<n>).
|
|
473
|
+
*/
|
|
231
474
|
id: string;
|
|
232
475
|
|
|
476
|
+
/**
|
|
477
|
+
* Job name.
|
|
478
|
+
*/
|
|
233
479
|
name: string;
|
|
234
480
|
|
|
481
|
+
/**
|
|
482
|
+
* Name of the agent this job runs.
|
|
483
|
+
*/
|
|
235
484
|
agent_name?: string | null;
|
|
236
485
|
|
|
486
|
+
/**
|
|
487
|
+
* When the job was created.
|
|
488
|
+
*/
|
|
237
489
|
created_at?: string | null;
|
|
238
490
|
|
|
491
|
+
/**
|
|
492
|
+
* Free-text description of the job.
|
|
493
|
+
*/
|
|
239
494
|
description?: string | null;
|
|
240
495
|
|
|
496
|
+
/**
|
|
497
|
+
* Where a job writes its results.
|
|
498
|
+
*/
|
|
241
499
|
destination?: JobGetResponse.Destination | null;
|
|
242
500
|
|
|
501
|
+
/**
|
|
502
|
+
* Human-friendly job name shown in the UI.
|
|
503
|
+
*/
|
|
243
504
|
display_name?: string | null;
|
|
244
505
|
|
|
506
|
+
/**
|
|
507
|
+
* Configuration for the input data a job processes.
|
|
508
|
+
*/
|
|
245
509
|
inputs?: JobGetResponse.Inputs | null;
|
|
246
510
|
|
|
511
|
+
/**
|
|
512
|
+
* Timestamp of the most recent run.
|
|
513
|
+
*/
|
|
247
514
|
last_run_at?: string | null;
|
|
248
515
|
|
|
516
|
+
/**
|
|
517
|
+
* Status of the most recent run.
|
|
518
|
+
*/
|
|
249
519
|
last_run_status?: 'PENDING' | 'RUNNING' | 'SUCCESS' | 'FAILED' | 'CANCELLED' | 'TIMEOUT' | 'WARNING' | null;
|
|
250
520
|
|
|
521
|
+
/**
|
|
522
|
+
* Cron-based schedule controlling when a job runs automatically.
|
|
523
|
+
*/
|
|
251
524
|
schedule?: JobGetResponse.Schedule | null;
|
|
252
525
|
|
|
526
|
+
/**
|
|
527
|
+
* When the job was last updated.
|
|
528
|
+
*/
|
|
253
529
|
updated_at?: string | null;
|
|
254
530
|
}
|
|
255
531
|
|
|
256
532
|
export namespace JobGetResponse {
|
|
533
|
+
/**
|
|
534
|
+
* Where a job writes its results.
|
|
535
|
+
*/
|
|
257
536
|
export interface Destination {
|
|
537
|
+
/**
|
|
538
|
+
* Destination path the output is written to.
|
|
539
|
+
*/
|
|
258
540
|
path: string;
|
|
259
541
|
|
|
542
|
+
/**
|
|
543
|
+
* Destination kind: a local 'file' or an 's3' bucket.
|
|
544
|
+
*/
|
|
260
545
|
type: 'file' | 's3';
|
|
261
546
|
|
|
547
|
+
/**
|
|
548
|
+
* Output file format.
|
|
549
|
+
*/
|
|
262
550
|
format?: 'jsonl' | 'csv' | 'parquet';
|
|
263
551
|
}
|
|
264
552
|
|
|
553
|
+
/**
|
|
554
|
+
* Configuration for the input data a job processes.
|
|
555
|
+
*/
|
|
265
556
|
export interface Inputs {
|
|
557
|
+
/**
|
|
558
|
+
* How inputs are supplied: an 's3' bucket, 'inline' records, or an uploaded
|
|
559
|
+
* 'file'.
|
|
560
|
+
*/
|
|
266
561
|
type: 's3' | 'inline' | 'file';
|
|
267
562
|
|
|
563
|
+
/**
|
|
564
|
+
* Inline list of input records. Used when type is 'inline'.
|
|
565
|
+
*/
|
|
268
566
|
data?: Array<{ [key: string]: unknown }> | null;
|
|
269
567
|
|
|
568
|
+
/**
|
|
569
|
+
* Path to the input file; must start with 's3' or 'file\_'. Used for 's3'/'file'
|
|
570
|
+
* types.
|
|
571
|
+
*/
|
|
270
572
|
file_path?: string | null;
|
|
271
573
|
}
|
|
272
574
|
|
|
575
|
+
/**
|
|
576
|
+
* Cron-based schedule controlling when a job runs automatically.
|
|
577
|
+
*/
|
|
273
578
|
export interface Schedule {
|
|
579
|
+
/**
|
|
580
|
+
* Cron expression defining when the job runs.
|
|
581
|
+
*/
|
|
274
582
|
cron: string;
|
|
275
583
|
|
|
584
|
+
/**
|
|
585
|
+
* Whether the schedule is currently active.
|
|
586
|
+
*/
|
|
276
587
|
enabled: boolean;
|
|
277
588
|
}
|
|
278
589
|
}
|
|
279
590
|
|
|
591
|
+
/**
|
|
592
|
+
* A single execution of a job.
|
|
593
|
+
*/
|
|
280
594
|
export interface JobRunResponse {
|
|
595
|
+
/**
|
|
596
|
+
* Unique run identifier (run\_<n>).
|
|
597
|
+
*/
|
|
281
598
|
id: string;
|
|
282
599
|
|
|
600
|
+
/**
|
|
601
|
+
* When the run was created.
|
|
602
|
+
*/
|
|
283
603
|
created_at: string;
|
|
284
604
|
|
|
605
|
+
/**
|
|
606
|
+
* Identifier of the job this run belongs to.
|
|
607
|
+
*/
|
|
285
608
|
job_id: string;
|
|
286
609
|
|
|
610
|
+
/**
|
|
611
|
+
* Current run status.
|
|
612
|
+
*/
|
|
287
613
|
status: 'PENDING' | 'RUNNING' | 'SUCCESS' | 'FAILED' | 'CANCELLED' | 'TIMEOUT' | 'WARNING';
|
|
288
614
|
|
|
615
|
+
/**
|
|
616
|
+
* What triggered the run: 'schedule' or 'manual'.
|
|
617
|
+
*/
|
|
289
618
|
triggered_by: 'schedule' | 'manual';
|
|
290
619
|
|
|
620
|
+
/**
|
|
621
|
+
* When the run finished.
|
|
622
|
+
*/
|
|
291
623
|
finished_at?: string | null;
|
|
292
624
|
|
|
625
|
+
/**
|
|
626
|
+
* Number of input records processed.
|
|
627
|
+
*/
|
|
293
628
|
input_count?: number | null;
|
|
294
629
|
|
|
630
|
+
/**
|
|
631
|
+
* Number of result records produced.
|
|
632
|
+
*/
|
|
295
633
|
result_count?: number | null;
|
|
296
634
|
|
|
635
|
+
/**
|
|
636
|
+
* When the run started executing.
|
|
637
|
+
*/
|
|
297
638
|
started_at?: string | null;
|
|
298
639
|
}
|
|
299
640
|
|
|
300
641
|
export interface JobCreateParams {
|
|
642
|
+
/**
|
|
643
|
+
* Name of the agent to run.
|
|
644
|
+
*/
|
|
301
645
|
agent_name: string;
|
|
302
646
|
|
|
647
|
+
/**
|
|
648
|
+
* Job name.
|
|
649
|
+
*/
|
|
303
650
|
name: string;
|
|
304
651
|
|
|
652
|
+
/**
|
|
653
|
+
* Free-text description of the job.
|
|
654
|
+
*/
|
|
305
655
|
description?: string | null;
|
|
306
656
|
|
|
657
|
+
/**
|
|
658
|
+
* Where a job writes its results.
|
|
659
|
+
*/
|
|
307
660
|
destination?: JobCreateParams.Destination | null;
|
|
308
661
|
|
|
662
|
+
/**
|
|
663
|
+
* Human-friendly job name shown in the UI.
|
|
664
|
+
*/
|
|
309
665
|
display_name?: string | null;
|
|
310
666
|
|
|
667
|
+
/**
|
|
668
|
+
* Configuration for the input data a job processes.
|
|
669
|
+
*/
|
|
311
670
|
inputs?: JobCreateParams.Inputs | null;
|
|
312
671
|
|
|
672
|
+
/**
|
|
673
|
+
* Cron-based schedule controlling when a job runs automatically.
|
|
674
|
+
*/
|
|
313
675
|
schedule?: JobCreateParams.Schedule | null;
|
|
314
676
|
}
|
|
315
677
|
|
|
316
678
|
export namespace JobCreateParams {
|
|
679
|
+
/**
|
|
680
|
+
* Where a job writes its results.
|
|
681
|
+
*/
|
|
317
682
|
export interface Destination {
|
|
683
|
+
/**
|
|
684
|
+
* Destination path the output is written to.
|
|
685
|
+
*/
|
|
318
686
|
path: string;
|
|
319
687
|
|
|
688
|
+
/**
|
|
689
|
+
* Destination kind: a local 'file' or an 's3' bucket.
|
|
690
|
+
*/
|
|
320
691
|
type: 'file' | 's3';
|
|
321
692
|
|
|
693
|
+
/**
|
|
694
|
+
* Output file format.
|
|
695
|
+
*/
|
|
322
696
|
format?: 'jsonl' | 'csv' | 'parquet';
|
|
323
697
|
}
|
|
324
698
|
|
|
699
|
+
/**
|
|
700
|
+
* Configuration for the input data a job processes.
|
|
701
|
+
*/
|
|
325
702
|
export interface Inputs {
|
|
703
|
+
/**
|
|
704
|
+
* How inputs are supplied: an 's3' bucket, 'inline' records, or an uploaded
|
|
705
|
+
* 'file'.
|
|
706
|
+
*/
|
|
326
707
|
type: 's3' | 'inline' | 'file';
|
|
327
708
|
|
|
709
|
+
/**
|
|
710
|
+
* Inline list of input records. Used when type is 'inline'.
|
|
711
|
+
*/
|
|
328
712
|
data?: Array<{ [key: string]: unknown }> | null;
|
|
329
713
|
|
|
714
|
+
/**
|
|
715
|
+
* Path to the input file; must start with 's3' or 'file\_'. Used for 's3'/'file'
|
|
716
|
+
* types.
|
|
717
|
+
*/
|
|
330
718
|
file_path?: string | null;
|
|
331
719
|
}
|
|
332
720
|
|
|
721
|
+
/**
|
|
722
|
+
* Cron-based schedule controlling when a job runs automatically.
|
|
723
|
+
*/
|
|
333
724
|
export interface Schedule {
|
|
725
|
+
/**
|
|
726
|
+
* Cron expression defining when the job runs.
|
|
727
|
+
*/
|
|
334
728
|
cron: string;
|
|
335
729
|
|
|
730
|
+
/**
|
|
731
|
+
* Whether the schedule is currently active.
|
|
732
|
+
*/
|
|
336
733
|
enabled: boolean;
|
|
337
734
|
}
|
|
338
735
|
}
|
|
339
736
|
|
|
340
737
|
export interface JobUpdateParams {
|
|
738
|
+
/**
|
|
739
|
+
* New description.
|
|
740
|
+
*/
|
|
341
741
|
description?: string | null;
|
|
342
742
|
|
|
743
|
+
/**
|
|
744
|
+
* Where a job writes its results.
|
|
745
|
+
*/
|
|
343
746
|
destination?: JobUpdateParams.Destination | null;
|
|
344
747
|
|
|
748
|
+
/**
|
|
749
|
+
* New display name.
|
|
750
|
+
*/
|
|
345
751
|
display_name?: string | null;
|
|
346
752
|
|
|
753
|
+
/**
|
|
754
|
+
* Configuration for the input data a job processes.
|
|
755
|
+
*/
|
|
347
756
|
inputs?: JobUpdateParams.Inputs | null;
|
|
348
757
|
|
|
758
|
+
/**
|
|
759
|
+
* Cron-based schedule controlling when a job runs automatically.
|
|
760
|
+
*/
|
|
349
761
|
schedule?: JobUpdateParams.Schedule | null;
|
|
350
762
|
}
|
|
351
763
|
|
|
352
764
|
export namespace JobUpdateParams {
|
|
765
|
+
/**
|
|
766
|
+
* Where a job writes its results.
|
|
767
|
+
*/
|
|
353
768
|
export interface Destination {
|
|
769
|
+
/**
|
|
770
|
+
* Destination path the output is written to.
|
|
771
|
+
*/
|
|
354
772
|
path: string;
|
|
355
773
|
|
|
774
|
+
/**
|
|
775
|
+
* Destination kind: a local 'file' or an 's3' bucket.
|
|
776
|
+
*/
|
|
356
777
|
type: 'file' | 's3';
|
|
357
778
|
|
|
779
|
+
/**
|
|
780
|
+
* Output file format.
|
|
781
|
+
*/
|
|
358
782
|
format?: 'jsonl' | 'csv' | 'parquet';
|
|
359
783
|
}
|
|
360
784
|
|
|
785
|
+
/**
|
|
786
|
+
* Configuration for the input data a job processes.
|
|
787
|
+
*/
|
|
361
788
|
export interface Inputs {
|
|
789
|
+
/**
|
|
790
|
+
* How inputs are supplied: an 's3' bucket, 'inline' records, or an uploaded
|
|
791
|
+
* 'file'.
|
|
792
|
+
*/
|
|
362
793
|
type: 's3' | 'inline' | 'file';
|
|
363
794
|
|
|
795
|
+
/**
|
|
796
|
+
* Inline list of input records. Used when type is 'inline'.
|
|
797
|
+
*/
|
|
364
798
|
data?: Array<{ [key: string]: unknown }> | null;
|
|
365
799
|
|
|
800
|
+
/**
|
|
801
|
+
* Path to the input file; must start with 's3' or 'file\_'. Used for 's3'/'file'
|
|
802
|
+
* types.
|
|
803
|
+
*/
|
|
366
804
|
file_path?: string | null;
|
|
367
805
|
}
|
|
368
806
|
|
|
807
|
+
/**
|
|
808
|
+
* Cron-based schedule controlling when a job runs automatically.
|
|
809
|
+
*/
|
|
369
810
|
export interface Schedule {
|
|
811
|
+
/**
|
|
812
|
+
* Cron expression defining when the job runs.
|
|
813
|
+
*/
|
|
370
814
|
cron: string;
|
|
371
815
|
|
|
816
|
+
/**
|
|
817
|
+
* Whether the schedule is currently active.
|
|
818
|
+
*/
|
|
372
819
|
enabled: boolean;
|
|
373
820
|
}
|
|
374
821
|
}
|