@camstack/addon-training 0.1.71 → 0.1.73

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.
Files changed (20) hide show
  1. package/dist/{MotionZonesSettings-Dt0onEfE.mjs → MotionZonesSettings-DIgLjY4z.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-IZw8aizG.mjs → PrivacyMaskSettings-BY7FP9LG.mjs} +2 -2
  3. package/dist/{SceneMonitorEditor-DRNl4Z9L.mjs → SceneMonitorEditor-CGlbBXoT.mjs} +1 -1
  4. package/dist/_stub.js +14 -14
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-DeZy91ng.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-51yA9etr.mjs} +4 -4
  6. package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CDZSeqY9.mjs +26 -0
  7. package/dist/{dist-BGiIe7vr.mjs → dist-BCzxvw2H.mjs} +114 -67
  8. package/dist/{dist-C6e-Vj0G.js → dist-mbttyND-.js} +114 -67
  9. package/dist/{hostInit-_UE3r-xp.mjs → hostInit-DIv_FZGg.mjs} +3 -3
  10. package/dist/index.js +1 -1
  11. package/dist/orchestrator/training.addon.js +1 -1
  12. package/dist/orchestrator/training.addon.mjs +1 -1
  13. package/dist/{player-overlays-V4ormuPy.mjs → player-overlays-DOzstwdZ.mjs} +1 -1
  14. package/dist/providers/modal/training-modal.addon.js +1 -1
  15. package/dist/providers/modal/training-modal.addon.mjs +1 -1
  16. package/dist/remoteEntry.js +1 -1
  17. package/dist/{responsive-CEGSFms4.mjs → responsive-D5pOKYim.mjs} +1 -1
  18. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-RBrWHo-S.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-BZa39O_w.mjs} +1 -1
  19. package/package.json +1 -1
  20. package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DQ4uF3R4.mjs +0 -26
@@ -1,5 +1,5 @@
1
1
  import "node:crypto";
2
- //#region ../types/dist/event-category-7pZEBmVg.mjs
2
+ //#region ../types/dist/event-category-BfJwUd2S.mjs
3
3
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4
4
  EventCategory["SystemBoot"] = "system.boot";
5
5
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -316,6 +316,15 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
316
316
  */
317
317
  EventCategory["PipelineDetectionBlind"] = "pipeline.detection-blind";
318
318
  /**
319
+ * A camera's motion source has fired constantly with no subject for an hour
320
+ * (motion duty or session count over the bar, zero detections) — it is not
321
+ * blind, its motion zones or sensitivity want tuning (D907). Paired with
322
+ * {@link PipelineMotionCalm}.
323
+ */
324
+ EventCategory["PipelineMotionNoisy"] = "pipeline.motion-noisy";
325
+ /** The recovery edge of {@link PipelineMotionNoisy}: the motion fell back, or a detection arrived. */
326
+ EventCategory["PipelineMotionCalm"] = "pipeline.motion-calm";
327
+ /**
319
328
  * Per-camera pipeline config was mutated by the orchestrator
320
329
  * (3-level settings change via `setAgentAddonDefaults` /
321
330
  * `setCameraStepToggle` / `setCameraPipelineForAgent` or a
@@ -5555,7 +5564,7 @@ var ZodIssueCode = {
5555
5564
  var ZodFirstPartyTypeKind;
5556
5565
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5557
5566
  //#endregion
5558
- //#region ../types/dist/sleep-CueztlR1.mjs
5567
+ //#region ../types/dist/sleep-DJFUfKvA.mjs
5559
5568
  /**
5560
5569
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5561
5570
  * window to float samples (D455).
@@ -8147,7 +8156,7 @@ var EntryDescriptorSchema = object({
8147
8156
  /** JSON Schema of the entry body; `secret: true` marks a password field. */
8148
8157
  fields: record(string(), unknown())
8149
8158
  }).strict();
8150
- /** What crosses the wire and sits in the engine's catalog: JSON only, no Zod. */
8159
+ /** What crosses the wire from an addon: JSON only, no Zod. An unknown key is refused. */
8151
8160
  var RecordKindDeclarationSchema = object({
8152
8161
  database: _enum(RECORD_DATABASES).default("settings"),
8153
8162
  class: _enum(RECORD_CLASSES),
@@ -8166,14 +8175,6 @@ var RecordKindDeclarationSchema = object({
8166
8175
  secretPaths: array(string().min(1)).default([]),
8167
8176
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
8168
8177
  secretArrayKeys: record(string(), string()).default({}),
8169
- /**
8170
- * RETIRED (D900): the legacy table a kind adopted from during the records
8171
- * migration. Nothing declares it any more and nothing reads it; the schema
8172
- * still ACCEPTS it because the catalog rows the migration wrote carry it
8173
- * (an orphaned kind is never redeclared) and an addon built before the
8174
- * removal still sends it. Never set it.
8175
- */
8176
- adoptsFrom: string().min(1).optional(),
8177
8178
  /** Kinds that must agree through `transact` sit in one file under one family name. */
8178
8179
  transactFamily: string().min(1).optional(),
8179
8180
  entry: EntryDescriptorSchema.optional()
@@ -12973,17 +12974,6 @@ object({
12973
12974
  createdAt: number(),
12974
12975
  updatedAt: number()
12975
12976
  });
12976
- object({
12977
- id: string(),
12978
- label: string(),
12979
- isAdmin: boolean().default(false),
12980
- allowedProviders: AllowedProviderSchema,
12981
- allowedDevices: AllowedDevicesSchema,
12982
- tokenHash: string(),
12983
- tokenPrefix: string(),
12984
- createdAt: number(),
12985
- lastUsedAt: number().optional()
12986
- });
12987
12977
  object({
12988
12978
  id: string(),
12989
12979
  userId: string(),
@@ -16876,16 +16866,36 @@ var RecordKindStateSchema = _enum([
16876
16866
  var DeclareKindResultSchema = object({
16877
16867
  kindId: number().int(),
16878
16868
  state: RecordKindStateSchema,
16879
- createdIndexes: array(string()),
16880
- /**
16881
- * RETIRED (D900): always `null`. It carried the records-migration boot guard;
16882
- * it stays on the wire, null, because an addon built before the removal reads
16883
- * an ABSENT field as "adoption pending" and refuses to start.
16884
- */
16885
- adoptionPending: _null()
16869
+ createdIndexes: array(string())
16886
16870
  });
16887
16871
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
16888
16872
  var SecretRefsList = array(string());
16873
+ /**
16874
+ * One op of a `transact`: the single-row writes, each on a kind of the caller.
16875
+ * All ops of one call share ONE database file and ONE `transactFamily`.
16876
+ */
16877
+ var RecordTransactOpSchema = discriminatedUnion("op", [
16878
+ object({
16879
+ op: literal("put"),
16880
+ kind: RecordKindNameSchema,
16881
+ record: RecordInputSchema,
16882
+ ifRev: number().int().min(0).optional()
16883
+ }),
16884
+ object({
16885
+ op: literal("patch"),
16886
+ kind: RecordKindNameSchema,
16887
+ id: RecordIdSchema,
16888
+ data: RecordBodySchema,
16889
+ at: number().int().nullable().optional(),
16890
+ expiresAt: number().int().nullable().optional(),
16891
+ ifRev: number().int().min(1).optional()
16892
+ }),
16893
+ object({
16894
+ op: literal("delete"),
16895
+ kind: RecordKindNameSchema,
16896
+ id: RecordIdSchema
16897
+ })
16898
+ ]);
16889
16899
  var RecordSecretRefsSchema = record(string(), record(string(), string()));
16890
16900
  method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema) }), object({ kinds: record(string(), DeclareKindResultSchema) }), {
16891
16901
  kind: "mutation",
@@ -16992,6 +17002,16 @@ method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema)
16992
17002
  }), {
16993
17003
  kind: "mutation",
16994
17004
  auth: "admin"
17005
+ }), method(object({ ops: array(RecordTransactOpSchema).min(1).max(RECORD_BATCH_MAX) }), object({
17006
+ results: array(object({
17007
+ rev: number().int().nullable(),
17008
+ deleted: boolean()
17009
+ })),
17010
+ releasedRefs: SecretRefsList,
17011
+ secretRefs: SecretRefsList
17012
+ }), {
17013
+ kind: "mutation",
17014
+ auth: "admin"
16995
17015
  }), method(object({
16996
17016
  deviceId: number().int(),
16997
17017
  kinds: array(RecordKindNameSchema).optional()
@@ -42350,9 +42370,13 @@ var NcSystemEventKindSchema = _enum([
42350
42370
  "node-updating",
42351
42371
  "node-inference-unavailable",
42352
42372
  "detection-blind",
42373
+ "motion-noisy",
42374
+ "motion-calm",
42353
42375
  "recording-stalled",
42354
42376
  "recording-healthy",
42355
42377
  "recording-degraded",
42378
+ "device-attention-required",
42379
+ "device-attention-resolved",
42356
42380
  "storage-location-low",
42357
42381
  "storage-location-critical",
42358
42382
  "storage-location-ok",
@@ -47913,7 +47937,6 @@ var RecommendationReasonSchema = discriminatedUnion("kind", [
47913
47937
  modelId: string()
47914
47938
  }),
47915
47939
  object({ kind: literal("cpu-device") }),
47916
- object({ kind: literal("coral-untouched") }),
47917
47940
  object({ kind: literal("device-disabled") }),
47918
47941
  object({ kind: literal("device-unavailable") }),
47919
47942
  object({ kind: literal("node-offline") }),
@@ -48011,11 +48034,6 @@ var AutoTuneWarningSchema = discriminatedUnion("kind", [
48011
48034
  kind: literal("detector-store-unreadable"),
48012
48035
  error: string()
48013
48036
  }),
48014
- object({
48015
- kind: literal("coral-enabled"),
48016
- nodeId: string(),
48017
- deviceKey: string()
48018
- }),
48019
48037
  object({
48020
48038
  kind: literal("custom-pin-kept"),
48021
48039
  nodeId: string(),
@@ -54809,6 +54827,16 @@ object({
54809
54827
  powerState: string().nullable(),
54810
54828
  saltLevel: DishwasherConsumableLevelSchema.nullable(),
54811
54829
  rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
54830
+ /**
54831
+ * True while the appliance asks for its filter to be cleaned (smart-filter, filter-system or
54832
+ * combined care-and-filter reminder raised); false when every such reminder reads clear; null
54833
+ * when none is reported. A cleared reminder is not an unknown one.
54834
+ */
54835
+ filterCleaningDue: boolean().nullable(),
54836
+ /** True while the machine-care (descaling / cleaning-program) reminder is raised; false when clear; null when not reported. */
54837
+ machineCareDue: boolean().nullable(),
54838
+ /** Program runs left before the machine-care reminder is due; null when the appliance does not say. */
54839
+ machineCareRemainingRuns: number().int().nonnegative().nullable(),
54812
54840
  /** Option states: null when the appliance does not expose the option or has not said. */
54813
54841
  halfLoad: boolean().nullable(),
54814
54842
  hygienePlus: boolean().nullable(),
@@ -61426,16 +61454,6 @@ var UpdateUserInputSchema = object({
61426
61454
  allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
61427
61455
  scopes: array(TokenScopeSchema).optional()
61428
61456
  });
61429
- var ApiKeySummarySchema = object({
61430
- id: string(),
61431
- label: string(),
61432
- isAdmin: boolean().default(false),
61433
- allowedProviders: union([array(string()), literal("*")]).optional(),
61434
- allowedDevices: record(string(), union([array(string()), literal("*")])).optional(),
61435
- tokenPrefix: string(),
61436
- createdAt: number(),
61437
- lastUsedAt: number().optional()
61438
- });
61439
61457
  var OauthSessionSummarySchema = object({
61440
61458
  id: string(),
61441
61459
  userId: string(),
@@ -61457,8 +61475,7 @@ var TotpStatusSchema = object({
61457
61475
  confirmedAt: number().nullable()
61458
61476
  });
61459
61477
  /**
61460
- * user-management — singleton capability for user accounts and the
61461
- * legacy API-key rows.
61478
+ * user-management — singleton capability for user accounts.
61462
61479
  *
61463
61480
  * v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
61464
61481
  * — the subset check on `setUserScopes` is moot
@@ -61514,10 +61531,6 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
61514
61531
  }), UserSummarySchema.extend({ passwordHash: string() }).nullable(), {
61515
61532
  kind: "mutation",
61516
61533
  access: "view"
61517
- }), method(_void(), array(ApiKeySummarySchema), { auth: "admin" }), method(object({ id: string() }), object({ success: literal(true) }), {
61518
- kind: "mutation",
61519
- auth: "admin",
61520
- access: "delete"
61521
61534
  }), method(object({ userId: string() }), TotpSetupResultSchema, {
61522
61535
  kind: "mutation",
61523
61536
  auth: "admin",
@@ -69130,6 +69143,12 @@ Object.freeze({
69130
69143
  addonId: null,
69131
69144
  access: "view"
69132
69145
  },
69146
+ "records.transact": {
69147
+ capName: "records",
69148
+ capScope: "system",
69149
+ addonId: null,
69150
+ access: "create"
69151
+ },
69133
69152
  "sceneMonitor.captureReference": {
69134
69153
  capName: "scene-monitor",
69135
69154
  capScope: "device",
@@ -70462,12 +70481,6 @@ Object.freeze({
70462
70481
  addonId: null,
70463
70482
  access: "view"
70464
70483
  },
70465
- "userManagement.listApiKeys": {
70466
- capName: "user-management",
70467
- capScope: "system",
70468
- addonId: null,
70469
- access: "view"
70470
- },
70471
70484
  "userManagement.listExternalIdentities": {
70472
70485
  capName: "user-management",
70473
70486
  capScope: "system",
@@ -70522,12 +70535,6 @@ Object.freeze({
70522
70535
  addonId: null,
70523
70536
  access: "create"
70524
70537
  },
70525
- "userManagement.revokeApiKey": {
70526
- capName: "user-management",
70527
- capScope: "system",
70528
- addonId: null,
70529
- access: "delete"
70530
- },
70531
70538
  "userManagement.revokeOauthSession": {
70532
70539
  capName: "user-management",
70533
70540
  capScope: "system",
@@ -73892,9 +73899,13 @@ new Map(Object.entries({
73892
73899
  "stream-online": "device-events",
73893
73900
  "stream-offline": "device-events",
73894
73901
  "detection-blind": "device-events",
73902
+ "motion-noisy": "device-events",
73903
+ "motion-calm": "device-events",
73895
73904
  "recording-stalled": "device-events",
73896
73905
  "recording-healthy": "device-events",
73897
73906
  "recording-degraded": "device-events",
73907
+ "device-attention-required": "device-events",
73908
+ "device-attention-resolved": "device-events",
73898
73909
  "node-online": "system",
73899
73910
  "node-offline": "system",
73900
73911
  "node-restarting": "system",
@@ -73977,6 +73988,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
73977
73988
  label: "Detecting nothing",
73978
73989
  kinds: ["detection-blind"]
73979
73990
  },
73991
+ {
73992
+ id: "motion-noise",
73993
+ family: "device-events",
73994
+ label: "Motion without a subject",
73995
+ kinds: ["motion-noisy", "motion-calm"]
73996
+ },
73980
73997
  {
73981
73998
  id: "recording",
73982
73999
  family: "device-events",
@@ -73987,6 +74004,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
73987
74004
  "recording-degraded"
73988
74005
  ]
73989
74006
  },
74007
+ {
74008
+ id: "device-attention",
74009
+ family: "device-events",
74010
+ label: "Needs attention",
74011
+ kinds: ["device-attention-required", "device-attention-resolved"]
74012
+ },
73990
74013
  {
73991
74014
  id: "nodes",
73992
74015
  family: "system",
@@ -74126,6 +74149,7 @@ var ALERT_EPISODE = [
74126
74149
  "alert-error",
74127
74150
  "alert-critical-resolved"
74128
74151
  ];
74152
+ var DEVICE_ATTENTION = ["device-attention-required", "device-attention-resolved"];
74129
74153
  var UPDATES = [
74130
74154
  "addon-update-available",
74131
74155
  "server-update-available",
@@ -74155,9 +74179,12 @@ var DEVICE_EVENTS = [
74155
74179
  "stream-online",
74156
74180
  "stream-offline",
74157
74181
  "detection-blind",
74182
+ "motion-noisy",
74183
+ "motion-calm",
74158
74184
  "recording-stalled",
74159
74185
  "recording-healthy",
74160
74186
  "recording-degraded",
74187
+ ...DEVICE_ATTENTION,
74161
74188
  ...ALARM
74162
74189
  ];
74163
74190
  /** Every kind a summary may speak about — the two summarisable families. */
@@ -74325,7 +74352,9 @@ var STATE_SUMMARY_VARS = [
74325
74352
  [...RULE_TEXT],
74326
74353
  [...RULE_TEXT],
74327
74354
  [...RULE_TEXT],
74328
- ([...RULE_TEXT], [...ALERT_EPISODE]),
74355
+ [...RULE_TEXT],
74356
+ [...RULE_TEXT],
74357
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
74329
74358
  [...RULE_TEXT],
74330
74359
  [...RULE_TEXT],
74331
74360
  [...RULE_TEXT],
@@ -74347,11 +74376,11 @@ var STATE_SUMMARY_VARS = [
74347
74376
  [...RULE_TEXT],
74348
74377
  [...RULE_TEXT],
74349
74378
  [...RULE_TEXT],
74379
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
74350
74380
  ([...RULE_TEXT], [...ALERT_EPISODE]),
74381
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
74351
74382
  ([...RULE_TEXT], [...ALERT_EPISODE]),
74352
- ([...RULE_TEXT], [...ALERT_EPISODE]),
74353
- ([...RULE_TEXT], [...ALERT_EPISODE]),
74354
- ([...RULE_TEXT], [...ALERT_EPISODE]),
74383
+ ([...RULE_TEXT], [...DEVICE_ATTENTION, ...ALERT_EPISODE]),
74355
74384
  [...RULE_TEXT],
74356
74385
  [...RULE_TEXT],
74357
74386
  [...RULE_TEXT],
@@ -74427,6 +74456,15 @@ new Map([
74427
74456
  snapshotLabel: "Tanks low or full now",
74428
74457
  snapshotSection: "tanks"
74429
74458
  },
74459
+ {
74460
+ id: "motion-noise",
74461
+ family: "device-events",
74462
+ label: "Motion without a subject (constant / calm again)",
74463
+ bad: ["motion-noisy"],
74464
+ recovery: ["motion-calm"],
74465
+ snapshotLabel: "Cameras with constant motion now",
74466
+ snapshotSection: null
74467
+ },
74430
74468
  {
74431
74469
  id: "recording-health",
74432
74470
  family: "device-events",
@@ -74436,6 +74474,15 @@ new Map([
74436
74474
  snapshotLabel: "Recordings stalled now",
74437
74475
  snapshotSection: null
74438
74476
  },
74477
+ {
74478
+ id: "device-attention",
74479
+ family: "device-events",
74480
+ label: "Device needs attention (raised / resolved)",
74481
+ bad: ["device-attention-required"],
74482
+ recovery: ["device-attention-resolved"],
74483
+ snapshotLabel: "Devices needing attention now",
74484
+ snapshotSection: null
74485
+ },
74439
74486
  {
74440
74487
  id: "node-connectivity",
74441
74488
  family: "system",