@camstack/system 1.2.287 → 1.2.289

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 (57) hide show
  1. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  2. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  3. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  4. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  5. package/dist/builtins/alerts/alerts.addon.js +1 -1
  6. package/dist/builtins/alerts/alerts.addon.mjs +1 -1
  7. package/dist/builtins/autotrack/index.js +1 -1
  8. package/dist/builtins/autotrack/index.mjs +1 -1
  9. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +1 -1
  10. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1 -1
  11. package/dist/builtins/camera-grid/index.js +1 -1
  12. package/dist/builtins/camera-grid/index.mjs +1 -1
  13. package/dist/builtins/console-logging/index.js +1 -1
  14. package/dist/builtins/console-logging/index.mjs +1 -1
  15. package/dist/builtins/core-blocks/core-blocks.addon.js +1 -1
  16. package/dist/builtins/core-blocks/core-blocks.addon.mjs +1 -1
  17. package/dist/builtins/device-manager/device-config-contribution.d.ts +1 -0
  18. package/dist/builtins/device-manager/device-manager.addon.js +472 -3
  19. package/dist/builtins/device-manager/device-manager.addon.mjs +472 -3
  20. package/dist/builtins/device-manager/recording-onboard-config-schema.d.ts +41 -0
  21. package/dist/builtins/doorbell/virtual-doorbell.addon.js +1 -1
  22. package/dist/builtins/doorbell/virtual-doorbell.addon.mjs +1 -1
  23. package/dist/builtins/hub-forwarder/index.js +1 -1
  24. package/dist/builtins/hub-forwarder/index.mjs +1 -1
  25. package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  26. package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  27. package/dist/builtins/local-auth/local-auth.addon.js +1 -1
  28. package/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
  29. package/dist/builtins/local-network/local-network.addon.js +1 -1
  30. package/dist/builtins/local-network/local-network.addon.mjs +1 -1
  31. package/dist/builtins/loki-logging/index.js +1 -1
  32. package/dist/builtins/loki-logging/index.mjs +1 -1
  33. package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  34. package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  35. package/dist/builtins/platform-probe/index.js +1 -1
  36. package/dist/builtins/platform-probe/index.mjs +1 -1
  37. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  38. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  39. package/dist/builtins/snapshot/index.js +1 -1
  40. package/dist/builtins/snapshot/index.mjs +1 -1
  41. package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  42. package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  43. package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +0 -0
  44. package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +0 -0
  45. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  46. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  47. package/dist/builtins/system-config/system-config.addon.js +1 -1
  48. package/dist/builtins/system-config/system-config.addon.mjs +1 -1
  49. package/dist/builtins/winston-logging/index.js +1 -1
  50. package/dist/builtins/winston-logging/index.mjs +1 -1
  51. package/dist/{dist-C51Z6L6t.js → dist-BYnHJU96.js} +563 -2
  52. package/dist/{dist-jv1aoo9E.mjs → dist-DKFb2936.mjs} +546 -3
  53. package/dist/index.js +1 -1
  54. package/dist/index.mjs +1 -1
  55. package/dist/{retired-settings-keys-BFeJh5E7.js → retired-settings-keys-C6rFqHR7.js} +1 -1
  56. package/dist/{retired-settings-keys-Bulcwqkz.mjs → retired-settings-keys-tuNxNNpR.mjs} +1 -1
  57. package/package.json +1 -1
@@ -691,7 +691,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
691
691
  return EventCategory;
692
692
  }({});
693
693
  //#endregion
694
- //#region ../types/dist/sleep-De1BvmWo.mjs
694
+ //#region ../types/dist/sleep-i3eUVc-d.mjs
695
695
  /**
696
696
  * The audio chunk plane's byte format, and the ONE expansion from a coded
697
697
  * window to float samples (D455).
@@ -11973,6 +11973,118 @@ var deviceAdoptionCapability = {
11973
11973
  }
11974
11974
  };
11975
11975
  /**
11976
+ * device-admin-link — "this device has a management page of its own, and here
11977
+ * is its address".
11978
+ *
11979
+ * ## Why this is not a `deviceConfig` cap
11980
+ *
11981
+ * There is nothing to edit. A `deviceConfig` cap (D14) exists so the framework
11982
+ * can DERIVE a settings form from `getOptions` + `getStatus` and route a flat
11983
+ * patch back through a setter; it costs a `builderId` reducer in
11984
+ * `device-config-contribution.ts` and a `*-config-schema.ts` beside it, and it
11985
+ * renders a form section. This cap answers ONE question with ONE read and
11986
+ * renders a button. Nothing about it is a form, so it carries no `deviceConfig`
11987
+ * block, no `settings`, no `runtimeState` and no reducer — exactly like
11988
+ * `reboot`, the other pure-RPC device-native cap.
11989
+ *
11990
+ * ## Absent, and the difference between "no page" and "we cannot say"
11991
+ *
11992
+ * The two are answered at DIFFERENT layers, on purpose:
11993
+ *
11994
+ * - **"We cannot say"** → the provider never registers the cap for that
11995
+ * device. A VeSync humidifier, a Petkit feeder, a Dreame vacuum and a Dreo
11996
+ * fan are reached only through a vendor cloud; there is no address to hand
11997
+ * out and no page to open. A Tuya plug, a Wyze camera and a Gree air
11998
+ * conditioner DO have a LAN IP, and still have no HTTP management page
11999
+ * behind it. None of them register, so `deviceManager.getBindings` never
12000
+ * lists the cap and no surface asks.
12001
+ * - **"This device has no page, and I know that"** → the provider registers
12002
+ * and `getAdminLink` returns `null`. This is the answer for a device whose
12003
+ * sibling DOES have a page: a Reolink battery camera reached over UDP by
12004
+ * `uid` with a blank `host`, an Ecowitt gateway configured in `listener`
12005
+ * transport, a Home Assistant broker authenticated by supervisor token
12006
+ * (which carries no `baseUrl` at all).
12007
+ *
12008
+ * Both draw NOTHING. A button that opens a browser error is worse than no
12009
+ * button, and D62 is the same rule from the other side: an off switch is
12010
+ * reported off, never made to look broken. There is no third state where the
12011
+ * UI renders a disabled button "because the device might have a page".
12012
+ *
12013
+ * ## The URL never carries credentials
12014
+ *
12015
+ * Not in userinfo, not in a query string. Every provider builds through
12016
+ * `buildDeviceAdminUrl` (`device-admin-link-url.ts`), which takes host, port,
12017
+ * scheme and path as separate arguments — there is no parameter a secret could
12018
+ * arrive in — and re-checks its own output for the `scheme://user:pass@` shape
12019
+ * that `scripts/check-no-credential-urls-in-fixtures.ts` bans from recorded
12020
+ * output. `scripts/check-admin-link-builder-is-the-only-url-source.ts` is what
12021
+ * keeps providers from hand-rolling one anyway.
12022
+ *
12023
+ * This matters here more than anywhere else in the repo, because every provider
12024
+ * that knows a device's host knows its PASSWORD too: `{ host, port, username,
12025
+ * password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
12026
+ * and `http://admin:hunter2@192.168.50.139/` is a URL a browser accepts. The
12027
+ * camera's own page will ask for its own login. That is correct, and pre-
12028
+ * filling it is the operator's business, not ours.
12029
+ *
12030
+ * ## It is a LAN fact
12031
+ *
12032
+ * The URL addresses the device where the NODE can see it. It is not proxied,
12033
+ * not made reachable from outside, and not sent anywhere. A surface renders it
12034
+ * as a link the operator's own browser follows, on the operator's own network,
12035
+ * or renders nothing.
12036
+ */
12037
+ /**
12038
+ * Whose page is it. The distinction is for the OPERATOR, who needs to know
12039
+ * before clicking whether he is about to land on a camera's own web server or
12040
+ * inside Home Assistant.
12041
+ */
12042
+ var AdminLinkTargetEnum = z.enum(["device", "integration"]);
12043
+ var DeviceAdminLinkSchema = z.object({
12044
+ /**
12045
+ * Absolute `http(s)://` URL. Built by `buildDeviceAdminUrl` and therefore
12046
+ * free of userinfo and of any credential-shaped query key.
12047
+ */
12048
+ url: z.string(),
12049
+ /**
12050
+ * What the surface calls it — "Web UI", "Home Assistant", "UniFi controller".
12051
+ * The PROVIDER names it, because only the provider knows what the page is;
12052
+ * a UI that invented the label from the addon id would call the Home
12053
+ * Assistant device page "Provider Homeassistant".
12054
+ */
12055
+ label: z.string(),
12056
+ target: AdminLinkTargetEnum,
12057
+ /**
12058
+ * Host the URL points at, without scheme, port or path — for the tooltip, so
12059
+ * an operator can see WHERE the button goes before he follows it. Redundant
12060
+ * with `url` by construction; carried separately so no surface has to parse
12061
+ * a URL to show it.
12062
+ */
12063
+ host: z.string()
12064
+ });
12065
+ var deviceAdminLinkCapability = {
12066
+ name: "device-admin-link",
12067
+ scope: "device",
12068
+ deviceNative: true,
12069
+ mode: "singleton",
12070
+ methods: {
12071
+ /**
12072
+ * The device's management page, or `null` when this device has none.
12073
+ *
12074
+ * `auth: 'admin'` deliberately. This is administration, not actuation —
12075
+ * the same bucket as `reboot` and `camera-credentials`, and explicitly NOT
12076
+ * the actuation set `scripts/check-actuation-not-admin.ts` protects (D403).
12077
+ * The URL is also a statement about the LAN, which a household member with
12078
+ * a `view` grant on a light has no reason to be handed.
12079
+ *
12080
+ * The surfaces gate on the QUERY, never on a role they guessed: a caller
12081
+ * without the right loses the query and draws nothing, which is the same
12082
+ * thing a device with no page draws. There is no path on which a button
12083
+ * appears and then fails — the D403 failure mode, from the other end.
12084
+ */
12085
+ getAdminLink: method(z.object({ deviceId: z.number().int().nonnegative() }), DeviceAdminLinkSchema.nullable(), { auth: "admin" }) }
12086
+ };
12087
+ /**
11976
12088
  * `device-export` — collection cap for addons that export camstack
11977
12089
  * devices to external ecosystems (HomeAssistant via MQTT discovery,
11978
12090
  * HomeKit/HAP, Alexa Smart Home, …).
@@ -29259,6 +29371,390 @@ var dayNightCapability = {
29259
29371
  volatileStateFields: ["lastFetchedAt"]
29260
29372
  };
29261
29373
  /**
29374
+ * Vendor-neutral **onboard** recording + storage cap — what the CAMERA
29375
+ * writes to the CAMERA's own card, on the camera's own schedule.
29376
+ *
29377
+ * This is NOT `recording.cap.ts`. That one is CamStack's recorder: our
29378
+ * footage ledger, our storage locations, our retention. This one has a
29379
+ * different authority — the camera's firmware — and per D62 it stores
29380
+ * nothing of its own. Every value here is read from the camera and every
29381
+ * write goes back to the camera; there is no CamStack-side mirror that
29382
+ * could disagree with the device.
29383
+ *
29384
+ * ## One shape, two firmwares
29385
+ *
29386
+ * Measured 2026-09-22 against the live fleet:
29387
+ *
29388
+ * | fact | Hikvision (ISAPI) | Reolink (Baichuan) |
29389
+ * | --- | --- | --- |
29390
+ * | storage | `ContentMgmt/Storage` `<hdd>` rows: status, capacity, freeSpace (MB) | `getHddInfoList` (cmd 102): `mount`, `format`, `capacity` GB + `capacityM` MB remainder |
29391
+ * | tracks | several (101 **and** 103 on both 1436 and 3833), each with its own schedule | one per channel |
29392
+ * | schedule | per track, 7 `ScheduleAction` blocks: DayOfWeek + TimeOfDay range + ONE `ActionRecordingMode` | per trigger type, a 168-char weekly HOUR mask |
29393
+ * | triggers | `CMR`, `MOTION` | `Normal`, `MD`, `people`, `vehicle`, `dog_cat`, `crossline`, `intrude`, `loitering` |
29394
+ * | pre-record | `PreRecordTimeSeconds` | `preRecordTime` |
29395
+ * | post-record | `PostRecordTimeSeconds` | `recordDelayTime` |
29396
+ * | overwrite | per track `LoopEnable` | `cycle`, with `cycleList` enumerating the accepted values |
29397
+ * | segment length | not exposed on V5.7.1 | `packageTime` (minutes) |
29398
+ *
29399
+ * The two schedule models look different and are the same thing in
29400
+ * different coordinates: both answer "for this trigger, during which
29401
+ * weekly windows does the camera record". {@link RecordWindow} is that
29402
+ * question in one shape — Hikvision's ranges map straight onto it,
29403
+ * Reolink's mask expands into hour-aligned windows.
29404
+ *
29405
+ * ## Union, not intersection
29406
+ *
29407
+ * **The same fields exist on every camera.** What differs per device is
29408
+ * which VALUES that device accepts, and that is what {@link
29409
+ * RecordingOnboardOptions} reports — a `{ readable, writable, reason }`
29410
+ * per field plus the schedule's own limits. A control a camera cannot
29411
+ * honour is rendered DISABLED WITH ITS REASON, never missing and never
29412
+ * dead: disabled must not look like broken.
29413
+ *
29414
+ * ## Refusal by name
29415
+ *
29416
+ * A write a camera cannot honour is refused with a sentence the operator
29417
+ * can read — never accepted and dropped. Both providers refuse through
29418
+ * {@link describeOnboardRefusal}, so the vocabulary is one function and
29419
+ * one test, not two hand-written vendor opinions.
29420
+ *
29421
+ * Follows the D14 `deviceConfig` archetype (see `stream-params.cap.ts`):
29422
+ * `getOptions` advertises per-camera availability, `getStatus` (auto-
29423
+ * injected from `status`) reports the live values, and a single
29424
+ * `setSettings` mutation applies a partial change. No hand-written
29425
+ * settings-contribution methods.
29426
+ */
29427
+ /**
29428
+ * What makes the camera start recording during a window.
29429
+ *
29430
+ * The union of both vendors' vocabularies. `continuous` is Hikvision's
29431
+ * `CMR` and Reolink's `Normal`; `motion` is `MOTION` / `MD`. The
29432
+ * object-class triggers are Reolink-only today and the smart-event ones
29433
+ * (`lineCrossing`, `intrusion`, `loitering`) are Reolink-only on the
29434
+ * firmwares measured — a camera that cannot record on a trigger simply
29435
+ * does not list it in `options.schedule.triggers`, and a window naming
29436
+ * it is REFUSED, not dropped.
29437
+ */
29438
+ var RecordTriggerSchema = z.enum([
29439
+ "continuous",
29440
+ "motion",
29441
+ "person",
29442
+ "vehicle",
29443
+ "animal",
29444
+ "lineCrossing",
29445
+ "intrusion",
29446
+ "loitering",
29447
+ "alarmInput"
29448
+ ]);
29449
+ /**
29450
+ * One weekly recording window: "on `day`, from `startMinute` to
29451
+ * `endMinute`, record on `trigger`".
29452
+ *
29453
+ * `day` is 0 = Monday … 6 = Sunday (ISO order, which is also the order
29454
+ * both firmwares enumerate). Minutes are local camera time since
29455
+ * midnight; `endMinute` may be 1440, meaning end of day — that is
29456
+ * Hikvision's literal `24:00` and Reolink's 24th mask slot, and
29457
+ * collapsing it to 0 would turn a whole-day window into an empty one.
29458
+ */
29459
+ var RecordWindowSchema = z.object({
29460
+ trigger: RecordTriggerSchema,
29461
+ day: z.number().int().min(0).max(6),
29462
+ startMinute: z.number().int().min(0).max(1439),
29463
+ endMinute: z.number().int().min(1).max(1440)
29464
+ });
29465
+ /** Status of one physical volume, as the camera itself describes it. */
29466
+ var OnboardStorageVolumeSchema = z.object({
29467
+ /** The camera's own id for the volume (`hdd/id`, Reolink `HddInfo/number`). */
29468
+ id: z.string(),
29469
+ /** The camera's own name for it, when it gives one (`hddName`). */
29470
+ label: z.string().optional(),
29471
+ status: z.enum([
29472
+ "ok",
29473
+ "unformatted",
29474
+ "error",
29475
+ "offline",
29476
+ "unknown"
29477
+ ]),
29478
+ /**
29479
+ * Total size in MB, or **null when the camera did not say**.
29480
+ *
29481
+ * Never 0 for an unreadable value: a measurement that failed is not a
29482
+ * measurement (D393), and a card whose size is unknown must not be
29483
+ * rendered as a card of size zero.
29484
+ */
29485
+ capacityMb: z.number().nullable(),
29486
+ /**
29487
+ * Free space in MB, or null when unknown.
29488
+ *
29489
+ * **Not a proxy for "has footage".** Measured 2026-09-22: 1436 and
29490
+ * 1439 both report exactly 11776 MB free — the fixed reserve a looping
29491
+ * card converges on once it has wrapped. At loop steady state the
29492
+ * number is identical whether the camera recorded yesterday or stopped
29493
+ * a month ago.
29494
+ */
29495
+ freeMb: z.number().nullable(),
29496
+ /** True when the camera reports the volume writable (`property` RW). */
29497
+ writable: z.boolean().optional()
29498
+ });
29499
+ /**
29500
+ * Whether the camera has usable onboard storage.
29501
+ *
29502
+ * Three states, never two: an unreadable answer is `unknown`, never
29503
+ * folded into `absent`. Folding a failed read into "no card" is how a
29504
+ * healthy camera gets reported as broken, and the inverse is how a
29505
+ * camera with no card reports `ok` and then an empty list (D393).
29506
+ */
29507
+ var OnboardStorageSchema = z.discriminatedUnion("kind", [
29508
+ z.object({
29509
+ kind: z.literal("present"),
29510
+ volumes: z.array(OnboardStorageVolumeSchema)
29511
+ }),
29512
+ z.object({
29513
+ kind: z.literal("absent"),
29514
+ reason: z.string()
29515
+ }),
29516
+ z.object({
29517
+ kind: z.literal("unknown"),
29518
+ reason: z.string()
29519
+ })
29520
+ ]);
29521
+ /**
29522
+ * One recording track the camera exposes. Read-only.
29523
+ *
29524
+ * Hikvision lists several — 1436 and 3833 each list 101 AND 103, with
29525
+ * DIFFERENT schedules (101 MOTION all day, 103 CMR 00:05–23:57) — so a
29526
+ * cap that reported one number for "the schedule" would be lying on
29527
+ * every Hikvision in the fleet. Reolink has exactly one per channel.
29528
+ *
29529
+ * There is deliberately **no `framerate`**. Hikvision declares it in the
29530
+ * track `Description` and it is WRONG: 1436 says `2.260000 fps` while
29531
+ * the media measures 12.55 fps. `codec` and `resolution` from the same
29532
+ * string ARE right — those are the only two worth surfacing.
29533
+ */
29534
+ var OnboardRecordTrackSchema = z.object({
29535
+ id: z.string(),
29536
+ enabled: z.boolean(),
29537
+ isVideo: z.boolean(),
29538
+ /** From the camera's own track description. Null when it does not say. */
29539
+ codec: z.string().nullable(),
29540
+ resolution: z.string().nullable(),
29541
+ /** Per-track overwrite flag, where the firmware keeps it per track. */
29542
+ overwriteWhenFull: z.boolean().nullable()
29543
+ });
29544
+ /**
29545
+ * What the camera is doing with its own storage, right now.
29546
+ *
29547
+ * Every scalar is nullable and **null means the camera did not answer**,
29548
+ * never a default. A form that seeds `0` from an unanswered read invites
29549
+ * the operator to save that 0 back onto the camera.
29550
+ */
29551
+ var RecordingOnboardStatusSchema = z.object({
29552
+ storage: OnboardStorageSchema,
29553
+ tracks: z.array(OnboardRecordTrackSchema),
29554
+ /**
29555
+ * The track the write path targets — the enabled VIDEO one. Null when
29556
+ * no track could be identified, which is itself a refusal reason.
29557
+ */
29558
+ primaryTrackId: z.string().nullable(),
29559
+ /** Master "record to the card at all" switch. */
29560
+ enabled: z.boolean().nullable(),
29561
+ overwriteWhenFull: z.boolean().nullable(),
29562
+ preRecordSec: z.number().nullable(),
29563
+ postRecordSec: z.number().nullable(),
29564
+ /** Length of one recorded file, in minutes. */
29565
+ segmentMinutes: z.number().nullable(),
29566
+ /** The primary track's weekly windows, flattened. */
29567
+ windows: z.array(RecordWindowSchema),
29568
+ /**
29569
+ * How many windows the camera described that CamStack could NOT read —
29570
+ * an unrecognised trigger, an unparseable clock, a weekday it does not
29571
+ * name.
29572
+ *
29573
+ * A dropped window is work the reader threw away, and a schedule that
29574
+ * silently shows fewer rows than the camera holds is how an operator
29575
+ * saves back a schedule shorter than the one they were looking at
29576
+ * (D391). Non-zero means the window list is INCOMPLETE and a write
29577
+ * that replaces it would delete what was not shown — which is why a
29578
+ * provider reporting a non-zero count also reports the schedule as not
29579
+ * writable.
29580
+ */
29581
+ unreadableWindows: z.number(),
29582
+ /**
29583
+ * The camera is scheduled to record and has NO usable storage.
29584
+ *
29585
+ * A first-class fact because it is the fleet's most common silent
29586
+ * defect: measured 2026-09-22, 1441 and 3831 are both motion-recording
29587
+ * to a card that is not there. Neither the schedule nor the storage
29588
+ * read says anything wrong on its own; only the pair does.
29589
+ */
29590
+ recordingToNowhere: z.boolean(),
29591
+ lastFetchedAt: z.number()
29592
+ });
29593
+ /** Numeric range descriptor — `{ min, max, step }` per the getOptions convention. */
29594
+ var RangeSchema = z.object({
29595
+ min: z.number(),
29596
+ max: z.number(),
29597
+ step: z.number()
29598
+ });
29599
+ /**
29600
+ * The values a camera actually takes for a numeric field, when they are a SET
29601
+ * rather than a range.
29602
+ *
29603
+ * `{min,max,step}` cannot say what these two firmwares do. Measured on 1436
29604
+ * (I91DN) on 2026-09-22 by writing each value and reading it back:
29605
+ *
29606
+ * - pre-record: `0, 5, 10, 15, 20, 25, 30` and `2147483647` (INT32_MAX, the
29607
+ * camera's "no limit" — `-1` and `4294967295` both land on it);
29608
+ * - post-record: `5, 10, 30, 60, 120, 300, 600`.
29609
+ *
29610
+ * Neither is expressible as a step: the first has a sentinel two billion away
29611
+ * from its neighbours, the second doubles and then jumps. A range that tried
29612
+ * would forbid values the camera takes AND permit values it silently replaces
29613
+ * with 5 — wrong in both directions at once.
29614
+ *
29615
+ * `sentinel` names the member that is not a duration, so a surface can render
29616
+ * "no limit" instead of `2147483647` seconds.
29617
+ */
29618
+ var AllowedValuesSchema = z.object({
29619
+ values: z.array(z.number()).min(1),
29620
+ sentinel: z.object({
29621
+ value: z.number(),
29622
+ meaning: z.enum(["no-limit", "disabled"])
29623
+ }).optional()
29624
+ });
29625
+ /**
29626
+ * Per-field availability on ONE camera.
29627
+ *
29628
+ * The field exists on every camera — this says whether this one can be
29629
+ * read and whether it can be written, and `reason` says why not when
29630
+ * either is false. The UI renders the control DISABLED with the reason
29631
+ * rather than hiding it, so a limitation is legible instead of looking
29632
+ * like a missing feature.
29633
+ */
29634
+ var OnboardFieldSupportSchema = z.object({
29635
+ readable: z.boolean(),
29636
+ writable: z.boolean(),
29637
+ /** Required whenever `readable` or `writable` is false. */
29638
+ reason: z.string().optional()
29639
+ });
29640
+ /** What this camera's schedule model can express. */
29641
+ var OnboardScheduleSupportSchema = z.object({
29642
+ support: OnboardFieldSupportSchema,
29643
+ /**
29644
+ * The smallest time step the camera can express, in minutes.
29645
+ *
29646
+ * Hikvision takes arbitrary minutes (`00:05:00`–`23:57:00` observed on
29647
+ * 1436's track 103). Reolink's schedule is a 7×24 HOUR mask, so 60. A
29648
+ * window whose edges are not a multiple of this is REFUSED rather than
29649
+ * quietly rounded — rounding is how an operator's 06:30 becomes 06:00
29650
+ * and nothing says so.
29651
+ */
29652
+ granularityMinutes: z.number(),
29653
+ /** Triggers this camera can record on. A window naming another is refused. */
29654
+ triggers: z.array(RecordTriggerSchema),
29655
+ /**
29656
+ * False when the camera stores ONE trigger per time range, so two
29657
+ * windows overlapping on the same day cannot carry different triggers.
29658
+ * True on Reolink, whose mask is per-trigger and independent.
29659
+ */
29660
+ supportsOverlappingTriggers: z.boolean()
29661
+ });
29662
+ var RecordingOnboardOptionsSchema = z.object({
29663
+ enabled: OnboardFieldSupportSchema,
29664
+ overwriteWhenFull: OnboardFieldSupportSchema,
29665
+ preRecordSec: OnboardFieldSupportSchema,
29666
+ preRecordSecRange: RangeSchema.optional(),
29667
+ /** Preferred over the range when the camera takes a SET, not a span. */
29668
+ preRecordSecAllowed: AllowedValuesSchema.optional(),
29669
+ postRecordSec: OnboardFieldSupportSchema,
29670
+ postRecordSecRange: RangeSchema.optional(),
29671
+ /** Preferred over the range when the camera takes a SET, not a span. */
29672
+ postRecordSecAllowed: AllowedValuesSchema.optional(),
29673
+ segmentMinutes: OnboardFieldSupportSchema,
29674
+ segmentMinutesRange: RangeSchema.optional(),
29675
+ /** Preferred over the range when the camera takes a SET, not a span. */
29676
+ segmentMinutesAllowed: AllowedValuesSchema.optional(),
29677
+ schedule: OnboardScheduleSupportSchema
29678
+ });
29679
+ /**
29680
+ * A partial change. Every field optional.
29681
+ *
29682
+ * Unlike the other `deviceConfig` caps, a provider here does **NOT**
29683
+ * silently ignore a field it cannot support — it refuses, by name,
29684
+ * through {@link describeOnboardRefusal}. Silence on a recording setting
29685
+ * is the failure D62 exists to prevent: the operator believes the camera
29686
+ * is recording the way the form says, and it is not.
29687
+ */
29688
+ var RecordingOnboardPatchSchema = z.object({
29689
+ enabled: z.boolean().optional(),
29690
+ overwriteWhenFull: z.boolean().optional(),
29691
+ preRecordSec: z.number().optional(),
29692
+ postRecordSec: z.number().optional(),
29693
+ segmentMinutes: z.number().optional(),
29694
+ /** The complete new window set for the primary track — not a delta. */
29695
+ windows: z.array(RecordWindowSchema).optional()
29696
+ });
29697
+ var recordingOnboardCapability = {
29698
+ name: "recording-onboard",
29699
+ scope: "device",
29700
+ deviceNative: true,
29701
+ mode: "singleton",
29702
+ deviceTypes: [DeviceType.Camera],
29703
+ deviceConfig: { ui: {
29704
+ kind: "derived-form",
29705
+ builderId: "recording-onboard",
29706
+ tab: "recording"
29707
+ } },
29708
+ methods: {
29709
+ getOptions: method(z.object({ deviceId: z.number() }), RecordingOnboardOptionsSchema),
29710
+ setSettings: method(z.object({
29711
+ deviceId: z.number(),
29712
+ settings: RecordingOnboardPatchSchema
29713
+ }), z.void(), {
29714
+ kind: "mutation",
29715
+ auth: "admin"
29716
+ })
29717
+ },
29718
+ status: {
29719
+ schema: RecordingOnboardStatusSchema,
29720
+ kind: "poll"
29721
+ },
29722
+ runtimeState: RecordingOnboardStatusSchema,
29723
+ /**
29724
+ * Runtime-state durability: **restored** — operator-set camera-side
29725
+ * recording config; mutation-driven, and the storage half is the last
29726
+ * thing the camera said about its own card.
29727
+ *
29728
+ * See `RuntimeStateDurability`. Enforced by
29729
+ * `scripts/check-runtime-state-durability.ts`.
29730
+ */
29731
+ durability: "restored",
29732
+ /** Clock fields: written, but excluded from the compare that decides
29733
+ * whether persisting is worth a SQLite commit. */
29734
+ volatileStateFields: ["lastFetchedAt"]
29735
+ };
29736
+ /** Minutes in a day. `endMinute === 1440` means "to end of day". */
29737
+ var MINUTES_PER_DAY = 1440;
29738
+ /**
29739
+ * Day-of-week names in the cap's index order (0 = Monday), for messages
29740
+ * an operator reads and for Hikvision's `<DayOfWeek>` element.
29741
+ */
29742
+ var DAY_NAMES = [
29743
+ "Monday",
29744
+ "Tuesday",
29745
+ "Wednesday",
29746
+ "Thursday",
29747
+ "Friday",
29748
+ "Saturday",
29749
+ "Sunday"
29750
+ ];
29751
+ /** `510` → `08:30`. For messages, not for the wire. */
29752
+ function formatMinutes(minute) {
29753
+ const hour = Math.floor(minute / 60);
29754
+ const rest = minute % 60;
29755
+ return `${String(hour).padStart(2, "0")}:${String(rest).padStart(2, "0")}`;
29756
+ }
29757
+ /**
29262
29758
  * Generic device-level status snapshot. Auto-registered by `BaseDevice`
29263
29759
  * for every device, regardless of provider — the kernel needs a uniform
29264
29760
  * cap-keyed slice for the basic device flags every consumer expects to
@@ -39467,6 +39963,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
39467
39963
  pressureSensor: pressureSensorCapability,
39468
39964
  privacyMask: privacyMaskCapability,
39469
39965
  ptzAutotrack: ptzAutotrackCapability,
39966
+ recordingOnboard: recordingOnboardCapability,
39470
39967
  recordingSignal: recordingSignalCapability,
39471
39968
  sceneMonitor: sceneMonitorCapability,
39472
39969
  scriptRunner: scriptRunnerCapability,
@@ -41820,6 +42317,7 @@ var CAP_NAMES_WITH_STATUS = [
41820
42317
  "ptz",
41821
42318
  "ptz-autotrack",
41822
42319
  "recording",
42320
+ "recording-onboard",
41823
42321
  "recording-signal",
41824
42322
  "scene-monitor",
41825
42323
  "script-runner",
@@ -41890,6 +42388,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
41890
42388
  dayNightCapability,
41891
42389
  decoderCapability,
41892
42390
  detectionPipelineCapability,
42391
+ deviceAdminLinkCapability,
41893
42392
  deviceAdoptionCapability,
41894
42393
  deviceDiscoveryCapability,
41895
42394
  deviceExportCapability,
@@ -41964,6 +42463,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
41964
42463
  rebootCapability,
41965
42464
  recordingCapability,
41966
42465
  recordingExportCapability,
42466
+ recordingOnboardCapability,
41967
42467
  recordingSignalCapability,
41968
42468
  sceneMonitorCapability,
41969
42469
  scriptRunnerCapability,
@@ -43308,6 +43808,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
43308
43808
  addonId: null,
43309
43809
  access: "view"
43310
43810
  },
43811
+ "deviceAdminLink.getAdminLink": {
43812
+ capName: "device-admin-link",
43813
+ capScope: "device",
43814
+ addonId: null,
43815
+ access: "view"
43816
+ },
43311
43817
  "deviceAdoption.adopt": {
43312
43818
  capName: "device-adoption",
43313
43819
  capScope: "system",
@@ -47346,6 +47852,24 @@ var METHOD_ACCESS_MAP = Object.freeze({
47346
47852
  addonId: null,
47347
47853
  access: "view"
47348
47854
  },
47855
+ "recordingOnboard.getOptions": {
47856
+ capName: "recording-onboard",
47857
+ capScope: "device",
47858
+ addonId: null,
47859
+ access: "view"
47860
+ },
47861
+ "recordingOnboard.getStatus": {
47862
+ capName: "recording-onboard",
47863
+ capScope: "device",
47864
+ addonId: null,
47865
+ access: "view"
47866
+ },
47867
+ "recordingOnboard.setSettings": {
47868
+ capName: "recording-onboard",
47869
+ capScope: "device",
47870
+ addonId: null,
47871
+ access: "create"
47872
+ },
47349
47873
  "recordingSignal.getStatus": {
47350
47874
  capName: "recording-signal",
47351
47875
  capScope: "device",
@@ -49232,6 +49756,11 @@ Object.freeze({
49232
49756
  form: "single",
49233
49757
  optional: true
49234
49758
  }],
49759
+ "deviceAdminLink.getAdminLink": [{
49760
+ name: "deviceId",
49761
+ form: "single",
49762
+ optional: false
49763
+ }],
49235
49764
  "deviceAdoption.release": [{
49236
49765
  name: "camDeviceId",
49237
49766
  form: "single",
@@ -50617,6 +51146,16 @@ Object.freeze({
50617
51146
  form: "single",
50618
51147
  optional: true
50619
51148
  }],
51149
+ "recordingOnboard.getOptions": [{
51150
+ name: "deviceId",
51151
+ form: "single",
51152
+ optional: false
51153
+ }],
51154
+ "recordingOnboard.setSettings": [{
51155
+ name: "deviceId",
51156
+ form: "single",
51157
+ optional: false
51158
+ }],
50620
51159
  "recordingSignal.getStatus": [{
50621
51160
  name: "deviceId",
50622
51161
  form: "single",
@@ -51000,7 +51539,7 @@ Object.freeze({
51000
51539
  });
51001
51540
  /**
51002
51541
  * Per-cap runtime-state policy, projected from every `*.cap.ts` that declares
51003
- * `runtimeState`. 68 caps: 35 `restored`, 33 `session`.
51542
+ * `runtimeState`. 69 caps: 36 `restored`, 33 `session`.
51004
51543
  *
51005
51544
  * A cap absent from this map has no runtime-state slice at all. A cap PRESENT
51006
51545
  * with `durability: 'session'` has one and has decided not to keep it.
@@ -51202,6 +51741,10 @@ var RUNTIME_STATE_POLICY = {
51202
51741
  durability: "session",
51203
51742
  volatileFields: []
51204
51743
  },
51744
+ "recording-onboard": {
51745
+ durability: "restored",
51746
+ volatileFields: ["lastFetchedAt"]
51747
+ },
51205
51748
  "recording-signal": {
51206
51749
  durability: "session",
51207
51750
  volatileFields: []
@@ -51990,4 +52533,4 @@ function enumerateInferenceDevices(hw) {
51990
52533
  return out;
51991
52534
  }
51992
52535
  //#endregion
51993
- export { deviceStateCapability as $, storageProviderCapability as $t, StorageLocationModeSchema as A, parseJsonUnknown as An, motionCapability as At, bareAddonId as B, resolveContainerPrimaryChild as Bt, RecordingStatusSchema as C, emitReadiness as Cn, logDestinationCapability as Ct, STREAM_PROFILE_META as D, isEvent as Dn, mayWriteToLocation as Dt, STORAGE_ACCESS_FALLBACK as E, isDeviceConfigCap as En, mayReadLocation as Et, addonSettingsCapability as F, EventCategory as Fn, platformProbeCapability as Ft, coreBlockAddonId as G, scopesAllowDeviceCap as Gt, buildStreamParamsConfigSchema as H, resolveMethodAuth as Ht, addonWidgetsCapability as I, procedureAuthKey as It, dataStoreProviderCapability as J, siteZoneKey as Jt, coreBlockIdFromAddonId as K, scoreRuntimes as Kt, alertsCapability as L, ptzAutotrackCapability as Lt, StorageMigrationJobSchema as M, resolveCapMount as Mn, objectInputDeclaresAddonId as Mt, UserRecordSchema as N, scopeKey as Nn, objectInputDeclaresRequiredDeviceId as Nt, ScopedTokenSchema as O, nodePin as On, metricsProviderCapability as Ot, addonPagesCapability as P, sleep as Pn, parseStreamParamsFormPatch as Pt, deviceManagerCapability as Q, storageOccupancyCapability as Qt, authProviderCapability as R, reducePoints as Rt, RUNTIME_DEFAULTS as S, emitDownForOwnedCaps as Sn, locationIconKey as St, SOURCE_DEVICE_TYPES as T, hydrateSchema as Tn, looseSchema as Tt, cameraGridLayoutCapability as U, runtimeStatePolicyFor as Ut, batteryCapability as V, resolveLocationMode as Vt, collectSecretConfigKeys as W, scopesAllowAddon as Wt, decodeVectorBase64 as X, storageCapability as Xt, declarationOwnerNodeId as Y, snapshotCapability as Yt, deriveBatteryPresence as Z, storageMigrationCapability as Zt, LegacyStorageLocationDefaultSchema as _, WELL_KNOWN_TAB_MAP as _n, isVoidInput as _t, BatteryStatusSchema as a, withLocationMode as an, evaluateSensorEdge as at, MOTION_CLOSE_AFTER_MS as b, asString as bn, lifecycleJobSchema as bt, CORE_BLOCKS_ADDON_ID as c, BaseAddon as cn, filesystemBrowseCapability as ct, DEFAULT_FIRST_SIGHTING_FRESHNESS_MS as d, DEVICE_STATUS_METHOD as dn, isArrayOutputSchema as dt, streamCatalogCapability as en, deviceStatusCapability as et, DERIVED_CAMERA_SILENCED_CAP_NAMES as f, DeviceFeature as fn, isCollectionArrayMethod as ft, LOG_LEVEL_RANK as g, ReadinessTimeoutError as gn, isSourceCap as gt, FIRST_LEVEL_MACRO_CLASSES as h, ReadinessRegistry as hn, isSameAddonId as ht, BaseDevice as i, vectorStoreCapability as in, enumerateSchemaFields as it, StorageLocationTypeSchema as j, readinessKey as jn, normalizeUnit as jt, StorageCleanupJobSchema as k, parseJsonObject as kn, modeMayWrite as kt, CORE_BLOCK_ADDON_PREFIX as l, DATAPLANE_SECRET_HEADER as ln, foldSnapshotByFunction as lt, DeviceStatusSchema as m, DeviceType as mn, isObjectInput as mt, AlertSchema as n, userManagementCapability as nn, enumerateInferenceDevices as nt, CAMERA_SWITCH_ORDER as o, errMsg as on, evictionPolicyOfLocation as ot, DeclaredDevices as p, DeviceRole as pn, isLocationEnabled as pt, coreBlocksCapability as q, settingsStoreCapability as qt, ApiKeyRecordSchema as r, vectorDimFromBase64 as rn, enumerateItemArrayFields as rt, CAP_NAMES_WITH_STATUS as s, buildFfmpegArgs as sn, extractNestedAddonId as st, ALL_CAPABILITY_DEFINITIONS as t, streamQualityLabel as tn, doorbellCapability as tt, CoreBlockSchema as u, DEVICE_SETTINGS_CONTRIBUTION_METHODS as un, gbToBytes as ut, LocationIconIdSchema as v, asJsonObject as vn, kebabToCamel as vt, SOURCE_CAPS as w, expandCapMethods as wn, logLevelAtMost as wt, REDACTED_SECRET as x, createEvent as xn, localNetworkCapability as xt, METHOD_ACCESS_MAP as y, asNumber as yn, legacyModeOf as yt, backupCapability as z, resolveBucketMs as zt };
52536
+ export { deriveBatteryPresence as $, storageCapability as $t, ScopedTokenSchema as A, isEvent as An, mayWriteToLocation as At, authProviderCapability as B, ptzAutotrackCapability as Bt, REDACTED_SECRET as C, asString as Cn, lifecycleJobSchema as Ct, SOURCE_DEVICE_TYPES as D, expandCapMethods as Dn, logLevelAtMost as Dt, SOURCE_CAPS as E, emitReadiness as En, logDestinationCapability as Et, UserRecordSchema as F, resolveCapMount as Fn, objectInputDeclaresAddonId as Ft, cameraGridLayoutCapability as G, resolveMethodAuth as Gt, bareAddonId as H, resolveBucketMs as Ht, addonPagesCapability as I, scopeKey as In, objectInputDeclaresRequiredDeviceId as It, coreBlockIdFromAddonId as J, scopesAllowDeviceCap as Jt, collectSecretConfigKeys as K, runtimeStatePolicyFor as Kt, addonSettingsCapability as L, sleep as Ln, parseStreamParamsFormPatch as Lt, StorageLocationModeSchema as M, parseJsonObject as Mn, modeMayWrite as Mt, StorageLocationTypeSchema as N, parseJsonUnknown as Nn, motionCapability as Nt, STORAGE_ACCESS_FALLBACK as O, hydrateSchema as On, looseSchema as Ot, StorageMigrationJobSchema as P, readinessKey as Pn, normalizeUnit as Pt, decodeVectorBase64 as Q, snapshotCapability as Qt, addonWidgetsCapability as R, EventCategory as Rn, platformProbeCapability as Rt, MOTION_CLOSE_AFTER_MS as S, asNumber as Sn, legacyModeOf as St, RecordingStatusSchema as T, emitDownForOwnedCaps as Tn, locationIconKey as Tt, batteryCapability as U, resolveContainerPrimaryChild as Ut, backupCapability as V, reducePoints as Vt, buildStreamParamsConfigSchema as W, resolveLocationMode as Wt, dataStoreProviderCapability as X, settingsStoreCapability as Xt, coreBlocksCapability as Y, scoreRuntimes as Yt, declarationOwnerNodeId as Z, siteZoneKey as Zt, LOG_LEVEL_RANK as _, DeviceType as _n, isObjectInput as _t, BatteryStatusSchema as a, userManagementCapability as an, enumerateItemArrayFields as at, METHOD_ACCESS_MAP as b, WELL_KNOWN_TAB_MAP as bn, isVoidInput as bt, CORE_BLOCKS_ADDON_ID as c, withLocationMode as cn, evictionPolicyOfLocation as ct, DAY_NAMES as d, BaseAddon as dn, foldSnapshotByFunction as dt, storageMigrationCapability as en, deviceManagerCapability as et, DEFAULT_FIRST_SIGHTING_FRESHNESS_MS as f, DATAPLANE_SECRET_HEADER as fn, formatMinutes as ft, FIRST_LEVEL_MACRO_CLASSES as g, DeviceRole as gn, isLocationEnabled as gt, DeviceStatusSchema as h, DeviceFeature as hn, isCollectionArrayMethod as ht, BaseDevice as i, streamQualityLabel as in, enumerateInferenceDevices as it, StorageCleanupJobSchema as j, nodePin as jn, metricsProviderCapability as jt, STREAM_PROFILE_META as k, isDeviceConfigCap as kn, mayReadLocation as kt, CORE_BLOCK_ADDON_PREFIX as l, errMsg as ln, extractNestedAddonId as lt, DeclaredDevices as m, DEVICE_STATUS_METHOD as mn, isArrayOutputSchema as mt, AlertSchema as n, storageProviderCapability as nn, deviceStatusCapability as nt, CAMERA_SWITCH_ORDER as o, vectorDimFromBase64 as on, enumerateSchemaFields as ot, DERIVED_CAMERA_SILENCED_CAP_NAMES as p, DEVICE_SETTINGS_CONTRIBUTION_METHODS as pn, gbToBytes as pt, coreBlockAddonId as q, scopesAllowAddon as qt, ApiKeyRecordSchema as r, streamCatalogCapability as rn, doorbellCapability as rt, CAP_NAMES_WITH_STATUS as s, vectorStoreCapability as sn, evaluateSensorEdge as st, ALL_CAPABILITY_DEFINITIONS as t, storageOccupancyCapability as tn, deviceStateCapability as tt, CoreBlockSchema as u, buildFfmpegArgs as un, filesystemBrowseCapability as ut, LegacyStorageLocationDefaultSchema as v, ReadinessRegistry as vn, isSameAddonId as vt, RUNTIME_DEFAULTS as w, createEvent as wn, localNetworkCapability as wt, MINUTES_PER_DAY as x, asJsonObject as xn, kebabToCamel as xt, LocationIconIdSchema as y, ReadinessTimeoutError as yn, isSourceCap as yt, alertsCapability as z, procedureAuthKey as zt };
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_chunk = require("./chunk-Cek0wNdY.js");
3
- const require_dist = require("./dist-C51Z6L6t.js");
3
+ const require_dist = require("./dist-BYnHJU96.js");
4
4
  const require_builtins_alerts_alerts_addon = require("./builtins/alerts/alerts.addon.js");
5
5
  require("./builtins/alerts/index.js");
6
6
  const require_formatter = require("./formatter-DqAKDlvN.js");
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM$1, r as __exportAll, t as __commonJSMin$1 } from "./chunk-CNf5ZN-e.mjs";
2
- import { An as parseJsonUnknown, F as addonSettingsCapability, Fn as EventCategory$1, Gt as scopesAllowDeviceCap, Ht as resolveMethodAuth, It as procedureAuthKey, Mn as resolveCapMount, Mt as objectInputDeclaresAddonId, Nn as scopeKey, Nt as objectInputDeclaresRequiredDeviceId, S as RUNTIME_DEFAULTS, Sn as emitDownForOwnedCaps, Tt as looseSchema, Wt as scopesAllowAddon, _t as isVoidInput, bn as asString$1, bt as lifecycleJobSchema, dn as DEVICE_STATUS_METHOD, dt as isArrayOutputSchema, ft as isCollectionArrayMethod, g as LOG_LEVEL_RANK, gn as ReadinessTimeoutError, hn as ReadinessRegistry, jn as readinessKey, kn as parseJsonObject, ln as DATAPLANE_SECRET_HEADER$1, mt as isObjectInput, on as errMsg$1, st as extractNestedAddonId, t as ALL_CAPABILITY_DEFINITIONS, un as DEVICE_SETTINGS_CONTRIBUTION_METHODS, vn as asJsonObject$1, vt as kebabToCamel, wn as expandCapMethods, wt as logLevelAtMost, xn as createEvent, y as METHOD_ACCESS_MAP, yn as asNumber } from "./dist-jv1aoo9E.mjs";
2
+ import { Cn as asString$1, Ct as lifecycleJobSchema, Dn as expandCapMethods, Dt as logLevelAtMost, Fn as resolveCapMount, Ft as objectInputDeclaresAddonId, Gt as resolveMethodAuth, In as scopeKey, It as objectInputDeclaresRequiredDeviceId, Jt as scopesAllowDeviceCap, L as addonSettingsCapability, Mn as parseJsonObject, Nn as parseJsonUnknown, Ot as looseSchema, Pn as readinessKey, Rn as EventCategory$1, Sn as asNumber, Tn as emitDownForOwnedCaps, _ as LOG_LEVEL_RANK, _t as isObjectInput, b as METHOD_ACCESS_MAP, bt as isVoidInput, fn as DATAPLANE_SECRET_HEADER$1, ht as isCollectionArrayMethod, ln as errMsg$1, lt as extractNestedAddonId, mn as DEVICE_STATUS_METHOD, mt as isArrayOutputSchema, pn as DEVICE_SETTINGS_CONTRIBUTION_METHODS, qt as scopesAllowAddon, t as ALL_CAPABILITY_DEFINITIONS, vn as ReadinessRegistry, w as RUNTIME_DEFAULTS, wn as createEvent, xn as asJsonObject$1, xt as kebabToCamel, yn as ReadinessTimeoutError, zt as procedureAuthKey } from "./dist-DKFb2936.mjs";
3
3
  import { AlertCenterAddon } from "./builtins/alerts/alerts.addon.mjs";
4
4
  import "./builtins/alerts/index.mjs";
5
5
  import { t as formatLogLine } from "./formatter-B7qW8bPJ.mjs";