@camstack/addon-provider-wyze 0.2.30 → 0.2.32
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
|
@@ -5833,6 +5833,13 @@ var BaseAddon = class {
|
|
|
5833
5833
|
_readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
|
|
5834
5834
|
/** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
|
|
5835
5835
|
_registeredCapNames = [];
|
|
5836
|
+
/**
|
|
5837
|
+
* True only after `readAddonStore` actually answered. Constructor
|
|
5838
|
+
* defaults look like stored config when the store is down — a forked
|
|
5839
|
+
* addon that auto-starts from those defaults (cloudflare-tunnel quick
|
|
5840
|
+
* mode, 2026-08-25) is not "the operator chose this".
|
|
5841
|
+
*/
|
|
5842
|
+
settingsStoreReady = false;
|
|
5836
5843
|
/** Default config values. Provided via constructor. */
|
|
5837
5844
|
defaults;
|
|
5838
5845
|
constructor(defaults) {
|
|
@@ -6233,7 +6240,9 @@ var BaseAddon = class {
|
|
|
6233
6240
|
];
|
|
6234
6241
|
let lastErr;
|
|
6235
6242
|
for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
|
|
6236
|
-
|
|
6243
|
+
const stored = await settings.readAddonStore() ?? {};
|
|
6244
|
+
this.settingsStoreReady = true;
|
|
6245
|
+
return stored;
|
|
6237
6246
|
} catch (err) {
|
|
6238
6247
|
lastErr = err;
|
|
6239
6248
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -6241,6 +6250,7 @@ var BaseAddon = class {
|
|
|
6241
6250
|
if (attempt === delaysMs.length) break;
|
|
6242
6251
|
await new Promise((r) => setTimeout(r, delaysMs[attempt]));
|
|
6243
6252
|
}
|
|
6253
|
+
this.settingsStoreReady = false;
|
|
6244
6254
|
this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
|
|
6245
6255
|
return {};
|
|
6246
6256
|
}
|
|
@@ -8052,6 +8062,15 @@ var LabelDefinitionSchema = object({
|
|
|
8052
8062
|
description: string().optional(),
|
|
8053
8063
|
icon: string().optional()
|
|
8054
8064
|
});
|
|
8065
|
+
var ClassMapDefinitionSchema = object({
|
|
8066
|
+
mapping: record(string(), _enum([
|
|
8067
|
+
"person",
|
|
8068
|
+
"vehicle",
|
|
8069
|
+
"animal",
|
|
8070
|
+
"package"
|
|
8071
|
+
])),
|
|
8072
|
+
preserveOriginal: boolean()
|
|
8073
|
+
});
|
|
8055
8074
|
var MODEL_FORMATS = [
|
|
8056
8075
|
"onnx",
|
|
8057
8076
|
"coreml",
|
|
@@ -8135,6 +8154,12 @@ var ModelVariantGroupSchema = object({
|
|
|
8135
8154
|
*/
|
|
8136
8155
|
resolution: number().int().positive().optional()
|
|
8137
8156
|
});
|
|
8157
|
+
var ModelProviderIdSchema = _enum([
|
|
8158
|
+
"camstack",
|
|
8159
|
+
"frigate",
|
|
8160
|
+
"scrypted",
|
|
8161
|
+
"custom"
|
|
8162
|
+
]);
|
|
8138
8163
|
var ModelCatalogEntrySchema = object({
|
|
8139
8164
|
id: string(),
|
|
8140
8165
|
name: string(),
|
|
@@ -8230,7 +8255,19 @@ var ModelCatalogEntrySchema = object({
|
|
|
8230
8255
|
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
8231
8256
|
* is a presentation overlay resolved back to an `id`.
|
|
8232
8257
|
*/
|
|
8233
|
-
group: ModelVariantGroupSchema.optional()
|
|
8258
|
+
group: ModelVariantGroupSchema.optional(),
|
|
8259
|
+
/**
|
|
8260
|
+
* Catalog source for the pipeline stepper's provider-first picker. Absent on
|
|
8261
|
+
* built-in CamStack entries (treated as `camstack`) and on registry rows
|
|
8262
|
+
* persisted before this field existed (`inferModelProvider` fills those).
|
|
8263
|
+
*/
|
|
8264
|
+
provider: ModelProviderIdSchema.optional(),
|
|
8265
|
+
/**
|
|
8266
|
+
* Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
|
|
8267
|
+
* applies (Frigate / COCO public catalog). Set on a custom model whose raw
|
|
8268
|
+
* labels already ARE the CamStack macros (Scrypted identity map).
|
|
8269
|
+
*/
|
|
8270
|
+
classMap: ClassMapDefinitionSchema.optional()
|
|
8234
8271
|
});
|
|
8235
8272
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
8236
8273
|
format: literal("openvino"),
|
|
@@ -8259,7 +8296,8 @@ var ModelConvertMetadataSchema = object({
|
|
|
8259
8296
|
"ocr",
|
|
8260
8297
|
"segmentation"
|
|
8261
8298
|
]),
|
|
8262
|
-
faceAlignment: boolean().optional()
|
|
8299
|
+
faceAlignment: boolean().optional(),
|
|
8300
|
+
classMap: ClassMapDefinitionSchema.optional()
|
|
8263
8301
|
});
|
|
8264
8302
|
var ConvertResultSchema = object({
|
|
8265
8303
|
entry: ModelCatalogEntrySchema,
|
|
@@ -12033,6 +12071,27 @@ var LinkedDeviceSchema = object({
|
|
|
12033
12071
|
features: array(string()),
|
|
12034
12072
|
producesTrackedEvents: boolean().optional()
|
|
12035
12073
|
});
|
|
12074
|
+
/** One camera's resolved linked set, tagged with the camera it belongs to.
|
|
12075
|
+
* The batch answer needs the tag; the single-device answer already has it
|
|
12076
|
+
* from the input, which is why `getLinkedDevices` keeps the untagged shape. */
|
|
12077
|
+
var LinkedDevicesForDeviceSchema = object({
|
|
12078
|
+
deviceId: number(),
|
|
12079
|
+
mode: LinkedDevicesModeSchema,
|
|
12080
|
+
devices: array(LinkedDeviceSchema)
|
|
12081
|
+
});
|
|
12082
|
+
/** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
|
|
12083
|
+
* `getAllBindings` all answer in. Declared once: three copies of the same
|
|
12084
|
+
* object literal is exactly how the three drift apart. */
|
|
12085
|
+
var DeviceBindingsForDeviceSchema = object({
|
|
12086
|
+
deviceId: number(),
|
|
12087
|
+
entries: array(object({
|
|
12088
|
+
capName: string(),
|
|
12089
|
+
kind: _enum(["native", "wrapped"]),
|
|
12090
|
+
providerAddonId: string(),
|
|
12091
|
+
providerNodeId: string(),
|
|
12092
|
+
nativeAddonId: string()
|
|
12093
|
+
}))
|
|
12094
|
+
});
|
|
12036
12095
|
var SavedDeviceRowSchema = object({
|
|
12037
12096
|
/** Numeric id reserved at allocateDeviceId time. */
|
|
12038
12097
|
id: number(),
|
|
@@ -12258,11 +12317,25 @@ method(object({
|
|
|
12258
12317
|
projection: _enum(["full", "slim"]).optional(),
|
|
12259
12318
|
/** Return only camera devices. Filtering server-side instead of
|
|
12260
12319
|
* shipping 293 rows to find 12. */
|
|
12261
|
-
isCamera: boolean().optional()
|
|
12320
|
+
isCamera: boolean().optional(),
|
|
12321
|
+
/**
|
|
12322
|
+
* Return only these device ids. For the caller that already KNOWS the
|
|
12323
|
+
* handful it wants and needs a field the id-bearing answer does not
|
|
12324
|
+
* carry — the viewer's linked-devices panel joins `type` and `online`
|
|
12325
|
+
* onto ~8 linked ids and, unfiltered, dragged the fleet across to do
|
|
12326
|
+
* it: 433 KB slim / 958 KB full for 967 devices, on a query that
|
|
12327
|
+
* refetches on the reconcile interval, on a phone.
|
|
12328
|
+
*
|
|
12329
|
+
* Safe to send at a hub that predates it: Zod STRIPS unknown input
|
|
12330
|
+
* keys rather than rejecting them (verified against the live hub
|
|
12331
|
+
* 2026-08-25 — 967 rows came back), so an old hub answers exactly what
|
|
12332
|
+
* it answers today and the caller filters as it already does.
|
|
12333
|
+
*/
|
|
12334
|
+
deviceIds: array(number()).optional()
|
|
12262
12335
|
}), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
|
|
12263
12336
|
mode: LinkedDevicesModeSchema,
|
|
12264
12337
|
devices: array(LinkedDeviceSchema)
|
|
12265
|
-
})), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
12338
|
+
})), 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({
|
|
12266
12339
|
deviceId: number(),
|
|
12267
12340
|
values: record(string(), unknown())
|
|
12268
12341
|
}), object({ success: literal(true) }), {
|
|
@@ -12289,25 +12362,7 @@ method(object({
|
|
|
12289
12362
|
}), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
|
|
12290
12363
|
kind: "mutation",
|
|
12291
12364
|
auth: "admin"
|
|
12292
|
-
}), method(object({ deviceId: number() }), object({
|
|
12293
|
-
deviceId: number(),
|
|
12294
|
-
entries: array(object({
|
|
12295
|
-
capName: string(),
|
|
12296
|
-
kind: _enum(["native", "wrapped"]),
|
|
12297
|
-
providerAddonId: string(),
|
|
12298
|
-
providerNodeId: string(),
|
|
12299
|
-
nativeAddonId: string()
|
|
12300
|
-
}))
|
|
12301
|
-
})), method(object({}), array(object({
|
|
12302
|
-
deviceId: number(),
|
|
12303
|
-
entries: array(object({
|
|
12304
|
-
capName: string(),
|
|
12305
|
-
kind: _enum(["native", "wrapped"]),
|
|
12306
|
-
providerAddonId: string(),
|
|
12307
|
-
providerNodeId: string(),
|
|
12308
|
-
nativeAddonId: string()
|
|
12309
|
-
}))
|
|
12310
|
-
}))), method(object({
|
|
12365
|
+
}), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
|
|
12311
12366
|
deviceId: number(),
|
|
12312
12367
|
capName: string(),
|
|
12313
12368
|
wrapperAddonId: string(),
|
|
@@ -14717,12 +14772,15 @@ var NcOccupancyConditionSchema = object({
|
|
|
14717
14772
|
* there is no second switch that can disagree with the first and every rule
|
|
14718
14773
|
* authored before the decision migrates for free (`audioModeOf`):
|
|
14719
14774
|
*
|
|
14720
|
-
* - **LABEL mode — `labels` present.** The rule fires
|
|
14721
|
-
*
|
|
14722
|
-
* `hitPercent` and `samplingSeconds` are ignored
|
|
14723
|
-
*
|
|
14724
|
-
*
|
|
14725
|
-
*
|
|
14775
|
+
* - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
|
|
14776
|
+
* labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
|
|
14777
|
+
* `hitPercent` and `samplingSeconds` are still ignored — a percentage of
|
|
14778
|
+
* frames is the wrong question for a classifier that labels 1–3 frames
|
|
14779
|
+
* per episode. The count window is the brake that drops a single-frame
|
|
14780
|
+
* false positive; the rule's own `throttle` cooldown is the other. The
|
|
14781
|
+
* per-label confidence floor is the analyzer's (`classificationMinScore`,
|
|
14782
|
+
* per device) — a label only reaches this condition if the classifier was
|
|
14783
|
+
* already confident enough. `confirmHits: 1` restores first-frame fire.
|
|
14726
14784
|
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
14727
14785
|
* the condition: at least `hitPercent`% of the samples over
|
|
14728
14786
|
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
@@ -14749,14 +14807,22 @@ var NcOccupancyConditionSchema = object({
|
|
|
14749
14807
|
* an operator who typed `dog` mean the same thing.
|
|
14750
14808
|
*/
|
|
14751
14809
|
var NcAudioConditionSchema = object({
|
|
14752
|
-
/** LABEL MODE: audio macro labels. Present ⇒
|
|
14810
|
+
/** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
|
|
14753
14811
|
labels: array(string().min(1)).min(1).optional(),
|
|
14754
14812
|
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
14755
14813
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
14756
14814
|
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
14757
14815
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
14758
14816
|
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
14759
|
-
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
14817
|
+
samplingSeconds: number().int().min(1).max(300).default(10),
|
|
14818
|
+
/**
|
|
14819
|
+
* LABEL MODE: how many labelled frames must land inside
|
|
14820
|
+
* {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
|
|
14821
|
+
* Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
|
|
14822
|
+
*/
|
|
14823
|
+
confirmHits: number().int().min(1).max(20).optional(),
|
|
14824
|
+
/** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
|
|
14825
|
+
confirmWindowSec: number().int().min(1).max(60).optional()
|
|
14760
14826
|
});
|
|
14761
14827
|
/**
|
|
14762
14828
|
* Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
|
|
@@ -17130,6 +17196,46 @@ var RecentTracksPageSchema = object({
|
|
|
17130
17196
|
/** Cursor for the next page, or null when this page is the last. */
|
|
17131
17197
|
nextCursor: string().nullable()
|
|
17132
17198
|
});
|
|
17199
|
+
var LIST_GROUPS_DEFAULT_LIMIT = 40;
|
|
17200
|
+
var LIST_GROUPS_MAX_LIMIT = 100;
|
|
17201
|
+
var AnalyticsGroupRecordSchema = object({
|
|
17202
|
+
id: string(),
|
|
17203
|
+
deviceId: number().int(),
|
|
17204
|
+
openedAt: number().int(),
|
|
17205
|
+
closedAt: number().int(),
|
|
17206
|
+
timestamp: number().int(),
|
|
17207
|
+
memberCount: number().int(),
|
|
17208
|
+
memberTrackIds: array(string()).readonly(),
|
|
17209
|
+
className: string(),
|
|
17210
|
+
classes: array(string()).readonly(),
|
|
17211
|
+
/** Relative event-media path, or null when the group has no picture yet. */
|
|
17212
|
+
mediaUrl: string().nullable(),
|
|
17213
|
+
singleton: boolean()
|
|
17214
|
+
});
|
|
17215
|
+
var AnalyticsGroupMemberSchema = object({
|
|
17216
|
+
trackId: string(),
|
|
17217
|
+
deviceId: number().int(),
|
|
17218
|
+
className: string(),
|
|
17219
|
+
firstSeen: number().int(),
|
|
17220
|
+
lastSeen: number().int(),
|
|
17221
|
+
mediaUrl: string().nullable()
|
|
17222
|
+
});
|
|
17223
|
+
var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
|
|
17224
|
+
var ListGroupsQueryInput = object({
|
|
17225
|
+
/** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
|
|
17226
|
+
deviceIds: array(number()),
|
|
17227
|
+
/** Window lower bound on `closedAt` (inclusive). */
|
|
17228
|
+
since: number().optional(),
|
|
17229
|
+
/** Window upper bound on `openedAt` (inclusive). */
|
|
17230
|
+
until: number().optional(),
|
|
17231
|
+
limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
|
|
17232
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
17233
|
+
cursor: string().optional()
|
|
17234
|
+
});
|
|
17235
|
+
var ListGroupsPageSchema = object({
|
|
17236
|
+
groups: array(AnalyticsGroupRecordSchema).readonly(),
|
|
17237
|
+
nextCursor: string().nullable()
|
|
17238
|
+
});
|
|
17133
17239
|
var KeyEventQueryInput = object({
|
|
17134
17240
|
deviceId: number(),
|
|
17135
17241
|
/** Window lower bound (track firstSeen ≥ since). */
|
|
@@ -17205,7 +17311,9 @@ var TrackCascadeCountsSchema = object({
|
|
|
17205
17311
|
/** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
|
|
17206
17312
|
plates: number().int(),
|
|
17207
17313
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
17208
|
-
embeddings: number().int()
|
|
17314
|
+
embeddings: number().int(),
|
|
17315
|
+
/** Group membership + group rows removed with their last member (best-effort). */
|
|
17316
|
+
groups: number().int()
|
|
17209
17317
|
});
|
|
17210
17318
|
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
17211
17319
|
var DiskReconcileCountsSchema = object({
|
|
@@ -17351,7 +17459,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17351
17459
|
* stationary registry). Default false: the timeline lists passages,
|
|
17352
17460
|
* not parking records (operator decision, 2026-08-15). */
|
|
17353
17461
|
includeStationary: boolean().optional()
|
|
17354
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(
|
|
17462
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
|
|
17463
|
+
deviceId: number(),
|
|
17464
|
+
groupId: string().min(1)
|
|
17465
|
+
}), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
17355
17466
|
kind: "mutation",
|
|
17356
17467
|
auth: "admin"
|
|
17357
17468
|
}), 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({
|
|
@@ -17569,6 +17680,33 @@ var NativeCropRefSchema = object({
|
|
|
17569
17680
|
h: number()
|
|
17570
17681
|
})
|
|
17571
17682
|
});
|
|
17683
|
+
object({
|
|
17684
|
+
crop: object({
|
|
17685
|
+
left: number(),
|
|
17686
|
+
top: number(),
|
|
17687
|
+
width: number().positive(),
|
|
17688
|
+
height: number().positive()
|
|
17689
|
+
}).optional(),
|
|
17690
|
+
content: object({
|
|
17691
|
+
width: number().int().positive(),
|
|
17692
|
+
height: number().int().positive()
|
|
17693
|
+
}),
|
|
17694
|
+
fit: _enum(["stretch", "contain"]),
|
|
17695
|
+
format: _enum([
|
|
17696
|
+
"rgb",
|
|
17697
|
+
"gray",
|
|
17698
|
+
"jpeg"
|
|
17699
|
+
])
|
|
17700
|
+
});
|
|
17701
|
+
var FrameRefSchema = object({
|
|
17702
|
+
registryId: string().min(1),
|
|
17703
|
+
id: string().min(1),
|
|
17704
|
+
width: number().int().positive(),
|
|
17705
|
+
height: number().int().positive(),
|
|
17706
|
+
format: _enum(["rgb", "gray"]),
|
|
17707
|
+
timestamp: number(),
|
|
17708
|
+
capturedAt: number().optional()
|
|
17709
|
+
});
|
|
17572
17710
|
var ModelFormatSchema$1 = _enum([
|
|
17573
17711
|
"onnx",
|
|
17574
17712
|
"coreml",
|
|
@@ -17634,7 +17772,8 @@ var PipelineModelOptionSchema = object({
|
|
|
17634
17772
|
sizeMB: number()
|
|
17635
17773
|
})),
|
|
17636
17774
|
group: ModelVariantGroupSchema.optional(),
|
|
17637
|
-
legacy: boolean().optional()
|
|
17775
|
+
legacy: boolean().optional(),
|
|
17776
|
+
provider: ModelProviderIdSchema.optional()
|
|
17638
17777
|
});
|
|
17639
17778
|
var ConfigFieldBridge = custom();
|
|
17640
17779
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -17813,6 +17952,12 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
17813
17952
|
steps: array(PipelineStepInputSchema).min(1),
|
|
17814
17953
|
frame: FrameInputSchema.optional(),
|
|
17815
17954
|
/**
|
|
17955
|
+
* Process-local lazy frame. Valid only when caller and provider resolve
|
|
17956
|
+
* in the same execution-group process; split/cross-node callers use
|
|
17957
|
+
* `frame`/`image` inline compatibility instead.
|
|
17958
|
+
*/
|
|
17959
|
+
frameRef: FrameRefSchema.optional(),
|
|
17960
|
+
/**
|
|
17816
17961
|
* CB5 shm passthrough — a `FrameHandle` naming the same ring slot
|
|
17817
17962
|
* the decoded pixels live in. One more member of the one-of
|
|
17818
17963
|
* frame/frameHandle/image/imageBase64/referenceImage group.
|
|
@@ -18108,7 +18253,10 @@ var NativeCropResultSchema = object({
|
|
|
18108
18253
|
* Which source served this crop, so a quality-sensitive consumer (the native
|
|
18109
18254
|
* `keyFrame`) can reject a degraded fallback:
|
|
18110
18255
|
* - `native` — cut from the decode worker's retained NATIVE surface (the
|
|
18111
|
-
* quality path).
|
|
18256
|
+
* quality path). A subject-tile serve is also native-resolution and stays
|
|
18257
|
+
* `native` here: the public enum cannot name `tile` without a breaking cap
|
|
18258
|
+
* change. Runner telemetry distinguishes lease vs tile via `source` on the
|
|
18259
|
+
* internal crop result (`nativeHits` vs `tileHits`).
|
|
18112
18260
|
* - `ram-fullframe` — the native surface MISSED but the request was full-frame,
|
|
18113
18261
|
* so the ≤640 RAM `RetainedFrameStore` served it (honest lower-res; legit for
|
|
18114
18262
|
* the blank-frame guard / 640-snapshot resolve, NOT for the clean keyFrame).
|
|
@@ -18599,12 +18747,41 @@ var RunnerLocalLoadSchema = object({
|
|
|
18599
18747
|
* legacy `OrchestratorMetricsSchema` shape so existing dashboards keep
|
|
18600
18748
|
* working unchanged when they switch to reading from the runner cap.
|
|
18601
18749
|
*/
|
|
18750
|
+
var FrameLazyCountersSchema = object({
|
|
18751
|
+
framesDecoded: number(),
|
|
18752
|
+
framesAdmitted: number(),
|
|
18753
|
+
framesDroppedPixelFree: number(),
|
|
18754
|
+
viewsMaterialized: number(),
|
|
18755
|
+
viewsSkipped: number(),
|
|
18756
|
+
workerToRunnerBytes: number(),
|
|
18757
|
+
runnerToPoolRawBytes: number(),
|
|
18758
|
+
runnerToPoolJpegBytes: number(),
|
|
18759
|
+
onDemandFullFrameRequests: number(),
|
|
18760
|
+
onDemandCropRequests: number(),
|
|
18761
|
+
nativeHits: number(),
|
|
18762
|
+
nativeMisses: number(),
|
|
18763
|
+
tileHits: number(),
|
|
18764
|
+
tileMisses: number(),
|
|
18765
|
+
fallbackHits: number(),
|
|
18766
|
+
fallbackMisses: number(),
|
|
18767
|
+
retainedWritesAvoided: number(),
|
|
18768
|
+
residentRefs: number(),
|
|
18769
|
+
residentBytes: number(),
|
|
18770
|
+
releases: number(),
|
|
18771
|
+
evictions: number(),
|
|
18772
|
+
staleMisses: number()
|
|
18773
|
+
});
|
|
18774
|
+
var FrameLazyMetricsSchema = object({
|
|
18775
|
+
node: FrameLazyCountersSchema,
|
|
18776
|
+
cameras: array(FrameLazyCountersSchema.extend({ deviceId: number() }))
|
|
18777
|
+
});
|
|
18602
18778
|
var RunnerLocalMetricsSchema = object({
|
|
18603
18779
|
nodeId: string(),
|
|
18604
18780
|
activeCameras: number(),
|
|
18605
18781
|
throttledCameras: number(),
|
|
18606
18782
|
avgInferenceTimeMs: number(),
|
|
18607
|
-
queueDepth: number()
|
|
18783
|
+
queueDepth: number(),
|
|
18784
|
+
frameLazy: FrameLazyMetricsSchema.optional()
|
|
18608
18785
|
});
|
|
18609
18786
|
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({
|
|
18610
18787
|
handle: FrameHandleSchema,
|
|
@@ -20008,6 +20185,9 @@ method(_void(), ProviderInfoSchema), method(object({ config: record(string(), un
|
|
|
20008
20185
|
location: StorageLocationSchema,
|
|
20009
20186
|
relativePath: string()
|
|
20010
20187
|
}), _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" });
|
|
20188
|
+
/** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
|
|
20189
|
+
var ProfileSettingsSchemaBridge = unknown().nullable();
|
|
20190
|
+
var ProfileSettingsBagSchema = record(string(), unknown());
|
|
20011
20191
|
/**
|
|
20012
20192
|
* A live terminal session hosted by the provider addon. Output and input do
|
|
20013
20193
|
* NOT flow through the capability — they use the addon data plane
|
|
@@ -20037,7 +20217,14 @@ var TerminalSessionInfoSchema = object({
|
|
|
20037
20217
|
var TerminalProfileInfoSchema = object({
|
|
20038
20218
|
profileId: string(),
|
|
20039
20219
|
label: string(),
|
|
20040
|
-
description: string().optional()
|
|
20220
|
+
description: string().optional(),
|
|
20221
|
+
/** Spawn defaults the instance form copies on create. */
|
|
20222
|
+
executable: string().optional(),
|
|
20223
|
+
args: array(string()).readonly().optional(),
|
|
20224
|
+
cwd: string().optional(),
|
|
20225
|
+
environment: array(string()).readonly().optional(),
|
|
20226
|
+
/** ConfigUISchema for instance knobs, or null when the profile has none. */
|
|
20227
|
+
settingsSchema: ProfileSettingsSchemaBridge.optional()
|
|
20041
20228
|
});
|
|
20042
20229
|
/**
|
|
20043
20230
|
* A durable operator-created Terminal instance. Profiles are templates; only
|
|
@@ -20050,7 +20237,12 @@ var TerminalInstanceInfoSchema = object({
|
|
|
20050
20237
|
profileId: string(),
|
|
20051
20238
|
profileLabel: string(),
|
|
20052
20239
|
name: string(),
|
|
20053
|
-
enabled: boolean()
|
|
20240
|
+
enabled: boolean(),
|
|
20241
|
+
executable: string(),
|
|
20242
|
+
args: array(string()).readonly(),
|
|
20243
|
+
cwd: string(),
|
|
20244
|
+
environment: array(string()).readonly(),
|
|
20245
|
+
profileSettings: ProfileSettingsBagSchema
|
|
20054
20246
|
});
|
|
20055
20247
|
var TerminalLegacyCameraSchema = object({
|
|
20056
20248
|
stableId: string(),
|
|
@@ -20080,7 +20272,23 @@ var TerminalOutputBatchSchema = object({
|
|
|
20080
20272
|
method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalInstanceInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
20081
20273
|
targetNodeId: string().min(1),
|
|
20082
20274
|
profileId: string().min(1),
|
|
20083
|
-
name: string().trim().min(1).max(160).optional()
|
|
20275
|
+
name: string().trim().min(1).max(160).optional(),
|
|
20276
|
+
executable: string().max(1024).optional(),
|
|
20277
|
+
args: array(string().max(2048)).max(64).optional(),
|
|
20278
|
+
cwd: string().max(1024).optional(),
|
|
20279
|
+
environment: array(string().max(4096)).max(64).optional(),
|
|
20280
|
+
profileSettings: ProfileSettingsBagSchema.optional()
|
|
20281
|
+
}), TerminalInstanceInfoSchema, {
|
|
20282
|
+
kind: "mutation",
|
|
20283
|
+
auth: "admin"
|
|
20284
|
+
}), method(object({
|
|
20285
|
+
instanceId: string().min(1),
|
|
20286
|
+
name: string().trim().min(1).max(160).optional(),
|
|
20287
|
+
executable: string().max(1024).optional(),
|
|
20288
|
+
args: array(string().max(2048)).max(64).optional(),
|
|
20289
|
+
cwd: string().max(1024).optional(),
|
|
20290
|
+
environment: array(string().max(4096)).max(64).optional(),
|
|
20291
|
+
profileSettings: ProfileSettingsBagSchema.optional()
|
|
20084
20292
|
}), TerminalInstanceInfoSchema, {
|
|
20085
20293
|
kind: "mutation",
|
|
20086
20294
|
auth: "admin"
|
|
@@ -20102,7 +20310,11 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
|
|
|
20102
20310
|
}), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
20103
20311
|
profileId: string(),
|
|
20104
20312
|
cols: number().int().positive(),
|
|
20105
|
-
rows: number().int().positive()
|
|
20313
|
+
rows: number().int().positive(),
|
|
20314
|
+
executable: string().max(1024).optional(),
|
|
20315
|
+
args: array(string().max(2048)).max(64).optional(),
|
|
20316
|
+
cwd: string().max(1024).optional(),
|
|
20317
|
+
environment: array(string().max(4096)).max(64).optional()
|
|
20106
20318
|
}), TerminalSessionInfoSchema, {
|
|
20107
20319
|
kind: "mutation",
|
|
20108
20320
|
auth: "admin"
|
|
@@ -23985,10 +24197,10 @@ var lawnMowerControlCapability = {
|
|
|
23985
24197
|
*
|
|
23986
24198
|
* • The SDK (mobile / web client) consumes `getConnectionEndpoints()`
|
|
23987
24199
|
* to receive an ordered list of candidate base URLs it should race
|
|
23988
|
-
* on connect — LAN IPv4 first (lowest latency
|
|
23989
|
-
* then public hostname (if a tunnel is
|
|
23990
|
-
* race them with short timeouts and stick with the
|
|
23991
|
-
* session.
|
|
24200
|
+
* on connect — LAN IPv4 and stable LAN IPv6 first (lowest latency
|
|
24201
|
+
* when on the same network), then public hostname (if a tunnel is
|
|
24202
|
+
* up). The SDK can race them with short timeouts and stick with the
|
|
24203
|
+
* winner for the session.
|
|
23992
24204
|
*
|
|
23993
24205
|
* Why hub-only: agents are not directly addressable by the operator's
|
|
23994
24206
|
* clients — they reverse-connect to the hub. Exposing their interfaces
|
|
@@ -24143,6 +24355,17 @@ var NotificationEndpointSchema = object({
|
|
|
24143
24355
|
/** What the ranking currently resolves to (null when nothing is reachable). */
|
|
24144
24356
|
resolved: string().nullable()
|
|
24145
24357
|
});
|
|
24358
|
+
/**
|
|
24359
|
+
* The URLs the SDK / viewer should race for API access. `baseUrls` empty =
|
|
24360
|
+
* AUTO (every LAN IPv4 + the public tunnel). `resolved` is what that choice
|
|
24361
|
+
* currently expands to, so the UI can show the effective set either way.
|
|
24362
|
+
*/
|
|
24363
|
+
var ViewerEndpointsSchema = object({
|
|
24364
|
+
/** The operator's explicit race set, or empty for AUTO. */
|
|
24365
|
+
baseUrls: array(string()).readonly(),
|
|
24366
|
+
/** What the ranking currently resolves to (may be empty if nothing is up). */
|
|
24367
|
+
resolved: array(string()).readonly()
|
|
24368
|
+
});
|
|
24146
24369
|
var AllowedAddressesSchema = object({
|
|
24147
24370
|
/**
|
|
24148
24371
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -24151,6 +24374,20 @@ var AllowedAddressesSchema = object({
|
|
|
24151
24374
|
* Network Addresses admin page and persisted by the addon.
|
|
24152
24375
|
*/
|
|
24153
24376
|
addresses: array(string()).readonly() });
|
|
24377
|
+
var TlsStatusSchema = object({
|
|
24378
|
+
mode: _enum([
|
|
24379
|
+
"generated",
|
|
24380
|
+
"uploaded",
|
|
24381
|
+
"disabled"
|
|
24382
|
+
]),
|
|
24383
|
+
leafFingerprintSha256: string().nullable(),
|
|
24384
|
+
caFingerprintSha256: string().nullable(),
|
|
24385
|
+
validTo: string().nullable(),
|
|
24386
|
+
sans: array(string()),
|
|
24387
|
+
caCertPem: string().nullable(),
|
|
24388
|
+
reissueError: string().nullable(),
|
|
24389
|
+
restartRequired: boolean()
|
|
24390
|
+
});
|
|
24154
24391
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
24155
24392
|
/**
|
|
24156
24393
|
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
@@ -24160,17 +24397,31 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
24160
24397
|
*/
|
|
24161
24398
|
port: number().int().min(1).max(65535).optional(),
|
|
24162
24399
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
24163
|
-
* candidate. Default `
|
|
24400
|
+
* candidate. Default `false` — loopback is not a client route. */
|
|
24164
24401
|
includeLoopback: boolean().optional(),
|
|
24165
|
-
/** Skip IPv6 entries.
|
|
24166
|
-
*
|
|
24402
|
+
/** Skip IPv6 entries. Default `false` — the palette includes stable
|
|
24403
|
+
* LAN IPv6 (ICE/WebRTC uses dual-stack regardless). Pass `true` to
|
|
24404
|
+
* hide them. The viewer HTTP/WS race is `getViewerEndpoints`. */
|
|
24167
24405
|
ipv4Only: boolean().optional(),
|
|
24168
24406
|
/** Scheme to emit for LAN/loopback URLs. Default `'http'`.
|
|
24169
24407
|
* Pass `'https'` when the caller is itself loaded over HTTPS
|
|
24170
24408
|
* to avoid mixed-content blocks in the browser. The public
|
|
24171
24409
|
* tunnel always emits `https://` regardless. */
|
|
24172
24410
|
scheme: _enum(["http", "https"]).optional()
|
|
24173
|
-
}), 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" })
|
|
24411
|
+
}), 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, {
|
|
24412
|
+
kind: "mutation",
|
|
24413
|
+
auth: "admin"
|
|
24414
|
+
}), method(object({
|
|
24415
|
+
certPem: string().min(1),
|
|
24416
|
+
keyPem: string().min(1),
|
|
24417
|
+
caPem: string().optional()
|
|
24418
|
+
}), TlsStatusSchema, {
|
|
24419
|
+
kind: "mutation",
|
|
24420
|
+
auth: "admin"
|
|
24421
|
+
}), method(_void(), object({ pem: string() })), method(_void(), TlsStatusSchema, {
|
|
24422
|
+
kind: "mutation",
|
|
24423
|
+
auth: "admin"
|
|
24424
|
+
});
|
|
24174
24425
|
var LockControlStatusSchema = object({
|
|
24175
24426
|
/** Lifecycle state of the lock. `jammed` means the motor reported
|
|
24176
24427
|
* failure to reach the target — operator intervention required. */
|
|
@@ -25731,7 +25982,12 @@ var PlateInfoSchema = object({
|
|
|
25731
25982
|
plateBbox: BoundingBoxSchema.optional(),
|
|
25732
25983
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
25733
25984
|
keyFrameMediaKey: string().optional(),
|
|
25734
|
-
base64: string().optional()
|
|
25985
|
+
base64: string().optional(),
|
|
25986
|
+
/**
|
|
25987
|
+
* Same crop as a data-plane URL. `getPlateByTrack` returns this and
|
|
25988
|
+
* never inlines JPEG; `listPlates` still inlines for the admin-ui.
|
|
25989
|
+
*/
|
|
25990
|
+
cropUrl: string().optional()
|
|
25735
25991
|
});
|
|
25736
25992
|
var MediaFileLiteSchema = object({
|
|
25737
25993
|
key: string(),
|
|
@@ -31255,6 +31511,12 @@ Object.freeze({
|
|
|
31255
31511
|
addonId: null,
|
|
31256
31512
|
access: "view"
|
|
31257
31513
|
},
|
|
31514
|
+
"deviceManager.getBindingsBatch": {
|
|
31515
|
+
capName: "device-manager",
|
|
31516
|
+
capScope: "system",
|
|
31517
|
+
addonId: null,
|
|
31518
|
+
access: "view"
|
|
31519
|
+
},
|
|
31258
31520
|
"deviceManager.getChildren": {
|
|
31259
31521
|
capName: "device-manager",
|
|
31260
31522
|
capScope: "system",
|
|
@@ -31315,6 +31577,12 @@ Object.freeze({
|
|
|
31315
31577
|
addonId: null,
|
|
31316
31578
|
access: "view"
|
|
31317
31579
|
},
|
|
31580
|
+
"deviceManager.getLinkedDevicesBatch": {
|
|
31581
|
+
capName: "device-manager",
|
|
31582
|
+
capScope: "system",
|
|
31583
|
+
addonId: null,
|
|
31584
|
+
access: "view"
|
|
31585
|
+
},
|
|
31318
31586
|
"deviceManager.getRoleDisplayDefaults": {
|
|
31319
31587
|
capName: "device-manager",
|
|
31320
31588
|
capScope: "system",
|
|
@@ -32197,6 +32465,12 @@ Object.freeze({
|
|
|
32197
32465
|
addonId: null,
|
|
32198
32466
|
access: "create"
|
|
32199
32467
|
},
|
|
32468
|
+
"localNetwork.downloadCa": {
|
|
32469
|
+
capName: "local-network",
|
|
32470
|
+
capScope: "system",
|
|
32471
|
+
addonId: null,
|
|
32472
|
+
access: "view"
|
|
32473
|
+
},
|
|
32200
32474
|
"localNetwork.getAllowedAddresses": {
|
|
32201
32475
|
capName: "local-network",
|
|
32202
32476
|
capScope: "system",
|
|
@@ -32221,18 +32495,42 @@ Object.freeze({
|
|
|
32221
32495
|
addonId: null,
|
|
32222
32496
|
access: "view"
|
|
32223
32497
|
},
|
|
32498
|
+
"localNetwork.getTlsStatus": {
|
|
32499
|
+
capName: "local-network",
|
|
32500
|
+
capScope: "system",
|
|
32501
|
+
addonId: null,
|
|
32502
|
+
access: "view"
|
|
32503
|
+
},
|
|
32504
|
+
"localNetwork.getViewerEndpoints": {
|
|
32505
|
+
capName: "local-network",
|
|
32506
|
+
capScope: "system",
|
|
32507
|
+
addonId: null,
|
|
32508
|
+
access: "view"
|
|
32509
|
+
},
|
|
32224
32510
|
"localNetwork.list": {
|
|
32225
32511
|
capName: "local-network",
|
|
32226
32512
|
capScope: "system",
|
|
32227
32513
|
addonId: null,
|
|
32228
32514
|
access: "view"
|
|
32229
32515
|
},
|
|
32516
|
+
"localNetwork.regenerateCertificate": {
|
|
32517
|
+
capName: "local-network",
|
|
32518
|
+
capScope: "system",
|
|
32519
|
+
addonId: null,
|
|
32520
|
+
access: "create"
|
|
32521
|
+
},
|
|
32230
32522
|
"localNetwork.resetAllowlistToBestMatch": {
|
|
32231
32523
|
capName: "local-network",
|
|
32232
32524
|
capScope: "system",
|
|
32233
32525
|
addonId: null,
|
|
32234
32526
|
access: "delete"
|
|
32235
32527
|
},
|
|
32528
|
+
"localNetwork.revertToGeneratedCertificate": {
|
|
32529
|
+
capName: "local-network",
|
|
32530
|
+
capScope: "system",
|
|
32531
|
+
addonId: null,
|
|
32532
|
+
access: "create"
|
|
32533
|
+
},
|
|
32236
32534
|
"localNetwork.setAllowedAddresses": {
|
|
32237
32535
|
capName: "local-network",
|
|
32238
32536
|
capScope: "system",
|
|
@@ -32245,6 +32543,18 @@ Object.freeze({
|
|
|
32245
32543
|
addonId: null,
|
|
32246
32544
|
access: "create"
|
|
32247
32545
|
},
|
|
32546
|
+
"localNetwork.setViewerEndpoints": {
|
|
32547
|
+
capName: "local-network",
|
|
32548
|
+
capScope: "system",
|
|
32549
|
+
addonId: null,
|
|
32550
|
+
access: "create"
|
|
32551
|
+
},
|
|
32552
|
+
"localNetwork.uploadCertificate": {
|
|
32553
|
+
capName: "local-network",
|
|
32554
|
+
capScope: "system",
|
|
32555
|
+
addonId: null,
|
|
32556
|
+
access: "create"
|
|
32557
|
+
},
|
|
32248
32558
|
"lockControl.lock": {
|
|
32249
32559
|
capName: "lock-control",
|
|
32250
32560
|
capScope: "device",
|
|
@@ -33043,6 +33353,12 @@ Object.freeze({
|
|
|
33043
33353
|
addonId: null,
|
|
33044
33354
|
access: "view"
|
|
33045
33355
|
},
|
|
33356
|
+
"pipelineAnalytics.getGroup": {
|
|
33357
|
+
capName: "pipeline-analytics",
|
|
33358
|
+
capScope: "device",
|
|
33359
|
+
addonId: null,
|
|
33360
|
+
access: "view"
|
|
33361
|
+
},
|
|
33046
33362
|
"pipelineAnalytics.getKeyEvents": {
|
|
33047
33363
|
capName: "pipeline-analytics",
|
|
33048
33364
|
capScope: "device",
|
|
@@ -33127,6 +33443,12 @@ Object.freeze({
|
|
|
33127
33443
|
addonId: null,
|
|
33128
33444
|
access: "view"
|
|
33129
33445
|
},
|
|
33446
|
+
"pipelineAnalytics.listGroups": {
|
|
33447
|
+
capName: "pipeline-analytics",
|
|
33448
|
+
capScope: "device",
|
|
33449
|
+
addonId: null,
|
|
33450
|
+
access: "view"
|
|
33451
|
+
},
|
|
33130
33452
|
"pipelineAnalytics.listOpsLog": {
|
|
33131
33453
|
capName: "pipeline-analytics",
|
|
33132
33454
|
capScope: "device",
|
|
@@ -35125,6 +35447,12 @@ Object.freeze({
|
|
|
35125
35447
|
addonId: null,
|
|
35126
35448
|
access: "create"
|
|
35127
35449
|
},
|
|
35450
|
+
"terminalSession.updateInstance": {
|
|
35451
|
+
capName: "terminal-session",
|
|
35452
|
+
capScope: "system",
|
|
35453
|
+
addonId: null,
|
|
35454
|
+
access: "create"
|
|
35455
|
+
},
|
|
35128
35456
|
"terminalSession.writeInput": {
|
|
35129
35457
|
capName: "terminal-session",
|
|
35130
35458
|
capScope: "system",
|
|
@@ -35902,6 +36230,11 @@ Object.freeze({
|
|
|
35902
36230
|
form: "single",
|
|
35903
36231
|
optional: false
|
|
35904
36232
|
}],
|
|
36233
|
+
"deviceManager.getBindingsBatch": [{
|
|
36234
|
+
name: "deviceIds",
|
|
36235
|
+
form: "array",
|
|
36236
|
+
optional: false
|
|
36237
|
+
}],
|
|
35905
36238
|
"deviceManager.getChildren": [{
|
|
35906
36239
|
name: "parentDeviceId",
|
|
35907
36240
|
form: "single",
|
|
@@ -35947,6 +36280,11 @@ Object.freeze({
|
|
|
35947
36280
|
form: "single",
|
|
35948
36281
|
optional: false
|
|
35949
36282
|
}],
|
|
36283
|
+
"deviceManager.getLinkedDevicesBatch": [{
|
|
36284
|
+
name: "deviceIds",
|
|
36285
|
+
form: "array",
|
|
36286
|
+
optional: false
|
|
36287
|
+
}],
|
|
35950
36288
|
"deviceManager.getSettingsSchema": [{
|
|
35951
36289
|
name: "deviceId",
|
|
35952
36290
|
form: "single",
|
|
@@ -35967,6 +36305,11 @@ Object.freeze({
|
|
|
35967
36305
|
form: "single",
|
|
35968
36306
|
optional: false
|
|
35969
36307
|
}],
|
|
36308
|
+
"deviceManager.listAll": [{
|
|
36309
|
+
name: "deviceIds",
|
|
36310
|
+
form: "array",
|
|
36311
|
+
optional: true
|
|
36312
|
+
}],
|
|
35970
36313
|
"deviceManager.loadConfig": [{
|
|
35971
36314
|
name: "deviceId",
|
|
35972
36315
|
form: "single",
|
|
@@ -36540,6 +36883,11 @@ Object.freeze({
|
|
|
36540
36883
|
form: "single",
|
|
36541
36884
|
optional: false
|
|
36542
36885
|
}],
|
|
36886
|
+
"pipelineAnalytics.getGroup": [{
|
|
36887
|
+
name: "deviceId",
|
|
36888
|
+
form: "single",
|
|
36889
|
+
optional: false
|
|
36890
|
+
}],
|
|
36543
36891
|
"pipelineAnalytics.getKeyEvents": [{
|
|
36544
36892
|
name: "deviceId",
|
|
36545
36893
|
form: "single",
|
|
@@ -36595,6 +36943,11 @@ Object.freeze({
|
|
|
36595
36943
|
form: "array",
|
|
36596
36944
|
optional: false
|
|
36597
36945
|
}],
|
|
36946
|
+
"pipelineAnalytics.listGroups": [{
|
|
36947
|
+
name: "deviceIds",
|
|
36948
|
+
form: "array",
|
|
36949
|
+
optional: false
|
|
36950
|
+
}],
|
|
36598
36951
|
"pipelineAnalytics.listOpsLog": [{
|
|
36599
36952
|
name: "deviceId",
|
|
36600
36953
|
form: "single",
|
|
@@ -37612,6 +37965,35 @@ Object.freeze(Object.fromEntries([{
|
|
|
37612
37965
|
}]
|
|
37613
37966
|
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
37614
37967
|
string().min(1);
|
|
37968
|
+
var CLUSTER_STEP_SETTING_FIELDS = [{
|
|
37969
|
+
stepId: "face-embedding",
|
|
37970
|
+
key: "minLandmarkFaceSize",
|
|
37971
|
+
label: "Min face size for recognition (detection px)",
|
|
37972
|
+
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.",
|
|
37973
|
+
type: "slider",
|
|
37974
|
+
min: 0,
|
|
37975
|
+
max: 64,
|
|
37976
|
+
step: 2,
|
|
37977
|
+
default: 24
|
|
37978
|
+
}];
|
|
37979
|
+
function clusterStepSettingKey(stepId, fieldKey) {
|
|
37980
|
+
return `clusterStepSetting:${stepId}:${fieldKey}`;
|
|
37981
|
+
}
|
|
37982
|
+
var ClusterSettingNumberSchema = number().finite();
|
|
37983
|
+
function readClusterStepSettings(config) {
|
|
37984
|
+
const out = {};
|
|
37985
|
+
for (const field of CLUSTER_STEP_SETTING_FIELDS) {
|
|
37986
|
+
const parsed = ClusterSettingNumberSchema.safeParse(config[clusterStepSettingKey(field.stepId, field.key)]);
|
|
37987
|
+
const value = parsed.success ? parsed.data : field.default;
|
|
37988
|
+
const existing = out[field.stepId] ?? {};
|
|
37989
|
+
out[field.stepId] = {
|
|
37990
|
+
...existing,
|
|
37991
|
+
[field.key]: value
|
|
37992
|
+
};
|
|
37993
|
+
}
|
|
37994
|
+
return out;
|
|
37995
|
+
}
|
|
37996
|
+
readClusterStepSettings({});
|
|
37615
37997
|
object({
|
|
37616
37998
|
/**
|
|
37617
37999
|
* Fraction of the box's own size added on EACH side before cutting.
|