@camstack/addon-provider-dreo 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
|
@@ -5837,6 +5837,13 @@ var BaseAddon = class {
|
|
|
5837
5837
|
_readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
|
|
5838
5838
|
/** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
|
|
5839
5839
|
_registeredCapNames = [];
|
|
5840
|
+
/**
|
|
5841
|
+
* True only after `readAddonStore` actually answered. Constructor
|
|
5842
|
+
* defaults look like stored config when the store is down — a forked
|
|
5843
|
+
* addon that auto-starts from those defaults (cloudflare-tunnel quick
|
|
5844
|
+
* mode, 2026-08-25) is not "the operator chose this".
|
|
5845
|
+
*/
|
|
5846
|
+
settingsStoreReady = false;
|
|
5840
5847
|
/** Default config values. Provided via constructor. */
|
|
5841
5848
|
defaults;
|
|
5842
5849
|
constructor(defaults) {
|
|
@@ -6237,7 +6244,9 @@ var BaseAddon = class {
|
|
|
6237
6244
|
];
|
|
6238
6245
|
let lastErr;
|
|
6239
6246
|
for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
|
|
6240
|
-
|
|
6247
|
+
const stored = await settings.readAddonStore() ?? {};
|
|
6248
|
+
this.settingsStoreReady = true;
|
|
6249
|
+
return stored;
|
|
6241
6250
|
} catch (err) {
|
|
6242
6251
|
lastErr = err;
|
|
6243
6252
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -6245,6 +6254,7 @@ var BaseAddon = class {
|
|
|
6245
6254
|
if (attempt === delaysMs.length) break;
|
|
6246
6255
|
await new Promise((r) => setTimeout(r, delaysMs[attempt]));
|
|
6247
6256
|
}
|
|
6257
|
+
this.settingsStoreReady = false;
|
|
6248
6258
|
this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
|
|
6249
6259
|
return {};
|
|
6250
6260
|
}
|
|
@@ -8056,6 +8066,15 @@ var LabelDefinitionSchema = object({
|
|
|
8056
8066
|
description: string().optional(),
|
|
8057
8067
|
icon: string().optional()
|
|
8058
8068
|
});
|
|
8069
|
+
var ClassMapDefinitionSchema = object({
|
|
8070
|
+
mapping: record(string(), _enum([
|
|
8071
|
+
"person",
|
|
8072
|
+
"vehicle",
|
|
8073
|
+
"animal",
|
|
8074
|
+
"package"
|
|
8075
|
+
])),
|
|
8076
|
+
preserveOriginal: boolean()
|
|
8077
|
+
});
|
|
8059
8078
|
var MODEL_FORMATS = [
|
|
8060
8079
|
"onnx",
|
|
8061
8080
|
"coreml",
|
|
@@ -8139,6 +8158,12 @@ var ModelVariantGroupSchema = object({
|
|
|
8139
8158
|
*/
|
|
8140
8159
|
resolution: number().int().positive().optional()
|
|
8141
8160
|
});
|
|
8161
|
+
var ModelProviderIdSchema = _enum([
|
|
8162
|
+
"camstack",
|
|
8163
|
+
"frigate",
|
|
8164
|
+
"scrypted",
|
|
8165
|
+
"custom"
|
|
8166
|
+
]);
|
|
8142
8167
|
var ModelCatalogEntrySchema = object({
|
|
8143
8168
|
id: string(),
|
|
8144
8169
|
name: string(),
|
|
@@ -8234,7 +8259,19 @@ var ModelCatalogEntrySchema = object({
|
|
|
8234
8259
|
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
8235
8260
|
* is a presentation overlay resolved back to an `id`.
|
|
8236
8261
|
*/
|
|
8237
|
-
group: ModelVariantGroupSchema.optional()
|
|
8262
|
+
group: ModelVariantGroupSchema.optional(),
|
|
8263
|
+
/**
|
|
8264
|
+
* Catalog source for the pipeline stepper's provider-first picker. Absent on
|
|
8265
|
+
* built-in CamStack entries (treated as `camstack`) and on registry rows
|
|
8266
|
+
* persisted before this field existed (`inferModelProvider` fills those).
|
|
8267
|
+
*/
|
|
8268
|
+
provider: ModelProviderIdSchema.optional(),
|
|
8269
|
+
/**
|
|
8270
|
+
* Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
|
|
8271
|
+
* applies (Frigate / COCO public catalog). Set on a custom model whose raw
|
|
8272
|
+
* labels already ARE the CamStack macros (Scrypted identity map).
|
|
8273
|
+
*/
|
|
8274
|
+
classMap: ClassMapDefinitionSchema.optional()
|
|
8238
8275
|
});
|
|
8239
8276
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
8240
8277
|
format: literal("openvino"),
|
|
@@ -8263,7 +8300,8 @@ var ModelConvertMetadataSchema = object({
|
|
|
8263
8300
|
"ocr",
|
|
8264
8301
|
"segmentation"
|
|
8265
8302
|
]),
|
|
8266
|
-
faceAlignment: boolean().optional()
|
|
8303
|
+
faceAlignment: boolean().optional(),
|
|
8304
|
+
classMap: ClassMapDefinitionSchema.optional()
|
|
8267
8305
|
});
|
|
8268
8306
|
var ConvertResultSchema = object({
|
|
8269
8307
|
entry: ModelCatalogEntrySchema,
|
|
@@ -12037,6 +12075,27 @@ var LinkedDeviceSchema = object({
|
|
|
12037
12075
|
features: array(string()),
|
|
12038
12076
|
producesTrackedEvents: boolean().optional()
|
|
12039
12077
|
});
|
|
12078
|
+
/** One camera's resolved linked set, tagged with the camera it belongs to.
|
|
12079
|
+
* The batch answer needs the tag; the single-device answer already has it
|
|
12080
|
+
* from the input, which is why `getLinkedDevices` keeps the untagged shape. */
|
|
12081
|
+
var LinkedDevicesForDeviceSchema = object({
|
|
12082
|
+
deviceId: number(),
|
|
12083
|
+
mode: LinkedDevicesModeSchema,
|
|
12084
|
+
devices: array(LinkedDeviceSchema)
|
|
12085
|
+
});
|
|
12086
|
+
/** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
|
|
12087
|
+
* `getAllBindings` all answer in. Declared once: three copies of the same
|
|
12088
|
+
* object literal is exactly how the three drift apart. */
|
|
12089
|
+
var DeviceBindingsForDeviceSchema = object({
|
|
12090
|
+
deviceId: number(),
|
|
12091
|
+
entries: array(object({
|
|
12092
|
+
capName: string(),
|
|
12093
|
+
kind: _enum(["native", "wrapped"]),
|
|
12094
|
+
providerAddonId: string(),
|
|
12095
|
+
providerNodeId: string(),
|
|
12096
|
+
nativeAddonId: string()
|
|
12097
|
+
}))
|
|
12098
|
+
});
|
|
12040
12099
|
var SavedDeviceRowSchema = object({
|
|
12041
12100
|
/** Numeric id reserved at allocateDeviceId time. */
|
|
12042
12101
|
id: number(),
|
|
@@ -12262,11 +12321,25 @@ method(object({
|
|
|
12262
12321
|
projection: _enum(["full", "slim"]).optional(),
|
|
12263
12322
|
/** Return only camera devices. Filtering server-side instead of
|
|
12264
12323
|
* shipping 293 rows to find 12. */
|
|
12265
|
-
isCamera: boolean().optional()
|
|
12324
|
+
isCamera: boolean().optional(),
|
|
12325
|
+
/**
|
|
12326
|
+
* Return only these device ids. For the caller that already KNOWS the
|
|
12327
|
+
* handful it wants and needs a field the id-bearing answer does not
|
|
12328
|
+
* carry — the viewer's linked-devices panel joins `type` and `online`
|
|
12329
|
+
* onto ~8 linked ids and, unfiltered, dragged the fleet across to do
|
|
12330
|
+
* it: 433 KB slim / 958 KB full for 967 devices, on a query that
|
|
12331
|
+
* refetches on the reconcile interval, on a phone.
|
|
12332
|
+
*
|
|
12333
|
+
* Safe to send at a hub that predates it: Zod STRIPS unknown input
|
|
12334
|
+
* keys rather than rejecting them (verified against the live hub
|
|
12335
|
+
* 2026-08-25 — 967 rows came back), so an old hub answers exactly what
|
|
12336
|
+
* it answers today and the caller filters as it already does.
|
|
12337
|
+
*/
|
|
12338
|
+
deviceIds: array(number()).optional()
|
|
12266
12339
|
}), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
|
|
12267
12340
|
mode: LinkedDevicesModeSchema,
|
|
12268
12341
|
devices: array(LinkedDeviceSchema)
|
|
12269
|
-
})), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
12342
|
+
})), 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({
|
|
12270
12343
|
deviceId: number(),
|
|
12271
12344
|
values: record(string(), unknown())
|
|
12272
12345
|
}), object({ success: literal(true) }), {
|
|
@@ -12293,25 +12366,7 @@ method(object({
|
|
|
12293
12366
|
}), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
|
|
12294
12367
|
kind: "mutation",
|
|
12295
12368
|
auth: "admin"
|
|
12296
|
-
}), method(object({ deviceId: number() }), object({
|
|
12297
|
-
deviceId: number(),
|
|
12298
|
-
entries: array(object({
|
|
12299
|
-
capName: string(),
|
|
12300
|
-
kind: _enum(["native", "wrapped"]),
|
|
12301
|
-
providerAddonId: string(),
|
|
12302
|
-
providerNodeId: string(),
|
|
12303
|
-
nativeAddonId: string()
|
|
12304
|
-
}))
|
|
12305
|
-
})), method(object({}), array(object({
|
|
12306
|
-
deviceId: number(),
|
|
12307
|
-
entries: array(object({
|
|
12308
|
-
capName: string(),
|
|
12309
|
-
kind: _enum(["native", "wrapped"]),
|
|
12310
|
-
providerAddonId: string(),
|
|
12311
|
-
providerNodeId: string(),
|
|
12312
|
-
nativeAddonId: string()
|
|
12313
|
-
}))
|
|
12314
|
-
}))), method(object({
|
|
12369
|
+
}), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
|
|
12315
12370
|
deviceId: number(),
|
|
12316
12371
|
capName: string(),
|
|
12317
12372
|
wrapperAddonId: string(),
|
|
@@ -14721,12 +14776,15 @@ var NcOccupancyConditionSchema = object({
|
|
|
14721
14776
|
* there is no second switch that can disagree with the first and every rule
|
|
14722
14777
|
* authored before the decision migrates for free (`audioModeOf`):
|
|
14723
14778
|
*
|
|
14724
|
-
* - **LABEL mode — `labels` present.** The rule fires
|
|
14725
|
-
*
|
|
14726
|
-
* `hitPercent` and `samplingSeconds` are ignored
|
|
14727
|
-
*
|
|
14728
|
-
*
|
|
14729
|
-
*
|
|
14779
|
+
* - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
|
|
14780
|
+
* labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
|
|
14781
|
+
* `hitPercent` and `samplingSeconds` are still ignored — a percentage of
|
|
14782
|
+
* frames is the wrong question for a classifier that labels 1–3 frames
|
|
14783
|
+
* per episode. The count window is the brake that drops a single-frame
|
|
14784
|
+
* false positive; the rule's own `throttle` cooldown is the other. The
|
|
14785
|
+
* per-label confidence floor is the analyzer's (`classificationMinScore`,
|
|
14786
|
+
* per device) — a label only reaches this condition if the classifier was
|
|
14787
|
+
* already confident enough. `confirmHits: 1` restores first-frame fire.
|
|
14730
14788
|
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
14731
14789
|
* the condition: at least `hitPercent`% of the samples over
|
|
14732
14790
|
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
@@ -14753,14 +14811,22 @@ var NcOccupancyConditionSchema = object({
|
|
|
14753
14811
|
* an operator who typed `dog` mean the same thing.
|
|
14754
14812
|
*/
|
|
14755
14813
|
var NcAudioConditionSchema = object({
|
|
14756
|
-
/** LABEL MODE: audio macro labels. Present ⇒
|
|
14814
|
+
/** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
|
|
14757
14815
|
labels: array(string().min(1)).min(1).optional(),
|
|
14758
14816
|
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
14759
14817
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
14760
14818
|
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
14761
14819
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
14762
14820
|
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
14763
|
-
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
14821
|
+
samplingSeconds: number().int().min(1).max(300).default(10),
|
|
14822
|
+
/**
|
|
14823
|
+
* LABEL MODE: how many labelled frames must land inside
|
|
14824
|
+
* {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
|
|
14825
|
+
* Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
|
|
14826
|
+
*/
|
|
14827
|
+
confirmHits: number().int().min(1).max(20).optional(),
|
|
14828
|
+
/** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
|
|
14829
|
+
confirmWindowSec: number().int().min(1).max(60).optional()
|
|
14764
14830
|
});
|
|
14765
14831
|
/**
|
|
14766
14832
|
* Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
|
|
@@ -17134,6 +17200,46 @@ var RecentTracksPageSchema = object({
|
|
|
17134
17200
|
/** Cursor for the next page, or null when this page is the last. */
|
|
17135
17201
|
nextCursor: string().nullable()
|
|
17136
17202
|
});
|
|
17203
|
+
var LIST_GROUPS_DEFAULT_LIMIT = 40;
|
|
17204
|
+
var LIST_GROUPS_MAX_LIMIT = 100;
|
|
17205
|
+
var AnalyticsGroupRecordSchema = object({
|
|
17206
|
+
id: string(),
|
|
17207
|
+
deviceId: number().int(),
|
|
17208
|
+
openedAt: number().int(),
|
|
17209
|
+
closedAt: number().int(),
|
|
17210
|
+
timestamp: number().int(),
|
|
17211
|
+
memberCount: number().int(),
|
|
17212
|
+
memberTrackIds: array(string()).readonly(),
|
|
17213
|
+
className: string(),
|
|
17214
|
+
classes: array(string()).readonly(),
|
|
17215
|
+
/** Relative event-media path, or null when the group has no picture yet. */
|
|
17216
|
+
mediaUrl: string().nullable(),
|
|
17217
|
+
singleton: boolean()
|
|
17218
|
+
});
|
|
17219
|
+
var AnalyticsGroupMemberSchema = object({
|
|
17220
|
+
trackId: string(),
|
|
17221
|
+
deviceId: number().int(),
|
|
17222
|
+
className: string(),
|
|
17223
|
+
firstSeen: number().int(),
|
|
17224
|
+
lastSeen: number().int(),
|
|
17225
|
+
mediaUrl: string().nullable()
|
|
17226
|
+
});
|
|
17227
|
+
var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
|
|
17228
|
+
var ListGroupsQueryInput = object({
|
|
17229
|
+
/** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
|
|
17230
|
+
deviceIds: array(number()),
|
|
17231
|
+
/** Window lower bound on `closedAt` (inclusive). */
|
|
17232
|
+
since: number().optional(),
|
|
17233
|
+
/** Window upper bound on `openedAt` (inclusive). */
|
|
17234
|
+
until: number().optional(),
|
|
17235
|
+
limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
|
|
17236
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
17237
|
+
cursor: string().optional()
|
|
17238
|
+
});
|
|
17239
|
+
var ListGroupsPageSchema = object({
|
|
17240
|
+
groups: array(AnalyticsGroupRecordSchema).readonly(),
|
|
17241
|
+
nextCursor: string().nullable()
|
|
17242
|
+
});
|
|
17137
17243
|
var KeyEventQueryInput = object({
|
|
17138
17244
|
deviceId: number(),
|
|
17139
17245
|
/** Window lower bound (track firstSeen ≥ since). */
|
|
@@ -17209,7 +17315,9 @@ var TrackCascadeCountsSchema = object({
|
|
|
17209
17315
|
/** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
|
|
17210
17316
|
plates: number().int(),
|
|
17211
17317
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
17212
|
-
embeddings: number().int()
|
|
17318
|
+
embeddings: number().int(),
|
|
17319
|
+
/** Group membership + group rows removed with their last member (best-effort). */
|
|
17320
|
+
groups: number().int()
|
|
17213
17321
|
});
|
|
17214
17322
|
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
17215
17323
|
var DiskReconcileCountsSchema = object({
|
|
@@ -17355,7 +17463,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17355
17463
|
* stationary registry). Default false: the timeline lists passages,
|
|
17356
17464
|
* not parking records (operator decision, 2026-08-15). */
|
|
17357
17465
|
includeStationary: boolean().optional()
|
|
17358
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(
|
|
17466
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
|
|
17467
|
+
deviceId: number(),
|
|
17468
|
+
groupId: string().min(1)
|
|
17469
|
+
}), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
17359
17470
|
kind: "mutation",
|
|
17360
17471
|
auth: "admin"
|
|
17361
17472
|
}), 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({
|
|
@@ -17573,6 +17684,33 @@ var NativeCropRefSchema = object({
|
|
|
17573
17684
|
h: number()
|
|
17574
17685
|
})
|
|
17575
17686
|
});
|
|
17687
|
+
object({
|
|
17688
|
+
crop: object({
|
|
17689
|
+
left: number(),
|
|
17690
|
+
top: number(),
|
|
17691
|
+
width: number().positive(),
|
|
17692
|
+
height: number().positive()
|
|
17693
|
+
}).optional(),
|
|
17694
|
+
content: object({
|
|
17695
|
+
width: number().int().positive(),
|
|
17696
|
+
height: number().int().positive()
|
|
17697
|
+
}),
|
|
17698
|
+
fit: _enum(["stretch", "contain"]),
|
|
17699
|
+
format: _enum([
|
|
17700
|
+
"rgb",
|
|
17701
|
+
"gray",
|
|
17702
|
+
"jpeg"
|
|
17703
|
+
])
|
|
17704
|
+
});
|
|
17705
|
+
var FrameRefSchema = object({
|
|
17706
|
+
registryId: string().min(1),
|
|
17707
|
+
id: string().min(1),
|
|
17708
|
+
width: number().int().positive(),
|
|
17709
|
+
height: number().int().positive(),
|
|
17710
|
+
format: _enum(["rgb", "gray"]),
|
|
17711
|
+
timestamp: number(),
|
|
17712
|
+
capturedAt: number().optional()
|
|
17713
|
+
});
|
|
17576
17714
|
var ModelFormatSchema$1 = _enum([
|
|
17577
17715
|
"onnx",
|
|
17578
17716
|
"coreml",
|
|
@@ -17638,7 +17776,8 @@ var PipelineModelOptionSchema = object({
|
|
|
17638
17776
|
sizeMB: number()
|
|
17639
17777
|
})),
|
|
17640
17778
|
group: ModelVariantGroupSchema.optional(),
|
|
17641
|
-
legacy: boolean().optional()
|
|
17779
|
+
legacy: boolean().optional(),
|
|
17780
|
+
provider: ModelProviderIdSchema.optional()
|
|
17642
17781
|
});
|
|
17643
17782
|
var ConfigFieldBridge = custom();
|
|
17644
17783
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -17817,6 +17956,12 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
17817
17956
|
steps: array(PipelineStepInputSchema).min(1),
|
|
17818
17957
|
frame: FrameInputSchema.optional(),
|
|
17819
17958
|
/**
|
|
17959
|
+
* Process-local lazy frame. Valid only when caller and provider resolve
|
|
17960
|
+
* in the same execution-group process; split/cross-node callers use
|
|
17961
|
+
* `frame`/`image` inline compatibility instead.
|
|
17962
|
+
*/
|
|
17963
|
+
frameRef: FrameRefSchema.optional(),
|
|
17964
|
+
/**
|
|
17820
17965
|
* CB5 shm passthrough — a `FrameHandle` naming the same ring slot
|
|
17821
17966
|
* the decoded pixels live in. One more member of the one-of
|
|
17822
17967
|
* frame/frameHandle/image/imageBase64/referenceImage group.
|
|
@@ -18112,7 +18257,10 @@ var NativeCropResultSchema = object({
|
|
|
18112
18257
|
* Which source served this crop, so a quality-sensitive consumer (the native
|
|
18113
18258
|
* `keyFrame`) can reject a degraded fallback:
|
|
18114
18259
|
* - `native` — cut from the decode worker's retained NATIVE surface (the
|
|
18115
|
-
* quality path).
|
|
18260
|
+
* quality path). A subject-tile serve is also native-resolution and stays
|
|
18261
|
+
* `native` here: the public enum cannot name `tile` without a breaking cap
|
|
18262
|
+
* change. Runner telemetry distinguishes lease vs tile via `source` on the
|
|
18263
|
+
* internal crop result (`nativeHits` vs `tileHits`).
|
|
18116
18264
|
* - `ram-fullframe` — the native surface MISSED but the request was full-frame,
|
|
18117
18265
|
* so the ≤640 RAM `RetainedFrameStore` served it (honest lower-res; legit for
|
|
18118
18266
|
* the blank-frame guard / 640-snapshot resolve, NOT for the clean keyFrame).
|
|
@@ -18603,12 +18751,41 @@ var RunnerLocalLoadSchema = object({
|
|
|
18603
18751
|
* legacy `OrchestratorMetricsSchema` shape so existing dashboards keep
|
|
18604
18752
|
* working unchanged when they switch to reading from the runner cap.
|
|
18605
18753
|
*/
|
|
18754
|
+
var FrameLazyCountersSchema = object({
|
|
18755
|
+
framesDecoded: number(),
|
|
18756
|
+
framesAdmitted: number(),
|
|
18757
|
+
framesDroppedPixelFree: number(),
|
|
18758
|
+
viewsMaterialized: number(),
|
|
18759
|
+
viewsSkipped: number(),
|
|
18760
|
+
workerToRunnerBytes: number(),
|
|
18761
|
+
runnerToPoolRawBytes: number(),
|
|
18762
|
+
runnerToPoolJpegBytes: number(),
|
|
18763
|
+
onDemandFullFrameRequests: number(),
|
|
18764
|
+
onDemandCropRequests: number(),
|
|
18765
|
+
nativeHits: number(),
|
|
18766
|
+
nativeMisses: number(),
|
|
18767
|
+
tileHits: number(),
|
|
18768
|
+
tileMisses: number(),
|
|
18769
|
+
fallbackHits: number(),
|
|
18770
|
+
fallbackMisses: number(),
|
|
18771
|
+
retainedWritesAvoided: number(),
|
|
18772
|
+
residentRefs: number(),
|
|
18773
|
+
residentBytes: number(),
|
|
18774
|
+
releases: number(),
|
|
18775
|
+
evictions: number(),
|
|
18776
|
+
staleMisses: number()
|
|
18777
|
+
});
|
|
18778
|
+
var FrameLazyMetricsSchema = object({
|
|
18779
|
+
node: FrameLazyCountersSchema,
|
|
18780
|
+
cameras: array(FrameLazyCountersSchema.extend({ deviceId: number() }))
|
|
18781
|
+
});
|
|
18606
18782
|
var RunnerLocalMetricsSchema = object({
|
|
18607
18783
|
nodeId: string(),
|
|
18608
18784
|
activeCameras: number(),
|
|
18609
18785
|
throttledCameras: number(),
|
|
18610
18786
|
avgInferenceTimeMs: number(),
|
|
18611
|
-
queueDepth: number()
|
|
18787
|
+
queueDepth: number(),
|
|
18788
|
+
frameLazy: FrameLazyMetricsSchema.optional()
|
|
18612
18789
|
});
|
|
18613
18790
|
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({
|
|
18614
18791
|
handle: FrameHandleSchema,
|
|
@@ -19908,6 +20085,9 @@ method(_void(), ProviderInfoSchema), method(object({ config: record(string(), un
|
|
|
19908
20085
|
location: StorageLocationSchema,
|
|
19909
20086
|
relativePath: string()
|
|
19910
20087
|
}), _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" });
|
|
20088
|
+
/** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
|
|
20089
|
+
var ProfileSettingsSchemaBridge = unknown().nullable();
|
|
20090
|
+
var ProfileSettingsBagSchema = record(string(), unknown());
|
|
19911
20091
|
/**
|
|
19912
20092
|
* A live terminal session hosted by the provider addon. Output and input do
|
|
19913
20093
|
* NOT flow through the capability — they use the addon data plane
|
|
@@ -19937,7 +20117,14 @@ var TerminalSessionInfoSchema = object({
|
|
|
19937
20117
|
var TerminalProfileInfoSchema = object({
|
|
19938
20118
|
profileId: string(),
|
|
19939
20119
|
label: string(),
|
|
19940
|
-
description: string().optional()
|
|
20120
|
+
description: string().optional(),
|
|
20121
|
+
/** Spawn defaults the instance form copies on create. */
|
|
20122
|
+
executable: string().optional(),
|
|
20123
|
+
args: array(string()).readonly().optional(),
|
|
20124
|
+
cwd: string().optional(),
|
|
20125
|
+
environment: array(string()).readonly().optional(),
|
|
20126
|
+
/** ConfigUISchema for instance knobs, or null when the profile has none. */
|
|
20127
|
+
settingsSchema: ProfileSettingsSchemaBridge.optional()
|
|
19941
20128
|
});
|
|
19942
20129
|
/**
|
|
19943
20130
|
* A durable operator-created Terminal instance. Profiles are templates; only
|
|
@@ -19950,7 +20137,12 @@ var TerminalInstanceInfoSchema = object({
|
|
|
19950
20137
|
profileId: string(),
|
|
19951
20138
|
profileLabel: string(),
|
|
19952
20139
|
name: string(),
|
|
19953
|
-
enabled: boolean()
|
|
20140
|
+
enabled: boolean(),
|
|
20141
|
+
executable: string(),
|
|
20142
|
+
args: array(string()).readonly(),
|
|
20143
|
+
cwd: string(),
|
|
20144
|
+
environment: array(string()).readonly(),
|
|
20145
|
+
profileSettings: ProfileSettingsBagSchema
|
|
19954
20146
|
});
|
|
19955
20147
|
var TerminalLegacyCameraSchema = object({
|
|
19956
20148
|
stableId: string(),
|
|
@@ -19980,7 +20172,23 @@ var TerminalOutputBatchSchema = object({
|
|
|
19980
20172
|
method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalInstanceInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
19981
20173
|
targetNodeId: string().min(1),
|
|
19982
20174
|
profileId: string().min(1),
|
|
19983
|
-
name: string().trim().min(1).max(160).optional()
|
|
20175
|
+
name: string().trim().min(1).max(160).optional(),
|
|
20176
|
+
executable: string().max(1024).optional(),
|
|
20177
|
+
args: array(string().max(2048)).max(64).optional(),
|
|
20178
|
+
cwd: string().max(1024).optional(),
|
|
20179
|
+
environment: array(string().max(4096)).max(64).optional(),
|
|
20180
|
+
profileSettings: ProfileSettingsBagSchema.optional()
|
|
20181
|
+
}), TerminalInstanceInfoSchema, {
|
|
20182
|
+
kind: "mutation",
|
|
20183
|
+
auth: "admin"
|
|
20184
|
+
}), method(object({
|
|
20185
|
+
instanceId: string().min(1),
|
|
20186
|
+
name: string().trim().min(1).max(160).optional(),
|
|
20187
|
+
executable: string().max(1024).optional(),
|
|
20188
|
+
args: array(string().max(2048)).max(64).optional(),
|
|
20189
|
+
cwd: string().max(1024).optional(),
|
|
20190
|
+
environment: array(string().max(4096)).max(64).optional(),
|
|
20191
|
+
profileSettings: ProfileSettingsBagSchema.optional()
|
|
19984
20192
|
}), TerminalInstanceInfoSchema, {
|
|
19985
20193
|
kind: "mutation",
|
|
19986
20194
|
auth: "admin"
|
|
@@ -20002,7 +20210,11 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
|
|
|
20002
20210
|
}), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
20003
20211
|
profileId: string(),
|
|
20004
20212
|
cols: number().int().positive(),
|
|
20005
|
-
rows: number().int().positive()
|
|
20213
|
+
rows: number().int().positive(),
|
|
20214
|
+
executable: string().max(1024).optional(),
|
|
20215
|
+
args: array(string().max(2048)).max(64).optional(),
|
|
20216
|
+
cwd: string().max(1024).optional(),
|
|
20217
|
+
environment: array(string().max(4096)).max(64).optional()
|
|
20006
20218
|
}), TerminalSessionInfoSchema, {
|
|
20007
20219
|
kind: "mutation",
|
|
20008
20220
|
auth: "admin"
|
|
@@ -23885,10 +24097,10 @@ var lawnMowerControlCapability = {
|
|
|
23885
24097
|
*
|
|
23886
24098
|
* • The SDK (mobile / web client) consumes `getConnectionEndpoints()`
|
|
23887
24099
|
* to receive an ordered list of candidate base URLs it should race
|
|
23888
|
-
* on connect — LAN IPv4 first (lowest latency
|
|
23889
|
-
* then public hostname (if a tunnel is
|
|
23890
|
-
* race them with short timeouts and stick with the
|
|
23891
|
-
* session.
|
|
24100
|
+
* on connect — LAN IPv4 and stable LAN IPv6 first (lowest latency
|
|
24101
|
+
* when on the same network), then public hostname (if a tunnel is
|
|
24102
|
+
* up). The SDK can race them with short timeouts and stick with the
|
|
24103
|
+
* winner for the session.
|
|
23892
24104
|
*
|
|
23893
24105
|
* Why hub-only: agents are not directly addressable by the operator's
|
|
23894
24106
|
* clients — they reverse-connect to the hub. Exposing their interfaces
|
|
@@ -24043,6 +24255,17 @@ var NotificationEndpointSchema = object({
|
|
|
24043
24255
|
/** What the ranking currently resolves to (null when nothing is reachable). */
|
|
24044
24256
|
resolved: string().nullable()
|
|
24045
24257
|
});
|
|
24258
|
+
/**
|
|
24259
|
+
* The URLs the SDK / viewer should race for API access. `baseUrls` empty =
|
|
24260
|
+
* AUTO (every LAN IPv4 + the public tunnel). `resolved` is what that choice
|
|
24261
|
+
* currently expands to, so the UI can show the effective set either way.
|
|
24262
|
+
*/
|
|
24263
|
+
var ViewerEndpointsSchema = object({
|
|
24264
|
+
/** The operator's explicit race set, or empty for AUTO. */
|
|
24265
|
+
baseUrls: array(string()).readonly(),
|
|
24266
|
+
/** What the ranking currently resolves to (may be empty if nothing is up). */
|
|
24267
|
+
resolved: array(string()).readonly()
|
|
24268
|
+
});
|
|
24046
24269
|
var AllowedAddressesSchema = object({
|
|
24047
24270
|
/**
|
|
24048
24271
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -24051,6 +24274,20 @@ var AllowedAddressesSchema = object({
|
|
|
24051
24274
|
* Network Addresses admin page and persisted by the addon.
|
|
24052
24275
|
*/
|
|
24053
24276
|
addresses: array(string()).readonly() });
|
|
24277
|
+
var TlsStatusSchema = object({
|
|
24278
|
+
mode: _enum([
|
|
24279
|
+
"generated",
|
|
24280
|
+
"uploaded",
|
|
24281
|
+
"disabled"
|
|
24282
|
+
]),
|
|
24283
|
+
leafFingerprintSha256: string().nullable(),
|
|
24284
|
+
caFingerprintSha256: string().nullable(),
|
|
24285
|
+
validTo: string().nullable(),
|
|
24286
|
+
sans: array(string()),
|
|
24287
|
+
caCertPem: string().nullable(),
|
|
24288
|
+
reissueError: string().nullable(),
|
|
24289
|
+
restartRequired: boolean()
|
|
24290
|
+
});
|
|
24054
24291
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
24055
24292
|
/**
|
|
24056
24293
|
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
@@ -24060,17 +24297,31 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
24060
24297
|
*/
|
|
24061
24298
|
port: number().int().min(1).max(65535).optional(),
|
|
24062
24299
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
24063
|
-
* candidate. Default `
|
|
24300
|
+
* candidate. Default `false` — loopback is not a client route. */
|
|
24064
24301
|
includeLoopback: boolean().optional(),
|
|
24065
|
-
/** Skip IPv6 entries.
|
|
24066
|
-
*
|
|
24302
|
+
/** Skip IPv6 entries. Default `false` — the palette includes stable
|
|
24303
|
+
* LAN IPv6 (ICE/WebRTC uses dual-stack regardless). Pass `true` to
|
|
24304
|
+
* hide them. The viewer HTTP/WS race is `getViewerEndpoints`. */
|
|
24067
24305
|
ipv4Only: boolean().optional(),
|
|
24068
24306
|
/** Scheme to emit for LAN/loopback URLs. Default `'http'`.
|
|
24069
24307
|
* Pass `'https'` when the caller is itself loaded over HTTPS
|
|
24070
24308
|
* to avoid mixed-content blocks in the browser. The public
|
|
24071
24309
|
* tunnel always emits `https://` regardless. */
|
|
24072
24310
|
scheme: _enum(["http", "https"]).optional()
|
|
24073
|
-
}), 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" })
|
|
24311
|
+
}), 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, {
|
|
24312
|
+
kind: "mutation",
|
|
24313
|
+
auth: "admin"
|
|
24314
|
+
}), method(object({
|
|
24315
|
+
certPem: string().min(1),
|
|
24316
|
+
keyPem: string().min(1),
|
|
24317
|
+
caPem: string().optional()
|
|
24318
|
+
}), TlsStatusSchema, {
|
|
24319
|
+
kind: "mutation",
|
|
24320
|
+
auth: "admin"
|
|
24321
|
+
}), method(_void(), object({ pem: string() })), method(_void(), TlsStatusSchema, {
|
|
24322
|
+
kind: "mutation",
|
|
24323
|
+
auth: "admin"
|
|
24324
|
+
});
|
|
24074
24325
|
var LockControlStatusSchema = object({
|
|
24075
24326
|
/** Lifecycle state of the lock. `jammed` means the motor reported
|
|
24076
24327
|
* failure to reach the target — operator intervention required. */
|
|
@@ -25631,7 +25882,12 @@ var PlateInfoSchema = object({
|
|
|
25631
25882
|
plateBbox: BoundingBoxSchema.optional(),
|
|
25632
25883
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
25633
25884
|
keyFrameMediaKey: string().optional(),
|
|
25634
|
-
base64: string().optional()
|
|
25885
|
+
base64: string().optional(),
|
|
25886
|
+
/**
|
|
25887
|
+
* Same crop as a data-plane URL. `getPlateByTrack` returns this and
|
|
25888
|
+
* never inlines JPEG; `listPlates` still inlines for the admin-ui.
|
|
25889
|
+
*/
|
|
25890
|
+
cropUrl: string().optional()
|
|
25635
25891
|
});
|
|
25636
25892
|
var MediaFileLiteSchema = object({
|
|
25637
25893
|
key: string(),
|
|
@@ -31155,6 +31411,12 @@ Object.freeze({
|
|
|
31155
31411
|
addonId: null,
|
|
31156
31412
|
access: "view"
|
|
31157
31413
|
},
|
|
31414
|
+
"deviceManager.getBindingsBatch": {
|
|
31415
|
+
capName: "device-manager",
|
|
31416
|
+
capScope: "system",
|
|
31417
|
+
addonId: null,
|
|
31418
|
+
access: "view"
|
|
31419
|
+
},
|
|
31158
31420
|
"deviceManager.getChildren": {
|
|
31159
31421
|
capName: "device-manager",
|
|
31160
31422
|
capScope: "system",
|
|
@@ -31215,6 +31477,12 @@ Object.freeze({
|
|
|
31215
31477
|
addonId: null,
|
|
31216
31478
|
access: "view"
|
|
31217
31479
|
},
|
|
31480
|
+
"deviceManager.getLinkedDevicesBatch": {
|
|
31481
|
+
capName: "device-manager",
|
|
31482
|
+
capScope: "system",
|
|
31483
|
+
addonId: null,
|
|
31484
|
+
access: "view"
|
|
31485
|
+
},
|
|
31218
31486
|
"deviceManager.getRoleDisplayDefaults": {
|
|
31219
31487
|
capName: "device-manager",
|
|
31220
31488
|
capScope: "system",
|
|
@@ -32097,6 +32365,12 @@ Object.freeze({
|
|
|
32097
32365
|
addonId: null,
|
|
32098
32366
|
access: "create"
|
|
32099
32367
|
},
|
|
32368
|
+
"localNetwork.downloadCa": {
|
|
32369
|
+
capName: "local-network",
|
|
32370
|
+
capScope: "system",
|
|
32371
|
+
addonId: null,
|
|
32372
|
+
access: "view"
|
|
32373
|
+
},
|
|
32100
32374
|
"localNetwork.getAllowedAddresses": {
|
|
32101
32375
|
capName: "local-network",
|
|
32102
32376
|
capScope: "system",
|
|
@@ -32121,18 +32395,42 @@ Object.freeze({
|
|
|
32121
32395
|
addonId: null,
|
|
32122
32396
|
access: "view"
|
|
32123
32397
|
},
|
|
32398
|
+
"localNetwork.getTlsStatus": {
|
|
32399
|
+
capName: "local-network",
|
|
32400
|
+
capScope: "system",
|
|
32401
|
+
addonId: null,
|
|
32402
|
+
access: "view"
|
|
32403
|
+
},
|
|
32404
|
+
"localNetwork.getViewerEndpoints": {
|
|
32405
|
+
capName: "local-network",
|
|
32406
|
+
capScope: "system",
|
|
32407
|
+
addonId: null,
|
|
32408
|
+
access: "view"
|
|
32409
|
+
},
|
|
32124
32410
|
"localNetwork.list": {
|
|
32125
32411
|
capName: "local-network",
|
|
32126
32412
|
capScope: "system",
|
|
32127
32413
|
addonId: null,
|
|
32128
32414
|
access: "view"
|
|
32129
32415
|
},
|
|
32416
|
+
"localNetwork.regenerateCertificate": {
|
|
32417
|
+
capName: "local-network",
|
|
32418
|
+
capScope: "system",
|
|
32419
|
+
addonId: null,
|
|
32420
|
+
access: "create"
|
|
32421
|
+
},
|
|
32130
32422
|
"localNetwork.resetAllowlistToBestMatch": {
|
|
32131
32423
|
capName: "local-network",
|
|
32132
32424
|
capScope: "system",
|
|
32133
32425
|
addonId: null,
|
|
32134
32426
|
access: "delete"
|
|
32135
32427
|
},
|
|
32428
|
+
"localNetwork.revertToGeneratedCertificate": {
|
|
32429
|
+
capName: "local-network",
|
|
32430
|
+
capScope: "system",
|
|
32431
|
+
addonId: null,
|
|
32432
|
+
access: "create"
|
|
32433
|
+
},
|
|
32136
32434
|
"localNetwork.setAllowedAddresses": {
|
|
32137
32435
|
capName: "local-network",
|
|
32138
32436
|
capScope: "system",
|
|
@@ -32145,6 +32443,18 @@ Object.freeze({
|
|
|
32145
32443
|
addonId: null,
|
|
32146
32444
|
access: "create"
|
|
32147
32445
|
},
|
|
32446
|
+
"localNetwork.setViewerEndpoints": {
|
|
32447
|
+
capName: "local-network",
|
|
32448
|
+
capScope: "system",
|
|
32449
|
+
addonId: null,
|
|
32450
|
+
access: "create"
|
|
32451
|
+
},
|
|
32452
|
+
"localNetwork.uploadCertificate": {
|
|
32453
|
+
capName: "local-network",
|
|
32454
|
+
capScope: "system",
|
|
32455
|
+
addonId: null,
|
|
32456
|
+
access: "create"
|
|
32457
|
+
},
|
|
32148
32458
|
"lockControl.lock": {
|
|
32149
32459
|
capName: "lock-control",
|
|
32150
32460
|
capScope: "device",
|
|
@@ -32943,6 +33253,12 @@ Object.freeze({
|
|
|
32943
33253
|
addonId: null,
|
|
32944
33254
|
access: "view"
|
|
32945
33255
|
},
|
|
33256
|
+
"pipelineAnalytics.getGroup": {
|
|
33257
|
+
capName: "pipeline-analytics",
|
|
33258
|
+
capScope: "device",
|
|
33259
|
+
addonId: null,
|
|
33260
|
+
access: "view"
|
|
33261
|
+
},
|
|
32946
33262
|
"pipelineAnalytics.getKeyEvents": {
|
|
32947
33263
|
capName: "pipeline-analytics",
|
|
32948
33264
|
capScope: "device",
|
|
@@ -33027,6 +33343,12 @@ Object.freeze({
|
|
|
33027
33343
|
addonId: null,
|
|
33028
33344
|
access: "view"
|
|
33029
33345
|
},
|
|
33346
|
+
"pipelineAnalytics.listGroups": {
|
|
33347
|
+
capName: "pipeline-analytics",
|
|
33348
|
+
capScope: "device",
|
|
33349
|
+
addonId: null,
|
|
33350
|
+
access: "view"
|
|
33351
|
+
},
|
|
33030
33352
|
"pipelineAnalytics.listOpsLog": {
|
|
33031
33353
|
capName: "pipeline-analytics",
|
|
33032
33354
|
capScope: "device",
|
|
@@ -35025,6 +35347,12 @@ Object.freeze({
|
|
|
35025
35347
|
addonId: null,
|
|
35026
35348
|
access: "create"
|
|
35027
35349
|
},
|
|
35350
|
+
"terminalSession.updateInstance": {
|
|
35351
|
+
capName: "terminal-session",
|
|
35352
|
+
capScope: "system",
|
|
35353
|
+
addonId: null,
|
|
35354
|
+
access: "create"
|
|
35355
|
+
},
|
|
35028
35356
|
"terminalSession.writeInput": {
|
|
35029
35357
|
capName: "terminal-session",
|
|
35030
35358
|
capScope: "system",
|
|
@@ -35802,6 +36130,11 @@ Object.freeze({
|
|
|
35802
36130
|
form: "single",
|
|
35803
36131
|
optional: false
|
|
35804
36132
|
}],
|
|
36133
|
+
"deviceManager.getBindingsBatch": [{
|
|
36134
|
+
name: "deviceIds",
|
|
36135
|
+
form: "array",
|
|
36136
|
+
optional: false
|
|
36137
|
+
}],
|
|
35805
36138
|
"deviceManager.getChildren": [{
|
|
35806
36139
|
name: "parentDeviceId",
|
|
35807
36140
|
form: "single",
|
|
@@ -35847,6 +36180,11 @@ Object.freeze({
|
|
|
35847
36180
|
form: "single",
|
|
35848
36181
|
optional: false
|
|
35849
36182
|
}],
|
|
36183
|
+
"deviceManager.getLinkedDevicesBatch": [{
|
|
36184
|
+
name: "deviceIds",
|
|
36185
|
+
form: "array",
|
|
36186
|
+
optional: false
|
|
36187
|
+
}],
|
|
35850
36188
|
"deviceManager.getSettingsSchema": [{
|
|
35851
36189
|
name: "deviceId",
|
|
35852
36190
|
form: "single",
|
|
@@ -35867,6 +36205,11 @@ Object.freeze({
|
|
|
35867
36205
|
form: "single",
|
|
35868
36206
|
optional: false
|
|
35869
36207
|
}],
|
|
36208
|
+
"deviceManager.listAll": [{
|
|
36209
|
+
name: "deviceIds",
|
|
36210
|
+
form: "array",
|
|
36211
|
+
optional: true
|
|
36212
|
+
}],
|
|
35870
36213
|
"deviceManager.loadConfig": [{
|
|
35871
36214
|
name: "deviceId",
|
|
35872
36215
|
form: "single",
|
|
@@ -36440,6 +36783,11 @@ Object.freeze({
|
|
|
36440
36783
|
form: "single",
|
|
36441
36784
|
optional: false
|
|
36442
36785
|
}],
|
|
36786
|
+
"pipelineAnalytics.getGroup": [{
|
|
36787
|
+
name: "deviceId",
|
|
36788
|
+
form: "single",
|
|
36789
|
+
optional: false
|
|
36790
|
+
}],
|
|
36443
36791
|
"pipelineAnalytics.getKeyEvents": [{
|
|
36444
36792
|
name: "deviceId",
|
|
36445
36793
|
form: "single",
|
|
@@ -36495,6 +36843,11 @@ Object.freeze({
|
|
|
36495
36843
|
form: "array",
|
|
36496
36844
|
optional: false
|
|
36497
36845
|
}],
|
|
36846
|
+
"pipelineAnalytics.listGroups": [{
|
|
36847
|
+
name: "deviceIds",
|
|
36848
|
+
form: "array",
|
|
36849
|
+
optional: false
|
|
36850
|
+
}],
|
|
36498
36851
|
"pipelineAnalytics.listOpsLog": [{
|
|
36499
36852
|
name: "deviceId",
|
|
36500
36853
|
form: "single",
|
|
@@ -37512,6 +37865,35 @@ Object.freeze(Object.fromEntries([{
|
|
|
37512
37865
|
}]
|
|
37513
37866
|
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
37514
37867
|
string().min(1);
|
|
37868
|
+
var CLUSTER_STEP_SETTING_FIELDS = [{
|
|
37869
|
+
stepId: "face-embedding",
|
|
37870
|
+
key: "minLandmarkFaceSize",
|
|
37871
|
+
label: "Min face size for recognition (detection px)",
|
|
37872
|
+
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.",
|
|
37873
|
+
type: "slider",
|
|
37874
|
+
min: 0,
|
|
37875
|
+
max: 64,
|
|
37876
|
+
step: 2,
|
|
37877
|
+
default: 24
|
|
37878
|
+
}];
|
|
37879
|
+
function clusterStepSettingKey(stepId, fieldKey) {
|
|
37880
|
+
return `clusterStepSetting:${stepId}:${fieldKey}`;
|
|
37881
|
+
}
|
|
37882
|
+
var ClusterSettingNumberSchema = number().finite();
|
|
37883
|
+
function readClusterStepSettings(config) {
|
|
37884
|
+
const out = {};
|
|
37885
|
+
for (const field of CLUSTER_STEP_SETTING_FIELDS) {
|
|
37886
|
+
const parsed = ClusterSettingNumberSchema.safeParse(config[clusterStepSettingKey(field.stepId, field.key)]);
|
|
37887
|
+
const value = parsed.success ? parsed.data : field.default;
|
|
37888
|
+
const existing = out[field.stepId] ?? {};
|
|
37889
|
+
out[field.stepId] = {
|
|
37890
|
+
...existing,
|
|
37891
|
+
[field.key]: value
|
|
37892
|
+
};
|
|
37893
|
+
}
|
|
37894
|
+
return out;
|
|
37895
|
+
}
|
|
37896
|
+
readClusterStepSettings({});
|
|
37515
37897
|
object({
|
|
37516
37898
|
/**
|
|
37517
37899
|
* Fraction of the box's own size added on EACH side before cutting.
|