@camstack/addon-provider-homematic 1.2.27 → 1.2.29
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
|
@@ -5811,6 +5811,13 @@ var BaseAddon = class {
|
|
|
5811
5811
|
_readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
|
|
5812
5812
|
/** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
|
|
5813
5813
|
_registeredCapNames = [];
|
|
5814
|
+
/**
|
|
5815
|
+
* True only after `readAddonStore` actually answered. Constructor
|
|
5816
|
+
* defaults look like stored config when the store is down — a forked
|
|
5817
|
+
* addon that auto-starts from those defaults (cloudflare-tunnel quick
|
|
5818
|
+
* mode, 2026-08-25) is not "the operator chose this".
|
|
5819
|
+
*/
|
|
5820
|
+
settingsStoreReady = false;
|
|
5814
5821
|
/** Default config values. Provided via constructor. */
|
|
5815
5822
|
defaults;
|
|
5816
5823
|
constructor(defaults) {
|
|
@@ -6211,7 +6218,9 @@ var BaseAddon = class {
|
|
|
6211
6218
|
];
|
|
6212
6219
|
let lastErr;
|
|
6213
6220
|
for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
|
|
6214
|
-
|
|
6221
|
+
const stored = await settings.readAddonStore() ?? {};
|
|
6222
|
+
this.settingsStoreReady = true;
|
|
6223
|
+
return stored;
|
|
6215
6224
|
} catch (err) {
|
|
6216
6225
|
lastErr = err;
|
|
6217
6226
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -6219,6 +6228,7 @@ var BaseAddon = class {
|
|
|
6219
6228
|
if (attempt === delaysMs.length) break;
|
|
6220
6229
|
await new Promise((r) => setTimeout(r, delaysMs[attempt]));
|
|
6221
6230
|
}
|
|
6231
|
+
this.settingsStoreReady = false;
|
|
6222
6232
|
this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
|
|
6223
6233
|
return {};
|
|
6224
6234
|
}
|
|
@@ -8030,6 +8040,15 @@ var LabelDefinitionSchema = object({
|
|
|
8030
8040
|
description: string().optional(),
|
|
8031
8041
|
icon: string().optional()
|
|
8032
8042
|
});
|
|
8043
|
+
var ClassMapDefinitionSchema = object({
|
|
8044
|
+
mapping: record(string(), _enum([
|
|
8045
|
+
"person",
|
|
8046
|
+
"vehicle",
|
|
8047
|
+
"animal",
|
|
8048
|
+
"package"
|
|
8049
|
+
])),
|
|
8050
|
+
preserveOriginal: boolean()
|
|
8051
|
+
});
|
|
8033
8052
|
var MODEL_FORMATS = [
|
|
8034
8053
|
"onnx",
|
|
8035
8054
|
"coreml",
|
|
@@ -8113,6 +8132,12 @@ var ModelVariantGroupSchema = object({
|
|
|
8113
8132
|
*/
|
|
8114
8133
|
resolution: number().int().positive().optional()
|
|
8115
8134
|
});
|
|
8135
|
+
var ModelProviderIdSchema = _enum([
|
|
8136
|
+
"camstack",
|
|
8137
|
+
"frigate",
|
|
8138
|
+
"scrypted",
|
|
8139
|
+
"custom"
|
|
8140
|
+
]);
|
|
8116
8141
|
var ModelCatalogEntrySchema = object({
|
|
8117
8142
|
id: string(),
|
|
8118
8143
|
name: string(),
|
|
@@ -8208,7 +8233,19 @@ var ModelCatalogEntrySchema = object({
|
|
|
8208
8233
|
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
8209
8234
|
* is a presentation overlay resolved back to an `id`.
|
|
8210
8235
|
*/
|
|
8211
|
-
group: ModelVariantGroupSchema.optional()
|
|
8236
|
+
group: ModelVariantGroupSchema.optional(),
|
|
8237
|
+
/**
|
|
8238
|
+
* Catalog source for the pipeline stepper's provider-first picker. Absent on
|
|
8239
|
+
* built-in CamStack entries (treated as `camstack`) and on registry rows
|
|
8240
|
+
* persisted before this field existed (`inferModelProvider` fills those).
|
|
8241
|
+
*/
|
|
8242
|
+
provider: ModelProviderIdSchema.optional(),
|
|
8243
|
+
/**
|
|
8244
|
+
* Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
|
|
8245
|
+
* applies (Frigate / COCO public catalog). Set on a custom model whose raw
|
|
8246
|
+
* labels already ARE the CamStack macros (Scrypted identity map).
|
|
8247
|
+
*/
|
|
8248
|
+
classMap: ClassMapDefinitionSchema.optional()
|
|
8212
8249
|
});
|
|
8213
8250
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
8214
8251
|
format: literal("openvino"),
|
|
@@ -8237,7 +8274,8 @@ var ModelConvertMetadataSchema = object({
|
|
|
8237
8274
|
"ocr",
|
|
8238
8275
|
"segmentation"
|
|
8239
8276
|
]),
|
|
8240
|
-
faceAlignment: boolean().optional()
|
|
8277
|
+
faceAlignment: boolean().optional(),
|
|
8278
|
+
classMap: ClassMapDefinitionSchema.optional()
|
|
8241
8279
|
});
|
|
8242
8280
|
var ConvertResultSchema = object({
|
|
8243
8281
|
entry: ModelCatalogEntrySchema,
|
|
@@ -12060,6 +12098,27 @@ var LinkedDeviceSchema = object({
|
|
|
12060
12098
|
features: array(string()),
|
|
12061
12099
|
producesTrackedEvents: boolean().optional()
|
|
12062
12100
|
});
|
|
12101
|
+
/** One camera's resolved linked set, tagged with the camera it belongs to.
|
|
12102
|
+
* The batch answer needs the tag; the single-device answer already has it
|
|
12103
|
+
* from the input, which is why `getLinkedDevices` keeps the untagged shape. */
|
|
12104
|
+
var LinkedDevicesForDeviceSchema = object({
|
|
12105
|
+
deviceId: number(),
|
|
12106
|
+
mode: LinkedDevicesModeSchema,
|
|
12107
|
+
devices: array(LinkedDeviceSchema)
|
|
12108
|
+
});
|
|
12109
|
+
/** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
|
|
12110
|
+
* `getAllBindings` all answer in. Declared once: three copies of the same
|
|
12111
|
+
* object literal is exactly how the three drift apart. */
|
|
12112
|
+
var DeviceBindingsForDeviceSchema = object({
|
|
12113
|
+
deviceId: number(),
|
|
12114
|
+
entries: array(object({
|
|
12115
|
+
capName: string(),
|
|
12116
|
+
kind: _enum(["native", "wrapped"]),
|
|
12117
|
+
providerAddonId: string(),
|
|
12118
|
+
providerNodeId: string(),
|
|
12119
|
+
nativeAddonId: string()
|
|
12120
|
+
}))
|
|
12121
|
+
});
|
|
12063
12122
|
var SavedDeviceRowSchema = object({
|
|
12064
12123
|
/** Numeric id reserved at allocateDeviceId time. */
|
|
12065
12124
|
id: number(),
|
|
@@ -12285,11 +12344,25 @@ method(object({
|
|
|
12285
12344
|
projection: _enum(["full", "slim"]).optional(),
|
|
12286
12345
|
/** Return only camera devices. Filtering server-side instead of
|
|
12287
12346
|
* shipping 293 rows to find 12. */
|
|
12288
|
-
isCamera: boolean().optional()
|
|
12347
|
+
isCamera: boolean().optional(),
|
|
12348
|
+
/**
|
|
12349
|
+
* Return only these device ids. For the caller that already KNOWS the
|
|
12350
|
+
* handful it wants and needs a field the id-bearing answer does not
|
|
12351
|
+
* carry — the viewer's linked-devices panel joins `type` and `online`
|
|
12352
|
+
* onto ~8 linked ids and, unfiltered, dragged the fleet across to do
|
|
12353
|
+
* it: 433 KB slim / 958 KB full for 967 devices, on a query that
|
|
12354
|
+
* refetches on the reconcile interval, on a phone.
|
|
12355
|
+
*
|
|
12356
|
+
* Safe to send at a hub that predates it: Zod STRIPS unknown input
|
|
12357
|
+
* keys rather than rejecting them (verified against the live hub
|
|
12358
|
+
* 2026-08-25 — 967 rows came back), so an old hub answers exactly what
|
|
12359
|
+
* it answers today and the caller filters as it already does.
|
|
12360
|
+
*/
|
|
12361
|
+
deviceIds: array(number()).optional()
|
|
12289
12362
|
}), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
|
|
12290
12363
|
mode: LinkedDevicesModeSchema,
|
|
12291
12364
|
devices: array(LinkedDeviceSchema)
|
|
12292
|
-
})), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
12365
|
+
})), 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({
|
|
12293
12366
|
deviceId: number(),
|
|
12294
12367
|
values: record(string(), unknown())
|
|
12295
12368
|
}), object({ success: literal(true) }), {
|
|
@@ -12316,25 +12389,7 @@ method(object({
|
|
|
12316
12389
|
}), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
|
|
12317
12390
|
kind: "mutation",
|
|
12318
12391
|
auth: "admin"
|
|
12319
|
-
}), method(object({ deviceId: number() }), object({
|
|
12320
|
-
deviceId: number(),
|
|
12321
|
-
entries: array(object({
|
|
12322
|
-
capName: string(),
|
|
12323
|
-
kind: _enum(["native", "wrapped"]),
|
|
12324
|
-
providerAddonId: string(),
|
|
12325
|
-
providerNodeId: string(),
|
|
12326
|
-
nativeAddonId: string()
|
|
12327
|
-
}))
|
|
12328
|
-
})), method(object({}), array(object({
|
|
12329
|
-
deviceId: number(),
|
|
12330
|
-
entries: array(object({
|
|
12331
|
-
capName: string(),
|
|
12332
|
-
kind: _enum(["native", "wrapped"]),
|
|
12333
|
-
providerAddonId: string(),
|
|
12334
|
-
providerNodeId: string(),
|
|
12335
|
-
nativeAddonId: string()
|
|
12336
|
-
}))
|
|
12337
|
-
}))), method(object({
|
|
12392
|
+
}), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
|
|
12338
12393
|
deviceId: number(),
|
|
12339
12394
|
capName: string(),
|
|
12340
12395
|
wrapperAddonId: string(),
|
|
@@ -14744,12 +14799,15 @@ var NcOccupancyConditionSchema = object({
|
|
|
14744
14799
|
* there is no second switch that can disagree with the first and every rule
|
|
14745
14800
|
* authored before the decision migrates for free (`audioModeOf`):
|
|
14746
14801
|
*
|
|
14747
|
-
* - **LABEL mode — `labels` present.** The rule fires
|
|
14748
|
-
*
|
|
14749
|
-
* `hitPercent` and `samplingSeconds` are ignored
|
|
14750
|
-
*
|
|
14751
|
-
*
|
|
14752
|
-
*
|
|
14802
|
+
* - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
|
|
14803
|
+
* labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
|
|
14804
|
+
* `hitPercent` and `samplingSeconds` are still ignored — a percentage of
|
|
14805
|
+
* frames is the wrong question for a classifier that labels 1–3 frames
|
|
14806
|
+
* per episode. The count window is the brake that drops a single-frame
|
|
14807
|
+
* false positive; the rule's own `throttle` cooldown is the other. The
|
|
14808
|
+
* per-label confidence floor is the analyzer's (`classificationMinScore`,
|
|
14809
|
+
* per device) — a label only reaches this condition if the classifier was
|
|
14810
|
+
* already confident enough. `confirmHits: 1` restores first-frame fire.
|
|
14753
14811
|
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
14754
14812
|
* the condition: at least `hitPercent`% of the samples over
|
|
14755
14813
|
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
@@ -14776,14 +14834,22 @@ var NcOccupancyConditionSchema = object({
|
|
|
14776
14834
|
* an operator who typed `dog` mean the same thing.
|
|
14777
14835
|
*/
|
|
14778
14836
|
var NcAudioConditionSchema = object({
|
|
14779
|
-
/** LABEL MODE: audio macro labels. Present ⇒
|
|
14837
|
+
/** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
|
|
14780
14838
|
labels: array(string().min(1)).min(1).optional(),
|
|
14781
14839
|
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
14782
14840
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
14783
14841
|
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
14784
14842
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
14785
14843
|
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
14786
|
-
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
14844
|
+
samplingSeconds: number().int().min(1).max(300).default(10),
|
|
14845
|
+
/**
|
|
14846
|
+
* LABEL MODE: how many labelled frames must land inside
|
|
14847
|
+
* {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
|
|
14848
|
+
* Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
|
|
14849
|
+
*/
|
|
14850
|
+
confirmHits: number().int().min(1).max(20).optional(),
|
|
14851
|
+
/** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
|
|
14852
|
+
confirmWindowSec: number().int().min(1).max(60).optional()
|
|
14787
14853
|
});
|
|
14788
14854
|
/**
|
|
14789
14855
|
* Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
|
|
@@ -17157,6 +17223,46 @@ var RecentTracksPageSchema = object({
|
|
|
17157
17223
|
/** Cursor for the next page, or null when this page is the last. */
|
|
17158
17224
|
nextCursor: string().nullable()
|
|
17159
17225
|
});
|
|
17226
|
+
var LIST_GROUPS_DEFAULT_LIMIT = 40;
|
|
17227
|
+
var LIST_GROUPS_MAX_LIMIT = 100;
|
|
17228
|
+
var AnalyticsGroupRecordSchema = object({
|
|
17229
|
+
id: string(),
|
|
17230
|
+
deviceId: number().int(),
|
|
17231
|
+
openedAt: number().int(),
|
|
17232
|
+
closedAt: number().int(),
|
|
17233
|
+
timestamp: number().int(),
|
|
17234
|
+
memberCount: number().int(),
|
|
17235
|
+
memberTrackIds: array(string()).readonly(),
|
|
17236
|
+
className: string(),
|
|
17237
|
+
classes: array(string()).readonly(),
|
|
17238
|
+
/** Relative event-media path, or null when the group has no picture yet. */
|
|
17239
|
+
mediaUrl: string().nullable(),
|
|
17240
|
+
singleton: boolean()
|
|
17241
|
+
});
|
|
17242
|
+
var AnalyticsGroupMemberSchema = object({
|
|
17243
|
+
trackId: string(),
|
|
17244
|
+
deviceId: number().int(),
|
|
17245
|
+
className: string(),
|
|
17246
|
+
firstSeen: number().int(),
|
|
17247
|
+
lastSeen: number().int(),
|
|
17248
|
+
mediaUrl: string().nullable()
|
|
17249
|
+
});
|
|
17250
|
+
var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
|
|
17251
|
+
var ListGroupsQueryInput = object({
|
|
17252
|
+
/** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
|
|
17253
|
+
deviceIds: array(number()),
|
|
17254
|
+
/** Window lower bound on `closedAt` (inclusive). */
|
|
17255
|
+
since: number().optional(),
|
|
17256
|
+
/** Window upper bound on `openedAt` (inclusive). */
|
|
17257
|
+
until: number().optional(),
|
|
17258
|
+
limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
|
|
17259
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
17260
|
+
cursor: string().optional()
|
|
17261
|
+
});
|
|
17262
|
+
var ListGroupsPageSchema = object({
|
|
17263
|
+
groups: array(AnalyticsGroupRecordSchema).readonly(),
|
|
17264
|
+
nextCursor: string().nullable()
|
|
17265
|
+
});
|
|
17160
17266
|
var KeyEventQueryInput = object({
|
|
17161
17267
|
deviceId: number(),
|
|
17162
17268
|
/** Window lower bound (track firstSeen ≥ since). */
|
|
@@ -17232,7 +17338,9 @@ var TrackCascadeCountsSchema = object({
|
|
|
17232
17338
|
/** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
|
|
17233
17339
|
plates: number().int(),
|
|
17234
17340
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
17235
|
-
embeddings: number().int()
|
|
17341
|
+
embeddings: number().int(),
|
|
17342
|
+
/** Group membership + group rows removed with their last member (best-effort). */
|
|
17343
|
+
groups: number().int()
|
|
17236
17344
|
});
|
|
17237
17345
|
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
17238
17346
|
var DiskReconcileCountsSchema = object({
|
|
@@ -17378,7 +17486,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17378
17486
|
* stationary registry). Default false: the timeline lists passages,
|
|
17379
17487
|
* not parking records (operator decision, 2026-08-15). */
|
|
17380
17488
|
includeStationary: boolean().optional()
|
|
17381
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(
|
|
17489
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
|
|
17490
|
+
deviceId: number(),
|
|
17491
|
+
groupId: string().min(1)
|
|
17492
|
+
}), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
17382
17493
|
kind: "mutation",
|
|
17383
17494
|
auth: "admin"
|
|
17384
17495
|
}), 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({
|
|
@@ -17596,6 +17707,33 @@ var NativeCropRefSchema = object({
|
|
|
17596
17707
|
h: number()
|
|
17597
17708
|
})
|
|
17598
17709
|
});
|
|
17710
|
+
object({
|
|
17711
|
+
crop: object({
|
|
17712
|
+
left: number(),
|
|
17713
|
+
top: number(),
|
|
17714
|
+
width: number().positive(),
|
|
17715
|
+
height: number().positive()
|
|
17716
|
+
}).optional(),
|
|
17717
|
+
content: object({
|
|
17718
|
+
width: number().int().positive(),
|
|
17719
|
+
height: number().int().positive()
|
|
17720
|
+
}),
|
|
17721
|
+
fit: _enum(["stretch", "contain"]),
|
|
17722
|
+
format: _enum([
|
|
17723
|
+
"rgb",
|
|
17724
|
+
"gray",
|
|
17725
|
+
"jpeg"
|
|
17726
|
+
])
|
|
17727
|
+
});
|
|
17728
|
+
var FrameRefSchema = object({
|
|
17729
|
+
registryId: string().min(1),
|
|
17730
|
+
id: string().min(1),
|
|
17731
|
+
width: number().int().positive(),
|
|
17732
|
+
height: number().int().positive(),
|
|
17733
|
+
format: _enum(["rgb", "gray"]),
|
|
17734
|
+
timestamp: number(),
|
|
17735
|
+
capturedAt: number().optional()
|
|
17736
|
+
});
|
|
17599
17737
|
var ModelFormatSchema$1 = _enum([
|
|
17600
17738
|
"onnx",
|
|
17601
17739
|
"coreml",
|
|
@@ -17661,7 +17799,8 @@ var PipelineModelOptionSchema = object({
|
|
|
17661
17799
|
sizeMB: number()
|
|
17662
17800
|
})),
|
|
17663
17801
|
group: ModelVariantGroupSchema.optional(),
|
|
17664
|
-
legacy: boolean().optional()
|
|
17802
|
+
legacy: boolean().optional(),
|
|
17803
|
+
provider: ModelProviderIdSchema.optional()
|
|
17665
17804
|
});
|
|
17666
17805
|
var ConfigFieldBridge = custom();
|
|
17667
17806
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -17840,6 +17979,12 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
17840
17979
|
steps: array(PipelineStepInputSchema).min(1),
|
|
17841
17980
|
frame: FrameInputSchema.optional(),
|
|
17842
17981
|
/**
|
|
17982
|
+
* Process-local lazy frame. Valid only when caller and provider resolve
|
|
17983
|
+
* in the same execution-group process; split/cross-node callers use
|
|
17984
|
+
* `frame`/`image` inline compatibility instead.
|
|
17985
|
+
*/
|
|
17986
|
+
frameRef: FrameRefSchema.optional(),
|
|
17987
|
+
/**
|
|
17843
17988
|
* CB5 shm passthrough — a `FrameHandle` naming the same ring slot
|
|
17844
17989
|
* the decoded pixels live in. One more member of the one-of
|
|
17845
17990
|
* frame/frameHandle/image/imageBase64/referenceImage group.
|
|
@@ -18135,7 +18280,10 @@ var NativeCropResultSchema = object({
|
|
|
18135
18280
|
* Which source served this crop, so a quality-sensitive consumer (the native
|
|
18136
18281
|
* `keyFrame`) can reject a degraded fallback:
|
|
18137
18282
|
* - `native` — cut from the decode worker's retained NATIVE surface (the
|
|
18138
|
-
* quality path).
|
|
18283
|
+
* quality path). A subject-tile serve is also native-resolution and stays
|
|
18284
|
+
* `native` here: the public enum cannot name `tile` without a breaking cap
|
|
18285
|
+
* change. Runner telemetry distinguishes lease vs tile via `source` on the
|
|
18286
|
+
* internal crop result (`nativeHits` vs `tileHits`).
|
|
18139
18287
|
* - `ram-fullframe` — the native surface MISSED but the request was full-frame,
|
|
18140
18288
|
* so the ≤640 RAM `RetainedFrameStore` served it (honest lower-res; legit for
|
|
18141
18289
|
* the blank-frame guard / 640-snapshot resolve, NOT for the clean keyFrame).
|
|
@@ -18626,12 +18774,41 @@ var RunnerLocalLoadSchema = object({
|
|
|
18626
18774
|
* legacy `OrchestratorMetricsSchema` shape so existing dashboards keep
|
|
18627
18775
|
* working unchanged when they switch to reading from the runner cap.
|
|
18628
18776
|
*/
|
|
18777
|
+
var FrameLazyCountersSchema = object({
|
|
18778
|
+
framesDecoded: number(),
|
|
18779
|
+
framesAdmitted: number(),
|
|
18780
|
+
framesDroppedPixelFree: number(),
|
|
18781
|
+
viewsMaterialized: number(),
|
|
18782
|
+
viewsSkipped: number(),
|
|
18783
|
+
workerToRunnerBytes: number(),
|
|
18784
|
+
runnerToPoolRawBytes: number(),
|
|
18785
|
+
runnerToPoolJpegBytes: number(),
|
|
18786
|
+
onDemandFullFrameRequests: number(),
|
|
18787
|
+
onDemandCropRequests: number(),
|
|
18788
|
+
nativeHits: number(),
|
|
18789
|
+
nativeMisses: number(),
|
|
18790
|
+
tileHits: number(),
|
|
18791
|
+
tileMisses: number(),
|
|
18792
|
+
fallbackHits: number(),
|
|
18793
|
+
fallbackMisses: number(),
|
|
18794
|
+
retainedWritesAvoided: number(),
|
|
18795
|
+
residentRefs: number(),
|
|
18796
|
+
residentBytes: number(),
|
|
18797
|
+
releases: number(),
|
|
18798
|
+
evictions: number(),
|
|
18799
|
+
staleMisses: number()
|
|
18800
|
+
});
|
|
18801
|
+
var FrameLazyMetricsSchema = object({
|
|
18802
|
+
node: FrameLazyCountersSchema,
|
|
18803
|
+
cameras: array(FrameLazyCountersSchema.extend({ deviceId: number() }))
|
|
18804
|
+
});
|
|
18629
18805
|
var RunnerLocalMetricsSchema = object({
|
|
18630
18806
|
nodeId: string(),
|
|
18631
18807
|
activeCameras: number(),
|
|
18632
18808
|
throttledCameras: number(),
|
|
18633
18809
|
avgInferenceTimeMs: number(),
|
|
18634
|
-
queueDepth: number()
|
|
18810
|
+
queueDepth: number(),
|
|
18811
|
+
frameLazy: FrameLazyMetricsSchema.optional()
|
|
18635
18812
|
});
|
|
18636
18813
|
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({
|
|
18637
18814
|
handle: FrameHandleSchema,
|
|
@@ -19931,6 +20108,9 @@ method(_void(), ProviderInfoSchema), method(object({ config: record(string(), un
|
|
|
19931
20108
|
location: StorageLocationSchema,
|
|
19932
20109
|
relativePath: string()
|
|
19933
20110
|
}), _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" });
|
|
20111
|
+
/** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
|
|
20112
|
+
var ProfileSettingsSchemaBridge = unknown().nullable();
|
|
20113
|
+
var ProfileSettingsBagSchema = record(string(), unknown());
|
|
19934
20114
|
/**
|
|
19935
20115
|
* A live terminal session hosted by the provider addon. Output and input do
|
|
19936
20116
|
* NOT flow through the capability — they use the addon data plane
|
|
@@ -19960,7 +20140,14 @@ var TerminalSessionInfoSchema = object({
|
|
|
19960
20140
|
var TerminalProfileInfoSchema = object({
|
|
19961
20141
|
profileId: string(),
|
|
19962
20142
|
label: string(),
|
|
19963
|
-
description: string().optional()
|
|
20143
|
+
description: string().optional(),
|
|
20144
|
+
/** Spawn defaults the instance form copies on create. */
|
|
20145
|
+
executable: string().optional(),
|
|
20146
|
+
args: array(string()).readonly().optional(),
|
|
20147
|
+
cwd: string().optional(),
|
|
20148
|
+
environment: array(string()).readonly().optional(),
|
|
20149
|
+
/** ConfigUISchema for instance knobs, or null when the profile has none. */
|
|
20150
|
+
settingsSchema: ProfileSettingsSchemaBridge.optional()
|
|
19964
20151
|
});
|
|
19965
20152
|
/**
|
|
19966
20153
|
* A durable operator-created Terminal instance. Profiles are templates; only
|
|
@@ -19973,7 +20160,12 @@ var TerminalInstanceInfoSchema = object({
|
|
|
19973
20160
|
profileId: string(),
|
|
19974
20161
|
profileLabel: string(),
|
|
19975
20162
|
name: string(),
|
|
19976
|
-
enabled: boolean()
|
|
20163
|
+
enabled: boolean(),
|
|
20164
|
+
executable: string(),
|
|
20165
|
+
args: array(string()).readonly(),
|
|
20166
|
+
cwd: string(),
|
|
20167
|
+
environment: array(string()).readonly(),
|
|
20168
|
+
profileSettings: ProfileSettingsBagSchema
|
|
19977
20169
|
});
|
|
19978
20170
|
var TerminalLegacyCameraSchema = object({
|
|
19979
20171
|
stableId: string(),
|
|
@@ -20003,7 +20195,23 @@ var TerminalOutputBatchSchema = object({
|
|
|
20003
20195
|
method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalInstanceInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
20004
20196
|
targetNodeId: string().min(1),
|
|
20005
20197
|
profileId: string().min(1),
|
|
20006
|
-
name: string().trim().min(1).max(160).optional()
|
|
20198
|
+
name: string().trim().min(1).max(160).optional(),
|
|
20199
|
+
executable: string().max(1024).optional(),
|
|
20200
|
+
args: array(string().max(2048)).max(64).optional(),
|
|
20201
|
+
cwd: string().max(1024).optional(),
|
|
20202
|
+
environment: array(string().max(4096)).max(64).optional(),
|
|
20203
|
+
profileSettings: ProfileSettingsBagSchema.optional()
|
|
20204
|
+
}), TerminalInstanceInfoSchema, {
|
|
20205
|
+
kind: "mutation",
|
|
20206
|
+
auth: "admin"
|
|
20207
|
+
}), method(object({
|
|
20208
|
+
instanceId: string().min(1),
|
|
20209
|
+
name: string().trim().min(1).max(160).optional(),
|
|
20210
|
+
executable: string().max(1024).optional(),
|
|
20211
|
+
args: array(string().max(2048)).max(64).optional(),
|
|
20212
|
+
cwd: string().max(1024).optional(),
|
|
20213
|
+
environment: array(string().max(4096)).max(64).optional(),
|
|
20214
|
+
profileSettings: ProfileSettingsBagSchema.optional()
|
|
20007
20215
|
}), TerminalInstanceInfoSchema, {
|
|
20008
20216
|
kind: "mutation",
|
|
20009
20217
|
auth: "admin"
|
|
@@ -20025,7 +20233,11 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
|
|
|
20025
20233
|
}), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
20026
20234
|
profileId: string(),
|
|
20027
20235
|
cols: number().int().positive(),
|
|
20028
|
-
rows: number().int().positive()
|
|
20236
|
+
rows: number().int().positive(),
|
|
20237
|
+
executable: string().max(1024).optional(),
|
|
20238
|
+
args: array(string().max(2048)).max(64).optional(),
|
|
20239
|
+
cwd: string().max(1024).optional(),
|
|
20240
|
+
environment: array(string().max(4096)).max(64).optional()
|
|
20029
20241
|
}), TerminalSessionInfoSchema, {
|
|
20030
20242
|
kind: "mutation",
|
|
20031
20243
|
auth: "admin"
|
|
@@ -23900,10 +24112,10 @@ var lawnMowerControlCapability = {
|
|
|
23900
24112
|
*
|
|
23901
24113
|
* • The SDK (mobile / web client) consumes `getConnectionEndpoints()`
|
|
23902
24114
|
* to receive an ordered list of candidate base URLs it should race
|
|
23903
|
-
* on connect — LAN IPv4 first (lowest latency
|
|
23904
|
-
* then public hostname (if a tunnel is
|
|
23905
|
-
* race them with short timeouts and stick with the
|
|
23906
|
-
* session.
|
|
24115
|
+
* on connect — LAN IPv4 and stable LAN IPv6 first (lowest latency
|
|
24116
|
+
* when on the same network), then public hostname (if a tunnel is
|
|
24117
|
+
* up). The SDK can race them with short timeouts and stick with the
|
|
24118
|
+
* winner for the session.
|
|
23907
24119
|
*
|
|
23908
24120
|
* Why hub-only: agents are not directly addressable by the operator's
|
|
23909
24121
|
* clients — they reverse-connect to the hub. Exposing their interfaces
|
|
@@ -24058,6 +24270,17 @@ var NotificationEndpointSchema = object({
|
|
|
24058
24270
|
/** What the ranking currently resolves to (null when nothing is reachable). */
|
|
24059
24271
|
resolved: string().nullable()
|
|
24060
24272
|
});
|
|
24273
|
+
/**
|
|
24274
|
+
* The URLs the SDK / viewer should race for API access. `baseUrls` empty =
|
|
24275
|
+
* AUTO (every LAN IPv4 + the public tunnel). `resolved` is what that choice
|
|
24276
|
+
* currently expands to, so the UI can show the effective set either way.
|
|
24277
|
+
*/
|
|
24278
|
+
var ViewerEndpointsSchema = object({
|
|
24279
|
+
/** The operator's explicit race set, or empty for AUTO. */
|
|
24280
|
+
baseUrls: array(string()).readonly(),
|
|
24281
|
+
/** What the ranking currently resolves to (may be empty if nothing is up). */
|
|
24282
|
+
resolved: array(string()).readonly()
|
|
24283
|
+
});
|
|
24061
24284
|
var AllowedAddressesSchema = object({
|
|
24062
24285
|
/**
|
|
24063
24286
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -24066,6 +24289,20 @@ var AllowedAddressesSchema = object({
|
|
|
24066
24289
|
* Network Addresses admin page and persisted by the addon.
|
|
24067
24290
|
*/
|
|
24068
24291
|
addresses: array(string()).readonly() });
|
|
24292
|
+
var TlsStatusSchema = object({
|
|
24293
|
+
mode: _enum([
|
|
24294
|
+
"generated",
|
|
24295
|
+
"uploaded",
|
|
24296
|
+
"disabled"
|
|
24297
|
+
]),
|
|
24298
|
+
leafFingerprintSha256: string().nullable(),
|
|
24299
|
+
caFingerprintSha256: string().nullable(),
|
|
24300
|
+
validTo: string().nullable(),
|
|
24301
|
+
sans: array(string()),
|
|
24302
|
+
caCertPem: string().nullable(),
|
|
24303
|
+
reissueError: string().nullable(),
|
|
24304
|
+
restartRequired: boolean()
|
|
24305
|
+
});
|
|
24069
24306
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
24070
24307
|
/**
|
|
24071
24308
|
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
@@ -24075,17 +24312,31 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
24075
24312
|
*/
|
|
24076
24313
|
port: number().int().min(1).max(65535).optional(),
|
|
24077
24314
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
24078
|
-
* candidate. Default `
|
|
24315
|
+
* candidate. Default `false` — loopback is not a client route. */
|
|
24079
24316
|
includeLoopback: boolean().optional(),
|
|
24080
|
-
/** Skip IPv6 entries.
|
|
24081
|
-
*
|
|
24317
|
+
/** Skip IPv6 entries. Default `false` — the palette includes stable
|
|
24318
|
+
* LAN IPv6 (ICE/WebRTC uses dual-stack regardless). Pass `true` to
|
|
24319
|
+
* hide them. The viewer HTTP/WS race is `getViewerEndpoints`. */
|
|
24082
24320
|
ipv4Only: boolean().optional(),
|
|
24083
24321
|
/** Scheme to emit for LAN/loopback URLs. Default `'http'`.
|
|
24084
24322
|
* Pass `'https'` when the caller is itself loaded over HTTPS
|
|
24085
24323
|
* to avoid mixed-content blocks in the browser. The public
|
|
24086
24324
|
* tunnel always emits `https://` regardless. */
|
|
24087
24325
|
scheme: _enum(["http", "https"]).optional()
|
|
24088
|
-
}), 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" })
|
|
24326
|
+
}), 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, {
|
|
24327
|
+
kind: "mutation",
|
|
24328
|
+
auth: "admin"
|
|
24329
|
+
}), method(object({
|
|
24330
|
+
certPem: string().min(1),
|
|
24331
|
+
keyPem: string().min(1),
|
|
24332
|
+
caPem: string().optional()
|
|
24333
|
+
}), TlsStatusSchema, {
|
|
24334
|
+
kind: "mutation",
|
|
24335
|
+
auth: "admin"
|
|
24336
|
+
}), method(_void(), object({ pem: string() })), method(_void(), TlsStatusSchema, {
|
|
24337
|
+
kind: "mutation",
|
|
24338
|
+
auth: "admin"
|
|
24339
|
+
});
|
|
24089
24340
|
var LockControlStatusSchema = object({
|
|
24090
24341
|
/** Lifecycle state of the lock. `jammed` means the motor reported
|
|
24091
24342
|
* failure to reach the target — operator intervention required. */
|
|
@@ -25646,7 +25897,12 @@ var PlateInfoSchema = object({
|
|
|
25646
25897
|
plateBbox: BoundingBoxSchema.optional(),
|
|
25647
25898
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
25648
25899
|
keyFrameMediaKey: string().optional(),
|
|
25649
|
-
base64: string().optional()
|
|
25900
|
+
base64: string().optional(),
|
|
25901
|
+
/**
|
|
25902
|
+
* Same crop as a data-plane URL. `getPlateByTrack` returns this and
|
|
25903
|
+
* never inlines JPEG; `listPlates` still inlines for the admin-ui.
|
|
25904
|
+
*/
|
|
25905
|
+
cropUrl: string().optional()
|
|
25650
25906
|
});
|
|
25651
25907
|
var MediaFileLiteSchema = object({
|
|
25652
25908
|
key: string(),
|
|
@@ -31170,6 +31426,12 @@ Object.freeze({
|
|
|
31170
31426
|
addonId: null,
|
|
31171
31427
|
access: "view"
|
|
31172
31428
|
},
|
|
31429
|
+
"deviceManager.getBindingsBatch": {
|
|
31430
|
+
capName: "device-manager",
|
|
31431
|
+
capScope: "system",
|
|
31432
|
+
addonId: null,
|
|
31433
|
+
access: "view"
|
|
31434
|
+
},
|
|
31173
31435
|
"deviceManager.getChildren": {
|
|
31174
31436
|
capName: "device-manager",
|
|
31175
31437
|
capScope: "system",
|
|
@@ -31230,6 +31492,12 @@ Object.freeze({
|
|
|
31230
31492
|
addonId: null,
|
|
31231
31493
|
access: "view"
|
|
31232
31494
|
},
|
|
31495
|
+
"deviceManager.getLinkedDevicesBatch": {
|
|
31496
|
+
capName: "device-manager",
|
|
31497
|
+
capScope: "system",
|
|
31498
|
+
addonId: null,
|
|
31499
|
+
access: "view"
|
|
31500
|
+
},
|
|
31233
31501
|
"deviceManager.getRoleDisplayDefaults": {
|
|
31234
31502
|
capName: "device-manager",
|
|
31235
31503
|
capScope: "system",
|
|
@@ -32112,6 +32380,12 @@ Object.freeze({
|
|
|
32112
32380
|
addonId: null,
|
|
32113
32381
|
access: "create"
|
|
32114
32382
|
},
|
|
32383
|
+
"localNetwork.downloadCa": {
|
|
32384
|
+
capName: "local-network",
|
|
32385
|
+
capScope: "system",
|
|
32386
|
+
addonId: null,
|
|
32387
|
+
access: "view"
|
|
32388
|
+
},
|
|
32115
32389
|
"localNetwork.getAllowedAddresses": {
|
|
32116
32390
|
capName: "local-network",
|
|
32117
32391
|
capScope: "system",
|
|
@@ -32136,18 +32410,42 @@ Object.freeze({
|
|
|
32136
32410
|
addonId: null,
|
|
32137
32411
|
access: "view"
|
|
32138
32412
|
},
|
|
32413
|
+
"localNetwork.getTlsStatus": {
|
|
32414
|
+
capName: "local-network",
|
|
32415
|
+
capScope: "system",
|
|
32416
|
+
addonId: null,
|
|
32417
|
+
access: "view"
|
|
32418
|
+
},
|
|
32419
|
+
"localNetwork.getViewerEndpoints": {
|
|
32420
|
+
capName: "local-network",
|
|
32421
|
+
capScope: "system",
|
|
32422
|
+
addonId: null,
|
|
32423
|
+
access: "view"
|
|
32424
|
+
},
|
|
32139
32425
|
"localNetwork.list": {
|
|
32140
32426
|
capName: "local-network",
|
|
32141
32427
|
capScope: "system",
|
|
32142
32428
|
addonId: null,
|
|
32143
32429
|
access: "view"
|
|
32144
32430
|
},
|
|
32431
|
+
"localNetwork.regenerateCertificate": {
|
|
32432
|
+
capName: "local-network",
|
|
32433
|
+
capScope: "system",
|
|
32434
|
+
addonId: null,
|
|
32435
|
+
access: "create"
|
|
32436
|
+
},
|
|
32145
32437
|
"localNetwork.resetAllowlistToBestMatch": {
|
|
32146
32438
|
capName: "local-network",
|
|
32147
32439
|
capScope: "system",
|
|
32148
32440
|
addonId: null,
|
|
32149
32441
|
access: "delete"
|
|
32150
32442
|
},
|
|
32443
|
+
"localNetwork.revertToGeneratedCertificate": {
|
|
32444
|
+
capName: "local-network",
|
|
32445
|
+
capScope: "system",
|
|
32446
|
+
addonId: null,
|
|
32447
|
+
access: "create"
|
|
32448
|
+
},
|
|
32151
32449
|
"localNetwork.setAllowedAddresses": {
|
|
32152
32450
|
capName: "local-network",
|
|
32153
32451
|
capScope: "system",
|
|
@@ -32160,6 +32458,18 @@ Object.freeze({
|
|
|
32160
32458
|
addonId: null,
|
|
32161
32459
|
access: "create"
|
|
32162
32460
|
},
|
|
32461
|
+
"localNetwork.setViewerEndpoints": {
|
|
32462
|
+
capName: "local-network",
|
|
32463
|
+
capScope: "system",
|
|
32464
|
+
addonId: null,
|
|
32465
|
+
access: "create"
|
|
32466
|
+
},
|
|
32467
|
+
"localNetwork.uploadCertificate": {
|
|
32468
|
+
capName: "local-network",
|
|
32469
|
+
capScope: "system",
|
|
32470
|
+
addonId: null,
|
|
32471
|
+
access: "create"
|
|
32472
|
+
},
|
|
32163
32473
|
"lockControl.lock": {
|
|
32164
32474
|
capName: "lock-control",
|
|
32165
32475
|
capScope: "device",
|
|
@@ -32958,6 +33268,12 @@ Object.freeze({
|
|
|
32958
33268
|
addonId: null,
|
|
32959
33269
|
access: "view"
|
|
32960
33270
|
},
|
|
33271
|
+
"pipelineAnalytics.getGroup": {
|
|
33272
|
+
capName: "pipeline-analytics",
|
|
33273
|
+
capScope: "device",
|
|
33274
|
+
addonId: null,
|
|
33275
|
+
access: "view"
|
|
33276
|
+
},
|
|
32961
33277
|
"pipelineAnalytics.getKeyEvents": {
|
|
32962
33278
|
capName: "pipeline-analytics",
|
|
32963
33279
|
capScope: "device",
|
|
@@ -33042,6 +33358,12 @@ Object.freeze({
|
|
|
33042
33358
|
addonId: null,
|
|
33043
33359
|
access: "view"
|
|
33044
33360
|
},
|
|
33361
|
+
"pipelineAnalytics.listGroups": {
|
|
33362
|
+
capName: "pipeline-analytics",
|
|
33363
|
+
capScope: "device",
|
|
33364
|
+
addonId: null,
|
|
33365
|
+
access: "view"
|
|
33366
|
+
},
|
|
33045
33367
|
"pipelineAnalytics.listOpsLog": {
|
|
33046
33368
|
capName: "pipeline-analytics",
|
|
33047
33369
|
capScope: "device",
|
|
@@ -35040,6 +35362,12 @@ Object.freeze({
|
|
|
35040
35362
|
addonId: null,
|
|
35041
35363
|
access: "create"
|
|
35042
35364
|
},
|
|
35365
|
+
"terminalSession.updateInstance": {
|
|
35366
|
+
capName: "terminal-session",
|
|
35367
|
+
capScope: "system",
|
|
35368
|
+
addonId: null,
|
|
35369
|
+
access: "create"
|
|
35370
|
+
},
|
|
35043
35371
|
"terminalSession.writeInput": {
|
|
35044
35372
|
capName: "terminal-session",
|
|
35045
35373
|
capScope: "system",
|
|
@@ -35817,6 +36145,11 @@ Object.freeze({
|
|
|
35817
36145
|
form: "single",
|
|
35818
36146
|
optional: false
|
|
35819
36147
|
}],
|
|
36148
|
+
"deviceManager.getBindingsBatch": [{
|
|
36149
|
+
name: "deviceIds",
|
|
36150
|
+
form: "array",
|
|
36151
|
+
optional: false
|
|
36152
|
+
}],
|
|
35820
36153
|
"deviceManager.getChildren": [{
|
|
35821
36154
|
name: "parentDeviceId",
|
|
35822
36155
|
form: "single",
|
|
@@ -35862,6 +36195,11 @@ Object.freeze({
|
|
|
35862
36195
|
form: "single",
|
|
35863
36196
|
optional: false
|
|
35864
36197
|
}],
|
|
36198
|
+
"deviceManager.getLinkedDevicesBatch": [{
|
|
36199
|
+
name: "deviceIds",
|
|
36200
|
+
form: "array",
|
|
36201
|
+
optional: false
|
|
36202
|
+
}],
|
|
35865
36203
|
"deviceManager.getSettingsSchema": [{
|
|
35866
36204
|
name: "deviceId",
|
|
35867
36205
|
form: "single",
|
|
@@ -35882,6 +36220,11 @@ Object.freeze({
|
|
|
35882
36220
|
form: "single",
|
|
35883
36221
|
optional: false
|
|
35884
36222
|
}],
|
|
36223
|
+
"deviceManager.listAll": [{
|
|
36224
|
+
name: "deviceIds",
|
|
36225
|
+
form: "array",
|
|
36226
|
+
optional: true
|
|
36227
|
+
}],
|
|
35885
36228
|
"deviceManager.loadConfig": [{
|
|
35886
36229
|
name: "deviceId",
|
|
35887
36230
|
form: "single",
|
|
@@ -36455,6 +36798,11 @@ Object.freeze({
|
|
|
36455
36798
|
form: "single",
|
|
36456
36799
|
optional: false
|
|
36457
36800
|
}],
|
|
36801
|
+
"pipelineAnalytics.getGroup": [{
|
|
36802
|
+
name: "deviceId",
|
|
36803
|
+
form: "single",
|
|
36804
|
+
optional: false
|
|
36805
|
+
}],
|
|
36458
36806
|
"pipelineAnalytics.getKeyEvents": [{
|
|
36459
36807
|
name: "deviceId",
|
|
36460
36808
|
form: "single",
|
|
@@ -36510,6 +36858,11 @@ Object.freeze({
|
|
|
36510
36858
|
form: "array",
|
|
36511
36859
|
optional: false
|
|
36512
36860
|
}],
|
|
36861
|
+
"pipelineAnalytics.listGroups": [{
|
|
36862
|
+
name: "deviceIds",
|
|
36863
|
+
form: "array",
|
|
36864
|
+
optional: false
|
|
36865
|
+
}],
|
|
36513
36866
|
"pipelineAnalytics.listOpsLog": [{
|
|
36514
36867
|
name: "deviceId",
|
|
36515
36868
|
form: "single",
|
|
@@ -37527,6 +37880,35 @@ Object.freeze(Object.fromEntries([{
|
|
|
37527
37880
|
}]
|
|
37528
37881
|
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
37529
37882
|
string().min(1);
|
|
37883
|
+
var CLUSTER_STEP_SETTING_FIELDS = [{
|
|
37884
|
+
stepId: "face-embedding",
|
|
37885
|
+
key: "minLandmarkFaceSize",
|
|
37886
|
+
label: "Min face size for recognition (detection px)",
|
|
37887
|
+
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.",
|
|
37888
|
+
type: "slider",
|
|
37889
|
+
min: 0,
|
|
37890
|
+
max: 64,
|
|
37891
|
+
step: 2,
|
|
37892
|
+
default: 24
|
|
37893
|
+
}];
|
|
37894
|
+
function clusterStepSettingKey(stepId, fieldKey) {
|
|
37895
|
+
return `clusterStepSetting:${stepId}:${fieldKey}`;
|
|
37896
|
+
}
|
|
37897
|
+
var ClusterSettingNumberSchema = number().finite();
|
|
37898
|
+
function readClusterStepSettings(config) {
|
|
37899
|
+
const out = {};
|
|
37900
|
+
for (const field of CLUSTER_STEP_SETTING_FIELDS) {
|
|
37901
|
+
const parsed = ClusterSettingNumberSchema.safeParse(config[clusterStepSettingKey(field.stepId, field.key)]);
|
|
37902
|
+
const value = parsed.success ? parsed.data : field.default;
|
|
37903
|
+
const existing = out[field.stepId] ?? {};
|
|
37904
|
+
out[field.stepId] = {
|
|
37905
|
+
...existing,
|
|
37906
|
+
[field.key]: value
|
|
37907
|
+
};
|
|
37908
|
+
}
|
|
37909
|
+
return out;
|
|
37910
|
+
}
|
|
37911
|
+
readClusterStepSettings({});
|
|
37530
37912
|
object({
|
|
37531
37913
|
/**
|
|
37532
37914
|
* Fraction of the box's own size added on EACH side before cutting.
|