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