@camstack/addon-smtp-nodemailer 1.2.25 → 1.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/smtp.addon.js +432 -50
- package/dist/smtp.addon.mjs +432 -50
- package/package.json +1 -1
package/dist/smtp.addon.mjs
CHANGED
|
@@ -5836,6 +5836,13 @@ var BaseAddon = class {
|
|
|
5836
5836
|
_readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
|
|
5837
5837
|
/** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
|
|
5838
5838
|
_registeredCapNames = [];
|
|
5839
|
+
/**
|
|
5840
|
+
* True only after `readAddonStore` actually answered. Constructor
|
|
5841
|
+
* defaults look like stored config when the store is down — a forked
|
|
5842
|
+
* addon that auto-starts from those defaults (cloudflare-tunnel quick
|
|
5843
|
+
* mode, 2026-08-25) is not "the operator chose this".
|
|
5844
|
+
*/
|
|
5845
|
+
settingsStoreReady = false;
|
|
5839
5846
|
/** Default config values. Provided via constructor. */
|
|
5840
5847
|
defaults;
|
|
5841
5848
|
constructor(defaults) {
|
|
@@ -6236,7 +6243,9 @@ var BaseAddon = class {
|
|
|
6236
6243
|
];
|
|
6237
6244
|
let lastErr;
|
|
6238
6245
|
for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
|
|
6239
|
-
|
|
6246
|
+
const stored = await settings.readAddonStore() ?? {};
|
|
6247
|
+
this.settingsStoreReady = true;
|
|
6248
|
+
return stored;
|
|
6240
6249
|
} catch (err) {
|
|
6241
6250
|
lastErr = err;
|
|
6242
6251
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -6244,6 +6253,7 @@ var BaseAddon = class {
|
|
|
6244
6253
|
if (attempt === delaysMs.length) break;
|
|
6245
6254
|
await new Promise((r) => setTimeout(r, delaysMs[attempt]));
|
|
6246
6255
|
}
|
|
6256
|
+
this.settingsStoreReady = false;
|
|
6247
6257
|
this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
|
|
6248
6258
|
return {};
|
|
6249
6259
|
}
|
|
@@ -8039,6 +8049,15 @@ var LabelDefinitionSchema = object({
|
|
|
8039
8049
|
description: string().optional(),
|
|
8040
8050
|
icon: string().optional()
|
|
8041
8051
|
});
|
|
8052
|
+
var ClassMapDefinitionSchema = object({
|
|
8053
|
+
mapping: record(string(), _enum([
|
|
8054
|
+
"person",
|
|
8055
|
+
"vehicle",
|
|
8056
|
+
"animal",
|
|
8057
|
+
"package"
|
|
8058
|
+
])),
|
|
8059
|
+
preserveOriginal: boolean()
|
|
8060
|
+
});
|
|
8042
8061
|
var MODEL_FORMATS = [
|
|
8043
8062
|
"onnx",
|
|
8044
8063
|
"coreml",
|
|
@@ -8122,6 +8141,12 @@ var ModelVariantGroupSchema = object({
|
|
|
8122
8141
|
*/
|
|
8123
8142
|
resolution: number().int().positive().optional()
|
|
8124
8143
|
});
|
|
8144
|
+
var ModelProviderIdSchema = _enum([
|
|
8145
|
+
"camstack",
|
|
8146
|
+
"frigate",
|
|
8147
|
+
"scrypted",
|
|
8148
|
+
"custom"
|
|
8149
|
+
]);
|
|
8125
8150
|
var ModelCatalogEntrySchema = object({
|
|
8126
8151
|
id: string(),
|
|
8127
8152
|
name: string(),
|
|
@@ -8217,7 +8242,19 @@ var ModelCatalogEntrySchema = object({
|
|
|
8217
8242
|
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
8218
8243
|
* is a presentation overlay resolved back to an `id`.
|
|
8219
8244
|
*/
|
|
8220
|
-
group: ModelVariantGroupSchema.optional()
|
|
8245
|
+
group: ModelVariantGroupSchema.optional(),
|
|
8246
|
+
/**
|
|
8247
|
+
* Catalog source for the pipeline stepper's provider-first picker. Absent on
|
|
8248
|
+
* built-in CamStack entries (treated as `camstack`) and on registry rows
|
|
8249
|
+
* persisted before this field existed (`inferModelProvider` fills those).
|
|
8250
|
+
*/
|
|
8251
|
+
provider: ModelProviderIdSchema.optional(),
|
|
8252
|
+
/**
|
|
8253
|
+
* Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
|
|
8254
|
+
* applies (Frigate / COCO public catalog). Set on a custom model whose raw
|
|
8255
|
+
* labels already ARE the CamStack macros (Scrypted identity map).
|
|
8256
|
+
*/
|
|
8257
|
+
classMap: ClassMapDefinitionSchema.optional()
|
|
8221
8258
|
});
|
|
8222
8259
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
8223
8260
|
format: literal("openvino"),
|
|
@@ -8246,7 +8283,8 @@ var ModelConvertMetadataSchema = object({
|
|
|
8246
8283
|
"ocr",
|
|
8247
8284
|
"segmentation"
|
|
8248
8285
|
]),
|
|
8249
|
-
faceAlignment: boolean().optional()
|
|
8286
|
+
faceAlignment: boolean().optional(),
|
|
8287
|
+
classMap: ClassMapDefinitionSchema.optional()
|
|
8250
8288
|
});
|
|
8251
8289
|
var ConvertResultSchema = object({
|
|
8252
8290
|
entry: ModelCatalogEntrySchema,
|
|
@@ -11739,6 +11777,27 @@ var LinkedDeviceSchema = object({
|
|
|
11739
11777
|
features: array(string()),
|
|
11740
11778
|
producesTrackedEvents: boolean().optional()
|
|
11741
11779
|
});
|
|
11780
|
+
/** One camera's resolved linked set, tagged with the camera it belongs to.
|
|
11781
|
+
* The batch answer needs the tag; the single-device answer already has it
|
|
11782
|
+
* from the input, which is why `getLinkedDevices` keeps the untagged shape. */
|
|
11783
|
+
var LinkedDevicesForDeviceSchema = object({
|
|
11784
|
+
deviceId: number(),
|
|
11785
|
+
mode: LinkedDevicesModeSchema,
|
|
11786
|
+
devices: array(LinkedDeviceSchema)
|
|
11787
|
+
});
|
|
11788
|
+
/** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
|
|
11789
|
+
* `getAllBindings` all answer in. Declared once: three copies of the same
|
|
11790
|
+
* object literal is exactly how the three drift apart. */
|
|
11791
|
+
var DeviceBindingsForDeviceSchema = object({
|
|
11792
|
+
deviceId: number(),
|
|
11793
|
+
entries: array(object({
|
|
11794
|
+
capName: string(),
|
|
11795
|
+
kind: _enum(["native", "wrapped"]),
|
|
11796
|
+
providerAddonId: string(),
|
|
11797
|
+
providerNodeId: string(),
|
|
11798
|
+
nativeAddonId: string()
|
|
11799
|
+
}))
|
|
11800
|
+
});
|
|
11742
11801
|
var SavedDeviceRowSchema = object({
|
|
11743
11802
|
/** Numeric id reserved at allocateDeviceId time. */
|
|
11744
11803
|
id: number(),
|
|
@@ -11964,11 +12023,25 @@ method(object({
|
|
|
11964
12023
|
projection: _enum(["full", "slim"]).optional(),
|
|
11965
12024
|
/** Return only camera devices. Filtering server-side instead of
|
|
11966
12025
|
* shipping 293 rows to find 12. */
|
|
11967
|
-
isCamera: boolean().optional()
|
|
12026
|
+
isCamera: boolean().optional(),
|
|
12027
|
+
/**
|
|
12028
|
+
* Return only these device ids. For the caller that already KNOWS the
|
|
12029
|
+
* handful it wants and needs a field the id-bearing answer does not
|
|
12030
|
+
* carry — the viewer's linked-devices panel joins `type` and `online`
|
|
12031
|
+
* onto ~8 linked ids and, unfiltered, dragged the fleet across to do
|
|
12032
|
+
* it: 433 KB slim / 958 KB full for 967 devices, on a query that
|
|
12033
|
+
* refetches on the reconcile interval, on a phone.
|
|
12034
|
+
*
|
|
12035
|
+
* Safe to send at a hub that predates it: Zod STRIPS unknown input
|
|
12036
|
+
* keys rather than rejecting them (verified against the live hub
|
|
12037
|
+
* 2026-08-25 — 967 rows came back), so an old hub answers exactly what
|
|
12038
|
+
* it answers today and the caller filters as it already does.
|
|
12039
|
+
*/
|
|
12040
|
+
deviceIds: array(number()).optional()
|
|
11968
12041
|
}), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
|
|
11969
12042
|
mode: LinkedDevicesModeSchema,
|
|
11970
12043
|
devices: array(LinkedDeviceSchema)
|
|
11971
|
-
})), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
12044
|
+
})), 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({
|
|
11972
12045
|
deviceId: number(),
|
|
11973
12046
|
values: record(string(), unknown())
|
|
11974
12047
|
}), object({ success: literal(true) }), {
|
|
@@ -11995,25 +12068,7 @@ method(object({
|
|
|
11995
12068
|
}), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
|
|
11996
12069
|
kind: "mutation",
|
|
11997
12070
|
auth: "admin"
|
|
11998
|
-
}), method(object({ deviceId: number() }), object({
|
|
11999
|
-
deviceId: number(),
|
|
12000
|
-
entries: array(object({
|
|
12001
|
-
capName: string(),
|
|
12002
|
-
kind: _enum(["native", "wrapped"]),
|
|
12003
|
-
providerAddonId: string(),
|
|
12004
|
-
providerNodeId: string(),
|
|
12005
|
-
nativeAddonId: string()
|
|
12006
|
-
}))
|
|
12007
|
-
})), method(object({}), array(object({
|
|
12008
|
-
deviceId: number(),
|
|
12009
|
-
entries: array(object({
|
|
12010
|
-
capName: string(),
|
|
12011
|
-
kind: _enum(["native", "wrapped"]),
|
|
12012
|
-
providerAddonId: string(),
|
|
12013
|
-
providerNodeId: string(),
|
|
12014
|
-
nativeAddonId: string()
|
|
12015
|
-
}))
|
|
12016
|
-
}))), method(object({
|
|
12071
|
+
}), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
|
|
12017
12072
|
deviceId: number(),
|
|
12018
12073
|
capName: string(),
|
|
12019
12074
|
wrapperAddonId: string(),
|
|
@@ -14385,12 +14440,15 @@ var NcOccupancyConditionSchema = object({
|
|
|
14385
14440
|
* there is no second switch that can disagree with the first and every rule
|
|
14386
14441
|
* authored before the decision migrates for free (`audioModeOf`):
|
|
14387
14442
|
*
|
|
14388
|
-
* - **LABEL mode — `labels` present.** The rule fires
|
|
14389
|
-
*
|
|
14390
|
-
* `hitPercent` and `samplingSeconds` are ignored
|
|
14391
|
-
*
|
|
14392
|
-
*
|
|
14393
|
-
*
|
|
14443
|
+
* - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
|
|
14444
|
+
* labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
|
|
14445
|
+
* `hitPercent` and `samplingSeconds` are still ignored — a percentage of
|
|
14446
|
+
* frames is the wrong question for a classifier that labels 1–3 frames
|
|
14447
|
+
* per episode. The count window is the brake that drops a single-frame
|
|
14448
|
+
* false positive; the rule's own `throttle` cooldown is the other. The
|
|
14449
|
+
* per-label confidence floor is the analyzer's (`classificationMinScore`,
|
|
14450
|
+
* per device) — a label only reaches this condition if the classifier was
|
|
14451
|
+
* already confident enough. `confirmHits: 1` restores first-frame fire.
|
|
14394
14452
|
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
14395
14453
|
* the condition: at least `hitPercent`% of the samples over
|
|
14396
14454
|
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
@@ -14417,14 +14475,22 @@ var NcOccupancyConditionSchema = object({
|
|
|
14417
14475
|
* an operator who typed `dog` mean the same thing.
|
|
14418
14476
|
*/
|
|
14419
14477
|
var NcAudioConditionSchema = object({
|
|
14420
|
-
/** LABEL MODE: audio macro labels. Present ⇒
|
|
14478
|
+
/** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
|
|
14421
14479
|
labels: array(string().min(1)).min(1).optional(),
|
|
14422
14480
|
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
14423
14481
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
14424
14482
|
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
14425
14483
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
14426
14484
|
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
14427
|
-
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
14485
|
+
samplingSeconds: number().int().min(1).max(300).default(10),
|
|
14486
|
+
/**
|
|
14487
|
+
* LABEL MODE: how many labelled frames must land inside
|
|
14488
|
+
* {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
|
|
14489
|
+
* Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
|
|
14490
|
+
*/
|
|
14491
|
+
confirmHits: number().int().min(1).max(20).optional(),
|
|
14492
|
+
/** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
|
|
14493
|
+
confirmWindowSec: number().int().min(1).max(60).optional()
|
|
14428
14494
|
});
|
|
14429
14495
|
/**
|
|
14430
14496
|
* Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
|
|
@@ -16798,6 +16864,46 @@ var RecentTracksPageSchema = object({
|
|
|
16798
16864
|
/** Cursor for the next page, or null when this page is the last. */
|
|
16799
16865
|
nextCursor: string().nullable()
|
|
16800
16866
|
});
|
|
16867
|
+
var LIST_GROUPS_DEFAULT_LIMIT = 40;
|
|
16868
|
+
var LIST_GROUPS_MAX_LIMIT = 100;
|
|
16869
|
+
var AnalyticsGroupRecordSchema = object({
|
|
16870
|
+
id: string(),
|
|
16871
|
+
deviceId: number().int(),
|
|
16872
|
+
openedAt: number().int(),
|
|
16873
|
+
closedAt: number().int(),
|
|
16874
|
+
timestamp: number().int(),
|
|
16875
|
+
memberCount: number().int(),
|
|
16876
|
+
memberTrackIds: array(string()).readonly(),
|
|
16877
|
+
className: string(),
|
|
16878
|
+
classes: array(string()).readonly(),
|
|
16879
|
+
/** Relative event-media path, or null when the group has no picture yet. */
|
|
16880
|
+
mediaUrl: string().nullable(),
|
|
16881
|
+
singleton: boolean()
|
|
16882
|
+
});
|
|
16883
|
+
var AnalyticsGroupMemberSchema = object({
|
|
16884
|
+
trackId: string(),
|
|
16885
|
+
deviceId: number().int(),
|
|
16886
|
+
className: string(),
|
|
16887
|
+
firstSeen: number().int(),
|
|
16888
|
+
lastSeen: number().int(),
|
|
16889
|
+
mediaUrl: string().nullable()
|
|
16890
|
+
});
|
|
16891
|
+
var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
|
|
16892
|
+
var ListGroupsQueryInput = object({
|
|
16893
|
+
/** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
|
|
16894
|
+
deviceIds: array(number()),
|
|
16895
|
+
/** Window lower bound on `closedAt` (inclusive). */
|
|
16896
|
+
since: number().optional(),
|
|
16897
|
+
/** Window upper bound on `openedAt` (inclusive). */
|
|
16898
|
+
until: number().optional(),
|
|
16899
|
+
limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
|
|
16900
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
16901
|
+
cursor: string().optional()
|
|
16902
|
+
});
|
|
16903
|
+
var ListGroupsPageSchema = object({
|
|
16904
|
+
groups: array(AnalyticsGroupRecordSchema).readonly(),
|
|
16905
|
+
nextCursor: string().nullable()
|
|
16906
|
+
});
|
|
16801
16907
|
var KeyEventQueryInput = object({
|
|
16802
16908
|
deviceId: number(),
|
|
16803
16909
|
/** Window lower bound (track firstSeen ≥ since). */
|
|
@@ -16873,7 +16979,9 @@ var TrackCascadeCountsSchema = object({
|
|
|
16873
16979
|
/** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
|
|
16874
16980
|
plates: number().int(),
|
|
16875
16981
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
16876
|
-
embeddings: number().int()
|
|
16982
|
+
embeddings: number().int(),
|
|
16983
|
+
/** Group membership + group rows removed with their last member (best-effort). */
|
|
16984
|
+
groups: number().int()
|
|
16877
16985
|
});
|
|
16878
16986
|
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
16879
16987
|
var DiskReconcileCountsSchema = object({
|
|
@@ -17019,7 +17127,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17019
17127
|
* stationary registry). Default false: the timeline lists passages,
|
|
17020
17128
|
* not parking records (operator decision, 2026-08-15). */
|
|
17021
17129
|
includeStationary: boolean().optional()
|
|
17022
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(
|
|
17130
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
|
|
17131
|
+
deviceId: number(),
|
|
17132
|
+
groupId: string().min(1)
|
|
17133
|
+
}), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
17023
17134
|
kind: "mutation",
|
|
17024
17135
|
auth: "admin"
|
|
17025
17136
|
}), 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({
|
|
@@ -17237,6 +17348,33 @@ var NativeCropRefSchema = object({
|
|
|
17237
17348
|
h: number()
|
|
17238
17349
|
})
|
|
17239
17350
|
});
|
|
17351
|
+
object({
|
|
17352
|
+
crop: object({
|
|
17353
|
+
left: number(),
|
|
17354
|
+
top: number(),
|
|
17355
|
+
width: number().positive(),
|
|
17356
|
+
height: number().positive()
|
|
17357
|
+
}).optional(),
|
|
17358
|
+
content: object({
|
|
17359
|
+
width: number().int().positive(),
|
|
17360
|
+
height: number().int().positive()
|
|
17361
|
+
}),
|
|
17362
|
+
fit: _enum(["stretch", "contain"]),
|
|
17363
|
+
format: _enum([
|
|
17364
|
+
"rgb",
|
|
17365
|
+
"gray",
|
|
17366
|
+
"jpeg"
|
|
17367
|
+
])
|
|
17368
|
+
});
|
|
17369
|
+
var FrameRefSchema = object({
|
|
17370
|
+
registryId: string().min(1),
|
|
17371
|
+
id: string().min(1),
|
|
17372
|
+
width: number().int().positive(),
|
|
17373
|
+
height: number().int().positive(),
|
|
17374
|
+
format: _enum(["rgb", "gray"]),
|
|
17375
|
+
timestamp: number(),
|
|
17376
|
+
capturedAt: number().optional()
|
|
17377
|
+
});
|
|
17240
17378
|
var ModelFormatSchema$1 = _enum([
|
|
17241
17379
|
"onnx",
|
|
17242
17380
|
"coreml",
|
|
@@ -17302,7 +17440,8 @@ var PipelineModelOptionSchema = object({
|
|
|
17302
17440
|
sizeMB: number()
|
|
17303
17441
|
})),
|
|
17304
17442
|
group: ModelVariantGroupSchema.optional(),
|
|
17305
|
-
legacy: boolean().optional()
|
|
17443
|
+
legacy: boolean().optional(),
|
|
17444
|
+
provider: ModelProviderIdSchema.optional()
|
|
17306
17445
|
});
|
|
17307
17446
|
var ConfigFieldBridge = custom();
|
|
17308
17447
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -17481,6 +17620,12 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
17481
17620
|
steps: array(PipelineStepInputSchema).min(1),
|
|
17482
17621
|
frame: FrameInputSchema.optional(),
|
|
17483
17622
|
/**
|
|
17623
|
+
* Process-local lazy frame. Valid only when caller and provider resolve
|
|
17624
|
+
* in the same execution-group process; split/cross-node callers use
|
|
17625
|
+
* `frame`/`image` inline compatibility instead.
|
|
17626
|
+
*/
|
|
17627
|
+
frameRef: FrameRefSchema.optional(),
|
|
17628
|
+
/**
|
|
17484
17629
|
* CB5 shm passthrough — a `FrameHandle` naming the same ring slot
|
|
17485
17630
|
* the decoded pixels live in. One more member of the one-of
|
|
17486
17631
|
* frame/frameHandle/image/imageBase64/referenceImage group.
|
|
@@ -17736,7 +17881,10 @@ var NativeCropResultSchema = object({
|
|
|
17736
17881
|
* Which source served this crop, so a quality-sensitive consumer (the native
|
|
17737
17882
|
* `keyFrame`) can reject a degraded fallback:
|
|
17738
17883
|
* - `native` — cut from the decode worker's retained NATIVE surface (the
|
|
17739
|
-
* quality path).
|
|
17884
|
+
* quality path). A subject-tile serve is also native-resolution and stays
|
|
17885
|
+
* `native` here: the public enum cannot name `tile` without a breaking cap
|
|
17886
|
+
* change. Runner telemetry distinguishes lease vs tile via `source` on the
|
|
17887
|
+
* internal crop result (`nativeHits` vs `tileHits`).
|
|
17740
17888
|
* - `ram-fullframe` — the native surface MISSED but the request was full-frame,
|
|
17741
17889
|
* so the ≤640 RAM `RetainedFrameStore` served it (honest lower-res; legit for
|
|
17742
17890
|
* the blank-frame guard / 640-snapshot resolve, NOT for the clean keyFrame).
|
|
@@ -18227,12 +18375,41 @@ var RunnerLocalLoadSchema = object({
|
|
|
18227
18375
|
* legacy `OrchestratorMetricsSchema` shape so existing dashboards keep
|
|
18228
18376
|
* working unchanged when they switch to reading from the runner cap.
|
|
18229
18377
|
*/
|
|
18378
|
+
var FrameLazyCountersSchema = object({
|
|
18379
|
+
framesDecoded: number(),
|
|
18380
|
+
framesAdmitted: number(),
|
|
18381
|
+
framesDroppedPixelFree: number(),
|
|
18382
|
+
viewsMaterialized: number(),
|
|
18383
|
+
viewsSkipped: number(),
|
|
18384
|
+
workerToRunnerBytes: number(),
|
|
18385
|
+
runnerToPoolRawBytes: number(),
|
|
18386
|
+
runnerToPoolJpegBytes: number(),
|
|
18387
|
+
onDemandFullFrameRequests: number(),
|
|
18388
|
+
onDemandCropRequests: number(),
|
|
18389
|
+
nativeHits: number(),
|
|
18390
|
+
nativeMisses: number(),
|
|
18391
|
+
tileHits: number(),
|
|
18392
|
+
tileMisses: number(),
|
|
18393
|
+
fallbackHits: number(),
|
|
18394
|
+
fallbackMisses: number(),
|
|
18395
|
+
retainedWritesAvoided: number(),
|
|
18396
|
+
residentRefs: number(),
|
|
18397
|
+
residentBytes: number(),
|
|
18398
|
+
releases: number(),
|
|
18399
|
+
evictions: number(),
|
|
18400
|
+
staleMisses: number()
|
|
18401
|
+
});
|
|
18402
|
+
var FrameLazyMetricsSchema = object({
|
|
18403
|
+
node: FrameLazyCountersSchema,
|
|
18404
|
+
cameras: array(FrameLazyCountersSchema.extend({ deviceId: number() }))
|
|
18405
|
+
});
|
|
18230
18406
|
var RunnerLocalMetricsSchema = object({
|
|
18231
18407
|
nodeId: string(),
|
|
18232
18408
|
activeCameras: number(),
|
|
18233
18409
|
throttledCameras: number(),
|
|
18234
18410
|
avgInferenceTimeMs: number(),
|
|
18235
|
-
queueDepth: number()
|
|
18411
|
+
queueDepth: number(),
|
|
18412
|
+
frameLazy: FrameLazyMetricsSchema.optional()
|
|
18236
18413
|
});
|
|
18237
18414
|
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({
|
|
18238
18415
|
handle: FrameHandleSchema,
|
|
@@ -19545,6 +19722,9 @@ method(_void(), ProviderInfoSchema), method(object({ config: record(string(), un
|
|
|
19545
19722
|
location: StorageLocationSchema,
|
|
19546
19723
|
relativePath: string()
|
|
19547
19724
|
}), _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" });
|
|
19725
|
+
/** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
|
|
19726
|
+
var ProfileSettingsSchemaBridge = unknown().nullable();
|
|
19727
|
+
var ProfileSettingsBagSchema = record(string(), unknown());
|
|
19548
19728
|
/**
|
|
19549
19729
|
* A live terminal session hosted by the provider addon. Output and input do
|
|
19550
19730
|
* NOT flow through the capability — they use the addon data plane
|
|
@@ -19574,7 +19754,14 @@ var TerminalSessionInfoSchema = object({
|
|
|
19574
19754
|
var TerminalProfileInfoSchema = object({
|
|
19575
19755
|
profileId: string(),
|
|
19576
19756
|
label: string(),
|
|
19577
|
-
description: string().optional()
|
|
19757
|
+
description: string().optional(),
|
|
19758
|
+
/** Spawn defaults the instance form copies on create. */
|
|
19759
|
+
executable: string().optional(),
|
|
19760
|
+
args: array(string()).readonly().optional(),
|
|
19761
|
+
cwd: string().optional(),
|
|
19762
|
+
environment: array(string()).readonly().optional(),
|
|
19763
|
+
/** ConfigUISchema for instance knobs, or null when the profile has none. */
|
|
19764
|
+
settingsSchema: ProfileSettingsSchemaBridge.optional()
|
|
19578
19765
|
});
|
|
19579
19766
|
/**
|
|
19580
19767
|
* A durable operator-created Terminal instance. Profiles are templates; only
|
|
@@ -19587,7 +19774,12 @@ var TerminalInstanceInfoSchema = object({
|
|
|
19587
19774
|
profileId: string(),
|
|
19588
19775
|
profileLabel: string(),
|
|
19589
19776
|
name: string(),
|
|
19590
|
-
enabled: boolean()
|
|
19777
|
+
enabled: boolean(),
|
|
19778
|
+
executable: string(),
|
|
19779
|
+
args: array(string()).readonly(),
|
|
19780
|
+
cwd: string(),
|
|
19781
|
+
environment: array(string()).readonly(),
|
|
19782
|
+
profileSettings: ProfileSettingsBagSchema
|
|
19591
19783
|
});
|
|
19592
19784
|
var TerminalLegacyCameraSchema = object({
|
|
19593
19785
|
stableId: string(),
|
|
@@ -19617,7 +19809,23 @@ var TerminalOutputBatchSchema = object({
|
|
|
19617
19809
|
method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalInstanceInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
19618
19810
|
targetNodeId: string().min(1),
|
|
19619
19811
|
profileId: string().min(1),
|
|
19620
|
-
name: string().trim().min(1).max(160).optional()
|
|
19812
|
+
name: string().trim().min(1).max(160).optional(),
|
|
19813
|
+
executable: string().max(1024).optional(),
|
|
19814
|
+
args: array(string().max(2048)).max(64).optional(),
|
|
19815
|
+
cwd: string().max(1024).optional(),
|
|
19816
|
+
environment: array(string().max(4096)).max(64).optional(),
|
|
19817
|
+
profileSettings: ProfileSettingsBagSchema.optional()
|
|
19818
|
+
}), TerminalInstanceInfoSchema, {
|
|
19819
|
+
kind: "mutation",
|
|
19820
|
+
auth: "admin"
|
|
19821
|
+
}), method(object({
|
|
19822
|
+
instanceId: string().min(1),
|
|
19823
|
+
name: string().trim().min(1).max(160).optional(),
|
|
19824
|
+
executable: string().max(1024).optional(),
|
|
19825
|
+
args: array(string().max(2048)).max(64).optional(),
|
|
19826
|
+
cwd: string().max(1024).optional(),
|
|
19827
|
+
environment: array(string().max(4096)).max(64).optional(),
|
|
19828
|
+
profileSettings: ProfileSettingsBagSchema.optional()
|
|
19621
19829
|
}), TerminalInstanceInfoSchema, {
|
|
19622
19830
|
kind: "mutation",
|
|
19623
19831
|
auth: "admin"
|
|
@@ -19639,7 +19847,11 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
|
|
|
19639
19847
|
}), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
19640
19848
|
profileId: string(),
|
|
19641
19849
|
cols: number().int().positive(),
|
|
19642
|
-
rows: number().int().positive()
|
|
19850
|
+
rows: number().int().positive(),
|
|
19851
|
+
executable: string().max(1024).optional(),
|
|
19852
|
+
args: array(string().max(2048)).max(64).optional(),
|
|
19853
|
+
cwd: string().max(1024).optional(),
|
|
19854
|
+
environment: array(string().max(4096)).max(64).optional()
|
|
19643
19855
|
}), TerminalSessionInfoSchema, {
|
|
19644
19856
|
kind: "mutation",
|
|
19645
19857
|
auth: "admin"
|
|
@@ -22421,10 +22633,10 @@ DeviceType.LawnMower, method(object({ deviceId: number().int().nonnegative() }),
|
|
|
22421
22633
|
*
|
|
22422
22634
|
* • The SDK (mobile / web client) consumes `getConnectionEndpoints()`
|
|
22423
22635
|
* to receive an ordered list of candidate base URLs it should race
|
|
22424
|
-
* on connect — LAN IPv4 first (lowest latency
|
|
22425
|
-
* then public hostname (if a tunnel is
|
|
22426
|
-
* race them with short timeouts and stick with the
|
|
22427
|
-
* session.
|
|
22636
|
+
* on connect — LAN IPv4 and stable LAN IPv6 first (lowest latency
|
|
22637
|
+
* when on the same network), then public hostname (if a tunnel is
|
|
22638
|
+
* up). The SDK can race them with short timeouts and stick with the
|
|
22639
|
+
* winner for the session.
|
|
22428
22640
|
*
|
|
22429
22641
|
* Why hub-only: agents are not directly addressable by the operator's
|
|
22430
22642
|
* clients — they reverse-connect to the hub. Exposing their interfaces
|
|
@@ -22579,6 +22791,17 @@ var NotificationEndpointSchema = object({
|
|
|
22579
22791
|
/** What the ranking currently resolves to (null when nothing is reachable). */
|
|
22580
22792
|
resolved: string().nullable()
|
|
22581
22793
|
});
|
|
22794
|
+
/**
|
|
22795
|
+
* The URLs the SDK / viewer should race for API access. `baseUrls` empty =
|
|
22796
|
+
* AUTO (every LAN IPv4 + the public tunnel). `resolved` is what that choice
|
|
22797
|
+
* currently expands to, so the UI can show the effective set either way.
|
|
22798
|
+
*/
|
|
22799
|
+
var ViewerEndpointsSchema = object({
|
|
22800
|
+
/** The operator's explicit race set, or empty for AUTO. */
|
|
22801
|
+
baseUrls: array(string()).readonly(),
|
|
22802
|
+
/** What the ranking currently resolves to (may be empty if nothing is up). */
|
|
22803
|
+
resolved: array(string()).readonly()
|
|
22804
|
+
});
|
|
22582
22805
|
var AllowedAddressesSchema = object({
|
|
22583
22806
|
/**
|
|
22584
22807
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -22587,6 +22810,20 @@ var AllowedAddressesSchema = object({
|
|
|
22587
22810
|
* Network Addresses admin page and persisted by the addon.
|
|
22588
22811
|
*/
|
|
22589
22812
|
addresses: array(string()).readonly() });
|
|
22813
|
+
var TlsStatusSchema = object({
|
|
22814
|
+
mode: _enum([
|
|
22815
|
+
"generated",
|
|
22816
|
+
"uploaded",
|
|
22817
|
+
"disabled"
|
|
22818
|
+
]),
|
|
22819
|
+
leafFingerprintSha256: string().nullable(),
|
|
22820
|
+
caFingerprintSha256: string().nullable(),
|
|
22821
|
+
validTo: string().nullable(),
|
|
22822
|
+
sans: array(string()),
|
|
22823
|
+
caCertPem: string().nullable(),
|
|
22824
|
+
reissueError: string().nullable(),
|
|
22825
|
+
restartRequired: boolean()
|
|
22826
|
+
});
|
|
22590
22827
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
22591
22828
|
/**
|
|
22592
22829
|
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
@@ -22596,17 +22833,31 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
22596
22833
|
*/
|
|
22597
22834
|
port: number().int().min(1).max(65535).optional(),
|
|
22598
22835
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
22599
|
-
* candidate. Default `
|
|
22836
|
+
* candidate. Default `false` — loopback is not a client route. */
|
|
22600
22837
|
includeLoopback: boolean().optional(),
|
|
22601
|
-
/** Skip IPv6 entries.
|
|
22602
|
-
*
|
|
22838
|
+
/** Skip IPv6 entries. Default `false` — the palette includes stable
|
|
22839
|
+
* LAN IPv6 (ICE/WebRTC uses dual-stack regardless). Pass `true` to
|
|
22840
|
+
* hide them. The viewer HTTP/WS race is `getViewerEndpoints`. */
|
|
22603
22841
|
ipv4Only: boolean().optional(),
|
|
22604
22842
|
/** Scheme to emit for LAN/loopback URLs. Default `'http'`.
|
|
22605
22843
|
* Pass `'https'` when the caller is itself loaded over HTTPS
|
|
22606
22844
|
* to avoid mixed-content blocks in the browser. The public
|
|
22607
22845
|
* tunnel always emits `https://` regardless. */
|
|
22608
22846
|
scheme: _enum(["http", "https"]).optional()
|
|
22609
|
-
}), 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" })
|
|
22847
|
+
}), 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, {
|
|
22848
|
+
kind: "mutation",
|
|
22849
|
+
auth: "admin"
|
|
22850
|
+
}), method(object({
|
|
22851
|
+
certPem: string().min(1),
|
|
22852
|
+
keyPem: string().min(1),
|
|
22853
|
+
caPem: string().optional()
|
|
22854
|
+
}), TlsStatusSchema, {
|
|
22855
|
+
kind: "mutation",
|
|
22856
|
+
auth: "admin"
|
|
22857
|
+
}), method(_void(), object({ pem: string() })), method(_void(), TlsStatusSchema, {
|
|
22858
|
+
kind: "mutation",
|
|
22859
|
+
auth: "admin"
|
|
22860
|
+
});
|
|
22610
22861
|
object({
|
|
22611
22862
|
/** Lifecycle state of the lock. `jammed` means the motor reported
|
|
22612
22863
|
* failure to reach the target — operator intervention required. */
|
|
@@ -23787,7 +24038,12 @@ var PlateInfoSchema = object({
|
|
|
23787
24038
|
plateBbox: BoundingBoxSchema.optional(),
|
|
23788
24039
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
23789
24040
|
keyFrameMediaKey: string().optional(),
|
|
23790
|
-
base64: string().optional()
|
|
24041
|
+
base64: string().optional(),
|
|
24042
|
+
/**
|
|
24043
|
+
* Same crop as a data-plane URL. `getPlateByTrack` returns this and
|
|
24044
|
+
* never inlines JPEG; `listPlates` still inlines for the admin-ui.
|
|
24045
|
+
*/
|
|
24046
|
+
cropUrl: string().optional()
|
|
23791
24047
|
});
|
|
23792
24048
|
var MediaFileLiteSchema = object({
|
|
23793
24049
|
key: string(),
|
|
@@ -27427,6 +27683,12 @@ Object.freeze({
|
|
|
27427
27683
|
addonId: null,
|
|
27428
27684
|
access: "view"
|
|
27429
27685
|
},
|
|
27686
|
+
"deviceManager.getBindingsBatch": {
|
|
27687
|
+
capName: "device-manager",
|
|
27688
|
+
capScope: "system",
|
|
27689
|
+
addonId: null,
|
|
27690
|
+
access: "view"
|
|
27691
|
+
},
|
|
27430
27692
|
"deviceManager.getChildren": {
|
|
27431
27693
|
capName: "device-manager",
|
|
27432
27694
|
capScope: "system",
|
|
@@ -27487,6 +27749,12 @@ Object.freeze({
|
|
|
27487
27749
|
addonId: null,
|
|
27488
27750
|
access: "view"
|
|
27489
27751
|
},
|
|
27752
|
+
"deviceManager.getLinkedDevicesBatch": {
|
|
27753
|
+
capName: "device-manager",
|
|
27754
|
+
capScope: "system",
|
|
27755
|
+
addonId: null,
|
|
27756
|
+
access: "view"
|
|
27757
|
+
},
|
|
27490
27758
|
"deviceManager.getRoleDisplayDefaults": {
|
|
27491
27759
|
capName: "device-manager",
|
|
27492
27760
|
capScope: "system",
|
|
@@ -28369,6 +28637,12 @@ Object.freeze({
|
|
|
28369
28637
|
addonId: null,
|
|
28370
28638
|
access: "create"
|
|
28371
28639
|
},
|
|
28640
|
+
"localNetwork.downloadCa": {
|
|
28641
|
+
capName: "local-network",
|
|
28642
|
+
capScope: "system",
|
|
28643
|
+
addonId: null,
|
|
28644
|
+
access: "view"
|
|
28645
|
+
},
|
|
28372
28646
|
"localNetwork.getAllowedAddresses": {
|
|
28373
28647
|
capName: "local-network",
|
|
28374
28648
|
capScope: "system",
|
|
@@ -28393,18 +28667,42 @@ Object.freeze({
|
|
|
28393
28667
|
addonId: null,
|
|
28394
28668
|
access: "view"
|
|
28395
28669
|
},
|
|
28670
|
+
"localNetwork.getTlsStatus": {
|
|
28671
|
+
capName: "local-network",
|
|
28672
|
+
capScope: "system",
|
|
28673
|
+
addonId: null,
|
|
28674
|
+
access: "view"
|
|
28675
|
+
},
|
|
28676
|
+
"localNetwork.getViewerEndpoints": {
|
|
28677
|
+
capName: "local-network",
|
|
28678
|
+
capScope: "system",
|
|
28679
|
+
addonId: null,
|
|
28680
|
+
access: "view"
|
|
28681
|
+
},
|
|
28396
28682
|
"localNetwork.list": {
|
|
28397
28683
|
capName: "local-network",
|
|
28398
28684
|
capScope: "system",
|
|
28399
28685
|
addonId: null,
|
|
28400
28686
|
access: "view"
|
|
28401
28687
|
},
|
|
28688
|
+
"localNetwork.regenerateCertificate": {
|
|
28689
|
+
capName: "local-network",
|
|
28690
|
+
capScope: "system",
|
|
28691
|
+
addonId: null,
|
|
28692
|
+
access: "create"
|
|
28693
|
+
},
|
|
28402
28694
|
"localNetwork.resetAllowlistToBestMatch": {
|
|
28403
28695
|
capName: "local-network",
|
|
28404
28696
|
capScope: "system",
|
|
28405
28697
|
addonId: null,
|
|
28406
28698
|
access: "delete"
|
|
28407
28699
|
},
|
|
28700
|
+
"localNetwork.revertToGeneratedCertificate": {
|
|
28701
|
+
capName: "local-network",
|
|
28702
|
+
capScope: "system",
|
|
28703
|
+
addonId: null,
|
|
28704
|
+
access: "create"
|
|
28705
|
+
},
|
|
28408
28706
|
"localNetwork.setAllowedAddresses": {
|
|
28409
28707
|
capName: "local-network",
|
|
28410
28708
|
capScope: "system",
|
|
@@ -28417,6 +28715,18 @@ Object.freeze({
|
|
|
28417
28715
|
addonId: null,
|
|
28418
28716
|
access: "create"
|
|
28419
28717
|
},
|
|
28718
|
+
"localNetwork.setViewerEndpoints": {
|
|
28719
|
+
capName: "local-network",
|
|
28720
|
+
capScope: "system",
|
|
28721
|
+
addonId: null,
|
|
28722
|
+
access: "create"
|
|
28723
|
+
},
|
|
28724
|
+
"localNetwork.uploadCertificate": {
|
|
28725
|
+
capName: "local-network",
|
|
28726
|
+
capScope: "system",
|
|
28727
|
+
addonId: null,
|
|
28728
|
+
access: "create"
|
|
28729
|
+
},
|
|
28420
28730
|
"lockControl.lock": {
|
|
28421
28731
|
capName: "lock-control",
|
|
28422
28732
|
capScope: "device",
|
|
@@ -29215,6 +29525,12 @@ Object.freeze({
|
|
|
29215
29525
|
addonId: null,
|
|
29216
29526
|
access: "view"
|
|
29217
29527
|
},
|
|
29528
|
+
"pipelineAnalytics.getGroup": {
|
|
29529
|
+
capName: "pipeline-analytics",
|
|
29530
|
+
capScope: "device",
|
|
29531
|
+
addonId: null,
|
|
29532
|
+
access: "view"
|
|
29533
|
+
},
|
|
29218
29534
|
"pipelineAnalytics.getKeyEvents": {
|
|
29219
29535
|
capName: "pipeline-analytics",
|
|
29220
29536
|
capScope: "device",
|
|
@@ -29299,6 +29615,12 @@ Object.freeze({
|
|
|
29299
29615
|
addonId: null,
|
|
29300
29616
|
access: "view"
|
|
29301
29617
|
},
|
|
29618
|
+
"pipelineAnalytics.listGroups": {
|
|
29619
|
+
capName: "pipeline-analytics",
|
|
29620
|
+
capScope: "device",
|
|
29621
|
+
addonId: null,
|
|
29622
|
+
access: "view"
|
|
29623
|
+
},
|
|
29302
29624
|
"pipelineAnalytics.listOpsLog": {
|
|
29303
29625
|
capName: "pipeline-analytics",
|
|
29304
29626
|
capScope: "device",
|
|
@@ -31297,6 +31619,12 @@ Object.freeze({
|
|
|
31297
31619
|
addonId: null,
|
|
31298
31620
|
access: "create"
|
|
31299
31621
|
},
|
|
31622
|
+
"terminalSession.updateInstance": {
|
|
31623
|
+
capName: "terminal-session",
|
|
31624
|
+
capScope: "system",
|
|
31625
|
+
addonId: null,
|
|
31626
|
+
access: "create"
|
|
31627
|
+
},
|
|
31300
31628
|
"terminalSession.writeInput": {
|
|
31301
31629
|
capName: "terminal-session",
|
|
31302
31630
|
capScope: "system",
|
|
@@ -32074,6 +32402,11 @@ Object.freeze({
|
|
|
32074
32402
|
form: "single",
|
|
32075
32403
|
optional: false
|
|
32076
32404
|
}],
|
|
32405
|
+
"deviceManager.getBindingsBatch": [{
|
|
32406
|
+
name: "deviceIds",
|
|
32407
|
+
form: "array",
|
|
32408
|
+
optional: false
|
|
32409
|
+
}],
|
|
32077
32410
|
"deviceManager.getChildren": [{
|
|
32078
32411
|
name: "parentDeviceId",
|
|
32079
32412
|
form: "single",
|
|
@@ -32119,6 +32452,11 @@ Object.freeze({
|
|
|
32119
32452
|
form: "single",
|
|
32120
32453
|
optional: false
|
|
32121
32454
|
}],
|
|
32455
|
+
"deviceManager.getLinkedDevicesBatch": [{
|
|
32456
|
+
name: "deviceIds",
|
|
32457
|
+
form: "array",
|
|
32458
|
+
optional: false
|
|
32459
|
+
}],
|
|
32122
32460
|
"deviceManager.getSettingsSchema": [{
|
|
32123
32461
|
name: "deviceId",
|
|
32124
32462
|
form: "single",
|
|
@@ -32139,6 +32477,11 @@ Object.freeze({
|
|
|
32139
32477
|
form: "single",
|
|
32140
32478
|
optional: false
|
|
32141
32479
|
}],
|
|
32480
|
+
"deviceManager.listAll": [{
|
|
32481
|
+
name: "deviceIds",
|
|
32482
|
+
form: "array",
|
|
32483
|
+
optional: true
|
|
32484
|
+
}],
|
|
32142
32485
|
"deviceManager.loadConfig": [{
|
|
32143
32486
|
name: "deviceId",
|
|
32144
32487
|
form: "single",
|
|
@@ -32712,6 +33055,11 @@ Object.freeze({
|
|
|
32712
33055
|
form: "single",
|
|
32713
33056
|
optional: false
|
|
32714
33057
|
}],
|
|
33058
|
+
"pipelineAnalytics.getGroup": [{
|
|
33059
|
+
name: "deviceId",
|
|
33060
|
+
form: "single",
|
|
33061
|
+
optional: false
|
|
33062
|
+
}],
|
|
32715
33063
|
"pipelineAnalytics.getKeyEvents": [{
|
|
32716
33064
|
name: "deviceId",
|
|
32717
33065
|
form: "single",
|
|
@@ -32767,6 +33115,11 @@ Object.freeze({
|
|
|
32767
33115
|
form: "array",
|
|
32768
33116
|
optional: false
|
|
32769
33117
|
}],
|
|
33118
|
+
"pipelineAnalytics.listGroups": [{
|
|
33119
|
+
name: "deviceIds",
|
|
33120
|
+
form: "array",
|
|
33121
|
+
optional: false
|
|
33122
|
+
}],
|
|
32770
33123
|
"pipelineAnalytics.listOpsLog": [{
|
|
32771
33124
|
name: "deviceId",
|
|
32772
33125
|
form: "single",
|
|
@@ -33784,6 +34137,35 @@ Object.freeze(Object.fromEntries([{
|
|
|
33784
34137
|
}]
|
|
33785
34138
|
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
33786
34139
|
string().min(1);
|
|
34140
|
+
var CLUSTER_STEP_SETTING_FIELDS = [{
|
|
34141
|
+
stepId: "face-embedding",
|
|
34142
|
+
key: "minLandmarkFaceSize",
|
|
34143
|
+
label: "Min face size for recognition (detection px)",
|
|
34144
|
+
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.",
|
|
34145
|
+
type: "slider",
|
|
34146
|
+
min: 0,
|
|
34147
|
+
max: 64,
|
|
34148
|
+
step: 2,
|
|
34149
|
+
default: 24
|
|
34150
|
+
}];
|
|
34151
|
+
function clusterStepSettingKey(stepId, fieldKey) {
|
|
34152
|
+
return `clusterStepSetting:${stepId}:${fieldKey}`;
|
|
34153
|
+
}
|
|
34154
|
+
var ClusterSettingNumberSchema = number().finite();
|
|
34155
|
+
function readClusterStepSettings(config) {
|
|
34156
|
+
const out = {};
|
|
34157
|
+
for (const field of CLUSTER_STEP_SETTING_FIELDS) {
|
|
34158
|
+
const parsed = ClusterSettingNumberSchema.safeParse(config[clusterStepSettingKey(field.stepId, field.key)]);
|
|
34159
|
+
const value = parsed.success ? parsed.data : field.default;
|
|
34160
|
+
const existing = out[field.stepId] ?? {};
|
|
34161
|
+
out[field.stepId] = {
|
|
34162
|
+
...existing,
|
|
34163
|
+
[field.key]: value
|
|
34164
|
+
};
|
|
34165
|
+
}
|
|
34166
|
+
return out;
|
|
34167
|
+
}
|
|
34168
|
+
readClusterStepSettings({});
|
|
33787
34169
|
object({
|
|
33788
34170
|
/**
|
|
33789
34171
|
* Fraction of the box's own size added on EACH side before cutting.
|