@camstack/addon-smtp-nodemailer 1.2.25 → 1.2.27

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.
@@ -5838,6 +5838,13 @@ var BaseAddon = class {
5838
5838
  _readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
5839
5839
  /** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
5840
5840
  _registeredCapNames = [];
5841
+ /**
5842
+ * True only after `readAddonStore` actually answered. Constructor
5843
+ * defaults look like stored config when the store is down — a forked
5844
+ * addon that auto-starts from those defaults (cloudflare-tunnel quick
5845
+ * mode, 2026-08-25) is not "the operator chose this".
5846
+ */
5847
+ settingsStoreReady = false;
5841
5848
  /** Default config values. Provided via constructor. */
5842
5849
  defaults;
5843
5850
  constructor(defaults) {
@@ -6238,7 +6245,9 @@ var BaseAddon = class {
6238
6245
  ];
6239
6246
  let lastErr;
6240
6247
  for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
6241
- return await settings.readAddonStore() ?? {};
6248
+ const stored = await settings.readAddonStore() ?? {};
6249
+ this.settingsStoreReady = true;
6250
+ return stored;
6242
6251
  } catch (err) {
6243
6252
  lastErr = err;
6244
6253
  const msg = err instanceof Error ? err.message : String(err);
@@ -6246,6 +6255,7 @@ var BaseAddon = class {
6246
6255
  if (attempt === delaysMs.length) break;
6247
6256
  await new Promise((r) => setTimeout(r, delaysMs[attempt]));
6248
6257
  }
6258
+ this.settingsStoreReady = false;
6249
6259
  this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
6250
6260
  return {};
6251
6261
  }
@@ -8041,6 +8051,15 @@ var LabelDefinitionSchema = object({
8041
8051
  description: string().optional(),
8042
8052
  icon: string().optional()
8043
8053
  });
8054
+ var ClassMapDefinitionSchema = object({
8055
+ mapping: record(string(), _enum([
8056
+ "person",
8057
+ "vehicle",
8058
+ "animal",
8059
+ "package"
8060
+ ])),
8061
+ preserveOriginal: boolean()
8062
+ });
8044
8063
  var MODEL_FORMATS = [
8045
8064
  "onnx",
8046
8065
  "coreml",
@@ -8124,6 +8143,12 @@ var ModelVariantGroupSchema = object({
8124
8143
  */
8125
8144
  resolution: number().int().positive().optional()
8126
8145
  });
8146
+ var ModelProviderIdSchema = _enum([
8147
+ "camstack",
8148
+ "frigate",
8149
+ "scrypted",
8150
+ "custom"
8151
+ ]);
8127
8152
  var ModelCatalogEntrySchema = object({
8128
8153
  id: string(),
8129
8154
  name: string(),
@@ -8219,7 +8244,19 @@ var ModelCatalogEntrySchema = object({
8219
8244
  * `id` stays the source of truth for resolution/download/persistence; grouping
8220
8245
  * is a presentation overlay resolved back to an `id`.
8221
8246
  */
8222
- group: ModelVariantGroupSchema.optional()
8247
+ group: ModelVariantGroupSchema.optional(),
8248
+ /**
8249
+ * Catalog source for the pipeline stepper's provider-first picker. Absent on
8250
+ * built-in CamStack entries (treated as `camstack`) and on registry rows
8251
+ * persisted before this field existed (`inferModelProvider` fills those).
8252
+ */
8253
+ provider: ModelProviderIdSchema.optional(),
8254
+ /**
8255
+ * Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
8256
+ * applies (Frigate / COCO public catalog). Set on a custom model whose raw
8257
+ * labels already ARE the CamStack macros (Scrypted identity map).
8258
+ */
8259
+ classMap: ClassMapDefinitionSchema.optional()
8223
8260
  });
8224
8261
  var ConvertTargetSchema = discriminatedUnion("format", [object({
8225
8262
  format: literal("openvino"),
@@ -8248,7 +8285,8 @@ var ModelConvertMetadataSchema = object({
8248
8285
  "ocr",
8249
8286
  "segmentation"
8250
8287
  ]),
8251
- faceAlignment: boolean().optional()
8288
+ faceAlignment: boolean().optional(),
8289
+ classMap: ClassMapDefinitionSchema.optional()
8252
8290
  });
8253
8291
  var ConvertResultSchema = object({
8254
8292
  entry: ModelCatalogEntrySchema,
@@ -11741,6 +11779,27 @@ var LinkedDeviceSchema = object({
11741
11779
  features: array(string()),
11742
11780
  producesTrackedEvents: boolean().optional()
11743
11781
  });
11782
+ /** One camera's resolved linked set, tagged with the camera it belongs to.
11783
+ * The batch answer needs the tag; the single-device answer already has it
11784
+ * from the input, which is why `getLinkedDevices` keeps the untagged shape. */
11785
+ var LinkedDevicesForDeviceSchema = object({
11786
+ deviceId: number(),
11787
+ mode: LinkedDevicesModeSchema,
11788
+ devices: array(LinkedDeviceSchema)
11789
+ });
11790
+ /** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
11791
+ * `getAllBindings` all answer in. Declared once: three copies of the same
11792
+ * object literal is exactly how the three drift apart. */
11793
+ var DeviceBindingsForDeviceSchema = object({
11794
+ deviceId: number(),
11795
+ entries: array(object({
11796
+ capName: string(),
11797
+ kind: _enum(["native", "wrapped"]),
11798
+ providerAddonId: string(),
11799
+ providerNodeId: string(),
11800
+ nativeAddonId: string()
11801
+ }))
11802
+ });
11744
11803
  var SavedDeviceRowSchema = object({
11745
11804
  /** Numeric id reserved at allocateDeviceId time. */
11746
11805
  id: number(),
@@ -11966,11 +12025,25 @@ method(object({
11966
12025
  projection: _enum(["full", "slim"]).optional(),
11967
12026
  /** Return only camera devices. Filtering server-side instead of
11968
12027
  * shipping 293 rows to find 12. */
11969
- isCamera: boolean().optional()
12028
+ isCamera: boolean().optional(),
12029
+ /**
12030
+ * Return only these device ids. For the caller that already KNOWS the
12031
+ * handful it wants and needs a field the id-bearing answer does not
12032
+ * carry — the viewer's linked-devices panel joins `type` and `online`
12033
+ * onto ~8 linked ids and, unfiltered, dragged the fleet across to do
12034
+ * it: 433 KB slim / 958 KB full for 967 devices, on a query that
12035
+ * refetches on the reconcile interval, on a phone.
12036
+ *
12037
+ * Safe to send at a hub that predates it: Zod STRIPS unknown input
12038
+ * keys rather than rejecting them (verified against the live hub
12039
+ * 2026-08-25 — 967 rows came back), so an old hub answers exactly what
12040
+ * it answers today and the caller filters as it already does.
12041
+ */
12042
+ deviceIds: array(number()).optional()
11970
12043
  }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
11971
12044
  mode: LinkedDevicesModeSchema,
11972
12045
  devices: array(LinkedDeviceSchema)
11973
- })), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
12046
+ })), method(object({ deviceIds: array(number()) }), array(LinkedDevicesForDeviceSchema)), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
11974
12047
  deviceId: number(),
11975
12048
  values: record(string(), unknown())
11976
12049
  }), object({ success: literal(true) }), {
@@ -11997,25 +12070,7 @@ method(object({
11997
12070
  }), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
11998
12071
  kind: "mutation",
11999
12072
  auth: "admin"
12000
- }), method(object({ deviceId: number() }), object({
12001
- deviceId: number(),
12002
- entries: array(object({
12003
- capName: string(),
12004
- kind: _enum(["native", "wrapped"]),
12005
- providerAddonId: string(),
12006
- providerNodeId: string(),
12007
- nativeAddonId: string()
12008
- }))
12009
- })), method(object({}), array(object({
12010
- deviceId: number(),
12011
- entries: array(object({
12012
- capName: string(),
12013
- kind: _enum(["native", "wrapped"]),
12014
- providerAddonId: string(),
12015
- providerNodeId: string(),
12016
- nativeAddonId: string()
12017
- }))
12018
- }))), method(object({
12073
+ }), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
12019
12074
  deviceId: number(),
12020
12075
  capName: string(),
12021
12076
  wrapperAddonId: string(),
@@ -14387,12 +14442,15 @@ var NcOccupancyConditionSchema = object({
14387
14442
  * there is no second switch that can disagree with the first and every rule
14388
14443
  * authored before the decision migrates for free (`audioModeOf`):
14389
14444
  *
14390
- * - **LABEL mode — `labels` present.** The rule fires on the FIRST frame the
14391
- * classifier labels with one of them. No window, no percentage:
14392
- * `hitPercent` and `samplingSeconds` are ignored, and the rule's own
14393
- * `throttle` cooldown is the only brake. The per-label confidence floor is
14394
- * the analyzer's (`classificationMinScore`, per device) a label only
14395
- * reaches this condition if the classifier was already confident enough.
14445
+ * - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
14446
+ * labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
14447
+ * `hitPercent` and `samplingSeconds` are still ignored a percentage of
14448
+ * frames is the wrong question for a classifier that labels 1–3 frames
14449
+ * per episode. The count window is the brake that drops a single-frame
14450
+ * false positive; the rule's own `throttle` cooldown is the other. The
14451
+ * per-label confidence floor is the analyzer's (`classificationMinScore`,
14452
+ * per device) — a label only reaches this condition if the classifier was
14453
+ * already confident enough. `confirmHits: 1` restores first-frame fire.
14396
14454
  * - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
14397
14455
  * the condition: at least `hitPercent`% of the samples over
14398
14456
  * `samplingSeconds` must be at or above `dbThreshold` dBFS (see
@@ -14419,14 +14477,22 @@ var NcOccupancyConditionSchema = object({
14419
14477
  * an operator who typed `dog` mean the same thing.
14420
14478
  */
14421
14479
  var NcAudioConditionSchema = object({
14422
- /** LABEL MODE: audio macro labels. Present ⇒ fires on the first labelled frame. */
14480
+ /** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
14423
14481
  labels: array(string().min(1)).min(1).optional(),
14424
14482
  /** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
14425
14483
  dbThreshold: number().min(-96).max(0).optional(),
14426
14484
  /** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
14427
14485
  hitPercent: number().int().min(1).max(100).default(60),
14428
14486
  /** LEVEL MODE ONLY: length of the sampling window in seconds. */
14429
- samplingSeconds: number().int().min(1).max(300).default(10)
14487
+ samplingSeconds: number().int().min(1).max(300).default(10),
14488
+ /**
14489
+ * LABEL MODE: how many labelled frames must land inside
14490
+ * {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
14491
+ * Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
14492
+ */
14493
+ confirmHits: number().int().min(1).max(20).optional(),
14494
+ /** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
14495
+ confirmWindowSec: number().int().min(1).max(60).optional()
14430
14496
  });
14431
14497
  /**
14432
14498
  * Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
@@ -16800,6 +16866,46 @@ var RecentTracksPageSchema = object({
16800
16866
  /** Cursor for the next page, or null when this page is the last. */
16801
16867
  nextCursor: string().nullable()
16802
16868
  });
16869
+ var LIST_GROUPS_DEFAULT_LIMIT = 40;
16870
+ var LIST_GROUPS_MAX_LIMIT = 100;
16871
+ var AnalyticsGroupRecordSchema = object({
16872
+ id: string(),
16873
+ deviceId: number().int(),
16874
+ openedAt: number().int(),
16875
+ closedAt: number().int(),
16876
+ timestamp: number().int(),
16877
+ memberCount: number().int(),
16878
+ memberTrackIds: array(string()).readonly(),
16879
+ className: string(),
16880
+ classes: array(string()).readonly(),
16881
+ /** Relative event-media path, or null when the group has no picture yet. */
16882
+ mediaUrl: string().nullable(),
16883
+ singleton: boolean()
16884
+ });
16885
+ var AnalyticsGroupMemberSchema = object({
16886
+ trackId: string(),
16887
+ deviceId: number().int(),
16888
+ className: string(),
16889
+ firstSeen: number().int(),
16890
+ lastSeen: number().int(),
16891
+ mediaUrl: string().nullable()
16892
+ });
16893
+ var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
16894
+ var ListGroupsQueryInput = object({
16895
+ /** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
16896
+ deviceIds: array(number()),
16897
+ /** Window lower bound on `closedAt` (inclusive). */
16898
+ since: number().optional(),
16899
+ /** Window upper bound on `openedAt` (inclusive). */
16900
+ until: number().optional(),
16901
+ limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
16902
+ /** Opaque continuation cursor from a previous page's `nextCursor`. */
16903
+ cursor: string().optional()
16904
+ });
16905
+ var ListGroupsPageSchema = object({
16906
+ groups: array(AnalyticsGroupRecordSchema).readonly(),
16907
+ nextCursor: string().nullable()
16908
+ });
16803
16909
  var KeyEventQueryInput = object({
16804
16910
  deviceId: number(),
16805
16911
  /** Window lower bound (track firstSeen ≥ since). */
@@ -16875,7 +16981,9 @@ var TrackCascadeCountsSchema = object({
16875
16981
  /** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
16876
16982
  plates: number().int(),
16877
16983
  /** Per-track CLIP search vectors removed (best-effort). */
16878
- embeddings: number().int()
16984
+ embeddings: number().int(),
16985
+ /** Group membership + group rows removed with their last member (best-effort). */
16986
+ groups: number().int()
16879
16987
  });
16880
16988
  /** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
16881
16989
  var DiskReconcileCountsSchema = object({
@@ -17021,7 +17129,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
17021
17129
  * stationary registry). Default false: the timeline lists passages,
17022
17130
  * not parking records (operator decision, 2026-08-15). */
17023
17131
  includeStationary: boolean().optional()
17024
- }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(object({ deviceId: number() }), _void(), {
17132
+ }), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
17133
+ deviceId: number(),
17134
+ groupId: string().min(1)
17135
+ }), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
17025
17136
  kind: "mutation",
17026
17137
  auth: "admin"
17027
17138
  }), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({ deviceIds: array(number()).min(1).max(200) }), array(EventKindsForDeviceSchema).readonly()), method(object({
@@ -17239,6 +17350,33 @@ var NativeCropRefSchema = object({
17239
17350
  h: number()
17240
17351
  })
17241
17352
  });
17353
+ object({
17354
+ crop: object({
17355
+ left: number(),
17356
+ top: number(),
17357
+ width: number().positive(),
17358
+ height: number().positive()
17359
+ }).optional(),
17360
+ content: object({
17361
+ width: number().int().positive(),
17362
+ height: number().int().positive()
17363
+ }),
17364
+ fit: _enum(["stretch", "contain"]),
17365
+ format: _enum([
17366
+ "rgb",
17367
+ "gray",
17368
+ "jpeg"
17369
+ ])
17370
+ });
17371
+ var FrameRefSchema = object({
17372
+ registryId: string().min(1),
17373
+ id: string().min(1),
17374
+ width: number().int().positive(),
17375
+ height: number().int().positive(),
17376
+ format: _enum(["rgb", "gray"]),
17377
+ timestamp: number(),
17378
+ capturedAt: number().optional()
17379
+ });
17242
17380
  var ModelFormatSchema$1 = _enum([
17243
17381
  "onnx",
17244
17382
  "coreml",
@@ -17304,7 +17442,8 @@ var PipelineModelOptionSchema = object({
17304
17442
  sizeMB: number()
17305
17443
  })),
17306
17444
  group: ModelVariantGroupSchema.optional(),
17307
- legacy: boolean().optional()
17445
+ legacy: boolean().optional(),
17446
+ provider: ModelProviderIdSchema.optional()
17308
17447
  });
17309
17448
  var ConfigFieldBridge = custom();
17310
17449
  var PipelineAddonSchemaSchema = object({
@@ -17483,6 +17622,12 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
17483
17622
  steps: array(PipelineStepInputSchema).min(1),
17484
17623
  frame: FrameInputSchema.optional(),
17485
17624
  /**
17625
+ * Process-local lazy frame. Valid only when caller and provider resolve
17626
+ * in the same execution-group process; split/cross-node callers use
17627
+ * `frame`/`image` inline compatibility instead.
17628
+ */
17629
+ frameRef: FrameRefSchema.optional(),
17630
+ /**
17486
17631
  * CB5 shm passthrough — a `FrameHandle` naming the same ring slot
17487
17632
  * the decoded pixels live in. One more member of the one-of
17488
17633
  * frame/frameHandle/image/imageBase64/referenceImage group.
@@ -17738,7 +17883,10 @@ var NativeCropResultSchema = object({
17738
17883
  * Which source served this crop, so a quality-sensitive consumer (the native
17739
17884
  * `keyFrame`) can reject a degraded fallback:
17740
17885
  * - `native` — cut from the decode worker's retained NATIVE surface (the
17741
- * quality path).
17886
+ * quality path). A subject-tile serve is also native-resolution and stays
17887
+ * `native` here: the public enum cannot name `tile` without a breaking cap
17888
+ * change. Runner telemetry distinguishes lease vs tile via `source` on the
17889
+ * internal crop result (`nativeHits` vs `tileHits`).
17742
17890
  * - `ram-fullframe` — the native surface MISSED but the request was full-frame,
17743
17891
  * so the ≤640 RAM `RetainedFrameStore` served it (honest lower-res; legit for
17744
17892
  * the blank-frame guard / 640-snapshot resolve, NOT for the clean keyFrame).
@@ -18229,12 +18377,41 @@ var RunnerLocalLoadSchema = object({
18229
18377
  * legacy `OrchestratorMetricsSchema` shape so existing dashboards keep
18230
18378
  * working unchanged when they switch to reading from the runner cap.
18231
18379
  */
18380
+ var FrameLazyCountersSchema = object({
18381
+ framesDecoded: number(),
18382
+ framesAdmitted: number(),
18383
+ framesDroppedPixelFree: number(),
18384
+ viewsMaterialized: number(),
18385
+ viewsSkipped: number(),
18386
+ workerToRunnerBytes: number(),
18387
+ runnerToPoolRawBytes: number(),
18388
+ runnerToPoolJpegBytes: number(),
18389
+ onDemandFullFrameRequests: number(),
18390
+ onDemandCropRequests: number(),
18391
+ nativeHits: number(),
18392
+ nativeMisses: number(),
18393
+ tileHits: number(),
18394
+ tileMisses: number(),
18395
+ fallbackHits: number(),
18396
+ fallbackMisses: number(),
18397
+ retainedWritesAvoided: number(),
18398
+ residentRefs: number(),
18399
+ residentBytes: number(),
18400
+ releases: number(),
18401
+ evictions: number(),
18402
+ staleMisses: number()
18403
+ });
18404
+ var FrameLazyMetricsSchema = object({
18405
+ node: FrameLazyCountersSchema,
18406
+ cameras: array(FrameLazyCountersSchema.extend({ deviceId: number() }))
18407
+ });
18232
18408
  var RunnerLocalMetricsSchema = object({
18233
18409
  nodeId: string(),
18234
18410
  activeCameras: number(),
18235
18411
  throttledCameras: number(),
18236
18412
  avgInferenceTimeMs: number(),
18237
- queueDepth: number()
18413
+ queueDepth: number(),
18414
+ frameLazy: FrameLazyMetricsSchema.optional()
18238
18415
  });
18239
18416
  method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly()), method(object({
18240
18417
  handle: FrameHandleSchema,
@@ -19547,6 +19724,9 @@ method(_void(), ProviderInfoSchema), method(object({ config: record(string(), un
19547
19724
  location: StorageLocationSchema,
19548
19725
  relativePath: string()
19549
19726
  }), _void(), { kind: "mutation" }), method(object({ location: StorageLocationSchema }), number().nullable()), method(BeginUploadInputSchema, BeginUploadResultSchema, { kind: "mutation" }), method(WriteChunkInputSchema, _void(), { kind: "mutation" }), method(FinalizeUploadInputSchema, _void(), { kind: "mutation" }), method(AbortUploadInputSchema, _void(), { kind: "mutation" }), method(BeginDownloadInputSchema, BeginDownloadResultSchema, { kind: "mutation" }), method(ReadChunkInputSchema, _instanceof(Uint8Array)), method(EndDownloadInputSchema, _void(), { kind: "mutation" });
19727
+ /** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
19728
+ var ProfileSettingsSchemaBridge = unknown().nullable();
19729
+ var ProfileSettingsBagSchema = record(string(), unknown());
19550
19730
  /**
19551
19731
  * A live terminal session hosted by the provider addon. Output and input do
19552
19732
  * NOT flow through the capability — they use the addon data plane
@@ -19576,7 +19756,14 @@ var TerminalSessionInfoSchema = object({
19576
19756
  var TerminalProfileInfoSchema = object({
19577
19757
  profileId: string(),
19578
19758
  label: string(),
19579
- description: string().optional()
19759
+ description: string().optional(),
19760
+ /** Spawn defaults the instance form copies on create. */
19761
+ executable: string().optional(),
19762
+ args: array(string()).readonly().optional(),
19763
+ cwd: string().optional(),
19764
+ environment: array(string()).readonly().optional(),
19765
+ /** ConfigUISchema for instance knobs, or null when the profile has none. */
19766
+ settingsSchema: ProfileSettingsSchemaBridge.optional()
19580
19767
  });
19581
19768
  /**
19582
19769
  * A durable operator-created Terminal instance. Profiles are templates; only
@@ -19589,7 +19776,12 @@ var TerminalInstanceInfoSchema = object({
19589
19776
  profileId: string(),
19590
19777
  profileLabel: string(),
19591
19778
  name: string(),
19592
- enabled: boolean()
19779
+ enabled: boolean(),
19780
+ executable: string(),
19781
+ args: array(string()).readonly(),
19782
+ cwd: string(),
19783
+ environment: array(string()).readonly(),
19784
+ profileSettings: ProfileSettingsBagSchema
19593
19785
  });
19594
19786
  var TerminalLegacyCameraSchema = object({
19595
19787
  stableId: string(),
@@ -19619,7 +19811,23 @@ var TerminalOutputBatchSchema = object({
19619
19811
  method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalInstanceInfoSchema).readonly(), { auth: "admin" }), method(object({
19620
19812
  targetNodeId: string().min(1),
19621
19813
  profileId: string().min(1),
19622
- name: string().trim().min(1).max(160).optional()
19814
+ name: string().trim().min(1).max(160).optional(),
19815
+ executable: string().max(1024).optional(),
19816
+ args: array(string().max(2048)).max(64).optional(),
19817
+ cwd: string().max(1024).optional(),
19818
+ environment: array(string().max(4096)).max(64).optional(),
19819
+ profileSettings: ProfileSettingsBagSchema.optional()
19820
+ }), TerminalInstanceInfoSchema, {
19821
+ kind: "mutation",
19822
+ auth: "admin"
19823
+ }), method(object({
19824
+ instanceId: string().min(1),
19825
+ name: string().trim().min(1).max(160).optional(),
19826
+ executable: string().max(1024).optional(),
19827
+ args: array(string().max(2048)).max(64).optional(),
19828
+ cwd: string().max(1024).optional(),
19829
+ environment: array(string().max(4096)).max(64).optional(),
19830
+ profileSettings: ProfileSettingsBagSchema.optional()
19623
19831
  }), TerminalInstanceInfoSchema, {
19624
19832
  kind: "mutation",
19625
19833
  auth: "admin"
@@ -19641,7 +19849,11 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
19641
19849
  }), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
19642
19850
  profileId: string(),
19643
19851
  cols: number().int().positive(),
19644
- rows: number().int().positive()
19852
+ rows: number().int().positive(),
19853
+ executable: string().max(1024).optional(),
19854
+ args: array(string().max(2048)).max(64).optional(),
19855
+ cwd: string().max(1024).optional(),
19856
+ environment: array(string().max(4096)).max(64).optional()
19645
19857
  }), TerminalSessionInfoSchema, {
19646
19858
  kind: "mutation",
19647
19859
  auth: "admin"
@@ -22423,10 +22635,10 @@ DeviceType.LawnMower, method(object({ deviceId: number().int().nonnegative() }),
22423
22635
  *
22424
22636
  * • The SDK (mobile / web client) consumes `getConnectionEndpoints()`
22425
22637
  * to receive an ordered list of candidate base URLs it should race
22426
- * on connect — LAN IPv4 first (lowest latency when on same network),
22427
- * then public hostname (if a tunnel is up), then IPv6. The SDK can
22428
- * race them with short timeouts and stick with the winner for the
22429
- * session.
22638
+ * on connect — LAN IPv4 and stable LAN IPv6 first (lowest latency
22639
+ * when on the same network), then public hostname (if a tunnel is
22640
+ * up). The SDK can race them with short timeouts and stick with the
22641
+ * winner for the session.
22430
22642
  *
22431
22643
  * Why hub-only: agents are not directly addressable by the operator's
22432
22644
  * clients — they reverse-connect to the hub. Exposing their interfaces
@@ -22581,6 +22793,17 @@ var NotificationEndpointSchema = object({
22581
22793
  /** What the ranking currently resolves to (null when nothing is reachable). */
22582
22794
  resolved: string().nullable()
22583
22795
  });
22796
+ /**
22797
+ * The URLs the SDK / viewer should race for API access. `baseUrls` empty =
22798
+ * AUTO (every LAN IPv4 + the public tunnel). `resolved` is what that choice
22799
+ * currently expands to, so the UI can show the effective set either way.
22800
+ */
22801
+ var ViewerEndpointsSchema = object({
22802
+ /** The operator's explicit race set, or empty for AUTO. */
22803
+ baseUrls: array(string()).readonly(),
22804
+ /** What the ranking currently resolves to (may be empty if nothing is up). */
22805
+ resolved: array(string()).readonly()
22806
+ });
22584
22807
  var AllowedAddressesSchema = object({
22585
22808
  /**
22586
22809
  * Allowlist of interface addresses operators have explicitly opted
@@ -22589,6 +22812,20 @@ var AllowedAddressesSchema = object({
22589
22812
  * Network Addresses admin page and persisted by the addon.
22590
22813
  */
22591
22814
  addresses: array(string()).readonly() });
22815
+ var TlsStatusSchema = object({
22816
+ mode: _enum([
22817
+ "generated",
22818
+ "uploaded",
22819
+ "disabled"
22820
+ ]),
22821
+ leafFingerprintSha256: string().nullable(),
22822
+ caFingerprintSha256: string().nullable(),
22823
+ validTo: string().nullable(),
22824
+ sans: array(string()),
22825
+ caCertPem: string().nullable(),
22826
+ reissueError: string().nullable(),
22827
+ restartRequired: boolean()
22828
+ });
22592
22829
  method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
22593
22830
  /**
22594
22831
  * LEGACY HINT — do not send from new code. Kept optional so clients
@@ -22598,17 +22835,31 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
22598
22835
  */
22599
22836
  port: number().int().min(1).max(65535).optional(),
22600
22837
  /** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
22601
- * candidate. Default `true`. */
22838
+ * candidate. Default `false` — loopback is not a client route. */
22602
22839
  includeLoopback: boolean().optional(),
22603
- /** Skip IPv6 entries. Some legacy clients can't parse them.
22604
- * Default `false`. */
22840
+ /** Skip IPv6 entries. Default `false` the palette includes stable
22841
+ * LAN IPv6 (ICE/WebRTC uses dual-stack regardless). Pass `true` to
22842
+ * hide them. The viewer HTTP/WS race is `getViewerEndpoints`. */
22605
22843
  ipv4Only: boolean().optional(),
22606
22844
  /** Scheme to emit for LAN/loopback URLs. Default `'http'`.
22607
22845
  * Pass `'https'` when the caller is itself loaded over HTTPS
22608
22846
  * to avoid mixed-content blocks in the browser. The public
22609
22847
  * tunnel always emits `https://` regardless. */
22610
22848
  scheme: _enum(["http", "https"]).optional()
22611
- }), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" });
22849
+ }), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" }), method(_void(), TlsStatusSchema), method(object({ reason: string().optional() }), TlsStatusSchema, {
22850
+ kind: "mutation",
22851
+ auth: "admin"
22852
+ }), method(object({
22853
+ certPem: string().min(1),
22854
+ keyPem: string().min(1),
22855
+ caPem: string().optional()
22856
+ }), TlsStatusSchema, {
22857
+ kind: "mutation",
22858
+ auth: "admin"
22859
+ }), method(_void(), object({ pem: string() })), method(_void(), TlsStatusSchema, {
22860
+ kind: "mutation",
22861
+ auth: "admin"
22862
+ });
22612
22863
  object({
22613
22864
  /** Lifecycle state of the lock. `jammed` means the motor reported
22614
22865
  * failure to reach the target — operator intervention required. */
@@ -23789,7 +24040,12 @@ var PlateInfoSchema = object({
23789
24040
  plateBbox: BoundingBoxSchema.optional(),
23790
24041
  /** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
23791
24042
  keyFrameMediaKey: string().optional(),
23792
- base64: string().optional()
24043
+ base64: string().optional(),
24044
+ /**
24045
+ * Same crop as a data-plane URL. `getPlateByTrack` returns this and
24046
+ * never inlines JPEG; `listPlates` still inlines for the admin-ui.
24047
+ */
24048
+ cropUrl: string().optional()
23793
24049
  });
23794
24050
  var MediaFileLiteSchema = object({
23795
24051
  key: string(),
@@ -27429,6 +27685,12 @@ Object.freeze({
27429
27685
  addonId: null,
27430
27686
  access: "view"
27431
27687
  },
27688
+ "deviceManager.getBindingsBatch": {
27689
+ capName: "device-manager",
27690
+ capScope: "system",
27691
+ addonId: null,
27692
+ access: "view"
27693
+ },
27432
27694
  "deviceManager.getChildren": {
27433
27695
  capName: "device-manager",
27434
27696
  capScope: "system",
@@ -27489,6 +27751,12 @@ Object.freeze({
27489
27751
  addonId: null,
27490
27752
  access: "view"
27491
27753
  },
27754
+ "deviceManager.getLinkedDevicesBatch": {
27755
+ capName: "device-manager",
27756
+ capScope: "system",
27757
+ addonId: null,
27758
+ access: "view"
27759
+ },
27492
27760
  "deviceManager.getRoleDisplayDefaults": {
27493
27761
  capName: "device-manager",
27494
27762
  capScope: "system",
@@ -28371,6 +28639,12 @@ Object.freeze({
28371
28639
  addonId: null,
28372
28640
  access: "create"
28373
28641
  },
28642
+ "localNetwork.downloadCa": {
28643
+ capName: "local-network",
28644
+ capScope: "system",
28645
+ addonId: null,
28646
+ access: "view"
28647
+ },
28374
28648
  "localNetwork.getAllowedAddresses": {
28375
28649
  capName: "local-network",
28376
28650
  capScope: "system",
@@ -28395,18 +28669,42 @@ Object.freeze({
28395
28669
  addonId: null,
28396
28670
  access: "view"
28397
28671
  },
28672
+ "localNetwork.getTlsStatus": {
28673
+ capName: "local-network",
28674
+ capScope: "system",
28675
+ addonId: null,
28676
+ access: "view"
28677
+ },
28678
+ "localNetwork.getViewerEndpoints": {
28679
+ capName: "local-network",
28680
+ capScope: "system",
28681
+ addonId: null,
28682
+ access: "view"
28683
+ },
28398
28684
  "localNetwork.list": {
28399
28685
  capName: "local-network",
28400
28686
  capScope: "system",
28401
28687
  addonId: null,
28402
28688
  access: "view"
28403
28689
  },
28690
+ "localNetwork.regenerateCertificate": {
28691
+ capName: "local-network",
28692
+ capScope: "system",
28693
+ addonId: null,
28694
+ access: "create"
28695
+ },
28404
28696
  "localNetwork.resetAllowlistToBestMatch": {
28405
28697
  capName: "local-network",
28406
28698
  capScope: "system",
28407
28699
  addonId: null,
28408
28700
  access: "delete"
28409
28701
  },
28702
+ "localNetwork.revertToGeneratedCertificate": {
28703
+ capName: "local-network",
28704
+ capScope: "system",
28705
+ addonId: null,
28706
+ access: "create"
28707
+ },
28410
28708
  "localNetwork.setAllowedAddresses": {
28411
28709
  capName: "local-network",
28412
28710
  capScope: "system",
@@ -28419,6 +28717,18 @@ Object.freeze({
28419
28717
  addonId: null,
28420
28718
  access: "create"
28421
28719
  },
28720
+ "localNetwork.setViewerEndpoints": {
28721
+ capName: "local-network",
28722
+ capScope: "system",
28723
+ addonId: null,
28724
+ access: "create"
28725
+ },
28726
+ "localNetwork.uploadCertificate": {
28727
+ capName: "local-network",
28728
+ capScope: "system",
28729
+ addonId: null,
28730
+ access: "create"
28731
+ },
28422
28732
  "lockControl.lock": {
28423
28733
  capName: "lock-control",
28424
28734
  capScope: "device",
@@ -29217,6 +29527,12 @@ Object.freeze({
29217
29527
  addonId: null,
29218
29528
  access: "view"
29219
29529
  },
29530
+ "pipelineAnalytics.getGroup": {
29531
+ capName: "pipeline-analytics",
29532
+ capScope: "device",
29533
+ addonId: null,
29534
+ access: "view"
29535
+ },
29220
29536
  "pipelineAnalytics.getKeyEvents": {
29221
29537
  capName: "pipeline-analytics",
29222
29538
  capScope: "device",
@@ -29301,6 +29617,12 @@ Object.freeze({
29301
29617
  addonId: null,
29302
29618
  access: "view"
29303
29619
  },
29620
+ "pipelineAnalytics.listGroups": {
29621
+ capName: "pipeline-analytics",
29622
+ capScope: "device",
29623
+ addonId: null,
29624
+ access: "view"
29625
+ },
29304
29626
  "pipelineAnalytics.listOpsLog": {
29305
29627
  capName: "pipeline-analytics",
29306
29628
  capScope: "device",
@@ -31299,6 +31621,12 @@ Object.freeze({
31299
31621
  addonId: null,
31300
31622
  access: "create"
31301
31623
  },
31624
+ "terminalSession.updateInstance": {
31625
+ capName: "terminal-session",
31626
+ capScope: "system",
31627
+ addonId: null,
31628
+ access: "create"
31629
+ },
31302
31630
  "terminalSession.writeInput": {
31303
31631
  capName: "terminal-session",
31304
31632
  capScope: "system",
@@ -32076,6 +32404,11 @@ Object.freeze({
32076
32404
  form: "single",
32077
32405
  optional: false
32078
32406
  }],
32407
+ "deviceManager.getBindingsBatch": [{
32408
+ name: "deviceIds",
32409
+ form: "array",
32410
+ optional: false
32411
+ }],
32079
32412
  "deviceManager.getChildren": [{
32080
32413
  name: "parentDeviceId",
32081
32414
  form: "single",
@@ -32121,6 +32454,11 @@ Object.freeze({
32121
32454
  form: "single",
32122
32455
  optional: false
32123
32456
  }],
32457
+ "deviceManager.getLinkedDevicesBatch": [{
32458
+ name: "deviceIds",
32459
+ form: "array",
32460
+ optional: false
32461
+ }],
32124
32462
  "deviceManager.getSettingsSchema": [{
32125
32463
  name: "deviceId",
32126
32464
  form: "single",
@@ -32141,6 +32479,11 @@ Object.freeze({
32141
32479
  form: "single",
32142
32480
  optional: false
32143
32481
  }],
32482
+ "deviceManager.listAll": [{
32483
+ name: "deviceIds",
32484
+ form: "array",
32485
+ optional: true
32486
+ }],
32144
32487
  "deviceManager.loadConfig": [{
32145
32488
  name: "deviceId",
32146
32489
  form: "single",
@@ -32714,6 +33057,11 @@ Object.freeze({
32714
33057
  form: "single",
32715
33058
  optional: false
32716
33059
  }],
33060
+ "pipelineAnalytics.getGroup": [{
33061
+ name: "deviceId",
33062
+ form: "single",
33063
+ optional: false
33064
+ }],
32717
33065
  "pipelineAnalytics.getKeyEvents": [{
32718
33066
  name: "deviceId",
32719
33067
  form: "single",
@@ -32769,6 +33117,11 @@ Object.freeze({
32769
33117
  form: "array",
32770
33118
  optional: false
32771
33119
  }],
33120
+ "pipelineAnalytics.listGroups": [{
33121
+ name: "deviceIds",
33122
+ form: "array",
33123
+ optional: false
33124
+ }],
32772
33125
  "pipelineAnalytics.listOpsLog": [{
32773
33126
  name: "deviceId",
32774
33127
  form: "single",
@@ -33786,6 +34139,35 @@ Object.freeze(Object.fromEntries([{
33786
34139
  }]
33787
34140
  }].map((s) => [s.stepId, s.defaultModelId])));
33788
34141
  string().min(1);
34142
+ var CLUSTER_STEP_SETTING_FIELDS = [{
34143
+ stepId: "face-embedding",
34144
+ key: "minLandmarkFaceSize",
34145
+ label: "Min face size for recognition (detection px)",
34146
+ description: "Refuse to embed a face smaller than this IN THE DETECTION FRAME. Applies to every node — the enrolled gallery is one index, and two admission floors would fill it from two policies. 0 disables the gate.",
34147
+ type: "slider",
34148
+ min: 0,
34149
+ max: 64,
34150
+ step: 2,
34151
+ default: 24
34152
+ }];
34153
+ function clusterStepSettingKey(stepId, fieldKey) {
34154
+ return `clusterStepSetting:${stepId}:${fieldKey}`;
34155
+ }
34156
+ var ClusterSettingNumberSchema = number().finite();
34157
+ function readClusterStepSettings(config) {
34158
+ const out = {};
34159
+ for (const field of CLUSTER_STEP_SETTING_FIELDS) {
34160
+ const parsed = ClusterSettingNumberSchema.safeParse(config[clusterStepSettingKey(field.stepId, field.key)]);
34161
+ const value = parsed.success ? parsed.data : field.default;
34162
+ const existing = out[field.stepId] ?? {};
34163
+ out[field.stepId] = {
34164
+ ...existing,
34165
+ [field.key]: value
34166
+ };
34167
+ }
34168
+ return out;
34169
+ }
34170
+ readClusterStepSettings({});
33789
34171
  object({
33790
34172
  /**
33791
34173
  * Fraction of the box's own size added on EACH side before cutting.