@camstack/addon-provider-rademacher 0.2.25 → 0.2.27
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
|
@@ -6786,6 +6786,13 @@ var BaseAddon = class {
|
|
|
6786
6786
|
_readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
|
|
6787
6787
|
/** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
|
|
6788
6788
|
_registeredCapNames = [];
|
|
6789
|
+
/**
|
|
6790
|
+
* True only after `readAddonStore` actually answered. Constructor
|
|
6791
|
+
* defaults look like stored config when the store is down — a forked
|
|
6792
|
+
* addon that auto-starts from those defaults (cloudflare-tunnel quick
|
|
6793
|
+
* mode, 2026-08-25) is not "the operator chose this".
|
|
6794
|
+
*/
|
|
6795
|
+
settingsStoreReady = false;
|
|
6789
6796
|
/** Default config values. Provided via constructor. */
|
|
6790
6797
|
defaults;
|
|
6791
6798
|
constructor(defaults) {
|
|
@@ -7186,7 +7193,9 @@ var BaseAddon = class {
|
|
|
7186
7193
|
];
|
|
7187
7194
|
let lastErr;
|
|
7188
7195
|
for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
|
|
7189
|
-
|
|
7196
|
+
const stored = await settings.readAddonStore() ?? {};
|
|
7197
|
+
this.settingsStoreReady = true;
|
|
7198
|
+
return stored;
|
|
7190
7199
|
} catch (err) {
|
|
7191
7200
|
lastErr = err;
|
|
7192
7201
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -7194,6 +7203,7 @@ var BaseAddon = class {
|
|
|
7194
7203
|
if (attempt === delaysMs.length) break;
|
|
7195
7204
|
await new Promise((r) => setTimeout(r, delaysMs[attempt]));
|
|
7196
7205
|
}
|
|
7206
|
+
this.settingsStoreReady = false;
|
|
7197
7207
|
this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
|
|
7198
7208
|
return {};
|
|
7199
7209
|
}
|
|
@@ -9005,6 +9015,15 @@ var LabelDefinitionSchema = object({
|
|
|
9005
9015
|
description: string().optional(),
|
|
9006
9016
|
icon: string().optional()
|
|
9007
9017
|
});
|
|
9018
|
+
var ClassMapDefinitionSchema = object({
|
|
9019
|
+
mapping: record(string(), _enum([
|
|
9020
|
+
"person",
|
|
9021
|
+
"vehicle",
|
|
9022
|
+
"animal",
|
|
9023
|
+
"package"
|
|
9024
|
+
])),
|
|
9025
|
+
preserveOriginal: boolean()
|
|
9026
|
+
});
|
|
9008
9027
|
var MODEL_FORMATS = [
|
|
9009
9028
|
"onnx",
|
|
9010
9029
|
"coreml",
|
|
@@ -9088,6 +9107,12 @@ var ModelVariantGroupSchema = object({
|
|
|
9088
9107
|
*/
|
|
9089
9108
|
resolution: number().int().positive().optional()
|
|
9090
9109
|
});
|
|
9110
|
+
var ModelProviderIdSchema = _enum([
|
|
9111
|
+
"camstack",
|
|
9112
|
+
"frigate",
|
|
9113
|
+
"scrypted",
|
|
9114
|
+
"custom"
|
|
9115
|
+
]);
|
|
9091
9116
|
var ModelCatalogEntrySchema = object({
|
|
9092
9117
|
id: string(),
|
|
9093
9118
|
name: string(),
|
|
@@ -9183,7 +9208,19 @@ var ModelCatalogEntrySchema = object({
|
|
|
9183
9208
|
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
9184
9209
|
* is a presentation overlay resolved back to an `id`.
|
|
9185
9210
|
*/
|
|
9186
|
-
group: ModelVariantGroupSchema.optional()
|
|
9211
|
+
group: ModelVariantGroupSchema.optional(),
|
|
9212
|
+
/**
|
|
9213
|
+
* Catalog source for the pipeline stepper's provider-first picker. Absent on
|
|
9214
|
+
* built-in CamStack entries (treated as `camstack`) and on registry rows
|
|
9215
|
+
* persisted before this field existed (`inferModelProvider` fills those).
|
|
9216
|
+
*/
|
|
9217
|
+
provider: ModelProviderIdSchema.optional(),
|
|
9218
|
+
/**
|
|
9219
|
+
* Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
|
|
9220
|
+
* applies (Frigate / COCO public catalog). Set on a custom model whose raw
|
|
9221
|
+
* labels already ARE the CamStack macros (Scrypted identity map).
|
|
9222
|
+
*/
|
|
9223
|
+
classMap: ClassMapDefinitionSchema.optional()
|
|
9187
9224
|
});
|
|
9188
9225
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
9189
9226
|
format: literal("openvino"),
|
|
@@ -9212,7 +9249,8 @@ var ModelConvertMetadataSchema = object({
|
|
|
9212
9249
|
"ocr",
|
|
9213
9250
|
"segmentation"
|
|
9214
9251
|
]),
|
|
9215
|
-
faceAlignment: boolean().optional()
|
|
9252
|
+
faceAlignment: boolean().optional(),
|
|
9253
|
+
classMap: ClassMapDefinitionSchema.optional()
|
|
9216
9254
|
});
|
|
9217
9255
|
var ConvertResultSchema = object({
|
|
9218
9256
|
entry: ModelCatalogEntrySchema,
|
|
@@ -12969,6 +13007,27 @@ var LinkedDeviceSchema = object({
|
|
|
12969
13007
|
features: array(string()),
|
|
12970
13008
|
producesTrackedEvents: boolean().optional()
|
|
12971
13009
|
});
|
|
13010
|
+
/** One camera's resolved linked set, tagged with the camera it belongs to.
|
|
13011
|
+
* The batch answer needs the tag; the single-device answer already has it
|
|
13012
|
+
* from the input, which is why `getLinkedDevices` keeps the untagged shape. */
|
|
13013
|
+
var LinkedDevicesForDeviceSchema = object({
|
|
13014
|
+
deviceId: number(),
|
|
13015
|
+
mode: LinkedDevicesModeSchema,
|
|
13016
|
+
devices: array(LinkedDeviceSchema)
|
|
13017
|
+
});
|
|
13018
|
+
/** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
|
|
13019
|
+
* `getAllBindings` all answer in. Declared once: three copies of the same
|
|
13020
|
+
* object literal is exactly how the three drift apart. */
|
|
13021
|
+
var DeviceBindingsForDeviceSchema = object({
|
|
13022
|
+
deviceId: number(),
|
|
13023
|
+
entries: array(object({
|
|
13024
|
+
capName: string(),
|
|
13025
|
+
kind: _enum(["native", "wrapped"]),
|
|
13026
|
+
providerAddonId: string(),
|
|
13027
|
+
providerNodeId: string(),
|
|
13028
|
+
nativeAddonId: string()
|
|
13029
|
+
}))
|
|
13030
|
+
});
|
|
12972
13031
|
var SavedDeviceRowSchema = object({
|
|
12973
13032
|
/** Numeric id reserved at allocateDeviceId time. */
|
|
12974
13033
|
id: number(),
|
|
@@ -13194,11 +13253,25 @@ method(object({
|
|
|
13194
13253
|
projection: _enum(["full", "slim"]).optional(),
|
|
13195
13254
|
/** Return only camera devices. Filtering server-side instead of
|
|
13196
13255
|
* shipping 293 rows to find 12. */
|
|
13197
|
-
isCamera: boolean().optional()
|
|
13256
|
+
isCamera: boolean().optional(),
|
|
13257
|
+
/**
|
|
13258
|
+
* Return only these device ids. For the caller that already KNOWS the
|
|
13259
|
+
* handful it wants and needs a field the id-bearing answer does not
|
|
13260
|
+
* carry — the viewer's linked-devices panel joins `type` and `online`
|
|
13261
|
+
* onto ~8 linked ids and, unfiltered, dragged the fleet across to do
|
|
13262
|
+
* it: 433 KB slim / 958 KB full for 967 devices, on a query that
|
|
13263
|
+
* refetches on the reconcile interval, on a phone.
|
|
13264
|
+
*
|
|
13265
|
+
* Safe to send at a hub that predates it: Zod STRIPS unknown input
|
|
13266
|
+
* keys rather than rejecting them (verified against the live hub
|
|
13267
|
+
* 2026-08-25 — 967 rows came back), so an old hub answers exactly what
|
|
13268
|
+
* it answers today and the caller filters as it already does.
|
|
13269
|
+
*/
|
|
13270
|
+
deviceIds: array(number()).optional()
|
|
13198
13271
|
}), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
|
|
13199
13272
|
mode: LinkedDevicesModeSchema,
|
|
13200
13273
|
devices: array(LinkedDeviceSchema)
|
|
13201
|
-
})), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
13274
|
+
})), 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({
|
|
13202
13275
|
deviceId: number(),
|
|
13203
13276
|
values: record(string(), unknown())
|
|
13204
13277
|
}), object({ success: literal(true) }), {
|
|
@@ -13225,25 +13298,7 @@ method(object({
|
|
|
13225
13298
|
}), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
|
|
13226
13299
|
kind: "mutation",
|
|
13227
13300
|
auth: "admin"
|
|
13228
|
-
}), method(object({ deviceId: number() }), object({
|
|
13229
|
-
deviceId: number(),
|
|
13230
|
-
entries: array(object({
|
|
13231
|
-
capName: string(),
|
|
13232
|
-
kind: _enum(["native", "wrapped"]),
|
|
13233
|
-
providerAddonId: string(),
|
|
13234
|
-
providerNodeId: string(),
|
|
13235
|
-
nativeAddonId: string()
|
|
13236
|
-
}))
|
|
13237
|
-
})), method(object({}), array(object({
|
|
13238
|
-
deviceId: number(),
|
|
13239
|
-
entries: array(object({
|
|
13240
|
-
capName: string(),
|
|
13241
|
-
kind: _enum(["native", "wrapped"]),
|
|
13242
|
-
providerAddonId: string(),
|
|
13243
|
-
providerNodeId: string(),
|
|
13244
|
-
nativeAddonId: string()
|
|
13245
|
-
}))
|
|
13246
|
-
}))), method(object({
|
|
13301
|
+
}), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
|
|
13247
13302
|
deviceId: number(),
|
|
13248
13303
|
capName: string(),
|
|
13249
13304
|
wrapperAddonId: string(),
|
|
@@ -15653,12 +15708,15 @@ var NcOccupancyConditionSchema = object({
|
|
|
15653
15708
|
* there is no second switch that can disagree with the first and every rule
|
|
15654
15709
|
* authored before the decision migrates for free (`audioModeOf`):
|
|
15655
15710
|
*
|
|
15656
|
-
* - **LABEL mode — `labels` present.** The rule fires
|
|
15657
|
-
*
|
|
15658
|
-
* `hitPercent` and `samplingSeconds` are ignored
|
|
15659
|
-
*
|
|
15660
|
-
*
|
|
15661
|
-
*
|
|
15711
|
+
* - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
|
|
15712
|
+
* labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
|
|
15713
|
+
* `hitPercent` and `samplingSeconds` are still ignored — a percentage of
|
|
15714
|
+
* frames is the wrong question for a classifier that labels 1–3 frames
|
|
15715
|
+
* per episode. The count window is the brake that drops a single-frame
|
|
15716
|
+
* false positive; the rule's own `throttle` cooldown is the other. The
|
|
15717
|
+
* per-label confidence floor is the analyzer's (`classificationMinScore`,
|
|
15718
|
+
* per device) — a label only reaches this condition if the classifier was
|
|
15719
|
+
* already confident enough. `confirmHits: 1` restores first-frame fire.
|
|
15662
15720
|
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
15663
15721
|
* the condition: at least `hitPercent`% of the samples over
|
|
15664
15722
|
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
@@ -15685,14 +15743,22 @@ var NcOccupancyConditionSchema = object({
|
|
|
15685
15743
|
* an operator who typed `dog` mean the same thing.
|
|
15686
15744
|
*/
|
|
15687
15745
|
var NcAudioConditionSchema = object({
|
|
15688
|
-
/** LABEL MODE: audio macro labels. Present ⇒
|
|
15746
|
+
/** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
|
|
15689
15747
|
labels: array(string().min(1)).min(1).optional(),
|
|
15690
15748
|
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
15691
15749
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
15692
15750
|
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
15693
15751
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
15694
15752
|
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
15695
|
-
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
15753
|
+
samplingSeconds: number().int().min(1).max(300).default(10),
|
|
15754
|
+
/**
|
|
15755
|
+
* LABEL MODE: how many labelled frames must land inside
|
|
15756
|
+
* {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
|
|
15757
|
+
* Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
|
|
15758
|
+
*/
|
|
15759
|
+
confirmHits: number().int().min(1).max(20).optional(),
|
|
15760
|
+
/** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
|
|
15761
|
+
confirmWindowSec: number().int().min(1).max(60).optional()
|
|
15696
15762
|
});
|
|
15697
15763
|
/**
|
|
15698
15764
|
* Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
|
|
@@ -18066,6 +18132,46 @@ var RecentTracksPageSchema = object({
|
|
|
18066
18132
|
/** Cursor for the next page, or null when this page is the last. */
|
|
18067
18133
|
nextCursor: string().nullable()
|
|
18068
18134
|
});
|
|
18135
|
+
var LIST_GROUPS_DEFAULT_LIMIT = 40;
|
|
18136
|
+
var LIST_GROUPS_MAX_LIMIT = 100;
|
|
18137
|
+
var AnalyticsGroupRecordSchema = object({
|
|
18138
|
+
id: string(),
|
|
18139
|
+
deviceId: number().int(),
|
|
18140
|
+
openedAt: number().int(),
|
|
18141
|
+
closedAt: number().int(),
|
|
18142
|
+
timestamp: number().int(),
|
|
18143
|
+
memberCount: number().int(),
|
|
18144
|
+
memberTrackIds: array(string()).readonly(),
|
|
18145
|
+
className: string(),
|
|
18146
|
+
classes: array(string()).readonly(),
|
|
18147
|
+
/** Relative event-media path, or null when the group has no picture yet. */
|
|
18148
|
+
mediaUrl: string().nullable(),
|
|
18149
|
+
singleton: boolean()
|
|
18150
|
+
});
|
|
18151
|
+
var AnalyticsGroupMemberSchema = object({
|
|
18152
|
+
trackId: string(),
|
|
18153
|
+
deviceId: number().int(),
|
|
18154
|
+
className: string(),
|
|
18155
|
+
firstSeen: number().int(),
|
|
18156
|
+
lastSeen: number().int(),
|
|
18157
|
+
mediaUrl: string().nullable()
|
|
18158
|
+
});
|
|
18159
|
+
var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
|
|
18160
|
+
var ListGroupsQueryInput = object({
|
|
18161
|
+
/** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
|
|
18162
|
+
deviceIds: array(number()),
|
|
18163
|
+
/** Window lower bound on `closedAt` (inclusive). */
|
|
18164
|
+
since: number().optional(),
|
|
18165
|
+
/** Window upper bound on `openedAt` (inclusive). */
|
|
18166
|
+
until: number().optional(),
|
|
18167
|
+
limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
|
|
18168
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
18169
|
+
cursor: string().optional()
|
|
18170
|
+
});
|
|
18171
|
+
var ListGroupsPageSchema = object({
|
|
18172
|
+
groups: array(AnalyticsGroupRecordSchema).readonly(),
|
|
18173
|
+
nextCursor: string().nullable()
|
|
18174
|
+
});
|
|
18069
18175
|
var KeyEventQueryInput = object({
|
|
18070
18176
|
deviceId: number(),
|
|
18071
18177
|
/** Window lower bound (track firstSeen ≥ since). */
|
|
@@ -18141,7 +18247,9 @@ var TrackCascadeCountsSchema = object({
|
|
|
18141
18247
|
/** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
|
|
18142
18248
|
plates: number().int(),
|
|
18143
18249
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
18144
|
-
embeddings: number().int()
|
|
18250
|
+
embeddings: number().int(),
|
|
18251
|
+
/** Group membership + group rows removed with their last member (best-effort). */
|
|
18252
|
+
groups: number().int()
|
|
18145
18253
|
});
|
|
18146
18254
|
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
18147
18255
|
var DiskReconcileCountsSchema = object({
|
|
@@ -18287,7 +18395,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18287
18395
|
* stationary registry). Default false: the timeline lists passages,
|
|
18288
18396
|
* not parking records (operator decision, 2026-08-15). */
|
|
18289
18397
|
includeStationary: boolean().optional()
|
|
18290
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(
|
|
18398
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
|
|
18399
|
+
deviceId: number(),
|
|
18400
|
+
groupId: string().min(1)
|
|
18401
|
+
}), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
18291
18402
|
kind: "mutation",
|
|
18292
18403
|
auth: "admin"
|
|
18293
18404
|
}), 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({
|
|
@@ -18505,6 +18616,33 @@ var NativeCropRefSchema = object({
|
|
|
18505
18616
|
h: number()
|
|
18506
18617
|
})
|
|
18507
18618
|
});
|
|
18619
|
+
object({
|
|
18620
|
+
crop: object({
|
|
18621
|
+
left: number(),
|
|
18622
|
+
top: number(),
|
|
18623
|
+
width: number().positive(),
|
|
18624
|
+
height: number().positive()
|
|
18625
|
+
}).optional(),
|
|
18626
|
+
content: object({
|
|
18627
|
+
width: number().int().positive(),
|
|
18628
|
+
height: number().int().positive()
|
|
18629
|
+
}),
|
|
18630
|
+
fit: _enum(["stretch", "contain"]),
|
|
18631
|
+
format: _enum([
|
|
18632
|
+
"rgb",
|
|
18633
|
+
"gray",
|
|
18634
|
+
"jpeg"
|
|
18635
|
+
])
|
|
18636
|
+
});
|
|
18637
|
+
var FrameRefSchema = object({
|
|
18638
|
+
registryId: string().min(1),
|
|
18639
|
+
id: string().min(1),
|
|
18640
|
+
width: number().int().positive(),
|
|
18641
|
+
height: number().int().positive(),
|
|
18642
|
+
format: _enum(["rgb", "gray"]),
|
|
18643
|
+
timestamp: number(),
|
|
18644
|
+
capturedAt: number().optional()
|
|
18645
|
+
});
|
|
18508
18646
|
var ModelFormatSchema$1 = _enum([
|
|
18509
18647
|
"onnx",
|
|
18510
18648
|
"coreml",
|
|
@@ -18570,7 +18708,8 @@ var PipelineModelOptionSchema = object({
|
|
|
18570
18708
|
sizeMB: number()
|
|
18571
18709
|
})),
|
|
18572
18710
|
group: ModelVariantGroupSchema.optional(),
|
|
18573
|
-
legacy: boolean().optional()
|
|
18711
|
+
legacy: boolean().optional(),
|
|
18712
|
+
provider: ModelProviderIdSchema.optional()
|
|
18574
18713
|
});
|
|
18575
18714
|
var ConfigFieldBridge = custom();
|
|
18576
18715
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -18749,6 +18888,12 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
18749
18888
|
steps: array(PipelineStepInputSchema).min(1),
|
|
18750
18889
|
frame: FrameInputSchema.optional(),
|
|
18751
18890
|
/**
|
|
18891
|
+
* Process-local lazy frame. Valid only when caller and provider resolve
|
|
18892
|
+
* in the same execution-group process; split/cross-node callers use
|
|
18893
|
+
* `frame`/`image` inline compatibility instead.
|
|
18894
|
+
*/
|
|
18895
|
+
frameRef: FrameRefSchema.optional(),
|
|
18896
|
+
/**
|
|
18752
18897
|
* CB5 shm passthrough — a `FrameHandle` naming the same ring slot
|
|
18753
18898
|
* the decoded pixels live in. One more member of the one-of
|
|
18754
18899
|
* frame/frameHandle/image/imageBase64/referenceImage group.
|
|
@@ -19044,7 +19189,10 @@ var NativeCropResultSchema = object({
|
|
|
19044
19189
|
* Which source served this crop, so a quality-sensitive consumer (the native
|
|
19045
19190
|
* `keyFrame`) can reject a degraded fallback:
|
|
19046
19191
|
* - `native` — cut from the decode worker's retained NATIVE surface (the
|
|
19047
|
-
* quality path).
|
|
19192
|
+
* quality path). A subject-tile serve is also native-resolution and stays
|
|
19193
|
+
* `native` here: the public enum cannot name `tile` without a breaking cap
|
|
19194
|
+
* change. Runner telemetry distinguishes lease vs tile via `source` on the
|
|
19195
|
+
* internal crop result (`nativeHits` vs `tileHits`).
|
|
19048
19196
|
* - `ram-fullframe` — the native surface MISSED but the request was full-frame,
|
|
19049
19197
|
* so the ≤640 RAM `RetainedFrameStore` served it (honest lower-res; legit for
|
|
19050
19198
|
* the blank-frame guard / 640-snapshot resolve, NOT for the clean keyFrame).
|
|
@@ -19535,12 +19683,41 @@ var RunnerLocalLoadSchema = object({
|
|
|
19535
19683
|
* legacy `OrchestratorMetricsSchema` shape so existing dashboards keep
|
|
19536
19684
|
* working unchanged when they switch to reading from the runner cap.
|
|
19537
19685
|
*/
|
|
19686
|
+
var FrameLazyCountersSchema = object({
|
|
19687
|
+
framesDecoded: number(),
|
|
19688
|
+
framesAdmitted: number(),
|
|
19689
|
+
framesDroppedPixelFree: number(),
|
|
19690
|
+
viewsMaterialized: number(),
|
|
19691
|
+
viewsSkipped: number(),
|
|
19692
|
+
workerToRunnerBytes: number(),
|
|
19693
|
+
runnerToPoolRawBytes: number(),
|
|
19694
|
+
runnerToPoolJpegBytes: number(),
|
|
19695
|
+
onDemandFullFrameRequests: number(),
|
|
19696
|
+
onDemandCropRequests: number(),
|
|
19697
|
+
nativeHits: number(),
|
|
19698
|
+
nativeMisses: number(),
|
|
19699
|
+
tileHits: number(),
|
|
19700
|
+
tileMisses: number(),
|
|
19701
|
+
fallbackHits: number(),
|
|
19702
|
+
fallbackMisses: number(),
|
|
19703
|
+
retainedWritesAvoided: number(),
|
|
19704
|
+
residentRefs: number(),
|
|
19705
|
+
residentBytes: number(),
|
|
19706
|
+
releases: number(),
|
|
19707
|
+
evictions: number(),
|
|
19708
|
+
staleMisses: number()
|
|
19709
|
+
});
|
|
19710
|
+
var FrameLazyMetricsSchema = object({
|
|
19711
|
+
node: FrameLazyCountersSchema,
|
|
19712
|
+
cameras: array(FrameLazyCountersSchema.extend({ deviceId: number() }))
|
|
19713
|
+
});
|
|
19538
19714
|
var RunnerLocalMetricsSchema = object({
|
|
19539
19715
|
nodeId: string(),
|
|
19540
19716
|
activeCameras: number(),
|
|
19541
19717
|
throttledCameras: number(),
|
|
19542
19718
|
avgInferenceTimeMs: number(),
|
|
19543
|
-
queueDepth: number()
|
|
19719
|
+
queueDepth: number(),
|
|
19720
|
+
frameLazy: FrameLazyMetricsSchema.optional()
|
|
19544
19721
|
});
|
|
19545
19722
|
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({
|
|
19546
19723
|
handle: FrameHandleSchema,
|
|
@@ -20840,6 +21017,9 @@ method(_void(), ProviderInfoSchema), method(object({ config: record(string(), un
|
|
|
20840
21017
|
location: StorageLocationSchema,
|
|
20841
21018
|
relativePath: string()
|
|
20842
21019
|
}), _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" });
|
|
21020
|
+
/** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
|
|
21021
|
+
var ProfileSettingsSchemaBridge = unknown().nullable();
|
|
21022
|
+
var ProfileSettingsBagSchema = record(string(), unknown());
|
|
20843
21023
|
/**
|
|
20844
21024
|
* A live terminal session hosted by the provider addon. Output and input do
|
|
20845
21025
|
* NOT flow through the capability — they use the addon data plane
|
|
@@ -20869,7 +21049,14 @@ var TerminalSessionInfoSchema = object({
|
|
|
20869
21049
|
var TerminalProfileInfoSchema = object({
|
|
20870
21050
|
profileId: string(),
|
|
20871
21051
|
label: string(),
|
|
20872
|
-
description: string().optional()
|
|
21052
|
+
description: string().optional(),
|
|
21053
|
+
/** Spawn defaults the instance form copies on create. */
|
|
21054
|
+
executable: string().optional(),
|
|
21055
|
+
args: array(string()).readonly().optional(),
|
|
21056
|
+
cwd: string().optional(),
|
|
21057
|
+
environment: array(string()).readonly().optional(),
|
|
21058
|
+
/** ConfigUISchema for instance knobs, or null when the profile has none. */
|
|
21059
|
+
settingsSchema: ProfileSettingsSchemaBridge.optional()
|
|
20873
21060
|
});
|
|
20874
21061
|
/**
|
|
20875
21062
|
* A durable operator-created Terminal instance. Profiles are templates; only
|
|
@@ -20882,7 +21069,12 @@ var TerminalInstanceInfoSchema = object({
|
|
|
20882
21069
|
profileId: string(),
|
|
20883
21070
|
profileLabel: string(),
|
|
20884
21071
|
name: string(),
|
|
20885
|
-
enabled: boolean()
|
|
21072
|
+
enabled: boolean(),
|
|
21073
|
+
executable: string(),
|
|
21074
|
+
args: array(string()).readonly(),
|
|
21075
|
+
cwd: string(),
|
|
21076
|
+
environment: array(string()).readonly(),
|
|
21077
|
+
profileSettings: ProfileSettingsBagSchema
|
|
20886
21078
|
});
|
|
20887
21079
|
var TerminalLegacyCameraSchema = object({
|
|
20888
21080
|
stableId: string(),
|
|
@@ -20912,7 +21104,23 @@ var TerminalOutputBatchSchema = object({
|
|
|
20912
21104
|
method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalInstanceInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
20913
21105
|
targetNodeId: string().min(1),
|
|
20914
21106
|
profileId: string().min(1),
|
|
20915
|
-
name: string().trim().min(1).max(160).optional()
|
|
21107
|
+
name: string().trim().min(1).max(160).optional(),
|
|
21108
|
+
executable: string().max(1024).optional(),
|
|
21109
|
+
args: array(string().max(2048)).max(64).optional(),
|
|
21110
|
+
cwd: string().max(1024).optional(),
|
|
21111
|
+
environment: array(string().max(4096)).max(64).optional(),
|
|
21112
|
+
profileSettings: ProfileSettingsBagSchema.optional()
|
|
21113
|
+
}), TerminalInstanceInfoSchema, {
|
|
21114
|
+
kind: "mutation",
|
|
21115
|
+
auth: "admin"
|
|
21116
|
+
}), method(object({
|
|
21117
|
+
instanceId: string().min(1),
|
|
21118
|
+
name: string().trim().min(1).max(160).optional(),
|
|
21119
|
+
executable: string().max(1024).optional(),
|
|
21120
|
+
args: array(string().max(2048)).max(64).optional(),
|
|
21121
|
+
cwd: string().max(1024).optional(),
|
|
21122
|
+
environment: array(string().max(4096)).max(64).optional(),
|
|
21123
|
+
profileSettings: ProfileSettingsBagSchema.optional()
|
|
20916
21124
|
}), TerminalInstanceInfoSchema, {
|
|
20917
21125
|
kind: "mutation",
|
|
20918
21126
|
auth: "admin"
|
|
@@ -20934,7 +21142,11 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
|
|
|
20934
21142
|
}), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
20935
21143
|
profileId: string(),
|
|
20936
21144
|
cols: number().int().positive(),
|
|
20937
|
-
rows: number().int().positive()
|
|
21145
|
+
rows: number().int().positive(),
|
|
21146
|
+
executable: string().max(1024).optional(),
|
|
21147
|
+
args: array(string().max(2048)).max(64).optional(),
|
|
21148
|
+
cwd: string().max(1024).optional(),
|
|
21149
|
+
environment: array(string().max(4096)).max(64).optional()
|
|
20938
21150
|
}), TerminalSessionInfoSchema, {
|
|
20939
21151
|
kind: "mutation",
|
|
20940
21152
|
auth: "admin"
|
|
@@ -24809,10 +25021,10 @@ var lawnMowerControlCapability = {
|
|
|
24809
25021
|
*
|
|
24810
25022
|
* • The SDK (mobile / web client) consumes `getConnectionEndpoints()`
|
|
24811
25023
|
* to receive an ordered list of candidate base URLs it should race
|
|
24812
|
-
* on connect — LAN IPv4 first (lowest latency
|
|
24813
|
-
* then public hostname (if a tunnel is
|
|
24814
|
-
* race them with short timeouts and stick with the
|
|
24815
|
-
* session.
|
|
25024
|
+
* on connect — LAN IPv4 and stable LAN IPv6 first (lowest latency
|
|
25025
|
+
* when on the same network), then public hostname (if a tunnel is
|
|
25026
|
+
* up). The SDK can race them with short timeouts and stick with the
|
|
25027
|
+
* winner for the session.
|
|
24816
25028
|
*
|
|
24817
25029
|
* Why hub-only: agents are not directly addressable by the operator's
|
|
24818
25030
|
* clients — they reverse-connect to the hub. Exposing their interfaces
|
|
@@ -24967,6 +25179,17 @@ var NotificationEndpointSchema = object({
|
|
|
24967
25179
|
/** What the ranking currently resolves to (null when nothing is reachable). */
|
|
24968
25180
|
resolved: string().nullable()
|
|
24969
25181
|
});
|
|
25182
|
+
/**
|
|
25183
|
+
* The URLs the SDK / viewer should race for API access. `baseUrls` empty =
|
|
25184
|
+
* AUTO (every LAN IPv4 + the public tunnel). `resolved` is what that choice
|
|
25185
|
+
* currently expands to, so the UI can show the effective set either way.
|
|
25186
|
+
*/
|
|
25187
|
+
var ViewerEndpointsSchema = object({
|
|
25188
|
+
/** The operator's explicit race set, or empty for AUTO. */
|
|
25189
|
+
baseUrls: array(string()).readonly(),
|
|
25190
|
+
/** What the ranking currently resolves to (may be empty if nothing is up). */
|
|
25191
|
+
resolved: array(string()).readonly()
|
|
25192
|
+
});
|
|
24970
25193
|
var AllowedAddressesSchema = object({
|
|
24971
25194
|
/**
|
|
24972
25195
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -24975,6 +25198,20 @@ var AllowedAddressesSchema = object({
|
|
|
24975
25198
|
* Network Addresses admin page and persisted by the addon.
|
|
24976
25199
|
*/
|
|
24977
25200
|
addresses: array(string()).readonly() });
|
|
25201
|
+
var TlsStatusSchema = object({
|
|
25202
|
+
mode: _enum([
|
|
25203
|
+
"generated",
|
|
25204
|
+
"uploaded",
|
|
25205
|
+
"disabled"
|
|
25206
|
+
]),
|
|
25207
|
+
leafFingerprintSha256: string().nullable(),
|
|
25208
|
+
caFingerprintSha256: string().nullable(),
|
|
25209
|
+
validTo: string().nullable(),
|
|
25210
|
+
sans: array(string()),
|
|
25211
|
+
caCertPem: string().nullable(),
|
|
25212
|
+
reissueError: string().nullable(),
|
|
25213
|
+
restartRequired: boolean()
|
|
25214
|
+
});
|
|
24978
25215
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
24979
25216
|
/**
|
|
24980
25217
|
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
@@ -24984,17 +25221,31 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
24984
25221
|
*/
|
|
24985
25222
|
port: number().int().min(1).max(65535).optional(),
|
|
24986
25223
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
24987
|
-
* candidate. Default `
|
|
25224
|
+
* candidate. Default `false` — loopback is not a client route. */
|
|
24988
25225
|
includeLoopback: boolean().optional(),
|
|
24989
|
-
/** Skip IPv6 entries.
|
|
24990
|
-
*
|
|
25226
|
+
/** Skip IPv6 entries. Default `false` — the palette includes stable
|
|
25227
|
+
* LAN IPv6 (ICE/WebRTC uses dual-stack regardless). Pass `true` to
|
|
25228
|
+
* hide them. The viewer HTTP/WS race is `getViewerEndpoints`. */
|
|
24991
25229
|
ipv4Only: boolean().optional(),
|
|
24992
25230
|
/** Scheme to emit for LAN/loopback URLs. Default `'http'`.
|
|
24993
25231
|
* Pass `'https'` when the caller is itself loaded over HTTPS
|
|
24994
25232
|
* to avoid mixed-content blocks in the browser. The public
|
|
24995
25233
|
* tunnel always emits `https://` regardless. */
|
|
24996
25234
|
scheme: _enum(["http", "https"]).optional()
|
|
24997
|
-
}), 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" })
|
|
25235
|
+
}), 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, {
|
|
25236
|
+
kind: "mutation",
|
|
25237
|
+
auth: "admin"
|
|
25238
|
+
}), method(object({
|
|
25239
|
+
certPem: string().min(1),
|
|
25240
|
+
keyPem: string().min(1),
|
|
25241
|
+
caPem: string().optional()
|
|
25242
|
+
}), TlsStatusSchema, {
|
|
25243
|
+
kind: "mutation",
|
|
25244
|
+
auth: "admin"
|
|
25245
|
+
}), method(_void(), object({ pem: string() })), method(_void(), TlsStatusSchema, {
|
|
25246
|
+
kind: "mutation",
|
|
25247
|
+
auth: "admin"
|
|
25248
|
+
});
|
|
24998
25249
|
var LockControlStatusSchema = object({
|
|
24999
25250
|
/** Lifecycle state of the lock. `jammed` means the motor reported
|
|
25000
25251
|
* failure to reach the target — operator intervention required. */
|
|
@@ -26555,7 +26806,12 @@ var PlateInfoSchema = object({
|
|
|
26555
26806
|
plateBbox: BoundingBoxSchema.optional(),
|
|
26556
26807
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
26557
26808
|
keyFrameMediaKey: string().optional(),
|
|
26558
|
-
base64: string().optional()
|
|
26809
|
+
base64: string().optional(),
|
|
26810
|
+
/**
|
|
26811
|
+
* Same crop as a data-plane URL. `getPlateByTrack` returns this and
|
|
26812
|
+
* never inlines JPEG; `listPlates` still inlines for the admin-ui.
|
|
26813
|
+
*/
|
|
26814
|
+
cropUrl: string().optional()
|
|
26559
26815
|
});
|
|
26560
26816
|
var MediaFileLiteSchema = object({
|
|
26561
26817
|
key: string(),
|
|
@@ -32079,6 +32335,12 @@ Object.freeze({
|
|
|
32079
32335
|
addonId: null,
|
|
32080
32336
|
access: "view"
|
|
32081
32337
|
},
|
|
32338
|
+
"deviceManager.getBindingsBatch": {
|
|
32339
|
+
capName: "device-manager",
|
|
32340
|
+
capScope: "system",
|
|
32341
|
+
addonId: null,
|
|
32342
|
+
access: "view"
|
|
32343
|
+
},
|
|
32082
32344
|
"deviceManager.getChildren": {
|
|
32083
32345
|
capName: "device-manager",
|
|
32084
32346
|
capScope: "system",
|
|
@@ -32139,6 +32401,12 @@ Object.freeze({
|
|
|
32139
32401
|
addonId: null,
|
|
32140
32402
|
access: "view"
|
|
32141
32403
|
},
|
|
32404
|
+
"deviceManager.getLinkedDevicesBatch": {
|
|
32405
|
+
capName: "device-manager",
|
|
32406
|
+
capScope: "system",
|
|
32407
|
+
addonId: null,
|
|
32408
|
+
access: "view"
|
|
32409
|
+
},
|
|
32142
32410
|
"deviceManager.getRoleDisplayDefaults": {
|
|
32143
32411
|
capName: "device-manager",
|
|
32144
32412
|
capScope: "system",
|
|
@@ -33021,6 +33289,12 @@ Object.freeze({
|
|
|
33021
33289
|
addonId: null,
|
|
33022
33290
|
access: "create"
|
|
33023
33291
|
},
|
|
33292
|
+
"localNetwork.downloadCa": {
|
|
33293
|
+
capName: "local-network",
|
|
33294
|
+
capScope: "system",
|
|
33295
|
+
addonId: null,
|
|
33296
|
+
access: "view"
|
|
33297
|
+
},
|
|
33024
33298
|
"localNetwork.getAllowedAddresses": {
|
|
33025
33299
|
capName: "local-network",
|
|
33026
33300
|
capScope: "system",
|
|
@@ -33045,18 +33319,42 @@ Object.freeze({
|
|
|
33045
33319
|
addonId: null,
|
|
33046
33320
|
access: "view"
|
|
33047
33321
|
},
|
|
33322
|
+
"localNetwork.getTlsStatus": {
|
|
33323
|
+
capName: "local-network",
|
|
33324
|
+
capScope: "system",
|
|
33325
|
+
addonId: null,
|
|
33326
|
+
access: "view"
|
|
33327
|
+
},
|
|
33328
|
+
"localNetwork.getViewerEndpoints": {
|
|
33329
|
+
capName: "local-network",
|
|
33330
|
+
capScope: "system",
|
|
33331
|
+
addonId: null,
|
|
33332
|
+
access: "view"
|
|
33333
|
+
},
|
|
33048
33334
|
"localNetwork.list": {
|
|
33049
33335
|
capName: "local-network",
|
|
33050
33336
|
capScope: "system",
|
|
33051
33337
|
addonId: null,
|
|
33052
33338
|
access: "view"
|
|
33053
33339
|
},
|
|
33340
|
+
"localNetwork.regenerateCertificate": {
|
|
33341
|
+
capName: "local-network",
|
|
33342
|
+
capScope: "system",
|
|
33343
|
+
addonId: null,
|
|
33344
|
+
access: "create"
|
|
33345
|
+
},
|
|
33054
33346
|
"localNetwork.resetAllowlistToBestMatch": {
|
|
33055
33347
|
capName: "local-network",
|
|
33056
33348
|
capScope: "system",
|
|
33057
33349
|
addonId: null,
|
|
33058
33350
|
access: "delete"
|
|
33059
33351
|
},
|
|
33352
|
+
"localNetwork.revertToGeneratedCertificate": {
|
|
33353
|
+
capName: "local-network",
|
|
33354
|
+
capScope: "system",
|
|
33355
|
+
addonId: null,
|
|
33356
|
+
access: "create"
|
|
33357
|
+
},
|
|
33060
33358
|
"localNetwork.setAllowedAddresses": {
|
|
33061
33359
|
capName: "local-network",
|
|
33062
33360
|
capScope: "system",
|
|
@@ -33069,6 +33367,18 @@ Object.freeze({
|
|
|
33069
33367
|
addonId: null,
|
|
33070
33368
|
access: "create"
|
|
33071
33369
|
},
|
|
33370
|
+
"localNetwork.setViewerEndpoints": {
|
|
33371
|
+
capName: "local-network",
|
|
33372
|
+
capScope: "system",
|
|
33373
|
+
addonId: null,
|
|
33374
|
+
access: "create"
|
|
33375
|
+
},
|
|
33376
|
+
"localNetwork.uploadCertificate": {
|
|
33377
|
+
capName: "local-network",
|
|
33378
|
+
capScope: "system",
|
|
33379
|
+
addonId: null,
|
|
33380
|
+
access: "create"
|
|
33381
|
+
},
|
|
33072
33382
|
"lockControl.lock": {
|
|
33073
33383
|
capName: "lock-control",
|
|
33074
33384
|
capScope: "device",
|
|
@@ -33867,6 +34177,12 @@ Object.freeze({
|
|
|
33867
34177
|
addonId: null,
|
|
33868
34178
|
access: "view"
|
|
33869
34179
|
},
|
|
34180
|
+
"pipelineAnalytics.getGroup": {
|
|
34181
|
+
capName: "pipeline-analytics",
|
|
34182
|
+
capScope: "device",
|
|
34183
|
+
addonId: null,
|
|
34184
|
+
access: "view"
|
|
34185
|
+
},
|
|
33870
34186
|
"pipelineAnalytics.getKeyEvents": {
|
|
33871
34187
|
capName: "pipeline-analytics",
|
|
33872
34188
|
capScope: "device",
|
|
@@ -33951,6 +34267,12 @@ Object.freeze({
|
|
|
33951
34267
|
addonId: null,
|
|
33952
34268
|
access: "view"
|
|
33953
34269
|
},
|
|
34270
|
+
"pipelineAnalytics.listGroups": {
|
|
34271
|
+
capName: "pipeline-analytics",
|
|
34272
|
+
capScope: "device",
|
|
34273
|
+
addonId: null,
|
|
34274
|
+
access: "view"
|
|
34275
|
+
},
|
|
33954
34276
|
"pipelineAnalytics.listOpsLog": {
|
|
33955
34277
|
capName: "pipeline-analytics",
|
|
33956
34278
|
capScope: "device",
|
|
@@ -35949,6 +36271,12 @@ Object.freeze({
|
|
|
35949
36271
|
addonId: null,
|
|
35950
36272
|
access: "create"
|
|
35951
36273
|
},
|
|
36274
|
+
"terminalSession.updateInstance": {
|
|
36275
|
+
capName: "terminal-session",
|
|
36276
|
+
capScope: "system",
|
|
36277
|
+
addonId: null,
|
|
36278
|
+
access: "create"
|
|
36279
|
+
},
|
|
35952
36280
|
"terminalSession.writeInput": {
|
|
35953
36281
|
capName: "terminal-session",
|
|
35954
36282
|
capScope: "system",
|
|
@@ -36726,6 +37054,11 @@ Object.freeze({
|
|
|
36726
37054
|
form: "single",
|
|
36727
37055
|
optional: false
|
|
36728
37056
|
}],
|
|
37057
|
+
"deviceManager.getBindingsBatch": [{
|
|
37058
|
+
name: "deviceIds",
|
|
37059
|
+
form: "array",
|
|
37060
|
+
optional: false
|
|
37061
|
+
}],
|
|
36729
37062
|
"deviceManager.getChildren": [{
|
|
36730
37063
|
name: "parentDeviceId",
|
|
36731
37064
|
form: "single",
|
|
@@ -36771,6 +37104,11 @@ Object.freeze({
|
|
|
36771
37104
|
form: "single",
|
|
36772
37105
|
optional: false
|
|
36773
37106
|
}],
|
|
37107
|
+
"deviceManager.getLinkedDevicesBatch": [{
|
|
37108
|
+
name: "deviceIds",
|
|
37109
|
+
form: "array",
|
|
37110
|
+
optional: false
|
|
37111
|
+
}],
|
|
36774
37112
|
"deviceManager.getSettingsSchema": [{
|
|
36775
37113
|
name: "deviceId",
|
|
36776
37114
|
form: "single",
|
|
@@ -36791,6 +37129,11 @@ Object.freeze({
|
|
|
36791
37129
|
form: "single",
|
|
36792
37130
|
optional: false
|
|
36793
37131
|
}],
|
|
37132
|
+
"deviceManager.listAll": [{
|
|
37133
|
+
name: "deviceIds",
|
|
37134
|
+
form: "array",
|
|
37135
|
+
optional: true
|
|
37136
|
+
}],
|
|
36794
37137
|
"deviceManager.loadConfig": [{
|
|
36795
37138
|
name: "deviceId",
|
|
36796
37139
|
form: "single",
|
|
@@ -37364,6 +37707,11 @@ Object.freeze({
|
|
|
37364
37707
|
form: "single",
|
|
37365
37708
|
optional: false
|
|
37366
37709
|
}],
|
|
37710
|
+
"pipelineAnalytics.getGroup": [{
|
|
37711
|
+
name: "deviceId",
|
|
37712
|
+
form: "single",
|
|
37713
|
+
optional: false
|
|
37714
|
+
}],
|
|
37367
37715
|
"pipelineAnalytics.getKeyEvents": [{
|
|
37368
37716
|
name: "deviceId",
|
|
37369
37717
|
form: "single",
|
|
@@ -37419,6 +37767,11 @@ Object.freeze({
|
|
|
37419
37767
|
form: "array",
|
|
37420
37768
|
optional: false
|
|
37421
37769
|
}],
|
|
37770
|
+
"pipelineAnalytics.listGroups": [{
|
|
37771
|
+
name: "deviceIds",
|
|
37772
|
+
form: "array",
|
|
37773
|
+
optional: false
|
|
37774
|
+
}],
|
|
37422
37775
|
"pipelineAnalytics.listOpsLog": [{
|
|
37423
37776
|
name: "deviceId",
|
|
37424
37777
|
form: "single",
|
|
@@ -38436,6 +38789,35 @@ Object.freeze(Object.fromEntries([{
|
|
|
38436
38789
|
}]
|
|
38437
38790
|
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
38438
38791
|
string().min(1);
|
|
38792
|
+
var CLUSTER_STEP_SETTING_FIELDS = [{
|
|
38793
|
+
stepId: "face-embedding",
|
|
38794
|
+
key: "minLandmarkFaceSize",
|
|
38795
|
+
label: "Min face size for recognition (detection px)",
|
|
38796
|
+
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.",
|
|
38797
|
+
type: "slider",
|
|
38798
|
+
min: 0,
|
|
38799
|
+
max: 64,
|
|
38800
|
+
step: 2,
|
|
38801
|
+
default: 24
|
|
38802
|
+
}];
|
|
38803
|
+
function clusterStepSettingKey(stepId, fieldKey) {
|
|
38804
|
+
return `clusterStepSetting:${stepId}:${fieldKey}`;
|
|
38805
|
+
}
|
|
38806
|
+
var ClusterSettingNumberSchema = number().finite();
|
|
38807
|
+
function readClusterStepSettings(config) {
|
|
38808
|
+
const out = {};
|
|
38809
|
+
for (const field of CLUSTER_STEP_SETTING_FIELDS) {
|
|
38810
|
+
const parsed = ClusterSettingNumberSchema.safeParse(config[clusterStepSettingKey(field.stepId, field.key)]);
|
|
38811
|
+
const value = parsed.success ? parsed.data : field.default;
|
|
38812
|
+
const existing = out[field.stepId] ?? {};
|
|
38813
|
+
out[field.stepId] = {
|
|
38814
|
+
...existing,
|
|
38815
|
+
[field.key]: value
|
|
38816
|
+
};
|
|
38817
|
+
}
|
|
38818
|
+
return out;
|
|
38819
|
+
}
|
|
38820
|
+
readClusterStepSettings({});
|
|
38439
38821
|
object({
|
|
38440
38822
|
/**
|
|
38441
38823
|
* Fraction of the box's own size added on EACH side before cutting.
|