@noy-db/hub 0.4.0-pre.5 → 0.4.0-pre.6

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 (330) hide show
  1. package/dist/{api-22ES33N3.js → api-5QVQX4HG.js} +6 -6
  2. package/dist/attestation/index.js +14 -14
  3. package/dist/{backup-YCHAC575.js → backup-USYSNCYM.js} +6 -6
  4. package/dist/blobs/index.js +8 -5
  5. package/dist/blobs/index.js.map +1 -1
  6. package/dist/broker/index.js +6 -6
  7. package/dist/cargo/index.js +26 -28
  8. package/dist/{chunk-RWW3I3PO.js → chunk-2BVW754E.js} +2 -2
  9. package/dist/{chunk-VEGQYPCP.js → chunk-2ZSC454H.js} +3 -3
  10. package/dist/{chunk-S4YERMGJ.js → chunk-32467U5J.js} +3 -3
  11. package/dist/{chunk-UVBHM7AK.js → chunk-3GXDB3NQ.js} +4 -4
  12. package/dist/{chunk-L2CAWCQL.js → chunk-3S2YNMUS.js} +53 -5
  13. package/dist/chunk-3S2YNMUS.js.map +1 -0
  14. package/dist/{chunk-HAPY7WFP.js → chunk-3TZUC4WS.js} +9 -9
  15. package/dist/{chunk-M6QA2KK2.js → chunk-44Y3P5U6.js} +2 -2
  16. package/dist/{chunk-WQN5SM7P.js → chunk-4B3DL75F.js} +2 -2
  17. package/dist/{chunk-XUFAFHQM.js → chunk-5ABOFAHN.js} +7 -4
  18. package/dist/chunk-5ABOFAHN.js.map +1 -0
  19. package/dist/chunk-5D2ALSM5.js +19 -0
  20. package/dist/chunk-5D2ALSM5.js.map +1 -0
  21. package/dist/{chunk-OHV6T5JB.js → chunk-6SSWOUUS.js} +2 -2
  22. package/dist/{chunk-6RPWILRH.js → chunk-7IQWHYL2.js} +3 -3
  23. package/dist/chunk-AFHQATY4.js +47 -0
  24. package/dist/chunk-AFHQATY4.js.map +1 -0
  25. package/dist/{chunk-I2XEBEEF.js → chunk-AZXEOEQK.js} +3 -3
  26. package/dist/{chunk-K7BADAOS.js → chunk-C2V7AJO2.js} +3 -3
  27. package/dist/chunk-CADUYBQD.js +151 -0
  28. package/dist/chunk-CADUYBQD.js.map +1 -0
  29. package/dist/{chunk-YTW6ZIPD.js → chunk-DOZFU7OZ.js} +1 -1
  30. package/dist/chunk-DOZFU7OZ.js.map +1 -0
  31. package/dist/{chunk-YCAJDK4O.js → chunk-E7FSBI6I.js} +3 -3
  32. package/dist/chunk-EP5L47XV.js +22 -0
  33. package/dist/chunk-EP5L47XV.js.map +1 -0
  34. package/dist/{chunk-YWZEDG7F.js → chunk-EPME33Y4.js} +4 -4
  35. package/dist/{chunk-EEZCB74X.js → chunk-EWPS35AR.js} +465 -393
  36. package/dist/chunk-EWPS35AR.js.map +1 -0
  37. package/dist/{chunk-BY5YBSXA.js → chunk-GQT6J4FJ.js} +14 -1
  38. package/dist/chunk-GQT6J4FJ.js.map +1 -0
  39. package/dist/{chunk-YXZNGHID.js → chunk-H5GMROCB.js} +2 -2
  40. package/dist/{chunk-QMMOMBH6.js → chunk-HA7P3BTB.js} +24 -175
  41. package/dist/chunk-HA7P3BTB.js.map +1 -0
  42. package/dist/{chunk-FTCGEUOY.js → chunk-HDF5R2K6.js} +4 -4
  43. package/dist/{chunk-R2N37AA6.js → chunk-HVPW6PCX.js} +2 -2
  44. package/dist/{chunk-YXIVUWDU.js → chunk-HXVRRJBD.js} +3 -3
  45. package/dist/{chunk-5ATANZSW.js → chunk-ICYC5YNI.js} +4 -4
  46. package/dist/{chunk-7ICV4ASA.js → chunk-IUATR5UE.js} +25 -3
  47. package/dist/chunk-IUATR5UE.js.map +1 -0
  48. package/dist/{chunk-QZJEYZ4I.js → chunk-JGOKAZNB.js} +3 -3
  49. package/dist/{chunk-JN3SGXJE.js → chunk-JOCMXSR2.js} +1 -1
  50. package/dist/{chunk-JN3SGXJE.js.map → chunk-JOCMXSR2.js.map} +1 -1
  51. package/dist/{chunk-7BIJS6II.js → chunk-JTIPVW4J.js} +3 -3
  52. package/dist/{chunk-SC4JLMZI.js → chunk-KCZAFDP5.js} +2 -2
  53. package/dist/{chunk-GP54LU5N.js → chunk-LG2GUYRX.js} +7 -7
  54. package/dist/{chunk-J5TEU77Q.js → chunk-LN3MQFUE.js} +54 -2
  55. package/dist/chunk-LN3MQFUE.js.map +1 -0
  56. package/dist/{chunk-FIP7KI2P.js → chunk-M4GO4ZJK.js} +205 -15
  57. package/dist/chunk-M4GO4ZJK.js.map +1 -0
  58. package/dist/{chunk-QMZ5A6FQ.js → chunk-M7W2KYTL.js} +2 -2
  59. package/dist/{chunk-K4BWPNJO.js → chunk-MLCTPWSO.js} +3 -3
  60. package/dist/{chunk-GEEJPID6.js → chunk-MMVQ3SUO.js} +3 -3
  61. package/dist/{chunk-HQKRZIX6.js → chunk-MPPWL64H.js} +24 -41
  62. package/dist/chunk-MPPWL64H.js.map +1 -0
  63. package/dist/{chunk-YZN6NRTR.js → chunk-MQBFT2OT.js} +11 -9
  64. package/dist/chunk-MQBFT2OT.js.map +1 -0
  65. package/dist/{chunk-TNJVDG2B.js → chunk-NA374QG7.js} +2 -2
  66. package/dist/chunk-NIKO2BBZ.js +23 -0
  67. package/dist/chunk-NIKO2BBZ.js.map +1 -0
  68. package/dist/chunk-PEOZ34EM.js +13 -0
  69. package/dist/chunk-PEOZ34EM.js.map +1 -0
  70. package/dist/chunk-PVEWA2DU.js +23 -0
  71. package/dist/chunk-PVEWA2DU.js.map +1 -0
  72. package/dist/{chunk-V5JUAW4M.js → chunk-QVIZDLAR.js} +5 -5
  73. package/dist/{chunk-DYZ5CCVM.js → chunk-RM5EXCFF.js} +1 -1
  74. package/dist/{chunk-DYZ5CCVM.js.map → chunk-RM5EXCFF.js.map} +1 -1
  75. package/dist/chunk-SMY5X46Z.js +14 -0
  76. package/dist/chunk-SMY5X46Z.js.map +1 -0
  77. package/dist/{chunk-2CRZOVDI.js → chunk-UNREYBZO.js} +2 -2
  78. package/dist/{chunk-KJTIAECI.js → chunk-V2R2VWER.js} +168 -9
  79. package/dist/chunk-V2R2VWER.js.map +1 -0
  80. package/dist/{chunk-CKUYQO2P.js → chunk-VDTWFN2P.js} +7 -5
  81. package/dist/chunk-VDTWFN2P.js.map +1 -0
  82. package/dist/chunk-VKQCVU2Z.js +21 -0
  83. package/dist/chunk-VKQCVU2Z.js.map +1 -0
  84. package/dist/{chunk-UTEATWHO.js → chunk-VNJMLOQS.js} +4 -4
  85. package/dist/{chunk-JAMDDLIM.js → chunk-WCJJQV2D.js} +2 -2
  86. package/dist/{chunk-OMSKGLYA.js → chunk-WWBC4KLB.js} +2 -2
  87. package/dist/{chunk-JIHH26WQ.js → chunk-XG7OZDOS.js} +3 -3
  88. package/dist/{chunk-QBOQI6PG.js → chunk-XONZGK6J.js} +2 -2
  89. package/dist/{chunk-YQQPNXNO.js → chunk-XSOGLHGY.js} +2 -2
  90. package/dist/{chunk-3OWYOECI.js → chunk-XY6MNSAF.js} +4 -4
  91. package/dist/chunk-XZHEOSQ2.js +16 -0
  92. package/dist/chunk-XZHEOSQ2.js.map +1 -0
  93. package/dist/{chunk-X3MWEFPT.js → chunk-YGMREQAK.js} +3 -3
  94. package/dist/chunk-YMUFFJCO.js +23 -0
  95. package/dist/chunk-YMUFFJCO.js.map +1 -0
  96. package/dist/{chunk-3LJYHE7S.js → chunk-ZDFU34XY.js} +9 -6
  97. package/dist/{chunk-3LJYHE7S.js.map → chunk-ZDFU34XY.js.map} +1 -1
  98. package/dist/{chunk-ILM6X6CP.js → chunk-ZF572E2M.js} +2 -2
  99. package/dist/{chunk-TNATF3HB.js → chunk-ZGEFBDPR.js} +2 -2
  100. package/dist/chunk-ZGEFBDPR.js.map +1 -0
  101. package/dist/{chunk-OGVE4IJW.js → chunk-ZHMUFYZF.js} +4 -4
  102. package/dist/{chunk-YFFEF6HR.js → chunk-ZHZ4PET5.js} +2 -2
  103. package/dist/{chunk-YZNKFYDC.js → chunk-ZM72UO3Y.js} +2 -2
  104. package/dist/classified/index.js +3 -3
  105. package/dist/{classified-marker-52P3D72W.js → classified-marker-SVDRXLD3.js} +3 -3
  106. package/dist/{collection-facade-XKCFHSLR.js → collection-facade-S5PPKZD5.js} +9 -9
  107. package/dist/consent/index.js +8 -4
  108. package/dist/consent/index.js.map +1 -1
  109. package/dist/{cover-5BSNJREH.js → cover-ADBCTIKN.js} +3 -3
  110. package/dist/crdt/index.js +4 -0
  111. package/dist/crdt/index.js.map +1 -1
  112. package/dist/{dead-filter-JXVCKS6W.js → dead-filter-HKDMTMVY.js} +2 -2
  113. package/dist/{delegation-WWZPEDK2.js → delegation-EV7LKJPH.js} +5 -5
  114. package/dist/derivations/index.js +3 -3
  115. package/dist/{derive-CWWFEQ4N.js → derive-5LDJW76F.js} +4 -4
  116. package/dist/{dispatch-PKQQFDBT.js → dispatch-SPMYNXNW.js} +12 -11
  117. package/dist/{dispatch-PKQQFDBT.js.map → dispatch-SPMYNXNW.js.map} +1 -1
  118. package/dist/{dispatch-SMXUO7W5.js → dispatch-V5MSMQYX.js} +5 -5
  119. package/dist/{enclave-I5H3GINP.js → enclave-ZA7C3H2L.js} +4 -4
  120. package/dist/executor-SVHAJZ4A.js +28 -0
  121. package/dist/{export-accessible-FBL6TDSK.js → export-accessible-S35YKIBL.js} +7 -7
  122. package/dist/{extract-partition-ZYIRYMTI.js → extract-partition-UVHAM5WZ.js} +10 -10
  123. package/dist/{fanout-sidecar-WWXVHHUH.js → fanout-sidecar-HRMHC34B.js} +4 -4
  124. package/dist/forget/index.js +4 -4
  125. package/dist/history/index.js +10 -6
  126. package/dist/history/index.js.map +1 -1
  127. package/dist/i18n/index.js +10 -8
  128. package/dist/i18n/index.js.map +1 -1
  129. package/dist/index.d.ts +4 -7
  130. package/dist/index.js +94 -151
  131. package/dist/index.js.map +1 -1
  132. package/dist/indexing/index.js +3 -1
  133. package/dist/indexing/index.js.map +1 -1
  134. package/dist/{issue-F76PAGIR.js → issue-5X3SMCF4.js} +6 -6
  135. package/dist/kernel/lazy.d.ts +30 -0
  136. package/dist/kernel/noydb.d.ts +21 -10
  137. package/dist/kernel/query/builder.d.ts +10 -10
  138. package/dist/kernel/query/index.d.ts +0 -6
  139. package/dist/kernel/query/scan-builder.d.ts +4 -4
  140. package/dist/kernel/types.d.ts +5 -5
  141. package/dist/{ledger-M2BKCNVS.js → ledger-K6JBFL3Z.js} +6 -6
  142. package/dist/liberate-NHTCKBU4.js +24 -0
  143. package/dist/{link-set-ZU4E5J5S.js → link-set-XVZY2ODC.js} +5 -5
  144. package/dist/materialized-views/index.js +15 -12
  145. package/dist/noydb-TI3RFU6M.js +78 -0
  146. package/dist/periods/index.js +9 -7
  147. package/dist/pod/index.js +5 -6
  148. package/dist/{policy-IY2YEA3A.js → policy-QWGJB7P7.js} +4 -4
  149. package/dist/port/with/collection-registries.d.ts +62 -0
  150. package/dist/port/with/strategies.d.ts +2 -2
  151. package/dist/port/with/team-strategy.d.ts +2 -1
  152. package/dist/portability/index.js +6 -6
  153. package/dist/{post-register-XIAHB6KF.js → post-register-5VHHVFJY.js} +4 -4
  154. package/dist/query/index.js +4 -44
  155. package/dist/{aggregate → reduce}/index.js +22 -15
  156. package/dist/reduce/index.js.map +1 -0
  157. package/dist/{register-HB4TQZSV.js → register-CEX7R7NE.js} +6 -6
  158. package/dist/{registry-6BMBFEXT.js → registry-DIKMRXUC.js} +5 -5
  159. package/dist/{registry-JOFO7RAH.js → registry-EWIB5NTI.js} +4 -4
  160. package/dist/{request-withdrawal-UN3TRHWI.js → request-withdrawal-AAG57QO4.js} +9 -9
  161. package/dist/{reveal-VWXRV2XU.js → reveal-7OOT5XPD.js} +3 -3
  162. package/dist/{revoke-OLO2OVR7.js → revoke-U5LCIJMF.js} +6 -6
  163. package/dist/sealed-record/index.js +6 -6
  164. package/dist/{seed-CDBFOTIK.js → seed-GVOI6QP6.js} +6 -6
  165. package/dist/session/index.js +7 -3
  166. package/dist/session/index.js.map +1 -1
  167. package/dist/shadow/index.js +4 -0
  168. package/dist/shadow/index.js.map +1 -1
  169. package/dist/{signer-MGGKPYAN.js → signer-NAA2OX7H.js} +5 -5
  170. package/dist/snapshots/index.js +9 -5
  171. package/dist/snapshots/index.js.map +1 -1
  172. package/dist/{stale-NBROTA66.js → stale-BJO2WIN7.js} +6 -5
  173. package/dist/{storage-3R37QZLA.js → storage-FL7XXZTN.js} +5 -5
  174. package/dist/{store-coordination-provider-P3IU5JHD.js → store-coordination-provider-DX5HECK3.js} +3 -3
  175. package/dist/sync/index.js +8 -4
  176. package/dist/sync/index.js.map +1 -1
  177. package/dist/team/index.js +15 -17
  178. package/dist/tiers/index.js +4 -4
  179. package/dist/tx/index.js +5 -1
  180. package/dist/tx/index.js.map +1 -1
  181. package/dist/via/blob/index.d.ts +2 -0
  182. package/dist/via/i18n/core.d.ts +1 -1
  183. package/dist/via/i18n/index.d.ts +2 -0
  184. package/dist/via/money/money-reducer.d.ts +2 -2
  185. package/dist/{walk-E3OVLBFR.js → walk-JXMWKKQW.js} +5 -5
  186. package/dist/with-audit/consent/index.d.ts +2 -0
  187. package/dist/with-audit/periods/index.d.ts +2 -0
  188. package/dist/with-cargo/floor.d.ts +3 -3
  189. package/dist/with-commit/crdt/index.d.ts +2 -0
  190. package/dist/with-commit/history/index.d.ts +2 -0
  191. package/dist/with-fork/shadow/index.d.ts +2 -0
  192. package/dist/with-fork/snapshots/index.d.ts +2 -0
  193. package/dist/with-formula/materialized-views/types.d.ts +7 -7
  194. package/dist/with-lookup/indexing/index.d.ts +2 -0
  195. package/dist/with-lookup/{aggregate → reduce}/active.d.ts +8 -8
  196. package/dist/with-lookup/{aggregate → reduce}/groupby.d.ts +21 -21
  197. package/dist/with-lookup/reduce/index.d.ts +34 -0
  198. package/dist/with-lookup/{aggregate → reduce}/reducers.d.ts +10 -10
  199. package/dist/with-lookup/{aggregate/aggregation.d.ts → reduce/reduction.d.ts} +21 -21
  200. package/dist/with-lookup/{aggregate → reduce}/strategy.d.ts +15 -15
  201. package/dist/with-party/session/index.d.ts +2 -0
  202. package/dist/with-party/sync/index.d.ts +2 -0
  203. package/dist/with-party/team/keyring.d.ts +20 -1
  204. package/dist/with-party/team/noydb-facade.d.ts +2 -1
  205. package/dist/{withdraw-accessible-Q2EMATCU.js → withdraw-accessible-GO6KQJVM.js} +8 -8
  206. package/package.json +6 -34
  207. package/dist/aggregate/index.js.map +0 -1
  208. package/dist/as/index.js +0 -30
  209. package/dist/at/index.js +0 -1
  210. package/dist/by/index.js +0 -11
  211. package/dist/chunk-2YELV6TV.js +0 -1
  212. package/dist/chunk-7ICV4ASA.js.map +0 -1
  213. package/dist/chunk-AFAPBZAA.js +0 -54
  214. package/dist/chunk-AFAPBZAA.js.map +0 -1
  215. package/dist/chunk-BY5YBSXA.js.map +0 -1
  216. package/dist/chunk-CJVEAVYH.js +0 -205
  217. package/dist/chunk-CJVEAVYH.js.map +0 -1
  218. package/dist/chunk-CKUYQO2P.js.map +0 -1
  219. package/dist/chunk-EEZCB74X.js.map +0 -1
  220. package/dist/chunk-FIP7KI2P.js.map +0 -1
  221. package/dist/chunk-HQKRZIX6.js.map +0 -1
  222. package/dist/chunk-IGLU4ME7.js +0 -255
  223. package/dist/chunk-IGLU4ME7.js.map +0 -1
  224. package/dist/chunk-J5TEU77Q.js.map +0 -1
  225. package/dist/chunk-KJTIAECI.js.map +0 -1
  226. package/dist/chunk-L2CAWCQL.js.map +0 -1
  227. package/dist/chunk-LB7FD65R.js +0 -163
  228. package/dist/chunk-LB7FD65R.js.map +0 -1
  229. package/dist/chunk-QMMOMBH6.js.map +0 -1
  230. package/dist/chunk-TNATF3HB.js.map +0 -1
  231. package/dist/chunk-XUFAFHQM.js.map +0 -1
  232. package/dist/chunk-YTW6ZIPD.js.map +0 -1
  233. package/dist/chunk-YZN6NRTR.js.map +0 -1
  234. package/dist/executor-SHYLIBOM.js +0 -26
  235. package/dist/in/index.js +0 -1
  236. package/dist/liberate-ZP7UB57K.js +0 -24
  237. package/dist/noydb-BNDGEK5X.js +0 -71
  238. package/dist/on/index.js +0 -17
  239. package/dist/port/as/index.d.ts +0 -26
  240. package/dist/port/at/index.d.ts +0 -18
  241. package/dist/port/in/index.d.ts +0 -21
  242. package/dist/port/on/index.d.ts +0 -27
  243. package/dist/port/ui/index.d.ts +0 -21
  244. package/dist/port/with/index.d.ts +0 -18
  245. package/dist/request-withdrawal-UN3TRHWI.js.map +0 -1
  246. package/dist/revoke-OLO2OVR7.js.map +0 -1
  247. package/dist/signer-MGGKPYAN.js.map +0 -1
  248. package/dist/stale-NBROTA66.js.map +0 -1
  249. package/dist/storage-3R37QZLA.js.map +0 -1
  250. package/dist/ui/index.js +0 -1
  251. package/dist/ui/index.js.map +0 -1
  252. package/dist/with/index.js +0 -31
  253. package/dist/with/index.js.map +0 -1
  254. package/dist/with-lookup/aggregate/index.d.ts +0 -23
  255. package/dist/withdraw-accessible-Q2EMATCU.js.map +0 -1
  256. /package/dist/{api-22ES33N3.js.map → api-5QVQX4HG.js.map} +0 -0
  257. /package/dist/{backup-YCHAC575.js.map → backup-USYSNCYM.js.map} +0 -0
  258. /package/dist/{chunk-RWW3I3PO.js.map → chunk-2BVW754E.js.map} +0 -0
  259. /package/dist/{chunk-VEGQYPCP.js.map → chunk-2ZSC454H.js.map} +0 -0
  260. /package/dist/{chunk-S4YERMGJ.js.map → chunk-32467U5J.js.map} +0 -0
  261. /package/dist/{chunk-UVBHM7AK.js.map → chunk-3GXDB3NQ.js.map} +0 -0
  262. /package/dist/{chunk-HAPY7WFP.js.map → chunk-3TZUC4WS.js.map} +0 -0
  263. /package/dist/{chunk-M6QA2KK2.js.map → chunk-44Y3P5U6.js.map} +0 -0
  264. /package/dist/{chunk-WQN5SM7P.js.map → chunk-4B3DL75F.js.map} +0 -0
  265. /package/dist/{chunk-OHV6T5JB.js.map → chunk-6SSWOUUS.js.map} +0 -0
  266. /package/dist/{chunk-6RPWILRH.js.map → chunk-7IQWHYL2.js.map} +0 -0
  267. /package/dist/{chunk-I2XEBEEF.js.map → chunk-AZXEOEQK.js.map} +0 -0
  268. /package/dist/{chunk-K7BADAOS.js.map → chunk-C2V7AJO2.js.map} +0 -0
  269. /package/dist/{chunk-YCAJDK4O.js.map → chunk-E7FSBI6I.js.map} +0 -0
  270. /package/dist/{chunk-YWZEDG7F.js.map → chunk-EPME33Y4.js.map} +0 -0
  271. /package/dist/{chunk-YXZNGHID.js.map → chunk-H5GMROCB.js.map} +0 -0
  272. /package/dist/{chunk-FTCGEUOY.js.map → chunk-HDF5R2K6.js.map} +0 -0
  273. /package/dist/{chunk-R2N37AA6.js.map → chunk-HVPW6PCX.js.map} +0 -0
  274. /package/dist/{chunk-YXIVUWDU.js.map → chunk-HXVRRJBD.js.map} +0 -0
  275. /package/dist/{chunk-5ATANZSW.js.map → chunk-ICYC5YNI.js.map} +0 -0
  276. /package/dist/{chunk-QZJEYZ4I.js.map → chunk-JGOKAZNB.js.map} +0 -0
  277. /package/dist/{chunk-7BIJS6II.js.map → chunk-JTIPVW4J.js.map} +0 -0
  278. /package/dist/{chunk-SC4JLMZI.js.map → chunk-KCZAFDP5.js.map} +0 -0
  279. /package/dist/{chunk-GP54LU5N.js.map → chunk-LG2GUYRX.js.map} +0 -0
  280. /package/dist/{chunk-QMZ5A6FQ.js.map → chunk-M7W2KYTL.js.map} +0 -0
  281. /package/dist/{chunk-K4BWPNJO.js.map → chunk-MLCTPWSO.js.map} +0 -0
  282. /package/dist/{chunk-GEEJPID6.js.map → chunk-MMVQ3SUO.js.map} +0 -0
  283. /package/dist/{chunk-TNJVDG2B.js.map → chunk-NA374QG7.js.map} +0 -0
  284. /package/dist/{chunk-V5JUAW4M.js.map → chunk-QVIZDLAR.js.map} +0 -0
  285. /package/dist/{chunk-2CRZOVDI.js.map → chunk-UNREYBZO.js.map} +0 -0
  286. /package/dist/{chunk-UTEATWHO.js.map → chunk-VNJMLOQS.js.map} +0 -0
  287. /package/dist/{chunk-JAMDDLIM.js.map → chunk-WCJJQV2D.js.map} +0 -0
  288. /package/dist/{chunk-OMSKGLYA.js.map → chunk-WWBC4KLB.js.map} +0 -0
  289. /package/dist/{chunk-JIHH26WQ.js.map → chunk-XG7OZDOS.js.map} +0 -0
  290. /package/dist/{chunk-QBOQI6PG.js.map → chunk-XONZGK6J.js.map} +0 -0
  291. /package/dist/{chunk-YQQPNXNO.js.map → chunk-XSOGLHGY.js.map} +0 -0
  292. /package/dist/{chunk-3OWYOECI.js.map → chunk-XY6MNSAF.js.map} +0 -0
  293. /package/dist/{chunk-X3MWEFPT.js.map → chunk-YGMREQAK.js.map} +0 -0
  294. /package/dist/{chunk-ILM6X6CP.js.map → chunk-ZF572E2M.js.map} +0 -0
  295. /package/dist/{chunk-OGVE4IJW.js.map → chunk-ZHMUFYZF.js.map} +0 -0
  296. /package/dist/{chunk-YFFEF6HR.js.map → chunk-ZHZ4PET5.js.map} +0 -0
  297. /package/dist/{chunk-YZNKFYDC.js.map → chunk-ZM72UO3Y.js.map} +0 -0
  298. /package/dist/{classified-marker-52P3D72W.js.map → classified-marker-SVDRXLD3.js.map} +0 -0
  299. /package/dist/{as/index.js.map → collection-facade-S5PPKZD5.js.map} +0 -0
  300. /package/dist/{at/index.js.map → cover-ADBCTIKN.js.map} +0 -0
  301. /package/dist/{dead-filter-JXVCKS6W.js.map → dead-filter-HKDMTMVY.js.map} +0 -0
  302. /package/dist/{by/index.js.map → delegation-EV7LKJPH.js.map} +0 -0
  303. /package/dist/{chunk-2YELV6TV.js.map → derive-5LDJW76F.js.map} +0 -0
  304. /package/dist/{dispatch-SMXUO7W5.js.map → dispatch-V5MSMQYX.js.map} +0 -0
  305. /package/dist/{collection-facade-XKCFHSLR.js.map → enclave-ZA7C3H2L.js.map} +0 -0
  306. /package/dist/{cover-5BSNJREH.js.map → executor-SVHAJZ4A.js.map} +0 -0
  307. /package/dist/{delegation-WWZPEDK2.js.map → export-accessible-S35YKIBL.js.map} +0 -0
  308. /package/dist/{derive-CWWFEQ4N.js.map → extract-partition-UVHAM5WZ.js.map} +0 -0
  309. /package/dist/{fanout-sidecar-WWXVHHUH.js.map → fanout-sidecar-HRMHC34B.js.map} +0 -0
  310. /package/dist/{enclave-I5H3GINP.js.map → issue-5X3SMCF4.js.map} +0 -0
  311. /package/dist/{executor-SHYLIBOM.js.map → ledger-K6JBFL3Z.js.map} +0 -0
  312. /package/dist/{export-accessible-FBL6TDSK.js.map → liberate-NHTCKBU4.js.map} +0 -0
  313. /package/dist/{extract-partition-ZYIRYMTI.js.map → link-set-XVZY2ODC.js.map} +0 -0
  314. /package/dist/{in/index.js.map → noydb-TI3RFU6M.js.map} +0 -0
  315. /package/dist/{issue-F76PAGIR.js.map → policy-QWGJB7P7.js.map} +0 -0
  316. /package/dist/{post-register-XIAHB6KF.js.map → post-register-5VHHVFJY.js.map} +0 -0
  317. /package/dist/{ledger-M2BKCNVS.js.map → register-CEX7R7NE.js.map} +0 -0
  318. /package/dist/{liberate-ZP7UB57K.js.map → registry-DIKMRXUC.js.map} +0 -0
  319. /package/dist/{link-set-ZU4E5J5S.js.map → registry-EWIB5NTI.js.map} +0 -0
  320. /package/dist/{noydb-BNDGEK5X.js.map → request-withdrawal-AAG57QO4.js.map} +0 -0
  321. /package/dist/{reveal-VWXRV2XU.js.map → reveal-7OOT5XPD.js.map} +0 -0
  322. /package/dist/{on/index.js.map → revoke-U5LCIJMF.js.map} +0 -0
  323. /package/dist/{seed-CDBFOTIK.js.map → seed-GVOI6QP6.js.map} +0 -0
  324. /package/dist/{policy-IY2YEA3A.js.map → signer-NAA2OX7H.js.map} +0 -0
  325. /package/dist/{register-HB4TQZSV.js.map → stale-BJO2WIN7.js.map} +0 -0
  326. /package/dist/{registry-6BMBFEXT.js.map → storage-FL7XXZTN.js.map} +0 -0
  327. /package/dist/{store-coordination-provider-P3IU5JHD.js.map → store-coordination-provider-DX5HECK3.js.map} +0 -0
  328. /package/dist/{walk-E3OVLBFR.js.map → walk-JXMWKKQW.js.map} +0 -0
  329. /package/dist/with-lookup/{aggregate → reduce}/canonical-key.d.ts +0 -0
  330. /package/dist/{registry-JOFO7RAH.js.map → withdraw-accessible-GO6KQJVM.js.map} +0 -0
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Vault-level registries a collection declaration populates (#841).
3
+ *
4
+ * `Vault.collection()` carried ~70 lines that did nothing but fan a
5
+ * declaration out into ten registries — refs, i18n fields, blob retention,
6
+ * archive policy, attestation schema, the dict/lookup family, and the
7
+ * schema-update names. None of it is orchestration, and all of it obscured
8
+ * the method's actual job.
9
+ *
10
+ * ## Why this is on the port and not in `kernel/`
11
+ *
12
+ * The registry types reach into services — `BlobFieldsConfig`
13
+ * (`with-shape/blobs`) and `ArchivePolicy` (`with-fork/archive`) — and
14
+ * `port-layering` forbids the spine from statically importing a `with-*`
15
+ * module, **including type-only** (the guard scans import statements, not
16
+ * their erasure). Port files may reach services freely, which is why
17
+ * `strategies.ts` and `collection-options.ts` already live here.
18
+ *
19
+ * @internal
20
+ */
21
+ import type { AttestationFieldSchema } from '@noy-db/attestation';
22
+ import type { BlobFieldsConfig } from '../../with-shape/blobs/blob-compaction.js';
23
+ import type { ArchivePolicy } from '../../with-fork/archive/index.js';
24
+ import type { OpenCollectionOptions } from './collection-options.js';
25
+ import { type StaticDictDescriptor } from './i18n-strategy.js';
26
+ import { type LookupDescriptor } from './lookup-strategy.js';
27
+ /** The via-derived field maps a declaration resolves to before registration. */
28
+ export interface EffectiveViaFields {
29
+ readonly i18nFields?: Record<string, unknown> | undefined;
30
+ readonly dictKeyFields?: Record<string, StaticDictDescriptor | {
31
+ name: string;
32
+ }> | undefined;
33
+ readonly lookupFields?: Record<string, LookupDescriptor<string>> | undefined;
34
+ }
35
+ /**
36
+ * The ten registries a collection declaration writes into. Passed by
37
+ * reference — these are the Vault's own maps, mutated in place.
38
+ */
39
+ export interface CollectionRegistries {
40
+ readonly refRegistry: {
41
+ register(collection: string, refs: Record<string, unknown>): void;
42
+ };
43
+ readonly i18nFieldRegistry: Map<string, unknown>;
44
+ readonly blobFieldsRegistry: Map<string, BlobFieldsConfig<unknown>>;
45
+ readonly archiveRegistry: Map<string, ArchivePolicy>;
46
+ readonly attestation: {
47
+ register(collection: string, schema: AttestationFieldSchema): void;
48
+ };
49
+ readonly dictKeyFieldRegistry: Map<string, Record<string, string>>;
50
+ readonly staticDictNames: Set<string>;
51
+ readonly staticByName: Map<string, StaticDictDescriptor>;
52
+ readonly staticDescriptorByField: Map<string, Record<string, StaticDictDescriptor>>;
53
+ readonly reservedLookupCollections: Map<string, string>;
54
+ readonly schemaUpdateNames: Map<string, string[]>;
55
+ }
56
+ /**
57
+ * Fan a collection declaration out into the vault's registries.
58
+ *
59
+ * Called once, before the `Collection` is constructed, so the first `put()`
60
+ * already sees its refs through `vault.enforceRefsOnPut`.
61
+ */
62
+ export declare function populateCollectionRegistries<T>(r: CollectionRegistries, collectionName: string, options: OpenCollectionOptions<T> | undefined, effectiveViaFields: EffectiveViaFields): void;
@@ -51,7 +51,7 @@
51
51
  * @internal
52
52
  */
53
53
  import type { NoydbOptions } from '../../kernel/types.js';
54
- import { type AggregateStrategy } from '../../with-lookup/aggregate/strategy.js';
54
+ import { type ReduceStrategy } from '../../with-lookup/reduce/strategy.js';
55
55
  import { type AttestationStrategy } from '../../with-audit/attestation/strategy.js';
56
56
  import { type BlobStrategy } from './blob-strategy.js';
57
57
  import { type BrokerStrategy } from './broker-strategy.js';
@@ -86,7 +86,7 @@ import type { ArchiveStrategy } from '../../with-fork/archive/index.js';
86
86
  * completeness assertion below pins that correspondence.
87
87
  */
88
88
  export interface StrategyBag {
89
- readonly aggregate: AggregateStrategy;
89
+ readonly reduce: ReduceStrategy;
90
90
  readonly archive: ArchiveStrategy;
91
91
  readonly attestation: AttestationStrategy;
92
92
  readonly blob: BlobStrategy;
@@ -22,11 +22,12 @@
22
22
  * @internal
23
23
  */
24
24
  import type { GrantOptions, RevokeOptions, FactorProofBundle } from '../../kernel/types.js';
25
+ import type { RotateResult } from '../../with-party/team/keyring.js';
25
26
  import type { TeamFacade } from '../../with-party/team/noydb-facade.js';
26
27
  export interface TeamStrategy {
27
28
  grant(team: TeamFacade, vault: string, options: GrantOptions, factors?: FactorProofBundle): Promise<void>;
28
29
  revoke(team: TeamFacade, vault: string, options: RevokeOptions, factors?: FactorProofBundle): Promise<void>;
29
- rotate(team: TeamFacade, vault: string, collections: string[]): Promise<void>;
30
+ rotate(team: TeamFacade, vault: string, collections: string[]): Promise<RotateResult>;
30
31
  }
31
32
  /**
32
33
  * No-op stub — the floor default. Every multi-user team operation throws
@@ -10,27 +10,27 @@ import "../chunk-PZ5AY32C.js";
10
10
  function withPortability() {
11
11
  return {
12
12
  async exportAccessibleData(vault, opts) {
13
- const { exportAccessibleData } = await import("../export-accessible-FBL6TDSK.js");
13
+ const { exportAccessibleData } = await import("../export-accessible-S35YKIBL.js");
14
14
  return exportAccessibleData(vault, opts);
15
15
  },
16
16
  async withdrawAccessibleData(vault, opts) {
17
- const { withdrawAccessibleData } = await import("../withdraw-accessible-Q2EMATCU.js");
17
+ const { withdrawAccessibleData } = await import("../withdraw-accessible-GO6KQJVM.js");
18
18
  return withdrawAccessibleData(vault, opts);
19
19
  },
20
20
  async requestWithdrawal(vault, opts) {
21
- const { requestWithdrawal } = await import("../request-withdrawal-UN3TRHWI.js");
21
+ const { requestWithdrawal } = await import("../request-withdrawal-AAG57QO4.js");
22
22
  return requestWithdrawal(vault, opts);
23
23
  },
24
24
  async listWithdrawalRequests(vault, opts) {
25
- const { listWithdrawalRequests } = await import("../request-withdrawal-UN3TRHWI.js");
25
+ const { listWithdrawalRequests } = await import("../request-withdrawal-AAG57QO4.js");
26
26
  return listWithdrawalRequests(vault, opts);
27
27
  },
28
28
  async approveWithdrawal(vault, requestId, opts) {
29
- const { approveWithdrawal } = await import("../request-withdrawal-UN3TRHWI.js");
29
+ const { approveWithdrawal } = await import("../request-withdrawal-AAG57QO4.js");
30
30
  return approveWithdrawal(vault, requestId, opts);
31
31
  },
32
32
  async rejectWithdrawal(vault, requestId, opts) {
33
- const { rejectWithdrawal } = await import("../request-withdrawal-UN3TRHWI.js");
33
+ const { rejectWithdrawal } = await import("../request-withdrawal-AAG57QO4.js");
34
34
  return rejectWithdrawal(vault, requestId, opts);
35
35
  }
36
36
  };
@@ -14,7 +14,7 @@ async function ensureSatelliteMarker(store, vaultName, spec, dek) {
14
14
  joined: spec.joined,
15
15
  epoch: (/* @__PURE__ */ new Date()).toISOString()
16
16
  };
17
- const { loadPersistedSchema } = await import("./storage-3R37QZLA.js");
17
+ const { loadPersistedSchema } = await import("./storage-FL7XXZTN.js");
18
18
  const persisted = await loadPersistedSchema(store, vaultName, spec.satellite, dek);
19
19
  const prior = persisted?.satellite;
20
20
  if (prior) {
@@ -25,7 +25,7 @@ async function ensureSatelliteMarker(store, vaultName, spec, dek) {
25
25
  }
26
26
  return;
27
27
  }
28
- const { persistSatelliteMarker } = await import("./register-HB4TQZSV.js");
28
+ const { persistSatelliteMarker } = await import("./register-CEX7R7NE.js");
29
29
  await persistSatelliteMarker({ store, vault: vaultName, collectionName: spec.satellite, dek, marker: next });
30
30
  }
31
31
 
@@ -39,7 +39,7 @@ async function postRegister(store, vaultName, spec, getDEK, baseSchema, registry
39
39
  }
40
40
  if (baseSchema !== void 0) {
41
41
  try {
42
- const { derivePersistedSchema } = await import("./derive-CWWFEQ4N.js");
42
+ const { derivePersistedSchema } = await import("./derive-5LDJW76F.js");
43
43
  const envelope = await derivePersistedSchema(baseSchema);
44
44
  const properties = envelope.jsonSchema?.["properties"];
45
45
  const baseFields = Object.keys(properties ?? {});
@@ -57,4 +57,4 @@ async function postRegister(store, vaultName, spec, getDEK, baseSchema, registry
57
57
  export {
58
58
  postRegister
59
59
  };
60
- //# sourceMappingURL=post-register-XIAHB6KF.js.map
60
+ //# sourceMappingURL=post-register-5VHHVFJY.js.map
@@ -4,7 +4,7 @@ import {
4
4
  ScanBuilder,
5
5
  buildLiveQuery,
6
6
  executePlan
7
- } from "../chunk-HQKRZIX6.js";
7
+ } from "../chunk-MPPWL64H.js";
8
8
  import {
9
9
  DEFAULT_JOIN_MAX_ROWS,
10
10
  applyJoins,
@@ -13,34 +13,13 @@ import {
13
13
  import {
14
14
  CollectionIndexes
15
15
  } from "../chunk-KPZS5QAQ.js";
16
- import {
17
- Aggregation,
18
- GROUPBY_MAX_CARDINALITY,
19
- GROUPBY_WARN_CARDINALITY,
20
- GroupedAggregation,
21
- GroupedQuery,
22
- GroupedQueryN,
23
- avg,
24
- buildLiveAggregation,
25
- count,
26
- groupAndReduce,
27
- max,
28
- min,
29
- moneyMax,
30
- moneyMin,
31
- moneySum,
32
- reduceRecords,
33
- reducerBuilder,
34
- resetGroupByWarnings,
35
- sum
36
- } from "../chunk-QMMOMBH6.js";
16
+ import "../chunk-YMUFFJCO.js";
17
+ import "../chunk-CADUYBQD.js";
37
18
  import {
38
19
  evaluateClause,
39
20
  evaluateFieldClause,
40
21
  readPath
41
22
  } from "../chunk-IGJCYUT5.js";
42
- import "../chunk-JN3SGXJE.js";
43
- import "../chunk-ZUDAK436.js";
44
23
  import {
45
24
  CrossJoinSourceUnknownError,
46
25
  CrossJoinTooLargeError,
@@ -53,7 +32,6 @@ import {
53
32
  } from "../chunk-6SYOHUHM.js";
54
33
  import "../chunk-PZ5AY32C.js";
55
34
  export {
56
- Aggregation,
57
35
  CollectionIndexes,
58
36
  CrossJoinSourceUnknownError,
59
37
  CrossJoinTooLargeError,
@@ -61,36 +39,18 @@ export {
61
39
  DEFAULT_JOIN_MAX_ROWS,
62
40
  DanglingReferenceError,
63
41
  FieldNotQueryableError,
64
- GROUPBY_MAX_CARDINALITY,
65
- GROUPBY_WARN_CARDINALITY,
66
42
  GroupCardinalityError,
67
- GroupedAggregation,
68
- GroupedQuery,
69
- GroupedQueryN,
70
43
  IndexRequiredError,
71
44
  IndexWriteFailureError,
72
45
  JoinTooLargeError,
73
46
  Query,
74
47
  ScanBuilder,
75
48
  applyJoins,
76
- avg,
77
- buildLiveAggregation,
78
49
  buildLiveQuery,
79
- count,
80
50
  evaluateClause,
81
51
  evaluateFieldClause,
82
52
  executePlan,
83
- groupAndReduce,
84
- max,
85
- min,
86
- moneyMax,
87
- moneyMin,
88
- moneySum,
89
53
  readPath,
90
- reduceRecords,
91
- reducerBuilder,
92
- resetGroupByWarnings,
93
- resetJoinWarnings,
94
- sum
54
+ resetJoinWarnings
95
55
  };
96
56
  //# sourceMappingURL=index.js.map
@@ -1,35 +1,41 @@
1
1
  import {
2
- Aggregation,
3
2
  GROUPBY_MAX_CARDINALITY,
4
3
  GROUPBY_WARN_CARDINALITY,
5
- GroupedAggregation,
6
4
  GroupedQuery,
7
5
  GroupedQueryN,
6
+ GroupedReduction,
7
+ Reduction,
8
+ buildLiveReduction,
9
+ groupAndReduce,
10
+ reduceRecords,
11
+ resetGroupByWarnings
12
+ } from "../chunk-HA7P3BTB.js";
13
+ import "../chunk-XZHEOSQ2.js";
14
+ import {
15
+ NO_REDUCE
16
+ } from "../chunk-YMUFFJCO.js";
17
+ import {
8
18
  avg,
9
- buildLiveAggregation,
10
19
  count,
11
- groupAndReduce,
12
20
  max,
13
21
  min,
14
22
  moneyMax,
15
23
  moneyMin,
16
24
  moneySum,
17
- reduceRecords,
18
25
  reducerBuilder,
19
- resetGroupByWarnings,
20
26
  sum
21
- } from "../chunk-QMMOMBH6.js";
27
+ } from "../chunk-CADUYBQD.js";
22
28
  import "../chunk-IGJCYUT5.js";
23
- import "../chunk-JN3SGXJE.js";
29
+ import "../chunk-JOCMXSR2.js";
24
30
  import "../chunk-ZUDAK436.js";
25
31
  import "../chunk-6SYOHUHM.js";
26
32
  import "../chunk-PZ5AY32C.js";
27
33
 
28
- // src/with-lookup/aggregate/active.ts
29
- function withAggregate() {
34
+ // src/with-lookup/reduce/active.ts
35
+ function withReduce() {
30
36
  return {
31
37
  aggregate(executeRecords, spec, upstreams) {
32
- return new Aggregation(executeRecords, spec, upstreams);
38
+ return new Reduction(executeRecords, spec, upstreams);
33
39
  },
34
40
  groupBy(executeRecords, field, upstreams, dictLabelResolver, via) {
35
41
  return new GroupedQuery(executeRecords, field, upstreams, dictLabelResolver, via);
@@ -45,14 +51,15 @@ function withAggregate() {
45
51
  };
46
52
  }
47
53
  export {
48
- Aggregation,
49
54
  GROUPBY_MAX_CARDINALITY,
50
55
  GROUPBY_WARN_CARDINALITY,
51
- GroupedAggregation,
52
56
  GroupedQuery,
53
57
  GroupedQueryN,
58
+ GroupedReduction,
59
+ NO_REDUCE,
60
+ Reduction,
54
61
  avg,
55
- buildLiveAggregation,
62
+ buildLiveReduction,
56
63
  count,
57
64
  groupAndReduce,
58
65
  max,
@@ -64,6 +71,6 @@ export {
64
71
  reducerBuilder,
65
72
  resetGroupByWarnings,
66
73
  sum,
67
- withAggregate
74
+ withReduce
68
75
  };
69
76
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/with-lookup/reduce/active.ts"],"sourcesContent":["/**\n * Active aggregate strategy factory. Calling `withReduce()` returns\n * an `ReduceStrategy` whose methods construct real `Reduction` /\n * `GroupedQuery` instances and run the streaming reducer protocol.\n *\n * This module is only reachable through the `@noy-db/hub/reduce`\n * subpath — a consumer that never imports the subpath ships none of\n * this (ESM tree-shaking + hub's `\"sideEffects\": false`).\n */\n\nimport { Reduction, reduceRecords } from './reduction.js'\nimport type { ReduceSpec, ReduceResult } from './reduction.js'\nimport { GroupedQuery, GroupedQueryN } from './groupby.js'\nimport type { ReduceStrategy } from './strategy.js'\n\n/**\n * Build the default aggregate strategy. Pass into\n * `createNoydb({ reduceStrategy: withReduce() })` to light up\n * `.aggregate()` and `.groupBy()` on `Query` and `ScanBuilder`.\n *\n * @example\n * ```ts\n * import { createNoydb } from '@noy-db/hub'\n * import { withReduce, sum, count } from '@noy-db/hub/reduce'\n *\n * const db = await createNoydb({\n * store, user, secret,\n * reduceStrategy: withReduce(),\n * })\n *\n * const totals = invoices.query()\n * .where('status', '==', 'paid')\n * .groupBy('clientId')\n * .aggregate({ amount: sum('amount'), n: count() })\n * .run()\n * ```\n */\nexport function withReduce(): ReduceStrategy {\n return {\n aggregate(executeRecords, spec, upstreams) {\n return new Reduction(executeRecords, spec as unknown as ReduceSpec, upstreams) as unknown as Reduction<ReduceResult<typeof spec>>\n },\n groupBy(executeRecords, field, upstreams, dictLabelResolver, via) {\n return new GroupedQuery(executeRecords, field, upstreams, dictLabelResolver, via)\n },\n groupByN(executeRecords, fields, upstreams, via) {\n return new GroupedQueryN(executeRecords, fields, upstreams, undefined, via)\n },\n async scanAggregate(iter, spec) {\n const collected: unknown[] = []\n for await (const record of iter) collected.push(record)\n return reduceRecords(collected, spec as unknown as ReduceSpec) as unknown as ReduceResult<typeof spec>\n },\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCO,SAAS,aAA6B;AAC3C,SAAO;AAAA,IACL,UAAU,gBAAgB,MAAM,WAAW;AACzC,aAAO,IAAI,UAAU,gBAAgB,MAA+B,SAAS;AAAA,IAC/E;AAAA,IACA,QAAQ,gBAAgB,OAAO,WAAW,mBAAmB,KAAK;AAChE,aAAO,IAAI,aAAa,gBAAgB,OAAO,WAAW,mBAAmB,GAAG;AAAA,IAClF;AAAA,IACA,SAAS,gBAAgB,QAAQ,WAAW,KAAK;AAC/C,aAAO,IAAI,cAAc,gBAAgB,QAAQ,WAAW,QAAW,GAAG;AAAA,IAC5E;AAAA,IACA,MAAM,cAAc,MAAM,MAAM;AAC9B,YAAM,YAAuB,CAAC;AAC9B,uBAAiB,UAAU,KAAM,WAAU,KAAK,MAAM;AACtD,aAAO,cAAc,WAAW,IAA6B;AAAA,IAC/D;AAAA,EACF;AACF;","names":[]}
@@ -2,17 +2,17 @@ import {
2
2
  persistClassifiedMarker,
3
3
  persistSatelliteMarker,
4
4
  persistSchemaIfNeeded
5
- } from "./chunk-YXZNGHID.js";
5
+ } from "./chunk-H5GMROCB.js";
6
6
  import "./chunk-SEU6QHH4.js";
7
- import "./chunk-S4YERMGJ.js";
8
- import "./chunk-GEEJPID6.js";
9
- import "./chunk-SC4JLMZI.js";
7
+ import "./chunk-32467U5J.js";
8
+ import "./chunk-MMVQ3SUO.js";
9
+ import "./chunk-KCZAFDP5.js";
10
10
  import "./chunk-5WLDZZ6S.js";
11
11
  import "./chunk-5HSSTOOG.js";
12
12
  import "./chunk-G4MFQXYX.js";
13
13
  import "./chunk-LP7BEXCT.js";
14
14
  import "./chunk-7U6AB7DZ.js";
15
- import "./chunk-YTW6ZIPD.js";
15
+ import "./chunk-DOZFU7OZ.js";
16
16
  import "./chunk-6SYOHUHM.js";
17
17
  import "./chunk-PZ5AY32C.js";
18
18
  export {
@@ -20,4 +20,4 @@ export {
20
20
  persistSatelliteMarker,
21
21
  persistSchemaIfNeeded
22
22
  };
23
- //# sourceMappingURL=register-HB4TQZSV.js.map
23
+ //# sourceMappingURL=register-CEX7R7NE.js.map
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  MaterializedViewRegistry,
3
3
  wrapDbWithPredicates
4
- } from "./chunk-TNATF3HB.js";
5
- import "./chunk-GEEJPID6.js";
6
- import "./chunk-SC4JLMZI.js";
4
+ } from "./chunk-ZGEFBDPR.js";
5
+ import "./chunk-MMVQ3SUO.js";
6
+ import "./chunk-KCZAFDP5.js";
7
7
  import "./chunk-5WLDZZ6S.js";
8
8
  import "./chunk-5HSSTOOG.js";
9
9
  import "./chunk-G4MFQXYX.js";
10
10
  import "./chunk-LP7BEXCT.js";
11
11
  import "./chunk-7U6AB7DZ.js";
12
- import "./chunk-YTW6ZIPD.js";
12
+ import "./chunk-DOZFU7OZ.js";
13
13
  import "./chunk-6SYOHUHM.js";
14
14
  import "./chunk-PZ5AY32C.js";
15
15
  export {
16
16
  MaterializedViewRegistry,
17
17
  wrapDbWithPredicates
18
18
  };
19
- //# sourceMappingURL=registry-6BMBFEXT.js.map
19
+ //# sourceMappingURL=registry-DIKMRXUC.js.map
@@ -2,17 +2,17 @@ import {
2
2
  DerivationRegistry
3
3
  } from "./chunk-2PDBYF2O.js";
4
4
  import "./chunk-Z4D3YGAB.js";
5
- import "./chunk-GEEJPID6.js";
6
- import "./chunk-SC4JLMZI.js";
5
+ import "./chunk-MMVQ3SUO.js";
6
+ import "./chunk-KCZAFDP5.js";
7
7
  import "./chunk-5WLDZZ6S.js";
8
8
  import "./chunk-5HSSTOOG.js";
9
9
  import "./chunk-G4MFQXYX.js";
10
10
  import "./chunk-LP7BEXCT.js";
11
11
  import "./chunk-7U6AB7DZ.js";
12
- import "./chunk-YTW6ZIPD.js";
12
+ import "./chunk-DOZFU7OZ.js";
13
13
  import "./chunk-6SYOHUHM.js";
14
14
  import "./chunk-PZ5AY32C.js";
15
15
  export {
16
16
  DerivationRegistry
17
17
  };
18
- //# sourceMappingURL=registry-JOFO7RAH.js.map
18
+ //# sourceMappingURL=registry-EWIB5NTI.js.map
@@ -5,19 +5,19 @@ import {
5
5
  listWithdrawalRequests,
6
6
  rejectWithdrawal,
7
7
  requestWithdrawal
8
- } from "./chunk-3OWYOECI.js";
9
- import "./chunk-K4BWPNJO.js";
10
- import "./chunk-OMSKGLYA.js";
11
- import "./chunk-YCAJDK4O.js";
12
- import "./chunk-YFFEF6HR.js";
13
- import "./chunk-GEEJPID6.js";
14
- import "./chunk-SC4JLMZI.js";
8
+ } from "./chunk-XY6MNSAF.js";
9
+ import "./chunk-MLCTPWSO.js";
10
+ import "./chunk-WWBC4KLB.js";
11
+ import "./chunk-E7FSBI6I.js";
12
+ import "./chunk-ZHZ4PET5.js";
13
+ import "./chunk-MMVQ3SUO.js";
14
+ import "./chunk-KCZAFDP5.js";
15
15
  import "./chunk-5WLDZZ6S.js";
16
16
  import "./chunk-5HSSTOOG.js";
17
17
  import "./chunk-G4MFQXYX.js";
18
18
  import "./chunk-LP7BEXCT.js";
19
19
  import "./chunk-7U6AB7DZ.js";
20
- import "./chunk-YTW6ZIPD.js";
20
+ import "./chunk-DOZFU7OZ.js";
21
21
  import "./chunk-6SYOHUHM.js";
22
22
  import "./chunk-PZ5AY32C.js";
23
23
  export {
@@ -28,4 +28,4 @@ export {
28
28
  rejectWithdrawal,
29
29
  requestWithdrawal
30
30
  };
31
- //# sourceMappingURL=request-withdrawal-UN3TRHWI.js.map
31
+ //# sourceMappingURL=request-withdrawal-AAG57QO4.js.map
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  isTombstone
3
- } from "./chunk-SC4JLMZI.js";
3
+ } from "./chunk-KCZAFDP5.js";
4
4
  import {
5
5
  dualReadSealedSlot
6
6
  } from "./chunk-5HSSTOOG.js";
7
7
  import "./chunk-7U6AB7DZ.js";
8
- import "./chunk-YTW6ZIPD.js";
8
+ import "./chunk-DOZFU7OZ.js";
9
9
  import {
10
10
  ClassifiedRevealError
11
11
  } from "./chunk-6SYOHUHM.js";
@@ -35,4 +35,4 @@ async function revealSealedField(ctx, id, field) {
35
35
  export {
36
36
  revealSealedField
37
37
  };
38
- //# sourceMappingURL=reveal-VWXRV2XU.js.map
38
+ //# sourceMappingURL=reveal-7OOT5XPD.js.map
@@ -3,16 +3,16 @@ import {
3
3
  publishRevocationListCore,
4
4
  revokeDocCore,
5
5
  unrevokeDocCore
6
- } from "./chunk-UTEATWHO.js";
7
- import "./chunk-QZJEYZ4I.js";
8
- import "./chunk-GEEJPID6.js";
9
- import "./chunk-SC4JLMZI.js";
6
+ } from "./chunk-VNJMLOQS.js";
7
+ import "./chunk-JGOKAZNB.js";
8
+ import "./chunk-MMVQ3SUO.js";
9
+ import "./chunk-KCZAFDP5.js";
10
10
  import "./chunk-5WLDZZ6S.js";
11
11
  import "./chunk-5HSSTOOG.js";
12
12
  import "./chunk-G4MFQXYX.js";
13
13
  import "./chunk-LP7BEXCT.js";
14
14
  import "./chunk-7U6AB7DZ.js";
15
- import "./chunk-YTW6ZIPD.js";
15
+ import "./chunk-DOZFU7OZ.js";
16
16
  import "./chunk-6SYOHUHM.js";
17
17
  import "./chunk-PZ5AY32C.js";
18
18
  export {
@@ -21,4 +21,4 @@ export {
21
21
  revokeDocCore,
22
22
  unrevokeDocCore
23
23
  };
24
- //# sourceMappingURL=revoke-OLO2OVR7.js.map
24
+ //# sourceMappingURL=revoke-U5LCIJMF.js.map
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  NO_SEALED_RECORD
3
3
  } from "../chunk-7LP7FFJ2.js";
4
- import "../chunk-GEEJPID6.js";
5
- import "../chunk-SC4JLMZI.js";
4
+ import "../chunk-MMVQ3SUO.js";
5
+ import "../chunk-KCZAFDP5.js";
6
6
  import "../chunk-5WLDZZ6S.js";
7
7
  import "../chunk-5HSSTOOG.js";
8
8
  import "../chunk-G4MFQXYX.js";
@@ -12,7 +12,7 @@ import {
12
12
  decrypt,
13
13
  importCek
14
14
  } from "../chunk-7U6AB7DZ.js";
15
- import "../chunk-YTW6ZIPD.js";
15
+ import "../chunk-DOZFU7OZ.js";
16
16
  import {
17
17
  SealedRecordExpiredError,
18
18
  SealedRecordMismatchError,
@@ -24,15 +24,15 @@ import "../chunk-PZ5AY32C.js";
24
24
  function withSealedRecord() {
25
25
  return {
26
26
  async sealRecordToHost(ctx, collection, id, hostSealer, opts) {
27
- const { sealRecordToHost } = await import("../enclave-I5H3GINP.js");
27
+ const { sealRecordToHost } = await import("../enclave-ZA7C3H2L.js");
28
28
  return sealRecordToHost(ctx, collection, id, hostSealer, opts);
29
29
  },
30
30
  async revokeSealedRecord(ctx, collection, id, pid, opts) {
31
- const { revokeSealedRecord } = await import("../enclave-I5H3GINP.js");
31
+ const { revokeSealedRecord } = await import("../enclave-ZA7C3H2L.js");
32
32
  return revokeSealedRecord(ctx, collection, id, pid, opts);
33
33
  },
34
34
  async rotateRecordCek(ctx, collection, id) {
35
- const { rotateRecordCek } = await import("../enclave-I5H3GINP.js");
35
+ const { rotateRecordCek } = await import("../enclave-ZA7C3H2L.js");
36
36
  return rotateRecordCek(ctx, collection, id);
37
37
  }
38
38
  };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  BROKER_COLLECTION,
3
3
  ensureCollectionDEK
4
- } from "./chunk-3LJYHE7S.js";
5
- import "./chunk-6RPWILRH.js";
4
+ } from "./chunk-ZDFU34XY.js";
5
+ import "./chunk-7IQWHYL2.js";
6
6
  import {
7
7
  computeBrokerProof,
8
8
  deriveBrokerProofBits,
9
9
  openEnvelopeJson,
10
10
  writeEnvelopeBody
11
- } from "./chunk-GEEJPID6.js";
12
- import "./chunk-SC4JLMZI.js";
11
+ } from "./chunk-MMVQ3SUO.js";
12
+ import "./chunk-KCZAFDP5.js";
13
13
  import "./chunk-5WLDZZ6S.js";
14
14
  import "./chunk-5HSSTOOG.js";
15
15
  import "./chunk-G4MFQXYX.js";
@@ -20,7 +20,7 @@ import {
20
20
  } from "./chunk-7U6AB7DZ.js";
21
21
  import {
22
22
  NOYDB_FORMAT_VERSION
23
- } from "./chunk-YTW6ZIPD.js";
23
+ } from "./chunk-DOZFU7OZ.js";
24
24
  import {
25
25
  BrokerEnrolmentError,
26
26
  BrokerProofError,
@@ -228,4 +228,4 @@ export {
228
228
  mintStoreCredentials,
229
229
  rotateSeed
230
230
  };
231
- //# sourceMappingURL=seed-CDBFOTIK.js.map
231
+ //# sourceMappingURL=seed-GVOI6QP6.js.map
@@ -13,15 +13,18 @@ import {
13
13
  revokeSession,
14
14
  validateSessionPolicy
15
15
  } from "../chunk-BAAUFCJK.js";
16
+ import {
17
+ NO_SESSION
18
+ } from "../chunk-VKQCVU2Z.js";
16
19
  import "../chunk-ZJADGNYF.js";
17
- import "../chunk-GEEJPID6.js";
18
- import "../chunk-SC4JLMZI.js";
20
+ import "../chunk-MMVQ3SUO.js";
21
+ import "../chunk-KCZAFDP5.js";
19
22
  import "../chunk-5WLDZZ6S.js";
20
23
  import "../chunk-5HSSTOOG.js";
21
24
  import "../chunk-G4MFQXYX.js";
22
25
  import "../chunk-LP7BEXCT.js";
23
26
  import "../chunk-7U6AB7DZ.js";
24
- import "../chunk-YTW6ZIPD.js";
27
+ import "../chunk-DOZFU7OZ.js";
25
28
  import {
26
29
  SessionExpiredError,
27
30
  SessionNotFoundError,
@@ -38,6 +41,7 @@ function withSession() {
38
41
  };
39
42
  }
40
43
  export {
44
+ NO_SESSION,
41
45
  PolicyEnforcer,
42
46
  SessionExpiredError,
43
47
  SessionNotFoundError,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/with-party/session/active.ts"],"sourcesContent":["/**\n * Active session strategy — `withSession()` returns the real\n * implementation that wires `SessionPolicy` validation, the\n * `PolicyEnforcer`, and the global session-token registry into the\n * Noydb lifecycle.\n *\n * Consumers opt in by:\n *\n * ```ts\n * import { createNoydb } from '@noy-db/hub'\n * import { withSession } from '@noy-db/hub/session'\n *\n * const db = await createNoydb({\n * store: ...,\n * user: ...,\n * sessionPolicy: { idleTimeoutMs: 15 * 60_000 },\n * sessionStrategy: withSession(),\n * })\n * ```\n *\n * The factory delegates to the existing `session-policy.ts` and\n * `session.ts` modules. Splitting the import chain through this file\n * is what lets tsup tree-shake the ~495 LOC of policy + token code\n * out of the default bundle when no `withSession()` import is\n * present.\n *\n * Note: dev-unlock (`devUnlock`, `cancelDevUnlock`) is a separate\n * named import from `@noy-db/hub` and tree-shakes independently —\n * apps that don't import it never include it.\n *\n * @public\n */\n\nimport type { SessionStrategy } from './strategy.js'\nimport { createEnforcer, validateSessionPolicy } from './session-policy.js'\nimport { revokeAllSessions } from './session.js'\n\nexport function withSession(): SessionStrategy {\n return {\n validateSessionPolicy,\n createEnforcer,\n revokeAllSessions,\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCO,SAAS,cAA+B;AAC7C,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/with-party/session/active.ts"],"sourcesContent":["/**\n * Active session strategy — `withSession()` returns the real\n * implementation that wires `SessionPolicy` validation, the\n * `PolicyEnforcer`, and the global session-token registry into the\n * Noydb lifecycle.\n *\n * Consumers opt in by:\n *\n * ```ts\n * import { createNoydb } from '@noy-db/hub'\n * import { withSession } from '@noy-db/hub/session'\n *\n * const db = await createNoydb({\n * store: ...,\n * user: ...,\n * sessionPolicy: { idleTimeoutMs: 15 * 60_000 },\n * sessionStrategy: withSession(),\n * })\n * ```\n *\n * The factory delegates to the existing `session-policy.ts` and\n * `session.ts` modules. Splitting the import chain through this file\n * is what lets tsup tree-shake the ~495 LOC of policy + token code\n * out of the default bundle when no `withSession()` import is\n * present.\n *\n * Note: dev-unlock (`devUnlock`, `cancelDevUnlock`) is a separate\n * named import from `@noy-db/hub` and tree-shakes independently —\n * apps that don't import it never include it.\n *\n * @public\n */\n\nimport type { SessionStrategy } from './strategy.js'\nimport { createEnforcer, validateSessionPolicy } from './session-policy.js'\nimport { revokeAllSessions } from './session.js'\n\nexport function withSession(): SessionStrategy {\n return {\n validateSessionPolicy,\n createEnforcer,\n revokeAllSessions,\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCO,SAAS,cAA+B;AAC7C,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;","names":[]}
@@ -2,6 +2,9 @@ import {
2
2
  CollectionFrame,
3
3
  VaultFrame
4
4
  } from "../chunk-ONB627HU.js";
5
+ import {
6
+ NO_SHADOW
7
+ } from "../chunk-SMY5X46Z.js";
5
8
  import "../chunk-6SYOHUHM.js";
6
9
  import "../chunk-PZ5AY32C.js";
7
10
 
@@ -15,6 +18,7 @@ function withShadow() {
15
18
  }
16
19
  export {
17
20
  CollectionFrame,
21
+ NO_SHADOW,
18
22
  VaultFrame,
19
23
  withShadow
20
24
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/with-fork/shadow/active.ts"],"sourcesContent":["/**\n * Active shadow strategy — the only place `VaultFrame` is constructed.\n * Only reachable through `@noy-db/hub/shadow`.\n */\n\nimport { VaultFrame } from './vault-frame.js'\nimport type { ShadowStrategy } from './strategy.js'\nimport type { Vault } from '../../kernel/vault.js'\n\nexport function withShadow(): ShadowStrategy {\n return {\n buildFrame(vault) { return new VaultFrame(vault as Vault) },\n }\n}\n"],"mappings":";;;;;;;;AASO,SAAS,aAA6B;AAC3C,SAAO;AAAA,IACL,WAAW,OAAO;AAAE,aAAO,IAAI,WAAW,KAAc;AAAA,IAAE;AAAA,EAC5D;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/with-fork/shadow/active.ts"],"sourcesContent":["/**\n * Active shadow strategy — the only place `VaultFrame` is constructed.\n * Only reachable through `@noy-db/hub/shadow`.\n */\n\nimport { VaultFrame } from './vault-frame.js'\nimport type { ShadowStrategy } from './strategy.js'\nimport type { Vault } from '../../kernel/vault.js'\n\nexport function withShadow(): ShadowStrategy {\n return {\n buildFrame(vault) { return new VaultFrame(vault as Vault) },\n }\n}\n"],"mappings":";;;;;;;;;;;AASO,SAAS,aAA6B;AAC3C,SAAO;AAAA,IACL,WAAW,OAAO;AAAE,aAAO,IAAI,WAAW,KAAc;AAAA,IAAE;AAAA,EAC5D;AACF;","names":[]}