@camstack/addon-provider-tuya 0.2.26 → 0.2.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +432 -50
- package/dist/addon.mjs +432 -50
- package/package.json +1 -1
package/dist/addon.mjs
CHANGED
|
@@ -6620,6 +6620,13 @@ var BaseAddon = class {
|
|
|
6620
6620
|
_readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
|
|
6621
6621
|
/** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
|
|
6622
6622
|
_registeredCapNames = [];
|
|
6623
|
+
/**
|
|
6624
|
+
* True only after `readAddonStore` actually answered. Constructor
|
|
6625
|
+
* defaults look like stored config when the store is down — a forked
|
|
6626
|
+
* addon that auto-starts from those defaults (cloudflare-tunnel quick
|
|
6627
|
+
* mode, 2026-08-25) is not "the operator chose this".
|
|
6628
|
+
*/
|
|
6629
|
+
settingsStoreReady = false;
|
|
6623
6630
|
/** Default config values. Provided via constructor. */
|
|
6624
6631
|
defaults;
|
|
6625
6632
|
constructor(defaults) {
|
|
@@ -7020,7 +7027,9 @@ var BaseAddon = class {
|
|
|
7020
7027
|
];
|
|
7021
7028
|
let lastErr;
|
|
7022
7029
|
for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
|
|
7023
|
-
|
|
7030
|
+
const stored = await settings.readAddonStore() ?? {};
|
|
7031
|
+
this.settingsStoreReady = true;
|
|
7032
|
+
return stored;
|
|
7024
7033
|
} catch (err) {
|
|
7025
7034
|
lastErr = err;
|
|
7026
7035
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -7028,6 +7037,7 @@ var BaseAddon = class {
|
|
|
7028
7037
|
if (attempt === delaysMs.length) break;
|
|
7029
7038
|
await new Promise((r) => setTimeout(r, delaysMs[attempt]));
|
|
7030
7039
|
}
|
|
7040
|
+
this.settingsStoreReady = false;
|
|
7031
7041
|
this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
|
|
7032
7042
|
return {};
|
|
7033
7043
|
}
|
|
@@ -8839,6 +8849,15 @@ var LabelDefinitionSchema = object({
|
|
|
8839
8849
|
description: string().optional(),
|
|
8840
8850
|
icon: string().optional()
|
|
8841
8851
|
});
|
|
8852
|
+
var ClassMapDefinitionSchema = object({
|
|
8853
|
+
mapping: record(string(), _enum([
|
|
8854
|
+
"person",
|
|
8855
|
+
"vehicle",
|
|
8856
|
+
"animal",
|
|
8857
|
+
"package"
|
|
8858
|
+
])),
|
|
8859
|
+
preserveOriginal: boolean()
|
|
8860
|
+
});
|
|
8842
8861
|
var MODEL_FORMATS = [
|
|
8843
8862
|
"onnx",
|
|
8844
8863
|
"coreml",
|
|
@@ -8922,6 +8941,12 @@ var ModelVariantGroupSchema = object({
|
|
|
8922
8941
|
*/
|
|
8923
8942
|
resolution: number().int().positive().optional()
|
|
8924
8943
|
});
|
|
8944
|
+
var ModelProviderIdSchema = _enum([
|
|
8945
|
+
"camstack",
|
|
8946
|
+
"frigate",
|
|
8947
|
+
"scrypted",
|
|
8948
|
+
"custom"
|
|
8949
|
+
]);
|
|
8925
8950
|
var ModelCatalogEntrySchema = object({
|
|
8926
8951
|
id: string(),
|
|
8927
8952
|
name: string(),
|
|
@@ -9017,7 +9042,19 @@ var ModelCatalogEntrySchema = object({
|
|
|
9017
9042
|
* `id` stays the source of truth for resolution/download/persistence; grouping
|
|
9018
9043
|
* is a presentation overlay resolved back to an `id`.
|
|
9019
9044
|
*/
|
|
9020
|
-
group: ModelVariantGroupSchema.optional()
|
|
9045
|
+
group: ModelVariantGroupSchema.optional(),
|
|
9046
|
+
/**
|
|
9047
|
+
* Catalog source for the pipeline stepper's provider-first picker. Absent on
|
|
9048
|
+
* built-in CamStack entries (treated as `camstack`) and on registry rows
|
|
9049
|
+
* persisted before this field existed (`inferModelProvider` fills those).
|
|
9050
|
+
*/
|
|
9051
|
+
provider: ModelProviderIdSchema.optional(),
|
|
9052
|
+
/**
|
|
9053
|
+
* Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
|
|
9054
|
+
* applies (Frigate / COCO public catalog). Set on a custom model whose raw
|
|
9055
|
+
* labels already ARE the CamStack macros (Scrypted identity map).
|
|
9056
|
+
*/
|
|
9057
|
+
classMap: ClassMapDefinitionSchema.optional()
|
|
9021
9058
|
});
|
|
9022
9059
|
var ConvertTargetSchema = discriminatedUnion("format", [object({
|
|
9023
9060
|
format: literal("openvino"),
|
|
@@ -9046,7 +9083,8 @@ var ModelConvertMetadataSchema = object({
|
|
|
9046
9083
|
"ocr",
|
|
9047
9084
|
"segmentation"
|
|
9048
9085
|
]),
|
|
9049
|
-
faceAlignment: boolean().optional()
|
|
9086
|
+
faceAlignment: boolean().optional(),
|
|
9087
|
+
classMap: ClassMapDefinitionSchema.optional()
|
|
9050
9088
|
});
|
|
9051
9089
|
var ConvertResultSchema = object({
|
|
9052
9090
|
entry: ModelCatalogEntrySchema,
|
|
@@ -12820,6 +12858,27 @@ var LinkedDeviceSchema = object({
|
|
|
12820
12858
|
features: array(string()),
|
|
12821
12859
|
producesTrackedEvents: boolean().optional()
|
|
12822
12860
|
});
|
|
12861
|
+
/** One camera's resolved linked set, tagged with the camera it belongs to.
|
|
12862
|
+
* The batch answer needs the tag; the single-device answer already has it
|
|
12863
|
+
* from the input, which is why `getLinkedDevices` keeps the untagged shape. */
|
|
12864
|
+
var LinkedDevicesForDeviceSchema = object({
|
|
12865
|
+
deviceId: number(),
|
|
12866
|
+
mode: LinkedDevicesModeSchema,
|
|
12867
|
+
devices: array(LinkedDeviceSchema)
|
|
12868
|
+
});
|
|
12869
|
+
/** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
|
|
12870
|
+
* `getAllBindings` all answer in. Declared once: three copies of the same
|
|
12871
|
+
* object literal is exactly how the three drift apart. */
|
|
12872
|
+
var DeviceBindingsForDeviceSchema = object({
|
|
12873
|
+
deviceId: number(),
|
|
12874
|
+
entries: array(object({
|
|
12875
|
+
capName: string(),
|
|
12876
|
+
kind: _enum(["native", "wrapped"]),
|
|
12877
|
+
providerAddonId: string(),
|
|
12878
|
+
providerNodeId: string(),
|
|
12879
|
+
nativeAddonId: string()
|
|
12880
|
+
}))
|
|
12881
|
+
});
|
|
12823
12882
|
var SavedDeviceRowSchema = object({
|
|
12824
12883
|
/** Numeric id reserved at allocateDeviceId time. */
|
|
12825
12884
|
id: number(),
|
|
@@ -13045,11 +13104,25 @@ method(object({
|
|
|
13045
13104
|
projection: _enum(["full", "slim"]).optional(),
|
|
13046
13105
|
/** Return only camera devices. Filtering server-side instead of
|
|
13047
13106
|
* shipping 293 rows to find 12. */
|
|
13048
|
-
isCamera: boolean().optional()
|
|
13107
|
+
isCamera: boolean().optional(),
|
|
13108
|
+
/**
|
|
13109
|
+
* Return only these device ids. For the caller that already KNOWS the
|
|
13110
|
+
* handful it wants and needs a field the id-bearing answer does not
|
|
13111
|
+
* carry — the viewer's linked-devices panel joins `type` and `online`
|
|
13112
|
+
* onto ~8 linked ids and, unfiltered, dragged the fleet across to do
|
|
13113
|
+
* it: 433 KB slim / 958 KB full for 967 devices, on a query that
|
|
13114
|
+
* refetches on the reconcile interval, on a phone.
|
|
13115
|
+
*
|
|
13116
|
+
* Safe to send at a hub that predates it: Zod STRIPS unknown input
|
|
13117
|
+
* keys rather than rejecting them (verified against the live hub
|
|
13118
|
+
* 2026-08-25 — 967 rows came back), so an old hub answers exactly what
|
|
13119
|
+
* it answers today and the caller filters as it already does.
|
|
13120
|
+
*/
|
|
13121
|
+
deviceIds: array(number()).optional()
|
|
13049
13122
|
}), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
|
|
13050
13123
|
mode: LinkedDevicesModeSchema,
|
|
13051
13124
|
devices: array(LinkedDeviceSchema)
|
|
13052
|
-
})), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
13125
|
+
})), 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({
|
|
13053
13126
|
deviceId: number(),
|
|
13054
13127
|
values: record(string(), unknown())
|
|
13055
13128
|
}), object({ success: literal(true) }), {
|
|
@@ -13076,25 +13149,7 @@ method(object({
|
|
|
13076
13149
|
}), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
|
|
13077
13150
|
kind: "mutation",
|
|
13078
13151
|
auth: "admin"
|
|
13079
|
-
}), method(object({ deviceId: number() }), object({
|
|
13080
|
-
deviceId: number(),
|
|
13081
|
-
entries: array(object({
|
|
13082
|
-
capName: string(),
|
|
13083
|
-
kind: _enum(["native", "wrapped"]),
|
|
13084
|
-
providerAddonId: string(),
|
|
13085
|
-
providerNodeId: string(),
|
|
13086
|
-
nativeAddonId: string()
|
|
13087
|
-
}))
|
|
13088
|
-
})), method(object({}), array(object({
|
|
13089
|
-
deviceId: number(),
|
|
13090
|
-
entries: array(object({
|
|
13091
|
-
capName: string(),
|
|
13092
|
-
kind: _enum(["native", "wrapped"]),
|
|
13093
|
-
providerAddonId: string(),
|
|
13094
|
-
providerNodeId: string(),
|
|
13095
|
-
nativeAddonId: string()
|
|
13096
|
-
}))
|
|
13097
|
-
}))), method(object({
|
|
13152
|
+
}), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
|
|
13098
13153
|
deviceId: number(),
|
|
13099
13154
|
capName: string(),
|
|
13100
13155
|
wrapperAddonId: string(),
|
|
@@ -15504,12 +15559,15 @@ var NcOccupancyConditionSchema = object({
|
|
|
15504
15559
|
* there is no second switch that can disagree with the first and every rule
|
|
15505
15560
|
* authored before the decision migrates for free (`audioModeOf`):
|
|
15506
15561
|
*
|
|
15507
|
-
* - **LABEL mode — `labels` present.** The rule fires
|
|
15508
|
-
*
|
|
15509
|
-
* `hitPercent` and `samplingSeconds` are ignored
|
|
15510
|
-
*
|
|
15511
|
-
*
|
|
15512
|
-
*
|
|
15562
|
+
* - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
|
|
15563
|
+
* labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
|
|
15564
|
+
* `hitPercent` and `samplingSeconds` are still ignored — a percentage of
|
|
15565
|
+
* frames is the wrong question for a classifier that labels 1–3 frames
|
|
15566
|
+
* per episode. The count window is the brake that drops a single-frame
|
|
15567
|
+
* false positive; the rule's own `throttle` cooldown is the other. The
|
|
15568
|
+
* per-label confidence floor is the analyzer's (`classificationMinScore`,
|
|
15569
|
+
* per device) — a label only reaches this condition if the classifier was
|
|
15570
|
+
* already confident enough. `confirmHits: 1` restores first-frame fire.
|
|
15513
15571
|
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
15514
15572
|
* the condition: at least `hitPercent`% of the samples over
|
|
15515
15573
|
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
@@ -15536,14 +15594,22 @@ var NcOccupancyConditionSchema = object({
|
|
|
15536
15594
|
* an operator who typed `dog` mean the same thing.
|
|
15537
15595
|
*/
|
|
15538
15596
|
var NcAudioConditionSchema = object({
|
|
15539
|
-
/** LABEL MODE: audio macro labels. Present ⇒
|
|
15597
|
+
/** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
|
|
15540
15598
|
labels: array(string().min(1)).min(1).optional(),
|
|
15541
15599
|
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
15542
15600
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
15543
15601
|
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
15544
15602
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
15545
15603
|
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
15546
|
-
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
15604
|
+
samplingSeconds: number().int().min(1).max(300).default(10),
|
|
15605
|
+
/**
|
|
15606
|
+
* LABEL MODE: how many labelled frames must land inside
|
|
15607
|
+
* {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
|
|
15608
|
+
* Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
|
|
15609
|
+
*/
|
|
15610
|
+
confirmHits: number().int().min(1).max(20).optional(),
|
|
15611
|
+
/** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
|
|
15612
|
+
confirmWindowSec: number().int().min(1).max(60).optional()
|
|
15547
15613
|
});
|
|
15548
15614
|
/**
|
|
15549
15615
|
* Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
|
|
@@ -17917,6 +17983,46 @@ var RecentTracksPageSchema = object({
|
|
|
17917
17983
|
/** Cursor for the next page, or null when this page is the last. */
|
|
17918
17984
|
nextCursor: string().nullable()
|
|
17919
17985
|
});
|
|
17986
|
+
var LIST_GROUPS_DEFAULT_LIMIT = 40;
|
|
17987
|
+
var LIST_GROUPS_MAX_LIMIT = 100;
|
|
17988
|
+
var AnalyticsGroupRecordSchema = object({
|
|
17989
|
+
id: string(),
|
|
17990
|
+
deviceId: number().int(),
|
|
17991
|
+
openedAt: number().int(),
|
|
17992
|
+
closedAt: number().int(),
|
|
17993
|
+
timestamp: number().int(),
|
|
17994
|
+
memberCount: number().int(),
|
|
17995
|
+
memberTrackIds: array(string()).readonly(),
|
|
17996
|
+
className: string(),
|
|
17997
|
+
classes: array(string()).readonly(),
|
|
17998
|
+
/** Relative event-media path, or null when the group has no picture yet. */
|
|
17999
|
+
mediaUrl: string().nullable(),
|
|
18000
|
+
singleton: boolean()
|
|
18001
|
+
});
|
|
18002
|
+
var AnalyticsGroupMemberSchema = object({
|
|
18003
|
+
trackId: string(),
|
|
18004
|
+
deviceId: number().int(),
|
|
18005
|
+
className: string(),
|
|
18006
|
+
firstSeen: number().int(),
|
|
18007
|
+
lastSeen: number().int(),
|
|
18008
|
+
mediaUrl: string().nullable()
|
|
18009
|
+
});
|
|
18010
|
+
var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
|
|
18011
|
+
var ListGroupsQueryInput = object({
|
|
18012
|
+
/** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
|
|
18013
|
+
deviceIds: array(number()),
|
|
18014
|
+
/** Window lower bound on `closedAt` (inclusive). */
|
|
18015
|
+
since: number().optional(),
|
|
18016
|
+
/** Window upper bound on `openedAt` (inclusive). */
|
|
18017
|
+
until: number().optional(),
|
|
18018
|
+
limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
|
|
18019
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
18020
|
+
cursor: string().optional()
|
|
18021
|
+
});
|
|
18022
|
+
var ListGroupsPageSchema = object({
|
|
18023
|
+
groups: array(AnalyticsGroupRecordSchema).readonly(),
|
|
18024
|
+
nextCursor: string().nullable()
|
|
18025
|
+
});
|
|
17920
18026
|
var KeyEventQueryInput = object({
|
|
17921
18027
|
deviceId: number(),
|
|
17922
18028
|
/** Window lower bound (track firstSeen ≥ since). */
|
|
@@ -17992,7 +18098,9 @@ var TrackCascadeCountsSchema = object({
|
|
|
17992
18098
|
/** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
|
|
17993
18099
|
plates: number().int(),
|
|
17994
18100
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
17995
|
-
embeddings: number().int()
|
|
18101
|
+
embeddings: number().int(),
|
|
18102
|
+
/** Group membership + group rows removed with their last member (best-effort). */
|
|
18103
|
+
groups: number().int()
|
|
17996
18104
|
});
|
|
17997
18105
|
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
17998
18106
|
var DiskReconcileCountsSchema = object({
|
|
@@ -18138,7 +18246,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18138
18246
|
* stationary registry). Default false: the timeline lists passages,
|
|
18139
18247
|
* not parking records (operator decision, 2026-08-15). */
|
|
18140
18248
|
includeStationary: boolean().optional()
|
|
18141
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(
|
|
18249
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
|
|
18250
|
+
deviceId: number(),
|
|
18251
|
+
groupId: string().min(1)
|
|
18252
|
+
}), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
18142
18253
|
kind: "mutation",
|
|
18143
18254
|
auth: "admin"
|
|
18144
18255
|
}), 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({
|
|
@@ -18356,6 +18467,33 @@ var NativeCropRefSchema = object({
|
|
|
18356
18467
|
h: number()
|
|
18357
18468
|
})
|
|
18358
18469
|
});
|
|
18470
|
+
object({
|
|
18471
|
+
crop: object({
|
|
18472
|
+
left: number(),
|
|
18473
|
+
top: number(),
|
|
18474
|
+
width: number().positive(),
|
|
18475
|
+
height: number().positive()
|
|
18476
|
+
}).optional(),
|
|
18477
|
+
content: object({
|
|
18478
|
+
width: number().int().positive(),
|
|
18479
|
+
height: number().int().positive()
|
|
18480
|
+
}),
|
|
18481
|
+
fit: _enum(["stretch", "contain"]),
|
|
18482
|
+
format: _enum([
|
|
18483
|
+
"rgb",
|
|
18484
|
+
"gray",
|
|
18485
|
+
"jpeg"
|
|
18486
|
+
])
|
|
18487
|
+
});
|
|
18488
|
+
var FrameRefSchema = object({
|
|
18489
|
+
registryId: string().min(1),
|
|
18490
|
+
id: string().min(1),
|
|
18491
|
+
width: number().int().positive(),
|
|
18492
|
+
height: number().int().positive(),
|
|
18493
|
+
format: _enum(["rgb", "gray"]),
|
|
18494
|
+
timestamp: number(),
|
|
18495
|
+
capturedAt: number().optional()
|
|
18496
|
+
});
|
|
18359
18497
|
var ModelFormatSchema$1 = _enum([
|
|
18360
18498
|
"onnx",
|
|
18361
18499
|
"coreml",
|
|
@@ -18421,7 +18559,8 @@ var PipelineModelOptionSchema = object({
|
|
|
18421
18559
|
sizeMB: number()
|
|
18422
18560
|
})),
|
|
18423
18561
|
group: ModelVariantGroupSchema.optional(),
|
|
18424
|
-
legacy: boolean().optional()
|
|
18562
|
+
legacy: boolean().optional(),
|
|
18563
|
+
provider: ModelProviderIdSchema.optional()
|
|
18425
18564
|
});
|
|
18426
18565
|
var ConfigFieldBridge = custom();
|
|
18427
18566
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -18600,6 +18739,12 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
18600
18739
|
steps: array(PipelineStepInputSchema).min(1),
|
|
18601
18740
|
frame: FrameInputSchema.optional(),
|
|
18602
18741
|
/**
|
|
18742
|
+
* Process-local lazy frame. Valid only when caller and provider resolve
|
|
18743
|
+
* in the same execution-group process; split/cross-node callers use
|
|
18744
|
+
* `frame`/`image` inline compatibility instead.
|
|
18745
|
+
*/
|
|
18746
|
+
frameRef: FrameRefSchema.optional(),
|
|
18747
|
+
/**
|
|
18603
18748
|
* CB5 shm passthrough — a `FrameHandle` naming the same ring slot
|
|
18604
18749
|
* the decoded pixels live in. One more member of the one-of
|
|
18605
18750
|
* frame/frameHandle/image/imageBase64/referenceImage group.
|
|
@@ -18895,7 +19040,10 @@ var NativeCropResultSchema = object({
|
|
|
18895
19040
|
* Which source served this crop, so a quality-sensitive consumer (the native
|
|
18896
19041
|
* `keyFrame`) can reject a degraded fallback:
|
|
18897
19042
|
* - `native` — cut from the decode worker's retained NATIVE surface (the
|
|
18898
|
-
* quality path).
|
|
19043
|
+
* quality path). A subject-tile serve is also native-resolution and stays
|
|
19044
|
+
* `native` here: the public enum cannot name `tile` without a breaking cap
|
|
19045
|
+
* change. Runner telemetry distinguishes lease vs tile via `source` on the
|
|
19046
|
+
* internal crop result (`nativeHits` vs `tileHits`).
|
|
18899
19047
|
* - `ram-fullframe` — the native surface MISSED but the request was full-frame,
|
|
18900
19048
|
* so the ≤640 RAM `RetainedFrameStore` served it (honest lower-res; legit for
|
|
18901
19049
|
* the blank-frame guard / 640-snapshot resolve, NOT for the clean keyFrame).
|
|
@@ -19386,12 +19534,41 @@ var RunnerLocalLoadSchema = object({
|
|
|
19386
19534
|
* legacy `OrchestratorMetricsSchema` shape so existing dashboards keep
|
|
19387
19535
|
* working unchanged when they switch to reading from the runner cap.
|
|
19388
19536
|
*/
|
|
19537
|
+
var FrameLazyCountersSchema = object({
|
|
19538
|
+
framesDecoded: number(),
|
|
19539
|
+
framesAdmitted: number(),
|
|
19540
|
+
framesDroppedPixelFree: number(),
|
|
19541
|
+
viewsMaterialized: number(),
|
|
19542
|
+
viewsSkipped: number(),
|
|
19543
|
+
workerToRunnerBytes: number(),
|
|
19544
|
+
runnerToPoolRawBytes: number(),
|
|
19545
|
+
runnerToPoolJpegBytes: number(),
|
|
19546
|
+
onDemandFullFrameRequests: number(),
|
|
19547
|
+
onDemandCropRequests: number(),
|
|
19548
|
+
nativeHits: number(),
|
|
19549
|
+
nativeMisses: number(),
|
|
19550
|
+
tileHits: number(),
|
|
19551
|
+
tileMisses: number(),
|
|
19552
|
+
fallbackHits: number(),
|
|
19553
|
+
fallbackMisses: number(),
|
|
19554
|
+
retainedWritesAvoided: number(),
|
|
19555
|
+
residentRefs: number(),
|
|
19556
|
+
residentBytes: number(),
|
|
19557
|
+
releases: number(),
|
|
19558
|
+
evictions: number(),
|
|
19559
|
+
staleMisses: number()
|
|
19560
|
+
});
|
|
19561
|
+
var FrameLazyMetricsSchema = object({
|
|
19562
|
+
node: FrameLazyCountersSchema,
|
|
19563
|
+
cameras: array(FrameLazyCountersSchema.extend({ deviceId: number() }))
|
|
19564
|
+
});
|
|
19389
19565
|
var RunnerLocalMetricsSchema = object({
|
|
19390
19566
|
nodeId: string(),
|
|
19391
19567
|
activeCameras: number(),
|
|
19392
19568
|
throttledCameras: number(),
|
|
19393
19569
|
avgInferenceTimeMs: number(),
|
|
19394
|
-
queueDepth: number()
|
|
19570
|
+
queueDepth: number(),
|
|
19571
|
+
frameLazy: FrameLazyMetricsSchema.optional()
|
|
19395
19572
|
});
|
|
19396
19573
|
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({
|
|
19397
19574
|
handle: FrameHandleSchema,
|
|
@@ -20691,6 +20868,9 @@ method(_void(), ProviderInfoSchema), method(object({ config: record(string(), un
|
|
|
20691
20868
|
location: StorageLocationSchema,
|
|
20692
20869
|
relativePath: string()
|
|
20693
20870
|
}), _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" });
|
|
20871
|
+
/** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
|
|
20872
|
+
var ProfileSettingsSchemaBridge = unknown().nullable();
|
|
20873
|
+
var ProfileSettingsBagSchema = record(string(), unknown());
|
|
20694
20874
|
/**
|
|
20695
20875
|
* A live terminal session hosted by the provider addon. Output and input do
|
|
20696
20876
|
* NOT flow through the capability — they use the addon data plane
|
|
@@ -20720,7 +20900,14 @@ var TerminalSessionInfoSchema = object({
|
|
|
20720
20900
|
var TerminalProfileInfoSchema = object({
|
|
20721
20901
|
profileId: string(),
|
|
20722
20902
|
label: string(),
|
|
20723
|
-
description: string().optional()
|
|
20903
|
+
description: string().optional(),
|
|
20904
|
+
/** Spawn defaults the instance form copies on create. */
|
|
20905
|
+
executable: string().optional(),
|
|
20906
|
+
args: array(string()).readonly().optional(),
|
|
20907
|
+
cwd: string().optional(),
|
|
20908
|
+
environment: array(string()).readonly().optional(),
|
|
20909
|
+
/** ConfigUISchema for instance knobs, or null when the profile has none. */
|
|
20910
|
+
settingsSchema: ProfileSettingsSchemaBridge.optional()
|
|
20724
20911
|
});
|
|
20725
20912
|
/**
|
|
20726
20913
|
* A durable operator-created Terminal instance. Profiles are templates; only
|
|
@@ -20733,7 +20920,12 @@ var TerminalInstanceInfoSchema = object({
|
|
|
20733
20920
|
profileId: string(),
|
|
20734
20921
|
profileLabel: string(),
|
|
20735
20922
|
name: string(),
|
|
20736
|
-
enabled: boolean()
|
|
20923
|
+
enabled: boolean(),
|
|
20924
|
+
executable: string(),
|
|
20925
|
+
args: array(string()).readonly(),
|
|
20926
|
+
cwd: string(),
|
|
20927
|
+
environment: array(string()).readonly(),
|
|
20928
|
+
profileSettings: ProfileSettingsBagSchema
|
|
20737
20929
|
});
|
|
20738
20930
|
var TerminalLegacyCameraSchema = object({
|
|
20739
20931
|
stableId: string(),
|
|
@@ -20763,7 +20955,23 @@ var TerminalOutputBatchSchema = object({
|
|
|
20763
20955
|
method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalInstanceInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
20764
20956
|
targetNodeId: string().min(1),
|
|
20765
20957
|
profileId: string().min(1),
|
|
20766
|
-
name: string().trim().min(1).max(160).optional()
|
|
20958
|
+
name: string().trim().min(1).max(160).optional(),
|
|
20959
|
+
executable: string().max(1024).optional(),
|
|
20960
|
+
args: array(string().max(2048)).max(64).optional(),
|
|
20961
|
+
cwd: string().max(1024).optional(),
|
|
20962
|
+
environment: array(string().max(4096)).max(64).optional(),
|
|
20963
|
+
profileSettings: ProfileSettingsBagSchema.optional()
|
|
20964
|
+
}), TerminalInstanceInfoSchema, {
|
|
20965
|
+
kind: "mutation",
|
|
20966
|
+
auth: "admin"
|
|
20967
|
+
}), method(object({
|
|
20968
|
+
instanceId: string().min(1),
|
|
20969
|
+
name: string().trim().min(1).max(160).optional(),
|
|
20970
|
+
executable: string().max(1024).optional(),
|
|
20971
|
+
args: array(string().max(2048)).max(64).optional(),
|
|
20972
|
+
cwd: string().max(1024).optional(),
|
|
20973
|
+
environment: array(string().max(4096)).max(64).optional(),
|
|
20974
|
+
profileSettings: ProfileSettingsBagSchema.optional()
|
|
20767
20975
|
}), TerminalInstanceInfoSchema, {
|
|
20768
20976
|
kind: "mutation",
|
|
20769
20977
|
auth: "admin"
|
|
@@ -20785,7 +20993,11 @@ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }),
|
|
|
20785
20993
|
}), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
20786
20994
|
profileId: string(),
|
|
20787
20995
|
cols: number().int().positive(),
|
|
20788
|
-
rows: number().int().positive()
|
|
20996
|
+
rows: number().int().positive(),
|
|
20997
|
+
executable: string().max(1024).optional(),
|
|
20998
|
+
args: array(string().max(2048)).max(64).optional(),
|
|
20999
|
+
cwd: string().max(1024).optional(),
|
|
21000
|
+
environment: array(string().max(4096)).max(64).optional()
|
|
20789
21001
|
}), TerminalSessionInfoSchema, {
|
|
20790
21002
|
kind: "mutation",
|
|
20791
21003
|
auth: "admin"
|
|
@@ -24668,10 +24880,10 @@ var lawnMowerControlCapability = {
|
|
|
24668
24880
|
*
|
|
24669
24881
|
* • The SDK (mobile / web client) consumes `getConnectionEndpoints()`
|
|
24670
24882
|
* to receive an ordered list of candidate base URLs it should race
|
|
24671
|
-
* on connect — LAN IPv4 first (lowest latency
|
|
24672
|
-
* then public hostname (if a tunnel is
|
|
24673
|
-
* race them with short timeouts and stick with the
|
|
24674
|
-
* session.
|
|
24883
|
+
* on connect — LAN IPv4 and stable LAN IPv6 first (lowest latency
|
|
24884
|
+
* when on the same network), then public hostname (if a tunnel is
|
|
24885
|
+
* up). The SDK can race them with short timeouts and stick with the
|
|
24886
|
+
* winner for the session.
|
|
24675
24887
|
*
|
|
24676
24888
|
* Why hub-only: agents are not directly addressable by the operator's
|
|
24677
24889
|
* clients — they reverse-connect to the hub. Exposing their interfaces
|
|
@@ -24826,6 +25038,17 @@ var NotificationEndpointSchema = object({
|
|
|
24826
25038
|
/** What the ranking currently resolves to (null when nothing is reachable). */
|
|
24827
25039
|
resolved: string().nullable()
|
|
24828
25040
|
});
|
|
25041
|
+
/**
|
|
25042
|
+
* The URLs the SDK / viewer should race for API access. `baseUrls` empty =
|
|
25043
|
+
* AUTO (every LAN IPv4 + the public tunnel). `resolved` is what that choice
|
|
25044
|
+
* currently expands to, so the UI can show the effective set either way.
|
|
25045
|
+
*/
|
|
25046
|
+
var ViewerEndpointsSchema = object({
|
|
25047
|
+
/** The operator's explicit race set, or empty for AUTO. */
|
|
25048
|
+
baseUrls: array(string()).readonly(),
|
|
25049
|
+
/** What the ranking currently resolves to (may be empty if nothing is up). */
|
|
25050
|
+
resolved: array(string()).readonly()
|
|
25051
|
+
});
|
|
24829
25052
|
var AllowedAddressesSchema = object({
|
|
24830
25053
|
/**
|
|
24831
25054
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -24834,6 +25057,20 @@ var AllowedAddressesSchema = object({
|
|
|
24834
25057
|
* Network Addresses admin page and persisted by the addon.
|
|
24835
25058
|
*/
|
|
24836
25059
|
addresses: array(string()).readonly() });
|
|
25060
|
+
var TlsStatusSchema = object({
|
|
25061
|
+
mode: _enum([
|
|
25062
|
+
"generated",
|
|
25063
|
+
"uploaded",
|
|
25064
|
+
"disabled"
|
|
25065
|
+
]),
|
|
25066
|
+
leafFingerprintSha256: string().nullable(),
|
|
25067
|
+
caFingerprintSha256: string().nullable(),
|
|
25068
|
+
validTo: string().nullable(),
|
|
25069
|
+
sans: array(string()),
|
|
25070
|
+
caCertPem: string().nullable(),
|
|
25071
|
+
reissueError: string().nullable(),
|
|
25072
|
+
restartRequired: boolean()
|
|
25073
|
+
});
|
|
24837
25074
|
method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
|
|
24838
25075
|
/**
|
|
24839
25076
|
* LEGACY HINT — do not send from new code. Kept optional so clients
|
|
@@ -24843,17 +25080,31 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
24843
25080
|
*/
|
|
24844
25081
|
port: number().int().min(1).max(65535).optional(),
|
|
24845
25082
|
/** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
|
|
24846
|
-
* candidate. Default `
|
|
25083
|
+
* candidate. Default `false` — loopback is not a client route. */
|
|
24847
25084
|
includeLoopback: boolean().optional(),
|
|
24848
|
-
/** Skip IPv6 entries.
|
|
24849
|
-
*
|
|
25085
|
+
/** Skip IPv6 entries. Default `false` — the palette includes stable
|
|
25086
|
+
* LAN IPv6 (ICE/WebRTC uses dual-stack regardless). Pass `true` to
|
|
25087
|
+
* hide them. The viewer HTTP/WS race is `getViewerEndpoints`. */
|
|
24850
25088
|
ipv4Only: boolean().optional(),
|
|
24851
25089
|
/** Scheme to emit for LAN/loopback URLs. Default `'http'`.
|
|
24852
25090
|
* Pass `'https'` when the caller is itself loaded over HTTPS
|
|
24853
25091
|
* to avoid mixed-content blocks in the browser. The public
|
|
24854
25092
|
* tunnel always emits `https://` regardless. */
|
|
24855
25093
|
scheme: _enum(["http", "https"]).optional()
|
|
24856
|
-
}), 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" })
|
|
25094
|
+
}), 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, {
|
|
25095
|
+
kind: "mutation",
|
|
25096
|
+
auth: "admin"
|
|
25097
|
+
}), method(object({
|
|
25098
|
+
certPem: string().min(1),
|
|
25099
|
+
keyPem: string().min(1),
|
|
25100
|
+
caPem: string().optional()
|
|
25101
|
+
}), TlsStatusSchema, {
|
|
25102
|
+
kind: "mutation",
|
|
25103
|
+
auth: "admin"
|
|
25104
|
+
}), method(_void(), object({ pem: string() })), method(_void(), TlsStatusSchema, {
|
|
25105
|
+
kind: "mutation",
|
|
25106
|
+
auth: "admin"
|
|
25107
|
+
});
|
|
24857
25108
|
var LockControlStatusSchema = object({
|
|
24858
25109
|
/** Lifecycle state of the lock. `jammed` means the motor reported
|
|
24859
25110
|
* failure to reach the target — operator intervention required. */
|
|
@@ -26414,7 +26665,12 @@ var PlateInfoSchema = object({
|
|
|
26414
26665
|
plateBbox: BoundingBoxSchema.optional(),
|
|
26415
26666
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
26416
26667
|
keyFrameMediaKey: string().optional(),
|
|
26417
|
-
base64: string().optional()
|
|
26668
|
+
base64: string().optional(),
|
|
26669
|
+
/**
|
|
26670
|
+
* Same crop as a data-plane URL. `getPlateByTrack` returns this and
|
|
26671
|
+
* never inlines JPEG; `listPlates` still inlines for the admin-ui.
|
|
26672
|
+
*/
|
|
26673
|
+
cropUrl: string().optional()
|
|
26418
26674
|
});
|
|
26419
26675
|
var MediaFileLiteSchema = object({
|
|
26420
26676
|
key: string(),
|
|
@@ -31938,6 +32194,12 @@ Object.freeze({
|
|
|
31938
32194
|
addonId: null,
|
|
31939
32195
|
access: "view"
|
|
31940
32196
|
},
|
|
32197
|
+
"deviceManager.getBindingsBatch": {
|
|
32198
|
+
capName: "device-manager",
|
|
32199
|
+
capScope: "system",
|
|
32200
|
+
addonId: null,
|
|
32201
|
+
access: "view"
|
|
32202
|
+
},
|
|
31941
32203
|
"deviceManager.getChildren": {
|
|
31942
32204
|
capName: "device-manager",
|
|
31943
32205
|
capScope: "system",
|
|
@@ -31998,6 +32260,12 @@ Object.freeze({
|
|
|
31998
32260
|
addonId: null,
|
|
31999
32261
|
access: "view"
|
|
32000
32262
|
},
|
|
32263
|
+
"deviceManager.getLinkedDevicesBatch": {
|
|
32264
|
+
capName: "device-manager",
|
|
32265
|
+
capScope: "system",
|
|
32266
|
+
addonId: null,
|
|
32267
|
+
access: "view"
|
|
32268
|
+
},
|
|
32001
32269
|
"deviceManager.getRoleDisplayDefaults": {
|
|
32002
32270
|
capName: "device-manager",
|
|
32003
32271
|
capScope: "system",
|
|
@@ -32880,6 +33148,12 @@ Object.freeze({
|
|
|
32880
33148
|
addonId: null,
|
|
32881
33149
|
access: "create"
|
|
32882
33150
|
},
|
|
33151
|
+
"localNetwork.downloadCa": {
|
|
33152
|
+
capName: "local-network",
|
|
33153
|
+
capScope: "system",
|
|
33154
|
+
addonId: null,
|
|
33155
|
+
access: "view"
|
|
33156
|
+
},
|
|
32883
33157
|
"localNetwork.getAllowedAddresses": {
|
|
32884
33158
|
capName: "local-network",
|
|
32885
33159
|
capScope: "system",
|
|
@@ -32904,18 +33178,42 @@ Object.freeze({
|
|
|
32904
33178
|
addonId: null,
|
|
32905
33179
|
access: "view"
|
|
32906
33180
|
},
|
|
33181
|
+
"localNetwork.getTlsStatus": {
|
|
33182
|
+
capName: "local-network",
|
|
33183
|
+
capScope: "system",
|
|
33184
|
+
addonId: null,
|
|
33185
|
+
access: "view"
|
|
33186
|
+
},
|
|
33187
|
+
"localNetwork.getViewerEndpoints": {
|
|
33188
|
+
capName: "local-network",
|
|
33189
|
+
capScope: "system",
|
|
33190
|
+
addonId: null,
|
|
33191
|
+
access: "view"
|
|
33192
|
+
},
|
|
32907
33193
|
"localNetwork.list": {
|
|
32908
33194
|
capName: "local-network",
|
|
32909
33195
|
capScope: "system",
|
|
32910
33196
|
addonId: null,
|
|
32911
33197
|
access: "view"
|
|
32912
33198
|
},
|
|
33199
|
+
"localNetwork.regenerateCertificate": {
|
|
33200
|
+
capName: "local-network",
|
|
33201
|
+
capScope: "system",
|
|
33202
|
+
addonId: null,
|
|
33203
|
+
access: "create"
|
|
33204
|
+
},
|
|
32913
33205
|
"localNetwork.resetAllowlistToBestMatch": {
|
|
32914
33206
|
capName: "local-network",
|
|
32915
33207
|
capScope: "system",
|
|
32916
33208
|
addonId: null,
|
|
32917
33209
|
access: "delete"
|
|
32918
33210
|
},
|
|
33211
|
+
"localNetwork.revertToGeneratedCertificate": {
|
|
33212
|
+
capName: "local-network",
|
|
33213
|
+
capScope: "system",
|
|
33214
|
+
addonId: null,
|
|
33215
|
+
access: "create"
|
|
33216
|
+
},
|
|
32919
33217
|
"localNetwork.setAllowedAddresses": {
|
|
32920
33218
|
capName: "local-network",
|
|
32921
33219
|
capScope: "system",
|
|
@@ -32928,6 +33226,18 @@ Object.freeze({
|
|
|
32928
33226
|
addonId: null,
|
|
32929
33227
|
access: "create"
|
|
32930
33228
|
},
|
|
33229
|
+
"localNetwork.setViewerEndpoints": {
|
|
33230
|
+
capName: "local-network",
|
|
33231
|
+
capScope: "system",
|
|
33232
|
+
addonId: null,
|
|
33233
|
+
access: "create"
|
|
33234
|
+
},
|
|
33235
|
+
"localNetwork.uploadCertificate": {
|
|
33236
|
+
capName: "local-network",
|
|
33237
|
+
capScope: "system",
|
|
33238
|
+
addonId: null,
|
|
33239
|
+
access: "create"
|
|
33240
|
+
},
|
|
32931
33241
|
"lockControl.lock": {
|
|
32932
33242
|
capName: "lock-control",
|
|
32933
33243
|
capScope: "device",
|
|
@@ -33726,6 +34036,12 @@ Object.freeze({
|
|
|
33726
34036
|
addonId: null,
|
|
33727
34037
|
access: "view"
|
|
33728
34038
|
},
|
|
34039
|
+
"pipelineAnalytics.getGroup": {
|
|
34040
|
+
capName: "pipeline-analytics",
|
|
34041
|
+
capScope: "device",
|
|
34042
|
+
addonId: null,
|
|
34043
|
+
access: "view"
|
|
34044
|
+
},
|
|
33729
34045
|
"pipelineAnalytics.getKeyEvents": {
|
|
33730
34046
|
capName: "pipeline-analytics",
|
|
33731
34047
|
capScope: "device",
|
|
@@ -33810,6 +34126,12 @@ Object.freeze({
|
|
|
33810
34126
|
addonId: null,
|
|
33811
34127
|
access: "view"
|
|
33812
34128
|
},
|
|
34129
|
+
"pipelineAnalytics.listGroups": {
|
|
34130
|
+
capName: "pipeline-analytics",
|
|
34131
|
+
capScope: "device",
|
|
34132
|
+
addonId: null,
|
|
34133
|
+
access: "view"
|
|
34134
|
+
},
|
|
33813
34135
|
"pipelineAnalytics.listOpsLog": {
|
|
33814
34136
|
capName: "pipeline-analytics",
|
|
33815
34137
|
capScope: "device",
|
|
@@ -35808,6 +36130,12 @@ Object.freeze({
|
|
|
35808
36130
|
addonId: null,
|
|
35809
36131
|
access: "create"
|
|
35810
36132
|
},
|
|
36133
|
+
"terminalSession.updateInstance": {
|
|
36134
|
+
capName: "terminal-session",
|
|
36135
|
+
capScope: "system",
|
|
36136
|
+
addonId: null,
|
|
36137
|
+
access: "create"
|
|
36138
|
+
},
|
|
35811
36139
|
"terminalSession.writeInput": {
|
|
35812
36140
|
capName: "terminal-session",
|
|
35813
36141
|
capScope: "system",
|
|
@@ -36585,6 +36913,11 @@ Object.freeze({
|
|
|
36585
36913
|
form: "single",
|
|
36586
36914
|
optional: false
|
|
36587
36915
|
}],
|
|
36916
|
+
"deviceManager.getBindingsBatch": [{
|
|
36917
|
+
name: "deviceIds",
|
|
36918
|
+
form: "array",
|
|
36919
|
+
optional: false
|
|
36920
|
+
}],
|
|
36588
36921
|
"deviceManager.getChildren": [{
|
|
36589
36922
|
name: "parentDeviceId",
|
|
36590
36923
|
form: "single",
|
|
@@ -36630,6 +36963,11 @@ Object.freeze({
|
|
|
36630
36963
|
form: "single",
|
|
36631
36964
|
optional: false
|
|
36632
36965
|
}],
|
|
36966
|
+
"deviceManager.getLinkedDevicesBatch": [{
|
|
36967
|
+
name: "deviceIds",
|
|
36968
|
+
form: "array",
|
|
36969
|
+
optional: false
|
|
36970
|
+
}],
|
|
36633
36971
|
"deviceManager.getSettingsSchema": [{
|
|
36634
36972
|
name: "deviceId",
|
|
36635
36973
|
form: "single",
|
|
@@ -36650,6 +36988,11 @@ Object.freeze({
|
|
|
36650
36988
|
form: "single",
|
|
36651
36989
|
optional: false
|
|
36652
36990
|
}],
|
|
36991
|
+
"deviceManager.listAll": [{
|
|
36992
|
+
name: "deviceIds",
|
|
36993
|
+
form: "array",
|
|
36994
|
+
optional: true
|
|
36995
|
+
}],
|
|
36653
36996
|
"deviceManager.loadConfig": [{
|
|
36654
36997
|
name: "deviceId",
|
|
36655
36998
|
form: "single",
|
|
@@ -37223,6 +37566,11 @@ Object.freeze({
|
|
|
37223
37566
|
form: "single",
|
|
37224
37567
|
optional: false
|
|
37225
37568
|
}],
|
|
37569
|
+
"pipelineAnalytics.getGroup": [{
|
|
37570
|
+
name: "deviceId",
|
|
37571
|
+
form: "single",
|
|
37572
|
+
optional: false
|
|
37573
|
+
}],
|
|
37226
37574
|
"pipelineAnalytics.getKeyEvents": [{
|
|
37227
37575
|
name: "deviceId",
|
|
37228
37576
|
form: "single",
|
|
@@ -37278,6 +37626,11 @@ Object.freeze({
|
|
|
37278
37626
|
form: "array",
|
|
37279
37627
|
optional: false
|
|
37280
37628
|
}],
|
|
37629
|
+
"pipelineAnalytics.listGroups": [{
|
|
37630
|
+
name: "deviceIds",
|
|
37631
|
+
form: "array",
|
|
37632
|
+
optional: false
|
|
37633
|
+
}],
|
|
37281
37634
|
"pipelineAnalytics.listOpsLog": [{
|
|
37282
37635
|
name: "deviceId",
|
|
37283
37636
|
form: "single",
|
|
@@ -38295,6 +38648,35 @@ Object.freeze(Object.fromEntries([{
|
|
|
38295
38648
|
}]
|
|
38296
38649
|
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
38297
38650
|
string().min(1);
|
|
38651
|
+
var CLUSTER_STEP_SETTING_FIELDS = [{
|
|
38652
|
+
stepId: "face-embedding",
|
|
38653
|
+
key: "minLandmarkFaceSize",
|
|
38654
|
+
label: "Min face size for recognition (detection px)",
|
|
38655
|
+
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.",
|
|
38656
|
+
type: "slider",
|
|
38657
|
+
min: 0,
|
|
38658
|
+
max: 64,
|
|
38659
|
+
step: 2,
|
|
38660
|
+
default: 24
|
|
38661
|
+
}];
|
|
38662
|
+
function clusterStepSettingKey(stepId, fieldKey) {
|
|
38663
|
+
return `clusterStepSetting:${stepId}:${fieldKey}`;
|
|
38664
|
+
}
|
|
38665
|
+
var ClusterSettingNumberSchema = number().finite();
|
|
38666
|
+
function readClusterStepSettings(config) {
|
|
38667
|
+
const out = {};
|
|
38668
|
+
for (const field of CLUSTER_STEP_SETTING_FIELDS) {
|
|
38669
|
+
const parsed = ClusterSettingNumberSchema.safeParse(config[clusterStepSettingKey(field.stepId, field.key)]);
|
|
38670
|
+
const value = parsed.success ? parsed.data : field.default;
|
|
38671
|
+
const existing = out[field.stepId] ?? {};
|
|
38672
|
+
out[field.stepId] = {
|
|
38673
|
+
...existing,
|
|
38674
|
+
[field.key]: value
|
|
38675
|
+
};
|
|
38676
|
+
}
|
|
38677
|
+
return out;
|
|
38678
|
+
}
|
|
38679
|
+
readClusterStepSettings({});
|
|
38298
38680
|
object({
|
|
38299
38681
|
/**
|
|
38300
38682
|
* Fraction of the box's own size added on EACH side before cutting.
|