@camstack/addon-provider-unraid 0.2.26 → 0.2.28
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 +432 -50
- package/dist/addon.mjs +432 -50
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -5801,6 +5801,13 @@ var BaseAddon = class {
|
|
|
5801
5801
|
_readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
|
|
5802
5802
|
/** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
|
|
5803
5803
|
_registeredCapNames = [];
|
|
5804
|
+
/**
|
|
5805
|
+
* True only after `readAddonStore` actually answered. Constructor
|
|
5806
|
+
* defaults look like stored config when the store is down — a forked
|
|
5807
|
+
* addon that auto-starts from those defaults (cloudflare-tunnel quick
|
|
5808
|
+
* mode, 2026-08-25) is not "the operator chose this".
|
|
5809
|
+
*/
|
|
5810
|
+
settingsStoreReady = false;
|
|
5804
5811
|
/** Default config values. Provided via constructor. */
|
|
5805
5812
|
defaults;
|
|
5806
5813
|
constructor(defaults) {
|
|
@@ -6201,7 +6208,9 @@ var BaseAddon = class {
|
|
|
6201
6208
|
];
|
|
6202
6209
|
let lastErr;
|
|
6203
6210
|
for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
|
|
6204
|
-
|
|
6211
|
+
const stored = await settings.readAddonStore() ?? {};
|
|
6212
|
+
this.settingsStoreReady = true;
|
|
6213
|
+
return stored;
|
|
6205
6214
|
} catch (err) {
|
|
6206
6215
|
lastErr = err;
|
|
6207
6216
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -6209,6 +6218,7 @@ var BaseAddon = class {
|
|
|
6209
6218
|
if (attempt === delaysMs.length) break;
|
|
6210
6219
|
await new Promise((r) => setTimeout(r, delaysMs[attempt]));
|
|
6211
6220
|
}
|
|
6221
|
+
this.settingsStoreReady = false;
|
|
6212
6222
|
this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
|
|
6213
6223
|
return {};
|
|
6214
6224
|
}
|
|
@@ -8020,6 +8030,15 @@ var LabelDefinitionSchema = object({
|
|
|
8020
8030
|
description: string().optional(),
|
|
8021
8031
|
icon: string().optional()
|
|
8022
8032
|
});
|
|
8033
|
+
var ClassMapDefinitionSchema = object({
|
|
8034
|
+
mapping: record(string(), _enum([
|
|
8035
|
+
"person",
|
|
8036
|
+
"vehicle",
|
|
8037
|
+
"animal",
|
|
8038
|
+
"package"
|
|
8039
|
+
])),
|
|
8040
|
+
preserveOriginal: boolean()
|
|
8041
|
+
});
|
|
8023
8042
|
var MODEL_FORMATS = [
|
|
8024
8043
|
"onnx",
|
|
8025
8044
|
"coreml",
|
|
@@ -8103,6 +8122,12 @@ var ModelVariantGroupSchema = object({
|
|
|
8103
8122
|
*/
|
|
8104
8123
|
resolution: number().int().positive().optional()
|
|
8105
8124
|
});
|
|
8125
|
+
var ModelProviderIdSchema = _enum([
|
|
8126
|
+
"camstack",
|
|
8127
|
+
"frigate",
|
|
8128
|
+
"scrypted",
|
|
8129
|
+
"custom"
|
|
8130
|
+
]);
|
|
8106
8131
|
var ModelCatalogEntrySchema = object({
|
|
8107
8132
|
id: string(),
|
|
8108
8133
|
name: string(),
|
|
@@ -8198,7 +8223,19 @@ var ModelCatalogEntrySchema = object({
|
|
|
8198
8223
|
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
8199
8224
|
* is a presentation overlay resolved back to an `id`.
|
|
8200
8225
|
*/
|
|
8201
|
-
group: ModelVariantGroupSchema.optional()
|
|
8226
|
+
group: ModelVariantGroupSchema.optional(),
|
|
8227
|
+
/**
|
|
8228
|
+
* Catalog source for the pipeline stepper's provider-first picker. Absent on
|
|
8229
|
+
* built-in CamStack entries (treated as `camstack`) and on registry rows
|
|
8230
|
+
* persisted before this field existed (`inferModelProvider` fills those).
|
|
8231
|
+
*/
|
|
8232
|
+
provider: ModelProviderIdSchema.optional(),
|
|
8233
|
+
/**
|
|
8234
|
+
* Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
|
|
8235
|
+
* applies (Frigate / COCO public catalog). Set on a custom model whose raw
|
|
8236
|
+
* labels already ARE the CamStack macros (Scrypted identity map).
|
|
8237
|
+
*/
|
|
8238
|
+
classMap: ClassMapDefinitionSchema.optional()
|
|
8202
8239
|
});
|
|
8203
8240
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
8204
8241
|
format: literal("openvino"),
|
|
@@ -8227,7 +8264,8 @@ var ModelConvertMetadataSchema = object({
|
|
|
8227
8264
|
"ocr",
|
|
8228
8265
|
"segmentation"
|
|
8229
8266
|
]),
|
|
8230
|
-
faceAlignment: boolean().optional()
|
|
8267
|
+
faceAlignment: boolean().optional(),
|
|
8268
|
+
classMap: ClassMapDefinitionSchema.optional()
|
|
8231
8269
|
});
|
|
8232
8270
|
var ConvertResultSchema = object({
|
|
8233
8271
|
entry: ModelCatalogEntrySchema,
|
|
@@ -11984,6 +12022,27 @@ var LinkedDeviceSchema = object({
|
|
|
11984
12022
|
features: array(string()),
|
|
11985
12023
|
producesTrackedEvents: boolean().optional()
|
|
11986
12024
|
});
|
|
12025
|
+
/** One camera's resolved linked set, tagged with the camera it belongs to.
|
|
12026
|
+
* The batch answer needs the tag; the single-device answer already has it
|
|
12027
|
+
* from the input, which is why `getLinkedDevices` keeps the untagged shape. */
|
|
12028
|
+
var LinkedDevicesForDeviceSchema = object({
|
|
12029
|
+
deviceId: number(),
|
|
12030
|
+
mode: LinkedDevicesModeSchema,
|
|
12031
|
+
devices: array(LinkedDeviceSchema)
|
|
12032
|
+
});
|
|
12033
|
+
/** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
|
|
12034
|
+
* `getAllBindings` all answer in. Declared once: three copies of the same
|
|
12035
|
+
* object literal is exactly how the three drift apart. */
|
|
12036
|
+
var DeviceBindingsForDeviceSchema = object({
|
|
12037
|
+
deviceId: number(),
|
|
12038
|
+
entries: array(object({
|
|
12039
|
+
capName: string(),
|
|
12040
|
+
kind: _enum(["native", "wrapped"]),
|
|
12041
|
+
providerAddonId: string(),
|
|
12042
|
+
providerNodeId: string(),
|
|
12043
|
+
nativeAddonId: string()
|
|
12044
|
+
}))
|
|
12045
|
+
});
|
|
11987
12046
|
var SavedDeviceRowSchema = object({
|
|
11988
12047
|
/** Numeric id reserved at allocateDeviceId time. */
|
|
11989
12048
|
id: number(),
|
|
@@ -12209,11 +12268,25 @@ method(object({
|
|
|
12209
12268
|
projection: _enum(["full", "slim"]).optional(),
|
|
12210
12269
|
/** Return only camera devices. Filtering server-side instead of
|
|
12211
12270
|
* shipping 293 rows to find 12. */
|
|
12212
|
-
isCamera: boolean().optional()
|
|
12271
|
+
isCamera: boolean().optional(),
|
|
12272
|
+
/**
|
|
12273
|
+
* Return only these device ids. For the caller that already KNOWS the
|
|
12274
|
+
* handful it wants and needs a field the id-bearing answer does not
|
|
12275
|
+
* carry — the viewer's linked-devices panel joins `type` and `online`
|
|
12276
|
+
* onto ~8 linked ids and, unfiltered, dragged the fleet across to do
|
|
12277
|
+
* it: 433 KB slim / 958 KB full for 967 devices, on a query that
|
|
12278
|
+
* refetches on the reconcile interval, on a phone.
|
|
12279
|
+
*
|
|
12280
|
+
* Safe to send at a hub that predates it: Zod STRIPS unknown input
|
|
12281
|
+
* keys rather than rejecting them (verified against the live hub
|
|
12282
|
+
* 2026-08-25 — 967 rows came back), so an old hub answers exactly what
|
|
12283
|
+
* it answers today and the caller filters as it already does.
|
|
12284
|
+
*/
|
|
12285
|
+
deviceIds: array(number()).optional()
|
|
12213
12286
|
}), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
|
|
12214
12287
|
mode: LinkedDevicesModeSchema,
|
|
12215
12288
|
devices: array(LinkedDeviceSchema)
|
|
12216
|
-
})), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
12289
|
+
})), method(object({ deviceIds: array(number()) }), array(LinkedDevicesForDeviceSchema)), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
12217
12290
|
deviceId: number(),
|
|
12218
12291
|
values: record(string(), unknown())
|
|
12219
12292
|
}), object({ success: literal(true) }), {
|
|
@@ -12240,25 +12313,7 @@ method(object({
|
|
|
12240
12313
|
}), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
|
|
12241
12314
|
kind: "mutation",
|
|
12242
12315
|
auth: "admin"
|
|
12243
|
-
}), method(object({ deviceId: number() }), object({
|
|
12244
|
-
deviceId: number(),
|
|
12245
|
-
entries: array(object({
|
|
12246
|
-
capName: string(),
|
|
12247
|
-
kind: _enum(["native", "wrapped"]),
|
|
12248
|
-
providerAddonId: string(),
|
|
12249
|
-
providerNodeId: string(),
|
|
12250
|
-
nativeAddonId: string()
|
|
12251
|
-
}))
|
|
12252
|
-
})), method(object({}), array(object({
|
|
12253
|
-
deviceId: number(),
|
|
12254
|
-
entries: array(object({
|
|
12255
|
-
capName: string(),
|
|
12256
|
-
kind: _enum(["native", "wrapped"]),
|
|
12257
|
-
providerAddonId: string(),
|
|
12258
|
-
providerNodeId: string(),
|
|
12259
|
-
nativeAddonId: string()
|
|
12260
|
-
}))
|
|
12261
|
-
}))), method(object({
|
|
12316
|
+
}), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
|
|
12262
12317
|
deviceId: number(),
|
|
12263
12318
|
capName: string(),
|
|
12264
12319
|
wrapperAddonId: string(),
|
|
@@ -14668,12 +14723,15 @@ var NcOccupancyConditionSchema = object({
|
|
|
14668
14723
|
* there is no second switch that can disagree with the first and every rule
|
|
14669
14724
|
* authored before the decision migrates for free (`audioModeOf`):
|
|
14670
14725
|
*
|
|
14671
|
-
* - **LABEL mode — `labels` present.** The rule fires
|
|
14672
|
-
*
|
|
14673
|
-
* `hitPercent` and `samplingSeconds` are ignored
|
|
14674
|
-
*
|
|
14675
|
-
*
|
|
14676
|
-
*
|
|
14726
|
+
* - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
|
|
14727
|
+
* labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
|
|
14728
|
+
* `hitPercent` and `samplingSeconds` are still ignored — a percentage of
|
|
14729
|
+
* frames is the wrong question for a classifier that labels 1–3 frames
|
|
14730
|
+
* per episode. The count window is the brake that drops a single-frame
|
|
14731
|
+
* false positive; the rule's own `throttle` cooldown is the other. The
|
|
14732
|
+
* per-label confidence floor is the analyzer's (`classificationMinScore`,
|
|
14733
|
+
* per device) — a label only reaches this condition if the classifier was
|
|
14734
|
+
* already confident enough. `confirmHits: 1` restores first-frame fire.
|
|
14677
14735
|
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
14678
14736
|
* the condition: at least `hitPercent`% of the samples over
|
|
14679
14737
|
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
@@ -14700,14 +14758,22 @@ var NcOccupancyConditionSchema = object({
|
|
|
14700
14758
|
* an operator who typed `dog` mean the same thing.
|
|
14701
14759
|
*/
|
|
14702
14760
|
var NcAudioConditionSchema = object({
|
|
14703
|
-
/** LABEL MODE: audio macro labels. Present ⇒
|
|
14761
|
+
/** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
|
|
14704
14762
|
labels: array(string().min(1)).min(1).optional(),
|
|
14705
14763
|
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
14706
14764
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
14707
14765
|
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
14708
14766
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
14709
14767
|
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
14710
|
-
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
14768
|
+
samplingSeconds: number().int().min(1).max(300).default(10),
|
|
14769
|
+
/**
|
|
14770
|
+
* LABEL MODE: how many labelled frames must land inside
|
|
14771
|
+
* {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
|
|
14772
|
+
* Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
|
|
14773
|
+
*/
|
|
14774
|
+
confirmHits: number().int().min(1).max(20).optional(),
|
|
14775
|
+
/** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
|
|
14776
|
+
confirmWindowSec: number().int().min(1).max(60).optional()
|
|
14711
14777
|
});
|
|
14712
14778
|
/**
|
|
14713
14779
|
* Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
|
|
@@ -17081,6 +17147,46 @@ var RecentTracksPageSchema = object({
|
|
|
17081
17147
|
/** Cursor for the next page, or null when this page is the last. */
|
|
17082
17148
|
nextCursor: string().nullable()
|
|
17083
17149
|
});
|
|
17150
|
+
var LIST_GROUPS_DEFAULT_LIMIT = 40;
|
|
17151
|
+
var LIST_GROUPS_MAX_LIMIT = 100;
|
|
17152
|
+
var AnalyticsGroupRecordSchema = object({
|
|
17153
|
+
id: string(),
|
|
17154
|
+
deviceId: number().int(),
|
|
17155
|
+
openedAt: number().int(),
|
|
17156
|
+
closedAt: number().int(),
|
|
17157
|
+
timestamp: number().int(),
|
|
17158
|
+
memberCount: number().int(),
|
|
17159
|
+
memberTrackIds: array(string()).readonly(),
|
|
17160
|
+
className: string(),
|
|
17161
|
+
classes: array(string()).readonly(),
|
|
17162
|
+
/** Relative event-media path, or null when the group has no picture yet. */
|
|
17163
|
+
mediaUrl: string().nullable(),
|
|
17164
|
+
singleton: boolean()
|
|
17165
|
+
});
|
|
17166
|
+
var AnalyticsGroupMemberSchema = object({
|
|
17167
|
+
trackId: string(),
|
|
17168
|
+
deviceId: number().int(),
|
|
17169
|
+
className: string(),
|
|
17170
|
+
firstSeen: number().int(),
|
|
17171
|
+
lastSeen: number().int(),
|
|
17172
|
+
mediaUrl: string().nullable()
|
|
17173
|
+
});
|
|
17174
|
+
var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
|
|
17175
|
+
var ListGroupsQueryInput = object({
|
|
17176
|
+
/** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
|
|
17177
|
+
deviceIds: array(number()),
|
|
17178
|
+
/** Window lower bound on `closedAt` (inclusive). */
|
|
17179
|
+
since: number().optional(),
|
|
17180
|
+
/** Window upper bound on `openedAt` (inclusive). */
|
|
17181
|
+
until: number().optional(),
|
|
17182
|
+
limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
|
|
17183
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
17184
|
+
cursor: string().optional()
|
|
17185
|
+
});
|
|
17186
|
+
var ListGroupsPageSchema = object({
|
|
17187
|
+
groups: array(AnalyticsGroupRecordSchema).readonly(),
|
|
17188
|
+
nextCursor: string().nullable()
|
|
17189
|
+
});
|
|
17084
17190
|
var KeyEventQueryInput = object({
|
|
17085
17191
|
deviceId: number(),
|
|
17086
17192
|
/** Window lower bound (track firstSeen ≥ since). */
|
|
@@ -17156,7 +17262,9 @@ var TrackCascadeCountsSchema = object({
|
|
|
17156
17262
|
/** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
|
|
17157
17263
|
plates: number().int(),
|
|
17158
17264
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
17159
|
-
embeddings: number().int()
|
|
17265
|
+
embeddings: number().int(),
|
|
17266
|
+
/** Group membership + group rows removed with their last member (best-effort). */
|
|
17267
|
+
groups: number().int()
|
|
17160
17268
|
});
|
|
17161
17269
|
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
17162
17270
|
var DiskReconcileCountsSchema = object({
|
|
@@ -17302,7 +17410,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17302
17410
|
* stationary registry). Default false: the timeline lists passages,
|
|
17303
17411
|
* not parking records (operator decision, 2026-08-15). */
|
|
17304
17412
|
includeStationary: boolean().optional()
|
|
17305
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(
|
|
17413
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
|
|
17414
|
+
deviceId: number(),
|
|
17415
|
+
groupId: string().min(1)
|
|
17416
|
+
}), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
17306
17417
|
kind: "mutation",
|
|
17307
17418
|
auth: "admin"
|
|
17308
17419
|
}), method(DeviceEventQueryInput, array(MotionEventSchema).readonly()), method(ObjectEventQueryInput, array(ObjectEventSchema).readonly()), method(DeviceEventQueryInput, array(AudioEventSchema).readonly()), method(object({ deviceId: number() }), array(EventKindDescriptorSchema).readonly()), method(object({ deviceIds: array(number()).min(1).max(200) }), array(EventKindsForDeviceSchema).readonly()), method(object({
|
|
@@ -17520,6 +17631,33 @@ var NativeCropRefSchema = object({
|
|
|
17520
17631
|
h: number()
|
|
17521
17632
|
})
|
|
17522
17633
|
});
|
|
17634
|
+
object({
|
|
17635
|
+
crop: object({
|
|
17636
|
+
left: number(),
|
|
17637
|
+
top: number(),
|
|
17638
|
+
width: number().positive(),
|
|
17639
|
+
height: number().positive()
|
|
17640
|
+
}).optional(),
|
|
17641
|
+
content: object({
|
|
17642
|
+
width: number().int().positive(),
|
|
17643
|
+
height: number().int().positive()
|
|
17644
|
+
}),
|
|
17645
|
+
fit: _enum(["stretch", "contain"]),
|
|
17646
|
+
format: _enum([
|
|
17647
|
+
"rgb",
|
|
17648
|
+
"gray",
|
|
17649
|
+
"jpeg"
|
|
17650
|
+
])
|
|
17651
|
+
});
|
|
17652
|
+
var FrameRefSchema = object({
|
|
17653
|
+
registryId: string().min(1),
|
|
17654
|
+
id: string().min(1),
|
|
17655
|
+
width: number().int().positive(),
|
|
17656
|
+
height: number().int().positive(),
|
|
17657
|
+
format: _enum(["rgb", "gray"]),
|
|
17658
|
+
timestamp: number(),
|
|
17659
|
+
capturedAt: number().optional()
|
|
17660
|
+
});
|
|
17523
17661
|
var ModelFormatSchema$1 = _enum([
|
|
17524
17662
|
"onnx",
|
|
17525
17663
|
"coreml",
|
|
@@ -17585,7 +17723,8 @@ var PipelineModelOptionSchema = object({
|
|
|
17585
17723
|
sizeMB: number()
|
|
17586
17724
|
})),
|
|
17587
17725
|
group: ModelVariantGroupSchema.optional(),
|
|
17588
|
-
legacy: boolean().optional()
|
|
17726
|
+
legacy: boolean().optional(),
|
|
17727
|
+
provider: ModelProviderIdSchema.optional()
|
|
17589
17728
|
});
|
|
17590
17729
|
var ConfigFieldBridge = custom();
|
|
17591
17730
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -17764,6 +17903,12 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
17764
17903
|
steps: array(PipelineStepInputSchema).min(1),
|
|
17765
17904
|
frame: FrameInputSchema.optional(),
|
|
17766
17905
|
/**
|
|
17906
|
+
* Process-local lazy frame. Valid only when caller and provider resolve
|
|
17907
|
+
* in the same execution-group process; split/cross-node callers use
|
|
17908
|
+
* `frame`/`image` inline compatibility instead.
|
|
17909
|
+
*/
|
|
17910
|
+
frameRef: FrameRefSchema.optional(),
|
|
17911
|
+
/**
|
|
17767
17912
|
* CB5 shm passthrough — a `FrameHandle` naming the same ring slot
|
|
17768
17913
|
* the decoded pixels live in. One more member of the one-of
|
|
17769
17914
|
* frame/frameHandle/image/imageBase64/referenceImage group.
|
|
@@ -18059,7 +18204,10 @@ var NativeCropResultSchema = object({
|
|
|
18059
18204
|
* Which source served this crop, so a quality-sensitive consumer (the native
|
|
18060
18205
|
* `keyFrame`) can reject a degraded fallback:
|
|
18061
18206
|
* - `native` — cut from the decode worker's retained NATIVE surface (the
|
|
18062
|
-
* quality path).
|
|
18207
|
+
* quality path). A subject-tile serve is also native-resolution and stays
|
|
18208
|
+
* `native` here: the public enum cannot name `tile` without a breaking cap
|
|
18209
|
+
* change. Runner telemetry distinguishes lease vs tile via `source` on the
|
|
18210
|
+
* internal crop result (`nativeHits` vs `tileHits`).
|
|
18063
18211
|
* - `ram-fullframe` — the native surface MISSED but the request was full-frame,
|
|
18064
18212
|
* so the ≤640 RAM `RetainedFrameStore` served it (honest lower-res; legit for
|
|
18065
18213
|
* the blank-frame guard / 640-snapshot resolve, NOT for the clean keyFrame).
|
|
@@ -18550,12 +18698,41 @@ var RunnerLocalLoadSchema = object({
|
|
|
18550
18698
|
* legacy `OrchestratorMetricsSchema` shape so existing dashboards keep
|
|
18551
18699
|
* working unchanged when they switch to reading from the runner cap.
|
|
18552
18700
|
*/
|
|
18701
|
+
var FrameLazyCountersSchema = object({
|
|
18702
|
+
framesDecoded: number(),
|
|
18703
|
+
framesAdmitted: number(),
|
|
18704
|
+
framesDroppedPixelFree: number(),
|
|
18705
|
+
viewsMaterialized: number(),
|
|
18706
|
+
viewsSkipped: number(),
|
|
18707
|
+
workerToRunnerBytes: number(),
|
|
18708
|
+
runnerToPoolRawBytes: number(),
|
|
18709
|
+
runnerToPoolJpegBytes: number(),
|
|
18710
|
+
onDemandFullFrameRequests: number(),
|
|
18711
|
+
onDemandCropRequests: number(),
|
|
18712
|
+
nativeHits: number(),
|
|
18713
|
+
nativeMisses: number(),
|
|
18714
|
+
tileHits: number(),
|
|
18715
|
+
tileMisses: number(),
|
|
18716
|
+
fallbackHits: number(),
|
|
18717
|
+
fallbackMisses: number(),
|
|
18718
|
+
retainedWritesAvoided: number(),
|
|
18719
|
+
residentRefs: number(),
|
|
18720
|
+
residentBytes: number(),
|
|
18721
|
+
releases: number(),
|
|
18722
|
+
evictions: number(),
|
|
18723
|
+
staleMisses: number()
|
|
18724
|
+
});
|
|
18725
|
+
var FrameLazyMetricsSchema = object({
|
|
18726
|
+
node: FrameLazyCountersSchema,
|
|
18727
|
+
cameras: array(FrameLazyCountersSchema.extend({ deviceId: number() }))
|
|
18728
|
+
});
|
|
18553
18729
|
var RunnerLocalMetricsSchema = object({
|
|
18554
18730
|
nodeId: string(),
|
|
18555
18731
|
activeCameras: number(),
|
|
18556
18732
|
throttledCameras: number(),
|
|
18557
18733
|
avgInferenceTimeMs: number(),
|
|
18558
|
-
queueDepth: number()
|
|
18734
|
+
queueDepth: number(),
|
|
18735
|
+
frameLazy: FrameLazyMetricsSchema.optional()
|
|
18559
18736
|
});
|
|
18560
18737
|
method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly()), method(object({
|
|
18561
18738
|
handle: FrameHandleSchema,
|
|
@@ -19855,6 +20032,9 @@ method(_void(), ProviderInfoSchema), method(object({ config: record(string(), un
|
|
|
19855
20032
|
location: StorageLocationSchema,
|
|
19856
20033
|
relativePath: string()
|
|
19857
20034
|
}), _void(), { kind: "mutation" }), method(object({ location: StorageLocationSchema }), number().nullable()), method(BeginUploadInputSchema, BeginUploadResultSchema, { kind: "mutation" }), method(WriteChunkInputSchema, _void(), { kind: "mutation" }), method(FinalizeUploadInputSchema, _void(), { kind: "mutation" }), method(AbortUploadInputSchema, _void(), { kind: "mutation" }), method(BeginDownloadInputSchema, BeginDownloadResultSchema, { kind: "mutation" }), method(ReadChunkInputSchema, _instanceof(Uint8Array)), method(EndDownloadInputSchema, _void(), { kind: "mutation" });
|
|
20035
|
+
/** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
|
|
20036
|
+
var ProfileSettingsSchemaBridge = unknown().nullable();
|
|
20037
|
+
var ProfileSettingsBagSchema = record(string(), unknown());
|
|
19858
20038
|
/**
|
|
19859
20039
|
* A live terminal session hosted by the provider addon. Output and input do
|
|
19860
20040
|
* NOT flow through the capability — they use the addon data plane
|
|
@@ -19884,7 +20064,14 @@ var TerminalSessionInfoSchema = object({
|
|
|
19884
20064
|
var TerminalProfileInfoSchema = object({
|
|
19885
20065
|
profileId: string(),
|
|
19886
20066
|
label: string(),
|
|
19887
|
-
description: string().optional()
|
|
20067
|
+
description: string().optional(),
|
|
20068
|
+
/** Spawn defaults the instance form copies on create. */
|
|
20069
|
+
executable: string().optional(),
|
|
20070
|
+
args: array(string()).readonly().optional(),
|
|
20071
|
+
cwd: string().optional(),
|
|
20072
|
+
environment: array(string()).readonly().optional(),
|
|
20073
|
+
/** ConfigUISchema for instance knobs, or null when the profile has none. */
|
|
20074
|
+
settingsSchema: ProfileSettingsSchemaBridge.optional()
|
|
19888
20075
|
});
|
|
19889
20076
|
/**
|
|
19890
20077
|
* A durable operator-created Terminal instance. Profiles are templates; only
|
|
@@ -19897,7 +20084,12 @@ var TerminalInstanceInfoSchema = object({
|
|
|
19897
20084
|
profileId: string(),
|
|
19898
20085
|
profileLabel: string(),
|
|
19899
20086
|
name: string(),
|
|
19900
|
-
enabled: boolean()
|
|
20087
|
+
enabled: boolean(),
|
|
20088
|
+
executable: string(),
|
|
20089
|
+
args: array(string()).readonly(),
|
|
20090
|
+
cwd: string(),
|
|
20091
|
+
environment: array(string()).readonly(),
|
|
20092
|
+
profileSettings: ProfileSettingsBagSchema
|
|
19901
20093
|
});
|
|
19902
20094
|
var TerminalLegacyCameraSchema = object({
|
|
19903
20095
|
stableId: string(),
|
|
@@ -19927,7 +20119,23 @@ var TerminalOutputBatchSchema = object({
|
|
|
19927
20119
|
method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalInstanceInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
19928
20120
|
targetNodeId: string().min(1),
|
|
19929
20121
|
profileId: string().min(1),
|
|
19930
|
-
name: string().trim().min(1).max(160).optional()
|
|
20122
|
+
name: string().trim().min(1).max(160).optional(),
|
|
20123
|
+
executable: string().max(1024).optional(),
|
|
20124
|
+
args: array(string().max(2048)).max(64).optional(),
|
|
20125
|
+
cwd: string().max(1024).optional(),
|
|
20126
|
+
environment: array(string().max(4096)).max(64).optional(),
|
|
20127
|
+
profileSettings: ProfileSettingsBagSchema.optional()
|
|
20128
|
+
}), TerminalInstanceInfoSchema, {
|
|
20129
|
+
kind: "mutation",
|
|
20130
|
+
auth: "admin"
|
|
20131
|
+
}), method(object({
|
|
20132
|
+
instanceId: string().min(1),
|
|
20133
|
+
name: string().trim().min(1).max(160).optional(),
|
|
20134
|
+
executable: string().max(1024).optional(),
|
|
20135
|
+
args: array(string().max(2048)).max(64).optional(),
|
|
20136
|
+
cwd: string().max(1024).optional(),
|
|
20137
|
+
environment: array(string().max(4096)).max(64).optional(),
|
|
20138
|
+
profileSettings: ProfileSettingsBagSchema.optional()
|
|
19931
20139
|
}), TerminalInstanceInfoSchema, {
|
|
19932
20140
|
kind: "mutation",
|
|
19933
20141
|
auth: "admin"
|
|
@@ -19949,7 +20157,11 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
|
|
|
19949
20157
|
}), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
19950
20158
|
profileId: string(),
|
|
19951
20159
|
cols: number().int().positive(),
|
|
19952
|
-
rows: number().int().positive()
|
|
20160
|
+
rows: number().int().positive(),
|
|
20161
|
+
executable: string().max(1024).optional(),
|
|
20162
|
+
args: array(string().max(2048)).max(64).optional(),
|
|
20163
|
+
cwd: string().max(1024).optional(),
|
|
20164
|
+
environment: array(string().max(4096)).max(64).optional()
|
|
19953
20165
|
}), TerminalSessionInfoSchema, {
|
|
19954
20166
|
kind: "mutation",
|
|
19955
20167
|
auth: "admin"
|
|
@@ -23841,10 +24053,10 @@ var lawnMowerControlCapability = {
|
|
|
23841
24053
|
*
|
|
23842
24054
|
* • The SDK (mobile / web client) consumes `getConnectionEndpoints()`
|
|
23843
24055
|
* to receive an ordered list of candidate base URLs it should race
|
|
23844
|
-
* on connect — LAN IPv4 first (lowest latency
|
|
23845
|
-
* then public hostname (if a tunnel is
|
|
23846
|
-
* race them with short timeouts and stick with the
|
|
23847
|
-
* session.
|
|
24056
|
+
* on connect — LAN IPv4 and stable LAN IPv6 first (lowest latency
|
|
24057
|
+
* when on the same network), then public hostname (if a tunnel is
|
|
24058
|
+
* up). The SDK can race them with short timeouts and stick with the
|
|
24059
|
+
* winner for the session.
|
|
23848
24060
|
*
|
|
23849
24061
|
* Why hub-only: agents are not directly addressable by the operator's
|
|
23850
24062
|
* clients — they reverse-connect to the hub. Exposing their interfaces
|
|
@@ -23999,6 +24211,17 @@ var NotificationEndpointSchema = object({
|
|
|
23999
24211
|
/** What the ranking currently resolves to (null when nothing is reachable). */
|
|
24000
24212
|
resolved: string().nullable()
|
|
24001
24213
|
});
|
|
24214
|
+
/**
|
|
24215
|
+
* The URLs the SDK / viewer should race for API access. `baseUrls` empty =
|
|
24216
|
+
* AUTO (every LAN IPv4 + the public tunnel). `resolved` is what that choice
|
|
24217
|
+
* currently expands to, so the UI can show the effective set either way.
|
|
24218
|
+
*/
|
|
24219
|
+
var ViewerEndpointsSchema = object({
|
|
24220
|
+
/** The operator's explicit race set, or empty for AUTO. */
|
|
24221
|
+
baseUrls: array(string()).readonly(),
|
|
24222
|
+
/** What the ranking currently resolves to (may be empty if nothing is up). */
|
|
24223
|
+
resolved: array(string()).readonly()
|
|
24224
|
+
});
|
|
24002
24225
|
var AllowedAddressesSchema = object({
|
|
24003
24226
|
/**
|
|
24004
24227
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -24007,6 +24230,20 @@ var AllowedAddressesSchema = object({
|
|
|
24007
24230
|
* Network Addresses admin page and persisted by the addon.
|
|
24008
24231
|
*/
|
|
24009
24232
|
addresses: array(string()).readonly() });
|
|
24233
|
+
var TlsStatusSchema = object({
|
|
24234
|
+
mode: _enum([
|
|
24235
|
+
"generated",
|
|
24236
|
+
"uploaded",
|
|
24237
|
+
"disabled"
|
|
24238
|
+
]),
|
|
24239
|
+
leafFingerprintSha256: string().nullable(),
|
|
24240
|
+
caFingerprintSha256: string().nullable(),
|
|
24241
|
+
validTo: string().nullable(),
|
|
24242
|
+
sans: array(string()),
|
|
24243
|
+
caCertPem: string().nullable(),
|
|
24244
|
+
reissueError: string().nullable(),
|
|
24245
|
+
restartRequired: boolean()
|
|
24246
|
+
});
|
|
24010
24247
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
24011
24248
|
/**
|
|
24012
24249
|
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
@@ -24016,17 +24253,31 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
24016
24253
|
*/
|
|
24017
24254
|
port: number().int().min(1).max(65535).optional(),
|
|
24018
24255
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
24019
|
-
* candidate. Default `
|
|
24256
|
+
* candidate. Default `false` — loopback is not a client route. */
|
|
24020
24257
|
includeLoopback: boolean().optional(),
|
|
24021
|
-
/** Skip IPv6 entries.
|
|
24022
|
-
*
|
|
24258
|
+
/** Skip IPv6 entries. Default `false` — the palette includes stable
|
|
24259
|
+
* LAN IPv6 (ICE/WebRTC uses dual-stack regardless). Pass `true` to
|
|
24260
|
+
* hide them. The viewer HTTP/WS race is `getViewerEndpoints`. */
|
|
24023
24261
|
ipv4Only: boolean().optional(),
|
|
24024
24262
|
/** Scheme to emit for LAN/loopback URLs. Default `'http'`.
|
|
24025
24263
|
* Pass `'https'` when the caller is itself loaded over HTTPS
|
|
24026
24264
|
* to avoid mixed-content blocks in the browser. The public
|
|
24027
24265
|
* tunnel always emits `https://` regardless. */
|
|
24028
24266
|
scheme: _enum(["http", "https"]).optional()
|
|
24029
|
-
}), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" })
|
|
24267
|
+
}), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" }), method(_void(), TlsStatusSchema), method(object({ reason: string().optional() }), TlsStatusSchema, {
|
|
24268
|
+
kind: "mutation",
|
|
24269
|
+
auth: "admin"
|
|
24270
|
+
}), method(object({
|
|
24271
|
+
certPem: string().min(1),
|
|
24272
|
+
keyPem: string().min(1),
|
|
24273
|
+
caPem: string().optional()
|
|
24274
|
+
}), TlsStatusSchema, {
|
|
24275
|
+
kind: "mutation",
|
|
24276
|
+
auth: "admin"
|
|
24277
|
+
}), method(_void(), object({ pem: string() })), method(_void(), TlsStatusSchema, {
|
|
24278
|
+
kind: "mutation",
|
|
24279
|
+
auth: "admin"
|
|
24280
|
+
});
|
|
24030
24281
|
var LockControlStatusSchema = object({
|
|
24031
24282
|
/** Lifecycle state of the lock. `jammed` means the motor reported
|
|
24032
24283
|
* failure to reach the target — operator intervention required. */
|
|
@@ -25587,7 +25838,12 @@ var PlateInfoSchema = object({
|
|
|
25587
25838
|
plateBbox: BoundingBoxSchema.optional(),
|
|
25588
25839
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
25589
25840
|
keyFrameMediaKey: string().optional(),
|
|
25590
|
-
base64: string().optional()
|
|
25841
|
+
base64: string().optional(),
|
|
25842
|
+
/**
|
|
25843
|
+
* Same crop as a data-plane URL. `getPlateByTrack` returns this and
|
|
25844
|
+
* never inlines JPEG; `listPlates` still inlines for the admin-ui.
|
|
25845
|
+
*/
|
|
25846
|
+
cropUrl: string().optional()
|
|
25591
25847
|
});
|
|
25592
25848
|
var MediaFileLiteSchema = object({
|
|
25593
25849
|
key: string(),
|
|
@@ -31111,6 +31367,12 @@ Object.freeze({
|
|
|
31111
31367
|
addonId: null,
|
|
31112
31368
|
access: "view"
|
|
31113
31369
|
},
|
|
31370
|
+
"deviceManager.getBindingsBatch": {
|
|
31371
|
+
capName: "device-manager",
|
|
31372
|
+
capScope: "system",
|
|
31373
|
+
addonId: null,
|
|
31374
|
+
access: "view"
|
|
31375
|
+
},
|
|
31114
31376
|
"deviceManager.getChildren": {
|
|
31115
31377
|
capName: "device-manager",
|
|
31116
31378
|
capScope: "system",
|
|
@@ -31171,6 +31433,12 @@ Object.freeze({
|
|
|
31171
31433
|
addonId: null,
|
|
31172
31434
|
access: "view"
|
|
31173
31435
|
},
|
|
31436
|
+
"deviceManager.getLinkedDevicesBatch": {
|
|
31437
|
+
capName: "device-manager",
|
|
31438
|
+
capScope: "system",
|
|
31439
|
+
addonId: null,
|
|
31440
|
+
access: "view"
|
|
31441
|
+
},
|
|
31174
31442
|
"deviceManager.getRoleDisplayDefaults": {
|
|
31175
31443
|
capName: "device-manager",
|
|
31176
31444
|
capScope: "system",
|
|
@@ -32053,6 +32321,12 @@ Object.freeze({
|
|
|
32053
32321
|
addonId: null,
|
|
32054
32322
|
access: "create"
|
|
32055
32323
|
},
|
|
32324
|
+
"localNetwork.downloadCa": {
|
|
32325
|
+
capName: "local-network",
|
|
32326
|
+
capScope: "system",
|
|
32327
|
+
addonId: null,
|
|
32328
|
+
access: "view"
|
|
32329
|
+
},
|
|
32056
32330
|
"localNetwork.getAllowedAddresses": {
|
|
32057
32331
|
capName: "local-network",
|
|
32058
32332
|
capScope: "system",
|
|
@@ -32077,18 +32351,42 @@ Object.freeze({
|
|
|
32077
32351
|
addonId: null,
|
|
32078
32352
|
access: "view"
|
|
32079
32353
|
},
|
|
32354
|
+
"localNetwork.getTlsStatus": {
|
|
32355
|
+
capName: "local-network",
|
|
32356
|
+
capScope: "system",
|
|
32357
|
+
addonId: null,
|
|
32358
|
+
access: "view"
|
|
32359
|
+
},
|
|
32360
|
+
"localNetwork.getViewerEndpoints": {
|
|
32361
|
+
capName: "local-network",
|
|
32362
|
+
capScope: "system",
|
|
32363
|
+
addonId: null,
|
|
32364
|
+
access: "view"
|
|
32365
|
+
},
|
|
32080
32366
|
"localNetwork.list": {
|
|
32081
32367
|
capName: "local-network",
|
|
32082
32368
|
capScope: "system",
|
|
32083
32369
|
addonId: null,
|
|
32084
32370
|
access: "view"
|
|
32085
32371
|
},
|
|
32372
|
+
"localNetwork.regenerateCertificate": {
|
|
32373
|
+
capName: "local-network",
|
|
32374
|
+
capScope: "system",
|
|
32375
|
+
addonId: null,
|
|
32376
|
+
access: "create"
|
|
32377
|
+
},
|
|
32086
32378
|
"localNetwork.resetAllowlistToBestMatch": {
|
|
32087
32379
|
capName: "local-network",
|
|
32088
32380
|
capScope: "system",
|
|
32089
32381
|
addonId: null,
|
|
32090
32382
|
access: "delete"
|
|
32091
32383
|
},
|
|
32384
|
+
"localNetwork.revertToGeneratedCertificate": {
|
|
32385
|
+
capName: "local-network",
|
|
32386
|
+
capScope: "system",
|
|
32387
|
+
addonId: null,
|
|
32388
|
+
access: "create"
|
|
32389
|
+
},
|
|
32092
32390
|
"localNetwork.setAllowedAddresses": {
|
|
32093
32391
|
capName: "local-network",
|
|
32094
32392
|
capScope: "system",
|
|
@@ -32101,6 +32399,18 @@ Object.freeze({
|
|
|
32101
32399
|
addonId: null,
|
|
32102
32400
|
access: "create"
|
|
32103
32401
|
},
|
|
32402
|
+
"localNetwork.setViewerEndpoints": {
|
|
32403
|
+
capName: "local-network",
|
|
32404
|
+
capScope: "system",
|
|
32405
|
+
addonId: null,
|
|
32406
|
+
access: "create"
|
|
32407
|
+
},
|
|
32408
|
+
"localNetwork.uploadCertificate": {
|
|
32409
|
+
capName: "local-network",
|
|
32410
|
+
capScope: "system",
|
|
32411
|
+
addonId: null,
|
|
32412
|
+
access: "create"
|
|
32413
|
+
},
|
|
32104
32414
|
"lockControl.lock": {
|
|
32105
32415
|
capName: "lock-control",
|
|
32106
32416
|
capScope: "device",
|
|
@@ -32899,6 +33209,12 @@ Object.freeze({
|
|
|
32899
33209
|
addonId: null,
|
|
32900
33210
|
access: "view"
|
|
32901
33211
|
},
|
|
33212
|
+
"pipelineAnalytics.getGroup": {
|
|
33213
|
+
capName: "pipeline-analytics",
|
|
33214
|
+
capScope: "device",
|
|
33215
|
+
addonId: null,
|
|
33216
|
+
access: "view"
|
|
33217
|
+
},
|
|
32902
33218
|
"pipelineAnalytics.getKeyEvents": {
|
|
32903
33219
|
capName: "pipeline-analytics",
|
|
32904
33220
|
capScope: "device",
|
|
@@ -32983,6 +33299,12 @@ Object.freeze({
|
|
|
32983
33299
|
addonId: null,
|
|
32984
33300
|
access: "view"
|
|
32985
33301
|
},
|
|
33302
|
+
"pipelineAnalytics.listGroups": {
|
|
33303
|
+
capName: "pipeline-analytics",
|
|
33304
|
+
capScope: "device",
|
|
33305
|
+
addonId: null,
|
|
33306
|
+
access: "view"
|
|
33307
|
+
},
|
|
32986
33308
|
"pipelineAnalytics.listOpsLog": {
|
|
32987
33309
|
capName: "pipeline-analytics",
|
|
32988
33310
|
capScope: "device",
|
|
@@ -34981,6 +35303,12 @@ Object.freeze({
|
|
|
34981
35303
|
addonId: null,
|
|
34982
35304
|
access: "create"
|
|
34983
35305
|
},
|
|
35306
|
+
"terminalSession.updateInstance": {
|
|
35307
|
+
capName: "terminal-session",
|
|
35308
|
+
capScope: "system",
|
|
35309
|
+
addonId: null,
|
|
35310
|
+
access: "create"
|
|
35311
|
+
},
|
|
34984
35312
|
"terminalSession.writeInput": {
|
|
34985
35313
|
capName: "terminal-session",
|
|
34986
35314
|
capScope: "system",
|
|
@@ -35758,6 +36086,11 @@ Object.freeze({
|
|
|
35758
36086
|
form: "single",
|
|
35759
36087
|
optional: false
|
|
35760
36088
|
}],
|
|
36089
|
+
"deviceManager.getBindingsBatch": [{
|
|
36090
|
+
name: "deviceIds",
|
|
36091
|
+
form: "array",
|
|
36092
|
+
optional: false
|
|
36093
|
+
}],
|
|
35761
36094
|
"deviceManager.getChildren": [{
|
|
35762
36095
|
name: "parentDeviceId",
|
|
35763
36096
|
form: "single",
|
|
@@ -35803,6 +36136,11 @@ Object.freeze({
|
|
|
35803
36136
|
form: "single",
|
|
35804
36137
|
optional: false
|
|
35805
36138
|
}],
|
|
36139
|
+
"deviceManager.getLinkedDevicesBatch": [{
|
|
36140
|
+
name: "deviceIds",
|
|
36141
|
+
form: "array",
|
|
36142
|
+
optional: false
|
|
36143
|
+
}],
|
|
35806
36144
|
"deviceManager.getSettingsSchema": [{
|
|
35807
36145
|
name: "deviceId",
|
|
35808
36146
|
form: "single",
|
|
@@ -35823,6 +36161,11 @@ Object.freeze({
|
|
|
35823
36161
|
form: "single",
|
|
35824
36162
|
optional: false
|
|
35825
36163
|
}],
|
|
36164
|
+
"deviceManager.listAll": [{
|
|
36165
|
+
name: "deviceIds",
|
|
36166
|
+
form: "array",
|
|
36167
|
+
optional: true
|
|
36168
|
+
}],
|
|
35826
36169
|
"deviceManager.loadConfig": [{
|
|
35827
36170
|
name: "deviceId",
|
|
35828
36171
|
form: "single",
|
|
@@ -36396,6 +36739,11 @@ Object.freeze({
|
|
|
36396
36739
|
form: "single",
|
|
36397
36740
|
optional: false
|
|
36398
36741
|
}],
|
|
36742
|
+
"pipelineAnalytics.getGroup": [{
|
|
36743
|
+
name: "deviceId",
|
|
36744
|
+
form: "single",
|
|
36745
|
+
optional: false
|
|
36746
|
+
}],
|
|
36399
36747
|
"pipelineAnalytics.getKeyEvents": [{
|
|
36400
36748
|
name: "deviceId",
|
|
36401
36749
|
form: "single",
|
|
@@ -36451,6 +36799,11 @@ Object.freeze({
|
|
|
36451
36799
|
form: "array",
|
|
36452
36800
|
optional: false
|
|
36453
36801
|
}],
|
|
36802
|
+
"pipelineAnalytics.listGroups": [{
|
|
36803
|
+
name: "deviceIds",
|
|
36804
|
+
form: "array",
|
|
36805
|
+
optional: false
|
|
36806
|
+
}],
|
|
36454
36807
|
"pipelineAnalytics.listOpsLog": [{
|
|
36455
36808
|
name: "deviceId",
|
|
36456
36809
|
form: "single",
|
|
@@ -37468,6 +37821,35 @@ Object.freeze(Object.fromEntries([{
|
|
|
37468
37821
|
}]
|
|
37469
37822
|
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
37470
37823
|
string().min(1);
|
|
37824
|
+
var CLUSTER_STEP_SETTING_FIELDS = [{
|
|
37825
|
+
stepId: "face-embedding",
|
|
37826
|
+
key: "minLandmarkFaceSize",
|
|
37827
|
+
label: "Min face size for recognition (detection px)",
|
|
37828
|
+
description: "Refuse to embed a face smaller than this IN THE DETECTION FRAME. Applies to every node — the enrolled gallery is one index, and two admission floors would fill it from two policies. 0 disables the gate.",
|
|
37829
|
+
type: "slider",
|
|
37830
|
+
min: 0,
|
|
37831
|
+
max: 64,
|
|
37832
|
+
step: 2,
|
|
37833
|
+
default: 24
|
|
37834
|
+
}];
|
|
37835
|
+
function clusterStepSettingKey(stepId, fieldKey) {
|
|
37836
|
+
return `clusterStepSetting:${stepId}:${fieldKey}`;
|
|
37837
|
+
}
|
|
37838
|
+
var ClusterSettingNumberSchema = number().finite();
|
|
37839
|
+
function readClusterStepSettings(config) {
|
|
37840
|
+
const out = {};
|
|
37841
|
+
for (const field of CLUSTER_STEP_SETTING_FIELDS) {
|
|
37842
|
+
const parsed = ClusterSettingNumberSchema.safeParse(config[clusterStepSettingKey(field.stepId, field.key)]);
|
|
37843
|
+
const value = parsed.success ? parsed.data : field.default;
|
|
37844
|
+
const existing = out[field.stepId] ?? {};
|
|
37845
|
+
out[field.stepId] = {
|
|
37846
|
+
...existing,
|
|
37847
|
+
[field.key]: value
|
|
37848
|
+
};
|
|
37849
|
+
}
|
|
37850
|
+
return out;
|
|
37851
|
+
}
|
|
37852
|
+
readClusterStepSettings({});
|
|
37471
37853
|
object({
|
|
37472
37854
|
/**
|
|
37473
37855
|
* Fraction of the box's own size added on EACH side before cutting.
|