@camstack/types 1.2.8 → 1.2.10
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 +2 -2
- package/dist/addon.mjs +2 -2
- package/dist/capabilities/custom-actions.d.ts +19 -0
- package/dist/capabilities/day-night.cap.d.ts +8 -8
- package/dist/capabilities/face-gallery.cap.d.ts +12 -0
- package/dist/capabilities/index.d.ts +28 -31
- package/dist/capabilities/notification-rules.cap.d.ts +698 -5
- package/dist/capabilities/notifier.cap.d.ts +3 -3
- package/dist/capabilities/toast.cap.d.ts +2 -2
- package/dist/catalogs/nc-taxonomy.d.ts +53 -0
- package/dist/enums/event-category.d.ts +0 -3
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/{event-category-D4HJq7Mw.mjs → event-category-BLcNejAE.mjs} +0 -3
- package/dist/{event-category-CGj9fI4L.js → event-category-Cdyife4p.js} +0 -3
- package/dist/generated/addon-api.d.ts +474 -334
- package/dist/generated/capability-router-map.d.ts +2 -5
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1357 -981
- package/dist/index.mjs +1190 -824
- package/dist/interfaces/addon.d.ts +2 -2
- package/dist/interfaces/capability.d.ts +0 -1
- package/dist/interfaces/event-bus.d.ts +0 -16
- package/dist/{sleep-D1IRluEi.js → sleep-BG8hQTA8.js} +1 -1
- package/dist/{sleep-BTyHhhpv.mjs → sleep-DiOnzenz.mjs} +1 -1
- package/package.json +1 -1
- package/dist/capabilities/advanced-notifier.cap.d.ts +0 -256
- package/dist/interfaces/advanced-notifier.d.ts +0 -73
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as StreamSourceSchema, A as parseJsonUnknown, B as CamProfileSchema, C as asBoolean, D as asString, E as asNumber, F as readinessKey, G as DecodedFrameSchema, H as CamStreamResolutionSchema, I as scopeKey, J as FrameHandleSchema, K as EncodedPacketSchema, L as BrokerStatsSchema, M as ReadinessRegistry, N as ReadinessTimeoutError, O as parseJsonArray, P as emitDownForOwnedCaps, Q as StreamSourceEntrySchema, R as BrokerStatusSchema, S as DeviceType, T as asJsonObject, U as CameraStreamSchema, V as CamStreamKindSchema, W as DecodedAudioChunkSchema, X as ProfileSlotSchema, Y as ProfileRtspEntrySchema, Z as ProfileSlotStatusSchema, _ as resolveCapMount, _t as collectHydratedFieldValues, a as viewerUiCapability, at as makeSourceBrokerId, b as DeviceFeature, bt as DisposerChain, c as createLazyTrpcSource, ct as BaseAddon, d as DEVICE_SETTINGS_CONTRIBUTION_METHODS, dt as createEvent, et as SubscribeAudioChunksInputSchema, f as DEVICE_STATUS_METHOD, ft as emitReadiness, g as method, gt as collectHydratedFieldEntries, h as isDeviceConfigCap, ht as WELL_KNOWN_TAB_MAP, i as deviceOpsCapability, it as makeProfileBrokerId, j as DATAPLANE_SECRET_HEADER, k as parseJsonObject, l as createMirrorSource, lt as normalizeAddonInitResult, m as expandCapMethods, mt as WELL_KNOWN_TABS, n as sleepCancellable, nt as SubscribeFramesInputSchema, o as adminUiCapability, ot as parseProfileBrokerId, p as event, pt as isEvent, q as FrameHandleFormatSchema, r as RawStateResultSchema, rt as SubscribeFramesResultSchema, s as createDeviceProxy, st as selectAssignedProfileSlots, t as sleep, tt as SubscribeAudioChunksResultSchema, u as createSliceHandle, ut as createDurableState, v as systemMethod, vt as hydrateSchema, w as asJsonArray, x as DeviceRole, y as ChargingStatus, yt as resolveHydratedFieldValue, z as CAM_PROFILE_ORDER } from "./sleep-
|
|
2
|
-
import { t as EventCategory } from "./event-category-
|
|
1
|
+
import { $ as StreamSourceSchema, A as parseJsonUnknown, B as CamProfileSchema, C as asBoolean, D as asString, E as asNumber, F as readinessKey, G as DecodedFrameSchema, H as CamStreamResolutionSchema, I as scopeKey, J as FrameHandleSchema, K as EncodedPacketSchema, L as BrokerStatsSchema, M as ReadinessRegistry, N as ReadinessTimeoutError, O as parseJsonArray, P as emitDownForOwnedCaps, Q as StreamSourceEntrySchema, R as BrokerStatusSchema, S as DeviceType, T as asJsonObject, U as CameraStreamSchema, V as CamStreamKindSchema, W as DecodedAudioChunkSchema, X as ProfileSlotSchema, Y as ProfileRtspEntrySchema, Z as ProfileSlotStatusSchema, _ as resolveCapMount, _t as collectHydratedFieldValues, a as viewerUiCapability, at as makeSourceBrokerId, b as DeviceFeature, bt as DisposerChain, c as createLazyTrpcSource, ct as BaseAddon, d as DEVICE_SETTINGS_CONTRIBUTION_METHODS, dt as createEvent, et as SubscribeAudioChunksInputSchema, f as DEVICE_STATUS_METHOD, ft as emitReadiness, g as method, gt as collectHydratedFieldEntries, h as isDeviceConfigCap, ht as WELL_KNOWN_TAB_MAP, i as deviceOpsCapability, it as makeProfileBrokerId, j as DATAPLANE_SECRET_HEADER, k as parseJsonObject, l as createMirrorSource, lt as normalizeAddonInitResult, m as expandCapMethods, mt as WELL_KNOWN_TABS, n as sleepCancellable, nt as SubscribeFramesInputSchema, o as adminUiCapability, ot as parseProfileBrokerId, p as event, pt as isEvent, q as FrameHandleFormatSchema, r as RawStateResultSchema, rt as SubscribeFramesResultSchema, s as createDeviceProxy, st as selectAssignedProfileSlots, t as sleep, tt as SubscribeAudioChunksResultSchema, u as createSliceHandle, ut as createDurableState, v as systemMethod, vt as hydrateSchema, w as asJsonArray, x as DeviceRole, y as ChargingStatus, yt as resolveHydratedFieldValue, z as CAM_PROFILE_ORDER } from "./sleep-DiOnzenz.mjs";
|
|
2
|
+
import { t as EventCategory } from "./event-category-BLcNejAE.mjs";
|
|
3
3
|
import { EventSourceType } from "./enums.mjs";
|
|
4
4
|
import { t as errMsg } from "./err-msg-IQTHeDzc.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -2944,6 +2944,63 @@ function subKindsOf(macro) {
|
|
|
2944
2944
|
return out;
|
|
2945
2945
|
}
|
|
2946
2946
|
//#endregion
|
|
2947
|
+
//#region src/catalogs/nc-taxonomy.ts
|
|
2948
|
+
/**
|
|
2949
|
+
* Notification-Center taxonomy — the fixed vocabulary the NC rule editor
|
|
2950
|
+
* offers as pickers instead of free text. Derived (never hand-listed) from the
|
|
2951
|
+
* single `EVENT_TAXONOMY` dictionary so it stays in lockstep with every other
|
|
2952
|
+
* taxonomy surface (timeline, filters, event page).
|
|
2953
|
+
*
|
|
2954
|
+
* Three buckets, mapped onto the rule editor's `stringList` conditions:
|
|
2955
|
+
* - `videoClasses` → detection classes (person / vehicle / animal + subs)
|
|
2956
|
+
* for the `classes` / `classesExclude` conditions.
|
|
2957
|
+
* - `audioKinds` → audio-analyzer sub kinds (`audio-scream`, …) shown in
|
|
2958
|
+
* the same class picker, grouped under an Audio header.
|
|
2959
|
+
* - `labels` → sensor + control taxonomy kinds (doorbell / contact /
|
|
2960
|
+
* lock / …) for the `sensorKinds` device-event condition.
|
|
2961
|
+
*
|
|
2962
|
+
* Each entry carries `parentKind` so the client can group video subs under
|
|
2963
|
+
* their macro and sensor/control kinds under their category. This surface is
|
|
2964
|
+
* served ADDITIVELY on the `nc.getConditionCatalog` bridge response — no cap
|
|
2965
|
+
* method, no codegen — so it ships train-free with an addon deploy.
|
|
2966
|
+
*/
|
|
2967
|
+
/** One selectable taxonomy value: a stable kind id + display label + parent. */
|
|
2968
|
+
var NcTaxonomyEntrySchema = z.object({
|
|
2969
|
+
/** Stable kind id (e.g. 'person', 'car', 'audio-scream', 'doorbell'). */
|
|
2970
|
+
kind: z.string(),
|
|
2971
|
+
/** English fallback label (the UI translates via the event-kind i18n key). */
|
|
2972
|
+
label: z.string(),
|
|
2973
|
+
/** Macro/category parent for grouping ('car' → 'vehicle'); null for a top. */
|
|
2974
|
+
parentKind: z.string().nullable()
|
|
2975
|
+
});
|
|
2976
|
+
/** The complete NC picker taxonomy — three grouped buckets. */
|
|
2977
|
+
var NcTaxonomySchema = z.object({
|
|
2978
|
+
videoClasses: z.array(NcTaxonomyEntrySchema),
|
|
2979
|
+
audioKinds: z.array(NcTaxonomyEntrySchema),
|
|
2980
|
+
labels: z.array(NcTaxonomyEntrySchema)
|
|
2981
|
+
});
|
|
2982
|
+
function toEntry(kind, label, parentKind) {
|
|
2983
|
+
return {
|
|
2984
|
+
kind,
|
|
2985
|
+
label,
|
|
2986
|
+
parentKind
|
|
2987
|
+
};
|
|
2988
|
+
}
|
|
2989
|
+
/**
|
|
2990
|
+
* Build the NC taxonomy from `EVENT_TAXONOMY`. Insertion order is preserved
|
|
2991
|
+
* (macros before their subs), which the client relies on for stable grouping.
|
|
2992
|
+
*/
|
|
2993
|
+
function buildNcTaxonomy() {
|
|
2994
|
+
const all = Object.values(EVENT_TAXONOMY);
|
|
2995
|
+
return {
|
|
2996
|
+
videoClasses: all.filter((e) => e.category === "detection").map((e) => toEntry(e.kind, e.label, e.parentKind)),
|
|
2997
|
+
audioKinds: all.filter((e) => e.category === "audio" && e.level === "sub").map((e) => toEntry(e.kind, e.label, e.parentKind)),
|
|
2998
|
+
labels: all.filter((e) => e.category === "sensor" || e.category === "control").map((e) => toEntry(e.kind, e.label, e.parentKind))
|
|
2999
|
+
};
|
|
3000
|
+
}
|
|
3001
|
+
/** The frozen NC taxonomy, derived once from the taxonomy dictionary. */
|
|
3002
|
+
var NC_TAXONOMY = Object.freeze(buildNcTaxonomy());
|
|
3003
|
+
//#endregion
|
|
2947
3004
|
//#region src/types/device-type.ts
|
|
2948
3005
|
var DEVICE_TYPE_INFO = { ["camera"]: {
|
|
2949
3006
|
type: "camera",
|
|
@@ -13582,7 +13639,8 @@ function createSystemProxy(api) {
|
|
|
13582
13639
|
deleteRule: (input) => dispatch("notificationRules", "deleteRule", "mutation", input),
|
|
13583
13640
|
setRuleEnabled: (input) => dispatch("notificationRules", "setRuleEnabled", "mutation", input),
|
|
13584
13641
|
testRule: (input) => dispatch("notificationRules", "testRule", "mutation", input),
|
|
13585
|
-
getConditionCatalog: (input) => dispatch("notificationRules", "getConditionCatalog", "query", input)
|
|
13642
|
+
getConditionCatalog: (input) => dispatch("notificationRules", "getConditionCatalog", "query", input),
|
|
13643
|
+
getHistory: (input) => dispatch("notificationRules", "getHistory", "query", input)
|
|
13586
13644
|
},
|
|
13587
13645
|
pipelineExecutor: {
|
|
13588
13646
|
getAvailableEngines: (input) => dispatch("pipelineExecutor", "getAvailableEngines", "query", input),
|
|
@@ -14852,108 +14910,6 @@ var addonWidgetsCapability = {
|
|
|
14852
14910
|
methods: { listWidgets: method(z.void(), z.array(EnrichedWidgetMetadataSchema).readonly()) }
|
|
14853
14911
|
};
|
|
14854
14912
|
//#endregion
|
|
14855
|
-
//#region src/capabilities/advanced-notifier.cap.ts
|
|
14856
|
-
var NotificationRuleConditionsSchema = z.object({
|
|
14857
|
-
deviceIds: z.array(z.number()).readonly().optional(),
|
|
14858
|
-
classNames: z.array(z.string()).readonly().optional(),
|
|
14859
|
-
zoneIds: z.array(z.string()).readonly().optional(),
|
|
14860
|
-
minConfidence: z.number().optional(),
|
|
14861
|
-
source: z.enum([
|
|
14862
|
-
"pipeline",
|
|
14863
|
-
"onboard",
|
|
14864
|
-
"any"
|
|
14865
|
-
]).optional(),
|
|
14866
|
-
schedule: z.object({
|
|
14867
|
-
days: z.array(z.number()).readonly(),
|
|
14868
|
-
startHour: z.number(),
|
|
14869
|
-
endHour: z.number()
|
|
14870
|
-
}).optional(),
|
|
14871
|
-
cooldownSeconds: z.number().optional(),
|
|
14872
|
-
minDwellSeconds: z.number().optional(),
|
|
14873
|
-
/** Match against `event.data.eventType` token (e.g. `'press_long'`). When non-empty, only events
|
|
14874
|
-
* carrying a matching `data.eventType` string pass this condition. Rules without this field are
|
|
14875
|
-
* unaffected (back-compat). Distinct from `rule.eventTypes` which holds EventCategory strings. */
|
|
14876
|
-
eventTypeTokens: z.array(z.string()).readonly().optional(),
|
|
14877
|
-
/** Match detections whose CLIP image embedding is semantically similar to this free-text
|
|
14878
|
-
* description. Requires the embedding-encoder cap to have pre-warmed the text vector.
|
|
14879
|
-
* `minSimilarity` is the cosine similarity threshold in [0, 1]. */
|
|
14880
|
-
clipDescription: z.object({
|
|
14881
|
-
text: z.string().min(1),
|
|
14882
|
-
minSimilarity: z.number().min(0).max(1)
|
|
14883
|
-
}).optional(),
|
|
14884
|
-
/** Match events whose recognized-entity label (face identity name or plate
|
|
14885
|
-
* vehicle name, propagated onto `event.data.label`) is one of these values.
|
|
14886
|
-
* Empty/absent → unaffected (back-compat). Enables "notify me when <named
|
|
14887
|
-
* vehicle/person> is seen". */
|
|
14888
|
-
labels: z.array(z.string()).readonly().optional()
|
|
14889
|
-
});
|
|
14890
|
-
var NotificationRuleTemplateSchema = z.object({
|
|
14891
|
-
title: z.string(),
|
|
14892
|
-
body: z.string(),
|
|
14893
|
-
imageMode: z.enum([
|
|
14894
|
-
"crop",
|
|
14895
|
-
"annotated",
|
|
14896
|
-
"full",
|
|
14897
|
-
"none"
|
|
14898
|
-
])
|
|
14899
|
-
});
|
|
14900
|
-
var NotificationRuleSchema = z.object({
|
|
14901
|
-
id: z.string(),
|
|
14902
|
-
name: z.string(),
|
|
14903
|
-
enabled: z.boolean(),
|
|
14904
|
-
eventTypes: z.array(z.string()).readonly(),
|
|
14905
|
-
conditions: NotificationRuleConditionsSchema,
|
|
14906
|
-
outputs: z.array(z.string()).readonly(),
|
|
14907
|
-
template: NotificationRuleTemplateSchema.optional(),
|
|
14908
|
-
priority: z.enum([
|
|
14909
|
-
"low",
|
|
14910
|
-
"normal",
|
|
14911
|
-
"high",
|
|
14912
|
-
"critical"
|
|
14913
|
-
])
|
|
14914
|
-
});
|
|
14915
|
-
var NotificationTestResultSchema = z.object({
|
|
14916
|
-
ruleId: z.string(),
|
|
14917
|
-
eventId: z.string(),
|
|
14918
|
-
timestamp: z.number(),
|
|
14919
|
-
wouldFire: z.boolean(),
|
|
14920
|
-
reason: z.string().optional()
|
|
14921
|
-
});
|
|
14922
|
-
var NotificationHistoryEntrySchema = z.object({
|
|
14923
|
-
id: z.string(),
|
|
14924
|
-
ruleId: z.string(),
|
|
14925
|
-
ruleName: z.string(),
|
|
14926
|
-
eventId: z.string(),
|
|
14927
|
-
timestamp: z.number(),
|
|
14928
|
-
outputs: z.array(z.string()).readonly(),
|
|
14929
|
-
success: z.boolean(),
|
|
14930
|
-
error: z.string().optional(),
|
|
14931
|
-
deviceId: z.number().optional()
|
|
14932
|
-
});
|
|
14933
|
-
var NotificationHistoryFilterSchema = z.object({
|
|
14934
|
-
ruleId: z.string().optional(),
|
|
14935
|
-
deviceId: z.number().optional(),
|
|
14936
|
-
from: z.number().optional(),
|
|
14937
|
-
to: z.number().optional(),
|
|
14938
|
-
limit: z.number().optional()
|
|
14939
|
-
});
|
|
14940
|
-
var advancedNotifierCapability = {
|
|
14941
|
-
name: "advanced-notifier",
|
|
14942
|
-
scope: "system",
|
|
14943
|
-
mode: "singleton",
|
|
14944
|
-
internal: true,
|
|
14945
|
-
methods: {
|
|
14946
|
-
getRules: method(z.void(), z.object({ rules: z.array(NotificationRuleSchema).readonly() })),
|
|
14947
|
-
upsertRule: method(z.object({ rule: NotificationRuleSchema }), z.object({ success: z.literal(true) }), { kind: "mutation" }),
|
|
14948
|
-
deleteRule: method(z.object({ ruleId: z.string() }), z.object({ success: z.literal(true) }), { kind: "mutation" }),
|
|
14949
|
-
testRule: method(z.object({
|
|
14950
|
-
ruleId: z.string(),
|
|
14951
|
-
lookbackMinutes: z.number()
|
|
14952
|
-
}), z.object({ results: z.array(NotificationTestResultSchema).readonly() }), { kind: "mutation" }),
|
|
14953
|
-
getHistory: method(z.object({ filter: NotificationHistoryFilterSchema.optional() }), z.object({ entries: z.array(NotificationHistoryEntrySchema).readonly() }))
|
|
14954
|
-
}
|
|
14955
|
-
};
|
|
14956
|
-
//#endregion
|
|
14957
14913
|
//#region src/capabilities/alerts.cap.ts
|
|
14958
14914
|
/**
|
|
14959
14915
|
* Alerts capability — collection-based internal alert system.
|
|
@@ -15296,119 +15252,6 @@ var authProviderCapability = {
|
|
|
15296
15252
|
/** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
|
|
15297
15253
|
mount: { kind: "skip" }
|
|
15298
15254
|
};
|
|
15299
|
-
//#endregion
|
|
15300
|
-
//#region src/capabilities/login-method.cap.ts
|
|
15301
|
-
/**
|
|
15302
|
-
* `login-method` — collection cap through which auth addons contribute
|
|
15303
|
-
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
15304
|
-
* generic mechanism that supersedes the dead `auth.listProviders` reader:
|
|
15305
|
-
* every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
|
|
15306
|
-
* `login-method` provider and the PUBLIC `auth.listLoginMethods`
|
|
15307
|
-
* procedure aggregates them for the unauthenticated login page.
|
|
15308
|
-
*
|
|
15309
|
-
* A contribution is a discriminated union on `kind`:
|
|
15310
|
-
*
|
|
15311
|
-
* - `redirect` — a declarative button. The login page renders a generic
|
|
15312
|
-
* button that navigates to `startUrl` (an addon-owned HTTP route).
|
|
15313
|
-
* Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
|
|
15314
|
-
* ZERO shell-side JS. A future SSO addon plugs in the same way — the
|
|
15315
|
-
* login page needs NO change.
|
|
15316
|
-
*
|
|
15317
|
-
* - `widget` — a Module-Federation widget the login page mounts (via
|
|
15318
|
-
* `loadRemoteBundle`) for an in-page ceremony. `auth.listLoginMethods`
|
|
15319
|
-
* stamps a public `bundleUrl` from `addonId` + `bundle`. Generic
|
|
15320
|
-
* mechanism kept for future use; no shipped addon uses it on the login
|
|
15321
|
-
* page (the passkey ceremony below runs natively in the shell instead).
|
|
15322
|
-
*
|
|
15323
|
-
* - `passkey` — a declarative WebAuthn ceremony the shell renders
|
|
15324
|
-
* natively (`@simplewebauthn/browser` lives in `addon-admin-ui`, not in
|
|
15325
|
-
* a remotely-loaded bundle). Carries the addon's effective `rpId` /
|
|
15326
|
-
* `origin` (from its `resolveRpID()` / `resolveOrigin()`) so the shell
|
|
15327
|
-
* can gate visibility (IP-literal origin, hostname/rpId mismatch) WITHOUT
|
|
15328
|
-
* fetching any remote code pre-auth. Contribution stays unconditional —
|
|
15329
|
-
* enrollment state is never leaked pre-auth; visibility is a shell
|
|
15330
|
-
* decision.
|
|
15331
|
-
*
|
|
15332
|
-
* Every contribution carries a `stage`:
|
|
15333
|
-
* - `primary` — shown on the first credentials screen (OIDC /
|
|
15334
|
-
* magic-link buttons; a future usernameless passkey).
|
|
15335
|
-
* - `second-factor` — shown AFTER the password leg, gated on the
|
|
15336
|
-
* returned `factors` (passkey-as-2FA today).
|
|
15337
|
-
*
|
|
15338
|
-
* `mount: skip` — the cap is read server-side by the core auth router
|
|
15339
|
-
* (`registry.getCollection('login-method')`), never mounted as its own
|
|
15340
|
-
* tRPC router.
|
|
15341
|
-
*/
|
|
15342
|
-
/** When a login method renders in the two-phase login flow. */
|
|
15343
|
-
var LoginStageEnum = z.enum(["primary", "second-factor"]);
|
|
15344
|
-
/**
|
|
15345
|
-
* A declarative redirect button — the login page navigates to `startUrl`.
|
|
15346
|
-
* OIDC and magic-link contribute this; a future SSO addon does too.
|
|
15347
|
-
*/
|
|
15348
|
-
var RedirectLoginMethodSchema = z.object({
|
|
15349
|
-
kind: z.literal("redirect"),
|
|
15350
|
-
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
15351
|
-
id: z.string(),
|
|
15352
|
-
/** Operator-facing button label. */
|
|
15353
|
-
label: z.string(),
|
|
15354
|
-
/** lucide-react icon name. */
|
|
15355
|
-
icon: z.string().optional(),
|
|
15356
|
-
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
15357
|
-
startUrl: z.string(),
|
|
15358
|
-
stage: LoginStageEnum
|
|
15359
|
-
});
|
|
15360
|
-
/**
|
|
15361
|
-
* A Module-Federation widget the login page mounts for an in-page
|
|
15362
|
-
* ceremony. `bundle` + `addonId` let `auth.listLoginMethods` stamp a
|
|
15363
|
-
* public `bundleUrl`; `remote` is the MF descriptor `loadRemoteBundle`
|
|
15364
|
-
* consumes. No `bundleUrl` here — it is server-stamped on the public
|
|
15365
|
-
* output so the addon never encodes the static-route scheme.
|
|
15366
|
-
*/
|
|
15367
|
-
var WidgetLoginMethodSchema = z.object({
|
|
15368
|
-
kind: z.literal("widget"),
|
|
15369
|
-
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
15370
|
-
id: z.string(),
|
|
15371
|
-
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
15372
|
-
addonId: z.string(),
|
|
15373
|
-
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
15374
|
-
bundle: z.string(),
|
|
15375
|
-
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
15376
|
-
remote: WidgetRemoteSchema,
|
|
15377
|
-
stage: LoginStageEnum
|
|
15378
|
-
});
|
|
15379
|
-
/**
|
|
15380
|
-
* A declarative WebAuthn ceremony the shell renders natively (no remote
|
|
15381
|
-
* code). Carries the addon's EFFECTIVE `rpId`/`origin` so the shell can
|
|
15382
|
-
* gate visibility (IP-literal origin, hostname/rpId mismatch) before ever
|
|
15383
|
-
* showing the button — the contribution itself stays unconditional.
|
|
15384
|
-
*/
|
|
15385
|
-
var PasskeyLoginMethodSchema = z.object({
|
|
15386
|
-
kind: z.literal("passkey"),
|
|
15387
|
-
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-direct-login`). */
|
|
15388
|
-
id: z.string(),
|
|
15389
|
-
/** Operator-facing button label. */
|
|
15390
|
-
label: z.string(),
|
|
15391
|
-
stage: LoginStageEnum,
|
|
15392
|
-
/** Effective WebAuthn RP ID (`resolveRpID()`) — the shell gates visibility on it. */
|
|
15393
|
-
rpId: z.string(),
|
|
15394
|
-
/** Effective expected origin (`resolveOrigin()`), null when unconfigured. */
|
|
15395
|
-
origin: z.string().nullable()
|
|
15396
|
-
});
|
|
15397
|
-
/** One login-method contribution — redirect button, pre-auth widget, or native passkey ceremony. */
|
|
15398
|
-
var LoginMethodContributionSchema = z.discriminatedUnion("kind", [
|
|
15399
|
-
RedirectLoginMethodSchema,
|
|
15400
|
-
WidgetLoginMethodSchema,
|
|
15401
|
-
PasskeyLoginMethodSchema
|
|
15402
|
-
]);
|
|
15403
|
-
var loginMethodCapability = {
|
|
15404
|
-
name: "login-method",
|
|
15405
|
-
scope: "system",
|
|
15406
|
-
mode: "collection",
|
|
15407
|
-
internal: true,
|
|
15408
|
-
methods: { getLoginMethods: method(z.void(), z.array(LoginMethodContributionSchema).readonly()) },
|
|
15409
|
-
/** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
|
|
15410
|
-
mount: { kind: "skip" }
|
|
15411
|
-
};
|
|
15412
15255
|
/**
|
|
15413
15256
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
15414
15257
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
@@ -16064,7 +15907,8 @@ function customAction(input, output, options) {
|
|
|
16064
15907
|
output,
|
|
16065
15908
|
kind: options?.kind ?? "query",
|
|
16066
15909
|
auth: options?.auth ?? "protected",
|
|
16067
|
-
scope: options?.scope ?? { kind: "system" }
|
|
15910
|
+
scope: options?.scope ?? { kind: "system" },
|
|
15911
|
+
...options?.caller ? { caller: "required" } : {}
|
|
16068
15912
|
};
|
|
16069
15913
|
}
|
|
16070
15914
|
function deviceCustomAction(input, output, options) {
|
|
@@ -17669,56 +17513,515 @@ var filesystemBrowseCapability = {
|
|
|
17669
17513
|
}
|
|
17670
17514
|
};
|
|
17671
17515
|
//#endregion
|
|
17672
|
-
//#region src/capabilities/
|
|
17673
|
-
|
|
17674
|
-
|
|
17675
|
-
|
|
17676
|
-
|
|
17677
|
-
|
|
17516
|
+
//#region src/capabilities/llm-shared.ts
|
|
17517
|
+
/**
|
|
17518
|
+
* Shared LLM generate contracts — imported by BOTH `llm.cap.ts` (consumer
|
|
17519
|
+
* surface) and `llm-runtime.cap.ts` (node-side managed executor) so the two
|
|
17520
|
+
* caps stay wire-compatible without a circular cap→cap import.
|
|
17521
|
+
*
|
|
17522
|
+
* Errors are a discriminated-union RESULT, never thrown: the shape survives
|
|
17523
|
+
* every transport tier structurally, and failed calls still write usage rows.
|
|
17524
|
+
* Token counts only in v1 — no costUsd (operator decision, 2026-07-15).
|
|
17525
|
+
*/
|
|
17526
|
+
var LlmUsageSchema = z.object({
|
|
17527
|
+
inputTokens: z.number(),
|
|
17528
|
+
outputTokens: z.number()
|
|
17529
|
+
});
|
|
17530
|
+
var LlmErrorCodeSchema = z.enum([
|
|
17531
|
+
"timeout",
|
|
17532
|
+
"rate-limited",
|
|
17533
|
+
"auth",
|
|
17534
|
+
"refusal",
|
|
17535
|
+
"bad-request",
|
|
17536
|
+
"unavailable",
|
|
17537
|
+
"no-profile",
|
|
17538
|
+
"budget-exceeded",
|
|
17539
|
+
"adapter-error"
|
|
17678
17540
|
]);
|
|
17679
|
-
var
|
|
17680
|
-
|
|
17681
|
-
|
|
17682
|
-
|
|
17683
|
-
|
|
17684
|
-
|
|
17685
|
-
|
|
17541
|
+
var LlmGenerateOkSchema = z.object({
|
|
17542
|
+
ok: z.literal(true),
|
|
17543
|
+
text: z.string(),
|
|
17544
|
+
model: z.string(),
|
|
17545
|
+
usage: LlmUsageSchema,
|
|
17546
|
+
truncated: z.boolean(),
|
|
17547
|
+
latencyMs: z.number()
|
|
17686
17548
|
});
|
|
17687
|
-
var
|
|
17688
|
-
|
|
17689
|
-
|
|
17690
|
-
|
|
17691
|
-
|
|
17692
|
-
methods: {
|
|
17693
|
-
write: method(LogEntrySchema, z.void(), { kind: "mutation" }),
|
|
17694
|
-
query: method(z.object({
|
|
17695
|
-
scope: z.array(z.string()).optional(),
|
|
17696
|
-
level: LogLevelSchema.optional(),
|
|
17697
|
-
since: z.date().optional(),
|
|
17698
|
-
until: z.date().optional(),
|
|
17699
|
-
limit: z.number().optional(),
|
|
17700
|
-
tags: z.record(z.string(), z.string()).optional()
|
|
17701
|
-
}), z.array(LogEntrySchema).readonly())
|
|
17702
|
-
},
|
|
17703
|
-
/** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
|
|
17704
|
-
mount: { kind: "skip" }
|
|
17705
|
-
};
|
|
17706
|
-
//#endregion
|
|
17707
|
-
//#region src/capabilities/metrics-provider.cap.ts
|
|
17708
|
-
var CpuBreakdownSchema = z.object({
|
|
17709
|
-
total: z.number(),
|
|
17710
|
-
user: z.number(),
|
|
17711
|
-
system: z.number(),
|
|
17712
|
-
irq: z.number(),
|
|
17713
|
-
nice: z.number(),
|
|
17714
|
-
loadAvg: z.tuple([
|
|
17715
|
-
z.number(),
|
|
17716
|
-
z.number(),
|
|
17717
|
-
z.number()
|
|
17718
|
-
]),
|
|
17719
|
-
cores: z.number()
|
|
17549
|
+
var LlmGenerateErrSchema = z.object({
|
|
17550
|
+
ok: z.literal(false),
|
|
17551
|
+
code: LlmErrorCodeSchema,
|
|
17552
|
+
message: z.string(),
|
|
17553
|
+
retryAfterMs: z.number().optional()
|
|
17720
17554
|
});
|
|
17721
|
-
var
|
|
17555
|
+
var LlmGenerateResultSchema = z.discriminatedUnion("ok", [LlmGenerateOkSchema, LlmGenerateErrSchema]);
|
|
17556
|
+
/**
|
|
17557
|
+
* `Uint8Array` is the sanctioned binary convention — superjson + the UDS
|
|
17558
|
+
* MsgPack channel round-trip typed arrays (embedding-encoder.cap.ts:29,
|
|
17559
|
+
* notification-output.cap.ts:27-31 precedents).
|
|
17560
|
+
*/
|
|
17561
|
+
var LlmImageSchema = z.object({
|
|
17562
|
+
bytes: z.instanceof(Uint8Array),
|
|
17563
|
+
mimeType: z.string()
|
|
17564
|
+
});
|
|
17565
|
+
var LlmGenerateBaseInputSchema = z.object({
|
|
17566
|
+
/** Collection routing (the notification-output posture). */
|
|
17567
|
+
addonId: z.string().optional(),
|
|
17568
|
+
/** Explicit profile; else the resolution chain (spec §3). */
|
|
17569
|
+
profileId: z.string().optional(),
|
|
17570
|
+
/** MANDATORY usage tag: 'ai-summary', 'notifier-rules', 'adhoc-ui', … */
|
|
17571
|
+
consumer: z.string(),
|
|
17572
|
+
system: z.string().optional(),
|
|
17573
|
+
/** v1: single-turn. `messages[]` is a v2 additive field. */
|
|
17574
|
+
prompt: z.string(),
|
|
17575
|
+
/** Structured output — adapter-mapped (response_format / forced tool / responseSchema). */
|
|
17576
|
+
jsonSchema: z.record(z.string(), z.unknown()).optional(),
|
|
17577
|
+
/** Per-call override of the profile default. */
|
|
17578
|
+
maxTokens: z.number().int().positive().optional(),
|
|
17579
|
+
temperature: z.number().optional()
|
|
17580
|
+
});
|
|
17581
|
+
//#endregion
|
|
17582
|
+
//#region src/capabilities/llm-runtime.cap.ts
|
|
17583
|
+
/**
|
|
17584
|
+
* `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
|
|
17585
|
+
* on EVERY node where `addon-ai` is installed; the hub `llm` provider reaches
|
|
17586
|
+
* a specific node's runtime with `nodePin(profile.runtime.nodeId)` — normal
|
|
17587
|
+
* cap routing, zero bespoke plumbing. `internal: true`: the operator reaches
|
|
17588
|
+
* this only through the `llm` cap's methods.
|
|
17589
|
+
*
|
|
17590
|
+
* One running llama-server child per node in v1 (models are RAM-heavy).
|
|
17591
|
+
* Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
|
|
17592
|
+
* watchdog — operator decision #3).
|
|
17593
|
+
*/
|
|
17594
|
+
var ManagedModelRefSchema = z.discriminatedUnion("kind", [
|
|
17595
|
+
z.object({
|
|
17596
|
+
kind: z.literal("catalog"),
|
|
17597
|
+
catalogId: z.string()
|
|
17598
|
+
}),
|
|
17599
|
+
z.object({
|
|
17600
|
+
kind: z.literal("url"),
|
|
17601
|
+
url: z.string(),
|
|
17602
|
+
sha256: z.string().optional()
|
|
17603
|
+
}),
|
|
17604
|
+
z.object({
|
|
17605
|
+
kind: z.literal("path"),
|
|
17606
|
+
path: z.string()
|
|
17607
|
+
})
|
|
17608
|
+
]);
|
|
17609
|
+
var ManagedRuntimeConfigSchema = z.object({
|
|
17610
|
+
/** WHERE the runtime lives — hub or any agent. */
|
|
17611
|
+
nodeId: z.string(),
|
|
17612
|
+
/** Closed for v1; 'ollama' is a v2 candidate. */
|
|
17613
|
+
engine: z.enum(["llama-cpp"]),
|
|
17614
|
+
model: ManagedModelRefSchema,
|
|
17615
|
+
contextSize: z.number().int().default(4096),
|
|
17616
|
+
/** 0 = CPU-only. */
|
|
17617
|
+
gpuLayers: z.number().int().default(0),
|
|
17618
|
+
/** Default: cpus-2, clamped ≥1 (resolved node-side). */
|
|
17619
|
+
threads: z.number().int().optional(),
|
|
17620
|
+
/** Concurrent slots. */
|
|
17621
|
+
parallel: z.number().int().default(1),
|
|
17622
|
+
/** Else lazy: first generate boots it. */
|
|
17623
|
+
autoStart: z.boolean().default(false),
|
|
17624
|
+
/** 0 = never; frees RAM after quiet periods. */
|
|
17625
|
+
idleStopMinutes: z.number().int().default(30)
|
|
17626
|
+
});
|
|
17627
|
+
var LlmRuntimeStatusSchema = z.object({
|
|
17628
|
+
/** Status is ALWAYS node-qualified. */
|
|
17629
|
+
nodeId: z.string(),
|
|
17630
|
+
state: z.enum([
|
|
17631
|
+
"stopped",
|
|
17632
|
+
"downloading",
|
|
17633
|
+
"starting",
|
|
17634
|
+
"ready",
|
|
17635
|
+
"crashed",
|
|
17636
|
+
"failed"
|
|
17637
|
+
]),
|
|
17638
|
+
pid: z.number().optional(),
|
|
17639
|
+
port: z.number().optional(),
|
|
17640
|
+
modelPath: z.string().optional(),
|
|
17641
|
+
modelId: z.string().optional(),
|
|
17642
|
+
downloadProgress: z.number().min(0).max(1).optional(),
|
|
17643
|
+
lastError: z.string().optional(),
|
|
17644
|
+
crashesInWindow: z.number(),
|
|
17645
|
+
/** Child RSS (sampled best-effort). */
|
|
17646
|
+
memoryBytes: z.number().optional(),
|
|
17647
|
+
vramBytes: z.number().optional()
|
|
17648
|
+
});
|
|
17649
|
+
var LlmNodeModelSchema = z.object({
|
|
17650
|
+
file: z.string(),
|
|
17651
|
+
sizeBytes: z.number(),
|
|
17652
|
+
catalogId: z.string().optional(),
|
|
17653
|
+
installedAt: z.number().optional()
|
|
17654
|
+
});
|
|
17655
|
+
var LlmRuntimeDiskUsageSchema = z.object({
|
|
17656
|
+
nodeId: z.string(),
|
|
17657
|
+
modelsBytes: z.number(),
|
|
17658
|
+
freeBytes: z.number().optional()
|
|
17659
|
+
});
|
|
17660
|
+
var LlmRuntimeCompleteInputSchema = LlmGenerateBaseInputSchema.extend({
|
|
17661
|
+
images: z.array(LlmImageSchema).optional(),
|
|
17662
|
+
runtime: ManagedRuntimeConfigSchema,
|
|
17663
|
+
/** The managed profile's timeout, threaded by the hub provider. */
|
|
17664
|
+
timeoutMs: z.number().int().positive().optional()
|
|
17665
|
+
});
|
|
17666
|
+
var llmRuntimeCapability = {
|
|
17667
|
+
name: "llm-runtime",
|
|
17668
|
+
scope: "system",
|
|
17669
|
+
mode: "singleton",
|
|
17670
|
+
internal: true,
|
|
17671
|
+
methods: {
|
|
17672
|
+
complete: method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, { kind: "mutation" }),
|
|
17673
|
+
ensureStarted: method(z.object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
|
|
17674
|
+
kind: "mutation",
|
|
17675
|
+
auth: "admin"
|
|
17676
|
+
}),
|
|
17677
|
+
stop: method(z.object({}), z.void(), {
|
|
17678
|
+
kind: "mutation",
|
|
17679
|
+
auth: "admin"
|
|
17680
|
+
}),
|
|
17681
|
+
status: method(z.object({}), LlmRuntimeStatusSchema),
|
|
17682
|
+
installModel: method(z.object({ model: ManagedModelRefSchema }), z.void(), {
|
|
17683
|
+
kind: "mutation",
|
|
17684
|
+
auth: "admin"
|
|
17685
|
+
}),
|
|
17686
|
+
deleteModel: method(z.object({ file: z.string() }), z.void(), {
|
|
17687
|
+
kind: "mutation",
|
|
17688
|
+
auth: "admin"
|
|
17689
|
+
}),
|
|
17690
|
+
listLocalModels: method(z.object({}), z.array(LlmNodeModelSchema)),
|
|
17691
|
+
getDiskUsage: method(z.object({}), LlmRuntimeDiskUsageSchema)
|
|
17692
|
+
}
|
|
17693
|
+
};
|
|
17694
|
+
//#endregion
|
|
17695
|
+
//#region src/capabilities/llm.cap.ts
|
|
17696
|
+
/**
|
|
17697
|
+
* `llm` — consumer-facing LLM surface (spec §1-§3). Collection-mode: array
|
|
17698
|
+
* methods concat-fan across providers; single-row methods route to ONE
|
|
17699
|
+
* provider by the `addonId` in the call input (the notification-output
|
|
17700
|
+
* posture, notification-output.cap.ts:215-250). Provided by `addon-ai`
|
|
17701
|
+
* (hub-placed); the cap stays open for future providers.
|
|
17702
|
+
*
|
|
17703
|
+
* Profiles are ROWS (data), not addons: one row = one usable model endpoint.
|
|
17704
|
+
* `apiKey` is a password field — providers REDACT it on read and merge on
|
|
17705
|
+
* write; a stored key NEVER round-trips to a client.
|
|
17706
|
+
*/
|
|
17707
|
+
var LlmProfileKindSchema = z.enum([
|
|
17708
|
+
"openai-compatible",
|
|
17709
|
+
"openai",
|
|
17710
|
+
"anthropic",
|
|
17711
|
+
"google",
|
|
17712
|
+
"managed-local"
|
|
17713
|
+
]);
|
|
17714
|
+
var LlmProfileSchema = z.object({
|
|
17715
|
+
id: z.string(),
|
|
17716
|
+
name: z.string(),
|
|
17717
|
+
kind: LlmProfileKindSchema,
|
|
17718
|
+
/** Stamped by the provider — keeps the fanned catalog routable. */
|
|
17719
|
+
addonId: z.string(),
|
|
17720
|
+
enabled: z.boolean(),
|
|
17721
|
+
/** Vendor model id, or the managed runtime's loaded model. */
|
|
17722
|
+
model: z.string(),
|
|
17723
|
+
/** Required for openai-compatible; override for cloud kinds. */
|
|
17724
|
+
baseUrl: z.string().optional(),
|
|
17725
|
+
/** ConfigUISchema type:'password' — never round-trips (spec §5). */
|
|
17726
|
+
apiKey: z.string().optional(),
|
|
17727
|
+
supportsVision: z.boolean(),
|
|
17728
|
+
temperature: z.number().min(0).max(2).optional(),
|
|
17729
|
+
maxTokens: z.number().int().positive().optional(),
|
|
17730
|
+
timeoutMs: z.number().int().positive().default(6e4),
|
|
17731
|
+
extraHeaders: z.record(z.string(), z.string()).optional(),
|
|
17732
|
+
/** kind === 'managed-local' only (spec §4). */
|
|
17733
|
+
runtime: ManagedRuntimeConfigSchema.optional()
|
|
17734
|
+
});
|
|
17735
|
+
/** ConfigUISchema tree passed through untyped on the wire (the
|
|
17736
|
+
* notification-output `ConfigSchemaPassthrough` precedent at
|
|
17737
|
+
* notification-output.cap.ts:151); the exported TS type re-tightens it. */
|
|
17738
|
+
var ConfigSchemaPassthrough$1 = z.unknown();
|
|
17739
|
+
var LlmProfileKindDescriptorSchema = z.object({
|
|
17740
|
+
kind: LlmProfileKindSchema,
|
|
17741
|
+
label: z.string(),
|
|
17742
|
+
icon: z.string(),
|
|
17743
|
+
/** Stamped by each provider so the concat-fanned catalog stays routable. */
|
|
17744
|
+
addonId: z.string(),
|
|
17745
|
+
configSchema: ConfigSchemaPassthrough$1
|
|
17746
|
+
});
|
|
17747
|
+
var LlmDefaultSelectorSchema = z.union([z.object({ consumer: z.string() }), z.object({ purpose: z.enum(["text", "vision"]) })]);
|
|
17748
|
+
var LlmDefaultSchema = z.object({
|
|
17749
|
+
selector: LlmDefaultSelectorSchema,
|
|
17750
|
+
profileId: z.string()
|
|
17751
|
+
});
|
|
17752
|
+
/** Server-side rollup row — getUsage never dumps raw call rows (spec §6). */
|
|
17753
|
+
var LlmUsageRollupSchema = z.object({
|
|
17754
|
+
day: z.string(),
|
|
17755
|
+
consumer: z.string(),
|
|
17756
|
+
profileId: z.string(),
|
|
17757
|
+
calls: z.number(),
|
|
17758
|
+
okCalls: z.number(),
|
|
17759
|
+
errorCalls: z.number(),
|
|
17760
|
+
inputTokens: z.number(),
|
|
17761
|
+
outputTokens: z.number(),
|
|
17762
|
+
avgLatencyMs: z.number()
|
|
17763
|
+
});
|
|
17764
|
+
/** LLM-facing view over the reused ModelCatalogEntry mechanism (spec §4.2). */
|
|
17765
|
+
var ManagedModelCatalogEntrySchema = z.object({
|
|
17766
|
+
id: z.string(),
|
|
17767
|
+
label: z.string(),
|
|
17768
|
+
family: z.string(),
|
|
17769
|
+
purpose: z.enum(["text", "vision"]),
|
|
17770
|
+
url: z.string(),
|
|
17771
|
+
sha256: z.string(),
|
|
17772
|
+
sizeBytes: z.number(),
|
|
17773
|
+
quantization: z.string(),
|
|
17774
|
+
/** Load-time guidance shown in the picker. */
|
|
17775
|
+
minRamBytes: z.number(),
|
|
17776
|
+
contextSizeDefault: z.number().int(),
|
|
17777
|
+
/** Vision models: companion projector file. */
|
|
17778
|
+
mmprojUrl: z.string().optional()
|
|
17779
|
+
});
|
|
17780
|
+
var LlmRuntimeNodeSchema = z.object({
|
|
17781
|
+
nodeId: z.string(),
|
|
17782
|
+
reachable: z.boolean(),
|
|
17783
|
+
status: LlmRuntimeStatusSchema.optional(),
|
|
17784
|
+
disk: LlmRuntimeDiskUsageSchema.optional(),
|
|
17785
|
+
error: z.string().optional()
|
|
17786
|
+
});
|
|
17787
|
+
var GenerateVisionInputSchema = LlmGenerateBaseInputSchema.extend({ images: z.array(LlmImageSchema).min(1) });
|
|
17788
|
+
var ProfileRefInputSchema = z.object({
|
|
17789
|
+
addonId: z.string(),
|
|
17790
|
+
profileId: z.string()
|
|
17791
|
+
});
|
|
17792
|
+
var llmCapability = {
|
|
17793
|
+
name: "llm",
|
|
17794
|
+
scope: "system",
|
|
17795
|
+
mode: "collection",
|
|
17796
|
+
internal: false,
|
|
17797
|
+
providerKind: "ai",
|
|
17798
|
+
/** `nodeId` inputs below are DATA (the hub provider pins itself), never routing. */
|
|
17799
|
+
nodeIdMode: "data",
|
|
17800
|
+
methods: {
|
|
17801
|
+
generate: method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, { kind: "mutation" }),
|
|
17802
|
+
generateVision: method(GenerateVisionInputSchema, LlmGenerateResultSchema, { kind: "mutation" }),
|
|
17803
|
+
listProfileKinds: method(z.object({}), z.array(LlmProfileKindDescriptorSchema)),
|
|
17804
|
+
listProfiles: method(z.object({}), z.array(LlmProfileSchema)),
|
|
17805
|
+
upsertProfile: method(z.object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
17806
|
+
kind: "mutation",
|
|
17807
|
+
auth: "admin"
|
|
17808
|
+
}),
|
|
17809
|
+
deleteProfile: method(ProfileRefInputSchema, z.void(), {
|
|
17810
|
+
kind: "mutation",
|
|
17811
|
+
auth: "admin"
|
|
17812
|
+
}),
|
|
17813
|
+
testProfile: method(ProfileRefInputSchema, LlmGenerateResultSchema, {
|
|
17814
|
+
kind: "mutation",
|
|
17815
|
+
auth: "admin"
|
|
17816
|
+
}),
|
|
17817
|
+
/** Live vendor enumeration (GET /models etc.). */
|
|
17818
|
+
listModels: method(ProfileRefInputSchema, z.array(z.string())),
|
|
17819
|
+
getDefaults: method(z.object({}), z.array(LlmDefaultSchema)),
|
|
17820
|
+
setDefault: method(z.object({
|
|
17821
|
+
selector: LlmDefaultSelectorSchema,
|
|
17822
|
+
profileId: z.string().nullable()
|
|
17823
|
+
}), z.void(), {
|
|
17824
|
+
kind: "mutation",
|
|
17825
|
+
auth: "admin"
|
|
17826
|
+
}),
|
|
17827
|
+
getUsage: method(z.object({
|
|
17828
|
+
since: z.number().optional(),
|
|
17829
|
+
until: z.number().optional(),
|
|
17830
|
+
consumer: z.string().optional(),
|
|
17831
|
+
profileId: z.string().optional()
|
|
17832
|
+
}), z.array(LlmUsageRollupSchema)),
|
|
17833
|
+
listModelCatalog: method(z.object({}), z.array(ManagedModelCatalogEntrySchema)),
|
|
17834
|
+
listRuntimeNodes: method(z.object({}), z.array(LlmRuntimeNodeSchema)),
|
|
17835
|
+
listNodeModels: method(z.object({ nodeId: z.string() }), z.array(LlmNodeModelSchema)),
|
|
17836
|
+
installModel: method(z.object({
|
|
17837
|
+
nodeId: z.string(),
|
|
17838
|
+
model: ManagedModelRefSchema
|
|
17839
|
+
}), z.void(), {
|
|
17840
|
+
kind: "mutation",
|
|
17841
|
+
auth: "admin"
|
|
17842
|
+
}),
|
|
17843
|
+
deleteModel: method(z.object({
|
|
17844
|
+
nodeId: z.string(),
|
|
17845
|
+
file: z.string()
|
|
17846
|
+
}), z.void(), {
|
|
17847
|
+
kind: "mutation",
|
|
17848
|
+
auth: "admin"
|
|
17849
|
+
}),
|
|
17850
|
+
getRuntimeStatus: method(ProfileRefInputSchema, LlmRuntimeStatusSchema),
|
|
17851
|
+
startRuntime: method(ProfileRefInputSchema, LlmRuntimeStatusSchema, {
|
|
17852
|
+
kind: "mutation",
|
|
17853
|
+
auth: "admin"
|
|
17854
|
+
}),
|
|
17855
|
+
stopRuntime: method(ProfileRefInputSchema, z.void(), {
|
|
17856
|
+
kind: "mutation",
|
|
17857
|
+
auth: "admin"
|
|
17858
|
+
})
|
|
17859
|
+
}
|
|
17860
|
+
};
|
|
17861
|
+
//#endregion
|
|
17862
|
+
//#region src/capabilities/log-destination.cap.ts
|
|
17863
|
+
var LogLevelSchema = z.enum([
|
|
17864
|
+
"debug",
|
|
17865
|
+
"info",
|
|
17866
|
+
"warn",
|
|
17867
|
+
"error"
|
|
17868
|
+
]);
|
|
17869
|
+
var LogEntrySchema = z.object({
|
|
17870
|
+
timestamp: z.date(),
|
|
17871
|
+
level: LogLevelSchema,
|
|
17872
|
+
scope: z.array(z.string()),
|
|
17873
|
+
message: z.string(),
|
|
17874
|
+
meta: z.record(z.string(), z.unknown()).optional(),
|
|
17875
|
+
tags: z.record(z.string(), z.string()).optional()
|
|
17876
|
+
});
|
|
17877
|
+
var logDestinationCapability = {
|
|
17878
|
+
name: "log-destination",
|
|
17879
|
+
scope: "system",
|
|
17880
|
+
mode: "collection",
|
|
17881
|
+
internal: true,
|
|
17882
|
+
methods: {
|
|
17883
|
+
write: method(LogEntrySchema, z.void(), { kind: "mutation" }),
|
|
17884
|
+
query: method(z.object({
|
|
17885
|
+
scope: z.array(z.string()).optional(),
|
|
17886
|
+
level: LogLevelSchema.optional(),
|
|
17887
|
+
since: z.date().optional(),
|
|
17888
|
+
until: z.date().optional(),
|
|
17889
|
+
limit: z.number().optional(),
|
|
17890
|
+
tags: z.record(z.string(), z.string()).optional()
|
|
17891
|
+
}), z.array(LogEntrySchema).readonly())
|
|
17892
|
+
},
|
|
17893
|
+
/** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
|
|
17894
|
+
mount: { kind: "skip" }
|
|
17895
|
+
};
|
|
17896
|
+
//#endregion
|
|
17897
|
+
//#region src/capabilities/login-method.cap.ts
|
|
17898
|
+
/**
|
|
17899
|
+
* `login-method` — collection cap through which auth addons contribute
|
|
17900
|
+
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
17901
|
+
* generic mechanism that supersedes the dead `auth.listProviders` reader:
|
|
17902
|
+
* every auth addon (OIDC, magic-link, WebAuthn/passkey) registers a
|
|
17903
|
+
* `login-method` provider and the PUBLIC `auth.listLoginMethods`
|
|
17904
|
+
* procedure aggregates them for the unauthenticated login page.
|
|
17905
|
+
*
|
|
17906
|
+
* A contribution is a discriminated union on `kind`:
|
|
17907
|
+
*
|
|
17908
|
+
* - `redirect` — a declarative button. The login page renders a generic
|
|
17909
|
+
* button that navigates to `startUrl` (an addon-owned HTTP route).
|
|
17910
|
+
* Covers OIDC (`/addon/auth-oidc/<id>/start`) and magic-link with
|
|
17911
|
+
* ZERO shell-side JS. A future SSO addon plugs in the same way — the
|
|
17912
|
+
* login page needs NO change.
|
|
17913
|
+
*
|
|
17914
|
+
* - `widget` — a Module-Federation widget the login page mounts (via
|
|
17915
|
+
* `loadRemoteBundle`) for an in-page ceremony. `auth.listLoginMethods`
|
|
17916
|
+
* stamps a public `bundleUrl` from `addonId` + `bundle`. Generic
|
|
17917
|
+
* mechanism kept for future use; no shipped addon uses it on the login
|
|
17918
|
+
* page (the passkey ceremony below runs natively in the shell instead).
|
|
17919
|
+
*
|
|
17920
|
+
* - `passkey` — a declarative WebAuthn ceremony the shell renders
|
|
17921
|
+
* natively (`@simplewebauthn/browser` lives in `addon-admin-ui`, not in
|
|
17922
|
+
* a remotely-loaded bundle). Carries the addon's effective `rpId` /
|
|
17923
|
+
* `origin` (from its `resolveRpID()` / `resolveOrigin()`) so the shell
|
|
17924
|
+
* can gate visibility (IP-literal origin, hostname/rpId mismatch) WITHOUT
|
|
17925
|
+
* fetching any remote code pre-auth. Contribution stays unconditional —
|
|
17926
|
+
* enrollment state is never leaked pre-auth; visibility is a shell
|
|
17927
|
+
* decision.
|
|
17928
|
+
*
|
|
17929
|
+
* Every contribution carries a `stage`:
|
|
17930
|
+
* - `primary` — shown on the first credentials screen (OIDC /
|
|
17931
|
+
* magic-link buttons; a future usernameless passkey).
|
|
17932
|
+
* - `second-factor` — shown AFTER the password leg, gated on the
|
|
17933
|
+
* returned `factors` (passkey-as-2FA today).
|
|
17934
|
+
*
|
|
17935
|
+
* `mount: skip` — the cap is read server-side by the core auth router
|
|
17936
|
+
* (`registry.getCollection('login-method')`), never mounted as its own
|
|
17937
|
+
* tRPC router.
|
|
17938
|
+
*/
|
|
17939
|
+
/** When a login method renders in the two-phase login flow. */
|
|
17940
|
+
var LoginStageEnum = z.enum(["primary", "second-factor"]);
|
|
17941
|
+
/**
|
|
17942
|
+
* A declarative redirect button — the login page navigates to `startUrl`.
|
|
17943
|
+
* OIDC and magic-link contribute this; a future SSO addon does too.
|
|
17944
|
+
*/
|
|
17945
|
+
var RedirectLoginMethodSchema = z.object({
|
|
17946
|
+
kind: z.literal("redirect"),
|
|
17947
|
+
/** Stable id within the login-method set (e.g. `auth-oidc/google`). */
|
|
17948
|
+
id: z.string(),
|
|
17949
|
+
/** Operator-facing button label. */
|
|
17950
|
+
label: z.string(),
|
|
17951
|
+
/** lucide-react icon name. */
|
|
17952
|
+
icon: z.string().optional(),
|
|
17953
|
+
/** Addon-owned HTTP route the button navigates to (GET). */
|
|
17954
|
+
startUrl: z.string(),
|
|
17955
|
+
stage: LoginStageEnum
|
|
17956
|
+
});
|
|
17957
|
+
/**
|
|
17958
|
+
* A Module-Federation widget the login page mounts for an in-page
|
|
17959
|
+
* ceremony. `bundle` + `addonId` let `auth.listLoginMethods` stamp a
|
|
17960
|
+
* public `bundleUrl`; `remote` is the MF descriptor `loadRemoteBundle`
|
|
17961
|
+
* consumes. No `bundleUrl` here — it is server-stamped on the public
|
|
17962
|
+
* output so the addon never encodes the static-route scheme.
|
|
17963
|
+
*/
|
|
17964
|
+
var WidgetLoginMethodSchema = z.object({
|
|
17965
|
+
kind: z.literal("widget"),
|
|
17966
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-login`). */
|
|
17967
|
+
id: z.string(),
|
|
17968
|
+
/** Owning addon id — drives the public bundle URL + the MF namespace. */
|
|
17969
|
+
addonId: z.string(),
|
|
17970
|
+
/** Bundle filename inside the addon's dist dir (`remoteEntry.js`). */
|
|
17971
|
+
bundle: z.string(),
|
|
17972
|
+
/** MF remote descriptor — `{ remoteName, exposedModule, componentKey }`. */
|
|
17973
|
+
remote: WidgetRemoteSchema,
|
|
17974
|
+
stage: LoginStageEnum
|
|
17975
|
+
});
|
|
17976
|
+
/**
|
|
17977
|
+
* A declarative WebAuthn ceremony the shell renders natively (no remote
|
|
17978
|
+
* code). Carries the addon's EFFECTIVE `rpId`/`origin` so the shell can
|
|
17979
|
+
* gate visibility (IP-literal origin, hostname/rpId mismatch) before ever
|
|
17980
|
+
* showing the button — the contribution itself stays unconditional.
|
|
17981
|
+
*/
|
|
17982
|
+
var PasskeyLoginMethodSchema = z.object({
|
|
17983
|
+
kind: z.literal("passkey"),
|
|
17984
|
+
/** Stable id within the login-method set (e.g. `auth-webauthn/passkey-direct-login`). */
|
|
17985
|
+
id: z.string(),
|
|
17986
|
+
/** Operator-facing button label. */
|
|
17987
|
+
label: z.string(),
|
|
17988
|
+
stage: LoginStageEnum,
|
|
17989
|
+
/** Effective WebAuthn RP ID (`resolveRpID()`) — the shell gates visibility on it. */
|
|
17990
|
+
rpId: z.string(),
|
|
17991
|
+
/** Effective expected origin (`resolveOrigin()`), null when unconfigured. */
|
|
17992
|
+
origin: z.string().nullable()
|
|
17993
|
+
});
|
|
17994
|
+
/** One login-method contribution — redirect button, pre-auth widget, or native passkey ceremony. */
|
|
17995
|
+
var LoginMethodContributionSchema = z.discriminatedUnion("kind", [
|
|
17996
|
+
RedirectLoginMethodSchema,
|
|
17997
|
+
WidgetLoginMethodSchema,
|
|
17998
|
+
PasskeyLoginMethodSchema
|
|
17999
|
+
]);
|
|
18000
|
+
var loginMethodCapability = {
|
|
18001
|
+
name: "login-method",
|
|
18002
|
+
scope: "system",
|
|
18003
|
+
mode: "collection",
|
|
18004
|
+
internal: true,
|
|
18005
|
+
methods: { getLoginMethods: method(z.void(), z.array(LoginMethodContributionSchema).readonly()) },
|
|
18006
|
+
/** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
|
|
18007
|
+
mount: { kind: "skip" }
|
|
18008
|
+
};
|
|
18009
|
+
//#endregion
|
|
18010
|
+
//#region src/capabilities/metrics-provider.cap.ts
|
|
18011
|
+
var CpuBreakdownSchema = z.object({
|
|
18012
|
+
total: z.number(),
|
|
18013
|
+
user: z.number(),
|
|
18014
|
+
system: z.number(),
|
|
18015
|
+
irq: z.number(),
|
|
18016
|
+
nice: z.number(),
|
|
18017
|
+
loadAvg: z.tuple([
|
|
18018
|
+
z.number(),
|
|
18019
|
+
z.number(),
|
|
18020
|
+
z.number()
|
|
18021
|
+
]),
|
|
18022
|
+
cores: z.number()
|
|
18023
|
+
});
|
|
18024
|
+
var MemoryInfoSchema = z.object({
|
|
17722
18025
|
percent: z.number(),
|
|
17723
18026
|
totalBytes: z.number(),
|
|
17724
18027
|
usedBytes: z.number(),
|
|
@@ -18307,14 +18610,14 @@ var TargetKindCapsSchema = z.object({
|
|
|
18307
18610
|
* the union is large and not meant for runtime validation here; the exported
|
|
18308
18611
|
* `TargetKind` type re-tightens `configSchema` to `ConfigUISchema`.
|
|
18309
18612
|
*/
|
|
18310
|
-
var ConfigSchemaPassthrough
|
|
18613
|
+
var ConfigSchemaPassthrough = z.unknown();
|
|
18311
18614
|
var TargetKindSchema = z.object({
|
|
18312
18615
|
kind: z.string(),
|
|
18313
18616
|
label: z.string(),
|
|
18314
18617
|
icon: z.string(),
|
|
18315
18618
|
/** Stamped by each provider so the concat-fanned catalog stays routable. */
|
|
18316
18619
|
addonId: z.string(),
|
|
18317
|
-
configSchema: ConfigSchemaPassthrough
|
|
18620
|
+
configSchema: ConfigSchemaPassthrough,
|
|
18318
18621
|
supportsDiscovery: z.boolean(),
|
|
18319
18622
|
caps: TargetKindCapsSchema
|
|
18320
18623
|
});
|
|
@@ -18412,8 +18715,27 @@ var notificationOutputCapability = {
|
|
|
18412
18715
|
* `z.infer` exports; no duplicate interfaces (the advanced-notifier
|
|
18413
18716
|
* schema/interface drift is explicitly not repeated).
|
|
18414
18717
|
*/
|
|
18415
|
-
/**
|
|
18416
|
-
|
|
18718
|
+
/**
|
|
18719
|
+
* D-3: the trigger/urgency of a rule — which persistence moment evaluates it.
|
|
18720
|
+
* The value maps 1:1 onto the evaluated record kind:
|
|
18721
|
+
* - `immediate` ↔ object-event persist (lowest-latency detection burst)
|
|
18722
|
+
* - `track-end` ↔ TrackCloser.closeExpired (finalized track record)
|
|
18723
|
+
* - `device-event` ↔ SensorEventStore insert (doorbell press / sensor state
|
|
18724
|
+
* change of a LINKED device, one row per linked camera)
|
|
18725
|
+
* - `package-event` ↔ PackageDropDetector object-event insert (a `package`
|
|
18726
|
+
* delivery / pick-up)
|
|
18727
|
+
*
|
|
18728
|
+
* `immediate`/`track-end` carry the D-3 urgency semantics; `device-event`/
|
|
18729
|
+
* `package-event` are pure trigger kinds (no urgency dimension). Extending
|
|
18730
|
+
* this one field keeps the schema additive — a rule still declares exactly
|
|
18731
|
+
* one trigger.
|
|
18732
|
+
*/
|
|
18733
|
+
var NcDeliverySchema = z.enum([
|
|
18734
|
+
"immediate",
|
|
18735
|
+
"track-end",
|
|
18736
|
+
"device-event",
|
|
18737
|
+
"package-event"
|
|
18738
|
+
]);
|
|
18417
18739
|
/**
|
|
18418
18740
|
* `maxPerTrack` for `immediate` rules is FIXED at 1 (D-3): a single track
|
|
18419
18741
|
* fires an immediate rule at most once, enforced durably by the outbox
|
|
@@ -18441,6 +18763,33 @@ var NcPlateMatcherSchema = z.object({
|
|
|
18441
18763
|
/** Max Levenshtein distance after normalization (uppercase alphanumeric). */
|
|
18442
18764
|
maxDistance: z.number().int().min(0).max(3).default(1)
|
|
18443
18765
|
});
|
|
18766
|
+
/**
|
|
18767
|
+
* Occupancy condition (DEVICE-EVENT trigger). Fires on a ZoneAnalytics
|
|
18768
|
+
* occupancy edge for a device — optionally narrowed to a single admin
|
|
18769
|
+
* `zoneId` and/or object `className`. `op` selects the edge/threshold:
|
|
18770
|
+
* - `became-occupied` (default) — count crossed 0 → ≥ `count`
|
|
18771
|
+
* - `became-free` — count crossed ≥ `count` → below it
|
|
18772
|
+
* - `>=` / `<=` — count is at/over or at/under `count`
|
|
18773
|
+
* `sustainSeconds` requires the condition hold continuously that long
|
|
18774
|
+
* before firing (debounces flicker; 0 = fire on the first matching edge).
|
|
18775
|
+
* Fail-closed: no ZoneAnalytics snapshot / missing zone / null snapshot ⇒
|
|
18776
|
+
* the condition never matches. Confirmed edge-state survives addon restarts
|
|
18777
|
+
* (declared SQLite collection, reseeded on boot).
|
|
18778
|
+
*/
|
|
18779
|
+
var NcOccupancyConditionSchema = z.object({
|
|
18780
|
+
/** Admin zone id to scope the count to; absent = whole-frame occupancy. */
|
|
18781
|
+
zoneId: z.string().optional(),
|
|
18782
|
+
/** Object class to count; absent = any class. */
|
|
18783
|
+
className: z.string().optional(),
|
|
18784
|
+
op: z.enum([
|
|
18785
|
+
"became-occupied",
|
|
18786
|
+
"became-free",
|
|
18787
|
+
">=",
|
|
18788
|
+
"<="
|
|
18789
|
+
]).default("became-occupied"),
|
|
18790
|
+
count: z.number().int().min(0).default(1),
|
|
18791
|
+
sustainSeconds: z.number().int().min(0).max(3600).default(15)
|
|
18792
|
+
});
|
|
18444
18793
|
/** Admin-zone membership condition (zone IDs as stamped by the ZoneEngine). */
|
|
18445
18794
|
var NcZoneConditionSchema = z.object({
|
|
18446
18795
|
ids: z.array(z.string().min(1)).min(1),
|
|
@@ -18476,7 +18825,104 @@ var NcConditionsSchema = z.object({
|
|
|
18476
18825
|
*/
|
|
18477
18826
|
identities: z.array(z.string().min(1)).optional(),
|
|
18478
18827
|
/** Fuzzy plate matcher against the record's `label` (plate text). */
|
|
18479
|
-
plates: NcPlateMatcherSchema.optional()
|
|
18828
|
+
plates: NcPlateMatcherSchema.optional(),
|
|
18829
|
+
/**
|
|
18830
|
+
* Identity EXCLUDE — mirror of {@link identities} with `notIn` semantics.
|
|
18831
|
+
* Same P1 boundary: matched against the record's collapsed `label` (the
|
|
18832
|
+
* identity display name). A record with NO label passes (nothing to
|
|
18833
|
+
* exclude), unlike the include variant which fails on an absent label.
|
|
18834
|
+
*/
|
|
18835
|
+
identitiesExclude: z.array(z.string().min(1)).optional(),
|
|
18836
|
+
/**
|
|
18837
|
+
* Minimum server-computed key-event importance in [0,1] (`Track.importance`).
|
|
18838
|
+
* TRACK-END only: importance is scored at track close, so it does not exist
|
|
18839
|
+
* at immediate / object-event evaluation time (see catalog `appliesTo`). At
|
|
18840
|
+
* close the value is threaded via the close-time info (the `Track` clone is
|
|
18841
|
+
* captured before the DB row is updated, so it would otherwise read stale).
|
|
18842
|
+
* Fails when the record carries no importance (never guess quality — the
|
|
18843
|
+
* `minConfidence` precedent). MVP cut: a single scalar threshold.
|
|
18844
|
+
*/
|
|
18845
|
+
minImportance: z.number().min(0).max(1).optional(),
|
|
18846
|
+
/**
|
|
18847
|
+
* Minimum track dwell in SECONDS — `(lastSeen − firstSeen) / 1000`.
|
|
18848
|
+
* TRACK-END only: an `immediate` / object-event subject has no closed
|
|
18849
|
+
* lifespan, so a dwell condition never matches immediate delivery
|
|
18850
|
+
* (documented choice — the object-event record carries no `firstSeen`,
|
|
18851
|
+
* so dwell cannot be computed from what the subject actually carries).
|
|
18852
|
+
*/
|
|
18853
|
+
minDwellSeconds: z.number().min(0).optional(),
|
|
18854
|
+
/**
|
|
18855
|
+
* Detection provenance filter. `any` (default / absent) matches every
|
|
18856
|
+
* source; otherwise the subject's source must equal it. Legacy records
|
|
18857
|
+
* with no stamped source are treated as `pipeline`. The union spans both
|
|
18858
|
+
* record kinds — object events carry `pipeline` | `onboard`, synthetic
|
|
18859
|
+
* tracks carry `sensor`.
|
|
18860
|
+
*/
|
|
18861
|
+
source: z.enum([
|
|
18862
|
+
"pipeline",
|
|
18863
|
+
"onboard",
|
|
18864
|
+
"sensor",
|
|
18865
|
+
"any"
|
|
18866
|
+
]).optional(),
|
|
18867
|
+
/**
|
|
18868
|
+
* Minimum identity / plate MATCH confidence in [0,1] — DISTINCT from the
|
|
18869
|
+
* detector `minConfidence` (that gates the object-detection score; this
|
|
18870
|
+
* gates the recognition/OCR match score). Fails when the subject carries
|
|
18871
|
+
* no label-match confidence (never guess). TRACK-END only: the confidence
|
|
18872
|
+
* lives on the recognition result and reaches the subject at track close.
|
|
18873
|
+
*
|
|
18874
|
+
* What it measures precisely (plumbed at track close — the closer threads
|
|
18875
|
+
* the value into `NcTrackClosedInfo.labelConfidence`, the same seam as
|
|
18876
|
+
* `importance`): the BEST recognition match confidence observed for the
|
|
18877
|
+
* label the track carries at close — for a face, the peak cosine similarity
|
|
18878
|
+
* of the ASSIGNED identity (`FaceMatch.score`, reset on an identity switch);
|
|
18879
|
+
* for a plate, the peak OCR read score of the best-held plate
|
|
18880
|
+
* (`plateText.confidence`). When BOTH a face and a plate were recognized on
|
|
18881
|
+
* one track the higher of the two is used. A track that ended with no
|
|
18882
|
+
* confident identity/plate match carries no value, so the condition fails
|
|
18883
|
+
* closed for it (an un-recognized subject).
|
|
18884
|
+
*/
|
|
18885
|
+
minLabelConfidence: z.number().min(0).max(1).optional(),
|
|
18886
|
+
/**
|
|
18887
|
+
* DEVICE-EVENT only. Raw device event-type tokens (`EventFire.eventType`,
|
|
18888
|
+
* e.g. a doorbell `press` / `press_long`) — matched case-insensitively
|
|
18889
|
+
* against the token carried on the device-event subject (extracted from the
|
|
18890
|
+
* event-emitter runtime slice's `lastEvent.eventType`). Fails when the
|
|
18891
|
+
* subject carries no token. Doorbell-pulse / passive-sensor kinds emit no
|
|
18892
|
+
* eventType, so gate those with {@link sensorKinds} instead.
|
|
18893
|
+
*/
|
|
18894
|
+
eventTypeTokens: z.array(z.string().min(1)).optional(),
|
|
18895
|
+
/**
|
|
18896
|
+
* DEVICE-EVENT only. Sensor/control taxonomy kinds (e.g. `doorbell`,
|
|
18897
|
+
* `contact`, `button`, `device-event`) — matched against the persisted
|
|
18898
|
+
* `SensorEvent.kind` (see `sensor-event-kinds.ts`). Membership is OR.
|
|
18899
|
+
*/
|
|
18900
|
+
sensorKinds: z.array(z.string().min(1)).optional(),
|
|
18901
|
+
/**
|
|
18902
|
+
* PACKAGE-EVENT only. Which package phase fires the rule — `delivered`
|
|
18903
|
+
* (a parked parcel appeared), `picked-up` (it departed), or `both`. Fails
|
|
18904
|
+
* when the subject's phase does not match (a subject always carries a phase
|
|
18905
|
+
* on the package-event trigger).
|
|
18906
|
+
*/
|
|
18907
|
+
packagePhase: z.enum([
|
|
18908
|
+
"delivered",
|
|
18909
|
+
"picked-up",
|
|
18910
|
+
"both"
|
|
18911
|
+
]).optional(),
|
|
18912
|
+
/**
|
|
18913
|
+
* PERSONAL-RULE custom zones (viewer-drawn). Inline normalized polygons
|
|
18914
|
+
* (MaskShape vocabulary). A record passes when its bbox overlaps ANY
|
|
18915
|
+
* listed polygon (ZoneEngine membership semantics). Evaluated only when
|
|
18916
|
+
* the subject carries a bbox; absent bbox ⇒ the condition FAILS.
|
|
18917
|
+
*/
|
|
18918
|
+
customZones: z.array(MaskPolygonShapeSchema).optional(),
|
|
18919
|
+
/**
|
|
18920
|
+
* DEVICE-EVENT only. ZoneAnalytics occupancy edge — fires when a device's
|
|
18921
|
+
* (optionally zone/class-scoped) occupancy count crosses the configured
|
|
18922
|
+
* threshold and holds for `sustainSeconds`. Fail-closed on missing
|
|
18923
|
+
* substrate (no snapshot / missing zone). See {@link NcOccupancyCondition}.
|
|
18924
|
+
*/
|
|
18925
|
+
occupancy: NcOccupancyConditionSchema.optional()
|
|
18480
18926
|
});
|
|
18481
18927
|
/** One delivery target: a `notification-output` Target ref + passthrough params. */
|
|
18482
18928
|
var NcRuleTargetSchema = z.object({
|
|
@@ -18490,12 +18936,21 @@ var NcRuleTargetSchema = z.object({
|
|
|
18490
18936
|
params: z.record(z.string(), z.unknown()).optional()
|
|
18491
18937
|
});
|
|
18492
18938
|
/**
|
|
18493
|
-
* Media attachment policy (P1 still-image subset).
|
|
18494
|
-
* AVAILABLE
|
|
18495
|
-
*
|
|
18939
|
+
* Media attachment policy (P1 still-image subset).
|
|
18940
|
+
* - `best` — the best AVAILABLE subject image at dispatch time (D-3).
|
|
18941
|
+
* - `best-matching` — the media that explains WHY the rule fired: a rule
|
|
18942
|
+
* matched on identities attaches the subject's `faceCrop`, one matched on
|
|
18943
|
+
* plates attaches the `plateCrop`; a rule with no identity/plate condition
|
|
18944
|
+
* (or when the specific crop is missing) degrades to `best`, then
|
|
18945
|
+
* `keyFrame`, then no attachment — never delaying the send. The matched
|
|
18946
|
+
* condition summary is frozen on the outbox row at enqueue (like the rule
|
|
18947
|
+
* name), so the choice never drifts from the record that fired it.
|
|
18948
|
+
* - `keyFrame` — the clean scene frame (no subject box).
|
|
18949
|
+
* - `none` — no attachment.
|
|
18496
18950
|
*/
|
|
18497
18951
|
var NcMediaPolicySchema = z.object({ attach: z.enum([
|
|
18498
18952
|
"best",
|
|
18953
|
+
"best-matching",
|
|
18499
18954
|
"keyFrame",
|
|
18500
18955
|
"none"
|
|
18501
18956
|
]).default("best") });
|
|
@@ -18524,21 +18979,46 @@ var NcRuleInputSchema = z.object({
|
|
|
18524
18979
|
body: z.string().max(2e3).optional()
|
|
18525
18980
|
}).optional(),
|
|
18526
18981
|
/** Canonical notification priority ordinal (1..5); per-target overridable. */
|
|
18527
|
-
priority: z.number().int().min(1).max(5).default(3)
|
|
18982
|
+
priority: z.number().int().min(1).max(5).default(3),
|
|
18983
|
+
/**
|
|
18984
|
+
* Ownership/visibility key. Absent = admin/global rule (unchanged legacy
|
|
18985
|
+
* behaviour, visible to all, read-only in the viewer). Present = personal
|
|
18986
|
+
* rule owned by this userId. Server-stamped; never trusted from a client.
|
|
18987
|
+
*/
|
|
18988
|
+
ownerUserId: z.string().optional()
|
|
18528
18989
|
});
|
|
18529
|
-
/**
|
|
18530
|
-
|
|
18990
|
+
/**
|
|
18991
|
+
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
18992
|
+
* persisted-only {@link NcRuleSchema} `disabledTargetIds` set. The latter is
|
|
18993
|
+
* NOT a client-authored input field (it lives on the persisted rule, not the
|
|
18994
|
+
* input), so it is added here explicitly to let the store's per-target opt-out
|
|
18995
|
+
* toggle round-trip through the shared `update` path. Viewer opt-out mutations
|
|
18996
|
+
* still flow through `nc.setRuleTargetEnabled` (owner-checked), never a raw
|
|
18997
|
+
* `updateRule` patch.
|
|
18998
|
+
*/
|
|
18999
|
+
var NcRulePatchSchema = NcRuleInputSchema.partial().extend({ disabledTargetIds: z.array(z.string()).optional() });
|
|
18531
19000
|
/** A persisted rule. */
|
|
18532
19001
|
var NcRuleSchema = NcRuleInputSchema.extend({
|
|
18533
19002
|
id: z.string(),
|
|
18534
19003
|
/** userId of the admin who created the rule (server-stamped caller). */
|
|
18535
19004
|
createdBy: z.string(),
|
|
18536
19005
|
createdAt: z.number(),
|
|
18537
|
-
updatedAt: z.number()
|
|
19006
|
+
updatedAt: z.number(),
|
|
19007
|
+
/**
|
|
19008
|
+
* Per-target opt-out set. A targetId here is suppressed for THIS rule at
|
|
19009
|
+
* send time. Only a target's OWNER may add/remove its id (server-checked
|
|
19010
|
+
* in `nc.setRuleTargetEnabled`). Defaults to empty.
|
|
19011
|
+
*/
|
|
19012
|
+
disabledTargetIds: z.array(z.string()).default([])
|
|
18538
19013
|
});
|
|
18539
19014
|
var NcTestResultSchema = z.object({
|
|
18540
19015
|
recordId: z.string(),
|
|
18541
|
-
recordKind: z.enum([
|
|
19016
|
+
recordKind: z.enum([
|
|
19017
|
+
"object-event",
|
|
19018
|
+
"track",
|
|
19019
|
+
"device-event",
|
|
19020
|
+
"package-event"
|
|
19021
|
+
]),
|
|
18542
19022
|
deviceId: z.number(),
|
|
18543
19023
|
timestamp: z.number(),
|
|
18544
19024
|
wouldFire: z.boolean(),
|
|
@@ -18556,7 +19036,10 @@ var NcConditionDescriptorSchema = z.object({
|
|
|
18556
19036
|
"zones",
|
|
18557
19037
|
"quality",
|
|
18558
19038
|
"label",
|
|
18559
|
-
"schedule"
|
|
19039
|
+
"schedule",
|
|
19040
|
+
"device",
|
|
19041
|
+
"package",
|
|
19042
|
+
"occupancy"
|
|
18560
19043
|
]),
|
|
18561
19044
|
label: z.string(),
|
|
18562
19045
|
/** Editor widget the UI renders — never hardcode per-condition forms. */
|
|
@@ -18564,10 +19047,15 @@ var NcConditionDescriptorSchema = z.object({
|
|
|
18564
19047
|
"deviceIdList",
|
|
18565
19048
|
"stringList",
|
|
18566
19049
|
"number01",
|
|
19050
|
+
"number",
|
|
19051
|
+
"sourceSelect",
|
|
18567
19052
|
"zoneSelection",
|
|
18568
19053
|
"zoneIdList",
|
|
18569
19054
|
"schedule",
|
|
18570
|
-
"plateMatcher"
|
|
19055
|
+
"plateMatcher",
|
|
19056
|
+
"packagePhase",
|
|
19057
|
+
"polygonDraw",
|
|
19058
|
+
"occupancy"
|
|
18571
19059
|
]),
|
|
18572
19060
|
operator: z.enum([
|
|
18573
19061
|
"in",
|
|
@@ -18594,7 +19082,12 @@ var NC_CONDITION_CATALOG = [
|
|
|
18594
19082
|
label: "Cameras",
|
|
18595
19083
|
valueType: "deviceIdList",
|
|
18596
19084
|
operator: "in",
|
|
18597
|
-
appliesTo: [
|
|
19085
|
+
appliesTo: [
|
|
19086
|
+
"immediate",
|
|
19087
|
+
"track-end",
|
|
19088
|
+
"device-event",
|
|
19089
|
+
"package-event"
|
|
19090
|
+
],
|
|
18598
19091
|
phase: "P1",
|
|
18599
19092
|
description: "Restrict the rule to these devices; absent = all devices."
|
|
18600
19093
|
},
|
|
@@ -18604,7 +19097,11 @@ var NC_CONDITION_CATALOG = [
|
|
|
18604
19097
|
label: "Object classes",
|
|
18605
19098
|
valueType: "stringList",
|
|
18606
19099
|
operator: "in",
|
|
18607
|
-
appliesTo: [
|
|
19100
|
+
appliesTo: [
|
|
19101
|
+
"immediate",
|
|
19102
|
+
"track-end",
|
|
19103
|
+
"package-event"
|
|
19104
|
+
],
|
|
18608
19105
|
phase: "P1",
|
|
18609
19106
|
description: "Any overlap with the detection class set passes."
|
|
18610
19107
|
},
|
|
@@ -18614,7 +19111,11 @@ var NC_CONDITION_CATALOG = [
|
|
|
18614
19111
|
label: "Excluded classes",
|
|
18615
19112
|
valueType: "stringList",
|
|
18616
19113
|
operator: "notIn",
|
|
18617
|
-
appliesTo: [
|
|
19114
|
+
appliesTo: [
|
|
19115
|
+
"immediate",
|
|
19116
|
+
"track-end",
|
|
19117
|
+
"package-event"
|
|
19118
|
+
],
|
|
18618
19119
|
phase: "P1"
|
|
18619
19120
|
},
|
|
18620
19121
|
{
|
|
@@ -18623,7 +19124,11 @@ var NC_CONDITION_CATALOG = [
|
|
|
18623
19124
|
label: "Minimum confidence",
|
|
18624
19125
|
valueType: "number01",
|
|
18625
19126
|
operator: "gte",
|
|
18626
|
-
appliesTo: [
|
|
19127
|
+
appliesTo: [
|
|
19128
|
+
"immediate",
|
|
19129
|
+
"track-end",
|
|
19130
|
+
"package-event"
|
|
19131
|
+
],
|
|
18627
19132
|
phase: "P1"
|
|
18628
19133
|
},
|
|
18629
19134
|
{
|
|
@@ -18632,7 +19137,11 @@ var NC_CONDITION_CATALOG = [
|
|
|
18632
19137
|
label: "Zones",
|
|
18633
19138
|
valueType: "zoneSelection",
|
|
18634
19139
|
operator: "anyOf",
|
|
18635
|
-
appliesTo: [
|
|
19140
|
+
appliesTo: [
|
|
19141
|
+
"immediate",
|
|
19142
|
+
"track-end",
|
|
19143
|
+
"package-event"
|
|
19144
|
+
],
|
|
18636
19145
|
phase: "P1",
|
|
18637
19146
|
description: "Admin zone ids; quantifier any/all over the visited set."
|
|
18638
19147
|
},
|
|
@@ -18642,7 +19151,11 @@ var NC_CONDITION_CATALOG = [
|
|
|
18642
19151
|
label: "Excluded zones",
|
|
18643
19152
|
valueType: "zoneIdList",
|
|
18644
19153
|
operator: "notIn",
|
|
18645
|
-
appliesTo: [
|
|
19154
|
+
appliesTo: [
|
|
19155
|
+
"immediate",
|
|
19156
|
+
"track-end",
|
|
19157
|
+
"package-event"
|
|
19158
|
+
],
|
|
18646
19159
|
phase: "P1"
|
|
18647
19160
|
},
|
|
18648
19161
|
{
|
|
@@ -18659,423 +19172,287 @@ var NC_CONDITION_CATALOG = [
|
|
|
18659
19172
|
id: "identities",
|
|
18660
19173
|
group: "label",
|
|
18661
19174
|
label: "Identities",
|
|
18662
|
-
valueType: "stringList",
|
|
18663
|
-
operator: "in",
|
|
18664
|
-
appliesTo: ["immediate", "track-end"],
|
|
18665
|
-
phase: "P1",
|
|
18666
|
-
description: "P1: matched against the identity display name on the record label."
|
|
18667
|
-
},
|
|
18668
|
-
{
|
|
18669
|
-
id: "plates",
|
|
18670
|
-
group: "label",
|
|
18671
|
-
label: "License plates",
|
|
18672
|
-
valueType: "plateMatcher",
|
|
18673
|
-
operator: "fuzzyIn",
|
|
18674
|
-
appliesTo: ["immediate", "track-end"],
|
|
18675
|
-
phase: "P1",
|
|
18676
|
-
description: "Levenshtein-tolerant match against the plate text."
|
|
18677
|
-
},
|
|
18678
|
-
{
|
|
18679
|
-
id: "
|
|
18680
|
-
group: "
|
|
18681
|
-
label: "
|
|
18682
|
-
valueType: "
|
|
18683
|
-
operator: "
|
|
18684
|
-
appliesTo: ["immediate", "track-end"],
|
|
18685
|
-
phase: "P1",
|
|
18686
|
-
description: "
|
|
18687
|
-
}
|
|
18688
|
-
|
|
18689
|
-
|
|
18690
|
-
|
|
18691
|
-
|
|
18692
|
-
|
|
18693
|
-
|
|
18694
|
-
|
|
18695
|
-
|
|
18696
|
-
|
|
18697
|
-
|
|
18698
|
-
|
|
18699
|
-
|
|
18700
|
-
|
|
18701
|
-
|
|
18702
|
-
|
|
18703
|
-
|
|
18704
|
-
|
|
18705
|
-
|
|
18706
|
-
|
|
18707
|
-
|
|
18708
|
-
|
|
18709
|
-
|
|
18710
|
-
|
|
18711
|
-
|
|
18712
|
-
|
|
18713
|
-
|
|
18714
|
-
|
|
18715
|
-
|
|
18716
|
-
|
|
18717
|
-
|
|
18718
|
-
|
|
18719
|
-
|
|
18720
|
-
|
|
18721
|
-
|
|
18722
|
-
|
|
18723
|
-
|
|
18724
|
-
|
|
18725
|
-
|
|
18726
|
-
|
|
18727
|
-
|
|
18728
|
-
|
|
18729
|
-
|
|
18730
|
-
|
|
18731
|
-
|
|
18732
|
-
|
|
18733
|
-
|
|
18734
|
-
|
|
18735
|
-
|
|
18736
|
-
|
|
18737
|
-
|
|
18738
|
-
|
|
18739
|
-
|
|
18740
|
-
|
|
18741
|
-
|
|
18742
|
-
|
|
18743
|
-
|
|
18744
|
-
|
|
18745
|
-
|
|
18746
|
-
|
|
18747
|
-
|
|
18748
|
-
|
|
18749
|
-
|
|
18750
|
-
|
|
18751
|
-
|
|
18752
|
-
|
|
18753
|
-
|
|
18754
|
-
|
|
18755
|
-
|
|
18756
|
-
|
|
18757
|
-
|
|
18758
|
-
|
|
18759
|
-
|
|
18760
|
-
|
|
18761
|
-
|
|
18762
|
-
|
|
18763
|
-
|
|
18764
|
-
|
|
18765
|
-
|
|
18766
|
-
|
|
18767
|
-
|
|
18768
|
-
|
|
18769
|
-
|
|
18770
|
-
|
|
18771
|
-
|
|
18772
|
-
|
|
18773
|
-
|
|
18774
|
-
|
|
18775
|
-
|
|
18776
|
-
|
|
18777
|
-
|
|
18778
|
-
|
|
18779
|
-
|
|
18780
|
-
|
|
18781
|
-
|
|
18782
|
-
|
|
18783
|
-
|
|
18784
|
-
|
|
18785
|
-
|
|
18786
|
-
|
|
18787
|
-
|
|
18788
|
-
|
|
18789
|
-
|
|
18790
|
-
|
|
18791
|
-
|
|
18792
|
-
|
|
18793
|
-
|
|
18794
|
-
|
|
18795
|
-
|
|
18796
|
-
|
|
18797
|
-
|
|
18798
|
-
|
|
18799
|
-
|
|
18800
|
-
|
|
18801
|
-
//#endregion
|
|
18802
|
-
//#region src/capabilities/llm-runtime.cap.ts
|
|
18803
|
-
/**
|
|
18804
|
-
* `llm-runtime` — node-side managed llama.cpp executor (spec §4). Registered
|
|
18805
|
-
* on EVERY node where `addon-ai` is installed; the hub `llm` provider reaches
|
|
18806
|
-
* a specific node's runtime with `nodePin(profile.runtime.nodeId)` — normal
|
|
18807
|
-
* cap routing, zero bespoke plumbing. `internal: true`: the operator reaches
|
|
18808
|
-
* this only through the `llm` cap's methods.
|
|
18809
|
-
*
|
|
18810
|
-
* One running llama-server child per node in v1 (models are RAM-heavy).
|
|
18811
|
-
* Resource ceiling = llama-server flags + idleStopMinutes ONLY (no RSS
|
|
18812
|
-
* watchdog — operator decision #3).
|
|
18813
|
-
*/
|
|
18814
|
-
var ManagedModelRefSchema = z.discriminatedUnion("kind", [
|
|
18815
|
-
z.object({
|
|
18816
|
-
kind: z.literal("catalog"),
|
|
18817
|
-
catalogId: z.string()
|
|
18818
|
-
}),
|
|
18819
|
-
z.object({
|
|
18820
|
-
kind: z.literal("url"),
|
|
18821
|
-
url: z.string(),
|
|
18822
|
-
sha256: z.string().optional()
|
|
18823
|
-
}),
|
|
18824
|
-
z.object({
|
|
18825
|
-
kind: z.literal("path"),
|
|
18826
|
-
path: z.string()
|
|
18827
|
-
})
|
|
18828
|
-
]);
|
|
18829
|
-
var ManagedRuntimeConfigSchema = z.object({
|
|
18830
|
-
/** WHERE the runtime lives — hub or any agent. */
|
|
18831
|
-
nodeId: z.string(),
|
|
18832
|
-
/** Closed for v1; 'ollama' is a v2 candidate. */
|
|
18833
|
-
engine: z.enum(["llama-cpp"]),
|
|
18834
|
-
model: ManagedModelRefSchema,
|
|
18835
|
-
contextSize: z.number().int().default(4096),
|
|
18836
|
-
/** 0 = CPU-only. */
|
|
18837
|
-
gpuLayers: z.number().int().default(0),
|
|
18838
|
-
/** Default: cpus-2, clamped ≥1 (resolved node-side). */
|
|
18839
|
-
threads: z.number().int().optional(),
|
|
18840
|
-
/** Concurrent slots. */
|
|
18841
|
-
parallel: z.number().int().default(1),
|
|
18842
|
-
/** Else lazy: first generate boots it. */
|
|
18843
|
-
autoStart: z.boolean().default(false),
|
|
18844
|
-
/** 0 = never; frees RAM after quiet periods. */
|
|
18845
|
-
idleStopMinutes: z.number().int().default(30)
|
|
18846
|
-
});
|
|
18847
|
-
var LlmRuntimeStatusSchema = z.object({
|
|
18848
|
-
/** Status is ALWAYS node-qualified. */
|
|
18849
|
-
nodeId: z.string(),
|
|
18850
|
-
state: z.enum([
|
|
18851
|
-
"stopped",
|
|
18852
|
-
"downloading",
|
|
18853
|
-
"starting",
|
|
18854
|
-
"ready",
|
|
18855
|
-
"crashed",
|
|
18856
|
-
"failed"
|
|
18857
|
-
]),
|
|
18858
|
-
pid: z.number().optional(),
|
|
18859
|
-
port: z.number().optional(),
|
|
18860
|
-
modelPath: z.string().optional(),
|
|
18861
|
-
modelId: z.string().optional(),
|
|
18862
|
-
downloadProgress: z.number().min(0).max(1).optional(),
|
|
18863
|
-
lastError: z.string().optional(),
|
|
18864
|
-
crashesInWindow: z.number(),
|
|
18865
|
-
/** Child RSS (sampled best-effort). */
|
|
18866
|
-
memoryBytes: z.number().optional(),
|
|
18867
|
-
vramBytes: z.number().optional()
|
|
18868
|
-
});
|
|
18869
|
-
var LlmNodeModelSchema = z.object({
|
|
18870
|
-
file: z.string(),
|
|
18871
|
-
sizeBytes: z.number(),
|
|
18872
|
-
catalogId: z.string().optional(),
|
|
18873
|
-
installedAt: z.number().optional()
|
|
18874
|
-
});
|
|
18875
|
-
var LlmRuntimeDiskUsageSchema = z.object({
|
|
18876
|
-
nodeId: z.string(),
|
|
18877
|
-
modelsBytes: z.number(),
|
|
18878
|
-
freeBytes: z.number().optional()
|
|
18879
|
-
});
|
|
18880
|
-
var LlmRuntimeCompleteInputSchema = LlmGenerateBaseInputSchema.extend({
|
|
18881
|
-
images: z.array(LlmImageSchema).optional(),
|
|
18882
|
-
runtime: ManagedRuntimeConfigSchema,
|
|
18883
|
-
/** The managed profile's timeout, threaded by the hub provider. */
|
|
18884
|
-
timeoutMs: z.number().int().positive().optional()
|
|
18885
|
-
});
|
|
18886
|
-
var llmRuntimeCapability = {
|
|
18887
|
-
name: "llm-runtime",
|
|
18888
|
-
scope: "system",
|
|
18889
|
-
mode: "singleton",
|
|
18890
|
-
internal: true,
|
|
18891
|
-
methods: {
|
|
18892
|
-
complete: method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, { kind: "mutation" }),
|
|
18893
|
-
ensureStarted: method(z.object({ runtime: ManagedRuntimeConfigSchema }), LlmRuntimeStatusSchema, {
|
|
18894
|
-
kind: "mutation",
|
|
18895
|
-
auth: "admin"
|
|
18896
|
-
}),
|
|
18897
|
-
stop: method(z.object({}), z.void(), {
|
|
18898
|
-
kind: "mutation",
|
|
18899
|
-
auth: "admin"
|
|
18900
|
-
}),
|
|
18901
|
-
status: method(z.object({}), LlmRuntimeStatusSchema),
|
|
18902
|
-
installModel: method(z.object({ model: ManagedModelRefSchema }), z.void(), {
|
|
18903
|
-
kind: "mutation",
|
|
18904
|
-
auth: "admin"
|
|
18905
|
-
}),
|
|
18906
|
-
deleteModel: method(z.object({ file: z.string() }), z.void(), {
|
|
18907
|
-
kind: "mutation",
|
|
18908
|
-
auth: "admin"
|
|
18909
|
-
}),
|
|
18910
|
-
listLocalModels: method(z.object({}), z.array(LlmNodeModelSchema)),
|
|
18911
|
-
getDiskUsage: method(z.object({}), LlmRuntimeDiskUsageSchema)
|
|
19175
|
+
valueType: "stringList",
|
|
19176
|
+
operator: "in",
|
|
19177
|
+
appliesTo: ["immediate", "track-end"],
|
|
19178
|
+
phase: "P1",
|
|
19179
|
+
description: "P1: matched against the identity display name on the record label."
|
|
19180
|
+
},
|
|
19181
|
+
{
|
|
19182
|
+
id: "plates",
|
|
19183
|
+
group: "label",
|
|
19184
|
+
label: "License plates",
|
|
19185
|
+
valueType: "plateMatcher",
|
|
19186
|
+
operator: "fuzzyIn",
|
|
19187
|
+
appliesTo: ["immediate", "track-end"],
|
|
19188
|
+
phase: "P1",
|
|
19189
|
+
description: "Levenshtein-tolerant match against the plate text."
|
|
19190
|
+
},
|
|
19191
|
+
{
|
|
19192
|
+
id: "identitiesExclude",
|
|
19193
|
+
group: "label",
|
|
19194
|
+
label: "Excluded identities",
|
|
19195
|
+
valueType: "stringList",
|
|
19196
|
+
operator: "notIn",
|
|
19197
|
+
appliesTo: ["immediate", "track-end"],
|
|
19198
|
+
phase: "P1",
|
|
19199
|
+
description: "Veto by identity display name (mirror of Identities; absent label passes)."
|
|
19200
|
+
},
|
|
19201
|
+
{
|
|
19202
|
+
id: "minLabelConfidence",
|
|
19203
|
+
group: "label",
|
|
19204
|
+
label: "Minimum label confidence",
|
|
19205
|
+
valueType: "number01",
|
|
19206
|
+
operator: "gte",
|
|
19207
|
+
appliesTo: ["track-end"],
|
|
19208
|
+
phase: "P1",
|
|
19209
|
+
description: "Best identity/plate recognition match confidence [0,1] for the label the track carries at close (peak assigned-identity cosine / peak plate OCR score; the higher of the two when both were read). Distinct from detection confidence. Fails closed for a track that ended un-recognized."
|
|
19210
|
+
},
|
|
19211
|
+
{
|
|
19212
|
+
id: "minImportance",
|
|
19213
|
+
group: "quality",
|
|
19214
|
+
label: "Minimum importance",
|
|
19215
|
+
valueType: "number01",
|
|
19216
|
+
operator: "gte",
|
|
19217
|
+
appliesTo: ["track-end"],
|
|
19218
|
+
phase: "P1",
|
|
19219
|
+
description: "Server-computed key-event importance [0,1]; track-end rules only (importance is scored at close). Fails when the record has none."
|
|
19220
|
+
},
|
|
19221
|
+
{
|
|
19222
|
+
id: "minDwellSeconds",
|
|
19223
|
+
group: "quality",
|
|
19224
|
+
label: "Minimum dwell (seconds)",
|
|
19225
|
+
valueType: "number",
|
|
19226
|
+
operator: "gte",
|
|
19227
|
+
appliesTo: ["track-end"],
|
|
19228
|
+
phase: "P1",
|
|
19229
|
+
description: "Track lifespan in seconds (lastSeen − firstSeen); track-end rules only."
|
|
19230
|
+
},
|
|
19231
|
+
{
|
|
19232
|
+
id: "source",
|
|
19233
|
+
group: "scope",
|
|
19234
|
+
label: "Detection source",
|
|
19235
|
+
valueType: "sourceSelect",
|
|
19236
|
+
operator: "in",
|
|
19237
|
+
appliesTo: [
|
|
19238
|
+
"immediate",
|
|
19239
|
+
"track-end",
|
|
19240
|
+
"device-event",
|
|
19241
|
+
"package-event"
|
|
19242
|
+
],
|
|
19243
|
+
phase: "P1",
|
|
19244
|
+
description: "pipeline / onboard / sensor; a record with no stamped source counts as pipeline."
|
|
19245
|
+
},
|
|
19246
|
+
{
|
|
19247
|
+
id: "sensorKinds",
|
|
19248
|
+
group: "device",
|
|
19249
|
+
label: "Sensor kinds",
|
|
19250
|
+
valueType: "stringList",
|
|
19251
|
+
operator: "in",
|
|
19252
|
+
appliesTo: ["device-event"],
|
|
19253
|
+
phase: "P1",
|
|
19254
|
+
description: "Sensor/control taxonomy kinds (doorbell / contact / button / …) matched against the persisted device event."
|
|
19255
|
+
},
|
|
19256
|
+
{
|
|
19257
|
+
id: "eventTypeTokens",
|
|
19258
|
+
group: "device",
|
|
19259
|
+
label: "Event-type tokens",
|
|
19260
|
+
valueType: "stringList",
|
|
19261
|
+
operator: "in",
|
|
19262
|
+
appliesTo: ["device-event"],
|
|
19263
|
+
phase: "P1",
|
|
19264
|
+
description: "Raw device event-type tokens (e.g. doorbell press / press_long) from the event-emitter slice; absent on doorbell-pulse / passive sensors."
|
|
19265
|
+
},
|
|
19266
|
+
{
|
|
19267
|
+
id: "packagePhase",
|
|
19268
|
+
group: "package",
|
|
19269
|
+
label: "Package phase",
|
|
19270
|
+
valueType: "packagePhase",
|
|
19271
|
+
operator: "in",
|
|
19272
|
+
appliesTo: ["package-event"],
|
|
19273
|
+
phase: "P1",
|
|
19274
|
+
description: "Delivered / picked-up / both."
|
|
19275
|
+
},
|
|
19276
|
+
{
|
|
19277
|
+
id: "occupancy",
|
|
19278
|
+
group: "occupancy",
|
|
19279
|
+
label: "Occupancy",
|
|
19280
|
+
valueType: "occupancy",
|
|
19281
|
+
operator: "anyOf",
|
|
19282
|
+
appliesTo: ["device-event"],
|
|
19283
|
+
phase: "P1",
|
|
19284
|
+
description: "ZoneAnalytics occupancy edge (optionally zone/class-scoped): count crosses the threshold and holds for sustainSeconds. Fail-closed on a missing snapshot."
|
|
19285
|
+
},
|
|
19286
|
+
{
|
|
19287
|
+
id: "customZones",
|
|
19288
|
+
group: "zones",
|
|
19289
|
+
label: "Custom zones",
|
|
19290
|
+
valueType: "polygonDraw",
|
|
19291
|
+
operator: "anyOf",
|
|
19292
|
+
appliesTo: [
|
|
19293
|
+
"immediate",
|
|
19294
|
+
"track-end",
|
|
19295
|
+
"package-event"
|
|
19296
|
+
],
|
|
19297
|
+
phase: "P1",
|
|
19298
|
+
description: "User-drawn polygons; a detection whose bbox overlaps any polygon matches."
|
|
19299
|
+
},
|
|
19300
|
+
{
|
|
19301
|
+
id: "schedule",
|
|
19302
|
+
group: "schedule",
|
|
19303
|
+
label: "Schedule",
|
|
19304
|
+
valueType: "schedule",
|
|
19305
|
+
operator: "withinSchedule",
|
|
19306
|
+
appliesTo: [
|
|
19307
|
+
"immediate",
|
|
19308
|
+
"track-end",
|
|
19309
|
+
"device-event",
|
|
19310
|
+
"package-event"
|
|
19311
|
+
],
|
|
19312
|
+
phase: "P1",
|
|
19313
|
+
description: "Weekly activation windows (invertible); absent = always active."
|
|
18912
19314
|
}
|
|
18913
|
-
|
|
18914
|
-
//#endregion
|
|
18915
|
-
//#region src/capabilities/llm.cap.ts
|
|
19315
|
+
];
|
|
18916
19316
|
/**
|
|
18917
|
-
*
|
|
18918
|
-
*
|
|
18919
|
-
*
|
|
18920
|
-
*
|
|
18921
|
-
*
|
|
19317
|
+
* The delivery lifecycle status of a history row — a straight read of the
|
|
19318
|
+
* durable outbox row's own status (single source of truth):
|
|
19319
|
+
* - `pending` — enqueued, in-flight or retrying with backoff
|
|
19320
|
+
* - `sent` — delivered (terminal)
|
|
19321
|
+
* - `dead` — dead-lettered after exhausting retries / a permanent
|
|
19322
|
+
* backend rejection / a deleted target (terminal; carries
|
|
19323
|
+
* the failure `error`)
|
|
18922
19324
|
*
|
|
18923
|
-
*
|
|
18924
|
-
*
|
|
18925
|
-
* write; a stored key NEVER round-trips to a client.
|
|
19325
|
+
* P1 has no `suppressed-quiet-hours` / `snoozed` states — those ride the P2
|
|
19326
|
+
* user dimension (quiet hours / snooze) and are additive when they land.
|
|
18926
19327
|
*/
|
|
18927
|
-
var
|
|
18928
|
-
"
|
|
18929
|
-
"
|
|
18930
|
-
"
|
|
18931
|
-
"google",
|
|
18932
|
-
"managed-local"
|
|
19328
|
+
var NcHistoryStatusSchema = z.enum([
|
|
19329
|
+
"pending",
|
|
19330
|
+
"sent",
|
|
19331
|
+
"dead"
|
|
18933
19332
|
]);
|
|
18934
|
-
|
|
18935
|
-
|
|
18936
|
-
|
|
18937
|
-
|
|
18938
|
-
|
|
18939
|
-
|
|
18940
|
-
|
|
18941
|
-
|
|
18942
|
-
|
|
18943
|
-
|
|
18944
|
-
|
|
18945
|
-
|
|
18946
|
-
|
|
18947
|
-
|
|
18948
|
-
temperature: z.number().min(0).max(2).optional(),
|
|
18949
|
-
maxTokens: z.number().int().positive().optional(),
|
|
18950
|
-
timeoutMs: z.number().int().positive().default(6e4),
|
|
18951
|
-
extraHeaders: z.record(z.string(), z.string()).optional(),
|
|
18952
|
-
/** kind === 'managed-local' only (spec §4). */
|
|
18953
|
-
runtime: ManagedRuntimeConfigSchema.optional()
|
|
18954
|
-
});
|
|
18955
|
-
/** ConfigUISchema tree passed through untyped on the wire (the
|
|
18956
|
-
* notification-output `ConfigSchemaPassthrough` precedent at
|
|
18957
|
-
* notification-output.cap.ts:151); the exported TS type re-tightens it. */
|
|
18958
|
-
var ConfigSchemaPassthrough = z.unknown();
|
|
18959
|
-
var LlmProfileKindDescriptorSchema = z.object({
|
|
18960
|
-
kind: LlmProfileKindSchema,
|
|
18961
|
-
label: z.string(),
|
|
18962
|
-
icon: z.string(),
|
|
18963
|
-
/** Stamped by each provider so the concat-fanned catalog stays routable. */
|
|
18964
|
-
addonId: z.string(),
|
|
18965
|
-
configSchema: ConfigSchemaPassthrough
|
|
18966
|
-
});
|
|
18967
|
-
var LlmDefaultSelectorSchema = z.union([z.object({ consumer: z.string() }), z.object({ purpose: z.enum(["text", "vision"]) })]);
|
|
18968
|
-
var LlmDefaultSchema = z.object({
|
|
18969
|
-
selector: LlmDefaultSelectorSchema,
|
|
18970
|
-
profileId: z.string()
|
|
18971
|
-
});
|
|
18972
|
-
/** Server-side rollup row — getUsage never dumps raw call rows (spec §6). */
|
|
18973
|
-
var LlmUsageRollupSchema = z.object({
|
|
18974
|
-
day: z.string(),
|
|
18975
|
-
consumer: z.string(),
|
|
18976
|
-
profileId: z.string(),
|
|
18977
|
-
calls: z.number(),
|
|
18978
|
-
okCalls: z.number(),
|
|
18979
|
-
errorCalls: z.number(),
|
|
18980
|
-
inputTokens: z.number(),
|
|
18981
|
-
outputTokens: z.number(),
|
|
18982
|
-
avgLatencyMs: z.number()
|
|
19333
|
+
/** The evaluated record kind a history row descends from (one per trigger). */
|
|
19334
|
+
var NcHistoryRecordKindSchema = z.enum([
|
|
19335
|
+
"object-event",
|
|
19336
|
+
"track-end",
|
|
19337
|
+
"device-event",
|
|
19338
|
+
"package-event"
|
|
19339
|
+
]);
|
|
19340
|
+
/** Subject summary frozen on the row at fire time (survives rule/record edits). */
|
|
19341
|
+
var NcHistorySubjectSchema = z.object({
|
|
19342
|
+
className: z.string(),
|
|
19343
|
+
label: z.string().optional(),
|
|
19344
|
+
confidence: z.number().optional(),
|
|
19345
|
+
zones: z.array(z.string()),
|
|
19346
|
+
timestamp: z.number()
|
|
18983
19347
|
});
|
|
18984
|
-
/**
|
|
18985
|
-
|
|
19348
|
+
/**
|
|
19349
|
+
* One delivery-history row. This is a read-only VIEW over the durable
|
|
19350
|
+
* outbox row (single source of truth — the same row the drain loop drives;
|
|
19351
|
+
* NO second write path, so history can never drift from delivery state).
|
|
19352
|
+
* The §3.2 fields map directly: `ruleId`/`targetId`/`deviceId` are columns,
|
|
19353
|
+
* `eventRef` is `recordKind`+`recordId`, `timestamps` are `createdAt`
|
|
19354
|
+
* (fire) / `updatedAt` (last transition), `status` + `error` are the
|
|
19355
|
+
* lifecycle. `ruleName` + `subject` are the intent snapshot frozen at
|
|
19356
|
+
* enqueue. `userId?` (per-recipient history) is P2 — no user dimension in
|
|
19357
|
+
* P1 (admin scope only).
|
|
19358
|
+
*/
|
|
19359
|
+
var NcHistoryEntrySchema = z.object({
|
|
19360
|
+
/** Outbox row id — the stable dedup id `ruleId:dedupRef:targetId`. */
|
|
18986
19361
|
id: z.string(),
|
|
18987
|
-
|
|
18988
|
-
|
|
18989
|
-
|
|
18990
|
-
|
|
18991
|
-
|
|
18992
|
-
|
|
18993
|
-
|
|
18994
|
-
|
|
18995
|
-
|
|
18996
|
-
|
|
18997
|
-
/**
|
|
18998
|
-
|
|
18999
|
-
|
|
19000
|
-
|
|
19001
|
-
|
|
19002
|
-
|
|
19003
|
-
|
|
19004
|
-
|
|
19005
|
-
|
|
19362
|
+
ruleId: z.string(),
|
|
19363
|
+
/** Rule name frozen at fire time (outlives a later rename / delete). */
|
|
19364
|
+
ruleName: z.string(),
|
|
19365
|
+
/** The rule urgency/trigger that produced this delivery. */
|
|
19366
|
+
delivery: NcDeliverySchema,
|
|
19367
|
+
targetId: z.string(),
|
|
19368
|
+
deviceId: z.number(),
|
|
19369
|
+
recordKind: NcHistoryRecordKindSchema,
|
|
19370
|
+
/** Event / track ref of the evaluated record (§3.2 `eventRef`). */
|
|
19371
|
+
recordId: z.string(),
|
|
19372
|
+
/** Present for track-scoped deliveries (object-event / track-end). */
|
|
19373
|
+
trackId: z.string().optional(),
|
|
19374
|
+
status: NcHistoryStatusSchema,
|
|
19375
|
+
/** Delivery attempts made so far. */
|
|
19376
|
+
attempts: z.number().int(),
|
|
19377
|
+
/** Fire time (outbox enqueue). */
|
|
19378
|
+
createdAt: z.number(),
|
|
19379
|
+
/** Last transition time (terminal for sent / dead). */
|
|
19380
|
+
updatedAt: z.number(),
|
|
19381
|
+
/** Failure detail — present on a `dead` row. */
|
|
19382
|
+
error: z.string().optional(),
|
|
19383
|
+
subject: NcHistorySubjectSchema
|
|
19006
19384
|
});
|
|
19007
|
-
|
|
19008
|
-
var
|
|
19009
|
-
|
|
19010
|
-
|
|
19385
|
+
/** `getHistory` default page size + hard ceiling (bounded output). */
|
|
19386
|
+
var NC_HISTORY_LIMIT_DEFAULT = 100;
|
|
19387
|
+
var NC_HISTORY_LIMIT_MAX = 500;
|
|
19388
|
+
/**
|
|
19389
|
+
* Query filter for `getHistory` (spec §4.2). Every field is a narrowing
|
|
19390
|
+
* AND; absent = unbounded on that axis. `since`/`until` bound the fire time
|
|
19391
|
+
* (`createdAt`, epoch ms, inclusive). `limit` is clamped to
|
|
19392
|
+
* {@link NC_HISTORY_LIMIT_MAX}. `userId` (per-recipient filtering) is P2.
|
|
19393
|
+
*/
|
|
19394
|
+
var NcHistoryFilterSchema = z.object({
|
|
19395
|
+
ruleId: z.string().optional(),
|
|
19396
|
+
deviceId: z.number().optional(),
|
|
19397
|
+
status: NcHistoryStatusSchema.optional(),
|
|
19398
|
+
since: z.number().optional(),
|
|
19399
|
+
until: z.number().optional(),
|
|
19400
|
+
limit: z.number().int().min(1).max(500).default(100)
|
|
19011
19401
|
});
|
|
19012
|
-
var
|
|
19013
|
-
name: "
|
|
19402
|
+
var notificationRulesCapability = {
|
|
19403
|
+
name: "notification-rules",
|
|
19014
19404
|
scope: "system",
|
|
19015
|
-
mode: "
|
|
19016
|
-
internal: false,
|
|
19017
|
-
providerKind: "ai",
|
|
19018
|
-
/** `nodeId` inputs below are DATA (the hub provider pins itself), never routing. */
|
|
19019
|
-
nodeIdMode: "data",
|
|
19405
|
+
mode: "singleton",
|
|
19020
19406
|
methods: {
|
|
19021
|
-
|
|
19022
|
-
|
|
19023
|
-
|
|
19024
|
-
listProfiles: method(z.object({}), z.array(LlmProfileSchema)),
|
|
19025
|
-
upsertProfile: method(z.object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
19026
|
-
kind: "mutation",
|
|
19027
|
-
auth: "admin"
|
|
19028
|
-
}),
|
|
19029
|
-
deleteProfile: method(ProfileRefInputSchema, z.void(), {
|
|
19030
|
-
kind: "mutation",
|
|
19031
|
-
auth: "admin"
|
|
19032
|
-
}),
|
|
19033
|
-
testProfile: method(ProfileRefInputSchema, LlmGenerateResultSchema, {
|
|
19407
|
+
listRules: method(z.object({}), z.object({ rules: z.array(NcRuleSchema) }), { auth: "admin" }),
|
|
19408
|
+
getRule: method(z.object({ ruleId: z.string() }), z.object({ rule: NcRuleSchema.nullable() }), { auth: "admin" }),
|
|
19409
|
+
createRule: method(z.object({ rule: NcRuleInputSchema }), z.object({ rule: NcRuleSchema }), {
|
|
19034
19410
|
kind: "mutation",
|
|
19035
|
-
auth: "admin"
|
|
19411
|
+
auth: "admin",
|
|
19412
|
+
caller: "required"
|
|
19036
19413
|
}),
|
|
19037
|
-
|
|
19038
|
-
|
|
19039
|
-
|
|
19040
|
-
|
|
19041
|
-
selector: LlmDefaultSelectorSchema,
|
|
19042
|
-
profileId: z.string().nullable()
|
|
19043
|
-
}), z.void(), {
|
|
19414
|
+
updateRule: method(z.object({
|
|
19415
|
+
ruleId: z.string(),
|
|
19416
|
+
patch: NcRulePatchSchema
|
|
19417
|
+
}), z.object({ rule: NcRuleSchema }), {
|
|
19044
19418
|
kind: "mutation",
|
|
19045
|
-
auth: "admin"
|
|
19419
|
+
auth: "admin",
|
|
19420
|
+
caller: "required"
|
|
19046
19421
|
}),
|
|
19047
|
-
|
|
19048
|
-
since: z.number().optional(),
|
|
19049
|
-
until: z.number().optional(),
|
|
19050
|
-
consumer: z.string().optional(),
|
|
19051
|
-
profileId: z.string().optional()
|
|
19052
|
-
}), z.array(LlmUsageRollupSchema)),
|
|
19053
|
-
listModelCatalog: method(z.object({}), z.array(ManagedModelCatalogEntrySchema)),
|
|
19054
|
-
listRuntimeNodes: method(z.object({}), z.array(LlmRuntimeNodeSchema)),
|
|
19055
|
-
listNodeModels: method(z.object({ nodeId: z.string() }), z.array(LlmNodeModelSchema)),
|
|
19056
|
-
installModel: method(z.object({
|
|
19057
|
-
nodeId: z.string(),
|
|
19058
|
-
model: ManagedModelRefSchema
|
|
19059
|
-
}), z.void(), {
|
|
19422
|
+
deleteRule: method(z.object({ ruleId: z.string() }), z.object({ success: z.literal(true) }), {
|
|
19060
19423
|
kind: "mutation",
|
|
19061
19424
|
auth: "admin"
|
|
19062
19425
|
}),
|
|
19063
|
-
|
|
19064
|
-
|
|
19065
|
-
|
|
19066
|
-
}), z.
|
|
19426
|
+
setRuleEnabled: method(z.object({
|
|
19427
|
+
ruleId: z.string(),
|
|
19428
|
+
enabled: z.boolean()
|
|
19429
|
+
}), z.object({ success: z.literal(true) }), {
|
|
19067
19430
|
kind: "mutation",
|
|
19068
19431
|
auth: "admin"
|
|
19069
19432
|
}),
|
|
19070
|
-
|
|
19071
|
-
|
|
19433
|
+
/**
|
|
19434
|
+
* Dry-run a rule against recently persisted records (object events for
|
|
19435
|
+
* `immediate`, closed tracks for `track-end`). Mutation kind only to
|
|
19436
|
+
* carry the full rule object safely; no side effects.
|
|
19437
|
+
*/
|
|
19438
|
+
testRule: method(z.object({
|
|
19439
|
+
rule: NcRuleInputSchema,
|
|
19440
|
+
lookbackMinutes: z.number().int().min(1).max(1440).default(60)
|
|
19441
|
+
}), z.object({ results: z.array(NcTestResultSchema) }), {
|
|
19072
19442
|
kind: "mutation",
|
|
19073
19443
|
auth: "admin"
|
|
19074
19444
|
}),
|
|
19075
|
-
|
|
19076
|
-
|
|
19077
|
-
|
|
19078
|
-
|
|
19445
|
+
getConditionCatalog: method(z.object({}), z.object({ catalog: z.array(NcConditionDescriptorSchema) })),
|
|
19446
|
+
/**
|
|
19447
|
+
* Queryable delivery history — a read-only view over the durable outbox
|
|
19448
|
+
* (fired rule, subject summary, target, status, timestamps, error on a
|
|
19449
|
+
* dead row). Newest-first, bounded by `filter.limit`. Retention follows
|
|
19450
|
+
* the outbox's own terminal-row prune horizon (no separate history
|
|
19451
|
+
* horizon — single collection, single source of truth). Admin-only in
|
|
19452
|
+
* P1 (no user dimension); the P2 viewer History screen adds per-caller
|
|
19453
|
+
* scoping on the same method.
|
|
19454
|
+
*/
|
|
19455
|
+
getHistory: method(z.object({ filter: NcHistoryFilterSchema.default({ limit: 100 }) }), z.object({ entries: z.array(NcHistoryEntrySchema) }), { auth: "admin" })
|
|
19079
19456
|
}
|
|
19080
19457
|
};
|
|
19081
19458
|
//#endregion
|
|
@@ -19955,110 +20332,6 @@ var pipelineAnalyticsCapability = {
|
|
|
19955
20332
|
}
|
|
19956
20333
|
};
|
|
19957
20334
|
//#endregion
|
|
19958
|
-
//#region src/capabilities/sensor-event-kinds.ts
|
|
19959
|
-
/**
|
|
19960
|
-
* Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
|
|
19961
|
-
* `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
|
|
19962
|
-
* caps into per-camera event-kind descriptors.
|
|
19963
|
-
*
|
|
19964
|
-
* The descriptor DATA (color / iconId / labelKey / parentKind / category)
|
|
19965
|
-
* is NOT duplicated here — every entry is derived from the single
|
|
19966
|
-
* `EVENT_TAXONOMY` dictionary (`catalogs/event-taxonomy.ts`). This file owns
|
|
19967
|
-
* ONLY the cap-name → taxonomy-kind mapping. Adding a new eventful sensor /
|
|
19968
|
-
* control cap means adding one line here (and a taxonomy entry); the anti-
|
|
19969
|
-
* drift guard `scripts/check-event-kind-coverage.ts` fails the build if an
|
|
19970
|
-
* eventful cap is missing.
|
|
19971
|
-
*/
|
|
19972
|
-
/** Map a taxonomy `iconId` onto the legacy closed `EventKindIcon` enum. */
|
|
19973
|
-
var LEGACY_ICON = {
|
|
19974
|
-
motion: "motion",
|
|
19975
|
-
audio: "audio",
|
|
19976
|
-
person: "person",
|
|
19977
|
-
vehicle: "vehicle",
|
|
19978
|
-
animal: "animal",
|
|
19979
|
-
package: "package",
|
|
19980
|
-
door: "door",
|
|
19981
|
-
pir: "pir",
|
|
19982
|
-
smoke: "smoke",
|
|
19983
|
-
water: "water",
|
|
19984
|
-
button: "button",
|
|
19985
|
-
generic: "generic",
|
|
19986
|
-
gas: "smoke",
|
|
19987
|
-
vibration: "generic",
|
|
19988
|
-
tamper: "generic",
|
|
19989
|
-
presence: "person",
|
|
19990
|
-
lock: "generic",
|
|
19991
|
-
siren: "generic",
|
|
19992
|
-
switch: "generic",
|
|
19993
|
-
doorbell: "button"
|
|
19994
|
-
};
|
|
19995
|
-
function legacyIcon(iconId) {
|
|
19996
|
-
return LEGACY_ICON[iconId] ?? "generic";
|
|
19997
|
-
}
|
|
19998
|
-
/**
|
|
19999
|
-
* Cap name → taxonomy kind id. Covers EVERY eventful sensor / control cap.
|
|
20000
|
-
* The anti-drift guard cross-checks this against the eventful caps declared
|
|
20001
|
-
* in `packages/types/src/capabilities/*.cap.ts`.
|
|
20002
|
-
*/
|
|
20003
|
-
var CAP_TO_KIND = {
|
|
20004
|
-
contact: "contact",
|
|
20005
|
-
motion: "motion-sensor",
|
|
20006
|
-
smoke: "smoke",
|
|
20007
|
-
flood: "flood",
|
|
20008
|
-
gas: "gas",
|
|
20009
|
-
"carbon-monoxide": "carbon-monoxide",
|
|
20010
|
-
vibration: "vibration",
|
|
20011
|
-
tamper: "tamper",
|
|
20012
|
-
presence: "presence",
|
|
20013
|
-
"enum-sensor": "enum-sensor",
|
|
20014
|
-
"event-emitter": "device-event",
|
|
20015
|
-
"lock-control": "lock",
|
|
20016
|
-
switch: "switch",
|
|
20017
|
-
button: "button",
|
|
20018
|
-
doorbell: "doorbell"
|
|
20019
|
-
};
|
|
20020
|
-
function buildDescriptor(capName, kind) {
|
|
20021
|
-
const t = EVENT_TAXONOMY[kind];
|
|
20022
|
-
if (t === void 0) throw new Error(`EVENT_KIND_BY_CAP: cap '${capName}' maps to unknown taxonomy kind '${kind}'`);
|
|
20023
|
-
return {
|
|
20024
|
-
...t,
|
|
20025
|
-
icon: legacyIcon(t.iconId)
|
|
20026
|
-
};
|
|
20027
|
-
}
|
|
20028
|
-
/**
|
|
20029
|
-
* Sensor / control cap name → static event-kind descriptor. A linked device
|
|
20030
|
-
* contributes one entry per bound cap present in this map.
|
|
20031
|
-
*/
|
|
20032
|
-
var EVENT_KIND_BY_CAP = Object.freeze(Object.fromEntries(Object.entries(CAP_TO_KIND).map(([capName, kind]) => [capName, buildDescriptor(capName, kind)])));
|
|
20033
|
-
/** The cap names covered by the taxonomy (for the anti-drift guard). */
|
|
20034
|
-
var EVENTFUL_CAP_NAMES = Object.keys(CAP_TO_KIND);
|
|
20035
|
-
/**
|
|
20036
|
-
* Build a full `EventKindDescriptor` for a taxonomy `kind`, stamping the
|
|
20037
|
-
* per-device `source`. Returns null when `kind` is not in the taxonomy.
|
|
20038
|
-
* This is THE bridge from the serializable taxonomy dictionary to the cap
|
|
20039
|
-
* wire shape — every event-kind descriptor the server emits goes through it,
|
|
20040
|
-
* so color/iconId/labelKey are never re-declared at a call site.
|
|
20041
|
-
*/
|
|
20042
|
-
function buildEventKindDescriptor(kind, source) {
|
|
20043
|
-
const t = EVENT_TAXONOMY[kind];
|
|
20044
|
-
if (t === void 0) return null;
|
|
20045
|
-
return {
|
|
20046
|
-
kind: t.kind,
|
|
20047
|
-
labelKey: t.labelKey,
|
|
20048
|
-
label: t.label,
|
|
20049
|
-
color: t.color,
|
|
20050
|
-
iconId: t.iconId,
|
|
20051
|
-
icon: legacyIcon(t.iconId),
|
|
20052
|
-
category: t.category,
|
|
20053
|
-
parentKind: t.parentKind,
|
|
20054
|
-
level: t.level,
|
|
20055
|
-
source: {
|
|
20056
|
-
capName: source.capName,
|
|
20057
|
-
deviceId: source.deviceId
|
|
20058
|
-
}
|
|
20059
|
-
};
|
|
20060
|
-
}
|
|
20061
|
-
//#endregion
|
|
20062
20335
|
//#region src/capabilities/pipeline-orchestrator.cap.ts
|
|
20063
20336
|
var CameraPipelineConfigSchema = z.object({
|
|
20064
20337
|
engine: PipelineEngineChoiceSchema.optional(),
|
|
@@ -20815,6 +21088,110 @@ var pipelineOrchestratorCapability = {
|
|
|
20815
21088
|
}
|
|
20816
21089
|
};
|
|
20817
21090
|
//#endregion
|
|
21091
|
+
//#region src/capabilities/sensor-event-kinds.ts
|
|
21092
|
+
/**
|
|
21093
|
+
* Cap → event-kind mapping for the SENSOR / CONTROL cap families — the table
|
|
21094
|
+
* `pipeline-analytics.listEventKinds` uses to turn a linked device's bound
|
|
21095
|
+
* caps into per-camera event-kind descriptors.
|
|
21096
|
+
*
|
|
21097
|
+
* The descriptor DATA (color / iconId / labelKey / parentKind / category)
|
|
21098
|
+
* is NOT duplicated here — every entry is derived from the single
|
|
21099
|
+
* `EVENT_TAXONOMY` dictionary (`catalogs/event-taxonomy.ts`). This file owns
|
|
21100
|
+
* ONLY the cap-name → taxonomy-kind mapping. Adding a new eventful sensor /
|
|
21101
|
+
* control cap means adding one line here (and a taxonomy entry); the anti-
|
|
21102
|
+
* drift guard `scripts/check-event-kind-coverage.ts` fails the build if an
|
|
21103
|
+
* eventful cap is missing.
|
|
21104
|
+
*/
|
|
21105
|
+
/** Map a taxonomy `iconId` onto the legacy closed `EventKindIcon` enum. */
|
|
21106
|
+
var LEGACY_ICON = {
|
|
21107
|
+
motion: "motion",
|
|
21108
|
+
audio: "audio",
|
|
21109
|
+
person: "person",
|
|
21110
|
+
vehicle: "vehicle",
|
|
21111
|
+
animal: "animal",
|
|
21112
|
+
package: "package",
|
|
21113
|
+
door: "door",
|
|
21114
|
+
pir: "pir",
|
|
21115
|
+
smoke: "smoke",
|
|
21116
|
+
water: "water",
|
|
21117
|
+
button: "button",
|
|
21118
|
+
generic: "generic",
|
|
21119
|
+
gas: "smoke",
|
|
21120
|
+
vibration: "generic",
|
|
21121
|
+
tamper: "generic",
|
|
21122
|
+
presence: "person",
|
|
21123
|
+
lock: "generic",
|
|
21124
|
+
siren: "generic",
|
|
21125
|
+
switch: "generic",
|
|
21126
|
+
doorbell: "button"
|
|
21127
|
+
};
|
|
21128
|
+
function legacyIcon(iconId) {
|
|
21129
|
+
return LEGACY_ICON[iconId] ?? "generic";
|
|
21130
|
+
}
|
|
21131
|
+
/**
|
|
21132
|
+
* Cap name → taxonomy kind id. Covers EVERY eventful sensor / control cap.
|
|
21133
|
+
* The anti-drift guard cross-checks this against the eventful caps declared
|
|
21134
|
+
* in `packages/types/src/capabilities/*.cap.ts`.
|
|
21135
|
+
*/
|
|
21136
|
+
var CAP_TO_KIND = {
|
|
21137
|
+
contact: "contact",
|
|
21138
|
+
motion: "motion-sensor",
|
|
21139
|
+
smoke: "smoke",
|
|
21140
|
+
flood: "flood",
|
|
21141
|
+
gas: "gas",
|
|
21142
|
+
"carbon-monoxide": "carbon-monoxide",
|
|
21143
|
+
vibration: "vibration",
|
|
21144
|
+
tamper: "tamper",
|
|
21145
|
+
presence: "presence",
|
|
21146
|
+
"enum-sensor": "enum-sensor",
|
|
21147
|
+
"event-emitter": "device-event",
|
|
21148
|
+
"lock-control": "lock",
|
|
21149
|
+
switch: "switch",
|
|
21150
|
+
button: "button",
|
|
21151
|
+
doorbell: "doorbell"
|
|
21152
|
+
};
|
|
21153
|
+
function buildDescriptor(capName, kind) {
|
|
21154
|
+
const t = EVENT_TAXONOMY[kind];
|
|
21155
|
+
if (t === void 0) throw new Error(`EVENT_KIND_BY_CAP: cap '${capName}' maps to unknown taxonomy kind '${kind}'`);
|
|
21156
|
+
return {
|
|
21157
|
+
...t,
|
|
21158
|
+
icon: legacyIcon(t.iconId)
|
|
21159
|
+
};
|
|
21160
|
+
}
|
|
21161
|
+
/**
|
|
21162
|
+
* Sensor / control cap name → static event-kind descriptor. A linked device
|
|
21163
|
+
* contributes one entry per bound cap present in this map.
|
|
21164
|
+
*/
|
|
21165
|
+
var EVENT_KIND_BY_CAP = Object.freeze(Object.fromEntries(Object.entries(CAP_TO_KIND).map(([capName, kind]) => [capName, buildDescriptor(capName, kind)])));
|
|
21166
|
+
/** The cap names covered by the taxonomy (for the anti-drift guard). */
|
|
21167
|
+
var EVENTFUL_CAP_NAMES = Object.keys(CAP_TO_KIND);
|
|
21168
|
+
/**
|
|
21169
|
+
* Build a full `EventKindDescriptor` for a taxonomy `kind`, stamping the
|
|
21170
|
+
* per-device `source`. Returns null when `kind` is not in the taxonomy.
|
|
21171
|
+
* This is THE bridge from the serializable taxonomy dictionary to the cap
|
|
21172
|
+
* wire shape — every event-kind descriptor the server emits goes through it,
|
|
21173
|
+
* so color/iconId/labelKey are never re-declared at a call site.
|
|
21174
|
+
*/
|
|
21175
|
+
function buildEventKindDescriptor(kind, source) {
|
|
21176
|
+
const t = EVENT_TAXONOMY[kind];
|
|
21177
|
+
if (t === void 0) return null;
|
|
21178
|
+
return {
|
|
21179
|
+
kind: t.kind,
|
|
21180
|
+
labelKey: t.labelKey,
|
|
21181
|
+
label: t.label,
|
|
21182
|
+
color: t.color,
|
|
21183
|
+
iconId: t.iconId,
|
|
21184
|
+
icon: legacyIcon(t.iconId),
|
|
21185
|
+
category: t.category,
|
|
21186
|
+
parentKind: t.parentKind,
|
|
21187
|
+
level: t.level,
|
|
21188
|
+
source: {
|
|
21189
|
+
capName: source.capName,
|
|
21190
|
+
deviceId: source.deviceId
|
|
21191
|
+
}
|
|
21192
|
+
};
|
|
21193
|
+
}
|
|
21194
|
+
//#endregion
|
|
20818
21195
|
//#region src/capabilities/server-management.cap.ts
|
|
20819
21196
|
/**
|
|
20820
21197
|
* server-management — per-NODE singleton capability for a node's ROOT
|
|
@@ -22980,7 +23357,28 @@ var FaceInfoSchema = z.object({
|
|
|
22980
23357
|
* (`/addon/<addonId>/event-media/<keyFrameMediaKey>`). Absent when the
|
|
22981
23358
|
* track produced no key frame (e.g. native/onboard source) — the UI falls
|
|
22982
23359
|
* back to the inline `base64` face crop. */
|
|
22983
|
-
keyFrameMediaKey: z.string().optional()
|
|
23360
|
+
keyFrameMediaKey: z.string().optional(),
|
|
23361
|
+
/** Winning identity-match cosine (0..1) for this face's track, when an
|
|
23362
|
+
* identity was auto-confirmed. Lets the UI surface WHY a face was assigned
|
|
23363
|
+
* (confidence badge / low-confidence audit). Absent on legacy rows and on
|
|
23364
|
+
* faces that were never auto-recognized. */
|
|
23365
|
+
bestMatchScore: z.number().optional(),
|
|
23366
|
+
/** Native-scale face short side (px) at recognition time, when the runner
|
|
23367
|
+
* measured it. Lets the UI flag low-resolution auto-assignments. Absent on
|
|
23368
|
+
* legacy rows / runners that reported no native measure. */
|
|
23369
|
+
nativeFaceShortSidePx: z.number().optional(),
|
|
23370
|
+
/** SUGGESTED identity for this face — a plausible-but-not-confident match that
|
|
23371
|
+
* MISSED auto-assignment (cosine in the suggestion band, or above threshold
|
|
23372
|
+
* but blocked only by the recognition size floor). Mutually exclusive with
|
|
23373
|
+
* `recognizedIdentityId` (a suggestion is NEVER an assignment): the face stays
|
|
23374
|
+
* UNASSIGNED and everything else keeps treating it as unrecognized — the UI
|
|
23375
|
+
* merely offers a one-tap "is this <name>?" confirm. Absent on legacy rows and
|
|
23376
|
+
* on faces that were auto-assigned or below the suggestion band. (2026-07-24) */
|
|
23377
|
+
suggestedIdentityId: z.string().optional(),
|
|
23378
|
+
/** Peak identity-match cosine (0..1) for `suggestedIdentityId`, captured at the
|
|
23379
|
+
* same moment as `bestMatchScore` (track peak, at close). Lets the UI rank /
|
|
23380
|
+
* badge suggestion confidence. Present iff `suggestedIdentityId` is. (2026-07-24) */
|
|
23381
|
+
suggestedMatchScore: z.number().optional()
|
|
22984
23382
|
});
|
|
22985
23383
|
var FaceFilterEnum = z.enum([
|
|
22986
23384
|
"unassigned",
|
|
@@ -25642,7 +26040,6 @@ var CAPABILITY_NAMES = {
|
|
|
25642
26040
|
addonWidgetsSource: "addon-widgets-source",
|
|
25643
26041
|
addons: "addons",
|
|
25644
26042
|
adminUi: "admin-ui",
|
|
25645
|
-
advancedNotifier: "advanced-notifier",
|
|
25646
26043
|
airQualitySensor: "air-quality-sensor",
|
|
25647
26044
|
alarmPanel: "alarm-panel",
|
|
25648
26045
|
alerts: "alerts",
|
|
@@ -25815,10 +26212,6 @@ var CAPABILITY_ROUTER_KEYS = [
|
|
|
25815
26212
|
key: "adminUi",
|
|
25816
26213
|
name: "admin-ui"
|
|
25817
26214
|
},
|
|
25818
|
-
{
|
|
25819
|
-
key: "advancedNotifier",
|
|
25820
|
-
name: "advanced-notifier"
|
|
25821
|
-
},
|
|
25822
26215
|
{
|
|
25823
26216
|
key: "airQualitySensor",
|
|
25824
26217
|
name: "air-quality-sensor"
|
|
@@ -26371,7 +26764,6 @@ var ALL_CAPABILITY_DEFINITIONS = [
|
|
|
26371
26764
|
addonWidgetsSourceCapability,
|
|
26372
26765
|
addonsCapability,
|
|
26373
26766
|
adminUiCapability,
|
|
26374
|
-
advancedNotifierCapability,
|
|
26375
26767
|
airQualitySensorCapability,
|
|
26376
26768
|
alarmPanelCapability,
|
|
26377
26769
|
alertsCapability,
|
|
@@ -26862,36 +27254,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
26862
27254
|
addonId: null,
|
|
26863
27255
|
access: "view"
|
|
26864
27256
|
},
|
|
26865
|
-
"advancedNotifier.deleteRule": {
|
|
26866
|
-
capName: "advanced-notifier",
|
|
26867
|
-
capScope: "system",
|
|
26868
|
-
addonId: null,
|
|
26869
|
-
access: "delete"
|
|
26870
|
-
},
|
|
26871
|
-
"advancedNotifier.getHistory": {
|
|
26872
|
-
capName: "advanced-notifier",
|
|
26873
|
-
capScope: "system",
|
|
26874
|
-
addonId: null,
|
|
26875
|
-
access: "view"
|
|
26876
|
-
},
|
|
26877
|
-
"advancedNotifier.getRules": {
|
|
26878
|
-
capName: "advanced-notifier",
|
|
26879
|
-
capScope: "system",
|
|
26880
|
-
addonId: null,
|
|
26881
|
-
access: "view"
|
|
26882
|
-
},
|
|
26883
|
-
"advancedNotifier.testRule": {
|
|
26884
|
-
capName: "advanced-notifier",
|
|
26885
|
-
capScope: "system",
|
|
26886
|
-
addonId: null,
|
|
26887
|
-
access: "create"
|
|
26888
|
-
},
|
|
26889
|
-
"advancedNotifier.upsertRule": {
|
|
26890
|
-
capName: "advanced-notifier",
|
|
26891
|
-
capScope: "system",
|
|
26892
|
-
addonId: null,
|
|
26893
|
-
access: "create"
|
|
26894
|
-
},
|
|
26895
27257
|
"alarmPanel.arm": {
|
|
26896
27258
|
capName: "alarm-panel",
|
|
26897
27259
|
capScope: "device",
|
|
@@ -29214,6 +29576,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
29214
29576
|
addonId: null,
|
|
29215
29577
|
access: "view"
|
|
29216
29578
|
},
|
|
29579
|
+
"notificationRules.getHistory": {
|
|
29580
|
+
capName: "notification-rules",
|
|
29581
|
+
capScope: "system",
|
|
29582
|
+
addonId: null,
|
|
29583
|
+
access: "view"
|
|
29584
|
+
},
|
|
29217
29585
|
"notificationRules.getRule": {
|
|
29218
29586
|
capName: "notification-rules",
|
|
29219
29587
|
capScope: "system",
|
|
@@ -31458,7 +31826,6 @@ var KNOWN_CAP_NAMES = [
|
|
|
31458
31826
|
"addon-widgets-source",
|
|
31459
31827
|
"addons",
|
|
31460
31828
|
"admin-ui",
|
|
31461
|
-
"advanced-notifier",
|
|
31462
31829
|
"alarm-panel",
|
|
31463
31830
|
"alerts",
|
|
31464
31831
|
"audio-analysis",
|
|
@@ -31634,7 +32001,6 @@ var SYSTEM_CAP_NAMES = [
|
|
|
31634
32001
|
"addon-widgets-source",
|
|
31635
32002
|
"addons",
|
|
31636
32003
|
"admin-ui",
|
|
31637
|
-
"advanced-notifier",
|
|
31638
32004
|
"alerts",
|
|
31639
32005
|
"audio-analyzer",
|
|
31640
32006
|
"audio-codec",
|
|
@@ -32287,4 +32653,4 @@ function enumerateInferenceDevices(hw) {
|
|
|
32287
32653
|
return out;
|
|
32288
32654
|
}
|
|
32289
32655
|
//#endregion
|
|
32290
|
-
export { ACCESSORY_LABEL, ALL_CAPABILITY_DEFINITIONS, APPLE_SA_TO_MACRO, AUDIO_BACKEND_CHOICES, AUDIO_MACRO_LABELS, AccessoriesStatusSchema, AccessoryKind, AddBrokerInputSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonPageDeclarationSchema, AddonPageInfoSchema, AdoptInputSchema as AdoptionAdoptInputSchema, AdoptResultSchema as AdoptionAdoptResultSchema, AdoptionFilterSchema, GetCandidateInputSchema as AdoptionGetCandidateInputSchema, ListCandidatesInputSchema as AdoptionListCandidatesInputSchema, ListCandidatesOutputSchema as AdoptionListCandidatesOutputSchema, ReleaseInputSchema as AdoptionReleaseInputSchema, AdoptionStatusSchema, AgentLoadSummarySchema, AirQualitySensorStatusSchema, AlarmArmModeSchema, AlarmPanelStatusSchema, AlarmStateSchema, AlertSchema, AlertSeveritySchema, AlertSourceSchema, AlertStatusSchema, AmbientLightSensorStatusSchema, ApiKeyRecordSchema, ApiKeySummarySchema, ArchiveEntrySchema, ArchiveManifestSchema, AttachmentMediaTypeSchema, AttachmentSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AuthResultSchema, AutoUpdateSettingsSchema, AutomationControlStatusSchema, AvailableIntegrationTypeSchema, BACKEND_TO_FORMAT, BATTERY_DEVICE_PROFILE, BacklightModeSchema, BackupDestinationInfoSchema, BackupEntrySchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatteryStatusSchema, BinaryStatusSchema, BoundingBoxSchema, BrightnessStatusSchema, AddInputSchema as BrokerAddInputSchema, BrokerAudioClientSchema, BrokerClientsSchema, BrokerConnectionDetailsSchema, BrokerConsumerAttributionSchema, BrokerConsumerKindSchema, BrokerDecodedClientSchema, BrokerEncodedClientSchema, GetStateInputSchema as BrokerGetStateInputSchema, BrokerInfoSchema, BrokerProviderInfoSchema, PublishInputSchema as BrokerPublishInputSchema, RegistryStatusSchema as BrokerRegistryStatusSchema, BrokerRtspClientSchema, BrokerStatsSchema, BrokerStatusEnum, BrokerStatusSchema, SubscribeInputSchema as BrokerSubscribeInputSchema, SubscribeResultSchema as BrokerSubscribeResultSchema, TestConnectionResultSchema as BrokerTestConnectionResultSchema, UnsubscribeInputSchema as BrokerUnsubscribeInputSchema, CAM_PROFILE_ORDER, CAPABILITY_NAMES, CAPABILITY_ROUTER_KEYS, CAP_NAMES_WITH_STATUS, CAP_NODE_PIN_CONTEXT_KEY, CAP_PROVIDER_KIND_MAP, COCO_80_LABELS, COCO_TO_MACRO, CamProfileSchema, CamStreamDescriptorSchema, CamStreamKindSchema, CamStreamResolutionSchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraCredentialsSchema, CameraCredentialsStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusSchema, CameraStreamSchema, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CarbonMonoxideStatusSchema, ChargingStatus, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipPlaybackSchema, ClipSchema, ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, CollectionColumnSchema, CollectionIndexSchema, ColorStatusSchema, ConfigEntrySchema, ConfigSectionWithValuesSchema, ConfigTabDeclarationSchema, ConnectivityStatusSchema, ConsumableItemSchema, ConsumablesStatusSchema, ContactStatusSchema, ControlKindSchema, ControlStatusSchema, ConvertArtifactSchema, ConvertResultSchema, ConvertTargetSchema, CoverStateSchema, CoverStatusSchema, CreateApiKeyInputSchema, CreateApiKeyResultSchema, CreateIntegrationInputSchema, CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, CreateUserInputSchema, CustomActionInputSchema, CustomModelDescriptorSchema, DATAPLANE_SECRET_HEADER, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_EVENT_COLOR, DEFAULT_FEATURES, DEFAULT_RETENTION, DEFAULT_SCRUB_THUMBNAIL_PRESET, DEVICE_BACKEND_TO_FORMAT, DEVICE_CAP_NAMES, DEVICE_PROFILES, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATUS_METHOD, DEVICE_TYPE_CONTROL_KIND, DEVICE_TYPE_INFO, DayNightModeSchema, DayNightOptionsSchema, DayNightSettingsPatchSchema, DayNightStatusSchema, DecodedAudioChunkSchema, DecodedFrameSchema, DecoderSessionConfigSchema, DecoderStatsSchema, DeleteIntegrationResultSchema, DetectionSourceSchema, DeviceCodeSeveritySchema, DeviceConfig, DeviceDiscoveryStatusSchema, ExposeInputSchema as DeviceExportExposeInputSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceInfoSchema, DeviceLinkModeSchema, DeviceNetworkStatsSchema, DeviceRole, DeviceRuntimeState, DeviceStatusSchema, DeviceType, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DiscoveredTargetSchema, DisposerChain, DoorbellPressEventSchema, DoorbellStatusSchema, EVENTFUL_CAP_NAMES, EVENT_KIND_BY_CAP, EVENT_PAD_MS, EVENT_TAXONOMY, EXPRESSION_BUILTINS, EXPRESSION_BUILTIN_NAMES, EXPRESSION_COMPILE_CACHE_CAPACITY, EXPRESSION_IDENTIFIER_RE, EXPRESSION_INJECTED_NOW, ElementConfigStore, EmbeddingInfoSchema, EmbeddingResultSchema, EncodeProfileSchema, EncodedPacketSchema, EnrichedWidgetMetadataSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, EventCategory, EventEmitterStatusSchema, EventFireSchema, EventItemSchema, EventKindCategorySchema, EventKindDescriptorSchema, EventKindIconSchema, EventKindSchema, EventSourceType, ExportDownloadSchema, ExportOptionsSchema, ExportRecordSchema, ExportSetupFieldSchema, ExportSetupSchema, ExportSpeedSchema, ExportStateSchema, ExportTimelapseSchema, ExposedDeviceSchema, ExposureModeSchema, ExpressionEvalError, ExpressionParseError, FanControlStatusSchema, FanDirectionSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FloodStatusSchema, FrameHandleFormatSchema, FrameHandleSchema, FrameInputSchema, GasStatusSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, HF_BASE_URL, HF_REPO, HWACCEL_OPTIONS, HealthStatusSchema, HistoryPointSchema, HistoryResolutionEnum, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, ImageRotateSchema, ImageSettingsOptionsSchema, ImageSettingsPatchSchema, ImageSettingsStatusSchema, ImageStatusSchema, IngestOwnerSchema, InstalledPackageSchema, IntegrationLiteSchema, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, KNOWN_CAP_NAMES, KeyEventSchema, LabelDefinitionSchema, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LinkedDeviceSchema, LlmDefaultSchema, LlmDefaultSelectorSchema, LlmErrorCodeSchema, LlmGenerateBaseInputSchema, LlmGenerateErrSchema, LlmGenerateOkSchema, LlmGenerateResultSchema, LlmImageSchema, LlmNodeModelSchema, LlmProfileKindDescriptorSchema, LlmProfileKindSchema, LlmProfileSchema, LlmRuntimeCompleteInputSchema, LlmRuntimeDiskUsageSchema, LlmRuntimeNodeSchema, LlmRuntimeStatusSchema, LlmUsageRollupSchema, LlmUsageSchema, LocateSegmentResultSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogEntrySchema, LogLevelSchema, LogStreamEntrySchema, LoginMethodContributionSchema, LoginStageEnum, MACRO_LABELS, MAX_EXPRESSION_AST_NODES, MAX_EXPRESSION_BINDINGS, MAX_EXPRESSION_CALL_ARGS, MAX_EXPRESSION_EVAL_STEPS, MAX_EXPRESSION_SOURCE_LENGTH, METHOD_ACCESS_MAP, MODEL_FORMATS, MOTION_TRIGGER_FEATURE, ManagedModelCatalogEntrySchema, ManagedModelRefSchema, ManagedRuntimeConfigSchema, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStatusSchema, MeshPeerSchema, MeshStatusSchema, MethodAccessSchema, ModelCatalogEntrySchema, ModelConvertInputSchema, ModelConvertMetadataSchema, ModelDistributeInputSchema, ModelDistributeResultSchema, ModelExtraFileSchema, ModelFormatEntrySchema, ModelFormatsSchema, ModelSubstitutionSchema, ModelVariantGroupSchema, MotionAnalysisResultSchema, MotionEventSchema, MotionOnMotionChangedDataSchema, MotionRegionSchema, MotionSourceEnum, MotionSourcesSchema, MotionStatusSchema, MotionTriggerRuntimeStateSchema, MotionTriggerStatusSchema, MotionZoneOptionsSchema, MotionZonePatchSchema, MotionZoneRegionSchema, MotionZoneStatusSchema, StatusSchema as MqttBrokerStatusSchema, NC_CONDITION_CATALOG, NC_MAX_PER_TRACK_IMMEDIATE, NativeCropBboxSchema, NativeCropRefSchema, NativeCropResultSchema, NativeDetectionSchema, NativeObjectClassEnum, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionStatusSchema, NcConditionDescriptorSchema, NcConditionsSchema, NcDeliverySchema, NcMediaPolicySchema, NcPlateMatcherSchema, NcRuleInputSchema, NcRulePatchSchema, NcRuleSchema, NcRuleTargetSchema, NcScheduleSchema, NcScheduleWindowSchema, NcTestResultSchema, NcThrottleSchema, NcZoneConditionSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NotificationActionSchema, NotificationFormatSchema, NotificationHistoryEntrySchema, NotificationRuleSchema, NotificationSchema, NotifierStatusSchema, NumericSensorStatusSchema, OPS_LOG_DEFAULT_LIMIT, OPS_LOG_RING_DEFAULT_MAX, OauthIntegrationDescriptorSchema, ObjectEventSchema, OpsLogDomainSchema, OpsLogEntrySchema, OpsLogOpSchema, OpsLogQueryInputSchema, OpsLogReasonSchema, OrchestratorMetricsSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdStatusSchema, PET_FEEDER_MANUAL_FEED_MAX, PET_FEEDER_MANUAL_FEED_MIN, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PROVIDER_KIND_CAP_NAMES, PYTHON_SCRIPT, PackageUpdateSchema, PackageVersionInfoSchema, PasskeyLoginMethodSchema, PasskeySummarySchema, PcmSampleFormatSchema, PerScopeBreakdownSchema, PetFeederStatusSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, PlaceholderReasonSchema, PolygonPointSchema, PowerMeterStatusSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzMoveCommandSchema, PtzPositionSchema, PtzPresetSchema, PtzStatusSchema, QueryFilterSchema, REACHABILITY_FAILURES_TO_OFFLINE, REACHABILITY_POLL_INTERVAL_MS, REACHABILITY_PROBE_TIMEOUT_MS, RECOGNITION_TYPES, RESERVED_BINDING_NAMES, RUNTIME_DEFAULTS, RUNTIME_TO_FORMAT, RawStateResultSchema, ReadSegmentBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, RecentTracksPageSchema, RecentTracksQueryInput, RecordingAvailabilitySchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingModeSchema, RecordingRangeSchema, RecordingRetentionSchema, RecordingRuleSchema, RecordingScheduleSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RedirectLoginMethodSchema, RenderedAsSchema, ReportMotionInputSchema, RingBuffer, RtpSourceSchema, RtspRestreamEntrySchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerInferenceDeviceSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, SCOPE_PRESETS, SCRUB_THUMBNAIL_PRESETS, SCRUB_THUMBNAIL_PRESET_LABELS, SCRUB_THUMBNAIL_PRESET_ORDER, SENSOR_FEATURES, SENSOR_MAP, SOURCE_INFO_METADATA_KEY, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUB_DETECTION_TYPES, SYSTEM_CAP_NAMES, SceneCheckSchema, SceneConditionSchema, SceneMonitorSchema, SceneMonitorStateSchema, SceneMonitorStatusSchema, SceneReferenceSchema, ScopedTokenSchema, ScopedTokenSummarySchema, ScoredObjectEventSchema, ScriptRunnerStatusSchema, ScrubThumbnailPresetSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SendResultSchema, SensorEventSchema, ServerBootModeSchema, ServerPackageStatusSchema, ServerRollbackInfoSchema, ServerUpdateActionResultSchema, ServerUpdateCheckResultSchema, ServerUpdateStateSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShmRingStatsSchema, SmokeStatusSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StartEmbeddedInputSchema, StationaryObjectSchema, AbortUploadInputSchema as StorageAbortUploadInputSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageLocationDeclarationSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StreamCodecSchema, StreamFormatSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, SwitchStatusSchema, SystemMetricsSchema, SystemMirror, TAXONOMY_COLORS, TIMEZONES, TamperStatusSchema, TankStatusSchema, TargetKindCapsSchema, TargetKindLevelSchema, TargetKindSchema, TargetSchema, TemperatureSensorStatusSchema, TestConnectionResultSchema$1 as TestConnectionResultSchema, TestResultSchema, ToastSchema, TokenScopeSchema, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, TrackCascadeCountsSchema, TrackEnvelopeSchema, TrackProjectionSchema, TrackSchema, TrackStateSchema, TrackZoneFilterSchema, TrackedDetectionSchema, TurnServerSchema, UNIT_TABLE, BrokerInfoSchema$1 as UnifiedBrokerInfoSchema, UnitConversionError, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserSummarySchema, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VibrationStatusSchema, VideoEncodeSchema, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WhiteBalanceModeSchema, WidgetHostEnum, WidgetLoginMethodSchema, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, YAMNET_TO_MACRO, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, accessoriesCapability, accessoryStableId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, advancedNotifierCapability, airQualitySensorCapability, alarmPanelCapability, alertsCapability, ambientLightSensorCapability, applyTransform, asBoolean, asJsonArray, asJsonObject, asNumber, asString, audioAnalysisCapability, audioAnalyzerCapability, audioCodecCapability, audioMetricsCapability, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, brightnessCapability, brokerCapability, buildAddonRouteProvider, buildEventKindDescriptor, buildModelVariantGroups, buildStreamParamsConfigSchema, buttonCapability, cameraCredentialsCapability, cameraPipelineConfigCapability, cameraStreamsCapability, canConvertUnit, carbonMonoxideCapability, cellsToRects, classifyStream, classifyStreams, climateControlCapability, collectHydratedFieldEntries, collectHydratedFieldValues, colorCapability, colorForKind, compileExpression, compileExpressionSafe, connectivityCapability, consumablesCapability, contactCapability, controlCapability, convertUnit, cosineSimilarity, coverCapability, createDeviceProxy, createDurableState, createEvent, createExpressionScope, createLazyTrpcSource, createMirrorSource, createRuntimeStateBridge, createSliceHandle, createSystemProxy, customAction, customModelRegistryCapability, dayNightCapability, decoderCapability, defaultDeviceFor, defineCustomActions, describeModelVariant, detectionPipelineCapability, deviceAdoptionCapability, deviceBackendToFormat, deviceCustomAction, deviceDiscoveryCapability, deviceExportCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceStateCapability, deviceStatusCapability, doorbellCapability, embeddingEncoderCapability, emitDownForOwnedCaps, emitReadiness, encodeProfileFromStreamShape, enumSensorCapability, enumerateInferenceDevices, enumerateItemArrayFields, enumerateSchemaFields, errMsg, evaluateAst, evaluateLinkExpression, evaluateZoneRules, event, eventEmitterCapability, eventsCapability, expandCapMethods, extractNestedAddonId, extractSourceInfoFromMetadata, faceGalleryCapability, fanControlCapability, featureProbeCapability, filesystemBrowseCapability, findTimezone, floodCapability, formatForBackend, formatForRuntime, gasCapability, getAudioMacroClassIds, getByPath, getCapsByProviderKind, getTaxonomyEntry, hasMotionTrigger, hfModelUrl, htmlToText, humidifierCapability, humiditySensorCapability, hydrateSchema, imageCapability, imageSettingsCapability, integrationsCapability, intercomCapability, isAgentOnlyPlacement, isArrayOutputSchema, isCollectionArrayMethod, isDeployableToAgent, isDeviceConfigCap, isEvent, isNode, isObjectInput, isVoidInput, jobKindSchema, kebabToCamel, lawnMowerControlCapability, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, llmCapability, llmRuntimeCapability, localNetworkCapability, locationSimilarity, lockControlCapability, logDestinationCapability, loginMethodCapability, looseSchema, makeProfileBrokerId, makeSourceBrokerId, mapAudioLabelToMacro, markdownToHtmlLite, markdownToText, maskUrlCredentials, mediaPlayerCapability, mergeSourceInfo, meshNetworkCapability, method, metricsProviderCapability, migrateConfigToBands, modelConvertCapability, modelDistributorCapability, modelFormatForRuntime, motionCapability, motionDetectionCapability, motionTriggerCapability, motionZonesCapability, mqttBrokerCapability, nativeObjectDetectionCapability, networkAccessCapability, networkQualityCapability, nodePin, nodesCapability, normalizeAddonInitResult, normalizeUnit, notificationOutputCapability, notificationRulesCapability, notifierCapability, numericSensorCapability, oauthIntegrationCapability, objectInputDeclaresAddonId, osdCapability, parseCameraStreamConfig, parseExpression, parseJsonArray, parseJsonObject, parseJsonUnknown, parseProfileBrokerId, parseStreamParamsFormPatch, petFeederCapability, pickAccessoryControl, pickPreferredRtspEntry, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plateGalleryCapability, platformProbeCapability, powerMeterCapability, prepareNotification, presenceCapability, pressureSensorCapability, privacyMaskCapability, procedureAuthKey, ptzAutotrackCapability, ptzCapability, pythonScriptForBackend, readNodePin, readinessKey, rebootCapability, recordingCapability, recordingExportCapability, rectsToCells, requiresPython, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveAddonRuntime, resolveCapMount, resolveDetectionRuntime, resolveDeviceControlKind, resolveDeviceProfile, resolveFormat, resolveHydratedFieldValue, resolveModelFormat, resolveMutate, resolveRunnerId, resolveScrubThumbnailGeometry, resolveVariantModelId, runInferenceStep, runtimeDevices, sceneMonitorCapability, scopeKey, scoreRuntimes, scriptRunnerCapability, selectAssignedProfileSlots, serverManagementCapability, setByPath, settingsStoreCapability, sleep, sleepCancellable, smokeCapability, smtpProviderCapability, snapshotCapability, ssoBridgeCapability, startReachabilityPoll, storageCapability, storageEvictableCapability, storageProviderCapability, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, subKindsOf, supportedRuntimes, switchCapability, synthesizeSourceInfo, systemCapability, tamperCapability, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, textToHtml, toDeviceSummary, toExpressionValue, toStreamSourceEntry, toastCapability, tokenize, transcodeBody, tryConvertUnit, turnProviderCapability, unitDimension, unitsForDimension, updateCapability, userManagementCapability, userPasskeysCapability, vacuumControlCapability, validateExpressionSource, valveCapability, vibrationCapability, videoclipsCapability, viewerUiCapability, waterHeaterCapability, weatherCapability, webrtcClientHintsSchema, webrtcSessionCapability, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneRulesCapability, zonesCapability };
|
|
32656
|
+
export { ACCESSORY_LABEL, ALL_CAPABILITY_DEFINITIONS, APPLE_SA_TO_MACRO, AUDIO_BACKEND_CHOICES, AUDIO_MACRO_LABELS, AccessoriesStatusSchema, AccessoryKind, AddBrokerInputSchema, AddonAutoUpdateSchema, AddonListItemSchema, AddonPageDeclarationSchema, AddonPageInfoSchema, AdoptInputSchema as AdoptionAdoptInputSchema, AdoptResultSchema as AdoptionAdoptResultSchema, AdoptionFilterSchema, GetCandidateInputSchema as AdoptionGetCandidateInputSchema, ListCandidatesInputSchema as AdoptionListCandidatesInputSchema, ListCandidatesOutputSchema as AdoptionListCandidatesOutputSchema, ReleaseInputSchema as AdoptionReleaseInputSchema, AdoptionStatusSchema, AgentLoadSummarySchema, AirQualitySensorStatusSchema, AlarmArmModeSchema, AlarmPanelStatusSchema, AlarmStateSchema, AlertSchema, AlertSeveritySchema, AlertSourceSchema, AlertStatusSchema, AmbientLightSensorStatusSchema, ApiKeyRecordSchema, ApiKeySummarySchema, ArchiveEntrySchema, ArchiveManifestSchema, AttachmentMediaTypeSchema, AttachmentSchema, AudioAnalysisResultSchema, AudioAnalysisSettingsSchema, AudioChunkInputSchema, AudioClassSummarySchema, AudioClassificationLabelSchema, AudioClassificationResultSchema, AudioCodecInfoSchema, AudioDecodeSessionConfigSchema, AudioEncodeSchema, AudioEncodeSessionConfigSchema, AudioEncodedChunkSchema, AudioEventSchema, AudioLevelSchema, AudioMetricsHistoryPointSchema, AudioMetricsHistorySchema, AudioMetricsSnapshotSchema, AudioPcmChunkSchema, AuthResultSchema, AutoUpdateSettingsSchema, AutomationControlStatusSchema, AvailableIntegrationTypeSchema, BACKEND_TO_FORMAT, BATTERY_DEVICE_PROFILE, BacklightModeSchema, BackupDestinationInfoSchema, BackupEntrySchema, BaseAddon, BaseDevice, BaseDeviceProvider, BatteryStatusSchema, BinaryStatusSchema, BoundingBoxSchema, BrightnessStatusSchema, AddInputSchema as BrokerAddInputSchema, BrokerAudioClientSchema, BrokerClientsSchema, BrokerConnectionDetailsSchema, BrokerConsumerAttributionSchema, BrokerConsumerKindSchema, BrokerDecodedClientSchema, BrokerEncodedClientSchema, GetStateInputSchema as BrokerGetStateInputSchema, BrokerInfoSchema, BrokerProviderInfoSchema, PublishInputSchema as BrokerPublishInputSchema, RegistryStatusSchema as BrokerRegistryStatusSchema, BrokerRtspClientSchema, BrokerStatsSchema, BrokerStatusEnum, BrokerStatusSchema, SubscribeInputSchema as BrokerSubscribeInputSchema, SubscribeResultSchema as BrokerSubscribeResultSchema, TestConnectionResultSchema as BrokerTestConnectionResultSchema, UnsubscribeInputSchema as BrokerUnsubscribeInputSchema, CAM_PROFILE_ORDER, CAPABILITY_NAMES, CAPABILITY_ROUTER_KEYS, CAP_NAMES_WITH_STATUS, CAP_NODE_PIN_CONTEXT_KEY, CAP_PROVIDER_KIND_MAP, COCO_80_LABELS, COCO_TO_MACRO, CamProfileSchema, CamStreamDescriptorSchema, CamStreamKindSchema, CamStreamResolutionSchema, CameraAssignmentStatusSchema, CameraAudioStatusSchema, CameraBrokerProfileSchema, CameraBrokerStatusSchema, CameraCredentialsSchema, CameraCredentialsStatusSchema, CameraDecoderShmSchema, CameraDecoderStatusSchema, CameraDetectionPhaseSchema, CameraDetectionProvisioningSchema, CameraDetectionProvisioningStateSchema, CameraDetectionStatusSchema, CameraMetricsSchema, CameraMetricsWithDeviceIdSchema, CameraMotionStatusSchema, CameraRecordingModeSchema, CameraRecordingStatusSchema, CameraSourceStatusSchema, CameraSourceStreamSchema, CameraStatusSchema, CameraStreamSchema, CandidateQueryFilterSchema, CapScopeSchema, CapabilityBindingsSchema, CarbonMonoxideStatusSchema, ChargingStatus, ClientNetworkStatsSchema, ClimateControlStatusSchema, ClipPlaybackSchema, ClipSchema, ClusterAddonNodeDeploymentSchema, ClusterAddonStatusEntrySchema, CollectionColumnSchema, CollectionIndexSchema, ColorStatusSchema, ConfigEntrySchema, ConfigSectionWithValuesSchema, ConfigTabDeclarationSchema, ConnectivityStatusSchema, ConsumableItemSchema, ConsumablesStatusSchema, ContactStatusSchema, ControlKindSchema, ControlStatusSchema, ConvertArtifactSchema, ConvertResultSchema, ConvertTargetSchema, CoverStateSchema, CoverStatusSchema, CreateApiKeyInputSchema, CreateApiKeyResultSchema, CreateIntegrationInputSchema, CreateScopedTokenInputSchema, CreateScopedTokenResultSchema, CreateUserInputSchema, CustomActionInputSchema, CustomModelDescriptorSchema, DATAPLANE_SECRET_HEADER, DEFAULT_ADDON_PLACEMENT, DEFAULT_AUDIO_ANALYZER_CONFIG, DEFAULT_DECODER_HWACCEL_CONFIG, DEFAULT_EVENT_COLOR, DEFAULT_FEATURES, DEFAULT_RETENTION, DEFAULT_SCRUB_THUMBNAIL_PRESET, DEVICE_BACKEND_TO_FORMAT, DEVICE_CAP_NAMES, DEVICE_PROFILES, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATUS_METHOD, DEVICE_TYPE_CONTROL_KIND, DEVICE_TYPE_INFO, DayNightModeSchema, DayNightOptionsSchema, DayNightSettingsPatchSchema, DayNightStatusSchema, DecodedAudioChunkSchema, DecodedFrameSchema, DecoderSessionConfigSchema, DecoderStatsSchema, DeleteIntegrationResultSchema, DetectionSourceSchema, DeviceCodeSeveritySchema, DeviceConfig, DeviceDiscoveryStatusSchema, ExposeInputSchema as DeviceExportExposeInputSchema, DeviceExportStatusSchema, UnexposeInputSchema as DeviceExportUnexposeInputSchema, DeviceFeature, DeviceInfoSchema, DeviceLinkModeSchema, DeviceNetworkStatsSchema, DeviceRole, DeviceRuntimeState, DeviceStatusSchema, DeviceType, DiscoveredChildDeviceSchema, DiscoveredChildStatusSchema, DiscoveredDeviceSchema, DiscoveredTargetSchema, DisposerChain, DoorbellPressEventSchema, DoorbellStatusSchema, EVENTFUL_CAP_NAMES, EVENT_KIND_BY_CAP, EVENT_PAD_MS, EVENT_TAXONOMY, EXPRESSION_BUILTINS, EXPRESSION_BUILTIN_NAMES, EXPRESSION_COMPILE_CACHE_CAPACITY, EXPRESSION_IDENTIFIER_RE, EXPRESSION_INJECTED_NOW, ElementConfigStore, EmbeddingInfoSchema, EmbeddingResultSchema, EncodeProfileSchema, EncodedPacketSchema, EnrichedWidgetMetadataSchema, EnumSensorDateTimeFormatSchema, EnumSensorStatusSchema, EventCategory, EventEmitterStatusSchema, EventFireSchema, EventItemSchema, EventKindCategorySchema, EventKindDescriptorSchema, EventKindIconSchema, EventKindSchema, EventSourceType, ExportDownloadSchema, ExportOptionsSchema, ExportRecordSchema, ExportSetupFieldSchema, ExportSetupSchema, ExportSpeedSchema, ExportStateSchema, ExportTimelapseSchema, ExposedDeviceSchema, ExposureModeSchema, ExpressionEvalError, ExpressionParseError, FanControlStatusSchema, FanDirectionSchema, FeatureManifestSchema, FeatureProbeStatusSchema, FloodStatusSchema, FrameHandleFormatSchema, FrameHandleSchema, FrameInputSchema, GasStatusSchema, GetStreamWithCodecInputSchema, GlobalMetricsSchema, HF_BASE_URL, HF_REPO, HWACCEL_OPTIONS, HealthStatusSchema, HistoryPointSchema, HistoryResolutionEnum, HumidifierStatusSchema, HumiditySensorStatusSchema, HvacModeSchema, ImageRotateSchema, ImageSettingsOptionsSchema, ImageSettingsPatchSchema, ImageSettingsStatusSchema, ImageStatusSchema, IngestOwnerSchema, InstalledPackageSchema, IntegrationLiteSchema, IntegrationWithStateSchema, IntercomAbilitySchema, IntercomStatusSchema, KNOWN_CAP_NAMES, KeyEventSchema, LabelDefinitionSchema, LawnMowerActivitySchema, LawnMowerControlStatusSchema, LinkedDeviceSchema, LlmDefaultSchema, LlmDefaultSelectorSchema, LlmErrorCodeSchema, LlmGenerateBaseInputSchema, LlmGenerateErrSchema, LlmGenerateOkSchema, LlmGenerateResultSchema, LlmImageSchema, LlmNodeModelSchema, LlmProfileKindDescriptorSchema, LlmProfileKindSchema, LlmProfileSchema, LlmRuntimeCompleteInputSchema, LlmRuntimeDiskUsageSchema, LlmRuntimeNodeSchema, LlmRuntimeStatusSchema, LlmUsageRollupSchema, LlmUsageSchema, LocateSegmentResultSchema, LocationStatSchema, LockControlStatusSchema, LockStateSchema, LogEntrySchema, LogLevelSchema, LogStreamEntrySchema, LoginMethodContributionSchema, LoginStageEnum, MACRO_LABELS, MAX_EXPRESSION_AST_NODES, MAX_EXPRESSION_BINDINGS, MAX_EXPRESSION_CALL_ARGS, MAX_EXPRESSION_EVAL_STEPS, MAX_EXPRESSION_SOURCE_LENGTH, METHOD_ACCESS_MAP, MODEL_FORMATS, MOTION_TRIGGER_FEATURE, ManagedModelCatalogEntrySchema, ManagedModelRefSchema, ManagedRuntimeConfigSchema, MaskGridDimsSchema, MaskGridShapeSchema, MaskLineShapeSchema, MaskPointSchema, MaskPolygonShapeSchema, MaskPolygonVerticesSchema, MaskRectShapeSchema, MaskShapeKindSchema, MaskShapeSchema, MediaFileSchema, MediaPlayerRepeatSchema, MediaPlayerStateSchema, MediaPlayerStatusSchema, MeshPeerSchema, MeshStatusSchema, MethodAccessSchema, ModelCatalogEntrySchema, ModelConvertInputSchema, ModelConvertMetadataSchema, ModelDistributeInputSchema, ModelDistributeResultSchema, ModelExtraFileSchema, ModelFormatEntrySchema, ModelFormatsSchema, ModelSubstitutionSchema, ModelVariantGroupSchema, MotionAnalysisResultSchema, MotionEventSchema, MotionOnMotionChangedDataSchema, MotionRegionSchema, MotionSourceEnum, MotionSourcesSchema, MotionStatusSchema, MotionTriggerRuntimeStateSchema, MotionTriggerStatusSchema, MotionZoneOptionsSchema, MotionZonePatchSchema, MotionZoneRegionSchema, MotionZoneStatusSchema, StatusSchema as MqttBrokerStatusSchema, NC_CONDITION_CATALOG, NC_HISTORY_LIMIT_DEFAULT, NC_HISTORY_LIMIT_MAX, NC_MAX_PER_TRACK_IMMEDIATE, NC_TAXONOMY, NativeCropBboxSchema, NativeCropRefSchema, NativeCropResultSchema, NativeDetectionSchema, NativeObjectClassEnum, NativeObjectDetectionRuntimeStateSchema, NativeObjectDetectionStatusSchema, NcConditionDescriptorSchema, NcConditionsSchema, NcDeliverySchema, NcHistoryEntrySchema, NcHistoryFilterSchema, NcHistoryRecordKindSchema, NcHistoryStatusSchema, NcHistorySubjectSchema, NcMediaPolicySchema, NcOccupancyConditionSchema, NcPlateMatcherSchema, NcRuleInputSchema, NcRulePatchSchema, NcRuleSchema, NcRuleTargetSchema, NcScheduleSchema, NcScheduleWindowSchema, NcTaxonomyEntrySchema, NcTaxonomySchema, NcTestResultSchema, NcThrottleSchema, NcZoneConditionSchema, NetworkAccessStatusSchema, NetworkAddressSchema, NetworkEndpointSchema, NotificationActionSchema, NotificationFormatSchema, NotificationSchema, NotifierStatusSchema, NumericSensorStatusSchema, OPS_LOG_DEFAULT_LIMIT, OPS_LOG_RING_DEFAULT_MAX, OauthIntegrationDescriptorSchema, ObjectEventSchema, OpsLogDomainSchema, OpsLogEntrySchema, OpsLogOpSchema, OpsLogQueryInputSchema, OpsLogReasonSchema, OrchestratorMetricsSchema, OsdOverlayKindEnum, OsdOverlayPatchSchema, OsdOverlaySchema, OsdPositionEnum, OsdStatusSchema, PET_FEEDER_MANUAL_FEED_MAX, PET_FEEDER_MANUAL_FEED_MIN, PIPELINE_FLOW_CAPABILITY_NAMES, PIPELINE_OWNER_CAPABILITY_NAMES, PROVIDER_KIND_CAP_NAMES, PYTHON_SCRIPT, PackageUpdateSchema, PackageVersionInfoSchema, PasskeyLoginMethodSchema, PasskeySummarySchema, PcmSampleFormatSchema, PerScopeBreakdownSchema, PetFeederStatusSchema, PickStreamPreferencesSchema, PickStreamRequirementsSchema, PickedCamStreamSchema, PipelineAssignmentSchema, PipelineDefaultStepSchema, PipelineEngineChoiceSchema, PipelineRunResultBridge, PipelineStepInputSchema, PipelineValidationIssueSchema, PipelineValidationResultSchema, PlaceholderReasonSchema, PolygonPointSchema, PowerMeterStatusSchema, PresenceStatusSchema, PressureSensorStatusSchema, PrivacyMaskOptionsSchema, PrivacyMaskPatchSchema, PrivacyMaskRegionSchema, PrivacyMaskShapeSchema, PrivacyMaskStatusSchema, ProfileRtspEntrySchema, ProfileSlotSchema, ProfileSlotStatusSchema, ProviderStatusSchema, PtzAutotrackRuntimeStateSchema, PtzAutotrackSettingsSchema, PtzAutotrackStatusSchema, PtzAutotrackTargetOptionSchema, PtzMoveCommandSchema, PtzOptionsSchema, PtzPositionSchema, PtzPresetSchema, PtzStatusSchema, QueryFilterSchema, REACHABILITY_FAILURES_TO_OFFLINE, REACHABILITY_POLL_INTERVAL_MS, REACHABILITY_PROBE_TIMEOUT_MS, RECOGNITION_TYPES, RESERVED_BINDING_NAMES, RUNTIME_DEFAULTS, RUNTIME_TO_FORMAT, RawStateResultSchema, ReadSegmentBytesResultSchema, ReadinessRegistry, ReadinessTimeoutError, RecentTracksPageSchema, RecentTracksQueryInput, RecordingAvailabilitySchema, RecordingBandModeSchema, RecordingBandSchema, RecordingBandTriggersSchema, RecordingConfigSchema, RecordingDaysSchema, RecordingDeviceUsageSchema, RecordingLocationUsageSchema, RecordingManifestSchema, RecordingModeSchema, RecordingRangeSchema, RecordingRetentionSchema, RecordingRuleSchema, RecordingScheduleSchema, RecordingStatusSchema, RecordingStorageModeSchema, RecordingStorageUsageSchema, RecordingTriggersSchema, RecordingWeekdaySchema, RedirectLoginMethodSchema, RenderedAsSchema, ReportMotionInputSchema, RingBuffer, RtpSourceSchema, RtspRestreamEntrySchema, RunnerCameraConfigSchema, RunnerCameraDeviceUIFields, RunnerFrameSourceSchema, RunnerInferenceDeviceSchema, RunnerLocalLoadSchema, RunnerLocalMetricsSchema, SCOPE_PRESETS, SCRUB_THUMBNAIL_PRESETS, SCRUB_THUMBNAIL_PRESET_LABELS, SCRUB_THUMBNAIL_PRESET_ORDER, SENSOR_FEATURES, SENSOR_MAP, SOURCE_INFO_METADATA_KEY, STREAM_PROFILE_META, STREAM_QUALITY_LABELS, SUB_DETECTION_TYPES, SYSTEM_CAP_NAMES, SceneCheckSchema, SceneConditionSchema, SceneMonitorSchema, SceneMonitorStateSchema, SceneMonitorStatusSchema, SceneReferenceSchema, ScopedTokenSchema, ScopedTokenSummarySchema, ScoredObjectEventSchema, ScriptRunnerStatusSchema, ScrubThumbnailPresetSchema, SearchResultSchema, SendEmailInputSchema, SendEmailResultSchema, SendResultSchema, SensorEventSchema, ServerBootModeSchema, ServerPackageStatusSchema, ServerRollbackInfoSchema, ServerUpdateActionResultSchema, ServerUpdateCheckResultSchema, ServerUpdateStateSchema, SettingsPatchSchema, SettingsRecordSchema, SettingsSchemaWithValuesSchema, SettingsUpdateResultSchema, ShmRingStatsSchema, SmokeStatusSchema, SmtpStatusSchema, SnapshotImageSchema, SourceInfoSchema, SpatialDetectionSchema, SsoBridgeClaimsSchema, StartEmbeddedInputSchema, StationaryObjectSchema, AbortUploadInputSchema as StorageAbortUploadInputSchema, BeginDownloadInputSchema as StorageBeginDownloadInputSchema, BeginDownloadResultSchema as StorageBeginDownloadResultSchema, BeginUploadInputSchema as StorageBeginUploadInputSchema, BeginUploadResultSchema as StorageBeginUploadResultSchema, EndDownloadInputSchema as StorageEndDownloadInputSchema, FinalizeUploadInputSchema as StorageFinalizeUploadInputSchema, StorageLocationDeclarationSchema, StorageLocationRefSchema, StorageLocationSchema, StorageLocationTypeSchema, ProviderInfoSchema as StorageProviderInfoSchema, ReadChunkInputSchema as StorageReadChunkInputSchema, TestLocationResultSchema as StorageTestLocationResultSchema, WriteChunkInputSchema as StorageWriteChunkInputSchema, StreamCodecSchema, StreamFormatSchema, StreamNetworkStatsSchema, StreamParamsOptionsSchema, StreamParamsStatusSchema, StreamProfileConfigSchema, StreamProfileOptionsSchema, StreamProfilePatchSchema, StreamProfileSchema, StreamSourceEntrySchema, StreamSourceSchema, SubscribeAudioChunksInputSchema, SubscribeAudioChunksResultSchema, SubscribeFramesInputSchema, SubscribeFramesResultSchema, SwitchStatusSchema, SystemMetricsSchema, SystemMirror, TAXONOMY_COLORS, TIMEZONES, TamperStatusSchema, TankStatusSchema, TargetKindCapsSchema, TargetKindLevelSchema, TargetKindSchema, TargetSchema, TemperatureSensorStatusSchema, TestConnectionResultSchema$1 as TestConnectionResultSchema, TestResultSchema, ToastSchema, TokenScopeSchema, TopologyNodeSchema, TopologyProcessSchema, TopologyServiceSchema, TrackCascadeCountsSchema, TrackEnvelopeSchema, TrackProjectionSchema, TrackSchema, TrackStateSchema, TrackZoneFilterSchema, TrackedDetectionSchema, TurnServerSchema, UNIT_TABLE, BrokerInfoSchema$1 as UnifiedBrokerInfoSchema, UnitConversionError, UpdateIntegrationInputSchema, UpdateStatusSchema, UpdateUserInputSchema, UserRecordSchema, UserSummarySchema, VacuumControlStatusSchema, VacuumStateSchema, ValveStateSchema, ValveStatusSchema, VibrationStatusSchema, VideoEncodeSchema, WELL_KNOWN_TABS, WELL_KNOWN_TAB_MAP, WaterHeaterStatusSchema, WeatherStatusSchema, WebrtcStreamChoiceSchema, WebrtcStreamTargetSchema, WhiteBalanceModeSchema, WidgetHostEnum, WidgetLoginMethodSchema, WidgetMetadataSchema, WidgetRemoteSchema, WidgetSizeEnum, YAMNET_TO_MACRO, ZoneKindEnum, ZoneRuleModeEnum, ZoneRuleSchema, ZoneRuleStageEnum, ZoneRulesArraySchema, ZoneSchema, ZoneScopeBreakdownSchema, accessoriesCapability, accessoryStableId, addonPagesCapability, addonPagesSourceCapability, addonRoutesCapability, addonSettingsCapability, addonWidgetsCapability, addonWidgetsSourceCapability, addonsCapability, adminUiCapability, airQualitySensorCapability, alarmPanelCapability, alertsCapability, ambientLightSensorCapability, applyTransform, asBoolean, asJsonArray, asJsonObject, asNumber, asString, audioAnalysisCapability, audioAnalyzerCapability, audioCodecCapability, audioMetricsCapability, authProviderCapability, autoAssignProfiles, automationControlCapability, backupCapability, batteryCapability, bestLocationMatch, binaryCapability, bindAddonActions, brightnessCapability, brokerCapability, buildAddonRouteProvider, buildEventKindDescriptor, buildModelVariantGroups, buildNcTaxonomy, buildStreamParamsConfigSchema, buttonCapability, cameraCredentialsCapability, cameraPipelineConfigCapability, cameraStreamsCapability, canConvertUnit, carbonMonoxideCapability, cellsToRects, classifyStream, classifyStreams, climateControlCapability, collectHydratedFieldEntries, collectHydratedFieldValues, colorCapability, colorForKind, compileExpression, compileExpressionSafe, connectivityCapability, consumablesCapability, contactCapability, controlCapability, convertUnit, cosineSimilarity, coverCapability, createDeviceProxy, createDurableState, createEvent, createExpressionScope, createLazyTrpcSource, createMirrorSource, createRuntimeStateBridge, createSliceHandle, createSystemProxy, customAction, customModelRegistryCapability, dayNightCapability, decoderCapability, defaultDeviceFor, defineCustomActions, describeModelVariant, detectionPipelineCapability, deviceAdoptionCapability, deviceBackendToFormat, deviceCustomAction, deviceDiscoveryCapability, deviceExportCapability, deviceManagerCapability, deviceMatchesProfile, deviceOpsCapability, deviceProviderCapability, deviceStateCapability, deviceStatusCapability, doorbellCapability, embeddingEncoderCapability, emitDownForOwnedCaps, emitReadiness, encodeProfileFromStreamShape, enumSensorCapability, enumerateInferenceDevices, enumerateItemArrayFields, enumerateSchemaFields, errMsg, evaluateAst, evaluateLinkExpression, evaluateZoneRules, event, eventEmitterCapability, eventsCapability, expandCapMethods, extractNestedAddonId, extractSourceInfoFromMetadata, faceGalleryCapability, fanControlCapability, featureProbeCapability, filesystemBrowseCapability, findTimezone, floodCapability, formatForBackend, formatForRuntime, gasCapability, getAudioMacroClassIds, getByPath, getCapsByProviderKind, getTaxonomyEntry, hasMotionTrigger, hfModelUrl, htmlToText, humidifierCapability, humiditySensorCapability, hydrateSchema, imageCapability, imageSettingsCapability, integrationsCapability, intercomCapability, isAgentOnlyPlacement, isArrayOutputSchema, isCollectionArrayMethod, isDeployableToAgent, isDeviceConfigCap, isEvent, isNode, isObjectInput, isVoidInput, jobKindSchema, kebabToCamel, lawnMowerControlCapability, lifecycleJobSchema, lifecycleJobScopeSchema, lifecycleJobStateSchema, lifecycleTaskSchema, llmCapability, llmRuntimeCapability, localNetworkCapability, locationSimilarity, lockControlCapability, logDestinationCapability, loginMethodCapability, looseSchema, makeProfileBrokerId, makeSourceBrokerId, mapAudioLabelToMacro, markdownToHtmlLite, markdownToText, maskUrlCredentials, mediaPlayerCapability, mergeSourceInfo, meshNetworkCapability, method, metricsProviderCapability, migrateConfigToBands, modelConvertCapability, modelDistributorCapability, modelFormatForRuntime, motionCapability, motionDetectionCapability, motionTriggerCapability, motionZonesCapability, mqttBrokerCapability, nativeObjectDetectionCapability, networkAccessCapability, networkQualityCapability, nodePin, nodesCapability, normalizeAddonInitResult, normalizeUnit, notificationOutputCapability, notificationRulesCapability, notifierCapability, numericSensorCapability, oauthIntegrationCapability, objectInputDeclaresAddonId, osdCapability, parseCameraStreamConfig, parseExpression, parseJsonArray, parseJsonObject, parseJsonUnknown, parseProfileBrokerId, parseStreamParamsFormPatch, petFeederCapability, pickAccessoryControl, pickPreferredRtspEntry, pipelineAnalyticsCapability, pipelineExecutorCapability, pipelineOrchestratorCapability, pipelineRunnerCapability, plateGalleryCapability, platformProbeCapability, powerMeterCapability, prepareNotification, presenceCapability, pressureSensorCapability, privacyMaskCapability, procedureAuthKey, ptzAutotrackCapability, ptzCapability, pythonScriptForBackend, readNodePin, readinessKey, rebootCapability, recordingCapability, recordingExportCapability, rectsToCells, requiresPython, resolveAddonExecution, resolveAddonGroup, resolveAddonPlacement, resolveAddonRuntime, resolveCapMount, resolveDetectionRuntime, resolveDeviceControlKind, resolveDeviceProfile, resolveFormat, resolveHydratedFieldValue, resolveModelFormat, resolveMutate, resolveRunnerId, resolveScrubThumbnailGeometry, resolveVariantModelId, runInferenceStep, runtimeDevices, sceneMonitorCapability, scopeKey, scoreRuntimes, scriptRunnerCapability, selectAssignedProfileSlots, serverManagementCapability, setByPath, settingsStoreCapability, sleep, sleepCancellable, smokeCapability, smtpProviderCapability, snapshotCapability, ssoBridgeCapability, startReachabilityPoll, storageCapability, storageEvictableCapability, storageProviderCapability, streamBrokerCapability, streamCatalogCapability, streamParamsCapability, streamPixels, streamQualityLabel, subKindsOf, supportedRuntimes, switchCapability, synthesizeSourceInfo, systemCapability, tamperCapability, taskLogEntrySchema, taskPhaseSchema, taskTargetSchema, temperatureSensorCapability, textToHtml, toDeviceSummary, toExpressionValue, toStreamSourceEntry, toastCapability, tokenize, transcodeBody, tryConvertUnit, turnProviderCapability, unitDimension, unitsForDimension, updateCapability, userManagementCapability, userPasskeysCapability, vacuumControlCapability, validateExpressionSource, valveCapability, vibrationCapability, videoclipsCapability, viewerUiCapability, waterHeaterCapability, weatherCapability, webrtcClientHintsSchema, webrtcSessionCapability, wiringAddonHealthSchema, wiringHealthSnapshotSchema, wiringNodeHealthSchema, wiringProbeKindSchema, wiringProbeResultSchema, zodEntriesToConfigUI, zoneAnalyticsCapability, zoneRulesCapability, zonesCapability };
|