@camstack/system 1.2.444 → 1.2.445

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 (142) hide show
  1. package/dist/addon-runner.js +40 -31
  2. package/dist/addon-runner.mjs +41 -32
  3. package/dist/{agent-https-DlpTMDqA.js → agent-https-CiOW0-sj.js} +810 -12
  4. package/dist/{agent-https-U0d4uvn2.mjs → agent-https-D4Q8iFNd.mjs} +697 -13
  5. package/dist/auth/admin-token-manager.d.ts +9 -3
  6. package/dist/auth/api-key-manager.d.ts +9 -3
  7. package/dist/auth/auth-audit-log.d.ts +9 -3
  8. package/dist/auth/device-credential-manager.d.ts +5 -1
  9. package/dist/auth/external-identity-manager.d.ts +8 -21
  10. package/dist/auth/login-session-manager.d.ts +11 -3
  11. package/dist/auth/scoped-token-manager.d.ts +8 -52
  12. package/dist/auth/totp-manager.d.ts +11 -3
  13. package/dist/auth/user-manager.d.ts +10 -17
  14. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  15. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  16. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  17. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  18. package/dist/builtins/alerts/alert-store.d.ts +32 -0
  19. package/dist/builtins/alerts/alerts.addon.d.ts +9 -2
  20. package/dist/builtins/alerts/alerts.addon.js +289 -150
  21. package/dist/builtins/alerts/alerts.addon.mjs +288 -150
  22. package/dist/builtins/alerts/record-kinds.d.ts +15 -0
  23. package/dist/builtins/autotrack/index.js +1 -1
  24. package/dist/builtins/autotrack/index.mjs +1 -1
  25. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.d.ts +1 -0
  26. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +134 -193
  27. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +134 -193
  28. package/dist/builtins/backup-orchestrator/destination-policy.d.ts +4 -2
  29. package/dist/builtins/backup-orchestrator/encryption-key-store.d.ts +4 -2
  30. package/dist/builtins/backup-orchestrator/record-kinds.d.ts +58 -0
  31. package/dist/builtins/backup-orchestrator/schedule-store.d.ts +4 -2
  32. package/dist/builtins/backup-orchestrator/seed-marker-store.d.ts +4 -2
  33. package/dist/builtins/calendars/calendar-prefs-store.d.ts +13 -5
  34. package/dist/builtins/calendars/calendars.addon.d.ts +2 -2
  35. package/dist/builtins/calendars/calendars.addon.js +67 -64
  36. package/dist/builtins/calendars/calendars.addon.mjs +59 -64
  37. package/dist/builtins/calendars/record-kinds.d.ts +18 -0
  38. package/dist/builtins/camera-grid/index.js +1 -1
  39. package/dist/builtins/camera-grid/index.mjs +1 -1
  40. package/dist/builtins/cluster-agent/record-kinds.d.ts +36 -0
  41. package/dist/builtins/composer/composer.addon.js +2 -2
  42. package/dist/builtins/composer/composer.addon.mjs +2 -2
  43. package/dist/builtins/console-logging/index.js +1 -1
  44. package/dist/builtins/console-logging/index.mjs +1 -1
  45. package/dist/builtins/core-blocks/block-settings-store.d.ts +8 -4
  46. package/dist/builtins/core-blocks/core-block-store.d.ts +8 -16
  47. package/dist/builtins/core-blocks/core-blocks.addon.js +85 -112
  48. package/dist/builtins/core-blocks/core-blocks.addon.mjs +86 -113
  49. package/dist/builtins/core-blocks/index.mjs +1 -1
  50. package/dist/builtins/core-blocks/record-kinds.d.ts +26 -0
  51. package/dist/builtins/device-manager/device-manager.addon.js +111 -187
  52. package/dist/builtins/device-manager/device-manager.addon.mjs +110 -187
  53. package/dist/builtins/device-manager/device-tombstone-store.d.ts +9 -48
  54. package/dist/builtins/device-manager/record-kinds.d.ts +14 -0
  55. package/dist/builtins/hub-forwarder/index.js +1 -1
  56. package/dist/builtins/hub-forwarder/index.mjs +1 -1
  57. package/dist/builtins/keychain/index.js +152 -22
  58. package/dist/builtins/keychain/index.mjs +152 -22
  59. package/dist/builtins/keychain/keychain-service.d.ts +3 -2
  60. package/dist/builtins/keychain/keychain-store.d.ts +13 -2
  61. package/dist/builtins/keychain/record-kinds.d.ts +16 -0
  62. package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  63. package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  64. package/dist/builtins/local-auth/auth-schema.d.ts +3 -1
  65. package/dist/builtins/local-auth/local-auth.addon.js +2903 -2123
  66. package/dist/builtins/local-auth/local-auth.addon.mjs +2904 -2124
  67. package/dist/builtins/local-auth/oauth-session-manager.d.ts +8 -48
  68. package/dist/builtins/local-auth/record-kinds.d.ts +141 -0
  69. package/dist/builtins/local-network/local-network.addon.js +2 -2
  70. package/dist/builtins/local-network/local-network.addon.mjs +2 -2
  71. package/dist/builtins/loki-logging/index.js +1 -1
  72. package/dist/builtins/loki-logging/index.mjs +1 -1
  73. package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  74. package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  75. package/dist/builtins/platform-probe/index.js +1 -1
  76. package/dist/builtins/platform-probe/index.mjs +1 -1
  77. package/dist/builtins/record-entries/index.js +1 -1
  78. package/dist/builtins/record-entries/index.mjs +1 -1
  79. package/dist/builtins/records/legacy-table-row-count.d.ts +5 -0
  80. package/dist/builtins/records/phase6-declare-gate.d.ts +28 -0
  81. package/dist/builtins/records-isolated.d.ts +10 -0
  82. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  83. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  84. package/dist/builtins/snapshot/index.js +1 -1
  85. package/dist/builtins/snapshot/index.mjs +1 -1
  86. package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  87. package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  88. package/dist/builtins/sqlite-storage/index.js +1 -1
  89. package/dist/builtins/sqlite-storage/index.mjs +1 -1
  90. package/dist/builtins/sqlite-storage/integration-record-kinds.d.ts +30 -0
  91. package/dist/builtins/sqlite-storage/integration-registry.d.ts +10 -16
  92. package/dist/builtins/sqlite-storage/records/count-settings-array-legacy.d.ts +5 -0
  93. package/dist/builtins/sqlite-storage/records/count-settings-brokers-legacy.d.ts +6 -0
  94. package/dist/builtins/sqlite-storage/records/records-engine-types.d.ts +5 -0
  95. package/dist/builtins/sqlite-storage/records/records-engine.d.ts +4 -0
  96. package/dist/builtins/sqlite-storage/records/records-provider.d.ts +5 -1
  97. package/dist/builtins/sqlite-storage/sqlite-settings-backend.d.ts +17 -0
  98. package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +111 -3
  99. package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +111 -3
  100. package/dist/builtins/sqlite-storage/storage-admin-provider.d.ts +9 -1
  101. package/dist/builtins/storage-orchestrator/drain-state-store.d.ts +5 -2
  102. package/dist/builtins/storage-orchestrator/location-store.d.ts +7 -2
  103. package/dist/builtins/storage-orchestrator/record-kinds.d.ts +38 -0
  104. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.d.ts +2 -0
  105. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +196 -5
  106. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +195 -6
  107. package/dist/builtins/system-config/record-kinds.d.ts +32 -0
  108. package/dist/builtins/system-config/system-config.addon.js +53 -618
  109. package/dist/builtins/system-config/system-config.addon.mjs +29 -577
  110. package/dist/builtins/winston-logging/index.js +1 -1
  111. package/dist/builtins/winston-logging/index.mjs +1 -1
  112. package/dist/{composition-sources-C3rKncIF.mjs → composition-sources-BMt5cFYb.mjs} +1 -1
  113. package/dist/{composition-sources-NAPZddic.js → composition-sources-D3fi9Xns.js} +1 -1
  114. package/dist/{constants-BKX2QnIg.mjs → constants-BMHCxRzb.mjs} +1 -1
  115. package/dist/{constants-BXiNEIeV.js → constants-Br879Axi.js} +1 -1
  116. package/dist/{device-ca-DT9X2S6d.js → device-ca-CnJ_va7i.js} +1 -1
  117. package/dist/{device-ca-jxjSL8Ov.mjs → device-ca-T8osSMos.mjs} +1 -1
  118. package/dist/{dist-DERK-gP5.mjs → dist-BNunRyXT.mjs} +174 -58
  119. package/dist/{dist-D1vECb_6.js → dist-DgOG8flk.js} +233 -57
  120. package/dist/file-host-worker.js +1 -1
  121. package/dist/file-host-worker.mjs +1 -1
  122. package/dist/{hub-mdns-ciao-Cah9GCIg.js → hub-mdns-ciao-BIkTHq-n.js} +2 -2
  123. package/dist/{hub-mdns-ciao-CRaC97V0.mjs → hub-mdns-ciao-D16oRQ9K.mjs} +2 -2
  124. package/dist/index.d.ts +7 -0
  125. package/dist/index.js +3093 -2820
  126. package/dist/index.mjs +3065 -2809
  127. package/dist/kernel/index.d.ts +2 -0
  128. package/dist/kernel/moleculer/event-bus.d.ts +3 -1
  129. package/dist/kernel/moleculer/mesh-mtls/mesh-certificate-registry.d.ts +5 -1
  130. package/dist/kernel/moleculer/remote-logger.d.ts +2 -2
  131. package/dist/kernel/transport/cap-route-resolver.d.ts +9 -38
  132. package/dist/phase6-declare-gate-Ci1-8uUn.js +98 -0
  133. package/dist/phase6-declare-gate-tkKOEitw.mjs +93 -0
  134. package/dist/read-all-rows-CVoO1ONM.js +29 -0
  135. package/dist/read-all-rows-TaPqdWNF.mjs +25 -0
  136. package/dist/records/read-all-rows.d.ts +6 -0
  137. package/dist/{restore-archive-daKyE24F.mjs → restore-archive-DR9MtO7J.mjs} +339 -9
  138. package/dist/{restore-archive-Dy-qKTdF.js → restore-archive-DjJnCgap.js} +353 -5
  139. package/dist/tls/agent-https-names.d.ts +9 -13
  140. package/dist/{wal-maintenance-dAv4IdzC.js → wal-maintenance-CODGqhKY.js} +0 -0
  141. package/dist/{wal-maintenance-zRc24mOC.mjs → wal-maintenance-CfvgtQ7C.mjs} +0 -0
  142. package/package.json +1 -1
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  const require_chunk = require("../../chunk-Cek0wNdY.js");
6
- const require_dist = require("../../dist-D1vECb_6.js");
6
+ const require_dist = require("../../dist-DgOG8flk.js");
7
7
  const require_formatter = require("../../formatter-DqAKDlvN.js");
8
8
  let node_path = require("node:path");
9
9
  node_path = require_chunk.__toESM(node_path);
@@ -1,4 +1,4 @@
1
- import { Fr as BaseAddon, _n as logDestinationCapability } from "../../dist-DERK-gP5.mjs";
1
+ import { Rr as BaseAddon, xn as logDestinationCapability } from "../../dist-BNunRyXT.mjs";
2
2
  import { t as formatLogLine } from "../../formatter-B7qW8bPJ.mjs";
3
3
  import * as path$1 from "node:path";
4
4
  import path from "node:path";
@@ -1,4 +1,4 @@
1
- import { Dr as compositionSourceKey, Pr as errMsg } from "./dist-DERK-gP5.mjs";
1
+ import { Ar as compositionSourceKey, Lr as errMsg } from "./dist-BNunRyXT.mjs";
2
2
  //#region src/builtins/core-blocks/composition-sources.ts
3
3
  /**
4
4
  * Describe what a composition reads and writes for SAVE-time validation
@@ -1,4 +1,4 @@
1
- const require_dist = require("./dist-D1vECb_6.js");
1
+ const require_dist = require("./dist-DgOG8flk.js");
2
2
  //#region src/builtins/core-blocks/composition-sources.ts
3
3
  /**
4
4
  * Describe what a composition reads and writes for SAVE-time validation
@@ -1,4 +1,4 @@
1
- import { mi as buildSecretRef } from "./dist-DERK-gP5.mjs";
1
+ import { vi as buildSecretRef } from "./dist-BNunRyXT.mjs";
2
2
  /** `secret://system/global/meshCaKey` — EC P-256 PKCS#8 PEM of the hub mesh CA. */
3
3
  var MESH_CA_KEY_REF = buildSecretRef({
4
4
  owner: "system",
@@ -1,5 +1,5 @@
1
1
  /** `secret://system/global/meshCaKey` — EC P-256 PKCS#8 PEM of the hub mesh CA. */
2
- var MESH_CA_KEY_REF = require("./dist-D1vECb_6.js").buildSecretRef({
2
+ var MESH_CA_KEY_REF = require("./dist-DgOG8flk.js").buildSecretRef({
3
3
  owner: "system",
4
4
  scope: { kind: "global" },
5
5
  fieldPath: "meshCaKey"
@@ -1,4 +1,4 @@
1
- const require_dist = require("./dist-D1vECb_6.js");
1
+ const require_dist = require("./dist-DgOG8flk.js");
2
2
  const require_x509_es = require("./x509.es-C4cOo48M.js");
3
3
  let node_crypto = require("node:crypto");
4
4
  //#region src/auth/jwt-signing-key.ts
@@ -1,4 +1,4 @@
1
- import { O as DEVICE_SAN_CREDENTIAL_PREFIX, k as DEVICE_SAN_USER_PREFIX, mi as buildSecretRef } from "./dist-DERK-gP5.mjs";
1
+ import { D as DEVICE_SAN_CREDENTIAL_PREFIX, O as DEVICE_SAN_USER_PREFIX, vi as buildSecretRef } from "./dist-BNunRyXT.mjs";
2
2
  import { S as backdatedNotBefore, a as KeyUsageFlags, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension, u as SubjectAlternativeNameExtension } from "./x509.es-DK__ETIe.mjs";
3
3
  import { X509Certificate, createPublicKey, randomBytes, verify, webcrypto } from "node:crypto";
4
4
  //#region src/auth/jwt-signing-key.ts
@@ -736,7 +736,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
736
736
  return EventCategory;
737
737
  }({});
738
738
  //#endregion
739
- //#region ../types/dist/sleep-WsrozGDL.mjs
739
+ //#region ../types/dist/sleep-bZIhUvjd.mjs
740
740
  /**
741
741
  * The audio chunk plane's byte format, and the ONE expansion from a coded
742
742
  * window to float samples (D455).
@@ -848,21 +848,21 @@ function collectSecretConfigKeys(schema) {
848
848
  for (const section of sectionsOf(schema)) for (const field of fieldsOf(section)) walkField(field, keys);
849
849
  return keys;
850
850
  }
851
- function isRecord$5(value) {
851
+ function isRecord$6(value) {
852
852
  return typeof value === "object" && value !== null && !Array.isArray(value);
853
853
  }
854
854
  function sectionsOf(schema) {
855
- if (!isRecord$5(schema)) return [];
855
+ if (!isRecord$6(schema)) return [];
856
856
  const sections = schema["sections"];
857
857
  return Array.isArray(sections) ? sections : [];
858
858
  }
859
859
  function fieldsOf(node) {
860
- if (!isRecord$5(node)) return [];
860
+ if (!isRecord$6(node)) return [];
861
861
  const fields = node["fields"];
862
862
  return Array.isArray(fields) ? fields : [];
863
863
  }
864
864
  function walkField(field, out) {
865
- if (!isRecord$5(field)) return;
865
+ if (!isRecord$6(field)) return;
866
866
  const type = field["type"];
867
867
  const key = field["key"];
868
868
  if ((type === "password" || field["secret"] === true) && typeof key === "string" && key.length > 0) out.add(key);
@@ -900,7 +900,7 @@ function walkField(field, out) {
900
900
  var SECRET_CLEAR = { $secretClear: true };
901
901
  /** The `'***'` token D634 redaction writes for non-admins. */
902
902
  var LEGACY_DEVICE_REDACTION = "***";
903
- function isRecord$4(value) {
903
+ function isRecord$5(value) {
904
904
  return typeof value === "object" && value !== null && !Array.isArray(value);
905
905
  }
906
906
  function makeSecretMarker(ref) {
@@ -911,16 +911,16 @@ function makeSecretMarker(ref) {
911
911
  }
912
912
  /** A stored marker: an object whose `$secret` is a non-empty string. */
913
913
  function isSecretMarker(value) {
914
- if (!isRecord$4(value)) return false;
914
+ if (!isRecord$5(value)) return false;
915
915
  const ref = value["$secret"];
916
916
  return typeof ref === "string" && ref.length > 0;
917
917
  }
918
918
  /** Anything carrying a `$secret` key — a stored marker or a UI view of one. */
919
919
  function isSecretMarkerLike(value) {
920
- return isRecord$4(value) && Object.prototype.hasOwnProperty.call(value, "$secret");
920
+ return isRecord$5(value) && Object.prototype.hasOwnProperty.call(value, "$secret");
921
921
  }
922
922
  function isSecretClear(value) {
923
- return isRecord$4(value) && value["$secretClear"] === true;
923
+ return isRecord$5(value) && value["$secretClear"] === true;
924
924
  }
925
925
  /**
926
926
  * The UI view of a stored secret field value: a marker becomes "set", inline
@@ -1589,7 +1589,7 @@ var KeychainWriteRefusedError = class extends Error {
1589
1589
  }
1590
1590
  };
1591
1591
  var KEEP = { kind: "keep" };
1592
- function isRecord$3(value) {
1592
+ function isRecord$4(value) {
1593
1593
  return typeof value === "object" && value !== null && !Array.isArray(value);
1594
1594
  }
1595
1595
  function defaultMintId() {
@@ -1602,7 +1602,7 @@ function collectSecretMarkerRefs(value, out = []) {
1602
1602
  return out;
1603
1603
  }
1604
1604
  if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
1605
- else if (isRecord$3(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
1605
+ else if (isRecord$4(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
1606
1606
  return out;
1607
1607
  }
1608
1608
  async function storedValueEquals(secrets, marker, candidate) {
@@ -1657,7 +1657,7 @@ function rowId(row, idKey) {
1657
1657
  return null;
1658
1658
  }
1659
1659
  async function writeArray(ctx, node, incoming, stored, fieldPath) {
1660
- const storedRows = Array.isArray(stored) ? stored.filter(isRecord$3) : [];
1660
+ const storedRows = Array.isArray(stored) ? stored.filter(isRecord$4) : [];
1661
1661
  if (!Array.isArray(incoming)) {
1662
1662
  ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
1663
1663
  return {
@@ -1673,7 +1673,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
1673
1673
  const kept = /* @__PURE__ */ new Set();
1674
1674
  const rows = [];
1675
1675
  for (const row of incoming) {
1676
- if (!isRecord$3(row)) {
1676
+ if (!isRecord$4(row)) {
1677
1677
  rows.push(row);
1678
1678
  continue;
1679
1679
  }
@@ -1698,7 +1698,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
1698
1698
  case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
1699
1699
  case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
1700
1700
  case "object": {
1701
- if (!isRecord$3(incoming)) {
1701
+ if (!isRecord$4(incoming)) {
1702
1702
  if (incoming === void 0) return KEEP;
1703
1703
  ctx.deletes.push(...collectSecretMarkerRefs(stored));
1704
1704
  return {
@@ -1706,7 +1706,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
1706
1706
  value: incoming
1707
1707
  };
1708
1708
  }
1709
- const storedObj = isRecord$3(stored) ? stored : {};
1709
+ const storedObj = isRecord$4(stored) ? stored : {};
1710
1710
  return {
1711
1711
  kind: "value",
1712
1712
  value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
@@ -1829,7 +1829,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
1829
1829
  value: items
1830
1830
  };
1831
1831
  }
1832
- if (isRecord$3(v)) {
1832
+ if (isRecord$4(v)) {
1833
1833
  const out = {};
1834
1834
  for (const [k, child] of Object.entries(v)) {
1835
1835
  const s = substitute(child);
@@ -1861,7 +1861,7 @@ var SecretOverwriteRefusedError = class extends Error {
1861
1861
  this.name = "SecretOverwriteRefusedError";
1862
1862
  }
1863
1863
  };
1864
- function isRecord$2(value) {
1864
+ function isRecord$3(value) {
1865
1865
  return typeof value === "object" && value !== null && !Array.isArray(value);
1866
1866
  }
1867
1867
  function resolvedValue(pass, marker) {
@@ -1890,7 +1890,7 @@ function inArray(pass, incoming, stored) {
1890
1890
  return incoming.map((item, index) => {
1891
1891
  const twin = stored[index];
1892
1892
  if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
1893
- if (isRecord$2(item) && isRecord$2(twin)) return inArrayRow(pass, item, twin);
1893
+ if (isRecord$3(item) && isRecord$3(twin)) return inArrayRow(pass, item, twin);
1894
1894
  if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
1895
1895
  return item;
1896
1896
  });
@@ -1901,7 +1901,7 @@ function inArrayRow(pass, incoming, stored) {
1901
1901
  const twin = stored[key];
1902
1902
  if (isSecretMarker(twin)) {
1903
1903
  if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
1904
- } else if (isRecord$2(value) && isRecord$2(twin)) out[key] = inArrayRow(pass, value, twin);
1904
+ } else if (isRecord$3(value) && isRecord$3(twin)) out[key] = inArrayRow(pass, value, twin);
1905
1905
  else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
1906
1906
  }
1907
1907
  return out;
@@ -1909,7 +1909,7 @@ function inArrayRow(pass, incoming, stored) {
1909
1909
  async function walk(pass, incoming, stored) {
1910
1910
  if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
1911
1911
  if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
1912
- if (!isRecord$2(incoming) || !isRecord$2(stored)) return incoming;
1912
+ if (!isRecord$3(incoming) || !isRecord$3(stored)) return incoming;
1913
1913
  const out = { ...incoming };
1914
1914
  for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
1915
1915
  return out;
@@ -1940,7 +1940,7 @@ async function restoreUnchangedSecrets(input) {
1940
1940
  function isJsonEqual(a, b) {
1941
1941
  if (Object.is(a, b)) return true;
1942
1942
  if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
1943
- if (isRecord$2(a) && isRecord$2(b)) {
1943
+ if (isRecord$3(a) && isRecord$3(b)) {
1944
1944
  const keys = Object.keys(a);
1945
1945
  if (keys.length !== Object.keys(b).length) return false;
1946
1946
  return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
@@ -1964,7 +1964,7 @@ function markerKeysOf(blob, owner) {
1964
1964
  }
1965
1965
  function nodeFromStored(value, owner) {
1966
1966
  if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
1967
- if (!isRecord$2(value)) return null;
1967
+ if (!isRecord$3(value)) return null;
1968
1968
  const children = /* @__PURE__ */ new Map();
1969
1969
  for (const [key, child] of Object.entries(value)) {
1970
1970
  const node = nodeFromStored(child, owner);
@@ -2765,7 +2765,7 @@ var BaseAddon = class {
2765
2765
  if (!ctx) return;
2766
2766
  const addonId = ctx.id;
2767
2767
  setImmediate(() => {
2768
- ctx.api.addons?.restartAddon?.mutate({ addonId }).then(() => {
2768
+ ctx.api.addons.restartAddon.mutate({ addonId }).then(() => {
2769
2769
  ctx.logger.info("addon auto-restart triggered by restart-required setting change", { meta: { changedFields: patchKeys.filter((k) => restartKeys.has(k)) } });
2770
2770
  }).catch((err) => {
2771
2771
  ctx.logger.error("addon auto-restart failed", { meta: { error: err instanceof Error ? err.message : String(err) } });
@@ -3390,7 +3390,11 @@ var BatchTooLargeError = class extends RecordsError {
3390
3390
  }
3391
3391
  };
3392
3392
  function defOf(schema) {
3393
- return schema._zod?.def ?? {};
3393
+ const zodBag = Reflect.get(schema, "_zod");
3394
+ if (typeof zodBag !== "object" || zodBag === null) return {};
3395
+ const def = Reflect.get(zodBag, "def");
3396
+ if (typeof def !== "object" || def === null) return {};
3397
+ return def;
3394
3398
  }
3395
3399
  function declaredHere(schema) {
3396
3400
  return z.globalRegistry.get(schema)?.secret === true;
@@ -3488,11 +3492,11 @@ function secretArrayPrefixes(path) {
3488
3492
  }
3489
3493
  return prefixes;
3490
3494
  }
3491
- function isRecord$1(value) {
3495
+ function isRecord$2(value) {
3492
3496
  return typeof value === "object" && value !== null && !Array.isArray(value);
3493
3497
  }
3494
3498
  function elementId(element, idKey, declared, prefix) {
3495
- const id = isRecord$1(element) ? element[idKey] : void 0;
3499
+ const id = isRecord$2(element) ? element[idKey] : void 0;
3496
3500
  if (typeof id !== "string" || id.length === 0) throw new InvalidRecordError(`"${declared}": every element of "${prefix}" needs a non-empty string "${idKey}" to carry a secret`);
3497
3501
  return id;
3498
3502
  }
@@ -3503,7 +3507,7 @@ function elementId(element, idKey, declared, prefix) {
3503
3507
  */
3504
3508
  var REMOVE_LEAF = Symbol("remove-leaf");
3505
3509
  function mapAt(node, segments, index, walkedKeys, concretePrefix, declared, arrayKeys, visit) {
3506
- if (!isRecord$1(node)) return node;
3510
+ if (!isRecord$2(node)) return node;
3507
3511
  const segment = segments[index];
3508
3512
  if (segment === void 0) return node;
3509
3513
  if (!Object.prototype.hasOwnProperty.call(node, segment.key)) return node;
@@ -3673,6 +3677,87 @@ function assertValidDeclaration(name, decl) {
3673
3677
  if (decl.deviceRemoval === "delete" && decl.device === "none") refuse("deviceRemoval: \"delete\" needs a device: \"required\" or \"optional\"");
3674
3678
  for (const path of decl.secretPaths) for (const prefix of secretArrayPrefixes(path)) if (decl.secretArrayKeys[prefix] === void 0) refuse(`secret path "${path}" crosses the array "${prefix}": declare its id key in secretArrayKeys`);
3675
3679
  }
3680
+ function bodyFieldsOf(schema) {
3681
+ return { ...z.toJSONSchema(schema, {
3682
+ unrepresentable: "any",
3683
+ io: "input"
3684
+ }) };
3685
+ }
3686
+ function isRecordLike(value) {
3687
+ return typeof value === "object" && value !== null && !Array.isArray(value);
3688
+ }
3689
+ /** Does every branch of the body schema carry `field`? (A discriminated union has several.) */
3690
+ function hasNameField(json, field) {
3691
+ const branches = json["oneOf"] ?? json["anyOf"];
3692
+ if (Array.isArray(branches)) return branches.length > 0 && branches.every((b) => isRecordLike(b) && hasNameField(b, field));
3693
+ const properties = json["properties"];
3694
+ return isRecordLike(properties) && Object.prototype.hasOwnProperty.call(properties, field);
3695
+ }
3696
+ /**
3697
+ * Declare the kinds of a package. The keys are the kind names. The result is
3698
+ * what `ctx.records.declare` sends to the engine and what `ctx.records.kind`
3699
+ * types its handle from.
3700
+ */
3701
+ function defineRecordKinds(specs) {
3702
+ const out = {};
3703
+ for (const [name, spec] of Object.entries(specs)) {
3704
+ const secretPaths = collectZodSecretPaths(spec.schema);
3705
+ const nameField = spec.entry?.nameField ?? "name";
3706
+ const fields = bodyFieldsOf(spec.schema);
3707
+ if (spec.entry !== void 0 && !hasNameField(fields, nameField)) throw new DeclarationRefusedError(`kind "${name}": an entry kind's schema needs a "${nameField}" field`);
3708
+ const parsed = RecordKindDeclarationSchema.parse({
3709
+ database: spec.database,
3710
+ class: spec.class,
3711
+ writeTrigger: spec.writeTrigger,
3712
+ device: spec.device,
3713
+ at: spec.at,
3714
+ indexes: spec.indexes === void 0 ? void 0 : [...spec.indexes],
3715
+ retention: spec.retention,
3716
+ deviceRemoval: spec.deviceRemoval,
3717
+ maxDataBytes: spec.maxDataBytes,
3718
+ secretPaths: [...secretPaths],
3719
+ secretArrayKeys: spec.secretArrayKeys === void 0 ? void 0 : { ...spec.secretArrayKeys },
3720
+ adoptsFrom: spec.adoptsFrom,
3721
+ transactFamily: spec.transactFamily,
3722
+ entry: spec.entry === void 0 ? void 0 : {
3723
+ title: spec.entry.title,
3724
+ nameField,
3725
+ fields
3726
+ }
3727
+ });
3728
+ assertValidDeclaration(name, parsed);
3729
+ out[name] = {
3730
+ name,
3731
+ schema: spec.schema,
3732
+ declaration: parsed
3733
+ };
3734
+ }
3735
+ return out;
3736
+ }
3737
+ /** The wire form of a package's kinds: name -> declaration. */
3738
+ function declarationsOf(kinds) {
3739
+ return Object.fromEntries(Object.entries(kinds).map(([name, kind]) => [name, kind.declaration]));
3740
+ }
3741
+ /** When non-null, `from` names an addon-settings brokers blob, not a SQL table. */
3742
+ function parseSettingsBrokersAdoptsFrom(from) {
3743
+ if (!from.startsWith("@settings-brokers/")) return null;
3744
+ const addonId = from.slice(18);
3745
+ return addonId.length > 0 ? addonId : null;
3746
+ }
3747
+ /** When non-null, `from` names an addon-settings array blob, not a SQL table. */
3748
+ function parseSettingsArrayAdoptsFrom(from) {
3749
+ if (!from.startsWith("@settings-array/")) return null;
3750
+ const rest = from.slice(16);
3751
+ const slash = rest.indexOf("/");
3752
+ if (slash <= 0 || slash >= rest.length - 1) return null;
3753
+ const addonId = rest.slice(0, slash);
3754
+ const settingsKey = rest.slice(slash + 1);
3755
+ if (addonId.length === 0 || settingsKey.length === 0) return null;
3756
+ return {
3757
+ addonId,
3758
+ settingsKey
3759
+ };
3760
+ }
3676
3761
  /** Shared Zod schemas used across streaming capabilities. */
3677
3762
  var CamProfileSchema = z.enum([
3678
3763
  "high",
@@ -4682,6 +4767,28 @@ function customAction(input, output, options) {
4682
4767
  ...options?.caller ? { caller: "required" } : {}
4683
4768
  };
4684
4769
  }
4770
+ /**
4771
+ * Every cap whose provider reads a `callerAddonId` in its input (the keychain's
4772
+ * owner check, device-history's `not-owner`, records' owner).
4773
+ *
4774
+ * The stamp is set ONLY by the transport (`stampCallerAddonId`, or stated by a
4775
+ * hub in-process caller). The generated HTTP/tRPC mount parses input with
4776
+ * `.loose()`, so without this a session could add the key itself and act as
4777
+ * another addon. The mount strips it for these caps.
4778
+ */
4779
+ var CALLER_STAMPED_CAPABILITIES = [
4780
+ "keychain",
4781
+ "device-history",
4782
+ "records",
4783
+ "integrations",
4784
+ "device-manager"
4785
+ ];
4786
+ /** A copy of `input` without the caller stamp. Anything that is not a plain object passes through. */
4787
+ function withoutCallerStamp(input) {
4788
+ if (input === null || typeof input !== "object" || Array.isArray(input)) return input;
4789
+ if (!Object.prototype.hasOwnProperty.call(input, "callerAddonId")) return input;
4790
+ return Object.fromEntries(Object.entries(input).filter(([key]) => key !== "callerAddonId"));
4791
+ }
4685
4792
  var StaticDirOutputSchema = z.object({ staticDir: z.string() });
4686
4793
  var VersionOutputSchema = z.object({ version: z.string() });
4687
4794
  /**
@@ -16673,28 +16780,6 @@ id: z.union([z.string(), z.number()]) }), {
16673
16780
  }
16674
16781
  };
16675
16782
  /**
16676
- * Every cap whose provider reads a `callerAddonId` in its input (the keychain's
16677
- * owner check, device-history's `not-owner`, records' owner).
16678
- *
16679
- * The stamp is set ONLY by the transport (`stampCallerAddonId`, or stated by a
16680
- * hub in-process caller). The generated HTTP/tRPC mount parses input with
16681
- * `.loose()`, so without this a session could add the key itself and act as
16682
- * another addon. The mount strips it for these caps.
16683
- */
16684
- var CALLER_STAMPED_CAPABILITIES = [
16685
- "keychain",
16686
- "device-history",
16687
- "records",
16688
- "integrations",
16689
- "device-manager"
16690
- ];
16691
- /** A copy of `input` without the caller stamp. Anything that is not a plain object passes through. */
16692
- function withoutCallerStamp(input) {
16693
- if (input === null || typeof input !== "object" || Array.isArray(input)) return input;
16694
- if (!Object.prototype.hasOwnProperty.call(input, "callerAddonId")) return input;
16695
- return Object.fromEntries(Object.entries(input).filter(([key]) => key !== "callerAddonId"));
16696
- }
16697
- /**
16698
16783
  * records - an addon's own facts and documents (D881): ledgers, audit rows,
16699
16784
  * config documents, mirrors. The third storage API next to `ctx.settings`
16700
16785
  * (operator intent, D870) and device-history (numbers over time, D850).
@@ -17078,13 +17163,31 @@ var storageAdminCapability = {
17078
17163
  adoptRecords: method(z.object({
17079
17164
  owner: z.string().min(1),
17080
17165
  kind: RecordKindNameSchema,
17081
- records: z.array(RecordInputSchema).min(1).max(RECORD_BATCH_MAX),
17166
+ records: z.array(RecordInputSchema).max(RECORD_BATCH_MAX),
17082
17167
  /** The LAST batch: the copy is complete, the boot guard stops asking. */
17083
17168
  complete: z.boolean().optional()
17084
- }), z.object({ adopted: z.number().int() }), {
17169
+ }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), z.object({ adopted: z.number().int() }), {
17085
17170
  kind: "mutation",
17086
17171
  auth: "admin"
17087
- })
17172
+ }),
17173
+ /**
17174
+ * Read rows from a legacy KV table by physical name, without a running
17175
+ * `declareCollection`. Used by `records-adopt.ts` when the owner already
17176
+ * moved to records and the collection door refuses the name.
17177
+ */
17178
+ readLegacyCollection: method(z.object({
17179
+ collection: z.string().min(1),
17180
+ cursor: z.string().optional(),
17181
+ limit: z.number().int().min(1).max(1e3).optional()
17182
+ }), z.object({
17183
+ rows: z.array(z.object({
17184
+ id: z.string(),
17185
+ data: z.record(z.string(), z.unknown())
17186
+ })),
17187
+ nextCursor: z.string().nullable()
17188
+ }), { auth: "admin" }),
17189
+ /** True when a declared kind lists `collection` as `adoptsFrom` and adoption finished. */
17190
+ isAdoptedLegacyTable: method(z.object({ collection: z.string().min(1) }), z.object({ adopted: z.boolean() }), { auth: "admin" })
17088
17191
  }
17089
17192
  };
17090
17193
  /**
@@ -73417,13 +73520,14 @@ var BaseDevice = class {
73417
73520
  get state() {
73418
73521
  if (!this._stateProxyCache) {
73419
73522
  const cache = {};
73420
- const handler = { get: (_target, key) => {
73523
+ const handler = { get: (target, key) => {
73421
73524
  const k = key;
73422
- if (k in cache) return cache[k];
73525
+ const existing = Reflect.get(target, k);
73526
+ if (existing !== void 0) return existing;
73423
73527
  const cap = DEVICE_LOCAL_STATE_CAPS[k];
73424
73528
  if (!cap) return void 0;
73425
73529
  const proxy = this.sliceProxy(cap);
73426
- cache[k] = proxy;
73530
+ Reflect.set(target, k, proxy);
73427
73531
  return proxy;
73428
73532
  } };
73429
73533
  this._stateProxyCache = new Proxy(cache, handler);
@@ -73622,7 +73726,7 @@ var BaseDevice = class {
73622
73726
  async updateSourceInfo(patch) {
73623
73727
  const next = mergeSourceInfo(this.sourceInfo, patch);
73624
73728
  this._sourceInfoCache = Object.freeze({ ...next });
73625
- const action = this.ctx.api?.deviceManager?.setMetadata;
73729
+ const action = this.ctx.api.deviceManager?.setMetadata;
73626
73730
  if (action) try {
73627
73731
  await action.mutate({
73628
73732
  deviceId: this.id,
@@ -73657,7 +73761,7 @@ var BaseDevice = class {
73657
73761
  * device boot on a meta refresh.
73658
73762
  */
73659
73763
  async refreshFeatures() {
73660
- const action = this.ctx.api?.deviceManager?.registerDevice;
73764
+ const action = this.ctx.api.deviceManager?.registerDevice;
73661
73765
  if (!action) return;
73662
73766
  try {
73663
73767
  await action.mutate({
@@ -81136,6 +81240,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
81136
81240
  addonId: null,
81137
81241
  access: "delete"
81138
81242
  },
81243
+ "storageAdmin.isAdoptedLegacyTable": {
81244
+ capName: "storage-admin",
81245
+ capScope: "system",
81246
+ addonId: null,
81247
+ access: "view"
81248
+ },
81139
81249
  "storageAdmin.listKinds": {
81140
81250
  capName: "storage-admin",
81141
81251
  capScope: "system",
@@ -81148,6 +81258,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
81148
81258
  addonId: null,
81149
81259
  access: "view"
81150
81260
  },
81261
+ "storageAdmin.readLegacyCollection": {
81262
+ capName: "storage-admin",
81263
+ capScope: "system",
81264
+ addonId: null,
81265
+ access: "view"
81266
+ },
81151
81267
  "storageAdmin.readRecords": {
81152
81268
  capName: "storage-admin",
81153
81269
  capScope: "system",
@@ -87217,4 +87333,4 @@ function enumerateInferenceDevices(hw) {
87217
87333
  return out;
87218
87334
  }
87219
87335
  //#endregion
87220
- export { SsoBridgeClaimsSchema as $, EventCategory as $i, shortHostname as $n, ReadinessRegistry as $r, formatMinutes as $t, DEVICE_TOMBSTONE_RETENTION_MS as A, isSecretClear as Ai, parseStreamParamsFormPatch as An, toExpressionValue as Ar, dataStoreProviderCapability as At, LegacyStorageLocationDefaultSchema as B, parseSecretRef as Bi, resolveAppConnections as Bn, DeclarationRefusedError as Br, deviceStateCapability as Bt, DATA_STORE_DATABASES as C, emitReadiness as Ci, metricsProviderCapability as Cn, composedDeviceStableId as Cr, compositionSourceRefs as Ct, DEVICE_NONCE_TTL_MS as D, isDeviceConfigCap as Di, normalizeUnit as Dn, compositionSourceKey as Dr, coreBlockSourceKind as Dt, DEVICE_ENROLLMENT_TTL_MS as E, hydrateSchema as Ei, normalizeCoreBlockWrite as En, compositionSliceKey as Er, coreBlockIdFromAddonId as Et, FieldClaimSchema as F, mapSecretLeaves as Fi, ptzAutotrackCapability as Fn, BaseAddon as Fr, deriveBatteryPresence as Ft, RECORDING_SOURCE_CAMSTACK_ADDON as G, scopeKey as Gi, resolveLocationMode as Gn, PlaintextSecretError as Gr, evaluateCompositionField as Gt, MINUTES_PER_DAY as H, recordSecretRef as Hi, resolveCoreBlockEntry as Hn, ForeignSecretMarkerError as Hr, enumerateInferenceDevices as Ht, HUB_MDNS_SERVICE_TYPE as I, nodePin as Ii, recordEntriesCapability as In, BatchTooLargeError as Ir, describeComposableCaps as It, STORAGE_ADMIN_MOVED_COLLECTIONS as J, sleep as Ji, runtimeStatePolicyFor as Jn, RECORD_DELETE_BATCH as Jr, expressionContainsBuiltinCall as Jt, RecordingStatusSchema as K, secretTreeFromPaths as Ki, resolveMethodAuth as Kn, RECORD_BATCH_MAX as Kr, evictionPolicyOfLocation as Kt, HUB_MDNS_TXT_KEYS as L, normalizeSecretOwner as Li, recordsCapability as Ln, DATAPLANE_SECRET_HEADER as Lr, deviceCredentialsCapability as Lt, DeviceStatusSchema as M, isSecretMarkerLike as Mi, planComposition as Mn, DeviceRole as Mr, declarationOwnerNodeId as Mt, FIRST_LEVEL_MACRO_CLASSES as N, isSecretRefOwnedBy as Ni, platformProbeCapability as Nn, DeviceType as Nr, decodeVectorBase64 as Nt, DEVICE_SAN_CREDENTIAL_PREFIX as O, isEvent as Oi, objectInputDeclaresAddonId as On, createStatefulExpressionMemory as Or, coreBlocksCapability as Ot, FieldClaimModeSchema as P, makeSecretMarker as Pi, procedureAuthKey as Pn, errMsg as Pr, defineExtensionSlotProvider as Pt, ServerNameSchema as Q, userError as Qi, settingsStoreCapability as Qn, RUNTIME_DEFAULTS as Qr, formatDeviceRevoker as Qt, KEYCHAIN_RESET_TRIGGER_ACTOR as R, parseJsonObject as Ri, reducePoints as Rn, DEVICE_SETTINGS_CONTRIBUTION_METHODS as Rr, deviceExtensionCapability as Rt, DATABASE_SNAPSHOT_TIMEOUT_MS as S, emitDownForOwnedCaps as Si, memoizePinnedFfmpeg as Sn, composedDeviceRef as Sr, compositionFieldKey as St, DERIVED_CAMERA_SILENCED_CAP_NAMES as T, formatSecretScope as Ti, motionCapability as Tn, compositionItemFieldPath as Tr, coreBlockComposition as Tt, MOTION_CLOSE_AFTER_MS as U, resolveCapMount as Ui, resolveCoreBlockFiles as Un, InvalidRecordError as Ur, enumerateItemArrayFields as Ut, METHOD_ACCESS_MAP as V, readinessKey as Vi, resolveBucketMs as Vn, FilterRequiredError as Vr, deviceStatusCapability as Vt, NetworkTunnelStartedDataSchema as W, resolveSecretMarkers as Wi, resolveHubAddressRoles as Wn, NoCallerError as Wr, enumerateSchemaFields as Wt, STREAM_PROFILE_META as X, toSecretFieldView as Xi, scopesAllowDeviceCap as Xn, REDACTED_SECRET as Xr, filesystemBrowseCapability as Xt, STORAGE_ADMIN_SCOPED_BASES as Y, toNodeId as Yi, scopesAllowAddon as Yn, RECORD_SWEEP_INTERVAL_MS as Yr, extractNestedAddonId as Yt, ScopedTokenSchema as Z, transformSecretWrite as Zi, scoreRuntimes as Zn, REMOVE_LEAF as Zr, foldSnapshotByFunction as Zt, CalendarPreferencesSchema as _, collectSecretMarkerRefs as _i, logDestinationCapability as _n, withLocationMode as _r, calendarsCapability as _t, ApiKeyRecordSchema as a, RevConflictError as ai, isDefaultAppConnectionEndpoint as an, storageMigrationCapability as ar, addonPagesCapability as at, DATABASE_SNAPSHOT_PARTIAL_SUFFIX as b, customAction as bi, mayReadLocation as bn, buildFfmpegArgs as br, checkRoleAddress as bt, CALLER_STAMPED_CAPABILITIES as c, UnknownRecordKindError as ci, isVoidInput as cn, streamCatalogCapability as cr, alertsCapability as ct, CAP_NAMES_WITH_STATUS as d, asNumber as di, keychainCapability as dn, userManagementCapability as dr, bareAddonId as dt, ReadinessTimeoutError as ei, gbToBytes as en, siteZoneKey as er, StorageCleanupJobSchema as et, CATALOG_LANGS as f, asString$1 as fi, legacyAutoLinkIds as fn, validateComposition as fr, batteryCapability as ft, CORE_BLOCK_ADDON_PREFIX as g, collectSecretLeaves as gi, locationIconKey as gn, vectorStoreCapability as gr, buildStreamParamsConfigSchema as gt, CORE_BLOCKS_ADDON_ID as h, collectSecretConfigKeys as hi, localNetworkCapability as hn, vectorIndexDimConflictError as hr, buildDeviceSignatureMessage as ht, AlertSchema as i, RecordUniqueViolationError as ii, isCollectionArrayMethod as in, storageCapability as ir, UserRecordSchema as it, DeclaredDevices as j, isSecretMarker as ji, pickAppLinkHub as jn, DeviceFeature as jr, databaseSnapshotCapability as jt, DEVICE_SAN_USER_PREFIX as k, isKeychainStoredField as ki, objectInputDeclaresRequiredDeviceId as kn, disarmRoseMemory as kr, createDeviceExtensionProvider as kt, CAMERA_SWITCH_ORDER as l, WELL_KNOWN_TAB_MAP as li, kebabToCamel as ln, streamQualityLabel as lr, authProviderCapability as lt, COMPOSER_RUNNER_ID as m, buildSecretRef as mi, lifecycleJobSchema as mn, vectorDimFromBase64 as mr, buildDeviceEnrollmentLink as mt, AGENT_MDNS_TXT_KEYS as n, RecordNotFoundError as ni, isAppLinkBase as nn, splitTranslationRef as nr, StorageLocationTypeSchema as nt, BaseDevice as o, SECRET_CLEAR as oi, isLocationEnabled as on, storageOccupancyCapability as or, addonSettingsCapability as ot, COMPOSED_ITEM_FIXED_FIELDS as p, assertValidDeclaration as pi, legacyModeOf as pn, validateCustomAddress as pr, buildCapabilityLookup as pt, STORAGE_ACCESS_FALLBACK as q, secretTreeFromSchema as qi, resolveNotificationTapAddress as qn, RECORD_BATCH_MAX_BYTES as qr, expandContainer as qt, ALL_CAPABILITY_DEFINITIONS as r, RecordTooLargeError as ri, isArrayOutputSchema as rn, storageAdminCapability as rr, StorageMigrationJobSchema as rt, BatteryStatusSchema as s, UnindexedFilterError as si, isObjectInput as sn, storageProviderCapability as sr, addonWidgetsCapability as st, AGENT_MDNS_SERVICE_TYPE as t, RecordKindDeclarationSchema as ti, interpolate as tn, snapshotCapability as tr, StorageLocationModeSchema as tt, CAMSTACK_APP_LINK_ORIGIN as u, asJsonObject as ui, keychainAdminCapability as un, supportedRuntimes as ur, backupCapability as ut, CatalogFileSchema as v, collectZodSecretPaths as vi, logLevelAtMost as vn, withoutCallerStamp as vr, cameraGridLayoutCapability as vt, DAY_NAMES as w, expandCapMethods as wi, modeMayWrite as wn, compositionFeatureEnabled as wr, coreBlockAddonId as wt, DATABASE_SNAPSHOT_SUFFIX as x, defineCustomActions as xi, mayWriteToLocation as xn, cloneStatefulExpressionMemory as xr, composerCapability as xt, CoreBlockSchema as y, createEvent as yi, looseSchema as yn, COMPOSER_ADDON_ID as yr, canonicalIconKey as yt, LOG_LEVEL_RANK as z, parseJsonUnknown as zi, replacedFieldKeys as zn, DEVICE_STATUS_METHOD as zr, deviceManagerCapability as zt };
87336
+ export { STREAM_PROFILE_META as $, resolveSecretMarkers as $i, scopesAllowAddon as $n, RECORD_SWEEP_INTERVAL_MS as $r, extractNestedAddonId as $t, DataStoreDatabaseSchema as A, expandCapMethods as Ai, normalizeCoreBlockWrite as An, compositionSourceKey as Ar, coreBlockIdFromAddonId as At, KeychainAuditEntrySchema as B, makeSecretMarker as Bi, recordEntriesCapability as Bn, CALLER_STAMPED_CAPABILITIES as Br, describeComposableCaps as Bt, DAY_NAMES as C, createEvent as Ci, looseSchema as Cn, buildFfmpegArgs as Cr, canonicalIconKey as Ct, DEVICE_SAN_CREDENTIAL_PREFIX as D, defineRecordKinds as Di, metricsProviderCapability as Dn, compositionFeatureEnabled as Dr, compositionSourceRefs as Dt, DEVICE_NONCE_TTL_MS as E, defineCustomActions as Ei, memoizePinnedFfmpeg as En, composedDeviceStableId as Er, compositionFieldKey as Et, FieldClaimModeSchema as F, isKeychainStoredField as Fi, pickAppLinkHub as Fn, DeviceRole as Fr, databaseSnapshotCapability as Ft, MINUTES_PER_DAY as G, parseJsonObject as Gi, resolveBucketMs as Gn, FilterRequiredError as Gr, deviceStatusCapability as Gt, LOG_LEVEL_RANK as H, nodePin as Hi, reducePoints as Hn, DEVICE_SETTINGS_CONTRIBUTION_METHODS as Hr, deviceExtensionCapability as Ht, FieldClaimSchema as I, isSecretClear as Ii, planComposition as In, DeviceType as Ir, declarationOwnerNodeId as It, RECORDING_SOURCE_CAMSTACK_ADDON as J, parseSettingsArrayAdoptsFrom as Ji, resolveHubAddressRoles as Jn, NoCallerError as Jr, enumerateSchemaFields as Jt, MOTION_CLOSE_AFTER_MS as K, parseJsonUnknown as Ki, resolveCoreBlockEntry as Kn, ForeignSecretMarkerError as Kr, enumerateInferenceDevices as Kt, HUB_MDNS_SERVICE_TYPE as L, isSecretMarker as Li, platformProbeCapability as Ln, errMsg as Lr, decodeVectorBase64 as Lt, DeviceStatusSchema as M, hydrateSchema as Mi, objectInputDeclaresAddonId as Mn, disarmRoseMemory as Mr, coreBlocksCapability as Mt, DeviceTombstoneSchema as N, isDeviceConfigCap as Ni, objectInputDeclaresRequiredDeviceId as Nn, toExpressionValue as Nr, createDeviceExtensionProvider as Nt, DEVICE_SAN_USER_PREFIX as O, emitDownForOwnedCaps as Oi, modeMayWrite as On, compositionItemFieldPath as Or, coreBlockAddonId as Ot, FIRST_LEVEL_MACRO_CLASSES as P, isEvent as Pi, parseStreamParamsFormPatch as Pn, DeviceFeature as Pr, dataStoreProviderCapability as Pt, STORAGE_ADMIN_SCOPED_BASES as Q, resolveCapMount as Qi, runtimeStatePolicyFor as Qn, RECORD_DELETE_BATCH as Qr, expressionContainsBuiltinCall as Qt, HUB_MDNS_TXT_KEYS as R, isSecretMarkerLike as Ri, procedureAuthKey as Rn, BaseAddon as Rr, defineExtensionSlotProvider as Rt, DATA_STORE_DATABASES as S, collectZodSecretPaths as Si, logLevelAtMost as Sn, COMPOSER_ADDON_ID as Sr, cameraGridLayoutCapability as St, DEVICE_ENROLLMENT_TTL_MS as T, declarationsOf as Ti, mayWriteToLocation as Tn, composedDeviceRef as Tr, composerCapability as Tt, LegacyStorageLocationDefaultSchema as U, normalizeNodeId as Ui, replacedFieldKeys as Un, DEVICE_STATUS_METHOD as Ur, deviceManagerCapability as Ut, KeychainResetRecordSchema as V, mapSecretLeaves as Vi, recordsCapability as Vn, DATAPLANE_SECRET_HEADER as Vr, deviceCredentialsCapability as Vt, METHOD_ACCESS_MAP as W, normalizeSecretOwner as Wi, resolveAppConnections as Wn, DeclarationRefusedError as Wr, deviceStateCapability as Wt, STORAGE_ACCESS_FALLBACK as X, readinessKey as Xi, resolveMethodAuth as Xn, RECORD_BATCH_MAX as Xr, evictionPolicyOfLocation as Xt, RecordingStatusSchema as Y, parseSettingsBrokersAdoptsFrom as Yi, resolveLocationMode as Yn, PlaintextSecretError as Yr, evaluateCompositionField as Yt, STORAGE_ADMIN_MOVED_COLLECTIONS as Z, recordSecretRef as Zi, resolveNotificationTapAddress as Zn, RECORD_BATCH_MAX_BYTES as Zr, expandContainer as Zt, CatalogFileSchema as _, assertValidDeclaration as _i, legacyModeOf as _n, validateCustomAddress as _r, buildCapabilityLookup as _t, ApiKeyRecordSchema as a, toSecretFieldView as aa, RecordKindDeclarationSchema as ai, interpolate as an, snapshotCapability as ar, StorageLocationTypeSchema as at, DATABASE_SNAPSHOT_SUFFIX as b, collectSecretLeaves as bi, locationIconKey as bn, vectorStoreCapability as br, buildStreamParamsConfigSchema as bt, CAMERA_SWITCH_ORDER as c, withoutCallerStamp as ca, RecordUniqueViolationError as ci, isCollectionArrayMethod as cn, storageCapability as cr, UserRecordSchema as ct, CATALOG_LANGS as d, UnindexedFilterError as di, isObjectInput as dn, storageProviderCapability as dr, addonWidgetsCapability as dt, scopeKey as ea, REDACTED_SECRET as ei, filesystemBrowseCapability as en, scopesAllowDeviceCap as er, ScopedTokenSchema as et, COMPOSED_ITEM_FIXED_FIELDS as f, UnknownRecordKindError as fi, isVoidInput as fn, streamCatalogCapability as fr, alertsCapability as ft, CalendarPreferencesSchema as g, asString$1 as gi, legacyAutoLinkIds as gn, validateComposition as gr, batteryCapability as gt, CORE_BLOCK_ADDON_PREFIX as h, asNumber as hi, keychainCapability as hn, userManagementCapability as hr, bareAddonId as ht, AlertSchema as i, toNodeId as ia, ReadinessTimeoutError as ii, gbToBytes as in, siteZoneKey as ir, StorageLocationModeSchema as it, DeclaredDevices as j, formatSecretScope as ji, normalizeUnit as jn, createStatefulExpressionMemory as jr, coreBlockSourceKind as jt, DEVICE_TOMBSTONE_RETENTION_MS as k, emitReadiness as ki, motionCapability as kn, compositionSliceKey as kr, coreBlockComposition as kt, CAMSTACK_APP_LINK_ORIGIN as l, EventCategory as la, RevConflictError as li, isDefaultAppConnectionEndpoint as ln, storageMigrationCapability as lr, addonPagesCapability as lt, CORE_BLOCKS_ADDON_ID as m, asJsonObject as mi, keychainAdminCapability as mn, supportedRuntimes as mr, backupCapability as mt, AGENT_MDNS_TXT_KEYS as n, secretTreeFromSchema as na, RUNTIME_DEFAULTS as ni, formatDeviceRevoker as nn, settingsStoreCapability as nr, SsoBridgeClaimsSchema as nt, BaseDevice as o, transformSecretWrite as oa, RecordNotFoundError as oi, isAppLinkBase as on, splitTranslationRef as or, StorageMigrationJobSchema as ot, COMPOSER_RUNNER_ID as p, WELL_KNOWN_TAB_MAP as pi, kebabToCamel as pn, streamQualityLabel as pr, authProviderCapability as pt, NetworkTunnelStartedDataSchema as q, parseSecretRef as qi, resolveCoreBlockFiles as qn, InvalidRecordError as qr, enumerateItemArrayFields as qt, ALL_CAPABILITY_DEFINITIONS as r, sleep as ra, ReadinessRegistry as ri, formatMinutes as rn, shortHostname as rr, StorageCleanupJobSchema as rt, BatteryStatusSchema as s, userError as sa, RecordTooLargeError as si, isArrayOutputSchema as sn, storageAdminCapability as sr, TokenScopeSchema as st, AGENT_MDNS_SERVICE_TYPE as t, secretTreeFromPaths as ta, REMOVE_LEAF as ti, foldSnapshotByFunction as tn, scoreRuntimes as tr, ServerNameSchema as tt, CAP_NAMES_WITH_STATUS as u, SECRET_CLEAR as ui, isLocationEnabled as un, storageOccupancyCapability as ur, addonSettingsCapability as ut, CoreBlockSchema as v, buildSecretRef as vi, lifecycleJobSchema as vn, vectorDimFromBase64 as vr, buildDeviceEnrollmentLink as vt, DERIVED_CAMERA_SILENCED_CAP_NAMES as w, customAction as wi, mayReadLocation as wn, cloneStatefulExpressionMemory as wr, checkRoleAddress as wt, DATABASE_SNAPSHOT_TIMEOUT_MS as x, collectSecretMarkerRefs as xi, logDestinationCapability as xn, withLocationMode as xr, calendarsCapability as xt, DATABASE_SNAPSHOT_PARTIAL_SUFFIX as y, collectSecretConfigKeys as yi, localNetworkCapability as yn, vectorIndexDimConflictError as yr, buildDeviceSignatureMessage as yt, KEYCHAIN_RESET_TRIGGER_ACTOR as z, isSecretRefOwnedBy as zi, ptzAutotrackCapability as zn, BatchTooLargeError as zr, deriveBatteryPresence as zt };