@noy-db/hub 0.2.0-pre.13 → 0.2.0-pre.15

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 (260) hide show
  1. package/dist/aggregate/index.cjs +56 -56
  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 +4 -4
  6. package/dist/attestation/index.cjs.map +1 -1
  7. package/dist/attestation/index.d.cts +5 -5
  8. package/dist/attestation/index.d.ts +5 -5
  9. package/dist/attestation/index.js +5 -5
  10. package/dist/blobs/index.cjs.map +1 -1
  11. package/dist/blobs/index.d.cts +6 -6
  12. package/dist/blobs/index.d.ts +6 -6
  13. package/dist/blobs/index.js +4 -4
  14. package/dist/bundle/index.cjs +559 -76
  15. package/dist/bundle/index.cjs.map +1 -1
  16. package/dist/bundle/index.d.cts +7 -7
  17. package/dist/bundle/index.d.ts +7 -7
  18. package/dist/bundle/index.js +8 -8
  19. package/dist/{chunk-YWBHS25M.js → chunk-3EWXMOK3.js} +8 -267
  20. package/dist/chunk-3EWXMOK3.js.map +1 -0
  21. package/dist/{chunk-SJ24GHID.js → chunk-4TBBMHVC.js} +2 -2
  22. package/dist/{chunk-NKGY3C53.js → chunk-535SSHBS.js} +8 -1
  23. package/dist/{chunk-NKGY3C53.js.map → chunk-535SSHBS.js.map} +1 -1
  24. package/dist/{chunk-HQXOEWLZ.js → chunk-56DJ7JVK.js} +3 -3
  25. package/dist/{chunk-KKB42D3Q.js → chunk-5LQG6ZO2.js} +2 -2
  26. package/dist/{chunk-TDECYU4Y.js → chunk-6AJBSQU4.js} +2 -2
  27. package/dist/{chunk-O2JW656W.js → chunk-6RR3MNMG.js} +3 -3
  28. package/dist/{chunk-P5MW7BG2.js → chunk-7EFFHEN5.js} +57 -50
  29. package/dist/chunk-7EFFHEN5.js.map +1 -0
  30. package/dist/{chunk-7TEI2K2A.js → chunk-7HT2MEZ5.js} +4 -4
  31. package/dist/{chunk-WQKZIQIL.js → chunk-7PS7EOCF.js} +3 -3
  32. package/dist/{chunk-C3WRKABE.js → chunk-A5ZOOZFB.js} +3 -3
  33. package/dist/{chunk-5NISHSBO.js → chunk-AAVWKNZW.js} +2 -2
  34. package/dist/{chunk-SOU42FGB.js → chunk-BIYRQQV6.js} +4 -4
  35. package/dist/{chunk-ILWQGTNH.js → chunk-BQ65SS5A.js} +2 -2
  36. package/dist/{chunk-CWFQTAD4.js → chunk-C5T5AFWN.js} +4 -4
  37. package/dist/chunk-CJORTUJ2.js +524 -0
  38. package/dist/chunk-CJORTUJ2.js.map +1 -0
  39. package/dist/{chunk-SYSKC237.js → chunk-COFPAMX6.js} +5 -5
  40. package/dist/{chunk-D5Y3HIC6.js → chunk-CZI2A4MQ.js} +3 -3
  41. package/dist/{chunk-KJF7EPUE.js → chunk-DKO2QFSA.js} +2 -2
  42. package/dist/{chunk-QFYVGJLI.js → chunk-DQU36Q7I.js} +2 -2
  43. package/dist/{chunk-NIUXQDWD.js → chunk-EGD5DXFT.js} +2 -2
  44. package/dist/{chunk-NJMKHRQI.js → chunk-EYVQHAGH.js} +267 -67
  45. package/dist/chunk-EYVQHAGH.js.map +1 -0
  46. package/dist/{chunk-KHQ3N5AB.js → chunk-F4OJZIWQ.js} +4 -4
  47. package/dist/{chunk-3OUCWHV6.js → chunk-FWPKCXTN.js} +2 -2
  48. package/dist/{chunk-QIVFGU2M.js → chunk-HOR4R722.js} +3 -3
  49. package/dist/{chunk-NP6EZT44.js → chunk-IQLVUT37.js} +2 -2
  50. package/dist/{chunk-4VCQH32J.js → chunk-JD3OZAI4.js} +2 -2
  51. package/dist/{chunk-J67BP5EP.js → chunk-KI6HAJWL.js} +3 -3
  52. package/dist/{chunk-AYNF7PVX.js → chunk-KIP6JLTF.js} +2 -2
  53. package/dist/{chunk-PW26DAXS.js → chunk-L2FE64BU.js} +3 -3
  54. package/dist/{chunk-QAWCVWCX.js → chunk-LX3CB26H.js} +4 -4
  55. package/dist/{chunk-VAK6NQAK.js → chunk-NSCVNK5K.js} +4 -4
  56. package/dist/{chunk-4YDZ7JPZ.js → chunk-NU6Q3FOR.js} +4 -4
  57. package/dist/chunk-NU6Q3FOR.js.map +1 -0
  58. package/dist/{chunk-3XZRRBFW.js → chunk-OHVFWCJP.js} +2 -2
  59. package/dist/{chunk-TEQGXA7L.js → chunk-PE4AQGFH.js} +4 -4
  60. package/dist/{chunk-UNQEWORI.js → chunk-TS26M2SB.js} +2 -2
  61. package/dist/{chunk-FNVFT4HZ.js → chunk-VU7SWWT5.js} +2 -2
  62. package/dist/{chunk-GZJ5JBED.js → chunk-WBAYSNUQ.js} +3 -3
  63. package/dist/{chunk-HHZ77DHM.js → chunk-WGHU7BLI.js} +2 -2
  64. package/dist/{chunk-GL3Z7LH7.js → chunk-X73VS74Y.js} +2 -2
  65. package/dist/{chunk-WIBHRONM.js → chunk-XWH4MXIU.js} +2 -2
  66. package/dist/{chunk-M6KXHRIA.js → chunk-YHPM5D7Y.js} +3 -3
  67. package/dist/{chunk-E3DIBDKA.js → chunk-YULZKK4F.js} +2 -2
  68. package/dist/{chunk-JWFNOD2T.js → chunk-Z4DO7YSI.js} +2 -2
  69. package/dist/{chunk-JPOQMXGT.js → chunk-ZNQYHJXX.js} +2 -2
  70. package/dist/consent/index.cjs.map +1 -1
  71. package/dist/consent/index.d.cts +6 -6
  72. package/dist/consent/index.d.ts +6 -6
  73. package/dist/consent/index.js +3 -3
  74. package/dist/{crypto-YXH6SAOW.js → crypto-QXQOHMHF.js} +3 -3
  75. package/dist/{delegation-K5ERUH6A.js → delegation-NIQ43IPU.js} +5 -5
  76. package/dist/derivations/index.cjs.map +1 -1
  77. package/dist/derivations/index.d.cts +7 -7
  78. package/dist/derivations/index.d.ts +7 -7
  79. package/dist/derivations/index.js +4 -4
  80. package/dist/{dev-unlock-BW0GNBEV.d.ts → dev-unlock-iAS8z9jc.d.ts} +1 -1
  81. package/dist/{dev-unlock-a7SOtaV0.d.cts → dev-unlock-nVkuRLLe.d.cts} +1 -1
  82. package/dist/executor-6ZDSDZ6V.js +8 -0
  83. package/dist/executor-HSSRXDOB.js +11 -0
  84. package/dist/executor-IDZDAFNH.js +8 -0
  85. package/dist/guards/index.cjs.map +1 -1
  86. package/dist/guards/index.d.cts +7 -7
  87. package/dist/guards/index.d.ts +7 -7
  88. package/dist/guards/index.js +3 -3
  89. package/dist/{hash-B0cLQcq_.d.cts → hash-Cv6byZs7.d.cts} +1 -1
  90. package/dist/{hash-uMNIAAW8.d.ts → hash-DHOnRarj.d.ts} +1 -1
  91. package/dist/history/index.cjs.map +1 -1
  92. package/dist/history/index.d.cts +7 -7
  93. package/dist/history/index.d.ts +7 -7
  94. package/dist/history/index.js +4 -4
  95. package/dist/i18n/index.cjs.map +1 -1
  96. package/dist/i18n/index.d.cts +6 -6
  97. package/dist/i18n/index.d.ts +6 -6
  98. package/dist/i18n/index.js +5 -5
  99. package/dist/{immutable-guard-B0h-ipLz.d.ts → immutable-guard-BehB1YGB.d.ts} +1 -1
  100. package/dist/{immutable-guard-BZIcYhYX.d.cts → immutable-guard-yBEOYmif.d.cts} +1 -1
  101. package/dist/{index-CUVOMtgg.d.cts → index-D95VK1Qy.d.cts} +11 -3
  102. package/dist/{index-Cqzp4tt9.d.ts → index-XNB2r6bX.d.ts} +11 -3
  103. package/dist/index.cjs +700 -78
  104. package/dist/index.cjs.map +1 -1
  105. package/dist/index.d.cts +145 -15
  106. package/dist/index.d.ts +145 -15
  107. package/dist/index.js +164 -48
  108. package/dist/index.js.map +1 -1
  109. package/dist/indexing/index.cjs +92 -31
  110. package/dist/indexing/index.cjs.map +1 -1
  111. package/dist/indexing/index.d.cts +3 -3
  112. package/dist/indexing/index.d.ts +3 -3
  113. package/dist/indexing/index.js +4 -4
  114. package/dist/issue-ADVS4OVP.js +12 -0
  115. package/dist/{lazy-builder-D5GU14TS.d.ts → lazy-builder-ChSqcF5t.d.ts} +1 -1
  116. package/dist/{lazy-builder-Ci5_YG73.d.cts → lazy-builder-eYZzLEL1.d.cts} +1 -1
  117. package/dist/{ledger-64TTQMRS.js → ledger-CWSE3BLF.js} +4 -4
  118. package/dist/materialized-views/index.cjs +2 -2
  119. package/dist/materialized-views/index.cjs.map +1 -1
  120. package/dist/materialized-views/index.d.cts +7 -7
  121. package/dist/materialized-views/index.d.ts +7 -7
  122. package/dist/materialized-views/index.js +7 -7
  123. package/dist/noydb-GZGFBA4E.js +35 -0
  124. package/dist/overlay-views/index.cjs.map +1 -1
  125. package/dist/overlay-views/index.d.cts +7 -7
  126. package/dist/overlay-views/index.d.ts +7 -7
  127. package/dist/overlay-views/index.js +4 -4
  128. package/dist/periods/index.cjs.map +1 -1
  129. package/dist/periods/index.d.cts +6 -6
  130. package/dist/periods/index.d.ts +6 -6
  131. package/dist/periods/index.js +4 -4
  132. package/dist/{predicate-Bt5ft-9c.d.cts → predicate-BmhBSPCH.d.cts} +59 -2
  133. package/dist/{predicate-Bt5ft-9c.d.ts → predicate-BmhBSPCH.d.ts} +59 -2
  134. package/dist/{public-envelope-MHG6YVXW.js → public-envelope-SYHEYQ3X.js} +3 -3
  135. package/dist/query/index.cjs +580 -195
  136. package/dist/query/index.cjs.map +1 -1
  137. package/dist/query/index.d.cts +3 -3
  138. package/dist/query/index.d.ts +3 -3
  139. package/dist/query/index.js +6 -6
  140. package/dist/{registry-PV4G3OPA.js → registry-DK5YWAAA.js} +3 -3
  141. package/dist/registry-IUZQVVBB.js +8 -0
  142. package/dist/registry-XGLNADIE.js +8 -0
  143. package/dist/{revoke-5BOLVJ3N.js → revoke-ZDFKMR5E.js} +5 -5
  144. package/dist/session/index.cjs.map +1 -1
  145. package/dist/session/index.d.cts +7 -7
  146. package/dist/session/index.d.ts +7 -7
  147. package/dist/session/index.js +3 -3
  148. package/dist/shadow/index.cjs.map +1 -1
  149. package/dist/shadow/index.d.cts +6 -6
  150. package/dist/shadow/index.d.ts +6 -6
  151. package/dist/shadow/index.js +2 -2
  152. package/dist/{signer-GRIYBA22.js → signer-P5D7Y72U.js} +4 -4
  153. package/dist/snapshots/index.cjs.map +1 -1
  154. package/dist/snapshots/index.d.cts +6 -6
  155. package/dist/snapshots/index.d.ts +6 -6
  156. package/dist/snapshots/index.js +3 -3
  157. package/dist/{stale-LZYMMDDS.js → stale-JH67FU57.js} +2 -2
  158. package/dist/{state-vault-QFJWU23A.js → state-vault-TMXZRTY5.js} +3 -3
  159. package/dist/store/index.cjs.map +1 -1
  160. package/dist/store/index.d.cts +6 -6
  161. package/dist/store/index.d.ts +6 -6
  162. package/dist/store/index.js +2 -2
  163. package/dist/{strategy-CrS7PnbE.d.ts → strategy-CbneC7bS.d.cts} +1 -1
  164. package/dist/{strategy-CrS7PnbE.d.cts → strategy-CbneC7bS.d.ts} +1 -1
  165. package/dist/sync/index.cjs.map +1 -1
  166. package/dist/sync/index.d.cts +5 -5
  167. package/dist/sync/index.d.ts +5 -5
  168. package/dist/sync/index.js +3 -3
  169. package/dist/team/index.cjs.map +1 -1
  170. package/dist/team/index.d.cts +6 -6
  171. package/dist/team/index.d.ts +6 -6
  172. package/dist/team/index.js +7 -7
  173. package/dist/tx/index.cjs.map +1 -1
  174. package/dist/tx/index.d.cts +6 -6
  175. package/dist/tx/index.d.ts +6 -6
  176. package/dist/tx/index.js +3 -3
  177. package/dist/{types-pax34sec.d.ts → types-4t1-tWS4.d.ts} +77 -9
  178. package/dist/{types-CDwSSXiI.d.cts → types-BpPV5uyy.d.cts} +77 -9
  179. package/dist/{ulid-7bCSgIgb.d.cts → ulid-CiPrpGqm.d.cts} +1 -1
  180. package/dist/{ulid-C_t4hL3d.d.ts → ulid-DAfenvFd.d.ts} +1 -1
  181. package/dist/util/index.cjs.map +1 -1
  182. package/dist/util/index.js +1 -1
  183. package/dist/{vault-group-UO4YUZOG.js → vault-group-KOM7QRJG.js} +125 -11
  184. package/dist/vault-group-KOM7QRJG.js.map +1 -0
  185. package/dist/{with-derivation-D8wFlb6V.d.cts → with-derivation-DBqJB3dQ.d.cts} +1 -1
  186. package/dist/{with-derivation-BjdOxUBn.d.ts → with-derivation-OK9M2sJE.d.ts} +1 -1
  187. package/dist/{with-materialized-view-DJb-HO65.d.ts → with-materialized-view-Dt-ufPWQ.d.ts} +1 -1
  188. package/dist/{with-materialized-view-5QMF1rS_.d.cts → with-materialized-view-NzuxYPDF.d.cts} +1 -1
  189. package/dist/{with-overlayed-view-DDNflPvC.d.cts → with-overlayed-view-CC0_ocy-.d.cts} +1 -1
  190. package/dist/{with-overlayed-view-CkqTefbz.d.ts → with-overlayed-view-eDvMs6LO.d.ts} +1 -1
  191. package/package.json +3 -3
  192. package/dist/chunk-4YDZ7JPZ.js.map +0 -1
  193. package/dist/chunk-NJMKHRQI.js.map +0 -1
  194. package/dist/chunk-P5MW7BG2.js.map +0 -1
  195. package/dist/chunk-TV3YZ35S.js +0 -90
  196. package/dist/chunk-TV3YZ35S.js.map +0 -1
  197. package/dist/chunk-YWBHS25M.js.map +0 -1
  198. package/dist/executor-AVJ7UEWA.js +0 -8
  199. package/dist/executor-IQO3KGXQ.js +0 -11
  200. package/dist/executor-VT7TKGE4.js +0 -8
  201. package/dist/issue-ZH27C23Y.js +0 -12
  202. package/dist/noydb-O76SKBST.js +0 -35
  203. package/dist/registry-2PKBQDCH.js +0 -8
  204. package/dist/registry-4VXFKCBJ.js +0 -8
  205. package/dist/vault-group-UO4YUZOG.js.map +0 -1
  206. /package/dist/{chunk-SJ24GHID.js.map → chunk-4TBBMHVC.js.map} +0 -0
  207. /package/dist/{chunk-HQXOEWLZ.js.map → chunk-56DJ7JVK.js.map} +0 -0
  208. /package/dist/{chunk-KKB42D3Q.js.map → chunk-5LQG6ZO2.js.map} +0 -0
  209. /package/dist/{chunk-TDECYU4Y.js.map → chunk-6AJBSQU4.js.map} +0 -0
  210. /package/dist/{chunk-O2JW656W.js.map → chunk-6RR3MNMG.js.map} +0 -0
  211. /package/dist/{chunk-7TEI2K2A.js.map → chunk-7HT2MEZ5.js.map} +0 -0
  212. /package/dist/{chunk-WQKZIQIL.js.map → chunk-7PS7EOCF.js.map} +0 -0
  213. /package/dist/{chunk-C3WRKABE.js.map → chunk-A5ZOOZFB.js.map} +0 -0
  214. /package/dist/{chunk-5NISHSBO.js.map → chunk-AAVWKNZW.js.map} +0 -0
  215. /package/dist/{chunk-SOU42FGB.js.map → chunk-BIYRQQV6.js.map} +0 -0
  216. /package/dist/{chunk-ILWQGTNH.js.map → chunk-BQ65SS5A.js.map} +0 -0
  217. /package/dist/{chunk-CWFQTAD4.js.map → chunk-C5T5AFWN.js.map} +0 -0
  218. /package/dist/{chunk-SYSKC237.js.map → chunk-COFPAMX6.js.map} +0 -0
  219. /package/dist/{chunk-D5Y3HIC6.js.map → chunk-CZI2A4MQ.js.map} +0 -0
  220. /package/dist/{chunk-KJF7EPUE.js.map → chunk-DKO2QFSA.js.map} +0 -0
  221. /package/dist/{chunk-QFYVGJLI.js.map → chunk-DQU36Q7I.js.map} +0 -0
  222. /package/dist/{chunk-NIUXQDWD.js.map → chunk-EGD5DXFT.js.map} +0 -0
  223. /package/dist/{chunk-KHQ3N5AB.js.map → chunk-F4OJZIWQ.js.map} +0 -0
  224. /package/dist/{chunk-3OUCWHV6.js.map → chunk-FWPKCXTN.js.map} +0 -0
  225. /package/dist/{chunk-QIVFGU2M.js.map → chunk-HOR4R722.js.map} +0 -0
  226. /package/dist/{chunk-NP6EZT44.js.map → chunk-IQLVUT37.js.map} +0 -0
  227. /package/dist/{chunk-4VCQH32J.js.map → chunk-JD3OZAI4.js.map} +0 -0
  228. /package/dist/{chunk-J67BP5EP.js.map → chunk-KI6HAJWL.js.map} +0 -0
  229. /package/dist/{chunk-AYNF7PVX.js.map → chunk-KIP6JLTF.js.map} +0 -0
  230. /package/dist/{chunk-PW26DAXS.js.map → chunk-L2FE64BU.js.map} +0 -0
  231. /package/dist/{chunk-QAWCVWCX.js.map → chunk-LX3CB26H.js.map} +0 -0
  232. /package/dist/{chunk-VAK6NQAK.js.map → chunk-NSCVNK5K.js.map} +0 -0
  233. /package/dist/{chunk-3XZRRBFW.js.map → chunk-OHVFWCJP.js.map} +0 -0
  234. /package/dist/{chunk-TEQGXA7L.js.map → chunk-PE4AQGFH.js.map} +0 -0
  235. /package/dist/{chunk-UNQEWORI.js.map → chunk-TS26M2SB.js.map} +0 -0
  236. /package/dist/{chunk-FNVFT4HZ.js.map → chunk-VU7SWWT5.js.map} +0 -0
  237. /package/dist/{chunk-GZJ5JBED.js.map → chunk-WBAYSNUQ.js.map} +0 -0
  238. /package/dist/{chunk-HHZ77DHM.js.map → chunk-WGHU7BLI.js.map} +0 -0
  239. /package/dist/{chunk-GL3Z7LH7.js.map → chunk-X73VS74Y.js.map} +0 -0
  240. /package/dist/{chunk-WIBHRONM.js.map → chunk-XWH4MXIU.js.map} +0 -0
  241. /package/dist/{chunk-M6KXHRIA.js.map → chunk-YHPM5D7Y.js.map} +0 -0
  242. /package/dist/{chunk-E3DIBDKA.js.map → chunk-YULZKK4F.js.map} +0 -0
  243. /package/dist/{chunk-JWFNOD2T.js.map → chunk-Z4DO7YSI.js.map} +0 -0
  244. /package/dist/{chunk-JPOQMXGT.js.map → chunk-ZNQYHJXX.js.map} +0 -0
  245. /package/dist/{crypto-YXH6SAOW.js.map → crypto-QXQOHMHF.js.map} +0 -0
  246. /package/dist/{delegation-K5ERUH6A.js.map → delegation-NIQ43IPU.js.map} +0 -0
  247. /package/dist/{executor-AVJ7UEWA.js.map → executor-6ZDSDZ6V.js.map} +0 -0
  248. /package/dist/{executor-IQO3KGXQ.js.map → executor-HSSRXDOB.js.map} +0 -0
  249. /package/dist/{executor-VT7TKGE4.js.map → executor-IDZDAFNH.js.map} +0 -0
  250. /package/dist/{issue-ZH27C23Y.js.map → issue-ADVS4OVP.js.map} +0 -0
  251. /package/dist/{ledger-64TTQMRS.js.map → ledger-CWSE3BLF.js.map} +0 -0
  252. /package/dist/{noydb-O76SKBST.js.map → noydb-GZGFBA4E.js.map} +0 -0
  253. /package/dist/{public-envelope-MHG6YVXW.js.map → public-envelope-SYHEYQ3X.js.map} +0 -0
  254. /package/dist/{registry-2PKBQDCH.js.map → registry-DK5YWAAA.js.map} +0 -0
  255. /package/dist/{registry-4VXFKCBJ.js.map → registry-IUZQVVBB.js.map} +0 -0
  256. /package/dist/{registry-PV4G3OPA.js.map → registry-XGLNADIE.js.map} +0 -0
  257. /package/dist/{revoke-5BOLVJ3N.js.map → revoke-ZDFKMR5E.js.map} +0 -0
  258. /package/dist/{signer-GRIYBA22.js.map → signer-P5D7Y72U.js.map} +0 -0
  259. /package/dist/{stale-LZYMMDDS.js.map → stale-JH67FU57.js.map} +0 -0
  260. /package/dist/{state-vault-QFJWU23A.js.map → state-vault-TMXZRTY5.js.map} +0 -0
@@ -7,37 +7,37 @@ import {
7
7
  import {
8
8
  TxContext,
9
9
  revertExecuted
10
- } from "./chunk-M6KXHRIA.js";
10
+ } from "./chunk-YHPM5D7Y.js";
11
11
  import {
12
12
  OverlayedCollection
13
- } from "./chunk-3XZRRBFW.js";
13
+ } from "./chunk-OHVFWCJP.js";
14
14
  import {
15
15
  LazyQuery,
16
16
  decodeIdxId,
17
17
  encodeIdxId
18
- } from "./chunk-D5Y3HIC6.js";
18
+ } from "./chunk-CZI2A4MQ.js";
19
19
  import {
20
20
  SCHEMAS_COLLECTION,
21
21
  loadPersistedSchema,
22
22
  resolveManagedSecret,
23
23
  savePersistedSchema,
24
24
  saveSealedPassphrase
25
- } from "./chunk-HHZ77DHM.js";
25
+ } from "./chunk-WGHU7BLI.js";
26
26
  import {
27
27
  loadPublicEnvelope,
28
28
  readPublicEnvelope,
29
29
  savePublicEnvelope,
30
30
  validatePublicEnvelopeInput
31
- } from "./chunk-KJF7EPUE.js";
31
+ } from "./chunk-DKO2QFSA.js";
32
32
  import {
33
33
  PERIODS_COLLECTION
34
- } from "./chunk-J67BP5EP.js";
34
+ } from "./chunk-KI6HAJWL.js";
35
35
  import {
36
36
  getAtPath,
37
37
  isDictCollectionName,
38
38
  resolvePolicy,
39
39
  setAtPathInPlace
40
- } from "./chunk-7TEI2K2A.js";
40
+ } from "./chunk-7HT2MEZ5.js";
41
41
  import {
42
42
  ManagedRecoveryNotEnrolledError,
43
43
  PolicyDeniedError,
@@ -59,11 +59,11 @@ import {
59
59
  saveShamirRecoveryEntries,
60
60
  updateAuthenticator,
61
61
  writeMagicLinkGrant
62
- } from "./chunk-SYSKC237.js";
62
+ } from "./chunk-COFPAMX6.js";
63
63
  import {
64
64
  assertTierAccess,
65
65
  dekKey
66
- } from "./chunk-SJ24GHID.js";
66
+ } from "./chunk-4TBBMHVC.js";
67
67
  import {
68
68
  USER_ENVELOPE_COLLECTION,
69
69
  assertKeyringOpenAllowed,
@@ -88,7 +88,7 @@ import {
88
88
  rotateKeys,
89
89
  saveUserEnvelope,
90
90
  updateKeyringIdentity
91
- } from "./chunk-C3WRKABE.js";
91
+ } from "./chunk-A5ZOOZFB.js";
92
92
  import {
93
93
  INDEXED_STORE_POLICY
94
94
  } from "./chunk-2QR2PQTT.js";
@@ -98,7 +98,7 @@ import {
98
98
  import {
99
99
  LEDGER_COLLECTION,
100
100
  LEDGER_DELTAS_COLLECTION
101
- } from "./chunk-HQXOEWLZ.js";
101
+ } from "./chunk-56DJ7JVK.js";
102
102
  import {
103
103
  sha256Hex as sha256Hex2
104
104
  } from "./chunk-Z6FNBOTC.js";
@@ -106,20 +106,23 @@ import {
106
106
  NO_AGGREGATE,
107
107
  Query,
108
108
  ScanBuilder,
109
+ canonicalizeIncomingMoney,
110
+ canonicalizeStoredMoney,
109
111
  decodeMoneyFields,
110
- quantizeMoneyFields
111
- } from "./chunk-NJMKHRQI.js";
112
+ quantizeMoneyFields,
113
+ validateMoneyFieldPaths
114
+ } from "./chunk-EYVQHAGH.js";
112
115
  import {
113
116
  canonicalGroupKey
114
- } from "./chunk-YWBHS25M.js";
117
+ } from "./chunk-3EWXMOK3.js";
115
118
  import {
116
119
  readPath
117
- } from "./chunk-TV3YZ35S.js";
120
+ } from "./chunk-CJORTUJ2.js";
118
121
  import {
119
122
  EXPORT_AUDIT_COLLECTION,
120
123
  createExportBlobsHandle,
121
124
  runCompaction
122
- } from "./chunk-TDECYU4Y.js";
125
+ } from "./chunk-6AJBSQU4.js";
123
126
  import {
124
127
  NOYDB_BACKUP_VERSION,
125
128
  NOYDB_FORMAT_VERSION
@@ -129,7 +132,7 @@ import {
129
132
  encrypt,
130
133
  encryptDeterministic,
131
134
  sha256Hex
132
- } from "./chunk-E3DIBDKA.js";
135
+ } from "./chunk-YULZKK4F.js";
133
136
  import {
134
137
  AlreadyElevatedError,
135
138
  AttestationError,
@@ -164,7 +167,7 @@ import {
164
167
  UnsupportedIndexOptionError,
165
168
  ValidationError,
166
169
  VaultTemplateNotFoundError
167
- } from "./chunk-NKGY3C53.js";
170
+ } from "./chunk-535SSHBS.js";
168
171
 
169
172
  // src/policy/storage.ts
170
173
  var META_COLLECTION = "_meta";
@@ -807,7 +810,7 @@ async function resolveStaleOnRead(accessor, outputCollection, id) {
807
810
  }
808
811
  const sourceWithId = { ...source, id };
809
812
  if (DerivationExecutor === null) {
810
- ({ DerivationExecutor } = await import("./executor-AVJ7UEWA.js"));
813
+ ({ DerivationExecutor } = await import("./executor-6ZDSDZ6V.js"));
811
814
  }
812
815
  const ctx = { vault: accessor.getReadOnlyFacade() };
813
816
  const result = await DerivationExecutor.run(spec, sourceWithId, 0, strategyHash, ctx);
@@ -1153,6 +1156,7 @@ var Collection = class {
1153
1156
  this.joinResolver = opts.joinResolver;
1154
1157
  this.i18nFields = opts.i18nFields;
1155
1158
  this.dictKeyFields = opts.dictKeyFields;
1159
+ if (opts.moneyFields) validateMoneyFieldPaths(opts.moneyFields);
1156
1160
  this.moneyFields = opts.moneyFields;
1157
1161
  this.computed = opts.computed;
1158
1162
  this.dictLabelResolver = opts.dictLabelResolver;
@@ -1286,7 +1290,9 @@ var Collection = class {
1286
1290
  * declaration; this reconciles that ordering. First-wins. Not public.
1287
1291
  */
1288
1292
  _applyMoneyFields(moneyFields) {
1289
- if (this.moneyFields === void 0) this.moneyFields = moneyFields;
1293
+ if (this.moneyFields !== void 0) return;
1294
+ validateMoneyFieldPaths(moneyFields);
1295
+ this.moneyFields = moneyFields;
1290
1296
  }
1291
1297
  /** @internal — attach computed fields post-construction. See {@link _applyMoneyFields}. */
1292
1298
  _applyComputed(computed) {
@@ -1313,7 +1319,7 @@ var Collection = class {
1313
1319
  }
1314
1320
  }
1315
1321
  if (this.materializedViewSource !== void 0) {
1316
- const { resolveStaleMVOnRead } = await import("./stale-LZYMMDDS.js");
1322
+ const { resolveStaleMVOnRead } = await import("./stale-JH67FU57.js");
1317
1323
  await resolveStaleMVOnRead(this.materializedViewSource, this.name);
1318
1324
  }
1319
1325
  let record;
@@ -1453,6 +1459,7 @@ var Collection = class {
1453
1459
  if (!hasWritePermission(this.keyring, this.name)) {
1454
1460
  throw new ReadOnlyError();
1455
1461
  }
1462
+ record = canonicalizeIncomingMoney(record, this.moneyFields);
1456
1463
  if (this.subsystemBus?.hasGateHandlers("beforePut")) {
1457
1464
  const existingEnv = await this.adapter.get(this.vault, this.name, id);
1458
1465
  let existingRecord = null;
@@ -1469,7 +1476,7 @@ var Collection = class {
1469
1476
  collection: this.name,
1470
1477
  docId: id,
1471
1478
  incoming: record,
1472
- existing: existingRecord,
1479
+ existing: canonicalizeStoredMoney(existingRecord, this.moneyFields),
1473
1480
  existingVersion: existingEnv?._v ?? 0,
1474
1481
  existingTs: existingEnv?._ts,
1475
1482
  userId: this.keyring.userId,
@@ -1710,7 +1717,7 @@ var Collection = class {
1710
1717
  if (mode === "eager") {
1711
1718
  if (executor === null) {
1712
1719
  ;
1713
- ({ MaterializedViewExecutor: executor } = await import("./executor-IQO3KGXQ.js"));
1720
+ ({ MaterializedViewExecutor: executor } = await import("./executor-HSSRXDOB.js"));
1714
1721
  }
1715
1722
  await executor.refresh(reg, {
1716
1723
  getCollection: (name) => this.materializedViewSource.getCollection(name),
@@ -1719,7 +1726,7 @@ var Collection = class {
1719
1726
  });
1720
1727
  } else if (mode === "lazy") {
1721
1728
  if (staleHelpers === null) {
1722
- staleHelpers = await import("./stale-LZYMMDDS.js");
1729
+ staleHelpers = await import("./stale-JH67FU57.js");
1723
1730
  }
1724
1731
  staleHelpers.markMVStale(registry, reg.spec.name);
1725
1732
  }
@@ -1738,7 +1745,7 @@ var Collection = class {
1738
1745
  */
1739
1746
  async dispatchDerivations(id, record, version) {
1740
1747
  if (this.derivationSource === void 0) return;
1741
- const incoming = record;
1748
+ const incoming = canonicalizeStoredMoney(record, this.moneyFields);
1742
1749
  if (incoming && typeof incoming === "object" && "_derivedFrom" in incoming) return;
1743
1750
  const registry = this.derivationSource.registry();
1744
1751
  const strategies = registry.strategiesForSource(this.name);
@@ -1748,7 +1755,7 @@ var Collection = class {
1748
1755
  const mode = typeof spec.lifecycle === "string" ? spec.lifecycle : spec.lifecycle.mode;
1749
1756
  if (mode === "eager") {
1750
1757
  if (DerivationExecutor === null) {
1751
- ({ DerivationExecutor } = await import("./executor-AVJ7UEWA.js"));
1758
+ ({ DerivationExecutor } = await import("./executor-6ZDSDZ6V.js"));
1752
1759
  }
1753
1760
  const sourceWithId = { ...incoming, id };
1754
1761
  const ctx = { vault: this.derivationSource.getReadOnlyFacade() };
@@ -1971,7 +1978,7 @@ var Collection = class {
1971
1978
  vault: this.vault,
1972
1979
  collection: this.name,
1973
1980
  docId: id,
1974
- existing: existingRecord,
1981
+ existing: canonicalizeStoredMoney(existingRecord, this.moneyFields),
1975
1982
  existingVersion: existingEnv._v,
1976
1983
  existingTs: existingEnv._ts,
1977
1984
  internal,
@@ -2100,7 +2107,7 @@ var Collection = class {
2100
2107
  if (mode === "eager") {
2101
2108
  if (executor === null) {
2102
2109
  ;
2103
- ({ MaterializedViewExecutor: executor } = await import("./executor-IQO3KGXQ.js"));
2110
+ ({ MaterializedViewExecutor: executor } = await import("./executor-HSSRXDOB.js"));
2104
2111
  }
2105
2112
  await executor.refresh(reg, {
2106
2113
  getCollection: (name) => this.materializedViewSource.getCollection(name),
@@ -2109,7 +2116,7 @@ var Collection = class {
2109
2116
  });
2110
2117
  } else if (mode === "lazy") {
2111
2118
  if (staleHelpers === null) {
2112
- staleHelpers = await import("./stale-LZYMMDDS.js");
2119
+ staleHelpers = await import("./stale-JH67FU57.js");
2113
2120
  }
2114
2121
  staleHelpers.markMVStale(registry, reg.spec.name);
2115
2122
  }
@@ -2132,7 +2139,7 @@ var Collection = class {
2132
2139
  );
2133
2140
  }
2134
2141
  if (this.materializedViewSource !== void 0) {
2135
- const { resolveStaleMVOnRead } = await import("./stale-LZYMMDDS.js");
2142
+ const { resolveStaleMVOnRead } = await import("./stale-JH67FU57.js");
2136
2143
  await resolveStaleMVOnRead(this.materializedViewSource, this.name);
2137
2144
  }
2138
2145
  await this.ensureHydrated();
@@ -6135,12 +6142,12 @@ var Vault = class {
6135
6142
  if (!fieldSchema) {
6136
6143
  throw new AttestationError(`issueAttestation: collection '${collectionName}' has no attestation field-schema. Declare it via vault.collection('${collectionName}', { attestation: { fields: [...] } }).`);
6137
6144
  }
6138
- const { issueAttestationCore } = await import("./issue-ZH27C23Y.js");
6145
+ const { issueAttestationCore } = await import("./issue-ADVS4OVP.js");
6139
6146
  const out = await issueAttestationCore(this.makeIssueContext(), { collection: collectionName, id, fieldSchema });
6140
6147
  return { docId: out.docId, qr: out.qr, keyId: out.keyId, publicKeyB64: out.publicKeyB64 };
6141
6148
  }
6142
6149
  async getDocumentSigningPublicKey() {
6143
- const { loadSigner, loadOrCreateSigner } = await import("./signer-GRIYBA22.js");
6150
+ const { loadSigner, loadOrCreateSigner } = await import("./signer-P5D7Y72U.js");
6144
6151
  const existing = await loadSigner(this.adapter, this.name, this.getDEK);
6145
6152
  if (existing) return { keyId: existing.keyId, publicKeyB64: existing.publicKeyB64 };
6146
6153
  if (this.keyring.role !== "owner") {
@@ -6166,19 +6173,19 @@ var Vault = class {
6166
6173
  };
6167
6174
  }
6168
6175
  async revokeAttestation(docId) {
6169
- const { revokeDocCore } = await import("./revoke-5BOLVJ3N.js");
6176
+ const { revokeDocCore } = await import("./revoke-ZDFKMR5E.js");
6170
6177
  await revokeDocCore(this.makeRevokeContext(), docId);
6171
6178
  }
6172
6179
  async unrevokeAttestation(docId) {
6173
- const { unrevokeDocCore } = await import("./revoke-5BOLVJ3N.js");
6180
+ const { unrevokeDocCore } = await import("./revoke-ZDFKMR5E.js");
6174
6181
  await unrevokeDocCore(this.makeRevokeContext(), docId);
6175
6182
  }
6176
6183
  async getRevokedDocIds() {
6177
- const { getRevokedDocIdsCore } = await import("./revoke-5BOLVJ3N.js");
6184
+ const { getRevokedDocIdsCore } = await import("./revoke-ZDFKMR5E.js");
6178
6185
  return getRevokedDocIdsCore(this.makeRevokeContext());
6179
6186
  }
6180
6187
  async publishRevocationList() {
6181
- const { publishRevocationListCore } = await import("./revoke-5BOLVJ3N.js");
6188
+ const { publishRevocationListCore } = await import("./revoke-ZDFKMR5E.js");
6182
6189
  return publishRevocationListCore(this.makeRevokeContext());
6183
6190
  }
6184
6191
  makeRevokeContext() {
@@ -6495,7 +6502,7 @@ var Vault = class {
6495
6502
  async _initDerivations(handles) {
6496
6503
  if (handles.length === 0) return;
6497
6504
  const [{ DerivationRegistry }, { ReadOnlyVaultFacade }] = await Promise.all([
6498
- import("./registry-2PKBQDCH.js"),
6505
+ import("./registry-XGLNADIE.js"),
6499
6506
  import("./read-only-facade-ITU6L7BL.js")
6500
6507
  ]);
6501
6508
  const registry = new DerivationRegistry();
@@ -6526,7 +6533,7 @@ var Vault = class {
6526
6533
  */
6527
6534
  async _initMaterializedViews(handles) {
6528
6535
  if (handles.length === 0) return;
6529
- const { MaterializedViewRegistry } = await import("./registry-PV4G3OPA.js");
6536
+ const { MaterializedViewRegistry } = await import("./registry-DK5YWAAA.js");
6530
6537
  const registry = new MaterializedViewRegistry();
6531
6538
  this.materializedViewRegistry = registry;
6532
6539
  const db = this;
@@ -6550,7 +6557,7 @@ var Vault = class {
6550
6557
  */
6551
6558
  async _initOverlayedViews(handles) {
6552
6559
  if (handles.length === 0) return;
6553
- const { OverlayedViewRegistry } = await import("./registry-4VXFKCBJ.js");
6560
+ const { OverlayedViewRegistry } = await import("./registry-IUZQVVBB.js");
6554
6561
  const registry = new OverlayedViewRegistry();
6555
6562
  const mvRegistry = this.materializedViewRegistry;
6556
6563
  const overlayNames = /* @__PURE__ */ new Set();
@@ -6597,13 +6604,13 @@ var Vault = class {
6597
6604
  if (!reg) {
6598
6605
  throw new Error(`refreshView: no MV registered with name "${name}"`);
6599
6606
  }
6600
- const { MaterializedViewExecutor } = await import("./executor-IQO3KGXQ.js");
6607
+ const { MaterializedViewExecutor } = await import("./executor-HSSRXDOB.js");
6601
6608
  const result = await MaterializedViewExecutor.refresh(reg, {
6602
6609
  getCollection: (n) => this.collection(n),
6603
6610
  getActiveTxContext: () => this.noydb._activeTxContextOrNull,
6604
6611
  getQueryContext: () => this
6605
6612
  });
6606
- const { clearMVStale } = await import("./stale-LZYMMDDS.js");
6613
+ const { clearMVStale } = await import("./stale-JH67FU57.js");
6607
6614
  clearMVStale(registry, name);
6608
6615
  return result;
6609
6616
  }
@@ -6619,7 +6626,7 @@ var Vault = class {
6619
6626
  if (registry === null) return { derived: 0, failed: 0 };
6620
6627
  const strategies = registry.strategiesForSource(sourceCollection);
6621
6628
  if (strategies.length === 0) return { derived: 0, failed: 0 };
6622
- const { DerivationExecutor } = await import("./executor-AVJ7UEWA.js");
6629
+ const { DerivationExecutor } = await import("./executor-6ZDSDZ6V.js");
6623
6630
  const sourceColl = this.collection(sourceCollection);
6624
6631
  const records = await sourceColl.list();
6625
6632
  const ctx = { vault: this.readOnlyFacade ?? new (await import("./read-only-facade-ITU6L7BL.js")).ReadOnlyVaultFacade(this) };
@@ -6865,7 +6872,7 @@ var Vault = class {
6865
6872
  * collection.
6866
6873
  */
6867
6874
  async delegate(opts) {
6868
- const { issueDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-K5ERUH6A.js");
6875
+ const { issueDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-NIQ43IPU.js");
6869
6876
  if (!this.keyring.kek) {
6870
6877
  throw new ValidationError(
6871
6878
  "issueDelegation: keyring.kek is null \u2014 issuing a delegation requires a tier-1 unlock. Re-authenticate at tier 1 (passphrase) first."
@@ -6887,7 +6894,7 @@ var Vault = class {
6887
6894
  * if the id does not exist.
6888
6895
  */
6889
6896
  async revokeDelegation(id) {
6890
- const { revokeDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-K5ERUH6A.js");
6897
+ const { revokeDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-NIQ43IPU.js");
6891
6898
  await revokeDelegation(this.adapter, this.name, id);
6892
6899
  void DELEGATIONS_COLLECTION;
6893
6900
  }
@@ -7356,7 +7363,7 @@ var Vault = class {
7356
7363
  * @see docs/subsystems/public-envelope.md
7357
7364
  */
7358
7365
  async getPublicEnvelope(opts = {}) {
7359
- const { readPublicEnvelope: readPublicEnvelope2 } = await import("./public-envelope-MHG6YVXW.js");
7366
+ const { readPublicEnvelope: readPublicEnvelope2 } = await import("./public-envelope-SYHEYQ3X.js");
7360
7367
  return readPublicEnvelope2(this.adapter, this.name, opts);
7361
7368
  }
7362
7369
  /**
@@ -8966,7 +8973,7 @@ var Noydb = class {
8966
8973
  if (!facade) return;
8967
8974
  const ctx = { existing, vault: facade, userId: e.userId, role: e.role };
8968
8975
  await registry.runChecks(e.collection, incoming, ctx);
8969
- const { GuardExecutor } = await import("./executor-VT7TKGE4.js");
8976
+ const { GuardExecutor } = await import("./executor-IDZDAFNH.js");
8970
8977
  for (const g of guards) {
8971
8978
  await GuardExecutor.checkFrozenFields(g, e.docId, existing, incoming, e.computedFieldNames);
8972
8979
  }
@@ -9565,8 +9572,8 @@ var Noydb = class {
9565
9572
  if (name === STATE_VAULT_NAME) throw new ReservedVaultNameError(name);
9566
9573
  const template = this.vaultTemplates.get(opts.sharding.vaultTemplate);
9567
9574
  if (!template) throw new VaultTemplateNotFoundError(opts.sharding.vaultTemplate);
9568
- const { VaultGroup } = await import("./vault-group-UO4YUZOG.js");
9569
- const { StateManagementVault } = await import("./state-vault-QFJWU23A.js");
9575
+ const { VaultGroup } = await import("./vault-group-KOM7QRJG.js");
9576
+ const { StateManagementVault } = await import("./state-vault-TMXZRTY5.js");
9570
9577
  const stateVault = opts.registry ? void 0 : await StateManagementVault.open(this);
9571
9578
  const registry = opts.registry ?? stateVault.registry;
9572
9579
  const group = new VaultGroup(this, name, registry, opts.sharding, template);
@@ -9593,7 +9600,7 @@ var Noydb = class {
9593
9600
  */
9594
9601
  async openStateManagementVault() {
9595
9602
  if (this.closed) throw new ValidationError("Instance is closed");
9596
- const { StateManagementVault } = await import("./state-vault-QFJWU23A.js");
9603
+ const { StateManagementVault } = await import("./state-vault-TMXZRTY5.js");
9597
9604
  return StateManagementVault.open(this);
9598
9605
  }
9599
9606
  /**
@@ -11133,4 +11140,4 @@ export {
11133
11140
  Noydb,
11134
11141
  createNoydb
11135
11142
  };
11136
- //# sourceMappingURL=chunk-P5MW7BG2.js.map
11143
+ //# sourceMappingURL=chunk-7EFFHEN5.js.map