@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
@@ -1,10 +1,10 @@
1
- import { aH as TxStrategy } from '../types-CDwSSXiI.cjs';
2
- export { aI as AmendmentTxOptions, aJ as TxCollection, aK as TxContext, aL as TxVault, aM as runTransaction } from '../types-CDwSSXiI.cjs';
3
- import '../lazy-builder-Ci5_YG73.cjs';
4
- import '../predicate-Bt5ft-9c.cjs';
5
- import '../strategy-CrS7PnbE.cjs';
1
+ import { aH as TxStrategy } from '../types-BpPV5uyy.cjs';
2
+ export { aI as AmendmentTxOptions, aJ as TxCollection, aK as TxContext, aL as TxVault, aM as runTransaction } from '../types-BpPV5uyy.cjs';
3
+ import '../lazy-builder-eYZzLEL1.cjs';
4
+ import '../predicate-BmhBSPCH.cjs';
5
+ import '../strategy-CbneC7bS.cjs';
6
6
  import '../strategy-BSxFXGzb.cjs';
7
- import '../index-CUVOMtgg.cjs';
7
+ import '../index-D95VK1Qy.cjs';
8
8
  import '@noy-db/attestation';
9
9
 
10
10
  /**
@@ -1,10 +1,10 @@
1
- import { aH as TxStrategy } from '../types-pax34sec.js';
2
- export { aI as AmendmentTxOptions, aJ as TxCollection, aK as TxContext, aL as TxVault, aM as runTransaction } from '../types-pax34sec.js';
3
- import '../lazy-builder-D5GU14TS.js';
4
- import '../predicate-Bt5ft-9c.js';
5
- import '../strategy-CrS7PnbE.js';
1
+ import { aH as TxStrategy } from '../types-4t1-tWS4.js';
2
+ export { aI as AmendmentTxOptions, aJ as TxCollection, aK as TxContext, aL as TxVault, aM as runTransaction } from '../types-4t1-tWS4.js';
3
+ import '../lazy-builder-ChSqcF5t.js';
4
+ import '../predicate-BmhBSPCH.js';
5
+ import '../strategy-CbneC7bS.js';
6
6
  import '../strategy-BSxFXGzb.js';
7
- import '../index-Cqzp4tt9.js';
7
+ import '../index-XNB2r6bX.js';
8
8
  import '@noy-db/attestation';
9
9
 
10
10
  /**
package/dist/tx/index.js CHANGED
@@ -3,9 +3,9 @@ import {
3
3
  TxContext,
4
4
  TxVault,
5
5
  runTransaction
6
- } from "../chunk-M6KXHRIA.js";
6
+ } from "../chunk-YHPM5D7Y.js";
7
7
  import "../chunk-FZU343FL.js";
8
- import "../chunk-NKGY3C53.js";
8
+ import "../chunk-535SSHBS.js";
9
9
 
10
10
  // src/tx/dry-run.ts
11
11
  var SEP = " ";
@@ -43,7 +43,7 @@ async function runDryRun(db, fn) {
43
43
  const gctx = { existing: before, vault: facade, userId: v.userId, role: v.role };
44
44
  try {
45
45
  await registry.runChecks(op.collectionName, after, gctx);
46
- const { GuardExecutor } = await import("../executor-VT7TKGE4.js");
46
+ const { GuardExecutor } = await import("../executor-IDZDAFNH.js");
47
47
  for (const g of guards) {
48
48
  await GuardExecutor.checkFrozenFields(g, op.id, before, after);
49
49
  }
@@ -1,8 +1,8 @@
1
- import { I as IndexStrategy, d as LazyQuery } from './lazy-builder-D5GU14TS.js';
2
- import { a7 as NoydbError, o as LiveAggregation, f as AggregateSpec, e as AggregateResult, A as AggregateStrategy, au as MoneyDescriptor } from './strategy-CrS7PnbE.js';
1
+ import { I as IndexStrategy, d as LazyQuery } from './lazy-builder-ChSqcF5t.js';
2
+ import { a7 as NoydbError, o as LiveAggregation, f as AggregateSpec, e as AggregateResult, A as AggregateStrategy, av as MoneyDescriptor } from './strategy-CbneC7bS.js';
3
3
  import { C as CrdtStrategy, a as CrdtMode, b as CrdtState } from './strategy-BSxFXGzb.js';
4
- import { L as LiveQuery, Q as Query, j as RefRegistry, R as RefDescriptor, d as JoinableSource, l as RefViolation, S as ScanBuilder } from './index-Cqzp4tt9.js';
5
- import { I as IndexDef, O as Operator, F as FieldClause, C as CollectionIndexes } from './predicate-Bt5ft-9c.js';
4
+ import { L as LiveQuery, Q as Query, c as JoinStrategy, j as RefRegistry, R as RefDescriptor, d as JoinableSource, l as RefViolation, S as ScanBuilder } from './index-XNB2r6bX.js';
5
+ import { I as IndexDef, O as Operator, F as FieldClause, C as CollectionIndexes } from './predicate-BmhBSPCH.js';
6
6
  import { AttestationFieldSchema, RevocationList } from '@noy-db/attestation';
7
7
 
8
8
  /**
@@ -2972,9 +2972,18 @@ interface GatePutEvent {
2972
2972
  readonly vault: string;
2973
2973
  readonly collection: string;
2974
2974
  readonly docId: string;
2975
- /** The record about to be written (pre schema-validation). */
2975
+ /**
2976
+ * The record about to be written (pre schema-validation). Money fields
2977
+ * are presented in their canonical decoded form (#332) — equal on both
2978
+ * sides for an unchanged value, regardless of how the caller wrote them.
2979
+ */
2976
2980
  readonly incoming: unknown;
2977
- /** Decrypted prior record, or null on create / when prior is unreadable. */
2981
+ /**
2982
+ * Decrypted prior record, or null on create / when prior is unreadable.
2983
+ * Money fields are decoded to the canonical decimal `get()` shape, NOT
2984
+ * the stored scaled-int (#332) — `incoming[f] === existing[f]` holds
2985
+ * for an unchanged money field.
2986
+ */
2978
2987
  readonly existing: unknown;
2979
2988
  /** Prior envelope version, or 0 when none. */
2980
2989
  readonly existingVersion: number;
@@ -2998,6 +3007,7 @@ interface GateDeleteEvent {
2998
3007
  readonly docId: string;
2999
3008
  /** True for system-internal (housekeeping) deletes — handlers branch on this. */
3000
3009
  readonly internal: boolean;
3010
+ /** Decrypted prior record; money fields decoded to the canonical `get()` shape (#332). */
3001
3011
  readonly existing: unknown;
3002
3012
  readonly existingVersion: number;
3003
3013
  readonly existingTs: string | undefined;
@@ -5272,6 +5282,51 @@ interface FactorProofBundle {
5272
5282
  /** Active session tier — what the engine compares against `gate.minTier`. */
5273
5283
  type ActiveTier = 1 | 2 | 3;
5274
5284
 
5285
+ /** Public options for `ShardedQuery.crossShardJoin`. */
5286
+ interface CrossShardJoinOptions {
5287
+ /** Alias key under which the joined same-shard record attaches. */
5288
+ readonly as: string;
5289
+ /** Per-shard row ceiling override (default DEFAULT_JOIN_MAX_ROWS). */
5290
+ readonly maxRows?: number;
5291
+ /** Planner strategy override, passed through to intra-vault `.join()`. */
5292
+ readonly strategy?: JoinStrategy;
5293
+ }
5294
+ /**
5295
+ * Minimal structural shape of a broadcast dimension source. A
5296
+ * `Collection` satisfies this natively: `list()` hydrates and returns
5297
+ * the decoded records. Kept as a one-method interface so plain test
5298
+ * sources are trivial to construct.
5299
+ */
5300
+ interface BroadcastSource {
5301
+ list(): Promise<readonly unknown[]>;
5302
+ }
5303
+ /** Public options for `ShardedQuery.broadcastJoin`. */
5304
+ interface BroadcastJoinOptions {
5305
+ /** Alias key under which the dimension record attaches. */
5306
+ readonly as: string;
5307
+ /** The shared dimension collection (an opened handle in another vault). */
5308
+ readonly from: BroadcastSource;
5309
+ /** Right-side key to match `field` against. Default 'id'. */
5310
+ readonly on?: string;
5311
+ /** Miss behavior. 'warn' (default) attaches null + one-shot warning; 'cascade' is silent. */
5312
+ readonly mode?: 'warn' | 'cascade';
5313
+ }
5314
+ /** Internal co-partitioned leg carried on ShardedQuery. */
5315
+ interface CoPartitionedLeg {
5316
+ readonly field: string;
5317
+ readonly as: string;
5318
+ readonly maxRows: number | undefined;
5319
+ readonly strategy: JoinStrategy | undefined;
5320
+ }
5321
+ /** Internal broadcast leg carried on ShardedQuery. */
5322
+ interface BroadcastLeg {
5323
+ readonly field: string;
5324
+ readonly as: string;
5325
+ readonly from: BroadcastSource;
5326
+ readonly on: string;
5327
+ readonly mode: 'warn' | 'cascade';
5328
+ }
5329
+
5275
5330
  /** A source that can fan out records across shards. Satisfied by ShardedQuery. */
5276
5331
  interface FanoutRecordSource<R> {
5277
5332
  fanoutRecords(options: FanoutQueryOptions): Promise<{
@@ -5397,17 +5452,25 @@ declare class ShardedQuery<T, R = T> {
5397
5452
  private readonly group;
5398
5453
  private readonly collectionName;
5399
5454
  private readonly clauses;
5400
- constructor(group: VaultGroup<T>, collectionName: string, clauses: readonly WhereClause[]);
5455
+ private readonly coPartitionedLegs;
5456
+ private readonly broadcastLegs;
5457
+ constructor(group: VaultGroup<T>, collectionName: string, clauses: readonly WhereClause[], coPartitionedLegs?: readonly CoPartitionedLeg[], broadcastLegs?: readonly BroadcastLeg[]);
5401
5458
  where(field: string, op: WhereClause['op'], value: unknown): ShardedQuery<T, R>;
5459
+ /** Co-partitioned join: each shard joins its own same-vault right collection (resolved via ref()), then union. */
5460
+ crossShardJoin(field: string, opts: CrossShardJoinOptions): ShardedQuery<T, R>;
5461
+ /** Broadcast dimension join: enrich every merged row from a single shared collection. */
5462
+ broadcastJoin(field: string, opts: BroadcastJoinOptions): ShardedQuery<T, R>;
5402
5463
  /** @internal — fan out the where-filtered records across eligible shards. */
5403
5464
  fanoutRecords(options?: FanoutQueryOptions): Promise<{
5404
5465
  records: R[];
5405
5466
  skippedVaults: SkippedVault[];
5406
5467
  }>;
5407
- /** Fan out across eligible shards and merge results. */
5468
+ /** Fan out across eligible shards, merge, then apply any broadcast dimension legs. */
5408
5469
  toArray(options?: FanoutQueryOptions): Promise<FanoutResult<R>>;
5409
5470
  /** @internal — build the change-subscription + relevance binding for this query's group+collection. */
5410
5471
  liveBinding(): LiveBinding;
5472
+ /** @internal — joined queries don't support reactive/aggregate surfaces in v1. */
5473
+ private assertNoJoinLegs;
5411
5474
  /** Returns a reactive cross-shard live query — a facade over CrossVaultLive. */
5412
5475
  live(options?: LiveQueryOptions): CrossVaultLiveQuery<R>;
5413
5476
  /** One-shot distributed aggregate — central reduce over all shard records. */
@@ -7030,7 +7093,12 @@ interface MaterializedViewStrategy<TRow extends Record<string, unknown>> {
7030
7093
  *
7031
7094
  * Mutually exclusive with {@link query}. Registration throws
7032
7095
  * `MaterializedViewConfigError` if both are set, if `unionSources`
7033
- * has fewer than 2 arms, or if two arms name the same `collection`.
7096
+ * is empty, or if two arms name the same `collection`.
7097
+ *
7098
+ * A SINGLE arm is valid (#331): it expresses map→group→aggregate
7099
+ * over one collection with a COMPUTED bucket key (e.g. a month
7100
+ * sliced from a date field). The query form's `.groupBy()` accepts
7101
+ * stored field names only, so a derived key needs the arm's `map`.
7034
7102
  *
7035
7103
  * UNION mode replaces the dependency-analyzer path: the source
7036
7104
  * collections come directly from `unionSources[].collection`, and
@@ -1,8 +1,8 @@
1
- import { I as IndexStrategy, d as LazyQuery } from './lazy-builder-Ci5_YG73.cjs';
2
- import { a7 as NoydbError, o as LiveAggregation, f as AggregateSpec, e as AggregateResult, A as AggregateStrategy, au as MoneyDescriptor } from './strategy-CrS7PnbE.cjs';
1
+ import { I as IndexStrategy, d as LazyQuery } from './lazy-builder-eYZzLEL1.cjs';
2
+ import { a7 as NoydbError, o as LiveAggregation, f as AggregateSpec, e as AggregateResult, A as AggregateStrategy, av as MoneyDescriptor } from './strategy-CbneC7bS.cjs';
3
3
  import { C as CrdtStrategy, a as CrdtMode, b as CrdtState } from './strategy-BSxFXGzb.cjs';
4
- import { L as LiveQuery, Q as Query, j as RefRegistry, R as RefDescriptor, d as JoinableSource, l as RefViolation, S as ScanBuilder } from './index-CUVOMtgg.cjs';
5
- import { I as IndexDef, O as Operator, F as FieldClause, C as CollectionIndexes } from './predicate-Bt5ft-9c.cjs';
4
+ import { L as LiveQuery, Q as Query, c as JoinStrategy, j as RefRegistry, R as RefDescriptor, d as JoinableSource, l as RefViolation, S as ScanBuilder } from './index-D95VK1Qy.cjs';
5
+ import { I as IndexDef, O as Operator, F as FieldClause, C as CollectionIndexes } from './predicate-BmhBSPCH.cjs';
6
6
  import { AttestationFieldSchema, RevocationList } from '@noy-db/attestation';
7
7
 
8
8
  /**
@@ -2972,9 +2972,18 @@ interface GatePutEvent {
2972
2972
  readonly vault: string;
2973
2973
  readonly collection: string;
2974
2974
  readonly docId: string;
2975
- /** The record about to be written (pre schema-validation). */
2975
+ /**
2976
+ * The record about to be written (pre schema-validation). Money fields
2977
+ * are presented in their canonical decoded form (#332) — equal on both
2978
+ * sides for an unchanged value, regardless of how the caller wrote them.
2979
+ */
2976
2980
  readonly incoming: unknown;
2977
- /** Decrypted prior record, or null on create / when prior is unreadable. */
2981
+ /**
2982
+ * Decrypted prior record, or null on create / when prior is unreadable.
2983
+ * Money fields are decoded to the canonical decimal `get()` shape, NOT
2984
+ * the stored scaled-int (#332) — `incoming[f] === existing[f]` holds
2985
+ * for an unchanged money field.
2986
+ */
2978
2987
  readonly existing: unknown;
2979
2988
  /** Prior envelope version, or 0 when none. */
2980
2989
  readonly existingVersion: number;
@@ -2998,6 +3007,7 @@ interface GateDeleteEvent {
2998
3007
  readonly docId: string;
2999
3008
  /** True for system-internal (housekeeping) deletes — handlers branch on this. */
3000
3009
  readonly internal: boolean;
3010
+ /** Decrypted prior record; money fields decoded to the canonical `get()` shape (#332). */
3001
3011
  readonly existing: unknown;
3002
3012
  readonly existingVersion: number;
3003
3013
  readonly existingTs: string | undefined;
@@ -5272,6 +5282,51 @@ interface FactorProofBundle {
5272
5282
  /** Active session tier — what the engine compares against `gate.minTier`. */
5273
5283
  type ActiveTier = 1 | 2 | 3;
5274
5284
 
5285
+ /** Public options for `ShardedQuery.crossShardJoin`. */
5286
+ interface CrossShardJoinOptions {
5287
+ /** Alias key under which the joined same-shard record attaches. */
5288
+ readonly as: string;
5289
+ /** Per-shard row ceiling override (default DEFAULT_JOIN_MAX_ROWS). */
5290
+ readonly maxRows?: number;
5291
+ /** Planner strategy override, passed through to intra-vault `.join()`. */
5292
+ readonly strategy?: JoinStrategy;
5293
+ }
5294
+ /**
5295
+ * Minimal structural shape of a broadcast dimension source. A
5296
+ * `Collection` satisfies this natively: `list()` hydrates and returns
5297
+ * the decoded records. Kept as a one-method interface so plain test
5298
+ * sources are trivial to construct.
5299
+ */
5300
+ interface BroadcastSource {
5301
+ list(): Promise<readonly unknown[]>;
5302
+ }
5303
+ /** Public options for `ShardedQuery.broadcastJoin`. */
5304
+ interface BroadcastJoinOptions {
5305
+ /** Alias key under which the dimension record attaches. */
5306
+ readonly as: string;
5307
+ /** The shared dimension collection (an opened handle in another vault). */
5308
+ readonly from: BroadcastSource;
5309
+ /** Right-side key to match `field` against. Default 'id'. */
5310
+ readonly on?: string;
5311
+ /** Miss behavior. 'warn' (default) attaches null + one-shot warning; 'cascade' is silent. */
5312
+ readonly mode?: 'warn' | 'cascade';
5313
+ }
5314
+ /** Internal co-partitioned leg carried on ShardedQuery. */
5315
+ interface CoPartitionedLeg {
5316
+ readonly field: string;
5317
+ readonly as: string;
5318
+ readonly maxRows: number | undefined;
5319
+ readonly strategy: JoinStrategy | undefined;
5320
+ }
5321
+ /** Internal broadcast leg carried on ShardedQuery. */
5322
+ interface BroadcastLeg {
5323
+ readonly field: string;
5324
+ readonly as: string;
5325
+ readonly from: BroadcastSource;
5326
+ readonly on: string;
5327
+ readonly mode: 'warn' | 'cascade';
5328
+ }
5329
+
5275
5330
  /** A source that can fan out records across shards. Satisfied by ShardedQuery. */
5276
5331
  interface FanoutRecordSource<R> {
5277
5332
  fanoutRecords(options: FanoutQueryOptions): Promise<{
@@ -5397,17 +5452,25 @@ declare class ShardedQuery<T, R = T> {
5397
5452
  private readonly group;
5398
5453
  private readonly collectionName;
5399
5454
  private readonly clauses;
5400
- constructor(group: VaultGroup<T>, collectionName: string, clauses: readonly WhereClause[]);
5455
+ private readonly coPartitionedLegs;
5456
+ private readonly broadcastLegs;
5457
+ constructor(group: VaultGroup<T>, collectionName: string, clauses: readonly WhereClause[], coPartitionedLegs?: readonly CoPartitionedLeg[], broadcastLegs?: readonly BroadcastLeg[]);
5401
5458
  where(field: string, op: WhereClause['op'], value: unknown): ShardedQuery<T, R>;
5459
+ /** Co-partitioned join: each shard joins its own same-vault right collection (resolved via ref()), then union. */
5460
+ crossShardJoin(field: string, opts: CrossShardJoinOptions): ShardedQuery<T, R>;
5461
+ /** Broadcast dimension join: enrich every merged row from a single shared collection. */
5462
+ broadcastJoin(field: string, opts: BroadcastJoinOptions): ShardedQuery<T, R>;
5402
5463
  /** @internal — fan out the where-filtered records across eligible shards. */
5403
5464
  fanoutRecords(options?: FanoutQueryOptions): Promise<{
5404
5465
  records: R[];
5405
5466
  skippedVaults: SkippedVault[];
5406
5467
  }>;
5407
- /** Fan out across eligible shards and merge results. */
5468
+ /** Fan out across eligible shards, merge, then apply any broadcast dimension legs. */
5408
5469
  toArray(options?: FanoutQueryOptions): Promise<FanoutResult<R>>;
5409
5470
  /** @internal — build the change-subscription + relevance binding for this query's group+collection. */
5410
5471
  liveBinding(): LiveBinding;
5472
+ /** @internal — joined queries don't support reactive/aggregate surfaces in v1. */
5473
+ private assertNoJoinLegs;
5411
5474
  /** Returns a reactive cross-shard live query — a facade over CrossVaultLive. */
5412
5475
  live(options?: LiveQueryOptions): CrossVaultLiveQuery<R>;
5413
5476
  /** One-shot distributed aggregate — central reduce over all shard records. */
@@ -7030,7 +7093,12 @@ interface MaterializedViewStrategy<TRow extends Record<string, unknown>> {
7030
7093
  *
7031
7094
  * Mutually exclusive with {@link query}. Registration throws
7032
7095
  * `MaterializedViewConfigError` if both are set, if `unionSources`
7033
- * has fewer than 2 arms, or if two arms name the same `collection`.
7096
+ * is empty, or if two arms name the same `collection`.
7097
+ *
7098
+ * A SINGLE arm is valid (#331): it expresses map→group→aggregate
7099
+ * over one collection with a COMPUTED bucket key (e.g. a month
7100
+ * sliced from a date field). The query form's `.groupBy()` accepts
7101
+ * stored field names only, so a derived key needs the arm's `map`.
7034
7102
  *
7035
7103
  * UNION mode replaces the dependency-analyzer path: the source
7036
7104
  * collections come directly from `unionSources[].collection`, and
@@ -1,4 +1,4 @@
1
- import { br as PublicEnvelope, bs as SealingKeyProvider, bt as BundleRecipient, bu as RecipientSealer, bv as RecipientHint, bw as Vault } from './types-CDwSSXiI.cjs';
1
+ import { br as PublicEnvelope, bs as SealingKeyProvider, bt as BundleRecipient, bu as RecipientSealer, bv as RecipientHint, bw as Vault } from './types-BpPV5uyy.cjs';
2
2
 
3
3
  /**
4
4
  * `.noydb` container format — byte layout, header schema, validators.
@@ -1,4 +1,4 @@
1
- import { br as PublicEnvelope, bs as SealingKeyProvider, bt as BundleRecipient, bu as RecipientSealer, bv as RecipientHint, bw as Vault } from './types-pax34sec.js';
1
+ import { br as PublicEnvelope, bs as SealingKeyProvider, bt as BundleRecipient, bu as RecipientSealer, bv as RecipientHint, bw as Vault } from './types-4t1-tWS4.js';
2
2
 
3
3
  /**
4
4
  * `.noydb` container format — byte layout, header schema, validators.