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