@camstack/addon-export-google 0.1.107 → 0.1.109
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 +114 -67
- package/dist/export-google.addon.mjs +114 -67
- 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
|
|
@@ -5500,7 +5509,7 @@ var ZodIssueCode = {
|
|
|
5500
5509
|
var ZodFirstPartyTypeKind;
|
|
5501
5510
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5502
5511
|
//#endregion
|
|
5503
|
-
//#region ../types/dist/sleep-
|
|
5512
|
+
//#region ../types/dist/sleep-DJFUfKvA.mjs
|
|
5504
5513
|
/**
|
|
5505
5514
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5506
5515
|
* window to float samples (D455).
|
|
@@ -7962,7 +7971,7 @@ var EntryDescriptorSchema = object({
|
|
|
7962
7971
|
/** JSON Schema of the entry body; `secret: true` marks a password field. */
|
|
7963
7972
|
fields: record(string(), unknown())
|
|
7964
7973
|
}).strict();
|
|
7965
|
-
/** What crosses the wire
|
|
7974
|
+
/** What crosses the wire from an addon: JSON only, no Zod. An unknown key is refused. */
|
|
7966
7975
|
var RecordKindDeclarationSchema = object({
|
|
7967
7976
|
database: _enum(RECORD_DATABASES).default("settings"),
|
|
7968
7977
|
class: _enum(RECORD_CLASSES),
|
|
@@ -7981,14 +7990,6 @@ var RecordKindDeclarationSchema = object({
|
|
|
7981
7990
|
secretPaths: array(string().min(1)).default([]),
|
|
7982
7991
|
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
7983
7992
|
secretArrayKeys: record(string(), string()).default({}),
|
|
7984
|
-
/**
|
|
7985
|
-
* RETIRED (D900): the legacy table a kind adopted from during the records
|
|
7986
|
-
* migration. Nothing declares it any more and nothing reads it; the schema
|
|
7987
|
-
* still ACCEPTS it because the catalog rows the migration wrote carry it
|
|
7988
|
-
* (an orphaned kind is never redeclared) and an addon built before the
|
|
7989
|
-
* removal still sends it. Never set it.
|
|
7990
|
-
*/
|
|
7991
|
-
adoptsFrom: string().min(1).optional(),
|
|
7992
7993
|
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
7993
7994
|
transactFamily: string().min(1).optional(),
|
|
7994
7995
|
entry: EntryDescriptorSchema.optional()
|
|
@@ -12808,17 +12809,6 @@ object({
|
|
|
12808
12809
|
createdAt: number(),
|
|
12809
12810
|
updatedAt: number()
|
|
12810
12811
|
});
|
|
12811
|
-
object({
|
|
12812
|
-
id: string(),
|
|
12813
|
-
label: string(),
|
|
12814
|
-
isAdmin: boolean().default(false),
|
|
12815
|
-
allowedProviders: AllowedProviderSchema,
|
|
12816
|
-
allowedDevices: AllowedDevicesSchema,
|
|
12817
|
-
tokenHash: string(),
|
|
12818
|
-
tokenPrefix: string(),
|
|
12819
|
-
createdAt: number(),
|
|
12820
|
-
lastUsedAt: number().optional()
|
|
12821
|
-
});
|
|
12822
12812
|
object({
|
|
12823
12813
|
id: string(),
|
|
12824
12814
|
userId: string(),
|
|
@@ -16713,16 +16703,36 @@ var RecordKindStateSchema = _enum([
|
|
|
16713
16703
|
var DeclareKindResultSchema = object({
|
|
16714
16704
|
kindId: number().int(),
|
|
16715
16705
|
state: RecordKindStateSchema,
|
|
16716
|
-
createdIndexes: array(string())
|
|
16717
|
-
/**
|
|
16718
|
-
* RETIRED (D900): always `null`. It carried the records-migration boot guard;
|
|
16719
|
-
* it stays on the wire, null, because an addon built before the removal reads
|
|
16720
|
-
* an ABSENT field as "adoption pending" and refuses to start.
|
|
16721
|
-
*/
|
|
16722
|
-
adoptionPending: _null()
|
|
16706
|
+
createdIndexes: array(string())
|
|
16723
16707
|
});
|
|
16724
16708
|
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
16725
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
|
+
]);
|
|
16726
16736
|
var RecordSecretRefsSchema = record(string(), record(string(), string()));
|
|
16727
16737
|
method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema) }), object({ kinds: record(string(), DeclareKindResultSchema) }), {
|
|
16728
16738
|
kind: "mutation",
|
|
@@ -16829,6 +16839,16 @@ method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema)
|
|
|
16829
16839
|
}), {
|
|
16830
16840
|
kind: "mutation",
|
|
16831
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"
|
|
16832
16852
|
}), method(object({
|
|
16833
16853
|
deviceId: number().int(),
|
|
16834
16854
|
kinds: array(RecordKindNameSchema).optional()
|
|
@@ -42212,9 +42232,13 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42212
42232
|
"node-updating",
|
|
42213
42233
|
"node-inference-unavailable",
|
|
42214
42234
|
"detection-blind",
|
|
42235
|
+
"motion-noisy",
|
|
42236
|
+
"motion-calm",
|
|
42215
42237
|
"recording-stalled",
|
|
42216
42238
|
"recording-healthy",
|
|
42217
42239
|
"recording-degraded",
|
|
42240
|
+
"device-attention-required",
|
|
42241
|
+
"device-attention-resolved",
|
|
42218
42242
|
"storage-location-low",
|
|
42219
42243
|
"storage-location-critical",
|
|
42220
42244
|
"storage-location-ok",
|
|
@@ -47791,7 +47815,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
|
|
|
47791
47815
|
modelId: string()
|
|
47792
47816
|
}),
|
|
47793
47817
|
object({ kind: literal("cpu-device") }),
|
|
47794
|
-
object({ kind: literal("coral-untouched") }),
|
|
47795
47818
|
object({ kind: literal("device-disabled") }),
|
|
47796
47819
|
object({ kind: literal("device-unavailable") }),
|
|
47797
47820
|
object({ kind: literal("node-offline") }),
|
|
@@ -47889,11 +47912,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
|
|
|
47889
47912
|
kind: literal("detector-store-unreadable"),
|
|
47890
47913
|
error: string()
|
|
47891
47914
|
}),
|
|
47892
|
-
object({
|
|
47893
|
-
kind: literal("coral-enabled"),
|
|
47894
|
-
nodeId: string(),
|
|
47895
|
-
deviceKey: string()
|
|
47896
|
-
}),
|
|
47897
47915
|
object({
|
|
47898
47916
|
kind: literal("custom-pin-kept"),
|
|
47899
47917
|
nodeId: string(),
|
|
@@ -54699,6 +54717,16 @@ object({
|
|
|
54699
54717
|
powerState: string().nullable(),
|
|
54700
54718
|
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54701
54719
|
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54720
|
+
/**
|
|
54721
|
+
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
54722
|
+
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
54723
|
+
* when none is reported. A cleared reminder is not an unknown one.
|
|
54724
|
+
*/
|
|
54725
|
+
filterCleaningDue: boolean().nullable(),
|
|
54726
|
+
/** True while the machine-care (descaling / cleaning-program) reminder is raised; false when clear; null when not reported. */
|
|
54727
|
+
machineCareDue: boolean().nullable(),
|
|
54728
|
+
/** Program runs left before the machine-care reminder is due; null when the appliance does not say. */
|
|
54729
|
+
machineCareRemainingRuns: number().int().nonnegative().nullable(),
|
|
54702
54730
|
/** Option states: null when the appliance does not expose the option or has not said. */
|
|
54703
54731
|
halfLoad: boolean().nullable(),
|
|
54704
54732
|
hygienePlus: boolean().nullable(),
|
|
@@ -61323,16 +61351,6 @@ var UpdateUserInputSchema = object({
|
|
|
61323
61351
|
allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
|
|
61324
61352
|
scopes: array(TokenScopeSchema).optional()
|
|
61325
61353
|
});
|
|
61326
|
-
var ApiKeySummarySchema = object({
|
|
61327
|
-
id: string(),
|
|
61328
|
-
label: string(),
|
|
61329
|
-
isAdmin: boolean().default(false),
|
|
61330
|
-
allowedProviders: union([array(string()), literal("*")]).optional(),
|
|
61331
|
-
allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
|
|
61332
|
-
tokenPrefix: string(),
|
|
61333
|
-
createdAt: number(),
|
|
61334
|
-
lastUsedAt: number().optional()
|
|
61335
|
-
});
|
|
61336
61354
|
var OauthSessionSummarySchema = object({
|
|
61337
61355
|
id: string(),
|
|
61338
61356
|
userId: string(),
|
|
@@ -61354,8 +61372,7 @@ var TotpStatusSchema = object({
|
|
|
61354
61372
|
confirmedAt: number().nullable()
|
|
61355
61373
|
});
|
|
61356
61374
|
/**
|
|
61357
|
-
* user-management — singleton capability for user accounts
|
|
61358
|
-
* legacy API-key rows.
|
|
61375
|
+
* user-management — singleton capability for user accounts.
|
|
61359
61376
|
*
|
|
61360
61377
|
* v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
|
|
61361
61378
|
* — the subset check on `setUserScopes` is moot
|
|
@@ -61411,10 +61428,6 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
61411
61428
|
}), UserSummarySchema.extend({ passwordHash: string() }).nullable(), {
|
|
61412
61429
|
kind: "mutation",
|
|
61413
61430
|
access: "view"
|
|
61414
|
-
}), method(_void(), array(ApiKeySummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
61415
|
-
kind: "mutation",
|
|
61416
|
-
auth: "admin",
|
|
61417
|
-
access: "delete"
|
|
61418
61431
|
}), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
61419
61432
|
kind: "mutation",
|
|
61420
61433
|
auth: "admin",
|
|
@@ -68927,6 +68940,12 @@ Object.freeze({
|
|
|
68927
68940
|
addonId: null,
|
|
68928
68941
|
access: "view"
|
|
68929
68942
|
},
|
|
68943
|
+
"records.transact": {
|
|
68944
|
+
capName: "records",
|
|
68945
|
+
capScope: "system",
|
|
68946
|
+
addonId: null,
|
|
68947
|
+
access: "create"
|
|
68948
|
+
},
|
|
68930
68949
|
"sceneMonitor.captureReference": {
|
|
68931
68950
|
capName: "scene-monitor",
|
|
68932
68951
|
capScope: "device",
|
|
@@ -70259,12 +70278,6 @@ Object.freeze({
|
|
|
70259
70278
|
addonId: null,
|
|
70260
70279
|
access: "view"
|
|
70261
70280
|
},
|
|
70262
|
-
"userManagement.listApiKeys": {
|
|
70263
|
-
capName: "user-management",
|
|
70264
|
-
capScope: "system",
|
|
70265
|
-
addonId: null,
|
|
70266
|
-
access: "view"
|
|
70267
|
-
},
|
|
70268
70281
|
"userManagement.listExternalIdentities": {
|
|
70269
70282
|
capName: "user-management",
|
|
70270
70283
|
capScope: "system",
|
|
@@ -70319,12 +70332,6 @@ Object.freeze({
|
|
|
70319
70332
|
addonId: null,
|
|
70320
70333
|
access: "create"
|
|
70321
70334
|
},
|
|
70322
|
-
"userManagement.revokeApiKey": {
|
|
70323
|
-
capName: "user-management",
|
|
70324
|
-
capScope: "system",
|
|
70325
|
-
addonId: null,
|
|
70326
|
-
access: "delete"
|
|
70327
|
-
},
|
|
70328
70335
|
"userManagement.revokeOauthSession": {
|
|
70329
70336
|
capName: "user-management",
|
|
70330
70337
|
capScope: "system",
|
|
@@ -73689,9 +73696,13 @@ new Map(Object.entries({
|
|
|
73689
73696
|
"stream-online": "device-events",
|
|
73690
73697
|
"stream-offline": "device-events",
|
|
73691
73698
|
"detection-blind": "device-events",
|
|
73699
|
+
"motion-noisy": "device-events",
|
|
73700
|
+
"motion-calm": "device-events",
|
|
73692
73701
|
"recording-stalled": "device-events",
|
|
73693
73702
|
"recording-healthy": "device-events",
|
|
73694
73703
|
"recording-degraded": "device-events",
|
|
73704
|
+
"device-attention-required": "device-events",
|
|
73705
|
+
"device-attention-resolved": "device-events",
|
|
73695
73706
|
"node-online": "system",
|
|
73696
73707
|
"node-offline": "system",
|
|
73697
73708
|
"node-restarting": "system",
|
|
@@ -73774,6 +73785,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
73774
73785
|
label: "Detecting nothing",
|
|
73775
73786
|
kinds: ["detection-blind"]
|
|
73776
73787
|
},
|
|
73788
|
+
{
|
|
73789
|
+
id: "motion-noise",
|
|
73790
|
+
family: "device-events",
|
|
73791
|
+
label: "Motion without a subject",
|
|
73792
|
+
kinds: ["motion-noisy", "motion-calm"]
|
|
73793
|
+
},
|
|
73777
73794
|
{
|
|
73778
73795
|
id: "recording",
|
|
73779
73796
|
family: "device-events",
|
|
@@ -73784,6 +73801,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
73784
73801
|
"recording-degraded"
|
|
73785
73802
|
]
|
|
73786
73803
|
},
|
|
73804
|
+
{
|
|
73805
|
+
id: "device-attention",
|
|
73806
|
+
family: "device-events",
|
|
73807
|
+
label: "Needs attention",
|
|
73808
|
+
kinds: ["device-attention-required", "device-attention-resolved"]
|
|
73809
|
+
},
|
|
73787
73810
|
{
|
|
73788
73811
|
id: "nodes",
|
|
73789
73812
|
family: "system",
|
|
@@ -73923,6 +73946,7 @@ var ALERT_EPISODE = [
|
|
|
73923
73946
|
"alert-error",
|
|
73924
73947
|
"alert-critical-resolved"
|
|
73925
73948
|
];
|
|
73949
|
+
var DEVICE_ATTENTION = ["device-attention-required", "device-attention-resolved"];
|
|
73926
73950
|
var UPDATES = [
|
|
73927
73951
|
"addon-update-available",
|
|
73928
73952
|
"server-update-available",
|
|
@@ -73952,9 +73976,12 @@ var DEVICE_EVENTS = [
|
|
|
73952
73976
|
"stream-online",
|
|
73953
73977
|
"stream-offline",
|
|
73954
73978
|
"detection-blind",
|
|
73979
|
+
"motion-noisy",
|
|
73980
|
+
"motion-calm",
|
|
73955
73981
|
"recording-stalled",
|
|
73956
73982
|
"recording-healthy",
|
|
73957
73983
|
"recording-degraded",
|
|
73984
|
+
...DEVICE_ATTENTION,
|
|
73958
73985
|
...ALARM
|
|
73959
73986
|
];
|
|
73960
73987
|
/** Every kind a summary may speak about — the two summarisable families. */
|
|
@@ -74122,7 +74149,9 @@ var STATE_SUMMARY_VARS = [
|
|
|
74122
74149
|
[...RULE_TEXT],
|
|
74123
74150
|
[...RULE_TEXT],
|
|
74124
74151
|
[...RULE_TEXT],
|
|
74125
|
-
|
|
74152
|
+
[...RULE_TEXT],
|
|
74153
|
+
[...RULE_TEXT],
|
|
74154
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
74126
74155
|
[...RULE_TEXT],
|
|
74127
74156
|
[...RULE_TEXT],
|
|
74128
74157
|
[...RULE_TEXT],
|
|
@@ -74144,11 +74173,11 @@ var STATE_SUMMARY_VARS = [
|
|
|
74144
74173
|
[...RULE_TEXT],
|
|
74145
74174
|
[...RULE_TEXT],
|
|
74146
74175
|
[...RULE_TEXT],
|
|
74176
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
74147
74177
|
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74178
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
74148
74179
|
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74149
|
-
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74150
|
-
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74151
|
-
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74180
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
74152
74181
|
[...RULE_TEXT],
|
|
74153
74182
|
[...RULE_TEXT],
|
|
74154
74183
|
[...RULE_TEXT],
|
|
@@ -74224,6 +74253,15 @@ new Map([
|
|
|
74224
74253
|
snapshotLabel: "Tanks low or full now",
|
|
74225
74254
|
snapshotSection: "tanks"
|
|
74226
74255
|
},
|
|
74256
|
+
{
|
|
74257
|
+
id: "motion-noise",
|
|
74258
|
+
family: "device-events",
|
|
74259
|
+
label: "Motion without a subject (constant / calm again)",
|
|
74260
|
+
bad: ["motion-noisy"],
|
|
74261
|
+
recovery: ["motion-calm"],
|
|
74262
|
+
snapshotLabel: "Cameras with constant motion now",
|
|
74263
|
+
snapshotSection: null
|
|
74264
|
+
},
|
|
74227
74265
|
{
|
|
74228
74266
|
id: "recording-health",
|
|
74229
74267
|
family: "device-events",
|
|
@@ -74233,6 +74271,15 @@ new Map([
|
|
|
74233
74271
|
snapshotLabel: "Recordings stalled now",
|
|
74234
74272
|
snapshotSection: null
|
|
74235
74273
|
},
|
|
74274
|
+
{
|
|
74275
|
+
id: "device-attention",
|
|
74276
|
+
family: "device-events",
|
|
74277
|
+
label: "Device needs attention (raised / resolved)",
|
|
74278
|
+
bad: ["device-attention-required"],
|
|
74279
|
+
recovery: ["device-attention-resolved"],
|
|
74280
|
+
snapshotLabel: "Devices needing attention now",
|
|
74281
|
+
snapshotSection: null
|
|
74282
|
+
},
|
|
74236
74283
|
{
|
|
74237
74284
|
id: "node-connectivity",
|
|
74238
74285
|
family: "system",
|
|
@@ -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
|
|
@@ -5496,7 +5505,7 @@ var ZodIssueCode = {
|
|
|
5496
5505
|
var ZodFirstPartyTypeKind;
|
|
5497
5506
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5498
5507
|
//#endregion
|
|
5499
|
-
//#region ../types/dist/sleep-
|
|
5508
|
+
//#region ../types/dist/sleep-DJFUfKvA.mjs
|
|
5500
5509
|
/**
|
|
5501
5510
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5502
5511
|
* window to float samples (D455).
|
|
@@ -7958,7 +7967,7 @@ var EntryDescriptorSchema = object({
|
|
|
7958
7967
|
/** JSON Schema of the entry body; `secret: true` marks a password field. */
|
|
7959
7968
|
fields: record(string(), unknown())
|
|
7960
7969
|
}).strict();
|
|
7961
|
-
/** What crosses the wire
|
|
7970
|
+
/** What crosses the wire from an addon: JSON only, no Zod. An unknown key is refused. */
|
|
7962
7971
|
var RecordKindDeclarationSchema = object({
|
|
7963
7972
|
database: _enum(RECORD_DATABASES).default("settings"),
|
|
7964
7973
|
class: _enum(RECORD_CLASSES),
|
|
@@ -7977,14 +7986,6 @@ var RecordKindDeclarationSchema = object({
|
|
|
7977
7986
|
secretPaths: array(string().min(1)).default([]),
|
|
7978
7987
|
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
7979
7988
|
secretArrayKeys: record(string(), string()).default({}),
|
|
7980
|
-
/**
|
|
7981
|
-
* RETIRED (D900): the legacy table a kind adopted from during the records
|
|
7982
|
-
* migration. Nothing declares it any more and nothing reads it; the schema
|
|
7983
|
-
* still ACCEPTS it because the catalog rows the migration wrote carry it
|
|
7984
|
-
* (an orphaned kind is never redeclared) and an addon built before the
|
|
7985
|
-
* removal still sends it. Never set it.
|
|
7986
|
-
*/
|
|
7987
|
-
adoptsFrom: string().min(1).optional(),
|
|
7988
7989
|
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
7989
7990
|
transactFamily: string().min(1).optional(),
|
|
7990
7991
|
entry: EntryDescriptorSchema.optional()
|
|
@@ -12804,17 +12805,6 @@ object({
|
|
|
12804
12805
|
createdAt: number(),
|
|
12805
12806
|
updatedAt: number()
|
|
12806
12807
|
});
|
|
12807
|
-
object({
|
|
12808
|
-
id: string(),
|
|
12809
|
-
label: string(),
|
|
12810
|
-
isAdmin: boolean().default(false),
|
|
12811
|
-
allowedProviders: AllowedProviderSchema,
|
|
12812
|
-
allowedDevices: AllowedDevicesSchema,
|
|
12813
|
-
tokenHash: string(),
|
|
12814
|
-
tokenPrefix: string(),
|
|
12815
|
-
createdAt: number(),
|
|
12816
|
-
lastUsedAt: number().optional()
|
|
12817
|
-
});
|
|
12818
12808
|
object({
|
|
12819
12809
|
id: string(),
|
|
12820
12810
|
userId: string(),
|
|
@@ -16709,16 +16699,36 @@ var RecordKindStateSchema = _enum([
|
|
|
16709
16699
|
var DeclareKindResultSchema = object({
|
|
16710
16700
|
kindId: number().int(),
|
|
16711
16701
|
state: RecordKindStateSchema,
|
|
16712
|
-
createdIndexes: array(string())
|
|
16713
|
-
/**
|
|
16714
|
-
* RETIRED (D900): always `null`. It carried the records-migration boot guard;
|
|
16715
|
-
* it stays on the wire, null, because an addon built before the removal reads
|
|
16716
|
-
* an ABSENT field as "adoption pending" and refuses to start.
|
|
16717
|
-
*/
|
|
16718
|
-
adoptionPending: _null()
|
|
16702
|
+
createdIndexes: array(string())
|
|
16719
16703
|
});
|
|
16720
16704
|
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
16721
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
|
+
]);
|
|
16722
16732
|
var RecordSecretRefsSchema = record(string(), record(string(), string()));
|
|
16723
16733
|
method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema) }), object({ kinds: record(string(), DeclareKindResultSchema) }), {
|
|
16724
16734
|
kind: "mutation",
|
|
@@ -16825,6 +16835,16 @@ method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema)
|
|
|
16825
16835
|
}), {
|
|
16826
16836
|
kind: "mutation",
|
|
16827
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"
|
|
16828
16848
|
}), method(object({
|
|
16829
16849
|
deviceId: number().int(),
|
|
16830
16850
|
kinds: array(RecordKindNameSchema).optional()
|
|
@@ -42208,9 +42228,13 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42208
42228
|
"node-updating",
|
|
42209
42229
|
"node-inference-unavailable",
|
|
42210
42230
|
"detection-blind",
|
|
42231
|
+
"motion-noisy",
|
|
42232
|
+
"motion-calm",
|
|
42211
42233
|
"recording-stalled",
|
|
42212
42234
|
"recording-healthy",
|
|
42213
42235
|
"recording-degraded",
|
|
42236
|
+
"device-attention-required",
|
|
42237
|
+
"device-attention-resolved",
|
|
42214
42238
|
"storage-location-low",
|
|
42215
42239
|
"storage-location-critical",
|
|
42216
42240
|
"storage-location-ok",
|
|
@@ -47787,7 +47811,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
|
|
|
47787
47811
|
modelId: string()
|
|
47788
47812
|
}),
|
|
47789
47813
|
object({ kind: literal("cpu-device") }),
|
|
47790
|
-
object({ kind: literal("coral-untouched") }),
|
|
47791
47814
|
object({ kind: literal("device-disabled") }),
|
|
47792
47815
|
object({ kind: literal("device-unavailable") }),
|
|
47793
47816
|
object({ kind: literal("node-offline") }),
|
|
@@ -47885,11 +47908,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
|
|
|
47885
47908
|
kind: literal("detector-store-unreadable"),
|
|
47886
47909
|
error: string()
|
|
47887
47910
|
}),
|
|
47888
|
-
object({
|
|
47889
|
-
kind: literal("coral-enabled"),
|
|
47890
|
-
nodeId: string(),
|
|
47891
|
-
deviceKey: string()
|
|
47892
|
-
}),
|
|
47893
47911
|
object({
|
|
47894
47912
|
kind: literal("custom-pin-kept"),
|
|
47895
47913
|
nodeId: string(),
|
|
@@ -54695,6 +54713,16 @@ object({
|
|
|
54695
54713
|
powerState: string().nullable(),
|
|
54696
54714
|
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54697
54715
|
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54716
|
+
/**
|
|
54717
|
+
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
54718
|
+
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
54719
|
+
* when none is reported. A cleared reminder is not an unknown one.
|
|
54720
|
+
*/
|
|
54721
|
+
filterCleaningDue: boolean().nullable(),
|
|
54722
|
+
/** True while the machine-care (descaling / cleaning-program) reminder is raised; false when clear; null when not reported. */
|
|
54723
|
+
machineCareDue: boolean().nullable(),
|
|
54724
|
+
/** Program runs left before the machine-care reminder is due; null when the appliance does not say. */
|
|
54725
|
+
machineCareRemainingRuns: number().int().nonnegative().nullable(),
|
|
54698
54726
|
/** Option states: null when the appliance does not expose the option or has not said. */
|
|
54699
54727
|
halfLoad: boolean().nullable(),
|
|
54700
54728
|
hygienePlus: boolean().nullable(),
|
|
@@ -61319,16 +61347,6 @@ var UpdateUserInputSchema = object({
|
|
|
61319
61347
|
allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
|
|
61320
61348
|
scopes: array(TokenScopeSchema).optional()
|
|
61321
61349
|
});
|
|
61322
|
-
var ApiKeySummarySchema = object({
|
|
61323
|
-
id: string(),
|
|
61324
|
-
label: string(),
|
|
61325
|
-
isAdmin: boolean().default(false),
|
|
61326
|
-
allowedProviders: union([array(string()), literal("*")]).optional(),
|
|
61327
|
-
allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
|
|
61328
|
-
tokenPrefix: string(),
|
|
61329
|
-
createdAt: number(),
|
|
61330
|
-
lastUsedAt: number().optional()
|
|
61331
|
-
});
|
|
61332
61350
|
var OauthSessionSummarySchema = object({
|
|
61333
61351
|
id: string(),
|
|
61334
61352
|
userId: string(),
|
|
@@ -61350,8 +61368,7 @@ var TotpStatusSchema = object({
|
|
|
61350
61368
|
confirmedAt: number().nullable()
|
|
61351
61369
|
});
|
|
61352
61370
|
/**
|
|
61353
|
-
* user-management — singleton capability for user accounts
|
|
61354
|
-
* legacy API-key rows.
|
|
61371
|
+
* user-management — singleton capability for user accounts.
|
|
61355
61372
|
*
|
|
61356
61373
|
* v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
|
|
61357
61374
|
* — the subset check on `setUserScopes` is moot
|
|
@@ -61407,10 +61424,6 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
61407
61424
|
}), UserSummarySchema.extend({ passwordHash: string() }).nullable(), {
|
|
61408
61425
|
kind: "mutation",
|
|
61409
61426
|
access: "view"
|
|
61410
|
-
}), method(_void(), array(ApiKeySummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
61411
|
-
kind: "mutation",
|
|
61412
|
-
auth: "admin",
|
|
61413
|
-
access: "delete"
|
|
61414
61427
|
}), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
61415
61428
|
kind: "mutation",
|
|
61416
61429
|
auth: "admin",
|
|
@@ -68923,6 +68936,12 @@ Object.freeze({
|
|
|
68923
68936
|
addonId: null,
|
|
68924
68937
|
access: "view"
|
|
68925
68938
|
},
|
|
68939
|
+
"records.transact": {
|
|
68940
|
+
capName: "records",
|
|
68941
|
+
capScope: "system",
|
|
68942
|
+
addonId: null,
|
|
68943
|
+
access: "create"
|
|
68944
|
+
},
|
|
68926
68945
|
"sceneMonitor.captureReference": {
|
|
68927
68946
|
capName: "scene-monitor",
|
|
68928
68947
|
capScope: "device",
|
|
@@ -70255,12 +70274,6 @@ Object.freeze({
|
|
|
70255
70274
|
addonId: null,
|
|
70256
70275
|
access: "view"
|
|
70257
70276
|
},
|
|
70258
|
-
"userManagement.listApiKeys": {
|
|
70259
|
-
capName: "user-management",
|
|
70260
|
-
capScope: "system",
|
|
70261
|
-
addonId: null,
|
|
70262
|
-
access: "view"
|
|
70263
|
-
},
|
|
70264
70277
|
"userManagement.listExternalIdentities": {
|
|
70265
70278
|
capName: "user-management",
|
|
70266
70279
|
capScope: "system",
|
|
@@ -70315,12 +70328,6 @@ Object.freeze({
|
|
|
70315
70328
|
addonId: null,
|
|
70316
70329
|
access: "create"
|
|
70317
70330
|
},
|
|
70318
|
-
"userManagement.revokeApiKey": {
|
|
70319
|
-
capName: "user-management",
|
|
70320
|
-
capScope: "system",
|
|
70321
|
-
addonId: null,
|
|
70322
|
-
access: "delete"
|
|
70323
|
-
},
|
|
70324
70331
|
"userManagement.revokeOauthSession": {
|
|
70325
70332
|
capName: "user-management",
|
|
70326
70333
|
capScope: "system",
|
|
@@ -73685,9 +73692,13 @@ new Map(Object.entries({
|
|
|
73685
73692
|
"stream-online": "device-events",
|
|
73686
73693
|
"stream-offline": "device-events",
|
|
73687
73694
|
"detection-blind": "device-events",
|
|
73695
|
+
"motion-noisy": "device-events",
|
|
73696
|
+
"motion-calm": "device-events",
|
|
73688
73697
|
"recording-stalled": "device-events",
|
|
73689
73698
|
"recording-healthy": "device-events",
|
|
73690
73699
|
"recording-degraded": "device-events",
|
|
73700
|
+
"device-attention-required": "device-events",
|
|
73701
|
+
"device-attention-resolved": "device-events",
|
|
73691
73702
|
"node-online": "system",
|
|
73692
73703
|
"node-offline": "system",
|
|
73693
73704
|
"node-restarting": "system",
|
|
@@ -73770,6 +73781,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
73770
73781
|
label: "Detecting nothing",
|
|
73771
73782
|
kinds: ["detection-blind"]
|
|
73772
73783
|
},
|
|
73784
|
+
{
|
|
73785
|
+
id: "motion-noise",
|
|
73786
|
+
family: "device-events",
|
|
73787
|
+
label: "Motion without a subject",
|
|
73788
|
+
kinds: ["motion-noisy", "motion-calm"]
|
|
73789
|
+
},
|
|
73773
73790
|
{
|
|
73774
73791
|
id: "recording",
|
|
73775
73792
|
family: "device-events",
|
|
@@ -73780,6 +73797,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
73780
73797
|
"recording-degraded"
|
|
73781
73798
|
]
|
|
73782
73799
|
},
|
|
73800
|
+
{
|
|
73801
|
+
id: "device-attention",
|
|
73802
|
+
family: "device-events",
|
|
73803
|
+
label: "Needs attention",
|
|
73804
|
+
kinds: ["device-attention-required", "device-attention-resolved"]
|
|
73805
|
+
},
|
|
73783
73806
|
{
|
|
73784
73807
|
id: "nodes",
|
|
73785
73808
|
family: "system",
|
|
@@ -73919,6 +73942,7 @@ var ALERT_EPISODE = [
|
|
|
73919
73942
|
"alert-error",
|
|
73920
73943
|
"alert-critical-resolved"
|
|
73921
73944
|
];
|
|
73945
|
+
var DEVICE_ATTENTION = ["device-attention-required", "device-attention-resolved"];
|
|
73922
73946
|
var UPDATES = [
|
|
73923
73947
|
"addon-update-available",
|
|
73924
73948
|
"server-update-available",
|
|
@@ -73948,9 +73972,12 @@ var DEVICE_EVENTS = [
|
|
|
73948
73972
|
"stream-online",
|
|
73949
73973
|
"stream-offline",
|
|
73950
73974
|
"detection-blind",
|
|
73975
|
+
"motion-noisy",
|
|
73976
|
+
"motion-calm",
|
|
73951
73977
|
"recording-stalled",
|
|
73952
73978
|
"recording-healthy",
|
|
73953
73979
|
"recording-degraded",
|
|
73980
|
+
...DEVICE_ATTENTION,
|
|
73954
73981
|
...ALARM
|
|
73955
73982
|
];
|
|
73956
73983
|
/** Every kind a summary may speak about — the two summarisable families. */
|
|
@@ -74118,7 +74145,9 @@ var STATE_SUMMARY_VARS = [
|
|
|
74118
74145
|
[...RULE_TEXT],
|
|
74119
74146
|
[...RULE_TEXT],
|
|
74120
74147
|
[...RULE_TEXT],
|
|
74121
|
-
|
|
74148
|
+
[...RULE_TEXT],
|
|
74149
|
+
[...RULE_TEXT],
|
|
74150
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
74122
74151
|
[...RULE_TEXT],
|
|
74123
74152
|
[...RULE_TEXT],
|
|
74124
74153
|
[...RULE_TEXT],
|
|
@@ -74140,11 +74169,11 @@ var STATE_SUMMARY_VARS = [
|
|
|
74140
74169
|
[...RULE_TEXT],
|
|
74141
74170
|
[...RULE_TEXT],
|
|
74142
74171
|
[...RULE_TEXT],
|
|
74172
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
74143
74173
|
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74174
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
74144
74175
|
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74145
|
-
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74146
|
-
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74147
|
-
([...RULE_TEXT], [...ALERT_EPISODE]),
|
|
74176
|
+
([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
|
|
74148
74177
|
[...RULE_TEXT],
|
|
74149
74178
|
[...RULE_TEXT],
|
|
74150
74179
|
[...RULE_TEXT],
|
|
@@ -74220,6 +74249,15 @@ new Map([
|
|
|
74220
74249
|
snapshotLabel: "Tanks low or full now",
|
|
74221
74250
|
snapshotSection: "tanks"
|
|
74222
74251
|
},
|
|
74252
|
+
{
|
|
74253
|
+
id: "motion-noise",
|
|
74254
|
+
family: "device-events",
|
|
74255
|
+
label: "Motion without a subject (constant / calm again)",
|
|
74256
|
+
bad: ["motion-noisy"],
|
|
74257
|
+
recovery: ["motion-calm"],
|
|
74258
|
+
snapshotLabel: "Cameras with constant motion now",
|
|
74259
|
+
snapshotSection: null
|
|
74260
|
+
},
|
|
74223
74261
|
{
|
|
74224
74262
|
id: "recording-health",
|
|
74225
74263
|
family: "device-events",
|
|
@@ -74229,6 +74267,15 @@ new Map([
|
|
|
74229
74267
|
snapshotLabel: "Recordings stalled now",
|
|
74230
74268
|
snapshotSection: null
|
|
74231
74269
|
},
|
|
74270
|
+
{
|
|
74271
|
+
id: "device-attention",
|
|
74272
|
+
family: "device-events",
|
|
74273
|
+
label: "Device needs attention (raised / resolved)",
|
|
74274
|
+
bad: ["device-attention-required"],
|
|
74275
|
+
recovery: ["device-attention-resolved"],
|
|
74276
|
+
snapshotLabel: "Devices needing attention now",
|
|
74277
|
+
snapshotSection: null
|
|
74278
|
+
},
|
|
74232
74279
|
{
|
|
74233
74280
|
id: "node-connectivity",
|
|
74234
74281
|
family: "system",
|
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.109",
|
|
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",
|