@camstack/addon-provider-homeassistant 1.2.40 → 1.2.41
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 +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/{dist-DeursJRH.mjs → dist-D1G6jUej.mjs} +184 -34
- package/dist/{dist-BoTrJXhA.js → dist-t-5RdKBJ.js} +184 -34
- package/dist/ha-export/ha-export.addon.js +1 -1
- package/dist/ha-export/ha-export.addon.mjs +1 -1
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-t-5RdKBJ.js");
|
|
3
3
|
let node_crypto = require("node:crypto");
|
|
4
4
|
let node_zlib = require("node:zlib");
|
|
5
5
|
//#region src/ha-device-source.ts
|
package/dist/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as pressureSensorCapability, A as coverCapability, B as imageCapability, C as buttonCapability, Ct as record, D as connectivityCapability, Dt as url, E as colorCapability, Et as unknown, F as fanControlCapability, G as normalizeUnit, H as lockControlCapability, I as floodCapability, J as numericSensorCapability, K as notificationOutputCapability, L as gasCapability, N as enumSensorCapability, O as contactCapability, Ot as EventCategory, P as eventEmitterCapability, Q as presenceCapability, R as humidifierCapability, S as buildAddonRouteProvider, St as object, T as climateControlCapability, Tt as union, U as mediaPlayerCapability, V as lawnMowerControlCapability, W as motionCapability, X as powerMeterCapability, Z as prepareNotification, _ as batteryCapability, _t as _enum, at as updateCapability, b as brightnessCapability, bt as literal, ct as vibrationCapability, d as accessoriesCapability, dt as errMsg, et as scriptRunnerCapability, f as addonRoutesCapability, g as automationControlCapability, gt as createEvent, h as ambientLightSensorCapability, ht as DeviceType, it as temperatureSensorCapability, j as deviceAdoptionCapability, k as controlCapability, lt as waterHeaterCapability, m as alarmPanelCapability, mt as DeviceRole, n as BaseDevice, nt as switchCapability, o as EnumSensorDateTimeFormatSchema, ot as vacuumControlCapability, p as airQualitySensorCapability, pt as DeviceFeature, q as notifierCapability, r as BaseDeviceProvider, rt as tamperCapability, st as valveCapability, tt as smokeCapability, u as TargetSchema, ut as weatherCapability, v as bestLocationMatch, vt as array, w as carbonMonoxideCapability, wt as string, x as brokerCapability, xt as number, y as binaryCapability, yt as discriminatedUnion, z as humiditySensorCapability } from "./dist-
|
|
1
|
+
import { $ as pressureSensorCapability, A as coverCapability, B as imageCapability, C as buttonCapability, Ct as record, D as connectivityCapability, Dt as url, E as colorCapability, Et as unknown, F as fanControlCapability, G as normalizeUnit, H as lockControlCapability, I as floodCapability, J as numericSensorCapability, K as notificationOutputCapability, L as gasCapability, N as enumSensorCapability, O as contactCapability, Ot as EventCategory, P as eventEmitterCapability, Q as presenceCapability, R as humidifierCapability, S as buildAddonRouteProvider, St as object, T as climateControlCapability, Tt as union, U as mediaPlayerCapability, V as lawnMowerControlCapability, W as motionCapability, X as powerMeterCapability, Z as prepareNotification, _ as batteryCapability, _t as _enum, at as updateCapability, b as brightnessCapability, bt as literal, ct as vibrationCapability, d as accessoriesCapability, dt as errMsg, et as scriptRunnerCapability, f as addonRoutesCapability, g as automationControlCapability, gt as createEvent, h as ambientLightSensorCapability, ht as DeviceType, it as temperatureSensorCapability, j as deviceAdoptionCapability, k as controlCapability, lt as waterHeaterCapability, m as alarmPanelCapability, mt as DeviceRole, n as BaseDevice, nt as switchCapability, o as EnumSensorDateTimeFormatSchema, ot as vacuumControlCapability, p as airQualitySensorCapability, pt as DeviceFeature, q as notifierCapability, r as BaseDeviceProvider, rt as tamperCapability, st as valveCapability, tt as smokeCapability, u as TargetSchema, ut as weatherCapability, v as bestLocationMatch, vt as array, w as carbonMonoxideCapability, wt as string, x as brokerCapability, xt as number, y as binaryCapability, yt as discriminatedUnion, z as humiditySensorCapability } from "./dist-D1G6jUej.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { brotliCompressSync, deflateSync, gzipSync } from "node:zlib";
|
|
4
4
|
//#region src/ha-device-source.ts
|
|
@@ -5800,6 +5800,13 @@ var BaseAddon = class {
|
|
|
5800
5800
|
_readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
|
|
5801
5801
|
/** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
|
|
5802
5802
|
_registeredCapNames = [];
|
|
5803
|
+
/**
|
|
5804
|
+
* True only after `readAddonStore` actually answered. Constructor
|
|
5805
|
+
* defaults look like stored config when the store is down — a forked
|
|
5806
|
+
* addon that auto-starts from those defaults (cloudflare-tunnel quick
|
|
5807
|
+
* mode, 2026-08-25) is not "the operator chose this".
|
|
5808
|
+
*/
|
|
5809
|
+
settingsStoreReady = false;
|
|
5803
5810
|
/** Default config values. Provided via constructor. */
|
|
5804
5811
|
defaults;
|
|
5805
5812
|
constructor(defaults) {
|
|
@@ -6200,7 +6207,9 @@ var BaseAddon = class {
|
|
|
6200
6207
|
];
|
|
6201
6208
|
let lastErr;
|
|
6202
6209
|
for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
|
|
6203
|
-
|
|
6210
|
+
const stored = await settings.readAddonStore() ?? {};
|
|
6211
|
+
this.settingsStoreReady = true;
|
|
6212
|
+
return stored;
|
|
6204
6213
|
} catch (err) {
|
|
6205
6214
|
lastErr = err;
|
|
6206
6215
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -6208,6 +6217,7 @@ var BaseAddon = class {
|
|
|
6208
6217
|
if (attempt === delaysMs.length) break;
|
|
6209
6218
|
await new Promise((r) => setTimeout(r, delaysMs[attempt]));
|
|
6210
6219
|
}
|
|
6220
|
+
this.settingsStoreReady = false;
|
|
6211
6221
|
this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
|
|
6212
6222
|
return {};
|
|
6213
6223
|
}
|
|
@@ -8230,6 +8240,12 @@ var ModelVariantGroupSchema = object({
|
|
|
8230
8240
|
*/
|
|
8231
8241
|
resolution: number().int().positive().optional()
|
|
8232
8242
|
});
|
|
8243
|
+
var ModelProviderIdSchema = _enum([
|
|
8244
|
+
"camstack",
|
|
8245
|
+
"frigate",
|
|
8246
|
+
"scrypted",
|
|
8247
|
+
"custom"
|
|
8248
|
+
]);
|
|
8233
8249
|
var ModelCatalogEntrySchema = object({
|
|
8234
8250
|
id: string(),
|
|
8235
8251
|
name: string(),
|
|
@@ -8327,6 +8343,12 @@ var ModelCatalogEntrySchema = object({
|
|
|
8327
8343
|
*/
|
|
8328
8344
|
group: ModelVariantGroupSchema.optional(),
|
|
8329
8345
|
/**
|
|
8346
|
+
* Catalog source for the pipeline stepper's provider-first picker. Absent on
|
|
8347
|
+
* built-in CamStack entries (treated as `camstack`) and on registry rows
|
|
8348
|
+
* persisted before this field existed (`inferModelProvider` fills those).
|
|
8349
|
+
*/
|
|
8350
|
+
provider: ModelProviderIdSchema.optional(),
|
|
8351
|
+
/**
|
|
8330
8352
|
* Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
|
|
8331
8353
|
* applies (Frigate / COCO public catalog). Set on a custom model whose raw
|
|
8332
8354
|
* labels already ARE the CamStack macros (Scrypted identity map).
|
|
@@ -12273,6 +12295,27 @@ var LinkedDeviceSchema = object({
|
|
|
12273
12295
|
features: array(string()),
|
|
12274
12296
|
producesTrackedEvents: boolean().optional()
|
|
12275
12297
|
});
|
|
12298
|
+
/** One camera's resolved linked set, tagged with the camera it belongs to.
|
|
12299
|
+
* The batch answer needs the tag; the single-device answer already has it
|
|
12300
|
+
* from the input, which is why `getLinkedDevices` keeps the untagged shape. */
|
|
12301
|
+
var LinkedDevicesForDeviceSchema = object({
|
|
12302
|
+
deviceId: number(),
|
|
12303
|
+
mode: LinkedDevicesModeSchema,
|
|
12304
|
+
devices: array(LinkedDeviceSchema)
|
|
12305
|
+
});
|
|
12306
|
+
/** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
|
|
12307
|
+
* `getAllBindings` all answer in. Declared once: three copies of the same
|
|
12308
|
+
* object literal is exactly how the three drift apart. */
|
|
12309
|
+
var DeviceBindingsForDeviceSchema = object({
|
|
12310
|
+
deviceId: number(),
|
|
12311
|
+
entries: array(object({
|
|
12312
|
+
capName: string(),
|
|
12313
|
+
kind: _enum(["native", "wrapped"]),
|
|
12314
|
+
providerAddonId: string(),
|
|
12315
|
+
providerNodeId: string(),
|
|
12316
|
+
nativeAddonId: string()
|
|
12317
|
+
}))
|
|
12318
|
+
});
|
|
12276
12319
|
var SavedDeviceRowSchema = object({
|
|
12277
12320
|
/** Numeric id reserved at allocateDeviceId time. */
|
|
12278
12321
|
id: number(),
|
|
@@ -12498,11 +12541,25 @@ method(object({
|
|
|
12498
12541
|
projection: _enum(["full", "slim"]).optional(),
|
|
12499
12542
|
/** Return only camera devices. Filtering server-side instead of
|
|
12500
12543
|
* shipping 293 rows to find 12. */
|
|
12501
|
-
isCamera: boolean().optional()
|
|
12544
|
+
isCamera: boolean().optional(),
|
|
12545
|
+
/**
|
|
12546
|
+
* Return only these device ids. For the caller that already KNOWS the
|
|
12547
|
+
* handful it wants and needs a field the id-bearing answer does not
|
|
12548
|
+
* carry — the viewer's linked-devices panel joins `type` and `online`
|
|
12549
|
+
* onto ~8 linked ids and, unfiltered, dragged the fleet across to do
|
|
12550
|
+
* it: 433 KB slim / 958 KB full for 967 devices, on a query that
|
|
12551
|
+
* refetches on the reconcile interval, on a phone.
|
|
12552
|
+
*
|
|
12553
|
+
* Safe to send at a hub that predates it: Zod STRIPS unknown input
|
|
12554
|
+
* keys rather than rejecting them (verified against the live hub
|
|
12555
|
+
* 2026-08-25 — 967 rows came back), so an old hub answers exactly what
|
|
12556
|
+
* it answers today and the caller filters as it already does.
|
|
12557
|
+
*/
|
|
12558
|
+
deviceIds: array(number()).optional()
|
|
12502
12559
|
}), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
|
|
12503
12560
|
mode: LinkedDevicesModeSchema,
|
|
12504
12561
|
devices: array(LinkedDeviceSchema)
|
|
12505
|
-
})), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
12562
|
+
})), 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({
|
|
12506
12563
|
deviceId: number(),
|
|
12507
12564
|
values: record(string(), unknown())
|
|
12508
12565
|
}), object({ success: literal(true) }), {
|
|
@@ -12529,25 +12586,7 @@ method(object({
|
|
|
12529
12586
|
}), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
|
|
12530
12587
|
kind: "mutation",
|
|
12531
12588
|
auth: "admin"
|
|
12532
|
-
}), method(object({ deviceId: number() }), object({
|
|
12533
|
-
deviceId: number(),
|
|
12534
|
-
entries: array(object({
|
|
12535
|
-
capName: string(),
|
|
12536
|
-
kind: _enum(["native", "wrapped"]),
|
|
12537
|
-
providerAddonId: string(),
|
|
12538
|
-
providerNodeId: string(),
|
|
12539
|
-
nativeAddonId: string()
|
|
12540
|
-
}))
|
|
12541
|
-
})), method(object({}), array(object({
|
|
12542
|
-
deviceId: number(),
|
|
12543
|
-
entries: array(object({
|
|
12544
|
-
capName: string(),
|
|
12545
|
-
kind: _enum(["native", "wrapped"]),
|
|
12546
|
-
providerAddonId: string(),
|
|
12547
|
-
providerNodeId: string(),
|
|
12548
|
-
nativeAddonId: string()
|
|
12549
|
-
}))
|
|
12550
|
-
}))), method(object({
|
|
12589
|
+
}), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
|
|
12551
12590
|
deviceId: number(),
|
|
12552
12591
|
capName: string(),
|
|
12553
12592
|
wrapperAddonId: string(),
|
|
@@ -14971,12 +15010,15 @@ var NcOccupancyConditionSchema = object({
|
|
|
14971
15010
|
* there is no second switch that can disagree with the first and every rule
|
|
14972
15011
|
* authored before the decision migrates for free (`audioModeOf`):
|
|
14973
15012
|
*
|
|
14974
|
-
* - **LABEL mode — `labels` present.** The rule fires
|
|
14975
|
-
*
|
|
14976
|
-
* `hitPercent` and `samplingSeconds` are ignored
|
|
14977
|
-
*
|
|
14978
|
-
*
|
|
14979
|
-
*
|
|
15013
|
+
* - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
|
|
15014
|
+
* labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
|
|
15015
|
+
* `hitPercent` and `samplingSeconds` are still ignored — a percentage of
|
|
15016
|
+
* frames is the wrong question for a classifier that labels 1–3 frames
|
|
15017
|
+
* per episode. The count window is the brake that drops a single-frame
|
|
15018
|
+
* false positive; the rule's own `throttle` cooldown is the other. The
|
|
15019
|
+
* per-label confidence floor is the analyzer's (`classificationMinScore`,
|
|
15020
|
+
* per device) — a label only reaches this condition if the classifier was
|
|
15021
|
+
* already confident enough. `confirmHits: 1` restores first-frame fire.
|
|
14980
15022
|
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
14981
15023
|
* the condition: at least `hitPercent`% of the samples over
|
|
14982
15024
|
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
@@ -15003,14 +15045,22 @@ var NcOccupancyConditionSchema = object({
|
|
|
15003
15045
|
* an operator who typed `dog` mean the same thing.
|
|
15004
15046
|
*/
|
|
15005
15047
|
var NcAudioConditionSchema = object({
|
|
15006
|
-
/** LABEL MODE: audio macro labels. Present ⇒
|
|
15048
|
+
/** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
|
|
15007
15049
|
labels: array(string().min(1)).min(1).optional(),
|
|
15008
15050
|
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
15009
15051
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
15010
15052
|
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
15011
15053
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
15012
15054
|
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
15013
|
-
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
15055
|
+
samplingSeconds: number().int().min(1).max(300).default(10),
|
|
15056
|
+
/**
|
|
15057
|
+
* LABEL MODE: how many labelled frames must land inside
|
|
15058
|
+
* {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
|
|
15059
|
+
* Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
|
|
15060
|
+
*/
|
|
15061
|
+
confirmHits: number().int().min(1).max(20).optional(),
|
|
15062
|
+
/** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
|
|
15063
|
+
confirmWindowSec: number().int().min(1).max(60).optional()
|
|
15014
15064
|
});
|
|
15015
15065
|
/**
|
|
15016
15066
|
* Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
|
|
@@ -17390,6 +17440,46 @@ var RecentTracksPageSchema = object({
|
|
|
17390
17440
|
/** Cursor for the next page, or null when this page is the last. */
|
|
17391
17441
|
nextCursor: string().nullable()
|
|
17392
17442
|
});
|
|
17443
|
+
var LIST_GROUPS_DEFAULT_LIMIT = 40;
|
|
17444
|
+
var LIST_GROUPS_MAX_LIMIT = 100;
|
|
17445
|
+
var AnalyticsGroupRecordSchema = object({
|
|
17446
|
+
id: string(),
|
|
17447
|
+
deviceId: number().int(),
|
|
17448
|
+
openedAt: number().int(),
|
|
17449
|
+
closedAt: number().int(),
|
|
17450
|
+
timestamp: number().int(),
|
|
17451
|
+
memberCount: number().int(),
|
|
17452
|
+
memberTrackIds: array(string()).readonly(),
|
|
17453
|
+
className: string(),
|
|
17454
|
+
classes: array(string()).readonly(),
|
|
17455
|
+
/** Relative event-media path, or null when the group has no picture yet. */
|
|
17456
|
+
mediaUrl: string().nullable(),
|
|
17457
|
+
singleton: boolean()
|
|
17458
|
+
});
|
|
17459
|
+
var AnalyticsGroupMemberSchema = object({
|
|
17460
|
+
trackId: string(),
|
|
17461
|
+
deviceId: number().int(),
|
|
17462
|
+
className: string(),
|
|
17463
|
+
firstSeen: number().int(),
|
|
17464
|
+
lastSeen: number().int(),
|
|
17465
|
+
mediaUrl: string().nullable()
|
|
17466
|
+
});
|
|
17467
|
+
var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
|
|
17468
|
+
var ListGroupsQueryInput = object({
|
|
17469
|
+
/** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
|
|
17470
|
+
deviceIds: array(number()),
|
|
17471
|
+
/** Window lower bound on `closedAt` (inclusive). */
|
|
17472
|
+
since: number().optional(),
|
|
17473
|
+
/** Window upper bound on `openedAt` (inclusive). */
|
|
17474
|
+
until: number().optional(),
|
|
17475
|
+
limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
|
|
17476
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
17477
|
+
cursor: string().optional()
|
|
17478
|
+
});
|
|
17479
|
+
var ListGroupsPageSchema = object({
|
|
17480
|
+
groups: array(AnalyticsGroupRecordSchema).readonly(),
|
|
17481
|
+
nextCursor: string().nullable()
|
|
17482
|
+
});
|
|
17393
17483
|
var KeyEventQueryInput = object({
|
|
17394
17484
|
deviceId: number(),
|
|
17395
17485
|
/** Window lower bound (track firstSeen ≥ since). */
|
|
@@ -17465,7 +17555,9 @@ var TrackCascadeCountsSchema = object({
|
|
|
17465
17555
|
/** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
|
|
17466
17556
|
plates: number().int(),
|
|
17467
17557
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
17468
|
-
embeddings: number().int()
|
|
17558
|
+
embeddings: number().int(),
|
|
17559
|
+
/** Group membership + group rows removed with their last member (best-effort). */
|
|
17560
|
+
groups: number().int()
|
|
17469
17561
|
});
|
|
17470
17562
|
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
17471
17563
|
var DiskReconcileCountsSchema = object({
|
|
@@ -17611,7 +17703,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17611
17703
|
* stationary registry). Default false: the timeline lists passages,
|
|
17612
17704
|
* not parking records (operator decision, 2026-08-15). */
|
|
17613
17705
|
includeStationary: boolean().optional()
|
|
17614
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(
|
|
17706
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
|
|
17707
|
+
deviceId: number(),
|
|
17708
|
+
groupId: string().min(1)
|
|
17709
|
+
}), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
17615
17710
|
kind: "mutation",
|
|
17616
17711
|
auth: "admin"
|
|
17617
17712
|
}), 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({
|
|
@@ -17921,7 +18016,8 @@ var PipelineModelOptionSchema = object({
|
|
|
17921
18016
|
sizeMB: number()
|
|
17922
18017
|
})),
|
|
17923
18018
|
group: ModelVariantGroupSchema.optional(),
|
|
17924
|
-
legacy: boolean().optional()
|
|
18019
|
+
legacy: boolean().optional(),
|
|
18020
|
+
provider: ModelProviderIdSchema.optional()
|
|
17925
18021
|
});
|
|
17926
18022
|
var ConfigFieldBridge = custom();
|
|
17927
18023
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -26107,7 +26203,12 @@ var PlateInfoSchema = object({
|
|
|
26107
26203
|
plateBbox: BoundingBoxSchema.optional(),
|
|
26108
26204
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
26109
26205
|
keyFrameMediaKey: string().optional(),
|
|
26110
|
-
base64: string().optional()
|
|
26206
|
+
base64: string().optional(),
|
|
26207
|
+
/**
|
|
26208
|
+
* Same crop as a data-plane URL. `getPlateByTrack` returns this and
|
|
26209
|
+
* never inlines JPEG; `listPlates` still inlines for the admin-ui.
|
|
26210
|
+
*/
|
|
26211
|
+
cropUrl: string().optional()
|
|
26111
26212
|
});
|
|
26112
26213
|
var MediaFileLiteSchema = object({
|
|
26113
26214
|
key: string(),
|
|
@@ -31631,6 +31732,12 @@ Object.freeze({
|
|
|
31631
31732
|
addonId: null,
|
|
31632
31733
|
access: "view"
|
|
31633
31734
|
},
|
|
31735
|
+
"deviceManager.getBindingsBatch": {
|
|
31736
|
+
capName: "device-manager",
|
|
31737
|
+
capScope: "system",
|
|
31738
|
+
addonId: null,
|
|
31739
|
+
access: "view"
|
|
31740
|
+
},
|
|
31634
31741
|
"deviceManager.getChildren": {
|
|
31635
31742
|
capName: "device-manager",
|
|
31636
31743
|
capScope: "system",
|
|
@@ -31691,6 +31798,12 @@ Object.freeze({
|
|
|
31691
31798
|
addonId: null,
|
|
31692
31799
|
access: "view"
|
|
31693
31800
|
},
|
|
31801
|
+
"deviceManager.getLinkedDevicesBatch": {
|
|
31802
|
+
capName: "device-manager",
|
|
31803
|
+
capScope: "system",
|
|
31804
|
+
addonId: null,
|
|
31805
|
+
access: "view"
|
|
31806
|
+
},
|
|
31694
31807
|
"deviceManager.getRoleDisplayDefaults": {
|
|
31695
31808
|
capName: "device-manager",
|
|
31696
31809
|
capScope: "system",
|
|
@@ -33461,6 +33574,12 @@ Object.freeze({
|
|
|
33461
33574
|
addonId: null,
|
|
33462
33575
|
access: "view"
|
|
33463
33576
|
},
|
|
33577
|
+
"pipelineAnalytics.getGroup": {
|
|
33578
|
+
capName: "pipeline-analytics",
|
|
33579
|
+
capScope: "device",
|
|
33580
|
+
addonId: null,
|
|
33581
|
+
access: "view"
|
|
33582
|
+
},
|
|
33464
33583
|
"pipelineAnalytics.getKeyEvents": {
|
|
33465
33584
|
capName: "pipeline-analytics",
|
|
33466
33585
|
capScope: "device",
|
|
@@ -33545,6 +33664,12 @@ Object.freeze({
|
|
|
33545
33664
|
addonId: null,
|
|
33546
33665
|
access: "view"
|
|
33547
33666
|
},
|
|
33667
|
+
"pipelineAnalytics.listGroups": {
|
|
33668
|
+
capName: "pipeline-analytics",
|
|
33669
|
+
capScope: "device",
|
|
33670
|
+
addonId: null,
|
|
33671
|
+
access: "view"
|
|
33672
|
+
},
|
|
33548
33673
|
"pipelineAnalytics.listOpsLog": {
|
|
33549
33674
|
capName: "pipeline-analytics",
|
|
33550
33675
|
capScope: "device",
|
|
@@ -36326,6 +36451,11 @@ Object.freeze({
|
|
|
36326
36451
|
form: "single",
|
|
36327
36452
|
optional: false
|
|
36328
36453
|
}],
|
|
36454
|
+
"deviceManager.getBindingsBatch": [{
|
|
36455
|
+
name: "deviceIds",
|
|
36456
|
+
form: "array",
|
|
36457
|
+
optional: false
|
|
36458
|
+
}],
|
|
36329
36459
|
"deviceManager.getChildren": [{
|
|
36330
36460
|
name: "parentDeviceId",
|
|
36331
36461
|
form: "single",
|
|
@@ -36371,6 +36501,11 @@ Object.freeze({
|
|
|
36371
36501
|
form: "single",
|
|
36372
36502
|
optional: false
|
|
36373
36503
|
}],
|
|
36504
|
+
"deviceManager.getLinkedDevicesBatch": [{
|
|
36505
|
+
name: "deviceIds",
|
|
36506
|
+
form: "array",
|
|
36507
|
+
optional: false
|
|
36508
|
+
}],
|
|
36374
36509
|
"deviceManager.getSettingsSchema": [{
|
|
36375
36510
|
name: "deviceId",
|
|
36376
36511
|
form: "single",
|
|
@@ -36391,6 +36526,11 @@ Object.freeze({
|
|
|
36391
36526
|
form: "single",
|
|
36392
36527
|
optional: false
|
|
36393
36528
|
}],
|
|
36529
|
+
"deviceManager.listAll": [{
|
|
36530
|
+
name: "deviceIds",
|
|
36531
|
+
form: "array",
|
|
36532
|
+
optional: true
|
|
36533
|
+
}],
|
|
36394
36534
|
"deviceManager.loadConfig": [{
|
|
36395
36535
|
name: "deviceId",
|
|
36396
36536
|
form: "single",
|
|
@@ -36964,6 +37104,11 @@ Object.freeze({
|
|
|
36964
37104
|
form: "single",
|
|
36965
37105
|
optional: false
|
|
36966
37106
|
}],
|
|
37107
|
+
"pipelineAnalytics.getGroup": [{
|
|
37108
|
+
name: "deviceId",
|
|
37109
|
+
form: "single",
|
|
37110
|
+
optional: false
|
|
37111
|
+
}],
|
|
36967
37112
|
"pipelineAnalytics.getKeyEvents": [{
|
|
36968
37113
|
name: "deviceId",
|
|
36969
37114
|
form: "single",
|
|
@@ -37019,6 +37164,11 @@ Object.freeze({
|
|
|
37019
37164
|
form: "array",
|
|
37020
37165
|
optional: false
|
|
37021
37166
|
}],
|
|
37167
|
+
"pipelineAnalytics.listGroups": [{
|
|
37168
|
+
name: "deviceIds",
|
|
37169
|
+
form: "array",
|
|
37170
|
+
optional: false
|
|
37171
|
+
}],
|
|
37022
37172
|
"pipelineAnalytics.listOpsLog": [{
|
|
37023
37173
|
name: "deviceId",
|
|
37024
37174
|
form: "single",
|
|
@@ -5800,6 +5800,13 @@ var BaseAddon = class {
|
|
|
5800
5800
|
_readinessGeneration = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
|
|
5801
5801
|
/** Capability names this addon registered at init — used to emit matching `down` events on shutdown. */
|
|
5802
5802
|
_registeredCapNames = [];
|
|
5803
|
+
/**
|
|
5804
|
+
* True only after `readAddonStore` actually answered. Constructor
|
|
5805
|
+
* defaults look like stored config when the store is down — a forked
|
|
5806
|
+
* addon that auto-starts from those defaults (cloudflare-tunnel quick
|
|
5807
|
+
* mode, 2026-08-25) is not "the operator chose this".
|
|
5808
|
+
*/
|
|
5809
|
+
settingsStoreReady = false;
|
|
5803
5810
|
/** Default config values. Provided via constructor. */
|
|
5804
5811
|
defaults;
|
|
5805
5812
|
constructor(defaults) {
|
|
@@ -6200,7 +6207,9 @@ var BaseAddon = class {
|
|
|
6200
6207
|
];
|
|
6201
6208
|
let lastErr;
|
|
6202
6209
|
for (let attempt = 0; attempt <= delaysMs.length; attempt++) try {
|
|
6203
|
-
|
|
6210
|
+
const stored = await settings.readAddonStore() ?? {};
|
|
6211
|
+
this.settingsStoreReady = true;
|
|
6212
|
+
return stored;
|
|
6204
6213
|
} catch (err) {
|
|
6205
6214
|
lastErr = err;
|
|
6206
6215
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -6208,6 +6217,7 @@ var BaseAddon = class {
|
|
|
6208
6217
|
if (attempt === delaysMs.length) break;
|
|
6209
6218
|
await new Promise((r) => setTimeout(r, delaysMs[attempt]));
|
|
6210
6219
|
}
|
|
6220
|
+
this.settingsStoreReady = false;
|
|
6211
6221
|
this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: lastErr instanceof Error ? lastErr.message : String(lastErr) } });
|
|
6212
6222
|
return {};
|
|
6213
6223
|
}
|
|
@@ -8230,6 +8240,12 @@ var ModelVariantGroupSchema = object({
|
|
|
8230
8240
|
*/
|
|
8231
8241
|
resolution: number().int().positive().optional()
|
|
8232
8242
|
});
|
|
8243
|
+
var ModelProviderIdSchema = _enum([
|
|
8244
|
+
"camstack",
|
|
8245
|
+
"frigate",
|
|
8246
|
+
"scrypted",
|
|
8247
|
+
"custom"
|
|
8248
|
+
]);
|
|
8233
8249
|
var ModelCatalogEntrySchema = object({
|
|
8234
8250
|
id: string(),
|
|
8235
8251
|
name: string(),
|
|
@@ -8327,6 +8343,12 @@ var ModelCatalogEntrySchema = object({
|
|
|
8327
8343
|
*/
|
|
8328
8344
|
group: ModelVariantGroupSchema.optional(),
|
|
8329
8345
|
/**
|
|
8346
|
+
* Catalog source for the pipeline stepper's provider-first picker. Absent on
|
|
8347
|
+
* built-in CamStack entries (treated as `camstack`) and on registry rows
|
|
8348
|
+
* persisted before this field existed (`inferModelProvider` fills those).
|
|
8349
|
+
*/
|
|
8350
|
+
provider: ModelProviderIdSchema.optional(),
|
|
8351
|
+
/**
|
|
8330
8352
|
* Per-MODEL class map override. Absent ⇒ the step's `StepDefinition.classMap`
|
|
8331
8353
|
* applies (Frigate / COCO public catalog). Set on a custom model whose raw
|
|
8332
8354
|
* labels already ARE the CamStack macros (Scrypted identity map).
|
|
@@ -12273,6 +12295,27 @@ var LinkedDeviceSchema = object({
|
|
|
12273
12295
|
features: array(string()),
|
|
12274
12296
|
producesTrackedEvents: boolean().optional()
|
|
12275
12297
|
});
|
|
12298
|
+
/** One camera's resolved linked set, tagged with the camera it belongs to.
|
|
12299
|
+
* The batch answer needs the tag; the single-device answer already has it
|
|
12300
|
+
* from the input, which is why `getLinkedDevices` keeps the untagged shape. */
|
|
12301
|
+
var LinkedDevicesForDeviceSchema = object({
|
|
12302
|
+
deviceId: number(),
|
|
12303
|
+
mode: LinkedDevicesModeSchema,
|
|
12304
|
+
devices: array(LinkedDeviceSchema)
|
|
12305
|
+
});
|
|
12306
|
+
/** One device's binding map — the shape `getBindings`, `getBindingsBatch` and
|
|
12307
|
+
* `getAllBindings` all answer in. Declared once: three copies of the same
|
|
12308
|
+
* object literal is exactly how the three drift apart. */
|
|
12309
|
+
var DeviceBindingsForDeviceSchema = object({
|
|
12310
|
+
deviceId: number(),
|
|
12311
|
+
entries: array(object({
|
|
12312
|
+
capName: string(),
|
|
12313
|
+
kind: _enum(["native", "wrapped"]),
|
|
12314
|
+
providerAddonId: string(),
|
|
12315
|
+
providerNodeId: string(),
|
|
12316
|
+
nativeAddonId: string()
|
|
12317
|
+
}))
|
|
12318
|
+
});
|
|
12276
12319
|
var SavedDeviceRowSchema = object({
|
|
12277
12320
|
/** Numeric id reserved at allocateDeviceId time. */
|
|
12278
12321
|
id: number(),
|
|
@@ -12498,11 +12541,25 @@ method(object({
|
|
|
12498
12541
|
projection: _enum(["full", "slim"]).optional(),
|
|
12499
12542
|
/** Return only camera devices. Filtering server-side instead of
|
|
12500
12543
|
* shipping 293 rows to find 12. */
|
|
12501
|
-
isCamera: boolean().optional()
|
|
12544
|
+
isCamera: boolean().optional(),
|
|
12545
|
+
/**
|
|
12546
|
+
* Return only these device ids. For the caller that already KNOWS the
|
|
12547
|
+
* handful it wants and needs a field the id-bearing answer does not
|
|
12548
|
+
* carry — the viewer's linked-devices panel joins `type` and `online`
|
|
12549
|
+
* onto ~8 linked ids and, unfiltered, dragged the fleet across to do
|
|
12550
|
+
* it: 433 KB slim / 958 KB full for 967 devices, on a query that
|
|
12551
|
+
* refetches on the reconcile interval, on a phone.
|
|
12552
|
+
*
|
|
12553
|
+
* Safe to send at a hub that predates it: Zod STRIPS unknown input
|
|
12554
|
+
* keys rather than rejecting them (verified against the live hub
|
|
12555
|
+
* 2026-08-25 — 967 rows came back), so an old hub answers exactly what
|
|
12556
|
+
* it answers today and the caller filters as it already does.
|
|
12557
|
+
*/
|
|
12558
|
+
deviceIds: array(number()).optional()
|
|
12502
12559
|
}), array(DeviceInfoSchema)), method(object({ deviceId: number() }), DeviceInfoSchema.nullable()), method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)), method(object({ deviceId: number() }), object({
|
|
12503
12560
|
mode: LinkedDevicesModeSchema,
|
|
12504
12561
|
devices: array(LinkedDeviceSchema)
|
|
12505
|
-
})), method(object({ deviceId: number() }), array(StreamSourceEntrySchema$1)), method(object({ deviceId: number() }), array(ConfigEntrySchema)), method(object({ deviceId: number() }), ConfigUISchemaOutput), method(object({
|
|
12562
|
+
})), 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({
|
|
12506
12563
|
deviceId: number(),
|
|
12507
12564
|
values: record(string(), unknown())
|
|
12508
12565
|
}), object({ success: literal(true) }), {
|
|
@@ -12529,25 +12586,7 @@ method(object({
|
|
|
12529
12586
|
}), method(object({ deviceId: number() }), array(StreamProbeResultSchema), {
|
|
12530
12587
|
kind: "mutation",
|
|
12531
12588
|
auth: "admin"
|
|
12532
|
-
}), method(object({ deviceId: number() }), object({
|
|
12533
|
-
deviceId: number(),
|
|
12534
|
-
entries: array(object({
|
|
12535
|
-
capName: string(),
|
|
12536
|
-
kind: _enum(["native", "wrapped"]),
|
|
12537
|
-
providerAddonId: string(),
|
|
12538
|
-
providerNodeId: string(),
|
|
12539
|
-
nativeAddonId: string()
|
|
12540
|
-
}))
|
|
12541
|
-
})), method(object({}), array(object({
|
|
12542
|
-
deviceId: number(),
|
|
12543
|
-
entries: array(object({
|
|
12544
|
-
capName: string(),
|
|
12545
|
-
kind: _enum(["native", "wrapped"]),
|
|
12546
|
-
providerAddonId: string(),
|
|
12547
|
-
providerNodeId: string(),
|
|
12548
|
-
nativeAddonId: string()
|
|
12549
|
-
}))
|
|
12550
|
-
}))), method(object({
|
|
12589
|
+
}), method(object({ deviceId: number() }), DeviceBindingsForDeviceSchema), method(object({ deviceIds: array(number()) }), array(DeviceBindingsForDeviceSchema)), method(object({}), array(DeviceBindingsForDeviceSchema)), method(object({
|
|
12551
12590
|
deviceId: number(),
|
|
12552
12591
|
capName: string(),
|
|
12553
12592
|
wrapperAddonId: string(),
|
|
@@ -14971,12 +15010,15 @@ var NcOccupancyConditionSchema = object({
|
|
|
14971
15010
|
* there is no second switch that can disagree with the first and every rule
|
|
14972
15011
|
* authored before the decision migrates for free (`audioModeOf`):
|
|
14973
15012
|
*
|
|
14974
|
-
* - **LABEL mode — `labels` present.** The rule fires
|
|
14975
|
-
*
|
|
14976
|
-
* `hitPercent` and `samplingSeconds` are ignored
|
|
14977
|
-
*
|
|
14978
|
-
*
|
|
14979
|
-
*
|
|
15013
|
+
* - **LABEL mode — `labels` present.** The rule fires when `confirmHits`
|
|
15014
|
+
* labelled frames land inside `confirmWindowSec` (default 2 in 5 s).
|
|
15015
|
+
* `hitPercent` and `samplingSeconds` are still ignored — a percentage of
|
|
15016
|
+
* frames is the wrong question for a classifier that labels 1–3 frames
|
|
15017
|
+
* per episode. The count window is the brake that drops a single-frame
|
|
15018
|
+
* false positive; the rule's own `throttle` cooldown is the other. The
|
|
15019
|
+
* per-label confidence floor is the analyzer's (`classificationMinScore`,
|
|
15020
|
+
* per device) — a label only reaches this condition if the classifier was
|
|
15021
|
+
* already confident enough. `confirmHits: 1` restores first-frame fire.
|
|
14980
15022
|
* - **LEVEL mode — `dbThreshold` present, no labels.** The sampling window IS
|
|
14981
15023
|
* the condition: at least `hitPercent`% of the samples over
|
|
14982
15024
|
* `samplingSeconds` must be at or above `dbThreshold` dBFS (see
|
|
@@ -15003,14 +15045,22 @@ var NcOccupancyConditionSchema = object({
|
|
|
15003
15045
|
* an operator who typed `dog` mean the same thing.
|
|
15004
15046
|
*/
|
|
15005
15047
|
var NcAudioConditionSchema = object({
|
|
15006
|
-
/** LABEL MODE: audio macro labels. Present ⇒
|
|
15048
|
+
/** LABEL MODE: audio macro labels. Present ⇒ count-in-window confirm. */
|
|
15007
15049
|
labels: array(string().min(1)).min(1).optional(),
|
|
15008
15050
|
/** LEVEL MODE: floor in dBFS (negative-going, `0` = full scale). */
|
|
15009
15051
|
dbThreshold: number().min(-96).max(0).optional(),
|
|
15010
15052
|
/** LEVEL MODE ONLY: percentage of the window's samples that must be hits (1–100). */
|
|
15011
15053
|
hitPercent: number().int().min(1).max(100).default(60),
|
|
15012
15054
|
/** LEVEL MODE ONLY: length of the sampling window in seconds. */
|
|
15013
|
-
samplingSeconds: number().int().min(1).max(300).default(10)
|
|
15055
|
+
samplingSeconds: number().int().min(1).max(300).default(10),
|
|
15056
|
+
/**
|
|
15057
|
+
* LABEL MODE: how many labelled frames must land inside
|
|
15058
|
+
* {@link NcAudioConditionSchema.shape.confirmWindowSec} before dispatch.
|
|
15059
|
+
* Absent ⇒ 2 (the matcher default). `1` is first-frame fire.
|
|
15060
|
+
*/
|
|
15061
|
+
confirmHits: number().int().min(1).max(20).optional(),
|
|
15062
|
+
/** LABEL MODE: the window those frames must share, in seconds. Absent ⇒ 5. */
|
|
15063
|
+
confirmWindowSec: number().int().min(1).max(60).optional()
|
|
15014
15064
|
});
|
|
15015
15065
|
/**
|
|
15016
15066
|
* Which zone-crossing DIRECTION a rule accepts (`ObjectEvent.zoneCrossing`).
|
|
@@ -17390,6 +17440,46 @@ var RecentTracksPageSchema = object({
|
|
|
17390
17440
|
/** Cursor for the next page, or null when this page is the last. */
|
|
17391
17441
|
nextCursor: string().nullable()
|
|
17392
17442
|
});
|
|
17443
|
+
var LIST_GROUPS_DEFAULT_LIMIT = 40;
|
|
17444
|
+
var LIST_GROUPS_MAX_LIMIT = 100;
|
|
17445
|
+
var AnalyticsGroupRecordSchema = object({
|
|
17446
|
+
id: string(),
|
|
17447
|
+
deviceId: number().int(),
|
|
17448
|
+
openedAt: number().int(),
|
|
17449
|
+
closedAt: number().int(),
|
|
17450
|
+
timestamp: number().int(),
|
|
17451
|
+
memberCount: number().int(),
|
|
17452
|
+
memberTrackIds: array(string()).readonly(),
|
|
17453
|
+
className: string(),
|
|
17454
|
+
classes: array(string()).readonly(),
|
|
17455
|
+
/** Relative event-media path, or null when the group has no picture yet. */
|
|
17456
|
+
mediaUrl: string().nullable(),
|
|
17457
|
+
singleton: boolean()
|
|
17458
|
+
});
|
|
17459
|
+
var AnalyticsGroupMemberSchema = object({
|
|
17460
|
+
trackId: string(),
|
|
17461
|
+
deviceId: number().int(),
|
|
17462
|
+
className: string(),
|
|
17463
|
+
firstSeen: number().int(),
|
|
17464
|
+
lastSeen: number().int(),
|
|
17465
|
+
mediaUrl: string().nullable()
|
|
17466
|
+
});
|
|
17467
|
+
var AnalyticsGroupDetailSchema = AnalyticsGroupRecordSchema.extend({ members: array(AnalyticsGroupMemberSchema).readonly() });
|
|
17468
|
+
var ListGroupsQueryInput = object({
|
|
17469
|
+
/** Devices to merge. An empty array yields `{ groups: [], nextCursor: null }`. */
|
|
17470
|
+
deviceIds: array(number()),
|
|
17471
|
+
/** Window lower bound on `closedAt` (inclusive). */
|
|
17472
|
+
since: number().optional(),
|
|
17473
|
+
/** Window upper bound on `openedAt` (inclusive). */
|
|
17474
|
+
until: number().optional(),
|
|
17475
|
+
limit: number().int().min(1).max(LIST_GROUPS_MAX_LIMIT).default(LIST_GROUPS_DEFAULT_LIMIT),
|
|
17476
|
+
/** Opaque continuation cursor from a previous page's `nextCursor`. */
|
|
17477
|
+
cursor: string().optional()
|
|
17478
|
+
});
|
|
17479
|
+
var ListGroupsPageSchema = object({
|
|
17480
|
+
groups: array(AnalyticsGroupRecordSchema).readonly(),
|
|
17481
|
+
nextCursor: string().nullable()
|
|
17482
|
+
});
|
|
17393
17483
|
var KeyEventQueryInput = object({
|
|
17394
17484
|
deviceId: number(),
|
|
17395
17485
|
/** Window lower bound (track firstSeen ≥ since). */
|
|
@@ -17465,7 +17555,9 @@ var TrackCascadeCountsSchema = object({
|
|
|
17465
17555
|
/** Unassigned plate reads removed (best-effort; plate leg deferred to plate-intelligence). */
|
|
17466
17556
|
plates: number().int(),
|
|
17467
17557
|
/** Per-track CLIP search vectors removed (best-effort). */
|
|
17468
|
-
embeddings: number().int()
|
|
17558
|
+
embeddings: number().int(),
|
|
17559
|
+
/** Group membership + group rows removed with their last member (best-effort). */
|
|
17560
|
+
groups: number().int()
|
|
17469
17561
|
});
|
|
17470
17562
|
/** Disk-wins reconcile: media rows whose blobs are gone, then empty tracks. */
|
|
17471
17563
|
var DiskReconcileCountsSchema = object({
|
|
@@ -17611,7 +17703,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
17611
17703
|
* stationary registry). Default false: the timeline lists passages,
|
|
17612
17704
|
* not parking records (operator decision, 2026-08-15). */
|
|
17613
17705
|
includeStationary: boolean().optional()
|
|
17614
|
-
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(
|
|
17706
|
+
}), array(TrackSchema).readonly()), method(RecentTracksQueryInput, RecentTracksPageSchema), method(ListGroupsQueryInput, ListGroupsPageSchema), method(object({
|
|
17707
|
+
deviceId: number(),
|
|
17708
|
+
groupId: string().min(1)
|
|
17709
|
+
}), AnalyticsGroupDetailSchema.nullable()), method(object({ deviceId: number() }), _void(), {
|
|
17615
17710
|
kind: "mutation",
|
|
17616
17711
|
auth: "admin"
|
|
17617
17712
|
}), 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({
|
|
@@ -17921,7 +18016,8 @@ var PipelineModelOptionSchema = object({
|
|
|
17921
18016
|
sizeMB: number()
|
|
17922
18017
|
})),
|
|
17923
18018
|
group: ModelVariantGroupSchema.optional(),
|
|
17924
|
-
legacy: boolean().optional()
|
|
18019
|
+
legacy: boolean().optional(),
|
|
18020
|
+
provider: ModelProviderIdSchema.optional()
|
|
17925
18021
|
});
|
|
17926
18022
|
var ConfigFieldBridge = custom();
|
|
17927
18023
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -26107,7 +26203,12 @@ var PlateInfoSchema = object({
|
|
|
26107
26203
|
plateBbox: BoundingBoxSchema.optional(),
|
|
26108
26204
|
/** keyFrame parity: MediaStore key of the track's native-resolution key frame. */
|
|
26109
26205
|
keyFrameMediaKey: string().optional(),
|
|
26110
|
-
base64: string().optional()
|
|
26206
|
+
base64: string().optional(),
|
|
26207
|
+
/**
|
|
26208
|
+
* Same crop as a data-plane URL. `getPlateByTrack` returns this and
|
|
26209
|
+
* never inlines JPEG; `listPlates` still inlines for the admin-ui.
|
|
26210
|
+
*/
|
|
26211
|
+
cropUrl: string().optional()
|
|
26111
26212
|
});
|
|
26112
26213
|
var MediaFileLiteSchema = object({
|
|
26113
26214
|
key: string(),
|
|
@@ -31631,6 +31732,12 @@ Object.freeze({
|
|
|
31631
31732
|
addonId: null,
|
|
31632
31733
|
access: "view"
|
|
31633
31734
|
},
|
|
31735
|
+
"deviceManager.getBindingsBatch": {
|
|
31736
|
+
capName: "device-manager",
|
|
31737
|
+
capScope: "system",
|
|
31738
|
+
addonId: null,
|
|
31739
|
+
access: "view"
|
|
31740
|
+
},
|
|
31634
31741
|
"deviceManager.getChildren": {
|
|
31635
31742
|
capName: "device-manager",
|
|
31636
31743
|
capScope: "system",
|
|
@@ -31691,6 +31798,12 @@ Object.freeze({
|
|
|
31691
31798
|
addonId: null,
|
|
31692
31799
|
access: "view"
|
|
31693
31800
|
},
|
|
31801
|
+
"deviceManager.getLinkedDevicesBatch": {
|
|
31802
|
+
capName: "device-manager",
|
|
31803
|
+
capScope: "system",
|
|
31804
|
+
addonId: null,
|
|
31805
|
+
access: "view"
|
|
31806
|
+
},
|
|
31694
31807
|
"deviceManager.getRoleDisplayDefaults": {
|
|
31695
31808
|
capName: "device-manager",
|
|
31696
31809
|
capScope: "system",
|
|
@@ -33461,6 +33574,12 @@ Object.freeze({
|
|
|
33461
33574
|
addonId: null,
|
|
33462
33575
|
access: "view"
|
|
33463
33576
|
},
|
|
33577
|
+
"pipelineAnalytics.getGroup": {
|
|
33578
|
+
capName: "pipeline-analytics",
|
|
33579
|
+
capScope: "device",
|
|
33580
|
+
addonId: null,
|
|
33581
|
+
access: "view"
|
|
33582
|
+
},
|
|
33464
33583
|
"pipelineAnalytics.getKeyEvents": {
|
|
33465
33584
|
capName: "pipeline-analytics",
|
|
33466
33585
|
capScope: "device",
|
|
@@ -33545,6 +33664,12 @@ Object.freeze({
|
|
|
33545
33664
|
addonId: null,
|
|
33546
33665
|
access: "view"
|
|
33547
33666
|
},
|
|
33667
|
+
"pipelineAnalytics.listGroups": {
|
|
33668
|
+
capName: "pipeline-analytics",
|
|
33669
|
+
capScope: "device",
|
|
33670
|
+
addonId: null,
|
|
33671
|
+
access: "view"
|
|
33672
|
+
},
|
|
33548
33673
|
"pipelineAnalytics.listOpsLog": {
|
|
33549
33674
|
capName: "pipeline-analytics",
|
|
33550
33675
|
capScope: "device",
|
|
@@ -36326,6 +36451,11 @@ Object.freeze({
|
|
|
36326
36451
|
form: "single",
|
|
36327
36452
|
optional: false
|
|
36328
36453
|
}],
|
|
36454
|
+
"deviceManager.getBindingsBatch": [{
|
|
36455
|
+
name: "deviceIds",
|
|
36456
|
+
form: "array",
|
|
36457
|
+
optional: false
|
|
36458
|
+
}],
|
|
36329
36459
|
"deviceManager.getChildren": [{
|
|
36330
36460
|
name: "parentDeviceId",
|
|
36331
36461
|
form: "single",
|
|
@@ -36371,6 +36501,11 @@ Object.freeze({
|
|
|
36371
36501
|
form: "single",
|
|
36372
36502
|
optional: false
|
|
36373
36503
|
}],
|
|
36504
|
+
"deviceManager.getLinkedDevicesBatch": [{
|
|
36505
|
+
name: "deviceIds",
|
|
36506
|
+
form: "array",
|
|
36507
|
+
optional: false
|
|
36508
|
+
}],
|
|
36374
36509
|
"deviceManager.getSettingsSchema": [{
|
|
36375
36510
|
name: "deviceId",
|
|
36376
36511
|
form: "single",
|
|
@@ -36391,6 +36526,11 @@ Object.freeze({
|
|
|
36391
36526
|
form: "single",
|
|
36392
36527
|
optional: false
|
|
36393
36528
|
}],
|
|
36529
|
+
"deviceManager.listAll": [{
|
|
36530
|
+
name: "deviceIds",
|
|
36531
|
+
form: "array",
|
|
36532
|
+
optional: true
|
|
36533
|
+
}],
|
|
36394
36534
|
"deviceManager.loadConfig": [{
|
|
36395
36535
|
name: "deviceId",
|
|
36396
36536
|
form: "single",
|
|
@@ -36964,6 +37104,11 @@ Object.freeze({
|
|
|
36964
37104
|
form: "single",
|
|
36965
37105
|
optional: false
|
|
36966
37106
|
}],
|
|
37107
|
+
"pipelineAnalytics.getGroup": [{
|
|
37108
|
+
name: "deviceId",
|
|
37109
|
+
form: "single",
|
|
37110
|
+
optional: false
|
|
37111
|
+
}],
|
|
36967
37112
|
"pipelineAnalytics.getKeyEvents": [{
|
|
36968
37113
|
name: "deviceId",
|
|
36969
37114
|
form: "single",
|
|
@@ -37019,6 +37164,11 @@ Object.freeze({
|
|
|
37019
37164
|
form: "array",
|
|
37020
37165
|
optional: false
|
|
37021
37166
|
}],
|
|
37167
|
+
"pipelineAnalytics.listGroups": [{
|
|
37168
|
+
name: "deviceIds",
|
|
37169
|
+
form: "array",
|
|
37170
|
+
optional: false
|
|
37171
|
+
}],
|
|
37022
37172
|
"pipelineAnalytics.listOpsLog": [{
|
|
37023
37173
|
name: "deviceId",
|
|
37024
37174
|
form: "single",
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
//#endregion
|
|
6
|
-
const require_dist = require("../dist-
|
|
6
|
+
const require_dist = require("../dist-t-5RdKBJ.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
//#region src/ha-export/topics.ts
|
|
9
9
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as deviceExportCapability, Ot as EventCategory, S as buildAddonRouteProvider, Y as oauthIntegrationCapability, a as CameraSwitchIdSchema, c as HvacModeSchema, f as addonRoutesCapability, ft as BaseAddon, i as COCO_TO_MACRO, l as MediaPlayerRepeatSchema, s as FanDirectionSchema, t as AlarmArmModeSchema, wt as string } from "../dist-
|
|
1
|
+
import { M as deviceExportCapability, Ot as EventCategory, S as buildAddonRouteProvider, Y as oauthIntegrationCapability, a as CameraSwitchIdSchema, c as HvacModeSchema, f as addonRoutesCapability, ft as BaseAddon, i as COCO_TO_MACRO, l as MediaPlayerRepeatSchema, s as FanDirectionSchema, t as AlarmArmModeSchema, wt as string } from "../dist-D1G6jUej.mjs";
|
|
2
2
|
import { createHmac, timingSafeEqual } from "node:crypto";
|
|
3
3
|
//#region src/ha-export/topics.ts
|
|
4
4
|
/**
|