@camstack/addon-export-google 0.1.92 → 0.1.93

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.
@@ -5451,7 +5451,7 @@ var ZodIssueCode = {
5451
5451
  var ZodFirstPartyTypeKind;
5452
5452
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5453
5453
  //#endregion
5454
- //#region ../types/dist/sleep-r3RWkGVx.mjs
5454
+ //#region ../types/dist/sleep-DwAQ9sqX.mjs
5455
5455
  /**
5456
5456
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5457
5457
  * window to float samples (D455).
@@ -9412,6 +9412,16 @@ var CompositionSchema = object({
9412
9412
  seen.add(feature.cap);
9413
9413
  });
9414
9414
  });
9415
+ var NodeColorIdSchema = _enum([
9416
+ "node-a",
9417
+ "node-b",
9418
+ "node-c",
9419
+ "node-d",
9420
+ "node-e",
9421
+ "node-f",
9422
+ "node-g",
9423
+ "node-h"
9424
+ ]);
9415
9425
  new Set([
9416
9426
  "track",
9417
9427
  "face",
@@ -18319,14 +18329,14 @@ var LlmProfileSchema = object({
18319
18329
  /** ConfigUISchema tree passed through untyped on the wire (the
18320
18330
  * notification-output `ConfigSchemaPassthrough` precedent at
18321
18331
  * notification-output.cap.ts:151); the exported TS type re-tightens it. */
18322
- var ConfigSchemaPassthrough$1 = unknown();
18332
+ var ConfigSchemaPassthrough$3 = unknown();
18323
18333
  var LlmProfileKindDescriptorSchema = object({
18324
18334
  kind: LlmProfileKindSchema,
18325
18335
  label: string(),
18326
18336
  icon: string(),
18327
18337
  /** Stamped by each provider so the concat-fanned catalog stays routable. */
18328
18338
  addonId: string(),
18329
- configSchema: ConfigSchemaPassthrough$1
18339
+ configSchema: ConfigSchemaPassthrough$3
18330
18340
  });
18331
18341
  var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
18332
18342
  var LlmDefaultSchema = object({
@@ -19447,7 +19457,7 @@ var TargetKindCapsSchema = object({
19447
19457
  * the union is large and not meant for runtime validation here; the exported
19448
19458
  * `TargetKind` type re-tightens `configSchema` to `ConfigUISchema`.
19449
19459
  */
19450
- var ConfigSchemaPassthrough = unknown();
19460
+ var ConfigSchemaPassthrough$2 = unknown();
19451
19461
  var TargetKindSchema = object({
19452
19462
  kind: string(),
19453
19463
  label: string(),
@@ -19484,7 +19494,7 @@ var TargetKindSchema = object({
19484
19494
  * its raster path, which is the safe default for an unknown image.
19485
19495
  */
19486
19496
  iconMediaType: string().optional(),
19487
- configSchema: ConfigSchemaPassthrough,
19497
+ configSchema: ConfigSchemaPassthrough$2,
19488
19498
  /**
19489
19499
  * The config keys that decide WHERE this kind's secrets are sent (server,
19490
19500
  * base URL, instance, chat, recipient). A save that changes any of them
@@ -22799,6 +22809,61 @@ var oauthIntegrationCapability = {
22799
22809
  getDescriptor: method(_void(), OauthIntegrationDescriptorSchema, { auth: "admin" }) }
22800
22810
  };
22801
22811
  /**
22812
+ * `oidc-connections` — CRUD for IdP rows under `auth-oidc` (D828 sibling).
22813
+ *
22814
+ * One hub-only singleton (`auth-oidc`). The Settings UI is a DataTable +
22815
+ * ItemFormDialog; there is no `editable-array` in `globalSettingsSchema`.
22816
+ * Operator-chosen `id` is the URL slug (`/addon/auth-oidc/<id>/…`) and is
22817
+ * immutable after create.
22818
+ */
22819
+ var ConfigSchemaPassthrough$1 = unknown();
22820
+ var OidcConnectionSchema = object({
22821
+ id: string().min(1),
22822
+ displayName: string(),
22823
+ icon: string(),
22824
+ issuerUrl: string(),
22825
+ clientId: string(),
22826
+ /** Client id + secret present — never the secret value. */
22827
+ configured: boolean(),
22828
+ /**
22829
+ * Values for the connection form schema. `clientSecret` is a keychain
22830
+ * {@link SecretFieldView} or `null` / `''`, never plaintext (D789).
22831
+ */
22832
+ formValues: record(string(), unknown()).optional()
22833
+ });
22834
+ /**
22835
+ * Patch one connection. Omitted or empty `clientSecret` keeps the stored
22836
+ * secret (D787). `{ $secretClear: true }` clears it. `id` is never renamed.
22837
+ */
22838
+ var OidcConnectionUpdateInputSchema = object({
22839
+ id: string().min(1),
22840
+ displayName: string().min(1),
22841
+ icon: string().optional(),
22842
+ issuerUrl: string().optional(),
22843
+ clientId: string().optional(),
22844
+ clientSecret: union([string(), object({ $secretClear: literal(true) })]).optional(),
22845
+ redirectUri: string().optional(),
22846
+ scopes: string().optional(),
22847
+ usernameClaim: _enum([
22848
+ "preferred_username",
22849
+ "email",
22850
+ "sub"
22851
+ ]).optional()
22852
+ });
22853
+ method(object({}), ConfigSchemaPassthrough$1, { auth: "admin" }), method(object({}), array(OidcConnectionSchema).readonly(), { auth: "admin" }), method(object({
22854
+ id: string().min(1).regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "id must be a lowercase slug"),
22855
+ displayName: string().min(1)
22856
+ }), object({ id: string() }), {
22857
+ kind: "mutation",
22858
+ auth: "admin"
22859
+ }), method(OidcConnectionUpdateInputSchema, object({ ok: literal(true) }), {
22860
+ kind: "mutation",
22861
+ auth: "admin"
22862
+ }), method(object({ id: string().min(1) }), object({ ok: literal(true) }), {
22863
+ kind: "mutation",
22864
+ auth: "admin"
22865
+ });
22866
+ /**
22802
22867
  * What started a camera's onboard motion (D672). `camera` is the camera's own
22803
22868
  * firmware; `sensor` is a device the operator ATTACHED to it. Absent on the
22804
22869
  * wire means the camera: only the camera-sensors bridge ever says `sensor`.
@@ -24155,24 +24220,69 @@ var RetrainFrameListSchema = object({
24155
24220
  /** What the page pre-selects — the native key frame when one survives. */
24156
24221
  autoPickMediaId: number().int().optional()
24157
24222
  });
24223
+ /** Exclusive partition of a corpus copy's annotation progress (design §4.2). */
24224
+ var RetrainFrameWorkStateSchema = _enum([
24225
+ "unannotated",
24226
+ "annotated",
24227
+ "complete"
24228
+ ]);
24229
+ /**
24230
+ * Filters for paginated corpus list, KPI, and matching export (design §4.4).
24231
+ * Every narrowing field is ANDed; omitted fields impose no constraint.
24232
+ */
24233
+ var RetrainCorpusFilterSchema = object({
24234
+ workState: RetrainFrameWorkStateSchema.optional(),
24235
+ deviceIds: array(number()).max(500).optional(),
24236
+ /** When set, only frames in this named collection. */
24237
+ collectionId: string().optional(),
24238
+ /** Frames that carry at least one saved annotation in one of these classes. */
24239
+ classes: array(RetrainMacroClassSchema).optional(),
24240
+ page: number().int().positive().default(1),
24241
+ pageSize: number().int().positive().max(100).default(50)
24242
+ });
24243
+ var RetrainCorpusPageSchema = object({
24244
+ frames: array(RetrainFrameSchema.extend({ workState: RetrainFrameWorkStateSchema })).readonly(),
24245
+ total: number().int().nonnegative(),
24246
+ page: number().int().positive(),
24247
+ pageSize: number().int().positive()
24248
+ });
24249
+ var RetrainCorpusKpiCameraRowSchema = object({
24250
+ deviceId: number(),
24251
+ unannotated: number().int().nonnegative(),
24252
+ annotated: number().int().nonnegative(),
24253
+ complete: number().int().nonnegative(),
24254
+ /** This camera's `complete` count divided by corpus `total`, in `[0,1]`.
24255
+ * `null` when the corpus is empty (no ratio). */
24256
+ pctOfCorpus: number().min(0).max(1).nullable()
24257
+ });
24258
+ var RetrainCorpusKpiSchema = object({
24259
+ total: number().int().nonnegative(),
24260
+ unannotated: number().int().nonnegative(),
24261
+ annotated: number().int().nonnegative(),
24262
+ complete: number().int().nonnegative(),
24263
+ cameras: array(RetrainCorpusKpiCameraRowSchema).readonly()
24264
+ });
24158
24265
  /**
24159
24266
  * Which frames an annotated export carries. Every field narrows; an empty
24160
- * filter is every annotated copy. A dataset VERSION is a frozen `frameIds`
24161
- * list owned by whoever trains (the training orchestrator), so `frameIds` is
24162
- * the primitive a version export uses; `batchId` re-selects what an earlier
24163
- * export carried (`exportedInBatch`).
24267
+ * filter is every annotated copy. `frameIds` is the primitive a job or
24268
+ * download uses; `batchId` re-selects what an earlier export carried
24269
+ * (`exportedInBatch`). Frozen dataset versions were removed — live selection
24270
+ * resolves to `frameIds` at plan/start.
24164
24271
  */
24165
24272
  var RetrainExportFilterSchema = object({
24166
24273
  deviceIds: array(number()).optional(),
24167
24274
  frameIds: array(string()).max(2e4).optional(),
24168
24275
  /** Only frames in at least one of these named collections. */
24169
24276
  collectionIds: array(string()).max(200).optional(),
24170
- /** Exactly the frames of this dataset version (and its completeOnly). An
24171
- * unknown id selects nothing. */
24172
- datasetVersionId: string().optional(),
24277
+ /** Single collection (Frames filter bar). ANDed with `collectionIds` when both set. */
24278
+ collectionId: string().optional(),
24173
24279
  batchId: string().optional(),
24174
24280
  /** Only frames the operator marked complete (all subjects boxed). */
24175
- completeOnly: boolean().optional()
24281
+ completeOnly: boolean().optional(),
24282
+ /** Exclusive work-state partition (`workStateOf`); same as the corpus list. */
24283
+ workState: RetrainFrameWorkStateSchema.optional(),
24284
+ /** Frames with at least one saved annotation in one of these classes. */
24285
+ classes: array(RetrainMacroClassSchema).optional()
24176
24286
  });
24177
24287
  /**
24178
24288
  * `frames`: the full frame copies, boxes in `annotations.json`.
@@ -24372,8 +24482,7 @@ var RetrainDatasetStatsSchema = object({
24372
24482
  completeFrames: number().int()
24373
24483
  })).readonly()
24374
24484
  });
24375
- /** An immutable dataset version, without its frame list. */
24376
- var RetrainDatasetVersionSchema = object({
24485
+ object({
24377
24486
  id: string(),
24378
24487
  name: string(),
24379
24488
  createdAt: number(),
@@ -24381,22 +24490,33 @@ var RetrainDatasetVersionSchema = object({
24381
24490
  layout: RetrainExportLayoutSchema,
24382
24491
  completeOnly: boolean(),
24383
24492
  frameCount: number().int(),
24384
- /** sha256 of what the frames taught when the version was frozen. */
24385
24493
  annotationHash: string(),
24386
- /** The export manifest schema the version was cut under. */
24387
24494
  manifestSchema: string(),
24388
24495
  stats: RetrainDatasetStatsSchema
24389
24496
  });
24390
- var CreateRetrainDatasetVersionResultSchema = discriminatedUnion("kind", [object({
24391
- kind: literal("created"),
24392
- version: RetrainDatasetVersionSchema
24497
+ /**
24498
+ * Live training corpus criteria — same shape as `TrainingCorpusSelection` on
24499
+ * the training cap. Resolved here so plan/start and the annotated export share
24500
+ * one definition of "the frames" (`buildRetrainExportPlan`).
24501
+ */
24502
+ var RetrainTrainingCorpusSelectionSchema = object({
24503
+ collectionIds: array(string()).min(1),
24504
+ workState: _enum([
24505
+ "complete",
24506
+ "annotated_or_complete",
24507
+ "any_annotated"
24508
+ ]).default("complete")
24509
+ });
24510
+ var RetrainTrainingCorpusResolveResultSchema = discriminatedUnion("kind", [object({
24511
+ kind: literal("resolved"),
24512
+ frameIds: array(string()).max(2e4).readonly(),
24513
+ stats: RetrainDatasetStatsSchema,
24514
+ annotationHash: string(),
24515
+ layout: RetrainExportLayoutSchema
24393
24516
  }), object({
24394
24517
  kind: literal("refused"),
24395
- reason: _enum([
24396
- "empty-name",
24397
- "duplicate-name",
24398
- "no-frames"
24399
- ])
24518
+ reason: _enum(["unknown-collection", "no-frames"]),
24519
+ detail: string()
24400
24520
  })]);
24401
24521
  /** The outcome of a lifecycle move owned by the retrain page. */
24402
24522
  var RetrainTransitionResultSchema = object({
@@ -25103,6 +25223,12 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
25103
25223
  }), array(RetrainTrackSchema).readonly(), {
25104
25224
  kind: "query",
25105
25225
  auth: "admin"
25226
+ }), method(RetrainCorpusFilterSchema, RetrainCorpusPageSchema, {
25227
+ kind: "query",
25228
+ auth: "admin"
25229
+ }), method(object({}), RetrainCorpusKpiSchema, {
25230
+ kind: "query",
25231
+ auth: "admin"
25106
25232
  }), method(object({ trackId: string() }), RetrainFrameListSchema, {
25107
25233
  kind: "query",
25108
25234
  auth: "admin"
@@ -25198,36 +25324,6 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
25198
25324
  kind: "mutation",
25199
25325
  auth: "admin",
25200
25326
  timeoutMs: 12e4
25201
- }), method(object({
25202
- selection: RetrainDatasetSelectionSchema,
25203
- completeOnly: boolean().optional()
25204
- }), RetrainDatasetStatsSchema, {
25205
- kind: "query",
25206
- auth: "admin"
25207
- }), method(object({
25208
- name: string().max(120),
25209
- selection: RetrainDatasetSelectionSchema,
25210
- layout: RetrainExportLayoutSchema,
25211
- completeOnly: boolean()
25212
- }), CreateRetrainDatasetVersionResultSchema, {
25213
- kind: "mutation",
25214
- auth: "admin",
25215
- timeoutMs: 12e4
25216
- }), method(object({}), array(RetrainDatasetVersionSchema).readonly(), {
25217
- kind: "query",
25218
- auth: "admin"
25219
- }), method(object({ id: string() }), object({ deleted: boolean() }), {
25220
- kind: "mutation",
25221
- auth: "admin"
25222
- }), method(object({ id: string() }), object({
25223
- found: boolean(),
25224
- annotationHash: string(),
25225
- matches: boolean(),
25226
- missingFrames: number().int()
25227
- }), {
25228
- kind: "query",
25229
- auth: "admin",
25230
- timeoutMs: 12e4
25231
25327
  }), method(object({}), array(RetrainAssistProfileSchema).readonly(), {
25232
25328
  kind: "query",
25233
25329
  auth: "admin"
@@ -25254,6 +25350,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
25254
25350
  }), method(object({}), array(RetrainCollectionSchema).readonly(), {
25255
25351
  kind: "query",
25256
25352
  auth: "admin"
25353
+ }), method(RetrainTrainingCorpusSelectionSchema, RetrainTrainingCorpusResolveResultSchema, {
25354
+ kind: "query",
25355
+ auth: "admin",
25356
+ timeoutMs: 6e4
25257
25357
  }), method(object({
25258
25358
  id: string(),
25259
25359
  name: string().max(120)
@@ -25870,11 +25970,14 @@ var HardwareClassIdSchema = _enum([
25870
25970
  "intel-n-series",
25871
25971
  "apple-m-base",
25872
25972
  "apple-m-pro",
25973
+ "amd-phoenix",
25873
25974
  "unknown"
25874
25975
  ]);
25875
25976
  var AcceleratorKindSchema = _enum([
25876
25977
  "intel-npu",
25877
25978
  "intel-igpu",
25979
+ "amd-igpu",
25980
+ "amd-npu",
25878
25981
  "x86-cpu",
25879
25982
  "arm-cpu",
25880
25983
  "apple-ane",
@@ -27764,6 +27867,8 @@ var AgentPipelineSettingsSchema = object({
27764
27867
  * address is wrong (multi-homed host, NAT, custom interface).
27765
27868
  */
27766
27869
  reachableHost: string().optional(),
27870
+ /** Hub-persisted UI colour (`--color-node-*` theme tokens). */
27871
+ color: NodeColorIdSchema.optional(),
27767
27872
  /**
27768
27873
  * Multi-device inference opt-in (Phase 4). Per-node map deviceKey → {enabled,
27769
27874
  * weight, steps}. Absent / all-disabled ⇒ the node's single default
@@ -28313,8 +28418,9 @@ method(object({
28313
28418
  auth: "admin"
28314
28419
  }), method(object({
28315
28420
  agentNodeId: string(),
28316
- reachableHost: string().nullable()
28317
- }), object({ success: literal(true) }), {
28421
+ reachableHost: string().nullable().optional(),
28422
+ color: NodeColorIdSchema.nullable().optional()
28423
+ }).refine((v) => v.reachableHost !== void 0 || v.color !== void 0, { message: "reachableHost or color required" }), object({ success: literal(true) }), {
28318
28424
  kind: "mutation",
28319
28425
  auth: "admin"
28320
28426
  }), method(object({
@@ -31361,7 +31467,7 @@ var CustomActionInputSchema = object({
31361
31467
  action: string().min(1),
31362
31468
  input: unknown()
31363
31469
  });
31364
- method(_void(), array(AddonListItemSchema).readonly()), method(object({
31470
+ method(object({ nodeId: string().optional() }).optional(), array(AddonListItemSchema).readonly()), method(object({
31365
31471
  addonId: string(),
31366
31472
  limit: number().min(1).max(500).default(100),
31367
31473
  level: LogLevelSchema$2.optional()
@@ -35266,6 +35372,7 @@ var OsdNamedTemplateSchema = object({
35266
35372
  });
35267
35373
  /** Where a slot's value comes from. */
35268
35374
  var OsdSourceSchema = discriminatedUnion("kind", [
35375
+ object({ kind: literal("none") }),
35269
35376
  object({
35270
35377
  kind: literal("static"),
35271
35378
  text: string().max(64)
@@ -35392,6 +35499,13 @@ method(object({ deviceId: number().int() }), object({
35392
35499
  }), object({ success: literal(true) }), {
35393
35500
  kind: "mutation",
35394
35501
  auth: "admin"
35502
+ }), method(object({
35503
+ deviceId: number().int(),
35504
+ slotId: string().min(1),
35505
+ enabled: boolean()
35506
+ }), object({ success: literal(true) }), {
35507
+ kind: "mutation",
35508
+ auth: "admin"
35395
35509
  }), method(object({
35396
35510
  sourceDeviceId: number().int(),
35397
35511
  targetDeviceId: number().int()
@@ -35772,7 +35886,15 @@ var GpuInfoSchema = object({
35772
35886
  name: string(),
35773
35887
  memoryMB: number().optional()
35774
35888
  });
35775
- var NpuInfoSchema = object({ type: _enum(["apple-ane", "intel-npu"]) });
35889
+ var NpuInfoSchema = object({
35890
+ type: _enum([
35891
+ "apple-ane",
35892
+ "intel-npu",
35893
+ "amd-xdna"
35894
+ ]),
35895
+ name: string().optional(),
35896
+ generation: _enum(["xdna1", "xdna2"]).optional()
35897
+ });
35776
35898
  var CoralInfoSchema = object({
35777
35899
  type: literal("coral-edgetpu"),
35778
35900
  bus: string().optional()
@@ -39541,9 +39663,11 @@ DeviceType.Camera, method(object({
39541
39663
  * once is what makes a second provider (RunPod, a local NVIDIA node) a new
39542
39664
  * manifest entry and nothing else.
39543
39665
  *
39544
- * Collection, routed by the `addonId` in every single-row input (the `llm` /
39545
- * `notification-output` posture); `describe` concat-fans across providers.
39546
- * Every method is `admin`: these spend money.
39666
+ * Collection of provider **types** (addons). Each addon owns zero or more
39667
+ * **entries** (credentials + defaults). Concat-fans: `describe`,
39668
+ * `describeTypes`, `listEntries`, `listJobs`. Single-row work is keyed by
39669
+ * `entryId`; callers also pass the owning `addonId` as the collection
39670
+ * selector (broker posture). Every method is `admin`: these spend money.
39547
39671
  *
39548
39672
  * Every cloud object a provider creates is tagged with the orchestrator's
39549
39673
  * `jobKey`, so a retried submit finds the job it already started instead of
@@ -39567,8 +39691,8 @@ var TrainingRegionOptionSchema = object({
39567
39691
  priceMultiplier: number().positive()
39568
39692
  });
39569
39693
  /**
39570
- * The provider's per-account settings, as the orchestrator reads them. They
39571
- * live in the PROVIDER addon's settings (operator decision 2026-10-08: they
39694
+ * The provider's per-entry settings, as the orchestrator reads them. They
39695
+ * live on the PROVIDER addon's entry (operator decision 2026-10-08: they
39572
39696
  * depend on the user's account), never hard-coded in the orchestrator.
39573
39697
  */
39574
39698
  var TrainingProviderDefaultsSchema = object({
@@ -39579,9 +39703,44 @@ var TrainingProviderDefaultsSchema = object({
39579
39703
  /** Hours a FAILED job's cloud dataset is kept for debugging; 0 = delete at once. */
39580
39704
  failedDatasetGraceHours: number().nonnegative()
39581
39705
  });
39706
+ /**
39707
+ * Entry form schema for a provider type — same seam as notification
39708
+ * `TargetKind.configSchema` (`z.unknown()` at the wire; callers tighten to
39709
+ * {@link ConfigUISchema}). Drives `ConfigFormBuilder` on Training → Providers.
39710
+ */
39711
+ var ConfigSchemaPassthrough = unknown();
39712
+ /** One creatable provider type, for the Add-entry dialog. */
39713
+ var TrainingProviderTypeSchema = object({
39714
+ typeId: string(),
39715
+ label: string(),
39716
+ /** Path under the addon package (e.g. `assets/training-modal/icon.svg`). */
39717
+ iconAsset: string(),
39718
+ /** Owning `training-provider` addon — collection selector for createEntry. */
39719
+ addonId: string(),
39720
+ /**
39721
+ * Fields for one entry of this type (credentials + defaults). Absent on a
39722
+ * type that only needs a name. Password fields are keychain-backed on the
39723
+ * provider addon (`secretStatePaths`), not D634 plaintext.
39724
+ */
39725
+ configSchema: ConfigSchemaPassthrough.optional()
39726
+ });
39727
+ /** One configured account / workspace under a provider type. */
39728
+ var TrainingProviderEntrySchema = object({
39729
+ entryId: string(),
39730
+ typeId: string(),
39731
+ name: string(),
39732
+ addonId: string(),
39733
+ /** Credentials are present — never the values. */
39734
+ configured: boolean()
39735
+ });
39582
39736
  var TrainingProviderDescriptorSchema = object({
39583
39737
  addonId: string(),
39584
- /** `modal`, `runpod`, `fake`, … */
39738
+ entryId: string(),
39739
+ typeId: string(),
39740
+ /** Operator-chosen entry name. */
39741
+ name: string(),
39742
+ iconAsset: string(),
39743
+ /** `modal`, `runpod`, `fake`, … — same as typeId for current providers. */
39585
39744
  kind: string(),
39586
39745
  label: string(),
39587
39746
  gpuTypes: array(TrainingGpuOptionSchema).readonly(),
@@ -39593,7 +39752,30 @@ var TrainingProviderDescriptorSchema = object({
39593
39752
  dataResidencyNote: string(),
39594
39753
  /** Credentials are present — never the values. */
39595
39754
  configured: boolean(),
39596
- defaults: TrainingProviderDefaultsSchema
39755
+ defaults: TrainingProviderDefaultsSchema,
39756
+ /**
39757
+ * Values for {@link TrainingProviderTypeSchema}'s `configSchema` — password
39758
+ * fields are keychain {@link SecretFieldView} or `null` / `''` (create),
39759
+ * never plaintext. Same hydrate contract as settings forms (D789).
39760
+ */
39761
+ formValues: record(string(), unknown()).optional()
39762
+ });
39763
+ /**
39764
+ * Patch one entry's name, credentials and defaults. Pin with owning `{ addonId }`.
39765
+ * An omitted or empty `tokenSecret` means KEEP the stored secret (D787).
39766
+ * `{ $secretClear: true }` clears it.
39767
+ */
39768
+ var TrainingProviderUpdateEntryInputSchema = object({
39769
+ entryId: string().min(1),
39770
+ name: string().min(1),
39771
+ tokenId: string().optional(),
39772
+ tokenSecret: union([string(), object({ $secretClear: literal(true) })]).optional(),
39773
+ environment: string().optional(),
39774
+ gpuType: string().optional(),
39775
+ region: string().optional(),
39776
+ costCapUsd: number().nonnegative().optional(),
39777
+ maxRuntimeSec: number().int().positive().optional(),
39778
+ failedDatasetGraceHours: number().nonnegative().optional()
39597
39779
  });
39598
39780
  var TrainingCredentialCheckSchema = object({
39599
39781
  ok: boolean(),
@@ -39645,20 +39827,33 @@ var TrainerSourceRefSchema = object({
39645
39827
  /** A commit sha (never a branch) — the job must be reproducible. */
39646
39828
  revision: string().regex(/^[0-9a-f]{7,64}$/)
39647
39829
  });
39830
+ /** Cloud job identity — route with the owning addon's `addonId` selector. */
39648
39831
  var JobRef = {
39649
- addonId: string(),
39832
+ entryId: string().min(1),
39650
39833
  jobKey: string().uuid()
39651
39834
  };
39652
39835
  var TrainingLogLineSchema = object({
39653
39836
  ts: number(),
39654
39837
  text: string()
39655
39838
  });
39656
- method(object({}), array(TrainingProviderDescriptorSchema).readonly(), { auth: "admin" }), method(object({ addonId: string() }), TrainingCredentialCheckSchema, {
39839
+ method(object({}), array(TrainingProviderDescriptorSchema).readonly(), { auth: "admin" }), method(object({}), array(TrainingProviderTypeSchema).readonly(), { auth: "admin" }), method(object({}), array(TrainingProviderEntrySchema).readonly(), { auth: "admin" }), method(object({
39840
+ typeId: string().min(1),
39841
+ name: string().min(1)
39842
+ }), object({ entryId: string() }), {
39843
+ kind: "mutation",
39844
+ auth: "admin"
39845
+ }), method(object({ entryId: string().min(1) }), object({ ok: literal(true) }), {
39846
+ kind: "mutation",
39847
+ auth: "admin"
39848
+ }), method(TrainingProviderUpdateEntryInputSchema, object({ ok: literal(true) }), {
39849
+ kind: "mutation",
39850
+ auth: "admin"
39851
+ }), method(object({ entryId: string().min(1) }), TrainingCredentialCheckSchema, {
39657
39852
  kind: "mutation",
39658
39853
  auth: "admin",
39659
39854
  timeoutMs: 3e4
39660
39855
  }), method(object({
39661
- addonId: string(),
39856
+ entryId: string().min(1),
39662
39857
  gpuType: string(),
39663
39858
  region: string(),
39664
39859
  datasetBytes: number().int().nonnegative(),
@@ -39724,7 +39919,7 @@ method(object({}), array(TrainingProviderDescriptorSchema).readonly(), { auth: "
39724
39919
  kind: "mutation",
39725
39920
  auth: "admin",
39726
39921
  timeoutMs: 5 * 6e4
39727
- }), method(object({ addonId: string() }), array(ProviderJobStatusSchema).readonly(), {
39922
+ }), method(object({ entryId: string().min(1).optional() }), array(ProviderJobStatusSchema).readonly(), {
39728
39923
  auth: "admin",
39729
39924
  timeoutMs: 2 * 6e4
39730
39925
  });
@@ -39734,20 +39929,31 @@ method(object({}), array(TrainingProviderDescriptorSchema).readonly(), { auth: "
39734
39929
  *
39735
39930
  * It owns what every provider must agree on, written once:
39736
39931
  *
39737
- * - **Dataset versions.** Taken over from pipeline-analytics (D796): the rows
39738
- * live here (D808); pipeline-analytics still CUTS a version (it owns the corpus and
39739
- * the export plan) and reaches this store through the five row methods
39740
- * below, so the Retrain page and the export did not change.
39741
39932
  * - **Jobs.** A persisted state machine, a reconcile loop against the
39742
39933
  * provider, a cost guard, a daily orphan sweep and the retention rules.
39743
39934
  * - **The return flow.** Verified artefacts → Model Studio
39744
39935
  * (`custom-model-registry.importModelBundle`) → canary on cameras →
39745
39936
  * rollback. Nothing is ever registered automatically.
39746
39937
  *
39938
+ * Plan/start takes a live {@link TrainingCorpusSelection} (collections +
39939
+ * work-state rule); frame ids are resolved via pipeline-analytics at that
39940
+ * moment and snapshotted on the job. No frozen dataset version.
39941
+ *
39747
39942
  * Every method is `admin`.
39748
39943
  */
39749
- /** A version WITH its frame list — what the export and a job read. */
39750
- var TrainingDatasetVersionRowSchema = RetrainDatasetVersionSchema.omit({ frameCount: true }).extend({ frameIds: array(string()).max(2e4).readonly() });
39944
+ /**
39945
+ * Live corpus criteria for plan/start (design §5.2). Default is complete-only.
39946
+ * Frame ids are resolved at plan/start — never a frozen version id.
39947
+ */
39948
+ var TrainingCorpusSelectionSchema = object({
39949
+ collectionIds: array(string()).min(1),
39950
+ /** Default complete-only for v1 */
39951
+ workState: _enum([
39952
+ "complete",
39953
+ "annotated_or_complete",
39954
+ "any_annotated"
39955
+ ]).default("complete")
39956
+ });
39751
39957
  /** A base model a detector job can fine-tune, and the baseline it is judged against. */
39752
39958
  var TrainingBaseModelSchema = object({
39753
39959
  modelId: string(),
@@ -39765,9 +39971,13 @@ var TrainingPresetSchema = _enum([
39765
39971
  "thorough"
39766
39972
  ]);
39767
39973
  var TrainingJobRequestSchema = object({
39768
- datasetVersionId: string().min(1),
39769
- /** The `training-provider` addon that runs it. */
39770
- addonId: string().min(1),
39974
+ /** Live collection + work-state criteria; resolved at plan/start. */
39975
+ selection: TrainingCorpusSelectionSchema,
39976
+ /**
39977
+ * The provider **entry** that runs it (credentials + defaults).
39978
+ * Resolve to an owning addon via `training-provider.describe` / `listEntries`.
39979
+ */
39980
+ entryId: string().min(1),
39771
39981
  gpuType: string().min(1),
39772
39982
  region: string(),
39773
39983
  baseModelId: string().min(1),
@@ -39826,6 +40036,7 @@ var TrainingJobPlanSchema = object({
39826
40036
  * result lives after the operator acted on it.
39827
40037
  */
39828
40038
  var TrainingJobStateSchema = _enum([
40039
+ "queued",
39829
40040
  "uploading",
39830
40041
  "submitted",
39831
40042
  "starting",
@@ -39879,6 +40090,11 @@ var TrainingJobSchema = object({
39879
40090
  createdAt: number(),
39880
40091
  updatedAt: number(),
39881
40092
  state: TrainingJobStateSchema,
40093
+ /**
40094
+ * Shared by every job enqueued together via `startJobBatch`.
40095
+ * `null` for a lone `startJob`. The engine advances queued siblings by this id.
40096
+ */
40097
+ batchId: string().nullable().default(null),
39882
40098
  stage: TrainingStageSchema.nullable(),
39883
40099
  failure: object({
39884
40100
  reason: TrainingFailureReasonSchema,
@@ -39890,6 +40106,12 @@ var TrainingJobSchema = object({
39890
40106
  maxRuntimeSec: number().int().positive(),
39891
40107
  trainer: TrainerSourceRefSchema,
39892
40108
  datasetLayout: RetrainExportLayoutSchema,
40109
+ /** Frame count snapshotted when the job started (audit; equals `frameIds.length`). */
40110
+ frameCount: number().int().nonnegative(),
40111
+ /** Resolved frame ids at start — the archive ships exactly these. */
40112
+ frameIds: array(string()).max(2e4).readonly(),
40113
+ /** Hash of what those frames taught at start (trainer `dataset.annotationHash`). */
40114
+ annotationHash: string(),
39893
40115
  dataset: object({
39894
40116
  bytes: number().int(),
39895
40117
  sha256: string(),
@@ -39931,13 +40153,7 @@ var TrainingJobSchema = object({
39931
40153
  canary: TrainingCanarySchema.nullable()
39932
40154
  });
39933
40155
  var IdInput = object({ id: string().min(1) });
39934
- method(TrainingDatasetVersionRowSchema, object({ stored: boolean() }), {
39935
- kind: "mutation",
39936
- auth: "admin"
39937
- }), method(IdInput, TrainingDatasetVersionRowSchema.nullable(), { auth: "admin" }), method(object({}), array(RetrainDatasetVersionSchema).readonly(), { auth: "admin" }), method(object({ name: string() }), object({ id: string().nullable() }), { auth: "admin" }), method(IdInput, object({ removed: boolean() }), {
39938
- kind: "mutation",
39939
- auth: "admin"
39940
- }), method(object({}), array(TrainingBaseModelSchema).readonly(), { auth: "admin" }), method(TrainingJobRequestSchema, TrainingJobPlanSchema, {
40156
+ method(object({}), array(TrainingBaseModelSchema).readonly(), { auth: "admin" }), method(TrainingJobRequestSchema, TrainingJobPlanSchema, {
39941
40157
  auth: "admin",
39942
40158
  timeoutMs: 6e4
39943
40159
  }), method(TrainingJobRequestSchema.extend({
@@ -39956,6 +40172,24 @@ method(TrainingDatasetVersionRowSchema, object({ stored: boolean() }), {
39956
40172
  kind: "mutation",
39957
40173
  auth: "admin",
39958
40174
  timeoutMs: 12e4
40175
+ }), method(TrainingJobRequestSchema.omit({ baseModelId: true }).extend({
40176
+ baseModelIds: array(string().min(1)).min(1),
40177
+ name: string().min(1).max(120),
40178
+ maxCostUsd: number().positive(),
40179
+ maxRuntimeSec: number().int().positive(),
40180
+ idempotencyKey: string().min(8).max(80)
40181
+ }), discriminatedUnion("kind", [object({
40182
+ kind: literal("started"),
40183
+ batchId: string(),
40184
+ jobs: array(TrainingJobSchema).min(1).readonly()
40185
+ }), object({
40186
+ kind: literal("refused"),
40187
+ reason: TrainingRefusalReasonSchema,
40188
+ detail: string()
40189
+ })]), {
40190
+ kind: "mutation",
40191
+ auth: "admin",
40192
+ timeoutMs: 12e4
39959
40193
  }), method(object({}), array(TrainingJobSchema).readonly(), { auth: "admin" }), method(IdInput, TrainingJobSchema.nullable(), { auth: "admin" }), method(IdInput, TrainingJobSchema, {
39960
40194
  kind: "mutation",
39961
40195
  auth: "admin",
@@ -43989,6 +44223,36 @@ Object.freeze({
43989
44223
  addonId: null,
43990
44224
  access: "view"
43991
44225
  },
44226
+ "oidcConnections.connectionFormSchema": {
44227
+ capName: "oidc-connections",
44228
+ capScope: "system",
44229
+ addonId: null,
44230
+ access: "view"
44231
+ },
44232
+ "oidcConnections.createConnection": {
44233
+ capName: "oidc-connections",
44234
+ capScope: "system",
44235
+ addonId: null,
44236
+ access: "create"
44237
+ },
44238
+ "oidcConnections.deleteConnection": {
44239
+ capName: "oidc-connections",
44240
+ capScope: "system",
44241
+ addonId: null,
44242
+ access: "delete"
44243
+ },
44244
+ "oidcConnections.listConnections": {
44245
+ capName: "oidc-connections",
44246
+ capScope: "system",
44247
+ addonId: null,
44248
+ access: "view"
44249
+ },
44250
+ "oidcConnections.updateConnection": {
44251
+ capName: "oidc-connections",
44252
+ capScope: "system",
44253
+ addonId: null,
44254
+ access: "create"
44255
+ },
43992
44256
  "osd.getStatus": {
43993
44257
  capName: "osd",
43994
44258
  capScope: "device",
@@ -44061,6 +44325,12 @@ Object.freeze({
44061
44325
  addonId: null,
44062
44326
  access: "create"
44063
44327
  },
44328
+ "osdManager.setSlotCameraEnabled": {
44329
+ capName: "osd-manager",
44330
+ capScope: "system",
44331
+ addonId: null,
44332
+ access: "create"
44333
+ },
44064
44334
  "osdManager.upsertTemplate": {
44065
44335
  capName: "osd-manager",
44066
44336
  capScope: "system",
@@ -44199,12 +44469,6 @@ Object.freeze({
44199
44469
  addonId: null,
44200
44470
  access: "create"
44201
44471
  },
44202
- "pipelineAnalytics.createRetrainDatasetVersion": {
44203
- capName: "pipeline-analytics",
44204
- capScope: "device",
44205
- addonId: null,
44206
- access: "create"
44207
- },
44208
44472
  "pipelineAnalytics.deleteDeviceEvents": {
44209
44473
  capName: "pipeline-analytics",
44210
44474
  capScope: "device",
@@ -44217,12 +44481,6 @@ Object.freeze({
44217
44481
  addonId: null,
44218
44482
  access: "delete"
44219
44483
  },
44220
- "pipelineAnalytics.deleteRetrainDatasetVersion": {
44221
- capName: "pipeline-analytics",
44222
- capScope: "device",
44223
- addonId: null,
44224
- access: "delete"
44225
- },
44226
44484
  "pipelineAnalytics.deleteTracks": {
44227
44485
  capName: "pipeline-analytics",
44228
44486
  capScope: "device",
@@ -44325,6 +44583,12 @@ Object.freeze({
44325
44583
  addonId: null,
44326
44584
  access: "view"
44327
44585
  },
44586
+ "pipelineAnalytics.getRetrainCorpusKpi": {
44587
+ capName: "pipeline-analytics",
44588
+ capScope: "device",
44589
+ addonId: null,
44590
+ access: "view"
44591
+ },
44328
44592
  "pipelineAnalytics.getRetrainExportUrl": {
44329
44593
  capName: "pipeline-analytics",
44330
44594
  capScope: "device",
@@ -44445,7 +44709,7 @@ Object.freeze({
44445
44709
  addonId: null,
44446
44710
  access: "view"
44447
44711
  },
44448
- "pipelineAnalytics.listRetrainDatasetVersions": {
44712
+ "pipelineAnalytics.listRetrainCorpusPage": {
44449
44713
  capName: "pipeline-analytics",
44450
44714
  capScope: "device",
44451
44715
  addonId: null,
@@ -44499,12 +44763,6 @@ Object.freeze({
44499
44763
  addonId: null,
44500
44764
  access: "create"
44501
44765
  },
44502
- "pipelineAnalytics.previewRetrainDataset": {
44503
- capName: "pipeline-analytics",
44504
- capScope: "device",
44505
- addonId: null,
44506
- access: "view"
44507
- },
44508
44766
  "pipelineAnalytics.proposeRetrainAnnotations": {
44509
44767
  capName: "pipeline-analytics",
44510
44768
  capScope: "device",
@@ -44583,6 +44841,12 @@ Object.freeze({
44583
44841
  addonId: null,
44584
44842
  access: "create"
44585
44843
  },
44844
+ "pipelineAnalytics.resolveRetrainTrainingCorpus": {
44845
+ capName: "pipeline-analytics",
44846
+ capScope: "device",
44847
+ addonId: null,
44848
+ access: "view"
44849
+ },
44586
44850
  "pipelineAnalytics.restageRetrainTrack": {
44587
44851
  capName: "pipeline-analytics",
44588
44852
  capScope: "device",
@@ -44643,12 +44907,6 @@ Object.freeze({
44643
44907
  addonId: null,
44644
44908
  access: "create"
44645
44909
  },
44646
- "pipelineAnalytics.verifyRetrainDatasetVersion": {
44647
- capName: "pipeline-analytics",
44648
- capScope: "device",
44649
- addonId: null,
44650
- access: "view"
44651
- },
44652
44910
  "pipelineAnalytics.wipeAllAnalytics": {
44653
44911
  capName: "pipeline-analytics",
44654
44912
  capScope: "device",
@@ -47043,18 +47301,6 @@ Object.freeze({
47043
47301
  addonId: null,
47044
47302
  access: "create"
47045
47303
  },
47046
- "training.findDatasetVersionIdByName": {
47047
- capName: "training",
47048
- capScope: "system",
47049
- addonId: null,
47050
- access: "view"
47051
- },
47052
- "training.getDatasetVersion": {
47053
- capName: "training",
47054
- capScope: "system",
47055
- addonId: null,
47056
- access: "view"
47057
- },
47058
47304
  "training.getJob": {
47059
47305
  capName: "training",
47060
47306
  capScope: "system",
@@ -47073,12 +47319,6 @@ Object.freeze({
47073
47319
  addonId: null,
47074
47320
  access: "view"
47075
47321
  },
47076
- "training.listDatasetVersions": {
47077
- capName: "training",
47078
- capScope: "system",
47079
- addonId: null,
47080
- access: "view"
47081
- },
47082
47322
  "training.listJobs": {
47083
47323
  capName: "training",
47084
47324
  capScope: "system",
@@ -47091,54 +47331,66 @@ Object.freeze({
47091
47331
  addonId: null,
47092
47332
  access: "view"
47093
47333
  },
47094
- "training.putDatasetVersion": {
47334
+ "training.registerResult": {
47095
47335
  capName: "training",
47096
47336
  capScope: "system",
47097
47337
  addonId: null,
47098
47338
  access: "create"
47099
47339
  },
47100
- "training.registerResult": {
47340
+ "training.rollbackCanary": {
47101
47341
  capName: "training",
47102
47342
  capScope: "system",
47103
47343
  addonId: null,
47104
47344
  access: "create"
47105
47345
  },
47106
- "training.removeDatasetVersion": {
47346
+ "training.startJob": {
47107
47347
  capName: "training",
47108
47348
  capScope: "system",
47109
47349
  addonId: null,
47110
- access: "delete"
47350
+ access: "create"
47111
47351
  },
47112
- "training.rollbackCanary": {
47352
+ "training.startJobBatch": {
47113
47353
  capName: "training",
47114
47354
  capScope: "system",
47115
47355
  addonId: null,
47116
47356
  access: "create"
47117
47357
  },
47118
- "training.startJob": {
47119
- capName: "training",
47358
+ "trainingProvider.cancelJob": {
47359
+ capName: "training-provider",
47120
47360
  capScope: "system",
47121
47361
  addonId: null,
47122
47362
  access: "create"
47123
47363
  },
47124
- "trainingProvider.cancelJob": {
47364
+ "trainingProvider.cleanupJob": {
47125
47365
  capName: "training-provider",
47126
47366
  capScope: "system",
47127
47367
  addonId: null,
47128
47368
  access: "create"
47129
47369
  },
47130
- "trainingProvider.cleanupJob": {
47370
+ "trainingProvider.createEntry": {
47131
47371
  capName: "training-provider",
47132
47372
  capScope: "system",
47133
47373
  addonId: null,
47134
47374
  access: "create"
47135
47375
  },
47376
+ "trainingProvider.deleteEntry": {
47377
+ capName: "training-provider",
47378
+ capScope: "system",
47379
+ addonId: null,
47380
+ access: "delete"
47381
+ },
47136
47382
  "trainingProvider.describe": {
47137
47383
  capName: "training-provider",
47138
47384
  capScope: "system",
47139
47385
  addonId: null,
47140
47386
  access: "view"
47141
47387
  },
47388
+ "trainingProvider.describeTypes": {
47389
+ capName: "training-provider",
47390
+ capScope: "system",
47391
+ addonId: null,
47392
+ access: "view"
47393
+ },
47142
47394
  "trainingProvider.estimateJob": {
47143
47395
  capName: "training-provider",
47144
47396
  capScope: "system",
@@ -47151,6 +47403,12 @@ Object.freeze({
47151
47403
  addonId: null,
47152
47404
  access: "view"
47153
47405
  },
47406
+ "trainingProvider.listEntries": {
47407
+ capName: "training-provider",
47408
+ capScope: "system",
47409
+ addonId: null,
47410
+ access: "view"
47411
+ },
47154
47412
  "trainingProvider.listJobEvents": {
47155
47413
  capName: "training-provider",
47156
47414
  capScope: "system",
@@ -47181,6 +47439,12 @@ Object.freeze({
47181
47439
  addonId: null,
47182
47440
  access: "create"
47183
47441
  },
47442
+ "trainingProvider.updateEntry": {
47443
+ capName: "training-provider",
47444
+ capScope: "system",
47445
+ addonId: null,
47446
+ access: "create"
47447
+ },
47184
47448
  "trainingProvider.uploadDataset": {
47185
47449
  capName: "training-provider",
47186
47450
  capScope: "system",
@@ -50387,6 +50651,11 @@ Object.freeze({
50387
50651
  form: "single",
50388
50652
  optional: false
50389
50653
  }],
50654
+ "osdManager.setSlotCameraEnabled": [{
50655
+ name: "deviceId",
50656
+ form: "single",
50657
+ optional: false
50658
+ }],
50390
50659
  "petFeeder.callPet": [{
50391
50660
  name: "deviceId",
50392
50661
  form: "single",
@@ -50607,6 +50876,11 @@ Object.freeze({
50607
50876
  form: "array",
50608
50877
  optional: false
50609
50878
  }],
50879
+ "pipelineAnalytics.listRetrainCorpusPage": [{
50880
+ name: "deviceIds",
50881
+ form: "array",
50882
+ optional: true
50883
+ }],
50610
50884
  "pipelineAnalytics.listRetrainStaging": [{
50611
50885
  name: "deviceIds",
50612
50886
  form: "array",
@@ -51716,6 +51990,7 @@ Object.freeze({
51716
51990
  });
51717
51991
  Object.freeze({
51718
51992
  "broker": "broker",
51993
+ "calendar-source": "calendar",
51719
51994
  "device-export": "device-export",
51720
51995
  "llm": "ai",
51721
51996
  "mesh-network": "mesh",