@camstack/types 1.2.339 → 1.2.341

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.
@@ -6,62 +6,31 @@ import { type InferProvider } from './capability-definition.js';
6
6
  *
7
7
  * It owns what every provider must agree on, written once:
8
8
  *
9
- * - **Dataset versions.** Taken over from pipeline-analytics (D796): the rows
10
- * live here (D808); pipeline-analytics still CUTS a version (it owns the corpus and
11
- * the export plan) and reaches this store through the five row methods
12
- * below, so the Retrain page and the export did not change.
13
9
  * - **Jobs.** A persisted state machine, a reconcile loop against the
14
10
  * provider, a cost guard, a daily orphan sweep and the retention rules.
15
11
  * - **The return flow.** Verified artefacts → Model Studio
16
12
  * (`custom-model-registry.importModelBundle`) → canary on cameras →
17
13
  * rollback. Nothing is ever registered automatically.
18
14
  *
15
+ * Plan/start takes a live {@link TrainingCorpusSelection} (collections +
16
+ * work-state rule); frame ids are resolved via pipeline-analytics at that
17
+ * moment and snapshotted on the job. No frozen dataset version.
18
+ *
19
19
  * Every method is `admin`.
20
20
  */
21
- /** A version WITH its frame list — what the export and a job read. */
22
- export declare const TrainingDatasetVersionRowSchema: z.ZodObject<{
23
- id: z.ZodString;
24
- name: z.ZodString;
25
- createdAt: z.ZodNumber;
26
- selection: z.ZodObject<{
27
- deviceIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>;
28
- collectionIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
29
- frameIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
30
- }, z.core.$strip>;
31
- layout: z.ZodEnum<{
32
- crops: "crops";
33
- frames: "frames";
34
- }>;
35
- completeOnly: z.ZodBoolean;
36
- annotationHash: z.ZodString;
37
- manifestSchema: z.ZodString;
38
- stats: z.ZodObject<{
39
- frames: z.ZodNumber;
40
- completeFrames: z.ZodNumber;
41
- completeness: z.ZodNumber;
42
- subjects: z.ZodNumber;
43
- modelErrors: z.ZodNumber;
44
- hardNegatives: z.ZodNumber;
45
- cells: z.ZodReadonly<z.ZodArray<z.ZodObject<{
46
- macroClass: z.ZodString;
47
- deviceId: z.ZodNumber;
48
- lighting: z.ZodEnum<{
49
- day: "day";
50
- night: "night";
51
- unknown: "unknown";
52
- }>;
53
- subjects: z.ZodNumber;
54
- frames: z.ZodNumber;
55
- }, z.core.$strip>>>;
56
- cameras: z.ZodReadonly<z.ZodArray<z.ZodObject<{
57
- deviceId: z.ZodNumber;
58
- frames: z.ZodNumber;
59
- completeFrames: z.ZodNumber;
60
- }, z.core.$strip>>>;
61
- }, z.core.$strip>;
62
- frameIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
21
+ /**
22
+ * Live corpus criteria for plan/start (design §5.2). Default is complete-only.
23
+ * Frame ids are resolved at plan/start — never a frozen version id.
24
+ */
25
+ export declare const TrainingCorpusSelectionSchema: z.ZodObject<{
26
+ collectionIds: z.ZodArray<z.ZodString>;
27
+ workState: z.ZodDefault<z.ZodEnum<{
28
+ annotated_or_complete: "annotated_or_complete";
29
+ any_annotated: "any_annotated";
30
+ complete: "complete";
31
+ }>>;
63
32
  }, z.core.$strip>;
64
- export type TrainingDatasetVersionRow = z.infer<typeof TrainingDatasetVersionRowSchema>;
33
+ export type TrainingCorpusSelection = z.infer<typeof TrainingCorpusSelectionSchema>;
65
34
  /** A base model a detector job can fine-tune, and the baseline it is judged against. */
66
35
  export declare const TrainingBaseModelSchema: z.ZodObject<{
67
36
  modelId: z.ZodString;
@@ -80,8 +49,15 @@ export declare const TrainingPresetSchema: z.ZodEnum<{
80
49
  }>;
81
50
  export type TrainingPreset = z.infer<typeof TrainingPresetSchema>;
82
51
  export declare const TrainingJobRequestSchema: z.ZodObject<{
83
- datasetVersionId: z.ZodString;
84
- addonId: z.ZodString;
52
+ selection: z.ZodObject<{
53
+ collectionIds: z.ZodArray<z.ZodString>;
54
+ workState: z.ZodDefault<z.ZodEnum<{
55
+ annotated_or_complete: "annotated_or_complete";
56
+ any_annotated: "any_annotated";
57
+ complete: "complete";
58
+ }>>;
59
+ }, z.core.$strip>;
60
+ entryId: z.ZodString;
85
61
  gpuType: z.ZodString;
86
62
  region: z.ZodString;
87
63
  baseModelId: z.ZodString;
@@ -164,6 +140,7 @@ export declare const TrainingJobStateSchema: z.ZodEnum<{
164
140
  expired: "expired";
165
141
  failed: "failed";
166
142
  lost: "lost";
143
+ queued: "queued";
167
144
  ready: "ready";
168
145
  registered: "registered";
169
146
  running: "running";
@@ -220,6 +197,7 @@ export declare const TrainingJobSchema: z.ZodObject<{
220
197
  expired: "expired";
221
198
  failed: "failed";
222
199
  lost: "lost";
200
+ queued: "queued";
223
201
  ready: "ready";
224
202
  registered: "registered";
225
203
  running: "running";
@@ -227,6 +205,7 @@ export declare const TrainingJobSchema: z.ZodObject<{
227
205
  submitted: "submitted";
228
206
  uploading: "uploading";
229
207
  }>;
208
+ batchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
230
209
  stage: z.ZodNullable<z.ZodEnum<{
231
210
  eval: "eval";
232
211
  export: "export";
@@ -252,8 +231,15 @@ export declare const TrainingJobSchema: z.ZodObject<{
252
231
  detail: z.ZodString;
253
232
  }, z.core.$strip>>;
254
233
  request: z.ZodObject<{
255
- datasetVersionId: z.ZodString;
256
- addonId: z.ZodString;
234
+ selection: z.ZodObject<{
235
+ collectionIds: z.ZodArray<z.ZodString>;
236
+ workState: z.ZodDefault<z.ZodEnum<{
237
+ annotated_or_complete: "annotated_or_complete";
238
+ any_annotated: "any_annotated";
239
+ complete: "complete";
240
+ }>>;
241
+ }, z.core.$strip>;
242
+ entryId: z.ZodString;
257
243
  gpuType: z.ZodString;
258
244
  region: z.ZodString;
259
245
  baseModelId: z.ZodString;
@@ -275,6 +261,9 @@ export declare const TrainingJobSchema: z.ZodObject<{
275
261
  crops: "crops";
276
262
  frames: "frames";
277
263
  }>;
264
+ frameCount: z.ZodNumber;
265
+ frameIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
266
+ annotationHash: z.ZodString;
278
267
  dataset: z.ZodNullable<z.ZodObject<{
279
268
  bytes: z.ZodNumber;
280
269
  sha256: z.ZodString;
@@ -348,148 +337,6 @@ export declare const trainingCapability: {
348
337
  readonly kind: 'hub-only';
349
338
  };
350
339
  readonly methods: {
351
- /** Store a version once. `stored: false` = that id already exists (immutable). */
352
- readonly putDatasetVersion: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
353
- id: z.ZodString;
354
- name: z.ZodString;
355
- createdAt: z.ZodNumber;
356
- selection: z.ZodObject<{
357
- deviceIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>;
358
- collectionIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
359
- frameIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
360
- }, z.core.$strip>;
361
- layout: z.ZodEnum<{
362
- crops: "crops";
363
- frames: "frames";
364
- }>;
365
- completeOnly: z.ZodBoolean;
366
- annotationHash: z.ZodString;
367
- manifestSchema: z.ZodString;
368
- stats: z.ZodObject<{
369
- frames: z.ZodNumber;
370
- completeFrames: z.ZodNumber;
371
- completeness: z.ZodNumber;
372
- subjects: z.ZodNumber;
373
- modelErrors: z.ZodNumber;
374
- hardNegatives: z.ZodNumber;
375
- cells: z.ZodReadonly<z.ZodArray<z.ZodObject<{
376
- macroClass: z.ZodString;
377
- deviceId: z.ZodNumber;
378
- lighting: z.ZodEnum<{
379
- day: "day";
380
- night: "night";
381
- unknown: "unknown";
382
- }>;
383
- subjects: z.ZodNumber;
384
- frames: z.ZodNumber;
385
- }, z.core.$strip>>>;
386
- cameras: z.ZodReadonly<z.ZodArray<z.ZodObject<{
387
- deviceId: z.ZodNumber;
388
- frames: z.ZodNumber;
389
- completeFrames: z.ZodNumber;
390
- }, z.core.$strip>>>;
391
- }, z.core.$strip>;
392
- frameIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
393
- }, z.core.$strip>, z.ZodObject<{
394
- stored: z.ZodBoolean;
395
- }, z.core.$strip>, "mutation">;
396
- readonly getDatasetVersion: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
397
- id: z.ZodString;
398
- }, z.core.$strip>, z.ZodNullable<z.ZodObject<{
399
- id: z.ZodString;
400
- name: z.ZodString;
401
- createdAt: z.ZodNumber;
402
- selection: z.ZodObject<{
403
- deviceIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>;
404
- collectionIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
405
- frameIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
406
- }, z.core.$strip>;
407
- layout: z.ZodEnum<{
408
- crops: "crops";
409
- frames: "frames";
410
- }>;
411
- completeOnly: z.ZodBoolean;
412
- annotationHash: z.ZodString;
413
- manifestSchema: z.ZodString;
414
- stats: z.ZodObject<{
415
- frames: z.ZodNumber;
416
- completeFrames: z.ZodNumber;
417
- completeness: z.ZodNumber;
418
- subjects: z.ZodNumber;
419
- modelErrors: z.ZodNumber;
420
- hardNegatives: z.ZodNumber;
421
- cells: z.ZodReadonly<z.ZodArray<z.ZodObject<{
422
- macroClass: z.ZodString;
423
- deviceId: z.ZodNumber;
424
- lighting: z.ZodEnum<{
425
- day: "day";
426
- night: "night";
427
- unknown: "unknown";
428
- }>;
429
- subjects: z.ZodNumber;
430
- frames: z.ZodNumber;
431
- }, z.core.$strip>>>;
432
- cameras: z.ZodReadonly<z.ZodArray<z.ZodObject<{
433
- deviceId: z.ZodNumber;
434
- frames: z.ZodNumber;
435
- completeFrames: z.ZodNumber;
436
- }, z.core.$strip>>>;
437
- }, z.core.$strip>;
438
- frameIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
439
- }, z.core.$strip>>, import("./capability-definition.js").CapabilityMethodKind>;
440
- /** Every version without its frame list, newest first. */
441
- readonly listDatasetVersions: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
442
- id: z.ZodString;
443
- name: z.ZodString;
444
- createdAt: z.ZodNumber;
445
- selection: z.ZodObject<{
446
- deviceIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>;
447
- collectionIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
448
- frameIds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
449
- }, z.core.$strip>;
450
- layout: z.ZodEnum<{
451
- crops: "crops";
452
- frames: "frames";
453
- }>;
454
- completeOnly: z.ZodBoolean;
455
- frameCount: z.ZodNumber;
456
- annotationHash: z.ZodString;
457
- manifestSchema: z.ZodString;
458
- stats: z.ZodObject<{
459
- frames: z.ZodNumber;
460
- completeFrames: z.ZodNumber;
461
- completeness: z.ZodNumber;
462
- subjects: z.ZodNumber;
463
- modelErrors: z.ZodNumber;
464
- hardNegatives: z.ZodNumber;
465
- cells: z.ZodReadonly<z.ZodArray<z.ZodObject<{
466
- macroClass: z.ZodString;
467
- deviceId: z.ZodNumber;
468
- lighting: z.ZodEnum<{
469
- day: "day";
470
- night: "night";
471
- unknown: "unknown";
472
- }>;
473
- subjects: z.ZodNumber;
474
- frames: z.ZodNumber;
475
- }, z.core.$strip>>>;
476
- cameras: z.ZodReadonly<z.ZodArray<z.ZodObject<{
477
- deviceId: z.ZodNumber;
478
- frames: z.ZodNumber;
479
- completeFrames: z.ZodNumber;
480
- }, z.core.$strip>>>;
481
- }, z.core.$strip>;
482
- }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
483
- readonly findDatasetVersionIdByName: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
484
- name: z.ZodString;
485
- }, z.core.$strip>, z.ZodObject<{
486
- id: z.ZodNullable<z.ZodString>;
487
- }, z.core.$strip>, import("./capability-definition.js").CapabilityMethodKind>;
488
- readonly removeDatasetVersion: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
489
- id: z.ZodString;
490
- }, z.core.$strip>, z.ZodObject<{
491
- removed: z.ZodBoolean;
492
- }, z.core.$strip>, "mutation">;
493
340
  readonly listBaseModels: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
494
341
  modelId: z.ZodString;
495
342
  label: z.ZodString;
@@ -501,8 +348,15 @@ export declare const trainingCapability: {
501
348
  }, z.core.$strip>>>, import("./capability-definition.js").CapabilityMethodKind>;
502
349
  /** Split, estimate, defaults and any named refusal — nothing is started. */
503
350
  readonly planJob: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
504
- datasetVersionId: z.ZodString;
505
- addonId: z.ZodString;
351
+ selection: z.ZodObject<{
352
+ collectionIds: z.ZodArray<z.ZodString>;
353
+ workState: z.ZodDefault<z.ZodEnum<{
354
+ annotated_or_complete: "annotated_or_complete";
355
+ any_annotated: "any_annotated";
356
+ complete: "complete";
357
+ }>>;
358
+ }, z.core.$strip>;
359
+ entryId: z.ZodString;
506
360
  gpuType: z.ZodString;
507
361
  region: z.ZodString;
508
362
  baseModelId: z.ZodString;
@@ -555,8 +409,15 @@ export declare const trainingCapability: {
555
409
  * the background and the job record says how far they got.
556
410
  */
557
411
  readonly startJob: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
558
- datasetVersionId: z.ZodString;
559
- addonId: z.ZodString;
412
+ selection: z.ZodObject<{
413
+ collectionIds: z.ZodArray<z.ZodString>;
414
+ workState: z.ZodDefault<z.ZodEnum<{
415
+ annotated_or_complete: "annotated_or_complete";
416
+ any_annotated: "any_annotated";
417
+ complete: "complete";
418
+ }>>;
419
+ }, z.core.$strip>;
420
+ entryId: z.ZodString;
560
421
  gpuType: z.ZodString;
561
422
  region: z.ZodString;
562
423
  baseModelId: z.ZodString;
@@ -588,6 +449,7 @@ export declare const trainingCapability: {
588
449
  expired: "expired";
589
450
  failed: "failed";
590
451
  lost: "lost";
452
+ queued: "queued";
591
453
  ready: "ready";
592
454
  registered: "registered";
593
455
  running: "running";
@@ -595,6 +457,7 @@ export declare const trainingCapability: {
595
457
  submitted: "submitted";
596
458
  uploading: "uploading";
597
459
  }>;
460
+ batchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
598
461
  stage: z.ZodNullable<z.ZodEnum<{
599
462
  eval: "eval";
600
463
  export: "export";
@@ -620,8 +483,15 @@ export declare const trainingCapability: {
620
483
  detail: z.ZodString;
621
484
  }, z.core.$strip>>;
622
485
  request: z.ZodObject<{
623
- datasetVersionId: z.ZodString;
624
- addonId: z.ZodString;
486
+ selection: z.ZodObject<{
487
+ collectionIds: z.ZodArray<z.ZodString>;
488
+ workState: z.ZodDefault<z.ZodEnum<{
489
+ annotated_or_complete: "annotated_or_complete";
490
+ any_annotated: "any_annotated";
491
+ complete: "complete";
492
+ }>>;
493
+ }, z.core.$strip>;
494
+ entryId: z.ZodString;
625
495
  gpuType: z.ZodString;
626
496
  region: z.ZodString;
627
497
  baseModelId: z.ZodString;
@@ -643,6 +513,9 @@ export declare const trainingCapability: {
643
513
  crops: "crops";
644
514
  frames: "frames";
645
515
  }>;
516
+ frameCount: z.ZodNumber;
517
+ frameIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
518
+ annotationHash: z.ZodString;
646
519
  dataset: z.ZodNullable<z.ZodObject<{
647
520
  bytes: z.ZodNumber;
648
521
  sha256: z.ZodString;
@@ -721,6 +594,200 @@ export declare const trainingCapability: {
721
594
  }>;
722
595
  detail: z.ZodString;
723
596
  }, z.core.$strip>], "kind">, "mutation">;
597
+ /**
598
+ * Enqueue one job per base model (same selection, entry, caps). The first
599
+ * becomes `uploading`; the rest stay `queued` until the prior job settles.
600
+ * One ACTIVE job at a time — a parallel `startJob` still gets
601
+ * `job-already-running`. The same `idempotencyKey` returns the batch it
602
+ * already started.
603
+ */
604
+ readonly startJobBatch: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
605
+ selection: z.ZodObject<{
606
+ collectionIds: z.ZodArray<z.ZodString>;
607
+ workState: z.ZodDefault<z.ZodEnum<{
608
+ annotated_or_complete: "annotated_or_complete";
609
+ any_annotated: "any_annotated";
610
+ complete: "complete";
611
+ }>>;
612
+ }, z.core.$strip>;
613
+ entryId: z.ZodString;
614
+ gpuType: z.ZodString;
615
+ region: z.ZodString;
616
+ preset: z.ZodEnum<{
617
+ quick: "quick";
618
+ standard: "standard";
619
+ thorough: "thorough";
620
+ }>;
621
+ freeze: z.ZodNullable<z.ZodNumber>;
622
+ holdoutCameras: z.ZodNullable<z.ZodArray<z.ZodNumber>>;
623
+ baseModelIds: z.ZodArray<z.ZodString>;
624
+ name: z.ZodString;
625
+ maxCostUsd: z.ZodNumber;
626
+ maxRuntimeSec: z.ZodNumber;
627
+ idempotencyKey: z.ZodString;
628
+ }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
629
+ kind: z.ZodLiteral<"started">;
630
+ batchId: z.ZodString;
631
+ jobs: z.ZodReadonly<z.ZodArray<z.ZodObject<{
632
+ id: z.ZodString;
633
+ idempotencyKey: z.ZodString;
634
+ name: z.ZodString;
635
+ createdAt: z.ZodNumber;
636
+ updatedAt: z.ZodNumber;
637
+ state: z.ZodEnum<{
638
+ canary: "canary";
639
+ cancelled: "cancelled";
640
+ cancelling: "cancelling";
641
+ collecting: "collecting";
642
+ discarded: "discarded";
643
+ expired: "expired";
644
+ failed: "failed";
645
+ lost: "lost";
646
+ queued: "queued";
647
+ ready: "ready";
648
+ registered: "registered";
649
+ running: "running";
650
+ starting: "starting";
651
+ submitted: "submitted";
652
+ uploading: "uploading";
653
+ }>;
654
+ batchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
655
+ stage: z.ZodNullable<z.ZodEnum<{
656
+ eval: "eval";
657
+ export: "export";
658
+ package: "package";
659
+ prepare: "prepare";
660
+ replay: "replay";
661
+ train: "train";
662
+ }>>;
663
+ failure: z.ZodNullable<z.ZodObject<{
664
+ reason: z.ZodEnum<{
665
+ "checksum-mismatch": "checksum-mismatch";
666
+ "cost-cap": "cost-cap";
667
+ "fetch-failed": "fetch-failed";
668
+ "hub-restart-during-upload": "hub-restart-during-upload";
669
+ "provider-error": "provider-error";
670
+ "result-invalid": "result-invalid";
671
+ "runtime-cap": "runtime-cap";
672
+ "submit-failed": "submit-failed";
673
+ "trainer-failed": "trainer-failed";
674
+ "upload-failed": "upload-failed";
675
+ }>;
676
+ stage: z.ZodNullable<z.ZodString>;
677
+ detail: z.ZodString;
678
+ }, z.core.$strip>>;
679
+ request: z.ZodObject<{
680
+ selection: z.ZodObject<{
681
+ collectionIds: z.ZodArray<z.ZodString>;
682
+ workState: z.ZodDefault<z.ZodEnum<{
683
+ annotated_or_complete: "annotated_or_complete";
684
+ any_annotated: "any_annotated";
685
+ complete: "complete";
686
+ }>>;
687
+ }, z.core.$strip>;
688
+ entryId: z.ZodString;
689
+ gpuType: z.ZodString;
690
+ region: z.ZodString;
691
+ baseModelId: z.ZodString;
692
+ preset: z.ZodEnum<{
693
+ quick: "quick";
694
+ standard: "standard";
695
+ thorough: "thorough";
696
+ }>;
697
+ freeze: z.ZodNullable<z.ZodNumber>;
698
+ holdoutCameras: z.ZodNullable<z.ZodArray<z.ZodNumber>>;
699
+ }, z.core.$strip>;
700
+ maxCostUsd: z.ZodNumber;
701
+ maxRuntimeSec: z.ZodNumber;
702
+ trainer: z.ZodObject<{
703
+ repo: z.ZodString;
704
+ revision: z.ZodString;
705
+ }, z.core.$strip>;
706
+ datasetLayout: z.ZodEnum<{
707
+ crops: "crops";
708
+ frames: "frames";
709
+ }>;
710
+ frameCount: z.ZodNumber;
711
+ frameIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
712
+ annotationHash: z.ZodString;
713
+ dataset: z.ZodNullable<z.ZodObject<{
714
+ bytes: z.ZodNumber;
715
+ sha256: z.ZodString;
716
+ uploadedAt: z.ZodNumber;
717
+ }, z.core.$strip>>;
718
+ split: z.ZodObject<{
719
+ holdoutCameras: z.ZodReadonly<z.ZodArray<z.ZodNumber>>;
720
+ holdoutLastDays: z.ZodNumber;
721
+ holdoutSupport: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNumber>>;
722
+ trainSubjects: z.ZodNumber;
723
+ }, z.core.$strip>;
724
+ provider: z.ZodObject<{
725
+ state: z.ZodNullable<z.ZodEnum<{
726
+ cancelled: "cancelled";
727
+ failed: "failed";
728
+ lost: "lost";
729
+ pending: "pending";
730
+ running: "running";
731
+ starting: "starting";
732
+ succeeded: "succeeded";
733
+ }>>;
734
+ providerJobId: z.ZodNullable<z.ZodString>;
735
+ startedAt: z.ZodNullable<z.ZodNumber>;
736
+ endedAt: z.ZodNullable<z.ZodNumber>;
737
+ billedSeconds: z.ZodNumber;
738
+ costUsd: z.ZodNumber;
739
+ costIsEstimate: z.ZodBoolean;
740
+ lastPolledAt: z.ZodNullable<z.ZodNumber>;
741
+ }, z.core.$strip>;
742
+ progress: z.ZodObject<{
743
+ epoch: z.ZodNullable<z.ZodNumber>;
744
+ epochs: z.ZodNullable<z.ZodNumber>;
745
+ etaSec: z.ZodNullable<z.ZodNumber>;
746
+ series: z.ZodReadonly<z.ZodArray<z.ZodObject<{
747
+ epoch: z.ZodNumber;
748
+ map50: z.ZodNullable<z.ZodNumber>;
749
+ map50_95: z.ZodNullable<z.ZodNumber>;
750
+ }, z.core.$strip>>>;
751
+ }, z.core.$strip>;
752
+ logTail: z.ZodReadonly<z.ZodArray<z.ZodString>>;
753
+ logCursor: z.ZodNullable<z.ZodString>;
754
+ artifacts: z.ZodNullable<z.ZodObject<{
755
+ bundleBytes: z.ZodNumber;
756
+ bundleSha256: z.ZodString;
757
+ fetchedAt: z.ZodNumber;
758
+ expiresAt: z.ZodNumber;
759
+ }, z.core.$strip>>;
760
+ cloudDatasetDeletedAt: z.ZodNullable<z.ZodNumber>;
761
+ cloudCleanupDueAt: z.ZodNullable<z.ZodNumber>;
762
+ registeredModelIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
763
+ canary: z.ZodNullable<z.ZodObject<{
764
+ deviceIds: z.ZodReadonly<z.ZodArray<z.ZodNumber>>;
765
+ since: z.ZodNumber;
766
+ previous: z.ZodReadonly<z.ZodArray<z.ZodObject<{
767
+ deviceId: z.ZodNumber;
768
+ nodeId: z.ZodString;
769
+ deviceKey: z.ZodString;
770
+ patch: z.ZodNullable<z.ZodObject<{
771
+ modelId: z.ZodOptional<z.ZodString>;
772
+ settings: z.ZodOptional<z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
773
+ }, z.core.$strip>>;
774
+ }, z.core.$strip>>>;
775
+ }, z.core.$strip>>;
776
+ }, z.core.$strip>>>;
777
+ }, z.core.$strip>, z.ZodObject<{
778
+ kind: z.ZodLiteral<"refused">;
779
+ reason: z.ZodEnum<{
780
+ "dataset-too-large": "dataset-too-large";
781
+ "job-already-running": "job-already-running";
782
+ "no-training-subjects": "no-training-subjects";
783
+ "provider-not-configured": "provider-not-configured";
784
+ "unknown-base-model": "unknown-base-model";
785
+ "unknown-dataset": "unknown-dataset";
786
+ "unknown-gpu": "unknown-gpu";
787
+ "unknown-provider": "unknown-provider";
788
+ }>;
789
+ detail: z.ZodString;
790
+ }, z.core.$strip>], "kind">, "mutation">;
724
791
  readonly listJobs: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{}, z.core.$strip>, z.ZodReadonly<z.ZodArray<z.ZodObject<{
725
792
  id: z.ZodString;
726
793
  idempotencyKey: z.ZodString;
@@ -736,6 +803,7 @@ export declare const trainingCapability: {
736
803
  expired: "expired";
737
804
  failed: "failed";
738
805
  lost: "lost";
806
+ queued: "queued";
739
807
  ready: "ready";
740
808
  registered: "registered";
741
809
  running: "running";
@@ -743,6 +811,7 @@ export declare const trainingCapability: {
743
811
  submitted: "submitted";
744
812
  uploading: "uploading";
745
813
  }>;
814
+ batchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
746
815
  stage: z.ZodNullable<z.ZodEnum<{
747
816
  eval: "eval";
748
817
  export: "export";
@@ -768,8 +837,15 @@ export declare const trainingCapability: {
768
837
  detail: z.ZodString;
769
838
  }, z.core.$strip>>;
770
839
  request: z.ZodObject<{
771
- datasetVersionId: z.ZodString;
772
- addonId: z.ZodString;
840
+ selection: z.ZodObject<{
841
+ collectionIds: z.ZodArray<z.ZodString>;
842
+ workState: z.ZodDefault<z.ZodEnum<{
843
+ annotated_or_complete: "annotated_or_complete";
844
+ any_annotated: "any_annotated";
845
+ complete: "complete";
846
+ }>>;
847
+ }, z.core.$strip>;
848
+ entryId: z.ZodString;
773
849
  gpuType: z.ZodString;
774
850
  region: z.ZodString;
775
851
  baseModelId: z.ZodString;
@@ -791,6 +867,9 @@ export declare const trainingCapability: {
791
867
  crops: "crops";
792
868
  frames: "frames";
793
869
  }>;
870
+ frameCount: z.ZodNumber;
871
+ frameIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
872
+ annotationHash: z.ZodString;
794
873
  dataset: z.ZodNullable<z.ZodObject<{
795
874
  bytes: z.ZodNumber;
796
875
  sha256: z.ZodString;
@@ -872,6 +951,7 @@ export declare const trainingCapability: {
872
951
  expired: "expired";
873
952
  failed: "failed";
874
953
  lost: "lost";
954
+ queued: "queued";
875
955
  ready: "ready";
876
956
  registered: "registered";
877
957
  running: "running";
@@ -879,6 +959,7 @@ export declare const trainingCapability: {
879
959
  submitted: "submitted";
880
960
  uploading: "uploading";
881
961
  }>;
962
+ batchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
882
963
  stage: z.ZodNullable<z.ZodEnum<{
883
964
  eval: "eval";
884
965
  export: "export";
@@ -904,8 +985,15 @@ export declare const trainingCapability: {
904
985
  detail: z.ZodString;
905
986
  }, z.core.$strip>>;
906
987
  request: z.ZodObject<{
907
- datasetVersionId: z.ZodString;
908
- addonId: z.ZodString;
988
+ selection: z.ZodObject<{
989
+ collectionIds: z.ZodArray<z.ZodString>;
990
+ workState: z.ZodDefault<z.ZodEnum<{
991
+ annotated_or_complete: "annotated_or_complete";
992
+ any_annotated: "any_annotated";
993
+ complete: "complete";
994
+ }>>;
995
+ }, z.core.$strip>;
996
+ entryId: z.ZodString;
909
997
  gpuType: z.ZodString;
910
998
  region: z.ZodString;
911
999
  baseModelId: z.ZodString;
@@ -927,6 +1015,9 @@ export declare const trainingCapability: {
927
1015
  crops: "crops";
928
1016
  frames: "frames";
929
1017
  }>;
1018
+ frameCount: z.ZodNumber;
1019
+ frameIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1020
+ annotationHash: z.ZodString;
930
1021
  dataset: z.ZodNullable<z.ZodObject<{
931
1022
  bytes: z.ZodNumber;
932
1023
  sha256: z.ZodString;
@@ -1008,6 +1099,7 @@ export declare const trainingCapability: {
1008
1099
  expired: "expired";
1009
1100
  failed: "failed";
1010
1101
  lost: "lost";
1102
+ queued: "queued";
1011
1103
  ready: "ready";
1012
1104
  registered: "registered";
1013
1105
  running: "running";
@@ -1015,6 +1107,7 @@ export declare const trainingCapability: {
1015
1107
  submitted: "submitted";
1016
1108
  uploading: "uploading";
1017
1109
  }>;
1110
+ batchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1018
1111
  stage: z.ZodNullable<z.ZodEnum<{
1019
1112
  eval: "eval";
1020
1113
  export: "export";
@@ -1040,8 +1133,15 @@ export declare const trainingCapability: {
1040
1133
  detail: z.ZodString;
1041
1134
  }, z.core.$strip>>;
1042
1135
  request: z.ZodObject<{
1043
- datasetVersionId: z.ZodString;
1044
- addonId: z.ZodString;
1136
+ selection: z.ZodObject<{
1137
+ collectionIds: z.ZodArray<z.ZodString>;
1138
+ workState: z.ZodDefault<z.ZodEnum<{
1139
+ annotated_or_complete: "annotated_or_complete";
1140
+ any_annotated: "any_annotated";
1141
+ complete: "complete";
1142
+ }>>;
1143
+ }, z.core.$strip>;
1144
+ entryId: z.ZodString;
1045
1145
  gpuType: z.ZodString;
1046
1146
  region: z.ZodString;
1047
1147
  baseModelId: z.ZodString;
@@ -1063,6 +1163,9 @@ export declare const trainingCapability: {
1063
1163
  crops: "crops";
1064
1164
  frames: "frames";
1065
1165
  }>;
1166
+ frameCount: z.ZodNumber;
1167
+ frameIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1168
+ annotationHash: z.ZodString;
1066
1169
  dataset: z.ZodNullable<z.ZodObject<{
1067
1170
  bytes: z.ZodNumber;
1068
1171
  sha256: z.ZodString;
@@ -1360,6 +1463,7 @@ export declare const trainingCapability: {
1360
1463
  expired: "expired";
1361
1464
  failed: "failed";
1362
1465
  lost: "lost";
1466
+ queued: "queued";
1363
1467
  ready: "ready";
1364
1468
  registered: "registered";
1365
1469
  running: "running";
@@ -1367,6 +1471,7 @@ export declare const trainingCapability: {
1367
1471
  submitted: "submitted";
1368
1472
  uploading: "uploading";
1369
1473
  }>;
1474
+ batchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1370
1475
  stage: z.ZodNullable<z.ZodEnum<{
1371
1476
  eval: "eval";
1372
1477
  export: "export";
@@ -1392,8 +1497,15 @@ export declare const trainingCapability: {
1392
1497
  detail: z.ZodString;
1393
1498
  }, z.core.$strip>>;
1394
1499
  request: z.ZodObject<{
1395
- datasetVersionId: z.ZodString;
1396
- addonId: z.ZodString;
1500
+ selection: z.ZodObject<{
1501
+ collectionIds: z.ZodArray<z.ZodString>;
1502
+ workState: z.ZodDefault<z.ZodEnum<{
1503
+ annotated_or_complete: "annotated_or_complete";
1504
+ any_annotated: "any_annotated";
1505
+ complete: "complete";
1506
+ }>>;
1507
+ }, z.core.$strip>;
1508
+ entryId: z.ZodString;
1397
1509
  gpuType: z.ZodString;
1398
1510
  region: z.ZodString;
1399
1511
  baseModelId: z.ZodString;
@@ -1415,6 +1527,9 @@ export declare const trainingCapability: {
1415
1527
  crops: "crops";
1416
1528
  frames: "frames";
1417
1529
  }>;
1530
+ frameCount: z.ZodNumber;
1531
+ frameIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1532
+ annotationHash: z.ZodString;
1418
1533
  dataset: z.ZodNullable<z.ZodObject<{
1419
1534
  bytes: z.ZodNumber;
1420
1535
  sha256: z.ZodString;
@@ -1498,6 +1613,7 @@ export declare const trainingCapability: {
1498
1613
  expired: "expired";
1499
1614
  failed: "failed";
1500
1615
  lost: "lost";
1616
+ queued: "queued";
1501
1617
  ready: "ready";
1502
1618
  registered: "registered";
1503
1619
  running: "running";
@@ -1505,6 +1621,7 @@ export declare const trainingCapability: {
1505
1621
  submitted: "submitted";
1506
1622
  uploading: "uploading";
1507
1623
  }>;
1624
+ batchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1508
1625
  stage: z.ZodNullable<z.ZodEnum<{
1509
1626
  eval: "eval";
1510
1627
  export: "export";
@@ -1530,8 +1647,15 @@ export declare const trainingCapability: {
1530
1647
  detail: z.ZodString;
1531
1648
  }, z.core.$strip>>;
1532
1649
  request: z.ZodObject<{
1533
- datasetVersionId: z.ZodString;
1534
- addonId: z.ZodString;
1650
+ selection: z.ZodObject<{
1651
+ collectionIds: z.ZodArray<z.ZodString>;
1652
+ workState: z.ZodDefault<z.ZodEnum<{
1653
+ annotated_or_complete: "annotated_or_complete";
1654
+ any_annotated: "any_annotated";
1655
+ complete: "complete";
1656
+ }>>;
1657
+ }, z.core.$strip>;
1658
+ entryId: z.ZodString;
1535
1659
  gpuType: z.ZodString;
1536
1660
  region: z.ZodString;
1537
1661
  baseModelId: z.ZodString;
@@ -1553,6 +1677,9 @@ export declare const trainingCapability: {
1553
1677
  crops: "crops";
1554
1678
  frames: "frames";
1555
1679
  }>;
1680
+ frameCount: z.ZodNumber;
1681
+ frameIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1682
+ annotationHash: z.ZodString;
1556
1683
  dataset: z.ZodNullable<z.ZodObject<{
1557
1684
  bytes: z.ZodNumber;
1558
1685
  sha256: z.ZodString;
@@ -1635,6 +1762,7 @@ export declare const trainingCapability: {
1635
1762
  expired: "expired";
1636
1763
  failed: "failed";
1637
1764
  lost: "lost";
1765
+ queued: "queued";
1638
1766
  ready: "ready";
1639
1767
  registered: "registered";
1640
1768
  running: "running";
@@ -1642,6 +1770,7 @@ export declare const trainingCapability: {
1642
1770
  submitted: "submitted";
1643
1771
  uploading: "uploading";
1644
1772
  }>;
1773
+ batchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1645
1774
  stage: z.ZodNullable<z.ZodEnum<{
1646
1775
  eval: "eval";
1647
1776
  export: "export";
@@ -1667,8 +1796,15 @@ export declare const trainingCapability: {
1667
1796
  detail: z.ZodString;
1668
1797
  }, z.core.$strip>>;
1669
1798
  request: z.ZodObject<{
1670
- datasetVersionId: z.ZodString;
1671
- addonId: z.ZodString;
1799
+ selection: z.ZodObject<{
1800
+ collectionIds: z.ZodArray<z.ZodString>;
1801
+ workState: z.ZodDefault<z.ZodEnum<{
1802
+ annotated_or_complete: "annotated_or_complete";
1803
+ any_annotated: "any_annotated";
1804
+ complete: "complete";
1805
+ }>>;
1806
+ }, z.core.$strip>;
1807
+ entryId: z.ZodString;
1672
1808
  gpuType: z.ZodString;
1673
1809
  region: z.ZodString;
1674
1810
  baseModelId: z.ZodString;
@@ -1690,6 +1826,9 @@ export declare const trainingCapability: {
1690
1826
  crops: "crops";
1691
1827
  frames: "frames";
1692
1828
  }>;
1829
+ frameCount: z.ZodNumber;
1830
+ frameIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1831
+ annotationHash: z.ZodString;
1693
1832
  dataset: z.ZodNullable<z.ZodObject<{
1694
1833
  bytes: z.ZodNumber;
1695
1834
  sha256: z.ZodString;
@@ -1772,6 +1911,7 @@ export declare const trainingCapability: {
1772
1911
  expired: "expired";
1773
1912
  failed: "failed";
1774
1913
  lost: "lost";
1914
+ queued: "queued";
1775
1915
  ready: "ready";
1776
1916
  registered: "registered";
1777
1917
  running: "running";
@@ -1779,6 +1919,7 @@ export declare const trainingCapability: {
1779
1919
  submitted: "submitted";
1780
1920
  uploading: "uploading";
1781
1921
  }>;
1922
+ batchId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1782
1923
  stage: z.ZodNullable<z.ZodEnum<{
1783
1924
  eval: "eval";
1784
1925
  export: "export";
@@ -1804,8 +1945,15 @@ export declare const trainingCapability: {
1804
1945
  detail: z.ZodString;
1805
1946
  }, z.core.$strip>>;
1806
1947
  request: z.ZodObject<{
1807
- datasetVersionId: z.ZodString;
1808
- addonId: z.ZodString;
1948
+ selection: z.ZodObject<{
1949
+ collectionIds: z.ZodArray<z.ZodString>;
1950
+ workState: z.ZodDefault<z.ZodEnum<{
1951
+ annotated_or_complete: "annotated_or_complete";
1952
+ any_annotated: "any_annotated";
1953
+ complete: "complete";
1954
+ }>>;
1955
+ }, z.core.$strip>;
1956
+ entryId: z.ZodString;
1809
1957
  gpuType: z.ZodString;
1810
1958
  region: z.ZodString;
1811
1959
  baseModelId: z.ZodString;
@@ -1827,6 +1975,9 @@ export declare const trainingCapability: {
1827
1975
  crops: "crops";
1828
1976
  frames: "frames";
1829
1977
  }>;
1978
+ frameCount: z.ZodNumber;
1979
+ frameIds: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1980
+ annotationHash: z.ZodString;
1830
1981
  dataset: z.ZodNullable<z.ZodObject<{
1831
1982
  bytes: z.ZodNumber;
1832
1983
  sha256: z.ZodString;