@camstack/addon-export-alexa 1.2.165 → 1.2.166

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.
@@ -5,7 +5,7 @@ import "node:fs";
5
5
  import "node:path";
6
6
  import "node:child_process";
7
7
  import "node:zlib";
8
- //#region ../types/dist/event-category-BfJwUd2S.mjs
8
+ //#region ../types/dist/event-category-fDPduoeC.mjs
9
9
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
10
10
  EventCategory["SystemBoot"] = "system.boot";
11
11
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -332,9 +332,8 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
332
332
  EventCategory["PipelineMotionCalm"] = "pipeline.motion-calm";
333
333
  /**
334
334
  * Per-camera pipeline config was mutated by the orchestrator
335
- * (3-level settings change via `setAgentAddonDefaults` /
336
- * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
337
- * pipeline-scoped `applyDeviceSettingsPatch`). Orchestrator
335
+ * (a settings change via `setAgentInferenceDevices` /
336
+ * `setCameraStepToggle` / `setCameraStepSettings`). Orchestrator
338
337
  * subscribes to its own emission to hot-reload the assigned runner
339
338
  * via `attachCamera` so the next frame executes against the new
340
339
  * engine/steps without waiting for a rebalance or the next
@@ -5437,7 +5436,7 @@ var ZodIssueCode = {
5437
5436
  var ZodFirstPartyTypeKind;
5438
5437
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5439
5438
  //#endregion
5440
- //#region ../types/dist/sleep-6AqUnQIT.mjs
5439
+ //#region ../types/dist/sleep-CHIEEJkY.mjs
5441
5440
  /**
5442
5441
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5443
5442
  * window to float samples (D455).
@@ -10658,13 +10657,22 @@ var BirthDecisionRecordSchema = object({
10658
10657
  decidedByBirthEvidence: boolean(),
10659
10658
  /** Best class-compatible crop score, or `null` when nothing compatible was
10660
10659
  * found — deliberately not 0, which would be a measurement that never was.
10661
- * Includes a box the detector's own per-class floor refused (reason
10662
- * `below-detector-floor`, D922): that box never confirms, but it is the
10663
- * score the crop really held. */
10660
+ * Includes a box the detector's own per-class floor refused (D922): since
10661
+ * D925 the gate's bar, not that floor, decides whether it confirms. */
10664
10662
  bestScore: number().nullable(),
10665
10663
  /** The bar this candidate actually faced (the phantom-cell hook may raise it). */
10666
10664
  appliedMinConfidence: number().nullable(),
10667
10665
  /**
10666
+ * The detector the gate re-judged the birth WITH (D925): the session's own
10667
+ * root model, inference-device pool and node — never a node default. `null`
10668
+ * when the frame named no session detector or no gate ran, and on rows
10669
+ * written before D925. A `session-device-unavailable` row names the session
10670
+ * detector that could not be reached.
10671
+ */
10672
+ detectorModelId: string().nullable().default(null),
10673
+ detectorDeviceKey: string().nullable().default(null),
10674
+ detectorNodeId: string().nullable().default(null),
10675
+ /**
10668
10676
  * The track's own `firstSeen` — the candidate's first frame, which is where
10669
10677
  * the timeline starts. `null` for a suppressed birth, which has no track.
10670
10678
  */
@@ -44931,6 +44939,18 @@ Object.freeze({
44931
44939
  reason: "camera sensor mappings not loaded"
44932
44940
  });
44933
44941
  /**
44942
+ * What the vision model must answer before a package event is emitted
44943
+ * when a packages rule has "Confirm with the LLM" on.
44944
+ *
44945
+ * `package` is the verdict. `confidence` is 0..1. `reason` is the model's
44946
+ * one-line explanation, stored on the event so a drop is not silent.
44947
+ */
44948
+ var PackageLlmVerdictSchema = object({
44949
+ package: boolean(),
44950
+ confidence: number().min(0).max(1),
44951
+ reason: string().min(1)
44952
+ });
44953
+ /**
44934
44954
  * A model choice has a SCOPE, and a scope change has a workflow.
44935
44955
  *
44936
44956
  * ## The two scopes
@@ -45867,6 +45887,21 @@ var ObjectEventSchema = object({
45867
45887
  * pick-up written before D684 — UNKNOWN, never 0 and never `timestamp`.
45868
45888
  */
45869
45889
  observedAt: number().optional(),
45890
+ /**
45891
+ * The delivery was emitted without a vision-model yes (D931).
45892
+ *
45893
+ * Set only when the packages rule asked for an LLM confirm and the model
45894
+ * was unreachable, timed out, or answered something that did not parse.
45895
+ * A notification reads it so it can say "possible" instead of a definite
45896
+ * delivery. Absent on every other row, and on a confirm that said yes.
45897
+ */
45898
+ packagePossible: boolean().optional(),
45899
+ /**
45900
+ * The vision model's verdict, when a packages rule asked for one and the
45901
+ * model answered the schema (D931). A "no" never becomes a row — the
45902
+ * detector drops it and logs the reason. Present on a yes.
45903
+ */
45904
+ packageLlmVerdict: PackageLlmVerdictSchema.optional(),
45870
45905
  /** The parent track's key-event importance [0,1], propagated to every object
45871
45906
  * event of the track (so an event row can be sorted by importance without a
45872
45907
  * track join). Absent on legacy rows / before the track was scored. */
@@ -47664,7 +47699,6 @@ var PipelineAddonSchemaSchema = object({
47664
47699
  defaultModelId: string(),
47665
47700
  defaultModelIdByFormat: record(string(), string()).optional(),
47666
47701
  enabledByDefault: boolean().optional(),
47667
- backfillIntoExistingOverrides: boolean().optional(),
47668
47702
  defaultConfidence: number(),
47669
47703
  group: string().optional(),
47670
47704
  configSchema: array(ConfigFieldBridge).readonly().optional()
@@ -47791,13 +47825,12 @@ var AudioTestResultSchema = object({
47791
47825
  error: string().optional(),
47792
47826
  frame: custom().optional()
47793
47827
  });
47794
- var PipelineConfigBridge = custom();
47795
47828
  var ConfigUISchemaBridge = custom();
47796
47829
  var ConfigUISchemaNullableBridge = custom();
47797
47830
  var InferenceCapabilitiesBridge = custom();
47798
47831
  var ModelAvailabilityListBridge = custom();
47799
47832
  var PipelineRunResultBridge = custom();
47800
- method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngineChoiceSchema), method(PipelineEngineChoiceSchema, array(PipelineDefaultStepSchema)), method(object({ nodeId: string() }), EngineProvisioningSchema), method(_void(), record(string(), object({
47833
+ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngineChoiceSchema), method(object({ nodeId: string() }), EngineProvisioningSchema), method(_void(), record(string(), object({
47801
47834
  modelId: string(),
47802
47835
  settings: record(string(), unknown()).readonly()
47803
47836
  }))), method(object({ steps: record(string(), object({
@@ -47806,28 +47839,6 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
47806
47839
  })) }), object({ success: literal(true) }), {
47807
47840
  kind: "mutation",
47808
47841
  auth: "admin"
47809
- }), method(object({ nodeId: string() }), object({
47810
- success: literal(true),
47811
- clearedDevices: number()
47812
- }), {
47813
- kind: "mutation",
47814
- auth: "admin"
47815
- }), method(object({
47816
- nodeId: string(),
47817
- deviceIds: array(number()).readonly().optional(),
47818
- dryRun: boolean()
47819
- }), object({
47820
- entries: array(object({
47821
- deviceId: number(),
47822
- keys: array(string()).readonly()
47823
- })).readonly(),
47824
- refused: array(object({
47825
- deviceId: number(),
47826
- reason: string()
47827
- })).readonly()
47828
- }), {
47829
- kind: "mutation",
47830
- auth: "admin"
47831
47842
  }), method(object({ nodeId: string() }), object({ unhealthy: array(object({
47832
47843
  /** `<backend>:<device>`, e.g. `openvino:gpu`. */
47833
47844
  deviceKey: string(),
@@ -47850,7 +47861,7 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
47850
47861
  }), object({ rearmed: boolean() }), {
47851
47862
  kind: "mutation",
47852
47863
  auth: "admin"
47853
- }), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
47864
+ }), method(_void(), PipelineSchemaSchema), method(_void(), ConfigUISchemaBridge), method(object({
47854
47865
  steps: array(PipelineStepInputSchema),
47855
47866
  deviceKey: string().optional()
47856
47867
  }), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
@@ -48098,11 +48109,18 @@ var KeptReasonSchema = _enum(["custom-pin"]);
48098
48109
  * Where a choice's latency came from (D791): this node's own benchmark
48099
48110
  * result, or the hardware-class table. Measured on the node beats the table.
48100
48111
  */
48101
- var LatencySourceSchema = discriminatedUnion("kind", [object({ kind: literal("table") }), object({
48102
- kind: literal("node-benchmark"),
48103
- resultId: string(),
48104
- measuredAtMs: number()
48105
- })]);
48112
+ var LatencySourceSchema = discriminatedUnion("kind", [
48113
+ object({ kind: literal("table") }),
48114
+ object({
48115
+ kind: literal("node-benchmark"),
48116
+ resultId: string(),
48117
+ measuredAtMs: number()
48118
+ }),
48119
+ object({
48120
+ kind: literal("estimated"),
48121
+ estimatedFrom: HardwareClassIdSchema
48122
+ })
48123
+ ]);
48106
48124
  var DeviceModelChoiceSchema = object({
48107
48125
  modelId: string(),
48108
48126
  p50Ms: number(),
@@ -48110,6 +48128,11 @@ var DeviceModelChoiceSchema = object({
48110
48128
  measured: boolean(),
48111
48129
  /** Absent on a plan from before D791 — read as the table. */
48112
48130
  source: LatencySourceSchema.optional(),
48131
+ /**
48132
+ * The measured class this latency was scaled from (D930). Absent when the
48133
+ * cell is the table or a node benchmark.
48134
+ */
48135
+ estimatedFrom: HardwareClassIdSchema.optional(),
48113
48136
  /** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
48114
48137
  capacitySessions: number(),
48115
48138
  personRecall: number()
@@ -48149,40 +48172,20 @@ var NodeDeviceChangeSchema = object({
48149
48172
  keys: array(string()).readonly()
48150
48173
  })).readonly()
48151
48174
  });
48152
- var CameraOverrideClearSchema = object({
48153
- deviceId: number(),
48154
- source: _enum(["step-override", "wholesale"]),
48175
+ /**
48176
+ * Every model and model-bound threshold lives on the accelerator that runs it
48177
+ * (D927), so the plan writes node / device entries only — there is no camera
48178
+ * layer for it to clear.
48179
+ */
48180
+ var AutoTuneWarningSchema = discriminatedUnion("kind", [object({
48181
+ kind: literal("custom-pin-kept"),
48155
48182
  nodeId: string(),
48156
- deviceKey: string().nullable(),
48157
- stepId: string(),
48158
- modelIdBefore: string().nullable(),
48159
- keys: array(string()).readonly()
48160
- });
48161
- var DetectorStoreClearSchema = object({
48162
- deviceId: number(),
48163
- keys: array(string()).readonly()
48164
- });
48165
- var AutoTuneWarningSchema = discriminatedUnion("kind", [
48166
- object({
48167
- kind: literal("detector-store-cluster-wide"),
48168
- skippedNodes: array(string()).readonly()
48169
- }),
48170
- object({
48171
- kind: literal("detector-store-unreadable"),
48172
- error: string()
48173
- }),
48174
- object({
48175
- kind: literal("custom-pin-kept"),
48176
- nodeId: string(),
48177
- deviceKey: string().nullable(),
48178
- deviceId: number().nullable(),
48179
- modelId: string()
48180
- }),
48181
- object({
48182
- kind: literal("custom-registry-unreadable"),
48183
- error: string()
48184
- })
48185
- ]);
48183
+ deviceKey: string(),
48184
+ modelId: string()
48185
+ }), object({
48186
+ kind: literal("custom-registry-unreadable"),
48187
+ error: string()
48188
+ })]);
48186
48189
  var AutoTuneOptionsSchema = object({
48187
48190
  /** Share of each accelerator's throughput kept free (0.3–0.5). */
48188
48191
  headroom: number().min(.3).max(.5).default(.4),
@@ -48204,8 +48207,6 @@ var AutoTunePlanSchema = object({
48204
48207
  generatedAt: number(),
48205
48208
  nodes: array(NodeRecommendationSchema).readonly(),
48206
48209
  nodeChanges: array(NodeDeviceChangeSchema).readonly(),
48207
- cameraClears: array(CameraOverrideClearSchema).readonly(),
48208
- detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
48209
48210
  warnings: array(AutoTuneWarningSchema).readonly()
48210
48211
  });
48211
48212
  var AutoTuneApplyInputSchema = object({
@@ -48216,8 +48217,6 @@ var AutoTuneApplyInputSchema = object({
48216
48217
  var AutoTunePhaseResultSchema = object({
48217
48218
  phase: _enum([
48218
48219
  "download",
48219
- "camera-overrides",
48220
- "detector-thresholds",
48221
48220
  "node-models",
48222
48221
  "redispatch"
48223
48222
  ]),
@@ -49928,6 +49927,12 @@ var AgentPipelineSettingsSchema = object({
49928
49927
  /** Hub-persisted UI colour (`--color-node-*` theme tokens). */
49929
49928
  color: NodeColorIdSchema.optional(),
49930
49929
  /**
49930
+ * NODE-wide step settings (D927): `stepId → { key → value }`, applied on
49931
+ * every accelerator of the node under the device's own settings. Never a
49932
+ * model or a model-bound threshold. Written by `setNodeStepSettings`.
49933
+ */
49934
+ stepSettings: record(string(), record(string(), unknown()).readonly()).optional(),
49935
+ /**
49931
49936
  * Multi-device inference opt-in (Phase 4). Per-node map deviceKey → {enabled,
49932
49937
  * weight, steps}. Absent / all-disabled ⇒ the node's single default
49933
49938
  * accelerator (safe default); two+ enabled ⇒ the dispatcher balances
@@ -49943,17 +49948,6 @@ var AgentPipelineSettingsSchema = object({
49943
49948
  steps: record(string(), DeviceStepConfigSchema).optional()
49944
49949
  })).optional()
49945
49950
  });
49946
- var CameraPipelineForAgentSchema = object({
49947
- steps: array(PipelineStepInputSchema).readonly(),
49948
- audio: object({
49949
- modelId: string(),
49950
- enabled: boolean()
49951
- }).nullable()
49952
- });
49953
- var CameraStepOverridePatchSchema = object({
49954
- modelId: string().optional(),
49955
- settings: record(string(), unknown()).readonly().optional()
49956
- });
49957
49951
  var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
49958
49952
  /** The three root-detector choices a camera has (D507: at most one root). */
49959
49953
  var CameraDetectionSourceSchema = _enum([
@@ -49963,9 +49957,7 @@ var CameraDetectionSourceSchema = _enum([
49963
49957
  ]);
49964
49958
  var CameraPipelineSettingsSchema = object({
49965
49959
  stepToggles: record(string(), boolean()).optional(),
49966
- stepSettings: CameraStepSettingsSchema.optional(),
49967
- stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
49968
- pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
49960
+ stepSettings: CameraStepSettingsSchema.optional()
49969
49961
  });
49970
49962
  /**
49971
49963
  * Pipeline placement record persisted by `addon-pipeline-orchestrator` via
@@ -50511,6 +50503,13 @@ method(object({
50511
50503
  }), object({ success: literal(true) }), {
50512
50504
  kind: "mutation",
50513
50505
  auth: "admin"
50506
+ }), method(object({
50507
+ agentNodeId: string(),
50508
+ addonId: string(),
50509
+ settings: record(string(), unknown()).nullable()
50510
+ }), object({ success: literal(true) }), {
50511
+ kind: "mutation",
50512
+ auth: "admin"
50514
50513
  }), method(object({ nodeId: string() }), NodeInferenceDevicesSchema), method(object({
50515
50514
  agentNodeId: string(),
50516
50515
  deviceKey: string()
@@ -50520,9 +50519,7 @@ method(object({
50520
50519
  }), method(object({ agentNodeId: string() }), object({
50521
50520
  success: literal(true),
50522
50521
  /** Hardware-aware default detection model now in effect on the node (null when unresolvable). */
50523
- effectiveModelId: string().nullable(),
50524
- /** Number of cameras whose node-scoped overrides were cleared. */
50525
- clearedCameraOverrides: number()
50522
+ effectiveModelId: string().nullable()
50526
50523
  }), {
50527
50524
  kind: "mutation",
50528
50525
  auth: "admin"
@@ -50577,15 +50574,6 @@ method(object({
50577
50574
  }), object({ success: literal(true) }), {
50578
50575
  kind: "mutation",
50579
50576
  auth: "admin"
50580
- }), method(object({ deviceId: number() }), record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).nullable()), method(object({
50581
- deviceId: number(),
50582
- agentNodeId: string(),
50583
- deviceKey: string(),
50584
- addonId: string(),
50585
- patch: CameraStepOverridePatchSchema.nullable()
50586
- }), object({ success: literal(true) }), {
50587
- kind: "mutation",
50588
- auth: "admin"
50589
50577
  }), method(object({
50590
50578
  deviceId: number(),
50591
50579
  addonId: string(),
@@ -50593,13 +50581,6 @@ method(object({
50593
50581
  }), object({ success: literal(true) }), {
50594
50582
  kind: "mutation",
50595
50583
  auth: "admin"
50596
- }), method(object({
50597
- deviceId: number(),
50598
- agentNodeId: string(),
50599
- pipeline: CameraPipelineForAgentSchema.nullable()
50600
- }), object({ success: literal(true) }), {
50601
- kind: "mutation",
50602
- auth: "admin"
50603
50584
  }), method(object({
50604
50585
  deviceId: number(),
50605
50586
  agentNodeId: string().optional()
@@ -58413,6 +58394,30 @@ includeCrops: boolean().optional() }).optional(), array(VehicleSchema).readonly(
58413
58394
  kind: "mutation",
58414
58395
  auth: "admin"
58415
58396
  });
58397
+ var CORE_ULTRA_265K_IGPU_CLOCK_MHZ = 2e3;
58398
+ var positiveOrNull = number().nullable().transform((value) => value !== null && Number.isFinite(value) && value > 0 ? value : null);
58399
+ var textOrNull = string().nullable().transform((value) => value !== null && value.trim() !== "" ? value : null);
58400
+ var PrecisionGopsSchema = object({
58401
+ int8: positiveOrNull,
58402
+ fp16: positiveOrNull
58403
+ });
58404
+ /** What one accelerator device reported. Every failed query is null. */
58405
+ var AcceleratorComputeSchema = object({
58406
+ deviceKey: string(),
58407
+ fullDeviceName: textOrNull,
58408
+ executionUnits: positiveOrNull,
58409
+ clockMHz: positiveOrNull,
58410
+ gops: PrecisionGopsSchema.nullable(),
58411
+ architecture: textOrNull,
58412
+ npuName: textOrNull,
58413
+ tops: positiveOrNull,
58414
+ vendor: textOrNull,
58415
+ webgpuArchitecture: textOrNull,
58416
+ webgpuDevice: textOrNull,
58417
+ computeUnits: positiveOrNull
58418
+ });
58419
+ object({ accelerators: array(AcceleratorComputeSchema).nullable() });
58420
+ 64 * CORE_ULTRA_265K_IGPU_CLOCK_MHZ;
58416
58421
  var ModelFormatSchema = _enum(MODEL_FORMATS);
58417
58422
  var HwAccelBackendInputSchema = _enum([
58418
58423
  "videotoolbox",
@@ -58526,7 +58531,12 @@ var HardwareInfoSchema = object({
58526
58531
  availableRAM_MB: number(),
58527
58532
  gpu: GpuInfoSchema.nullable(),
58528
58533
  npu: NpuInfoSchema.nullable(),
58529
- coral: CoralInfoSchema.nullable().optional()
58534
+ coral: CoralInfoSchema.nullable().optional(),
58535
+ /**
58536
+ * Per-accelerator compute (D930). Omitted by a node that has not probed it.
58537
+ * `null` fields inside an entry are a failed query, never a zero.
58538
+ */
58539
+ accelerators: array(AcceleratorComputeSchema).readonly().optional()
58530
58540
  });
58531
58541
  var PlatformScoreSchema = object({
58532
58542
  runtime: literal("python"),
@@ -60898,7 +60908,20 @@ var ZoneRuleSchema = object({
60898
60908
  * Defaults to `true` so operators creating a rule via the UI
60899
60909
  * see it active immediately.
60900
60910
  */
60901
- enabled: boolean().default(true)
60911
+ enabled: boolean().default(true),
60912
+ /**
60913
+ * Package stage only. When true, a package candidate may open from a
60914
+ * scene difference in this rule's zone after a person leaves. The
60915
+ * package model, when it boxes something overlapping, is extra evidence
60916
+ * and is not the gate. Absent or false keeps today's model path.
60917
+ */
60918
+ detectBySceneDifference: boolean().optional(),
60919
+ /**
60920
+ * Package stage only. When true, a promoted package is shown to the
60921
+ * `llm` cap before the delivery event is emitted. Absent or false emits
60922
+ * as today. Usable with or without `detectBySceneDifference`.
60923
+ */
60924
+ confirmWithLlm: boolean().optional()
60902
60925
  });
60903
60926
  array(ZoneRuleSchema).readonly();
60904
60927
  object({
@@ -62531,7 +62554,7 @@ method(object({}), array(TrainingProviderDescriptorSchema).readonly(), { auth: "
62531
62554
  * - **Jobs.** A persisted state machine, a reconcile loop against the
62532
62555
  * provider, a cost guard, a daily orphan sweep and the retention rules.
62533
62556
  * - **The return flow.** Verified artefacts → Model Studio
62534
- * (`custom-model-registry.importModelBundle`) → canary on cameras →
62557
+ * (`custom-model-registry.importModelBundle`) → canary on accelerators →
62535
62558
  * rollback. Nothing is ever registered automatically.
62536
62559
  *
62537
62560
  * Plan/start takes a live {@link TrainingCorpusSelection} (collections +
@@ -62668,20 +62691,24 @@ var TrainingProgressPointSchema = object({
62668
62691
  map50: number().nullable(),
62669
62692
  map50_95: number().nullable()
62670
62693
  });
62694
+ /** One accelerator: a `(node, inference device)` that runs the root detector. */
62695
+ var TrainingAcceleratorRefSchema = object({
62696
+ nodeId: string(),
62697
+ deviceKey: string()
62698
+ });
62699
+ /**
62700
+ * A canary pins the registered model on chosen ACCELERATORS — a model is
62701
+ * chosen by the accelerator that runs it (D927); every camera balanced onto
62702
+ * one runs it. `previous` is the root-detector pin each one had (`null` = it
62703
+ * ran its default), exactly, so rollback restores it.
62704
+ */
62671
62705
  var TrainingCanarySchema = object({
62672
- deviceIds: array(number().int()).readonly(),
62706
+ accelerators: array(TrainingAcceleratorRefSchema).readonly(),
62673
62707
  since: number(),
62674
- /** Every override the canary replaced, exactly, so rollback restores it. */
62675
- previous: array(object({
62676
- deviceId: number().int(),
62677
- nodeId: string(),
62678
- deviceKey: string(),
62679
- patch: object({
62680
- modelId: string().optional(),
62681
- settings: record(string(), unknown()).readonly().optional()
62682
- }).nullable()
62683
- })).readonly()
62708
+ previous: array(TrainingAcceleratorRefSchema.extend({ modelId: string().nullable() })).readonly()
62684
62709
  });
62710
+ /** An accelerator a canary may pin: it runs the root detector, on this model now. */
62711
+ var TrainingCanaryTargetSchema = TrainingAcceleratorRefSchema.extend({ pinnedModelId: string().nullable() });
62685
62712
  var TrainingJobSchema = object({
62686
62713
  id: string(),
62687
62714
  idempotencyKey: string(),
@@ -62793,11 +62820,11 @@ method(object({}), array(TrainingBaseModelSchema).readonly(), { auth: "admin" })
62793
62820
  kind: "mutation",
62794
62821
  auth: "admin",
62795
62822
  timeoutMs: 12e4
62796
- }), method(IdInput, TrainingResultSchema.nullable(), { auth: "admin" }), method(IdInput.extend({ canaryDeviceIds: array(number().int()).readonly() }), TrainingJobSchema, {
62823
+ }), method(IdInput, TrainingResultSchema.nullable(), { auth: "admin" }), method(_void(), array(TrainingCanaryTargetSchema).readonly(), { auth: "admin" }), method(IdInput.extend({ canaryAccelerators: array(TrainingAcceleratorRefSchema).readonly() }), TrainingJobSchema, {
62797
62824
  kind: "mutation",
62798
62825
  auth: "admin",
62799
62826
  timeoutMs: 30 * 6e4
62800
- }), method(IdInput.extend({ deviceIds: array(number().int()).min(1).readonly() }), TrainingJobSchema, {
62827
+ }), method(IdInput.extend({ accelerators: array(TrainingAcceleratorRefSchema).min(1).readonly() }), TrainingJobSchema, {
62801
62828
  kind: "mutation",
62802
62829
  auth: "admin",
62803
62830
  timeoutMs: 12e4
@@ -68728,20 +68755,6 @@ Object.freeze({
68728
68755
  access: "create",
68729
68756
  role: "admin"
68730
68757
  },
68731
- "pipelineExecutor.clearDeviceOverrides": {
68732
- capName: "pipeline-executor",
68733
- capScope: "system",
68734
- addonId: null,
68735
- access: "delete",
68736
- role: "admin"
68737
- },
68738
- "pipelineExecutor.clearModelBoundDeviceOverrides": {
68739
- capName: "pipeline-executor",
68740
- capScope: "system",
68741
- addonId: null,
68742
- access: "delete",
68743
- role: "admin"
68744
- },
68745
68758
  "pipelineExecutor.deleteModel": {
68746
68759
  capName: "pipeline-executor",
68747
68760
  capScope: "system",
@@ -68784,13 +68797,6 @@ Object.freeze({
68784
68797
  access: "view",
68785
68798
  role: "admin"
68786
68799
  },
68787
- "pipelineExecutor.getDefaultSteps": {
68788
- capName: "pipeline-executor",
68789
- capScope: "system",
68790
- addonId: null,
68791
- access: "view",
68792
- role: "admin"
68793
- },
68794
68800
  "pipelineExecutor.getDetectionConfigSchema": {
68795
68801
  capName: "pipeline-executor",
68796
68802
  capScope: "system",
@@ -68812,20 +68818,6 @@ Object.freeze({
68812
68818
  access: "view",
68813
68819
  role: "admin"
68814
68820
  },
68815
- "pipelineExecutor.getGlobalPipelineConfig": {
68816
- capName: "pipeline-executor",
68817
- capScope: "system",
68818
- addonId: null,
68819
- access: "view",
68820
- role: "admin"
68821
- },
68822
- "pipelineExecutor.getGlobalSteps": {
68823
- capName: "pipeline-executor",
68824
- capScope: "system",
68825
- addonId: null,
68826
- access: "view",
68827
- role: "admin"
68828
- },
68829
68821
  "pipelineExecutor.getInferenceDeviceHealth": {
68830
68822
  capName: "pipeline-executor",
68831
68823
  capScope: "system",
@@ -69085,13 +69077,6 @@ Object.freeze({
69085
69077
  access: "view",
69086
69078
  role: "admin"
69087
69079
  },
69088
- "pipelineOrchestrator.getCameraStepOverrides": {
69089
- capName: "pipeline-orchestrator",
69090
- capScope: "system",
69091
- addonId: null,
69092
- access: "view",
69093
- role: "admin"
69094
- },
69095
69080
  "pipelineOrchestrator.getCameraSwitches": {
69096
69081
  capName: "pipeline-orchestrator",
69097
69082
  capScope: "system",
@@ -69330,13 +69315,6 @@ Object.freeze({
69330
69315
  access: "create",
69331
69316
  role: "admin"
69332
69317
  },
69333
- "pipelineOrchestrator.setCameraPipelineForAgent": {
69334
- capName: "pipeline-orchestrator",
69335
- capScope: "system",
69336
- addonId: null,
69337
- access: "create",
69338
- role: "admin"
69339
- },
69340
69318
  "pipelineOrchestrator.setCameraSensors": {
69341
69319
  capName: "pipeline-orchestrator",
69342
69320
  capScope: "system",
@@ -69344,42 +69322,42 @@ Object.freeze({
69344
69322
  access: "create",
69345
69323
  role: "admin"
69346
69324
  },
69347
- "pipelineOrchestrator.setCameraStepOverride": {
69325
+ "pipelineOrchestrator.setCameraStepSettings": {
69348
69326
  capName: "pipeline-orchestrator",
69349
69327
  capScope: "system",
69350
69328
  addonId: null,
69351
69329
  access: "create",
69352
69330
  role: "admin"
69353
69331
  },
69354
- "pipelineOrchestrator.setCameraStepSettings": {
69332
+ "pipelineOrchestrator.setCameraStepToggle": {
69355
69333
  capName: "pipeline-orchestrator",
69356
69334
  capScope: "system",
69357
69335
  addonId: null,
69358
69336
  access: "create",
69359
69337
  role: "admin"
69360
69338
  },
69361
- "pipelineOrchestrator.setCameraStepToggle": {
69339
+ "pipelineOrchestrator.setCameraSwitch": {
69362
69340
  capName: "pipeline-orchestrator",
69363
69341
  capScope: "system",
69364
69342
  addonId: null,
69365
69343
  access: "create",
69366
69344
  role: "admin"
69367
69345
  },
69368
- "pipelineOrchestrator.setCameraSwitch": {
69346
+ "pipelineOrchestrator.setCapabilityBinding": {
69369
69347
  capName: "pipeline-orchestrator",
69370
69348
  capScope: "system",
69371
69349
  addonId: null,
69372
69350
  access: "create",
69373
69351
  role: "admin"
69374
69352
  },
69375
- "pipelineOrchestrator.setCapabilityBinding": {
69353
+ "pipelineOrchestrator.setLoadBalancingShares": {
69376
69354
  capName: "pipeline-orchestrator",
69377
69355
  capScope: "system",
69378
69356
  addonId: null,
69379
69357
  access: "create",
69380
69358
  role: "admin"
69381
69359
  },
69382
- "pipelineOrchestrator.setLoadBalancingShares": {
69360
+ "pipelineOrchestrator.setNodeStepSettings": {
69383
69361
  capName: "pipeline-orchestrator",
69384
69362
  capScope: "system",
69385
69363
  addonId: null,
@@ -71738,6 +71716,13 @@ Object.freeze({
71738
71716
  access: "view",
71739
71717
  role: "admin"
71740
71718
  },
71719
+ "training.listCanaryTargets": {
71720
+ capName: "training",
71721
+ capScope: "system",
71722
+ addonId: null,
71723
+ access: "view",
71724
+ role: "admin"
71725
+ },
71741
71726
  "training.listJobs": {
71742
71727
  capName: "training",
71743
71728
  capScope: "system",
@@ -78124,11 +78109,6 @@ Object.freeze({
78124
78109
  form: "single",
78125
78110
  optional: false
78126
78111
  }],
78127
- "pipelineExecutor.clearModelBoundDeviceOverrides": [{
78128
- name: "deviceIds",
78129
- form: "array",
78130
- optional: true
78131
- }],
78132
78112
  "pipelineExecutor.runPipeline": [{
78133
78113
  name: "deviceId",
78134
78114
  form: "single",
@@ -78184,11 +78164,6 @@ Object.freeze({
78184
78164
  form: "array",
78185
78165
  optional: true
78186
78166
  }],
78187
- "pipelineOrchestrator.getCameraStepOverrides": [{
78188
- name: "deviceId",
78189
- form: "single",
78190
- optional: false
78191
- }],
78192
78167
  "pipelineOrchestrator.getCameraSwitches": [{
78193
78168
  name: "deviceId",
78194
78169
  form: "single",
@@ -78229,21 +78204,11 @@ Object.freeze({
78229
78204
  form: "single",
78230
78205
  optional: false
78231
78206
  }],
78232
- "pipelineOrchestrator.setCameraPipelineForAgent": [{
78233
- name: "deviceId",
78234
- form: "single",
78235
- optional: false
78236
- }],
78237
78207
  "pipelineOrchestrator.setCameraSensors": [{
78238
78208
  name: "deviceId",
78239
78209
  form: "single",
78240
78210
  optional: false
78241
78211
  }],
78242
- "pipelineOrchestrator.setCameraStepOverride": [{
78243
- name: "deviceId",
78244
- form: "single",
78245
- optional: false
78246
- }],
78247
78212
  "pipelineOrchestrator.setCameraStepSettings": [{
78248
78213
  name: "deviceId",
78249
78214
  form: "single",
@@ -78921,11 +78886,6 @@ Object.freeze({
78921
78886
  form: "single",
78922
78887
  optional: false
78923
78888
  }],
78924
- "training.canaryResult": [{
78925
- name: "deviceIds",
78926
- form: "array",
78927
- optional: false
78928
- }],
78929
78889
  "update.getStatus": [{
78930
78890
  name: "deviceId",
78931
78891
  form: "single",
@@ -80253,6 +80213,10 @@ TimelapseRuleInputSchema.extend({
80253
80213
  updatedAt: number()
80254
80214
  });
80255
80215
  MotionOnMotionChangedDataSchema.omit({ triggeredBy: true });
80216
+ Object.freeze({
80217
+ person: .8,
80218
+ vehicle: .8
80219
+ });
80256
80220
  object({
80257
80221
  /**
80258
80222
  * Fraction of the box's own size added on EACH side before cutting.
@@ -87342,7 +87306,7 @@ function buildRoutes(deps) {
87342
87306
  method: "POST",
87343
87307
  path: "/oauth/broker-link",
87344
87308
  access: "public",
87345
- description: "Lambda → hub broker link (D753): broker URL + per-link credential + first access token; bearer-authenticated via oauth-access token",
87309
+ description: "Lambda → hub broker link: broker URL + per-link credential + first access token; bearer-authenticated via oauth-access token",
87346
87310
  handler: async (req, reply) => {
87347
87311
  if (ingressRejected(req, reply, deps, "alexa broker-link")) return;
87348
87312
  await handleBrokerLinkCallback(req, reply, deps.lwaTokensCallbackDeps);