@camstack/types 1.2.397 → 1.2.398
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 +17 -2
- package/dist/addon.mjs +15 -3
- package/dist/capabilities/dishwasher.cap.d.ts +9 -0
- package/dist/capabilities/index.d.ts +2 -2
- package/dist/capabilities/notification-rules.cap.d.ts +92 -0
- package/dist/capabilities/osd-manager.cap.d.ts +24 -0
- package/dist/capabilities/records.cap.d.ts +67 -3
- package/dist/capabilities/storage-admin.cap.d.ts +0 -2
- package/dist/capabilities/user-management.cap.d.ts +2 -28
- package/dist/client.js +88 -9
- package/dist/client.mjs +88 -9
- package/dist/enums/event-category.d.ts +9 -0
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/{event-category-kpu1bZMs.js → event-category-7AwNbPjm.js} +9 -0
- package/dist/{event-category-7pZEBmVg.mjs → event-category-BfJwUd2S.mjs} +9 -0
- package/dist/generated/addon-api.d.ts +7 -14
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +181 -61
- package/dist/index.mjs +177 -60
- package/dist/interfaces/auth.d.ts +1 -1
- package/dist/interfaces/event-bus.d.ts +24 -5
- package/dist/notification/alert-episode.d.ts +7 -0
- package/dist/records/errors.d.ts +9 -1
- package/dist/records/index.d.ts +1 -0
- package/dist/records/record-kind.d.ts +62 -2
- package/dist/records/records-access.d.ts +36 -1
- package/dist/records/transact-rules.d.ts +7 -0
- package/dist/schemas/auth-records.d.ts +0 -12
- package/dist/{sleep-Bo7fq491.js → sleep-CD18m9HF.js} +478 -311
- package/dist/{sleep-CueztlR1.mjs → sleep-DJFUfKvA.mjs} +461 -312
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_sleep = require("./sleep-
|
|
3
|
-
const require_event_category = require("./event-category-
|
|
2
|
+
const require_sleep = require("./sleep-CD18m9HF.js");
|
|
3
|
+
const require_event_category = require("./event-category-7AwNbPjm.js");
|
|
4
4
|
const require_composition = require("./composition-eoYYVfOp.js");
|
|
5
5
|
const require_node_color = require("./node-color.js");
|
|
6
6
|
const require_err_msg = require("./err-msg-BhVbr0NX.js");
|
|
@@ -6812,17 +6812,6 @@ var UserRecordSchema = zod.z.object({
|
|
|
6812
6812
|
createdAt: zod.z.number(),
|
|
6813
6813
|
updatedAt: zod.z.number()
|
|
6814
6814
|
});
|
|
6815
|
-
var ApiKeyRecordSchema = zod.z.object({
|
|
6816
|
-
id: zod.z.string(),
|
|
6817
|
-
label: zod.z.string(),
|
|
6818
|
-
isAdmin: zod.z.boolean().default(false),
|
|
6819
|
-
allowedProviders: AllowedProviderSchema,
|
|
6820
|
-
allowedDevices: AllowedDevicesSchema,
|
|
6821
|
-
tokenHash: zod.z.string(),
|
|
6822
|
-
tokenPrefix: zod.z.string(),
|
|
6823
|
-
createdAt: zod.z.number(),
|
|
6824
|
-
lastUsedAt: zod.z.number().optional()
|
|
6825
|
-
});
|
|
6826
6815
|
var ScopedTokenSchema = zod.z.object({
|
|
6827
6816
|
id: zod.z.string(),
|
|
6828
6817
|
userId: zod.z.string(),
|
|
@@ -14502,16 +14491,36 @@ var RecordKindStateSchema = zod.z.enum([
|
|
|
14502
14491
|
var DeclareKindResultSchema = zod.z.object({
|
|
14503
14492
|
kindId: zod.z.number().int(),
|
|
14504
14493
|
state: RecordKindStateSchema,
|
|
14505
|
-
createdIndexes: zod.z.array(zod.z.string())
|
|
14506
|
-
/**
|
|
14507
|
-
* RETIRED (D900): always `null`. It carried the records-migration boot guard;
|
|
14508
|
-
* it stays on the wire, null, because an addon built before the removal reads
|
|
14509
|
-
* an ABSENT field as "adoption pending" and refuses to start.
|
|
14510
|
-
*/
|
|
14511
|
-
adoptionPending: zod.z.null()
|
|
14494
|
+
createdIndexes: zod.z.array(zod.z.string())
|
|
14512
14495
|
});
|
|
14513
14496
|
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
14514
14497
|
var SecretRefsList = zod.z.array(zod.z.string());
|
|
14498
|
+
/**
|
|
14499
|
+
* One op of a `transact`: the single-row writes, each on a kind of the caller.
|
|
14500
|
+
* All ops of one call share ONE database file and ONE `transactFamily`.
|
|
14501
|
+
*/
|
|
14502
|
+
var RecordTransactOpSchema = zod.z.discriminatedUnion("op", [
|
|
14503
|
+
zod.z.object({
|
|
14504
|
+
op: zod.z.literal("put"),
|
|
14505
|
+
kind: require_sleep.RecordKindNameSchema,
|
|
14506
|
+
record: RecordInputSchema,
|
|
14507
|
+
ifRev: zod.z.number().int().min(0).optional()
|
|
14508
|
+
}),
|
|
14509
|
+
zod.z.object({
|
|
14510
|
+
op: zod.z.literal("patch"),
|
|
14511
|
+
kind: require_sleep.RecordKindNameSchema,
|
|
14512
|
+
id: RecordIdSchema,
|
|
14513
|
+
data: RecordBodySchema,
|
|
14514
|
+
at: zod.z.number().int().nullable().optional(),
|
|
14515
|
+
expiresAt: zod.z.number().int().nullable().optional(),
|
|
14516
|
+
ifRev: zod.z.number().int().min(1).optional()
|
|
14517
|
+
}),
|
|
14518
|
+
zod.z.object({
|
|
14519
|
+
op: zod.z.literal("delete"),
|
|
14520
|
+
kind: require_sleep.RecordKindNameSchema,
|
|
14521
|
+
id: RecordIdSchema
|
|
14522
|
+
})
|
|
14523
|
+
]);
|
|
14515
14524
|
var RecordSecretRefsSchema = zod.z.record(zod.z.string(), zod.z.record(zod.z.string(), zod.z.string()));
|
|
14516
14525
|
var recordsCapability = {
|
|
14517
14526
|
name: "records",
|
|
@@ -14643,6 +14652,22 @@ var recordsCapability = {
|
|
|
14643
14652
|
kind: "mutation",
|
|
14644
14653
|
auth: "admin"
|
|
14645
14654
|
}),
|
|
14655
|
+
/**
|
|
14656
|
+
* Several single-row writes (put / patch / delete) in ONE SQLite transaction:
|
|
14657
|
+
* all land or none does. Every op's kind must sit in one file and share one
|
|
14658
|
+
* `transactFamily` (`records/transact-refused` otherwise). Results are in op order.
|
|
14659
|
+
*/
|
|
14660
|
+
transact: require_sleep.method(zod.z.object({ ops: zod.z.array(RecordTransactOpSchema).min(1).max(require_sleep.RECORD_BATCH_MAX) }), zod.z.object({
|
|
14661
|
+
results: zod.z.array(zod.z.object({
|
|
14662
|
+
rev: zod.z.number().int().nullable(),
|
|
14663
|
+
deleted: zod.z.boolean()
|
|
14664
|
+
})),
|
|
14665
|
+
releasedRefs: SecretRefsList,
|
|
14666
|
+
secretRefs: SecretRefsList
|
|
14667
|
+
}), {
|
|
14668
|
+
kind: "mutation",
|
|
14669
|
+
auth: "admin"
|
|
14670
|
+
}),
|
|
14646
14671
|
/** The D865 hook body: every kind of this addon declared `deviceRemoval: 'delete'`. */
|
|
14647
14672
|
deleteDevice: require_sleep.method(zod.z.object({
|
|
14648
14673
|
deviceId: zod.z.number().int(),
|
|
@@ -43434,9 +43459,13 @@ var NcSystemEventKindSchema = zod.z.enum([
|
|
|
43434
43459
|
"node-updating",
|
|
43435
43460
|
"node-inference-unavailable",
|
|
43436
43461
|
"detection-blind",
|
|
43462
|
+
"motion-noisy",
|
|
43463
|
+
"motion-calm",
|
|
43437
43464
|
"recording-stalled",
|
|
43438
43465
|
"recording-healthy",
|
|
43439
43466
|
"recording-degraded",
|
|
43467
|
+
"device-attention-required",
|
|
43468
|
+
"device-attention-resolved",
|
|
43440
43469
|
"storage-location-low",
|
|
43441
43470
|
"storage-location-critical",
|
|
43442
43471
|
"storage-location-ok",
|
|
@@ -45073,6 +45102,14 @@ var NC_CONDITION_CATALOG = [
|
|
|
45073
45102
|
value: "detection-blind",
|
|
45074
45103
|
label: "Camera detecting nothing"
|
|
45075
45104
|
},
|
|
45105
|
+
{
|
|
45106
|
+
value: "motion-noisy",
|
|
45107
|
+
label: "Camera motion constant, no subject"
|
|
45108
|
+
},
|
|
45109
|
+
{
|
|
45110
|
+
value: "motion-calm",
|
|
45111
|
+
label: "Camera motion calm again"
|
|
45112
|
+
},
|
|
45076
45113
|
{
|
|
45077
45114
|
value: "recording-stalled",
|
|
45078
45115
|
label: "Recording stalled"
|
|
@@ -45085,6 +45122,14 @@ var NC_CONDITION_CATALOG = [
|
|
|
45085
45122
|
value: "recording-degraded",
|
|
45086
45123
|
label: "Recording degraded (restart storm)"
|
|
45087
45124
|
},
|
|
45125
|
+
{
|
|
45126
|
+
value: "device-attention-required",
|
|
45127
|
+
label: "Device needs attention"
|
|
45128
|
+
},
|
|
45129
|
+
{
|
|
45130
|
+
value: "device-attention-resolved",
|
|
45131
|
+
label: "Device attention resolved"
|
|
45132
|
+
},
|
|
45088
45133
|
{
|
|
45089
45134
|
value: "storage-location-low",
|
|
45090
45135
|
label: "Storage location low"
|
|
@@ -61853,6 +61898,16 @@ var DishwasherStatusSchema = zod.z.object({
|
|
|
61853
61898
|
powerState: zod.z.string().nullable(),
|
|
61854
61899
|
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
61855
61900
|
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
61901
|
+
/**
|
|
61902
|
+
* True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
|
|
61903
|
+
* combined care-and-filter reminder raised); false when every such reminder reads clear; null
|
|
61904
|
+
* when none is reported. A cleared reminder is not an unknown one.
|
|
61905
|
+
*/
|
|
61906
|
+
filterCleaningDue: zod.z.boolean().nullable(),
|
|
61907
|
+
/** True while the machine-care (descaling / cleaning-program) reminder is raised; false when clear; null when not reported. */
|
|
61908
|
+
machineCareDue: zod.z.boolean().nullable(),
|
|
61909
|
+
/** Program runs left before the machine-care reminder is due; null when the appliance does not say. */
|
|
61910
|
+
machineCareRemainingRuns: zod.z.number().int().nonnegative().nullable(),
|
|
61856
61911
|
/** Option states: null when the appliance does not expose the option or has not said. */
|
|
61857
61912
|
halfLoad: zod.z.boolean().nullable(),
|
|
61858
61913
|
hygienePlus: zod.z.boolean().nullable(),
|
|
@@ -72887,16 +72942,6 @@ var UpdateUserInputSchema = zod.z.object({
|
|
|
72887
72942
|
allowedDevices: zod.z.record(zod.z.string(), zod.z.union([zod.z.array(zod.z.string()), zod.z.literal("*")])).optional(),
|
|
72888
72943
|
scopes: zod.z.array(TokenScopeSchema).optional()
|
|
72889
72944
|
});
|
|
72890
|
-
var ApiKeySummarySchema = zod.z.object({
|
|
72891
|
-
id: zod.z.string(),
|
|
72892
|
-
label: zod.z.string(),
|
|
72893
|
-
isAdmin: zod.z.boolean().default(false),
|
|
72894
|
-
allowedProviders: zod.z.union([zod.z.array(zod.z.string()), zod.z.literal("*")]).optional(),
|
|
72895
|
-
allowedDevices: zod.z.record(zod.z.string(), zod.z.union([zod.z.array(zod.z.string()), zod.z.literal("*")])).optional(),
|
|
72896
|
-
tokenPrefix: zod.z.string(),
|
|
72897
|
-
createdAt: zod.z.number(),
|
|
72898
|
-
lastUsedAt: zod.z.number().optional()
|
|
72899
|
-
});
|
|
72900
72945
|
var OauthSessionSummarySchema = zod.z.object({
|
|
72901
72946
|
id: zod.z.string(),
|
|
72902
72947
|
userId: zod.z.string(),
|
|
@@ -72918,8 +72963,7 @@ var TotpStatusSchema = zod.z.object({
|
|
|
72918
72963
|
confirmedAt: zod.z.number().nullable()
|
|
72919
72964
|
});
|
|
72920
72965
|
/**
|
|
72921
|
-
* user-management — singleton capability for user accounts
|
|
72922
|
-
* legacy API-key rows.
|
|
72966
|
+
* user-management — singleton capability for user accounts.
|
|
72923
72967
|
*
|
|
72924
72968
|
* v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
|
|
72925
72969
|
* — the subset check on `setUserScopes` is moot
|
|
@@ -72987,12 +73031,6 @@ var userManagementCapability = {
|
|
|
72987
73031
|
kind: "mutation",
|
|
72988
73032
|
access: "view"
|
|
72989
73033
|
}),
|
|
72990
|
-
listApiKeys: require_sleep.method(zod.z.void(), zod.z.array(ApiKeySummarySchema), { auth: "admin" }),
|
|
72991
|
-
revokeApiKey: require_sleep.method(zod.z.object({ id: zod.z.string() }), zod.z.object({ success: zod.z.literal(true) }), {
|
|
72992
|
-
kind: "mutation",
|
|
72993
|
-
auth: "admin",
|
|
72994
|
-
access: "delete"
|
|
72995
|
-
}),
|
|
72996
73034
|
setupTotp: require_sleep.method(zod.z.object({ userId: zod.z.string() }), TotpSetupResultSchema, {
|
|
72997
73035
|
kind: "mutation",
|
|
72998
73036
|
auth: "admin",
|
|
@@ -84597,6 +84635,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
84597
84635
|
addonId: null,
|
|
84598
84636
|
access: "view"
|
|
84599
84637
|
},
|
|
84638
|
+
"records.transact": {
|
|
84639
|
+
capName: "records",
|
|
84640
|
+
capScope: "system",
|
|
84641
|
+
addonId: null,
|
|
84642
|
+
access: "create"
|
|
84643
|
+
},
|
|
84600
84644
|
"sceneMonitor.captureReference": {
|
|
84601
84645
|
capName: "scene-monitor",
|
|
84602
84646
|
capScope: "device",
|
|
@@ -85929,12 +85973,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
85929
85973
|
addonId: null,
|
|
85930
85974
|
access: "view"
|
|
85931
85975
|
},
|
|
85932
|
-
"userManagement.listApiKeys": {
|
|
85933
|
-
capName: "user-management",
|
|
85934
|
-
capScope: "system",
|
|
85935
|
-
addonId: null,
|
|
85936
|
-
access: "view"
|
|
85937
|
-
},
|
|
85938
85976
|
"userManagement.listExternalIdentities": {
|
|
85939
85977
|
capName: "user-management",
|
|
85940
85978
|
capScope: "system",
|
|
@@ -85989,12 +86027,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
85989
86027
|
addonId: null,
|
|
85990
86028
|
access: "create"
|
|
85991
86029
|
},
|
|
85992
|
-
"userManagement.revokeApiKey": {
|
|
85993
|
-
capName: "user-management",
|
|
85994
|
-
capScope: "system",
|
|
85995
|
-
addonId: null,
|
|
85996
|
-
access: "delete"
|
|
85997
|
-
},
|
|
85998
86030
|
"userManagement.revokeOauthSession": {
|
|
85999
86031
|
capName: "user-management",
|
|
86000
86032
|
capScope: "system",
|
|
@@ -94564,8 +94596,6 @@ function createSystemProxy(api) {
|
|
|
94564
94596
|
resetPassword: (input) => dispatch("userManagement", "resetPassword", "mutation", input),
|
|
94565
94597
|
setUserScopes: (input) => dispatch("userManagement", "setUserScopes", "mutation", input),
|
|
94566
94598
|
validateCredentials: (input) => dispatch("userManagement", "validateCredentials", "mutation", input),
|
|
94567
|
-
listApiKeys: (input) => dispatch("userManagement", "listApiKeys", "query", input),
|
|
94568
|
-
revokeApiKey: (input) => dispatch("userManagement", "revokeApiKey", "mutation", input),
|
|
94569
94599
|
setupTotp: (input) => dispatch("userManagement", "setupTotp", "mutation", input),
|
|
94570
94600
|
confirmTotp: (input) => dispatch("userManagement", "confirmTotp", "mutation", input),
|
|
94571
94601
|
disableTotp: (input) => dispatch("userManagement", "disableTotp", "mutation", input),
|
|
@@ -95411,8 +95441,8 @@ var NC_SYSTEM_EVENT_FILTER_KEYS = [
|
|
|
95411
95441
|
*/
|
|
95412
95442
|
function systemEventFilterApplies(kind, filter) {
|
|
95413
95443
|
switch (filter) {
|
|
95414
|
-
case "deviceIds": return kind.startsWith("device-") || kind.startsWith("stream-") || kind === "detection-blind" || kind.startsWith("recording-") || kind === "alarm-triggered";
|
|
95415
|
-
case "deviceTypes": return kind.startsWith("device-") || kind === "detection-blind";
|
|
95444
|
+
case "deviceIds": return kind.startsWith("device-") || kind.startsWith("stream-") || kind === "detection-blind" || kind.startsWith("motion-") || kind.startsWith("recording-") || kind === "alarm-triggered";
|
|
95445
|
+
case "deviceTypes": return kind.startsWith("device-") || kind === "detection-blind" || kind.startsWith("motion-");
|
|
95416
95446
|
case "nodeIds": return kind.startsWith("node-") || kind === "addon-crash-loop" || kind === "addon-update-available" || kind === "addon-updated" || kind === "server-update-available" || kind === "wrapper-update-available" || kind === "server-updated" || kind.startsWith("storage-location-") || kind.startsWith("alert-");
|
|
95417
95447
|
case "packageNames": return kind.endsWith("update-available") || kind === "addon-updated" || kind === "node-updating" || kind === "server-updated";
|
|
95418
95448
|
case "consumableLowPercent": return NC_CONSUMABLE_SYSTEM_EVENT_KINDS.includes(kind);
|
|
@@ -95470,9 +95500,13 @@ var NC_SYSTEM_EVENT_FAMILY = {
|
|
|
95470
95500
|
"stream-online": "device-events",
|
|
95471
95501
|
"stream-offline": "device-events",
|
|
95472
95502
|
"detection-blind": "device-events",
|
|
95503
|
+
"motion-noisy": "device-events",
|
|
95504
|
+
"motion-calm": "device-events",
|
|
95473
95505
|
"recording-stalled": "device-events",
|
|
95474
95506
|
"recording-healthy": "device-events",
|
|
95475
95507
|
"recording-degraded": "device-events",
|
|
95508
|
+
"device-attention-required": "device-events",
|
|
95509
|
+
"device-attention-resolved": "device-events",
|
|
95476
95510
|
"node-online": "system",
|
|
95477
95511
|
"node-offline": "system",
|
|
95478
95512
|
"node-restarting": "system",
|
|
@@ -95573,6 +95607,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
95573
95607
|
label: "Detecting nothing",
|
|
95574
95608
|
kinds: ["detection-blind"]
|
|
95575
95609
|
},
|
|
95610
|
+
{
|
|
95611
|
+
id: "motion-noise",
|
|
95612
|
+
family: "device-events",
|
|
95613
|
+
label: "Motion without a subject",
|
|
95614
|
+
kinds: ["motion-noisy", "motion-calm"]
|
|
95615
|
+
},
|
|
95576
95616
|
{
|
|
95577
95617
|
id: "recording",
|
|
95578
95618
|
family: "device-events",
|
|
@@ -95583,6 +95623,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
95583
95623
|
"recording-degraded"
|
|
95584
95624
|
]
|
|
95585
95625
|
},
|
|
95626
|
+
{
|
|
95627
|
+
id: "device-attention",
|
|
95628
|
+
family: "device-events",
|
|
95629
|
+
label: "Needs attention",
|
|
95630
|
+
kinds: ["device-attention-required", "device-attention-resolved"]
|
|
95631
|
+
},
|
|
95586
95632
|
{
|
|
95587
95633
|
id: "nodes",
|
|
95588
95634
|
family: "system",
|
|
@@ -97416,6 +97462,16 @@ function alertEpisodeKind(severity, phase) {
|
|
|
97416
97462
|
if (severity === "error" && phase === "raised") return "alert-error";
|
|
97417
97463
|
return null;
|
|
97418
97464
|
}
|
|
97465
|
+
/**
|
|
97466
|
+
* The kind of a CRITICAL episode edge about a DEVICE (D911): the alert's source
|
|
97467
|
+
* is `device`, so it is announced in the devices family as
|
|
97468
|
+
* `device-attention-required` / `-resolved` INSTEAD of `alert-critical`. One
|
|
97469
|
+
* alert notifies once, through one family. `null` for any other severity.
|
|
97470
|
+
*/
|
|
97471
|
+
function deviceAttentionKind(severity, phase) {
|
|
97472
|
+
if (severity !== "critical") return null;
|
|
97473
|
+
return phase === "raised" ? "device-attention-required" : "device-attention-resolved";
|
|
97474
|
+
}
|
|
97419
97475
|
function alertEpisodePayload(alert, phase, at) {
|
|
97420
97476
|
const nodeId = alertNodeId(alert);
|
|
97421
97477
|
return {
|
|
@@ -97451,6 +97507,7 @@ var ALERT_EPISODE = [
|
|
|
97451
97507
|
"alert-error",
|
|
97452
97508
|
"alert-critical-resolved"
|
|
97453
97509
|
];
|
|
97510
|
+
var DEVICE_ATTENTION = ["device-attention-required", "device-attention-resolved"];
|
|
97454
97511
|
var UPDATES = [
|
|
97455
97512
|
"addon-update-available",
|
|
97456
97513
|
"server-update-available",
|
|
@@ -97480,9 +97537,12 @@ var DEVICE_EVENTS = [
|
|
|
97480
97537
|
"stream-online",
|
|
97481
97538
|
"stream-offline",
|
|
97482
97539
|
"detection-blind",
|
|
97540
|
+
"motion-noisy",
|
|
97541
|
+
"motion-calm",
|
|
97483
97542
|
"recording-stalled",
|
|
97484
97543
|
"recording-healthy",
|
|
97485
97544
|
"recording-degraded",
|
|
97545
|
+
...DEVICE_ATTENTION,
|
|
97486
97546
|
...ALARM
|
|
97487
97547
|
];
|
|
97488
97548
|
/** Every kind a summary may speak about — the two summarisable families. */
|
|
@@ -98056,7 +98116,36 @@ var NC_TEMPLATE_VARS = [
|
|
|
98056
98116
|
families: ["rule"],
|
|
98057
98117
|
fields: [...RULE_TEXT],
|
|
98058
98118
|
kinds: ["system"],
|
|
98059
|
-
systemEventKinds: [
|
|
98119
|
+
systemEventKinds: [
|
|
98120
|
+
"detection-blind",
|
|
98121
|
+
"motion-noisy",
|
|
98122
|
+
"motion-calm",
|
|
98123
|
+
"recording-stalled"
|
|
98124
|
+
]
|
|
98125
|
+
},
|
|
98126
|
+
{
|
|
98127
|
+
name: "duty",
|
|
98128
|
+
label: "Motion share (%)",
|
|
98129
|
+
example: "55",
|
|
98130
|
+
group: "system",
|
|
98131
|
+
families: ["rule"],
|
|
98132
|
+
fields: [...RULE_TEXT],
|
|
98133
|
+
kinds: ["system"],
|
|
98134
|
+
systemEventKinds: ["motion-noisy", "motion-calm"]
|
|
98135
|
+
},
|
|
98136
|
+
{
|
|
98137
|
+
name: "sessions",
|
|
98138
|
+
label: "Detection sessions",
|
|
98139
|
+
example: "96",
|
|
98140
|
+
group: "system",
|
|
98141
|
+
families: ["rule"],
|
|
98142
|
+
fields: [...RULE_TEXT],
|
|
98143
|
+
kinds: ["system"],
|
|
98144
|
+
systemEventKinds: [
|
|
98145
|
+
"detection-blind",
|
|
98146
|
+
"motion-noisy",
|
|
98147
|
+
"motion-calm"
|
|
98148
|
+
]
|
|
98060
98149
|
},
|
|
98061
98150
|
{
|
|
98062
98151
|
name: "message",
|
|
@@ -98066,7 +98155,11 @@ var NC_TEMPLATE_VARS = [
|
|
|
98066
98155
|
families: ["rule"],
|
|
98067
98156
|
fields: [...RULE_TEXT],
|
|
98068
98157
|
kinds: ["system"],
|
|
98069
|
-
systemEventKinds: [
|
|
98158
|
+
systemEventKinds: [
|
|
98159
|
+
"recording-degraded",
|
|
98160
|
+
...DEVICE_ATTENTION,
|
|
98161
|
+
...ALERT_EPISODE
|
|
98162
|
+
]
|
|
98070
98163
|
},
|
|
98071
98164
|
{
|
|
98072
98165
|
name: "ruleName",
|
|
@@ -98310,7 +98403,11 @@ var NC_TEMPLATE_VARS = [
|
|
|
98310
98403
|
families: ["rule"],
|
|
98311
98404
|
fields: [...RULE_TEXT],
|
|
98312
98405
|
kinds: ["system"],
|
|
98313
|
-
systemEventKinds: [
|
|
98406
|
+
systemEventKinds: [
|
|
98407
|
+
"export-completed",
|
|
98408
|
+
...DEVICE_ATTENTION,
|
|
98409
|
+
...ALERT_EPISODE
|
|
98410
|
+
]
|
|
98314
98411
|
},
|
|
98315
98412
|
{
|
|
98316
98413
|
name: "severity",
|
|
@@ -98330,7 +98427,7 @@ var NC_TEMPLATE_VARS = [
|
|
|
98330
98427
|
families: ["rule"],
|
|
98331
98428
|
fields: [...RULE_TEXT],
|
|
98332
98429
|
kinds: ["system"],
|
|
98333
|
-
systemEventKinds: [...ALERT_EPISODE]
|
|
98430
|
+
systemEventKinds: [...DEVICE_ATTENTION, ...ALERT_EPISODE]
|
|
98334
98431
|
},
|
|
98335
98432
|
{
|
|
98336
98433
|
name: "source",
|
|
@@ -98350,7 +98447,7 @@ var NC_TEMPLATE_VARS = [
|
|
|
98350
98447
|
families: ["rule"],
|
|
98351
98448
|
fields: [...RULE_TEXT],
|
|
98352
98449
|
kinds: ["system"],
|
|
98353
|
-
systemEventKinds: [...ALERT_EPISODE]
|
|
98450
|
+
systemEventKinds: [...DEVICE_ATTENTION, ...ALERT_EPISODE]
|
|
98354
98451
|
},
|
|
98355
98452
|
{
|
|
98356
98453
|
name: "exportId",
|
|
@@ -98565,6 +98662,8 @@ var NC_TEMPLATE_HELD_BACK_SYSTEM_EVENT_KINDS = [
|
|
|
98565
98662
|
"alert-critical",
|
|
98566
98663
|
"alert-error",
|
|
98567
98664
|
"alert-critical-resolved",
|
|
98665
|
+
"device-attention-required",
|
|
98666
|
+
"device-attention-resolved",
|
|
98568
98667
|
"rule-broken",
|
|
98569
98668
|
"rule-repaired"
|
|
98570
98669
|
];
|
|
@@ -98728,6 +98827,15 @@ var NC_SYSTEM_EVENT_CLASS_SPECS = [
|
|
|
98728
98827
|
snapshotLabel: "Tanks low or full now",
|
|
98729
98828
|
snapshotSection: "tanks"
|
|
98730
98829
|
},
|
|
98830
|
+
{
|
|
98831
|
+
id: "motion-noise",
|
|
98832
|
+
family: "device-events",
|
|
98833
|
+
label: "Motion without a subject (constant / calm again)",
|
|
98834
|
+
bad: ["motion-noisy"],
|
|
98835
|
+
recovery: ["motion-calm"],
|
|
98836
|
+
snapshotLabel: "Cameras with constant motion now",
|
|
98837
|
+
snapshotSection: null
|
|
98838
|
+
},
|
|
98731
98839
|
{
|
|
98732
98840
|
id: "recording-health",
|
|
98733
98841
|
family: "device-events",
|
|
@@ -98737,6 +98845,15 @@ var NC_SYSTEM_EVENT_CLASS_SPECS = [
|
|
|
98737
98845
|
snapshotLabel: "Recordings stalled now",
|
|
98738
98846
|
snapshotSection: null
|
|
98739
98847
|
},
|
|
98848
|
+
{
|
|
98849
|
+
id: "device-attention",
|
|
98850
|
+
family: "device-events",
|
|
98851
|
+
label: "Device needs attention (raised / resolved)",
|
|
98852
|
+
bad: ["device-attention-required"],
|
|
98853
|
+
recovery: ["device-attention-resolved"],
|
|
98854
|
+
snapshotLabel: "Devices needing attention now",
|
|
98855
|
+
snapshotSection: null
|
|
98856
|
+
},
|
|
98740
98857
|
{
|
|
98741
98858
|
id: "node-connectivity",
|
|
98742
98859
|
family: "system",
|
|
@@ -104094,8 +104211,6 @@ exports.AlertSourceSchema = AlertSourceSchema;
|
|
|
104094
104211
|
exports.AlertStatusSchema = AlertStatusSchema;
|
|
104095
104212
|
exports.AmbientLightSensorStatusSchema = AmbientLightSensorStatusSchema;
|
|
104096
104213
|
exports.AnalyticsLtsSeriesSchema = AnalyticsLtsSeriesSchema;
|
|
104097
|
-
exports.ApiKeyRecordSchema = ApiKeyRecordSchema;
|
|
104098
|
-
exports.ApiKeySummarySchema = ApiKeySummarySchema;
|
|
104099
104214
|
exports.AppFlowPurposeSchema = AppFlowPurposeSchema;
|
|
104100
104215
|
exports.AppLoginPathSchema = AppLoginPathSchema;
|
|
104101
104216
|
exports.AppPageLangSchema = AppPageLangSchema;
|
|
@@ -105482,6 +105597,7 @@ exports.RecordRetentionSchema = require_sleep.RecordRetentionSchema;
|
|
|
105482
105597
|
exports.RecordSecretRefsSchema = RecordSecretRefsSchema;
|
|
105483
105598
|
exports.RecordSecretUnavailableError = require_sleep.RecordSecretUnavailableError;
|
|
105484
105599
|
exports.RecordTooLargeError = require_sleep.RecordTooLargeError;
|
|
105600
|
+
exports.RecordTransactOpSchema = RecordTransactOpSchema;
|
|
105485
105601
|
exports.RecordTriggerSchema = RecordTriggerSchema;
|
|
105486
105602
|
exports.RecordUniqueViolationError = require_sleep.RecordUniqueViolationError;
|
|
105487
105603
|
exports.RecordViewSchema = RecordViewSchema;
|
|
@@ -105751,6 +105867,7 @@ exports.StorageReadChunkInputSchema = ReadChunkInputSchema;
|
|
|
105751
105867
|
exports.StorageTableSchema = StorageTableSchema;
|
|
105752
105868
|
exports.StorageTestLocationResultSchema = TestLocationResultSchema;
|
|
105753
105869
|
exports.StorageWriteChunkInputSchema = WriteChunkInputSchema;
|
|
105870
|
+
exports.StoredRecordKindDeclarationSchema = require_sleep.StoredRecordKindDeclarationSchema;
|
|
105754
105871
|
exports.StreamCodecSchema = StreamCodecSchema;
|
|
105755
105872
|
exports.StreamFormatSchema = StreamFormatSchema;
|
|
105756
105873
|
exports.StreamNetworkStatsSchema = StreamNetworkStatsSchema;
|
|
@@ -105857,6 +105974,7 @@ exports.TrainingResultFileSchema = TrainingResultFileSchema;
|
|
|
105857
105974
|
exports.TrainingResultSchema = TrainingResultSchema;
|
|
105858
105975
|
exports.TrainingSplitPlanSchema = TrainingSplitPlanSchema;
|
|
105859
105976
|
exports.TrainingStageSchema = TrainingStageSchema;
|
|
105977
|
+
exports.TransactRefusedError = require_sleep.TransactRefusedError;
|
|
105860
105978
|
exports.TransportPlaneCountsSchema = TransportPlaneCountsSchema;
|
|
105861
105979
|
exports.TransportPlaneSchema = TransportPlaneSchema;
|
|
105862
105980
|
exports.TurnServerSchema = TurnServerSchema;
|
|
@@ -105991,6 +106109,7 @@ exports.asNumber = require_sleep.asNumber;
|
|
|
105991
106109
|
exports.asRecordsError = require_sleep.asRecordsError;
|
|
105992
106110
|
exports.asString = require_sleep.asString;
|
|
105993
106111
|
exports.assertTimelapseCadences = assertTimelapseCadences;
|
|
106112
|
+
exports.assertTransactScope = require_sleep.assertTransactScope;
|
|
105994
106113
|
exports.assertValidDeclaration = require_sleep.assertValidDeclaration;
|
|
105995
106114
|
exports.assignNodeColorId = require_node_color.assignNodeColorId;
|
|
105996
106115
|
exports.audioAnalysisCapability = audioAnalysisCapability;
|
|
@@ -106188,6 +106307,7 @@ exports.detectAccessRole = detectAccessRole;
|
|
|
106188
106307
|
exports.detectionPipelineCapability = detectionPipelineCapability;
|
|
106189
106308
|
exports.deviceAdminLinkCapability = deviceAdminLinkCapability;
|
|
106190
106309
|
exports.deviceAdoptionCapability = deviceAdoptionCapability;
|
|
106310
|
+
exports.deviceAttentionKind = deviceAttentionKind;
|
|
106191
106311
|
exports.deviceBackendToFormat = deviceBackendToFormat;
|
|
106192
106312
|
exports.deviceCredentialsCapability = deviceCredentialsCapability;
|
|
106193
106313
|
exports.deviceCustomAction = require_sleep.deviceCustomAction;
|