@camstack/addon-export-hap 1.2.173 → 1.2.175

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.
@@ -49,7 +49,7 @@ let node_fs_promises = require("node:fs/promises");
49
49
  node_fs_promises = __toESM(node_fs_promises, 1);
50
50
  let node_events = require("node:events");
51
51
  let node_dgram = require("node:dgram");
52
- //#region ../types/dist/event-category-7pZEBmVg.mjs
52
+ //#region ../types/dist/event-category-BfJwUd2S.mjs
53
53
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
54
54
  EventCategory["SystemBoot"] = "system.boot";
55
55
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -366,6 +366,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
366
366
  */
367
367
  EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
368
368
  /**
369
+ * A camera's motion source has fired constantly with no subject for an hour
370
+ * (motion duty or session count over the bar, zero detections) — it is not
371
+ * blind, its motion zones or sensitivity want tuning (D907). Paired with
372
+ * {@link PipelineMotionCalm}.
373
+ */
374
+ EventCategory["PipelineMotionNoisy"] = "pipeline.motion-noisy";
375
+ /** The recovery edge of {@link PipelineMotionNoisy}: the motion fell back, or a detection arrived. */
376
+ EventCategory["PipelineMotionCalm"] = "pipeline.motion-calm";
377
+ /**
369
378
  * Per-camera pipeline config was mutated by the orchestrator
370
379
  * (3-level settings change via `setAgentAddonDefaults` /
371
380
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -5472,7 +5481,7 @@ var ZodIssueCode = {
5472
5481
  var ZodFirstPartyTypeKind;
5473
5482
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5474
5483
  //#endregion
5475
- //#region ../types/dist/sleep-CueztlR1.mjs
5484
+ //#region ../types/dist/sleep-DJFUfKvA.mjs
5476
5485
  /**
5477
5486
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5478
5487
  * window to float samples (D455).
@@ -7934,7 +7943,7 @@ var EntryDescriptorSchema = object({
7934
7943
  /** JSON Schema of the entry body; `secret: true` marks a password field. */
7935
7944
  fields: record(string(), unknown())
7936
7945
  }).strict();
7937
- /** What crosses the wire and sits in the engine's catalog: JSON only, no Zod. */
7946
+ /** What crosses the wire from an addon: JSON only, no Zod. An unknown key is refused. */
7938
7947
  var RecordKindDeclarationSchema = object({
7939
7948
  database: _enum(RECORD_DATABASES).default("settings"),
7940
7949
  class: _enum(RECORD_CLASSES),
@@ -7953,14 +7962,6 @@ var RecordKindDeclarationSchema = object({
7953
7962
  secretPaths: array(string().min(1)).default([]),
7954
7963
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
7955
7964
  secretArrayKeys: record(string(), string()).default({}),
7956
- /**
7957
- * RETIRED (D900): the legacy table a kind adopted from during the records
7958
- * migration. Nothing declares it any more and nothing reads it; the schema
7959
- * still ACCEPTS it because the catalog rows the migration wrote carry it
7960
- * (an orphaned kind is never redeclared) and an addon built before the
7961
- * removal still sends it. Never set it.
7962
- */
7963
- adoptsFrom: string().min(1).optional(),
7964
7965
  /** Kinds that must agree through `transact` sit in one file under one family name. */
7965
7966
  transactFamily: string().min(1).optional(),
7966
7967
  entry: EntryDescriptorSchema.optional()
@@ -13512,17 +13513,6 @@ object({
13512
13513
  createdAt: number(),
13513
13514
  updatedAt: number()
13514
13515
  });
13515
- object({
13516
- id: string(),
13517
- label: string(),
13518
- isAdmin: boolean().default(false),
13519
- allowedProviders: AllowedProviderSchema,
13520
- allowedDevices: AllowedDevicesSchema,
13521
- tokenHash: string(),
13522
- tokenPrefix: string(),
13523
- createdAt: number(),
13524
- lastUsedAt: number().optional()
13525
- });
13526
13516
  object({
13527
13517
  id: string(),
13528
13518
  userId: string(),
@@ -17398,16 +17388,36 @@ var RecordKindStateSchema = _enum([
17398
17388
  var DeclareKindResultSchema = object({
17399
17389
  kindId: number().int(),
17400
17390
  state: RecordKindStateSchema,
17401
- createdIndexes: array(string()),
17402
- /**
17403
- * RETIRED (D900): always `null`. It carried the records-migration boot guard;
17404
- * it stays on the wire, null, because an addon built before the removal reads
17405
- * an ABSENT field as "adoption pending" and refuses to start.
17406
- */
17407
- adoptionPending: _null()
17391
+ createdIndexes: array(string())
17408
17392
  });
17409
17393
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
17410
17394
  var SecretRefsList = array(string());
17395
+ /**
17396
+ * One op of a `transact`: the single-row writes, each on a kind of the caller.
17397
+ * All ops of one call share ONE database file and ONE `transactFamily`.
17398
+ */
17399
+ var RecordTransactOpSchema = discriminatedUnion("op", [
17400
+ object({
17401
+ op: literal("put"),
17402
+ kind: RecordKindNameSchema,
17403
+ record: RecordInputSchema,
17404
+ ifRev: number().int().min(0).optional()
17405
+ }),
17406
+ object({
17407
+ op: literal("patch"),
17408
+ kind: RecordKindNameSchema,
17409
+ id: RecordIdSchema,
17410
+ data: RecordBodySchema,
17411
+ at: number().int().nullable().optional(),
17412
+ expiresAt: number().int().nullable().optional(),
17413
+ ifRev: number().int().min(1).optional()
17414
+ }),
17415
+ object({
17416
+ op: literal("delete"),
17417
+ kind: RecordKindNameSchema,
17418
+ id: RecordIdSchema
17419
+ })
17420
+ ]);
17411
17421
  var RecordSecretRefsSchema = record(string(), record(string(), string()));
17412
17422
  method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema) }), object({ kinds: record(string(), DeclareKindResultSchema) }), {
17413
17423
  kind: "mutation",
@@ -17514,6 +17524,16 @@ method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema)
17514
17524
  }), {
17515
17525
  kind: "mutation",
17516
17526
  auth: "admin"
17527
+ }), method(object({ ops: array(RecordTransactOpSchema).min(1).max(RECORD_BATCH_MAX) }), object({
17528
+ results: array(object({
17529
+ rev: number().int().nullable(),
17530
+ deleted: boolean()
17531
+ })),
17532
+ releasedRefs: SecretRefsList,
17533
+ secretRefs: SecretRefsList
17534
+ }), {
17535
+ kind: "mutation",
17536
+ auth: "admin"
17517
17537
  }), method(object({
17518
17538
  deviceId: number().int(),
17519
17539
  kinds: array(RecordKindNameSchema).optional()
@@ -42953,9 +42973,13 @@ var NcSystemEventKindSchema = _enum([
42953
42973
  "node-updating",
42954
42974
  "node-inference-unavailable",
42955
42975
  "detection-blind",
42976
+ "motion-noisy",
42977
+ "motion-calm",
42956
42978
  "recording-stalled",
42957
42979
  "recording-healthy",
42958
42980
  "recording-degraded",
42981
+ "device-attention-required",
42982
+ "device-attention-resolved",
42959
42983
  "storage-location-low",
42960
42984
  "storage-location-critical",
42961
42985
  "storage-location-ok",
@@ -48516,7 +48540,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
48516
48540
  modelId: string()
48517
48541
  }),
48518
48542
  object({ kind: literal("cpu-device") }),
48519
- object({ kind: literal("coral-untouched") }),
48520
48543
  object({ kind: literal("device-disabled") }),
48521
48544
  object({ kind: literal("device-unavailable") }),
48522
48545
  object({ kind: literal("node-offline") }),
@@ -48614,11 +48637,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
48614
48637
  kind: literal("detector-store-unreadable"),
48615
48638
  error: string()
48616
48639
  }),
48617
- object({
48618
- kind: literal("coral-enabled"),
48619
- nodeId: string(),
48620
- deviceKey: string()
48621
- }),
48622
48640
  object({
48623
48641
  kind: literal("custom-pin-kept"),
48624
48642
  nodeId: string(),
@@ -55625,6 +55643,16 @@ object({
55625
55643
  powerState: string().nullable(),
55626
55644
  saltLevel: DishwasherConsumableLevelSchema.nullable(),
55627
55645
  rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
55646
+ /**
55647
+ * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
55648
+ * combined care-and-filter reminder raised); false when every such reminder reads clear; null
55649
+ * when none is reported. A cleared reminder is not an unknown one.
55650
+ */
55651
+ filterCleaningDue: boolean().nullable(),
55652
+ /** True while the machine-care (descaling / cleaning-program) reminder is raised; false when clear; null when not reported. */
55653
+ machineCareDue: boolean().nullable(),
55654
+ /** Program runs left before the machine-care reminder is due; null when the appliance does not say. */
55655
+ machineCareRemainingRuns: number().int().nonnegative().nullable(),
55628
55656
  /** Option states: null when the appliance does not expose the option or has not said. */
55629
55657
  halfLoad: boolean().nullable(),
55630
55658
  hygienePlus: boolean().nullable(),
@@ -62283,16 +62311,6 @@ var UpdateUserInputSchema = object({
62283
62311
  allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
62284
62312
  scopes: array(TokenScopeSchema).optional()
62285
62313
  });
62286
- var ApiKeySummarySchema = object({
62287
- id: string(),
62288
- label: string(),
62289
- isAdmin: boolean().default(false),
62290
- allowedProviders: union([array(string()), literal("*")]).optional(),
62291
- allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
62292
- tokenPrefix: string(),
62293
- createdAt: number(),
62294
- lastUsedAt: number().optional()
62295
- });
62296
62314
  var OauthSessionSummarySchema = object({
62297
62315
  id: string(),
62298
62316
  userId: string(),
@@ -62314,8 +62332,7 @@ var TotpStatusSchema = object({
62314
62332
  confirmedAt: number().nullable()
62315
62333
  });
62316
62334
  /**
62317
- * user-management — singleton capability for user accounts and the
62318
- * legacy API-key rows.
62335
+ * user-management — singleton capability for user accounts.
62319
62336
  *
62320
62337
  * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
62321
62338
  * — the subset check on `setUserScopes` is moot
@@ -62371,10 +62388,6 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
62371
62388
  }), UserSummarySchema.extend({ passwordHash: string() }).nullable(), {
62372
62389
  kind: "mutation",
62373
62390
  access: "view"
62374
- }), method(_void(), array(ApiKeySummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: literal(true) }), {
62375
- kind: "mutation",
62376
- auth: "admin",
62377
- access: "delete"
62378
62391
  }), method(object({ userId: string() }), TotpSetupResultSchema, {
62379
62392
  kind: "mutation",
62380
62393
  auth: "admin",
@@ -69887,6 +69900,12 @@ Object.freeze({
69887
69900
  addonId: null,
69888
69901
  access: "view"
69889
69902
  },
69903
+ "records.transact": {
69904
+ capName: "records",
69905
+ capScope: "system",
69906
+ addonId: null,
69907
+ access: "create"
69908
+ },
69890
69909
  "sceneMonitor.captureReference": {
69891
69910
  capName: "scene-monitor",
69892
69911
  capScope: "device",
@@ -71219,12 +71238,6 @@ Object.freeze({
71219
71238
  addonId: null,
71220
71239
  access: "view"
71221
71240
  },
71222
- "userManagement.listApiKeys": {
71223
- capName: "user-management",
71224
- capScope: "system",
71225
- addonId: null,
71226
- access: "view"
71227
- },
71228
71241
  "userManagement.listExternalIdentities": {
71229
71242
  capName: "user-management",
71230
71243
  capScope: "system",
@@ -71279,12 +71292,6 @@ Object.freeze({
71279
71292
  addonId: null,
71280
71293
  access: "create"
71281
71294
  },
71282
- "userManagement.revokeApiKey": {
71283
- capName: "user-management",
71284
- capScope: "system",
71285
- addonId: null,
71286
- access: "delete"
71287
- },
71288
71295
  "userManagement.revokeOauthSession": {
71289
71296
  capName: "user-management",
71290
71297
  capScope: "system",
@@ -74649,9 +74656,13 @@ new Map(Object.entries({
74649
74656
  "stream-online": "device-events",
74650
74657
  "stream-offline": "device-events",
74651
74658
  "detection-blind": "device-events",
74659
+ "motion-noisy": "device-events",
74660
+ "motion-calm": "device-events",
74652
74661
  "recording-stalled": "device-events",
74653
74662
  "recording-healthy": "device-events",
74654
74663
  "recording-degraded": "device-events",
74664
+ "device-attention-required": "device-events",
74665
+ "device-attention-resolved": "device-events",
74655
74666
  "node-online": "system",
74656
74667
  "node-offline": "system",
74657
74668
  "node-restarting": "system",
@@ -74734,6 +74745,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
74734
74745
  label: "Detecting nothing",
74735
74746
  kinds: ["detection-blind"]
74736
74747
  },
74748
+ {
74749
+ id: "motion-noise",
74750
+ family: "device-events",
74751
+ label: "Motion without a subject",
74752
+ kinds: ["motion-noisy", "motion-calm"]
74753
+ },
74737
74754
  {
74738
74755
  id: "recording",
74739
74756
  family: "device-events",
@@ -74744,6 +74761,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
74744
74761
  "recording-degraded"
74745
74762
  ]
74746
74763
  },
74764
+ {
74765
+ id: "device-attention",
74766
+ family: "device-events",
74767
+ label: "Needs attention",
74768
+ kinds: ["device-attention-required", "device-attention-resolved"]
74769
+ },
74747
74770
  {
74748
74771
  id: "nodes",
74749
74772
  family: "system",
@@ -74883,6 +74906,7 @@ var ALERT_EPISODE = [
74883
74906
  "alert-error",
74884
74907
  "alert-critical-resolved"
74885
74908
  ];
74909
+ var DEVICE_ATTENTION = ["device-attention-required", "device-attention-resolved"];
74886
74910
  var UPDATES = [
74887
74911
  "addon-update-available",
74888
74912
  "server-update-available",
@@ -74912,9 +74936,12 @@ var DEVICE_EVENTS = [
74912
74936
  "stream-online",
74913
74937
  "stream-offline",
74914
74938
  "detection-blind",
74939
+ "motion-noisy",
74940
+ "motion-calm",
74915
74941
  "recording-stalled",
74916
74942
  "recording-healthy",
74917
74943
  "recording-degraded",
74944
+ ...DEVICE_ATTENTION,
74918
74945
  ...ALARM
74919
74946
  ];
74920
74947
  /** Every kind a summary may speak about — the two summarisable families. */
@@ -75082,7 +75109,9 @@ var STATE_SUMMARY_VARS = [
75082
75109
  [...RULE_TEXT],
75083
75110
  [...RULE_TEXT],
75084
75111
  [...RULE_TEXT],
75085
- ([...RULE_TEXT], [...ALERT_EPISODE]),
75112
+ [...RULE_TEXT],
75113
+ [...RULE_TEXT],
75114
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
75086
75115
  [...RULE_TEXT],
75087
75116
  [...RULE_TEXT],
75088
75117
  [...RULE_TEXT],
@@ -75104,11 +75133,11 @@ var STATE_SUMMARY_VARS = [
75104
75133
  [...RULE_TEXT],
75105
75134
  [...RULE_TEXT],
75106
75135
  [...RULE_TEXT],
75136
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
75107
75137
  ([...RULE_TEXT], [...ALERT_EPISODE]),
75138
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
75108
75139
  ([...RULE_TEXT], [...ALERT_EPISODE]),
75109
- ([...RULE_TEXT], [...ALERT_EPISODE]),
75110
- ([...RULE_TEXT], [...ALERT_EPISODE]),
75111
- ([...RULE_TEXT], [...ALERT_EPISODE]),
75140
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
75112
75141
  [...RULE_TEXT],
75113
75142
  [...RULE_TEXT],
75114
75143
  [...RULE_TEXT],
@@ -75184,6 +75213,15 @@ new Map([
75184
75213
  snapshotLabel: "Tanks low or full now",
75185
75214
  snapshotSection: "tanks"
75186
75215
  },
75216
+ {
75217
+ id: "motion-noise",
75218
+ family: "device-events",
75219
+ label: "Motion without a subject (constant / calm again)",
75220
+ bad: ["motion-noisy"],
75221
+ recovery: ["motion-calm"],
75222
+ snapshotLabel: "Cameras with constant motion now",
75223
+ snapshotSection: null
75224
+ },
75187
75225
  {
75188
75226
  id: "recording-health",
75189
75227
  family: "device-events",
@@ -75193,6 +75231,15 @@ new Map([
75193
75231
  snapshotLabel: "Recordings stalled now",
75194
75232
  snapshotSection: null
75195
75233
  },
75234
+ {
75235
+ id: "device-attention",
75236
+ family: "device-events",
75237
+ label: "Device needs attention (raised / resolved)",
75238
+ bad: ["device-attention-required"],
75239
+ recovery: ["device-attention-resolved"],
75240
+ snapshotLabel: "Devices needing attention now",
75241
+ snapshotSection: null
75242
+ },
75196
75243
  {
75197
75244
  id: "node-connectivity",
75198
75245
  family: "system",
@@ -39,7 +39,7 @@ var __copyProps = (to, from, except, desc) => {
39
39
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
40
40
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
41
41
  //#endregion
42
- //#region ../types/dist/event-category-7pZEBmVg.mjs
42
+ //#region ../types/dist/event-category-BfJwUd2S.mjs
43
43
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
44
44
  EventCategory["SystemBoot"] = "system.boot";
45
45
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -356,6 +356,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
356
356
  */
357
357
  EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
358
358
  /**
359
+ * A camera's motion source has fired constantly with no subject for an hour
360
+ * (motion duty or session count over the bar, zero detections) — it is not
361
+ * blind, its motion zones or sensitivity want tuning (D907). Paired with
362
+ * {@link PipelineMotionCalm}.
363
+ */
364
+ EventCategory["PipelineMotionNoisy"] = "pipeline.motion-noisy";
365
+ /** The recovery edge of {@link PipelineMotionNoisy}: the motion fell back, or a detection arrived. */
366
+ EventCategory["PipelineMotionCalm"] = "pipeline.motion-calm";
367
+ /**
359
368
  * Per-camera pipeline config was mutated by the orchestrator
360
369
  * (3-level settings change via `setAgentAddonDefaults` /
361
370
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -5462,7 +5471,7 @@ var ZodIssueCode = {
5462
5471
  var ZodFirstPartyTypeKind;
5463
5472
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5464
5473
  //#endregion
5465
- //#region ../types/dist/sleep-CueztlR1.mjs
5474
+ //#region ../types/dist/sleep-DJFUfKvA.mjs
5466
5475
  /**
5467
5476
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5468
5477
  * window to float samples (D455).
@@ -7924,7 +7933,7 @@ var EntryDescriptorSchema = object({
7924
7933
  /** JSON Schema of the entry body; `secret: true` marks a password field. */
7925
7934
  fields: record(string(), unknown())
7926
7935
  }).strict();
7927
- /** What crosses the wire and sits in the engine's catalog: JSON only, no Zod. */
7936
+ /** What crosses the wire from an addon: JSON only, no Zod. An unknown key is refused. */
7928
7937
  var RecordKindDeclarationSchema = object({
7929
7938
  database: _enum(RECORD_DATABASES).default("settings"),
7930
7939
  class: _enum(RECORD_CLASSES),
@@ -7943,14 +7952,6 @@ var RecordKindDeclarationSchema = object({
7943
7952
  secretPaths: array(string().min(1)).default([]),
7944
7953
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
7945
7954
  secretArrayKeys: record(string(), string()).default({}),
7946
- /**
7947
- * RETIRED (D900): the legacy table a kind adopted from during the records
7948
- * migration. Nothing declares it any more and nothing reads it; the schema
7949
- * still ACCEPTS it because the catalog rows the migration wrote carry it
7950
- * (an orphaned kind is never redeclared) and an addon built before the
7951
- * removal still sends it. Never set it.
7952
- */
7953
- adoptsFrom: string().min(1).optional(),
7954
7955
  /** Kinds that must agree through `transact` sit in one file under one family name. */
7955
7956
  transactFamily: string().min(1).optional(),
7956
7957
  entry: EntryDescriptorSchema.optional()
@@ -13502,17 +13503,6 @@ object({
13502
13503
  createdAt: number(),
13503
13504
  updatedAt: number()
13504
13505
  });
13505
- object({
13506
- id: string(),
13507
- label: string(),
13508
- isAdmin: boolean().default(false),
13509
- allowedProviders: AllowedProviderSchema,
13510
- allowedDevices: AllowedDevicesSchema,
13511
- tokenHash: string(),
13512
- tokenPrefix: string(),
13513
- createdAt: number(),
13514
- lastUsedAt: number().optional()
13515
- });
13516
13506
  object({
13517
13507
  id: string(),
13518
13508
  userId: string(),
@@ -17388,16 +17378,36 @@ var RecordKindStateSchema = _enum([
17388
17378
  var DeclareKindResultSchema = object({
17389
17379
  kindId: number().int(),
17390
17380
  state: RecordKindStateSchema,
17391
- createdIndexes: array(string()),
17392
- /**
17393
- * RETIRED (D900): always `null`. It carried the records-migration boot guard;
17394
- * it stays on the wire, null, because an addon built before the removal reads
17395
- * an ABSENT field as "adoption pending" and refuses to start.
17396
- */
17397
- adoptionPending: _null()
17381
+ createdIndexes: array(string())
17398
17382
  });
17399
17383
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
17400
17384
  var SecretRefsList = array(string());
17385
+ /**
17386
+ * One op of a `transact`: the single-row writes, each on a kind of the caller.
17387
+ * All ops of one call share ONE database file and ONE `transactFamily`.
17388
+ */
17389
+ var RecordTransactOpSchema = discriminatedUnion("op", [
17390
+ object({
17391
+ op: literal("put"),
17392
+ kind: RecordKindNameSchema,
17393
+ record: RecordInputSchema,
17394
+ ifRev: number().int().min(0).optional()
17395
+ }),
17396
+ object({
17397
+ op: literal("patch"),
17398
+ kind: RecordKindNameSchema,
17399
+ id: RecordIdSchema,
17400
+ data: RecordBodySchema,
17401
+ at: number().int().nullable().optional(),
17402
+ expiresAt: number().int().nullable().optional(),
17403
+ ifRev: number().int().min(1).optional()
17404
+ }),
17405
+ object({
17406
+ op: literal("delete"),
17407
+ kind: RecordKindNameSchema,
17408
+ id: RecordIdSchema
17409
+ })
17410
+ ]);
17401
17411
  var RecordSecretRefsSchema = record(string(), record(string(), string()));
17402
17412
  method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema) }), object({ kinds: record(string(), DeclareKindResultSchema) }), {
17403
17413
  kind: "mutation",
@@ -17504,6 +17514,16 @@ method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema)
17504
17514
  }), {
17505
17515
  kind: "mutation",
17506
17516
  auth: "admin"
17517
+ }), method(object({ ops: array(RecordTransactOpSchema).min(1).max(RECORD_BATCH_MAX) }), object({
17518
+ results: array(object({
17519
+ rev: number().int().nullable(),
17520
+ deleted: boolean()
17521
+ })),
17522
+ releasedRefs: SecretRefsList,
17523
+ secretRefs: SecretRefsList
17524
+ }), {
17525
+ kind: "mutation",
17526
+ auth: "admin"
17507
17527
  }), method(object({
17508
17528
  deviceId: number().int(),
17509
17529
  kinds: array(RecordKindNameSchema).optional()
@@ -42943,9 +42963,13 @@ var NcSystemEventKindSchema = _enum([
42943
42963
  "node-updating",
42944
42964
  "node-inference-unavailable",
42945
42965
  "detection-blind",
42966
+ "motion-noisy",
42967
+ "motion-calm",
42946
42968
  "recording-stalled",
42947
42969
  "recording-healthy",
42948
42970
  "recording-degraded",
42971
+ "device-attention-required",
42972
+ "device-attention-resolved",
42949
42973
  "storage-location-low",
42950
42974
  "storage-location-critical",
42951
42975
  "storage-location-ok",
@@ -48506,7 +48530,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
48506
48530
  modelId: string()
48507
48531
  }),
48508
48532
  object({ kind: literal("cpu-device") }),
48509
- object({ kind: literal("coral-untouched") }),
48510
48533
  object({ kind: literal("device-disabled") }),
48511
48534
  object({ kind: literal("device-unavailable") }),
48512
48535
  object({ kind: literal("node-offline") }),
@@ -48604,11 +48627,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
48604
48627
  kind: literal("detector-store-unreadable"),
48605
48628
  error: string()
48606
48629
  }),
48607
- object({
48608
- kind: literal("coral-enabled"),
48609
- nodeId: string(),
48610
- deviceKey: string()
48611
- }),
48612
48630
  object({
48613
48631
  kind: literal("custom-pin-kept"),
48614
48632
  nodeId: string(),
@@ -55615,6 +55633,16 @@ object({
55615
55633
  powerState: string().nullable(),
55616
55634
  saltLevel: DishwasherConsumableLevelSchema.nullable(),
55617
55635
  rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
55636
+ /**
55637
+ * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
55638
+ * combined care-and-filter reminder raised); false when every such reminder reads clear; null
55639
+ * when none is reported. A cleared reminder is not an unknown one.
55640
+ */
55641
+ filterCleaningDue: boolean().nullable(),
55642
+ /** True while the machine-care (descaling / cleaning-program) reminder is raised; false when clear; null when not reported. */
55643
+ machineCareDue: boolean().nullable(),
55644
+ /** Program runs left before the machine-care reminder is due; null when the appliance does not say. */
55645
+ machineCareRemainingRuns: number().int().nonnegative().nullable(),
55618
55646
  /** Option states: null when the appliance does not expose the option or has not said. */
55619
55647
  halfLoad: boolean().nullable(),
55620
55648
  hygienePlus: boolean().nullable(),
@@ -62273,16 +62301,6 @@ var UpdateUserInputSchema = object({
62273
62301
  allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
62274
62302
  scopes: array(TokenScopeSchema).optional()
62275
62303
  });
62276
- var ApiKeySummarySchema = object({
62277
- id: string(),
62278
- label: string(),
62279
- isAdmin: boolean().default(false),
62280
- allowedProviders: union([array(string()), literal("*")]).optional(),
62281
- allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
62282
- tokenPrefix: string(),
62283
- createdAt: number(),
62284
- lastUsedAt: number().optional()
62285
- });
62286
62304
  var OauthSessionSummarySchema = object({
62287
62305
  id: string(),
62288
62306
  userId: string(),
@@ -62304,8 +62322,7 @@ var TotpStatusSchema = object({
62304
62322
  confirmedAt: number().nullable()
62305
62323
  });
62306
62324
  /**
62307
- * user-management — singleton capability for user accounts and the
62308
- * legacy API-key rows.
62325
+ * user-management — singleton capability for user accounts.
62309
62326
  *
62310
62327
  * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
62311
62328
  * — the subset check on `setUserScopes` is moot
@@ -62361,10 +62378,6 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
62361
62378
  }), UserSummarySchema.extend({ passwordHash: string() }).nullable(), {
62362
62379
  kind: "mutation",
62363
62380
  access: "view"
62364
- }), method(_void(), array(ApiKeySummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: literal(true) }), {
62365
- kind: "mutation",
62366
- auth: "admin",
62367
- access: "delete"
62368
62381
  }), method(object({ userId: string() }), TotpSetupResultSchema, {
62369
62382
  kind: "mutation",
62370
62383
  auth: "admin",
@@ -69877,6 +69890,12 @@ Object.freeze({
69877
69890
  addonId: null,
69878
69891
  access: "view"
69879
69892
  },
69893
+ "records.transact": {
69894
+ capName: "records",
69895
+ capScope: "system",
69896
+ addonId: null,
69897
+ access: "create"
69898
+ },
69880
69899
  "sceneMonitor.captureReference": {
69881
69900
  capName: "scene-monitor",
69882
69901
  capScope: "device",
@@ -71209,12 +71228,6 @@ Object.freeze({
71209
71228
  addonId: null,
71210
71229
  access: "view"
71211
71230
  },
71212
- "userManagement.listApiKeys": {
71213
- capName: "user-management",
71214
- capScope: "system",
71215
- addonId: null,
71216
- access: "view"
71217
- },
71218
71231
  "userManagement.listExternalIdentities": {
71219
71232
  capName: "user-management",
71220
71233
  capScope: "system",
@@ -71269,12 +71282,6 @@ Object.freeze({
71269
71282
  addonId: null,
71270
71283
  access: "create"
71271
71284
  },
71272
- "userManagement.revokeApiKey": {
71273
- capName: "user-management",
71274
- capScope: "system",
71275
- addonId: null,
71276
- access: "delete"
71277
- },
71278
71285
  "userManagement.revokeOauthSession": {
71279
71286
  capName: "user-management",
71280
71287
  capScope: "system",
@@ -74639,9 +74646,13 @@ new Map(Object.entries({
74639
74646
  "stream-online": "device-events",
74640
74647
  "stream-offline": "device-events",
74641
74648
  "detection-blind": "device-events",
74649
+ "motion-noisy": "device-events",
74650
+ "motion-calm": "device-events",
74642
74651
  "recording-stalled": "device-events",
74643
74652
  "recording-healthy": "device-events",
74644
74653
  "recording-degraded": "device-events",
74654
+ "device-attention-required": "device-events",
74655
+ "device-attention-resolved": "device-events",
74645
74656
  "node-online": "system",
74646
74657
  "node-offline": "system",
74647
74658
  "node-restarting": "system",
@@ -74724,6 +74735,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
74724
74735
  label: "Detecting nothing",
74725
74736
  kinds: ["detection-blind"]
74726
74737
  },
74738
+ {
74739
+ id: "motion-noise",
74740
+ family: "device-events",
74741
+ label: "Motion without a subject",
74742
+ kinds: ["motion-noisy", "motion-calm"]
74743
+ },
74727
74744
  {
74728
74745
  id: "recording",
74729
74746
  family: "device-events",
@@ -74734,6 +74751,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
74734
74751
  "recording-degraded"
74735
74752
  ]
74736
74753
  },
74754
+ {
74755
+ id: "device-attention",
74756
+ family: "device-events",
74757
+ label: "Needs attention",
74758
+ kinds: ["device-attention-required", "device-attention-resolved"]
74759
+ },
74737
74760
  {
74738
74761
  id: "nodes",
74739
74762
  family: "system",
@@ -74873,6 +74896,7 @@ var ALERT_EPISODE = [
74873
74896
  "alert-error",
74874
74897
  "alert-critical-resolved"
74875
74898
  ];
74899
+ var DEVICE_ATTENTION = ["device-attention-required", "device-attention-resolved"];
74876
74900
  var UPDATES = [
74877
74901
  "addon-update-available",
74878
74902
  "server-update-available",
@@ -74902,9 +74926,12 @@ var DEVICE_EVENTS = [
74902
74926
  "stream-online",
74903
74927
  "stream-offline",
74904
74928
  "detection-blind",
74929
+ "motion-noisy",
74930
+ "motion-calm",
74905
74931
  "recording-stalled",
74906
74932
  "recording-healthy",
74907
74933
  "recording-degraded",
74934
+ ...DEVICE_ATTENTION,
74908
74935
  ...ALARM
74909
74936
  ];
74910
74937
  /** Every kind a summary may speak about — the two summarisable families. */
@@ -75072,7 +75099,9 @@ var STATE_SUMMARY_VARS = [
75072
75099
  [...RULE_TEXT],
75073
75100
  [...RULE_TEXT],
75074
75101
  [...RULE_TEXT],
75075
- ([...RULE_TEXT], [...ALERT_EPISODE]),
75102
+ [...RULE_TEXT],
75103
+ [...RULE_TEXT],
75104
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
75076
75105
  [...RULE_TEXT],
75077
75106
  [...RULE_TEXT],
75078
75107
  [...RULE_TEXT],
@@ -75094,11 +75123,11 @@ var STATE_SUMMARY_VARS = [
75094
75123
  [...RULE_TEXT],
75095
75124
  [...RULE_TEXT],
75096
75125
  [...RULE_TEXT],
75126
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
75097
75127
  ([...RULE_TEXT], [...ALERT_EPISODE]),
75128
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
75098
75129
  ([...RULE_TEXT], [...ALERT_EPISODE]),
75099
- ([...RULE_TEXT], [...ALERT_EPISODE]),
75100
- ([...RULE_TEXT], [...ALERT_EPISODE]),
75101
- ([...RULE_TEXT], [...ALERT_EPISODE]),
75130
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
75102
75131
  [...RULE_TEXT],
75103
75132
  [...RULE_TEXT],
75104
75133
  [...RULE_TEXT],
@@ -75174,6 +75203,15 @@ new Map([
75174
75203
  snapshotLabel: "Tanks low or full now",
75175
75204
  snapshotSection: "tanks"
75176
75205
  },
75206
+ {
75207
+ id: "motion-noise",
75208
+ family: "device-events",
75209
+ label: "Motion without a subject (constant / calm again)",
75210
+ bad: ["motion-noisy"],
75211
+ recovery: ["motion-calm"],
75212
+ snapshotLabel: "Cameras with constant motion now",
75213
+ snapshotSection: null
75214
+ },
75177
75215
  {
75178
75216
  id: "recording-health",
75179
75217
  family: "device-events",
@@ -75183,6 +75221,15 @@ new Map([
75183
75221
  snapshotLabel: "Recordings stalled now",
75184
75222
  snapshotSection: null
75185
75223
  },
75224
+ {
75225
+ id: "device-attention",
75226
+ family: "device-events",
75227
+ label: "Device needs attention (raised / resolved)",
75228
+ bad: ["device-attention-required"],
75229
+ recovery: ["device-attention-resolved"],
75230
+ snapshotLabel: "Devices needing attention now",
75231
+ snapshotSection: null
75232
+ },
75186
75233
  {
75187
75234
  id: "node-connectivity",
75188
75235
  family: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-hap",
3
- "version": "1.2.173",
3
+ "version": "1.2.175",
4
4
  "description": "HomeKit (HAP) exporter for CamStack devices. Publishes each exposed device as its own HomeKit accessory: cameras and doorbells with SRTP streaming, HomeKit Secure Video, motion, two-way audio, PTZ and battery; switches, lights, locks and sensors through a capability→service table.",
5
5
  "keywords": [
6
6
  "camstack",