@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
|
@@ -5828,6 +5828,13 @@ var BaseAddon = class {
|
|
|
5828
5828
|
_readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
|
|
5829
5829
|
/** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
|
|
5830
5830
|
_registeredCapNames = [];
|
|
5831
|
+
/**
|
|
5832
|
+
* True only after `readAddonStore` actually answered. Constructor
|
|
5833
|
+
* defaults look like stored config when the store is down — a forked
|
|
5834
|
+
* addon that auto-starts from those defaults (cloudflare-tunnel quick
|
|
5835
|
+
* mode, 2026-08-25) is not "the operator chose this".
|
|
5836
|
+
*/
|
|
5837
|
+
settingsStoreReady = false;
|
|
5831
5838
|
/** Default config values. Provided via constructor. */
|
|
5832
5839
|
defaults;
|
|
5833
5840
|
constructor(defaults) {
|
|
@@ -6228,7 +6235,9 @@ var BaseAddon = class {
|
|
|
6228
6235
|
];
|
|
6229
6236
|
let lastErr;
|
|
6230
6237
|
for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
|
|
6231
|
-
|
|
6238
|
+
const stored = await settings.readAddonStore() ?? {};
|
|
6239
|
+
this.settingsStoreReady = true;
|
|
6240
|
+
return stored;
|
|
6232
6241
|
} catch (err) {
|
|
6233
6242
|
lastErr = err;
|
|
6234
6243
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -6236,6 +6245,7 @@ var BaseAddon = class {
|
|
|
6236
6245
|
if (attempt === delaysMs.length) break;
|
|
6237
6246
|
await new Promise((r) => setTimeout(r, delaysMs[attempt]));
|
|
6238
6247
|
}
|
|
6248
|
+
this.settingsStoreReady = false;
|
|
6239
6249
|
this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
|
|
6240
6250
|
return {};
|
|
6241
6251
|
}
|
|
@@ -8242,6 +8252,15 @@ var LabelDefinitionSchema = object({
|
|
|
8242
8252
|
description: string().optional(),
|
|
8243
8253
|
icon: string().optional()
|
|
8244
8254
|
});
|
|
8255
|
+
var ClassMapDefinitionSchema = object({
|
|
8256
|
+
mapping: record(string(), _enum([
|
|
8257
|
+
"person",
|
|
8258
|
+
"vehicle",
|
|
8259
|
+
"animal",
|
|
8260
|
+
"package"
|
|
8261
|
+
])),
|
|
8262
|
+
preserveOriginal: boolean()
|
|
8263
|
+
});
|
|
8245
8264
|
var MODEL_FORMATS = [
|
|
8246
8265
|
"onnx",
|
|
8247
8266
|
"coreml",
|
|
@@ -8325,6 +8344,12 @@ var ModelVariantGroupSchema = object({
|
|
|
8325
8344
|
*/
|
|
8326
8345
|
resolution: number().int().positive().optional()
|
|
8327
8346
|
});
|
|
8347
|
+
var ModelProviderIdSchema = _enum([
|
|
8348
|
+
"camstack",
|
|
8349
|
+
"frigate",
|
|
8350
|
+
"scrypted",
|
|
8351
|
+
"custom"
|
|
8352
|
+
]);
|
|
8328
8353
|
var ModelCatalogEntrySchema = object({
|
|
8329
8354
|
id: string(),
|
|
8330
8355
|
name: string(),
|
|
@@ -8420,7 +8445,19 @@ var ModelCatalogEntrySchema = object({
|
|
|
8420
8445
|
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
8421
8446
|
* is a presentation overlay resolved back to an `id`.
|
|
8422
8447
|
*/
|
|
8423
|
-
group: ModelVariantGroupSchema.optional()
|
|
8448
|
+
group: ModelVariantGroupSchema.optional(),
|
|
8449
|
+
/**
|
|
8450
|
+
* Catalog source for the pipeline stepper's provider-first picker. Absent on
|
|
8451
|
+
* built-in CamStack entries (treated as `camstack`) and on registry rows
|
|
8452
|
+
* persisted before this field existed (`inferModelProvider` fills those).
|
|
8453
|
+
*/
|
|
8454
|
+
provider: ModelProviderIdSchema.optional(),
|
|
8455
|
+
/**
|
|
8456
|
+
* Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
|
|
8457
|
+
* applies (Frigate / COCO public catalog). Set on a custom model whose raw
|
|
8458
|
+
* labels already ARE the CamStack macros (Scrypted identity map).
|
|
8459
|
+
*/
|
|
8460
|
+
classMap: ClassMapDefinitionSchema.optional()
|
|
8424
8461
|
});
|
|
8425
8462
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
8426
8463
|
format: literal("openvino"),
|
|
@@ -8449,7 +8486,8 @@ var ModelConvertMetadataSchema = object({
|
|
|
8449
8486
|
"ocr",
|
|
8450
8487
|
"segmentation"
|
|
8451
8488
|
]),
|
|
8452
|
-
faceAlignment: boolean().optional()
|
|
8489
|
+
faceAlignment: boolean().optional(),
|
|
8490
|
+
classMap: ClassMapDefinitionSchema.optional()
|
|
8453
8491
|
});
|
|
8454
8492
|
var ConvertResultSchema = object({
|
|
8455
8493
|
entry: ModelCatalogEntrySchema,
|
|
@@ -12015,6 +12053,27 @@ var LinkedDeviceSchema = object({
|
|
|
12015
12053
|
features: array(string()),
|
|
12016
12054
|
producesTrackedEvents: boolean().optional()
|
|
12017
12055
|
});
|
|
12056
|
+
/** One camera's resolved linked set, tagged with the camera it belongs to.
|
|
12057
|
+
* The batch answer needs the tag; the single-device answer already has it
|
|
12058
|
+
* from the input, which is why `getLinkedDevices` keeps the untagged shape. */
|
|
12059
|
+
var LinkedDevicesForDeviceSchema = object({
|
|
12060
|
+
deviceId: number(),
|
|
12061
|
+
mode: LinkedDevicesModeSchema,
|
|
12062
|
+
devices: array(LinkedDeviceSchema)
|
|
12063
|
+
});
|
|
12064
|
+
/** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
|
|
12065
|
+
* `getAllBindings` all answer in. Declared once: three copies of the same
|
|
12066
|
+
* object literal is exactly how the three drift apart. */
|
|
12067
|
+
var DeviceBindingsForDeviceSchema = object({
|
|
12068
|
+
deviceId: number(),
|
|
12069
|
+
entries: array(object({
|
|
12070
|
+
capName: string(),
|
|
12071
|
+
kind: _enum(["native", "wrapped"]),
|
|
12072
|
+
providerAddonId: string(),
|
|
12073
|
+
providerNodeId: string(),
|
|
12074
|
+
nativeAddonId: string()
|
|
12075
|
+
}))
|
|
12076
|
+
});
|
|
12018
12077
|
var SavedDeviceRowSchema = object({
|
|
12019
12078
|
/** Numeric id reserved at allocateDeviceId time. */
|
|
12020
12079
|
id: number(),
|
|
@@ -12240,11 +12299,25 @@ method(object({
|
|
|
12240
12299
|
projection: _enum(["full", "slim"]).optional(),
|
|
12241
12300
|
/** Return only camera devices. Filtering server-side instead of
|
|
12242
12301
|
* shipping 293 rows to find 12. */
|
|
12243
|
-
isCamera: boolean().optional()
|
|
12302
|
+
isCamera: boolean().optional(),
|
|
12303
|
+
/**
|
|
12304
|
+
* Return only these device ids. For the caller that already KNOWS the
|
|
12305
|
+
* handful it wants and needs a field the id-bearing answer does not
|
|
12306
|
+
* carry — the viewer's linked-devices panel joins `type` and `online`
|
|
12307
|
+
* onto ~8 linked ids and, unfiltered, dragged the fleet across to do
|
|
12308
|
+
* it: 433 KB slim / 958 KB full for 967 devices, on a query that
|
|
12309
|
+
* refetches on the reconcile interval, on a phone.
|
|
12310
|
+
*
|
|
12311
|
+
* Safe to send at a hub that predates it: Zod STRIPS unknown input
|
|
12312
|
+
* keys rather than rejecting them (verified against the live hub
|
|
12313
|
+
* 2026-08-25 — 967 rows came back), so an old hub answers exactly what
|
|
12314
|
+
* it answers today and the caller filters as it already does.
|
|
12315
|
+
*/
|
|
12316
|
+
deviceIds: array(number()).optional()
|
|
12244
12317
|
}), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
|
|
12245
12318
|
mode: LinkedDevicesModeSchema,
|
|
12246
12319
|
devices: array(LinkedDeviceSchema)
|
|
12247
|
-
})), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
12320
|
+
})), 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({
|
|
12248
12321
|
deviceId: number(),
|
|
12249
12322
|
values: record(string(), unknown())
|
|
12250
12323
|
}), object({ success: literal(true) }), {
|
|
@@ -12271,25 +12344,7 @@ method(object({
|
|
|
12271
12344
|
}), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
|
|
12272
12345
|
kind: "mutation",
|
|
12273
12346
|
auth: "admin"
|
|
12274
|
-
}), method(object({ deviceId: number() }), object({
|
|
12275
|
-
deviceId: number(),
|
|
12276
|
-
entries: array(object({
|
|
12277
|
-
capName: string(),
|
|
12278
|
-
kind: _enum(["native", "wrapped"]),
|
|
12279
|
-
providerAddonId: string(),
|
|
12280
|
-
providerNodeId: string(),
|
|
12281
|
-
nativeAddonId: string()
|
|
12282
|
-
}))
|
|
12283
|
-
})), method(object({}), array(object({
|
|
12284
|
-
deviceId: number(),
|
|
12285
|
-
entries: array(object({
|
|
12286
|
-
capName: string(),
|
|
12287
|
-
kind: _enum(["native", "wrapped"]),
|
|
12288
|
-
providerAddonId: string(),
|
|
12289
|
-
providerNodeId: string(),
|
|
12290
|
-
nativeAddonId: string()
|
|
12291
|
-
}))
|
|
12292
|
-
}))), method(object({
|
|
12347
|
+
}), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
|
|
12293
12348
|
deviceId: number(),
|
|
12294
12349
|
capName: string(),
|
|
12295
12350
|
wrapperAddonId: string(),
|
|
@@ -14661,12 +14716,15 @@ var NcOccupancyConditionSchema = object({
|
|
|
14661
14716
|
* there is no second switch that can disagree with the first and every rule
|
|
14662
14717
|
* authored before the decision migrates for free (`audioModeOf`):
|
|
14663
14718
|
*
|
|
14664
|
-
* - **LABEL mode — `labels` present.** The rule fires
|
|
14665
|
-
*
|
|
14666
|
-
* `hitPercent` and `samplingSeconds` are ignored
|
|
14667
|
-
*
|
|
14668
|
-
*
|
|
14669
|
-
*
|
|
14719
|
+
* - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
|
|
14720
|
+
* labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
|
|
14721
|
+
* `hitPercent` and `samplingSeconds` are still ignored — a percentage of
|
|
14722
|
+
* frames is the wrong question for a classifier that labels 1–3 frames
|
|
14723
|
+
* per episode. The count window is the brake that drops a single-frame
|
|
14724
|
+
* false positive; the rule's own `throttle` cooldown is the other. The
|
|
14725
|
+
* per-label confidence floor is the analyzer's (`classificationMinScore`,
|
|
14726
|
+
* per device) — a label only reaches this condition if the classifier was
|
|
14727
|
+
* already confident enough. `confirmHits: 1` restores first-frame fire.
|
|
14670
14728
|
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
14671
14729
|
* the condition: at least `hitPercent`% of the samples over
|
|
14672
14730
|
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
@@ -14693,14 +14751,22 @@ var NcOccupancyConditionSchema = object({
|
|
|
14693
14751
|
* an operator who typed `dog` mean the same thing.
|
|
14694
14752
|
*/
|
|
14695
14753
|
var NcAudioConditionSchema = object({
|
|
14696
|
-
/** LABEL MODE: audio macro labels. Present ⇒
|
|
14754
|
+
/** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
|
|
14697
14755
|
labels: array(string().min(1)).min(1).optional(),
|
|
14698
14756
|
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
14699
14757
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
14700
14758
|
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
14701
14759
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
14702
14760
|
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
14703
|
-
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
14761
|
+
samplingSeconds: number().int().min(1).max(300).default(10),
|
|
14762
|
+
/**
|
|
14763
|
+
* LABEL MODE: how many labelled frames must land inside
|
|
14764
|
+
* {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
|
|
14765
|
+
* Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
|
|
14766
|
+
*/
|
|
14767
|
+
confirmHits: number().int().min(1).max(20).optional(),
|
|
14768
|
+
/** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
|
|
14769
|
+
confirmWindowSec: number().int().min(1).max(60).optional()
|
|
14704
14770
|
});
|
|
14705
14771
|
/**
|
|
14706
14772
|
* Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
|
|
@@ -17080,6 +17146,46 @@ var RecentTracksPageSchema = object({
|
|
|
17080
17146
|
/** Cursor for the next page, or null when this page is the last. */
|
|
17081
17147
|
nextCursor: string().nullable()
|
|
17082
17148
|
});
|
|
17149
|
+
var LIST_GROUPS_DEFAULT_LIMIT = 40;
|
|
17150
|
+
var LIST_GROUPS_MAX_LIMIT = 100;
|
|
17151
|
+
var AnalyticsGroupRecordSchema = object({
|
|
17152
|
+
id: string(),
|
|
17153
|
+
deviceId: number().int(),
|
|
17154
|
+
openedAt: number().int(),
|
|
17155
|
+
closedAt: number().int(),
|
|
17156
|
+
timestamp: number().int(),
|
|
17157
|
+
memberCount: number().int(),
|
|
17158
|
+
memberTrackIds: array(string()).readonly(),
|
|
17159
|
+
className: string(),
|
|
17160
|
+
classes: array(string()).readonly(),
|
|
17161
|
+
/** Relative event-media path, or null when the group has no picture yet. */
|
|
17162
|
+
mediaUrl: string().nullable(),
|
|
17163
|
+
singleton: boolean()
|
|
17164
|
+
});
|
|
17165
|
+
var AnalyticsGroupMemberSchema = object({
|
|
17166
|
+
trackId: string(),
|
|
17167
|
+
deviceId: number().int(),
|
|
17168
|
+
className: string(),
|
|
17169
|
+
firstSeen: number().int(),
|
|
17170
|
+
lastSeen: number().int(),
|
|
17171
|
+
mediaUrl: string().nullable()
|
|
17172
|
+
});
|
|
17173
|
+
var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
|
|
17174
|
+
var ListGroupsQueryInput = object({
|
|
17175
|
+
/** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
|
|
17176
|
+
deviceIds: array(number()),
|
|
17177
|
+
/** Window lower bound on `closedAt` (inclusive). */
|
|
17178
|
+
since: number().optional(),
|
|
17179
|
+
/** Window upper bound on `openedAt` (inclusive). */
|
|
17180
|
+
until: number().optional(),
|
|
17181
|
+
limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
|
|
17182
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
17183
|
+
cursor: string().optional()
|
|
17184
|
+
});
|
|
17185
|
+
var ListGroupsPageSchema = object({
|
|
17186
|
+
groups: array(AnalyticsGroupRecordSchema).readonly(),
|
|
17187
|
+
nextCursor: string().nullable()
|
|
17188
|
+
});
|
|
17083
17189
|
var KeyEventQueryInput = object({
|
|
17084
17190
|
deviceId: number(),
|
|
17085
17191
|
/** Window lower bound (track firstSeen ≥ since). */
|
|
@@ -17155,7 +17261,9 @@ var TrackCascadeCountsSchema = object({
|
|
|
17155
17261
|
/** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
|
|
17156
17262
|
plates: number().int(),
|
|
17157
17263
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
17158
|
-
embeddings: number().int()
|
|
17264
|
+
embeddings: number().int(),
|
|
17265
|
+
/** Group membership + group rows removed with their last member (best-effort). */
|
|
17266
|
+
groups: number().int()
|
|
17159
17267
|
});
|
|
17160
17268
|
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
17161
17269
|
var DiskReconcileCountsSchema = object({
|
|
@@ -17301,7 +17409,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17301
17409
|
* stationary registry). Default false: the timeline lists passages,
|
|
17302
17410
|
* not parking records (operator decision, 2026-08-15). */
|
|
17303
17411
|
includeStationary: boolean().optional()
|
|
17304
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(
|
|
17412
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
|
|
17413
|
+
deviceId: number(),
|
|
17414
|
+
groupId: string().min(1)
|
|
17415
|
+
}), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
17305
17416
|
kind: "mutation",
|
|
17306
17417
|
auth: "admin"
|
|
17307
17418
|
}), 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({
|
|
@@ -17519,6 +17630,33 @@ var NativeCropRefSchema = object({
|
|
|
17519
17630
|
h: number()
|
|
17520
17631
|
})
|
|
17521
17632
|
});
|
|
17633
|
+
object({
|
|
17634
|
+
crop: object({
|
|
17635
|
+
left: number(),
|
|
17636
|
+
top: number(),
|
|
17637
|
+
width: number().positive(),
|
|
17638
|
+
height: number().positive()
|
|
17639
|
+
}).optional(),
|
|
17640
|
+
content: object({
|
|
17641
|
+
width: number().int().positive(),
|
|
17642
|
+
height: number().int().positive()
|
|
17643
|
+
}),
|
|
17644
|
+
fit: _enum(["stretch", "contain"]),
|
|
17645
|
+
format: _enum([
|
|
17646
|
+
"rgb",
|
|
17647
|
+
"gray",
|
|
17648
|
+
"jpeg"
|
|
17649
|
+
])
|
|
17650
|
+
});
|
|
17651
|
+
var FrameRefSchema = object({
|
|
17652
|
+
registryId: string().min(1),
|
|
17653
|
+
id: string().min(1),
|
|
17654
|
+
width: number().int().positive(),
|
|
17655
|
+
height: number().int().positive(),
|
|
17656
|
+
format: _enum(["rgb", "gray"]),
|
|
17657
|
+
timestamp: number(),
|
|
17658
|
+
capturedAt: number().optional()
|
|
17659
|
+
});
|
|
17522
17660
|
var ModelFormatSchema$1 = _enum([
|
|
17523
17661
|
"onnx",
|
|
17524
17662
|
"coreml",
|
|
@@ -17584,7 +17722,8 @@ var PipelineModelOptionSchema = object({
|
|
|
17584
17722
|
sizeMB: number()
|
|
17585
17723
|
})),
|
|
17586
17724
|
group: ModelVariantGroupSchema.optional(),
|
|
17587
|
-
legacy: boolean().optional()
|
|
17725
|
+
legacy: boolean().optional(),
|
|
17726
|
+
provider: ModelProviderIdSchema.optional()
|
|
17588
17727
|
});
|
|
17589
17728
|
var ConfigFieldBridge = custom();
|
|
17590
17729
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -17763,6 +17902,12 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
17763
17902
|
steps: array(PipelineStepInputSchema).min(1),
|
|
17764
17903
|
frame: FrameInputSchema.optional(),
|
|
17765
17904
|
/**
|
|
17905
|
+
* Process-local lazy frame. Valid only when caller and provider resolve
|
|
17906
|
+
* in the same execution-group process; split/cross-node callers use
|
|
17907
|
+
* `frame`/`image` inline compatibility instead.
|
|
17908
|
+
*/
|
|
17909
|
+
frameRef: FrameRefSchema.optional(),
|
|
17910
|
+
/**
|
|
17766
17911
|
* CB5 shm passthrough — a `FrameHandle` naming the same ring slot
|
|
17767
17912
|
* the decoded pixels live in. One more member of the one-of
|
|
17768
17913
|
* frame/frameHandle/image/imageBase64/referenceImage group.
|
|
@@ -18018,7 +18163,10 @@ var NativeCropResultSchema = object({
|
|
|
18018
18163
|
* Which source served this crop, so a quality-sensitive consumer (the native
|
|
18019
18164
|
* `keyFrame`) can reject a degraded fallback:
|
|
18020
18165
|
* - `native` — cut from the decode worker's retained NATIVE surface (the
|
|
18021
|
-
* quality path).
|
|
18166
|
+
* quality path). A subject-tile serve is also native-resolution and stays
|
|
18167
|
+
* `native` here: the public enum cannot name `tile` without a breaking cap
|
|
18168
|
+
* change. Runner telemetry distinguishes lease vs tile via `source` on the
|
|
18169
|
+
* internal crop result (`nativeHits` vs `tileHits`).
|
|
18022
18170
|
* - `ram-fullframe` — the native surface MISSED but the request was full-frame,
|
|
18023
18171
|
* so the ≤640 RAM `RetainedFrameStore` served it (honest lower-res; legit for
|
|
18024
18172
|
* the blank-frame guard / 640-snapshot resolve, NOT for the clean keyFrame).
|
|
@@ -18509,12 +18657,41 @@ var RunnerLocalLoadSchema = object({
|
|
|
18509
18657
|
* legacy `OrchestratorMetricsSchema` shape so existing dashboards keep
|
|
18510
18658
|
* working unchanged when they switch to reading from the runner cap.
|
|
18511
18659
|
*/
|
|
18660
|
+
var FrameLazyCountersSchema = object({
|
|
18661
|
+
framesDecoded: number(),
|
|
18662
|
+
framesAdmitted: number(),
|
|
18663
|
+
framesDroppedPixelFree: number(),
|
|
18664
|
+
viewsMaterialized: number(),
|
|
18665
|
+
viewsSkipped: number(),
|
|
18666
|
+
workerToRunnerBytes: number(),
|
|
18667
|
+
runnerToPoolRawBytes: number(),
|
|
18668
|
+
runnerToPoolJpegBytes: number(),
|
|
18669
|
+
onDemandFullFrameRequests: number(),
|
|
18670
|
+
onDemandCropRequests: number(),
|
|
18671
|
+
nativeHits: number(),
|
|
18672
|
+
nativeMisses: number(),
|
|
18673
|
+
tileHits: number(),
|
|
18674
|
+
tileMisses: number(),
|
|
18675
|
+
fallbackHits: number(),
|
|
18676
|
+
fallbackMisses: number(),
|
|
18677
|
+
retainedWritesAvoided: number(),
|
|
18678
|
+
residentRefs: number(),
|
|
18679
|
+
residentBytes: number(),
|
|
18680
|
+
releases: number(),
|
|
18681
|
+
evictions: number(),
|
|
18682
|
+
staleMisses: number()
|
|
18683
|
+
});
|
|
18684
|
+
var FrameLazyMetricsSchema = object({
|
|
18685
|
+
node: FrameLazyCountersSchema,
|
|
18686
|
+
cameras: array(FrameLazyCountersSchema.extend({ deviceId: number() }))
|
|
18687
|
+
});
|
|
18512
18688
|
var RunnerLocalMetricsSchema = object({
|
|
18513
18689
|
nodeId: string(),
|
|
18514
18690
|
activeCameras: number(),
|
|
18515
18691
|
throttledCameras: number(),
|
|
18516
18692
|
avgInferenceTimeMs: number(),
|
|
18517
|
-
queueDepth: number()
|
|
18693
|
+
queueDepth: number(),
|
|
18694
|
+
frameLazy: FrameLazyMetricsSchema.optional()
|
|
18518
18695
|
});
|
|
18519
18696
|
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({
|
|
18520
18697
|
handle: FrameHandleSchema,
|
|
@@ -19814,6 +19991,9 @@ method(_void(), ProviderInfoSchema), method(object({ config: record(string(), un
|
|
|
19814
19991
|
location: StorageLocationSchema,
|
|
19815
19992
|
relativePath: string()
|
|
19816
19993
|
}), _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" });
|
|
19994
|
+
/** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
|
|
19995
|
+
var ProfileSettingsSchemaBridge = unknown().nullable();
|
|
19996
|
+
var ProfileSettingsBagSchema = record(string(), unknown());
|
|
19817
19997
|
/**
|
|
19818
19998
|
* A live terminal session hosted by the provider addon. Output and input do
|
|
19819
19999
|
* NOT flow through the capability — they use the addon data plane
|
|
@@ -19843,7 +20023,14 @@ var TerminalSessionInfoSchema = object({
|
|
|
19843
20023
|
var TerminalProfileInfoSchema = object({
|
|
19844
20024
|
profileId: string(),
|
|
19845
20025
|
label: string(),
|
|
19846
|
-
description: string().optional()
|
|
20026
|
+
description: string().optional(),
|
|
20027
|
+
/** Spawn defaults the instance form copies on create. */
|
|
20028
|
+
executable: string().optional(),
|
|
20029
|
+
args: array(string()).readonly().optional(),
|
|
20030
|
+
cwd: string().optional(),
|
|
20031
|
+
environment: array(string()).readonly().optional(),
|
|
20032
|
+
/** ConfigUISchema for instance knobs, or null when the profile has none. */
|
|
20033
|
+
settingsSchema: ProfileSettingsSchemaBridge.optional()
|
|
19847
20034
|
});
|
|
19848
20035
|
/**
|
|
19849
20036
|
* A durable operator-created Terminal instance. Profiles are templates; only
|
|
@@ -19856,7 +20043,12 @@ var TerminalInstanceInfoSchema = object({
|
|
|
19856
20043
|
profileId: string(),
|
|
19857
20044
|
profileLabel: string(),
|
|
19858
20045
|
name: string(),
|
|
19859
|
-
enabled: boolean()
|
|
20046
|
+
enabled: boolean(),
|
|
20047
|
+
executable: string(),
|
|
20048
|
+
args: array(string()).readonly(),
|
|
20049
|
+
cwd: string(),
|
|
20050
|
+
environment: array(string()).readonly(),
|
|
20051
|
+
profileSettings: ProfileSettingsBagSchema
|
|
19860
20052
|
});
|
|
19861
20053
|
var TerminalLegacyCameraSchema = object({
|
|
19862
20054
|
stableId: string(),
|
|
@@ -19886,7 +20078,23 @@ var TerminalOutputBatchSchema = object({
|
|
|
19886
20078
|
method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalInstanceInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
19887
20079
|
targetNodeId: string().min(1),
|
|
19888
20080
|
profileId: string().min(1),
|
|
19889
|
-
name: string().trim().min(1).max(160).optional()
|
|
20081
|
+
name: string().trim().min(1).max(160).optional(),
|
|
20082
|
+
executable: string().max(1024).optional(),
|
|
20083
|
+
args: array(string().max(2048)).max(64).optional(),
|
|
20084
|
+
cwd: string().max(1024).optional(),
|
|
20085
|
+
environment: array(string().max(4096)).max(64).optional(),
|
|
20086
|
+
profileSettings: ProfileSettingsBagSchema.optional()
|
|
20087
|
+
}), TerminalInstanceInfoSchema, {
|
|
20088
|
+
kind: "mutation",
|
|
20089
|
+
auth: "admin"
|
|
20090
|
+
}), method(object({
|
|
20091
|
+
instanceId: string().min(1),
|
|
20092
|
+
name: string().trim().min(1).max(160).optional(),
|
|
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(),
|
|
20097
|
+
profileSettings: ProfileSettingsBagSchema.optional()
|
|
19890
20098
|
}), TerminalInstanceInfoSchema, {
|
|
19891
20099
|
kind: "mutation",
|
|
19892
20100
|
auth: "admin"
|
|
@@ -19908,7 +20116,11 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
|
|
|
19908
20116
|
}), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
19909
20117
|
profileId: string(),
|
|
19910
20118
|
cols: number().int().positive(),
|
|
19911
|
-
rows: number().int().positive()
|
|
20119
|
+
rows: number().int().positive(),
|
|
20120
|
+
executable: string().max(1024).optional(),
|
|
20121
|
+
args: array(string().max(2048)).max(64).optional(),
|
|
20122
|
+
cwd: string().max(1024).optional(),
|
|
20123
|
+
environment: array(string().max(4096)).max(64).optional()
|
|
19912
20124
|
}), TerminalSessionInfoSchema, {
|
|
19913
20125
|
kind: "mutation",
|
|
19914
20126
|
auth: "admin"
|
|
@@ -22690,10 +22902,10 @@ DeviceType.LawnMower, method(object({ deviceId: number().int().nonnegative() }),
|
|
|
22690
22902
|
*
|
|
22691
22903
|
* • The SDK (mobile / web client) consumes `getConnectionEndpoints()`
|
|
22692
22904
|
* to receive an ordered list of candidate base URLs it should race
|
|
22693
|
-
* on connect — LAN IPv4 first (lowest latency
|
|
22694
|
-
* then public hostname (if a tunnel is
|
|
22695
|
-
* race them with short timeouts and stick with the
|
|
22696
|
-
* session.
|
|
22905
|
+
* on connect — LAN IPv4 and stable LAN IPv6 first (lowest latency
|
|
22906
|
+
* when on the same network), then public hostname (if a tunnel is
|
|
22907
|
+
* up). The SDK can race them with short timeouts and stick with the
|
|
22908
|
+
* winner for the session.
|
|
22697
22909
|
*
|
|
22698
22910
|
* Why hub-only: agents are not directly addressable by the operator's
|
|
22699
22911
|
* clients — they reverse-connect to the hub. Exposing their interfaces
|
|
@@ -22848,6 +23060,17 @@ var NotificationEndpointSchema = object({
|
|
|
22848
23060
|
/** What the ranking currently resolves to (null when nothing is reachable). */
|
|
22849
23061
|
resolved: string().nullable()
|
|
22850
23062
|
});
|
|
23063
|
+
/**
|
|
23064
|
+
* The URLs the SDK / viewer should race for API access. `baseUrls` empty =
|
|
23065
|
+
* AUTO (every LAN IPv4 + the public tunnel). `resolved` is what that choice
|
|
23066
|
+
* currently expands to, so the UI can show the effective set either way.
|
|
23067
|
+
*/
|
|
23068
|
+
var ViewerEndpointsSchema = object({
|
|
23069
|
+
/** The operator's explicit race set, or empty for AUTO. */
|
|
23070
|
+
baseUrls: array(string()).readonly(),
|
|
23071
|
+
/** What the ranking currently resolves to (may be empty if nothing is up). */
|
|
23072
|
+
resolved: array(string()).readonly()
|
|
23073
|
+
});
|
|
22851
23074
|
var AllowedAddressesSchema = object({
|
|
22852
23075
|
/**
|
|
22853
23076
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -22856,6 +23079,20 @@ var AllowedAddressesSchema = object({
|
|
|
22856
23079
|
* Network Addresses admin page and persisted by the addon.
|
|
22857
23080
|
*/
|
|
22858
23081
|
addresses: array(string()).readonly() });
|
|
23082
|
+
var TlsStatusSchema = object({
|
|
23083
|
+
mode: _enum([
|
|
23084
|
+
"generated",
|
|
23085
|
+
"uploaded",
|
|
23086
|
+
"disabled"
|
|
23087
|
+
]),
|
|
23088
|
+
leafFingerprintSha256: string().nullable(),
|
|
23089
|
+
caFingerprintSha256: string().nullable(),
|
|
23090
|
+
validTo: string().nullable(),
|
|
23091
|
+
sans: array(string()),
|
|
23092
|
+
caCertPem: string().nullable(),
|
|
23093
|
+
reissueError: string().nullable(),
|
|
23094
|
+
restartRequired: boolean()
|
|
23095
|
+
});
|
|
22859
23096
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
22860
23097
|
/**
|
|
22861
23098
|
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
@@ -22865,17 +23102,31 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
22865
23102
|
*/
|
|
22866
23103
|
port: number().int().min(1).max(65535).optional(),
|
|
22867
23104
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
22868
|
-
* candidate. Default `
|
|
23105
|
+
* candidate. Default `false` — loopback is not a client route. */
|
|
22869
23106
|
includeLoopback: boolean().optional(),
|
|
22870
|
-
/** Skip IPv6 entries.
|
|
22871
|
-
*
|
|
23107
|
+
/** Skip IPv6 entries. Default `false` — the palette includes stable
|
|
23108
|
+
* LAN IPv6 (ICE/WebRTC uses dual-stack regardless). Pass `true` to
|
|
23109
|
+
* hide them. The viewer HTTP/WS race is `getViewerEndpoints`. */
|
|
22872
23110
|
ipv4Only: boolean().optional(),
|
|
22873
23111
|
/** Scheme to emit for LAN/loopback URLs. Default `'http'`.
|
|
22874
23112
|
* Pass `'https'` when the caller is itself loaded over HTTPS
|
|
22875
23113
|
* to avoid mixed-content blocks in the browser. The public
|
|
22876
23114
|
* tunnel always emits `https://` regardless. */
|
|
22877
23115
|
scheme: _enum(["http", "https"]).optional()
|
|
22878
|
-
}), 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" })
|
|
23116
|
+
}), 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, {
|
|
23117
|
+
kind: "mutation",
|
|
23118
|
+
auth: "admin"
|
|
23119
|
+
}), method(object({
|
|
23120
|
+
certPem: string().min(1),
|
|
23121
|
+
keyPem: string().min(1),
|
|
23122
|
+
caPem: string().optional()
|
|
23123
|
+
}), TlsStatusSchema, {
|
|
23124
|
+
kind: "mutation",
|
|
23125
|
+
auth: "admin"
|
|
23126
|
+
}), method(_void(), object({ pem: string() })), method(_void(), TlsStatusSchema, {
|
|
23127
|
+
kind: "mutation",
|
|
23128
|
+
auth: "admin"
|
|
23129
|
+
});
|
|
22879
23130
|
object({
|
|
22880
23131
|
/** Lifecycle state of the lock. `jammed` means the motor reported
|
|
22881
23132
|
* failure to reach the target — operator intervention required. */
|
|
@@ -24056,7 +24307,12 @@ var PlateInfoSchema = object({
|
|
|
24056
24307
|
plateBbox: BoundingBoxSchema.optional(),
|
|
24057
24308
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
24058
24309
|
keyFrameMediaKey: string().optional(),
|
|
24059
|
-
base64: string().optional()
|
|
24310
|
+
base64: string().optional(),
|
|
24311
|
+
/**
|
|
24312
|
+
* Same crop as a data-plane URL. `getPlateByTrack` returns this and
|
|
24313
|
+
* never inlines JPEG; `listPlates` still inlines for the admin-ui.
|
|
24314
|
+
*/
|
|
24315
|
+
cropUrl: string().optional()
|
|
24060
24316
|
});
|
|
24061
24317
|
var MediaFileLiteSchema = object({
|
|
24062
24318
|
key: string(),
|
|
@@ -27696,6 +27952,12 @@ Object.freeze({
|
|
|
27696
27952
|
addonId: null,
|
|
27697
27953
|
access: "view"
|
|
27698
27954
|
},
|
|
27955
|
+
"deviceManager.getBindingsBatch": {
|
|
27956
|
+
capName: "device-manager",
|
|
27957
|
+
capScope: "system",
|
|
27958
|
+
addonId: null,
|
|
27959
|
+
access: "view"
|
|
27960
|
+
},
|
|
27699
27961
|
"deviceManager.getChildren": {
|
|
27700
27962
|
capName: "device-manager",
|
|
27701
27963
|
capScope: "system",
|
|
@@ -27756,6 +28018,12 @@ Object.freeze({
|
|
|
27756
28018
|
addonId: null,
|
|
27757
28019
|
access: "view"
|
|
27758
28020
|
},
|
|
28021
|
+
"deviceManager.getLinkedDevicesBatch": {
|
|
28022
|
+
capName: "device-manager",
|
|
28023
|
+
capScope: "system",
|
|
28024
|
+
addonId: null,
|
|
28025
|
+
access: "view"
|
|
28026
|
+
},
|
|
27759
28027
|
"deviceManager.getRoleDisplayDefaults": {
|
|
27760
28028
|
capName: "device-manager",
|
|
27761
28029
|
capScope: "system",
|
|
@@ -28638,6 +28906,12 @@ Object.freeze({
|
|
|
28638
28906
|
addonId: null,
|
|
28639
28907
|
access: "create"
|
|
28640
28908
|
},
|
|
28909
|
+
"localNetwork.downloadCa": {
|
|
28910
|
+
capName: "local-network",
|
|
28911
|
+
capScope: "system",
|
|
28912
|
+
addonId: null,
|
|
28913
|
+
access: "view"
|
|
28914
|
+
},
|
|
28641
28915
|
"localNetwork.getAllowedAddresses": {
|
|
28642
28916
|
capName: "local-network",
|
|
28643
28917
|
capScope: "system",
|
|
@@ -28662,18 +28936,42 @@ Object.freeze({
|
|
|
28662
28936
|
addonId: null,
|
|
28663
28937
|
access: "view"
|
|
28664
28938
|
},
|
|
28939
|
+
"localNetwork.getTlsStatus": {
|
|
28940
|
+
capName: "local-network",
|
|
28941
|
+
capScope: "system",
|
|
28942
|
+
addonId: null,
|
|
28943
|
+
access: "view"
|
|
28944
|
+
},
|
|
28945
|
+
"localNetwork.getViewerEndpoints": {
|
|
28946
|
+
capName: "local-network",
|
|
28947
|
+
capScope: "system",
|
|
28948
|
+
addonId: null,
|
|
28949
|
+
access: "view"
|
|
28950
|
+
},
|
|
28665
28951
|
"localNetwork.list": {
|
|
28666
28952
|
capName: "local-network",
|
|
28667
28953
|
capScope: "system",
|
|
28668
28954
|
addonId: null,
|
|
28669
28955
|
access: "view"
|
|
28670
28956
|
},
|
|
28957
|
+
"localNetwork.regenerateCertificate": {
|
|
28958
|
+
capName: "local-network",
|
|
28959
|
+
capScope: "system",
|
|
28960
|
+
addonId: null,
|
|
28961
|
+
access: "create"
|
|
28962
|
+
},
|
|
28671
28963
|
"localNetwork.resetAllowlistToBestMatch": {
|
|
28672
28964
|
capName: "local-network",
|
|
28673
28965
|
capScope: "system",
|
|
28674
28966
|
addonId: null,
|
|
28675
28967
|
access: "delete"
|
|
28676
28968
|
},
|
|
28969
|
+
"localNetwork.revertToGeneratedCertificate": {
|
|
28970
|
+
capName: "local-network",
|
|
28971
|
+
capScope: "system",
|
|
28972
|
+
addonId: null,
|
|
28973
|
+
access: "create"
|
|
28974
|
+
},
|
|
28677
28975
|
"localNetwork.setAllowedAddresses": {
|
|
28678
28976
|
capName: "local-network",
|
|
28679
28977
|
capScope: "system",
|
|
@@ -28686,6 +28984,18 @@ Object.freeze({
|
|
|
28686
28984
|
addonId: null,
|
|
28687
28985
|
access: "create"
|
|
28688
28986
|
},
|
|
28987
|
+
"localNetwork.setViewerEndpoints": {
|
|
28988
|
+
capName: "local-network",
|
|
28989
|
+
capScope: "system",
|
|
28990
|
+
addonId: null,
|
|
28991
|
+
access: "create"
|
|
28992
|
+
},
|
|
28993
|
+
"localNetwork.uploadCertificate": {
|
|
28994
|
+
capName: "local-network",
|
|
28995
|
+
capScope: "system",
|
|
28996
|
+
addonId: null,
|
|
28997
|
+
access: "create"
|
|
28998
|
+
},
|
|
28689
28999
|
"lockControl.lock": {
|
|
28690
29000
|
capName: "lock-control",
|
|
28691
29001
|
capScope: "device",
|
|
@@ -29484,6 +29794,12 @@ Object.freeze({
|
|
|
29484
29794
|
addonId: null,
|
|
29485
29795
|
access: "view"
|
|
29486
29796
|
},
|
|
29797
|
+
"pipelineAnalytics.getGroup": {
|
|
29798
|
+
capName: "pipeline-analytics",
|
|
29799
|
+
capScope: "device",
|
|
29800
|
+
addonId: null,
|
|
29801
|
+
access: "view"
|
|
29802
|
+
},
|
|
29487
29803
|
"pipelineAnalytics.getKeyEvents": {
|
|
29488
29804
|
capName: "pipeline-analytics",
|
|
29489
29805
|
capScope: "device",
|
|
@@ -29568,6 +29884,12 @@ Object.freeze({
|
|
|
29568
29884
|
addonId: null,
|
|
29569
29885
|
access: "view"
|
|
29570
29886
|
},
|
|
29887
|
+
"pipelineAnalytics.listGroups": {
|
|
29888
|
+
capName: "pipeline-analytics",
|
|
29889
|
+
capScope: "device",
|
|
29890
|
+
addonId: null,
|
|
29891
|
+
access: "view"
|
|
29892
|
+
},
|
|
29571
29893
|
"pipelineAnalytics.listOpsLog": {
|
|
29572
29894
|
capName: "pipeline-analytics",
|
|
29573
29895
|
capScope: "device",
|
|
@@ -31566,6 +31888,12 @@ Object.freeze({
|
|
|
31566
31888
|
addonId: null,
|
|
31567
31889
|
access: "create"
|
|
31568
31890
|
},
|
|
31891
|
+
"terminalSession.updateInstance": {
|
|
31892
|
+
capName: "terminal-session",
|
|
31893
|
+
capScope: "system",
|
|
31894
|
+
addonId: null,
|
|
31895
|
+
access: "create"
|
|
31896
|
+
},
|
|
31569
31897
|
"terminalSession.writeInput": {
|
|
31570
31898
|
capName: "terminal-session",
|
|
31571
31899
|
capScope: "system",
|
|
@@ -32343,6 +32671,11 @@ Object.freeze({
|
|
|
32343
32671
|
form: "single",
|
|
32344
32672
|
optional: false
|
|
32345
32673
|
}],
|
|
32674
|
+
"deviceManager.getBindingsBatch": [{
|
|
32675
|
+
name: "deviceIds",
|
|
32676
|
+
form: "array",
|
|
32677
|
+
optional: false
|
|
32678
|
+
}],
|
|
32346
32679
|
"deviceManager.getChildren": [{
|
|
32347
32680
|
name: "parentDeviceId",
|
|
32348
32681
|
form: "single",
|
|
@@ -32388,6 +32721,11 @@ Object.freeze({
|
|
|
32388
32721
|
form: "single",
|
|
32389
32722
|
optional: false
|
|
32390
32723
|
}],
|
|
32724
|
+
"deviceManager.getLinkedDevicesBatch": [{
|
|
32725
|
+
name: "deviceIds",
|
|
32726
|
+
form: "array",
|
|
32727
|
+
optional: false
|
|
32728
|
+
}],
|
|
32391
32729
|
"deviceManager.getSettingsSchema": [{
|
|
32392
32730
|
name: "deviceId",
|
|
32393
32731
|
form: "single",
|
|
@@ -32408,6 +32746,11 @@ Object.freeze({
|
|
|
32408
32746
|
form: "single",
|
|
32409
32747
|
optional: false
|
|
32410
32748
|
}],
|
|
32749
|
+
"deviceManager.listAll": [{
|
|
32750
|
+
name: "deviceIds",
|
|
32751
|
+
form: "array",
|
|
32752
|
+
optional: true
|
|
32753
|
+
}],
|
|
32411
32754
|
"deviceManager.loadConfig": [{
|
|
32412
32755
|
name: "deviceId",
|
|
32413
32756
|
form: "single",
|
|
@@ -32981,6 +33324,11 @@ Object.freeze({
|
|
|
32981
33324
|
form: "single",
|
|
32982
33325
|
optional: false
|
|
32983
33326
|
}],
|
|
33327
|
+
"pipelineAnalytics.getGroup": [{
|
|
33328
|
+
name: "deviceId",
|
|
33329
|
+
form: "single",
|
|
33330
|
+
optional: false
|
|
33331
|
+
}],
|
|
32984
33332
|
"pipelineAnalytics.getKeyEvents": [{
|
|
32985
33333
|
name: "deviceId",
|
|
32986
33334
|
form: "single",
|
|
@@ -33036,6 +33384,11 @@ Object.freeze({
|
|
|
33036
33384
|
form: "array",
|
|
33037
33385
|
optional: false
|
|
33038
33386
|
}],
|
|
33387
|
+
"pipelineAnalytics.listGroups": [{
|
|
33388
|
+
name: "deviceIds",
|
|
33389
|
+
form: "array",
|
|
33390
|
+
optional: false
|
|
33391
|
+
}],
|
|
33039
33392
|
"pipelineAnalytics.listOpsLog": [{
|
|
33040
33393
|
name: "deviceId",
|
|
33041
33394
|
form: "single",
|
|
@@ -34053,6 +34406,35 @@ Object.freeze(Object.fromEntries([{
|
|
|
34053
34406
|
}]
|
|
34054
34407
|
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
34055
34408
|
string().min(1);
|
|
34409
|
+
var CLUSTER_STEP_SETTING_FIELDS = [{
|
|
34410
|
+
stepId: "face-embedding",
|
|
34411
|
+
key: "minLandmarkFaceSize",
|
|
34412
|
+
label: "Min face size for recognition (detection px)",
|
|
34413
|
+
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.",
|
|
34414
|
+
type: "slider",
|
|
34415
|
+
min: 0,
|
|
34416
|
+
max: 64,
|
|
34417
|
+
step: 2,
|
|
34418
|
+
default: 24
|
|
34419
|
+
}];
|
|
34420
|
+
function clusterStepSettingKey(stepId, fieldKey) {
|
|
34421
|
+
return `clusterStepSetting:${stepId}:${fieldKey}`;
|
|
34422
|
+
}
|
|
34423
|
+
var ClusterSettingNumberSchema = number().finite();
|
|
34424
|
+
function readClusterStepSettings(config) {
|
|
34425
|
+
const out = {};
|
|
34426
|
+
for (const field of CLUSTER_STEP_SETTING_FIELDS) {
|
|
34427
|
+
const parsed = ClusterSettingNumberSchema.safeParse(config[clusterStepSettingKey(field.stepId, field.key)]);
|
|
34428
|
+
const value = parsed.success ? parsed.data : field.default;
|
|
34429
|
+
const existing = out[field.stepId] ?? {};
|
|
34430
|
+
out[field.stepId] = {
|
|
34431
|
+
...existing,
|
|
34432
|
+
[field.key]: value
|
|
34433
|
+
};
|
|
34434
|
+
}
|
|
34435
|
+
return out;
|
|
34436
|
+
}
|
|
34437
|
+
readClusterStepSettings({});
|
|
34056
34438
|
object({
|
|
34057
34439
|
/**
|
|
34058
34440
|
* Fraction of the box's own size added on EACH side before cutting.
|