@camstack/addon-provider-tuya 0.2.119 → 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 +1266 -543
- package/dist/addon.mjs +1266 -543
- 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).
|
|
@@ -11353,11 +11271,11 @@ var ModelVariantGroupSchema = object({
|
|
|
11353
11271
|
/** Quantization axis. Omit ⇒ the fp32 base build. */
|
|
11354
11272
|
precision: _enum(["fp32", "int8"]).optional(),
|
|
11355
11273
|
/**
|
|
11356
|
-
*
|
|
11357
|
-
*
|
|
11358
|
-
*
|
|
11274
|
+
* Training / latency-variant axis. Omit ⇒ the standard build. `test` marks
|
|
11275
|
+
* an alternate training of the same family (Scrypted `relu_test`); chip
|
|
11276
|
+
* label is "Test".
|
|
11359
11277
|
*/
|
|
11360
|
-
optimization: _enum(["standard", "
|
|
11278
|
+
optimization: _enum(["standard", "test"]).optional(),
|
|
11361
11279
|
/**
|
|
11362
11280
|
* Input-resolution axis (square input side, px). Omit ⇒ the family's native
|
|
11363
11281
|
* resolution (640 for yolo26). Reduced-input builds (320 / 256) are a big,
|
|
@@ -11380,9 +11298,10 @@ var ModelProviderIdSchema = _enum([
|
|
|
11380
11298
|
* are per upstream. A persisted custom-model row written when this field was a
|
|
11381
11299
|
* string still parses — the string is lifted into `{ weights }`.
|
|
11382
11300
|
*
|
|
11383
|
-
* Every licence surface (the
|
|
11384
|
-
*
|
|
11385
|
-
*
|
|
11301
|
+
* Every machine licence surface (`THIRD_PARTY_MODELS.md`, the Hugging Face
|
|
11302
|
+
* model table) is GENERATED from these records by
|
|
11303
|
+
* `scripts/gen-model-licenses.ts` (D661). Operator-facing docs live in
|
|
11304
|
+
* `camstack/docs` → `/docs/detection/models`.
|
|
11386
11305
|
*/
|
|
11387
11306
|
var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { weights: value } : value, object({
|
|
11388
11307
|
/** SPDX id of the WEIGHTS' terms, a `LicenseRef-*` for non-SPDX terms, or `UNKNOWN`. */
|
|
@@ -11415,6 +11334,46 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
|
|
|
11415
11334
|
/** True when the weights or their data forbid commercial use. */
|
|
11416
11335
|
nonCommercial: boolean().optional()
|
|
11417
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
|
+
]);
|
|
11418
11377
|
var ModelCatalogEntrySchema = object({
|
|
11419
11378
|
id: string(),
|
|
11420
11379
|
name: string(),
|
|
@@ -11480,6 +11439,35 @@ var ModelCatalogEntrySchema = object({
|
|
|
11480
11439
|
*/
|
|
11481
11440
|
defaultConfidence: number().min(0).max(1).optional(),
|
|
11482
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
|
+
/**
|
|
11483
11471
|
* When true, the executor produces a landmark-aligned crop (similarity warp
|
|
11484
11472
|
* onto the canonical template) before this step runs, instead of a plain
|
|
11485
11473
|
* axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
|
|
@@ -11541,6 +11529,16 @@ var ModelCatalogEntrySchema = object({
|
|
|
11541
11529
|
*/
|
|
11542
11530
|
classMap: DetectionCatalogClassMapSchema.optional(),
|
|
11543
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
|
+
/**
|
|
11544
11542
|
* The model's CLIP feature-space contract (text encoder, dimension, vector
|
|
11545
11543
|
* index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
|
|
11546
11544
|
* CLIP image encoder; its absence is what "not a CLIP model" means to the
|
|
@@ -13142,13 +13140,6 @@ var BrokerRtspClientSchema = object({
|
|
|
13142
13140
|
lastRtpAt: number(),
|
|
13143
13141
|
bytesSent: number()
|
|
13144
13142
|
});
|
|
13145
|
-
var BrokerDecodedClientSchema = object({
|
|
13146
|
-
tag: string(),
|
|
13147
|
-
subscribedAt: number(),
|
|
13148
|
-
maxFps: number(),
|
|
13149
|
-
framesDelivered: number(),
|
|
13150
|
-
framesDropped: number()
|
|
13151
|
-
});
|
|
13152
13143
|
var BrokerAudioClientSchema = object({
|
|
13153
13144
|
tag: string(),
|
|
13154
13145
|
subscribedAt: number(),
|
|
@@ -13240,7 +13231,6 @@ var BrokerEncodedClientSchema = object({
|
|
|
13240
13231
|
});
|
|
13241
13232
|
var BrokerClientsSchema = object({
|
|
13242
13233
|
rtsp: array(BrokerRtspClientSchema).readonly(),
|
|
13243
|
-
decoded: array(BrokerDecodedClientSchema).readonly(),
|
|
13244
13234
|
audio: array(BrokerAudioClientSchema).readonly(),
|
|
13245
13235
|
encoded: array(BrokerEncodedClientSchema).readonly(),
|
|
13246
13236
|
pipeClients: number(),
|
|
@@ -13609,11 +13599,7 @@ method(object({
|
|
|
13609
13599
|
auth: "admin"
|
|
13610
13600
|
}), method(object({ brokerId: string() }), BrokerClientsSchema), method(object({
|
|
13611
13601
|
brokerId: string(),
|
|
13612
|
-
channel: _enum([
|
|
13613
|
-
"rtsp",
|
|
13614
|
-
"decoded",
|
|
13615
|
-
"audio"
|
|
13616
|
-
]),
|
|
13602
|
+
channel: _enum(["rtsp", "audio"]),
|
|
13617
13603
|
handle: string()
|
|
13618
13604
|
}), object({ killed: boolean() }), {
|
|
13619
13605
|
kind: "mutation",
|
|
@@ -13648,10 +13634,7 @@ method(object({
|
|
|
13648
13634
|
}), method(SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, { kind: "mutation" }), method(object({
|
|
13649
13635
|
subscriptionId: string(),
|
|
13650
13636
|
maxCount: number().int().positive().default(8)
|
|
13651
|
-
}), array(DecodedAudioChunkSchema).readonly()), method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }), method(
|
|
13652
|
-
subscriptionId: string(),
|
|
13653
|
-
maxCount: number().int().positive().default(4)
|
|
13654
|
-
}), 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({
|
|
13655
13638
|
brokerId: string(),
|
|
13656
13639
|
seconds: number().min(0).max(30)
|
|
13657
13640
|
}), _void(), {
|
|
@@ -14910,54 +14893,12 @@ id: union([string(), number()]) }), {
|
|
|
14910
14893
|
kind: "mutation",
|
|
14911
14894
|
auth: "admin"
|
|
14912
14895
|
});
|
|
14913
|
-
|
|
14914
|
-
* shm ring usage stats for a `frameSink: 'shm'` decoder session —
|
|
14915
|
-
* exposed via `decoder.getShmStats` so downstream consumers can
|
|
14916
|
-
* observe ring pressure (slot count, byte budget, hit/miss ratio).
|
|
14917
|
-
*/
|
|
14918
|
-
var ShmRingStatsSchema = object({
|
|
14919
|
-
sessionId: string(),
|
|
14920
|
-
slotCount: number().int(),
|
|
14921
|
-
slotByteLength: number().int(),
|
|
14922
|
-
segmentBytes: number().int(),
|
|
14923
|
-
budgetMb: number().int(),
|
|
14924
|
-
framesWritten: number().int(),
|
|
14925
|
-
getFrameHits: number().int(),
|
|
14926
|
-
getFrameMisses: number().int()
|
|
14927
|
-
});
|
|
14928
|
-
method(object({ codec: string() }), boolean()), method(_void(), object({
|
|
14896
|
+
method(_void(), object({
|
|
14929
14897
|
id: string(),
|
|
14930
14898
|
name: string(),
|
|
14931
|
-
isPullMode: boolean().optional(),
|
|
14932
|
-
priority: number().optional(),
|
|
14933
14899
|
hwaccel: string().optional(),
|
|
14934
14900
|
probedBestHwaccel: string().optional()
|
|
14935
|
-
})), method(
|
|
14936
|
-
sessionId: string(),
|
|
14937
|
-
nodeId: string()
|
|
14938
|
-
})), method(object({ sessionId: string() }), _void()), method(object({
|
|
14939
|
-
sessionId: string(),
|
|
14940
|
-
packet: EncodedPacketSchema
|
|
14941
|
-
}), _void()), method(object({
|
|
14942
|
-
sessionId: string(),
|
|
14943
|
-
url: string()
|
|
14944
|
-
}), _void()), method(object({
|
|
14945
|
-
sessionId: string(),
|
|
14946
|
-
maxCount: number().default(1),
|
|
14947
|
-
waitMs: number().optional()
|
|
14948
|
-
}), array(DecodedFrameSchema)), method(object({
|
|
14949
|
-
sessionId: string(),
|
|
14950
|
-
maxCount: number().default(1),
|
|
14951
|
-
waitMs: number().optional()
|
|
14952
|
-
}), array(FrameHandleSchema)), method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()), method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()), method(object({
|
|
14953
|
-
sessionId: string(),
|
|
14954
|
-
config: DecoderSessionConfigSchema.partial()
|
|
14955
|
-
}), _void()), method(object({ sessionId: string() }), DecoderStatsSchema), method(_void(), array(object({
|
|
14956
|
-
sessionId: string(),
|
|
14957
|
-
codec: string(),
|
|
14958
|
-
outputFormat: string(),
|
|
14959
|
-
createdAtMs: number()
|
|
14960
|
-
})).readonly()), method(_void(), object({ backend: string() }), {
|
|
14901
|
+
})), method(_void(), object({ backend: string() }), {
|
|
14961
14902
|
kind: "mutation",
|
|
14962
14903
|
auth: "admin"
|
|
14963
14904
|
});
|
|
@@ -15013,7 +14954,7 @@ DeviceType.Camera;
|
|
|
15013
14954
|
* This matters here more than anywhere else in the repo, because every provider
|
|
15014
14955
|
* that knows a device's host knows its PASSWORD too: `{ host, port, username,
|
|
15015
14956
|
* password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
|
|
15016
|
-
* and `http://admin:hunter2@192.168.
|
|
14957
|
+
* and `http://admin:hunter2@192.168.60.139/` is a URL a browser accepts. The
|
|
15017
14958
|
* camera's own page will ask for its own login. That is correct, and pre-
|
|
15018
14959
|
* filling it is the operator's business, not ours.
|
|
15019
14960
|
*
|
|
@@ -15974,6 +15915,10 @@ var DeviceInfoSchema = object({
|
|
|
15974
15915
|
isCamera: boolean(),
|
|
15975
15916
|
/** Current config values — serializable snapshot */
|
|
15976
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(),
|
|
15977
15922
|
/** Hardware + identity blob (manufacturer / model / firmware / sn /
|
|
15978
15923
|
* uid / mac / …). Populated by drivers; editable via setMetadata. */
|
|
15979
15924
|
metadata: record(string(), unknown()).nullable().optional(),
|
|
@@ -16179,7 +16124,13 @@ var DeviceRegisterPayloadSchema = object({
|
|
|
16179
16124
|
* call (workers re-register on init), so probe-driven updates
|
|
16180
16125
|
* (e.g. PTZ flag flipping after the abilities probe) propagate. */
|
|
16181
16126
|
features: array(string()).optional(),
|
|
16182
|
-
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()
|
|
16183
16134
|
});
|
|
16184
16135
|
var DeviceRemovePayloadSchema = object({ deviceId: number() });
|
|
16185
16136
|
var DevicePersistConfigPayloadSchema = object({
|
|
@@ -17006,6 +16957,12 @@ method(_void(), array(string()).readonly(), { auth: "admin" }), method(object({
|
|
|
17006
16957
|
kind: "mutation",
|
|
17007
16958
|
auth: "admin"
|
|
17008
16959
|
});
|
|
16960
|
+
var HUB_ADDRESS_ROLES = [
|
|
16961
|
+
"appConnections",
|
|
16962
|
+
"notificationTaps",
|
|
16963
|
+
"internal",
|
|
16964
|
+
"publicEndpoint"
|
|
16965
|
+
];
|
|
17009
16966
|
/**
|
|
17010
16967
|
* Transport bounds for AI capability methods.
|
|
17011
16968
|
*
|
|
@@ -17832,7 +17789,14 @@ var LoginMethodContributionSchema = discriminatedUnion("kind", [
|
|
|
17832
17789
|
icon: string().optional(),
|
|
17833
17790
|
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
17834
17791
|
startUrl: string(),
|
|
17835
|
-
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()
|
|
17836
17800
|
}),
|
|
17837
17801
|
object({
|
|
17838
17802
|
kind: literal("widget"),
|
|
@@ -18202,7 +18166,7 @@ method(object({
|
|
|
18202
18166
|
timeoutMs: 6e5
|
|
18203
18167
|
});
|
|
18204
18168
|
method(object({
|
|
18205
|
-
|
|
18169
|
+
targetNodeId: string(),
|
|
18206
18170
|
modelId: string(),
|
|
18207
18171
|
format: _enum(MODEL_FORMATS),
|
|
18208
18172
|
entry: ModelCatalogEntrySchema
|
|
@@ -19608,6 +19572,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
19608
19572
|
"stream-offline",
|
|
19609
19573
|
"node-online",
|
|
19610
19574
|
"node-offline",
|
|
19575
|
+
"node-restarting",
|
|
19576
|
+
"node-updating",
|
|
19611
19577
|
"node-inference-unavailable",
|
|
19612
19578
|
"detection-blind",
|
|
19613
19579
|
"addon-crash-loop",
|
|
@@ -20706,8 +20672,9 @@ var NcRuleSchema = NcRuleInputSchema.extend({
|
|
|
20706
20672
|
disabledTargetIds: array(string()).default([])
|
|
20707
20673
|
});
|
|
20708
20674
|
/**
|
|
20709
|
-
* The state-summary SECTIONS (D647 / D698): the D637 kind groups that
|
|
20710
|
-
* still-true state. `
|
|
20675
|
+
* The state-summary SECTIONS (D647 / D698 / D708): the D637 kind groups that
|
|
20676
|
+
* report a still-true state. `addons` is the crash-looped addons only and
|
|
20677
|
+
* `addon-updates` the addons that are behind (D708 split them). `backups-exports` and `alarm` are not sections — a completed
|
|
20711
20678
|
* job is not an open state, and the alarm stays instant.
|
|
20712
20679
|
*/
|
|
20713
20680
|
var NcStateSummarySectionIdSchema = _enum([
|
|
@@ -20719,6 +20686,7 @@ var NcStateSummarySectionIdSchema = _enum([
|
|
|
20719
20686
|
"detection-blind",
|
|
20720
20687
|
"nodes",
|
|
20721
20688
|
"addons",
|
|
20689
|
+
"addon-updates",
|
|
20722
20690
|
"updates"
|
|
20723
20691
|
]);
|
|
20724
20692
|
/** One section of a previewed state summary. `unavailable` = its state could not be read. */
|
|
@@ -21199,7 +21167,25 @@ var NcAlarmModeDelaysListSchema = array(object({
|
|
|
21199
21167
|
* When this mode may be armed. Absent / null = always allowed (same as a
|
|
21200
21168
|
* rule with no `schedule`). Evaluated with {@link isScheduleActive}.
|
|
21201
21169
|
*/
|
|
21202
|
-
schedule: NcScheduleSchema.optional()
|
|
21170
|
+
schedule: NcScheduleSchema.optional(),
|
|
21171
|
+
/**
|
|
21172
|
+
* D706: while this mode's ENTRY DELAY runs, do the alarm rules' own pushes go out (as an
|
|
21173
|
+
* intrusion naming the locations)? Absent = false — the entry-delay notification is the
|
|
21174
|
+
* only one, and the matches ride the triggered notification's mosaic (D705).
|
|
21175
|
+
*/
|
|
21176
|
+
notifyDuringEntryDelay: boolean().optional(),
|
|
21177
|
+
/**
|
|
21178
|
+
* D706: notify "watched again" when a sensor this arm bypassed closes and opens again.
|
|
21179
|
+
* Absent = false (logged, not sent). Even when true it is not sent when that same sensor
|
|
21180
|
+
* is the one that starts the entry delay — the entry-delay notification already names it.
|
|
21181
|
+
*/
|
|
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()
|
|
21203
21189
|
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
|
|
21204
21190
|
var NcAlarmModeDelaysEditListSchema = array(object({
|
|
21205
21191
|
mode: AlarmArmModeSchema,
|
|
@@ -21208,7 +21194,13 @@ var NcAlarmModeDelaysEditListSchema = array(object({
|
|
|
21208
21194
|
triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional(),
|
|
21209
21195
|
postTriggeredAction: NcAlarmPostTriggeredActionSchema.nullable().optional(),
|
|
21210
21196
|
/** Set a schedule, or `null` to clear (mode always allowed again). */
|
|
21211
|
-
schedule: NcScheduleSchema.nullable().optional()
|
|
21197
|
+
schedule: NcScheduleSchema.nullable().optional(),
|
|
21198
|
+
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
21199
|
+
notifyDuringEntryDelay: boolean().nullable().optional(),
|
|
21200
|
+
/** D706: set the switch, or `null` to clear it (back to the default, false). */
|
|
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()
|
|
21212
21204
|
})).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
|
|
21213
21205
|
/** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
|
|
21214
21206
|
var NcAlarmNonBlockingEditSchema = object({
|
|
@@ -22169,45 +22161,25 @@ Object.freeze(Object.fromEntries([{
|
|
|
22169
22161
|
label: "Face recognition model",
|
|
22170
22162
|
defaultModelId: "auraface-r100",
|
|
22171
22163
|
indexName: "the enrolled face gallery",
|
|
22172
|
-
options: [
|
|
22173
|
-
|
|
22174
|
-
|
|
22175
|
-
|
|
22176
|
-
},
|
|
22177
|
-
{
|
|
22178
|
-
id: "arcface-r100",
|
|
22179
|
-
label: "ArcFace (ResNet34)"
|
|
22180
|
-
},
|
|
22181
|
-
{
|
|
22182
|
-
id: "inception-resnet-v1",
|
|
22183
|
-
label: "Inception ResNet V1"
|
|
22184
|
-
}
|
|
22185
|
-
]
|
|
22164
|
+
options: [{
|
|
22165
|
+
id: "auraface-r100",
|
|
22166
|
+
label: "AuraFace R100"
|
|
22167
|
+
}]
|
|
22186
22168
|
}, {
|
|
22187
22169
|
stepId: "clip-embedding",
|
|
22188
22170
|
label: "Semantic search model",
|
|
22189
|
-
defaultModelId: "
|
|
22171
|
+
defaultModelId: "siglip2-b16-224",
|
|
22190
22172
|
indexName: "the object semantic-search index",
|
|
22191
|
-
options: [
|
|
22192
|
-
|
|
22193
|
-
|
|
22194
|
-
|
|
22195
|
-
},
|
|
22196
|
-
{
|
|
22197
|
-
id: "mobileclip-s2",
|
|
22198
|
-
label: "MobileCLIP S2"
|
|
22199
|
-
},
|
|
22200
|
-
{
|
|
22201
|
-
id: "siglip2-b16-224",
|
|
22202
|
-
label: "SigLIP2 B/16 (Apache-2.0)"
|
|
22203
|
-
}
|
|
22204
|
-
]
|
|
22173
|
+
options: [{
|
|
22174
|
+
id: "siglip2-b16-224",
|
|
22175
|
+
label: "SigLIP2 B/16 (Apache-2.0)"
|
|
22176
|
+
}]
|
|
22205
22177
|
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
22206
22178
|
var CLUSTER_STEP_SETTING_FIELDS = [{
|
|
22207
22179
|
stepId: "face-embedding",
|
|
22208
22180
|
key: "minLandmarkFaceSize",
|
|
22209
|
-
label: "Min face size
|
|
22210
|
-
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.",
|
|
22211
22183
|
type: "slider",
|
|
22212
22184
|
min: 0,
|
|
22213
22185
|
max: 64,
|
|
@@ -23259,7 +23231,13 @@ var RetrainFrameSchema = object({
|
|
|
23259
23231
|
sizeBytes: number().int(),
|
|
23260
23232
|
width: number().int(),
|
|
23261
23233
|
height: number().int(),
|
|
23262
|
-
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()
|
|
23263
23241
|
});
|
|
23264
23242
|
/** Why a copy-on-select could not be honoured — named, never a silent skip. */
|
|
23265
23243
|
var RetrainCopyRefusalSchema = _enum([
|
|
@@ -23280,6 +23258,51 @@ var RetrainFrameListSchema = object({
|
|
|
23280
23258
|
/** What the page pre-selects — the native key frame when one survives. */
|
|
23281
23259
|
autoPickMediaId: number().int().optional()
|
|
23282
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
|
+
});
|
|
23283
23306
|
/** What the operator asked the assist to look for. */
|
|
23284
23307
|
var RetrainAssistSubjectSchema = discriminatedUnion("kind", [object({
|
|
23285
23308
|
kind: literal("package"),
|
|
@@ -24074,9 +24097,25 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
24074
24097
|
}), RetrainTransitionResultSchema, {
|
|
24075
24098
|
kind: "mutation",
|
|
24076
24099
|
auth: "admin"
|
|
24077
|
-
}), method(
|
|
24100
|
+
}), method(RetrainExportFilterSchema.extend({ layout: RetrainExportLayoutSchema.optional() }), object({ url: string() }), {
|
|
24078
24101
|
kind: "query",
|
|
24079
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
|
|
24080
24119
|
}), method(object({
|
|
24081
24120
|
/** Which of the three event tables owns the row. */
|
|
24082
24121
|
ownerType: EventOwnerTypeSchema,
|
|
@@ -24127,6 +24166,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
24127
24166
|
timestamp: number()
|
|
24128
24167
|
});
|
|
24129
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
|
+
/**
|
|
24130
24197
|
* Reference to the frame's retained NATIVE surface + the parent crop's placement
|
|
24131
24198
|
* within the frame, so the executor can re-cut a leaf child ROI at native
|
|
24132
24199
|
* resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
|
|
@@ -24174,7 +24241,7 @@ var FrameRefSchema = object({
|
|
|
24174
24241
|
timestamp: number(),
|
|
24175
24242
|
capturedAt: number().optional()
|
|
24176
24243
|
});
|
|
24177
|
-
var ModelFormatSchema$
|
|
24244
|
+
var ModelFormatSchema$2 = _enum([
|
|
24178
24245
|
"onnx",
|
|
24179
24246
|
"coreml",
|
|
24180
24247
|
"openvino",
|
|
@@ -24192,7 +24259,7 @@ var PipelineSlotSchema = _enum([
|
|
|
24192
24259
|
var PipelineEngineChoiceSchema = object({
|
|
24193
24260
|
runtime: literal("python"),
|
|
24194
24261
|
backend: string(),
|
|
24195
|
-
format: ModelFormatSchema$
|
|
24262
|
+
format: ModelFormatSchema$2,
|
|
24196
24263
|
device: string().optional()
|
|
24197
24264
|
});
|
|
24198
24265
|
/**
|
|
@@ -24231,32 +24298,15 @@ var PipelineDefaultStepSchema = lazy(() => object({
|
|
|
24231
24298
|
group: string().optional(),
|
|
24232
24299
|
settings: record(string(), unknown()).optional()
|
|
24233
24300
|
}));
|
|
24234
|
-
var PipelineTemplateStepSchema = lazy(() => object({
|
|
24235
|
-
addonId: string(),
|
|
24236
|
-
enabled: boolean(),
|
|
24237
|
-
modelId: string(),
|
|
24238
|
-
children: array(PipelineTemplateStepSchema).readonly(),
|
|
24239
|
-
settings: record(string(), unknown()).optional()
|
|
24240
|
-
}));
|
|
24241
|
-
var PipelineTemplateSchema$1 = object({
|
|
24242
|
-
id: string(),
|
|
24243
|
-
name: string(),
|
|
24244
|
-
createdAt: string(),
|
|
24245
|
-
updatedAt: string(),
|
|
24246
|
-
engine: PipelineEngineChoiceSchema,
|
|
24247
|
-
steps: array(PipelineTemplateStepSchema).readonly()
|
|
24248
|
-
});
|
|
24249
24301
|
var PipelineModelOptionSchema = object({
|
|
24250
24302
|
id: string(),
|
|
24251
24303
|
name: string(),
|
|
24252
|
-
formats: record(string(),
|
|
24253
|
-
downloaded: boolean(),
|
|
24254
|
-
sizeMB: number()
|
|
24255
|
-
})),
|
|
24304
|
+
formats: record(string(), PipelineModelFormatStatusSchema),
|
|
24256
24305
|
group: ModelVariantGroupSchema.optional(),
|
|
24257
24306
|
legacy: boolean().optional(),
|
|
24258
24307
|
provider: ModelProviderIdSchema.optional(),
|
|
24259
|
-
defaultConfidence: number().optional()
|
|
24308
|
+
defaultConfidence: number().optional(),
|
|
24309
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional()
|
|
24260
24310
|
});
|
|
24261
24311
|
var ConfigFieldBridge = custom();
|
|
24262
24312
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -24418,6 +24468,22 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
24418
24468
|
}), {
|
|
24419
24469
|
kind: "mutation",
|
|
24420
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"
|
|
24421
24487
|
}), method(object({ nodeId: string() }), object({ unhealthy: array(object({
|
|
24422
24488
|
/** `<backend>:<device>`, e.g. `openvino:gpu`. */
|
|
24423
24489
|
deviceKey: string(),
|
|
@@ -24443,22 +24509,14 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
24443
24509
|
}), method(_void(), PipelineSchemaSchema), method(_void(), array(PipelineDefaultStepSchema).readonly().nullable()), method(_void(), PipelineConfigBridge), method(_void(), ConfigUISchemaBridge), method(object({
|
|
24444
24510
|
steps: array(PipelineStepInputSchema),
|
|
24445
24511
|
deviceKey: string().optional()
|
|
24446
|
-
}), PipelineValidationResultSchema), method(_void(),
|
|
24447
|
-
name: string(),
|
|
24448
|
-
steps: array(PipelineTemplateStepSchema).readonly(),
|
|
24449
|
-
engine: PipelineEngineChoiceSchema
|
|
24450
|
-
}), PipelineTemplateSchema$1, { kind: "mutation" }), method(object({
|
|
24451
|
-
id: string(),
|
|
24452
|
-
name: string().optional(),
|
|
24453
|
-
steps: array(PipelineTemplateStepSchema).readonly().optional()
|
|
24454
|
-
}), 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({
|
|
24455
24513
|
addonId: string(),
|
|
24456
24514
|
modelId: string(),
|
|
24457
|
-
format: ModelFormatSchema$
|
|
24515
|
+
format: ModelFormatSchema$2
|
|
24458
24516
|
}), DownloadModelResultSchema, { kind: "mutation" }), method(object({
|
|
24459
24517
|
addonId: string(),
|
|
24460
24518
|
modelId: string(),
|
|
24461
|
-
format: ModelFormatSchema$
|
|
24519
|
+
format: ModelFormatSchema$2
|
|
24462
24520
|
}), object({ success: literal(true) }), { kind: "mutation" }), method(object({
|
|
24463
24521
|
steps: array(PipelineStepInputSchema).min(1),
|
|
24464
24522
|
frame: FrameInputSchema.optional(),
|
|
@@ -24524,7 +24582,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
24524
24582
|
* `device-not-servable`), and nothing reaches the camera's live
|
|
24525
24583
|
* trace stream. Absent ⇒ unchanged behaviour.
|
|
24526
24584
|
*/
|
|
24527
|
-
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()
|
|
24528
24595
|
}), PipelineRunResultBridge, { kind: "mutation" }), method(object({
|
|
24529
24596
|
steps: array(PipelineStepInputSchema).min(1),
|
|
24530
24597
|
frames: array(FrameInputSchema).min(1).max(255),
|
|
@@ -24606,6 +24673,375 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
24606
24673
|
filename: string().optional(),
|
|
24607
24674
|
settings: record(string(), unknown()).optional()
|
|
24608
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
|
+
});
|
|
24609
25045
|
object({
|
|
24610
25046
|
activeCameras: number(),
|
|
24611
25047
|
throttledCameras: number(),
|
|
@@ -25089,6 +25525,22 @@ var MotionSourceEnum = _enum([
|
|
|
25089
25525
|
"device-activity"
|
|
25090
25526
|
]);
|
|
25091
25527
|
/**
|
|
25528
|
+
* What opened an on-motion detection SESSION: the motion source that passed the
|
|
25529
|
+
* camera's `motionSources` gate, and what raised it (the camera itself, or a
|
|
25530
|
+
* sensor the operator attached — D672). `sensorName` is the attached sensor's
|
|
25531
|
+
* device name as the orchestrator's camera-sensors resolution last read it;
|
|
25532
|
+
* absent when unknown or when the camera itself triggered.
|
|
25533
|
+
*
|
|
25534
|
+
* Carried on the session attach ONLY so the runner's `DetectionPhaseTransition`
|
|
25535
|
+
* can say what started the session (D672 rule 11, amended 2026-10-06). The
|
|
25536
|
+
* runner never decides anything on it.
|
|
25537
|
+
*/
|
|
25538
|
+
var SessionTriggerSchema = object({
|
|
25539
|
+
source: MotionSourceEnum,
|
|
25540
|
+
triggeredBy: MotionTriggeredBySchema,
|
|
25541
|
+
sensorName: string().optional()
|
|
25542
|
+
});
|
|
25543
|
+
/**
|
|
25092
25544
|
* List of motion sources active on a camera. Empty array is valid:
|
|
25093
25545
|
* "no source" — happens for battery cams without firmware motion when
|
|
25094
25546
|
* the operator hasn't opted into the SW analyzer (would hold the
|
|
@@ -25340,6 +25792,14 @@ var RunnerCameraConfigSchema = object({
|
|
|
25340
25792
|
*/
|
|
25341
25793
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
25342
25794
|
/**
|
|
25795
|
+
* What opened this attach, on a SESSION attach only (see
|
|
25796
|
+
* {@link SessionTriggerSchema}). OPTIONAL with no default: absent on a
|
|
25797
|
+
* standing attach, an occupancy burst, a re-dispatch with no motion event
|
|
25798
|
+
* behind it, and every attach from an orchestrator older than the field — the
|
|
25799
|
+
* runner then names no source on the phase event.
|
|
25800
|
+
*/
|
|
25801
|
+
sessionTrigger: SessionTriggerSchema.optional(),
|
|
25802
|
+
/**
|
|
25343
25803
|
* WHICH root detector runs for this camera. The detection counterpart of
|
|
25344
25804
|
* {@link motionSources}, same shape and same discipline: a per-camera list
|
|
25345
25805
|
* of sources the system understands, vendor-agnostic, owned here.
|
|
@@ -25499,14 +25959,15 @@ var RunnerLocalLoadSchema = object({
|
|
|
25499
25959
|
* Per-inference-device live load (multi-device C4). One entry per deviceKey
|
|
25500
25960
|
* this runner currently has attached cameras on, so the orchestrator's second
|
|
25501
25961
|
* `balance()` pass (over a node's devices) weights on real per-pool session
|
|
25502
|
-
* counts. Empty on single-device / pre-multi-device runners.
|
|
25503
|
-
* 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).
|
|
25504
25966
|
*/
|
|
25505
25967
|
devices: array(object({
|
|
25506
25968
|
deviceKey: string(),
|
|
25507
25969
|
backend: string(),
|
|
25508
|
-
attachedCameras: number()
|
|
25509
|
-
queueDepthTotal: number()
|
|
25970
|
+
attachedCameras: number()
|
|
25510
25971
|
})).default([]),
|
|
25511
25972
|
/** Hardware capability flags reported by this node. */
|
|
25512
25973
|
hardware: object({
|
|
@@ -25642,7 +26103,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
25642
26103
|
*/
|
|
25643
26104
|
cropJpeg: string().optional(),
|
|
25644
26105
|
parent: DetailParentSchema,
|
|
25645
|
-
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()
|
|
25646
26122
|
}), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
|
|
25647
26123
|
/** Catalog step id, e.g. `clip-embedding`. */
|
|
25648
26124
|
stepId: string(),
|
|
@@ -25705,14 +26181,6 @@ var CameraPipelineConfigSchema = object({
|
|
|
25705
26181
|
settings: record(string(), unknown()).readonly().optional()
|
|
25706
26182
|
}).nullable().optional()
|
|
25707
26183
|
});
|
|
25708
|
-
var PipelineTemplateSchema = object({
|
|
25709
|
-
id: string(),
|
|
25710
|
-
name: string(),
|
|
25711
|
-
description: string().optional(),
|
|
25712
|
-
config: CameraPipelineConfigSchema,
|
|
25713
|
-
createdAt: string(),
|
|
25714
|
-
updatedAt: string()
|
|
25715
|
-
});
|
|
25716
26184
|
var DeviceStepConfigSchema = object({
|
|
25717
26185
|
modelId: string().optional(),
|
|
25718
26186
|
settings: record(string(), unknown()).optional(),
|
|
@@ -25786,9 +26254,10 @@ var CameraStepOverridePatchSchema = object({
|
|
|
25786
26254
|
modelId: string().optional(),
|
|
25787
26255
|
settings: record(string(), unknown()).readonly().optional()
|
|
25788
26256
|
});
|
|
26257
|
+
var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
|
|
25789
26258
|
var CameraPipelineSettingsSchema = object({
|
|
25790
|
-
pinnedAgentNodeId: string().optional(),
|
|
25791
26259
|
stepToggles: record(string(), boolean()).optional(),
|
|
26260
|
+
stepSettings: CameraStepSettingsSchema.optional(),
|
|
25792
26261
|
stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
|
|
25793
26262
|
pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
|
|
25794
26263
|
});
|
|
@@ -25821,7 +26290,10 @@ var PipelineAssignmentSchema = object({
|
|
|
25821
26290
|
});
|
|
25822
26291
|
/**
|
|
25823
26292
|
* Per-agent load summary surfaced to the load balancer + dashboards.
|
|
25824
|
-
* 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.
|
|
25825
26297
|
*/
|
|
25826
26298
|
var AgentLoadSummarySchema = object({
|
|
25827
26299
|
nodeId: string(),
|
|
@@ -25910,26 +26382,27 @@ var CameraBrokerStatusSchema = object({
|
|
|
25910
26382
|
width: number(),
|
|
25911
26383
|
height: number(),
|
|
25912
26384
|
subscribers: number(),
|
|
25913
|
-
|
|
25914
|
-
|
|
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()
|
|
25915
26393
|
})).readonly(),
|
|
25916
26394
|
webrtcSessions: number(),
|
|
25917
26395
|
rtspRestream: boolean()
|
|
25918
26396
|
});
|
|
25919
|
-
/**
|
|
25920
|
-
|
|
25921
|
-
|
|
25922
|
-
|
|
25923
|
-
|
|
25924
|
-
|
|
25925
|
-
|
|
25926
|
-
|
|
25927
|
-
var CameraDecoderStatusSchema = object({
|
|
25928
|
-
nodeId: string(),
|
|
25929
|
-
formats: array(string()).readonly(),
|
|
25930
|
-
sessionCount: number(),
|
|
25931
|
-
shm: CameraDecoderShmSchema
|
|
25932
|
-
});
|
|
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() });
|
|
25933
26406
|
/** Motion block — null when motion detection is not active for this device. */
|
|
25934
26407
|
var CameraMotionStatusSchema = object({
|
|
25935
26408
|
enabled: boolean(),
|
|
@@ -26286,12 +26759,6 @@ method(object({
|
|
|
26286
26759
|
}), object({ success: literal(true) }), {
|
|
26287
26760
|
kind: "mutation",
|
|
26288
26761
|
auth: "admin"
|
|
26289
|
-
}), method(object({
|
|
26290
|
-
agentNodeId: string(),
|
|
26291
|
-
detectWeight: number().positive().nullable()
|
|
26292
|
-
}), object({ success: literal(true) }), {
|
|
26293
|
-
kind: "mutation",
|
|
26294
|
-
auth: "admin"
|
|
26295
26762
|
}), method(object({
|
|
26296
26763
|
agentNodeId: string(),
|
|
26297
26764
|
detect: boolean().nullable().optional(),
|
|
@@ -26333,6 +26800,15 @@ method(object({
|
|
|
26333
26800
|
}), {
|
|
26334
26801
|
kind: "mutation",
|
|
26335
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"
|
|
26336
26812
|
}), method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()), method(object({
|
|
26337
26813
|
deviceId: number(),
|
|
26338
26814
|
addonId: string(),
|
|
@@ -26349,6 +26825,13 @@ method(object({
|
|
|
26349
26825
|
}), object({ success: literal(true) }), {
|
|
26350
26826
|
kind: "mutation",
|
|
26351
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"
|
|
26352
26835
|
}), method(object({
|
|
26353
26836
|
deviceId: number(),
|
|
26354
26837
|
agentNodeId: string(),
|
|
@@ -26372,25 +26855,7 @@ method(object({
|
|
|
26372
26855
|
}), method(_void(), DiskReconcileJobSchema, {
|
|
26373
26856
|
kind: "mutation",
|
|
26374
26857
|
auth: "admin"
|
|
26375
|
-
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" })
|
|
26376
|
-
name: string(),
|
|
26377
|
-
description: string().optional(),
|
|
26378
|
-
config: CameraPipelineConfigSchema
|
|
26379
|
-
}), PipelineTemplateSchema, {
|
|
26380
|
-
kind: "mutation",
|
|
26381
|
-
auth: "admin"
|
|
26382
|
-
}), method(object({
|
|
26383
|
-
id: string(),
|
|
26384
|
-
name: string().optional(),
|
|
26385
|
-
description: string().optional(),
|
|
26386
|
-
config: CameraPipelineConfigSchema.optional()
|
|
26387
|
-
}), PipelineTemplateSchema, {
|
|
26388
|
-
kind: "mutation",
|
|
26389
|
-
auth: "admin"
|
|
26390
|
-
}), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
26391
|
-
kind: "mutation",
|
|
26392
|
-
auth: "admin"
|
|
26393
|
-
});
|
|
26858
|
+
}), method(_void(), DiskReconcileJobSchema, { auth: "admin" });
|
|
26394
26859
|
/**
|
|
26395
26860
|
* Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
|
|
26396
26861
|
* `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
|
|
@@ -26980,7 +27445,19 @@ var SsoBridgeClaimsSchema = object({
|
|
|
26980
27445
|
* editing a descriptor must not retroactively extend or shorten a link the
|
|
26981
27446
|
* operator already consented to.
|
|
26982
27447
|
*/
|
|
26983
|
-
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()
|
|
26984
27461
|
});
|
|
26985
27462
|
method(object({
|
|
26986
27463
|
claims: SsoBridgeClaimsSchema,
|
|
@@ -28639,8 +29116,6 @@ var WebrtcStreamChoiceSchema = object({
|
|
|
28639
29116
|
]).nullable(),
|
|
28640
29117
|
/** Input FPS from the camera (null for adaptive). */
|
|
28641
29118
|
inputFps: number().nullable(),
|
|
28642
|
-
/** Decoded FPS (null for adaptive). */
|
|
28643
|
-
decodeFps: number().nullable(),
|
|
28644
29119
|
/** Bitrate in kbps (null for adaptive). */
|
|
28645
29120
|
bitrateKbps: number().nullable()
|
|
28646
29121
|
});
|
|
@@ -28917,7 +29392,22 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
28917
29392
|
* field their hints were silently stripped by the schema and the
|
|
28918
29393
|
* adaptive ladder started blind on the client's display size.
|
|
28919
29394
|
*/
|
|
28920
|
-
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()
|
|
28921
29411
|
}), object({
|
|
28922
29412
|
sessionId: string(),
|
|
28923
29413
|
sdpAnswer: string()
|
|
@@ -28972,6 +29462,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
28972
29462
|
*/
|
|
28973
29463
|
alive: boolean()
|
|
28974
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({
|
|
28975
29473
|
deviceId: number().int().nonnegative(),
|
|
28976
29474
|
sessionId: string()
|
|
28977
29475
|
}), WebrtcSessionDebugSchema, { kind: "query" });
|
|
@@ -29211,6 +29709,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
|
|
|
29211
29709
|
var RestartAddonResultSchema = unknown();
|
|
29212
29710
|
var InstallPackageResultSchema = unknown();
|
|
29213
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
|
+
});
|
|
29214
29765
|
var BulkUpdateItemStatusSchema = _enum([
|
|
29215
29766
|
"queued",
|
|
29216
29767
|
"updating",
|
|
@@ -29293,10 +29844,14 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
|
|
|
29293
29844
|
}), method(object({ packageName: string() }), InstallPackageResultSchema, {
|
|
29294
29845
|
kind: "mutation",
|
|
29295
29846
|
auth: "admin"
|
|
29296
|
-
}), 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, {
|
|
29297
29852
|
kind: "mutation",
|
|
29298
29853
|
auth: "admin"
|
|
29299
|
-
}), method(_void(), ReloadPackagesResultSchema, {
|
|
29854
|
+
}), method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }), method(_void(), ReloadPackagesResultSchema, {
|
|
29300
29855
|
kind: "mutation",
|
|
29301
29856
|
auth: "admin"
|
|
29302
29857
|
}), method(object({ query: string().optional() }), array(SearchResultSchema)), method(object({ nodeId: string().optional() }), array(PackageUpdateSchema).readonly(), { auth: "admin" }), method(object({
|
|
@@ -32736,7 +33291,7 @@ var LocalInterfaceSchema = object({
|
|
|
32736
33291
|
name: string(),
|
|
32737
33292
|
family: _enum(["IPv4", "IPv6"]),
|
|
32738
33293
|
address: string(),
|
|
32739
|
-
/** CIDR shorthand (e.g. `192.168.
|
|
33294
|
+
/** CIDR shorthand (e.g. `192.168.10.10/24`). Empty when OS doesn't expose. */
|
|
32740
33295
|
cidr: string(),
|
|
32741
33296
|
/** OS netmask. Stable across calls so the SDK can hash on it. */
|
|
32742
33297
|
netmask: string(),
|
|
@@ -32790,7 +33345,9 @@ var ConnectionEndpointSchema = object({
|
|
|
32790
33345
|
"lan-ipv4",
|
|
32791
33346
|
"lan-ipv6",
|
|
32792
33347
|
"public",
|
|
32793
|
-
"loopback"
|
|
33348
|
+
"loopback",
|
|
33349
|
+
"app-link",
|
|
33350
|
+
"custom"
|
|
32794
33351
|
]),
|
|
32795
33352
|
/**
|
|
32796
33353
|
* Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
|
|
@@ -32859,15 +33416,27 @@ var GetConnectionEndpointsResultSchema = object({
|
|
|
32859
33416
|
localPort: AdvertisedLocalPortSchema
|
|
32860
33417
|
});
|
|
32861
33418
|
/**
|
|
32862
|
-
* The
|
|
32863
|
-
*
|
|
32864
|
-
*
|
|
33419
|
+
* The address flagged for notification taps (`notificationTaps`). `baseUrl: null` = AUTO, which
|
|
33420
|
+
* since D709 is the CamStack app link; `resolved` reports the effective value,
|
|
33421
|
+
* so the UI can show it either way.
|
|
32865
33422
|
*/
|
|
32866
33423
|
var NotificationEndpointSchema = object({
|
|
32867
33424
|
/** The operator's explicit choice, or null for AUTO. */
|
|
32868
33425
|
baseUrl: string().nullable(),
|
|
32869
|
-
/**
|
|
32870
|
-
|
|
33426
|
+
/**
|
|
33427
|
+
* The effective flagged address: the explicit choice, else (AUTO) the
|
|
33428
|
+
* CamStack app link `https://camstack.zentik.app` (D709). A pre-D709 hub
|
|
33429
|
+
* answered the public tunnel / mesh here, or null.
|
|
33430
|
+
*/
|
|
33431
|
+
resolved: string().nullable(),
|
|
33432
|
+
/**
|
|
33433
|
+
* The hub origin an app link carries as `hub=` (D709): the hub's best
|
|
33434
|
+
* public HTTPS address — the tunnel, then the mesh (Tailscale MagicDNS) —
|
|
33435
|
+
* picked from this cap's own palette by `pickAppLinkHub`. `null` when the
|
|
33436
|
+
* hub advertises neither; the app link is then minted without `hub=`.
|
|
33437
|
+
* Absent on a pre-D709 hub.
|
|
33438
|
+
*/
|
|
33439
|
+
appLinkHub: string().nullable()
|
|
32871
33440
|
});
|
|
32872
33441
|
/**
|
|
32873
33442
|
* The URLs the SDK / viewer should race for API access. `baseUrls` empty =
|
|
@@ -32880,6 +33449,72 @@ var ViewerEndpointsSchema = object({
|
|
|
32880
33449
|
/** What the ranking currently resolves to (may be empty if nothing is up). */
|
|
32881
33450
|
resolved: array(string()).readonly()
|
|
32882
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
|
+
});
|
|
32883
33518
|
var AllowedAddressesSchema = object({
|
|
32884
33519
|
/**
|
|
32885
33520
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -32921,8 +33556,29 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
32921
33556
|
* Pass `'https'` when the caller is itself loaded over HTTPS
|
|
32922
33557
|
* to avoid mixed-content blocks in the browser. The public
|
|
32923
33558
|
* tunnel always emits `https://` regardless. */
|
|
32924
|
-
scheme: _enum(["http", "https"]).optional()
|
|
32925
|
-
|
|
33559
|
+
scheme: _enum(["http", "https"]).optional(),
|
|
33560
|
+
/** Append the CamStack app link entry (`kind: 'app-link'`, D709) —
|
|
33561
|
+
* an address notification taps can be flagged with, not a hub
|
|
33562
|
+
* route. Default `false`: racers and rankers never see it. */
|
|
33563
|
+
includeAppLink: boolean().optional()
|
|
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, {
|
|
32926
33582
|
kind: "mutation",
|
|
32927
33583
|
auth: "admin"
|
|
32928
33584
|
}), method(object({
|
|
@@ -33250,7 +33906,7 @@ var MeshPeerSchema = object({
|
|
|
33250
33906
|
tags: array(string()).readonly(),
|
|
33251
33907
|
/** True when the peer advertises itself as an exit-node candidate. */
|
|
33252
33908
|
exitNodeOption: boolean(),
|
|
33253
|
-
/** Subnet routes the peer advertises (e.g. `["192.168.
|
|
33909
|
+
/** Subnet routes the peer advertises (e.g. `["192.168.10.0/24"]`). */
|
|
33254
33910
|
advertisedRoutes: array(string()).readonly(),
|
|
33255
33911
|
/** Owner account login (e.g. `foo@example.com`). Null for tagged peers. */
|
|
33256
33912
|
userLogin: string().nullable(),
|
|
@@ -33380,7 +34036,8 @@ var MotionStatusSchema = object({
|
|
|
33380
34036
|
* writes this slice (not even a boot seed), and neither does the runner's
|
|
33381
34037
|
* phase machine: its phase is "a session is attached" for every on-motion
|
|
33382
34038
|
* session, not motion, and it now has its own `DetectionPhaseTransition`.
|
|
33383
|
-
* A provider's `isDetected`
|
|
34039
|
+
* A provider's `isDetected` and `getStatus` answer from the hub's slice
|
|
34040
|
+
* (`hubMotionNativeProvider`).
|
|
33384
34041
|
* - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
|
|
33385
34042
|
* imports) — the provider pushes both edges itself, from the upstream
|
|
33386
34043
|
* system's own state change. That is the sensor's own fact.
|
|
@@ -34578,7 +35235,13 @@ var OsdStatusSchema = object({ overlays: array(object({
|
|
|
34578
35235
|
*/
|
|
34579
35236
|
availablePositions: array(OsdPositionEnum).readonly(),
|
|
34580
35237
|
/** Firmware does not allow editing the `text` field (e.g. timestamp). */
|
|
34581
|
-
readOnly: boolean().optional()
|
|
35238
|
+
readOnly: boolean().optional(),
|
|
35239
|
+
/**
|
|
35240
|
+
* Firmware text ceiling for this overlay. Absent = no known limit.
|
|
35241
|
+
* The OSD manager truncates here on every write — never stores its own
|
|
35242
|
+
* copy on the binding.
|
|
35243
|
+
*/
|
|
35244
|
+
maxCharacters: number().int().positive().optional()
|
|
34582
35245
|
})).readonly() });
|
|
34583
35246
|
var OsdOverlayPatchSchema = object({
|
|
34584
35247
|
enabled: boolean().optional(),
|
|
@@ -34629,7 +35292,9 @@ var OsdTemplateBindingSchema = object({
|
|
|
34629
35292
|
valuePath: string().min(1).max(64),
|
|
34630
35293
|
/** Convert TO this unit at render (`tryConvertUnit`). Absent = source unit. */
|
|
34631
35294
|
displayUnit: string().max(16).optional(),
|
|
34632
|
-
maxDecimals: number().int().min(0).max(4).default(1)
|
|
35295
|
+
maxDecimals: number().int().min(0).max(4).default(1),
|
|
35296
|
+
/** Raw value → display text (same shape as slot binding). Empty string hides. */
|
|
35297
|
+
valueMap: record(string(), string()).optional()
|
|
34633
35298
|
});
|
|
34634
35299
|
/**
|
|
34635
35300
|
* A named template: bindings (alias → leaf field) + a parser that
|
|
@@ -34679,18 +35344,11 @@ var OsdSlotBindingSchema = object({
|
|
|
34679
35344
|
source: OsdSourceSchema,
|
|
34680
35345
|
/** `${value}` and `${unit}` are substituted; every occurrence. */
|
|
34681
35346
|
template: string().max(96).default("${value}"),
|
|
34682
|
-
/** Truncate with an ellipsis past this length. Absent = no limit. */
|
|
34683
|
-
maxCharacters: number().int().min(4).max(64).optional(),
|
|
34684
35347
|
/**
|
|
34685
35348
|
* Decimal places for a numeric value. `0` yields an integer — the
|
|
34686
35349
|
* documented workaround for firmwares that reject `.` in overlay text.
|
|
34687
35350
|
*/
|
|
34688
35351
|
maxDecimals: number().int().min(0).max(4).default(1),
|
|
34689
|
-
/**
|
|
34690
|
-
* Appended via `${unit}` when no unit conversion produces a label.
|
|
34691
|
-
* Prefer `source.displayUnit` for converted device-state values.
|
|
34692
|
-
*/
|
|
34693
|
-
unitLabel: string().max(8).optional(),
|
|
34694
35352
|
/** Raw value → display text, e.g. `{"true":"MOTION","false":""}`. */
|
|
34695
35353
|
valueMap: record(string(), string()).optional(),
|
|
34696
35354
|
/** Time windows in which the slot is shown. Absent = always. */
|
|
@@ -34699,9 +35357,7 @@ var OsdSlotBindingSchema = object({
|
|
|
34699
35357
|
* Display gate, in the notification centre's condition vocabulary.
|
|
34700
35358
|
* Only the keys reported by `getConditionSupport` are accepted.
|
|
34701
35359
|
*/
|
|
34702
|
-
conditions: NcConditionsSchema.optional()
|
|
34703
|
-
/** Rendered when the gate is closed or the value unreadable. Empty = hide. */
|
|
34704
|
-
fallbackText: string().max(64).default("")
|
|
35360
|
+
conditions: NcConditionsSchema.optional()
|
|
34705
35361
|
});
|
|
34706
35362
|
/** One camera slot, as the operator sees it: firmware truth + our binding. */
|
|
34707
35363
|
var OsdSlotViewSchema = object({
|
|
@@ -39113,6 +39769,32 @@ var TotpStatusSchema = object({
|
|
|
39113
39769
|
/** Null when no row exists OR the row is still pending confirmation. */
|
|
39114
39770
|
confirmedAt: number().nullable()
|
|
39115
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
|
+
});
|
|
39116
39798
|
method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserInputSchema, UserSummarySchema, {
|
|
39117
39799
|
kind: "mutation",
|
|
39118
39800
|
auth: "admin",
|
|
@@ -39226,7 +39908,22 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
39226
39908
|
userId: string(),
|
|
39227
39909
|
username: string(),
|
|
39228
39910
|
scopes: array(TokenScopeSchema)
|
|
39229
|
-
}).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() }), {
|
|
39230
39927
|
kind: "mutation",
|
|
39231
39928
|
auth: "admin",
|
|
39232
39929
|
access: "delete"
|
|
@@ -39928,6 +40625,16 @@ var zoneRulesCapability = {
|
|
|
39928
40625
|
durability: "restored"
|
|
39929
40626
|
};
|
|
39930
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
|
+
});
|
|
39931
40638
|
/**
|
|
39932
40639
|
* Accessory device helpers — shared across drivers.
|
|
39933
40640
|
*
|
|
@@ -41626,6 +42333,12 @@ Object.freeze({
|
|
|
41626
42333
|
addonId: null,
|
|
41627
42334
|
access: "view"
|
|
41628
42335
|
},
|
|
42336
|
+
"addons.listInstallations": {
|
|
42337
|
+
capName: "addons",
|
|
42338
|
+
capScope: "system",
|
|
42339
|
+
addonId: null,
|
|
42340
|
+
access: "view"
|
|
42341
|
+
},
|
|
41629
42342
|
"addons.listJobs": {
|
|
41630
42343
|
capName: "addons",
|
|
41631
42344
|
capScope: "system",
|
|
@@ -42808,90 +43521,18 @@ Object.freeze({
|
|
|
42808
43521
|
addonId: null,
|
|
42809
43522
|
access: "create"
|
|
42810
43523
|
},
|
|
42811
|
-
"decoder.createSession": {
|
|
42812
|
-
capName: "decoder",
|
|
42813
|
-
capScope: "system",
|
|
42814
|
-
addonId: null,
|
|
42815
|
-
access: "view"
|
|
42816
|
-
},
|
|
42817
|
-
"decoder.destroySession": {
|
|
42818
|
-
capName: "decoder",
|
|
42819
|
-
capScope: "system",
|
|
42820
|
-
addonId: null,
|
|
42821
|
-
access: "delete"
|
|
42822
|
-
},
|
|
42823
|
-
"decoder.getFrame": {
|
|
42824
|
-
capName: "decoder",
|
|
42825
|
-
capScope: "system",
|
|
42826
|
-
addonId: null,
|
|
42827
|
-
access: "view"
|
|
42828
|
-
},
|
|
42829
43524
|
"decoder.getInfo": {
|
|
42830
43525
|
capName: "decoder",
|
|
42831
43526
|
capScope: "system",
|
|
42832
43527
|
addonId: null,
|
|
42833
43528
|
access: "view"
|
|
42834
43529
|
},
|
|
42835
|
-
"decoder.getShmStats": {
|
|
42836
|
-
capName: "decoder",
|
|
42837
|
-
capScope: "system",
|
|
42838
|
-
addonId: null,
|
|
42839
|
-
access: "view"
|
|
42840
|
-
},
|
|
42841
|
-
"decoder.getStats": {
|
|
42842
|
-
capName: "decoder",
|
|
42843
|
-
capScope: "system",
|
|
42844
|
-
addonId: null,
|
|
42845
|
-
access: "view"
|
|
42846
|
-
},
|
|
42847
|
-
"decoder.listActiveSessions": {
|
|
42848
|
-
capName: "decoder",
|
|
42849
|
-
capScope: "system",
|
|
42850
|
-
addonId: null,
|
|
42851
|
-
access: "view"
|
|
42852
|
-
},
|
|
42853
|
-
"decoder.openStream": {
|
|
42854
|
-
capName: "decoder",
|
|
42855
|
-
capScope: "system",
|
|
42856
|
-
addonId: null,
|
|
42857
|
-
access: "view"
|
|
42858
|
-
},
|
|
42859
|
-
"decoder.pullFrames": {
|
|
42860
|
-
capName: "decoder",
|
|
42861
|
-
capScope: "system",
|
|
42862
|
-
addonId: null,
|
|
42863
|
-
access: "view"
|
|
42864
|
-
},
|
|
42865
|
-
"decoder.pullHandles": {
|
|
42866
|
-
capName: "decoder",
|
|
42867
|
-
capScope: "system",
|
|
42868
|
-
addonId: null,
|
|
42869
|
-
access: "view"
|
|
42870
|
-
},
|
|
42871
|
-
"decoder.pushPacket": {
|
|
42872
|
-
capName: "decoder",
|
|
42873
|
-
capScope: "system",
|
|
42874
|
-
addonId: null,
|
|
42875
|
-
access: "view"
|
|
42876
|
-
},
|
|
42877
43530
|
"decoder.reprobeHwaccel": {
|
|
42878
43531
|
capName: "decoder",
|
|
42879
43532
|
capScope: "system",
|
|
42880
43533
|
addonId: null,
|
|
42881
43534
|
access: "create"
|
|
42882
43535
|
},
|
|
42883
|
-
"decoder.supportsCodec": {
|
|
42884
|
-
capName: "decoder",
|
|
42885
|
-
capScope: "system",
|
|
42886
|
-
addonId: null,
|
|
42887
|
-
access: "view"
|
|
42888
|
-
},
|
|
42889
|
-
"decoder.updateConfig": {
|
|
42890
|
-
capName: "decoder",
|
|
42891
|
-
capScope: "system",
|
|
42892
|
-
addonId: null,
|
|
42893
|
-
access: "view"
|
|
42894
|
-
},
|
|
42895
43536
|
"detectionPipeline.applyDeviceSettingsPatch": {
|
|
42896
43537
|
capName: "detection-pipeline",
|
|
42897
43538
|
capScope: "device",
|
|
@@ -44380,12 +45021,24 @@ Object.freeze({
|
|
|
44380
45021
|
addonId: null,
|
|
44381
45022
|
access: "view"
|
|
44382
45023
|
},
|
|
45024
|
+
"localNetwork.addCustomAddress": {
|
|
45025
|
+
capName: "local-network",
|
|
45026
|
+
capScope: "system",
|
|
45027
|
+
addonId: null,
|
|
45028
|
+
access: "create"
|
|
45029
|
+
},
|
|
44383
45030
|
"localNetwork.downloadCa": {
|
|
44384
45031
|
capName: "local-network",
|
|
44385
45032
|
capScope: "system",
|
|
44386
45033
|
addonId: null,
|
|
44387
45034
|
access: "view"
|
|
44388
45035
|
},
|
|
45036
|
+
"localNetwork.getAddresses": {
|
|
45037
|
+
capName: "local-network",
|
|
45038
|
+
capScope: "system",
|
|
45039
|
+
addonId: null,
|
|
45040
|
+
access: "view"
|
|
45041
|
+
},
|
|
44389
45042
|
"localNetwork.getAllowedAddresses": {
|
|
44390
45043
|
capName: "local-network",
|
|
44391
45044
|
capScope: "system",
|
|
@@ -44398,6 +45051,12 @@ Object.freeze({
|
|
|
44398
45051
|
addonId: null,
|
|
44399
45052
|
access: "view"
|
|
44400
45053
|
},
|
|
45054
|
+
"localNetwork.getHubAddresses": {
|
|
45055
|
+
capName: "local-network",
|
|
45056
|
+
capScope: "system",
|
|
45057
|
+
addonId: null,
|
|
45058
|
+
access: "view"
|
|
45059
|
+
},
|
|
44401
45060
|
"localNetwork.getNotificationEndpoint": {
|
|
44402
45061
|
capName: "local-network",
|
|
44403
45062
|
capScope: "system",
|
|
@@ -44434,6 +45093,12 @@ Object.freeze({
|
|
|
44434
45093
|
addonId: null,
|
|
44435
45094
|
access: "create"
|
|
44436
45095
|
},
|
|
45096
|
+
"localNetwork.removeCustomAddress": {
|
|
45097
|
+
capName: "local-network",
|
|
45098
|
+
capScope: "system",
|
|
45099
|
+
addonId: null,
|
|
45100
|
+
access: "delete"
|
|
45101
|
+
},
|
|
44437
45102
|
"localNetwork.resetAllowlistToBestMatch": {
|
|
44438
45103
|
capName: "local-network",
|
|
44439
45104
|
capScope: "system",
|
|
@@ -44446,6 +45111,12 @@ Object.freeze({
|
|
|
44446
45111
|
addonId: null,
|
|
44447
45112
|
access: "create"
|
|
44448
45113
|
},
|
|
45114
|
+
"localNetwork.setAddressRole": {
|
|
45115
|
+
capName: "local-network",
|
|
45116
|
+
capScope: "system",
|
|
45117
|
+
addonId: null,
|
|
45118
|
+
access: "create"
|
|
45119
|
+
},
|
|
44449
45120
|
"localNetwork.setAllowedAddresses": {
|
|
44450
45121
|
capName: "local-network",
|
|
44451
45122
|
capScope: "system",
|
|
@@ -45892,6 +46563,12 @@ Object.freeze({
|
|
|
45892
46563
|
addonId: null,
|
|
45893
46564
|
access: "create"
|
|
45894
46565
|
},
|
|
46566
|
+
"pipelineAnalytics.setRetrainFrameComplete": {
|
|
46567
|
+
capName: "pipeline-analytics",
|
|
46568
|
+
capScope: "device",
|
|
46569
|
+
addonId: null,
|
|
46570
|
+
access: "create"
|
|
46571
|
+
},
|
|
45895
46572
|
"pipelineAnalytics.setTrackFlags": {
|
|
45896
46573
|
capName: "pipeline-analytics",
|
|
45897
46574
|
capScope: "device",
|
|
@@ -45928,6 +46605,12 @@ Object.freeze({
|
|
|
45928
46605
|
addonId: null,
|
|
45929
46606
|
access: "delete"
|
|
45930
46607
|
},
|
|
46608
|
+
"pipelineAnalytics.writeRetrainArchive": {
|
|
46609
|
+
capName: "pipeline-analytics",
|
|
46610
|
+
capScope: "device",
|
|
46611
|
+
addonId: null,
|
|
46612
|
+
access: "create"
|
|
46613
|
+
},
|
|
45931
46614
|
"pipelineExecutor.cacheFrameInPool": {
|
|
45932
46615
|
capName: "pipeline-executor",
|
|
45933
46616
|
capScope: "system",
|
|
@@ -45940,13 +46623,13 @@ Object.freeze({
|
|
|
45940
46623
|
addonId: null,
|
|
45941
46624
|
access: "delete"
|
|
45942
46625
|
},
|
|
45943
|
-
"pipelineExecutor.
|
|
46626
|
+
"pipelineExecutor.clearModelBoundDeviceOverrides": {
|
|
45944
46627
|
capName: "pipeline-executor",
|
|
45945
46628
|
capScope: "system",
|
|
45946
46629
|
addonId: null,
|
|
45947
46630
|
access: "delete"
|
|
45948
46631
|
},
|
|
45949
|
-
"pipelineExecutor.
|
|
46632
|
+
"pipelineExecutor.deleteModel": {
|
|
45950
46633
|
capName: "pipeline-executor",
|
|
45951
46634
|
capScope: "system",
|
|
45952
46635
|
addonId: null,
|
|
@@ -46090,12 +46773,6 @@ Object.freeze({
|
|
|
46090
46773
|
addonId: null,
|
|
46091
46774
|
access: "view"
|
|
46092
46775
|
},
|
|
46093
|
-
"pipelineExecutor.listTemplates": {
|
|
46094
|
-
capName: "pipeline-executor",
|
|
46095
|
-
capScope: "system",
|
|
46096
|
-
addonId: null,
|
|
46097
|
-
access: "view"
|
|
46098
|
-
},
|
|
46099
46776
|
"pipelineExecutor.rearmInferenceDevice": {
|
|
46100
46777
|
capName: "pipeline-executor",
|
|
46101
46778
|
capScope: "system",
|
|
@@ -46120,12 +46797,6 @@ Object.freeze({
|
|
|
46120
46797
|
addonId: null,
|
|
46121
46798
|
access: "create"
|
|
46122
46799
|
},
|
|
46123
|
-
"pipelineExecutor.saveTemplate": {
|
|
46124
|
-
capName: "pipeline-executor",
|
|
46125
|
-
capScope: "system",
|
|
46126
|
-
addonId: null,
|
|
46127
|
-
access: "create"
|
|
46128
|
-
},
|
|
46129
46800
|
"pipelineExecutor.setVideoPipelineSteps": {
|
|
46130
46801
|
capName: "pipeline-executor",
|
|
46131
46802
|
capScope: "system",
|
|
@@ -46144,41 +46815,35 @@ Object.freeze({
|
|
|
46144
46815
|
addonId: null,
|
|
46145
46816
|
access: "create"
|
|
46146
46817
|
},
|
|
46147
|
-
"pipelineExecutor.updateTemplate": {
|
|
46148
|
-
capName: "pipeline-executor",
|
|
46149
|
-
capScope: "system",
|
|
46150
|
-
addonId: null,
|
|
46151
|
-
access: "create"
|
|
46152
|
-
},
|
|
46153
46818
|
"pipelineExecutor.validatePipeline": {
|
|
46154
46819
|
capName: "pipeline-executor",
|
|
46155
46820
|
capScope: "system",
|
|
46156
46821
|
addonId: null,
|
|
46157
46822
|
access: "view"
|
|
46158
46823
|
},
|
|
46159
|
-
"pipelineOrchestrator.
|
|
46824
|
+
"pipelineOrchestrator.applyAutoTune": {
|
|
46160
46825
|
capName: "pipeline-orchestrator",
|
|
46161
46826
|
capScope: "system",
|
|
46162
46827
|
addonId: null,
|
|
46163
46828
|
access: "create"
|
|
46164
46829
|
},
|
|
46165
|
-
"pipelineOrchestrator.
|
|
46830
|
+
"pipelineOrchestrator.applyDeviceSettingsPatch": {
|
|
46166
46831
|
capName: "pipeline-orchestrator",
|
|
46167
46832
|
capScope: "system",
|
|
46168
46833
|
addonId: null,
|
|
46169
46834
|
access: "create"
|
|
46170
46835
|
},
|
|
46171
|
-
"pipelineOrchestrator.
|
|
46836
|
+
"pipelineOrchestrator.assignAudio": {
|
|
46172
46837
|
capName: "pipeline-orchestrator",
|
|
46173
46838
|
capScope: "system",
|
|
46174
46839
|
addonId: null,
|
|
46175
46840
|
access: "create"
|
|
46176
46841
|
},
|
|
46177
|
-
"pipelineOrchestrator.
|
|
46842
|
+
"pipelineOrchestrator.assignPipeline": {
|
|
46178
46843
|
capName: "pipeline-orchestrator",
|
|
46179
46844
|
capScope: "system",
|
|
46180
46845
|
addonId: null,
|
|
46181
|
-
access: "
|
|
46846
|
+
access: "create"
|
|
46182
46847
|
},
|
|
46183
46848
|
"pipelineOrchestrator.getAgentLoad": {
|
|
46184
46849
|
capName: "pipeline-orchestrator",
|
|
@@ -46270,6 +46935,12 @@ Object.freeze({
|
|
|
46270
46935
|
addonId: null,
|
|
46271
46936
|
access: "view"
|
|
46272
46937
|
},
|
|
46938
|
+
"pipelineOrchestrator.getEffectiveShares": {
|
|
46939
|
+
capName: "pipeline-orchestrator",
|
|
46940
|
+
capScope: "system",
|
|
46941
|
+
addonId: null,
|
|
46942
|
+
access: "view"
|
|
46943
|
+
},
|
|
46273
46944
|
"pipelineOrchestrator.getGlobalMetrics": {
|
|
46274
46945
|
capName: "pipeline-orchestrator",
|
|
46275
46946
|
capScope: "system",
|
|
@@ -46306,19 +46977,19 @@ Object.freeze({
|
|
|
46306
46977
|
addonId: null,
|
|
46307
46978
|
access: "view"
|
|
46308
46979
|
},
|
|
46309
|
-
"pipelineOrchestrator.
|
|
46980
|
+
"pipelineOrchestrator.getPlacementStats": {
|
|
46310
46981
|
capName: "pipeline-orchestrator",
|
|
46311
46982
|
capScope: "system",
|
|
46312
46983
|
addonId: null,
|
|
46313
46984
|
access: "view"
|
|
46314
46985
|
},
|
|
46315
|
-
"pipelineOrchestrator.
|
|
46986
|
+
"pipelineOrchestrator.getReconcileFromDiskStatus": {
|
|
46316
46987
|
capName: "pipeline-orchestrator",
|
|
46317
46988
|
capScope: "system",
|
|
46318
46989
|
addonId: null,
|
|
46319
46990
|
access: "view"
|
|
46320
46991
|
},
|
|
46321
|
-
"pipelineOrchestrator.
|
|
46992
|
+
"pipelineOrchestrator.listAgentSettings": {
|
|
46322
46993
|
capName: "pipeline-orchestrator",
|
|
46323
46994
|
capScope: "system",
|
|
46324
46995
|
addonId: null,
|
|
@@ -46330,6 +47001,12 @@ Object.freeze({
|
|
|
46330
47001
|
addonId: null,
|
|
46331
47002
|
access: "create"
|
|
46332
47003
|
},
|
|
47004
|
+
"pipelineOrchestrator.planAutoTune": {
|
|
47005
|
+
capName: "pipeline-orchestrator",
|
|
47006
|
+
capScope: "system",
|
|
47007
|
+
addonId: null,
|
|
47008
|
+
access: "view"
|
|
47009
|
+
},
|
|
46333
47010
|
"pipelineOrchestrator.rebalance": {
|
|
46334
47011
|
capName: "pipeline-orchestrator",
|
|
46335
47012
|
capScope: "system",
|
|
@@ -46372,12 +47049,6 @@ Object.freeze({
|
|
|
46372
47049
|
addonId: null,
|
|
46373
47050
|
access: "create"
|
|
46374
47051
|
},
|
|
46375
|
-
"pipelineOrchestrator.saveTemplate": {
|
|
46376
|
-
capName: "pipeline-orchestrator",
|
|
46377
|
-
capScope: "system",
|
|
46378
|
-
addonId: null,
|
|
46379
|
-
access: "create"
|
|
46380
|
-
},
|
|
46381
47052
|
"pipelineOrchestrator.setAgentCapabilities": {
|
|
46382
47053
|
capName: "pipeline-orchestrator",
|
|
46383
47054
|
capScope: "system",
|
|
@@ -46390,12 +47061,6 @@ Object.freeze({
|
|
|
46390
47061
|
addonId: null,
|
|
46391
47062
|
access: "create"
|
|
46392
47063
|
},
|
|
46393
|
-
"pipelineOrchestrator.setAgentDetectWeight": {
|
|
46394
|
-
capName: "pipeline-orchestrator",
|
|
46395
|
-
capScope: "system",
|
|
46396
|
-
addonId: null,
|
|
46397
|
-
access: "create"
|
|
46398
|
-
},
|
|
46399
47064
|
"pipelineOrchestrator.setAgentInferenceDevices": {
|
|
46400
47065
|
capName: "pipeline-orchestrator",
|
|
46401
47066
|
capScope: "system",
|
|
@@ -46432,6 +47097,12 @@ Object.freeze({
|
|
|
46432
47097
|
addonId: null,
|
|
46433
47098
|
access: "create"
|
|
46434
47099
|
},
|
|
47100
|
+
"pipelineOrchestrator.setCameraStepSettings": {
|
|
47101
|
+
capName: "pipeline-orchestrator",
|
|
47102
|
+
capScope: "system",
|
|
47103
|
+
addonId: null,
|
|
47104
|
+
access: "create"
|
|
47105
|
+
},
|
|
46435
47106
|
"pipelineOrchestrator.setCameraStepToggle": {
|
|
46436
47107
|
capName: "pipeline-orchestrator",
|
|
46437
47108
|
capScope: "system",
|
|
@@ -46450,25 +47121,37 @@ Object.freeze({
|
|
|
46450
47121
|
addonId: null,
|
|
46451
47122
|
access: "create"
|
|
46452
47123
|
},
|
|
47124
|
+
"pipelineOrchestrator.setLoadBalancingShares": {
|
|
47125
|
+
capName: "pipeline-orchestrator",
|
|
47126
|
+
capScope: "system",
|
|
47127
|
+
addonId: null,
|
|
47128
|
+
access: "create"
|
|
47129
|
+
},
|
|
46453
47130
|
"pipelineOrchestrator.setPipelineDevicePin": {
|
|
46454
47131
|
capName: "pipeline-orchestrator",
|
|
46455
47132
|
capScope: "system",
|
|
46456
47133
|
addonId: null,
|
|
46457
47134
|
access: "create"
|
|
46458
47135
|
},
|
|
46459
|
-
"pipelineOrchestrator.
|
|
47136
|
+
"pipelineOrchestrator.setShareSource": {
|
|
46460
47137
|
capName: "pipeline-orchestrator",
|
|
46461
47138
|
capScope: "system",
|
|
46462
47139
|
addonId: null,
|
|
46463
47140
|
access: "create"
|
|
46464
47141
|
},
|
|
46465
|
-
"pipelineOrchestrator.
|
|
47142
|
+
"pipelineOrchestrator.suggestShares": {
|
|
47143
|
+
capName: "pipeline-orchestrator",
|
|
47144
|
+
capScope: "system",
|
|
47145
|
+
addonId: null,
|
|
47146
|
+
access: "view"
|
|
47147
|
+
},
|
|
47148
|
+
"pipelineOrchestrator.unassignAudio": {
|
|
46466
47149
|
capName: "pipeline-orchestrator",
|
|
46467
47150
|
capScope: "system",
|
|
46468
47151
|
addonId: null,
|
|
46469
47152
|
access: "create"
|
|
46470
47153
|
},
|
|
46471
|
-
"pipelineOrchestrator.
|
|
47154
|
+
"pipelineOrchestrator.unassignPipeline": {
|
|
46472
47155
|
capName: "pipeline-orchestrator",
|
|
46473
47156
|
capScope: "system",
|
|
46474
47157
|
addonId: null,
|
|
@@ -47908,12 +48591,6 @@ Object.freeze({
|
|
|
47908
48591
|
addonId: null,
|
|
47909
48592
|
access: "view"
|
|
47910
48593
|
},
|
|
47911
|
-
"streamBroker.pullFrameHandles": {
|
|
47912
|
-
capName: "stream-broker",
|
|
47913
|
-
capScope: "system",
|
|
47914
|
-
addonId: null,
|
|
47915
|
-
access: "view"
|
|
47916
|
-
},
|
|
47917
48594
|
"streamBroker.regenerateRtspToken": {
|
|
47918
48595
|
capName: "stream-broker",
|
|
47919
48596
|
capScope: "system",
|
|
@@ -47980,12 +48657,6 @@ Object.freeze({
|
|
|
47980
48657
|
addonId: null,
|
|
47981
48658
|
access: "create"
|
|
47982
48659
|
},
|
|
47983
|
-
"streamBroker.subscribeFrames": {
|
|
47984
|
-
capName: "stream-broker",
|
|
47985
|
-
capScope: "system",
|
|
47986
|
-
addonId: null,
|
|
47987
|
-
access: "create"
|
|
47988
|
-
},
|
|
47989
48660
|
"streamBroker.unassignProfile": {
|
|
47990
48661
|
capName: "stream-broker",
|
|
47991
48662
|
capScope: "system",
|
|
@@ -47998,12 +48669,6 @@ Object.freeze({
|
|
|
47998
48669
|
addonId: null,
|
|
47999
48670
|
access: "create"
|
|
48000
48671
|
},
|
|
48001
|
-
"streamBroker.unsubscribeFrames": {
|
|
48002
|
-
capName: "stream-broker",
|
|
48003
|
-
capScope: "system",
|
|
48004
|
-
addonId: null,
|
|
48005
|
-
access: "create"
|
|
48006
|
-
},
|
|
48007
48672
|
"streamCatalog.getCatalog": {
|
|
48008
48673
|
capName: "stream-catalog",
|
|
48009
48674
|
capScope: "device",
|
|
@@ -48298,18 +48963,36 @@ Object.freeze({
|
|
|
48298
48963
|
addonId: null,
|
|
48299
48964
|
access: "delete"
|
|
48300
48965
|
},
|
|
48966
|
+
"userManagement.findUserByExternalIdentity": {
|
|
48967
|
+
capName: "user-management",
|
|
48968
|
+
capScope: "system",
|
|
48969
|
+
addonId: null,
|
|
48970
|
+
access: "view"
|
|
48971
|
+
},
|
|
48301
48972
|
"userManagement.getTotpStatus": {
|
|
48302
48973
|
capName: "user-management",
|
|
48303
48974
|
capScope: "system",
|
|
48304
48975
|
addonId: null,
|
|
48305
48976
|
access: "view"
|
|
48306
48977
|
},
|
|
48978
|
+
"userManagement.linkExternalIdentity": {
|
|
48979
|
+
capName: "user-management",
|
|
48980
|
+
capScope: "system",
|
|
48981
|
+
addonId: null,
|
|
48982
|
+
access: "create"
|
|
48983
|
+
},
|
|
48307
48984
|
"userManagement.listApiKeys": {
|
|
48308
48985
|
capName: "user-management",
|
|
48309
48986
|
capScope: "system",
|
|
48310
48987
|
addonId: null,
|
|
48311
48988
|
access: "view"
|
|
48312
48989
|
},
|
|
48990
|
+
"userManagement.listExternalIdentities": {
|
|
48991
|
+
capName: "user-management",
|
|
48992
|
+
capScope: "system",
|
|
48993
|
+
addonId: null,
|
|
48994
|
+
access: "view"
|
|
48995
|
+
},
|
|
48313
48996
|
"userManagement.listOauthSessions": {
|
|
48314
48997
|
capName: "user-management",
|
|
48315
48998
|
capScope: "system",
|
|
@@ -48388,6 +49071,12 @@ Object.freeze({
|
|
|
48388
49071
|
addonId: null,
|
|
48389
49072
|
access: "create"
|
|
48390
49073
|
},
|
|
49074
|
+
"userManagement.unlinkExternalIdentity": {
|
|
49075
|
+
capName: "user-management",
|
|
49076
|
+
capScope: "system",
|
|
49077
|
+
addonId: null,
|
|
49078
|
+
access: "delete"
|
|
49079
|
+
},
|
|
48391
49080
|
"userManagement.updateUser": {
|
|
48392
49081
|
capName: "user-management",
|
|
48393
49082
|
capScope: "system",
|
|
@@ -48700,6 +49389,12 @@ Object.freeze({
|
|
|
48700
49389
|
addonId: null,
|
|
48701
49390
|
access: "create"
|
|
48702
49391
|
},
|
|
49392
|
+
"webrtcSession.applyDownlinkProbe": {
|
|
49393
|
+
capName: "webrtc-session",
|
|
49394
|
+
capScope: "device",
|
|
49395
|
+
addonId: null,
|
|
49396
|
+
access: "create"
|
|
49397
|
+
},
|
|
48703
49398
|
"webrtcSession.closeSession": {
|
|
48704
49399
|
capName: "webrtc-session",
|
|
48705
49400
|
capScope: "device",
|
|
@@ -50511,11 +51206,6 @@ Object.freeze({
|
|
|
50511
51206
|
form: "single",
|
|
50512
51207
|
optional: false
|
|
50513
51208
|
}],
|
|
50514
|
-
"decoder.createSession": [{
|
|
50515
|
-
name: "deviceId",
|
|
50516
|
-
form: "single",
|
|
50517
|
-
optional: true
|
|
50518
|
-
}],
|
|
50519
51209
|
"detectionPipeline.applyDeviceSettingsPatch": [{
|
|
50520
51210
|
name: "deviceId",
|
|
50521
51211
|
form: "single",
|
|
@@ -51726,6 +52416,11 @@ Object.freeze({
|
|
|
51726
52416
|
form: "single",
|
|
51727
52417
|
optional: false
|
|
51728
52418
|
}],
|
|
52419
|
+
"pipelineAnalytics.setRetrainFrameComplete": [{
|
|
52420
|
+
name: "deviceId",
|
|
52421
|
+
form: "single",
|
|
52422
|
+
optional: false
|
|
52423
|
+
}],
|
|
51729
52424
|
"pipelineAnalytics.setTrackFlags": [{
|
|
51730
52425
|
name: "deviceId",
|
|
51731
52426
|
form: "single",
|
|
@@ -51746,6 +52441,11 @@ Object.freeze({
|
|
|
51746
52441
|
form: "single",
|
|
51747
52442
|
optional: false
|
|
51748
52443
|
}],
|
|
52444
|
+
"pipelineExecutor.clearModelBoundDeviceOverrides": [{
|
|
52445
|
+
name: "deviceIds",
|
|
52446
|
+
form: "array",
|
|
52447
|
+
optional: true
|
|
52448
|
+
}],
|
|
51749
52449
|
"pipelineExecutor.runPipeline": [{
|
|
51750
52450
|
name: "deviceId",
|
|
51751
52451
|
form: "single",
|
|
@@ -51851,6 +52551,11 @@ Object.freeze({
|
|
|
51851
52551
|
form: "single",
|
|
51852
52552
|
optional: false
|
|
51853
52553
|
}],
|
|
52554
|
+
"pipelineOrchestrator.setCameraStepSettings": [{
|
|
52555
|
+
name: "deviceId",
|
|
52556
|
+
form: "single",
|
|
52557
|
+
optional: false
|
|
52558
|
+
}],
|
|
51854
52559
|
"pipelineOrchestrator.setCameraStepToggle": [{
|
|
51855
52560
|
name: "deviceId",
|
|
51856
52561
|
form: "single",
|
|
@@ -52622,6 +53327,11 @@ Object.freeze({
|
|
|
52622
53327
|
form: "single",
|
|
52623
53328
|
optional: false
|
|
52624
53329
|
}],
|
|
53330
|
+
"webrtcSession.applyDownlinkProbe": [{
|
|
53331
|
+
name: "deviceId",
|
|
53332
|
+
form: "single",
|
|
53333
|
+
optional: false
|
|
53334
|
+
}],
|
|
52625
53335
|
"webrtcSession.closeSession": [{
|
|
52626
53336
|
name: "deviceId",
|
|
52627
53337
|
form: "single",
|
|
@@ -52851,6 +53561,8 @@ new Map(Object.entries({
|
|
|
52851
53561
|
"detection-blind": "device-events",
|
|
52852
53562
|
"node-online": "system",
|
|
52853
53563
|
"node-offline": "system",
|
|
53564
|
+
"node-restarting": "system",
|
|
53565
|
+
"node-updating": "system",
|
|
52854
53566
|
"node-inference-unavailable": "system",
|
|
52855
53567
|
"addon-crash-loop": "system",
|
|
52856
53568
|
"addon-update-available": "system",
|
|
@@ -52928,18 +53640,21 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
52928
53640
|
kinds: [
|
|
52929
53641
|
"node-offline",
|
|
52930
53642
|
"node-online",
|
|
53643
|
+
"node-restarting",
|
|
52931
53644
|
"node-inference-unavailable"
|
|
52932
53645
|
]
|
|
52933
53646
|
},
|
|
52934
53647
|
{
|
|
52935
53648
|
id: "addons",
|
|
52936
53649
|
family: "system",
|
|
52937
|
-
label: "Addons",
|
|
52938
|
-
kinds: [
|
|
52939
|
-
|
|
52940
|
-
|
|
52941
|
-
|
|
52942
|
-
|
|
53650
|
+
label: "Addons stopped",
|
|
53651
|
+
kinds: ["addon-crash-loop"]
|
|
53652
|
+
},
|
|
53653
|
+
{
|
|
53654
|
+
id: "addon-updates",
|
|
53655
|
+
family: "system",
|
|
53656
|
+
label: "Addon updates",
|
|
53657
|
+
kinds: ["addon-update-available", "addon-updated"]
|
|
52943
53658
|
},
|
|
52944
53659
|
{
|
|
52945
53660
|
id: "updates",
|
|
@@ -52947,6 +53662,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
52947
53662
|
label: "Server & container updates",
|
|
52948
53663
|
kinds: [
|
|
52949
53664
|
"server-update-available",
|
|
53665
|
+
"node-updating",
|
|
52950
53666
|
"server-updated",
|
|
52951
53667
|
"wrapper-update-available"
|
|
52952
53668
|
]
|
|
@@ -53094,18 +53810,21 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
53094
53810
|
kinds: [
|
|
53095
53811
|
"node-offline",
|
|
53096
53812
|
"node-online",
|
|
53813
|
+
"node-restarting",
|
|
53097
53814
|
"node-inference-unavailable"
|
|
53098
53815
|
]
|
|
53099
53816
|
},
|
|
53100
53817
|
{
|
|
53101
53818
|
name: "summaryAddons",
|
|
53102
|
-
label: "Summary: addons",
|
|
53103
|
-
example: "
|
|
53104
|
-
kinds: [
|
|
53105
|
-
|
|
53106
|
-
|
|
53107
|
-
|
|
53108
|
-
|
|
53819
|
+
label: "Summary: addons stopped",
|
|
53820
|
+
example: "hub — recorder stopped after repeated crashes",
|
|
53821
|
+
kinds: ["addon-crash-loop"]
|
|
53822
|
+
},
|
|
53823
|
+
{
|
|
53824
|
+
name: "summaryAddonUpdates",
|
|
53825
|
+
label: "Summary: addon updates",
|
|
53826
|
+
example: "hub:\n• @camstack/addon-recorder 1.2.3 → 1.2.4",
|
|
53827
|
+
kinds: ["addon-update-available", "addon-updated"]
|
|
53109
53828
|
},
|
|
53110
53829
|
{
|
|
53111
53830
|
name: "summaryUpdates",
|
|
@@ -53113,6 +53832,7 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
53113
53832
|
example: "server 1.2.377 → 1.2.378",
|
|
53114
53833
|
kinds: [
|
|
53115
53834
|
"server-update-available",
|
|
53835
|
+
"node-updating",
|
|
53116
53836
|
"server-updated",
|
|
53117
53837
|
"wrapper-update-available"
|
|
53118
53838
|
]
|
|
@@ -53145,7 +53865,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
53145
53865
|
{
|
|
53146
53866
|
name: "summarySection",
|
|
53147
53867
|
label: "Summary: this section",
|
|
53148
|
-
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.",
|
|
53149
53869
|
example: "Batterie scariche",
|
|
53150
53870
|
group: "system",
|
|
53151
53871
|
families: ["rule"],
|
|
@@ -53189,6 +53909,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
53189
53909
|
[...RULE_BODY_ONLY],
|
|
53190
53910
|
[...RULE_TEXT],
|
|
53191
53911
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
53912
|
+
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
53192
53913
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
53193
53914
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
53194
53915
|
([...RULE_TEXT], [...CONSUMABLE]),
|
|
@@ -53229,6 +53950,8 @@ var STATE_SUMMARY_VARS = [
|
|
|
53229
53950
|
[...RULE_TEXT],
|
|
53230
53951
|
[...RULE_TEXT],
|
|
53231
53952
|
[...RULE_TEXT],
|
|
53953
|
+
[...RULE_TEXT],
|
|
53954
|
+
[...RULE_TEXT],
|
|
53232
53955
|
...STATE_SUMMARY_VARS
|
|
53233
53956
|
];
|
|
53234
53957
|
new Set([
|
|
@@ -53777,7 +54500,7 @@ var TuyaRegionSchema = _enum(TUYA_REGION_VALUES);
|
|
|
53777
54500
|
*/
|
|
53778
54501
|
var tuyaConfigSchema = object({
|
|
53779
54502
|
accessId: string().min(1).describe("Tuya IoT project Access ID / Client ID"),
|
|
53780
|
-
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 }),
|
|
53781
54504
|
region: TuyaRegionSchema.default("eu").describe("Tuya cloud data-centre region"),
|
|
53782
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")
|
|
53783
54506
|
});
|
|
@@ -54042,7 +54765,7 @@ var tuyaConnections = new TuyaConnectionResolver();
|
|
|
54042
54765
|
var tuyaDeviceConfigSchema = object({
|
|
54043
54766
|
integrationId: string().min(1).describe("Owning Tuya integration id"),
|
|
54044
54767
|
tuyaDeviceId: string().min(1).describe("Tuya cloud device id (gwId/devId)"),
|
|
54045
|
-
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 }),
|
|
54046
54769
|
host: string().default("").describe("Device LAN IP / host"),
|
|
54047
54770
|
version: string().default("3.3").describe("Tuya protocol version (3.1–3.5)"),
|
|
54048
54771
|
switchDp: string().default("1").describe("Boolean DP a raw switch drives"),
|