@camstack/addon-export-google 0.1.106 → 0.1.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/export-google.addon.js +237 -61
- package/dist/export-google.addon.mjs +237 -61
- package/package.json +1 -1
|
@@ -77,7 +77,7 @@ function createApiDeviceGateway(deps) {
|
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
//#endregion
|
|
80
|
-
//#region ../types/dist/event-category-
|
|
80
|
+
//#region ../types/dist/event-category-BfJwUd2S.mjs
|
|
81
81
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
82
82
|
EventCategory["SystemBoot"] = "system.boot";
|
|
83
83
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -394,6 +394,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
394
394
|
*/
|
|
395
395
|
EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
|
|
396
396
|
/**
|
|
397
|
+
* A camera's motion source has fired constantly with no subject for an hour
|
|
398
|
+
* (motion duty or session count over the bar, zero detections) — it is not
|
|
399
|
+
* blind, its motion zones or sensitivity want tuning (D907). Paired with
|
|
400
|
+
* {@link PipelineMotionCalm}.
|
|
401
|
+
*/
|
|
402
|
+
EventCategory["PipelineMotionNoisy"] = "pipeline.motion-noisy";
|
|
403
|
+
/** The recovery edge of {@link PipelineMotionNoisy}: the motion fell back, or a detection arrived. */
|
|
404
|
+
EventCategory["PipelineMotionCalm"] = "pipeline.motion-calm";
|
|
405
|
+
/**
|
|
397
406
|
* Per-camera pipeline config was mutated by the orchestrator
|
|
398
407
|
* (3-level settings change via `setAgentAddonDefaults` /
|
|
399
408
|
* `setCameraStepToggle` / `setCameraPipelineForAgent` or a
|
|
@@ -765,6 +774,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
765
774
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
766
775
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
767
776
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
777
|
+
/**
|
|
778
|
+
* A notification rule that cannot work (D905): its stored row does not load,
|
|
779
|
+
* or it still names a device / delivery target the prune CONFIRMED deleted.
|
|
780
|
+
* One edge per rule per distinct set of reasons; never on an unanswered read.
|
|
781
|
+
*/
|
|
782
|
+
EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
|
|
783
|
+
/** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
|
|
784
|
+
EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
|
|
768
785
|
EventCategory["DeviceUpdated"] = "device.updated";
|
|
769
786
|
/**
|
|
770
787
|
* Transport-level connectivity. Emitted by the device driver when
|
|
@@ -5492,7 +5509,7 @@ var ZodIssueCode = {
|
|
|
5492
5509
|
var ZodFirstPartyTypeKind;
|
|
5493
5510
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5494
5511
|
//#endregion
|
|
5495
|
-
//#region ../types/dist/sleep-
|
|
5512
|
+
//#region ../types/dist/sleep-DJFUfKvA.mjs
|
|
5496
5513
|
/**
|
|
5497
5514
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5498
5515
|
* window to float samples (D455).
|
|
@@ -7954,7 +7971,7 @@ var EntryDescriptorSchema = object({
|
|
|
7954
7971
|
/** JSON Schema of the entry body; `secret: true` marks a password field. */
|
|
7955
7972
|
fields: record(string(), unknown())
|
|
7956
7973
|
}).strict();
|
|
7957
|
-
/** What crosses the wire
|
|
7974
|
+
/** What crosses the wire from an addon: JSON only, no Zod. An unknown key is refused. */
|
|
7958
7975
|
var RecordKindDeclarationSchema = object({
|
|
7959
7976
|
database: _enum(RECORD_DATABASES).default("settings"),
|
|
7960
7977
|
class: _enum(RECORD_CLASSES),
|
|
@@ -7973,14 +7990,6 @@ var RecordKindDeclarationSchema = object({
|
|
|
7973
7990
|
secretPaths: array(string().min(1)).default([]),
|
|
7974
7991
|
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
7975
7992
|
secretArrayKeys: record(string(), string()).default({}),
|
|
7976
|
-
/**
|
|
7977
|
-
* RETIRED (D900): the legacy table a kind adopted from during the records
|
|
7978
|
-
* migration. Nothing declares it any more and nothing reads it; the schema
|
|
7979
|
-
* still ACCEPTS it because the catalog rows the migration wrote carry it
|
|
7980
|
-
* (an orphaned kind is never redeclared) and an addon built before the
|
|
7981
|
-
* removal still sends it. Never set it.
|
|
7982
|
-
*/
|
|
7983
|
-
adoptsFrom: string().min(1).optional(),
|
|
7984
7993
|
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
7985
7994
|
transactFamily: string().min(1).optional(),
|
|
7986
7995
|
entry: EntryDescriptorSchema.optional()
|
|
@@ -12800,17 +12809,6 @@ object({
|
|
|
12800
12809
|
createdAt: number(),
|
|
12801
12810
|
updatedAt: number()
|
|
12802
12811
|
});
|
|
12803
|
-
object({
|
|
12804
|
-
id: string(),
|
|
12805
|
-
label: string(),
|
|
12806
|
-
isAdmin: boolean().default(false),
|
|
12807
|
-
allowedProviders: AllowedProviderSchema,
|
|
12808
|
-
allowedDevices: AllowedDevicesSchema,
|
|
12809
|
-
tokenHash: string(),
|
|
12810
|
-
tokenPrefix: string(),
|
|
12811
|
-
createdAt: number(),
|
|
12812
|
-
lastUsedAt: number().optional()
|
|
12813
|
-
});
|
|
12814
12812
|
object({
|
|
12815
12813
|
id: string(),
|
|
12816
12814
|
userId: string(),
|
|
@@ -16705,16 +16703,36 @@ var RecordKindStateSchema = _enum([
|
|
|
16705
16703
|
var DeclareKindResultSchema = object({
|
|
16706
16704
|
kindId: number().int(),
|
|
16707
16705
|
state: RecordKindStateSchema,
|
|
16708
|
-
createdIndexes: array(string())
|
|
16709
|
-
/**
|
|
16710
|
-
* RETIRED (D900): always `null`. It carried the records-migration boot guard;
|
|
16711
|
-
* it stays on the wire, null, because an addon built before the removal reads
|
|
16712
|
-
* an ABSENT field as "adoption pending" and refuses to start.
|
|
16713
|
-
*/
|
|
16714
|
-
adoptionPending: _null()
|
|
16706
|
+
createdIndexes: array(string())
|
|
16715
16707
|
});
|
|
16716
16708
|
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
16717
16709
|
var SecretRefsList = array(string());
|
|
16710
|
+
/**
|
|
16711
|
+
* One op of a `transact`: the single-row writes, each on a kind of the caller.
|
|
16712
|
+
* All ops of one call share ONE database file and ONE `transactFamily`.
|
|
16713
|
+
*/
|
|
16714
|
+
var RecordTransactOpSchema = discriminatedUnion("op", [
|
|
16715
|
+
object({
|
|
16716
|
+
op: literal("put"),
|
|
16717
|
+
kind: RecordKindNameSchema,
|
|
16718
|
+
record: RecordInputSchema,
|
|
16719
|
+
ifRev: number().int().min(0).optional()
|
|
16720
|
+
}),
|
|
16721
|
+
object({
|
|
16722
|
+
op: literal("patch"),
|
|
16723
|
+
kind: RecordKindNameSchema,
|
|
16724
|
+
id: RecordIdSchema,
|
|
16725
|
+
data: RecordBodySchema,
|
|
16726
|
+
at: number().int().nullable().optional(),
|
|
16727
|
+
expiresAt: number().int().nullable().optional(),
|
|
16728
|
+
ifRev: number().int().min(1).optional()
|
|
16729
|
+
}),
|
|
16730
|
+
object({
|
|
16731
|
+
op: literal("delete"),
|
|
16732
|
+
kind: RecordKindNameSchema,
|
|
16733
|
+
id: RecordIdSchema
|
|
16734
|
+
})
|
|
16735
|
+
]);
|
|
16718
16736
|
var RecordSecretRefsSchema = record(string(), record(string(), string()));
|
|
16719
16737
|
method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema) }), object({ kinds: record(string(), DeclareKindResultSchema) }), {
|
|
16720
16738
|
kind: "mutation",
|
|
@@ -16821,6 +16839,16 @@ method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema)
|
|
|
16821
16839
|
}), {
|
|
16822
16840
|
kind: "mutation",
|
|
16823
16841
|
auth: "admin"
|
|
16842
|
+
}), method(object({ ops: array(RecordTransactOpSchema).min(1).max(RECORD_BATCH_MAX) }), object({
|
|
16843
|
+
results: array(object({
|
|
16844
|
+
rev: number().int().nullable(),
|
|
16845
|
+
deleted: boolean()
|
|
16846
|
+
})),
|
|
16847
|
+
releasedRefs: SecretRefsList,
|
|
16848
|
+
secretRefs: SecretRefsList
|
|
16849
|
+
}), {
|
|
16850
|
+
kind: "mutation",
|
|
16851
|
+
auth: "admin"
|
|
16824
16852
|
}), method(object({
|
|
16825
16853
|
deviceId: number().int(),
|
|
16826
16854
|
kinds: array(RecordKindNameSchema).optional()
|
|
@@ -42204,9 +42232,13 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42204
42232
|
"node-updating",
|
|
42205
42233
|
"node-inference-unavailable",
|
|
42206
42234
|
"detection-blind",
|
|
42235
|
+
"motion-noisy",
|
|
42236
|
+
"motion-calm",
|
|
42207
42237
|
"recording-stalled",
|
|
42208
42238
|
"recording-healthy",
|
|
42209
42239
|
"recording-degraded",
|
|
42240
|
+
"device-attention-required",
|
|
42241
|
+
"device-attention-resolved",
|
|
42210
42242
|
"storage-location-low",
|
|
42211
42243
|
"storage-location-critical",
|
|
42212
42244
|
"storage-location-ok",
|
|
@@ -42230,6 +42262,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42230
42262
|
"alert-critical",
|
|
42231
42263
|
"alert-error",
|
|
42232
42264
|
"alert-critical-resolved",
|
|
42265
|
+
"rule-broken",
|
|
42266
|
+
"rule-repaired",
|
|
42233
42267
|
"camera-online",
|
|
42234
42268
|
"camera-offline",
|
|
42235
42269
|
"camera-disabled",
|
|
@@ -54689,6 +54723,16 @@ object({
|
|
|
54689
54723
|
powerState: string().nullable(),
|
|
54690
54724
|
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54691
54725
|
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54726
|
+
/**
|
|
54727
|
+
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
54728
|
+
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
54729
|
+
* when none is reported. A cleared reminder is not an unknown one.
|
|
54730
|
+
*/
|
|
54731
|
+
filterCleaningDue: boolean().nullable(),
|
|
54732
|
+
/** True while the machine-care (descaling / cleaning-program) reminder is raised; false when clear; null when not reported. */
|
|
54733
|
+
machineCareDue: boolean().nullable(),
|
|
54734
|
+
/** Program runs left before the machine-care reminder is due; null when the appliance does not say. */
|
|
54735
|
+
machineCareRemainingRuns: number().int().nonnegative().nullable(),
|
|
54692
54736
|
/** Option states: null when the appliance does not expose the option or has not said. */
|
|
54693
54737
|
halfLoad: boolean().nullable(),
|
|
54694
54738
|
hygienePlus: boolean().nullable(),
|
|
@@ -61313,16 +61357,6 @@ var UpdateUserInputSchema = object({
|
|
|
61313
61357
|
allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
|
|
61314
61358
|
scopes: array(TokenScopeSchema).optional()
|
|
61315
61359
|
});
|
|
61316
|
-
var ApiKeySummarySchema = object({
|
|
61317
|
-
id: string(),
|
|
61318
|
-
label: string(),
|
|
61319
|
-
isAdmin: boolean().default(false),
|
|
61320
|
-
allowedProviders: union([array(string()), literal("*")]).optional(),
|
|
61321
|
-
allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
|
|
61322
|
-
tokenPrefix: string(),
|
|
61323
|
-
createdAt: number(),
|
|
61324
|
-
lastUsedAt: number().optional()
|
|
61325
|
-
});
|
|
61326
61360
|
var OauthSessionSummarySchema = object({
|
|
61327
61361
|
id: string(),
|
|
61328
61362
|
userId: string(),
|
|
@@ -61344,8 +61378,7 @@ var TotpStatusSchema = object({
|
|
|
61344
61378
|
confirmedAt: number().nullable()
|
|
61345
61379
|
});
|
|
61346
61380
|
/**
|
|
61347
|
-
* user-management — singleton capability for user accounts
|
|
61348
|
-
* legacy API-key rows.
|
|
61381
|
+
* user-management — singleton capability for user accounts.
|
|
61349
61382
|
*
|
|
61350
61383
|
* v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
|
|
61351
61384
|
* — the subset check on `setUserScopes` is moot
|
|
@@ -61401,10 +61434,6 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
61401
61434
|
}), UserSummarySchema.extend({ passwordHash: string() }).nullable(), {
|
|
61402
61435
|
kind: "mutation",
|
|
61403
61436
|
access: "view"
|
|
61404
|
-
}), method(_void(), array(ApiKeySummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
61405
|
-
kind: "mutation",
|
|
61406
|
-
auth: "admin",
|
|
61407
|
-
access: "delete"
|
|
61408
61437
|
}), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
61409
61438
|
kind: "mutation",
|
|
61410
61439
|
auth: "admin",
|
|
@@ -68917,6 +68946,12 @@ Object.freeze({
|
|
|
68917
68946
|
addonId: null,
|
|
68918
68947
|
access: "view"
|
|
68919
68948
|
},
|
|
68949
|
+
"records.transact": {
|
|
68950
|
+
capName: "records",
|
|
68951
|
+
capScope: "system",
|
|
68952
|
+
addonId: null,
|
|
68953
|
+
access: "create"
|
|
68954
|
+
},
|
|
68920
68955
|
"sceneMonitor.captureReference": {
|
|
68921
68956
|
capName: "scene-monitor",
|
|
68922
68957
|
capScope: "device",
|
|
@@ -70249,12 +70284,6 @@ Object.freeze({
|
|
|
70249
70284
|
addonId: null,
|
|
70250
70285
|
access: "view"
|
|
70251
70286
|
},
|
|
70252
|
-
"userManagement.listApiKeys": {
|
|
70253
|
-
capName: "user-management",
|
|
70254
|
-
capScope: "system",
|
|
70255
|
-
addonId: null,
|
|
70256
|
-
access: "view"
|
|
70257
|
-
},
|
|
70258
70287
|
"userManagement.listExternalIdentities": {
|
|
70259
70288
|
capName: "user-management",
|
|
70260
70289
|
capScope: "system",
|
|
@@ -70309,12 +70338,6 @@ Object.freeze({
|
|
|
70309
70338
|
addonId: null,
|
|
70310
70339
|
access: "create"
|
|
70311
70340
|
},
|
|
70312
|
-
"userManagement.revokeApiKey": {
|
|
70313
|
-
capName: "user-management",
|
|
70314
|
-
capScope: "system",
|
|
70315
|
-
addonId: null,
|
|
70316
|
-
access: "delete"
|
|
70317
|
-
},
|
|
70318
70341
|
"userManagement.revokeOauthSession": {
|
|
70319
70342
|
capName: "user-management",
|
|
70320
70343
|
capScope: "system",
|
|
@@ -73679,9 +73702,13 @@ new Map(Object.entries({
|
|
|
73679
73702
|
"stream-online": "device-events",
|
|
73680
73703
|
"stream-offline": "device-events",
|
|
73681
73704
|
"detection-blind": "device-events",
|
|
73705
|
+
"motion-noisy": "device-events",
|
|
73706
|
+
"motion-calm": "device-events",
|
|
73682
73707
|
"recording-stalled": "device-events",
|
|
73683
73708
|
"recording-healthy": "device-events",
|
|
73684
73709
|
"recording-degraded": "device-events",
|
|
73710
|
+
"device-attention-required": "device-events",
|
|
73711
|
+
"device-attention-resolved": "device-events",
|
|
73685
73712
|
"node-online": "system",
|
|
73686
73713
|
"node-offline": "system",
|
|
73687
73714
|
"node-restarting": "system",
|
|
@@ -73698,6 +73725,8 @@ new Map(Object.entries({
|
|
|
73698
73725
|
"alert-critical": "system",
|
|
73699
73726
|
"alert-error": "system",
|
|
73700
73727
|
"alert-critical-resolved": "system",
|
|
73728
|
+
"rule-broken": "system",
|
|
73729
|
+
"rule-repaired": "system",
|
|
73701
73730
|
"storage-location-low": "system",
|
|
73702
73731
|
"storage-location-critical": "system",
|
|
73703
73732
|
"storage-location-ok": "system",
|
|
@@ -73762,6 +73791,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
73762
73791
|
label: "Detecting nothing",
|
|
73763
73792
|
kinds: ["detection-blind"]
|
|
73764
73793
|
},
|
|
73794
|
+
{
|
|
73795
|
+
id: "motion-noise",
|
|
73796
|
+
family: "device-events",
|
|
73797
|
+
label: "Motion without a subject",
|
|
73798
|
+
kinds: ["motion-noisy", "motion-calm"]
|
|
73799
|
+
},
|
|
73765
73800
|
{
|
|
73766
73801
|
id: "recording",
|
|
73767
73802
|
family: "device-events",
|
|
@@ -73772,6 +73807,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
73772
73807
|
"recording-degraded"
|
|
73773
73808
|
]
|
|
73774
73809
|
},
|
|
73810
|
+
{
|
|
73811
|
+
id: "device-attention",
|
|
73812
|
+
family: "device-events",
|
|
73813
|
+
label: "Needs attention",
|
|
73814
|
+
kinds: ["device-attention-required", "device-attention-resolved"]
|
|
73815
|
+
},
|
|
73775
73816
|
{
|
|
73776
73817
|
id: "nodes",
|
|
73777
73818
|
family: "system",
|
|
@@ -73832,6 +73873,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
73832
73873
|
"alert-critical-resolved"
|
|
73833
73874
|
]
|
|
73834
73875
|
},
|
|
73876
|
+
{
|
|
73877
|
+
id: "rule-health",
|
|
73878
|
+
family: "system",
|
|
73879
|
+
label: "Notification rules",
|
|
73880
|
+
kinds: ["rule-broken", "rule-repaired"]
|
|
73881
|
+
},
|
|
73835
73882
|
{
|
|
73836
73883
|
id: "alarm",
|
|
73837
73884
|
family: "alarm",
|
|
@@ -73905,6 +73952,7 @@ var ALERT_EPISODE = [
|
|
|
73905
73952
|
"alert-error",
|
|
73906
73953
|
"alert-critical-resolved"
|
|
73907
73954
|
];
|
|
73955
|
+
var DEVICE_ATTENTION = ["device-attention-required", "device-attention-resolved"];
|
|
73908
73956
|
var UPDATES = [
|
|
73909
73957
|
"addon-update-available",
|
|
73910
73958
|
"server-update-available",
|
|
@@ -73934,9 +73982,12 @@ var DEVICE_EVENTS = [
|
|
|
73934
73982
|
"stream-online",
|
|
73935
73983
|
"stream-offline",
|
|
73936
73984
|
"detection-blind",
|
|
73985
|
+
"motion-noisy",
|
|
73986
|
+
"motion-calm",
|
|
73937
73987
|
"recording-stalled",
|
|
73938
73988
|
"recording-healthy",
|
|
73939
73989
|
"recording-degraded",
|
|
73990
|
+
...DEVICE_ATTENTION,
|
|
73940
73991
|
...ALARM
|
|
73941
73992
|
];
|
|
73942
73993
|
/** Every kind a summary may speak about — the two summarisable families. */
|
|
@@ -74104,7 +74155,13 @@ var STATE_SUMMARY_VARS = [
|
|
|
74104
74155
|
[...RULE_TEXT],
|
|
74105
74156
|
[...RULE_TEXT],
|
|
74106
74157
|
[...RULE_TEXT],
|
|
74107
|
-
|
|
74158
|
+
[...RULE_TEXT],
|
|
74159
|
+
[...RULE_TEXT],
|
|
74160
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
74161
|
+
[...RULE_TEXT],
|
|
74162
|
+
[...RULE_TEXT],
|
|
74163
|
+
[...RULE_TEXT],
|
|
74164
|
+
[...RULE_TEXT],
|
|
74108
74165
|
[...RULE_TEXT],
|
|
74109
74166
|
[...RULE_TEXT],
|
|
74110
74167
|
[...RULE_TEXT],
|
|
@@ -74122,11 +74179,11 @@ var STATE_SUMMARY_VARS = [
|
|
|
74122
74179
|
[...RULE_TEXT],
|
|
74123
74180
|
[...RULE_TEXT],
|
|
74124
74181
|
[...RULE_TEXT],
|
|
74182
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
74125
74183
|
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74184
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
74126
74185
|
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74127
|
-
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74128
|
-
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74129
|
-
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74186
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
74130
74187
|
[...RULE_TEXT],
|
|
74131
74188
|
[...RULE_TEXT],
|
|
74132
74189
|
[...RULE_TEXT],
|
|
@@ -74147,6 +74204,125 @@ var STATE_SUMMARY_VARS = [
|
|
|
74147
74204
|
[...RULE_TEXT],
|
|
74148
74205
|
...STATE_SUMMARY_VARS
|
|
74149
74206
|
];
|
|
74207
|
+
new Map([
|
|
74208
|
+
{
|
|
74209
|
+
id: "device-connectivity",
|
|
74210
|
+
family: "device-events",
|
|
74211
|
+
label: "Device connectivity (offline / back online)",
|
|
74212
|
+
bad: ["device-offline"],
|
|
74213
|
+
recovery: ["device-online"],
|
|
74214
|
+
snapshotLabel: "Devices offline now",
|
|
74215
|
+
snapshotSection: "device-state"
|
|
74216
|
+
},
|
|
74217
|
+
{
|
|
74218
|
+
id: "device-switch",
|
|
74219
|
+
family: "device-events",
|
|
74220
|
+
label: "Device switched off / back on",
|
|
74221
|
+
bad: ["device-disabled"],
|
|
74222
|
+
recovery: ["device-enabled"],
|
|
74223
|
+
snapshotLabel: "Devices switched off now",
|
|
74224
|
+
snapshotSection: "device-state"
|
|
74225
|
+
},
|
|
74226
|
+
{
|
|
74227
|
+
id: "stream-connectivity",
|
|
74228
|
+
family: "device-events",
|
|
74229
|
+
label: "Stream connectivity (offline / back online)",
|
|
74230
|
+
bad: ["stream-offline"],
|
|
74231
|
+
recovery: ["stream-online"],
|
|
74232
|
+
snapshotLabel: "Streams offline now",
|
|
74233
|
+
snapshotSection: "streams"
|
|
74234
|
+
},
|
|
74235
|
+
{
|
|
74236
|
+
id: "battery",
|
|
74237
|
+
family: "device-events",
|
|
74238
|
+
label: "Battery (low / back to normal)",
|
|
74239
|
+
bad: ["device-battery-low"],
|
|
74240
|
+
recovery: ["device-battery-normal"],
|
|
74241
|
+
snapshotLabel: "Batteries low now",
|
|
74242
|
+
snapshotSection: "battery"
|
|
74243
|
+
},
|
|
74244
|
+
{
|
|
74245
|
+
id: "consumables",
|
|
74246
|
+
family: "device-events",
|
|
74247
|
+
label: "Consumables (low / replaced)",
|
|
74248
|
+
bad: ["device-consumable-low"],
|
|
74249
|
+
recovery: ["device-consumable-normal"],
|
|
74250
|
+
snapshotLabel: "Consumables low now",
|
|
74251
|
+
snapshotSection: "consumables"
|
|
74252
|
+
},
|
|
74253
|
+
{
|
|
74254
|
+
id: "tanks",
|
|
74255
|
+
family: "device-events",
|
|
74256
|
+
label: "Tanks (low or full / back to normal)",
|
|
74257
|
+
bad: ["device-tank-low", "device-tank-full"],
|
|
74258
|
+
recovery: ["device-tank-normal"],
|
|
74259
|
+
snapshotLabel: "Tanks low or full now",
|
|
74260
|
+
snapshotSection: "tanks"
|
|
74261
|
+
},
|
|
74262
|
+
{
|
|
74263
|
+
id: "motion-noise",
|
|
74264
|
+
family: "device-events",
|
|
74265
|
+
label: "Motion without a subject (constant / calm again)",
|
|
74266
|
+
bad: ["motion-noisy"],
|
|
74267
|
+
recovery: ["motion-calm"],
|
|
74268
|
+
snapshotLabel: "Cameras with constant motion now",
|
|
74269
|
+
snapshotSection: null
|
|
74270
|
+
},
|
|
74271
|
+
{
|
|
74272
|
+
id: "recording-health",
|
|
74273
|
+
family: "device-events",
|
|
74274
|
+
label: "Recording health (stalled or degraded / recording again)",
|
|
74275
|
+
bad: ["recording-stalled", "recording-degraded"],
|
|
74276
|
+
recovery: ["recording-healthy"],
|
|
74277
|
+
snapshotLabel: "Recordings stalled now",
|
|
74278
|
+
snapshotSection: null
|
|
74279
|
+
},
|
|
74280
|
+
{
|
|
74281
|
+
id: "device-attention",
|
|
74282
|
+
family: "device-events",
|
|
74283
|
+
label: "Device needs attention (raised / resolved)",
|
|
74284
|
+
bad: ["device-attention-required"],
|
|
74285
|
+
recovery: ["device-attention-resolved"],
|
|
74286
|
+
snapshotLabel: "Devices needing attention now",
|
|
74287
|
+
snapshotSection: null
|
|
74288
|
+
},
|
|
74289
|
+
{
|
|
74290
|
+
id: "node-connectivity",
|
|
74291
|
+
family: "system",
|
|
74292
|
+
label: "Node connectivity (offline / back online)",
|
|
74293
|
+
bad: ["node-offline"],
|
|
74294
|
+
recovery: ["node-online"],
|
|
74295
|
+
snapshotLabel: "Nodes offline now",
|
|
74296
|
+
snapshotSection: "nodes"
|
|
74297
|
+
},
|
|
74298
|
+
{
|
|
74299
|
+
id: "storage-space",
|
|
74300
|
+
family: "system",
|
|
74301
|
+
label: "Storage space (low or critical / ok again)",
|
|
74302
|
+
bad: ["storage-location-low", "storage-location-critical"],
|
|
74303
|
+
recovery: ["storage-location-ok"],
|
|
74304
|
+
snapshotLabel: "Storage locations low now",
|
|
74305
|
+
snapshotSection: null
|
|
74306
|
+
},
|
|
74307
|
+
{
|
|
74308
|
+
id: "critical-alerts",
|
|
74309
|
+
family: "system",
|
|
74310
|
+
label: "Critical alerts (raised / resolved)",
|
|
74311
|
+
bad: ["alert-critical"],
|
|
74312
|
+
recovery: ["alert-critical-resolved"],
|
|
74313
|
+
snapshotLabel: "Critical alerts open now",
|
|
74314
|
+
snapshotSection: null
|
|
74315
|
+
},
|
|
74316
|
+
{
|
|
74317
|
+
id: "rule-health",
|
|
74318
|
+
family: "system",
|
|
74319
|
+
label: "Rule health (broken / repaired)",
|
|
74320
|
+
bad: ["rule-broken"],
|
|
74321
|
+
recovery: ["rule-repaired"],
|
|
74322
|
+
snapshotLabel: "Notification rules broken now",
|
|
74323
|
+
snapshotSection: null
|
|
74324
|
+
}
|
|
74325
|
+
].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
|
|
74150
74326
|
new Set([
|
|
74151
74327
|
"disarmed",
|
|
74152
74328
|
"armed_home",
|
|
@@ -73,7 +73,7 @@ function createApiDeviceGateway(deps) {
|
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
//#endregion
|
|
76
|
-
//#region ../types/dist/event-category-
|
|
76
|
+
//#region ../types/dist/event-category-BfJwUd2S.mjs
|
|
77
77
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
78
78
|
EventCategory["SystemBoot"] = "system.boot";
|
|
79
79
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -390,6 +390,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
390
390
|
*/
|
|
391
391
|
EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
|
|
392
392
|
/**
|
|
393
|
+
* A camera's motion source has fired constantly with no subject for an hour
|
|
394
|
+
* (motion duty or session count over the bar, zero detections) — it is not
|
|
395
|
+
* blind, its motion zones or sensitivity want tuning (D907). Paired with
|
|
396
|
+
* {@link PipelineMotionCalm}.
|
|
397
|
+
*/
|
|
398
|
+
EventCategory["PipelineMotionNoisy"] = "pipeline.motion-noisy";
|
|
399
|
+
/** The recovery edge of {@link PipelineMotionNoisy}: the motion fell back, or a detection arrived. */
|
|
400
|
+
EventCategory["PipelineMotionCalm"] = "pipeline.motion-calm";
|
|
401
|
+
/**
|
|
393
402
|
* Per-camera pipeline config was mutated by the orchestrator
|
|
394
403
|
* (3-level settings change via `setAgentAddonDefaults` /
|
|
395
404
|
* `setCameraStepToggle` / `setCameraPipelineForAgent` or a
|
|
@@ -761,6 +770,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
761
770
|
EventCategory["BackupRestored"] = "backup.restored";
|
|
762
771
|
EventCategory["NotificationDispatched"] = "notification.dispatched";
|
|
763
772
|
EventCategory["NotificationFailed"] = "notification.failed";
|
|
773
|
+
/**
|
|
774
|
+
* A notification rule that cannot work (D905): its stored row does not load,
|
|
775
|
+
* or it still names a device / delivery target the prune CONFIRMED deleted.
|
|
776
|
+
* One edge per rule per distinct set of reasons; never on an unanswered read.
|
|
777
|
+
*/
|
|
778
|
+
EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
|
|
779
|
+
/** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
|
|
780
|
+
EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
|
|
764
781
|
EventCategory["DeviceUpdated"] = "device.updated";
|
|
765
782
|
/**
|
|
766
783
|
* Transport-level connectivity. Emitted by the device driver when
|
|
@@ -5488,7 +5505,7 @@ var ZodIssueCode = {
|
|
|
5488
5505
|
var ZodFirstPartyTypeKind;
|
|
5489
5506
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5490
5507
|
//#endregion
|
|
5491
|
-
//#region ../types/dist/sleep-
|
|
5508
|
+
//#region ../types/dist/sleep-DJFUfKvA.mjs
|
|
5492
5509
|
/**
|
|
5493
5510
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5494
5511
|
* window to float samples (D455).
|
|
@@ -7950,7 +7967,7 @@ var EntryDescriptorSchema = object({
|
|
|
7950
7967
|
/** JSON Schema of the entry body; `secret: true` marks a password field. */
|
|
7951
7968
|
fields: record(string(), unknown())
|
|
7952
7969
|
}).strict();
|
|
7953
|
-
/** What crosses the wire
|
|
7970
|
+
/** What crosses the wire from an addon: JSON only, no Zod. An unknown key is refused. */
|
|
7954
7971
|
var RecordKindDeclarationSchema = object({
|
|
7955
7972
|
database: _enum(RECORD_DATABASES).default("settings"),
|
|
7956
7973
|
class: _enum(RECORD_CLASSES),
|
|
@@ -7969,14 +7986,6 @@ var RecordKindDeclarationSchema = object({
|
|
|
7969
7986
|
secretPaths: array(string().min(1)).default([]),
|
|
7970
7987
|
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
7971
7988
|
secretArrayKeys: record(string(), string()).default({}),
|
|
7972
|
-
/**
|
|
7973
|
-
* RETIRED (D900): the legacy table a kind adopted from during the records
|
|
7974
|
-
* migration. Nothing declares it any more and nothing reads it; the schema
|
|
7975
|
-
* still ACCEPTS it because the catalog rows the migration wrote carry it
|
|
7976
|
-
* (an orphaned kind is never redeclared) and an addon built before the
|
|
7977
|
-
* removal still sends it. Never set it.
|
|
7978
|
-
*/
|
|
7979
|
-
adoptsFrom: string().min(1).optional(),
|
|
7980
7989
|
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
7981
7990
|
transactFamily: string().min(1).optional(),
|
|
7982
7991
|
entry: EntryDescriptorSchema.optional()
|
|
@@ -12796,17 +12805,6 @@ object({
|
|
|
12796
12805
|
createdAt: number(),
|
|
12797
12806
|
updatedAt: number()
|
|
12798
12807
|
});
|
|
12799
|
-
object({
|
|
12800
|
-
id: string(),
|
|
12801
|
-
label: string(),
|
|
12802
|
-
isAdmin: boolean().default(false),
|
|
12803
|
-
allowedProviders: AllowedProviderSchema,
|
|
12804
|
-
allowedDevices: AllowedDevicesSchema,
|
|
12805
|
-
tokenHash: string(),
|
|
12806
|
-
tokenPrefix: string(),
|
|
12807
|
-
createdAt: number(),
|
|
12808
|
-
lastUsedAt: number().optional()
|
|
12809
|
-
});
|
|
12810
12808
|
object({
|
|
12811
12809
|
id: string(),
|
|
12812
12810
|
userId: string(),
|
|
@@ -16701,16 +16699,36 @@ var RecordKindStateSchema = _enum([
|
|
|
16701
16699
|
var DeclareKindResultSchema = object({
|
|
16702
16700
|
kindId: number().int(),
|
|
16703
16701
|
state: RecordKindStateSchema,
|
|
16704
|
-
createdIndexes: array(string())
|
|
16705
|
-
/**
|
|
16706
|
-
* RETIRED (D900): always `null`. It carried the records-migration boot guard;
|
|
16707
|
-
* it stays on the wire, null, because an addon built before the removal reads
|
|
16708
|
-
* an ABSENT field as "adoption pending" and refuses to start.
|
|
16709
|
-
*/
|
|
16710
|
-
adoptionPending: _null()
|
|
16702
|
+
createdIndexes: array(string())
|
|
16711
16703
|
});
|
|
16712
16704
|
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
16713
16705
|
var SecretRefsList = array(string());
|
|
16706
|
+
/**
|
|
16707
|
+
* One op of a `transact`: the single-row writes, each on a kind of the caller.
|
|
16708
|
+
* All ops of one call share ONE database file and ONE `transactFamily`.
|
|
16709
|
+
*/
|
|
16710
|
+
var RecordTransactOpSchema = discriminatedUnion("op", [
|
|
16711
|
+
object({
|
|
16712
|
+
op: literal("put"),
|
|
16713
|
+
kind: RecordKindNameSchema,
|
|
16714
|
+
record: RecordInputSchema,
|
|
16715
|
+
ifRev: number().int().min(0).optional()
|
|
16716
|
+
}),
|
|
16717
|
+
object({
|
|
16718
|
+
op: literal("patch"),
|
|
16719
|
+
kind: RecordKindNameSchema,
|
|
16720
|
+
id: RecordIdSchema,
|
|
16721
|
+
data: RecordBodySchema,
|
|
16722
|
+
at: number().int().nullable().optional(),
|
|
16723
|
+
expiresAt: number().int().nullable().optional(),
|
|
16724
|
+
ifRev: number().int().min(1).optional()
|
|
16725
|
+
}),
|
|
16726
|
+
object({
|
|
16727
|
+
op: literal("delete"),
|
|
16728
|
+
kind: RecordKindNameSchema,
|
|
16729
|
+
id: RecordIdSchema
|
|
16730
|
+
})
|
|
16731
|
+
]);
|
|
16714
16732
|
var RecordSecretRefsSchema = record(string(), record(string(), string()));
|
|
16715
16733
|
method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema) }), object({ kinds: record(string(), DeclareKindResultSchema) }), {
|
|
16716
16734
|
kind: "mutation",
|
|
@@ -16817,6 +16835,16 @@ method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema)
|
|
|
16817
16835
|
}), {
|
|
16818
16836
|
kind: "mutation",
|
|
16819
16837
|
auth: "admin"
|
|
16838
|
+
}), method(object({ ops: array(RecordTransactOpSchema).min(1).max(RECORD_BATCH_MAX) }), object({
|
|
16839
|
+
results: array(object({
|
|
16840
|
+
rev: number().int().nullable(),
|
|
16841
|
+
deleted: boolean()
|
|
16842
|
+
})),
|
|
16843
|
+
releasedRefs: SecretRefsList,
|
|
16844
|
+
secretRefs: SecretRefsList
|
|
16845
|
+
}), {
|
|
16846
|
+
kind: "mutation",
|
|
16847
|
+
auth: "admin"
|
|
16820
16848
|
}), method(object({
|
|
16821
16849
|
deviceId: number().int(),
|
|
16822
16850
|
kinds: array(RecordKindNameSchema).optional()
|
|
@@ -42200,9 +42228,13 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42200
42228
|
"node-updating",
|
|
42201
42229
|
"node-inference-unavailable",
|
|
42202
42230
|
"detection-blind",
|
|
42231
|
+
"motion-noisy",
|
|
42232
|
+
"motion-calm",
|
|
42203
42233
|
"recording-stalled",
|
|
42204
42234
|
"recording-healthy",
|
|
42205
42235
|
"recording-degraded",
|
|
42236
|
+
"device-attention-required",
|
|
42237
|
+
"device-attention-resolved",
|
|
42206
42238
|
"storage-location-low",
|
|
42207
42239
|
"storage-location-critical",
|
|
42208
42240
|
"storage-location-ok",
|
|
@@ -42226,6 +42258,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42226
42258
|
"alert-critical",
|
|
42227
42259
|
"alert-error",
|
|
42228
42260
|
"alert-critical-resolved",
|
|
42261
|
+
"rule-broken",
|
|
42262
|
+
"rule-repaired",
|
|
42229
42263
|
"camera-online",
|
|
42230
42264
|
"camera-offline",
|
|
42231
42265
|
"camera-disabled",
|
|
@@ -54685,6 +54719,16 @@ object({
|
|
|
54685
54719
|
powerState: string().nullable(),
|
|
54686
54720
|
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54687
54721
|
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54722
|
+
/**
|
|
54723
|
+
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
54724
|
+
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
54725
|
+
* when none is reported. A cleared reminder is not an unknown one.
|
|
54726
|
+
*/
|
|
54727
|
+
filterCleaningDue: boolean().nullable(),
|
|
54728
|
+
/** True while the machine-care (descaling / cleaning-program) reminder is raised; false when clear; null when not reported. */
|
|
54729
|
+
machineCareDue: boolean().nullable(),
|
|
54730
|
+
/** Program runs left before the machine-care reminder is due; null when the appliance does not say. */
|
|
54731
|
+
machineCareRemainingRuns: number().int().nonnegative().nullable(),
|
|
54688
54732
|
/** Option states: null when the appliance does not expose the option or has not said. */
|
|
54689
54733
|
halfLoad: boolean().nullable(),
|
|
54690
54734
|
hygienePlus: boolean().nullable(),
|
|
@@ -61309,16 +61353,6 @@ var UpdateUserInputSchema = object({
|
|
|
61309
61353
|
allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
|
|
61310
61354
|
scopes: array(TokenScopeSchema).optional()
|
|
61311
61355
|
});
|
|
61312
|
-
var ApiKeySummarySchema = object({
|
|
61313
|
-
id: string(),
|
|
61314
|
-
label: string(),
|
|
61315
|
-
isAdmin: boolean().default(false),
|
|
61316
|
-
allowedProviders: union([array(string()), literal("*")]).optional(),
|
|
61317
|
-
allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
|
|
61318
|
-
tokenPrefix: string(),
|
|
61319
|
-
createdAt: number(),
|
|
61320
|
-
lastUsedAt: number().optional()
|
|
61321
|
-
});
|
|
61322
61356
|
var OauthSessionSummarySchema = object({
|
|
61323
61357
|
id: string(),
|
|
61324
61358
|
userId: string(),
|
|
@@ -61340,8 +61374,7 @@ var TotpStatusSchema = object({
|
|
|
61340
61374
|
confirmedAt: number().nullable()
|
|
61341
61375
|
});
|
|
61342
61376
|
/**
|
|
61343
|
-
* user-management — singleton capability for user accounts
|
|
61344
|
-
* legacy API-key rows.
|
|
61377
|
+
* user-management — singleton capability for user accounts.
|
|
61345
61378
|
*
|
|
61346
61379
|
* v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
|
|
61347
61380
|
* — the subset check on `setUserScopes` is moot
|
|
@@ -61397,10 +61430,6 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
61397
61430
|
}), UserSummarySchema.extend({ passwordHash: string() }).nullable(), {
|
|
61398
61431
|
kind: "mutation",
|
|
61399
61432
|
access: "view"
|
|
61400
|
-
}), method(_void(), array(ApiKeySummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
61401
|
-
kind: "mutation",
|
|
61402
|
-
auth: "admin",
|
|
61403
|
-
access: "delete"
|
|
61404
61433
|
}), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
61405
61434
|
kind: "mutation",
|
|
61406
61435
|
auth: "admin",
|
|
@@ -68913,6 +68942,12 @@ Object.freeze({
|
|
|
68913
68942
|
addonId: null,
|
|
68914
68943
|
access: "view"
|
|
68915
68944
|
},
|
|
68945
|
+
"records.transact": {
|
|
68946
|
+
capName: "records",
|
|
68947
|
+
capScope: "system",
|
|
68948
|
+
addonId: null,
|
|
68949
|
+
access: "create"
|
|
68950
|
+
},
|
|
68916
68951
|
"sceneMonitor.captureReference": {
|
|
68917
68952
|
capName: "scene-monitor",
|
|
68918
68953
|
capScope: "device",
|
|
@@ -70245,12 +70280,6 @@ Object.freeze({
|
|
|
70245
70280
|
addonId: null,
|
|
70246
70281
|
access: "view"
|
|
70247
70282
|
},
|
|
70248
|
-
"userManagement.listApiKeys": {
|
|
70249
|
-
capName: "user-management",
|
|
70250
|
-
capScope: "system",
|
|
70251
|
-
addonId: null,
|
|
70252
|
-
access: "view"
|
|
70253
|
-
},
|
|
70254
70283
|
"userManagement.listExternalIdentities": {
|
|
70255
70284
|
capName: "user-management",
|
|
70256
70285
|
capScope: "system",
|
|
@@ -70305,12 +70334,6 @@ Object.freeze({
|
|
|
70305
70334
|
addonId: null,
|
|
70306
70335
|
access: "create"
|
|
70307
70336
|
},
|
|
70308
|
-
"userManagement.revokeApiKey": {
|
|
70309
|
-
capName: "user-management",
|
|
70310
|
-
capScope: "system",
|
|
70311
|
-
addonId: null,
|
|
70312
|
-
access: "delete"
|
|
70313
|
-
},
|
|
70314
70337
|
"userManagement.revokeOauthSession": {
|
|
70315
70338
|
capName: "user-management",
|
|
70316
70339
|
capScope: "system",
|
|
@@ -73675,9 +73698,13 @@ new Map(Object.entries({
|
|
|
73675
73698
|
"stream-online": "device-events",
|
|
73676
73699
|
"stream-offline": "device-events",
|
|
73677
73700
|
"detection-blind": "device-events",
|
|
73701
|
+
"motion-noisy": "device-events",
|
|
73702
|
+
"motion-calm": "device-events",
|
|
73678
73703
|
"recording-stalled": "device-events",
|
|
73679
73704
|
"recording-healthy": "device-events",
|
|
73680
73705
|
"recording-degraded": "device-events",
|
|
73706
|
+
"device-attention-required": "device-events",
|
|
73707
|
+
"device-attention-resolved": "device-events",
|
|
73681
73708
|
"node-online": "system",
|
|
73682
73709
|
"node-offline": "system",
|
|
73683
73710
|
"node-restarting": "system",
|
|
@@ -73694,6 +73721,8 @@ new Map(Object.entries({
|
|
|
73694
73721
|
"alert-critical": "system",
|
|
73695
73722
|
"alert-error": "system",
|
|
73696
73723
|
"alert-critical-resolved": "system",
|
|
73724
|
+
"rule-broken": "system",
|
|
73725
|
+
"rule-repaired": "system",
|
|
73697
73726
|
"storage-location-low": "system",
|
|
73698
73727
|
"storage-location-critical": "system",
|
|
73699
73728
|
"storage-location-ok": "system",
|
|
@@ -73758,6 +73787,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
73758
73787
|
label: "Detecting nothing",
|
|
73759
73788
|
kinds: ["detection-blind"]
|
|
73760
73789
|
},
|
|
73790
|
+
{
|
|
73791
|
+
id: "motion-noise",
|
|
73792
|
+
family: "device-events",
|
|
73793
|
+
label: "Motion without a subject",
|
|
73794
|
+
kinds: ["motion-noisy", "motion-calm"]
|
|
73795
|
+
},
|
|
73761
73796
|
{
|
|
73762
73797
|
id: "recording",
|
|
73763
73798
|
family: "device-events",
|
|
@@ -73768,6 +73803,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
73768
73803
|
"recording-degraded"
|
|
73769
73804
|
]
|
|
73770
73805
|
},
|
|
73806
|
+
{
|
|
73807
|
+
id: "device-attention",
|
|
73808
|
+
family: "device-events",
|
|
73809
|
+
label: "Needs attention",
|
|
73810
|
+
kinds: ["device-attention-required", "device-attention-resolved"]
|
|
73811
|
+
},
|
|
73771
73812
|
{
|
|
73772
73813
|
id: "nodes",
|
|
73773
73814
|
family: "system",
|
|
@@ -73828,6 +73869,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
73828
73869
|
"alert-critical-resolved"
|
|
73829
73870
|
]
|
|
73830
73871
|
},
|
|
73872
|
+
{
|
|
73873
|
+
id: "rule-health",
|
|
73874
|
+
family: "system",
|
|
73875
|
+
label: "Notification rules",
|
|
73876
|
+
kinds: ["rule-broken", "rule-repaired"]
|
|
73877
|
+
},
|
|
73831
73878
|
{
|
|
73832
73879
|
id: "alarm",
|
|
73833
73880
|
family: "alarm",
|
|
@@ -73901,6 +73948,7 @@ var ALERT_EPISODE = [
|
|
|
73901
73948
|
"alert-error",
|
|
73902
73949
|
"alert-critical-resolved"
|
|
73903
73950
|
];
|
|
73951
|
+
var DEVICE_ATTENTION = ["device-attention-required", "device-attention-resolved"];
|
|
73904
73952
|
var UPDATES = [
|
|
73905
73953
|
"addon-update-available",
|
|
73906
73954
|
"server-update-available",
|
|
@@ -73930,9 +73978,12 @@ var DEVICE_EVENTS = [
|
|
|
73930
73978
|
"stream-online",
|
|
73931
73979
|
"stream-offline",
|
|
73932
73980
|
"detection-blind",
|
|
73981
|
+
"motion-noisy",
|
|
73982
|
+
"motion-calm",
|
|
73933
73983
|
"recording-stalled",
|
|
73934
73984
|
"recording-healthy",
|
|
73935
73985
|
"recording-degraded",
|
|
73986
|
+
...DEVICE_ATTENTION,
|
|
73936
73987
|
...ALARM
|
|
73937
73988
|
];
|
|
73938
73989
|
/** Every kind a summary may speak about — the two summarisable families. */
|
|
@@ -74100,7 +74151,13 @@ var STATE_SUMMARY_VARS = [
|
|
|
74100
74151
|
[...RULE_TEXT],
|
|
74101
74152
|
[...RULE_TEXT],
|
|
74102
74153
|
[...RULE_TEXT],
|
|
74103
|
-
|
|
74154
|
+
[...RULE_TEXT],
|
|
74155
|
+
[...RULE_TEXT],
|
|
74156
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
74157
|
+
[...RULE_TEXT],
|
|
74158
|
+
[...RULE_TEXT],
|
|
74159
|
+
[...RULE_TEXT],
|
|
74160
|
+
[...RULE_TEXT],
|
|
74104
74161
|
[...RULE_TEXT],
|
|
74105
74162
|
[...RULE_TEXT],
|
|
74106
74163
|
[...RULE_TEXT],
|
|
@@ -74118,11 +74175,11 @@ var STATE_SUMMARY_VARS = [
|
|
|
74118
74175
|
[...RULE_TEXT],
|
|
74119
74176
|
[...RULE_TEXT],
|
|
74120
74177
|
[...RULE_TEXT],
|
|
74178
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
74121
74179
|
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74180
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
74122
74181
|
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74123
|
-
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74124
|
-
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74125
|
-
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74182
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
74126
74183
|
[...RULE_TEXT],
|
|
74127
74184
|
[...RULE_TEXT],
|
|
74128
74185
|
[...RULE_TEXT],
|
|
@@ -74143,6 +74200,125 @@ var STATE_SUMMARY_VARS = [
|
|
|
74143
74200
|
[...RULE_TEXT],
|
|
74144
74201
|
...STATE_SUMMARY_VARS
|
|
74145
74202
|
];
|
|
74203
|
+
new Map([
|
|
74204
|
+
{
|
|
74205
|
+
id: "device-connectivity",
|
|
74206
|
+
family: "device-events",
|
|
74207
|
+
label: "Device connectivity (offline / back online)",
|
|
74208
|
+
bad: ["device-offline"],
|
|
74209
|
+
recovery: ["device-online"],
|
|
74210
|
+
snapshotLabel: "Devices offline now",
|
|
74211
|
+
snapshotSection: "device-state"
|
|
74212
|
+
},
|
|
74213
|
+
{
|
|
74214
|
+
id: "device-switch",
|
|
74215
|
+
family: "device-events",
|
|
74216
|
+
label: "Device switched off / back on",
|
|
74217
|
+
bad: ["device-disabled"],
|
|
74218
|
+
recovery: ["device-enabled"],
|
|
74219
|
+
snapshotLabel: "Devices switched off now",
|
|
74220
|
+
snapshotSection: "device-state"
|
|
74221
|
+
},
|
|
74222
|
+
{
|
|
74223
|
+
id: "stream-connectivity",
|
|
74224
|
+
family: "device-events",
|
|
74225
|
+
label: "Stream connectivity (offline / back online)",
|
|
74226
|
+
bad: ["stream-offline"],
|
|
74227
|
+
recovery: ["stream-online"],
|
|
74228
|
+
snapshotLabel: "Streams offline now",
|
|
74229
|
+
snapshotSection: "streams"
|
|
74230
|
+
},
|
|
74231
|
+
{
|
|
74232
|
+
id: "battery",
|
|
74233
|
+
family: "device-events",
|
|
74234
|
+
label: "Battery (low / back to normal)",
|
|
74235
|
+
bad: ["device-battery-low"],
|
|
74236
|
+
recovery: ["device-battery-normal"],
|
|
74237
|
+
snapshotLabel: "Batteries low now",
|
|
74238
|
+
snapshotSection: "battery"
|
|
74239
|
+
},
|
|
74240
|
+
{
|
|
74241
|
+
id: "consumables",
|
|
74242
|
+
family: "device-events",
|
|
74243
|
+
label: "Consumables (low / replaced)",
|
|
74244
|
+
bad: ["device-consumable-low"],
|
|
74245
|
+
recovery: ["device-consumable-normal"],
|
|
74246
|
+
snapshotLabel: "Consumables low now",
|
|
74247
|
+
snapshotSection: "consumables"
|
|
74248
|
+
},
|
|
74249
|
+
{
|
|
74250
|
+
id: "tanks",
|
|
74251
|
+
family: "device-events",
|
|
74252
|
+
label: "Tanks (low or full / back to normal)",
|
|
74253
|
+
bad: ["device-tank-low", "device-tank-full"],
|
|
74254
|
+
recovery: ["device-tank-normal"],
|
|
74255
|
+
snapshotLabel: "Tanks low or full now",
|
|
74256
|
+
snapshotSection: "tanks"
|
|
74257
|
+
},
|
|
74258
|
+
{
|
|
74259
|
+
id: "motion-noise",
|
|
74260
|
+
family: "device-events",
|
|
74261
|
+
label: "Motion without a subject (constant / calm again)",
|
|
74262
|
+
bad: ["motion-noisy"],
|
|
74263
|
+
recovery: ["motion-calm"],
|
|
74264
|
+
snapshotLabel: "Cameras with constant motion now",
|
|
74265
|
+
snapshotSection: null
|
|
74266
|
+
},
|
|
74267
|
+
{
|
|
74268
|
+
id: "recording-health",
|
|
74269
|
+
family: "device-events",
|
|
74270
|
+
label: "Recording health (stalled or degraded / recording again)",
|
|
74271
|
+
bad: ["recording-stalled", "recording-degraded"],
|
|
74272
|
+
recovery: ["recording-healthy"],
|
|
74273
|
+
snapshotLabel: "Recordings stalled now",
|
|
74274
|
+
snapshotSection: null
|
|
74275
|
+
},
|
|
74276
|
+
{
|
|
74277
|
+
id: "device-attention",
|
|
74278
|
+
family: "device-events",
|
|
74279
|
+
label: "Device needs attention (raised / resolved)",
|
|
74280
|
+
bad: ["device-attention-required"],
|
|
74281
|
+
recovery: ["device-attention-resolved"],
|
|
74282
|
+
snapshotLabel: "Devices needing attention now",
|
|
74283
|
+
snapshotSection: null
|
|
74284
|
+
},
|
|
74285
|
+
{
|
|
74286
|
+
id: "node-connectivity",
|
|
74287
|
+
family: "system",
|
|
74288
|
+
label: "Node connectivity (offline / back online)",
|
|
74289
|
+
bad: ["node-offline"],
|
|
74290
|
+
recovery: ["node-online"],
|
|
74291
|
+
snapshotLabel: "Nodes offline now",
|
|
74292
|
+
snapshotSection: "nodes"
|
|
74293
|
+
},
|
|
74294
|
+
{
|
|
74295
|
+
id: "storage-space",
|
|
74296
|
+
family: "system",
|
|
74297
|
+
label: "Storage space (low or critical / ok again)",
|
|
74298
|
+
bad: ["storage-location-low", "storage-location-critical"],
|
|
74299
|
+
recovery: ["storage-location-ok"],
|
|
74300
|
+
snapshotLabel: "Storage locations low now",
|
|
74301
|
+
snapshotSection: null
|
|
74302
|
+
},
|
|
74303
|
+
{
|
|
74304
|
+
id: "critical-alerts",
|
|
74305
|
+
family: "system",
|
|
74306
|
+
label: "Critical alerts (raised / resolved)",
|
|
74307
|
+
bad: ["alert-critical"],
|
|
74308
|
+
recovery: ["alert-critical-resolved"],
|
|
74309
|
+
snapshotLabel: "Critical alerts open now",
|
|
74310
|
+
snapshotSection: null
|
|
74311
|
+
},
|
|
74312
|
+
{
|
|
74313
|
+
id: "rule-health",
|
|
74314
|
+
family: "system",
|
|
74315
|
+
label: "Rule health (broken / repaired)",
|
|
74316
|
+
bad: ["rule-broken"],
|
|
74317
|
+
recovery: ["rule-repaired"],
|
|
74318
|
+
snapshotLabel: "Notification rules broken now",
|
|
74319
|
+
snapshotSection: null
|
|
74320
|
+
}
|
|
74321
|
+
].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
|
|
74146
74322
|
new Set([
|
|
74147
74323
|
"disarmed",
|
|
74148
74324
|
"armed_home",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-google",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.108",
|
|
4
4
|
"description": "Google Home export — hub-side smart-home fulfillment (SYNC / QUERY / EXECUTE / DISCONNECT) for the non-camera fleet, served over the hub's own OAuth account link. No Google credential is stored, sent or required.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|