@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
@@ -2,12 +2,13 @@ import {
2
2
  COMPOSITE_DELIMITER,
3
3
  IDX_PREFIX,
4
4
  LazyQuery,
5
+ NO_INDEXING,
5
6
  PersistedCollectionIndex,
6
7
  compositeKey,
7
8
  decodeIdxId,
8
9
  encodeIdxId,
9
10
  isIdxId
10
- } from "../chunk-BY5YBSXA.js";
11
+ } from "../chunk-GQT6J4FJ.js";
11
12
  import {
12
13
  CollectionIndexes
13
14
  } from "../chunk-KPZS5QAQ.js";
@@ -68,6 +69,7 @@ export {
68
69
  CollectionIndexes,
69
70
  IDX_PREFIX,
70
71
  LazyQuery,
72
+ NO_INDEXING,
71
73
  PersistedCollectionIndex,
72
74
  compositeKey,
73
75
  decodeIdxId,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/with-lookup/indexing/active.ts"],"sourcesContent":["/**\n * Active indexing strategy factory. Calling `withIndexing()` returns\n * an `IndexStrategy` whose `createState` constructs a real\n * `CollectionIndexes` (eager) or `PersistedCollectionIndex` (lazy)\n * per Collection, depending on the collection's `prefetch` mode and\n * its declared `IndexDef[]`.\n *\n * This module is only reachable through the `@noy-db/hub/indexing`\n * subpath — a consumer that never imports the subpath ships none of\n * this (ESM tree-shaking + hub's `\"sideEffects\": false`).\n */\n\nimport { CollectionIndexes } from './eager-indexes.js'\nimport type { IndexDef } from './eager-indexes.js'\nimport { PersistedCollectionIndex } from './persisted-indexes.js'\nimport type { IndexStrategy, IndexState } from './strategy.js'\n\n/**\n * Build the default indexing strategy. Pass into\n * `createNoydb({ indexStrategy: withIndexing() })` to light up the\n * eager-mode `==/in` fast-path on `.query()` and the full lazy-mode\n * `.lazyQuery()` + rebuild / reconcile / auto-reconcile surface.\n *\n * @example\n * ```ts\n * import { createNoydb } from '@noy-db/hub'\n * import { withIndexing } from '@noy-db/hub/indexing'\n *\n * const db = await createNoydb({\n * store, user, secret,\n * indexStrategy: withIndexing(),\n * })\n * ```\n */\nexport function withIndexing(): IndexStrategy {\n return {\n createState({ defs, lazy }) {\n if (lazy) {\n const persisted = new PersistedCollectionIndex()\n declareAll(persisted, defs)\n return makeLazyState(persisted)\n }\n const eager = new CollectionIndexes()\n for (const def of defs) {\n if (typeof def === 'string') {\n eager.declare(def)\n } else if (Array.isArray(def)) {\n for (const f of def as readonly string[]) eager.declare(f)\n } else {\n for (const f of (def as { fields: readonly string[] }).fields) eager.declare(f)\n }\n }\n return makeEagerState(eager)\n },\n }\n}\n\nfunction declareAll(persisted: PersistedCollectionIndex, defs: readonly IndexDef[]): void {\n for (const def of defs) {\n if (typeof def === 'string') {\n persisted.declare(def)\n } else {\n const fields = Array.isArray(def) ? (def as readonly string[]) : (def as { fields: readonly string[] }).fields\n // #698: decompose a composite into its component single-field indexes\n // (like the eager branch above), so a composite-only declaration still\n // provides the single-field driver the #696 Via-covered fall-through\n // and single-field queries need. The composite mirror is kept for the\n // multi-field fast path.\n for (const f of fields) persisted.declare(f)\n persisted.declareComposite(fields)\n }\n }\n}\n\nfunction makeEagerState(eager: CollectionIndexes): IndexState {\n return {\n isEnabled: true,\n getEagerIndexes: () => eager,\n getPersistedIndexes: () => null,\n }\n}\n\nfunction makeLazyState(persisted: PersistedCollectionIndex): IndexState {\n return {\n isEnabled: true,\n getEagerIndexes: () => null,\n getPersistedIndexes: () => persisted,\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAkCO,SAAS,eAA8B;AAC5C,SAAO;AAAA,IACL,YAAY,EAAE,MAAM,KAAK,GAAG;AAC1B,UAAI,MAAM;AACR,cAAM,YAAY,IAAI,yBAAyB;AAC/C,mBAAW,WAAW,IAAI;AAC1B,eAAO,cAAc,SAAS;AAAA,MAChC;AACA,YAAM,QAAQ,IAAI,kBAAkB;AACpC,iBAAW,OAAO,MAAM;AACtB,YAAI,OAAO,QAAQ,UAAU;AAC3B,gBAAM,QAAQ,GAAG;AAAA,QACnB,WAAW,MAAM,QAAQ,GAAG,GAAG;AAC7B,qBAAW,KAAK,IAA0B,OAAM,QAAQ,CAAC;AAAA,QAC3D,OAAO;AACL,qBAAW,KAAM,IAAsC,OAAQ,OAAM,QAAQ,CAAC;AAAA,QAChF;AAAA,MACF;AACA,aAAO,eAAe,KAAK;AAAA,IAC7B;AAAA,EACF;AACF;AAEA,SAAS,WAAW,WAAqC,MAAiC;AACxF,aAAW,OAAO,MAAM;AACtB,QAAI,OAAO,QAAQ,UAAU;AAC3B,gBAAU,QAAQ,GAAG;AAAA,IACvB,OAAO;AACL,YAAM,SAAS,MAAM,QAAQ,GAAG,IAAK,MAA6B,IAAsC;AAMxG,iBAAW,KAAK,OAAQ,WAAU,QAAQ,CAAC;AAC3C,gBAAU,iBAAiB,MAAM;AAAA,IACnC;AAAA,EACF;AACF;AAEA,SAAS,eAAe,OAAsC;AAC5D,SAAO;AAAA,IACL,WAAW;AAAA,IACX,iBAAiB,MAAM;AAAA,IACvB,qBAAqB,MAAM;AAAA,EAC7B;AACF;AAEA,SAAS,cAAc,WAAiD;AACtE,SAAO;AAAA,IACL,WAAW;AAAA,IACX,iBAAiB,MAAM;AAAA,IACvB,qBAAqB,MAAM;AAAA,EAC7B;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/with-lookup/indexing/active.ts"],"sourcesContent":["/**\n * Active indexing strategy factory. Calling `withIndexing()` returns\n * an `IndexStrategy` whose `createState` constructs a real\n * `CollectionIndexes` (eager) or `PersistedCollectionIndex` (lazy)\n * per Collection, depending on the collection's `prefetch` mode and\n * its declared `IndexDef[]`.\n *\n * This module is only reachable through the `@noy-db/hub/indexing`\n * subpath — a consumer that never imports the subpath ships none of\n * this (ESM tree-shaking + hub's `\"sideEffects\": false`).\n */\n\nimport { CollectionIndexes } from './eager-indexes.js'\nimport type { IndexDef } from './eager-indexes.js'\nimport { PersistedCollectionIndex } from './persisted-indexes.js'\nimport type { IndexStrategy, IndexState } from './strategy.js'\n\n/**\n * Build the default indexing strategy. Pass into\n * `createNoydb({ indexStrategy: withIndexing() })` to light up the\n * eager-mode `==/in` fast-path on `.query()` and the full lazy-mode\n * `.lazyQuery()` + rebuild / reconcile / auto-reconcile surface.\n *\n * @example\n * ```ts\n * import { createNoydb } from '@noy-db/hub'\n * import { withIndexing } from '@noy-db/hub/indexing'\n *\n * const db = await createNoydb({\n * store, user, secret,\n * indexStrategy: withIndexing(),\n * })\n * ```\n */\nexport function withIndexing(): IndexStrategy {\n return {\n createState({ defs, lazy }) {\n if (lazy) {\n const persisted = new PersistedCollectionIndex()\n declareAll(persisted, defs)\n return makeLazyState(persisted)\n }\n const eager = new CollectionIndexes()\n for (const def of defs) {\n if (typeof def === 'string') {\n eager.declare(def)\n } else if (Array.isArray(def)) {\n for (const f of def as readonly string[]) eager.declare(f)\n } else {\n for (const f of (def as { fields: readonly string[] }).fields) eager.declare(f)\n }\n }\n return makeEagerState(eager)\n },\n }\n}\n\nfunction declareAll(persisted: PersistedCollectionIndex, defs: readonly IndexDef[]): void {\n for (const def of defs) {\n if (typeof def === 'string') {\n persisted.declare(def)\n } else {\n const fields = Array.isArray(def) ? (def as readonly string[]) : (def as { fields: readonly string[] }).fields\n // #698: decompose a composite into its component single-field indexes\n // (like the eager branch above), so a composite-only declaration still\n // provides the single-field driver the #696 Via-covered fall-through\n // and single-field queries need. The composite mirror is kept for the\n // multi-field fast path.\n for (const f of fields) persisted.declare(f)\n persisted.declareComposite(fields)\n }\n }\n}\n\nfunction makeEagerState(eager: CollectionIndexes): IndexState {\n return {\n isEnabled: true,\n getEagerIndexes: () => eager,\n getPersistedIndexes: () => null,\n }\n}\n\nfunction makeLazyState(persisted: PersistedCollectionIndex): IndexState {\n return {\n isEnabled: true,\n getEagerIndexes: () => null,\n getPersistedIndexes: () => persisted,\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAkCO,SAAS,eAA8B;AAC5C,SAAO;AAAA,IACL,YAAY,EAAE,MAAM,KAAK,GAAG;AAC1B,UAAI,MAAM;AACR,cAAM,YAAY,IAAI,yBAAyB;AAC/C,mBAAW,WAAW,IAAI;AAC1B,eAAO,cAAc,SAAS;AAAA,MAChC;AACA,YAAM,QAAQ,IAAI,kBAAkB;AACpC,iBAAW,OAAO,MAAM;AACtB,YAAI,OAAO,QAAQ,UAAU;AAC3B,gBAAM,QAAQ,GAAG;AAAA,QACnB,WAAW,MAAM,QAAQ,GAAG,GAAG;AAC7B,qBAAW,KAAK,IAA0B,OAAM,QAAQ,CAAC;AAAA,QAC3D,OAAO;AACL,qBAAW,KAAM,IAAsC,OAAQ,OAAM,QAAQ,CAAC;AAAA,QAChF;AAAA,MACF;AACA,aAAO,eAAe,KAAK;AAAA,IAC7B;AAAA,EACF;AACF;AAEA,SAAS,WAAW,WAAqC,MAAiC;AACxF,aAAW,OAAO,MAAM;AACtB,QAAI,OAAO,QAAQ,UAAU;AAC3B,gBAAU,QAAQ,GAAG;AAAA,IACvB,OAAO;AACL,YAAM,SAAS,MAAM,QAAQ,GAAG,IAAK,MAA6B,IAAsC;AAMxG,iBAAW,KAAK,OAAQ,WAAU,QAAQ,CAAC;AAC3C,gBAAU,iBAAiB,MAAM;AAAA,IACnC;AAAA,EACF;AACF;AAEA,SAAS,eAAe,OAAsC;AAC5D,SAAO;AAAA,IACL,WAAW;AAAA,IACX,iBAAiB,MAAM;AAAA,IACvB,qBAAqB,MAAM;AAAA,EAC7B;AACF;AAEA,SAAS,cAAc,WAAiD;AACtE,SAAO;AAAA,IACL,WAAW;AAAA,IACX,iBAAiB,MAAM;AAAA,IACvB,qBAAqB,MAAM;AAAA,EAC7B;AACF;","names":[]}
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  issueAttestationCore
3
- } from "./chunk-YXIVUWDU.js";
4
- import "./chunk-QZJEYZ4I.js";
3
+ } from "./chunk-HXVRRJBD.js";
4
+ import "./chunk-JGOKAZNB.js";
5
5
  import "./chunk-ZJADGNYF.js";
6
- import "./chunk-GEEJPID6.js";
7
- import "./chunk-SC4JLMZI.js";
6
+ import "./chunk-MMVQ3SUO.js";
7
+ import "./chunk-KCZAFDP5.js";
8
8
  import "./chunk-5WLDZZ6S.js";
9
9
  import "./chunk-5HSSTOOG.js";
10
10
  import "./chunk-G4MFQXYX.js";
11
11
  import "./chunk-LP7BEXCT.js";
12
12
  import "./chunk-7U6AB7DZ.js";
13
- import "./chunk-YTW6ZIPD.js";
13
+ import "./chunk-DOZFU7OZ.js";
14
14
  import "./chunk-6SYOHUHM.js";
15
15
  import "./chunk-PZ5AY32C.js";
16
16
  export {
17
17
  issueAttestationCore
18
18
  };
19
- //# sourceMappingURL=issue-F76PAGIR.js.map
19
+ //# sourceMappingURL=issue-5X3SMCF4.js.map
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Memoized module loader for the S4 lazy-import seam (#846c).
3
+ *
4
+ * The spine and the services reach optional machinery through a dynamic
5
+ * `import()` — that is what keeps a service out of the floor bundle for
6
+ * consumers who never opt into it, and `check-architecture`'s `port-layering`
7
+ * rule requires it for any spine→service edge. The pattern stays; this only
8
+ * removes the ceremony that grew around it.
9
+ *
10
+ * Call sites had each re-invented the same shape: a `let mod = null` cache
11
+ * declared *inside* the function (so it cached for one invocation and no
12
+ * longer), plus in several places an `as { … }` cast, because destructuring a
13
+ * dynamic import inline gave up the module's type.
14
+ *
15
+ * ```ts
16
+ * const loadExecutor = lazy(() => import('./executor.js'))
17
+ * // …
18
+ * const { DerivationExecutor } = await loadExecutor()
19
+ * ```
20
+ *
21
+ * Note this is about clarity, not speed: the ES module system already caches a
22
+ * resolved module, so the win is one named binding per module instead of a
23
+ * hand-rolled cache and a cast at every call site.
24
+ *
25
+ * Concurrent first calls share a single in-flight promise rather than each
26
+ * starting their own `import()`.
27
+ *
28
+ * @internal
29
+ */
30
+ export declare function lazy<T>(load: () => Promise<T>): () => Promise<T>;
@@ -1,3 +1,4 @@
1
+ import type { RotateResult } from '../with-party/team/keyring.js';
1
2
  import type { NoydbOptions, NoydbEventMap, GrantOptions, RevokeOptions, UpdateUserOptions, UserInfo, PushResult, PullResult, PushOptions, PullOptions, SyncStatus, NoydbStore, AccessibleVault, ListAccessibleVaultsOptions, QueryAcrossOptions, QueryAcrossResult, TranslatorAuditEntry, WriteConflict, UserApiFactory, ActiveTier, FactorProofBundle, GateName, VaultPolicy } from './types.js';
2
3
  import type { SecretPolicy } from './validation.js';
3
4
  import { type CoordinationProvider } from '../port/by/default-provider.js';
@@ -264,23 +265,33 @@ export declare class Noydb {
264
265
  /**
265
266
  * Rotate the DEKs for the given collections in a vault.
266
267
  *
267
- * Generates fresh DEKs, re-encrypts every record in each collection,
268
- * and re-wraps the new DEKs into every remaining user's keyring. The
269
- * old DEKs become unreachable — useful as a defense-in-depth measure
270
- * after a suspected key leak, or as the scheduled half of a
271
- * key-rotation policy.
268
+ * Generates fresh DEKs and re-encrypts every record in each collection.
269
+ * The old DEKs become unreachable — useful as a defense-in-depth measure
270
+ * after a suspected key leak, or as the scheduled half of a key-rotation
271
+ * policy.
272
272
  *
273
- * Unlike `revoke({ rotateKeys: true })`, this call does NOT remove
274
- * any users — every current member keeps access, but with fresh
275
- * keys. This is the "just rotate" path; the "revoke and rotate"
276
- * path still lives in `revoke()`.
273
+ * ## Other members LOSE access to the rotated collections (#854)
274
+ *
275
+ * A member's DEKs are wrapped under that member's KEK, and a KEK derives
276
+ * only from that member's secret. The caller cannot derive anyone else's
277
+ * KEK, so re-wrapping a fresh DEK for them is impossible — that is the
278
+ * zero-knowledge property working as designed. Rotation therefore DROPS
279
+ * the rotated collections from every other member's keyring.
280
+ *
281
+ * The returned {@link RotateResult.needsRegrant} names each (member,
282
+ * collection) pair that was dropped. Re-run `grant()` for those pairs, or
283
+ * they stay locked out.
284
+ *
285
+ * Unlike `revoke({ rotateKeys: true })`, this call does not REMOVE any
286
+ * user from the vault — they keep membership and their other collections.
287
+ * This is the "just rotate" path; "revoke and rotate" lives in `revoke()`.
277
288
  *
278
289
  * Exposed on Noydb (rather than only on the lower-level keyring
279
290
  * module) so CLI and admin tooling can trigger rotation without
280
291
  * reaching into internals. See `noy-db rotate` for the CLI wrapper.
281
292
  * Opt-in (#267): throws {@link TeamNotEnabledError} without `withTeam()`.
282
293
  */
283
- rotate(vault: string, collections: string[]): Promise<void>;
294
+ rotate(vault: string, collections: string[]): Promise<RotateResult>;
284
295
  /** List all users with access to a vault. */
285
296
  listUsers(vault: string): Promise<UserInfo[]>;
286
297
  /**
@@ -9,10 +9,10 @@ import type { Clause, Operator } from './predicate.js';
9
9
  import type { CollectionIndexes } from '../../with-lookup/indexing/eager-indexes.js';
10
10
  import type { JoinContext, JoinLeg, JoinStrategy } from './join.js';
11
11
  import type { LiveQuery } from './live.js';
12
- import type { AggregateSpec, AggregateResult, Aggregation } from '../../with-lookup/aggregate/aggregation.js';
13
- import type { ReducerBuilder } from '../../with-lookup/aggregate/reducers.js';
14
- import type { GroupedQuery, GroupedQueryN } from '../../with-lookup/aggregate/groupby.js';
15
- import { type AggregateStrategy } from '../../with-lookup/aggregate/strategy.js';
12
+ import type { ReduceSpec, ReduceResult, Reduction } from '../../with-lookup/reduce/reduction.js';
13
+ import type { ReducerBuilder } from '../../with-lookup/reduce/reducers.js';
14
+ import type { GroupedQuery, GroupedQueryN } from '../../with-lookup/reduce/groupby.js';
15
+ import { type ReduceStrategy } from '../../with-lookup/reduce/strategy.js';
16
16
  import type { ViaPipeline } from '../via/pipeline.js';
17
17
  export interface OrderBy {
18
18
  readonly field: string;
@@ -114,9 +114,9 @@ export declare class Query<T, S extends keyof T = never, Q extends keyof T & str
114
114
  private readonly source;
115
115
  private readonly plan;
116
116
  private readonly joinContext;
117
- private readonly aggregateStrategy;
117
+ private readonly reduceStrategy;
118
118
  private readonly predicates;
119
- constructor(source: QuerySource<T>, plan?: QueryPlan, joinContext?: JoinContext, aggregateStrategy?: AggregateStrategy, predicates?: ReadonlyMap<string, DeclaredPredicate>);
119
+ constructor(source: QuerySource<T>, plan?: QueryPlan, joinContext?: JoinContext, reduceStrategy?: ReduceStrategy, predicates?: ReadonlyMap<string, DeclaredPredicate>);
120
120
  /**
121
121
  * @internal — accessor for the materialized-view dependency
122
122
  * analyzer. Not part of the public API; consumers should use the
@@ -353,9 +353,9 @@ export declare class Query<T, S extends keyof T = never, Q extends keyof T & str
353
353
  * .run()
354
354
  * ```
355
355
  *
356
- * Returns an `Aggregation<R>` wrapper with two terminals:
356
+ * Returns an `Reduction<R>` wrapper with two terminals:
357
357
  * - `.run(): R` — synchronous one-shot reduction
358
- * - `.live(): LiveAggregation<R>` — reactive primitive that
358
+ * - `.live(): LiveReduction<R>` — reactive primitive that
359
359
  * re-runs the reduction whenever the source notifies of a
360
360
  * change. Always call `live.stop()` when finished.
361
361
  *
@@ -391,8 +391,8 @@ export declare class Query<T, S extends keyof T = never, Q extends keyof T & str
391
391
  * aggregates over a collection with sensitive fields.
392
392
  *
393
393
  */
394
- aggregate<Spec extends AggregateSpec>(spec: Spec): Aggregation<AggregateResult<Spec>>;
395
- aggregate<Spec extends AggregateSpec>(build: (b: ReducerBuilder<T, S, M>) => Spec): Aggregation<AggregateResult<Spec>>;
394
+ aggregate<Spec extends ReduceSpec>(spec: Spec): Reduction<ReduceResult<Spec>>;
395
+ aggregate<Spec extends ReduceSpec>(build: (b: ReducerBuilder<T, S, M>) => Spec): Reduction<ReduceResult<Spec>>;
396
396
  /**
397
397
  * Partition matching records into buckets keyed by a field, then
398
398
  * terminate with `.aggregate(spec)` to compute per-bucket
@@ -20,12 +20,6 @@ export { applyJoins, DEFAULT_JOIN_MAX_ROWS, resetJoinWarnings } from './join.js'
20
20
  export type { JoinLeg, JoinContext, JoinableSource, JoinStrategy } from './join.js';
21
21
  export { buildLiveQuery } from './live.js';
22
22
  export type { LiveQuery, LiveUpstream } from './live.js';
23
- export { count, sum, avg, min, max, moneySum, moneyMin, moneyMax, reducerBuilder } from '../../with-lookup/aggregate/reducers.js';
24
- export type { Reducer, ReducerOptions, ReducerBuilder } from '../../with-lookup/aggregate/reducers.js';
25
- export { Aggregation, reduceRecords, buildLiveAggregation } from '../../with-lookup/aggregate/aggregation.js';
26
- export type { AggregateSpec, AggregateResult, AggregationUpstream, LiveAggregation, } from '../../with-lookup/aggregate/aggregation.js';
27
- export { GroupedQuery, GroupedQueryN, GroupedAggregation, groupAndReduce, resetGroupByWarnings, GROUPBY_WARN_CARDINALITY, GROUPBY_MAX_CARDINALITY, } from '../../with-lookup/aggregate/groupby.js';
28
- export type { GroupedRow, GroupedRowN } from '../../with-lookup/aggregate/groupby.js';
29
23
  export { ScanBuilder } from './scan-builder.js';
30
24
  export type { ScanPageProvider } from './scan-builder.js';
31
25
  export { GroupCardinalityError, IndexRequiredError, IndexWriteFailureError, JoinTooLargeError, DanglingReferenceError, CrossJoinTooLargeError, CrossJoinSourceUnknownError, FieldNotQueryableError, } from '../errors.js';
@@ -58,9 +58,9 @@
58
58
  * - `scan().join(...)` — tracked under (streaming join)
59
59
  */
60
60
  import type { QueryField } from '../types.js';
61
- import type { ReducerBuilder } from '../../with-lookup/aggregate/reducers.js';
61
+ import type { ReducerBuilder } from '../../with-lookup/reduce/reducers.js';
62
62
  import type { Clause, Operator } from './predicate.js';
63
- import type { AggregateSpec, AggregateResult } from '../../with-lookup/aggregate/aggregation.js';
63
+ import type { ReduceSpec, ReduceResult } from '../../with-lookup/reduce/reduction.js';
64
64
  import type { JoinContext, JoinLeg } from './join.js';
65
65
  import type { ViaPipeline } from '../via/pipeline.js';
66
66
  /**
@@ -321,8 +321,8 @@ export declare class ScanBuilder<T, S extends keyof T = never, M extends keyof T
321
321
  * method has never run and must not start running as a side effect of
322
322
  * this gate).
323
323
  */
324
- aggregate<Spec extends AggregateSpec>(spec: Spec): Promise<AggregateResult<Spec>>;
325
- aggregate<Spec extends AggregateSpec>(build: (b: ReducerBuilder<T, S, M>) => Spec): Promise<AggregateResult<Spec>>;
324
+ aggregate<Spec extends ReduceSpec>(spec: Spec): Promise<ReduceResult<Spec>>;
325
+ aggregate<Spec extends ReduceSpec>(build: (b: ReducerBuilder<T, S, M>) => Spec): Promise<ReduceResult<Spec>>;
326
326
  /**
327
327
  * Evaluate the clause list against a single record. Linear in
328
328
  * the clause count; short-circuits on first false. Clauses on a
@@ -28,7 +28,7 @@ import type { SyncPolicy } from './sync-policy.js';
28
28
  import type { BlobStrategy } from '../port/with/blob-strategy.js';
29
29
  import type { ArchiveStrategy } from '../with-fork/archive/index.js';
30
30
  import type { IndexStrategy } from '../with-lookup/indexing/strategy.js';
31
- import type { AggregateStrategy } from '../with-lookup/aggregate/strategy.js';
31
+ import type { ReduceStrategy } from '../with-lookup/reduce/strategy.js';
32
32
  import type { ConsentStrategy } from '../with-audit/consent/strategy.js';
33
33
  import type { PeriodsStrategy } from '../with-audit/periods/strategy.js';
34
34
  import type { ShadowStrategy } from '../with-fork/shadow/strategy.js';
@@ -2200,16 +2200,16 @@ export interface NoydbOptions {
2200
2200
  readonly indexStrategy?: IndexStrategy;
2201
2201
  /**
2202
2202
  * tree-shake seam — optional aggregate strategy. Pass
2203
- * `withAggregate()` from `@noy-db/hub/aggregate` to enable
2203
+ * `withReduce()` from `@noy-db/hub/reduce` to enable
2204
2204
  * `.aggregate()` and `.groupBy()` on Query. When omitted, those
2205
2205
  * methods throw with a pointer at the subpath; the ~886 LOC of
2206
- * Aggregation + GroupedQuery machinery never reaches the bundle.
2206
+ * Reduction + GroupedQuery machinery never reaches the bundle.
2207
2207
  * Streaming `scan().aggregate()` works independently of this
2208
- * strategy — it doesn't use the `Aggregation` class.
2208
+ * strategy — it doesn't use the `Reduction` class.
2209
2209
  *
2210
2210
  * @internal
2211
2211
  */
2212
- readonly aggregateStrategy?: AggregateStrategy;
2212
+ readonly reduceStrategy?: ReduceStrategy;
2213
2213
  /**
2214
2214
  * tree-shake seam — optional CRDT strategy. Required when
2215
2215
  * any collection is declared with `crdt: 'lww-map' | 'rga' | 'yjs'`;
@@ -3,7 +3,7 @@ import {
3
3
  LedgerStore,
4
4
  applyPatch,
5
5
  computePatch
6
- } from "./chunk-5ATANZSW.js";
6
+ } from "./chunk-ICYC5YNI.js";
7
7
  import {
8
8
  LEDGER_COLLECTION,
9
9
  LEDGER_DELTAS_COLLECTION
@@ -15,15 +15,15 @@ import {
15
15
  paddedIndex,
16
16
  parseIndex,
17
17
  sha256Hex
18
- } from "./chunk-RWW3I3PO.js";
19
- import "./chunk-GEEJPID6.js";
20
- import "./chunk-SC4JLMZI.js";
18
+ } from "./chunk-2BVW754E.js";
19
+ import "./chunk-MMVQ3SUO.js";
20
+ import "./chunk-KCZAFDP5.js";
21
21
  import "./chunk-5WLDZZ6S.js";
22
22
  import "./chunk-5HSSTOOG.js";
23
23
  import "./chunk-G4MFQXYX.js";
24
24
  import "./chunk-LP7BEXCT.js";
25
25
  import "./chunk-7U6AB7DZ.js";
26
- import "./chunk-YTW6ZIPD.js";
26
+ import "./chunk-DOZFU7OZ.js";
27
27
  import "./chunk-6SYOHUHM.js";
28
28
  import "./chunk-PZ5AY32C.js";
29
29
  export {
@@ -39,4 +39,4 @@ export {
39
39
  parseIndex,
40
40
  sha256Hex
41
41
  };
42
- //# sourceMappingURL=ledger-M2BKCNVS.js.map
42
+ //# sourceMappingURL=ledger-K6JBFL3Z.js.map
@@ -0,0 +1,24 @@
1
+ import {
2
+ liberateVault
3
+ } from "./chunk-QVIZDLAR.js";
4
+ import "./chunk-6SSWOUUS.js";
5
+ import "./chunk-MLCTPWSO.js";
6
+ import "./chunk-WWBC4KLB.js";
7
+ import "./chunk-E7FSBI6I.js";
8
+ import "./chunk-ZHZ4PET5.js";
9
+ import "./chunk-ZDFU34XY.js";
10
+ import "./chunk-7IQWHYL2.js";
11
+ import "./chunk-MMVQ3SUO.js";
12
+ import "./chunk-KCZAFDP5.js";
13
+ import "./chunk-5WLDZZ6S.js";
14
+ import "./chunk-5HSSTOOG.js";
15
+ import "./chunk-G4MFQXYX.js";
16
+ import "./chunk-LP7BEXCT.js";
17
+ import "./chunk-7U6AB7DZ.js";
18
+ import "./chunk-DOZFU7OZ.js";
19
+ import "./chunk-6SYOHUHM.js";
20
+ import "./chunk-PZ5AY32C.js";
21
+ export {
22
+ liberateVault
23
+ };
24
+ //# sourceMappingURL=liberate-NHTCKBU4.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  LinkEndpointError,
3
3
  LinkSet
4
- } from "./chunk-JIHH26WQ.js";
4
+ } from "./chunk-XG7OZDOS.js";
5
5
  import {
6
6
  LINK_COLLECTION_PREFIX,
7
7
  LinkIntegrityError,
@@ -9,14 +9,14 @@ import {
9
9
  linkCollectionName,
10
10
  linkRowKey
11
11
  } from "./chunk-MUPZ6IZX.js";
12
- import "./chunk-GEEJPID6.js";
13
- import "./chunk-SC4JLMZI.js";
12
+ import "./chunk-MMVQ3SUO.js";
13
+ import "./chunk-KCZAFDP5.js";
14
14
  import "./chunk-5WLDZZ6S.js";
15
15
  import "./chunk-5HSSTOOG.js";
16
16
  import "./chunk-G4MFQXYX.js";
17
17
  import "./chunk-LP7BEXCT.js";
18
18
  import "./chunk-7U6AB7DZ.js";
19
- import "./chunk-YTW6ZIPD.js";
19
+ import "./chunk-DOZFU7OZ.js";
20
20
  import "./chunk-6SYOHUHM.js";
21
21
  import "./chunk-PZ5AY32C.js";
22
22
  export {
@@ -28,4 +28,4 @@ export {
28
28
  linkCollectionName,
29
29
  linkRowKey
30
30
  };
31
- //# sourceMappingURL=link-set-ZU4E5J5S.js.map
31
+ //# sourceMappingURL=link-set-XVZY2ODC.js.map
@@ -1,38 +1,41 @@
1
1
  import {
2
2
  withMaterializedView
3
- } from "../chunk-DYZ5CCVM.js";
3
+ } from "../chunk-RM5EXCFF.js";
4
4
  import {
5
5
  MaterializedViewExecutor
6
- } from "../chunk-YZN6NRTR.js";
6
+ } from "../chunk-MQBFT2OT.js";
7
+ import "../chunk-JTIPVW4J.js";
7
8
  import {
8
9
  MaterializedViewRegistry,
9
10
  analyzeDependencies,
10
11
  canonicalizeQueryPlan,
11
12
  computeQueryHash,
12
13
  summarizeQueryPlan
13
- } from "../chunk-TNATF3HB.js";
14
+ } from "../chunk-ZGEFBDPR.js";
14
15
  import {
15
16
  clearMVStale,
16
17
  isMVStale,
17
18
  markMVStale,
18
19
  resolveStaleMVOnRead
19
- } from "../chunk-CKUYQO2P.js";
20
- import "../chunk-7BIJS6II.js";
20
+ } from "../chunk-VDTWFN2P.js";
21
+ import "../chunk-5D2ALSM5.js";
21
22
  import "../chunk-SBOHNJUD.js";
22
- import "../chunk-QMMOMBH6.js";
23
+ import "../chunk-HA7P3BTB.js";
24
+ import "../chunk-XZHEOSQ2.js";
25
+ import "../chunk-CADUYBQD.js";
23
26
  import "../chunk-IGJCYUT5.js";
24
- import "../chunk-K7BADAOS.js";
25
- import "../chunk-JN3SGXJE.js";
27
+ import "../chunk-C2V7AJO2.js";
28
+ import "../chunk-JOCMXSR2.js";
26
29
  import "../chunk-ZUDAK436.js";
27
- import "../chunk-RWW3I3PO.js";
28
- import "../chunk-GEEJPID6.js";
29
- import "../chunk-SC4JLMZI.js";
30
+ import "../chunk-2BVW754E.js";
31
+ import "../chunk-MMVQ3SUO.js";
32
+ import "../chunk-KCZAFDP5.js";
30
33
  import "../chunk-5WLDZZ6S.js";
31
34
  import "../chunk-5HSSTOOG.js";
32
35
  import "../chunk-G4MFQXYX.js";
33
36
  import "../chunk-LP7BEXCT.js";
34
37
  import "../chunk-7U6AB7DZ.js";
35
- import "../chunk-YTW6ZIPD.js";
38
+ import "../chunk-DOZFU7OZ.js";
36
39
  import {
37
40
  MaterializedViewConfigError,
38
41
  MaterializedViewCycleError,
@@ -0,0 +1,78 @@
1
+ import {
2
+ Noydb,
3
+ createNoydb
4
+ } from "./chunk-EWPS35AR.js";
5
+ import "./chunk-YGMREQAK.js";
6
+ import "./chunk-M7W2KYTL.js";
7
+ import "./chunk-VYYM3MEN.js";
8
+ import "./chunk-5ABOFAHN.js";
9
+ import "./chunk-MUPZ6IZX.js";
10
+ import "./chunk-522MBPE5.js";
11
+ import "./chunk-44Y3P5U6.js";
12
+ import "./chunk-3TZUC4WS.js";
13
+ import "./chunk-SEU6QHH4.js";
14
+ import "./chunk-3S2YNMUS.js";
15
+ import "./chunk-6SSWOUUS.js";
16
+ import "./chunk-AURFOK3D.js";
17
+ import "./chunk-GYGLAVCX.js";
18
+ import "./chunk-EP5L47XV.js";
19
+ import "./chunk-GTNRMJYH.js";
20
+ import "./chunk-ZM72UO3Y.js";
21
+ import "./chunk-HDF5R2K6.js";
22
+ import "./chunk-OWLZONGX.js";
23
+ import "./chunk-IUATR5UE.js";
24
+ import "./chunk-GHVIKOHT.js";
25
+ import "./chunk-SMY5X46Z.js";
26
+ import "./chunk-NIKO2BBZ.js";
27
+ import "./chunk-QVGEVZ5F.js";
28
+ import "./chunk-Z4D3YGAB.js";
29
+ import "./chunk-JTIPVW4J.js";
30
+ import "./chunk-5D2ALSM5.js";
31
+ import "./chunk-PWWWMRT7.js";
32
+ import "./chunk-MPPWL64H.js";
33
+ import "./chunk-SBOHNJUD.js";
34
+ import "./chunk-LN3MQFUE.js";
35
+ import "./chunk-GQT6J4FJ.js";
36
+ import "./chunk-KPZS5QAQ.js";
37
+ import "./chunk-NO272T7Q.js";
38
+ import "./chunk-XZHEOSQ2.js";
39
+ import "./chunk-YMUFFJCO.js";
40
+ import "./chunk-CADUYBQD.js";
41
+ import "./chunk-IGJCYUT5.js";
42
+ import "./chunk-PVEWA2DU.js";
43
+ import "./chunk-PEOZ34EM.js";
44
+ import "./chunk-4B3DL75F.js";
45
+ import "./chunk-C2V7AJO2.js";
46
+ import "./chunk-JOCMXSR2.js";
47
+ import "./chunk-ZUDAK436.js";
48
+ import "./chunk-M4GO4ZJK.js";
49
+ import "./chunk-ZDFU34XY.js";
50
+ import "./chunk-7IQWHYL2.js";
51
+ import "./chunk-VQNJ7UZL.js";
52
+ import "./chunk-TMR64XPL.js";
53
+ import "./chunk-LC7DSMHR.js";
54
+ import "./chunk-P4NUJVWL.js";
55
+ import "./chunk-VKQCVU2Z.js";
56
+ import "./chunk-ZJADGNYF.js";
57
+ import "./chunk-AFHQATY4.js";
58
+ import "./chunk-ICYC5YNI.js";
59
+ import "./chunk-I7FD46FF.js";
60
+ import "./chunk-PTT2NB46.js";
61
+ import "./chunk-2BVW754E.js";
62
+ import "./chunk-AZXEOEQK.js";
63
+ import "./chunk-7LP7FFJ2.js";
64
+ import "./chunk-MMVQ3SUO.js";
65
+ import "./chunk-KCZAFDP5.js";
66
+ import "./chunk-5WLDZZ6S.js";
67
+ import "./chunk-5HSSTOOG.js";
68
+ import "./chunk-G4MFQXYX.js";
69
+ import "./chunk-LP7BEXCT.js";
70
+ import "./chunk-7U6AB7DZ.js";
71
+ import "./chunk-DOZFU7OZ.js";
72
+ import "./chunk-6SYOHUHM.js";
73
+ import "./chunk-PZ5AY32C.js";
74
+ export {
75
+ Noydb,
76
+ createNoydb
77
+ };
78
+ //# sourceMappingURL=noydb-TI3RFU6M.js.map
@@ -1,13 +1,14 @@
1
1
  import {
2
2
  withPeriods
3
- } from "../chunk-QBOQI6PG.js";
3
+ } from "../chunk-XONZGK6J.js";
4
4
  import {
5
+ NO_PERIODS,
5
6
  appendPeriodLedgerEntry,
6
7
  assertTsWritable,
7
8
  chainAnchor,
8
9
  loadPeriods,
9
10
  validatePeriodName
10
- } from "../chunk-7ICV4ASA.js";
11
+ } from "../chunk-IUATR5UE.js";
11
12
  import "../chunk-GHVIKOHT.js";
12
13
  import {
13
14
  PERIODS_COLLECTION,
@@ -16,20 +17,21 @@ import {
16
17
  PERIOD_TARGET_PURGES_COLLECTION,
17
18
  periodExclusiveUpperBound
18
19
  } from "../chunk-TMR64XPL.js";
19
- import "../chunk-5ATANZSW.js";
20
+ import "../chunk-ICYC5YNI.js";
20
21
  import "../chunk-I7FD46FF.js";
21
- import "../chunk-RWW3I3PO.js";
22
- import "../chunk-GEEJPID6.js";
23
- import "../chunk-SC4JLMZI.js";
22
+ import "../chunk-2BVW754E.js";
23
+ import "../chunk-MMVQ3SUO.js";
24
+ import "../chunk-KCZAFDP5.js";
24
25
  import "../chunk-5WLDZZ6S.js";
25
26
  import "../chunk-5HSSTOOG.js";
26
27
  import "../chunk-G4MFQXYX.js";
27
28
  import "../chunk-LP7BEXCT.js";
28
29
  import "../chunk-7U6AB7DZ.js";
29
- import "../chunk-YTW6ZIPD.js";
30
+ import "../chunk-DOZFU7OZ.js";
30
31
  import "../chunk-6SYOHUHM.js";
31
32
  import "../chunk-PZ5AY32C.js";
32
33
  export {
34
+ NO_PERIODS,
33
35
  PERIODS_COLLECTION,
34
36
  PERIOD_ARCHIVES_COLLECTION,
35
37
  PERIOD_FREEZES_COLLECTION,
package/dist/pod/index.js CHANGED
@@ -1,4 +1,3 @@
1
- import "../chunk-2YELV6TV.js";
2
1
  import {
3
2
  createBundleStore,
4
3
  createPodStore,
@@ -25,20 +24,20 @@ import {
25
24
  validateBundleHeader,
26
25
  writeNoydbBundle,
27
26
  writePod
28
- } from "../chunk-YCAJDK4O.js";
29
- import "../chunk-YFFEF6HR.js";
27
+ } from "../chunk-E7FSBI6I.js";
28
+ import "../chunk-ZHZ4PET5.js";
30
29
  import {
31
30
  generateULID,
32
31
  isULID
33
32
  } from "../chunk-ZJADGNYF.js";
34
- import "../chunk-GEEJPID6.js";
35
- import "../chunk-SC4JLMZI.js";
33
+ import "../chunk-MMVQ3SUO.js";
34
+ import "../chunk-KCZAFDP5.js";
36
35
  import "../chunk-5WLDZZ6S.js";
37
36
  import "../chunk-5HSSTOOG.js";
38
37
  import "../chunk-G4MFQXYX.js";
39
38
  import "../chunk-LP7BEXCT.js";
40
39
  import "../chunk-7U6AB7DZ.js";
41
- import "../chunk-YTW6ZIPD.js";
40
+ import "../chunk-DOZFU7OZ.js";
42
41
  import {
43
42
  BackupCorruptedError,
44
43
  BackupLedgerError,
@@ -6,14 +6,14 @@ import {
6
6
  createNoydbPolicy,
7
7
  describeGate,
8
8
  mergePolicy
9
- } from "./chunk-JAMDDLIM.js";
9
+ } from "./chunk-WCJJQV2D.js";
10
10
  import {
11
11
  META_COLLECTION,
12
12
  POLICY_RECORD_ID,
13
13
  loadVaultPolicy,
14
14
  saveVaultPolicy
15
- } from "./chunk-QMZ5A6FQ.js";
16
- import "./chunk-YTW6ZIPD.js";
15
+ } from "./chunk-M7W2KYTL.js";
16
+ import "./chunk-DOZFU7OZ.js";
17
17
  import {
18
18
  ManagedRecoveryNotEnrolledError,
19
19
  PolicyDeniedError,
@@ -38,4 +38,4 @@ export {
38
38
  mergePolicy,
39
39
  saveVaultPolicy
40
40
  };
41
- //# sourceMappingURL=policy-IY2YEA3A.js.map
41
+ //# sourceMappingURL=policy-QWGJB7P7.js.map