@camstack/addon-export-alexa 1.2.32 → 1.2.34
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/export-alexa.addon.js +432 -50
- package/dist/export-alexa.addon.mjs +432 -50
- package/package.json +1 -1
|
@@ -5801,6 +5801,13 @@ var BaseAddon = class {
|
|
|
5801
5801
|
_readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
|
|
5802
5802
|
/** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
|
|
5803
5803
|
_registeredCapNames = [];
|
|
5804
|
+
/**
|
|
5805
|
+
* True only after `readAddonStore` actually answered. Constructor
|
|
5806
|
+
* defaults look like stored config when the store is down — a forked
|
|
5807
|
+
* addon that auto-starts from those defaults (cloudflare-tunnel quick
|
|
5808
|
+
* mode, 2026-08-25) is not "the operator chose this".
|
|
5809
|
+
*/
|
|
5810
|
+
settingsStoreReady = false;
|
|
5804
5811
|
/** Default config values. Provided via constructor. */
|
|
5805
5812
|
defaults;
|
|
5806
5813
|
constructor(defaults) {
|
|
@@ -6201,7 +6208,9 @@ var BaseAddon = class {
|
|
|
6201
6208
|
];
|
|
6202
6209
|
let lastErr;
|
|
6203
6210
|
for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
|
|
6204
|
-
|
|
6211
|
+
const stored = await settings.readAddonStore() ?? {};
|
|
6212
|
+
this.settingsStoreReady = true;
|
|
6213
|
+
return stored;
|
|
6205
6214
|
} catch (err) {
|
|
6206
6215
|
lastErr = err;
|
|
6207
6216
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -6209,6 +6218,7 @@ var BaseAddon = class {
|
|
|
6209
6218
|
if (attempt === delaysMs.length) break;
|
|
6210
6219
|
await new Promise((r) => setTimeout(r, delaysMs[attempt]));
|
|
6211
6220
|
}
|
|
6221
|
+
this.settingsStoreReady = false;
|
|
6212
6222
|
this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
|
|
6213
6223
|
return {};
|
|
6214
6224
|
}
|
|
@@ -8215,6 +8225,15 @@ var LabelDefinitionSchema = object({
|
|
|
8215
8225
|
description: string().optional(),
|
|
8216
8226
|
icon: string().optional()
|
|
8217
8227
|
});
|
|
8228
|
+
var ClassMapDefinitionSchema = object({
|
|
8229
|
+
mapping: record(string(), _enum([
|
|
8230
|
+
"person",
|
|
8231
|
+
"vehicle",
|
|
8232
|
+
"animal",
|
|
8233
|
+
"package"
|
|
8234
|
+
])),
|
|
8235
|
+
preserveOriginal: boolean()
|
|
8236
|
+
});
|
|
8218
8237
|
var MODEL_FORMATS = [
|
|
8219
8238
|
"onnx",
|
|
8220
8239
|
"coreml",
|
|
@@ -8298,6 +8317,12 @@ var ModelVariantGroupSchema = object({
|
|
|
8298
8317
|
*/
|
|
8299
8318
|
resolution: number().int().positive().optional()
|
|
8300
8319
|
});
|
|
8320
|
+
var ModelProviderIdSchema = _enum([
|
|
8321
|
+
"camstack",
|
|
8322
|
+
"frigate",
|
|
8323
|
+
"scrypted",
|
|
8324
|
+
"custom"
|
|
8325
|
+
]);
|
|
8301
8326
|
var ModelCatalogEntrySchema = object({
|
|
8302
8327
|
id: string(),
|
|
8303
8328
|
name: string(),
|
|
@@ -8393,7 +8418,19 @@ var ModelCatalogEntrySchema = object({
|
|
|
8393
8418
|
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
8394
8419
|
* is a presentation overlay resolved back to an `id`.
|
|
8395
8420
|
*/
|
|
8396
|
-
group: ModelVariantGroupSchema.optional()
|
|
8421
|
+
group: ModelVariantGroupSchema.optional(),
|
|
8422
|
+
/**
|
|
8423
|
+
* Catalog source for the pipeline stepper's provider-first picker. Absent on
|
|
8424
|
+
* built-in CamStack entries (treated as `camstack`) and on registry rows
|
|
8425
|
+
* persisted before this field existed (`inferModelProvider` fills those).
|
|
8426
|
+
*/
|
|
8427
|
+
provider: ModelProviderIdSchema.optional(),
|
|
8428
|
+
/**
|
|
8429
|
+
* Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
|
|
8430
|
+
* applies (Frigate / COCO public catalog). Set on a custom model whose raw
|
|
8431
|
+
* labels already ARE the CamStack macros (Scrypted identity map).
|
|
8432
|
+
*/
|
|
8433
|
+
classMap: ClassMapDefinitionSchema.optional()
|
|
8397
8434
|
});
|
|
8398
8435
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
8399
8436
|
format: literal("openvino"),
|
|
@@ -8422,7 +8459,8 @@ var ModelConvertMetadataSchema = object({
|
|
|
8422
8459
|
"ocr",
|
|
8423
8460
|
"segmentation"
|
|
8424
8461
|
]),
|
|
8425
|
-
faceAlignment: boolean().optional()
|
|
8462
|
+
faceAlignment: boolean().optional(),
|
|
8463
|
+
classMap: ClassMapDefinitionSchema.optional()
|
|
8426
8464
|
});
|
|
8427
8465
|
var ConvertResultSchema = object({
|
|
8428
8466
|
entry: ModelCatalogEntrySchema,
|
|
@@ -11988,6 +12026,27 @@ var LinkedDeviceSchema = object({
|
|
|
11988
12026
|
features: array(string()),
|
|
11989
12027
|
producesTrackedEvents: boolean().optional()
|
|
11990
12028
|
});
|
|
12029
|
+
/** One camera's resolved linked set, tagged with the camera it belongs to.
|
|
12030
|
+
* The batch answer needs the tag; the single-device answer already has it
|
|
12031
|
+
* from the input, which is why `getLinkedDevices` keeps the untagged shape. */
|
|
12032
|
+
var LinkedDevicesForDeviceSchema = object({
|
|
12033
|
+
deviceId: number(),
|
|
12034
|
+
mode: LinkedDevicesModeSchema,
|
|
12035
|
+
devices: array(LinkedDeviceSchema)
|
|
12036
|
+
});
|
|
12037
|
+
/** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
|
|
12038
|
+
* `getAllBindings` all answer in. Declared once: three copies of the same
|
|
12039
|
+
* object literal is exactly how the three drift apart. */
|
|
12040
|
+
var DeviceBindingsForDeviceSchema = object({
|
|
12041
|
+
deviceId: number(),
|
|
12042
|
+
entries: array(object({
|
|
12043
|
+
capName: string(),
|
|
12044
|
+
kind: _enum(["native", "wrapped"]),
|
|
12045
|
+
providerAddonId: string(),
|
|
12046
|
+
providerNodeId: string(),
|
|
12047
|
+
nativeAddonId: string()
|
|
12048
|
+
}))
|
|
12049
|
+
});
|
|
11991
12050
|
var SavedDeviceRowSchema = object({
|
|
11992
12051
|
/** Numeric id reserved at allocateDeviceId time. */
|
|
11993
12052
|
id: number(),
|
|
@@ -12213,11 +12272,25 @@ method(object({
|
|
|
12213
12272
|
projection: _enum(["full", "slim"]).optional(),
|
|
12214
12273
|
/** Return only camera devices. Filtering server-side instead of
|
|
12215
12274
|
* shipping 293 rows to find 12. */
|
|
12216
|
-
isCamera: boolean().optional()
|
|
12275
|
+
isCamera: boolean().optional(),
|
|
12276
|
+
/**
|
|
12277
|
+
* Return only these device ids. For the caller that already KNOWS the
|
|
12278
|
+
* handful it wants and needs a field the id-bearing answer does not
|
|
12279
|
+
* carry — the viewer's linked-devices panel joins `type` and `online`
|
|
12280
|
+
* onto ~8 linked ids and, unfiltered, dragged the fleet across to do
|
|
12281
|
+
* it: 433 KB slim / 958 KB full for 967 devices, on a query that
|
|
12282
|
+
* refetches on the reconcile interval, on a phone.
|
|
12283
|
+
*
|
|
12284
|
+
* Safe to send at a hub that predates it: Zod STRIPS unknown input
|
|
12285
|
+
* keys rather than rejecting them (verified against the live hub
|
|
12286
|
+
* 2026-08-25 — 967 rows came back), so an old hub answers exactly what
|
|
12287
|
+
* it answers today and the caller filters as it already does.
|
|
12288
|
+
*/
|
|
12289
|
+
deviceIds: array(number()).optional()
|
|
12217
12290
|
}), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
|
|
12218
12291
|
mode: LinkedDevicesModeSchema,
|
|
12219
12292
|
devices: array(LinkedDeviceSchema)
|
|
12220
|
-
})), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
12293
|
+
})), 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({
|
|
12221
12294
|
deviceId: number(),
|
|
12222
12295
|
values: record(string(), unknown())
|
|
12223
12296
|
}), object({ success: literal(true) }), {
|
|
@@ -12244,25 +12317,7 @@ method(object({
|
|
|
12244
12317
|
}), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
|
|
12245
12318
|
kind: "mutation",
|
|
12246
12319
|
auth: "admin"
|
|
12247
|
-
}), method(object({ deviceId: number() }), object({
|
|
12248
|
-
deviceId: number(),
|
|
12249
|
-
entries: array(object({
|
|
12250
|
-
capName: string(),
|
|
12251
|
-
kind: _enum(["native", "wrapped"]),
|
|
12252
|
-
providerAddonId: string(),
|
|
12253
|
-
providerNodeId: string(),
|
|
12254
|
-
nativeAddonId: string()
|
|
12255
|
-
}))
|
|
12256
|
-
})), method(object({}), array(object({
|
|
12257
|
-
deviceId: number(),
|
|
12258
|
-
entries: array(object({
|
|
12259
|
-
capName: string(),
|
|
12260
|
-
kind: _enum(["native", "wrapped"]),
|
|
12261
|
-
providerAddonId: string(),
|
|
12262
|
-
providerNodeId: string(),
|
|
12263
|
-
nativeAddonId: string()
|
|
12264
|
-
}))
|
|
12265
|
-
}))), method(object({
|
|
12320
|
+
}), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
|
|
12266
12321
|
deviceId: number(),
|
|
12267
12322
|
capName: string(),
|
|
12268
12323
|
wrapperAddonId: string(),
|
|
@@ -14634,12 +14689,15 @@ var NcOccupancyConditionSchema = object({
|
|
|
14634
14689
|
* there is no second switch that can disagree with the first and every rule
|
|
14635
14690
|
* authored before the decision migrates for free (`audioModeOf`):
|
|
14636
14691
|
*
|
|
14637
|
-
* - **LABEL mode — `labels` present.** The rule fires
|
|
14638
|
-
*
|
|
14639
|
-
* `hitPercent` and `samplingSeconds` are ignored
|
|
14640
|
-
*
|
|
14641
|
-
*
|
|
14642
|
-
*
|
|
14692
|
+
* - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
|
|
14693
|
+
* labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
|
|
14694
|
+
* `hitPercent` and `samplingSeconds` are still ignored — a percentage of
|
|
14695
|
+
* frames is the wrong question for a classifier that labels 1–3 frames
|
|
14696
|
+
* per episode. The count window is the brake that drops a single-frame
|
|
14697
|
+
* false positive; the rule's own `throttle` cooldown is the other. The
|
|
14698
|
+
* per-label confidence floor is the analyzer's (`classificationMinScore`,
|
|
14699
|
+
* per device) — a label only reaches this condition if the classifier was
|
|
14700
|
+
* already confident enough. `confirmHits: 1` restores first-frame fire.
|
|
14643
14701
|
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
14644
14702
|
* the condition: at least `hitPercent`% of the samples over
|
|
14645
14703
|
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
@@ -14666,14 +14724,22 @@ var NcOccupancyConditionSchema = object({
|
|
|
14666
14724
|
* an operator who typed `dog` mean the same thing.
|
|
14667
14725
|
*/
|
|
14668
14726
|
var NcAudioConditionSchema = object({
|
|
14669
|
-
/** LABEL MODE: audio macro labels. Present ⇒
|
|
14727
|
+
/** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
|
|
14670
14728
|
labels: array(string().min(1)).min(1).optional(),
|
|
14671
14729
|
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
14672
14730
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
14673
14731
|
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
14674
14732
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
14675
14733
|
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
14676
|
-
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
14734
|
+
samplingSeconds: number().int().min(1).max(300).default(10),
|
|
14735
|
+
/**
|
|
14736
|
+
* LABEL MODE: how many labelled frames must land inside
|
|
14737
|
+
* {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
|
|
14738
|
+
* Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
|
|
14739
|
+
*/
|
|
14740
|
+
confirmHits: number().int().min(1).max(20).optional(),
|
|
14741
|
+
/** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
|
|
14742
|
+
confirmWindowSec: number().int().min(1).max(60).optional()
|
|
14677
14743
|
});
|
|
14678
14744
|
/**
|
|
14679
14745
|
* Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
|
|
@@ -17053,6 +17119,46 @@ var RecentTracksPageSchema = object({
|
|
|
17053
17119
|
/** Cursor for the next page, or null when this page is the last. */
|
|
17054
17120
|
nextCursor: string().nullable()
|
|
17055
17121
|
});
|
|
17122
|
+
var LIST_GROUPS_DEFAULT_LIMIT = 40;
|
|
17123
|
+
var LIST_GROUPS_MAX_LIMIT = 100;
|
|
17124
|
+
var AnalyticsGroupRecordSchema = object({
|
|
17125
|
+
id: string(),
|
|
17126
|
+
deviceId: number().int(),
|
|
17127
|
+
openedAt: number().int(),
|
|
17128
|
+
closedAt: number().int(),
|
|
17129
|
+
timestamp: number().int(),
|
|
17130
|
+
memberCount: number().int(),
|
|
17131
|
+
memberTrackIds: array(string()).readonly(),
|
|
17132
|
+
className: string(),
|
|
17133
|
+
classes: array(string()).readonly(),
|
|
17134
|
+
/** Relative event-media path, or null when the group has no picture yet. */
|
|
17135
|
+
mediaUrl: string().nullable(),
|
|
17136
|
+
singleton: boolean()
|
|
17137
|
+
});
|
|
17138
|
+
var AnalyticsGroupMemberSchema = object({
|
|
17139
|
+
trackId: string(),
|
|
17140
|
+
deviceId: number().int(),
|
|
17141
|
+
className: string(),
|
|
17142
|
+
firstSeen: number().int(),
|
|
17143
|
+
lastSeen: number().int(),
|
|
17144
|
+
mediaUrl: string().nullable()
|
|
17145
|
+
});
|
|
17146
|
+
var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
|
|
17147
|
+
var ListGroupsQueryInput = object({
|
|
17148
|
+
/** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
|
|
17149
|
+
deviceIds: array(number()),
|
|
17150
|
+
/** Window lower bound on `closedAt` (inclusive). */
|
|
17151
|
+
since: number().optional(),
|
|
17152
|
+
/** Window upper bound on `openedAt` (inclusive). */
|
|
17153
|
+
until: number().optional(),
|
|
17154
|
+
limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
|
|
17155
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
17156
|
+
cursor: string().optional()
|
|
17157
|
+
});
|
|
17158
|
+
var ListGroupsPageSchema = object({
|
|
17159
|
+
groups: array(AnalyticsGroupRecordSchema).readonly(),
|
|
17160
|
+
nextCursor: string().nullable()
|
|
17161
|
+
});
|
|
17056
17162
|
var KeyEventQueryInput = object({
|
|
17057
17163
|
deviceId: number(),
|
|
17058
17164
|
/** Window lower bound (track firstSeen ≥ since). */
|
|
@@ -17128,7 +17234,9 @@ var TrackCascadeCountsSchema = object({
|
|
|
17128
17234
|
/** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
|
|
17129
17235
|
plates: number().int(),
|
|
17130
17236
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
17131
|
-
embeddings: number().int()
|
|
17237
|
+
embeddings: number().int(),
|
|
17238
|
+
/** Group membership + group rows removed with their last member (best-effort). */
|
|
17239
|
+
groups: number().int()
|
|
17132
17240
|
});
|
|
17133
17241
|
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
17134
17242
|
var DiskReconcileCountsSchema = object({
|
|
@@ -17274,7 +17382,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17274
17382
|
* stationary registry). Default false: the timeline lists passages,
|
|
17275
17383
|
* not parking records (operator decision, 2026-08-15). */
|
|
17276
17384
|
includeStationary: boolean().optional()
|
|
17277
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(
|
|
17385
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
|
|
17386
|
+
deviceId: number(),
|
|
17387
|
+
groupId: string().min(1)
|
|
17388
|
+
}), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
17278
17389
|
kind: "mutation",
|
|
17279
17390
|
auth: "admin"
|
|
17280
17391
|
}), 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({
|
|
@@ -17492,6 +17603,33 @@ var NativeCropRefSchema = object({
|
|
|
17492
17603
|
h: number()
|
|
17493
17604
|
})
|
|
17494
17605
|
});
|
|
17606
|
+
object({
|
|
17607
|
+
crop: object({
|
|
17608
|
+
left: number(),
|
|
17609
|
+
top: number(),
|
|
17610
|
+
width: number().positive(),
|
|
17611
|
+
height: number().positive()
|
|
17612
|
+
}).optional(),
|
|
17613
|
+
content: object({
|
|
17614
|
+
width: number().int().positive(),
|
|
17615
|
+
height: number().int().positive()
|
|
17616
|
+
}),
|
|
17617
|
+
fit: _enum(["stretch", "contain"]),
|
|
17618
|
+
format: _enum([
|
|
17619
|
+
"rgb",
|
|
17620
|
+
"gray",
|
|
17621
|
+
"jpeg"
|
|
17622
|
+
])
|
|
17623
|
+
});
|
|
17624
|
+
var FrameRefSchema = object({
|
|
17625
|
+
registryId: string().min(1),
|
|
17626
|
+
id: string().min(1),
|
|
17627
|
+
width: number().int().positive(),
|
|
17628
|
+
height: number().int().positive(),
|
|
17629
|
+
format: _enum(["rgb", "gray"]),
|
|
17630
|
+
timestamp: number(),
|
|
17631
|
+
capturedAt: number().optional()
|
|
17632
|
+
});
|
|
17495
17633
|
var ModelFormatSchema$1 = _enum([
|
|
17496
17634
|
"onnx",
|
|
17497
17635
|
"coreml",
|
|
@@ -17557,7 +17695,8 @@ var PipelineModelOptionSchema = object({
|
|
|
17557
17695
|
sizeMB: number()
|
|
17558
17696
|
})),
|
|
17559
17697
|
group: ModelVariantGroupSchema.optional(),
|
|
17560
|
-
legacy: boolean().optional()
|
|
17698
|
+
legacy: boolean().optional(),
|
|
17699
|
+
provider: ModelProviderIdSchema.optional()
|
|
17561
17700
|
});
|
|
17562
17701
|
var ConfigFieldBridge = custom();
|
|
17563
17702
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -17736,6 +17875,12 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
17736
17875
|
steps: array(PipelineStepInputSchema).min(1),
|
|
17737
17876
|
frame: FrameInputSchema.optional(),
|
|
17738
17877
|
/**
|
|
17878
|
+
* Process-local lazy frame. Valid only when caller and provider resolve
|
|
17879
|
+
* in the same execution-group process; split/cross-node callers use
|
|
17880
|
+
* `frame`/`image` inline compatibility instead.
|
|
17881
|
+
*/
|
|
17882
|
+
frameRef: FrameRefSchema.optional(),
|
|
17883
|
+
/**
|
|
17739
17884
|
* CB5 shm passthrough — a `FrameHandle` naming the same ring slot
|
|
17740
17885
|
* the decoded pixels live in. One more member of the one-of
|
|
17741
17886
|
* frame/frameHandle/image/imageBase64/referenceImage group.
|
|
@@ -17991,7 +18136,10 @@ var NativeCropResultSchema = object({
|
|
|
17991
18136
|
* Which source served this crop, so a quality-sensitive consumer (the native
|
|
17992
18137
|
* `keyFrame`) can reject a degraded fallback:
|
|
17993
18138
|
* - `native` — cut from the decode worker's retained NATIVE surface (the
|
|
17994
|
-
* quality path).
|
|
18139
|
+
* quality path). A subject-tile serve is also native-resolution and stays
|
|
18140
|
+
* `native` here: the public enum cannot name `tile` without a breaking cap
|
|
18141
|
+
* change. Runner telemetry distinguishes lease vs tile via `source` on the
|
|
18142
|
+
* internal crop result (`nativeHits` vs `tileHits`).
|
|
17995
18143
|
* - `ram-fullframe` — the native surface MISSED but the request was full-frame,
|
|
17996
18144
|
* so the ≤640 RAM `RetainedFrameStore` served it (honest lower-res; legit for
|
|
17997
18145
|
* the blank-frame guard / 640-snapshot resolve, NOT for the clean keyFrame).
|
|
@@ -18482,12 +18630,41 @@ var RunnerLocalLoadSchema = object({
|
|
|
18482
18630
|
* legacy `OrchestratorMetricsSchema` shape so existing dashboards keep
|
|
18483
18631
|
* working unchanged when they switch to reading from the runner cap.
|
|
18484
18632
|
*/
|
|
18633
|
+
var FrameLazyCountersSchema = object({
|
|
18634
|
+
framesDecoded: number(),
|
|
18635
|
+
framesAdmitted: number(),
|
|
18636
|
+
framesDroppedPixelFree: number(),
|
|
18637
|
+
viewsMaterialized: number(),
|
|
18638
|
+
viewsSkipped: number(),
|
|
18639
|
+
workerToRunnerBytes: number(),
|
|
18640
|
+
runnerToPoolRawBytes: number(),
|
|
18641
|
+
runnerToPoolJpegBytes: number(),
|
|
18642
|
+
onDemandFullFrameRequests: number(),
|
|
18643
|
+
onDemandCropRequests: number(),
|
|
18644
|
+
nativeHits: number(),
|
|
18645
|
+
nativeMisses: number(),
|
|
18646
|
+
tileHits: number(),
|
|
18647
|
+
tileMisses: number(),
|
|
18648
|
+
fallbackHits: number(),
|
|
18649
|
+
fallbackMisses: number(),
|
|
18650
|
+
retainedWritesAvoided: number(),
|
|
18651
|
+
residentRefs: number(),
|
|
18652
|
+
residentBytes: number(),
|
|
18653
|
+
releases: number(),
|
|
18654
|
+
evictions: number(),
|
|
18655
|
+
staleMisses: number()
|
|
18656
|
+
});
|
|
18657
|
+
var FrameLazyMetricsSchema = object({
|
|
18658
|
+
node: FrameLazyCountersSchema,
|
|
18659
|
+
cameras: array(FrameLazyCountersSchema.extend({ deviceId: number() }))
|
|
18660
|
+
});
|
|
18485
18661
|
var RunnerLocalMetricsSchema = object({
|
|
18486
18662
|
nodeId: string(),
|
|
18487
18663
|
activeCameras: number(),
|
|
18488
18664
|
throttledCameras: number(),
|
|
18489
18665
|
avgInferenceTimeMs: number(),
|
|
18490
|
-
queueDepth: number()
|
|
18666
|
+
queueDepth: number(),
|
|
18667
|
+
frameLazy: FrameLazyMetricsSchema.optional()
|
|
18491
18668
|
});
|
|
18492
18669
|
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({
|
|
18493
18670
|
handle: FrameHandleSchema,
|
|
@@ -19787,6 +19964,9 @@ method(_void(), ProviderInfoSchema), method(object({ config: record(string(), un
|
|
|
19787
19964
|
location: StorageLocationSchema,
|
|
19788
19965
|
relativePath: string()
|
|
19789
19966
|
}), _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" });
|
|
19967
|
+
/** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
|
|
19968
|
+
var ProfileSettingsSchemaBridge = unknown().nullable();
|
|
19969
|
+
var ProfileSettingsBagSchema = record(string(), unknown());
|
|
19790
19970
|
/**
|
|
19791
19971
|
* A live terminal session hosted by the provider addon. Output and input do
|
|
19792
19972
|
* NOT flow through the capability — they use the addon data plane
|
|
@@ -19816,7 +19996,14 @@ var TerminalSessionInfoSchema = object({
|
|
|
19816
19996
|
var TerminalProfileInfoSchema = object({
|
|
19817
19997
|
profileId: string(),
|
|
19818
19998
|
label: string(),
|
|
19819
|
-
description: string().optional()
|
|
19999
|
+
description: string().optional(),
|
|
20000
|
+
/** Spawn defaults the instance form copies on create. */
|
|
20001
|
+
executable: string().optional(),
|
|
20002
|
+
args: array(string()).readonly().optional(),
|
|
20003
|
+
cwd: string().optional(),
|
|
20004
|
+
environment: array(string()).readonly().optional(),
|
|
20005
|
+
/** ConfigUISchema for instance knobs, or null when the profile has none. */
|
|
20006
|
+
settingsSchema: ProfileSettingsSchemaBridge.optional()
|
|
19820
20007
|
});
|
|
19821
20008
|
/**
|
|
19822
20009
|
* A durable operator-created Terminal instance. Profiles are templates; only
|
|
@@ -19829,7 +20016,12 @@ var TerminalInstanceInfoSchema = object({
|
|
|
19829
20016
|
profileId: string(),
|
|
19830
20017
|
profileLabel: string(),
|
|
19831
20018
|
name: string(),
|
|
19832
|
-
enabled: boolean()
|
|
20019
|
+
enabled: boolean(),
|
|
20020
|
+
executable: string(),
|
|
20021
|
+
args: array(string()).readonly(),
|
|
20022
|
+
cwd: string(),
|
|
20023
|
+
environment: array(string()).readonly(),
|
|
20024
|
+
profileSettings: ProfileSettingsBagSchema
|
|
19833
20025
|
});
|
|
19834
20026
|
var TerminalLegacyCameraSchema = object({
|
|
19835
20027
|
stableId: string(),
|
|
@@ -19859,7 +20051,23 @@ var TerminalOutputBatchSchema = object({
|
|
|
19859
20051
|
method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalInstanceInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
19860
20052
|
targetNodeId: string().min(1),
|
|
19861
20053
|
profileId: string().min(1),
|
|
19862
|
-
name: string().trim().min(1).max(160).optional()
|
|
20054
|
+
name: string().trim().min(1).max(160).optional(),
|
|
20055
|
+
executable: string().max(1024).optional(),
|
|
20056
|
+
args: array(string().max(2048)).max(64).optional(),
|
|
20057
|
+
cwd: string().max(1024).optional(),
|
|
20058
|
+
environment: array(string().max(4096)).max(64).optional(),
|
|
20059
|
+
profileSettings: ProfileSettingsBagSchema.optional()
|
|
20060
|
+
}), TerminalInstanceInfoSchema, {
|
|
20061
|
+
kind: "mutation",
|
|
20062
|
+
auth: "admin"
|
|
20063
|
+
}), method(object({
|
|
20064
|
+
instanceId: string().min(1),
|
|
20065
|
+
name: string().trim().min(1).max(160).optional(),
|
|
20066
|
+
executable: string().max(1024).optional(),
|
|
20067
|
+
args: array(string().max(2048)).max(64).optional(),
|
|
20068
|
+
cwd: string().max(1024).optional(),
|
|
20069
|
+
environment: array(string().max(4096)).max(64).optional(),
|
|
20070
|
+
profileSettings: ProfileSettingsBagSchema.optional()
|
|
19863
20071
|
}), TerminalInstanceInfoSchema, {
|
|
19864
20072
|
kind: "mutation",
|
|
19865
20073
|
auth: "admin"
|
|
@@ -19881,7 +20089,11 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
|
|
|
19881
20089
|
}), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
19882
20090
|
profileId: string(),
|
|
19883
20091
|
cols: number().int().positive(),
|
|
19884
|
-
rows: number().int().positive()
|
|
20092
|
+
rows: number().int().positive(),
|
|
20093
|
+
executable: string().max(1024).optional(),
|
|
20094
|
+
args: array(string().max(2048)).max(64).optional(),
|
|
20095
|
+
cwd: string().max(1024).optional(),
|
|
20096
|
+
environment: array(string().max(4096)).max(64).optional()
|
|
19885
20097
|
}), TerminalSessionInfoSchema, {
|
|
19886
20098
|
kind: "mutation",
|
|
19887
20099
|
auth: "admin"
|
|
@@ -22663,10 +22875,10 @@ DeviceType.LawnMower, method(object({ deviceId: number().int().nonnegative() }),
|
|
|
22663
22875
|
*
|
|
22664
22876
|
* • The SDK (mobile / web client) consumes `getConnectionEndpoints()`
|
|
22665
22877
|
* to receive an ordered list of candidate base URLs it should race
|
|
22666
|
-
* on connect — LAN IPv4 first (lowest latency
|
|
22667
|
-
* then public hostname (if a tunnel is
|
|
22668
|
-
* race them with short timeouts and stick with the
|
|
22669
|
-
* session.
|
|
22878
|
+
* on connect — LAN IPv4 and stable LAN IPv6 first (lowest latency
|
|
22879
|
+
* when on the same network), then public hostname (if a tunnel is
|
|
22880
|
+
* up). The SDK can race them with short timeouts and stick with the
|
|
22881
|
+
* winner for the session.
|
|
22670
22882
|
*
|
|
22671
22883
|
* Why hub-only: agents are not directly addressable by the operator's
|
|
22672
22884
|
* clients — they reverse-connect to the hub. Exposing their interfaces
|
|
@@ -22821,6 +23033,17 @@ var NotificationEndpointSchema = object({
|
|
|
22821
23033
|
/** What the ranking currently resolves to (null when nothing is reachable). */
|
|
22822
23034
|
resolved: string().nullable()
|
|
22823
23035
|
});
|
|
23036
|
+
/**
|
|
23037
|
+
* The URLs the SDK / viewer should race for API access. `baseUrls` empty =
|
|
23038
|
+
* AUTO (every LAN IPv4 + the public tunnel). `resolved` is what that choice
|
|
23039
|
+
* currently expands to, so the UI can show the effective set either way.
|
|
23040
|
+
*/
|
|
23041
|
+
var ViewerEndpointsSchema = object({
|
|
23042
|
+
/** The operator's explicit race set, or empty for AUTO. */
|
|
23043
|
+
baseUrls: array(string()).readonly(),
|
|
23044
|
+
/** What the ranking currently resolves to (may be empty if nothing is up). */
|
|
23045
|
+
resolved: array(string()).readonly()
|
|
23046
|
+
});
|
|
22824
23047
|
var AllowedAddressesSchema = object({
|
|
22825
23048
|
/**
|
|
22826
23049
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -22829,6 +23052,20 @@ var AllowedAddressesSchema = object({
|
|
|
22829
23052
|
* Network Addresses admin page and persisted by the addon.
|
|
22830
23053
|
*/
|
|
22831
23054
|
addresses: array(string()).readonly() });
|
|
23055
|
+
var TlsStatusSchema = object({
|
|
23056
|
+
mode: _enum([
|
|
23057
|
+
"generated",
|
|
23058
|
+
"uploaded",
|
|
23059
|
+
"disabled"
|
|
23060
|
+
]),
|
|
23061
|
+
leafFingerprintSha256: string().nullable(),
|
|
23062
|
+
caFingerprintSha256: string().nullable(),
|
|
23063
|
+
validTo: string().nullable(),
|
|
23064
|
+
sans: array(string()),
|
|
23065
|
+
caCertPem: string().nullable(),
|
|
23066
|
+
reissueError: string().nullable(),
|
|
23067
|
+
restartRequired: boolean()
|
|
23068
|
+
});
|
|
22832
23069
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
22833
23070
|
/**
|
|
22834
23071
|
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
@@ -22838,17 +23075,31 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
22838
23075
|
*/
|
|
22839
23076
|
port: number().int().min(1).max(65535).optional(),
|
|
22840
23077
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
22841
|
-
* candidate. Default `
|
|
23078
|
+
* candidate. Default `false` — loopback is not a client route. */
|
|
22842
23079
|
includeLoopback: boolean().optional(),
|
|
22843
|
-
/** Skip IPv6 entries.
|
|
22844
|
-
*
|
|
23080
|
+
/** Skip IPv6 entries. Default `false` — the palette includes stable
|
|
23081
|
+
* LAN IPv6 (ICE/WebRTC uses dual-stack regardless). Pass `true` to
|
|
23082
|
+
* hide them. The viewer HTTP/WS race is `getViewerEndpoints`. */
|
|
22845
23083
|
ipv4Only: boolean().optional(),
|
|
22846
23084
|
/** Scheme to emit for LAN/loopback URLs. Default `'http'`.
|
|
22847
23085
|
* Pass `'https'` when the caller is itself loaded over HTTPS
|
|
22848
23086
|
* to avoid mixed-content blocks in the browser. The public
|
|
22849
23087
|
* tunnel always emits `https://` regardless. */
|
|
22850
23088
|
scheme: _enum(["http", "https"]).optional()
|
|
22851
|
-
}), 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" })
|
|
23089
|
+
}), 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, {
|
|
23090
|
+
kind: "mutation",
|
|
23091
|
+
auth: "admin"
|
|
23092
|
+
}), method(object({
|
|
23093
|
+
certPem: string().min(1),
|
|
23094
|
+
keyPem: string().min(1),
|
|
23095
|
+
caPem: string().optional()
|
|
23096
|
+
}), TlsStatusSchema, {
|
|
23097
|
+
kind: "mutation",
|
|
23098
|
+
auth: "admin"
|
|
23099
|
+
}), method(_void(), object({ pem: string() })), method(_void(), TlsStatusSchema, {
|
|
23100
|
+
kind: "mutation",
|
|
23101
|
+
auth: "admin"
|
|
23102
|
+
});
|
|
22852
23103
|
object({
|
|
22853
23104
|
/** Lifecycle state of the lock. `jammed` means the motor reported
|
|
22854
23105
|
* failure to reach the target — operator intervention required. */
|
|
@@ -24029,7 +24280,12 @@ var PlateInfoSchema = object({
|
|
|
24029
24280
|
plateBbox: BoundingBoxSchema.optional(),
|
|
24030
24281
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
24031
24282
|
keyFrameMediaKey: string().optional(),
|
|
24032
|
-
base64: string().optional()
|
|
24283
|
+
base64: string().optional(),
|
|
24284
|
+
/**
|
|
24285
|
+
* Same crop as a data-plane URL. `getPlateByTrack` returns this and
|
|
24286
|
+
* never inlines JPEG; `listPlates` still inlines for the admin-ui.
|
|
24287
|
+
*/
|
|
24288
|
+
cropUrl: string().optional()
|
|
24033
24289
|
});
|
|
24034
24290
|
var MediaFileLiteSchema = object({
|
|
24035
24291
|
key: string(),
|
|
@@ -27669,6 +27925,12 @@ Object.freeze({
|
|
|
27669
27925
|
addonId: null,
|
|
27670
27926
|
access: "view"
|
|
27671
27927
|
},
|
|
27928
|
+
"deviceManager.getBindingsBatch": {
|
|
27929
|
+
capName: "device-manager",
|
|
27930
|
+
capScope: "system",
|
|
27931
|
+
addonId: null,
|
|
27932
|
+
access: "view"
|
|
27933
|
+
},
|
|
27672
27934
|
"deviceManager.getChildren": {
|
|
27673
27935
|
capName: "device-manager",
|
|
27674
27936
|
capScope: "system",
|
|
@@ -27729,6 +27991,12 @@ Object.freeze({
|
|
|
27729
27991
|
addonId: null,
|
|
27730
27992
|
access: "view"
|
|
27731
27993
|
},
|
|
27994
|
+
"deviceManager.getLinkedDevicesBatch": {
|
|
27995
|
+
capName: "device-manager",
|
|
27996
|
+
capScope: "system",
|
|
27997
|
+
addonId: null,
|
|
27998
|
+
access: "view"
|
|
27999
|
+
},
|
|
27732
28000
|
"deviceManager.getRoleDisplayDefaults": {
|
|
27733
28001
|
capName: "device-manager",
|
|
27734
28002
|
capScope: "system",
|
|
@@ -28611,6 +28879,12 @@ Object.freeze({
|
|
|
28611
28879
|
addonId: null,
|
|
28612
28880
|
access: "create"
|
|
28613
28881
|
},
|
|
28882
|
+
"localNetwork.downloadCa": {
|
|
28883
|
+
capName: "local-network",
|
|
28884
|
+
capScope: "system",
|
|
28885
|
+
addonId: null,
|
|
28886
|
+
access: "view"
|
|
28887
|
+
},
|
|
28614
28888
|
"localNetwork.getAllowedAddresses": {
|
|
28615
28889
|
capName: "local-network",
|
|
28616
28890
|
capScope: "system",
|
|
@@ -28635,18 +28909,42 @@ Object.freeze({
|
|
|
28635
28909
|
addonId: null,
|
|
28636
28910
|
access: "view"
|
|
28637
28911
|
},
|
|
28912
|
+
"localNetwork.getTlsStatus": {
|
|
28913
|
+
capName: "local-network",
|
|
28914
|
+
capScope: "system",
|
|
28915
|
+
addonId: null,
|
|
28916
|
+
access: "view"
|
|
28917
|
+
},
|
|
28918
|
+
"localNetwork.getViewerEndpoints": {
|
|
28919
|
+
capName: "local-network",
|
|
28920
|
+
capScope: "system",
|
|
28921
|
+
addonId: null,
|
|
28922
|
+
access: "view"
|
|
28923
|
+
},
|
|
28638
28924
|
"localNetwork.list": {
|
|
28639
28925
|
capName: "local-network",
|
|
28640
28926
|
capScope: "system",
|
|
28641
28927
|
addonId: null,
|
|
28642
28928
|
access: "view"
|
|
28643
28929
|
},
|
|
28930
|
+
"localNetwork.regenerateCertificate": {
|
|
28931
|
+
capName: "local-network",
|
|
28932
|
+
capScope: "system",
|
|
28933
|
+
addonId: null,
|
|
28934
|
+
access: "create"
|
|
28935
|
+
},
|
|
28644
28936
|
"localNetwork.resetAllowlistToBestMatch": {
|
|
28645
28937
|
capName: "local-network",
|
|
28646
28938
|
capScope: "system",
|
|
28647
28939
|
addonId: null,
|
|
28648
28940
|
access: "delete"
|
|
28649
28941
|
},
|
|
28942
|
+
"localNetwork.revertToGeneratedCertificate": {
|
|
28943
|
+
capName: "local-network",
|
|
28944
|
+
capScope: "system",
|
|
28945
|
+
addonId: null,
|
|
28946
|
+
access: "create"
|
|
28947
|
+
},
|
|
28650
28948
|
"localNetwork.setAllowedAddresses": {
|
|
28651
28949
|
capName: "local-network",
|
|
28652
28950
|
capScope: "system",
|
|
@@ -28659,6 +28957,18 @@ Object.freeze({
|
|
|
28659
28957
|
addonId: null,
|
|
28660
28958
|
access: "create"
|
|
28661
28959
|
},
|
|
28960
|
+
"localNetwork.setViewerEndpoints": {
|
|
28961
|
+
capName: "local-network",
|
|
28962
|
+
capScope: "system",
|
|
28963
|
+
addonId: null,
|
|
28964
|
+
access: "create"
|
|
28965
|
+
},
|
|
28966
|
+
"localNetwork.uploadCertificate": {
|
|
28967
|
+
capName: "local-network",
|
|
28968
|
+
capScope: "system",
|
|
28969
|
+
addonId: null,
|
|
28970
|
+
access: "create"
|
|
28971
|
+
},
|
|
28662
28972
|
"lockControl.lock": {
|
|
28663
28973
|
capName: "lock-control",
|
|
28664
28974
|
capScope: "device",
|
|
@@ -29457,6 +29767,12 @@ Object.freeze({
|
|
|
29457
29767
|
addonId: null,
|
|
29458
29768
|
access: "view"
|
|
29459
29769
|
},
|
|
29770
|
+
"pipelineAnalytics.getGroup": {
|
|
29771
|
+
capName: "pipeline-analytics",
|
|
29772
|
+
capScope: "device",
|
|
29773
|
+
addonId: null,
|
|
29774
|
+
access: "view"
|
|
29775
|
+
},
|
|
29460
29776
|
"pipelineAnalytics.getKeyEvents": {
|
|
29461
29777
|
capName: "pipeline-analytics",
|
|
29462
29778
|
capScope: "device",
|
|
@@ -29541,6 +29857,12 @@ Object.freeze({
|
|
|
29541
29857
|
addonId: null,
|
|
29542
29858
|
access: "view"
|
|
29543
29859
|
},
|
|
29860
|
+
"pipelineAnalytics.listGroups": {
|
|
29861
|
+
capName: "pipeline-analytics",
|
|
29862
|
+
capScope: "device",
|
|
29863
|
+
addonId: null,
|
|
29864
|
+
access: "view"
|
|
29865
|
+
},
|
|
29544
29866
|
"pipelineAnalytics.listOpsLog": {
|
|
29545
29867
|
capName: "pipeline-analytics",
|
|
29546
29868
|
capScope: "device",
|
|
@@ -31539,6 +31861,12 @@ Object.freeze({
|
|
|
31539
31861
|
addonId: null,
|
|
31540
31862
|
access: "create"
|
|
31541
31863
|
},
|
|
31864
|
+
"terminalSession.updateInstance": {
|
|
31865
|
+
capName: "terminal-session",
|
|
31866
|
+
capScope: "system",
|
|
31867
|
+
addonId: null,
|
|
31868
|
+
access: "create"
|
|
31869
|
+
},
|
|
31542
31870
|
"terminalSession.writeInput": {
|
|
31543
31871
|
capName: "terminal-session",
|
|
31544
31872
|
capScope: "system",
|
|
@@ -32316,6 +32644,11 @@ Object.freeze({
|
|
|
32316
32644
|
form: "single",
|
|
32317
32645
|
optional: false
|
|
32318
32646
|
}],
|
|
32647
|
+
"deviceManager.getBindingsBatch": [{
|
|
32648
|
+
name: "deviceIds",
|
|
32649
|
+
form: "array",
|
|
32650
|
+
optional: false
|
|
32651
|
+
}],
|
|
32319
32652
|
"deviceManager.getChildren": [{
|
|
32320
32653
|
name: "parentDeviceId",
|
|
32321
32654
|
form: "single",
|
|
@@ -32361,6 +32694,11 @@ Object.freeze({
|
|
|
32361
32694
|
form: "single",
|
|
32362
32695
|
optional: false
|
|
32363
32696
|
}],
|
|
32697
|
+
"deviceManager.getLinkedDevicesBatch": [{
|
|
32698
|
+
name: "deviceIds",
|
|
32699
|
+
form: "array",
|
|
32700
|
+
optional: false
|
|
32701
|
+
}],
|
|
32364
32702
|
"deviceManager.getSettingsSchema": [{
|
|
32365
32703
|
name: "deviceId",
|
|
32366
32704
|
form: "single",
|
|
@@ -32381,6 +32719,11 @@ Object.freeze({
|
|
|
32381
32719
|
form: "single",
|
|
32382
32720
|
optional: false
|
|
32383
32721
|
}],
|
|
32722
|
+
"deviceManager.listAll": [{
|
|
32723
|
+
name: "deviceIds",
|
|
32724
|
+
form: "array",
|
|
32725
|
+
optional: true
|
|
32726
|
+
}],
|
|
32384
32727
|
"deviceManager.loadConfig": [{
|
|
32385
32728
|
name: "deviceId",
|
|
32386
32729
|
form: "single",
|
|
@@ -32954,6 +33297,11 @@ Object.freeze({
|
|
|
32954
33297
|
form: "single",
|
|
32955
33298
|
optional: false
|
|
32956
33299
|
}],
|
|
33300
|
+
"pipelineAnalytics.getGroup": [{
|
|
33301
|
+
name: "deviceId",
|
|
33302
|
+
form: "single",
|
|
33303
|
+
optional: false
|
|
33304
|
+
}],
|
|
32957
33305
|
"pipelineAnalytics.getKeyEvents": [{
|
|
32958
33306
|
name: "deviceId",
|
|
32959
33307
|
form: "single",
|
|
@@ -33009,6 +33357,11 @@ Object.freeze({
|
|
|
33009
33357
|
form: "array",
|
|
33010
33358
|
optional: false
|
|
33011
33359
|
}],
|
|
33360
|
+
"pipelineAnalytics.listGroups": [{
|
|
33361
|
+
name: "deviceIds",
|
|
33362
|
+
form: "array",
|
|
33363
|
+
optional: false
|
|
33364
|
+
}],
|
|
33012
33365
|
"pipelineAnalytics.listOpsLog": [{
|
|
33013
33366
|
name: "deviceId",
|
|
33014
33367
|
form: "single",
|
|
@@ -34026,6 +34379,35 @@ Object.freeze(Object.fromEntries([{
|
|
|
34026
34379
|
}]
|
|
34027
34380
|
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
34028
34381
|
string().min(1);
|
|
34382
|
+
var CLUSTER_STEP_SETTING_FIELDS = [{
|
|
34383
|
+
stepId: "face-embedding",
|
|
34384
|
+
key: "minLandmarkFaceSize",
|
|
34385
|
+
label: "Min face size for recognition (detection px)",
|
|
34386
|
+
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.",
|
|
34387
|
+
type: "slider",
|
|
34388
|
+
min: 0,
|
|
34389
|
+
max: 64,
|
|
34390
|
+
step: 2,
|
|
34391
|
+
default: 24
|
|
34392
|
+
}];
|
|
34393
|
+
function clusterStepSettingKey(stepId, fieldKey) {
|
|
34394
|
+
return `clusterStepSetting:${stepId}:${fieldKey}`;
|
|
34395
|
+
}
|
|
34396
|
+
var ClusterSettingNumberSchema = number().finite();
|
|
34397
|
+
function readClusterStepSettings(config) {
|
|
34398
|
+
const out = {};
|
|
34399
|
+
for (const field of CLUSTER_STEP_SETTING_FIELDS) {
|
|
34400
|
+
const parsed = ClusterSettingNumberSchema.safeParse(config[clusterStepSettingKey(field.stepId, field.key)]);
|
|
34401
|
+
const value = parsed.success ? parsed.data : field.default;
|
|
34402
|
+
const existing = out[field.stepId] ?? {};
|
|
34403
|
+
out[field.stepId] = {
|
|
34404
|
+
...existing,
|
|
34405
|
+
[field.key]: value
|
|
34406
|
+
};
|
|
34407
|
+
}
|
|
34408
|
+
return out;
|
|
34409
|
+
}
|
|
34410
|
+
readClusterStepSettings({});
|
|
34029
34411
|
object({
|
|
34030
34412
|
/**
|
|
34031
34413
|
* Fraction of the box's own size added on EACH side before cutting.
|