@noy-db/hub 0.2.0-pre.27 → 0.2.0-pre.28

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 (179) hide show
  1. package/dist/aggregate/index.cjs +7 -0
  2. package/dist/aggregate/index.cjs.map +1 -1
  3. package/dist/aggregate/index.d.cts +2 -2
  4. package/dist/aggregate/index.d.ts +2 -2
  5. package/dist/aggregate/index.js +2 -2
  6. package/dist/attestation/index.cjs.map +1 -1
  7. package/dist/attestation/index.d.cts +3 -3
  8. package/dist/attestation/index.d.ts +3 -3
  9. package/dist/attestation/index.js +4 -4
  10. package/dist/blobs/index.cjs.map +1 -1
  11. package/dist/blobs/index.d.cts +5 -5
  12. package/dist/blobs/index.d.ts +5 -5
  13. package/dist/blobs/index.js +4 -4
  14. package/dist/bundle/index.cjs +83 -5
  15. package/dist/bundle/index.cjs.map +1 -1
  16. package/dist/bundle/index.d.cts +5 -5
  17. package/dist/bundle/index.d.ts +5 -5
  18. package/dist/bundle/index.js +8 -8
  19. package/dist/{chunk-PS6PSEZL.js → chunk-2M62POB5.js} +3 -3
  20. package/dist/{chunk-C7UIT5XY.js → chunk-345PYZD6.js} +2 -2
  21. package/dist/{chunk-KSKKLVPA.js → chunk-3LHTFCU2.js} +113 -41
  22. package/dist/chunk-3LHTFCU2.js.map +1 -0
  23. package/dist/{chunk-KA5A5CSD.js → chunk-42EGY2FQ.js} +3 -3
  24. package/dist/{chunk-7DDTFGXY.js → chunk-4FHKQDHN.js} +2 -2
  25. package/dist/{chunk-KD253AI5.js → chunk-6LD37AMK.js} +22 -3
  26. package/dist/chunk-6LD37AMK.js.map +1 -0
  27. package/dist/{chunk-6H4CAHMQ.js → chunk-7GKDVWMD.js} +2 -2
  28. package/dist/{chunk-6ZKXFMUG.js → chunk-7TBCLM52.js} +2 -2
  29. package/dist/{chunk-VJNV2GRF.js → chunk-AHDQYG7P.js} +3 -3
  30. package/dist/{chunk-RRCRITDM.js → chunk-DCYWBKQ2.js} +2 -2
  31. package/dist/{chunk-K6PCTYAH.js → chunk-DMWUOV7X.js} +2 -2
  32. package/dist/{chunk-CVTPNW2Y.js → chunk-DQ6XF2K2.js} +6 -6
  33. package/dist/{chunk-5EITJMUJ.js → chunk-ENC4C6XW.js} +3 -3
  34. package/dist/{chunk-BOMH3637.js → chunk-GVEUI7VR.js} +2 -2
  35. package/dist/{chunk-WVYL6HM7.js → chunk-HI7FY7QZ.js} +2 -2
  36. package/dist/{chunk-PFKAT4NT.js → chunk-HQ242WNG.js} +3 -3
  37. package/dist/{chunk-HAKEZTA7.js → chunk-IMY4FXYE.js} +3 -3
  38. package/dist/{chunk-SID2NJNF.js → chunk-JEQB2KVI.js} +2 -2
  39. package/dist/{chunk-Z3BJF7SF.js → chunk-M2VZQ24Q.js} +2 -2
  40. package/dist/{chunk-2NYVA6FW.js → chunk-PPF7Z2YQ.js} +2 -2
  41. package/dist/{chunk-IWGVH2RR.js → chunk-QBC2TZHC.js} +3 -3
  42. package/dist/{chunk-AD6RNBAW.js → chunk-QSLIT4JZ.js} +1 -1
  43. package/dist/chunk-QSLIT4JZ.js.map +1 -0
  44. package/dist/{chunk-BMDVFBCL.js → chunk-RG5KLMEU.js} +2 -2
  45. package/dist/{chunk-DONPLWRC.js → chunk-SWGVCSIY.js} +2 -2
  46. package/dist/{chunk-LXA2E3VI.js → chunk-VSL3W2MO.js} +2 -2
  47. package/dist/{chunk-6M5JKTUQ.js → chunk-WH7G2YEE.js} +2 -2
  48. package/dist/{chunk-I2RX62RX.js → chunk-YYLFXX2K.js} +2 -2
  49. package/dist/consent/index.d.cts +4 -4
  50. package/dist/consent/index.d.ts +4 -4
  51. package/dist/{decrypt-partition-CptDdcCx.d.ts → decrypt-partition-BtGtE-19.d.ts} +1 -1
  52. package/dist/{decrypt-partition-DmkeOB4I.d.cts → decrypt-partition-Cqi5gcOl.d.cts} +1 -1
  53. package/dist/derivations/index.d.cts +5 -5
  54. package/dist/derivations/index.d.ts +5 -5
  55. package/dist/{dev-unlock-DUTLA3Sc.d.cts → dev-unlock-Cts_iiVv.d.cts} +1 -1
  56. package/dist/{dev-unlock-Y9znMkQ2.d.ts → dev-unlock-D0p9cQzN.d.ts} +1 -1
  57. package/dist/{executor-BIW4FT5R.js → executor-PJHMRZWJ.js} +4 -4
  58. package/dist/{fanout-sidecar-OC4QVTS2.js → fanout-sidecar-DSBVAR2P.js} +2 -2
  59. package/dist/forget/index.js +2 -2
  60. package/dist/guards/index.d.cts +5 -5
  61. package/dist/guards/index.d.ts +5 -5
  62. package/dist/{hash-Btl9IvQS.d.ts → hash-BtDtwguU.d.ts} +1 -1
  63. package/dist/{hash-DFK7cGdo.d.cts → hash-DA75XwW2.d.cts} +1 -1
  64. package/dist/history/index.cjs.map +1 -1
  65. package/dist/history/index.d.cts +5 -5
  66. package/dist/history/index.d.ts +5 -5
  67. package/dist/history/index.js +3 -3
  68. package/dist/i18n/index.cjs +98 -1
  69. package/dist/i18n/index.cjs.map +1 -1
  70. package/dist/i18n/index.d.cts +4 -4
  71. package/dist/i18n/index.d.ts +4 -4
  72. package/dist/i18n/index.js +83 -4
  73. package/dist/i18n/index.js.map +1 -1
  74. package/dist/{index-wRwJVVJQ.d.ts → index-BidHvmWf.d.ts} +3 -3
  75. package/dist/{index-CqzZml-D.d.cts → index-CP24aYCp.d.cts} +3 -3
  76. package/dist/{index-DoxKSsMj.d.cts → index-CVnt2Qmq.d.cts} +1 -1
  77. package/dist/{index-LaexBi3v.d.ts → index-DxBNV54L.d.ts} +1 -1
  78. package/dist/index.cjs +95 -6
  79. package/dist/index.cjs.map +1 -1
  80. package/dist/index.d.cts +14 -14
  81. package/dist/index.d.ts +14 -14
  82. package/dist/index.js +24 -24
  83. package/dist/{issue-ZZ2XPOGP.js → issue-JSGGSVY4.js} +4 -4
  84. package/dist/kernel/index.d.cts +4 -4
  85. package/dist/kernel/index.d.ts +4 -4
  86. package/dist/kernel/index.js +4 -4
  87. package/dist/{ledger-XQ4KVFQ6.js → ledger-PLMSH7LD.js} +3 -3
  88. package/dist/materialized-views/index.cjs +7 -0
  89. package/dist/materialized-views/index.cjs.map +1 -1
  90. package/dist/materialized-views/index.d.cts +5 -5
  91. package/dist/materialized-views/index.d.ts +5 -5
  92. package/dist/materialized-views/index.js +4 -4
  93. package/dist/{mime-magic-OiPT1qed.d.ts → mime-magic--NcogI82.d.ts} +1 -1
  94. package/dist/{mime-magic-Co4Pyj-O.d.cts → mime-magic-i2VSlkPM.d.cts} +1 -1
  95. package/dist/noydb-PHXA5E6I.js +39 -0
  96. package/dist/overlay-views/index.d.cts +5 -5
  97. package/dist/overlay-views/index.d.ts +5 -5
  98. package/dist/periods/index.cjs.map +1 -1
  99. package/dist/periods/index.d.cts +4 -4
  100. package/dist/periods/index.d.ts +4 -4
  101. package/dist/periods/index.js +3 -3
  102. package/dist/{public-envelope-O6X6AUUS.js → public-envelope-7MTH2PVE.js} +3 -3
  103. package/dist/query/index.cjs +7 -0
  104. package/dist/query/index.cjs.map +1 -1
  105. package/dist/query/index.d.cts +2 -2
  106. package/dist/query/index.d.ts +2 -2
  107. package/dist/query/index.js +3 -3
  108. package/dist/{revoke-QJ2HUM4W.js → revoke-DBAGKIDA.js} +4 -4
  109. package/dist/session/index.d.cts +5 -5
  110. package/dist/session/index.d.ts +5 -5
  111. package/dist/shadow/index.d.cts +4 -4
  112. package/dist/shadow/index.d.ts +4 -4
  113. package/dist/{signer-SCJ6C6HQ.js → signer-ADFJNS5W.js} +3 -3
  114. package/dist/snapshots/index.d.cts +4 -4
  115. package/dist/snapshots/index.d.ts +4 -4
  116. package/dist/snapshots/index.js +3 -3
  117. package/dist/{stale-KKCHF2VB.js → stale-BCIE3SMC.js} +2 -2
  118. package/dist/store/index.d.cts +4 -4
  119. package/dist/store/index.d.ts +4 -4
  120. package/dist/{strategy-YQ1qJWyq.d.ts → strategy-BoITAb2H.d.ts} +20 -1
  121. package/dist/{strategy-D1zjEV3n.d.cts → strategy-DDNvt_UD.d.cts} +20 -1
  122. package/dist/sync/index.cjs.map +1 -1
  123. package/dist/sync/index.d.cts +3 -3
  124. package/dist/sync/index.d.ts +3 -3
  125. package/dist/sync/index.js +2 -2
  126. package/dist/team/index.cjs.map +1 -1
  127. package/dist/team/index.d.cts +4 -4
  128. package/dist/team/index.d.ts +4 -4
  129. package/dist/team/index.js +5 -5
  130. package/dist/{transition-guard-CJmb8O8q.d.ts → transition-guard-BZhOlrFT.d.ts} +1 -1
  131. package/dist/{transition-guard-Dzj68JWC.d.cts → transition-guard-Bekgaxux.d.cts} +1 -1
  132. package/dist/tx/index.d.cts +4 -4
  133. package/dist/tx/index.d.ts +4 -4
  134. package/dist/{types-CkSWJt0H.d.ts → types-84nsWSDF.d.ts} +45 -4
  135. package/dist/{types-CwrTuYFI.d.cts → types-B_eCkuEI.d.cts} +45 -4
  136. package/dist/{with-materialized-view-BVfcPlaE.d.ts → with-materialized-view-CAMGQroY.d.ts} +1 -1
  137. package/dist/{with-materialized-view-dPG213gd.d.cts → with-materialized-view-DKMaZmkJ.d.cts} +1 -1
  138. package/dist/{with-overlayed-view-CJ2UDBol.d.cts → with-overlayed-view--lWXImbV.d.cts} +1 -1
  139. package/dist/{with-overlayed-view-zYPQzGGh.d.ts → with-overlayed-view-FnOf1v6H.d.ts} +1 -1
  140. package/dist/{with-rollup-B_zbRi3f.d.cts → with-rollup-C5875Ad5.d.cts} +1 -1
  141. package/dist/{with-rollup-BvaJefEs.d.ts → with-rollup-xi-mkY6Y.d.ts} +1 -1
  142. package/package.json +3 -3
  143. package/dist/chunk-AD6RNBAW.js.map +0 -1
  144. package/dist/chunk-KD253AI5.js.map +0 -1
  145. package/dist/chunk-KSKKLVPA.js.map +0 -1
  146. package/dist/noydb-EY52NVH4.js +0 -39
  147. /package/dist/{chunk-PS6PSEZL.js.map → chunk-2M62POB5.js.map} +0 -0
  148. /package/dist/{chunk-C7UIT5XY.js.map → chunk-345PYZD6.js.map} +0 -0
  149. /package/dist/{chunk-KA5A5CSD.js.map → chunk-42EGY2FQ.js.map} +0 -0
  150. /package/dist/{chunk-7DDTFGXY.js.map → chunk-4FHKQDHN.js.map} +0 -0
  151. /package/dist/{chunk-6H4CAHMQ.js.map → chunk-7GKDVWMD.js.map} +0 -0
  152. /package/dist/{chunk-6ZKXFMUG.js.map → chunk-7TBCLM52.js.map} +0 -0
  153. /package/dist/{chunk-VJNV2GRF.js.map → chunk-AHDQYG7P.js.map} +0 -0
  154. /package/dist/{chunk-RRCRITDM.js.map → chunk-DCYWBKQ2.js.map} +0 -0
  155. /package/dist/{chunk-K6PCTYAH.js.map → chunk-DMWUOV7X.js.map} +0 -0
  156. /package/dist/{chunk-CVTPNW2Y.js.map → chunk-DQ6XF2K2.js.map} +0 -0
  157. /package/dist/{chunk-5EITJMUJ.js.map → chunk-ENC4C6XW.js.map} +0 -0
  158. /package/dist/{chunk-BOMH3637.js.map → chunk-GVEUI7VR.js.map} +0 -0
  159. /package/dist/{chunk-WVYL6HM7.js.map → chunk-HI7FY7QZ.js.map} +0 -0
  160. /package/dist/{chunk-PFKAT4NT.js.map → chunk-HQ242WNG.js.map} +0 -0
  161. /package/dist/{chunk-HAKEZTA7.js.map → chunk-IMY4FXYE.js.map} +0 -0
  162. /package/dist/{chunk-SID2NJNF.js.map → chunk-JEQB2KVI.js.map} +0 -0
  163. /package/dist/{chunk-Z3BJF7SF.js.map → chunk-M2VZQ24Q.js.map} +0 -0
  164. /package/dist/{chunk-2NYVA6FW.js.map → chunk-PPF7Z2YQ.js.map} +0 -0
  165. /package/dist/{chunk-IWGVH2RR.js.map → chunk-QBC2TZHC.js.map} +0 -0
  166. /package/dist/{chunk-BMDVFBCL.js.map → chunk-RG5KLMEU.js.map} +0 -0
  167. /package/dist/{chunk-DONPLWRC.js.map → chunk-SWGVCSIY.js.map} +0 -0
  168. /package/dist/{chunk-LXA2E3VI.js.map → chunk-VSL3W2MO.js.map} +0 -0
  169. /package/dist/{chunk-6M5JKTUQ.js.map → chunk-WH7G2YEE.js.map} +0 -0
  170. /package/dist/{chunk-I2RX62RX.js.map → chunk-YYLFXX2K.js.map} +0 -0
  171. /package/dist/{executor-BIW4FT5R.js.map → executor-PJHMRZWJ.js.map} +0 -0
  172. /package/dist/{fanout-sidecar-OC4QVTS2.js.map → fanout-sidecar-DSBVAR2P.js.map} +0 -0
  173. /package/dist/{issue-ZZ2XPOGP.js.map → issue-JSGGSVY4.js.map} +0 -0
  174. /package/dist/{ledger-XQ4KVFQ6.js.map → ledger-PLMSH7LD.js.map} +0 -0
  175. /package/dist/{noydb-EY52NVH4.js.map → noydb-PHXA5E6I.js.map} +0 -0
  176. /package/dist/{public-envelope-O6X6AUUS.js.map → public-envelope-7MTH2PVE.js.map} +0 -0
  177. /package/dist/{revoke-QJ2HUM4W.js.map → revoke-DBAGKIDA.js.map} +0 -0
  178. /package/dist/{signer-SCJ6C6HQ.js.map → signer-ADFJNS5W.js.map} +0 -0
  179. /package/dist/{stale-KKCHF2VB.js.map → stale-BCIE3SMC.js.map} +0 -0
@@ -1,14 +1,14 @@
1
- import { T as TransferSealPayload } from '../decrypt-partition-DmkeOB4I.cjs';
2
- export { C as COMPRESSION_BROTLI, a as COMPRESSION_GZIP, b as COMPRESSION_NONE, c as CompressionAlgo, D as DecryptedRecord, F as FLAG_COMPRESSED, d as FLAG_HAS_INTEGRITY_HASH, N as NOYDB_BUNDLE_FORMAT_VERSION, e as NOYDB_BUNDLE_MAGIC, f as NOYDB_BUNDLE_PREFIX_BYTES, g as NoydbBundleHeader, h as NoydbBundleReadResult, R as ReadNoydbBundleOptions, W as WriteNoydbBundleOptions, i as decryptExtractedPartition, j as encodeBundleHeader, r as readNoydbBundle, k as readNoydbBundleHeader, l as resetBrotliSupportCache, v as validateBundleHeader, w as writeNoydbBundle } from '../decrypt-partition-DmkeOB4I.cjs';
1
+ import { T as TransferSealPayload } from '../decrypt-partition-Cqi5gcOl.cjs';
2
+ export { C as COMPRESSION_BROTLI, a as COMPRESSION_GZIP, b as COMPRESSION_NONE, c as CompressionAlgo, D as DecryptedRecord, F as FLAG_COMPRESSED, d as FLAG_HAS_INTEGRITY_HASH, N as NOYDB_BUNDLE_FORMAT_VERSION, e as NOYDB_BUNDLE_MAGIC, f as NOYDB_BUNDLE_PREFIX_BYTES, g as NoydbBundleHeader, h as NoydbBundleReadResult, R as ReadNoydbBundleOptions, W as WriteNoydbBundleOptions, i as decryptExtractedPartition, j as encodeBundleHeader, r as readNoydbBundle, k as readNoydbBundleHeader, l as resetBrotliSupportCache, v as validateBundleHeader, w as writeNoydbBundle } from '../decrypt-partition-Cqi5gcOl.cjs';
3
3
  export { g as generateULID, i as isULID } from '../ulid-DRH25k3y.cjs';
4
- import { bh as Vault, aW as NoydbStore, bd as SealingKeyProvider, bi as RecoveryEnrollmentInput, bj as ShamirRecoveryProvider } from '../types-CwrTuYFI.cjs';
4
+ import { bh as Vault, aW as NoydbStore, bd as SealingKeyProvider, bi as RecoveryEnrollmentInput, bj as ShamirRecoveryProvider } from '../types-B_eCkuEI.cjs';
5
5
  export { t as AdoptionStateError, B as BackupCorruptedError, u as BackupLedgerError, v as BundleIntegrityError, w as BundleSealMismatchError, x as BundleVersionConflictError, P as PartitionExtractionError, y as TransferSealError } from '../errors-Dwk2k1xY.cjs';
6
6
  import '../lazy-builder-eYZzLEL1.cjs';
7
7
  import '../predicate-BmhBSPCH.cjs';
8
- import '../strategy-D1zjEV3n.cjs';
8
+ import '../strategy-DDNvt_UD.cjs';
9
9
  import '../strategy-BSxFXGzb.cjs';
10
10
  import '../index-BMmajblo.cjs';
11
- import '../index-DoxKSsMj.cjs';
11
+ import '../index-CVnt2Qmq.cjs';
12
12
  import '@noy-db/attestation';
13
13
 
14
14
  /**
@@ -1,14 +1,14 @@
1
- import { T as TransferSealPayload } from '../decrypt-partition-CptDdcCx.js';
2
- export { C as COMPRESSION_BROTLI, a as COMPRESSION_GZIP, b as COMPRESSION_NONE, c as CompressionAlgo, D as DecryptedRecord, F as FLAG_COMPRESSED, d as FLAG_HAS_INTEGRITY_HASH, N as NOYDB_BUNDLE_FORMAT_VERSION, e as NOYDB_BUNDLE_MAGIC, f as NOYDB_BUNDLE_PREFIX_BYTES, g as NoydbBundleHeader, h as NoydbBundleReadResult, R as ReadNoydbBundleOptions, W as WriteNoydbBundleOptions, i as decryptExtractedPartition, j as encodeBundleHeader, r as readNoydbBundle, k as readNoydbBundleHeader, l as resetBrotliSupportCache, v as validateBundleHeader, w as writeNoydbBundle } from '../decrypt-partition-CptDdcCx.js';
1
+ import { T as TransferSealPayload } from '../decrypt-partition-BtGtE-19.js';
2
+ export { C as COMPRESSION_BROTLI, a as COMPRESSION_GZIP, b as COMPRESSION_NONE, c as CompressionAlgo, D as DecryptedRecord, F as FLAG_COMPRESSED, d as FLAG_HAS_INTEGRITY_HASH, N as NOYDB_BUNDLE_FORMAT_VERSION, e as NOYDB_BUNDLE_MAGIC, f as NOYDB_BUNDLE_PREFIX_BYTES, g as NoydbBundleHeader, h as NoydbBundleReadResult, R as ReadNoydbBundleOptions, W as WriteNoydbBundleOptions, i as decryptExtractedPartition, j as encodeBundleHeader, r as readNoydbBundle, k as readNoydbBundleHeader, l as resetBrotliSupportCache, v as validateBundleHeader, w as writeNoydbBundle } from '../decrypt-partition-BtGtE-19.js';
3
3
  export { g as generateULID, i as isULID } from '../ulid-DRH25k3y.js';
4
- import { bh as Vault, aW as NoydbStore, bd as SealingKeyProvider, bi as RecoveryEnrollmentInput, bj as ShamirRecoveryProvider } from '../types-CkSWJt0H.js';
4
+ import { bh as Vault, aW as NoydbStore, bd as SealingKeyProvider, bi as RecoveryEnrollmentInput, bj as ShamirRecoveryProvider } from '../types-84nsWSDF.js';
5
5
  export { t as AdoptionStateError, B as BackupCorruptedError, u as BackupLedgerError, v as BundleIntegrityError, w as BundleSealMismatchError, x as BundleVersionConflictError, P as PartitionExtractionError, y as TransferSealError } from '../errors-Dwk2k1xY.js';
6
6
  import '../lazy-builder-ChSqcF5t.js';
7
7
  import '../predicate-BmhBSPCH.js';
8
- import '../strategy-YQ1qJWyq.js';
8
+ import '../strategy-BoITAb2H.js';
9
9
  import '../strategy-BSxFXGzb.js';
10
10
  import '../index-BMmajblo.js';
11
- import '../index-LaexBi3v.js';
11
+ import '../index-DxBNV54L.js';
12
12
  import '@noy-db/attestation';
13
13
 
14
14
  /**
@@ -3,10 +3,10 @@ import {
3
3
  createOwnerOnAdoptedPartition,
4
4
  decryptExtractedPartition,
5
5
  unsealDeks
6
- } from "../chunk-CVTPNW2Y.js";
6
+ } from "../chunk-DQ6XF2K2.js";
7
7
  import {
8
8
  SCHEMAS_COLLECTION
9
- } from "../chunk-SID2NJNF.js";
9
+ } from "../chunk-JEQB2KVI.js";
10
10
  import {
11
11
  COMPRESSION_BROTLI,
12
12
  COMPRESSION_GZIP,
@@ -24,17 +24,17 @@ import {
24
24
  resetBrotliSupportCache,
25
25
  validateBundleHeader,
26
26
  writeNoydbBundle
27
- } from "../chunk-6ZKXFMUG.js";
28
- import "../chunk-2NYVA6FW.js";
29
- import "../chunk-K6PCTYAH.js";
30
- import "../chunk-LXA2E3VI.js";
27
+ } from "../chunk-7TBCLM52.js";
28
+ import "../chunk-PPF7Z2YQ.js";
29
+ import "../chunk-DMWUOV7X.js";
30
+ import "../chunk-VSL3W2MO.js";
31
31
  import {
32
32
  generateULID,
33
33
  isULID
34
34
  } from "../chunk-FZU343FL.js";
35
35
  import {
36
36
  LEDGER_COLLECTION
37
- } from "../chunk-6H4CAHMQ.js";
37
+ } from "../chunk-7GKDVWMD.js";
38
38
  import {
39
39
  canonicalJson,
40
40
  envelopePayloadHash,
@@ -43,7 +43,7 @@ import {
43
43
  import {
44
44
  NOYDB_BACKUP_VERSION,
45
45
  NOYDB_FORMAT_VERSION
46
- } from "../chunk-AD6RNBAW.js";
46
+ } from "../chunk-QSLIT4JZ.js";
47
47
  import {
48
48
  bufferToBase64,
49
49
  decrypt,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  wrapMoneyReducers
3
- } from "./chunk-C7UIT5XY.js";
3
+ } from "./chunk-345PYZD6.js";
4
4
  import {
5
5
  MoneyPrecisionError,
6
6
  evaluateClause,
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-3BANVNDH.js";
13
13
  import {
14
14
  applyI18nLocale
15
- } from "./chunk-KD253AI5.js";
15
+ } from "./chunk-6LD37AMK.js";
16
16
  import {
17
17
  CrossJoinSourceUnknownError,
18
18
  CrossJoinTooLargeError,
@@ -1977,4 +1977,4 @@ export {
1977
1977
  executePlan,
1978
1978
  ScanBuilder
1979
1979
  };
1980
- //# sourceMappingURL=chunk-PS6PSEZL.js.map
1980
+ //# sourceMappingURL=chunk-2M62POB5.js.map
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-3BANVNDH.js";
8
8
  import {
9
9
  applyI18nLocale
10
- } from "./chunk-KD253AI5.js";
10
+ } from "./chunk-6LD37AMK.js";
11
11
  import {
12
12
  GroupCardinalityError
13
13
  } from "./chunk-DDOYOMAD.js";
@@ -559,4 +559,4 @@ export {
559
559
  groupAndReduce,
560
560
  GroupedAggregation
561
561
  };
562
- //# sourceMappingURL=chunk-C7UIT5XY.js.map
562
+ //# sourceMappingURL=chunk-345PYZD6.js.map
@@ -2,7 +2,7 @@ import {
2
2
  StoreCoordinationProvider,
3
3
  loadFence,
4
4
  runDrainBarrier
5
- } from "./chunk-Z3BJF7SF.js";
5
+ } from "./chunk-M2VZQ24Q.js";
6
6
  import {
7
7
  resolveSchema
8
8
  } from "./chunk-EMIGCR7X.js";
@@ -22,12 +22,12 @@ import {
22
22
  decodeMoneyFields,
23
23
  quantizeMoneyFields,
24
24
  validateMoneyFieldPaths
25
- } from "./chunk-PS6PSEZL.js";
25
+ } from "./chunk-2M62POB5.js";
26
26
  import {
27
27
  EXPORT_AUDIT_COLLECTION,
28
28
  createExportBlobsHandle,
29
29
  runCompaction
30
- } from "./chunk-RRCRITDM.js";
30
+ } from "./chunk-DCYWBKQ2.js";
31
31
  import {
32
32
  LazyQuery,
33
33
  decodeIdxId,
@@ -35,7 +35,7 @@ import {
35
35
  } from "./chunk-H4XFA2LM.js";
36
36
  import {
37
37
  canonicalGroupKey
38
- } from "./chunk-C7UIT5XY.js";
38
+ } from "./chunk-345PYZD6.js";
39
39
  import {
40
40
  readPath
41
41
  } from "./chunk-3BANVNDH.js";
@@ -45,16 +45,16 @@ import {
45
45
  resolveManagedSecret,
46
46
  savePersistedSchema,
47
47
  saveSealedPassphrase
48
- } from "./chunk-SID2NJNF.js";
48
+ } from "./chunk-JEQB2KVI.js";
49
49
  import {
50
50
  writeNoydbBundle
51
- } from "./chunk-6ZKXFMUG.js";
51
+ } from "./chunk-7TBCLM52.js";
52
52
  import {
53
53
  loadPublicEnvelope,
54
54
  readPublicEnvelope,
55
55
  savePublicEnvelope,
56
56
  validatePublicEnvelopeInput
57
- } from "./chunk-2NYVA6FW.js";
57
+ } from "./chunk-PPF7Z2YQ.js";
58
58
  import {
59
59
  buildTombstone,
60
60
  isTombstone,
@@ -63,19 +63,20 @@ import {
63
63
  rewrapBodyToDek,
64
64
  rotateRecordCek,
65
65
  sealRecordToHost
66
- } from "./chunk-K6PCTYAH.js";
66
+ } from "./chunk-DMWUOV7X.js";
67
67
  import {
68
68
  PERIODS_COLLECTION
69
- } from "./chunk-BOMH3637.js";
69
+ } from "./chunk-GVEUI7VR.js";
70
70
  import {
71
71
  isDictCollectionName,
72
72
  isStaticDictDescriptor
73
- } from "./chunk-PFKAT4NT.js";
73
+ } from "./chunk-HQ242WNG.js";
74
74
  import {
75
75
  getAtPath,
76
76
  resolvePolicy,
77
- setAtPathInPlace
78
- } from "./chunk-KD253AI5.js";
77
+ setAtPathInPlace,
78
+ stripI18nFilled
79
+ } from "./chunk-6LD37AMK.js";
79
80
  import {
80
81
  ManagedRecoveryNotEnrolledError,
81
82
  PolicyDeniedError,
@@ -97,7 +98,7 @@ import {
97
98
  saveShamirRecoveryEntries,
98
99
  updateAuthenticator,
99
100
  writeMagicLinkGrant
100
- } from "./chunk-IWGVH2RR.js";
101
+ } from "./chunk-QBC2TZHC.js";
101
102
  import {
102
103
  assertTierAccess,
103
104
  dekKey
@@ -126,7 +127,7 @@ import {
126
127
  rotateKeys,
127
128
  saveUserEnvelope,
128
129
  updateKeyringIdentity
129
- } from "./chunk-LXA2E3VI.js";
130
+ } from "./chunk-VSL3W2MO.js";
130
131
  import {
131
132
  INDEXED_STORE_POLICY
132
133
  } from "./chunk-2QR2PQTT.js";
@@ -136,7 +137,7 @@ import {
136
137
  import {
137
138
  LEDGER_COLLECTION,
138
139
  LEDGER_DELTAS_COLLECTION
139
- } from "./chunk-6H4CAHMQ.js";
140
+ } from "./chunk-7GKDVWMD.js";
140
141
  import {
141
142
  sha256Hex as sha256Hex2
142
143
  } from "./chunk-PDVP3C2I.js";
@@ -148,11 +149,11 @@ import {
148
149
  readDottedPath,
149
150
  rebuildSubjectIndex,
150
151
  removeSubjectRef
151
- } from "./chunk-BMDVFBCL.js";
152
+ } from "./chunk-RG5KLMEU.js";
152
153
  import {
153
154
  NOYDB_BACKUP_VERSION,
154
155
  NOYDB_FORMAT_VERSION
155
- } from "./chunk-AD6RNBAW.js";
156
+ } from "./chunk-QSLIT4JZ.js";
156
157
  import {
157
158
  decrypt,
158
159
  encrypt,
@@ -418,6 +419,11 @@ var NO_I18N = {
418
419
  enforceScript(value) {
419
420
  return { value, warnings: [] };
420
421
  },
422
+ computeExemptFills() {
423
+ return /* @__PURE__ */ new Map();
424
+ },
425
+ densify() {
426
+ },
421
427
  buildDictionaryHandle() {
422
428
  throw notEnabled("vault.dictionary()");
423
429
  }
@@ -1111,6 +1117,12 @@ var Collection = class {
1111
1117
  * Declared via the `i18nFields` collection option.
1112
1118
  */
1113
1119
  i18nFields;
1120
+ /**
1121
+ * #435 — the densify-enabled subset of {@link i18nFields} (fields whose
1122
+ * descriptor opts in via `densifyOnWrite: true`). `undefined` when none opt
1123
+ * in, so the write path skips all densify work for ordinary collections.
1124
+ */
1125
+ i18nDensifyFields;
1114
1126
  /**
1115
1127
  * Map of field name → `DictKeyDescriptor` for fields declared with
1116
1128
  * `dictKey()`. Used by `get()`/`list()` to add `<field>Label` virtual
@@ -1297,6 +1309,10 @@ var Collection = class {
1297
1309
  this.refEnforcer = opts.refEnforcer;
1298
1310
  this.joinResolver = opts.joinResolver;
1299
1311
  this.i18nFields = opts.i18nFields;
1312
+ const densifyFields = opts.i18nFields ? Object.fromEntries(
1313
+ Object.entries(opts.i18nFields).filter(([, d]) => d.options.densifyOnWrite === true)
1314
+ ) : {};
1315
+ this.i18nDensifyFields = Object.keys(densifyFields).length > 0 ? densifyFields : void 0;
1300
1316
  this.dictKeyFields = opts.dictKeyFields;
1301
1317
  if (opts.moneyFields) validateMoneyFieldPaths(opts.moneyFields);
1302
1318
  this.moneyFields = opts.moneyFields;
@@ -1470,7 +1486,7 @@ var Collection = class {
1470
1486
  }
1471
1487
  }
1472
1488
  if (this.materializedViewSource !== void 0) {
1473
- const { resolveStaleMVOnRead } = await import("./stale-KKCHF2VB.js");
1489
+ const { resolveStaleMVOnRead } = await import("./stale-BCIE3SMC.js");
1474
1490
  await resolveStaleMVOnRead(this.materializedViewSource, this.name);
1475
1491
  }
1476
1492
  let record;
@@ -1616,6 +1632,32 @@ var Collection = class {
1616
1632
  if (busAfterPut) await this.subsystemBus.dispatch("afterPut", event);
1617
1633
  }
1618
1634
  }
1635
+ /**
1636
+ * #435 — resolve the prior stored record (with its `_i18nFilled` marker) for
1637
+ * densify. Eager: in-memory cache; lazy: LRU then adapter. undefined if absent.
1638
+ */
1639
+ async resolveDensifyPrior(id) {
1640
+ if (this.lazy && this.lru) {
1641
+ const cached = this.lru.get(id);
1642
+ if (cached) return cached.record;
1643
+ const env = await this.adapter.get(this.vault, this.name, id);
1644
+ if (!env) return void 0;
1645
+ const rec = await this.decryptRecord(env);
1646
+ return rec === null ? void 0 : rec;
1647
+ }
1648
+ await this.ensureHydrated();
1649
+ return this.cache.get(id)?.record;
1650
+ }
1651
+ /**
1652
+ * #435 — densify provenance for a record: which i18n slots were auto-filled,
1653
+ * e.g. `{ name: ['en'] }`. undefined when nothing was filled. The marker is
1654
+ * stripped from ordinary reads; this is the sanctioned audit accessor.
1655
+ */
1656
+ async i18nProvenance(id) {
1657
+ const prior = await this.resolveDensifyPrior(id);
1658
+ const marker = prior?.["_i18nFilled"];
1659
+ return marker && Object.keys(marker).length > 0 ? marker : void 0;
1660
+ }
1619
1661
  /**
1620
1662
  * Validate a record against this collection's schema WITHOUT writing it.
1621
1663
  * Returns the (possibly coerced) record on success; throws
@@ -1730,6 +1772,16 @@ var Collection = class {
1730
1772
  setAtPathInPlace(obj, field, translated);
1731
1773
  }
1732
1774
  }
1775
+ let densifyPrior;
1776
+ let exemptFills;
1777
+ if (this.i18nDensifyFields) {
1778
+ densifyPrior = await this.resolveDensifyPrior(id);
1779
+ exemptFills = this.i18nStrategy.computeExemptFills(
1780
+ densifyPrior,
1781
+ record,
1782
+ this.i18nDensifyFields
1783
+ );
1784
+ }
1733
1785
  if (this.i18nFields) {
1734
1786
  const obj = record;
1735
1787
  for (const [field, descriptor] of Object.entries(this.i18nFields)) {
@@ -1737,18 +1789,38 @@ var Collection = class {
1737
1789
  for (const leaf of getAtPath(obj, field)) {
1738
1790
  if (!leaf || typeof leaf !== "object" || Array.isArray(leaf)) continue;
1739
1791
  const leafMap = leaf;
1740
- const { value: cleaned } = this.i18nStrategy.enforceScript(
1792
+ const { value: cleaned, warnings } = this.i18nStrategy.enforceScript(
1741
1793
  leafMap,
1742
1794
  field,
1743
- descriptor
1795
+ descriptor,
1796
+ exemptFills?.get(field)
1744
1797
  );
1745
1798
  if (cleaned !== leafMap) Object.assign(leafMap, cleaned);
1799
+ const mode = descriptor.options.onScriptViolation;
1800
+ if (mode === "warn" || mode === "filter") {
1801
+ for (const w of warnings) {
1802
+ this.emitter.emit("i18n:script-violation", {
1803
+ vault: this.vault,
1804
+ collection: this.name,
1805
+ id,
1806
+ mode,
1807
+ warning: w
1808
+ });
1809
+ }
1810
+ }
1746
1811
  }
1747
1812
  }
1748
1813
  }
1749
1814
  if (this.i18nPutValidator !== void 0) {
1750
1815
  this.i18nPutValidator(record);
1751
1816
  }
1817
+ if (this.i18nDensifyFields) {
1818
+ this.i18nStrategy.densify(
1819
+ record,
1820
+ densifyPrior,
1821
+ this.i18nDensifyFields
1822
+ );
1823
+ }
1752
1824
  if (this.refEnforcer !== void 0) {
1753
1825
  await this.refEnforcer.enforceRefsOnPut(this.name, record);
1754
1826
  }
@@ -1929,7 +2001,7 @@ var Collection = class {
1929
2001
  if (mode === "eager") {
1930
2002
  if (executor === null) {
1931
2003
  ;
1932
- ({ MaterializedViewExecutor: executor } = await import("./executor-BIW4FT5R.js"));
2004
+ ({ MaterializedViewExecutor: executor } = await import("./executor-PJHMRZWJ.js"));
1933
2005
  }
1934
2006
  await executor.refresh(reg, {
1935
2007
  getCollection: (name) => this.materializedViewSource.getCollection(name),
@@ -1938,7 +2010,7 @@ var Collection = class {
1938
2010
  });
1939
2011
  } else if (mode === "lazy") {
1940
2012
  if (staleHelpers === null) {
1941
- staleHelpers = await import("./stale-KKCHF2VB.js");
2013
+ staleHelpers = await import("./stale-BCIE3SMC.js");
1942
2014
  }
1943
2015
  staleHelpers.markMVStale(registry, reg.spec.name);
1944
2016
  }
@@ -2131,7 +2203,7 @@ var Collection = class {
2131
2203
  const outputCollection = this.derivationSource.getCollection(outSpec.collection);
2132
2204
  const txCtx = this.derivationSource.getActiveTxContext();
2133
2205
  if (out.kind === "array") {
2134
- const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-OC4QVTS2.js");
2206
+ const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-DSBVAR2P.js");
2135
2207
  const prior = await loadFanoutSidecar(
2136
2208
  this.adapter,
2137
2209
  this.vault,
@@ -2494,7 +2566,7 @@ var Collection = class {
2494
2566
  for (const [outputKey, outSpec] of Object.entries(spec.outputs)) {
2495
2567
  if (outSpec.shape !== "array") continue;
2496
2568
  if (helpers === null) {
2497
- helpers = await import("./fanout-sidecar-OC4QVTS2.js");
2569
+ helpers = await import("./fanout-sidecar-DSBVAR2P.js");
2498
2570
  }
2499
2571
  const sidecar = await helpers.loadFanoutSidecar(
2500
2572
  this.adapter,
@@ -2534,7 +2606,7 @@ var Collection = class {
2534
2606
  if (mode === "eager") {
2535
2607
  if (executor === null) {
2536
2608
  ;
2537
- ({ MaterializedViewExecutor: executor } = await import("./executor-BIW4FT5R.js"));
2609
+ ({ MaterializedViewExecutor: executor } = await import("./executor-PJHMRZWJ.js"));
2538
2610
  }
2539
2611
  await executor.refresh(reg, {
2540
2612
  getCollection: (name) => this.materializedViewSource.getCollection(name),
@@ -2543,7 +2615,7 @@ var Collection = class {
2543
2615
  });
2544
2616
  } else if (mode === "lazy") {
2545
2617
  if (staleHelpers === null) {
2546
- staleHelpers = await import("./stale-KKCHF2VB.js");
2618
+ staleHelpers = await import("./stale-BCIE3SMC.js");
2547
2619
  }
2548
2620
  staleHelpers.markMVStale(registry, reg.spec.name);
2549
2621
  }
@@ -2566,7 +2638,7 @@ var Collection = class {
2566
2638
  );
2567
2639
  }
2568
2640
  if (this.materializedViewSource !== void 0) {
2569
- const { resolveStaleMVOnRead } = await import("./stale-KKCHF2VB.js");
2641
+ const { resolveStaleMVOnRead } = await import("./stale-BCIE3SMC.js");
2570
2642
  await resolveStaleMVOnRead(this.materializedViewSource, this.name);
2571
2643
  }
2572
2644
  await this.ensureHydrated();
@@ -2602,7 +2674,7 @@ var Collection = class {
2602
2674
  }
2603
2675
  await this.ensureHydrated();
2604
2676
  const entries = [];
2605
- for (const [id, e] of this.cache) entries.push({ id, record: e.record });
2677
+ for (const [id, e] of this.cache) entries.push({ id, record: stripI18nFilled(e.record) });
2606
2678
  return searchScan(entries, field, query, opts);
2607
2679
  }
2608
2680
  // ─── Bulk operations ─────────────────────────────────────
@@ -3516,7 +3588,7 @@ var Collection = class {
3516
3588
  const hasStaticDisplay = hasDict && this.dictKeyFields !== void 0 && Object.values(this.dictKeyFields).some(
3517
3589
  (d) => isStaticDictDescriptor(d) && d.displayLocale !== void 0
3518
3590
  );
3519
- if (!locale && !hasStaticDisplay) return result;
3591
+ if (!locale && !hasStaticDisplay) return stripI18nFilled(result);
3520
3592
  const layer = localeOpts?._layer ?? "read";
3521
3593
  if (locale && hasI18n && this.i18nFields) {
3522
3594
  result = this.i18nStrategy.applyI18nLocale(result, this.i18nFields, locale, localeOpts?.fallback, layer);
@@ -3583,7 +3655,7 @@ var Collection = class {
3583
3655
  }
3584
3656
  result = withLabels;
3585
3657
  }
3586
- return result;
3658
+ return stripI18nFilled(result);
3587
3659
  }
3588
3660
  /**
3589
3661
  * Low-level: encrypt a pre-serialised JSON string into an EncryptedEnvelope.
@@ -7646,12 +7718,12 @@ var Vault = class {
7646
7718
  if (!fieldSchema) {
7647
7719
  throw new AttestationError(`issueAttestation: collection '${collectionName}' has no attestation field-schema. Declare it via vault.collection('${collectionName}', { attestation: { fields: [...] } }).`);
7648
7720
  }
7649
- const { issueAttestationCore } = await import("./issue-ZZ2XPOGP.js");
7721
+ const { issueAttestationCore } = await import("./issue-JSGGSVY4.js");
7650
7722
  const out = await issueAttestationCore(this.makeIssueContext(), { collection: collectionName, id, fieldSchema });
7651
7723
  return { docId: out.docId, qr: out.qr, keyId: out.keyId, publicKeyB64: out.publicKeyB64 };
7652
7724
  }
7653
7725
  async getDocumentSigningPublicKey() {
7654
- const { loadSigner, loadOrCreateSigner } = await import("./signer-SCJ6C6HQ.js");
7726
+ const { loadSigner, loadOrCreateSigner } = await import("./signer-ADFJNS5W.js");
7655
7727
  const existing = await loadSigner(this.adapter, this.name, this.getDEK);
7656
7728
  if (existing) return { keyId: existing.keyId, publicKeyB64: existing.publicKeyB64 };
7657
7729
  if (this.keyring.role !== "owner") {
@@ -7677,19 +7749,19 @@ var Vault = class {
7677
7749
  };
7678
7750
  }
7679
7751
  async revokeAttestation(docId) {
7680
- const { revokeDocCore } = await import("./revoke-QJ2HUM4W.js");
7752
+ const { revokeDocCore } = await import("./revoke-DBAGKIDA.js");
7681
7753
  await revokeDocCore(this.makeRevokeContext(), docId);
7682
7754
  }
7683
7755
  async unrevokeAttestation(docId) {
7684
- const { unrevokeDocCore } = await import("./revoke-QJ2HUM4W.js");
7756
+ const { unrevokeDocCore } = await import("./revoke-DBAGKIDA.js");
7685
7757
  await unrevokeDocCore(this.makeRevokeContext(), docId);
7686
7758
  }
7687
7759
  async getRevokedDocIds() {
7688
- const { getRevokedDocIdsCore } = await import("./revoke-QJ2HUM4W.js");
7760
+ const { getRevokedDocIdsCore } = await import("./revoke-DBAGKIDA.js");
7689
7761
  return getRevokedDocIdsCore(this.makeRevokeContext());
7690
7762
  }
7691
7763
  async publishRevocationList() {
7692
- const { publishRevocationListCore } = await import("./revoke-QJ2HUM4W.js");
7764
+ const { publishRevocationListCore } = await import("./revoke-DBAGKIDA.js");
7693
7765
  return publishRevocationListCore(this.makeRevokeContext());
7694
7766
  }
7695
7767
  makeRevokeContext() {
@@ -8450,13 +8522,13 @@ var Vault = class {
8450
8522
  if (!reg) {
8451
8523
  throw new Error(`refreshView: no MV registered with name "${name}"`);
8452
8524
  }
8453
- const { MaterializedViewExecutor } = await import("./executor-BIW4FT5R.js");
8525
+ const { MaterializedViewExecutor } = await import("./executor-PJHMRZWJ.js");
8454
8526
  const result = await MaterializedViewExecutor.refresh(reg, {
8455
8527
  getCollection: (n) => this.collection(n),
8456
8528
  getActiveTxContext: () => this.noydb._activeTxContextOrNull,
8457
8529
  getQueryContext: () => this
8458
8530
  });
8459
- const { clearMVStale } = await import("./stale-KKCHF2VB.js");
8531
+ const { clearMVStale } = await import("./stale-BCIE3SMC.js");
8460
8532
  clearMVStale(registry, name);
8461
8533
  return result;
8462
8534
  }
@@ -8497,7 +8569,7 @@ var Vault = class {
8497
8569
  if (!outSpec) continue;
8498
8570
  const outputColl = this.collection(outSpec.collection);
8499
8571
  if (out.kind === "array") {
8500
- const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-OC4QVTS2.js");
8572
+ const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-DSBVAR2P.js");
8501
8573
  const prior = await loadFanoutSidecar(this.adapter, this.name, spec.source, id, key);
8502
8574
  const prevKeys = new Set(prior?.keys ?? []);
8503
8575
  const newKeysList = out.entries.map((e) => e.key);
@@ -9211,7 +9283,7 @@ var Vault = class {
9211
9283
  * @see docs/subsystems/public-envelope.md
9212
9284
  */
9213
9285
  async getPublicEnvelope(opts = {}) {
9214
- const { readPublicEnvelope: readPublicEnvelope2 } = await import("./public-envelope-O6X6AUUS.js");
9286
+ const { readPublicEnvelope: readPublicEnvelope2 } = await import("./public-envelope-7MTH2PVE.js");
9215
9287
  return readPublicEnvelope2(this.adapter, this.name, opts);
9216
9288
  }
9217
9289
  /**
@@ -13137,4 +13209,4 @@ export {
13137
13209
  Noydb,
13138
13210
  createNoydb
13139
13211
  };
13140
- //# sourceMappingURL=chunk-KSKKLVPA.js.map
13212
+ //# sourceMappingURL=chunk-3LHTFCU2.js.map