@camstack/addon-tailscale 1.0.4 → 1.0.6
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.
- package/dist/client/tailscale.addon.js +1 -1
- package/dist/client/tailscale.addon.mjs +1 -1
- package/dist/{dist-O8xvcftz.mjs → dist-BHBH0HOD.mjs} +1290 -1065
- package/dist/{dist-hLRTPO9P.js → dist-CNR-jNVu.js} +1289 -1064
- package/dist/ingress/tailscale-ingress.addon.js +1 -1
- package/dist/ingress/tailscale-ingress.addon.mjs +1 -1
- package/package.json +1 -1
|
@@ -4627,63 +4627,7 @@ function _instanceof(cls, params = {}) {
|
|
|
4627
4627
|
return inst;
|
|
4628
4628
|
}
|
|
4629
4629
|
//#endregion
|
|
4630
|
-
//#region ../types/dist/
|
|
4631
|
-
/**
|
|
4632
|
-
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
4633
|
-
* every declared capability + widget of every installed plugin, on every
|
|
4634
|
-
* node. Produced by the backend `WiringHealthService` and surfaced via
|
|
4635
|
-
* `GET /health/wiring`, the tRPC `health.wiring` query, and the boot-gate.
|
|
4636
|
-
*
|
|
4637
|
-
* Unlike `/health` (process liveness), this reflects whether each cap/widget
|
|
4638
|
-
* is actually *reachable* over the real cap-dispatch path. See spec
|
|
4639
|
-
* `docs/superpowers/specs/2026-05-23-deep-healthcheck-design.md`.
|
|
4640
|
-
*/
|
|
4641
|
-
/** What kind of target a probe addressed. */
|
|
4642
|
-
var wiringProbeKindSchema = _enum([
|
|
4643
|
-
"singleton",
|
|
4644
|
-
"device",
|
|
4645
|
-
"widget"
|
|
4646
|
-
]);
|
|
4647
|
-
/** Result of probing a single (cap|widget [, device]) target. */
|
|
4648
|
-
var wiringProbeResultSchema = object({
|
|
4649
|
-
capName: string(),
|
|
4650
|
-
kind: wiringProbeKindSchema,
|
|
4651
|
-
deviceId: number().optional(),
|
|
4652
|
-
reachable: boolean(),
|
|
4653
|
-
latencyMs: number(),
|
|
4654
|
-
error: string().optional()
|
|
4655
|
-
});
|
|
4656
|
-
/** Per-addon roll-up of cap + widget probe results. */
|
|
4657
|
-
var wiringAddonHealthSchema = object({
|
|
4658
|
-
addonId: string(),
|
|
4659
|
-
caps: array(wiringProbeResultSchema).readonly(),
|
|
4660
|
-
widgets: array(wiringProbeResultSchema).readonly()
|
|
4661
|
-
});
|
|
4662
|
-
/** Per-node roll-up. */
|
|
4663
|
-
var wiringNodeHealthSchema = object({
|
|
4664
|
-
nodeId: string(),
|
|
4665
|
-
addons: array(wiringAddonHealthSchema).readonly()
|
|
4666
|
-
});
|
|
4667
|
-
object({
|
|
4668
|
-
/** True only when every probed target is reachable. */
|
|
4669
|
-
ok: boolean(),
|
|
4670
|
-
/** True when at least one target is unreachable. */
|
|
4671
|
-
degraded: boolean(),
|
|
4672
|
-
checkedAt: string(),
|
|
4673
|
-
nodes: array(wiringNodeHealthSchema).readonly(),
|
|
4674
|
-
summary: object({
|
|
4675
|
-
total: number(),
|
|
4676
|
-
reachable: number(),
|
|
4677
|
-
unreachable: number()
|
|
4678
|
-
})
|
|
4679
|
-
});
|
|
4680
|
-
var MODEL_FORMATS = [
|
|
4681
|
-
"onnx",
|
|
4682
|
-
"coreml",
|
|
4683
|
-
"openvino",
|
|
4684
|
-
"tflite",
|
|
4685
|
-
"pt"
|
|
4686
|
-
];
|
|
4630
|
+
//#region ../types/dist/sleep-D7JeS58T.mjs
|
|
4687
4631
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4688
4632
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4689
4633
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -4981,6 +4925,18 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
4981
4925
|
*/
|
|
4982
4926
|
EventCategory["PipelineEngineMetricsSnapshot"] = "pipeline.engine-metrics-snapshot";
|
|
4983
4927
|
/**
|
|
4928
|
+
* Per-node detection-engine runtime-provisioning transition. Emitted by
|
|
4929
|
+
* the detection-pipeline provider on every state change of its lazy
|
|
4930
|
+
* engine-provisioning machine (idle → installing → verifying → ready,
|
|
4931
|
+
* or → failed with a `nextRetryAt`). Payload is the
|
|
4932
|
+
* `EngineProvisioningState` snapshot; `event.source.nodeId` carries the
|
|
4933
|
+
* node. The Pipeline page subscribes to drive a live "installing
|
|
4934
|
+
* OpenVINO… / ready" indicator per node without polling
|
|
4935
|
+
* `pipelineExecutor.getEngineProvisioning`. Telemetry-grade (D8): the UI
|
|
4936
|
+
* also reads the cap snapshot on mount / reconnect. Phase 2.
|
|
4937
|
+
*/
|
|
4938
|
+
EventCategory["PipelineEngineProvisioning"] = "pipeline.engine-provisioning";
|
|
4939
|
+
/**
|
|
4984
4940
|
* Cluster topology snapshot. Carries the same payload returned by
|
|
4985
4941
|
* `nodes.topology` (every reachable node + addons + processes).
|
|
4986
4942
|
* Emitted by the hub on any agent / addon lifecycle change
|
|
@@ -5994,7 +5950,7 @@ var ProfileSlotSchema = object({
|
|
|
5994
5950
|
* Zod schema for StreamSourceEntry — the canonical stream descriptor
|
|
5995
5951
|
* exposed by ICameraDevice.getStreamSources() and consumed by the broker.
|
|
5996
5952
|
*/
|
|
5997
|
-
var StreamSourceEntrySchema = object({
|
|
5953
|
+
var StreamSourceEntrySchema$1 = object({
|
|
5998
5954
|
id: string(),
|
|
5999
5955
|
label: string(),
|
|
6000
5956
|
protocol: _enum([
|
|
@@ -6216,894 +6172,1080 @@ var ProfileRtspEntrySchema = object({
|
|
|
6216
6172
|
codec: string().optional(),
|
|
6217
6173
|
resolution: CamStreamResolutionSchema.optional()
|
|
6218
6174
|
});
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
]
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
*
|
|
6241
|
-
*
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
*
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
*
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
"
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
]
|
|
6254
|
-
/**
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
*
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
*
|
|
6264
|
-
*
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6268
|
-
|
|
6269
|
-
*
|
|
6270
|
-
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
|
|
6274
|
-
|
|
6275
|
-
*
|
|
6276
|
-
*
|
|
6277
|
-
*
|
|
6278
|
-
|
|
6279
|
-
|
|
6280
|
-
*/
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
|
|
6300
|
-
|
|
6301
|
-
|
|
6302
|
-
/**
|
|
6303
|
-
* Per-device retention overrides. Every field is optional; an unset or `0`
|
|
6304
|
-
* value inherits the node-wide recorder default. Only footage-lifetime limits
|
|
6305
|
-
* live per-camera: `maxAgeDays` and `maxSizeGb`. The disk-occupancy threshold
|
|
6306
|
-
* (when the volume is too full to keep recording) is NOT a per-camera concern —
|
|
6307
|
-
* it belongs to the StorageLocation (`StorageLocation.config.minFreePercent`),
|
|
6308
|
-
* shared by every camera writing to that volume.
|
|
6309
|
-
*/
|
|
6310
|
-
var RecordingRetentionSchema = object({
|
|
6311
|
-
maxAgeDays: number().min(0).optional(),
|
|
6312
|
-
maxSizeGb: number().min(0).optional()
|
|
6313
|
-
});
|
|
6314
|
-
/**
|
|
6315
|
-
* The full per-camera recording intent — the wire shape of a RecordingTarget.
|
|
6316
|
-
*
|
|
6317
|
-
* `mode` is the authoritative storage choice; `schedule`/`triggers`/`pre`/`post`
|
|
6318
|
-
* are its mode-specific parameters. `rules` is a DEPRECATED authoring input kept
|
|
6319
|
-
* only for transition + migration (`migrateRulesToMode`); the policy engine
|
|
6320
|
-
* consumes the compiled output of `compileRules(config)`, never `rules` directly.
|
|
6321
|
-
*/
|
|
6322
|
-
var RecordingConfigSchema = object({
|
|
6323
|
-
enabled: boolean(),
|
|
6324
|
-
/** Authoritative storage mode. Absent on legacy targets → derived once via
|
|
6325
|
-
* `migrateRulesToMode`, then persisted. */
|
|
6326
|
-
mode: RecordingStorageModeSchema.optional(),
|
|
6327
|
-
profiles: array(CamProfileSchema).optional(),
|
|
6328
|
-
segmentSeconds: number().int().positive().optional(),
|
|
6329
|
-
/** Shared recording time-bands for `events` & `continuous` — record only when
|
|
6330
|
-
* the wall-clock falls inside one of these windows. Omit or empty = always.
|
|
6331
|
-
* `continuous` compiles to one rule per band; `events` to band × trigger. */
|
|
6332
|
-
schedules: array(RecordingScheduleSchema).optional(),
|
|
6333
|
-
/** Legacy single-band predecessor of `schedules`. Read-compat only — it is
|
|
6334
|
-
* normalized into `schedules` on read and never written going forward. (Not
|
|
6335
|
-
* tagged `@deprecated`: the normalization paths must read it cast-free.) */
|
|
6336
|
-
schedule: RecordingScheduleSchema.optional(),
|
|
6337
|
-
/** `events`-mode only — which detectors trigger a recording. */
|
|
6338
|
-
triggers: RecordingTriggersSchema.optional(),
|
|
6339
|
-
/** `events`-mode only — seconds retained before / after a trigger. */
|
|
6340
|
-
preBufferSec: number().min(0).optional(),
|
|
6341
|
-
postBufferSec: number().min(0).optional(),
|
|
6342
|
-
/** DEPRECATED authoring input; retained for migration/transition. */
|
|
6343
|
-
rules: array(RecordingRuleSchema).optional(),
|
|
6344
|
-
/**
|
|
6345
|
-
* AUTHORITATIVE mode-per-band recording model (recorder). When present it
|
|
6346
|
-
* is the single source of truth; the legacy `mode`/`schedules`/`schedule`/
|
|
6347
|
-
* `triggers`/`rules` fields above are kept for READ-COMPAT only and are
|
|
6348
|
-
* derived into bands once via `migrateConfigToBands`.
|
|
6349
|
-
*/
|
|
6350
|
-
bands: array(RecordingBandSchema).optional(),
|
|
6351
|
-
retention: RecordingRetentionSchema.optional()
|
|
6352
|
-
});
|
|
6353
|
-
/**
|
|
6354
|
-
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
6355
|
-
* storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
|
|
6356
|
-
* so the persisted record schema and the consumer-facing cap can both consume it
|
|
6357
|
-
* without forming a circular import. The `storage` cap re-exports it
|
|
6358
|
-
* verbatim for back-compat.
|
|
6359
|
-
*
|
|
6360
|
-
* This Zod schema is the **authoritative source** for `StorageLocationType`.
|
|
6361
|
-
* The TS alias in `./storage.ts` re-exports `z.infer<typeof
|
|
6362
|
-
* StorageLocationTypeSchema>` so the wire surface (cap) and the legacy
|
|
6363
|
-
* `IStorageProvider` interface stay in lockstep.
|
|
6364
|
-
*
|
|
6365
|
-
* The type is now an **open string** (not a closed enum) — addons declare
|
|
6366
|
-
* their own location kinds via `StorageLocationDeclaration.id`. The regex
|
|
6367
|
-
* enforces a safe id format: lowercase-start, alphanumeric + hyphens.
|
|
6368
|
-
*/
|
|
6369
|
-
var StorageLocationTypeSchema = string().regex(/^[a-z][a-zA-Z0-9-]*$/);
|
|
6370
|
-
/**
|
|
6371
|
-
* Persisted record for a storage location instance. Operators can register
|
|
6372
|
-
* multiple instances for multi-cardinality types (e.g. two `backups`
|
|
6373
|
-
* locations with different `providerId`s). Cardinality is now declared per
|
|
6374
|
-
* location via `StorageLocationDeclaration.cardinality` — the static
|
|
6375
|
-
* `STORAGE_LOCATION_CARDINALITY` map has been removed.
|
|
6376
|
-
*
|
|
6377
|
-
* `id` is a stable namespaced string of the form `<type>:<slug>`.
|
|
6378
|
-
* The default location for a type uses `id === <type>:default` by
|
|
6379
|
-
* convention (the bare type ref like `'backups'` resolves to it).
|
|
6380
|
-
*
|
|
6381
|
-
* `isSystem: true` marks a location as orchestrator-seeded and
|
|
6382
|
-
* undeletable. The bootstrap-installed defaults (one per type) carry
|
|
6383
|
-
* this flag; operator-added locations don't. Editing the config of
|
|
6384
|
-
* a system location is allowed (path migration, provider swap) but
|
|
6385
|
-
* deleting it is rejected at the cap level.
|
|
6386
|
-
*/
|
|
6387
|
-
var StorageLocationSchema = object({
|
|
6388
|
-
id: string().regex(/^[a-z][a-zA-Z0-9-]*:[a-zA-Z0-9-]+$/),
|
|
6389
|
-
type: string(),
|
|
6390
|
-
displayName: string().min(1),
|
|
6391
|
-
providerId: string().min(1),
|
|
6392
|
-
config: record(string(), unknown()),
|
|
6393
|
-
/**
|
|
6394
|
-
* Cluster node this location physically lives on. REQUIRED for node-local
|
|
6395
|
-
* providers (filesystem — the path exists on one node's disk), null/absent
|
|
6396
|
-
* for node-agnostic providers (S3/SFTP/WebDAV, reachable from any node).
|
|
6397
|
-
* `'hub'` is the hub node. Validated against the provider's `nodeLocal`
|
|
6398
|
-
* flag at upsert time, not here (the schema is provider-agnostic).
|
|
6399
|
-
*/
|
|
6400
|
-
nodeId: string().optional(),
|
|
6401
|
-
isDefault: boolean().default(false),
|
|
6402
|
-
isSystem: boolean().default(false),
|
|
6403
|
-
createdAt: number(),
|
|
6404
|
-
updatedAt: number()
|
|
6405
|
-
});
|
|
6406
|
-
/**
|
|
6407
|
-
* Reference accepted by consumer-facing `api.storage.*` calls.
|
|
6408
|
-
* Either:
|
|
6409
|
-
* - a `StorageLocationType` (e.g. `'backups'`) → orchestrator resolves to the default of that type
|
|
6410
|
-
* - a fully-qualified id (e.g. `'backups:nas-01'`) → addresses a specific instance
|
|
6411
|
-
*
|
|
6412
|
-
* The orchestrator's `resolveRef(ref)` handles both cases.
|
|
6413
|
-
*/
|
|
6414
|
-
var StorageLocationRefSchema = union([StorageLocationTypeSchema, string().regex(/^[a-z][a-zA-Z0-9-]*:[a-zA-Z0-9-]+$/)]);
|
|
6415
|
-
/**
|
|
6416
|
-
* `StorageLocationDeclaration` — a single storage-location entry declared by
|
|
6417
|
-
* an addon in its `package.json` under `camstack.storageLocations`.
|
|
6418
|
-
*
|
|
6419
|
-
* Design intent:
|
|
6420
|
-
* - **Addon declares its needs** — each addon describes the logical storage
|
|
6421
|
-
* slots it requires (e.g. `recordings`, `recordingsLow`) without caring
|
|
6422
|
-
* about the physical path.
|
|
6423
|
-
* - **Kernel aggregates** — at boot the kernel collects declarations from all
|
|
6424
|
-
* installed addons, deduplicates by `id`, and exposes the union via the
|
|
6425
|
-
* storage-locations settings surface.
|
|
6426
|
-
* - **Orchestrator seeds** — for every declared `id` the orchestrator ensures
|
|
6427
|
-
* at least one instance named `<id>:default` is present, using
|
|
6428
|
-
* `defaultsTo` to inherit the resolved root from another location when the
|
|
6429
|
-
* declaration is a derivative slot (e.g. `recordingsLow` defaults to
|
|
6430
|
-
* `recordings`).
|
|
6431
|
-
* - **ids are global** — `id` values are shared across the entire deployment;
|
|
6432
|
-
* two addons declaring the same `id` must agree on `cardinality` (validated
|
|
6433
|
-
* at kernel aggregation time, not here).
|
|
6434
|
-
*/
|
|
6435
|
-
var StorageLocationDeclarationSchema = object({
|
|
6436
|
-
/**
|
|
6437
|
-
* Global location identifier, e.g. `recordings` or `recordingsLow`.
|
|
6438
|
-
* Must start with a lowercase letter and may contain letters, digits, and
|
|
6439
|
-
* hyphens.
|
|
6440
|
-
*/
|
|
6441
|
-
id: string().regex(/^[a-z][a-zA-Z0-9-]*$/, { message: "id must start with a lowercase letter and contain only letters, digits, or hyphens" }),
|
|
6442
|
-
/** Human-readable name shown in the admin UI. */
|
|
6443
|
-
displayName: string().min(1, { message: "displayName must not be empty" }),
|
|
6444
|
-
/** Optional longer explanation of what data this location stores. */
|
|
6445
|
-
description: string().optional(),
|
|
6446
|
-
/**
|
|
6447
|
-
* `single` — exactly one instance of this location is allowed system-wide
|
|
6448
|
-
* (e.g. `logs`, `models`). The operator can edit it but not add more.
|
|
6449
|
-
* `multi` — the operator may register several instances (e.g. a second
|
|
6450
|
-
* `recordings` on a NAS for disk tiering); one is the default at any time.
|
|
6451
|
-
*/
|
|
6452
|
-
cardinality: _enum(["single", "multi"]),
|
|
6453
|
-
/**
|
|
6454
|
-
* When set, the default instance for this location inherits its resolved
|
|
6455
|
-
* root from the named location's default instance. Useful for derivative
|
|
6456
|
-
* slots (e.g. `recordingsLow` → `recordings`) so operators only need to
|
|
6457
|
-
* configure the primary location.
|
|
6458
|
-
*/
|
|
6459
|
-
defaultsTo: string().optional()
|
|
6460
|
-
});
|
|
6461
|
-
var DecoderStatsSchema = object({
|
|
6462
|
-
inputFps: number(),
|
|
6463
|
-
outputFps: number(),
|
|
6464
|
-
avgDecodeTimeMs: number(),
|
|
6465
|
-
droppedFrames: number()
|
|
6466
|
-
});
|
|
6467
|
-
var DecoderSessionConfigSchema = object({
|
|
6468
|
-
codec: string(),
|
|
6469
|
-
maxFps: number().default(0),
|
|
6470
|
-
outputFormat: _enum([
|
|
6471
|
-
"jpeg",
|
|
6472
|
-
"rgb",
|
|
6473
|
-
"bgr",
|
|
6474
|
-
"yuv420",
|
|
6475
|
-
"gray"
|
|
6476
|
-
]).default("jpeg"),
|
|
6477
|
-
scale: number().default(1),
|
|
6478
|
-
width: number().optional(),
|
|
6479
|
-
height: number().optional(),
|
|
6175
|
+
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
6176
|
+
DeviceType["Camera"] = "camera";
|
|
6177
|
+
DeviceType["Hub"] = "hub";
|
|
6178
|
+
DeviceType["Light"] = "light";
|
|
6179
|
+
DeviceType["Siren"] = "siren";
|
|
6180
|
+
DeviceType["Switch"] = "switch";
|
|
6181
|
+
DeviceType["Sensor"] = "sensor";
|
|
6182
|
+
DeviceType["Thermostat"] = "thermostat";
|
|
6183
|
+
DeviceType["Button"] = "button";
|
|
6184
|
+
/** Generic stateless event emitter — carries a device's EXACT declared
|
|
6185
|
+
* event vocabulary verbatim (no normalization). Installed with the
|
|
6186
|
+
* `event-emitter` cap. Sources: HA `event.*` entities (structured) and
|
|
6187
|
+
* HA bus events (e.g. `zha_event`, generic). */
|
|
6188
|
+
DeviceType["EventEmitter"] = "event-emitter";
|
|
6189
|
+
/** Firmware/software update entity — current vs available version,
|
|
6190
|
+
* updatable flag, update state, and an install action. Installed with
|
|
6191
|
+
* the `update` cap. Sources: Homematic firmware-update channels (and
|
|
6192
|
+
* reusable by other providers, e.g. HA `update.*` entities). */
|
|
6193
|
+
DeviceType["Update"] = "update";
|
|
6194
|
+
DeviceType["Generic"] = "generic";
|
|
6195
|
+
/** Generic notification delivery target (HA `notify.<service>`, future
|
|
6196
|
+
* Telegram / Discord / ntfy / SMTP, …). One device per delivery
|
|
6197
|
+
* endpoint; the `notifier` cap defines the send surface. */
|
|
6198
|
+
DeviceType["Notifier"] = "notifier";
|
|
6199
|
+
/** Pre-recorded action sequence with optional parameters
|
|
6200
|
+
* (HA `script.*`). Runnable via `script-runner` cap. */
|
|
6201
|
+
DeviceType["Script"] = "script";
|
|
6202
|
+
/** Automation rule (HA `automation.*`) — enable/disable + manual
|
|
6203
|
+
* trigger surface exposed via `automation-control` cap. */
|
|
6204
|
+
DeviceType["Automation"] = "automation";
|
|
6205
|
+
/** Door / smart lock device (HA `lock.*`). `lock-control` cap. */
|
|
6206
|
+
DeviceType["Lock"] = "lock";
|
|
6207
|
+
/** Window covering, blinds, garage door, valve, etc. (HA `cover.*`,
|
|
6208
|
+
* `valve.*`). `cover` cap with sub-roles for variant. */
|
|
6209
|
+
DeviceType["Cover"] = "cover";
|
|
6210
|
+
/** Pipe / water / gas valve with open/close/stop and optional
|
|
6211
|
+
* position (HA `valve.*`). `valve` cap — a cover-sibling actuator
|
|
6212
|
+
* modelled on the same open/closed lifecycle. */
|
|
6213
|
+
DeviceType["Valve"] = "valve";
|
|
6214
|
+
/** Humidifier / dehumidifier with on/off + target humidity + mode
|
|
6215
|
+
* (HA `humidifier.*`). `humidifier` cap — a climate-family actuator
|
|
6216
|
+
* modelled on the same target / mode lifecycle. */
|
|
6217
|
+
DeviceType["Humidifier"] = "humidifier";
|
|
6218
|
+
/** Water heater / boiler with target temperature + operation mode +
|
|
6219
|
+
* away mode (HA `water_heater.*`). `water-heater` cap — a
|
|
6220
|
+
* climate-family actuator. */
|
|
6221
|
+
DeviceType["WaterHeater"] = "water-heater";
|
|
6222
|
+
/** Ceiling / standing / exhaust fan (HA `fan.*`). `fan-control` cap. */
|
|
6223
|
+
DeviceType["Fan"] = "fan";
|
|
6224
|
+
/** Audio / video playback endpoint (HA `media_player.*`). Disjoint from
|
|
6225
|
+
* the camera surface — those use `Camera`. `media-player` cap. */
|
|
6226
|
+
DeviceType["MediaPlayer"] = "media-player";
|
|
6227
|
+
/** Security panel / alarm system (HA `alarm_control_panel.*`).
|
|
6228
|
+
* `alarm-panel` cap. */
|
|
6229
|
+
DeviceType["AlarmPanel"] = "alarm-panel";
|
|
6230
|
+
/** Generic user-settable input (HA `number` / `input_number` / `select`
|
|
6231
|
+
* / `input_select` / `text` / `input_text` / `input_datetime`).
|
|
6232
|
+
* Sub-type via `DeviceRole`: NumericControl / SelectControl /
|
|
6233
|
+
* TextControl / DateTimeControl. */
|
|
6234
|
+
DeviceType["Control"] = "control";
|
|
6235
|
+
/** Person / device-tracker presence (HA `person.*`, `device_tracker.*`).
|
|
6236
|
+
* `presence` cap. */
|
|
6237
|
+
DeviceType["Presence"] = "presence";
|
|
6238
|
+
/** Weather provider (HA `weather.*`). Tier-3, low MVP priority.
|
|
6239
|
+
* `weather` cap. */
|
|
6240
|
+
DeviceType["Weather"] = "weather";
|
|
6241
|
+
/** Robot vacuum (HA `vacuum.*`). Tier-3. `vacuum-control` cap. */
|
|
6242
|
+
DeviceType["Vacuum"] = "vacuum";
|
|
6243
|
+
/** Robotic lawn mower (HA `lawn_mower.*`). Tier-3.
|
|
6244
|
+
* `lawn-mower-control` cap. */
|
|
6245
|
+
DeviceType["LawnMower"] = "lawn-mower";
|
|
6246
|
+
/** Physical HA device group — parent container for entity-children
|
|
6247
|
+
* adopted from a single HA device entry. Not renderable as a
|
|
6248
|
+
* standalone device; exists only to anchor child entities. */
|
|
6249
|
+
DeviceType["Container"] = "container";
|
|
6250
|
+
/** Single still-image entity (HA `image.*`). Read-only display of an
|
|
6251
|
+
* `entity_picture` signed URL the browser loads directly. `image` cap. */
|
|
6252
|
+
DeviceType["Image"] = "image";
|
|
6253
|
+
return DeviceType;
|
|
6254
|
+
}({});
|
|
6255
|
+
var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
6256
|
+
DeviceFeature["BatteryOperated"] = "battery-operated";
|
|
6257
|
+
DeviceFeature["Rebootable"] = "rebootable";
|
|
6480
6258
|
/**
|
|
6481
|
-
*
|
|
6482
|
-
*
|
|
6483
|
-
*
|
|
6484
|
-
* per-camera filtering when diagnosing failures (e.g. node-av
|
|
6485
|
-
* sendPacket errors on a single hung camera).
|
|
6259
|
+
* Device supports an on-demand re-sync of its derived spec with its
|
|
6260
|
+
* upstream source — drives the generic Re-sync button. The owning
|
|
6261
|
+
* provider implements the action via the `device-adoption.resync` cap.
|
|
6486
6262
|
*/
|
|
6487
|
-
|
|
6263
|
+
DeviceFeature["Resyncable"] = "resyncable";
|
|
6264
|
+
DeviceFeature["NativeSnapshot"] = "native-snapshot";
|
|
6265
|
+
DeviceFeature["DoorbellButton"] = "doorbell-button";
|
|
6266
|
+
DeviceFeature["TwoWayAudio"] = "two-way-audio";
|
|
6267
|
+
DeviceFeature["PanTiltZoom"] = "pan-tilt-zoom";
|
|
6488
6268
|
/**
|
|
6489
|
-
*
|
|
6490
|
-
* `
|
|
6491
|
-
*
|
|
6492
|
-
*
|
|
6269
|
+
* Camera supports the on-firmware autotrack subsystem (subject-
|
|
6270
|
+
* following). Distinct from `PanTiltZoom` because not every PTZ
|
|
6271
|
+
* camera ships autotrack — the admin UI uses this flag to gate
|
|
6272
|
+
* the autotrack toggle / settings card without re-deriving from
|
|
6273
|
+
* the cap registry. Mirrors `ptz-autotrack` cap registration:
|
|
6274
|
+
* driver sets this feature when probe confirms the firmware
|
|
6275
|
+
* surface, and registers the cap in the same code path.
|
|
6493
6276
|
*/
|
|
6494
|
-
|
|
6277
|
+
DeviceFeature["PtzAutotrack"] = "ptz-autotrack";
|
|
6495
6278
|
/**
|
|
6496
|
-
*
|
|
6279
|
+
* Accessory exposes a "trigger on motion" toggle — the parent camera's
|
|
6280
|
+
* motion detection automatically activates this device. Mirrors
|
|
6281
|
+
* `motion-trigger` cap registration: drivers set this feature in the
|
|
6282
|
+
* same code path that calls `ctx.registerNativeCap(motionTriggerCapability, ...)`.
|
|
6497
6283
|
*
|
|
6498
|
-
*
|
|
6499
|
-
*
|
|
6500
|
-
*
|
|
6501
|
-
* into an OS shared-memory ring and drained as zero-pixel
|
|
6502
|
-
* `FrameHandle`s via `pullHandles`. A session is one mode or the
|
|
6503
|
-
* other — `pullFrames` returns nothing for an `'shm'` session and
|
|
6504
|
-
* `pullHandles` returns nothing for a `'callback'` session.
|
|
6505
|
-
*/
|
|
6506
|
-
frameSink: _enum(["callback", "shm"]).default("callback")
|
|
6507
|
-
});
|
|
6508
|
-
var EncodeProfileSchema = object({
|
|
6509
|
-
video: object({
|
|
6510
|
-
codec: _enum([
|
|
6511
|
-
"h264",
|
|
6512
|
-
"h265",
|
|
6513
|
-
"copy"
|
|
6514
|
-
]),
|
|
6515
|
-
profile: _enum([
|
|
6516
|
-
"baseline",
|
|
6517
|
-
"main",
|
|
6518
|
-
"high"
|
|
6519
|
-
]).optional(),
|
|
6520
|
-
width: number().int().positive().optional(),
|
|
6521
|
-
height: number().int().positive().optional(),
|
|
6522
|
-
fps: number().positive().optional(),
|
|
6523
|
-
bitrateKbps: number().int().positive().optional(),
|
|
6524
|
-
gopFrames: number().int().positive().optional(),
|
|
6525
|
-
bf: number().int().min(0).optional(),
|
|
6526
|
-
preset: _enum([
|
|
6527
|
-
"ultrafast",
|
|
6528
|
-
"superfast",
|
|
6529
|
-
"veryfast",
|
|
6530
|
-
"faster",
|
|
6531
|
-
"fast",
|
|
6532
|
-
"medium"
|
|
6533
|
-
]).optional(),
|
|
6534
|
-
tune: _enum([
|
|
6535
|
-
"zerolatency",
|
|
6536
|
-
"film",
|
|
6537
|
-
"animation"
|
|
6538
|
-
]).optional()
|
|
6539
|
-
}),
|
|
6540
|
-
audio: union([literal("passthrough"), object({
|
|
6541
|
-
codec: _enum([
|
|
6542
|
-
"opus",
|
|
6543
|
-
"aac",
|
|
6544
|
-
"pcmu",
|
|
6545
|
-
"pcma",
|
|
6546
|
-
"copy"
|
|
6547
|
-
]),
|
|
6548
|
-
bitrateKbps: number().int().positive().optional(),
|
|
6549
|
-
sampleRateHz: number().int().positive().optional(),
|
|
6550
|
-
channels: union([literal(1), literal(2)]).optional()
|
|
6551
|
-
})]),
|
|
6552
|
-
/**
|
|
6553
|
-
* ffmpeg input-side args, inserted between the fixed global flags
|
|
6554
|
-
* (`-hide_banner -loglevel error`) and `-i pipe:0`. Free-text array
|
|
6555
|
-
* — the widget surfaces a textarea + suggestion chips for the most-
|
|
6556
|
-
* used demuxer/format options.
|
|
6557
|
-
*/
|
|
6558
|
-
inputArgs: array(string()).optional(),
|
|
6559
|
-
/**
|
|
6560
|
-
* ffmpeg output-side args, inserted between the encode block and
|
|
6561
|
-
* the final `-f <muxer> pipe:1`. Use for muxer options, bitstream
|
|
6562
|
-
* filters, codec-specific overrides. Free-text array.
|
|
6284
|
+
* Used by admin UI (gate the in-hero `MotionTriggerToggle` against a
|
|
6285
|
+
* fast scalar without binding fetch), notifier rules, and `listAll`
|
|
6286
|
+
* filters that want "all devices with on-motion behaviour".
|
|
6563
6287
|
*/
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
-
|
|
6595
|
-
|
|
6596
|
-
|
|
6597
|
-
|
|
6598
|
-
|
|
6599
|
-
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
"Heavy engine (low frequency)": "engine",
|
|
6727
|
-
"Lawn mower": "engine",
|
|
6728
|
-
Chainsaw: "engine",
|
|
6729
|
-
Hammer: "tools",
|
|
6730
|
-
Jackhammer: "tools",
|
|
6731
|
-
Sawing: "tools",
|
|
6732
|
-
"Power tool": "tools",
|
|
6733
|
-
Drill: "tools",
|
|
6734
|
-
Sanding: "tools",
|
|
6735
|
-
Silence: "silence"
|
|
6736
|
-
},
|
|
6737
|
-
preserveOriginal: false
|
|
6738
|
-
};
|
|
6739
|
-
var APPLE_SA_TO_MACRO = {
|
|
6740
|
-
mapping: {
|
|
6741
|
-
speech: "speech",
|
|
6742
|
-
child_speech: "speech",
|
|
6743
|
-
conversation: "speech",
|
|
6744
|
-
whispering: "speech",
|
|
6745
|
-
singing: "speech",
|
|
6746
|
-
humming: "speech",
|
|
6747
|
-
shout: "scream",
|
|
6748
|
-
yell: "scream",
|
|
6749
|
-
screaming: "scream",
|
|
6750
|
-
crying: "crying",
|
|
6751
|
-
baby_crying: "crying",
|
|
6752
|
-
sobbing: "crying",
|
|
6753
|
-
laughter: "laughter",
|
|
6754
|
-
baby_laughter: "laughter",
|
|
6755
|
-
giggling: "laughter",
|
|
6756
|
-
music: "music",
|
|
6757
|
-
guitar: "music",
|
|
6758
|
-
piano: "music",
|
|
6759
|
-
drums: "music",
|
|
6760
|
-
dog_bark: "dog",
|
|
6761
|
-
dog_bow_wow: "dog",
|
|
6762
|
-
dog_growling: "dog",
|
|
6763
|
-
dog_howl: "dog",
|
|
6764
|
-
cat_meow: "cat",
|
|
6765
|
-
cat_purr: "cat",
|
|
6766
|
-
cat_hiss: "cat",
|
|
6767
|
-
bird: "bird",
|
|
6768
|
-
bird_chirp: "bird",
|
|
6769
|
-
bird_squawk: "bird",
|
|
6770
|
-
animal: "animal",
|
|
6771
|
-
horse: "animal",
|
|
6772
|
-
cow_moo: "animal",
|
|
6773
|
-
insect: "animal",
|
|
6774
|
-
alarm: "alarm",
|
|
6775
|
-
smoke_alarm: "alarm",
|
|
6776
|
-
fire_alarm: "alarm",
|
|
6777
|
-
car_alarm: "alarm",
|
|
6778
|
-
siren: "siren",
|
|
6779
|
-
police_siren: "siren",
|
|
6780
|
-
ambulance_siren: "siren",
|
|
6781
|
-
doorbell: "doorbell",
|
|
6782
|
-
door_knock: "doorbell",
|
|
6783
|
-
knocking: "doorbell",
|
|
6784
|
-
glass_breaking: "glass_breaking",
|
|
6785
|
-
glass_shatter: "glass_breaking",
|
|
6786
|
-
gunshot: "gunshot",
|
|
6787
|
-
explosion: "gunshot",
|
|
6788
|
-
fireworks: "gunshot",
|
|
6789
|
-
car: "vehicle",
|
|
6790
|
-
truck: "vehicle",
|
|
6791
|
-
motorcycle: "vehicle",
|
|
6792
|
-
car_horn: "vehicle",
|
|
6793
|
-
vehicle_horn: "vehicle",
|
|
6794
|
-
traffic: "vehicle",
|
|
6795
|
-
fire: "fire",
|
|
6796
|
-
fire_crackle: "fire",
|
|
6797
|
-
water: "water",
|
|
6798
|
-
rain: "water",
|
|
6799
|
-
ocean: "water",
|
|
6800
|
-
splash: "water",
|
|
6801
|
-
wind: "wind",
|
|
6802
|
-
thunder: "wind",
|
|
6803
|
-
thunderstorm: "wind",
|
|
6804
|
-
door: "door",
|
|
6805
|
-
door_slam: "door",
|
|
6806
|
-
sliding_door: "door",
|
|
6807
|
-
footsteps: "footsteps",
|
|
6808
|
-
walking: "footsteps",
|
|
6809
|
-
running: "footsteps",
|
|
6810
|
-
crowd: "crowd",
|
|
6811
|
-
chatter: "crowd",
|
|
6812
|
-
cheering: "crowd",
|
|
6813
|
-
applause: "crowd",
|
|
6814
|
-
telephone_ring: "telephone",
|
|
6815
|
-
ringtone: "telephone",
|
|
6816
|
-
engine: "engine",
|
|
6817
|
-
engine_starting: "engine",
|
|
6818
|
-
lawn_mower: "engine",
|
|
6819
|
-
chainsaw: "engine",
|
|
6820
|
-
hammer: "tools",
|
|
6821
|
-
jackhammer: "tools",
|
|
6822
|
-
drill: "tools",
|
|
6823
|
-
power_tool: "tools",
|
|
6824
|
-
silence: "silence"
|
|
6825
|
-
},
|
|
6826
|
-
preserveOriginal: false
|
|
6827
|
-
};
|
|
6828
|
-
var _macroLookup = /* @__PURE__ */ new Map();
|
|
6829
|
-
for (const [k, v] of Object.entries(YAMNET_TO_MACRO.mapping)) _macroLookup.set(k.toLowerCase(), v);
|
|
6830
|
-
for (const [k, v] of Object.entries(APPLE_SA_TO_MACRO.mapping)) _macroLookup.set(k.toLowerCase(), v);
|
|
6831
|
-
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
6832
|
-
DeviceType["Camera"] = "camera";
|
|
6833
|
-
DeviceType["Hub"] = "hub";
|
|
6834
|
-
DeviceType["Light"] = "light";
|
|
6835
|
-
DeviceType["Siren"] = "siren";
|
|
6836
|
-
DeviceType["Switch"] = "switch";
|
|
6837
|
-
DeviceType["Sensor"] = "sensor";
|
|
6838
|
-
DeviceType["Thermostat"] = "thermostat";
|
|
6839
|
-
DeviceType["Button"] = "button";
|
|
6840
|
-
/** Generic stateless event emitter — carries a device's EXACT declared
|
|
6841
|
-
* event vocabulary verbatim (no normalization). Installed with the
|
|
6842
|
-
* `event-emitter` cap. Sources: HA `event.*` entities (structured) and
|
|
6843
|
-
* HA bus events (e.g. `zha_event`, generic). */
|
|
6844
|
-
DeviceType["EventEmitter"] = "event-emitter";
|
|
6845
|
-
/** Firmware/software update entity — current vs available version,
|
|
6846
|
-
* updatable flag, update state, and an install action. Installed with
|
|
6847
|
-
* the `update` cap. Sources: Homematic firmware-update channels (and
|
|
6848
|
-
* reusable by other providers, e.g. HA `update.*` entities). */
|
|
6849
|
-
DeviceType["Update"] = "update";
|
|
6850
|
-
DeviceType["Generic"] = "generic";
|
|
6851
|
-
/** Generic notification delivery target (HA `notify.<service>`, future
|
|
6852
|
-
* Telegram / Discord / ntfy / SMTP, …). One device per delivery
|
|
6853
|
-
* endpoint; the `notifier` cap defines the send surface. */
|
|
6854
|
-
DeviceType["Notifier"] = "notifier";
|
|
6855
|
-
/** Pre-recorded action sequence with optional parameters
|
|
6856
|
-
* (HA `script.*`). Runnable via `script-runner` cap. */
|
|
6857
|
-
DeviceType["Script"] = "script";
|
|
6858
|
-
/** Automation rule (HA `automation.*`) — enable/disable + manual
|
|
6859
|
-
* trigger surface exposed via `automation-control` cap. */
|
|
6860
|
-
DeviceType["Automation"] = "automation";
|
|
6861
|
-
/** Door / smart lock device (HA `lock.*`). `lock-control` cap. */
|
|
6862
|
-
DeviceType["Lock"] = "lock";
|
|
6863
|
-
/** Window covering, blinds, garage door, valve, etc. (HA `cover.*`,
|
|
6864
|
-
* `valve.*`). `cover` cap with sub-roles for variant. */
|
|
6865
|
-
DeviceType["Cover"] = "cover";
|
|
6866
|
-
/** Pipe / water / gas valve with open/close/stop and optional
|
|
6867
|
-
* position (HA `valve.*`). `valve` cap — a cover-sibling actuator
|
|
6868
|
-
* modelled on the same open/closed lifecycle. */
|
|
6869
|
-
DeviceType["Valve"] = "valve";
|
|
6870
|
-
/** Humidifier / dehumidifier with on/off + target humidity + mode
|
|
6871
|
-
* (HA `humidifier.*`). `humidifier` cap — a climate-family actuator
|
|
6872
|
-
* modelled on the same target / mode lifecycle. */
|
|
6873
|
-
DeviceType["Humidifier"] = "humidifier";
|
|
6874
|
-
/** Water heater / boiler with target temperature + operation mode +
|
|
6875
|
-
* away mode (HA `water_heater.*`). `water-heater` cap — a
|
|
6876
|
-
* climate-family actuator. */
|
|
6877
|
-
DeviceType["WaterHeater"] = "water-heater";
|
|
6878
|
-
/** Ceiling / standing / exhaust fan (HA `fan.*`). `fan-control` cap. */
|
|
6879
|
-
DeviceType["Fan"] = "fan";
|
|
6880
|
-
/** Audio / video playback endpoint (HA `media_player.*`). Disjoint from
|
|
6881
|
-
* the camera surface — those use `Camera`. `media-player` cap. */
|
|
6882
|
-
DeviceType["MediaPlayer"] = "media-player";
|
|
6883
|
-
/** Security panel / alarm system (HA `alarm_control_panel.*`).
|
|
6884
|
-
* `alarm-panel` cap. */
|
|
6885
|
-
DeviceType["AlarmPanel"] = "alarm-panel";
|
|
6886
|
-
/** Generic user-settable input (HA `number` / `input_number` / `select`
|
|
6887
|
-
* / `input_select` / `text` / `input_text` / `input_datetime`).
|
|
6888
|
-
* Sub-type via `DeviceRole`: NumericControl / SelectControl /
|
|
6889
|
-
* TextControl / DateTimeControl. */
|
|
6890
|
-
DeviceType["Control"] = "control";
|
|
6891
|
-
/** Person / device-tracker presence (HA `person.*`, `device_tracker.*`).
|
|
6892
|
-
* `presence` cap. */
|
|
6893
|
-
DeviceType["Presence"] = "presence";
|
|
6894
|
-
/** Weather provider (HA `weather.*`). Tier-3, low MVP priority.
|
|
6895
|
-
* `weather` cap. */
|
|
6896
|
-
DeviceType["Weather"] = "weather";
|
|
6897
|
-
/** Robot vacuum (HA `vacuum.*`). Tier-3. `vacuum-control` cap. */
|
|
6898
|
-
DeviceType["Vacuum"] = "vacuum";
|
|
6899
|
-
/** Robotic lawn mower (HA `lawn_mower.*`). Tier-3.
|
|
6900
|
-
* `lawn-mower-control` cap. */
|
|
6901
|
-
DeviceType["LawnMower"] = "lawn-mower";
|
|
6902
|
-
/** Physical HA device group — parent container for entity-children
|
|
6903
|
-
* adopted from a single HA device entry. Not renderable as a
|
|
6904
|
-
* standalone device; exists only to anchor child entities. */
|
|
6905
|
-
DeviceType["Container"] = "container";
|
|
6906
|
-
/** Single still-image entity (HA `image.*`). Read-only display of an
|
|
6907
|
-
* `entity_picture` signed URL the browser loads directly. `image` cap. */
|
|
6908
|
-
DeviceType["Image"] = "image";
|
|
6909
|
-
return DeviceType;
|
|
6288
|
+
DeviceFeature["MotionTrigger"] = "motion-trigger";
|
|
6289
|
+
/** Light supports rgb-triplet color via `color` cap. */
|
|
6290
|
+
DeviceFeature["LightColorRgb"] = "light-color-rgb";
|
|
6291
|
+
/** Light supports HSV color via `color` cap. */
|
|
6292
|
+
DeviceFeature["LightColorHsv"] = "light-color-hsv";
|
|
6293
|
+
/** Light supports color-temperature (mired) via `color` cap. */
|
|
6294
|
+
DeviceFeature["LightColorMired"] = "light-color-mired";
|
|
6295
|
+
/** Thermostat supports a `heat_cool` dual setpoint (targetLow +
|
|
6296
|
+
* targetHigh). Gates the range slider UI. */
|
|
6297
|
+
DeviceFeature["ClimateDualSetpoint"] = "climate-dual-setpoint";
|
|
6298
|
+
/** Thermostat exposes target humidity and/or current humidity
|
|
6299
|
+
* readings. Gates the humidity controls. */
|
|
6300
|
+
DeviceFeature["ClimateHumidity"] = "climate-humidity";
|
|
6301
|
+
/** Thermostat exposes a fan-mode selector. */
|
|
6302
|
+
DeviceFeature["ClimateFanMode"] = "climate-fan-mode";
|
|
6303
|
+
/** Thermostat exposes preset modes (eco / away / sleep / vendor). */
|
|
6304
|
+
DeviceFeature["ClimatePreset"] = "climate-preset";
|
|
6305
|
+
/** Cover exposes intermediate position control (0..100). Gates the
|
|
6306
|
+
* position slider UI. */
|
|
6307
|
+
DeviceFeature["CoverPositionable"] = "cover-positionable";
|
|
6308
|
+
/** Cover exposes slat-tilt control. Gates the tilt slider UI. */
|
|
6309
|
+
DeviceFeature["CoverTilt"] = "cover-tilt";
|
|
6310
|
+
/** Valve exposes intermediate position control (0..100). Gates the
|
|
6311
|
+
* position slider / drag surface UI. */
|
|
6312
|
+
DeviceFeature["ValvePositionable"] = "valve-positionable";
|
|
6313
|
+
/** Fan exposes a speed-percentage setter. Gates the speed slider UI. */
|
|
6314
|
+
DeviceFeature["FanSpeed"] = "fan-speed";
|
|
6315
|
+
/** Fan exposes a preset mode selector. */
|
|
6316
|
+
DeviceFeature["FanPreset"] = "fan-preset";
|
|
6317
|
+
/** Fan exposes blade direction (forward/reverse) — typical of
|
|
6318
|
+
* ceiling fans. */
|
|
6319
|
+
DeviceFeature["FanDirection"] = "fan-direction";
|
|
6320
|
+
/** Fan exposes an oscillation toggle. */
|
|
6321
|
+
DeviceFeature["FanOscillating"] = "fan-oscillating";
|
|
6322
|
+
/** Lock requires a PIN code on lock/unlock. Gates the code-entry
|
|
6323
|
+
* field on the UI lock-controls panel. */
|
|
6324
|
+
DeviceFeature["LockPinRequired"] = "lock-pin-required";
|
|
6325
|
+
/** Lock supports a latch-release ("open door") action distinct from
|
|
6326
|
+
* unlock. Mirrors HA `LockEntityFeature.OPEN` (bit 1) in
|
|
6327
|
+
* `supported_features`. Gates the Open Door button in the UI. */
|
|
6328
|
+
DeviceFeature["LockOpen"] = "lock-open";
|
|
6329
|
+
/** Media player exposes a seek-to-position surface. */
|
|
6330
|
+
DeviceFeature["MediaPlayerSeek"] = "media-player-seek";
|
|
6331
|
+
/** Media player exposes a volume-level setter. */
|
|
6332
|
+
DeviceFeature["MediaPlayerVolume"] = "media-player-volume";
|
|
6333
|
+
/** Media player exposes a mute toggle distinct from volume=0. */
|
|
6334
|
+
DeviceFeature["MediaPlayerMute"] = "media-player-mute";
|
|
6335
|
+
/** Media player exposes a shuffle toggle. */
|
|
6336
|
+
DeviceFeature["MediaPlayerShuffle"] = "media-player-shuffle";
|
|
6337
|
+
/** Media player exposes a repeat mode (off / all / one). */
|
|
6338
|
+
DeviceFeature["MediaPlayerRepeat"] = "media-player-repeat";
|
|
6339
|
+
/** Media player exposes a source / input selector. */
|
|
6340
|
+
DeviceFeature["MediaPlayerSelectSource"] = "media-player-select-source";
|
|
6341
|
+
/** Media player exposes a play-arbitrary-media surface (URL / id). */
|
|
6342
|
+
DeviceFeature["MediaPlayerPlayMedia"] = "media-player-play-media";
|
|
6343
|
+
/** Media player exposes next-track. */
|
|
6344
|
+
DeviceFeature["MediaPlayerNext"] = "media-player-next";
|
|
6345
|
+
/** Media player exposes previous-track. */
|
|
6346
|
+
DeviceFeature["MediaPlayerPrevious"] = "media-player-previous";
|
|
6347
|
+
/** Media player exposes stop distinct from pause. */
|
|
6348
|
+
DeviceFeature["MediaPlayerStop"] = "media-player-stop";
|
|
6349
|
+
/** Alarm panel requires a PIN code on arm/disarm. */
|
|
6350
|
+
DeviceFeature["AlarmPinRequired"] = "alarm-pin-required";
|
|
6351
|
+
/** Presence device carries GPS coordinates (lat/lng/accuracy) in
|
|
6352
|
+
* addition to a textual location. */
|
|
6353
|
+
DeviceFeature["PresenceGps"] = "presence-gps";
|
|
6354
|
+
/** Notifier accepts an inline / URL image attachment. */
|
|
6355
|
+
DeviceFeature["NotifierImage"] = "notifier-image";
|
|
6356
|
+
/** Notifier accepts a priority hint (high/normal/low). */
|
|
6357
|
+
DeviceFeature["NotifierPriority"] = "notifier-priority";
|
|
6358
|
+
/** Notifier accepts a free-form `data` payload for platform-specific
|
|
6359
|
+
* fields. */
|
|
6360
|
+
DeviceFeature["NotifierData"] = "notifier-data";
|
|
6361
|
+
/** Notifier supports interactive action buttons / callbacks. */
|
|
6362
|
+
DeviceFeature["NotifierActions"] = "notifier-actions";
|
|
6363
|
+
/** Notifier supports per-call recipient targeting (multi-user). */
|
|
6364
|
+
DeviceFeature["NotifierRecipients"] = "notifier-recipients";
|
|
6365
|
+
/** Script runner accepts a variables map on each run invocation. */
|
|
6366
|
+
DeviceFeature["ScriptVariables"] = "script-variables";
|
|
6367
|
+
/** Automation `trigger` accepts a skipCondition flag — fires the
|
|
6368
|
+
* automation's actions while bypassing its condition block. */
|
|
6369
|
+
DeviceFeature["AutomationSkipCondition"] = "automation-skip-condition";
|
|
6370
|
+
return DeviceFeature;
|
|
6371
|
+
}({});
|
|
6372
|
+
/**
|
|
6373
|
+
* Semantic role a device plays within its parent. Populated by driver
|
|
6374
|
+
* addons when creating accessory devices (Reolink siren/floodlight/
|
|
6375
|
+
* PIR/chime/autotrack/doorbell, ONVIF relay outputs, …). Used by the
|
|
6376
|
+
* admin UI to pick icons, labels, and widgets — a `Switch` with
|
|
6377
|
+
* `role: Floodlight` renders as a bulb with a brightness slider,
|
|
6378
|
+
* whereas a `Switch` with `role: Siren` renders as a klaxon.
|
|
6379
|
+
*
|
|
6380
|
+
* Undefined for top-level devices (cameras, NVRs, hubs). Persisted in
|
|
6381
|
+
* sqlite as a nullable TEXT column — old rows keep working unchanged.
|
|
6382
|
+
*/
|
|
6383
|
+
var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
6384
|
+
DeviceRole["Siren"] = "siren";
|
|
6385
|
+
DeviceRole["Floodlight"] = "floodlight";
|
|
6386
|
+
DeviceRole["Spotlight"] = "spotlight";
|
|
6387
|
+
DeviceRole["PirSensor"] = "pir-sensor";
|
|
6388
|
+
DeviceRole["Chime"] = "chime";
|
|
6389
|
+
DeviceRole["Autotrack"] = "autotrack";
|
|
6390
|
+
DeviceRole["Nightvision"] = "nightvision";
|
|
6391
|
+
DeviceRole["PrivacyMask"] = "privacy-mask";
|
|
6392
|
+
DeviceRole["Doorbell"] = "doorbell";
|
|
6393
|
+
/** Virtual HA toggle (input_boolean.*) — distinguishable from a
|
|
6394
|
+
* real Switch device for UI rendering / export adapters. */
|
|
6395
|
+
DeviceRole["BinaryHelper"] = "binary-helper";
|
|
6396
|
+
/** Generic motion / occupancy / moving event source. Distinct from
|
|
6397
|
+
* the camera accessory PirSensor role: that one is a camera child;
|
|
6398
|
+
* this is a standalone HA / 3rd-party motion sensor. */
|
|
6399
|
+
DeviceRole["MotionSensor"] = "motion-sensor";
|
|
6400
|
+
DeviceRole["ContactSensor"] = "contact-sensor";
|
|
6401
|
+
DeviceRole["LeakSensor"] = "leak-sensor";
|
|
6402
|
+
DeviceRole["SmokeSensor"] = "smoke-sensor";
|
|
6403
|
+
DeviceRole["COSensor"] = "co-sensor";
|
|
6404
|
+
DeviceRole["GasSensor"] = "gas-sensor";
|
|
6405
|
+
DeviceRole["TamperSensor"] = "tamper-sensor";
|
|
6406
|
+
DeviceRole["VibrationSensor"] = "vibration-sensor";
|
|
6407
|
+
DeviceRole["ConnectivitySensor"] = "connectivity-sensor";
|
|
6408
|
+
DeviceRole["SoundSensor"] = "sound-sensor";
|
|
6409
|
+
/** Fallback for `binary_sensor` without a known `device_class`. */
|
|
6410
|
+
DeviceRole["BinarySensor"] = "binary-sensor";
|
|
6411
|
+
DeviceRole["TemperatureSensor"] = "temperature-sensor";
|
|
6412
|
+
DeviceRole["HumiditySensor"] = "humidity-sensor";
|
|
6413
|
+
DeviceRole["AmbientLightSensor"] = "ambient-light-sensor";
|
|
6414
|
+
DeviceRole["PressureSensor"] = "pressure-sensor";
|
|
6415
|
+
DeviceRole["PowerSensor"] = "power-sensor";
|
|
6416
|
+
DeviceRole["EnergySensor"] = "energy-sensor";
|
|
6417
|
+
DeviceRole["VoltageSensor"] = "voltage-sensor";
|
|
6418
|
+
DeviceRole["CurrentSensor"] = "current-sensor";
|
|
6419
|
+
DeviceRole["AirQualitySensor"] = "air-quality-sensor";
|
|
6420
|
+
/** Battery level (numeric % via `sensor` OR low-bool via
|
|
6421
|
+
* `binary_sensor` — the cap distinguishes via the value type). */
|
|
6422
|
+
DeviceRole["BatterySensor"] = "battery-sensor";
|
|
6423
|
+
/** Fallback for `sensor` numeric without a known `device_class`. */
|
|
6424
|
+
DeviceRole["NumericSensor"] = "numeric-sensor";
|
|
6425
|
+
/** String / enum state (HA `sensor` with `state_class: enum` or
|
|
6426
|
+
* `attributes.options`). */
|
|
6427
|
+
DeviceRole["EnumSensor"] = "enum-sensor";
|
|
6428
|
+
/** Date / timestamp state (HA `sensor` with `device_class: timestamp`
|
|
6429
|
+
* or `date`). The slice carries the raw ISO string verbatim (hosted on
|
|
6430
|
+
* the `enum-sensor` cap); the UI renders it locale-formatted. */
|
|
6431
|
+
DeviceRole["DateTimeSensor"] = "datetime-sensor";
|
|
6432
|
+
/** Last-resort fallback when nothing else matches. */
|
|
6433
|
+
DeviceRole["GenericSensor"] = "generic-sensor";
|
|
6434
|
+
DeviceRole["NumericControl"] = "numeric-control";
|
|
6435
|
+
DeviceRole["SelectControl"] = "select-control";
|
|
6436
|
+
DeviceRole["TextControl"] = "text-control";
|
|
6437
|
+
DeviceRole["DateTimeControl"] = "datetime-control";
|
|
6438
|
+
/** Mobile push notifier (HA `notify.mobile_app_*`) — supports
|
|
6439
|
+
* rich features (image, priority, channel routing). */
|
|
6440
|
+
DeviceRole["MobilePushNotifier"] = "mobile-push-notifier";
|
|
6441
|
+
/** Chat / messaging service (HA `notify.telegram_*`,
|
|
6442
|
+
* `notify.discord_*`, etc.). */
|
|
6443
|
+
DeviceRole["MessagingNotifier"] = "messaging-notifier";
|
|
6444
|
+
/** Email-based delivery (HA `notify.smtp`, etc.). */
|
|
6445
|
+
DeviceRole["EmailNotifier"] = "email-notifier";
|
|
6446
|
+
/** Fallback when the notifier service name doesn't match a known
|
|
6447
|
+
* pattern. */
|
|
6448
|
+
DeviceRole["GenericNotifier"] = "generic-notifier";
|
|
6449
|
+
return DeviceRole;
|
|
6910
6450
|
}({});
|
|
6911
|
-
|
|
6912
|
-
|
|
6913
|
-
|
|
6451
|
+
/**
|
|
6452
|
+
* Generic types for capability definitions.
|
|
6453
|
+
*
|
|
6454
|
+
* A capability is defined with Zod schemas for methods, events, and settings.
|
|
6455
|
+
* TypeScript types are inferred via z.infer<> — zero duplication.
|
|
6456
|
+
*
|
|
6457
|
+
* Pattern:
|
|
6458
|
+
* 1. Define Zod schemas for data, methods, settings
|
|
6459
|
+
* 2. Export const capabilityDef = { ... } satisfies CapabilityDefinition
|
|
6460
|
+
* 3. Export type IProvider = InferProvider<typeof capabilityDef>
|
|
6461
|
+
* 4. Addon implements IProvider
|
|
6462
|
+
* 5. Registry auto-mounts tRPC router from definition.methods
|
|
6463
|
+
*/
|
|
6464
|
+
/**
|
|
6465
|
+
* Output schema shared by the contribution + live methods.
|
|
6466
|
+
*
|
|
6467
|
+
* Mirrors the `ConfigUISchemaWithValues` shape (sections[] + optional
|
|
6468
|
+
* tabs[]) without importing from `../interfaces/config-ui.js` — a
|
|
6469
|
+
* concrete-but-lenient Zod object keeps tRPC output inference happy
|
|
6470
|
+
* (using `z.unknown()` here collapses unrelated router branches to
|
|
6471
|
+
* `unknown` when the generator re-inlines the huge AppRouter type).
|
|
6472
|
+
*
|
|
6473
|
+
* `.passthrough()` on sections/fields accepts whatever FormBuilder
|
|
6474
|
+
* extensions the caller adds (showWhen, displayScale, …) without
|
|
6475
|
+
* rebuilding every time a new field kind is introduced.
|
|
6476
|
+
*/
|
|
6477
|
+
var ContributionSectionSchema = object({
|
|
6478
|
+
id: string(),
|
|
6479
|
+
title: string(),
|
|
6480
|
+
description: string().optional(),
|
|
6481
|
+
style: _enum(["card", "accordion"]).optional(),
|
|
6482
|
+
defaultCollapsed: boolean().optional(),
|
|
6483
|
+
columns: union([
|
|
6484
|
+
literal(1),
|
|
6485
|
+
literal(2),
|
|
6486
|
+
literal(3),
|
|
6487
|
+
literal(4)
|
|
6488
|
+
]).optional(),
|
|
6489
|
+
tab: string().optional(),
|
|
6490
|
+
location: _enum(["settings", "top-tab"]).optional(),
|
|
6491
|
+
order: number().optional(),
|
|
6492
|
+
fields: array(any())
|
|
6493
|
+
});
|
|
6494
|
+
object({
|
|
6495
|
+
tabs: array(object({
|
|
6496
|
+
id: string(),
|
|
6497
|
+
label: string(),
|
|
6498
|
+
icon: string(),
|
|
6499
|
+
order: number().optional()
|
|
6500
|
+
})).optional(),
|
|
6501
|
+
sections: array(ContributionSectionSchema)
|
|
6502
|
+
}).nullable();
|
|
6503
|
+
object({ deviceId: number() }), object({ deviceId: number() }), object({
|
|
6504
|
+
deviceId: number(),
|
|
6505
|
+
patch: record(string(), unknown())
|
|
6506
|
+
}), object({ success: literal(true) });
|
|
6507
|
+
object({ deviceId: number() }), unknown().nullable();
|
|
6508
|
+
/** Shorthand to define a method schema */
|
|
6509
|
+
function method(input, output, options) {
|
|
6510
|
+
return {
|
|
6511
|
+
input,
|
|
6512
|
+
output,
|
|
6513
|
+
kind: options?.kind ?? "query",
|
|
6514
|
+
auth: options?.auth ?? "protected",
|
|
6515
|
+
...options?.access !== void 0 ? { access: options.access } : {},
|
|
6516
|
+
timeoutMs: options?.timeoutMs
|
|
6517
|
+
};
|
|
6518
|
+
}
|
|
6519
|
+
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
6520
|
+
var VersionOutputSchema = object({ version: string() });
|
|
6521
|
+
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
6522
|
+
/**
|
|
6523
|
+
* device-ops — device-scoped cap that unifies the per-IDevice operations
|
|
6524
|
+
* previously routed through the `.device-ops` Moleculer bridge service.
|
|
6525
|
+
*
|
|
6526
|
+
* Each worker that hosts live `IDevice` instances auto-registers a native
|
|
6527
|
+
* provider for this cap (per device) backed by its local
|
|
6528
|
+
* `DeviceRegistry`. Hub-side callers reach it transparently through
|
|
6529
|
+
* `ctx.fetchDevice(id).deviceOps.*` — the DeviceProxy injects
|
|
6530
|
+
* `deviceId` + `nodeId` and dispatches through the standard cap-router,
|
|
6531
|
+
* so there's no parallel bridge path anymore.
|
|
6532
|
+
*
|
|
6533
|
+
* The surface is intentionally small — every method corresponds to a
|
|
6534
|
+
* single action on the live `IDevice` (or `ICameraDevice` for
|
|
6535
|
+
* `getStreamSources`). Richer orchestration (enable/disable with
|
|
6536
|
+
* integration plumbing, bulk updates) stays in the `device-manager` cap;
|
|
6537
|
+
* `device-ops` is the per-device primitive the device-manager routes to.
|
|
6538
|
+
*/
|
|
6539
|
+
var StreamSourceEntrySchema = object({
|
|
6540
|
+
id: string(),
|
|
6541
|
+
label: string(),
|
|
6542
|
+
protocol: _enum([
|
|
6543
|
+
"rtsp",
|
|
6544
|
+
"rtmp",
|
|
6545
|
+
"annexb",
|
|
6546
|
+
"http-mjpeg",
|
|
6547
|
+
"webrtc",
|
|
6548
|
+
"custom"
|
|
6549
|
+
]),
|
|
6550
|
+
url: string().optional(),
|
|
6551
|
+
resolution: object({
|
|
6552
|
+
width: number(),
|
|
6553
|
+
height: number()
|
|
6554
|
+
}).optional(),
|
|
6555
|
+
fps: number().optional(),
|
|
6556
|
+
bitrate: number().optional(),
|
|
6557
|
+
codec: string().optional(),
|
|
6558
|
+
profileHint: CamProfileSchema.optional(),
|
|
6559
|
+
sdp: string().optional()
|
|
6560
|
+
});
|
|
6561
|
+
var ConfigEntrySchema$1 = object({
|
|
6562
|
+
key: string(),
|
|
6563
|
+
value: unknown()
|
|
6564
|
+
});
|
|
6565
|
+
var RawStateResultSchema = object({
|
|
6566
|
+
/** Originating provider id, e.g. 'homeassistant' | 'reolink' | 'hikvision'. */
|
|
6567
|
+
source: string(),
|
|
6568
|
+
/** Opaque, DISPLAY-SAFE upstream blob (no secrets/PII). */
|
|
6569
|
+
data: record(string(), unknown())
|
|
6570
|
+
});
|
|
6571
|
+
method(object({ deviceId: number() }), array(StreamSourceEntrySchema)), method(object({ deviceId: number() }), array(ConfigEntrySchema$1)), method(object({
|
|
6572
|
+
deviceId: number(),
|
|
6573
|
+
values: record(string(), unknown())
|
|
6574
|
+
}), _void(), { kind: "mutation" }), method(object({
|
|
6575
|
+
deviceId: number(),
|
|
6576
|
+
action: string().min(1),
|
|
6577
|
+
input: unknown()
|
|
6578
|
+
}), unknown(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), unknown().nullable()), method(object({ deviceId: number() }), RawStateResultSchema.nullable(), { auth: "protected" });
|
|
6579
|
+
//#endregion
|
|
6580
|
+
//#region ../types/dist/index.mjs
|
|
6581
|
+
/**
|
|
6582
|
+
* Deep wiring healthcheck — snapshot of active reachability probes across
|
|
6583
|
+
* every declared capability + widget of every installed plugin, on every
|
|
6584
|
+
* node. Produced by the backend `WiringHealthService` and surfaced via
|
|
6585
|
+
* `GET /health/wiring`, the tRPC `health.wiring` query, and the boot-gate.
|
|
6586
|
+
*
|
|
6587
|
+
* Unlike `/health` (process liveness), this reflects whether each cap/widget
|
|
6588
|
+
* is actually *reachable* over the real cap-dispatch path. See spec
|
|
6589
|
+
* `docs/superpowers/specs/2026-05-23-deep-healthcheck-design.md`.
|
|
6590
|
+
*/
|
|
6591
|
+
/** What kind of target a probe addressed. */
|
|
6592
|
+
var wiringProbeKindSchema = _enum([
|
|
6593
|
+
"singleton",
|
|
6594
|
+
"device",
|
|
6595
|
+
"widget"
|
|
6596
|
+
]);
|
|
6597
|
+
/** Result of probing a single (cap|widget [, device]) target. */
|
|
6598
|
+
var wiringProbeResultSchema = object({
|
|
6599
|
+
capName: string(),
|
|
6600
|
+
kind: wiringProbeKindSchema,
|
|
6601
|
+
deviceId: number().optional(),
|
|
6602
|
+
reachable: boolean(),
|
|
6603
|
+
latencyMs: number(),
|
|
6604
|
+
error: string().optional()
|
|
6605
|
+
});
|
|
6606
|
+
/** Per-addon roll-up of cap + widget probe results. */
|
|
6607
|
+
var wiringAddonHealthSchema = object({
|
|
6608
|
+
addonId: string(),
|
|
6609
|
+
caps: array(wiringProbeResultSchema).readonly(),
|
|
6610
|
+
widgets: array(wiringProbeResultSchema).readonly()
|
|
6611
|
+
});
|
|
6612
|
+
/** Per-node roll-up. */
|
|
6613
|
+
var wiringNodeHealthSchema = object({
|
|
6614
|
+
nodeId: string(),
|
|
6615
|
+
addons: array(wiringAddonHealthSchema).readonly()
|
|
6616
|
+
});
|
|
6617
|
+
object({
|
|
6618
|
+
/** True only when every probed target is reachable. */
|
|
6619
|
+
ok: boolean(),
|
|
6620
|
+
/** True when at least one target is unreachable. */
|
|
6621
|
+
degraded: boolean(),
|
|
6622
|
+
checkedAt: string(),
|
|
6623
|
+
nodes: array(wiringNodeHealthSchema).readonly(),
|
|
6624
|
+
summary: object({
|
|
6625
|
+
total: number(),
|
|
6626
|
+
reachable: number(),
|
|
6627
|
+
unreachable: number()
|
|
6628
|
+
})
|
|
6629
|
+
});
|
|
6630
|
+
var MODEL_FORMATS = [
|
|
6631
|
+
"onnx",
|
|
6632
|
+
"coreml",
|
|
6633
|
+
"openvino",
|
|
6634
|
+
"tflite",
|
|
6635
|
+
"pt"
|
|
6636
|
+
];
|
|
6637
|
+
/**
|
|
6638
|
+
* Numeric day-of-week: 0 = Sunday … 6 = Saturday (matches `Date.getDay`).
|
|
6639
|
+
* Named `RecordingWeekday` to avoid collision with the string-union
|
|
6640
|
+
* `Weekday` exported from `interfaces/timezones.ts`.
|
|
6641
|
+
*/
|
|
6642
|
+
var RecordingWeekdaySchema = number().int().min(0).max(6);
|
|
6643
|
+
var HHMM = /^([01]\d|2[0-3]):[0-5]\d$/;
|
|
6644
|
+
var RecordingScheduleSchema = discriminatedUnion("kind", [object({ kind: literal("always") }), object({
|
|
6645
|
+
kind: literal("timeOfDay"),
|
|
6646
|
+
start: string().regex(HHMM),
|
|
6647
|
+
end: string().regex(HHMM),
|
|
6648
|
+
/** Restrict to these weekdays; omit = every day. */
|
|
6649
|
+
days: array(RecordingWeekdaySchema).optional()
|
|
6650
|
+
})]);
|
|
6651
|
+
var RecordingModeSchema = _enum([
|
|
6652
|
+
"continuous",
|
|
6653
|
+
"onMotion",
|
|
6654
|
+
"onAudioThreshold"
|
|
6655
|
+
]);
|
|
6656
|
+
/**
|
|
6657
|
+
* First-class, authoritative per-camera storage mode — the netta choice the UI
|
|
6658
|
+
* reads directly (never inferred from `rules`):
|
|
6659
|
+
* - `off` — not recording.
|
|
6660
|
+
* - `events` — record only around triggers (motion / audio threshold),
|
|
6661
|
+
* with pre/post-buffer.
|
|
6662
|
+
* - `continuous` — record 24/7 within the schedule.
|
|
6663
|
+
*
|
|
6664
|
+
* `mode` compiles one-way to the internal `rules[]` consumed by the policy
|
|
6665
|
+
* engine (see `compileRules`); `rules[]` is never authored directly anymore.
|
|
6666
|
+
*/
|
|
6667
|
+
var RecordingStorageModeSchema = _enum([
|
|
6668
|
+
"off",
|
|
6669
|
+
"events",
|
|
6670
|
+
"continuous"
|
|
6671
|
+
]);
|
|
6672
|
+
/** Which detectors trigger an `events`-mode recording. */
|
|
6673
|
+
var RecordingTriggersSchema = object({
|
|
6674
|
+
motion: boolean().optional(),
|
|
6675
|
+
audioThresholdDbfs: number().optional()
|
|
6676
|
+
});
|
|
6677
|
+
/**
|
|
6678
|
+
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
6679
|
+
*
|
|
6680
|
+
* Distinct from `RecordingStorageModeSchema` (which carries `off`): a band is
|
|
6681
|
+
* only ever `continuous` or `events`; "off" is expressed by the absence of a
|
|
6682
|
+
* covering band, not by a band value.
|
|
6683
|
+
*/
|
|
6684
|
+
var RecordingBandModeSchema = _enum(["continuous", "events"]);
|
|
6685
|
+
/**
|
|
6686
|
+
* Triggers for an `events`-mode band. Identical shape to
|
|
6687
|
+
* `RecordingTriggersSchema` — reuse that schema as the band trigger type so the
|
|
6688
|
+
* two never drift.
|
|
6689
|
+
*/
|
|
6690
|
+
var RecordingBandTriggersSchema = RecordingTriggersSchema;
|
|
6691
|
+
/**
|
|
6692
|
+
* A single mode-per-band window — the canonical recorder band shape, the
|
|
6693
|
+
* single source of truth re-used by `addon-pipeline/recorder`.
|
|
6694
|
+
*
|
|
6695
|
+
* `days` lists the weekdays the band covers (empty = every day, matching the
|
|
6696
|
+
* band engine's `applies` rule). `start`/`end` are `HH:MM`; an `end <= start`
|
|
6697
|
+
* span wraps past midnight (handled by the band engine).
|
|
6698
|
+
*/
|
|
6699
|
+
var RecordingBandSchema = object({
|
|
6700
|
+
days: array(RecordingWeekdaySchema),
|
|
6701
|
+
start: string().regex(HHMM),
|
|
6702
|
+
end: string().regex(HHMM),
|
|
6703
|
+
mode: RecordingBandModeSchema,
|
|
6704
|
+
triggers: RecordingBandTriggersSchema.optional(),
|
|
6705
|
+
preBufferSec: number().min(0).optional(),
|
|
6706
|
+
postBufferSec: number().min(0).optional()
|
|
6707
|
+
});
|
|
6708
|
+
var RecordingRuleSchema = object({
|
|
6709
|
+
schedule: RecordingScheduleSchema,
|
|
6710
|
+
mode: RecordingModeSchema,
|
|
6711
|
+
/** Seconds of footage to retain BEFORE a trigger (applied at keep/discard). */
|
|
6712
|
+
preBufferSec: number().min(0).default(0),
|
|
6713
|
+
/** Keep recording until this many seconds after the last trigger. */
|
|
6714
|
+
postBufferSec: number().min(0).default(0),
|
|
6715
|
+
/** Each new trigger restarts the post-buffer window. */
|
|
6716
|
+
resetTimeoutOnNewEvent: boolean().default(true),
|
|
6717
|
+
/** onAudioThreshold only — dBFS level that counts as a trigger. */
|
|
6718
|
+
thresholdDbfs: number().optional()
|
|
6719
|
+
});
|
|
6720
|
+
/**
|
|
6721
|
+
* Per-device retention overrides. Every field is optional; an unset or `0`
|
|
6722
|
+
* value inherits the node-wide recorder default. Only footage-lifetime limits
|
|
6723
|
+
* live per-camera: `maxAgeDays` and `maxSizeGb`. The disk-occupancy threshold
|
|
6724
|
+
* (when the volume is too full to keep recording) is NOT a per-camera concern —
|
|
6725
|
+
* it belongs to the StorageLocation (`StorageLocation.config.minFreePercent`),
|
|
6726
|
+
* shared by every camera writing to that volume.
|
|
6727
|
+
*/
|
|
6728
|
+
var RecordingRetentionSchema = object({
|
|
6729
|
+
maxAgeDays: number().min(0).optional(),
|
|
6730
|
+
maxSizeGb: number().min(0).optional()
|
|
6731
|
+
});
|
|
6732
|
+
/**
|
|
6733
|
+
* The full per-camera recording intent — the wire shape of a RecordingTarget.
|
|
6734
|
+
*
|
|
6735
|
+
* `mode` is the authoritative storage choice; `schedule`/`triggers`/`pre`/`post`
|
|
6736
|
+
* are its mode-specific parameters. `rules` is a DEPRECATED authoring input kept
|
|
6737
|
+
* only for transition + migration (`migrateRulesToMode`); the policy engine
|
|
6738
|
+
* consumes the compiled output of `compileRules(config)`, never `rules` directly.
|
|
6739
|
+
*/
|
|
6740
|
+
var RecordingConfigSchema = object({
|
|
6741
|
+
enabled: boolean(),
|
|
6742
|
+
/** Authoritative storage mode. Absent on legacy targets → derived once via
|
|
6743
|
+
* `migrateRulesToMode`, then persisted. */
|
|
6744
|
+
mode: RecordingStorageModeSchema.optional(),
|
|
6745
|
+
profiles: array(CamProfileSchema).optional(),
|
|
6746
|
+
segmentSeconds: number().int().positive().optional(),
|
|
6747
|
+
/** Shared recording time-bands for `events` & `continuous` — record only when
|
|
6748
|
+
* the wall-clock falls inside one of these windows. Omit or empty = always.
|
|
6749
|
+
* `continuous` compiles to one rule per band; `events` to band × trigger. */
|
|
6750
|
+
schedules: array(RecordingScheduleSchema).optional(),
|
|
6751
|
+
/** Legacy single-band predecessor of `schedules`. Read-compat only — it is
|
|
6752
|
+
* normalized into `schedules` on read and never written going forward. (Not
|
|
6753
|
+
* tagged `@deprecated`: the normalization paths must read it cast-free.) */
|
|
6754
|
+
schedule: RecordingScheduleSchema.optional(),
|
|
6755
|
+
/** `events`-mode only — which detectors trigger a recording. */
|
|
6756
|
+
triggers: RecordingTriggersSchema.optional(),
|
|
6757
|
+
/** `events`-mode only — seconds retained before / after a trigger. */
|
|
6758
|
+
preBufferSec: number().min(0).optional(),
|
|
6759
|
+
postBufferSec: number().min(0).optional(),
|
|
6760
|
+
/** DEPRECATED authoring input; retained for migration/transition. */
|
|
6761
|
+
rules: array(RecordingRuleSchema).optional(),
|
|
6762
|
+
/**
|
|
6763
|
+
* AUTHORITATIVE mode-per-band recording model (recorder). When present it
|
|
6764
|
+
* is the single source of truth; the legacy `mode`/`schedules`/`schedule`/
|
|
6765
|
+
* `triggers`/`rules` fields above are kept for READ-COMPAT only and are
|
|
6766
|
+
* derived into bands once via `migrateConfigToBands`.
|
|
6767
|
+
*/
|
|
6768
|
+
bands: array(RecordingBandSchema).optional(),
|
|
6769
|
+
retention: RecordingRetentionSchema.optional()
|
|
6770
|
+
});
|
|
6771
|
+
/**
|
|
6772
|
+
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
6773
|
+
* storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
|
|
6774
|
+
* so the persisted record schema and the consumer-facing cap can both consume it
|
|
6775
|
+
* without forming a circular import. The `storage` cap re-exports it
|
|
6776
|
+
* verbatim for back-compat.
|
|
6777
|
+
*
|
|
6778
|
+
* This Zod schema is the **authoritative source** for `StorageLocationType`.
|
|
6779
|
+
* The TS alias in `./storage.ts` re-exports `z.infer<typeof
|
|
6780
|
+
* StorageLocationTypeSchema>` so the wire surface (cap) and the legacy
|
|
6781
|
+
* `IStorageProvider` interface stay in lockstep.
|
|
6782
|
+
*
|
|
6783
|
+
* The type is now an **open string** (not a closed enum) — addons declare
|
|
6784
|
+
* their own location kinds via `StorageLocationDeclaration.id`. The regex
|
|
6785
|
+
* enforces a safe id format: lowercase-start, alphanumeric + hyphens.
|
|
6786
|
+
*/
|
|
6787
|
+
var StorageLocationTypeSchema = string().regex(/^[a-z][a-zA-Z0-9-]*$/);
|
|
6788
|
+
/**
|
|
6789
|
+
* Persisted record for a storage location instance. Operators can register
|
|
6790
|
+
* multiple instances for multi-cardinality types (e.g. two `backups`
|
|
6791
|
+
* locations with different `providerId`s). Cardinality is now declared per
|
|
6792
|
+
* location via `StorageLocationDeclaration.cardinality` — the static
|
|
6793
|
+
* `STORAGE_LOCATION_CARDINALITY` map has been removed.
|
|
6794
|
+
*
|
|
6795
|
+
* `id` is a stable namespaced string of the form `<type>:<slug>`.
|
|
6796
|
+
* The default location for a type uses `id === <type>:default` by
|
|
6797
|
+
* convention (the bare type ref like `'backups'` resolves to it).
|
|
6798
|
+
*
|
|
6799
|
+
* `isSystem: true` marks a location as orchestrator-seeded and
|
|
6800
|
+
* undeletable. The bootstrap-installed defaults (one per type) carry
|
|
6801
|
+
* this flag; operator-added locations don't. Editing the config of
|
|
6802
|
+
* a system location is allowed (path migration, provider swap) but
|
|
6803
|
+
* deleting it is rejected at the cap level.
|
|
6804
|
+
*/
|
|
6805
|
+
var StorageLocationSchema = object({
|
|
6806
|
+
id: string().regex(/^[a-z][a-zA-Z0-9-]*:[a-zA-Z0-9-]+$/),
|
|
6807
|
+
type: string(),
|
|
6808
|
+
displayName: string().min(1),
|
|
6809
|
+
providerId: string().min(1),
|
|
6810
|
+
config: record(string(), unknown()),
|
|
6811
|
+
/**
|
|
6812
|
+
* Cluster node this location physically lives on. REQUIRED for node-local
|
|
6813
|
+
* providers (filesystem — the path exists on one node's disk), null/absent
|
|
6814
|
+
* for node-agnostic providers (S3/SFTP/WebDAV, reachable from any node).
|
|
6815
|
+
* `'hub'` is the hub node. Validated against the provider's `nodeLocal`
|
|
6816
|
+
* flag at upsert time, not here (the schema is provider-agnostic).
|
|
6817
|
+
*/
|
|
6818
|
+
nodeId: string().optional(),
|
|
6819
|
+
isDefault: boolean().default(false),
|
|
6820
|
+
isSystem: boolean().default(false),
|
|
6821
|
+
createdAt: number(),
|
|
6822
|
+
updatedAt: number()
|
|
6823
|
+
});
|
|
6824
|
+
/**
|
|
6825
|
+
* Reference accepted by consumer-facing `api.storage.*` calls.
|
|
6826
|
+
* Either:
|
|
6827
|
+
* - a `StorageLocationType` (e.g. `'backups'`) → orchestrator resolves to the default of that type
|
|
6828
|
+
* - a fully-qualified id (e.g. `'backups:nas-01'`) → addresses a specific instance
|
|
6829
|
+
*
|
|
6830
|
+
* The orchestrator's `resolveRef(ref)` handles both cases.
|
|
6831
|
+
*/
|
|
6832
|
+
var StorageLocationRefSchema = union([StorageLocationTypeSchema, string().regex(/^[a-z][a-zA-Z0-9-]*:[a-zA-Z0-9-]+$/)]);
|
|
6833
|
+
/**
|
|
6834
|
+
* `StorageLocationDeclaration` — a single storage-location entry declared by
|
|
6835
|
+
* an addon in its `package.json` under `camstack.storageLocations`.
|
|
6836
|
+
*
|
|
6837
|
+
* Design intent:
|
|
6838
|
+
* - **Addon declares its needs** — each addon describes the logical storage
|
|
6839
|
+
* slots it requires (e.g. `recordings`, `recordingsLow`) without caring
|
|
6840
|
+
* about the physical path.
|
|
6841
|
+
* - **Kernel aggregates** — at boot the kernel collects declarations from all
|
|
6842
|
+
* installed addons, deduplicates by `id`, and exposes the union via the
|
|
6843
|
+
* storage-locations settings surface.
|
|
6844
|
+
* - **Orchestrator seeds** — for every declared `id` the orchestrator ensures
|
|
6845
|
+
* at least one instance named `<id>:default` is present, using
|
|
6846
|
+
* `defaultsTo` to inherit the resolved root from another location when the
|
|
6847
|
+
* declaration is a derivative slot (e.g. `recordingsLow` defaults to
|
|
6848
|
+
* `recordings`).
|
|
6849
|
+
* - **ids are global** — `id` values are shared across the entire deployment;
|
|
6850
|
+
* two addons declaring the same `id` must agree on `cardinality` (validated
|
|
6851
|
+
* at kernel aggregation time, not here).
|
|
6852
|
+
*/
|
|
6853
|
+
var StorageLocationDeclarationSchema = object({
|
|
6854
|
+
/**
|
|
6855
|
+
* Global location identifier, e.g. `recordings` or `recordingsLow`.
|
|
6856
|
+
* Must start with a lowercase letter and may contain letters, digits, and
|
|
6857
|
+
* hyphens.
|
|
6858
|
+
*/
|
|
6859
|
+
id: string().regex(/^[a-z][a-zA-Z0-9-]*$/, { message: "id must start with a lowercase letter and contain only letters, digits, or hyphens" }),
|
|
6860
|
+
/** Human-readable name shown in the admin UI. */
|
|
6861
|
+
displayName: string().min(1, { message: "displayName must not be empty" }),
|
|
6862
|
+
/** Optional longer explanation of what data this location stores. */
|
|
6863
|
+
description: string().optional(),
|
|
6864
|
+
/**
|
|
6865
|
+
* `single` — exactly one instance of this location is allowed system-wide
|
|
6866
|
+
* (e.g. `logs`, `models`). The operator can edit it but not add more.
|
|
6867
|
+
* `multi` — the operator may register several instances (e.g. a second
|
|
6868
|
+
* `recordings` on a NAS for disk tiering); one is the default at any time.
|
|
6869
|
+
*/
|
|
6870
|
+
cardinality: _enum(["single", "multi"]),
|
|
6871
|
+
/**
|
|
6872
|
+
* When set, the default instance for this location inherits its resolved
|
|
6873
|
+
* root from the named location's default instance. Useful for derivative
|
|
6874
|
+
* slots (e.g. `recordingsLow` → `recordings`) so operators only need to
|
|
6875
|
+
* configure the primary location.
|
|
6876
|
+
*/
|
|
6877
|
+
defaultsTo: string().optional()
|
|
6878
|
+
});
|
|
6879
|
+
var DecoderStatsSchema = object({
|
|
6880
|
+
inputFps: number(),
|
|
6881
|
+
outputFps: number(),
|
|
6882
|
+
avgDecodeTimeMs: number(),
|
|
6883
|
+
droppedFrames: number()
|
|
6884
|
+
});
|
|
6885
|
+
var DecoderSessionConfigSchema = object({
|
|
6886
|
+
codec: string(),
|
|
6887
|
+
maxFps: number().default(0),
|
|
6888
|
+
outputFormat: _enum([
|
|
6889
|
+
"jpeg",
|
|
6890
|
+
"rgb",
|
|
6891
|
+
"bgr",
|
|
6892
|
+
"yuv420",
|
|
6893
|
+
"gray"
|
|
6894
|
+
]).default("jpeg"),
|
|
6895
|
+
scale: number().default(1),
|
|
6896
|
+
width: number().optional(),
|
|
6897
|
+
height: number().optional(),
|
|
6914
6898
|
/**
|
|
6915
|
-
*
|
|
6916
|
-
*
|
|
6917
|
-
*
|
|
6899
|
+
* Identifier of the camera this decoder session serves. Optional
|
|
6900
|
+
* because the cap is generic (any caller could request decode), but
|
|
6901
|
+
* stream-broker passes it so decoder logs include `deviceId` for
|
|
6902
|
+
* per-camera filtering when diagnosing failures (e.g. node-av
|
|
6903
|
+
* sendPacket errors on a single hung camera).
|
|
6918
6904
|
*/
|
|
6919
|
-
|
|
6920
|
-
DeviceFeature["NativeSnapshot"] = "native-snapshot";
|
|
6921
|
-
DeviceFeature["DoorbellButton"] = "doorbell-button";
|
|
6922
|
-
DeviceFeature["TwoWayAudio"] = "two-way-audio";
|
|
6923
|
-
DeviceFeature["PanTiltZoom"] = "pan-tilt-zoom";
|
|
6905
|
+
deviceId: number().int().nonnegative().optional(),
|
|
6924
6906
|
/**
|
|
6925
|
-
*
|
|
6926
|
-
*
|
|
6927
|
-
*
|
|
6928
|
-
*
|
|
6929
|
-
* the cap registry. Mirrors `ptz-autotrack` cap registration:
|
|
6930
|
-
* driver sets this feature when probe confirms the firmware
|
|
6931
|
-
* surface, and registers the cap in the same code path.
|
|
6907
|
+
* Free-form tag for log scoping. Stream-broker uses
|
|
6908
|
+
* `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
|
|
6909
|
+
* on every line so `grep tag=broker:5/high` filters one camera
|
|
6910
|
+
* profile cleanly.
|
|
6932
6911
|
*/
|
|
6933
|
-
|
|
6912
|
+
tag: string().optional(),
|
|
6934
6913
|
/**
|
|
6935
|
-
*
|
|
6936
|
-
* motion detection automatically activates this device. Mirrors
|
|
6937
|
-
* `motion-trigger` cap registration: drivers set this feature in the
|
|
6938
|
-
* same code path that calls `ctx.registerNativeCap(motionTriggerCapability, ...)`.
|
|
6914
|
+
* Where the session delivers decoded frames (Phase 5 / D9):
|
|
6939
6915
|
*
|
|
6940
|
-
*
|
|
6941
|
-
*
|
|
6942
|
-
*
|
|
6916
|
+
* - `'callback'` (default) — the legacy pixel path: decoded frames are
|
|
6917
|
+
* buffered as `DecodedFrame`s and drained via `pullFrames`.
|
|
6918
|
+
* - `'shm'` — the shared-memory frame plane: decoded frames are written
|
|
6919
|
+
* into an OS shared-memory ring and drained as zero-pixel
|
|
6920
|
+
* `FrameHandle`s via `pullHandles`. A session is one mode or the
|
|
6921
|
+
* other — `pullFrames` returns nothing for an `'shm'` session and
|
|
6922
|
+
* `pullHandles` returns nothing for a `'callback'` session.
|
|
6943
6923
|
*/
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
|
|
6973
|
-
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
|
|
6980
|
-
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
-
|
|
6984
|
-
|
|
6985
|
-
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
|
|
6996
|
-
|
|
6997
|
-
/**
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
|
|
7009
|
-
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
|
|
7046
|
-
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
|
|
7069
|
-
|
|
7070
|
-
|
|
7071
|
-
|
|
7072
|
-
|
|
7073
|
-
|
|
7074
|
-
|
|
7075
|
-
|
|
7076
|
-
|
|
7077
|
-
|
|
7078
|
-
|
|
7079
|
-
|
|
7080
|
-
|
|
7081
|
-
|
|
7082
|
-
|
|
7083
|
-
|
|
7084
|
-
|
|
7085
|
-
|
|
7086
|
-
|
|
7087
|
-
|
|
7088
|
-
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
6924
|
+
frameSink: _enum(["callback", "shm"]).default("callback")
|
|
6925
|
+
});
|
|
6926
|
+
var EncodeProfileSchema = object({
|
|
6927
|
+
video: object({
|
|
6928
|
+
codec: _enum([
|
|
6929
|
+
"h264",
|
|
6930
|
+
"h265",
|
|
6931
|
+
"copy"
|
|
6932
|
+
]),
|
|
6933
|
+
profile: _enum([
|
|
6934
|
+
"baseline",
|
|
6935
|
+
"main",
|
|
6936
|
+
"high"
|
|
6937
|
+
]).optional(),
|
|
6938
|
+
width: number().int().positive().optional(),
|
|
6939
|
+
height: number().int().positive().optional(),
|
|
6940
|
+
fps: number().positive().optional(),
|
|
6941
|
+
bitrateKbps: number().int().positive().optional(),
|
|
6942
|
+
gopFrames: number().int().positive().optional(),
|
|
6943
|
+
bf: number().int().min(0).optional(),
|
|
6944
|
+
preset: _enum([
|
|
6945
|
+
"ultrafast",
|
|
6946
|
+
"superfast",
|
|
6947
|
+
"veryfast",
|
|
6948
|
+
"faster",
|
|
6949
|
+
"fast",
|
|
6950
|
+
"medium"
|
|
6951
|
+
]).optional(),
|
|
6952
|
+
tune: _enum([
|
|
6953
|
+
"zerolatency",
|
|
6954
|
+
"film",
|
|
6955
|
+
"animation"
|
|
6956
|
+
]).optional()
|
|
6957
|
+
}),
|
|
6958
|
+
audio: union([literal("passthrough"), object({
|
|
6959
|
+
codec: _enum([
|
|
6960
|
+
"opus",
|
|
6961
|
+
"aac",
|
|
6962
|
+
"pcmu",
|
|
6963
|
+
"pcma",
|
|
6964
|
+
"copy"
|
|
6965
|
+
]),
|
|
6966
|
+
bitrateKbps: number().int().positive().optional(),
|
|
6967
|
+
sampleRateHz: number().int().positive().optional(),
|
|
6968
|
+
channels: union([literal(1), literal(2)]).optional()
|
|
6969
|
+
})]),
|
|
6970
|
+
/**
|
|
6971
|
+
* ffmpeg input-side args, inserted between the fixed global flags
|
|
6972
|
+
* (`-hide_banner -loglevel error`) and `-i pipe:0`. Free-text array
|
|
6973
|
+
* — the widget surfaces a textarea + suggestion chips for the most-
|
|
6974
|
+
* used demuxer/format options.
|
|
6975
|
+
*/
|
|
6976
|
+
inputArgs: array(string()).optional(),
|
|
6977
|
+
/**
|
|
6978
|
+
* ffmpeg output-side args, inserted between the encode block and
|
|
6979
|
+
* the final `-f <muxer> pipe:1`. Use for muxer options, bitstream
|
|
6980
|
+
* filters, codec-specific overrides. Free-text array.
|
|
6981
|
+
*/
|
|
6982
|
+
outputArgs: array(string()).optional()
|
|
6983
|
+
});
|
|
6984
|
+
var YAMNET_TO_MACRO = {
|
|
6985
|
+
mapping: {
|
|
6986
|
+
Speech: "speech",
|
|
6987
|
+
"Child speech, kid speaking": "speech",
|
|
6988
|
+
Conversation: "speech",
|
|
6989
|
+
"Narration, monologue": "speech",
|
|
6990
|
+
Babbling: "speech",
|
|
6991
|
+
Whispering: "speech",
|
|
6992
|
+
"Speech synthesizer": "speech",
|
|
6993
|
+
Humming: "speech",
|
|
6994
|
+
Rapping: "speech",
|
|
6995
|
+
Singing: "speech",
|
|
6996
|
+
Choir: "speech",
|
|
6997
|
+
"Child singing": "speech",
|
|
6998
|
+
Shout: "scream",
|
|
6999
|
+
Bellow: "scream",
|
|
7000
|
+
Yell: "scream",
|
|
7001
|
+
Screaming: "scream",
|
|
7002
|
+
"Children shouting": "scream",
|
|
7003
|
+
Whoop: "scream",
|
|
7004
|
+
"Crying, sobbing": "crying",
|
|
7005
|
+
"Baby cry, infant cry": "crying",
|
|
7006
|
+
Whimper: "crying",
|
|
7007
|
+
"Wail, moan": "crying",
|
|
7008
|
+
Groan: "crying",
|
|
7009
|
+
Laughter: "laughter",
|
|
7010
|
+
"Baby laughter": "laughter",
|
|
7011
|
+
Giggle: "laughter",
|
|
7012
|
+
Snicker: "laughter",
|
|
7013
|
+
"Belly laugh": "laughter",
|
|
7014
|
+
"Chuckle, chortle": "laughter",
|
|
7015
|
+
Music: "music",
|
|
7016
|
+
"Musical instrument": "music",
|
|
7017
|
+
Guitar: "music",
|
|
7018
|
+
Piano: "music",
|
|
7019
|
+
Drum: "music",
|
|
7020
|
+
"Drum kit": "music",
|
|
7021
|
+
"Violin, fiddle": "music",
|
|
7022
|
+
Flute: "music",
|
|
7023
|
+
Saxophone: "music",
|
|
7024
|
+
Trumpet: "music",
|
|
7025
|
+
Synthesizer: "music",
|
|
7026
|
+
"Pop music": "music",
|
|
7027
|
+
"Rock music": "music",
|
|
7028
|
+
"Hip hop music": "music",
|
|
7029
|
+
"Classical music": "music",
|
|
7030
|
+
Jazz: "music",
|
|
7031
|
+
"Electronic music": "music",
|
|
7032
|
+
"Background music": "music",
|
|
7033
|
+
Dog: "dog",
|
|
7034
|
+
Bark: "dog",
|
|
7035
|
+
Yip: "dog",
|
|
7036
|
+
Howl: "dog",
|
|
7037
|
+
"Bow-wow": "dog",
|
|
7038
|
+
Growling: "dog",
|
|
7039
|
+
"Whimper (dog)": "dog",
|
|
7040
|
+
Cat: "cat",
|
|
7041
|
+
Purr: "cat",
|
|
7042
|
+
Meow: "cat",
|
|
7043
|
+
Hiss: "cat",
|
|
7044
|
+
Caterwaul: "cat",
|
|
7045
|
+
Bird: "bird",
|
|
7046
|
+
"Bird vocalization, bird call, bird song": "bird",
|
|
7047
|
+
"Chirp, tweet": "bird",
|
|
7048
|
+
Squawk: "bird",
|
|
7049
|
+
Crow: "bird",
|
|
7050
|
+
Owl: "bird",
|
|
7051
|
+
"Pigeon, dove": "bird",
|
|
7052
|
+
Animal: "animal",
|
|
7053
|
+
"Domestic animals, pets": "animal",
|
|
7054
|
+
"Livestock, farm animals, working animals": "animal",
|
|
7055
|
+
Horse: "animal",
|
|
7056
|
+
"Cattle, bovinae": "animal",
|
|
7057
|
+
Pig: "animal",
|
|
7058
|
+
Sheep: "animal",
|
|
7059
|
+
Goat: "animal",
|
|
7060
|
+
Frog: "animal",
|
|
7061
|
+
Insect: "animal",
|
|
7062
|
+
Cricket: "animal",
|
|
7063
|
+
Alarm: "alarm",
|
|
7064
|
+
"Alarm clock": "alarm",
|
|
7065
|
+
"Smoke detector, smoke alarm": "alarm",
|
|
7066
|
+
"Fire alarm": "alarm",
|
|
7067
|
+
Buzzer: "alarm",
|
|
7068
|
+
"Civil defense siren": "alarm",
|
|
7069
|
+
"Car alarm": "alarm",
|
|
7070
|
+
Siren: "siren",
|
|
7071
|
+
"Police car (siren)": "siren",
|
|
7072
|
+
"Ambulance (siren)": "siren",
|
|
7073
|
+
"Fire engine, fire truck (siren)": "siren",
|
|
7074
|
+
"Emergency vehicle": "siren",
|
|
7075
|
+
Foghorn: "siren",
|
|
7076
|
+
Doorbell: "doorbell",
|
|
7077
|
+
"Ding-dong": "doorbell",
|
|
7078
|
+
Knock: "doorbell",
|
|
7079
|
+
Tap: "doorbell",
|
|
7080
|
+
Glass: "glass_breaking",
|
|
7081
|
+
Shatter: "glass_breaking",
|
|
7082
|
+
"Chink, clink": "glass_breaking",
|
|
7083
|
+
"Gunshot, gunfire": "gunshot",
|
|
7084
|
+
"Machine gun": "gunshot",
|
|
7085
|
+
Explosion: "gunshot",
|
|
7086
|
+
Fireworks: "gunshot",
|
|
7087
|
+
Firecracker: "gunshot",
|
|
7088
|
+
"Artillery fire": "gunshot",
|
|
7089
|
+
"Cap gun": "gunshot",
|
|
7090
|
+
Boom: "gunshot",
|
|
7091
|
+
Vehicle: "vehicle",
|
|
7092
|
+
Car: "vehicle",
|
|
7093
|
+
Truck: "vehicle",
|
|
7094
|
+
Bus: "vehicle",
|
|
7095
|
+
Motorcycle: "vehicle",
|
|
7096
|
+
"Car passing by": "vehicle",
|
|
7097
|
+
"Vehicle horn, car horn, honking": "vehicle",
|
|
7098
|
+
"Traffic noise, roadway noise": "vehicle",
|
|
7099
|
+
Train: "vehicle",
|
|
7100
|
+
Aircraft: "vehicle",
|
|
7101
|
+
Helicopter: "vehicle",
|
|
7102
|
+
Bicycle: "vehicle",
|
|
7103
|
+
Skateboard: "vehicle",
|
|
7104
|
+
Fire: "fire",
|
|
7105
|
+
Crackle: "fire",
|
|
7106
|
+
Water: "water",
|
|
7107
|
+
Rain: "water",
|
|
7108
|
+
Raindrop: "water",
|
|
7109
|
+
"Rain on surface": "water",
|
|
7110
|
+
Stream: "water",
|
|
7111
|
+
Waterfall: "water",
|
|
7112
|
+
Ocean: "water",
|
|
7113
|
+
"Waves, surf": "water",
|
|
7114
|
+
"Splash, splatter": "water",
|
|
7115
|
+
Wind: "wind",
|
|
7116
|
+
Thunderstorm: "wind",
|
|
7117
|
+
Thunder: "wind",
|
|
7118
|
+
"Wind noise (microphone)": "wind",
|
|
7119
|
+
"Rustling leaves": "wind",
|
|
7120
|
+
Door: "door",
|
|
7121
|
+
"Sliding door": "door",
|
|
7122
|
+
Slam: "door",
|
|
7123
|
+
"Cupboard open or close": "door",
|
|
7124
|
+
"Walk, footsteps": "footsteps",
|
|
7125
|
+
Run: "footsteps",
|
|
7126
|
+
Shuffle: "footsteps",
|
|
7127
|
+
Crowd: "crowd",
|
|
7128
|
+
Chatter: "crowd",
|
|
7129
|
+
Cheering: "crowd",
|
|
7130
|
+
Applause: "crowd",
|
|
7131
|
+
"Children playing": "crowd",
|
|
7132
|
+
"Hubbub, speech noise, speech babble": "crowd",
|
|
7133
|
+
Telephone: "telephone",
|
|
7134
|
+
"Telephone bell ringing": "telephone",
|
|
7135
|
+
Ringtone: "telephone",
|
|
7136
|
+
"Telephone dialing, DTMF": "telephone",
|
|
7137
|
+
"Busy signal": "telephone",
|
|
7138
|
+
Engine: "engine",
|
|
7139
|
+
"Engine starting": "engine",
|
|
7140
|
+
Idling: "engine",
|
|
7141
|
+
"Accelerating, revving, vroom": "engine",
|
|
7142
|
+
"Light engine (high frequency)": "engine",
|
|
7143
|
+
"Medium engine (mid frequency)": "engine",
|
|
7144
|
+
"Heavy engine (low frequency)": "engine",
|
|
7145
|
+
"Lawn mower": "engine",
|
|
7146
|
+
Chainsaw: "engine",
|
|
7147
|
+
Hammer: "tools",
|
|
7148
|
+
Jackhammer: "tools",
|
|
7149
|
+
Sawing: "tools",
|
|
7150
|
+
"Power tool": "tools",
|
|
7151
|
+
Drill: "tools",
|
|
7152
|
+
Sanding: "tools",
|
|
7153
|
+
Silence: "silence"
|
|
7154
|
+
},
|
|
7155
|
+
preserveOriginal: false
|
|
7156
|
+
};
|
|
7157
|
+
var APPLE_SA_TO_MACRO = {
|
|
7158
|
+
mapping: {
|
|
7159
|
+
speech: "speech",
|
|
7160
|
+
child_speech: "speech",
|
|
7161
|
+
conversation: "speech",
|
|
7162
|
+
whispering: "speech",
|
|
7163
|
+
singing: "speech",
|
|
7164
|
+
humming: "speech",
|
|
7165
|
+
shout: "scream",
|
|
7166
|
+
yell: "scream",
|
|
7167
|
+
screaming: "scream",
|
|
7168
|
+
crying: "crying",
|
|
7169
|
+
baby_crying: "crying",
|
|
7170
|
+
sobbing: "crying",
|
|
7171
|
+
laughter: "laughter",
|
|
7172
|
+
baby_laughter: "laughter",
|
|
7173
|
+
giggling: "laughter",
|
|
7174
|
+
music: "music",
|
|
7175
|
+
guitar: "music",
|
|
7176
|
+
piano: "music",
|
|
7177
|
+
drums: "music",
|
|
7178
|
+
dog_bark: "dog",
|
|
7179
|
+
dog_bow_wow: "dog",
|
|
7180
|
+
dog_growling: "dog",
|
|
7181
|
+
dog_howl: "dog",
|
|
7182
|
+
cat_meow: "cat",
|
|
7183
|
+
cat_purr: "cat",
|
|
7184
|
+
cat_hiss: "cat",
|
|
7185
|
+
bird: "bird",
|
|
7186
|
+
bird_chirp: "bird",
|
|
7187
|
+
bird_squawk: "bird",
|
|
7188
|
+
animal: "animal",
|
|
7189
|
+
horse: "animal",
|
|
7190
|
+
cow_moo: "animal",
|
|
7191
|
+
insect: "animal",
|
|
7192
|
+
alarm: "alarm",
|
|
7193
|
+
smoke_alarm: "alarm",
|
|
7194
|
+
fire_alarm: "alarm",
|
|
7195
|
+
car_alarm: "alarm",
|
|
7196
|
+
siren: "siren",
|
|
7197
|
+
police_siren: "siren",
|
|
7198
|
+
ambulance_siren: "siren",
|
|
7199
|
+
doorbell: "doorbell",
|
|
7200
|
+
door_knock: "doorbell",
|
|
7201
|
+
knocking: "doorbell",
|
|
7202
|
+
glass_breaking: "glass_breaking",
|
|
7203
|
+
glass_shatter: "glass_breaking",
|
|
7204
|
+
gunshot: "gunshot",
|
|
7205
|
+
explosion: "gunshot",
|
|
7206
|
+
fireworks: "gunshot",
|
|
7207
|
+
car: "vehicle",
|
|
7208
|
+
truck: "vehicle",
|
|
7209
|
+
motorcycle: "vehicle",
|
|
7210
|
+
car_horn: "vehicle",
|
|
7211
|
+
vehicle_horn: "vehicle",
|
|
7212
|
+
traffic: "vehicle",
|
|
7213
|
+
fire: "fire",
|
|
7214
|
+
fire_crackle: "fire",
|
|
7215
|
+
water: "water",
|
|
7216
|
+
rain: "water",
|
|
7217
|
+
ocean: "water",
|
|
7218
|
+
splash: "water",
|
|
7219
|
+
wind: "wind",
|
|
7220
|
+
thunder: "wind",
|
|
7221
|
+
thunderstorm: "wind",
|
|
7222
|
+
door: "door",
|
|
7223
|
+
door_slam: "door",
|
|
7224
|
+
sliding_door: "door",
|
|
7225
|
+
footsteps: "footsteps",
|
|
7226
|
+
walking: "footsteps",
|
|
7227
|
+
running: "footsteps",
|
|
7228
|
+
crowd: "crowd",
|
|
7229
|
+
chatter: "crowd",
|
|
7230
|
+
cheering: "crowd",
|
|
7231
|
+
applause: "crowd",
|
|
7232
|
+
telephone_ring: "telephone",
|
|
7233
|
+
ringtone: "telephone",
|
|
7234
|
+
engine: "engine",
|
|
7235
|
+
engine_starting: "engine",
|
|
7236
|
+
lawn_mower: "engine",
|
|
7237
|
+
chainsaw: "engine",
|
|
7238
|
+
hammer: "tools",
|
|
7239
|
+
jackhammer: "tools",
|
|
7240
|
+
drill: "tools",
|
|
7241
|
+
power_tool: "tools",
|
|
7242
|
+
silence: "silence"
|
|
7243
|
+
},
|
|
7244
|
+
preserveOriginal: false
|
|
7245
|
+
};
|
|
7246
|
+
var _macroLookup = /* @__PURE__ */ new Map();
|
|
7247
|
+
for (const [k, v] of Object.entries(YAMNET_TO_MACRO.mapping)) _macroLookup.set(k.toLowerCase(), v);
|
|
7248
|
+
for (const [k, v] of Object.entries(APPLE_SA_TO_MACRO.mapping)) _macroLookup.set(k.toLowerCase(), v);
|
|
7107
7249
|
/**
|
|
7108
7250
|
* Accessory device helpers — shared across drivers.
|
|
7109
7251
|
*
|
|
@@ -7263,74 +7405,6 @@ object({
|
|
|
7263
7405
|
});
|
|
7264
7406
|
DeviceType.Sensor;
|
|
7265
7407
|
/**
|
|
7266
|
-
* Generic types for capability definitions.
|
|
7267
|
-
*
|
|
7268
|
-
* A capability is defined with Zod schemas for methods, events, and settings.
|
|
7269
|
-
* TypeScript types are inferred via z.infer<> — zero duplication.
|
|
7270
|
-
*
|
|
7271
|
-
* Pattern:
|
|
7272
|
-
* 1. Define Zod schemas for data, methods, settings
|
|
7273
|
-
* 2. Export const capabilityDef = { ... } satisfies CapabilityDefinition
|
|
7274
|
-
* 3. Export type IProvider = InferProvider<typeof capabilityDef>
|
|
7275
|
-
* 4. Addon implements IProvider
|
|
7276
|
-
* 5. Registry auto-mounts tRPC router from definition.methods
|
|
7277
|
-
*/
|
|
7278
|
-
/**
|
|
7279
|
-
* Output schema shared by the contribution + live methods.
|
|
7280
|
-
*
|
|
7281
|
-
* Mirrors the `ConfigUISchemaWithValues` shape (sections[] + optional
|
|
7282
|
-
* tabs[]) without importing from `../interfaces/config-ui.js` — a
|
|
7283
|
-
* concrete-but-lenient Zod object keeps tRPC output inference happy
|
|
7284
|
-
* (using `z.unknown()` here collapses unrelated router branches to
|
|
7285
|
-
* `unknown` when the generator re-inlines the huge AppRouter type).
|
|
7286
|
-
*
|
|
7287
|
-
* `.passthrough()` on sections/fields accepts whatever FormBuilder
|
|
7288
|
-
* extensions the caller adds (showWhen, displayScale, …) without
|
|
7289
|
-
* rebuilding every time a new field kind is introduced.
|
|
7290
|
-
*/
|
|
7291
|
-
var ContributionSectionSchema = object({
|
|
7292
|
-
id: string(),
|
|
7293
|
-
title: string(),
|
|
7294
|
-
description: string().optional(),
|
|
7295
|
-
style: _enum(["card", "accordion"]).optional(),
|
|
7296
|
-
defaultCollapsed: boolean().optional(),
|
|
7297
|
-
columns: union([
|
|
7298
|
-
literal(1),
|
|
7299
|
-
literal(2),
|
|
7300
|
-
literal(3),
|
|
7301
|
-
literal(4)
|
|
7302
|
-
]).optional(),
|
|
7303
|
-
tab: string().optional(),
|
|
7304
|
-
location: _enum(["settings", "top-tab"]).optional(),
|
|
7305
|
-
order: number().optional(),
|
|
7306
|
-
fields: array(any())
|
|
7307
|
-
});
|
|
7308
|
-
object({
|
|
7309
|
-
tabs: array(object({
|
|
7310
|
-
id: string(),
|
|
7311
|
-
label: string(),
|
|
7312
|
-
icon: string(),
|
|
7313
|
-
order: number().optional()
|
|
7314
|
-
})).optional(),
|
|
7315
|
-
sections: array(ContributionSectionSchema)
|
|
7316
|
-
}).nullable();
|
|
7317
|
-
object({ deviceId: number() }), object({ deviceId: number() }), object({
|
|
7318
|
-
deviceId: number(),
|
|
7319
|
-
patch: record(string(), unknown())
|
|
7320
|
-
}), object({ success: literal(true) });
|
|
7321
|
-
object({ deviceId: number() }), unknown().nullable();
|
|
7322
|
-
/** Shorthand to define a method schema */
|
|
7323
|
-
function method(input, output, options) {
|
|
7324
|
-
return {
|
|
7325
|
-
input,
|
|
7326
|
-
output,
|
|
7327
|
-
kind: options?.kind ?? "query",
|
|
7328
|
-
auth: options?.auth ?? "protected",
|
|
7329
|
-
...options?.access !== void 0 ? { access: options.access } : {},
|
|
7330
|
-
timeoutMs: options?.timeoutMs
|
|
7331
|
-
};
|
|
7332
|
-
}
|
|
7333
|
-
/**
|
|
7334
7408
|
* Alarm-panel cap. Models HA `alarm_control_panel.*` on
|
|
7335
7409
|
* `DeviceType.AlarmPanel`. State follows HA's canonical lifecycle
|
|
7336
7410
|
* across disarmed / armed_(home|away|night|vacation|custom_bypass) /
|
|
@@ -9145,6 +9219,24 @@ var DetectorOutputSchema = object({
|
|
|
9145
9219
|
inferenceMs: number(),
|
|
9146
9220
|
modelId: string()
|
|
9147
9221
|
});
|
|
9222
|
+
var EngineProvisioningSchema = object({
|
|
9223
|
+
runtimeId: _enum([
|
|
9224
|
+
"onnx",
|
|
9225
|
+
"openvino",
|
|
9226
|
+
"coreml"
|
|
9227
|
+
]).nullable(),
|
|
9228
|
+
device: string().nullable(),
|
|
9229
|
+
state: _enum([
|
|
9230
|
+
"idle",
|
|
9231
|
+
"installing",
|
|
9232
|
+
"verifying",
|
|
9233
|
+
"ready",
|
|
9234
|
+
"failed"
|
|
9235
|
+
]),
|
|
9236
|
+
progress: number().optional(),
|
|
9237
|
+
error: string().optional(),
|
|
9238
|
+
nextRetryAt: number().optional()
|
|
9239
|
+
});
|
|
9148
9240
|
var PipelineStepInputSchema = lazy(() => object({
|
|
9149
9241
|
addonId: string(),
|
|
9150
9242
|
modelId: string(),
|
|
@@ -9213,7 +9305,7 @@ var PipelineRunResultBridge = custom();
|
|
|
9213
9305
|
method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngineChoiceSchema), method(PipelineEngineChoiceSchema, array(PipelineDefaultStepSchema)), method(_void(), PipelineEngineChoiceSchema, {
|
|
9214
9306
|
kind: "mutation",
|
|
9215
9307
|
auth: "admin"
|
|
9216
|
-
}), method(_void(), record(string(), object({
|
|
9308
|
+
}), method(object({ nodeId: string() }), EngineProvisioningSchema), method(_void(), record(string(), object({
|
|
9217
9309
|
modelId: string(),
|
|
9218
9310
|
settings: record(string(), unknown()).readonly()
|
|
9219
9311
|
}))), method(object({ steps: record(string(), object({
|
|
@@ -11314,9 +11406,6 @@ method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
|
|
|
11314
11406
|
limit: number().optional(),
|
|
11315
11407
|
tags: record(string(), string()).optional()
|
|
11316
11408
|
}), array(LogEntrySchema).readonly());
|
|
11317
|
-
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
11318
|
-
var VersionOutputSchema = object({ version: string() });
|
|
11319
|
-
method(_void(), StaticDirOutputSchema), method(_void(), VersionOutputSchema);
|
|
11320
11409
|
/**
|
|
11321
11410
|
* Zod schemas for persisted record types.
|
|
11322
11411
|
*
|
|
@@ -12800,7 +12889,10 @@ var AgentAddonConfigSchema = object({
|
|
|
12800
12889
|
modelId: string(),
|
|
12801
12890
|
settings: record(string(), unknown()).readonly()
|
|
12802
12891
|
});
|
|
12803
|
-
var AgentPipelineSettingsSchema = object({
|
|
12892
|
+
var AgentPipelineSettingsSchema = object({
|
|
12893
|
+
addonDefaults: record(string(), AgentAddonConfigSchema).readonly(),
|
|
12894
|
+
maxCameras: number().int().nonnegative().nullable().default(null)
|
|
12895
|
+
});
|
|
12804
12896
|
var CameraPipelineForAgentSchema = object({
|
|
12805
12897
|
steps: array(PipelineStepInputSchema).readonly(),
|
|
12806
12898
|
audio: object({
|
|
@@ -12902,6 +12994,133 @@ var GlobalMetricsSchema = object({
|
|
|
12902
12994
|
* capability providers.
|
|
12903
12995
|
*/
|
|
12904
12996
|
var CapabilityBindingsSchema = record(string(), string());
|
|
12997
|
+
/** Source block — always present; derives from the stream catalog. */
|
|
12998
|
+
var CameraSourceStatusSchema = object({ streams: array(object({
|
|
12999
|
+
camStreamId: string(),
|
|
13000
|
+
codec: string(),
|
|
13001
|
+
width: number(),
|
|
13002
|
+
height: number(),
|
|
13003
|
+
fps: number(),
|
|
13004
|
+
kind: string()
|
|
13005
|
+
})).readonly() });
|
|
13006
|
+
/** Assignment block — always present (orchestrator-local, no remote call). */
|
|
13007
|
+
var CameraAssignmentStatusSchema = object({
|
|
13008
|
+
detectionNodeId: string().nullable(),
|
|
13009
|
+
decoderNodeId: string().nullable(),
|
|
13010
|
+
audioNodeId: string().nullable(),
|
|
13011
|
+
pinned: object({
|
|
13012
|
+
detection: boolean(),
|
|
13013
|
+
decoder: boolean(),
|
|
13014
|
+
audio: boolean()
|
|
13015
|
+
}),
|
|
13016
|
+
reasons: object({
|
|
13017
|
+
detection: string().optional(),
|
|
13018
|
+
decoder: string().optional(),
|
|
13019
|
+
audio: string().optional()
|
|
13020
|
+
})
|
|
13021
|
+
});
|
|
13022
|
+
/** Broker block — null when the broker stage is unreachable or inactive. */
|
|
13023
|
+
var CameraBrokerStatusSchema = object({
|
|
13024
|
+
profiles: array(object({
|
|
13025
|
+
profile: string(),
|
|
13026
|
+
status: string(),
|
|
13027
|
+
codec: string(),
|
|
13028
|
+
width: number(),
|
|
13029
|
+
height: number(),
|
|
13030
|
+
subscribers: number(),
|
|
13031
|
+
inFps: number(),
|
|
13032
|
+
outFps: number()
|
|
13033
|
+
})).readonly(),
|
|
13034
|
+
webrtcSessions: number(),
|
|
13035
|
+
rtspRestream: boolean()
|
|
13036
|
+
});
|
|
13037
|
+
/** Shared-memory ring statistics within the decoder block. */
|
|
13038
|
+
var CameraDecoderShmSchema = object({
|
|
13039
|
+
framesWritten: number(),
|
|
13040
|
+
getFrameHits: number(),
|
|
13041
|
+
getFrameMisses: number(),
|
|
13042
|
+
budgetMb: number()
|
|
13043
|
+
});
|
|
13044
|
+
/** Decoder block — null when the decoder stage is unreachable or inactive. */
|
|
13045
|
+
var CameraDecoderStatusSchema = object({
|
|
13046
|
+
nodeId: string(),
|
|
13047
|
+
formats: array(string()).readonly(),
|
|
13048
|
+
sessionCount: number(),
|
|
13049
|
+
shm: CameraDecoderShmSchema
|
|
13050
|
+
});
|
|
13051
|
+
/** Motion block — null when motion detection is not active for this device. */
|
|
13052
|
+
var CameraMotionStatusSchema = object({
|
|
13053
|
+
enabled: boolean(),
|
|
13054
|
+
fps: number()
|
|
13055
|
+
});
|
|
13056
|
+
/** Detection provisioning sub-block. */
|
|
13057
|
+
var CameraDetectionProvisioningSchema = object({
|
|
13058
|
+
state: _enum([
|
|
13059
|
+
"idle",
|
|
13060
|
+
"installing",
|
|
13061
|
+
"verifying",
|
|
13062
|
+
"ready",
|
|
13063
|
+
"failed"
|
|
13064
|
+
]),
|
|
13065
|
+
error: string().optional()
|
|
13066
|
+
});
|
|
13067
|
+
/** Detection phase — derived from the runner's engine phase. */
|
|
13068
|
+
var CameraDetectionPhaseSchema = _enum([
|
|
13069
|
+
"idle",
|
|
13070
|
+
"watching",
|
|
13071
|
+
"active"
|
|
13072
|
+
]);
|
|
13073
|
+
/** Detection block — null when no detection node is assigned or reachable. */
|
|
13074
|
+
var CameraDetectionStatusSchema = object({
|
|
13075
|
+
nodeId: string(),
|
|
13076
|
+
engine: object({
|
|
13077
|
+
backend: string(),
|
|
13078
|
+
device: string()
|
|
13079
|
+
}),
|
|
13080
|
+
phase: CameraDetectionPhaseSchema,
|
|
13081
|
+
configuredFps: number(),
|
|
13082
|
+
actualFps: number(),
|
|
13083
|
+
queueDepth: number(),
|
|
13084
|
+
avgInferenceMs: number(),
|
|
13085
|
+
provisioning: CameraDetectionProvisioningSchema
|
|
13086
|
+
});
|
|
13087
|
+
/** Audio block — null when no audio node is assigned or reachable. */
|
|
13088
|
+
var CameraAudioStatusSchema = object({
|
|
13089
|
+
nodeId: string(),
|
|
13090
|
+
enabled: boolean()
|
|
13091
|
+
});
|
|
13092
|
+
/** Recording block — null when no recording cap is active for this device. */
|
|
13093
|
+
var CameraRecordingStatusSchema = object({
|
|
13094
|
+
mode: _enum([
|
|
13095
|
+
"off",
|
|
13096
|
+
"continuous",
|
|
13097
|
+
"events"
|
|
13098
|
+
]),
|
|
13099
|
+
active: boolean(),
|
|
13100
|
+
storageBytes: number()
|
|
13101
|
+
});
|
|
13102
|
+
/**
|
|
13103
|
+
* Aggregated per-camera pipeline status — server-composed, single call.
|
|
13104
|
+
*
|
|
13105
|
+
* The `assignment` and `source` blocks are always present.
|
|
13106
|
+
* Every other block is `null` when the stage is inactive or unreachable
|
|
13107
|
+
* during the bounded parallel fan-out in the orchestrator implementation.
|
|
13108
|
+
*
|
|
13109
|
+
* See spec: `docs/superpowers/specs/2026-06-24-camera-status-aggregator-cap.md`
|
|
13110
|
+
*/
|
|
13111
|
+
var CameraStatusSchema = object({
|
|
13112
|
+
deviceId: number(),
|
|
13113
|
+
assignment: CameraAssignmentStatusSchema,
|
|
13114
|
+
source: CameraSourceStatusSchema,
|
|
13115
|
+
broker: CameraBrokerStatusSchema.nullable(),
|
|
13116
|
+
decoder: CameraDecoderStatusSchema.nullable(),
|
|
13117
|
+
motion: CameraMotionStatusSchema.nullable(),
|
|
13118
|
+
detection: CameraDetectionStatusSchema.nullable(),
|
|
13119
|
+
audio: CameraAudioStatusSchema.nullable(),
|
|
13120
|
+
recording: CameraRecordingStatusSchema.nullable(),
|
|
13121
|
+
/** Unix timestamp (ms) when this snapshot was composed server-side. */
|
|
13122
|
+
fetchedAt: number()
|
|
13123
|
+
});
|
|
12905
13124
|
method(object({
|
|
12906
13125
|
deviceId: number(),
|
|
12907
13126
|
agentNodeId: string()
|
|
@@ -12969,6 +13188,12 @@ method(object({
|
|
|
12969
13188
|
}), {
|
|
12970
13189
|
kind: "mutation",
|
|
12971
13190
|
auth: "admin"
|
|
13191
|
+
}), method(object({
|
|
13192
|
+
agentNodeId: string(),
|
|
13193
|
+
maxCameras: number().int().nonnegative().nullable()
|
|
13194
|
+
}), object({ success: literal(true) }), {
|
|
13195
|
+
kind: "mutation",
|
|
13196
|
+
auth: "admin"
|
|
12972
13197
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
12973
13198
|
deviceId: number(),
|
|
12974
13199
|
addonId: string(),
|
|
@@ -12994,7 +13219,7 @@ method(object({
|
|
|
12994
13219
|
}), method(object({
|
|
12995
13220
|
deviceId: number(),
|
|
12996
13221
|
agentNodeId: string().optional()
|
|
12997
|
-
}), CameraPipelineConfigSchema), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
|
|
13222
|
+
}), CameraPipelineConfigSchema), method(object({ deviceId: number() }), CameraStatusSchema), method(object({ deviceIds: array(number()).optional() }), array(CameraStatusSchema).readonly()), method(_void(), array(PipelineTemplateSchema).readonly()), method(object({
|
|
12998
13223
|
name: string(),
|
|
12999
13224
|
description: string().optional(),
|
|
13000
13225
|
config: CameraPipelineConfigSchema
|
|
@@ -13481,7 +13706,7 @@ method(object({
|
|
|
13481
13706
|
}), _void(), {
|
|
13482
13707
|
kind: "mutation",
|
|
13483
13708
|
auth: "admin"
|
|
13484
|
-
}), method(object({ addonId: string() }), array(SavedDeviceRowSchema)), method(object({ addonId: string().optional() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), array(StreamSourceEntrySchema)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
13709
|
+
}), method(object({ addonId: string() }), array(SavedDeviceRowSchema)), method(object({ addonId: string().optional() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
13485
13710
|
deviceId: number(),
|
|
13486
13711
|
values: record(string(), unknown())
|
|
13487
13712
|
}), object({ success: literal(true) }), {
|
|
@@ -14180,7 +14405,20 @@ var DiskSpaceInfoSchema = object({
|
|
|
14180
14405
|
var PidResourceStatsSchema = object({
|
|
14181
14406
|
pid: number(),
|
|
14182
14407
|
cpu: number(),
|
|
14183
|
-
memory: number()
|
|
14408
|
+
memory: number(),
|
|
14409
|
+
/**
|
|
14410
|
+
* Private (anonymous) resident bytes — the per-process V8 heap + native
|
|
14411
|
+
* allocations NOT shared with other processes (Linux RssAnon). This is the
|
|
14412
|
+
* "real" per-runner cost; summing it across runners is meaningful, unlike
|
|
14413
|
+
* `memory` (RSS), which double-counts the shared mmap'd framework code.
|
|
14414
|
+
* Undefined where /proc is unavailable (e.g. macOS).
|
|
14415
|
+
*/
|
|
14416
|
+
privateBytes: number().optional(),
|
|
14417
|
+
/**
|
|
14418
|
+
* Shared file-backed resident bytes (Linux RssFile) — mmap'd framework/lib
|
|
14419
|
+
* code shared copy-on-write across runners. Undefined on macOS.
|
|
14420
|
+
*/
|
|
14421
|
+
sharedBytes: number().optional()
|
|
14184
14422
|
});
|
|
14185
14423
|
var AddonInstanceSchema = object({
|
|
14186
14424
|
addonId: string(),
|
|
@@ -14229,6 +14467,17 @@ var KillProcessResultSchema = object({
|
|
|
14229
14467
|
reason: string().optional(),
|
|
14230
14468
|
signal: _enum(["SIGTERM", "SIGKILL"]).optional()
|
|
14231
14469
|
});
|
|
14470
|
+
var DumpHeapSnapshotInputSchema = object({
|
|
14471
|
+
/** The addon whose runner should dump a heap snapshot. */
|
|
14472
|
+
addonId: string() });
|
|
14473
|
+
var DumpHeapSnapshotResultSchema = object({
|
|
14474
|
+
success: boolean(),
|
|
14475
|
+
/** Path of the written .heapsnapshot inside the runner's container/host. */
|
|
14476
|
+
path: string().optional(),
|
|
14477
|
+
/** Process pid that was signalled. */
|
|
14478
|
+
pid: number().optional(),
|
|
14479
|
+
reason: string().optional()
|
|
14480
|
+
});
|
|
14232
14481
|
var SystemMetricsSchema = object({
|
|
14233
14482
|
cpuPercent: number(),
|
|
14234
14483
|
memoryPercent: number(),
|
|
@@ -14242,6 +14491,9 @@ var SystemMetricsSchema = object({
|
|
|
14242
14491
|
method(_void(), SystemResourceSnapshotSchema), method(_void(), SystemResourceSnapshotSchema.nullable()), method(_void(), SystemMetricsSchema), method(object({ dirPath: string() }), DiskSpaceInfoSchema), method(_void(), MetricsGpuInfoSchema.nullable()), method(_void(), number().nullable()), method(object({ pids: array(number()) }), array(PidResourceStatsSchema)), method(_void(), array(AddonInstanceSchema).readonly()), method(object({ addonId: string() }), PidResourceStatsSchema.nullable()), method(_void(), array(NodeProcessSchema).readonly()), method(KillProcessInputSchema, KillProcessResultSchema, {
|
|
14243
14492
|
kind: "mutation",
|
|
14244
14493
|
auth: "admin"
|
|
14494
|
+
}), method(DumpHeapSnapshotInputSchema, DumpHeapSnapshotResultSchema, {
|
|
14495
|
+
kind: "mutation",
|
|
14496
|
+
auth: "admin"
|
|
14245
14497
|
});
|
|
14246
14498
|
var PtzPresetSchema = object({
|
|
14247
14499
|
id: string(),
|
|
@@ -14608,63 +14860,6 @@ method(object({
|
|
|
14608
14860
|
auth: "admin"
|
|
14609
14861
|
});
|
|
14610
14862
|
/**
|
|
14611
|
-
* device-ops — device-scoped cap that unifies the per-IDevice operations
|
|
14612
|
-
* previously routed through the `.device-ops` Moleculer bridge service.
|
|
14613
|
-
*
|
|
14614
|
-
* Each worker that hosts live `IDevice` instances auto-registers a native
|
|
14615
|
-
* provider for this cap (per device) backed by its local
|
|
14616
|
-
* `DeviceRegistry`. Hub-side callers reach it transparently through
|
|
14617
|
-
* `ctx.fetchDevice(id).deviceOps.*` — the DeviceProxy injects
|
|
14618
|
-
* `deviceId` + `nodeId` and dispatches through the standard cap-router,
|
|
14619
|
-
* so there's no parallel bridge path anymore.
|
|
14620
|
-
*
|
|
14621
|
-
* The surface is intentionally small — every method corresponds to a
|
|
14622
|
-
* single action on the live `IDevice` (or `ICameraDevice` for
|
|
14623
|
-
* `getStreamSources`). Richer orchestration (enable/disable with
|
|
14624
|
-
* integration plumbing, bulk updates) stays in the `device-manager` cap;
|
|
14625
|
-
* `device-ops` is the per-device primitive the device-manager routes to.
|
|
14626
|
-
*/
|
|
14627
|
-
var StreamSourceEntrySchema$1 = object({
|
|
14628
|
-
id: string(),
|
|
14629
|
-
label: string(),
|
|
14630
|
-
protocol: _enum([
|
|
14631
|
-
"rtsp",
|
|
14632
|
-
"rtmp",
|
|
14633
|
-
"annexb",
|
|
14634
|
-
"http-mjpeg",
|
|
14635
|
-
"webrtc",
|
|
14636
|
-
"custom"
|
|
14637
|
-
]),
|
|
14638
|
-
url: string().optional(),
|
|
14639
|
-
resolution: object({
|
|
14640
|
-
width: number(),
|
|
14641
|
-
height: number()
|
|
14642
|
-
}).optional(),
|
|
14643
|
-
fps: number().optional(),
|
|
14644
|
-
bitrate: number().optional(),
|
|
14645
|
-
codec: string().optional(),
|
|
14646
|
-
profileHint: CamProfileSchema.optional(),
|
|
14647
|
-
sdp: string().optional()
|
|
14648
|
-
});
|
|
14649
|
-
var ConfigEntrySchema$1 = object({
|
|
14650
|
-
key: string(),
|
|
14651
|
-
value: unknown()
|
|
14652
|
-
});
|
|
14653
|
-
var RawStateResultSchema = object({
|
|
14654
|
-
/** Originating provider id, e.g. 'homeassistant' | 'reolink' | 'hikvision'. */
|
|
14655
|
-
source: string(),
|
|
14656
|
-
/** Opaque, DISPLAY-SAFE upstream blob (no secrets/PII). */
|
|
14657
|
-
data: record(string(), unknown())
|
|
14658
|
-
});
|
|
14659
|
-
method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema$1)), method(object({
|
|
14660
|
-
deviceId: number(),
|
|
14661
|
-
values: record(string(), unknown())
|
|
14662
|
-
}), _void(), { kind: "mutation" }), method(object({
|
|
14663
|
-
deviceId: number(),
|
|
14664
|
-
action: string().min(1),
|
|
14665
|
-
input: unknown()
|
|
14666
|
-
}), unknown(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), unknown().nullable()), method(object({ deviceId: number() }), RawStateResultSchema.nullable(), { auth: "protected" });
|
|
14667
|
-
/**
|
|
14668
14863
|
* camera-credentials — device-scoped cap exposing the camera's network
|
|
14669
14864
|
* + auth surface in a vendor-neutral shape.
|
|
14670
14865
|
*
|
|
@@ -18408,6 +18603,12 @@ Object.freeze({
|
|
|
18408
18603
|
addonId: null,
|
|
18409
18604
|
access: "view"
|
|
18410
18605
|
},
|
|
18606
|
+
"metricsProvider.dumpHeapSnapshot": {
|
|
18607
|
+
capName: "metrics-provider",
|
|
18608
|
+
capScope: "system",
|
|
18609
|
+
addonId: null,
|
|
18610
|
+
access: "create"
|
|
18611
|
+
},
|
|
18411
18612
|
"metricsProvider.getAddonStats": {
|
|
18412
18613
|
capName: "metrics-provider",
|
|
18413
18614
|
capScope: "system",
|
|
@@ -18864,6 +19065,12 @@ Object.freeze({
|
|
|
18864
19065
|
addonId: null,
|
|
18865
19066
|
access: "view"
|
|
18866
19067
|
},
|
|
19068
|
+
"pipelineExecutor.getEngineProvisioning": {
|
|
19069
|
+
capName: "pipeline-executor",
|
|
19070
|
+
capScope: "system",
|
|
19071
|
+
addonId: null,
|
|
19072
|
+
access: "view"
|
|
19073
|
+
},
|
|
18867
19074
|
"pipelineExecutor.getGlobalPipelineConfig": {
|
|
18868
19075
|
capName: "pipeline-executor",
|
|
18869
19076
|
capScope: "system",
|
|
@@ -19068,6 +19275,18 @@ Object.freeze({
|
|
|
19068
19275
|
addonId: null,
|
|
19069
19276
|
access: "view"
|
|
19070
19277
|
},
|
|
19278
|
+
"pipelineOrchestrator.getCameraStatus": {
|
|
19279
|
+
capName: "pipeline-orchestrator",
|
|
19280
|
+
capScope: "system",
|
|
19281
|
+
addonId: null,
|
|
19282
|
+
access: "view"
|
|
19283
|
+
},
|
|
19284
|
+
"pipelineOrchestrator.getCameraStatuses": {
|
|
19285
|
+
capName: "pipeline-orchestrator",
|
|
19286
|
+
capScope: "system",
|
|
19287
|
+
addonId: null,
|
|
19288
|
+
access: "view"
|
|
19289
|
+
},
|
|
19071
19290
|
"pipelineOrchestrator.getCameraStepOverrides": {
|
|
19072
19291
|
capName: "pipeline-orchestrator",
|
|
19073
19292
|
capScope: "system",
|
|
@@ -19152,6 +19371,12 @@ Object.freeze({
|
|
|
19152
19371
|
addonId: null,
|
|
19153
19372
|
access: "create"
|
|
19154
19373
|
},
|
|
19374
|
+
"pipelineOrchestrator.setAgentMaxCameras": {
|
|
19375
|
+
capName: "pipeline-orchestrator",
|
|
19376
|
+
capScope: "system",
|
|
19377
|
+
addonId: null,
|
|
19378
|
+
access: "create"
|
|
19379
|
+
},
|
|
19155
19380
|
"pipelineOrchestrator.setCameraPipelineForAgent": {
|
|
19156
19381
|
capName: "pipeline-orchestrator",
|
|
19157
19382
|
capScope: "system",
|
|
@@ -20652,4 +20877,4 @@ object({
|
|
|
20652
20877
|
schemaVersion: literal(1)
|
|
20653
20878
|
});
|
|
20654
20879
|
//#endregion
|
|
20655
|
-
export {
|
|
20880
|
+
export { EventCategory as i, networkAccessCapability as n, BaseAddon as r, meshNetworkCapability as t };
|