@camstack/addon-export-hap 1.2.173 → 1.2.174

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",
@@ -55625,6 +55649,16 @@ object({
55625
55649
  powerState: string().nullable(),
55626
55650
  saltLevel: DishwasherConsumableLevelSchema.nullable(),
55627
55651
  rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
55652
+ /**
55653
+ * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
55654
+ * combined care-and-filter reminder raised); false when every such reminder reads clear; null
55655
+ * when none is reported. A cleared reminder is not an unknown one.
55656
+ */
55657
+ filterCleaningDue: boolean().nullable(),
55658
+ /** True while the machine-care (descaling / cleaning-program) reminder is raised; false when clear; null when not reported. */
55659
+ machineCareDue: boolean().nullable(),
55660
+ /** Program runs left before the machine-care reminder is due; null when the appliance does not say. */
55661
+ machineCareRemainingRuns: number().int().nonnegative().nullable(),
55628
55662
  /** Option states: null when the appliance does not expose the option or has not said. */
55629
55663
  halfLoad: boolean().nullable(),
55630
55664
  hygienePlus: boolean().nullable(),
@@ -62283,16 +62317,6 @@ var UpdateUserInputSchema = object({
62283
62317
  allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
62284
62318
  scopes: array(TokenScopeSchema).optional()
62285
62319
  });
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
62320
  var OauthSessionSummarySchema = object({
62297
62321
  id: string(),
62298
62322
  userId: string(),
@@ -62314,8 +62338,7 @@ var TotpStatusSchema = object({
62314
62338
  confirmedAt: number().nullable()
62315
62339
  });
62316
62340
  /**
62317
- * user-management — singleton capability for user accounts and the
62318
- * legacy API-key rows.
62341
+ * user-management — singleton capability for user accounts.
62319
62342
  *
62320
62343
  * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
62321
62344
  * — the subset check on `setUserScopes` is moot
@@ -62371,10 +62394,6 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
62371
62394
  }), UserSummarySchema.extend({ passwordHash: string() }).nullable(), {
62372
62395
  kind: "mutation",
62373
62396
  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
62397
  }), method(object({ userId: string() }), TotpSetupResultSchema, {
62379
62398
  kind: "mutation",
62380
62399
  auth: "admin",
@@ -69887,6 +69906,12 @@ Object.freeze({
69887
69906
  addonId: null,
69888
69907
  access: "view"
69889
69908
  },
69909
+ "records.transact": {
69910
+ capName: "records",
69911
+ capScope: "system",
69912
+ addonId: null,
69913
+ access: "create"
69914
+ },
69890
69915
  "sceneMonitor.captureReference": {
69891
69916
  capName: "scene-monitor",
69892
69917
  capScope: "device",
@@ -71219,12 +71244,6 @@ Object.freeze({
71219
71244
  addonId: null,
71220
71245
  access: "view"
71221
71246
  },
71222
- "userManagement.listApiKeys": {
71223
- capName: "user-management",
71224
- capScope: "system",
71225
- addonId: null,
71226
- access: "view"
71227
- },
71228
71247
  "userManagement.listExternalIdentities": {
71229
71248
  capName: "user-management",
71230
71249
  capScope: "system",
@@ -71279,12 +71298,6 @@ Object.freeze({
71279
71298
  addonId: null,
71280
71299
  access: "create"
71281
71300
  },
71282
- "userManagement.revokeApiKey": {
71283
- capName: "user-management",
71284
- capScope: "system",
71285
- addonId: null,
71286
- access: "delete"
71287
- },
71288
71301
  "userManagement.revokeOauthSession": {
71289
71302
  capName: "user-management",
71290
71303
  capScope: "system",
@@ -74649,9 +74662,13 @@ new Map(Object.entries({
74649
74662
  "stream-online": "device-events",
74650
74663
  "stream-offline": "device-events",
74651
74664
  "detection-blind": "device-events",
74665
+ "motion-noisy": "device-events",
74666
+ "motion-calm": "device-events",
74652
74667
  "recording-stalled": "device-events",
74653
74668
  "recording-healthy": "device-events",
74654
74669
  "recording-degraded": "device-events",
74670
+ "device-attention-required": "device-events",
74671
+ "device-attention-resolved": "device-events",
74655
74672
  "node-online": "system",
74656
74673
  "node-offline": "system",
74657
74674
  "node-restarting": "system",
@@ -74734,6 +74751,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
74734
74751
  label: "Detecting nothing",
74735
74752
  kinds: ["detection-blind"]
74736
74753
  },
74754
+ {
74755
+ id: "motion-noise",
74756
+ family: "device-events",
74757
+ label: "Motion without a subject",
74758
+ kinds: ["motion-noisy", "motion-calm"]
74759
+ },
74737
74760
  {
74738
74761
  id: "recording",
74739
74762
  family: "device-events",
@@ -74744,6 +74767,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
74744
74767
  "recording-degraded"
74745
74768
  ]
74746
74769
  },
74770
+ {
74771
+ id: "device-attention",
74772
+ family: "device-events",
74773
+ label: "Needs attention",
74774
+ kinds: ["device-attention-required", "device-attention-resolved"]
74775
+ },
74747
74776
  {
74748
74777
  id: "nodes",
74749
74778
  family: "system",
@@ -74883,6 +74912,7 @@ var ALERT_EPISODE = [
74883
74912
  "alert-error",
74884
74913
  "alert-critical-resolved"
74885
74914
  ];
74915
+ var DEVICE_ATTENTION = ["device-attention-required", "device-attention-resolved"];
74886
74916
  var UPDATES = [
74887
74917
  "addon-update-available",
74888
74918
  "server-update-available",
@@ -74912,9 +74942,12 @@ var DEVICE_EVENTS = [
74912
74942
  "stream-online",
74913
74943
  "stream-offline",
74914
74944
  "detection-blind",
74945
+ "motion-noisy",
74946
+ "motion-calm",
74915
74947
  "recording-stalled",
74916
74948
  "recording-healthy",
74917
74949
  "recording-degraded",
74950
+ ...DEVICE_ATTENTION,
74918
74951
  ...ALARM
74919
74952
  ];
74920
74953
  /** Every kind a summary may speak about — the two summarisable families. */
@@ -75082,7 +75115,9 @@ var STATE_SUMMARY_VARS = [
75082
75115
  [...RULE_TEXT],
75083
75116
  [...RULE_TEXT],
75084
75117
  [...RULE_TEXT],
75085
- ([...RULE_TEXT], [...ALERT_EPISODE]),
75118
+ [...RULE_TEXT],
75119
+ [...RULE_TEXT],
75120
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
75086
75121
  [...RULE_TEXT],
75087
75122
  [...RULE_TEXT],
75088
75123
  [...RULE_TEXT],
@@ -75104,11 +75139,11 @@ var STATE_SUMMARY_VARS = [
75104
75139
  [...RULE_TEXT],
75105
75140
  [...RULE_TEXT],
75106
75141
  [...RULE_TEXT],
75142
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
75107
75143
  ([...RULE_TEXT], [...ALERT_EPISODE]),
75144
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
75108
75145
  ([...RULE_TEXT], [...ALERT_EPISODE]),
75109
- ([...RULE_TEXT], [...ALERT_EPISODE]),
75110
- ([...RULE_TEXT], [...ALERT_EPISODE]),
75111
- ([...RULE_TEXT], [...ALERT_EPISODE]),
75146
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
75112
75147
  [...RULE_TEXT],
75113
75148
  [...RULE_TEXT],
75114
75149
  [...RULE_TEXT],
@@ -75184,6 +75219,15 @@ new Map([
75184
75219
  snapshotLabel: "Tanks low or full now",
75185
75220
  snapshotSection: "tanks"
75186
75221
  },
75222
+ {
75223
+ id: "motion-noise",
75224
+ family: "device-events",
75225
+ label: "Motion without a subject (constant / calm again)",
75226
+ bad: ["motion-noisy"],
75227
+ recovery: ["motion-calm"],
75228
+ snapshotLabel: "Cameras with constant motion now",
75229
+ snapshotSection: null
75230
+ },
75187
75231
  {
75188
75232
  id: "recording-health",
75189
75233
  family: "device-events",
@@ -75193,6 +75237,15 @@ new Map([
75193
75237
  snapshotLabel: "Recordings stalled now",
75194
75238
  snapshotSection: null
75195
75239
  },
75240
+ {
75241
+ id: "device-attention",
75242
+ family: "device-events",
75243
+ label: "Device needs attention (raised / resolved)",
75244
+ bad: ["device-attention-required"],
75245
+ recovery: ["device-attention-resolved"],
75246
+ snapshotLabel: "Devices needing attention now",
75247
+ snapshotSection: null
75248
+ },
75196
75249
  {
75197
75250
  id: "node-connectivity",
75198
75251
  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",
@@ -55615,6 +55639,16 @@ object({
55615
55639
  powerState: string().nullable(),
55616
55640
  saltLevel: DishwasherConsumableLevelSchema.nullable(),
55617
55641
  rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
55642
+ /**
55643
+ * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
55644
+ * combined care-and-filter reminder raised); false when every such reminder reads clear; null
55645
+ * when none is reported. A cleared reminder is not an unknown one.
55646
+ */
55647
+ filterCleaningDue: boolean().nullable(),
55648
+ /** True while the machine-care (descaling / cleaning-program) reminder is raised; false when clear; null when not reported. */
55649
+ machineCareDue: boolean().nullable(),
55650
+ /** Program runs left before the machine-care reminder is due; null when the appliance does not say. */
55651
+ machineCareRemainingRuns: number().int().nonnegative().nullable(),
55618
55652
  /** Option states: null when the appliance does not expose the option or has not said. */
55619
55653
  halfLoad: boolean().nullable(),
55620
55654
  hygienePlus: boolean().nullable(),
@@ -62273,16 +62307,6 @@ var UpdateUserInputSchema = object({
62273
62307
  allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
62274
62308
  scopes: array(TokenScopeSchema).optional()
62275
62309
  });
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
62310
  var OauthSessionSummarySchema = object({
62287
62311
  id: string(),
62288
62312
  userId: string(),
@@ -62304,8 +62328,7 @@ var TotpStatusSchema = object({
62304
62328
  confirmedAt: number().nullable()
62305
62329
  });
62306
62330
  /**
62307
- * user-management — singleton capability for user accounts and the
62308
- * legacy API-key rows.
62331
+ * user-management — singleton capability for user accounts.
62309
62332
  *
62310
62333
  * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
62311
62334
  * — the subset check on `setUserScopes` is moot
@@ -62361,10 +62384,6 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
62361
62384
  }), UserSummarySchema.extend({ passwordHash: string() }).nullable(), {
62362
62385
  kind: "mutation",
62363
62386
  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
62387
  }), method(object({ userId: string() }), TotpSetupResultSchema, {
62369
62388
  kind: "mutation",
62370
62389
  auth: "admin",
@@ -69877,6 +69896,12 @@ Object.freeze({
69877
69896
  addonId: null,
69878
69897
  access: "view"
69879
69898
  },
69899
+ "records.transact": {
69900
+ capName: "records",
69901
+ capScope: "system",
69902
+ addonId: null,
69903
+ access: "create"
69904
+ },
69880
69905
  "sceneMonitor.captureReference": {
69881
69906
  capName: "scene-monitor",
69882
69907
  capScope: "device",
@@ -71209,12 +71234,6 @@ Object.freeze({
71209
71234
  addonId: null,
71210
71235
  access: "view"
71211
71236
  },
71212
- "userManagement.listApiKeys": {
71213
- capName: "user-management",
71214
- capScope: "system",
71215
- addonId: null,
71216
- access: "view"
71217
- },
71218
71237
  "userManagement.listExternalIdentities": {
71219
71238
  capName: "user-management",
71220
71239
  capScope: "system",
@@ -71269,12 +71288,6 @@ Object.freeze({
71269
71288
  addonId: null,
71270
71289
  access: "create"
71271
71290
  },
71272
- "userManagement.revokeApiKey": {
71273
- capName: "user-management",
71274
- capScope: "system",
71275
- addonId: null,
71276
- access: "delete"
71277
- },
71278
71291
  "userManagement.revokeOauthSession": {
71279
71292
  capName: "user-management",
71280
71293
  capScope: "system",
@@ -74639,9 +74652,13 @@ new Map(Object.entries({
74639
74652
  "stream-online": "device-events",
74640
74653
  "stream-offline": "device-events",
74641
74654
  "detection-blind": "device-events",
74655
+ "motion-noisy": "device-events",
74656
+ "motion-calm": "device-events",
74642
74657
  "recording-stalled": "device-events",
74643
74658
  "recording-healthy": "device-events",
74644
74659
  "recording-degraded": "device-events",
74660
+ "device-attention-required": "device-events",
74661
+ "device-attention-resolved": "device-events",
74645
74662
  "node-online": "system",
74646
74663
  "node-offline": "system",
74647
74664
  "node-restarting": "system",
@@ -74724,6 +74741,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
74724
74741
  label: "Detecting nothing",
74725
74742
  kinds: ["detection-blind"]
74726
74743
  },
74744
+ {
74745
+ id: "motion-noise",
74746
+ family: "device-events",
74747
+ label: "Motion without a subject",
74748
+ kinds: ["motion-noisy", "motion-calm"]
74749
+ },
74727
74750
  {
74728
74751
  id: "recording",
74729
74752
  family: "device-events",
@@ -74734,6 +74757,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
74734
74757
  "recording-degraded"
74735
74758
  ]
74736
74759
  },
74760
+ {
74761
+ id: "device-attention",
74762
+ family: "device-events",
74763
+ label: "Needs attention",
74764
+ kinds: ["device-attention-required", "device-attention-resolved"]
74765
+ },
74737
74766
  {
74738
74767
  id: "nodes",
74739
74768
  family: "system",
@@ -74873,6 +74902,7 @@ var ALERT_EPISODE = [
74873
74902
  "alert-error",
74874
74903
  "alert-critical-resolved"
74875
74904
  ];
74905
+ var DEVICE_ATTENTION = ["device-attention-required", "device-attention-resolved"];
74876
74906
  var UPDATES = [
74877
74907
  "addon-update-available",
74878
74908
  "server-update-available",
@@ -74902,9 +74932,12 @@ var DEVICE_EVENTS = [
74902
74932
  "stream-online",
74903
74933
  "stream-offline",
74904
74934
  "detection-blind",
74935
+ "motion-noisy",
74936
+ "motion-calm",
74905
74937
  "recording-stalled",
74906
74938
  "recording-healthy",
74907
74939
  "recording-degraded",
74940
+ ...DEVICE_ATTENTION,
74908
74941
  ...ALARM
74909
74942
  ];
74910
74943
  /** Every kind a summary may speak about — the two summarisable families. */
@@ -75072,7 +75105,9 @@ var STATE_SUMMARY_VARS = [
75072
75105
  [...RULE_TEXT],
75073
75106
  [...RULE_TEXT],
75074
75107
  [...RULE_TEXT],
75075
- ([...RULE_TEXT], [...ALERT_EPISODE]),
75108
+ [...RULE_TEXT],
75109
+ [...RULE_TEXT],
75110
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
75076
75111
  [...RULE_TEXT],
75077
75112
  [...RULE_TEXT],
75078
75113
  [...RULE_TEXT],
@@ -75094,11 +75129,11 @@ var STATE_SUMMARY_VARS = [
75094
75129
  [...RULE_TEXT],
75095
75130
  [...RULE_TEXT],
75096
75131
  [...RULE_TEXT],
75132
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
75097
75133
  ([...RULE_TEXT], [...ALERT_EPISODE]),
75134
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
75098
75135
  ([...RULE_TEXT], [...ALERT_EPISODE]),
75099
- ([...RULE_TEXT], [...ALERT_EPISODE]),
75100
- ([...RULE_TEXT], [...ALERT_EPISODE]),
75101
- ([...RULE_TEXT], [...ALERT_EPISODE]),
75136
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
75102
75137
  [...RULE_TEXT],
75103
75138
  [...RULE_TEXT],
75104
75139
  [...RULE_TEXT],
@@ -75174,6 +75209,15 @@ new Map([
75174
75209
  snapshotLabel: "Tanks low or full now",
75175
75210
  snapshotSection: "tanks"
75176
75211
  },
75212
+ {
75213
+ id: "motion-noise",
75214
+ family: "device-events",
75215
+ label: "Motion without a subject (constant / calm again)",
75216
+ bad: ["motion-noisy"],
75217
+ recovery: ["motion-calm"],
75218
+ snapshotLabel: "Cameras with constant motion now",
75219
+ snapshotSection: null
75220
+ },
75177
75221
  {
75178
75222
  id: "recording-health",
75179
75223
  family: "device-events",
@@ -75183,6 +75227,15 @@ new Map([
75183
75227
  snapshotLabel: "Recordings stalled now",
75184
75228
  snapshotSection: null
75185
75229
  },
75230
+ {
75231
+ id: "device-attention",
75232
+ family: "device-events",
75233
+ label: "Device needs attention (raised / resolved)",
75234
+ bad: ["device-attention-required"],
75235
+ recovery: ["device-attention-resolved"],
75236
+ snapshotLabel: "Devices needing attention now",
75237
+ snapshotSection: null
75238
+ },
75186
75239
  {
75187
75240
  id: "node-connectivity",
75188
75241
  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.174",
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",