@camstack/addon-provider-tuya 0.2.120 → 0.2.121
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/addon.js +1149 -472
- package/dist/addon.mjs +1149 -472
- package/package.json +1 -1
package/dist/addon.mjs
CHANGED
|
@@ -818,7 +818,7 @@ async function discoverDevices(options = {}, binder = createDgramBinder()) {
|
|
|
818
818
|
return [...byId.values()];
|
|
819
819
|
}
|
|
820
820
|
//#endregion
|
|
821
|
-
//#region ../types/dist/event-category-
|
|
821
|
+
//#region ../types/dist/event-category-B_0XEcLF.mjs
|
|
822
822
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
823
823
|
EventCategory["SystemBoot"] = "system.boot";
|
|
824
824
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -1319,15 +1319,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
1319
1319
|
EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
|
|
1320
1320
|
EventCategory["AgentBackupActivated"] = "agent.backup.activated";
|
|
1321
1321
|
EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
|
|
1322
|
-
/**
|
|
1323
|
-
* Per-agent hwaccel preference changed (user override set, cleared, or
|
|
1324
|
-
* re-probed). Observability event — decoders pull the current pref at
|
|
1325
|
-
* `createSession`, so running sessions keep their current backend until
|
|
1326
|
-
* they rotate naturally (camera add/remove, stream restart). Future
|
|
1327
|
-
* work can wire a listener in stream-broker that force-rotates live
|
|
1328
|
-
* sessions; for now this event powers logs + admin-UI toast feedback.
|
|
1329
|
-
*/
|
|
1330
|
-
EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
|
|
1331
1322
|
EventCategory["MotionAnalysis"] = "detection.motion-analysis";
|
|
1332
1323
|
/** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
|
|
1333
1324
|
EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
|
|
@@ -6198,7 +6189,7 @@ var ZodIssueCode = {
|
|
|
6198
6189
|
var ZodFirstPartyTypeKind;
|
|
6199
6190
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6200
6191
|
//#endregion
|
|
6201
|
-
//#region ../types/dist/sleep-
|
|
6192
|
+
//#region ../types/dist/sleep-B0JG7-_F.mjs
|
|
6202
6193
|
/**
|
|
6203
6194
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6204
6195
|
* window to float samples (D455).
|
|
@@ -7564,32 +7555,12 @@ object({
|
|
|
7564
7555
|
audioCodec: string().optional(),
|
|
7565
7556
|
metadata: record(string(), unknown()).readonly().optional()
|
|
7566
7557
|
});
|
|
7567
|
-
var EncodedPacketSchema = object({
|
|
7568
|
-
type: _enum(["video", "audio"]),
|
|
7569
|
-
data: _instanceof(Uint8Array),
|
|
7570
|
-
pts: number(),
|
|
7571
|
-
dts: number(),
|
|
7572
|
-
keyframe: boolean(),
|
|
7573
|
-
codec: string()
|
|
7574
|
-
});
|
|
7575
|
-
var DecodedFrameSchema = object({
|
|
7576
|
-
data: _instanceof(Uint8Array),
|
|
7577
|
-
width: number(),
|
|
7578
|
-
height: number(),
|
|
7579
|
-
format: _enum([
|
|
7580
|
-
"jpeg",
|
|
7581
|
-
"rgb",
|
|
7582
|
-
"bgr",
|
|
7583
|
-
"yuv420",
|
|
7584
|
-
"gray"
|
|
7585
|
-
]),
|
|
7586
|
-
timestamp: number()
|
|
7587
|
-
});
|
|
7588
7558
|
/**
|
|
7589
7559
|
* Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
|
|
7590
7560
|
* frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
|
|
7591
|
-
* interface in `interfaces/frame-handle.ts` field-for-field so a
|
|
7592
|
-
*
|
|
7561
|
+
* interface in `interfaces/frame-handle.ts` field-for-field so a cap method
|
|
7562
|
+
* (the runner's native-crop and pipeline-executor inputs) can carry handles
|
|
7563
|
+
* over tRPC / Moleculer.
|
|
7593
7564
|
*
|
|
7594
7565
|
* The `satisfies` assertion below pins this schema to the interface: if a
|
|
7595
7566
|
* field is added to / removed from `FrameHandle` without a matching schema
|
|
@@ -7615,50 +7586,6 @@ var FrameHandleSchema = object({
|
|
|
7615
7586
|
slotCount: number().int().positive()
|
|
7616
7587
|
});
|
|
7617
7588
|
/**
|
|
7618
|
-
* Pixel format a frame-handle subscriber can request from the broker
|
|
7619
|
-
* (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
|
|
7620
|
-
* `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
|
|
7621
|
-
* `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
|
|
7622
|
-
* payload, and no decoded-frame consumer requests it over the shm plane.
|
|
7623
|
-
*/
|
|
7624
|
-
var FrameHandleFormatSchema = _enum([
|
|
7625
|
-
"rgb",
|
|
7626
|
-
"bgr",
|
|
7627
|
-
"yuv420",
|
|
7628
|
-
"gray"
|
|
7629
|
-
]);
|
|
7630
|
-
/**
|
|
7631
|
-
* Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
|
|
7632
|
-
* broker for a `FrameHandle` stream of one `format`; the broker maintains one
|
|
7633
|
-
* shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
|
|
7634
|
-
* subscriber (motion) and an `rgb` subscriber (detection) each read the format
|
|
7635
|
-
* they asked for with no broker-side conversion.
|
|
7636
|
-
*/
|
|
7637
|
-
var SubscribeFramesInputSchema = object({
|
|
7638
|
-
brokerId: string(),
|
|
7639
|
-
format: FrameHandleFormatSchema,
|
|
7640
|
-
/**
|
|
7641
|
-
* Optional reader-side cadence hint in frames per second. The broker does
|
|
7642
|
-
* NOT throttle — latest-wins ring reads drop frames implicitly for a slow
|
|
7643
|
-
* consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
|
|
7644
|
-
* the consumer can pace its own `pullFrameHandles` polling.
|
|
7645
|
-
*/
|
|
7646
|
-
maxFps: number().positive().optional(),
|
|
7647
|
-
/** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
|
|
7648
|
-
tag: string().optional()
|
|
7649
|
-
});
|
|
7650
|
-
/**
|
|
7651
|
-
* Result of `stream-broker.subscribeFrames`. The consumer then polls
|
|
7652
|
-
* `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
|
|
7653
|
-
* `FrameHandle` to a `FrameRingReader`.
|
|
7654
|
-
*/
|
|
7655
|
-
var SubscribeFramesResultSchema = object({
|
|
7656
|
-
/** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
|
|
7657
|
-
subscriptionId: string(),
|
|
7658
|
-
/** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
|
|
7659
|
-
maxFps: number().nonnegative()
|
|
7660
|
-
});
|
|
7661
|
-
/**
|
|
7662
7589
|
* Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
|
|
7663
7590
|
* `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
|
|
7664
7591
|
* sample bytes plus the track parameters a consumer needs to interpret them.
|
|
@@ -7666,8 +7593,8 @@ var SubscribeFramesResultSchema = object({
|
|
|
7666
7593
|
* Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
|
|
7667
7594
|
* Float32 PCM), so unlike video frames they ship their bytes INLINE over
|
|
7668
7595
|
* tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
|
|
7669
|
-
* (the wire-serialisable supertype of `Buffer`)
|
|
7670
|
-
*
|
|
7596
|
+
* (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
|
|
7597
|
+
* it.
|
|
7671
7598
|
*/
|
|
7672
7599
|
var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
|
|
7673
7600
|
var DecodedAudioChunkSchema = object({
|
|
@@ -7685,11 +7612,10 @@ var DecodedAudioChunkSchema = object({
|
|
|
7685
7612
|
format: AudioChunkFormatSchema.optional()
|
|
7686
7613
|
});
|
|
7687
7614
|
/**
|
|
7688
|
-
* Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9).
|
|
7689
|
-
*
|
|
7690
|
-
*
|
|
7691
|
-
*
|
|
7692
|
-
* `pullAudioChunks`.
|
|
7615
|
+
* Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
|
|
7616
|
+
* its bytes inline: a consumer asks the broker for the decoded audio-chunk
|
|
7617
|
+
* stream of one broker; the broker keeps a per-subscription bounded FIFO queue
|
|
7618
|
+
* the consumer drains via `pullAudioChunks`.
|
|
7693
7619
|
*/
|
|
7694
7620
|
var SubscribeAudioChunksInputSchema = object({
|
|
7695
7621
|
brokerId: string(),
|
|
@@ -7720,9 +7646,7 @@ var BrokerStatsSchema = object({
|
|
|
7720
7646
|
"stopped"
|
|
7721
7647
|
]),
|
|
7722
7648
|
inputFps: number(),
|
|
7723
|
-
decodeFps: number(),
|
|
7724
7649
|
encodedSubscribers: number(),
|
|
7725
|
-
decodedSubscribers: number(),
|
|
7726
7650
|
uptimeMs: number(),
|
|
7727
7651
|
bitrateKbps: number(),
|
|
7728
7652
|
idrIntervalMs: number(),
|
|
@@ -7735,14 +7659,6 @@ var BrokerStatsSchema = object({
|
|
|
7735
7659
|
preBufferMs: number(),
|
|
7736
7660
|
preBufferPackets: number(),
|
|
7737
7661
|
/**
|
|
7738
|
-
* Moleculer node id of the decoder provider currently servicing this
|
|
7739
|
-
* stream's decoded subscribers. `null` until the deferred decoder is
|
|
7740
|
-
* created (no decoded clients yet, or codec not detected). Surfaces the
|
|
7741
|
-
* runtime decoder placement so the UI can show "Decoder: <agent>" without
|
|
7742
|
-
* a separate cap call per broker.
|
|
7743
|
-
*/
|
|
7744
|
-
decoderNodeId: string().nullable(),
|
|
7745
|
-
/**
|
|
7746
7662
|
* Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
|
|
7747
7663
|
* when the stream has no audio track or the broker is in cold start.
|
|
7748
7664
|
* `supported = false` means the codec was detected but the local
|
|
@@ -11078,70 +10994,6 @@ var StorageLocationDeclarationSchema = object({
|
|
|
11078
10994
|
"backup"
|
|
11079
10995
|
]).optional()
|
|
11080
10996
|
});
|
|
11081
|
-
var DecoderStatsSchema = object({
|
|
11082
|
-
inputFps: number(),
|
|
11083
|
-
outputFps: number(),
|
|
11084
|
-
avgDecodeTimeMs: number(),
|
|
11085
|
-
droppedFrames: number(),
|
|
11086
|
-
/**
|
|
11087
|
-
* Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
|
|
11088
|
-
* lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
|
|
11089
|
-
* the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
|
|
11090
|
-
* is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
|
|
11091
|
-
*/
|
|
11092
|
-
lagMs: number().optional(),
|
|
11093
|
-
effectiveFps: number().optional(),
|
|
11094
|
-
adaptiveFps: number().optional()
|
|
11095
|
-
});
|
|
11096
|
-
var DecoderSessionConfigSchema = object({
|
|
11097
|
-
codec: string(),
|
|
11098
|
-
maxFps: number().default(0),
|
|
11099
|
-
outputFormat: _enum([
|
|
11100
|
-
"jpeg",
|
|
11101
|
-
"rgb",
|
|
11102
|
-
"bgr",
|
|
11103
|
-
"yuv420",
|
|
11104
|
-
"gray"
|
|
11105
|
-
]).default("jpeg"),
|
|
11106
|
-
scale: number().default(1),
|
|
11107
|
-
width: number().optional(),
|
|
11108
|
-
height: number().optional(),
|
|
11109
|
-
/**
|
|
11110
|
-
* Identifier of the camera this decoder session serves. Optional
|
|
11111
|
-
* because the cap is generic (any caller could request decode), but
|
|
11112
|
-
* stream-broker passes it so decoder logs include `deviceId` for
|
|
11113
|
-
* per-camera filtering when diagnosing failures (e.g. node-av
|
|
11114
|
-
* sendPacket errors on a single hung camera).
|
|
11115
|
-
*/
|
|
11116
|
-
deviceId: number().int().nonnegative().optional(),
|
|
11117
|
-
/**
|
|
11118
|
-
* Free-form tag for log scoping. Stream-broker uses
|
|
11119
|
-
* `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
|
|
11120
|
-
* on every line so `grep tag=broker:5/high` filters one camera
|
|
11121
|
-
* profile cleanly.
|
|
11122
|
-
*/
|
|
11123
|
-
tag: string().optional(),
|
|
11124
|
-
/**
|
|
11125
|
-
* Where the session delivers decoded frames (Phase 5 / D9):
|
|
11126
|
-
*
|
|
11127
|
-
* - `'callback'` (default) — the legacy pixel path: decoded frames are
|
|
11128
|
-
* buffered as `DecodedFrame`s and drained via `pullFrames`.
|
|
11129
|
-
* - `'shm'` — the shared-memory frame plane: decoded frames are written
|
|
11130
|
-
* into an OS shared-memory ring and drained as zero-pixel
|
|
11131
|
-
* `FrameHandle`s via `pullHandles`. A session is one mode or the
|
|
11132
|
-
* other — `pullFrames` returns nothing for an `'shm'` session and
|
|
11133
|
-
* `pullHandles` returns nothing for a `'callback'` session.
|
|
11134
|
-
*/
|
|
11135
|
-
frameSink: _enum(["callback", "shm"]).default("callback"),
|
|
11136
|
-
/**
|
|
11137
|
-
* Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
|
|
11138
|
-
* a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
|
|
11139
|
-
* real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
|
|
11140
|
-
* stream-broker's `streamingDebug` gate — off by default so production logs
|
|
11141
|
-
* stay quiet and the emit path pays zero per-frame cost when disabled.
|
|
11142
|
-
*/
|
|
11143
|
-
debug: boolean().optional()
|
|
11144
|
-
});
|
|
11145
10997
|
/**
|
|
11146
10998
|
* Per-component log CHANNELS — the gate a hot path consults, and the registry
|
|
11147
10999
|
* an addon declares its channels in.
|
|
@@ -11284,6 +11136,26 @@ var ClipSearchStrictnessSchema = _enum([
|
|
|
11284
11136
|
"balanced",
|
|
11285
11137
|
"strict"
|
|
11286
11138
|
]);
|
|
11139
|
+
/** Steps whose effect a root label can BE. */
|
|
11140
|
+
var LABEL_SUPPLY_STEP_IDS = [
|
|
11141
|
+
"animal-classifier",
|
|
11142
|
+
"vehicle-classifier",
|
|
11143
|
+
"package-detection"
|
|
11144
|
+
];
|
|
11145
|
+
/** Steps whose box a root detection can BE. */
|
|
11146
|
+
var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
|
|
11147
|
+
/**
|
|
11148
|
+
* Steps whose per-detection MASK a root detection can carry (D737). The live
|
|
11149
|
+
* mask step is `segmentation` — a frame-plane refiner that runs its own model
|
|
11150
|
+
* once per detection crop. (`instance-segmentation` is a dormant step id that
|
|
11151
|
+
* no camera tree carries.)
|
|
11152
|
+
*/
|
|
11153
|
+
var MASK_SUPPLY_STEP_IDS = ["segmentation"];
|
|
11154
|
+
[
|
|
11155
|
+
...LABEL_SUPPLY_STEP_IDS,
|
|
11156
|
+
...CROP_SUPPLY_STEP_IDS,
|
|
11157
|
+
...MASK_SUPPLY_STEP_IDS
|
|
11158
|
+
];
|
|
11287
11159
|
var MODEL_FORMATS = [
|
|
11288
11160
|
"onnx",
|
|
11289
11161
|
"coreml",
|
|
@@ -11312,7 +11184,53 @@ var ModelFormatEntrySchema = object({
|
|
|
11312
11184
|
/** Multi-file payload (directory members or sibling files). */
|
|
11313
11185
|
files: array(string()).readonly().optional(),
|
|
11314
11186
|
/** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
|
|
11315
|
-
runtimes: array(_enum(["python"])).readonly().optional()
|
|
11187
|
+
runtimes: array(_enum(["python"])).readonly().optional(),
|
|
11188
|
+
/**
|
|
11189
|
+
* Content revision of the artefact, for one hosted OFF the CamStack mirror.
|
|
11190
|
+
* A format on the mirror leaves it unset: its revision (the sha256 of its
|
|
11191
|
+
* weight file) comes from the downloader's generated table, kept in step
|
|
11192
|
+
* with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
|
|
11193
|
+
* node records the revision it downloaded next to the file
|
|
11194
|
+
* (`<file>.revision`); a copy with no record or a different one is stale
|
|
11195
|
+
* unless its weight file hashes to the revision, and a stale copy is
|
|
11196
|
+
* downloaded again, the old one serving until the new one is complete. No
|
|
11197
|
+
* revision at all ⇒ a file on disk is current, whatever it holds (D743).
|
|
11198
|
+
*/
|
|
11199
|
+
revision: string().min(1).optional()
|
|
11200
|
+
});
|
|
11201
|
+
/**
|
|
11202
|
+
* What a node holds for one (model, format) (D746). `current` is a complete
|
|
11203
|
+
* copy at its catalog revision — exactly what `downloaded: true` means.
|
|
11204
|
+
* `stale` is bytes on disk that are not (yet) proven current under D743/D744:
|
|
11205
|
+
* no or a different revision record, or a missing sibling. `missing` is no
|
|
11206
|
+
* copy. `downloaded` alone folds `stale` into "not downloaded", which hid
|
|
11207
|
+
* reclaimable bytes and a copy about to be replaced.
|
|
11208
|
+
*/
|
|
11209
|
+
var ModelOnDiskStateSchema = _enum([
|
|
11210
|
+
"current",
|
|
11211
|
+
"stale",
|
|
11212
|
+
"missing"
|
|
11213
|
+
]);
|
|
11214
|
+
/**
|
|
11215
|
+
* The numeric precision of one format's BUILD (D746) — reported only when the
|
|
11216
|
+
* build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
|
|
11217
|
+
* CamStack Core ML export). Absent means "not stated", never "fp32".
|
|
11218
|
+
*/
|
|
11219
|
+
var ModelFormatPrecisionSchema = _enum([
|
|
11220
|
+
"fp32",
|
|
11221
|
+
"fp16",
|
|
11222
|
+
"int8"
|
|
11223
|
+
]);
|
|
11224
|
+
/**
|
|
11225
|
+
* One format of one model as a node's `pipelineExecutor.getSchema` reports it.
|
|
11226
|
+
* `onDisk` / `precision` are optional for version skew: a runner that predates
|
|
11227
|
+
* them omits them, and a reader falls back to `downloaded`.
|
|
11228
|
+
*/
|
|
11229
|
+
var PipelineModelFormatStatusSchema = object({
|
|
11230
|
+
downloaded: boolean(),
|
|
11231
|
+
sizeMB: number(),
|
|
11232
|
+
onDisk: ModelOnDiskStateSchema.optional(),
|
|
11233
|
+
precision: ModelFormatPrecisionSchema.optional()
|
|
11316
11234
|
});
|
|
11317
11235
|
/**
|
|
11318
11236
|
* Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
|
|
@@ -11416,6 +11334,46 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
|
|
|
11416
11334
|
/** True when the weights or their data forbid commercial use. */
|
|
11417
11335
|
nonCommercial: boolean().optional()
|
|
11418
11336
|
}));
|
|
11337
|
+
/**
|
|
11338
|
+
* One step a ROOT detector can supply from its own output (D730) — see
|
|
11339
|
+
* `ModelCatalogEntry.suppliesSteps`.
|
|
11340
|
+
*
|
|
11341
|
+
* - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
|
|
11342
|
+
* the root's label to the step's vocabulary; `uncovered` is the vocabulary
|
|
11343
|
+
* the root cannot produce (shown as unavailable, never a blocker).
|
|
11344
|
+
* - `crop`: the root draws the box the step would have found (`license_plate`
|
|
11345
|
+
* for plate-detection, `face` for face-detection). The box becomes a detail
|
|
11346
|
+
* child of the `parentMacro` detection that contains it — never a track.
|
|
11347
|
+
* - `mask`: the root's decode emits an instance mask with every detection (a
|
|
11348
|
+
* YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
|
|
11349
|
+
* detection in the shape that step produces. Derived from the model's
|
|
11350
|
+
* postprocessor on read, never stored by an import.
|
|
11351
|
+
*/
|
|
11352
|
+
var RootStepSupplySchema = discriminatedUnion("kind", [
|
|
11353
|
+
object({
|
|
11354
|
+
kind: literal("label"),
|
|
11355
|
+
stepId: _enum(LABEL_SUPPLY_STEP_IDS),
|
|
11356
|
+
labelToEffect: record(string(), string()),
|
|
11357
|
+
uncovered: array(string()).readonly()
|
|
11358
|
+
}),
|
|
11359
|
+
object({
|
|
11360
|
+
kind: literal("crop"),
|
|
11361
|
+
stepId: _enum(CROP_SUPPLY_STEP_IDS),
|
|
11362
|
+
rootLabels: array(string()).readonly(),
|
|
11363
|
+
parentMacro: _enum(["vehicle", "person"]),
|
|
11364
|
+
childClass: _enum(["plate", "face"]),
|
|
11365
|
+
/**
|
|
11366
|
+
* The root's smaller input side, stamped on read by `rootSuppliesOf` from
|
|
11367
|
+
* the model entry — what a step's `minRootInputPx` gate judges. Never
|
|
11368
|
+
* stored by an import.
|
|
11369
|
+
*/
|
|
11370
|
+
rootInputPx: number().int().positive().optional()
|
|
11371
|
+
}),
|
|
11372
|
+
object({
|
|
11373
|
+
kind: literal("mask"),
|
|
11374
|
+
stepId: _enum(MASK_SUPPLY_STEP_IDS)
|
|
11375
|
+
})
|
|
11376
|
+
]);
|
|
11419
11377
|
var ModelCatalogEntrySchema = object({
|
|
11420
11378
|
id: string(),
|
|
11421
11379
|
name: string(),
|
|
@@ -11481,6 +11439,35 @@ var ModelCatalogEntrySchema = object({
|
|
|
11481
11439
|
*/
|
|
11482
11440
|
defaultConfidence: number().min(0).max(1).optional(),
|
|
11483
11441
|
/**
|
|
11442
|
+
* Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
|
|
11443
|
+
* on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
|
|
11444
|
+
* absent here runs at the step slider's global default. The same row shape
|
|
11445
|
+
* the floor measurement produces (`model-floors.json`: modelId → floors), so
|
|
11446
|
+
* a measured table is copied in as-is. An operator override is bound to the
|
|
11447
|
+
* model it was made for and does not survive a model change (D738). A custom
|
|
11448
|
+
* / imported model may declare it; without it, the global defaults apply.
|
|
11449
|
+
*/
|
|
11450
|
+
defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
|
|
11451
|
+
/**
|
|
11452
|
+
* The inference precision this model's OpenVINO IR needs on an Intel GPU.
|
|
11453
|
+
* Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
|
|
11454
|
+
* that produces invalid output at f16 — measured 2026-10-07 for YOLO26
|
|
11455
|
+
* base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
|
|
11456
|
+
* scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
|
|
11457
|
+
* `PoolModelConfig.gpuInferencePrecision`; the pool sets
|
|
11458
|
+
* INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
|
|
11459
|
+
*/
|
|
11460
|
+
gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
|
|
11461
|
+
/**
|
|
11462
|
+
* ROOT detectors only: per supplied step (`animal-classifier`, …), the
|
|
11463
|
+
* minimum DETECTION score from which this root's own fine label (species,
|
|
11464
|
+
* vehicle type — D736 root supply) is taken (D741). Below it the detection
|
|
11465
|
+
* keeps its macro class without the fine label. `1` = never take it from
|
|
11466
|
+
* this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
|
|
11467
|
+
* `minConfidence` slider, bound to the ROOT model, overrides it.
|
|
11468
|
+
*/
|
|
11469
|
+
suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
|
|
11470
|
+
/**
|
|
11484
11471
|
* When true, the executor produces a landmark-aligned crop (similarity warp
|
|
11485
11472
|
* onto the canonical template) before this step runs, instead of a plain
|
|
11486
11473
|
* axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
|
|
@@ -11542,6 +11529,16 @@ var ModelCatalogEntrySchema = object({
|
|
|
11542
11529
|
*/
|
|
11543
11530
|
classMap: DetectionCatalogClassMapSchema.optional(),
|
|
11544
11531
|
/**
|
|
11532
|
+
* The pipeline steps this ROOT detector can supply from its own output
|
|
11533
|
+
* (D730): its labels name a step's effect (`deer` for `animal-classifier`)
|
|
11534
|
+
* or draw a step's box (`license_plate` for `plate-detection`). Computed at
|
|
11535
|
+
* import from THIS model's labelmap by `deriveRootSupplies`, never written
|
|
11536
|
+
* by hand and never assumed per family; a row without it is derived on read
|
|
11537
|
+
* (`rootSuppliesOf`). Whether a camera uses it is the step's own
|
|
11538
|
+
* `useRootModel` flag (`resolveRootSupply`).
|
|
11539
|
+
*/
|
|
11540
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
|
|
11541
|
+
/**
|
|
11545
11542
|
* The model's CLIP feature-space contract (text encoder, dimension, vector
|
|
11546
11543
|
* index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
|
|
11547
11544
|
* CLIP image encoder; its absence is what "not a CLIP model" means to the
|
|
@@ -13143,13 +13140,6 @@ var BrokerRtspClientSchema = object({
|
|
|
13143
13140
|
lastRtpAt: number(),
|
|
13144
13141
|
bytesSent: number()
|
|
13145
13142
|
});
|
|
13146
|
-
var BrokerDecodedClientSchema = object({
|
|
13147
|
-
tag: string(),
|
|
13148
|
-
subscribedAt: number(),
|
|
13149
|
-
maxFps: number(),
|
|
13150
|
-
framesDelivered: number(),
|
|
13151
|
-
framesDropped: number()
|
|
13152
|
-
});
|
|
13153
13143
|
var BrokerAudioClientSchema = object({
|
|
13154
13144
|
tag: string(),
|
|
13155
13145
|
subscribedAt: number(),
|
|
@@ -13241,7 +13231,6 @@ var BrokerEncodedClientSchema = object({
|
|
|
13241
13231
|
});
|
|
13242
13232
|
var BrokerClientsSchema = object({
|
|
13243
13233
|
rtsp: array(BrokerRtspClientSchema).readonly(),
|
|
13244
|
-
decoded: array(BrokerDecodedClientSchema).readonly(),
|
|
13245
13234
|
audio: array(BrokerAudioClientSchema).readonly(),
|
|
13246
13235
|
encoded: array(BrokerEncodedClientSchema).readonly(),
|
|
13247
13236
|
pipeClients: number(),
|
|
@@ -13610,11 +13599,7 @@ method(object({
|
|
|
13610
13599
|
auth: "admin"
|
|
13611
13600
|
}), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
|
|
13612
13601
|
brokerId: string(),
|
|
13613
|
-
channel: _enum([
|
|
13614
|
-
"rtsp",
|
|
13615
|
-
"decoded",
|
|
13616
|
-
"audio"
|
|
13617
|
-
]),
|
|
13602
|
+
channel: _enum(["rtsp", "audio"]),
|
|
13618
13603
|
handle: string()
|
|
13619
13604
|
}), object({ killed: boolean() }), {
|
|
13620
13605
|
kind: "mutation",
|
|
@@ -13649,10 +13634,7 @@ method(object({
|
|
|
13649
13634
|
}), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
|
|
13650
13635
|
subscriptionId: string(),
|
|
13651
13636
|
maxCount: number().int().positive().default(8)
|
|
13652
|
-
}), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(
|
|
13653
|
-
subscriptionId: string(),
|
|
13654
|
-
maxCount: number().int().positive().default(4)
|
|
13655
|
-
}), array(FrameHandleSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
|
|
13637
|
+
}), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(object({
|
|
13656
13638
|
brokerId: string(),
|
|
13657
13639
|
seconds: number().min(0).max(30)
|
|
13658
13640
|
}), _void(), {
|
|
@@ -14911,54 +14893,12 @@ id: union([string(), number()]) }), {
|
|
|
14911
14893
|
kind: "mutation",
|
|
14912
14894
|
auth: "admin"
|
|
14913
14895
|
});
|
|
14914
|
-
|
|
14915
|
-
* shm ring usage stats for a `frameSink: 'shm'` decoder session —
|
|
14916
|
-
* exposed via `decoder.getShmStats` so downstream consumers can
|
|
14917
|
-
* observe ring pressure (slot count, byte budget, hit/miss ratio).
|
|
14918
|
-
*/
|
|
14919
|
-
var ShmRingStatsSchema = object({
|
|
14920
|
-
sessionId: string(),
|
|
14921
|
-
slotCount: number().int(),
|
|
14922
|
-
slotByteLength: number().int(),
|
|
14923
|
-
segmentBytes: number().int(),
|
|
14924
|
-
budgetMb: number().int(),
|
|
14925
|
-
framesWritten: number().int(),
|
|
14926
|
-
getFrameHits: number().int(),
|
|
14927
|
-
getFrameMisses: number().int()
|
|
14928
|
-
});
|
|
14929
|
-
method(object({ codec: string() }), boolean()), method(_void(), object({
|
|
14896
|
+
method(_void(), object({
|
|
14930
14897
|
id: string(),
|
|
14931
14898
|
name: string(),
|
|
14932
|
-
isPullMode: boolean().optional(),
|
|
14933
|
-
priority: number().optional(),
|
|
14934
14899
|
hwaccel: string().optional(),
|
|
14935
14900
|
probedBestHwaccel: string().optional()
|
|
14936
|
-
})), method(
|
|
14937
|
-
sessionId: string(),
|
|
14938
|
-
nodeId: string()
|
|
14939
|
-
})), method(object({ sessionId: string() }), _void()), method(object({
|
|
14940
|
-
sessionId: string(),
|
|
14941
|
-
packet: EncodedPacketSchema
|
|
14942
|
-
}), _void()), method(object({
|
|
14943
|
-
sessionId: string(),
|
|
14944
|
-
url: string()
|
|
14945
|
-
}), _void()), method(object({
|
|
14946
|
-
sessionId: string(),
|
|
14947
|
-
maxCount: number().default(1),
|
|
14948
|
-
waitMs: number().optional()
|
|
14949
|
-
}), array(DecodedFrameSchema)), method(object({
|
|
14950
|
-
sessionId: string(),
|
|
14951
|
-
maxCount: number().default(1),
|
|
14952
|
-
waitMs: number().optional()
|
|
14953
|
-
}), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
|
|
14954
|
-
sessionId: string(),
|
|
14955
|
-
config: DecoderSessionConfigSchema.partial()
|
|
14956
|
-
}), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
|
|
14957
|
-
sessionId: string(),
|
|
14958
|
-
codec: string(),
|
|
14959
|
-
outputFormat: string(),
|
|
14960
|
-
createdAtMs: number()
|
|
14961
|
-
})).readonly()), method(_void(), object({ backend: string() }), {
|
|
14901
|
+
})), method(_void(), object({ backend: string() }), {
|
|
14962
14902
|
kind: "mutation",
|
|
14963
14903
|
auth: "admin"
|
|
14964
14904
|
});
|
|
@@ -15975,6 +15915,10 @@ var DeviceInfoSchema = object({
|
|
|
15975
15915
|
isCamera: boolean(),
|
|
15976
15916
|
/** Current config values — serializable snapshot */
|
|
15977
15917
|
config: record(string(), unknown()),
|
|
15918
|
+
/** Paths inside `config` the device's schema declares secret (D783) —
|
|
15919
|
+
* what the non-admin redaction withholds. Paths, never values. Absent
|
|
15920
|
+
* when the owning runner has not reported them. */
|
|
15921
|
+
secretConfigPaths: array(string()).optional(),
|
|
15978
15922
|
/** Hardware + identity blob (manufacturer / model / firmware / sn /
|
|
15979
15923
|
* uid / mac / …). Populated by drivers; editable via setMetadata. */
|
|
15980
15924
|
metadata: record(string(), unknown()).nullable().optional(),
|
|
@@ -16180,7 +16124,13 @@ var DeviceRegisterPayloadSchema = object({
|
|
|
16180
16124
|
* call (workers re-register on init), so probe-driven updates
|
|
16181
16125
|
* (e.g. PTZ flag flipping after the abilities probe) propagate. */
|
|
16182
16126
|
features: array(string()).optional(),
|
|
16183
|
-
config: record(string(), unknown())
|
|
16127
|
+
config: record(string(), unknown()),
|
|
16128
|
+
/** Config paths the device's own schema DECLARES secret
|
|
16129
|
+
* (`.meta({ secret: true })` — dotted, `[]` for array items, e.g.
|
|
16130
|
+
* `connection.password`). Re-published on every register; the non-admin
|
|
16131
|
+
* redaction withholds them at any depth (D783). Optional: an older runner
|
|
16132
|
+
* omits it and the keyword backstop applies. */
|
|
16133
|
+
secretConfigPaths: array(string()).optional()
|
|
16184
16134
|
});
|
|
16185
16135
|
var DeviceRemovePayloadSchema = object({ deviceId: number() });
|
|
16186
16136
|
var DevicePersistConfigPayloadSchema = object({
|
|
@@ -17007,6 +16957,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
|
17007
16957
|
kind: "mutation",
|
|
17008
16958
|
auth: "admin"
|
|
17009
16959
|
});
|
|
16960
|
+
var HUB_ADDRESS_ROLES = [
|
|
16961
|
+
"appConnections",
|
|
16962
|
+
"notificationTaps",
|
|
16963
|
+
"internal",
|
|
16964
|
+
"publicEndpoint"
|
|
16965
|
+
];
|
|
17010
16966
|
/**
|
|
17011
16967
|
* Transport bounds for AI capability methods.
|
|
17012
16968
|
*
|
|
@@ -17833,7 +17789,14 @@ var LoginMethodContributionSchema = discriminatedUnion("kind", [
|
|
|
17833
17789
|
icon: string().optional(),
|
|
17834
17790
|
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
17835
17791
|
startUrl: string(),
|
|
17836
|
-
stage: LoginStageEnum
|
|
17792
|
+
stage: LoginStageEnum,
|
|
17793
|
+
/**
|
|
17794
|
+
* The provider names an external identity a signed-in user can link to
|
|
17795
|
+
* their own account (D782): `auth.listLinkableProviders` /
|
|
17796
|
+
* `beginExternalLink` offer exactly the redirect methods that set this,
|
|
17797
|
+
* whatever their id. Absent / false — a login button only (magic-link).
|
|
17798
|
+
*/
|
|
17799
|
+
linkable: boolean().optional()
|
|
17837
17800
|
}),
|
|
17838
17801
|
object({
|
|
17839
17802
|
kind: literal("widget"),
|
|
@@ -19609,6 +19572,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
19609
19572
|
"stream-offline",
|
|
19610
19573
|
"node-online",
|
|
19611
19574
|
"node-offline",
|
|
19575
|
+
"node-restarting",
|
|
19576
|
+
"node-updating",
|
|
19612
19577
|
"node-inference-unavailable",
|
|
19613
19578
|
"detection-blind",
|
|
19614
19579
|
"addon-crash-loop",
|
|
@@ -21214,7 +21179,13 @@ var NcAlarmModeDelaysListSchema = array(object({
|
|
|
21214
21179
|
* Absent = false (logged, not sent). Even when true it is not sent when that same sensor
|
|
21215
21180
|
* is the one that starts the entry delay — the entry-delay notification already names it.
|
|
21216
21181
|
*/
|
|
21217
|
-
notifySensorRewatched: boolean().optional()
|
|
21182
|
+
notifySensorRewatched: boolean().optional(),
|
|
21183
|
+
/**
|
|
21184
|
+
* D735: notify "ignored" when a sensor this arm bypassed really MOVED while armed (its own
|
|
21185
|
+
* change time is after the arm) and set nothing off. Absent = false (logged, not sent). A
|
|
21186
|
+
* re-sync, a recovery from `unavailable` or a duplicate is never announced, switch or not.
|
|
21187
|
+
*/
|
|
21188
|
+
notifySensorIgnored: boolean().optional()
|
|
21218
21189
|
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
|
|
21219
21190
|
var NcAlarmModeDelaysEditListSchema = array(object({
|
|
21220
21191
|
mode: AlarmArmModeSchema,
|
|
@@ -21227,7 +21198,9 @@ var NcAlarmModeDelaysEditListSchema = array(object({
|
|
|
21227
21198
|
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
21228
21199
|
notifyDuringEntryDelay: boolean().nullable().optional(),
|
|
21229
21200
|
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
21230
|
-
notifySensorRewatched: boolean().nullable().optional()
|
|
21201
|
+
notifySensorRewatched: boolean().nullable().optional(),
|
|
21202
|
+
/** D735: set the switch, or `null` to clear it (back to the default, false). */
|
|
21203
|
+
notifySensorIgnored: boolean().nullable().optional()
|
|
21231
21204
|
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
|
|
21232
21205
|
/** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
|
|
21233
21206
|
var NcAlarmNonBlockingEditSchema = object({
|
|
@@ -22205,8 +22178,8 @@ Object.freeze(Object.fromEntries([{
|
|
|
22205
22178
|
var CLUSTER_STEP_SETTING_FIELDS = [{
|
|
22206
22179
|
stepId: "face-embedding",
|
|
22207
22180
|
key: "minLandmarkFaceSize",
|
|
22208
|
-
label: "Min face size
|
|
22209
|
-
description: "
|
|
22181
|
+
label: "Min face size to embed (detection-frame px)",
|
|
22182
|
+
description: "Faces smaller than this in the small frame the detector sees are not embedded, so they can never be recognised. Below it the face cannot be aligned reliably and a bad embedding matches everyone. Same value on every node. 0 = no limit.",
|
|
22210
22183
|
type: "slider",
|
|
22211
22184
|
min: 0,
|
|
22212
22185
|
max: 64,
|
|
@@ -23258,7 +23231,13 @@ var RetrainFrameSchema = object({
|
|
|
23258
23231
|
sizeBytes: number().int(),
|
|
23259
23232
|
width: number().int(),
|
|
23260
23233
|
height: number().int(),
|
|
23261
|
-
copiedAt: number()
|
|
23234
|
+
copiedAt: number(),
|
|
23235
|
+
/** When the CAMERA captured the frame. Absent on a copy taken before D785. */
|
|
23236
|
+
capturedAt: number().optional(),
|
|
23237
|
+
/** The operator's "every subject in this frame is boxed". Detector
|
|
23238
|
+
* evaluation keeps only complete frames: an unboxed subject would count as
|
|
23239
|
+
* a false positive. */
|
|
23240
|
+
complete: boolean()
|
|
23262
23241
|
});
|
|
23263
23242
|
/** Why a copy-on-select could not be honoured — named, never a silent skip. */
|
|
23264
23243
|
var RetrainCopyRefusalSchema = _enum([
|
|
@@ -23279,6 +23258,51 @@ var RetrainFrameListSchema = object({
|
|
|
23279
23258
|
/** What the page pre-selects — the native key frame when one survives. */
|
|
23280
23259
|
autoPickMediaId: number().int().optional()
|
|
23281
23260
|
});
|
|
23261
|
+
/**
|
|
23262
|
+
* Which frames an annotated export carries. Every field narrows; an empty
|
|
23263
|
+
* filter is every annotated copy. A dataset VERSION is a frozen `frameIds`
|
|
23264
|
+
* list owned by whoever trains (the training orchestrator), so `frameIds` is
|
|
23265
|
+
* the primitive a version export uses; `batchId` re-selects what an earlier
|
|
23266
|
+
* export carried (`exportedInBatch`).
|
|
23267
|
+
*/
|
|
23268
|
+
var RetrainExportFilterSchema = object({
|
|
23269
|
+
deviceIds: array(number()).optional(),
|
|
23270
|
+
frameIds: array(string()).max(2e4).optional(),
|
|
23271
|
+
batchId: string().optional(),
|
|
23272
|
+
/** Only frames the operator marked complete (all subjects boxed). */
|
|
23273
|
+
completeOnly: boolean().optional()
|
|
23274
|
+
});
|
|
23275
|
+
/**
|
|
23276
|
+
* `frames`: the full frame copies, boxes in `annotations.json`.
|
|
23277
|
+
* `crops`: additionally one JPEG per subject, cut with the runtime detail-crop
|
|
23278
|
+
* convention — the classifier layout.
|
|
23279
|
+
*/
|
|
23280
|
+
var RetrainExportLayoutSchema = _enum(["frames", "crops"]);
|
|
23281
|
+
/**
|
|
23282
|
+
* Where `writeRetrainArchive` streams the tar: one HTTP request whose body is
|
|
23283
|
+
* the archive, sent chunk by chunk. Covers a presigned PUT and a provider
|
|
23284
|
+
* addon's data-plane upload route alike. Headers are sent verbatim and never
|
|
23285
|
+
* logged.
|
|
23286
|
+
*/
|
|
23287
|
+
var RetrainArchiveTargetSchema = object({
|
|
23288
|
+
kind: literal("http"),
|
|
23289
|
+
method: _enum(["PUT", "POST"]),
|
|
23290
|
+
url: string().url(),
|
|
23291
|
+
headers: record(string(), string()).optional()
|
|
23292
|
+
});
|
|
23293
|
+
var RetrainArchiveResultSchema = object({
|
|
23294
|
+
batchId: string(),
|
|
23295
|
+
frames: number().int(),
|
|
23296
|
+
crops: number().int(),
|
|
23297
|
+
annotations: number().int(),
|
|
23298
|
+
/** Frames planned but not shipped (unreadable copy, path too long). */
|
|
23299
|
+
missing: number().int(),
|
|
23300
|
+
bytes: number().int(),
|
|
23301
|
+
/** sha256 of the exact bytes sent. */
|
|
23302
|
+
sha256: string(),
|
|
23303
|
+
/** The target's HTTP status. */
|
|
23304
|
+
status: number().int()
|
|
23305
|
+
});
|
|
23282
23306
|
/** What the operator asked the assist to look for. */
|
|
23283
23307
|
var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
|
|
23284
23308
|
kind: literal("package"),
|
|
@@ -24073,9 +24097,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
24073
24097
|
}), RetrainTransitionResultSchema, {
|
|
24074
24098
|
kind: "mutation",
|
|
24075
24099
|
auth: "admin"
|
|
24076
|
-
}), method(
|
|
24100
|
+
}), method(RetrainExportFilterSchema.extend({ layout: RetrainExportLayoutSchema.optional() }), object({ url: string() }), {
|
|
24077
24101
|
kind: "query",
|
|
24078
24102
|
auth: "admin"
|
|
24103
|
+
}), method(object({
|
|
24104
|
+
deviceId: number(),
|
|
24105
|
+
trackId: string(),
|
|
24106
|
+
frameId: string(),
|
|
24107
|
+
complete: boolean()
|
|
24108
|
+
}), RetrainFrameSchema, {
|
|
24109
|
+
kind: "mutation",
|
|
24110
|
+
auth: "admin"
|
|
24111
|
+
}), method(object({
|
|
24112
|
+
filter: RetrainExportFilterSchema,
|
|
24113
|
+
layout: RetrainExportLayoutSchema,
|
|
24114
|
+
target: RetrainArchiveTargetSchema
|
|
24115
|
+
}), RetrainArchiveResultSchema, {
|
|
24116
|
+
kind: "mutation",
|
|
24117
|
+
auth: "admin",
|
|
24118
|
+
timeoutMs: 60 * 6e4
|
|
24079
24119
|
}), method(object({
|
|
24080
24120
|
/** Which of the three event tables owns the row. */
|
|
24081
24121
|
ownerType: EventOwnerTypeSchema,
|
|
@@ -24126,6 +24166,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
24126
24166
|
timestamp: number()
|
|
24127
24167
|
});
|
|
24128
24168
|
/**
|
|
24169
|
+
* A root model's boxes standing in for one crop-kind step's own inference
|
|
24170
|
+
* (D730) — see `runPipeline.suppliedRoot`.
|
|
24171
|
+
*/
|
|
24172
|
+
var SuppliedRootOutputSchema = object({
|
|
24173
|
+
stepId: string(),
|
|
24174
|
+
/** The root model that drew the boxes — stamped on the result. */
|
|
24175
|
+
modelId: string(),
|
|
24176
|
+
detections: array(object({
|
|
24177
|
+
/** `[x1, y1, x2, y2]` in the pixels of the call's image. */
|
|
24178
|
+
bbox: tuple([
|
|
24179
|
+
number(),
|
|
24180
|
+
number(),
|
|
24181
|
+
number(),
|
|
24182
|
+
number()
|
|
24183
|
+
]),
|
|
24184
|
+
score: number(),
|
|
24185
|
+
/**
|
|
24186
|
+
* Five facial landmarks in the same pixels — a face the step's own
|
|
24187
|
+
* detector already re-found inside a root face box (D730), so its
|
|
24188
|
+
* embedder child aligns it exactly as it aligns any detected face.
|
|
24189
|
+
*/
|
|
24190
|
+
landmarks: array(object({
|
|
24191
|
+
x: number(),
|
|
24192
|
+
y: number()
|
|
24193
|
+
})).optional()
|
|
24194
|
+
})).min(1)
|
|
24195
|
+
});
|
|
24196
|
+
/**
|
|
24129
24197
|
* Reference to the frame's retained NATIVE surface + the parent crop's placement
|
|
24130
24198
|
* within the frame, so the executor can re-cut a leaf child ROI at native
|
|
24131
24199
|
* resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
|
|
@@ -24173,7 +24241,7 @@ var FrameRefSchema = object({
|
|
|
24173
24241
|
timestamp: number(),
|
|
24174
24242
|
capturedAt: number().optional()
|
|
24175
24243
|
});
|
|
24176
|
-
var ModelFormatSchema$
|
|
24244
|
+
var ModelFormatSchema$2 = _enum([
|
|
24177
24245
|
"onnx",
|
|
24178
24246
|
"coreml",
|
|
24179
24247
|
"openvino",
|
|
@@ -24191,7 +24259,7 @@ var PipelineSlotSchema = _enum([
|
|
|
24191
24259
|
var PipelineEngineChoiceSchema = object({
|
|
24192
24260
|
runtime: literal("python"),
|
|
24193
24261
|
backend: string(),
|
|
24194
|
-
format: ModelFormatSchema$
|
|
24262
|
+
format: ModelFormatSchema$2,
|
|
24195
24263
|
device: string().optional()
|
|
24196
24264
|
});
|
|
24197
24265
|
/**
|
|
@@ -24230,32 +24298,15 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
24230
24298
|
group: string().optional(),
|
|
24231
24299
|
settings: record(string(), unknown()).optional()
|
|
24232
24300
|
}));
|
|
24233
|
-
var PipelineTemplateStepSchema = lazy(() => object({
|
|
24234
|
-
addonId: string(),
|
|
24235
|
-
enabled: boolean(),
|
|
24236
|
-
modelId: string(),
|
|
24237
|
-
children: array(PipelineTemplateStepSchema).readonly(),
|
|
24238
|
-
settings: record(string(), unknown()).optional()
|
|
24239
|
-
}));
|
|
24240
|
-
var PipelineTemplateSchema$1 = object({
|
|
24241
|
-
id: string(),
|
|
24242
|
-
name: string(),
|
|
24243
|
-
createdAt: string(),
|
|
24244
|
-
updatedAt: string(),
|
|
24245
|
-
engine: PipelineEngineChoiceSchema,
|
|
24246
|
-
steps: array(PipelineTemplateStepSchema).readonly()
|
|
24247
|
-
});
|
|
24248
24301
|
var PipelineModelOptionSchema = object({
|
|
24249
24302
|
id: string(),
|
|
24250
24303
|
name: string(),
|
|
24251
|
-
formats: record(string(),
|
|
24252
|
-
downloaded: boolean(),
|
|
24253
|
-
sizeMB: number()
|
|
24254
|
-
})),
|
|
24304
|
+
formats: record(string(), PipelineModelFormatStatusSchema),
|
|
24255
24305
|
group: ModelVariantGroupSchema.optional(),
|
|
24256
24306
|
legacy: boolean().optional(),
|
|
24257
24307
|
provider: ModelProviderIdSchema.optional(),
|
|
24258
|
-
defaultConfidence: number().optional()
|
|
24308
|
+
defaultConfidence: number().optional(),
|
|
24309
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional()
|
|
24259
24310
|
});
|
|
24260
24311
|
var ConfigFieldBridge = custom();
|
|
24261
24312
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -24417,6 +24468,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
24417
24468
|
}), {
|
|
24418
24469
|
kind: "mutation",
|
|
24419
24470
|
auth: "admin"
|
|
24471
|
+
}), method(object({
|
|
24472
|
+
nodeId: string(),
|
|
24473
|
+
deviceIds: array(number()).readonly().optional(),
|
|
24474
|
+
dryRun: boolean()
|
|
24475
|
+
}), object({
|
|
24476
|
+
entries: array(object({
|
|
24477
|
+
deviceId: number(),
|
|
24478
|
+
keys: array(string()).readonly()
|
|
24479
|
+
})).readonly(),
|
|
24480
|
+
refused: array(object({
|
|
24481
|
+
deviceId: number(),
|
|
24482
|
+
reason: string()
|
|
24483
|
+
})).readonly()
|
|
24484
|
+
}), {
|
|
24485
|
+
kind: "mutation",
|
|
24486
|
+
auth: "admin"
|
|
24420
24487
|
}), method(object({ nodeId: string() }), object({ unhealthy: array(object({
|
|
24421
24488
|
/** `<backend>:<device>`, e.g. `openvino:gpu`. */
|
|
24422
24489
|
deviceKey: string(),
|
|
@@ -24442,22 +24509,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
24442
24509
|
}), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
|
|
24443
24510
|
steps: array(PipelineStepInputSchema),
|
|
24444
24511
|
deviceKey: string().optional()
|
|
24445
|
-
}), PipelineValidationResultSchema), method(_void(),
|
|
24446
|
-
name: string(),
|
|
24447
|
-
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
24448
|
-
engine: PipelineEngineChoiceSchema
|
|
24449
|
-
}), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
|
|
24450
|
-
id: string(),
|
|
24451
|
-
name: string().optional(),
|
|
24452
|
-
steps: array(PipelineTemplateStepSchema).readonly().optional()
|
|
24453
|
-
}), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({ id: string() }), _void(), { kind: "mutation" }), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
|
|
24512
|
+
}), PipelineValidationResultSchema), method(_void(), InferenceCapabilitiesBridge), method(object({ addonId: string() }), ModelAvailabilityListBridge), method(object({
|
|
24454
24513
|
addonId: string(),
|
|
24455
24514
|
modelId: string(),
|
|
24456
|
-
format: ModelFormatSchema$
|
|
24515
|
+
format: ModelFormatSchema$2
|
|
24457
24516
|
}), DownloadModelResultSchema, { kind: "mutation" }), method(object({
|
|
24458
24517
|
addonId: string(),
|
|
24459
24518
|
modelId: string(),
|
|
24460
|
-
format: ModelFormatSchema$
|
|
24519
|
+
format: ModelFormatSchema$2
|
|
24461
24520
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
24462
24521
|
steps: array(PipelineStepInputSchema).min(1),
|
|
24463
24522
|
frame: FrameInputSchema.optional(),
|
|
@@ -24523,7 +24582,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
24523
24582
|
* `device-not-servable`), and nothing reaches the camera's live
|
|
24524
24583
|
* trace stream. Absent ⇒ unchanged behaviour.
|
|
24525
24584
|
*/
|
|
24526
|
-
replay: literal(true).optional()
|
|
24585
|
+
replay: literal(true).optional(),
|
|
24586
|
+
/**
|
|
24587
|
+
* Root-supplied detections for the tree's ROOT step (D730). Set by
|
|
24588
|
+
* `runDetailSubtree` when the camera's root model supplies a crop-kind
|
|
24589
|
+
* step (a Frigate+ `license_plate` for `plate-detection`): the step is
|
|
24590
|
+
* NOT inferred, these boxes are its output, and its children (the plate
|
|
24591
|
+
* reader) run on them through their own crop policy. Boxes are in the
|
|
24592
|
+
* PIXELS of the image this call carries. Absent ⇒ the root step runs.
|
|
24593
|
+
*/
|
|
24594
|
+
suppliedRoot: SuppliedRootOutputSchema.optional()
|
|
24527
24595
|
}), PipelineRunResultBridge, { kind: "mutation" }), method(object({
|
|
24528
24596
|
steps: array(PipelineStepInputSchema).min(1),
|
|
24529
24597
|
frames: array(FrameInputSchema).min(1).max(255),
|
|
@@ -24605,6 +24673,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
24605
24673
|
filename: string().optional(),
|
|
24606
24674
|
settings: record(string(), unknown()).optional()
|
|
24607
24675
|
}), AudioTestResultSchema, { kind: "mutation" }), method(_void(), ConfigUISchemaNullableBridge);
|
|
24676
|
+
/**
|
|
24677
|
+
* The wire shapes of the Auto tune plan and apply (D745), used by the
|
|
24678
|
+
* `pipeline-orchestrator` cap. The recommender's own types
|
|
24679
|
+
* (`recommend.ts`) are the TS face of the same data; these
|
|
24680
|
+
* schemas are what crosses the cap boundary.
|
|
24681
|
+
*/
|
|
24682
|
+
var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
|
|
24683
|
+
/** The operator's range for it. */
|
|
24684
|
+
var MIN_SESSIONS_PER_DEVICE_RANGE = {
|
|
24685
|
+
min: 1,
|
|
24686
|
+
max: 8
|
|
24687
|
+
};
|
|
24688
|
+
var HardwareClassIdSchema = _enum([
|
|
24689
|
+
"intel-core-ultra",
|
|
24690
|
+
"intel-n-series",
|
|
24691
|
+
"apple-m-base",
|
|
24692
|
+
"apple-m-pro",
|
|
24693
|
+
"unknown"
|
|
24694
|
+
]);
|
|
24695
|
+
var AcceleratorKindSchema = _enum([
|
|
24696
|
+
"intel-npu",
|
|
24697
|
+
"intel-igpu",
|
|
24698
|
+
"x86-cpu",
|
|
24699
|
+
"arm-cpu",
|
|
24700
|
+
"apple-ane",
|
|
24701
|
+
"coral"
|
|
24702
|
+
]);
|
|
24703
|
+
var RecommendationReasonSchema = discriminatedUnion("kind", [
|
|
24704
|
+
object({
|
|
24705
|
+
kind: literal("capacity"),
|
|
24706
|
+
sessions: number(),
|
|
24707
|
+
minSessions: number()
|
|
24708
|
+
}),
|
|
24709
|
+
object({
|
|
24710
|
+
kind: literal("tie-faster"),
|
|
24711
|
+
over: string(),
|
|
24712
|
+
recallDelta: number()
|
|
24713
|
+
}),
|
|
24714
|
+
object({
|
|
24715
|
+
kind: literal("stepped-down"),
|
|
24716
|
+
from: string(),
|
|
24717
|
+
to: string(),
|
|
24718
|
+
limitedBy: string()
|
|
24719
|
+
}),
|
|
24720
|
+
object({
|
|
24721
|
+
kind: literal("no-fit-lightest"),
|
|
24722
|
+
sessions: number(),
|
|
24723
|
+
minSessions: number()
|
|
24724
|
+
}),
|
|
24725
|
+
object({
|
|
24726
|
+
kind: literal("derived-latency"),
|
|
24727
|
+
modelId: string()
|
|
24728
|
+
}),
|
|
24729
|
+
object({ kind: literal("cpu-device") }),
|
|
24730
|
+
object({ kind: literal("coral-untouched") }),
|
|
24731
|
+
object({ kind: literal("device-disabled") }),
|
|
24732
|
+
object({ kind: literal("device-unavailable") }),
|
|
24733
|
+
object({ kind: literal("node-offline") }),
|
|
24734
|
+
object({ kind: literal("no-hardware-facts") }),
|
|
24735
|
+
object({
|
|
24736
|
+
kind: literal("no-measured-data"),
|
|
24737
|
+
hardwareClass: HardwareClassIdSchema
|
|
24738
|
+
}),
|
|
24739
|
+
object({
|
|
24740
|
+
kind: literal("no-family-build"),
|
|
24741
|
+
format: ModelFormatSchema$1
|
|
24742
|
+
})
|
|
24743
|
+
]);
|
|
24744
|
+
var DeviceModelChoiceSchema = object({
|
|
24745
|
+
modelId: string(),
|
|
24746
|
+
p50Ms: number(),
|
|
24747
|
+
fps: number(),
|
|
24748
|
+
measured: boolean(),
|
|
24749
|
+
/** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
|
|
24750
|
+
capacitySessions: number(),
|
|
24751
|
+
personRecall: number()
|
|
24752
|
+
});
|
|
24753
|
+
var DeviceRecommendationSchema = object({
|
|
24754
|
+
deviceKey: string(),
|
|
24755
|
+
accelerator: AcceleratorKindSchema.nullable(),
|
|
24756
|
+
enabled: boolean(),
|
|
24757
|
+
available: boolean(),
|
|
24758
|
+
chosen: DeviceModelChoiceSchema.nullable(),
|
|
24759
|
+
reasons: array(RecommendationReasonSchema).readonly()
|
|
24760
|
+
});
|
|
24761
|
+
var NodeRecommendationSchema = object({
|
|
24762
|
+
nodeId: string(),
|
|
24763
|
+
reachable: boolean(),
|
|
24764
|
+
hardwareClass: HardwareClassIdSchema.nullable(),
|
|
24765
|
+
cpuModel: string().nullable(),
|
|
24766
|
+
skipped: boolean(),
|
|
24767
|
+
acceleratorModelId: string().nullable(),
|
|
24768
|
+
devices: array(DeviceRecommendationSchema).readonly(),
|
|
24769
|
+
reasons: array(RecommendationReasonSchema).readonly()
|
|
24770
|
+
});
|
|
24771
|
+
var ModelPinChangeSchema = object({
|
|
24772
|
+
stepId: string(),
|
|
24773
|
+
before: string().nullable(),
|
|
24774
|
+
after: string().nullable()
|
|
24775
|
+
});
|
|
24776
|
+
var NodeDeviceChangeSchema = object({
|
|
24777
|
+
nodeId: string(),
|
|
24778
|
+
deviceKey: string(),
|
|
24779
|
+
madeExplicit: boolean(),
|
|
24780
|
+
modelPins: array(ModelPinChangeSchema).readonly(),
|
|
24781
|
+
thresholds: array(object({
|
|
24782
|
+
stepId: string(),
|
|
24783
|
+
keys: array(string()).readonly()
|
|
24784
|
+
})).readonly()
|
|
24785
|
+
});
|
|
24786
|
+
var CameraOverrideClearSchema = object({
|
|
24787
|
+
deviceId: number(),
|
|
24788
|
+
source: _enum(["step-override", "wholesale"]),
|
|
24789
|
+
nodeId: string(),
|
|
24790
|
+
deviceKey: string().nullable(),
|
|
24791
|
+
stepId: string(),
|
|
24792
|
+
modelIdBefore: string().nullable(),
|
|
24793
|
+
keys: array(string()).readonly()
|
|
24794
|
+
});
|
|
24795
|
+
var DetectorStoreClearSchema = object({
|
|
24796
|
+
deviceId: number(),
|
|
24797
|
+
keys: array(string()).readonly()
|
|
24798
|
+
});
|
|
24799
|
+
var AutoTuneWarningSchema = discriminatedUnion("kind", [
|
|
24800
|
+
object({
|
|
24801
|
+
kind: literal("detector-store-cluster-wide"),
|
|
24802
|
+
skippedNodes: array(string()).readonly()
|
|
24803
|
+
}),
|
|
24804
|
+
object({
|
|
24805
|
+
kind: literal("detector-store-unreadable"),
|
|
24806
|
+
error: string()
|
|
24807
|
+
}),
|
|
24808
|
+
object({
|
|
24809
|
+
kind: literal("coral-enabled"),
|
|
24810
|
+
nodeId: string(),
|
|
24811
|
+
deviceKey: string()
|
|
24812
|
+
})
|
|
24813
|
+
]);
|
|
24814
|
+
var AutoTuneOptionsSchema = object({
|
|
24815
|
+
/** Share of each accelerator's throughput kept free (0.3–0.5). */
|
|
24816
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
24817
|
+
/**
|
|
24818
|
+
* The least number of parallel sessions every device must sustain at the
|
|
24819
|
+
* camera rate with the headroom kept free (D755). The most accurate model
|
|
24820
|
+
* that reaches it wins.
|
|
24821
|
+
*/
|
|
24822
|
+
minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
|
|
24823
|
+
});
|
|
24824
|
+
var AutoTunePlanSchema = object({
|
|
24825
|
+
/** Hash of everything the apply will write — the apply refuses a different one. */
|
|
24826
|
+
planHash: string(),
|
|
24827
|
+
family: literal("yolov9"),
|
|
24828
|
+
headroom: number(),
|
|
24829
|
+
minSessionsPerDevice: number(),
|
|
24830
|
+
/** The detection rate a session is counted at (the fastest camera running the pipeline root). */
|
|
24831
|
+
cameraFps: number(),
|
|
24832
|
+
generatedAt: number(),
|
|
24833
|
+
nodes: array(NodeRecommendationSchema).readonly(),
|
|
24834
|
+
nodeChanges: array(NodeDeviceChangeSchema).readonly(),
|
|
24835
|
+
cameraClears: array(CameraOverrideClearSchema).readonly(),
|
|
24836
|
+
detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
|
|
24837
|
+
warnings: array(AutoTuneWarningSchema).readonly()
|
|
24838
|
+
});
|
|
24839
|
+
var AutoTuneApplyInputSchema = object({
|
|
24840
|
+
planHash: string(),
|
|
24841
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
24842
|
+
minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
|
|
24843
|
+
});
|
|
24844
|
+
var AutoTunePhaseResultSchema = object({
|
|
24845
|
+
phase: _enum([
|
|
24846
|
+
"download",
|
|
24847
|
+
"camera-overrides",
|
|
24848
|
+
"detector-thresholds",
|
|
24849
|
+
"node-models",
|
|
24850
|
+
"redispatch"
|
|
24851
|
+
]),
|
|
24852
|
+
ok: boolean(),
|
|
24853
|
+
detail: string()
|
|
24854
|
+
});
|
|
24855
|
+
var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
|
|
24856
|
+
object({
|
|
24857
|
+
kind: literal("applied"),
|
|
24858
|
+
planHash: string(),
|
|
24859
|
+
phases: array(AutoTunePhaseResultSchema).readonly()
|
|
24860
|
+
}),
|
|
24861
|
+
object({
|
|
24862
|
+
kind: literal("aborted"),
|
|
24863
|
+
phases: array(AutoTunePhaseResultSchema).readonly()
|
|
24864
|
+
}),
|
|
24865
|
+
object({
|
|
24866
|
+
kind: literal("stale"),
|
|
24867
|
+
plan: AutoTunePlanSchema
|
|
24868
|
+
}),
|
|
24869
|
+
object({
|
|
24870
|
+
kind: literal("refused"),
|
|
24871
|
+
reason: _enum(["apply-in-progress"])
|
|
24872
|
+
})
|
|
24873
|
+
]);
|
|
24874
|
+
/**
|
|
24875
|
+
* Wire shapes of the Load balancing surface (D748): the session placement
|
|
24876
|
+
* policy, the atomic share write, the observed placement statistics, the
|
|
24877
|
+
* hardware share suggestion and the stale device pins.
|
|
24878
|
+
*/
|
|
24879
|
+
/**
|
|
24880
|
+
* How a new detection session picks its node and device.
|
|
24881
|
+
* - `least-loaded` — the historical rule: lowest `attached / weight`, a
|
|
24882
|
+
* constant node order at a tie (D37). An idle node always ties at 0, so a
|
|
24883
|
+
* weight only bites once a node already holds a session.
|
|
24884
|
+
* - `share` — the share of PARALLEL sessions is held to the weights, and a
|
|
24885
|
+
* full or drowning node yields to a free one (D748).
|
|
24886
|
+
*/
|
|
24887
|
+
var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
|
|
24888
|
+
var LoadBalancingSharesInputSchema = object({
|
|
24889
|
+
/** nodeId → share (> 0). A node left out keeps its weight. */
|
|
24890
|
+
nodes: record(string(), number().positive()).default({}),
|
|
24891
|
+
/** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
|
|
24892
|
+
devices: record(string(), record(string(), number().positive())).default({})
|
|
24893
|
+
});
|
|
24894
|
+
var PlacementStatsInputSchema = object({
|
|
24895
|
+
/** Window the observed shares are averaged over (default 1 h, max 24 h). */
|
|
24896
|
+
windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
|
|
24897
|
+
var PlacementDeviceStatsSchema = object({
|
|
24898
|
+
deviceKey: string(),
|
|
24899
|
+
/** Sessions running on this device now. */
|
|
24900
|
+
sessionsNow: number(),
|
|
24901
|
+
/** Sessions started on this device inside the window. */
|
|
24902
|
+
sessionsStarted: number(),
|
|
24903
|
+
/** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
|
|
24904
|
+
observedShare: number().nullable()
|
|
24905
|
+
});
|
|
24906
|
+
var PlacementNodeStatsSchema = object({
|
|
24907
|
+
nodeId: string(),
|
|
24908
|
+
sessionsNow: number(),
|
|
24909
|
+
sessionsStarted: number(),
|
|
24910
|
+
/** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
|
|
24911
|
+
observedShare: number().nullable(),
|
|
24912
|
+
/** Most sessions this node ran at once inside the window. */
|
|
24913
|
+
peakSessions: number(),
|
|
24914
|
+
/** Sessions a share election handed elsewhere because this node was full or drowning. */
|
|
24915
|
+
yieldsAway: number(),
|
|
24916
|
+
devices: array(PlacementDeviceStatsSchema).readonly()
|
|
24917
|
+
});
|
|
24918
|
+
/** A camera's device pin that the session path cannot honour. */
|
|
24919
|
+
var StaleDevicePinSchema = object({
|
|
24920
|
+
deviceId: number(),
|
|
24921
|
+
deviceKey: string(),
|
|
24922
|
+
/** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
|
|
24923
|
+
reason: _enum(["disabled", "absent"])
|
|
24924
|
+
});
|
|
24925
|
+
var PlacementStatsSchema = object({
|
|
24926
|
+
policy: SessionPlacementPolicySchema,
|
|
24927
|
+
windowMs: number(),
|
|
24928
|
+
/** How much of the window was actually observed (the hub keeps it in memory). */
|
|
24929
|
+
observedForMs: number(),
|
|
24930
|
+
sessionsNow: number(),
|
|
24931
|
+
/** Most parallel sessions across the cluster inside the window. */
|
|
24932
|
+
clusterPeakSessions: number(),
|
|
24933
|
+
nodes: array(PlacementNodeStatsSchema).readonly(),
|
|
24934
|
+
stalePins: array(StaleDevicePinSchema).readonly()
|
|
24935
|
+
});
|
|
24936
|
+
/**
|
|
24937
|
+
* Where an automatic share's capacity comes from (D755).
|
|
24938
|
+
* - `hardware` — the static capacity of each device at its Auto tune model:
|
|
24939
|
+
* the measured latency table for the node's hardware class.
|
|
24940
|
+
* - `benchmark` — the node's own measured capacity (node benchmark results).
|
|
24941
|
+
* A node with no results falls back to `hardware`, and says so.
|
|
24942
|
+
*/
|
|
24943
|
+
var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
|
|
24944
|
+
/** Why a node under the `benchmark` source was sized from hardware instead. */
|
|
24945
|
+
var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
|
|
24946
|
+
var SuggestSharesInputSchema = object({
|
|
24947
|
+
headroom: number().min(.3).max(.5).default(.4),
|
|
24948
|
+
/** Default `hardware`. */
|
|
24949
|
+
source: CapacitySourceSchema.default("hardware")
|
|
24950
|
+
});
|
|
24951
|
+
var SuggestedDeviceShareSchema = object({
|
|
24952
|
+
deviceKey: string(),
|
|
24953
|
+
/** Share of the node (0–100, rounded). */
|
|
24954
|
+
share: number(),
|
|
24955
|
+
modelId: string().nullable(),
|
|
24956
|
+
/** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
|
|
24957
|
+
fps: number().nullable(),
|
|
24958
|
+
/** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
|
|
24959
|
+
measured: boolean(),
|
|
24960
|
+
/**
|
|
24961
|
+
* Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
|
|
24962
|
+
* or the benchmark's measured max sessions. Never enforced.
|
|
24963
|
+
*/
|
|
24964
|
+
suggestedMaxSessions: number().nullable()
|
|
24965
|
+
});
|
|
24966
|
+
var SuggestedNodeShareSchema = object({
|
|
24967
|
+
nodeId: string(),
|
|
24968
|
+
/** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
|
|
24969
|
+
share: number().nullable(),
|
|
24970
|
+
/** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
|
|
24971
|
+
capacitySessions: number(),
|
|
24972
|
+
devices: array(SuggestedDeviceShareSchema).readonly(),
|
|
24973
|
+
skippedReason: string().nullable(),
|
|
24974
|
+
/** What this node's capacity was read from; null when the node is skipped. */
|
|
24975
|
+
capacitySource: CapacitySourceSchema.nullable(),
|
|
24976
|
+
/** Set when the `benchmark` source was asked for and this node used `hardware`. */
|
|
24977
|
+
capacityFallback: CapacityFallbackSchema.nullable()
|
|
24978
|
+
});
|
|
24979
|
+
var SuggestSharesResultSchema = object({
|
|
24980
|
+
headroom: number(),
|
|
24981
|
+
/** The source asked for; each node says what it actually used. */
|
|
24982
|
+
source: CapacitySourceSchema,
|
|
24983
|
+
/** Camera detection rate the capacity is counted in (the fastest camera's fps). */
|
|
24984
|
+
cameraFps: number(),
|
|
24985
|
+
/** The Auto tune capacity floor the models were picked at. */
|
|
24986
|
+
minSessionsPerDevice: number(),
|
|
24987
|
+
nodes: array(SuggestedNodeShareSchema).readonly()
|
|
24988
|
+
});
|
|
24989
|
+
/**
|
|
24990
|
+
* Where the node and device shares come from (D750, D755).
|
|
24991
|
+
* - `hardware` (default) — computed by the system from each node's static
|
|
24992
|
+
* capacity (its accelerators at their Auto tune models, from the measured
|
|
24993
|
+
* latency table), recomputed whenever a node or device joins, leaves, is
|
|
24994
|
+
* switched on or off, or changes model. No load input.
|
|
24995
|
+
* - `benchmark` — the same, from each node's measured capacity (node
|
|
24996
|
+
* benchmark results); a node without results falls back to `hardware`.
|
|
24997
|
+
* - `manual` — the operator's stored sliders.
|
|
24998
|
+
* Either way a node or device that cannot take sessions gives its share to
|
|
24999
|
+
* the others in proportion; the stored values are never rewritten for that.
|
|
25000
|
+
*/
|
|
25001
|
+
var ShareSourceSchema = _enum([
|
|
25002
|
+
"hardware",
|
|
25003
|
+
"benchmark",
|
|
25004
|
+
"manual"
|
|
25005
|
+
]);
|
|
25006
|
+
var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
|
|
25007
|
+
object({
|
|
25008
|
+
nodes: record(string(), number()),
|
|
25009
|
+
devices: record(string(), record(string(), number()))
|
|
25010
|
+
});
|
|
25011
|
+
var EffectiveDeviceShareSchema = object({
|
|
25012
|
+
deviceKey: string(),
|
|
25013
|
+
/** Can take sessions now (enabled, available, can run the root). */
|
|
25014
|
+
eligible: boolean(),
|
|
25015
|
+
/** The share the source assigns, as a percentage of the node's devices. */
|
|
25016
|
+
configuredPct: number(),
|
|
25017
|
+
/** The share actually used, after an ineligible device's share went to the others. */
|
|
25018
|
+
effectivePct: number()
|
|
25019
|
+
});
|
|
25020
|
+
var EffectiveNodeShareSchema = object({
|
|
25021
|
+
nodeId: string(),
|
|
25022
|
+
eligible: boolean(),
|
|
25023
|
+
configuredPct: number(),
|
|
25024
|
+
effectivePct: number(),
|
|
25025
|
+
/** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
|
|
25026
|
+
capacitySource: CapacitySourceSchema.nullable(),
|
|
25027
|
+
/** Automatic `benchmark`: why this node used `hardware` instead. */
|
|
25028
|
+
capacityFallback: CapacityFallbackSchema.nullable(),
|
|
25029
|
+
devices: array(EffectiveDeviceShareSchema).readonly()
|
|
25030
|
+
});
|
|
25031
|
+
var EffectiveSharesSchema = object({
|
|
25032
|
+
source: ShareSourceSchema,
|
|
25033
|
+
policy: SessionPlacementPolicySchema,
|
|
25034
|
+
/** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
|
|
25035
|
+
autoPending: boolean(),
|
|
25036
|
+
/** When the automatic shares were last computed (ms epoch); null = never. */
|
|
25037
|
+
computedAt: number().nullable(),
|
|
25038
|
+
/** What made the system recompute them last. */
|
|
25039
|
+
trigger: string().nullable(),
|
|
25040
|
+
nodes: array(EffectiveNodeShareSchema).readonly(),
|
|
25041
|
+
/** The relative weights the election reads (before eligibility). */
|
|
25042
|
+
nodeWeights: record(string(), number()),
|
|
25043
|
+
deviceWeights: record(string(), record(string(), number()))
|
|
25044
|
+
});
|
|
24608
25045
|
object({
|
|
24609
25046
|
activeCameras: number(),
|
|
24610
25047
|
throttledCameras: number(),
|
|
@@ -25522,14 +25959,15 @@ var RunnerLocalLoadSchema = object({
|
|
|
25522
25959
|
* Per-inference-device live load (multi-device C4). One entry per deviceKey
|
|
25523
25960
|
* this runner currently has attached cameras on, so the orchestrator's second
|
|
25524
25961
|
* `balance()` pass (over a node's devices) weights on real per-pool session
|
|
25525
|
-
* counts. Empty on single-device / pre-multi-device runners.
|
|
25526
|
-
* per
|
|
25962
|
+
* counts. Empty on single-device / pre-multi-device runners. There is no
|
|
25963
|
+
* per-device queue depth: the inference pool's backlog has no accessor, and
|
|
25964
|
+
* a field that always read 0 was removed rather than shown as a measurement
|
|
25965
|
+
* (D762).
|
|
25527
25966
|
*/
|
|
25528
25967
|
devices: array(object({
|
|
25529
25968
|
deviceKey: string(),
|
|
25530
25969
|
backend: string(),
|
|
25531
|
-
attachedCameras: number()
|
|
25532
|
-
queueDepthTotal: number()
|
|
25970
|
+
attachedCameras: number()
|
|
25533
25971
|
})).default([]),
|
|
25534
25972
|
/** Hardware capability flags reported by this node. */
|
|
25535
25973
|
hardware: object({
|
|
@@ -25665,7 +26103,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
25665
26103
|
*/
|
|
25666
26104
|
cropJpeg: string().optional(),
|
|
25667
26105
|
parent: DetailParentSchema,
|
|
25668
|
-
steps: array(string()).optional()
|
|
26106
|
+
steps: array(string()).optional(),
|
|
26107
|
+
/**
|
|
26108
|
+
* The camera's root model already drew this step's boxes (D730): a
|
|
26109
|
+
* `license_plate` inside the parent vehicle. The named step is NOT
|
|
26110
|
+
* inferred — these FRAME-space boxes are its output — and its
|
|
26111
|
+
* requested children (the plate reader) run on them. Absent ⇒ every
|
|
26112
|
+
* requested step infers as before.
|
|
26113
|
+
*/
|
|
26114
|
+
supplied: object({
|
|
26115
|
+
stepId: string(),
|
|
26116
|
+
modelId: string(),
|
|
26117
|
+
boxes: array(object({
|
|
26118
|
+
bbox: NativeCropBboxSchema,
|
|
26119
|
+
score: number()
|
|
26120
|
+
})).min(1)
|
|
26121
|
+
}).optional()
|
|
25669
26122
|
}), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
|
|
25670
26123
|
/** Catalog step id, e.g. `clip-embedding`. */
|
|
25671
26124
|
stepId: string(),
|
|
@@ -25728,14 +26181,6 @@ var CameraPipelineConfigSchema = object({
|
|
|
25728
26181
|
settings: record(string(), unknown()).readonly().optional()
|
|
25729
26182
|
}).nullable().optional()
|
|
25730
26183
|
});
|
|
25731
|
-
var PipelineTemplateSchema = object({
|
|
25732
|
-
id: string(),
|
|
25733
|
-
name: string(),
|
|
25734
|
-
description: string().optional(),
|
|
25735
|
-
config: CameraPipelineConfigSchema,
|
|
25736
|
-
createdAt: string(),
|
|
25737
|
-
updatedAt: string()
|
|
25738
|
-
});
|
|
25739
26184
|
var DeviceStepConfigSchema = object({
|
|
25740
26185
|
modelId: string().optional(),
|
|
25741
26186
|
settings: record(string(), unknown()).optional(),
|
|
@@ -25809,9 +26254,10 @@ var CameraStepOverridePatchSchema = object({
|
|
|
25809
26254
|
modelId: string().optional(),
|
|
25810
26255
|
settings: record(string(), unknown()).readonly().optional()
|
|
25811
26256
|
});
|
|
26257
|
+
var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
|
|
25812
26258
|
var CameraPipelineSettingsSchema = object({
|
|
25813
|
-
pinnedAgentNodeId: string().optional(),
|
|
25814
26259
|
stepToggles: record(string(), boolean()).optional(),
|
|
26260
|
+
stepSettings: CameraStepSettingsSchema.optional(),
|
|
25815
26261
|
stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
|
|
25816
26262
|
pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
|
|
25817
26263
|
});
|
|
@@ -25844,7 +26290,10 @@ var PipelineAssignmentSchema = object({
|
|
|
25844
26290
|
});
|
|
25845
26291
|
/**
|
|
25846
26292
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
25847
|
-
* Aggregated from each runner's `getLocalLoad` cap call.
|
|
26293
|
+
* Aggregated from each runner's `getLocalLoad` cap call. In the
|
|
26294
|
+
* `getAgentLoad` report, a single-device node's default-pool sessions (no
|
|
26295
|
+
* `deviceKey`) are credited to its one eligible device in `load.devices` —
|
|
26296
|
+
* the default pool IS that device (D745); the balancer's census stays raw.
|
|
25848
26297
|
*/
|
|
25849
26298
|
var AgentLoadSummarySchema = object({
|
|
25850
26299
|
nodeId: string(),
|
|
@@ -25933,26 +26382,27 @@ var CameraBrokerStatusSchema = object({
|
|
|
25933
26382
|
width: number(),
|
|
25934
26383
|
height: number(),
|
|
25935
26384
|
subscribers: number(),
|
|
25936
|
-
|
|
25937
|
-
|
|
26385
|
+
/**
|
|
26386
|
+
* Encoded packets/s the broker receives from the camera. null when the
|
|
26387
|
+
* broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
|
|
26388
|
+
* There is no output rate: decoding runs in the session decode workers, not
|
|
26389
|
+
* in the broker, so the broker's own decoded-frame rate is 0 on every live
|
|
26390
|
+
* camera and is not served (D758).
|
|
26391
|
+
*/
|
|
26392
|
+
inFps: number().nullable()
|
|
25938
26393
|
})).readonly(),
|
|
25939
26394
|
webrtcSessions: number(),
|
|
25940
26395
|
rtspRestream: boolean()
|
|
25941
26396
|
});
|
|
25942
|
-
/**
|
|
25943
|
-
|
|
25944
|
-
|
|
25945
|
-
|
|
25946
|
-
|
|
25947
|
-
|
|
25948
|
-
|
|
25949
|
-
|
|
25950
|
-
var CameraDecoderStatusSchema = object({
|
|
25951
|
-
nodeId: string(),
|
|
25952
|
-
formats: array(string()).readonly(),
|
|
25953
|
-
sessionCount: number(),
|
|
25954
|
-
shm: CameraDecoderShmSchema
|
|
25955
|
-
});
|
|
26397
|
+
/**
|
|
26398
|
+
* Decoder block — WHERE decode runs (co-located with the detection node by
|
|
26399
|
+
* construction); null when the camera has no detection node. It carries no
|
|
26400
|
+
* frame counter: the shared-memory plane whose counters it used to serve is
|
|
26401
|
+
* gone, and those fields read 0 forever. Whether frames actually flow is read
|
|
26402
|
+
* from `detection.actualFps` (frames delivered to and processed by the
|
|
26403
|
+
* detector), never from a counter nothing feeds.
|
|
26404
|
+
*/
|
|
26405
|
+
var CameraDecoderStatusSchema = object({ nodeId: string() });
|
|
25956
26406
|
/** Motion block — null when motion detection is not active for this device. */
|
|
25957
26407
|
var CameraMotionStatusSchema = object({
|
|
25958
26408
|
enabled: boolean(),
|
|
@@ -26309,12 +26759,6 @@ method(object({
|
|
|
26309
26759
|
}), object({ success: literal(true) }), {
|
|
26310
26760
|
kind: "mutation",
|
|
26311
26761
|
auth: "admin"
|
|
26312
|
-
}), method(object({
|
|
26313
|
-
agentNodeId: string(),
|
|
26314
|
-
detectWeight: number().positive().nullable()
|
|
26315
|
-
}), object({ success: literal(true) }), {
|
|
26316
|
-
kind: "mutation",
|
|
26317
|
-
auth: "admin"
|
|
26318
26762
|
}), method(object({
|
|
26319
26763
|
agentNodeId: string(),
|
|
26320
26764
|
detect: boolean().nullable().optional(),
|
|
@@ -26356,6 +26800,15 @@ method(object({
|
|
|
26356
26800
|
}), {
|
|
26357
26801
|
kind: "mutation",
|
|
26358
26802
|
auth: "admin"
|
|
26803
|
+
}), method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }), method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
|
|
26804
|
+
kind: "mutation",
|
|
26805
|
+
auth: "admin"
|
|
26806
|
+
}), method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
|
|
26807
|
+
kind: "mutation",
|
|
26808
|
+
auth: "admin"
|
|
26809
|
+
}), method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }), method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }), method(_void(), EffectiveSharesSchema, { auth: "admin" }), method(SetShareSourceInputSchema, object({ success: literal(true) }), {
|
|
26810
|
+
kind: "mutation",
|
|
26811
|
+
auth: "admin"
|
|
26359
26812
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
26360
26813
|
deviceId: number(),
|
|
26361
26814
|
addonId: string(),
|
|
@@ -26372,6 +26825,13 @@ method(object({
|
|
|
26372
26825
|
}), object({ success: literal(true) }), {
|
|
26373
26826
|
kind: "mutation",
|
|
26374
26827
|
auth: "admin"
|
|
26828
|
+
}), method(object({
|
|
26829
|
+
deviceId: number(),
|
|
26830
|
+
addonId: string(),
|
|
26831
|
+
settings: record(string(), unknown()).nullable()
|
|
26832
|
+
}), object({ success: literal(true) }), {
|
|
26833
|
+
kind: "mutation",
|
|
26834
|
+
auth: "admin"
|
|
26375
26835
|
}), method(object({
|
|
26376
26836
|
deviceId: number(),
|
|
26377
26837
|
agentNodeId: string(),
|
|
@@ -26395,25 +26855,7 @@ method(object({
|
|
|
26395
26855
|
}), method(_void(), DiskReconcileJobSchema, {
|
|
26396
26856
|
kind: "mutation",
|
|
26397
26857
|
auth: "admin"
|
|
26398
|
-
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" })
|
|
26399
|
-
name: string(),
|
|
26400
|
-
description: string().optional(),
|
|
26401
|
-
config: CameraPipelineConfigSchema
|
|
26402
|
-
}), PipelineTemplateSchema, {
|
|
26403
|
-
kind: "mutation",
|
|
26404
|
-
auth: "admin"
|
|
26405
|
-
}), method(object({
|
|
26406
|
-
id: string(),
|
|
26407
|
-
name: string().optional(),
|
|
26408
|
-
description: string().optional(),
|
|
26409
|
-
config: CameraPipelineConfigSchema.optional()
|
|
26410
|
-
}), PipelineTemplateSchema, {
|
|
26411
|
-
kind: "mutation",
|
|
26412
|
-
auth: "admin"
|
|
26413
|
-
}), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
26414
|
-
kind: "mutation",
|
|
26415
|
-
auth: "admin"
|
|
26416
|
-
});
|
|
26858
|
+
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
|
|
26417
26859
|
/**
|
|
26418
26860
|
* Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
|
|
26419
26861
|
* `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
|
|
@@ -27003,7 +27445,19 @@ var SsoBridgeClaimsSchema = object({
|
|
|
27003
27445
|
* editing a descriptor must not retroactively extend or shorten a link the
|
|
27004
27446
|
* operator already consented to.
|
|
27005
27447
|
*/
|
|
27006
|
-
refreshTtl: union([number().int().positive(), literal("never")]).optional()
|
|
27448
|
+
refreshTtl: union([number().int().positive(), literal("never")]).optional(),
|
|
27449
|
+
/**
|
|
27450
|
+
* Opaque handle of a hub-side LINK intent (D782). Set by an OIDC callback
|
|
27451
|
+
* that was started from a signed-in user's "Link" button: the finish then
|
|
27452
|
+
* links this identity to the intent's user instead of signing anyone in.
|
|
27453
|
+
* The handle carries no user id — the hub resolves it, single-use.
|
|
27454
|
+
*/
|
|
27455
|
+
linkIntent: string().optional(),
|
|
27456
|
+
/**
|
|
27457
|
+
* Verified `iss` of the id_token behind an OIDC login bridge (D782). A
|
|
27458
|
+
* subject is unique only per issuer, so a link is bound to it.
|
|
27459
|
+
*/
|
|
27460
|
+
issuer: string().optional()
|
|
27007
27461
|
});
|
|
27008
27462
|
method(object({
|
|
27009
27463
|
claims: SsoBridgeClaimsSchema,
|
|
@@ -28662,8 +29116,6 @@ var WebrtcStreamChoiceSchema = object({
|
|
|
28662
29116
|
]).nullable(),
|
|
28663
29117
|
/** Input FPS from the camera (null for adaptive). */
|
|
28664
29118
|
inputFps: number().nullable(),
|
|
28665
|
-
/** Decoded FPS (null for adaptive). */
|
|
28666
|
-
decodeFps: number().nullable(),
|
|
28667
29119
|
/** Bitrate in kbps (null for adaptive). */
|
|
28668
29120
|
bitrateKbps: number().nullable()
|
|
28669
29121
|
});
|
|
@@ -28940,7 +29392,22 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
28940
29392
|
* field their hints were silently stripped by the schema and the
|
|
28941
29393
|
* adaptive ladder started blind on the client's display size.
|
|
28942
29394
|
*/
|
|
28943
|
-
hints: webrtcClientHintsSchema.optional()
|
|
29395
|
+
hints: webrtcClientHintsSchema.optional(),
|
|
29396
|
+
/**
|
|
29397
|
+
* Talk-back (D771): relay the PEER's audio to the device's speaker
|
|
29398
|
+
* through the `intercom` cap's push-talk triple. When `true` and the
|
|
29399
|
+
* offer lets the peer send audio, the answer's audio is `sendrecv`
|
|
29400
|
+
* and every inbound frame goes to `intercom.pushTalkAudio` for this
|
|
29401
|
+
* `deviceId`; absent/false answers `sendonly`, as for every viewer.
|
|
29402
|
+
*
|
|
29403
|
+
* TRUSTED-CALLER ONLY. Set by the Alexa export for an Echo on a camera
|
|
29404
|
+
* with `intercom`, when the linked user may control that camera. The
|
|
29405
|
+
* hub STRIPS it from every request-bound call (a browser), exactly as
|
|
29406
|
+
* it overwrites `relayOnly` — a viewer's talk permission is the
|
|
29407
|
+
* intercom cap's own surface (share tokens gate it there), and this
|
|
29408
|
+
* flag must not become a second door to the camera's speaker.
|
|
29409
|
+
*/
|
|
29410
|
+
talkback: boolean().optional()
|
|
28944
29411
|
}), object({
|
|
28945
29412
|
sessionId: string(),
|
|
28946
29413
|
sdpAnswer: string()
|
|
@@ -28995,6 +29462,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
28995
29462
|
*/
|
|
28996
29463
|
alive: boolean()
|
|
28997
29464
|
})), method(object({
|
|
29465
|
+
deviceId: number().int().nonnegative(),
|
|
29466
|
+
sessionId: string(),
|
|
29467
|
+
downlinkMbps: number().nonnegative()
|
|
29468
|
+
}), object({
|
|
29469
|
+
outcome: _enum(["switching", "held"]),
|
|
29470
|
+
tier: CamProfileSchema.nullable(),
|
|
29471
|
+
reason: string()
|
|
29472
|
+
}), { kind: "mutation" }), method(object({
|
|
28998
29473
|
deviceId: number().int().nonnegative(),
|
|
28999
29474
|
sessionId: string()
|
|
29000
29475
|
}), WebrtcSessionDebugSchema, { kind: "query" });
|
|
@@ -29234,6 +29709,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
|
|
|
29234
29709
|
var RestartAddonResultSchema = unknown();
|
|
29235
29710
|
var InstallPackageResultSchema = unknown();
|
|
29236
29711
|
var ReloadPackagesResultSchema = unknown();
|
|
29712
|
+
/**
|
|
29713
|
+
* What an uninstall did on ONE node.
|
|
29714
|
+
* - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
|
|
29715
|
+
* - `not-installed` — the node did not have it (nothing to do).
|
|
29716
|
+
* - `refused` — protected / bootstrap package; nothing touched.
|
|
29717
|
+
* - `failed` — attempted and did not complete; `error` says why.
|
|
29718
|
+
* - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
|
|
29719
|
+
* back-fill never returns the package, and the stale-addon sweep removes the
|
|
29720
|
+
* copy when the node registers again (only once the hub no longer has it).
|
|
29721
|
+
*/
|
|
29722
|
+
var UninstallNodeOutcomeSchema = _enum([
|
|
29723
|
+
"uninstalled",
|
|
29724
|
+
"not-installed",
|
|
29725
|
+
"refused",
|
|
29726
|
+
"failed",
|
|
29727
|
+
"pending-reconnect"
|
|
29728
|
+
]);
|
|
29729
|
+
var UninstallNodeResultSchema = object({
|
|
29730
|
+
nodeId: string(),
|
|
29731
|
+
outcome: UninstallNodeOutcomeSchema,
|
|
29732
|
+
error: string().optional(),
|
|
29733
|
+
addonIds: array(string()).readonly(),
|
|
29734
|
+
runnersStopped: array(string()).readonly(),
|
|
29735
|
+
warnings: array(string()).readonly()
|
|
29736
|
+
});
|
|
29737
|
+
var UninstallPackageResultSchema = object({
|
|
29738
|
+
/** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
|
|
29739
|
+
success: boolean(),
|
|
29740
|
+
packageName: string(),
|
|
29741
|
+
results: array(UninstallNodeResultSchema).readonly()
|
|
29742
|
+
});
|
|
29743
|
+
/**
|
|
29744
|
+
* `unreachable` lists online agents whose status read FAILED — absence from
|
|
29745
|
+
* `installations` is only "not installed" for a node that answered (D315).
|
|
29746
|
+
*/
|
|
29747
|
+
var PackageInstallationsSchema = object({
|
|
29748
|
+
installations: array(object({
|
|
29749
|
+
packageName: string(),
|
|
29750
|
+
nodeId: string(),
|
|
29751
|
+
nodeName: string(),
|
|
29752
|
+
isHub: boolean(),
|
|
29753
|
+
isOnline: boolean(),
|
|
29754
|
+
version: string().nullable(),
|
|
29755
|
+
addonIds: array(string()).readonly(),
|
|
29756
|
+
source: _enum(["live", "recorded"]),
|
|
29757
|
+
/** The hub installs this package too. `false` on an agent row = an orphan. */
|
|
29758
|
+
onHub: boolean()
|
|
29759
|
+
})).readonly(),
|
|
29760
|
+
unreachable: array(object({
|
|
29761
|
+
nodeId: string(),
|
|
29762
|
+
error: string()
|
|
29763
|
+
})).readonly()
|
|
29764
|
+
});
|
|
29237
29765
|
var BulkUpdateItemStatusSchema = _enum([
|
|
29238
29766
|
"queued",
|
|
29239
29767
|
"updating",
|
|
@@ -29316,10 +29844,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
29316
29844
|
}), method(object({ packageName: string() }), InstallPackageResultSchema, {
|
|
29317
29845
|
kind: "mutation",
|
|
29318
29846
|
auth: "admin"
|
|
29319
|
-
}), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
|
|
29847
|
+
}), method(_void(), boolean()), method(_void(), array(unknown()).readonly()), method(object({
|
|
29848
|
+
packageName: string().min(1),
|
|
29849
|
+
nodeId: string().optional(),
|
|
29850
|
+
everywhere: boolean().optional()
|
|
29851
|
+
}), UninstallPackageResultSchema, {
|
|
29320
29852
|
kind: "mutation",
|
|
29321
29853
|
auth: "admin"
|
|
29322
|
-
}), method(_void(), ReloadPackagesResultSchema, {
|
|
29854
|
+
}), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
|
|
29323
29855
|
kind: "mutation",
|
|
29324
29856
|
auth: "admin"
|
|
29325
29857
|
}), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
|
|
@@ -32814,7 +33346,8 @@ var ConnectionEndpointSchema = object({
|
|
|
32814
33346
|
"lan-ipv6",
|
|
32815
33347
|
"public",
|
|
32816
33348
|
"loopback",
|
|
32817
|
-
"app-link"
|
|
33349
|
+
"app-link",
|
|
33350
|
+
"custom"
|
|
32818
33351
|
]),
|
|
32819
33352
|
/**
|
|
32820
33353
|
* Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
|
|
@@ -32883,7 +33416,7 @@ var GetConnectionEndpointsResultSchema = object({
|
|
|
32883
33416
|
localPort: AdvertisedLocalPortSchema
|
|
32884
33417
|
});
|
|
32885
33418
|
/**
|
|
32886
|
-
* The address flagged for notification
|
|
33419
|
+
* The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
|
|
32887
33420
|
* since D709 is the CamStack app link; `resolved` reports the effective value,
|
|
32888
33421
|
* so the UI can show it either way.
|
|
32889
33422
|
*/
|
|
@@ -32916,6 +33449,72 @@ var ViewerEndpointsSchema = object({
|
|
|
32916
33449
|
/** What the ranking currently resolves to (may be empty if nothing is up). */
|
|
32917
33450
|
resolved: array(string()).readonly()
|
|
32918
33451
|
});
|
|
33452
|
+
/**
|
|
33453
|
+
* DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
|
|
33454
|
+
* for addons built against it): `cluster` is the `internal` role, `browser`
|
|
33455
|
+
* the `publicEndpoint` role; `override` is the flagged address.
|
|
33456
|
+
*/
|
|
33457
|
+
var HubAddressSnapshotSchema = object({
|
|
33458
|
+
override: string().nullable(),
|
|
33459
|
+
resolved: string().nullable(),
|
|
33460
|
+
source: _enum([
|
|
33461
|
+
"override",
|
|
33462
|
+
"auto",
|
|
33463
|
+
"none"
|
|
33464
|
+
])
|
|
33465
|
+
});
|
|
33466
|
+
var HubAddressesSchema = object({
|
|
33467
|
+
cluster: HubAddressSnapshotSchema,
|
|
33468
|
+
browser: HubAddressSnapshotSchema
|
|
33469
|
+
});
|
|
33470
|
+
/**
|
|
33471
|
+
* What an address is used for (`hub-address.ts`, D734). `appConnections` is
|
|
33472
|
+
* many-valued; `notificationTaps`, `publicEndpoint` and `internal` are carried
|
|
33473
|
+
* by at most one address.
|
|
33474
|
+
*/
|
|
33475
|
+
var HubAddressRoleSchema = _enum(HUB_ADDRESS_ROLES);
|
|
33476
|
+
var RoleSourceSchema = _enum([
|
|
33477
|
+
"flagged",
|
|
33478
|
+
"auto",
|
|
33479
|
+
"none"
|
|
33480
|
+
]);
|
|
33481
|
+
/** One single-valued role: the flagged address, the one in use, and why. */
|
|
33482
|
+
var HubAddressRoleResolutionSchema = object({
|
|
33483
|
+
/** The address carrying the flag, or null = automatic. */
|
|
33484
|
+
flagged: string().nullable(),
|
|
33485
|
+
/** The address in use, or null when nothing qualifies (never loopback). */
|
|
33486
|
+
resolved: string().nullable(),
|
|
33487
|
+
source: RoleSourceSchema
|
|
33488
|
+
});
|
|
33489
|
+
var HubAppConnectionsResolutionSchema = object({
|
|
33490
|
+
/** The addresses flagged `appConnections`, or empty = automatic. */
|
|
33491
|
+
flagged: array(string()).readonly(),
|
|
33492
|
+
/** What the apps race right now. */
|
|
33493
|
+
resolved: array(string()).readonly(),
|
|
33494
|
+
source: RoleSourceSchema
|
|
33495
|
+
});
|
|
33496
|
+
var HubAddressBookSchema = object({
|
|
33497
|
+
rows: array(ConnectionEndpointSchema.extend({
|
|
33498
|
+
/** In the hub's detected palette right now. */
|
|
33499
|
+
detected: boolean(),
|
|
33500
|
+
/** Entered by the operator (removable). */
|
|
33501
|
+
custom: boolean(),
|
|
33502
|
+
/** The roles explicitly flagged on this address. */
|
|
33503
|
+
flags: array(HubAddressRoleSchema).readonly(),
|
|
33504
|
+
/** The roles this address serves right now — flagged or automatic. */
|
|
33505
|
+
inUse: array(HubAddressRoleSchema).readonly(),
|
|
33506
|
+
/** The roles this address may be flagged with. */
|
|
33507
|
+
eligible: array(HubAddressRoleSchema).readonly()
|
|
33508
|
+
})).readonly(),
|
|
33509
|
+
roles: object({
|
|
33510
|
+
appConnections: HubAppConnectionsResolutionSchema,
|
|
33511
|
+
notificationTaps: HubAddressRoleResolutionSchema,
|
|
33512
|
+
internal: HubAddressRoleResolutionSchema,
|
|
33513
|
+
publicEndpoint: HubAddressRoleResolutionSchema
|
|
33514
|
+
}),
|
|
33515
|
+
/** The `hub=` an app link carries (D709), or null. */
|
|
33516
|
+
appLinkHub: string().nullable()
|
|
33517
|
+
});
|
|
32919
33518
|
var AllowedAddressesSchema = object({
|
|
32920
33519
|
/**
|
|
32921
33520
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -32959,10 +33558,27 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
32959
33558
|
* tunnel always emits `https://` regardless. */
|
|
32960
33559
|
scheme: _enum(["http", "https"]).optional(),
|
|
32961
33560
|
/** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
|
|
32962
|
-
* an address notification
|
|
33561
|
+
* an address notification taps can be flagged with, not a hub
|
|
32963
33562
|
* route. Default `false`: racers and rankers never see it. */
|
|
32964
33563
|
includeAppLink: boolean().optional()
|
|
32965
|
-
}), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }), method(
|
|
33564
|
+
}), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }), method(object({ scheme: _enum(["http", "https"]).optional() }).optional(), HubAddressBookSchema), method(object({
|
|
33565
|
+
baseUrl: string(),
|
|
33566
|
+
label: string().max(80)
|
|
33567
|
+
}), HubAddressBookSchema, {
|
|
33568
|
+
kind: "mutation",
|
|
33569
|
+
auth: "admin"
|
|
33570
|
+
}), method(object({ baseUrl: string() }), HubAddressBookSchema, {
|
|
33571
|
+
kind: "mutation",
|
|
33572
|
+
auth: "admin"
|
|
33573
|
+
}), method(object({
|
|
33574
|
+
role: HubAddressRoleSchema,
|
|
33575
|
+
baseUrl: string().nullable(),
|
|
33576
|
+
enabled: boolean(),
|
|
33577
|
+
acceptInsecureHttp: boolean().optional()
|
|
33578
|
+
}), HubAddressBookSchema, {
|
|
33579
|
+
kind: "mutation",
|
|
33580
|
+
auth: "admin"
|
|
33581
|
+
}), method(_void(), HubAddressesSchema), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" }), method(_void(), TlsStatusSchema), method(object({ reason: string().optional() }), TlsStatusSchema, {
|
|
32966
33582
|
kind: "mutation",
|
|
32967
33583
|
auth: "admin"
|
|
32968
33584
|
}), method(object({
|
|
@@ -33420,7 +34036,8 @@ var MotionStatusSchema = object({
|
|
|
33420
34036
|
* writes this slice (not even a boot seed), and neither does the runner's
|
|
33421
34037
|
* phase machine: its phase is "a session is attached" for every on-motion
|
|
33422
34038
|
* session, not motion, and it now has its own `DetectionPhaseTransition`.
|
|
33423
|
-
* A provider's `isDetected`
|
|
34039
|
+
* A provider's `isDetected` and `getStatus` answer from the hub's slice
|
|
34040
|
+
* (`hubMotionNativeProvider`).
|
|
33424
34041
|
* - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
|
|
33425
34042
|
* imports) — the provider pushes both edges itself, from the upstream
|
|
33426
34043
|
* system's own state change. That is the sensor's own fact.
|
|
@@ -39152,6 +39769,32 @@ var TotpStatusSchema = object({
|
|
|
39152
39769
|
/** Null when no row exists OR the row is still pending confirmation. */
|
|
39153
39770
|
confirmedAt: number().nullable()
|
|
39154
39771
|
});
|
|
39772
|
+
/**
|
|
39773
|
+
* user-management — singleton capability for user accounts, API keys,
|
|
39774
|
+
* and scoped tokens.
|
|
39775
|
+
*
|
|
39776
|
+
* v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
|
|
39777
|
+
* — the subset check on `setUserScopes` / `createScopedToken` is moot
|
|
39778
|
+
* because non-admins never reach these. If/when we open non-admin
|
|
39779
|
+
* delegation, structural caller-scope subset check goes inside the
|
|
39780
|
+
* provider.
|
|
39781
|
+
*/
|
|
39782
|
+
var ExternalIdentitySchema = object({
|
|
39783
|
+
/** Login-method id of the provider instance, e.g. `auth-oidc/authentik`. */
|
|
39784
|
+
provider: string(),
|
|
39785
|
+
/** The IdP's stable subject (`sub`) for this account. */
|
|
39786
|
+
subject: string(),
|
|
39787
|
+
/** The verified `iss` of the IdP the identity was linked under — `sub` is unique only per issuer. */
|
|
39788
|
+
issuer: string(),
|
|
39789
|
+
userId: string(),
|
|
39790
|
+
/** What the IdP called the account at link time (username / email) — display only. */
|
|
39791
|
+
label: string().optional(),
|
|
39792
|
+
linkedAt: number()
|
|
39793
|
+
});
|
|
39794
|
+
var ExternalIdentityKeySchema = object({
|
|
39795
|
+
provider: string().min(1),
|
|
39796
|
+
subject: string().min(1)
|
|
39797
|
+
});
|
|
39155
39798
|
method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserInputSchema, UserSummarySchema, {
|
|
39156
39799
|
kind: "mutation",
|
|
39157
39800
|
auth: "admin",
|
|
@@ -39265,7 +39908,22 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
39265
39908
|
userId: string(),
|
|
39266
39909
|
username: string(),
|
|
39267
39910
|
scopes: array(TokenScopeSchema)
|
|
39268
|
-
}).nullable(), { access: "view" }), method(
|
|
39911
|
+
}).nullable(), { access: "view" }), method(object({ userId: string() }), array(ExternalIdentitySchema), { auth: "admin" }), method(ExternalIdentityKeySchema, object({
|
|
39912
|
+
userId: string(),
|
|
39913
|
+
issuer: string()
|
|
39914
|
+
}).nullable(), { auth: "admin" }), method(ExternalIdentityKeySchema.extend({
|
|
39915
|
+
userId: string(),
|
|
39916
|
+
issuer: string().min(1),
|
|
39917
|
+
label: string().optional()
|
|
39918
|
+
}), object({ success: literal(true) }), {
|
|
39919
|
+
kind: "mutation",
|
|
39920
|
+
auth: "admin",
|
|
39921
|
+
access: "create"
|
|
39922
|
+
}), method(ExternalIdentityKeySchema.extend({ userId: string() }), object({ success: boolean() }), {
|
|
39923
|
+
kind: "mutation",
|
|
39924
|
+
auth: "admin",
|
|
39925
|
+
access: "delete"
|
|
39926
|
+
}), method(_void(), array(OauthSessionSummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: boolean() }), {
|
|
39269
39927
|
kind: "mutation",
|
|
39270
39928
|
auth: "admin",
|
|
39271
39929
|
access: "delete"
|
|
@@ -39967,6 +40625,16 @@ var zoneRulesCapability = {
|
|
|
39967
40625
|
durability: "restored"
|
|
39968
40626
|
};
|
|
39969
40627
|
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
40628
|
+
Object.freeze({
|
|
40629
|
+
person: .5,
|
|
40630
|
+
vehicle: .5,
|
|
40631
|
+
animal: .5
|
|
40632
|
+
});
|
|
40633
|
+
Object.freeze({
|
|
40634
|
+
person: .65,
|
|
40635
|
+
vehicle: .65,
|
|
40636
|
+
animal: .65
|
|
40637
|
+
});
|
|
39970
40638
|
/**
|
|
39971
40639
|
* Accessory device helpers — shared across drivers.
|
|
39972
40640
|
*
|
|
@@ -41665,6 +42333,12 @@ Object.freeze({
|
|
|
41665
42333
|
addonId: null,
|
|
41666
42334
|
access: "view"
|
|
41667
42335
|
},
|
|
42336
|
+
"addons.listInstallations": {
|
|
42337
|
+
capName: "addons",
|
|
42338
|
+
capScope: "system",
|
|
42339
|
+
addonId: null,
|
|
42340
|
+
access: "view"
|
|
42341
|
+
},
|
|
41668
42342
|
"addons.listJobs": {
|
|
41669
42343
|
capName: "addons",
|
|
41670
42344
|
capScope: "system",
|
|
@@ -42847,90 +43521,18 @@ Object.freeze({
|
|
|
42847
43521
|
addonId: null,
|
|
42848
43522
|
access: "create"
|
|
42849
43523
|
},
|
|
42850
|
-
"decoder.createSession": {
|
|
42851
|
-
capName: "decoder",
|
|
42852
|
-
capScope: "system",
|
|
42853
|
-
addonId: null,
|
|
42854
|
-
access: "view"
|
|
42855
|
-
},
|
|
42856
|
-
"decoder.destroySession": {
|
|
42857
|
-
capName: "decoder",
|
|
42858
|
-
capScope: "system",
|
|
42859
|
-
addonId: null,
|
|
42860
|
-
access: "delete"
|
|
42861
|
-
},
|
|
42862
|
-
"decoder.getFrame": {
|
|
42863
|
-
capName: "decoder",
|
|
42864
|
-
capScope: "system",
|
|
42865
|
-
addonId: null,
|
|
42866
|
-
access: "view"
|
|
42867
|
-
},
|
|
42868
43524
|
"decoder.getInfo": {
|
|
42869
43525
|
capName: "decoder",
|
|
42870
43526
|
capScope: "system",
|
|
42871
43527
|
addonId: null,
|
|
42872
43528
|
access: "view"
|
|
42873
43529
|
},
|
|
42874
|
-
"decoder.getShmStats": {
|
|
42875
|
-
capName: "decoder",
|
|
42876
|
-
capScope: "system",
|
|
42877
|
-
addonId: null,
|
|
42878
|
-
access: "view"
|
|
42879
|
-
},
|
|
42880
|
-
"decoder.getStats": {
|
|
42881
|
-
capName: "decoder",
|
|
42882
|
-
capScope: "system",
|
|
42883
|
-
addonId: null,
|
|
42884
|
-
access: "view"
|
|
42885
|
-
},
|
|
42886
|
-
"decoder.listActiveSessions": {
|
|
42887
|
-
capName: "decoder",
|
|
42888
|
-
capScope: "system",
|
|
42889
|
-
addonId: null,
|
|
42890
|
-
access: "view"
|
|
42891
|
-
},
|
|
42892
|
-
"decoder.openStream": {
|
|
42893
|
-
capName: "decoder",
|
|
42894
|
-
capScope: "system",
|
|
42895
|
-
addonId: null,
|
|
42896
|
-
access: "view"
|
|
42897
|
-
},
|
|
42898
|
-
"decoder.pullFrames": {
|
|
42899
|
-
capName: "decoder",
|
|
42900
|
-
capScope: "system",
|
|
42901
|
-
addonId: null,
|
|
42902
|
-
access: "view"
|
|
42903
|
-
},
|
|
42904
|
-
"decoder.pullHandles": {
|
|
42905
|
-
capName: "decoder",
|
|
42906
|
-
capScope: "system",
|
|
42907
|
-
addonId: null,
|
|
42908
|
-
access: "view"
|
|
42909
|
-
},
|
|
42910
|
-
"decoder.pushPacket": {
|
|
42911
|
-
capName: "decoder",
|
|
42912
|
-
capScope: "system",
|
|
42913
|
-
addonId: null,
|
|
42914
|
-
access: "view"
|
|
42915
|
-
},
|
|
42916
43530
|
"decoder.reprobeHwaccel": {
|
|
42917
43531
|
capName: "decoder",
|
|
42918
43532
|
capScope: "system",
|
|
42919
43533
|
addonId: null,
|
|
42920
43534
|
access: "create"
|
|
42921
43535
|
},
|
|
42922
|
-
"decoder.supportsCodec": {
|
|
42923
|
-
capName: "decoder",
|
|
42924
|
-
capScope: "system",
|
|
42925
|
-
addonId: null,
|
|
42926
|
-
access: "view"
|
|
42927
|
-
},
|
|
42928
|
-
"decoder.updateConfig": {
|
|
42929
|
-
capName: "decoder",
|
|
42930
|
-
capScope: "system",
|
|
42931
|
-
addonId: null,
|
|
42932
|
-
access: "view"
|
|
42933
|
-
},
|
|
42934
43536
|
"detectionPipeline.applyDeviceSettingsPatch": {
|
|
42935
43537
|
capName: "detection-pipeline",
|
|
42936
43538
|
capScope: "device",
|
|
@@ -44419,12 +45021,24 @@ Object.freeze({
|
|
|
44419
45021
|
addonId: null,
|
|
44420
45022
|
access: "view"
|
|
44421
45023
|
},
|
|
45024
|
+
"localNetwork.addCustomAddress": {
|
|
45025
|
+
capName: "local-network",
|
|
45026
|
+
capScope: "system",
|
|
45027
|
+
addonId: null,
|
|
45028
|
+
access: "create"
|
|
45029
|
+
},
|
|
44422
45030
|
"localNetwork.downloadCa": {
|
|
44423
45031
|
capName: "local-network",
|
|
44424
45032
|
capScope: "system",
|
|
44425
45033
|
addonId: null,
|
|
44426
45034
|
access: "view"
|
|
44427
45035
|
},
|
|
45036
|
+
"localNetwork.getAddresses": {
|
|
45037
|
+
capName: "local-network",
|
|
45038
|
+
capScope: "system",
|
|
45039
|
+
addonId: null,
|
|
45040
|
+
access: "view"
|
|
45041
|
+
},
|
|
44428
45042
|
"localNetwork.getAllowedAddresses": {
|
|
44429
45043
|
capName: "local-network",
|
|
44430
45044
|
capScope: "system",
|
|
@@ -44437,6 +45051,12 @@ Object.freeze({
|
|
|
44437
45051
|
addonId: null,
|
|
44438
45052
|
access: "view"
|
|
44439
45053
|
},
|
|
45054
|
+
"localNetwork.getHubAddresses": {
|
|
45055
|
+
capName: "local-network",
|
|
45056
|
+
capScope: "system",
|
|
45057
|
+
addonId: null,
|
|
45058
|
+
access: "view"
|
|
45059
|
+
},
|
|
44440
45060
|
"localNetwork.getNotificationEndpoint": {
|
|
44441
45061
|
capName: "local-network",
|
|
44442
45062
|
capScope: "system",
|
|
@@ -44473,6 +45093,12 @@ Object.freeze({
|
|
|
44473
45093
|
addonId: null,
|
|
44474
45094
|
access: "create"
|
|
44475
45095
|
},
|
|
45096
|
+
"localNetwork.removeCustomAddress": {
|
|
45097
|
+
capName: "local-network",
|
|
45098
|
+
capScope: "system",
|
|
45099
|
+
addonId: null,
|
|
45100
|
+
access: "delete"
|
|
45101
|
+
},
|
|
44476
45102
|
"localNetwork.resetAllowlistToBestMatch": {
|
|
44477
45103
|
capName: "local-network",
|
|
44478
45104
|
capScope: "system",
|
|
@@ -44485,6 +45111,12 @@ Object.freeze({
|
|
|
44485
45111
|
addonId: null,
|
|
44486
45112
|
access: "create"
|
|
44487
45113
|
},
|
|
45114
|
+
"localNetwork.setAddressRole": {
|
|
45115
|
+
capName: "local-network",
|
|
45116
|
+
capScope: "system",
|
|
45117
|
+
addonId: null,
|
|
45118
|
+
access: "create"
|
|
45119
|
+
},
|
|
44488
45120
|
"localNetwork.setAllowedAddresses": {
|
|
44489
45121
|
capName: "local-network",
|
|
44490
45122
|
capScope: "system",
|
|
@@ -45931,6 +46563,12 @@ Object.freeze({
|
|
|
45931
46563
|
addonId: null,
|
|
45932
46564
|
access: "create"
|
|
45933
46565
|
},
|
|
46566
|
+
"pipelineAnalytics.setRetrainFrameComplete": {
|
|
46567
|
+
capName: "pipeline-analytics",
|
|
46568
|
+
capScope: "device",
|
|
46569
|
+
addonId: null,
|
|
46570
|
+
access: "create"
|
|
46571
|
+
},
|
|
45934
46572
|
"pipelineAnalytics.setTrackFlags": {
|
|
45935
46573
|
capName: "pipeline-analytics",
|
|
45936
46574
|
capScope: "device",
|
|
@@ -45967,6 +46605,12 @@ Object.freeze({
|
|
|
45967
46605
|
addonId: null,
|
|
45968
46606
|
access: "delete"
|
|
45969
46607
|
},
|
|
46608
|
+
"pipelineAnalytics.writeRetrainArchive": {
|
|
46609
|
+
capName: "pipeline-analytics",
|
|
46610
|
+
capScope: "device",
|
|
46611
|
+
addonId: null,
|
|
46612
|
+
access: "create"
|
|
46613
|
+
},
|
|
45970
46614
|
"pipelineExecutor.cacheFrameInPool": {
|
|
45971
46615
|
capName: "pipeline-executor",
|
|
45972
46616
|
capScope: "system",
|
|
@@ -45979,13 +46623,13 @@ Object.freeze({
|
|
|
45979
46623
|
addonId: null,
|
|
45980
46624
|
access: "delete"
|
|
45981
46625
|
},
|
|
45982
|
-
"pipelineExecutor.
|
|
46626
|
+
"pipelineExecutor.clearModelBoundDeviceOverrides": {
|
|
45983
46627
|
capName: "pipeline-executor",
|
|
45984
46628
|
capScope: "system",
|
|
45985
46629
|
addonId: null,
|
|
45986
46630
|
access: "delete"
|
|
45987
46631
|
},
|
|
45988
|
-
"pipelineExecutor.
|
|
46632
|
+
"pipelineExecutor.deleteModel": {
|
|
45989
46633
|
capName: "pipeline-executor",
|
|
45990
46634
|
capScope: "system",
|
|
45991
46635
|
addonId: null,
|
|
@@ -46129,12 +46773,6 @@ Object.freeze({
|
|
|
46129
46773
|
addonId: null,
|
|
46130
46774
|
access: "view"
|
|
46131
46775
|
},
|
|
46132
|
-
"pipelineExecutor.listTemplates": {
|
|
46133
|
-
capName: "pipeline-executor",
|
|
46134
|
-
capScope: "system",
|
|
46135
|
-
addonId: null,
|
|
46136
|
-
access: "view"
|
|
46137
|
-
},
|
|
46138
46776
|
"pipelineExecutor.rearmInferenceDevice": {
|
|
46139
46777
|
capName: "pipeline-executor",
|
|
46140
46778
|
capScope: "system",
|
|
@@ -46159,12 +46797,6 @@ Object.freeze({
|
|
|
46159
46797
|
addonId: null,
|
|
46160
46798
|
access: "create"
|
|
46161
46799
|
},
|
|
46162
|
-
"pipelineExecutor.saveTemplate": {
|
|
46163
|
-
capName: "pipeline-executor",
|
|
46164
|
-
capScope: "system",
|
|
46165
|
-
addonId: null,
|
|
46166
|
-
access: "create"
|
|
46167
|
-
},
|
|
46168
46800
|
"pipelineExecutor.setVideoPipelineSteps": {
|
|
46169
46801
|
capName: "pipeline-executor",
|
|
46170
46802
|
capScope: "system",
|
|
@@ -46183,41 +46815,35 @@ Object.freeze({
|
|
|
46183
46815
|
addonId: null,
|
|
46184
46816
|
access: "create"
|
|
46185
46817
|
},
|
|
46186
|
-
"pipelineExecutor.updateTemplate": {
|
|
46187
|
-
capName: "pipeline-executor",
|
|
46188
|
-
capScope: "system",
|
|
46189
|
-
addonId: null,
|
|
46190
|
-
access: "create"
|
|
46191
|
-
},
|
|
46192
46818
|
"pipelineExecutor.validatePipeline": {
|
|
46193
46819
|
capName: "pipeline-executor",
|
|
46194
46820
|
capScope: "system",
|
|
46195
46821
|
addonId: null,
|
|
46196
46822
|
access: "view"
|
|
46197
46823
|
},
|
|
46198
|
-
"pipelineOrchestrator.
|
|
46824
|
+
"pipelineOrchestrator.applyAutoTune": {
|
|
46199
46825
|
capName: "pipeline-orchestrator",
|
|
46200
46826
|
capScope: "system",
|
|
46201
46827
|
addonId: null,
|
|
46202
46828
|
access: "create"
|
|
46203
46829
|
},
|
|
46204
|
-
"pipelineOrchestrator.
|
|
46830
|
+
"pipelineOrchestrator.applyDeviceSettingsPatch": {
|
|
46205
46831
|
capName: "pipeline-orchestrator",
|
|
46206
46832
|
capScope: "system",
|
|
46207
46833
|
addonId: null,
|
|
46208
46834
|
access: "create"
|
|
46209
46835
|
},
|
|
46210
|
-
"pipelineOrchestrator.
|
|
46836
|
+
"pipelineOrchestrator.assignAudio": {
|
|
46211
46837
|
capName: "pipeline-orchestrator",
|
|
46212
46838
|
capScope: "system",
|
|
46213
46839
|
addonId: null,
|
|
46214
46840
|
access: "create"
|
|
46215
46841
|
},
|
|
46216
|
-
"pipelineOrchestrator.
|
|
46842
|
+
"pipelineOrchestrator.assignPipeline": {
|
|
46217
46843
|
capName: "pipeline-orchestrator",
|
|
46218
46844
|
capScope: "system",
|
|
46219
46845
|
addonId: null,
|
|
46220
|
-
access: "
|
|
46846
|
+
access: "create"
|
|
46221
46847
|
},
|
|
46222
46848
|
"pipelineOrchestrator.getAgentLoad": {
|
|
46223
46849
|
capName: "pipeline-orchestrator",
|
|
@@ -46309,6 +46935,12 @@ Object.freeze({
|
|
|
46309
46935
|
addonId: null,
|
|
46310
46936
|
access: "view"
|
|
46311
46937
|
},
|
|
46938
|
+
"pipelineOrchestrator.getEffectiveShares": {
|
|
46939
|
+
capName: "pipeline-orchestrator",
|
|
46940
|
+
capScope: "system",
|
|
46941
|
+
addonId: null,
|
|
46942
|
+
access: "view"
|
|
46943
|
+
},
|
|
46312
46944
|
"pipelineOrchestrator.getGlobalMetrics": {
|
|
46313
46945
|
capName: "pipeline-orchestrator",
|
|
46314
46946
|
capScope: "system",
|
|
@@ -46345,19 +46977,19 @@ Object.freeze({
|
|
|
46345
46977
|
addonId: null,
|
|
46346
46978
|
access: "view"
|
|
46347
46979
|
},
|
|
46348
|
-
"pipelineOrchestrator.
|
|
46980
|
+
"pipelineOrchestrator.getPlacementStats": {
|
|
46349
46981
|
capName: "pipeline-orchestrator",
|
|
46350
46982
|
capScope: "system",
|
|
46351
46983
|
addonId: null,
|
|
46352
46984
|
access: "view"
|
|
46353
46985
|
},
|
|
46354
|
-
"pipelineOrchestrator.
|
|
46986
|
+
"pipelineOrchestrator.getReconcileFromDiskStatus": {
|
|
46355
46987
|
capName: "pipeline-orchestrator",
|
|
46356
46988
|
capScope: "system",
|
|
46357
46989
|
addonId: null,
|
|
46358
46990
|
access: "view"
|
|
46359
46991
|
},
|
|
46360
|
-
"pipelineOrchestrator.
|
|
46992
|
+
"pipelineOrchestrator.listAgentSettings": {
|
|
46361
46993
|
capName: "pipeline-orchestrator",
|
|
46362
46994
|
capScope: "system",
|
|
46363
46995
|
addonId: null,
|
|
@@ -46369,6 +47001,12 @@ Object.freeze({
|
|
|
46369
47001
|
addonId: null,
|
|
46370
47002
|
access: "create"
|
|
46371
47003
|
},
|
|
47004
|
+
"pipelineOrchestrator.planAutoTune": {
|
|
47005
|
+
capName: "pipeline-orchestrator",
|
|
47006
|
+
capScope: "system",
|
|
47007
|
+
addonId: null,
|
|
47008
|
+
access: "view"
|
|
47009
|
+
},
|
|
46372
47010
|
"pipelineOrchestrator.rebalance": {
|
|
46373
47011
|
capName: "pipeline-orchestrator",
|
|
46374
47012
|
capScope: "system",
|
|
@@ -46411,12 +47049,6 @@ Object.freeze({
|
|
|
46411
47049
|
addonId: null,
|
|
46412
47050
|
access: "create"
|
|
46413
47051
|
},
|
|
46414
|
-
"pipelineOrchestrator.saveTemplate": {
|
|
46415
|
-
capName: "pipeline-orchestrator",
|
|
46416
|
-
capScope: "system",
|
|
46417
|
-
addonId: null,
|
|
46418
|
-
access: "create"
|
|
46419
|
-
},
|
|
46420
47052
|
"pipelineOrchestrator.setAgentCapabilities": {
|
|
46421
47053
|
capName: "pipeline-orchestrator",
|
|
46422
47054
|
capScope: "system",
|
|
@@ -46429,12 +47061,6 @@ Object.freeze({
|
|
|
46429
47061
|
addonId: null,
|
|
46430
47062
|
access: "create"
|
|
46431
47063
|
},
|
|
46432
|
-
"pipelineOrchestrator.setAgentDetectWeight": {
|
|
46433
|
-
capName: "pipeline-orchestrator",
|
|
46434
|
-
capScope: "system",
|
|
46435
|
-
addonId: null,
|
|
46436
|
-
access: "create"
|
|
46437
|
-
},
|
|
46438
47064
|
"pipelineOrchestrator.setAgentInferenceDevices": {
|
|
46439
47065
|
capName: "pipeline-orchestrator",
|
|
46440
47066
|
capScope: "system",
|
|
@@ -46471,6 +47097,12 @@ Object.freeze({
|
|
|
46471
47097
|
addonId: null,
|
|
46472
47098
|
access: "create"
|
|
46473
47099
|
},
|
|
47100
|
+
"pipelineOrchestrator.setCameraStepSettings": {
|
|
47101
|
+
capName: "pipeline-orchestrator",
|
|
47102
|
+
capScope: "system",
|
|
47103
|
+
addonId: null,
|
|
47104
|
+
access: "create"
|
|
47105
|
+
},
|
|
46474
47106
|
"pipelineOrchestrator.setCameraStepToggle": {
|
|
46475
47107
|
capName: "pipeline-orchestrator",
|
|
46476
47108
|
capScope: "system",
|
|
@@ -46489,25 +47121,37 @@ Object.freeze({
|
|
|
46489
47121
|
addonId: null,
|
|
46490
47122
|
access: "create"
|
|
46491
47123
|
},
|
|
47124
|
+
"pipelineOrchestrator.setLoadBalancingShares": {
|
|
47125
|
+
capName: "pipeline-orchestrator",
|
|
47126
|
+
capScope: "system",
|
|
47127
|
+
addonId: null,
|
|
47128
|
+
access: "create"
|
|
47129
|
+
},
|
|
46492
47130
|
"pipelineOrchestrator.setPipelineDevicePin": {
|
|
46493
47131
|
capName: "pipeline-orchestrator",
|
|
46494
47132
|
capScope: "system",
|
|
46495
47133
|
addonId: null,
|
|
46496
47134
|
access: "create"
|
|
46497
47135
|
},
|
|
46498
|
-
"pipelineOrchestrator.
|
|
47136
|
+
"pipelineOrchestrator.setShareSource": {
|
|
46499
47137
|
capName: "pipeline-orchestrator",
|
|
46500
47138
|
capScope: "system",
|
|
46501
47139
|
addonId: null,
|
|
46502
47140
|
access: "create"
|
|
46503
47141
|
},
|
|
46504
|
-
"pipelineOrchestrator.
|
|
47142
|
+
"pipelineOrchestrator.suggestShares": {
|
|
47143
|
+
capName: "pipeline-orchestrator",
|
|
47144
|
+
capScope: "system",
|
|
47145
|
+
addonId: null,
|
|
47146
|
+
access: "view"
|
|
47147
|
+
},
|
|
47148
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
46505
47149
|
capName: "pipeline-orchestrator",
|
|
46506
47150
|
capScope: "system",
|
|
46507
47151
|
addonId: null,
|
|
46508
47152
|
access: "create"
|
|
46509
47153
|
},
|
|
46510
|
-
"pipelineOrchestrator.
|
|
47154
|
+
"pipelineOrchestrator.unassignPipeline": {
|
|
46511
47155
|
capName: "pipeline-orchestrator",
|
|
46512
47156
|
capScope: "system",
|
|
46513
47157
|
addonId: null,
|
|
@@ -47947,12 +48591,6 @@ Object.freeze({
|
|
|
47947
48591
|
addonId: null,
|
|
47948
48592
|
access: "view"
|
|
47949
48593
|
},
|
|
47950
|
-
"streamBroker.pullFrameHandles": {
|
|
47951
|
-
capName: "stream-broker",
|
|
47952
|
-
capScope: "system",
|
|
47953
|
-
addonId: null,
|
|
47954
|
-
access: "view"
|
|
47955
|
-
},
|
|
47956
48594
|
"streamBroker.regenerateRtspToken": {
|
|
47957
48595
|
capName: "stream-broker",
|
|
47958
48596
|
capScope: "system",
|
|
@@ -48019,12 +48657,6 @@ Object.freeze({
|
|
|
48019
48657
|
addonId: null,
|
|
48020
48658
|
access: "create"
|
|
48021
48659
|
},
|
|
48022
|
-
"streamBroker.subscribeFrames": {
|
|
48023
|
-
capName: "stream-broker",
|
|
48024
|
-
capScope: "system",
|
|
48025
|
-
addonId: null,
|
|
48026
|
-
access: "create"
|
|
48027
|
-
},
|
|
48028
48660
|
"streamBroker.unassignProfile": {
|
|
48029
48661
|
capName: "stream-broker",
|
|
48030
48662
|
capScope: "system",
|
|
@@ -48037,12 +48669,6 @@ Object.freeze({
|
|
|
48037
48669
|
addonId: null,
|
|
48038
48670
|
access: "create"
|
|
48039
48671
|
},
|
|
48040
|
-
"streamBroker.unsubscribeFrames": {
|
|
48041
|
-
capName: "stream-broker",
|
|
48042
|
-
capScope: "system",
|
|
48043
|
-
addonId: null,
|
|
48044
|
-
access: "create"
|
|
48045
|
-
},
|
|
48046
48672
|
"streamCatalog.getCatalog": {
|
|
48047
48673
|
capName: "stream-catalog",
|
|
48048
48674
|
capScope: "device",
|
|
@@ -48337,18 +48963,36 @@ Object.freeze({
|
|
|
48337
48963
|
addonId: null,
|
|
48338
48964
|
access: "delete"
|
|
48339
48965
|
},
|
|
48966
|
+
"userManagement.findUserByExternalIdentity": {
|
|
48967
|
+
capName: "user-management",
|
|
48968
|
+
capScope: "system",
|
|
48969
|
+
addonId: null,
|
|
48970
|
+
access: "view"
|
|
48971
|
+
},
|
|
48340
48972
|
"userManagement.getTotpStatus": {
|
|
48341
48973
|
capName: "user-management",
|
|
48342
48974
|
capScope: "system",
|
|
48343
48975
|
addonId: null,
|
|
48344
48976
|
access: "view"
|
|
48345
48977
|
},
|
|
48978
|
+
"userManagement.linkExternalIdentity": {
|
|
48979
|
+
capName: "user-management",
|
|
48980
|
+
capScope: "system",
|
|
48981
|
+
addonId: null,
|
|
48982
|
+
access: "create"
|
|
48983
|
+
},
|
|
48346
48984
|
"userManagement.listApiKeys": {
|
|
48347
48985
|
capName: "user-management",
|
|
48348
48986
|
capScope: "system",
|
|
48349
48987
|
addonId: null,
|
|
48350
48988
|
access: "view"
|
|
48351
48989
|
},
|
|
48990
|
+
"userManagement.listExternalIdentities": {
|
|
48991
|
+
capName: "user-management",
|
|
48992
|
+
capScope: "system",
|
|
48993
|
+
addonId: null,
|
|
48994
|
+
access: "view"
|
|
48995
|
+
},
|
|
48352
48996
|
"userManagement.listOauthSessions": {
|
|
48353
48997
|
capName: "user-management",
|
|
48354
48998
|
capScope: "system",
|
|
@@ -48427,6 +49071,12 @@ Object.freeze({
|
|
|
48427
49071
|
addonId: null,
|
|
48428
49072
|
access: "create"
|
|
48429
49073
|
},
|
|
49074
|
+
"userManagement.unlinkExternalIdentity": {
|
|
49075
|
+
capName: "user-management",
|
|
49076
|
+
capScope: "system",
|
|
49077
|
+
addonId: null,
|
|
49078
|
+
access: "delete"
|
|
49079
|
+
},
|
|
48430
49080
|
"userManagement.updateUser": {
|
|
48431
49081
|
capName: "user-management",
|
|
48432
49082
|
capScope: "system",
|
|
@@ -48739,6 +49389,12 @@ Object.freeze({
|
|
|
48739
49389
|
addonId: null,
|
|
48740
49390
|
access: "create"
|
|
48741
49391
|
},
|
|
49392
|
+
"webrtcSession.applyDownlinkProbe": {
|
|
49393
|
+
capName: "webrtc-session",
|
|
49394
|
+
capScope: "device",
|
|
49395
|
+
addonId: null,
|
|
49396
|
+
access: "create"
|
|
49397
|
+
},
|
|
48742
49398
|
"webrtcSession.closeSession": {
|
|
48743
49399
|
capName: "webrtc-session",
|
|
48744
49400
|
capScope: "device",
|
|
@@ -50550,11 +51206,6 @@ Object.freeze({
|
|
|
50550
51206
|
form: "single",
|
|
50551
51207
|
optional: false
|
|
50552
51208
|
}],
|
|
50553
|
-
"decoder.createSession": [{
|
|
50554
|
-
name: "deviceId",
|
|
50555
|
-
form: "single",
|
|
50556
|
-
optional: true
|
|
50557
|
-
}],
|
|
50558
51209
|
"detectionPipeline.applyDeviceSettingsPatch": [{
|
|
50559
51210
|
name: "deviceId",
|
|
50560
51211
|
form: "single",
|
|
@@ -51765,6 +52416,11 @@ Object.freeze({
|
|
|
51765
52416
|
form: "single",
|
|
51766
52417
|
optional: false
|
|
51767
52418
|
}],
|
|
52419
|
+
"pipelineAnalytics.setRetrainFrameComplete": [{
|
|
52420
|
+
name: "deviceId",
|
|
52421
|
+
form: "single",
|
|
52422
|
+
optional: false
|
|
52423
|
+
}],
|
|
51768
52424
|
"pipelineAnalytics.setTrackFlags": [{
|
|
51769
52425
|
name: "deviceId",
|
|
51770
52426
|
form: "single",
|
|
@@ -51785,6 +52441,11 @@ Object.freeze({
|
|
|
51785
52441
|
form: "single",
|
|
51786
52442
|
optional: false
|
|
51787
52443
|
}],
|
|
52444
|
+
"pipelineExecutor.clearModelBoundDeviceOverrides": [{
|
|
52445
|
+
name: "deviceIds",
|
|
52446
|
+
form: "array",
|
|
52447
|
+
optional: true
|
|
52448
|
+
}],
|
|
51788
52449
|
"pipelineExecutor.runPipeline": [{
|
|
51789
52450
|
name: "deviceId",
|
|
51790
52451
|
form: "single",
|
|
@@ -51890,6 +52551,11 @@ Object.freeze({
|
|
|
51890
52551
|
form: "single",
|
|
51891
52552
|
optional: false
|
|
51892
52553
|
}],
|
|
52554
|
+
"pipelineOrchestrator.setCameraStepSettings": [{
|
|
52555
|
+
name: "deviceId",
|
|
52556
|
+
form: "single",
|
|
52557
|
+
optional: false
|
|
52558
|
+
}],
|
|
51893
52559
|
"pipelineOrchestrator.setCameraStepToggle": [{
|
|
51894
52560
|
name: "deviceId",
|
|
51895
52561
|
form: "single",
|
|
@@ -52661,6 +53327,11 @@ Object.freeze({
|
|
|
52661
53327
|
form: "single",
|
|
52662
53328
|
optional: false
|
|
52663
53329
|
}],
|
|
53330
|
+
"webrtcSession.applyDownlinkProbe": [{
|
|
53331
|
+
name: "deviceId",
|
|
53332
|
+
form: "single",
|
|
53333
|
+
optional: false
|
|
53334
|
+
}],
|
|
52664
53335
|
"webrtcSession.closeSession": [{
|
|
52665
53336
|
name: "deviceId",
|
|
52666
53337
|
form: "single",
|
|
@@ -52890,6 +53561,8 @@ new Map(Object.entries({
|
|
|
52890
53561
|
"detection-blind": "device-events",
|
|
52891
53562
|
"node-online": "system",
|
|
52892
53563
|
"node-offline": "system",
|
|
53564
|
+
"node-restarting": "system",
|
|
53565
|
+
"node-updating": "system",
|
|
52893
53566
|
"node-inference-unavailable": "system",
|
|
52894
53567
|
"addon-crash-loop": "system",
|
|
52895
53568
|
"addon-update-available": "system",
|
|
@@ -52967,6 +53640,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
52967
53640
|
kinds: [
|
|
52968
53641
|
"node-offline",
|
|
52969
53642
|
"node-online",
|
|
53643
|
+
"node-restarting",
|
|
52970
53644
|
"node-inference-unavailable"
|
|
52971
53645
|
]
|
|
52972
53646
|
},
|
|
@@ -52988,6 +53662,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
52988
53662
|
label: "Server & container updates",
|
|
52989
53663
|
kinds: [
|
|
52990
53664
|
"server-update-available",
|
|
53665
|
+
"node-updating",
|
|
52991
53666
|
"server-updated",
|
|
52992
53667
|
"wrapper-update-available"
|
|
52993
53668
|
]
|
|
@@ -53135,6 +53810,7 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
53135
53810
|
kinds: [
|
|
53136
53811
|
"node-offline",
|
|
53137
53812
|
"node-online",
|
|
53813
|
+
"node-restarting",
|
|
53138
53814
|
"node-inference-unavailable"
|
|
53139
53815
|
]
|
|
53140
53816
|
},
|
|
@@ -53156,6 +53832,7 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
53156
53832
|
example: "server 1.2.377 → 1.2.378",
|
|
53157
53833
|
kinds: [
|
|
53158
53834
|
"server-update-available",
|
|
53835
|
+
"node-updating",
|
|
53159
53836
|
"server-updated",
|
|
53160
53837
|
"wrapper-update-available"
|
|
53161
53838
|
]
|
|
@@ -53188,7 +53865,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
53188
53865
|
{
|
|
53189
53866
|
name: "summarySection",
|
|
53190
53867
|
label: "Summary: this section",
|
|
53191
|
-
description: "The section a per-section summary row is about
|
|
53868
|
+
description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
|
|
53192
53869
|
example: "Batterie scariche",
|
|
53193
53870
|
group: "system",
|
|
53194
53871
|
families: ["rule"],
|
|
@@ -53823,7 +54500,7 @@ var TuyaRegionSchema = _enum(TUYA_REGION_VALUES);
|
|
|
53823
54500
|
*/
|
|
53824
54501
|
var tuyaConfigSchema = object({
|
|
53825
54502
|
accessId: string().min(1).describe("Tuya IoT project Access ID / Client ID"),
|
|
53826
|
-
accessSecret: string().min(1).describe("Tuya IoT project Access Secret / Client Secret"),
|
|
54503
|
+
accessSecret: string().min(1).describe("Tuya IoT project Access Secret / Client Secret").meta({ secret: true }),
|
|
53827
54504
|
region: TuyaRegionSchema.default("eu").describe("Tuya cloud data-centre region"),
|
|
53828
54505
|
discoveryTimeoutMs: preprocess((v) => v === "" || v === null ? void 0 : v, number().int().min(1e3).max(3e4).default(6e3)).describe("LAN discovery sweep window (ms) used to resolve device IP / protocol version")
|
|
53829
54506
|
});
|
|
@@ -54088,7 +54765,7 @@ var tuyaConnections = new TuyaConnectionResolver();
|
|
|
54088
54765
|
var tuyaDeviceConfigSchema = object({
|
|
54089
54766
|
integrationId: string().min(1).describe("Owning Tuya integration id"),
|
|
54090
54767
|
tuyaDeviceId: string().min(1).describe("Tuya cloud device id (gwId/devId)"),
|
|
54091
|
-
localKey: string().min(1).describe("Device local key (from the Tuya cloud)"),
|
|
54768
|
+
localKey: string().min(1).describe("Device local key (from the Tuya cloud)").meta({ secret: true }),
|
|
54092
54769
|
host: string().default("").describe("Device LAN IP / host"),
|
|
54093
54770
|
version: string().default("3.3").describe("Tuya protocol version (3.1–3.5)"),
|
|
54094
54771
|
switchDp: string().default("1").describe("Boolean DP a raw switch drives"),
|