@noy-db/hub 0.2.0-pre.23 → 0.2.0-pre.24

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 (285) hide show
  1. package/dist/aggregate/index.cjs.map +1 -1
  2. package/dist/aggregate/index.d.cts +3 -3
  3. package/dist/aggregate/index.d.ts +3 -3
  4. package/dist/aggregate/index.js +5 -5
  5. package/dist/attestation/index.cjs.map +1 -1
  6. package/dist/attestation/index.d.cts +4 -4
  7. package/dist/attestation/index.d.ts +4 -4
  8. package/dist/attestation/index.js +6 -6
  9. package/dist/blobs/index.cjs.map +1 -1
  10. package/dist/blobs/index.d.cts +6 -6
  11. package/dist/blobs/index.d.ts +6 -6
  12. package/dist/blobs/index.js +6 -6
  13. package/dist/bundle/index.cjs +617 -1202
  14. package/dist/bundle/index.cjs.map +1 -1
  15. package/dist/bundle/index.d.cts +15 -6
  16. package/dist/bundle/index.d.ts +15 -6
  17. package/dist/bundle/index.js +58 -193
  18. package/dist/bundle/index.js.map +1 -1
  19. package/dist/{chunk-CQYEDODS.js → chunk-35U5YNRR.js} +3 -3
  20. package/dist/{chunk-NV4IHBZS.js → chunk-3XJU3OHE.js} +5 -5
  21. package/dist/{chunk-OTWT6BAJ.js → chunk-4BB4T3O7.js} +12 -2
  22. package/dist/chunk-4BB4T3O7.js.map +1 -0
  23. package/dist/{chunk-IVZWHIEK.js → chunk-4HEGG5NJ.js} +5 -5
  24. package/dist/{chunk-WE2BUQD2.js → chunk-4TCMCCC3.js} +5 -3
  25. package/dist/{chunk-5YTXYPES.js → chunk-5A2FVGHT.js} +5 -5
  26. package/dist/{chunk-NSXNXLYM.js → chunk-5GZC2ZM3.js} +2 -2
  27. package/dist/{chunk-JYNH4FIM.js → chunk-77WF53XY.js} +4 -4
  28. package/dist/{chunk-O5XKZCUD.js → chunk-7X4EF35A.js} +5 -5
  29. package/dist/{chunk-SQKAECUL.js → chunk-7ZCTUI26.js} +2 -2
  30. package/dist/{chunk-J6RGRZOY.js → chunk-AO3QSMCU.js} +2 -2
  31. package/dist/{chunk-JDCPRJVS.js → chunk-AONK5GCC.js} +4 -4
  32. package/dist/{chunk-FRRJIUSI.js → chunk-B5CSNGSE.js} +17 -9
  33. package/dist/chunk-B5CSNGSE.js.map +1 -0
  34. package/dist/{chunk-IY24WS2P.js → chunk-BCMHJYVT.js} +4 -4
  35. package/dist/{chunk-IY24WS2P.js.map → chunk-BCMHJYVT.js.map} +1 -1
  36. package/dist/{chunk-TYMDCIQM.js → chunk-C472BRJ4.js} +4 -4
  37. package/dist/{chunk-MBXKRHSS.js → chunk-CCNRFAL3.js} +2 -2
  38. package/dist/{chunk-BZW5IL43.js → chunk-DCA2BDHA.js} +4 -4
  39. package/dist/{chunk-JBBWALNI.js → chunk-DCICHSRS.js} +2 -2
  40. package/dist/{chunk-2XA2ZML4.js → chunk-FG6IQ3ZL.js} +3 -3
  41. package/dist/{chunk-C2RJVZZL.js → chunk-G4GW5VOS.js} +2 -2
  42. package/dist/{chunk-U2XSUCDF.js → chunk-GEWIFM4J.js} +2 -2
  43. package/dist/{chunk-TNH5SLCD.js → chunk-HD4QCT2O.js} +2 -2
  44. package/dist/{chunk-I3IYTUUI.js → chunk-HHJ5DZCZ.js} +3 -3
  45. package/dist/{chunk-6QAZ5O6X.js → chunk-IEIADIPM.js} +2 -2
  46. package/dist/{chunk-YPIOFSN3.js → chunk-IHAISFXP.js} +2 -2
  47. package/dist/{chunk-GJTKMME7.js → chunk-JKM2AVVH.js} +2 -2
  48. package/dist/{chunk-EYK72OTL.js → chunk-JRMOSIH4.js} +5 -5
  49. package/dist/chunk-JRMOSIH4.js.map +1 -0
  50. package/dist/{chunk-S45MDEEF.js → chunk-LMWVNF6X.js} +2 -2
  51. package/dist/{chunk-TA6HPKWQ.js → chunk-LR7CODVN.js} +1 -1
  52. package/dist/chunk-LR7CODVN.js.map +1 -0
  53. package/dist/{chunk-TAMRU7A2.js → chunk-OKV7S356.js} +4 -4
  54. package/dist/{chunk-HYJMAV53.js → chunk-OWAMTSAI.js} +93 -93
  55. package/dist/chunk-OWAMTSAI.js.map +1 -0
  56. package/dist/{chunk-IW4L4X65.js → chunk-P5A4E53B.js} +2 -2
  57. package/dist/{chunk-JOK73NDT.js → chunk-P7OL22JP.js} +3 -3
  58. package/dist/{chunk-P65YMN5V.js → chunk-QOXZM3L2.js} +407 -162
  59. package/dist/chunk-QOXZM3L2.js.map +1 -0
  60. package/dist/chunk-R43KS34V.js +399 -0
  61. package/dist/chunk-R43KS34V.js.map +1 -0
  62. package/dist/{chunk-TGIJTNM3.js → chunk-R5ZECURV.js} +2 -2
  63. package/dist/{chunk-KOAJ3TZM.js → chunk-RFEXGW3L.js} +2 -2
  64. package/dist/{chunk-F5ILTHMU.js → chunk-RNQPDV75.js} +5 -5
  65. package/dist/{chunk-WWVJXBOT.js → chunk-SGM7CK7R.js} +5 -5
  66. package/dist/{chunk-7MRT7EPB.js → chunk-SOQE5DUV.js} +3 -3
  67. package/dist/{chunk-F5GWNSE2.js → chunk-TOMSCJRV.js} +3 -3
  68. package/dist/{chunk-F5GWNSE2.js.map → chunk-TOMSCJRV.js.map} +1 -1
  69. package/dist/{chunk-ZONKSLF2.js → chunk-TQMQZOMX.js} +2 -2
  70. package/dist/{chunk-3HNKR65T.js → chunk-U6LTLN7O.js} +3 -3
  71. package/dist/{chunk-UU6M64HI.js → chunk-UAK2AMO2.js} +4 -4
  72. package/dist/{chunk-37VGJM3T.js → chunk-WQ3KAGOV.js} +2 -2
  73. package/dist/{chunk-C6W5KVDV.js → chunk-XC32SZPW.js} +35 -35
  74. package/dist/chunk-XC32SZPW.js.map +1 -0
  75. package/dist/{chunk-AI4USDRI.js → chunk-XQO4TAJS.js} +4 -4
  76. package/dist/{chunk-SQOK5UM6.js → chunk-ZBENTRFS.js} +2 -2
  77. package/dist/{chunk-6QE4DUYC.js → chunk-ZDITTESU.js} +2 -2
  78. package/dist/consent/index.cjs.map +1 -1
  79. package/dist/consent/index.d.cts +5 -5
  80. package/dist/consent/index.d.ts +5 -5
  81. package/dist/consent/index.js +3 -3
  82. package/dist/{crypto-456N7UVX.js → crypto-2LU6XUFF.js} +3 -3
  83. package/dist/{delegation-DP4COTXB.js → delegation-6ABSJGXV.js} +5 -5
  84. package/dist/derivations/index.cjs.map +1 -1
  85. package/dist/derivations/index.d.cts +6 -6
  86. package/dist/derivations/index.d.ts +6 -6
  87. package/dist/derivations/index.js +4 -4
  88. package/dist/{dev-unlock-DzDzLTdZ.d.ts → dev-unlock-BlhRHr6p.d.ts} +1 -1
  89. package/dist/{dev-unlock-Bw7iBD1D.d.cts → dev-unlock-DURe4IvF.d.cts} +1 -1
  90. package/dist/{errors-Dkc_fi-S.d.cts → errors-B2tUcRPg.d.cts} +19 -5
  91. package/dist/{errors-Dkc_fi-S.d.ts → errors-B2tUcRPg.d.ts} +19 -5
  92. package/dist/executor-JKMSEB34.js +8 -0
  93. package/dist/executor-UYXSQB4D.js +12 -0
  94. package/dist/executor-VJSCTBWY.js +8 -0
  95. package/dist/{fanout-sidecar-YXNAEZ33.js → fanout-sidecar-ZQT4Y7PF.js} +2 -2
  96. package/dist/forget/index.js +4 -4
  97. package/dist/guards/index.cjs.map +1 -1
  98. package/dist/guards/index.d.cts +6 -6
  99. package/dist/guards/index.d.ts +6 -6
  100. package/dist/guards/index.js +6 -6
  101. package/dist/{hash-C52X_-m5.d.cts → hash-CqRZfDZH.d.cts} +1 -1
  102. package/dist/{hash-DepR-xVc.d.ts → hash-cF4iWaBV.d.ts} +1 -1
  103. package/dist/history/index.cjs.map +1 -1
  104. package/dist/history/index.d.cts +6 -6
  105. package/dist/history/index.d.ts +6 -6
  106. package/dist/history/index.js +5 -5
  107. package/dist/i18n/index.cjs.map +1 -1
  108. package/dist/i18n/index.d.cts +5 -5
  109. package/dist/i18n/index.d.ts +5 -5
  110. package/dist/i18n/index.js +6 -6
  111. package/dist/index-B8MoIS7B.d.ts +70 -0
  112. package/dist/{index-Bm9hIY7t.d.ts → index-BLff_E35.d.ts} +2 -2
  113. package/dist/{index-tZqVB9g5.d.cts → index-BthnP2MA.d.cts} +2 -2
  114. package/dist/index-da0M3NnR.d.cts +70 -0
  115. package/dist/index.cjs +25907 -25557
  116. package/dist/index.cjs.map +1 -1
  117. package/dist/index.d.cts +135 -80
  118. package/dist/index.d.ts +135 -80
  119. package/dist/index.js +78 -51
  120. package/dist/index.js.map +1 -1
  121. package/dist/indexing/index.cjs.map +1 -1
  122. package/dist/indexing/index.js +4 -4
  123. package/dist/issue-KLRMW5DH.js +12 -0
  124. package/dist/kernel/index.cjs +657 -0
  125. package/dist/kernel/index.cjs.map +1 -0
  126. package/dist/kernel/index.d.cts +11 -0
  127. package/dist/kernel/index.d.ts +11 -0
  128. package/dist/kernel/index.js +40 -0
  129. package/dist/{ledger-I7JUYP4L.js → ledger-VOS2X3WJ.js} +5 -5
  130. package/dist/materialized-views/index.cjs.map +1 -1
  131. package/dist/materialized-views/index.d.cts +6 -6
  132. package/dist/materialized-views/index.d.ts +6 -6
  133. package/dist/materialized-views/index.js +8 -8
  134. package/dist/{mime-magic-Dejetix_.d.ts → mime-magic-BswIvWkR.d.ts} +1 -1
  135. package/dist/{mime-magic-Cxf9B_Dm.d.cts → mime-magic-CCrP-iXJ.d.cts} +1 -1
  136. package/dist/{ulid-Bg-IBJyA.d.cts → multi-bundle-6s5nKAZX.d.ts} +114 -58
  137. package/dist/{ulid-Dwt3JEcy.d.ts → multi-bundle-WhYiJEgV.d.cts} +114 -58
  138. package/dist/noydb-2PI2ZBX6.js +38 -0
  139. package/dist/overlay-views/index.cjs.map +1 -1
  140. package/dist/overlay-views/index.d.cts +6 -6
  141. package/dist/overlay-views/index.d.ts +6 -6
  142. package/dist/overlay-views/index.js +4 -4
  143. package/dist/periods/index.cjs.map +1 -1
  144. package/dist/periods/index.d.cts +5 -5
  145. package/dist/periods/index.d.ts +5 -5
  146. package/dist/periods/index.js +5 -5
  147. package/dist/{public-envelope-5XRTUNKF.js → public-envelope-IJJMWSTJ.js} +4 -4
  148. package/dist/query/index.cjs.map +1 -1
  149. package/dist/query/index.d.cts +3 -3
  150. package/dist/query/index.d.ts +3 -3
  151. package/dist/query/index.js +7 -7
  152. package/dist/registry-GAIFVWXF.js +8 -0
  153. package/dist/registry-J77ZUQ7G.js +8 -0
  154. package/dist/{registry-NWHOLD5M.js → registry-JGEVJ6YC.js} +3 -3
  155. package/dist/{revoke-5IEK22KT.js → revoke-WUY4AYRJ.js} +6 -6
  156. package/dist/sealed-record/index.cjs.map +1 -1
  157. package/dist/sealed-record/index.d.cts +1 -1
  158. package/dist/sealed-record/index.d.ts +1 -1
  159. package/dist/sealed-record/index.js +2 -2
  160. package/dist/session/index.cjs.map +1 -1
  161. package/dist/session/index.d.cts +6 -6
  162. package/dist/session/index.d.ts +6 -6
  163. package/dist/session/index.js +3 -3
  164. package/dist/shadow/index.cjs.map +1 -1
  165. package/dist/shadow/index.d.cts +5 -5
  166. package/dist/shadow/index.d.ts +5 -5
  167. package/dist/shadow/index.js +2 -2
  168. package/dist/{signer-I6YARZQA.js → signer-UJF3CFDC.js} +5 -5
  169. package/dist/snapshots/index.cjs.map +1 -1
  170. package/dist/snapshots/index.d.cts +5 -5
  171. package/dist/snapshots/index.d.ts +5 -5
  172. package/dist/snapshots/index.js +4 -4
  173. package/dist/{stale-CPESGAPL.js → stale-PW6VBGSP.js} +2 -2
  174. package/dist/store/index.cjs.map +1 -1
  175. package/dist/store/index.d.cts +5 -5
  176. package/dist/store/index.d.ts +5 -5
  177. package/dist/store/index.js +2 -2
  178. package/dist/{strategy-WtB-jXYv.d.cts → strategy-BWmgRPA2.d.cts} +1 -1
  179. package/dist/{strategy-54eIwox5.d.ts → strategy-D47TC5X6.d.ts} +1 -1
  180. package/dist/sync/index.cjs.map +1 -1
  181. package/dist/sync/index.d.cts +4 -4
  182. package/dist/sync/index.d.ts +4 -4
  183. package/dist/sync/index.js +4 -4
  184. package/dist/team/index.cjs +10 -3
  185. package/dist/team/index.cjs.map +1 -1
  186. package/dist/team/index.d.cts +5 -5
  187. package/dist/team/index.d.ts +5 -5
  188. package/dist/team/index.js +8 -8
  189. package/dist/{transition-guard-BcLyTGYq.d.cts → transition-guard-C3NxfVKk.d.cts} +1 -1
  190. package/dist/{transition-guard-Ctxapq1b.d.ts → transition-guard-CQH5263l.d.ts} +1 -1
  191. package/dist/tx/index.cjs +1 -1
  192. package/dist/tx/index.cjs.map +1 -1
  193. package/dist/tx/index.d.cts +5 -5
  194. package/dist/tx/index.d.ts +5 -5
  195. package/dist/tx/index.js +3 -3
  196. package/dist/{types-DONgts0n.d.ts → types-BGRX6sPT.d.ts} +288 -578
  197. package/dist/{types-Bhs2i_Ll.d.cts → types-COQ6qJZh.d.cts} +288 -578
  198. package/dist/ulid-DRH25k3y.d.cts +66 -0
  199. package/dist/ulid-DRH25k3y.d.ts +66 -0
  200. package/dist/util/index.cjs.map +1 -1
  201. package/dist/util/index.js +1 -1
  202. package/dist/{with-materialized-view-CyVLOr09.d.ts → with-materialized-view-Cj-6fuav.d.ts} +1 -1
  203. package/dist/{with-materialized-view-BYb3p9wT.d.cts → with-materialized-view-D4U-KrBH.d.cts} +1 -1
  204. package/dist/{with-overlayed-view-LGrQ984e.d.cts → with-overlayed-view-BKjdUPRx.d.cts} +1 -1
  205. package/dist/{with-overlayed-view-BhLRxqwI.d.ts → with-overlayed-view-COp_7EEy.d.ts} +1 -1
  206. package/dist/{with-rollup-CO8ibRcK.d.ts → with-rollup-B1_ZjG02.d.ts} +1 -1
  207. package/dist/{with-rollup-Bj8c7ttB.d.cts → with-rollup-C-Bok_o2.d.cts} +1 -1
  208. package/package.json +13 -3
  209. package/dist/chunk-C6W5KVDV.js.map +0 -1
  210. package/dist/chunk-EYK72OTL.js.map +0 -1
  211. package/dist/chunk-FRRJIUSI.js.map +0 -1
  212. package/dist/chunk-HYJMAV53.js.map +0 -1
  213. package/dist/chunk-JTI57WRT.js +0 -164
  214. package/dist/chunk-JTI57WRT.js.map +0 -1
  215. package/dist/chunk-OTWT6BAJ.js.map +0 -1
  216. package/dist/chunk-P65YMN5V.js.map +0 -1
  217. package/dist/chunk-TA6HPKWQ.js.map +0 -1
  218. package/dist/chunk-ZC7J6ZYV.js +0 -7
  219. package/dist/chunk-ZC7J6ZYV.js.map +0 -1
  220. package/dist/executor-4IEW4KG5.js +0 -8
  221. package/dist/executor-KYJCJCIN.js +0 -12
  222. package/dist/executor-W7VIBOBZ.js +0 -8
  223. package/dist/issue-JXC6T2QR.js +0 -12
  224. package/dist/noydb-VGR2HLDB.js +0 -39
  225. package/dist/registry-ATRHOG5B.js +0 -8
  226. package/dist/registry-LEHB26TY.js +0 -8
  227. package/dist/state-vault-JR3CFGNP.js +0 -14
  228. package/dist/vault-group-BB246VIM.js +0 -804
  229. package/dist/vault-group-BB246VIM.js.map +0 -1
  230. /package/dist/{chunk-CQYEDODS.js.map → chunk-35U5YNRR.js.map} +0 -0
  231. /package/dist/{chunk-NV4IHBZS.js.map → chunk-3XJU3OHE.js.map} +0 -0
  232. /package/dist/{chunk-IVZWHIEK.js.map → chunk-4HEGG5NJ.js.map} +0 -0
  233. /package/dist/{chunk-WE2BUQD2.js.map → chunk-4TCMCCC3.js.map} +0 -0
  234. /package/dist/{chunk-5YTXYPES.js.map → chunk-5A2FVGHT.js.map} +0 -0
  235. /package/dist/{chunk-NSXNXLYM.js.map → chunk-5GZC2ZM3.js.map} +0 -0
  236. /package/dist/{chunk-JYNH4FIM.js.map → chunk-77WF53XY.js.map} +0 -0
  237. /package/dist/{chunk-O5XKZCUD.js.map → chunk-7X4EF35A.js.map} +0 -0
  238. /package/dist/{chunk-SQKAECUL.js.map → chunk-7ZCTUI26.js.map} +0 -0
  239. /package/dist/{chunk-J6RGRZOY.js.map → chunk-AO3QSMCU.js.map} +0 -0
  240. /package/dist/{chunk-JDCPRJVS.js.map → chunk-AONK5GCC.js.map} +0 -0
  241. /package/dist/{chunk-TYMDCIQM.js.map → chunk-C472BRJ4.js.map} +0 -0
  242. /package/dist/{chunk-MBXKRHSS.js.map → chunk-CCNRFAL3.js.map} +0 -0
  243. /package/dist/{chunk-BZW5IL43.js.map → chunk-DCA2BDHA.js.map} +0 -0
  244. /package/dist/{chunk-JBBWALNI.js.map → chunk-DCICHSRS.js.map} +0 -0
  245. /package/dist/{chunk-2XA2ZML4.js.map → chunk-FG6IQ3ZL.js.map} +0 -0
  246. /package/dist/{chunk-C2RJVZZL.js.map → chunk-G4GW5VOS.js.map} +0 -0
  247. /package/dist/{chunk-U2XSUCDF.js.map → chunk-GEWIFM4J.js.map} +0 -0
  248. /package/dist/{chunk-TNH5SLCD.js.map → chunk-HD4QCT2O.js.map} +0 -0
  249. /package/dist/{chunk-I3IYTUUI.js.map → chunk-HHJ5DZCZ.js.map} +0 -0
  250. /package/dist/{chunk-6QAZ5O6X.js.map → chunk-IEIADIPM.js.map} +0 -0
  251. /package/dist/{chunk-YPIOFSN3.js.map → chunk-IHAISFXP.js.map} +0 -0
  252. /package/dist/{chunk-GJTKMME7.js.map → chunk-JKM2AVVH.js.map} +0 -0
  253. /package/dist/{chunk-S45MDEEF.js.map → chunk-LMWVNF6X.js.map} +0 -0
  254. /package/dist/{chunk-TAMRU7A2.js.map → chunk-OKV7S356.js.map} +0 -0
  255. /package/dist/{chunk-IW4L4X65.js.map → chunk-P5A4E53B.js.map} +0 -0
  256. /package/dist/{chunk-JOK73NDT.js.map → chunk-P7OL22JP.js.map} +0 -0
  257. /package/dist/{chunk-TGIJTNM3.js.map → chunk-R5ZECURV.js.map} +0 -0
  258. /package/dist/{chunk-KOAJ3TZM.js.map → chunk-RFEXGW3L.js.map} +0 -0
  259. /package/dist/{chunk-F5ILTHMU.js.map → chunk-RNQPDV75.js.map} +0 -0
  260. /package/dist/{chunk-WWVJXBOT.js.map → chunk-SGM7CK7R.js.map} +0 -0
  261. /package/dist/{chunk-7MRT7EPB.js.map → chunk-SOQE5DUV.js.map} +0 -0
  262. /package/dist/{chunk-ZONKSLF2.js.map → chunk-TQMQZOMX.js.map} +0 -0
  263. /package/dist/{chunk-3HNKR65T.js.map → chunk-U6LTLN7O.js.map} +0 -0
  264. /package/dist/{chunk-UU6M64HI.js.map → chunk-UAK2AMO2.js.map} +0 -0
  265. /package/dist/{chunk-37VGJM3T.js.map → chunk-WQ3KAGOV.js.map} +0 -0
  266. /package/dist/{chunk-AI4USDRI.js.map → chunk-XQO4TAJS.js.map} +0 -0
  267. /package/dist/{chunk-SQOK5UM6.js.map → chunk-ZBENTRFS.js.map} +0 -0
  268. /package/dist/{chunk-6QE4DUYC.js.map → chunk-ZDITTESU.js.map} +0 -0
  269. /package/dist/{crypto-456N7UVX.js.map → crypto-2LU6XUFF.js.map} +0 -0
  270. /package/dist/{delegation-DP4COTXB.js.map → delegation-6ABSJGXV.js.map} +0 -0
  271. /package/dist/{executor-4IEW4KG5.js.map → executor-JKMSEB34.js.map} +0 -0
  272. /package/dist/{executor-KYJCJCIN.js.map → executor-UYXSQB4D.js.map} +0 -0
  273. /package/dist/{executor-W7VIBOBZ.js.map → executor-VJSCTBWY.js.map} +0 -0
  274. /package/dist/{fanout-sidecar-YXNAEZ33.js.map → fanout-sidecar-ZQT4Y7PF.js.map} +0 -0
  275. /package/dist/{issue-JXC6T2QR.js.map → issue-KLRMW5DH.js.map} +0 -0
  276. /package/dist/{ledger-I7JUYP4L.js.map → kernel/index.js.map} +0 -0
  277. /package/dist/{noydb-VGR2HLDB.js.map → ledger-VOS2X3WJ.js.map} +0 -0
  278. /package/dist/{public-envelope-5XRTUNKF.js.map → noydb-2PI2ZBX6.js.map} +0 -0
  279. /package/dist/{registry-ATRHOG5B.js.map → public-envelope-IJJMWSTJ.js.map} +0 -0
  280. /package/dist/{registry-LEHB26TY.js.map → registry-GAIFVWXF.js.map} +0 -0
  281. /package/dist/{registry-NWHOLD5M.js.map → registry-J77ZUQ7G.js.map} +0 -0
  282. /package/dist/{revoke-5IEK22KT.js.map → registry-JGEVJ6YC.js.map} +0 -0
  283. /package/dist/{signer-I6YARZQA.js.map → revoke-WUY4AYRJ.js.map} +0 -0
  284. /package/dist/{stale-CPESGAPL.js.map → signer-UJF3CFDC.js.map} +0 -0
  285. /package/dist/{state-vault-JR3CFGNP.js.map → stale-PW6VBGSP.js.map} +0 -0
@@ -1,11 +1,11 @@
1
- export { w as withMaterializedView } from '../with-materialized-view-BYb3p9wT.cjs';
2
- import { aN as Collection, bk as TxContext, bl as MVQueryContext, bm as RegisteredMV, bn as MaterializedViewRegistry } from '../types-Bhs2i_Ll.cjs';
3
- export { bo as MaterializedFromMeta, bp as MaterializedViewOutput, aK as MaterializedViewStrategy, aL as MaterializedViewStrategyHandle, bq as UnionArmJoin, br as UnionSource } from '../types-Bhs2i_Ll.cjs';
4
- import { Q as Query } from '../index-tZqVB9g5.cjs';
5
- export { z as MaterializedViewConfigError, C as MaterializedViewCycleError, E as MaterializedViewSourceUnknownError, G as MaterializedViewTooLargeError } from '../errors-Dkc_fi-S.cjs';
1
+ export { w as withMaterializedView } from '../with-materialized-view-D4U-KrBH.cjs';
2
+ import { aN as Collection, bk as TxContext, bl as MVQueryContext, bm as RegisteredMV, bn as MaterializedViewRegistry } from '../types-COQ6qJZh.cjs';
3
+ export { bo as MaterializedFromMeta, bp as MaterializedViewOutput, aK as MaterializedViewStrategy, aL as MaterializedViewStrategyHandle, bq as UnionArmJoin, br as UnionSource } from '../types-COQ6qJZh.cjs';
4
+ import { Q as Query } from '../index-BthnP2MA.cjs';
5
+ export { z as MaterializedViewConfigError, C as MaterializedViewCycleError, E as MaterializedViewSourceUnknownError, G as MaterializedViewTooLargeError } from '../errors-B2tUcRPg.cjs';
6
6
  import '../lazy-builder-eYZzLEL1.cjs';
7
7
  import '../predicate-BmhBSPCH.cjs';
8
- import '../strategy-WtB-jXYv.cjs';
8
+ import '../strategy-BWmgRPA2.cjs';
9
9
  import '../strategy-BSxFXGzb.cjs';
10
10
  import '../index-BMmajblo.cjs';
11
11
  import '@noy-db/attestation';
@@ -1,11 +1,11 @@
1
- export { w as withMaterializedView } from '../with-materialized-view-CyVLOr09.js';
2
- import { aN as Collection, bk as TxContext, bl as MVQueryContext, bm as RegisteredMV, bn as MaterializedViewRegistry } from '../types-DONgts0n.js';
3
- export { bo as MaterializedFromMeta, bp as MaterializedViewOutput, aK as MaterializedViewStrategy, aL as MaterializedViewStrategyHandle, bq as UnionArmJoin, br as UnionSource } from '../types-DONgts0n.js';
4
- import { Q as Query } from '../index-Bm9hIY7t.js';
5
- export { z as MaterializedViewConfigError, C as MaterializedViewCycleError, E as MaterializedViewSourceUnknownError, G as MaterializedViewTooLargeError } from '../errors-Dkc_fi-S.js';
1
+ export { w as withMaterializedView } from '../with-materialized-view-Cj-6fuav.js';
2
+ import { aN as Collection, bk as TxContext, bl as MVQueryContext, bm as RegisteredMV, bn as MaterializedViewRegistry } from '../types-BGRX6sPT.js';
3
+ export { bo as MaterializedFromMeta, bp as MaterializedViewOutput, aK as MaterializedViewStrategy, aL as MaterializedViewStrategyHandle, bq as UnionArmJoin, br as UnionSource } from '../types-BGRX6sPT.js';
4
+ import { Q as Query } from '../index-BLff_E35.js';
5
+ export { z as MaterializedViewConfigError, C as MaterializedViewCycleError, E as MaterializedViewSourceUnknownError, G as MaterializedViewTooLargeError } from '../errors-B2tUcRPg.js';
6
6
  import '../lazy-builder-ChSqcF5t.js';
7
7
  import '../predicate-BmhBSPCH.js';
8
- import '../strategy-54eIwox5.js';
8
+ import '../strategy-D47TC5X6.js';
9
9
  import '../strategy-BSxFXGzb.js';
10
10
  import '../index-BMmajblo.js';
11
11
  import '@noy-db/attestation';
@@ -1,31 +1,31 @@
1
1
  import {
2
2
  withMaterializedView
3
- } from "../chunk-6QE4DUYC.js";
3
+ } from "../chunk-ZDITTESU.js";
4
4
  import {
5
5
  MaterializedViewExecutor
6
- } from "../chunk-5YTXYPES.js";
6
+ } from "../chunk-5A2FVGHT.js";
7
7
  import {
8
8
  MaterializedViewRegistry,
9
9
  analyzeDependencies,
10
10
  canonicalizeQueryPlan,
11
11
  computeQueryHash,
12
12
  summarizeQueryPlan
13
- } from "../chunk-KOAJ3TZM.js";
13
+ } from "../chunk-RFEXGW3L.js";
14
14
  import {
15
15
  clearMVStale,
16
16
  isMVStale,
17
17
  markMVStale,
18
18
  resolveStaleMVOnRead
19
- } from "../chunk-IW4L4X65.js";
20
- import "../chunk-JYNH4FIM.js";
21
- import "../chunk-U2XSUCDF.js";
22
- import "../chunk-TNH5SLCD.js";
19
+ } from "../chunk-P5A4E53B.js";
20
+ import "../chunk-77WF53XY.js";
21
+ import "../chunk-GEWIFM4J.js";
22
+ import "../chunk-HD4QCT2O.js";
23
23
  import {
24
24
  MaterializedViewConfigError,
25
25
  MaterializedViewCycleError,
26
26
  MaterializedViewSourceUnknownError,
27
27
  MaterializedViewTooLargeError
28
- } from "../chunk-OTWT6BAJ.js";
28
+ } from "../chunk-4BB4T3O7.js";
29
29
  export {
30
30
  MaterializedViewConfigError,
31
31
  MaterializedViewCycleError,
@@ -1,4 +1,4 @@
1
- import { V as ObjectProjection } from './types-DONgts0n.js';
1
+ import { V as ObjectProjection } from './types-BGRX6sPT.js';
2
2
 
3
3
  /**
4
4
  * Import / bootstrap (reverse projection) — walk an existing bucket/prefix in an
@@ -1,4 +1,4 @@
1
- import { V as ObjectProjection } from './types-Bhs2i_Ll.cjs';
1
+ import { V as ObjectProjection } from './types-COQ6qJZh.cjs';
2
2
 
3
3
  /**
4
4
  * Import / bootstrap (reverse projection) — walk an existing bucket/prefix in an
@@ -1,4 +1,4 @@
1
- import { bc as PublicEnvelope, bd as SealingKeyProvider, be as BundleRecipient, bf as RecipientSealer, bg as RecipientHint, bh as Vault } from './types-Bhs2i_Ll.cjs';
1
+ import { bg as PublicEnvelope, bh as BundleRecipient, bd as SealingKeyProvider, bi as RecipientSealer, bj as RecipientHint, bc as Vault } from './types-BGRX6sPT.js';
2
2
 
3
3
  /**
4
4
  * `.noydb` container format — byte layout, header schema, validators.
@@ -535,69 +535,125 @@ declare function readNoydbBundlePublicEnvelope(bytes: Uint8Array, opts?: {
535
535
  */
536
536
  declare function readNoydbBundle(bytes: Uint8Array, opts?: ReadNoydbBundleOptions): Promise<NoydbBundleReadResult>;
537
537
 
538
+ /** One decrypted record from an extracted-partition compartment. */
539
+ interface DecryptedRecord {
540
+ readonly id: string;
541
+ readonly record: Record<string, unknown>;
542
+ /** Source envelope write timestamp (ISO) — for last-write-wins merges. */
543
+ readonly ts: string;
544
+ /** Source envelope version. */
545
+ readonly version: number;
546
+ /** Provenance source id (FR-5). Present only when the source collection had provenance:true and a source was supplied on put. */
547
+ readonly source?: string;
548
+ /** ISO-8601 timestamp the provenance source was recorded (FR-5). */
549
+ readonly sourceTs?: string;
550
+ }
538
551
  /**
539
- * Minimal ULID generator zero dependencies, Web Crypto API only.
540
- *
541
- *. Used by the bundle writer to generate stable opaque
542
- * handles for `.noydb` containers.
543
- *
544
- * **What's a ULID?** A 128-bit identifier encoded as 26 Crockford
545
- * base32 characters. Layout:
546
- *
547
- * ```
548
- * 01HYABCDEFGHJKMNPQRSTVWXYZ
549
- * |--------||---------------|
550
- * 48-bit 80-bit
551
- * timestamp randomness
552
- * ```
553
- *
554
- * The first 10 chars encode a millisecond Unix timestamp (so ULIDs
555
- * sort lexicographically by creation time), and the remaining 16
556
- * chars are random. Crockford base32 omits I/L/O/U to avoid
557
- * ambiguity in handwriting and URLs.
558
- *
559
- * **Why hand-roll instead of pulling in `ulid`?** The package adds
560
- * a dep, the implementation is ~30 lines, and the bundle module
561
- * is the only consumer. Adding `ulid` would also drag in its own
562
- * crypto polyfill that we don't need on Node 18+ or modern
563
- * browsers.
552
+ * Decrypt every record of an extracted-partition bundle to plaintext,
553
+ * grouped by collection. Throws if the bundle isn't an
554
+ * extracted-partition or the transfer key is wrong.
555
+ */
556
+ declare function decryptExtractedPartition(bundleBytes: Uint8Array, transferKey: Uint8Array): Promise<Record<string, DecryptedRecord[]>>;
557
+
558
+ /**
559
+ * Multi-compartment `.noydb` bundle (`NDBM`). A thin outer container
560
+ * that embeds N standard single-vault `.noydb` bundles plus an
561
+ * unencrypted, owner-curated **manifest**. The v1 single-vault format
562
+ * is untouched; each compartment is a complete v1 bundle, produced by
563
+ * `writeNoydbBundle` and read by `readNoydbBundle`.
564
564
  *
565
- * **Privacy consideration:** the timestamp prefix is observable in
566
- * the bundle header. This is a deliberate trade-off:
567
- * - Pro: lexicographic sortability lets bundle adapters list
568
- * newest-first without an extra index.
569
- * - Con: a casual observer can read the bundle's creation time
570
- * from the handle. They cannot read it from any OTHER field
571
- * (the header explicitly forbids `_exported_at`), and a
572
- * creation timestamp is the same kind of metadata that
573
- * filesystem mtime would already expose for a downloaded
574
- * bundle. The leak is therefore equivalent to what's already
575
- * visible from the file's mtime — not a new exposure.
565
+ * Layout: magic 'NDBM'(4) · version(1) · reserved(1) · manifestLen(4 BE)
566
+ * · manifest JSON · concat(inner v1 bundles, in manifest order).
576
567
  *
577
- * If a future use case needs timestamp-free handles, a v2 of the
578
- * format could specify "use the random portion only" without a
579
- * format break — `validateBundleHeader` only checks the regex
580
- * shape, not the encoded timestamp.
568
+ * @packageDocumentation
581
569
  */
570
+
571
+ /** Magic bytes 'NDBM' — NOYDB Multi-compartment bundle. */
572
+ declare const NOYDB_MULTI_BUNDLE_MAGIC: Uint8Array<ArrayBuffer>;
573
+ /** Fixed prefix: magic(4) + version(1) + reserved(1) + manifestLen(4). */
574
+ declare const NOYDB_MULTI_BUNDLE_PREFIX_BYTES = 10;
575
+ /** Current multi-bundle layout version. */
576
+ declare const NOYDB_MULTI_BUNDLE_VERSION = 1;
577
+ /** One compartment's entry in the pre-decrypt manifest. */
578
+ interface CompartmentManifest {
579
+ /** The inner v1 bundle's stable ULID handle. */
580
+ readonly handle: string;
581
+ /** Owner-curated classification (e.g. 'shard', 'pool'). Opt-in. */
582
+ readonly roleTag?: string;
583
+ /** ISO export timestamp. Always set by the writer; absent for a v1 bundle read as a 1-entry manifest. */
584
+ readonly exportedAt?: string;
585
+ /** Compartment (vault) name. Opt-in disclosure. */
586
+ readonly name?: string;
587
+ /** Collection names + record counts. Opt-in disclosure. */
588
+ readonly collections?: readonly {
589
+ readonly name: string;
590
+ readonly count: number;
591
+ }[];
592
+ /** Inner bundle's owner-curated public envelope, surfaced. Opt-in. */
593
+ readonly publicEnvelope?: PublicEnvelope;
594
+ /** Byte length of the inner v1 bundle (drives framing). */
595
+ readonly innerBytes: number;
596
+ /** SHA-256 (lowercase hex) of the inner v1 bundle bytes — pre-decrypt integrity. */
597
+ readonly innerSha256: string;
598
+ /** Source vault's schema fence version at extract time (FR-8). Opt-in; absent on older bundles. */
599
+ readonly schemaVersion?: number;
600
+ }
601
+ /** The unencrypted manifest of a multi-compartment bundle. */
602
+ interface MultiBundleManifest {
603
+ readonly multiFormatVersion: number;
604
+ /** Opaque ULID for the outer container. */
605
+ readonly handle: string;
606
+ readonly compartments: readonly CompartmentManifest[];
607
+ }
608
+ /** Assemble the `NDBM` container from a manifest + inner bundle bytes (in manifest order). */
609
+ declare function encodeMultiBundle(manifest: MultiBundleManifest, inner: readonly Uint8Array[]): Uint8Array;
610
+ /** Parse the `NDBM` container into its manifest + raw inner bundle byte slices. */
611
+ declare function decodeMultiBundle(bytes: Uint8Array): {
612
+ manifest: MultiBundleManifest;
613
+ inner: Uint8Array[];
614
+ };
615
+ /** Per-compartment input to {@link writeMultiVaultBundle}. */
616
+ interface MultiVaultCompartmentInput {
617
+ readonly vault: Vault;
618
+ /** Owner-curated classification surfaced in the manifest (e.g. 'shard', 'pool'). */
619
+ readonly roleTag?: string;
620
+ /** ISO timestamp for the manifest; defaults to now. */
621
+ readonly exportedAt?: string;
622
+ /** Opt-in pre-decrypt disclosure for this compartment. */
623
+ readonly disclose?: {
624
+ /** `true` → use `vault.name`; a string → that explicit name. */
625
+ readonly name?: boolean | string;
626
+ /** `true` → include collection names + record counts. */
627
+ readonly collections?: boolean;
628
+ /** `true` → surface the inner bundle's public envelope into the manifest. */
629
+ readonly publicEnvelope?: boolean;
630
+ };
631
+ /** Options forwarded to `writeNoydbBundle` for this compartment's inner bundle. */
632
+ readonly bundleOptions?: WriteNoydbBundleOptions;
633
+ }
634
+ /** Write N vaults into one `NDBM` multi-compartment bundle. */
635
+ declare function writeMultiVaultBundle(compartments: readonly MultiVaultCompartmentInput[], opts?: {
636
+ readonly handle?: string;
637
+ }): Promise<Uint8Array>;
582
638
  /**
583
- * Generate a fresh ULID. Uses `crypto.getRandomValues` for the
584
- * randomness portion same Web Crypto API the rest of the
585
- * codebase uses for IVs and salt.
586
- *
587
- * Returns a 26-character string. Calling twice in the same
588
- * millisecond produces two distinct ULIDs (the random portion
589
- * differs); ULIDs from the same millisecond are NOT guaranteed
590
- * to be monotonically ordered relative to each other, only
591
- * relative to ULIDs from a different millisecond. The bundle
592
- * format never relies on intra-millisecond ordering.
639
+ * Read the pre-decrypt manifest of a bundle WITHOUT decrypting any
640
+ * compartment. Accepts a multi-compartment `NDBM` bundle (returns its
641
+ * N entries) OR a single v1 `NDB1` bundle (returns a 1-entry manifest,
642
+ * for uniform handling). Throws on anything else.
593
643
  */
594
- declare function generateULID(): string;
644
+ declare function readNoydbBundleManifest(bytes: Uint8Array): Promise<CompartmentManifest[]>;
595
645
  /**
596
- * Validate that a string is a syntactically well-formed ULID. Used
597
- * by the bundle header validator. Does NOT verify that the
598
- * timestamp portion decodes to a sensible date the format only
599
- * cares about the encoding shape.
646
+ * Extract one compartment's inner v1 `.noydb` bundle bytes, ready to
647
+ * pass to `readNoydbBundle`. `selector` is a compartment `handle` or a
648
+ * zero-based index. For a single v1 bundle, the bundle itself is the
649
+ * only compartment.
650
+ *
651
+ * Does NOT verify the manifest `innerSha256` — it returns the raw
652
+ * slice. Integrity is enforced downstream: `readNoydbBundle` verifies
653
+ * the inner bundle's own `bodySha256`. Callers wanting an early,
654
+ * pre-decrypt check can hash the returned bytes against the
655
+ * compartment's `innerSha256`.
600
656
  */
601
- declare function isULID(value: string): boolean;
657
+ declare function readMultiVaultBundleCompartment(bytes: Uint8Array, selector: string | number): Uint8Array;
602
658
 
603
- export { type AutoCredential as A, COMPRESSION_BROTLI as C, FLAG_COMPRESSED as F, NOYDB_BUNDLE_FORMAT_VERSION as N, type ReadNoydbBundleOptions as R, type TransferSealPayload as T, type WriteNoydbBundleOptions as W, COMPRESSION_GZIP as a, COMPRESSION_NONE as b, type CompressionAlgo as c, FLAG_HAS_INTEGRITY_HASH as d, NOYDB_BUNDLE_MAGIC as e, NOYDB_BUNDLE_PREFIX_BYTES as f, type NoydbBundleHeader as g, type NoydbBundleReadResult as h, encodeBundleHeader as i, generateULID as j, isULID as k, readNoydbBundleHeader as l, resetBrotliSupportCache as m, type AutoCredentialKind as n, hasNoydbBundleMagic as o, readNoydbBundlePublicEnvelope as p, readNoydbBundle as r, validateBundleHeader as v, writeNoydbBundle as w };
659
+ export { type AutoCredential as A, hasNoydbBundleMagic as B, COMPRESSION_BROTLI as C, type DecryptedRecord as D, readNoydbBundlePublicEnvelope as E, FLAG_COMPRESSED as F, type MultiBundleManifest as M, NOYDB_BUNDLE_FORMAT_VERSION as N, type ReadNoydbBundleOptions as R, type TransferSealPayload as T, type WriteNoydbBundleOptions as W, COMPRESSION_GZIP as a, COMPRESSION_NONE as b, type CompartmentManifest as c, type CompressionAlgo as d, FLAG_HAS_INTEGRITY_HASH as e, type MultiVaultCompartmentInput as f, NOYDB_BUNDLE_MAGIC as g, NOYDB_BUNDLE_PREFIX_BYTES as h, NOYDB_MULTI_BUNDLE_MAGIC as i, NOYDB_MULTI_BUNDLE_PREFIX_BYTES as j, NOYDB_MULTI_BUNDLE_VERSION as k, type NoydbBundleHeader as l, type NoydbBundleReadResult as m, decodeMultiBundle as n, decryptExtractedPartition as o, encodeBundleHeader as p, encodeMultiBundle as q, readMultiVaultBundleCompartment as r, readNoydbBundle as s, readNoydbBundleHeader as t, readNoydbBundleManifest as u, resetBrotliSupportCache as v, validateBundleHeader as w, writeMultiVaultBundle as x, writeNoydbBundle as y, type AutoCredentialKind as z };
@@ -1,4 +1,4 @@
1
- import { bc as PublicEnvelope, bd as SealingKeyProvider, be as BundleRecipient, bf as RecipientSealer, bg as RecipientHint, bh as Vault } from './types-DONgts0n.js';
1
+ import { bg as PublicEnvelope, bh as BundleRecipient, bd as SealingKeyProvider, bi as RecipientSealer, bj as RecipientHint, bc as Vault } from './types-COQ6qJZh.cjs';
2
2
 
3
3
  /**
4
4
  * `.noydb` container format — byte layout, header schema, validators.
@@ -535,69 +535,125 @@ declare function readNoydbBundlePublicEnvelope(bytes: Uint8Array, opts?: {
535
535
  */
536
536
  declare function readNoydbBundle(bytes: Uint8Array, opts?: ReadNoydbBundleOptions): Promise<NoydbBundleReadResult>;
537
537
 
538
+ /** One decrypted record from an extracted-partition compartment. */
539
+ interface DecryptedRecord {
540
+ readonly id: string;
541
+ readonly record: Record<string, unknown>;
542
+ /** Source envelope write timestamp (ISO) — for last-write-wins merges. */
543
+ readonly ts: string;
544
+ /** Source envelope version. */
545
+ readonly version: number;
546
+ /** Provenance source id (FR-5). Present only when the source collection had provenance:true and a source was supplied on put. */
547
+ readonly source?: string;
548
+ /** ISO-8601 timestamp the provenance source was recorded (FR-5). */
549
+ readonly sourceTs?: string;
550
+ }
538
551
  /**
539
- * Minimal ULID generator zero dependencies, Web Crypto API only.
540
- *
541
- *. Used by the bundle writer to generate stable opaque
542
- * handles for `.noydb` containers.
543
- *
544
- * **What's a ULID?** A 128-bit identifier encoded as 26 Crockford
545
- * base32 characters. Layout:
546
- *
547
- * ```
548
- * 01HYABCDEFGHJKMNPQRSTVWXYZ
549
- * |--------||---------------|
550
- * 48-bit 80-bit
551
- * timestamp randomness
552
- * ```
553
- *
554
- * The first 10 chars encode a millisecond Unix timestamp (so ULIDs
555
- * sort lexicographically by creation time), and the remaining 16
556
- * chars are random. Crockford base32 omits I/L/O/U to avoid
557
- * ambiguity in handwriting and URLs.
558
- *
559
- * **Why hand-roll instead of pulling in `ulid`?** The package adds
560
- * a dep, the implementation is ~30 lines, and the bundle module
561
- * is the only consumer. Adding `ulid` would also drag in its own
562
- * crypto polyfill that we don't need on Node 18+ or modern
563
- * browsers.
552
+ * Decrypt every record of an extracted-partition bundle to plaintext,
553
+ * grouped by collection. Throws if the bundle isn't an
554
+ * extracted-partition or the transfer key is wrong.
555
+ */
556
+ declare function decryptExtractedPartition(bundleBytes: Uint8Array, transferKey: Uint8Array): Promise<Record<string, DecryptedRecord[]>>;
557
+
558
+ /**
559
+ * Multi-compartment `.noydb` bundle (`NDBM`). A thin outer container
560
+ * that embeds N standard single-vault `.noydb` bundles plus an
561
+ * unencrypted, owner-curated **manifest**. The v1 single-vault format
562
+ * is untouched; each compartment is a complete v1 bundle, produced by
563
+ * `writeNoydbBundle` and read by `readNoydbBundle`.
564
564
  *
565
- * **Privacy consideration:** the timestamp prefix is observable in
566
- * the bundle header. This is a deliberate trade-off:
567
- * - Pro: lexicographic sortability lets bundle adapters list
568
- * newest-first without an extra index.
569
- * - Con: a casual observer can read the bundle's creation time
570
- * from the handle. They cannot read it from any OTHER field
571
- * (the header explicitly forbids `_exported_at`), and a
572
- * creation timestamp is the same kind of metadata that
573
- * filesystem mtime would already expose for a downloaded
574
- * bundle. The leak is therefore equivalent to what's already
575
- * visible from the file's mtime — not a new exposure.
565
+ * Layout: magic 'NDBM'(4) · version(1) · reserved(1) · manifestLen(4 BE)
566
+ * · manifest JSON · concat(inner v1 bundles, in manifest order).
576
567
  *
577
- * If a future use case needs timestamp-free handles, a v2 of the
578
- * format could specify "use the random portion only" without a
579
- * format break — `validateBundleHeader` only checks the regex
580
- * shape, not the encoded timestamp.
568
+ * @packageDocumentation
581
569
  */
570
+
571
+ /** Magic bytes 'NDBM' — NOYDB Multi-compartment bundle. */
572
+ declare const NOYDB_MULTI_BUNDLE_MAGIC: Uint8Array<ArrayBuffer>;
573
+ /** Fixed prefix: magic(4) + version(1) + reserved(1) + manifestLen(4). */
574
+ declare const NOYDB_MULTI_BUNDLE_PREFIX_BYTES = 10;
575
+ /** Current multi-bundle layout version. */
576
+ declare const NOYDB_MULTI_BUNDLE_VERSION = 1;
577
+ /** One compartment's entry in the pre-decrypt manifest. */
578
+ interface CompartmentManifest {
579
+ /** The inner v1 bundle's stable ULID handle. */
580
+ readonly handle: string;
581
+ /** Owner-curated classification (e.g. 'shard', 'pool'). Opt-in. */
582
+ readonly roleTag?: string;
583
+ /** ISO export timestamp. Always set by the writer; absent for a v1 bundle read as a 1-entry manifest. */
584
+ readonly exportedAt?: string;
585
+ /** Compartment (vault) name. Opt-in disclosure. */
586
+ readonly name?: string;
587
+ /** Collection names + record counts. Opt-in disclosure. */
588
+ readonly collections?: readonly {
589
+ readonly name: string;
590
+ readonly count: number;
591
+ }[];
592
+ /** Inner bundle's owner-curated public envelope, surfaced. Opt-in. */
593
+ readonly publicEnvelope?: PublicEnvelope;
594
+ /** Byte length of the inner v1 bundle (drives framing). */
595
+ readonly innerBytes: number;
596
+ /** SHA-256 (lowercase hex) of the inner v1 bundle bytes — pre-decrypt integrity. */
597
+ readonly innerSha256: string;
598
+ /** Source vault's schema fence version at extract time (FR-8). Opt-in; absent on older bundles. */
599
+ readonly schemaVersion?: number;
600
+ }
601
+ /** The unencrypted manifest of a multi-compartment bundle. */
602
+ interface MultiBundleManifest {
603
+ readonly multiFormatVersion: number;
604
+ /** Opaque ULID for the outer container. */
605
+ readonly handle: string;
606
+ readonly compartments: readonly CompartmentManifest[];
607
+ }
608
+ /** Assemble the `NDBM` container from a manifest + inner bundle bytes (in manifest order). */
609
+ declare function encodeMultiBundle(manifest: MultiBundleManifest, inner: readonly Uint8Array[]): Uint8Array;
610
+ /** Parse the `NDBM` container into its manifest + raw inner bundle byte slices. */
611
+ declare function decodeMultiBundle(bytes: Uint8Array): {
612
+ manifest: MultiBundleManifest;
613
+ inner: Uint8Array[];
614
+ };
615
+ /** Per-compartment input to {@link writeMultiVaultBundle}. */
616
+ interface MultiVaultCompartmentInput {
617
+ readonly vault: Vault;
618
+ /** Owner-curated classification surfaced in the manifest (e.g. 'shard', 'pool'). */
619
+ readonly roleTag?: string;
620
+ /** ISO timestamp for the manifest; defaults to now. */
621
+ readonly exportedAt?: string;
622
+ /** Opt-in pre-decrypt disclosure for this compartment. */
623
+ readonly disclose?: {
624
+ /** `true` → use `vault.name`; a string → that explicit name. */
625
+ readonly name?: boolean | string;
626
+ /** `true` → include collection names + record counts. */
627
+ readonly collections?: boolean;
628
+ /** `true` → surface the inner bundle's public envelope into the manifest. */
629
+ readonly publicEnvelope?: boolean;
630
+ };
631
+ /** Options forwarded to `writeNoydbBundle` for this compartment's inner bundle. */
632
+ readonly bundleOptions?: WriteNoydbBundleOptions;
633
+ }
634
+ /** Write N vaults into one `NDBM` multi-compartment bundle. */
635
+ declare function writeMultiVaultBundle(compartments: readonly MultiVaultCompartmentInput[], opts?: {
636
+ readonly handle?: string;
637
+ }): Promise<Uint8Array>;
582
638
  /**
583
- * Generate a fresh ULID. Uses `crypto.getRandomValues` for the
584
- * randomness portion same Web Crypto API the rest of the
585
- * codebase uses for IVs and salt.
586
- *
587
- * Returns a 26-character string. Calling twice in the same
588
- * millisecond produces two distinct ULIDs (the random portion
589
- * differs); ULIDs from the same millisecond are NOT guaranteed
590
- * to be monotonically ordered relative to each other, only
591
- * relative to ULIDs from a different millisecond. The bundle
592
- * format never relies on intra-millisecond ordering.
639
+ * Read the pre-decrypt manifest of a bundle WITHOUT decrypting any
640
+ * compartment. Accepts a multi-compartment `NDBM` bundle (returns its
641
+ * N entries) OR a single v1 `NDB1` bundle (returns a 1-entry manifest,
642
+ * for uniform handling). Throws on anything else.
593
643
  */
594
- declare function generateULID(): string;
644
+ declare function readNoydbBundleManifest(bytes: Uint8Array): Promise<CompartmentManifest[]>;
595
645
  /**
596
- * Validate that a string is a syntactically well-formed ULID. Used
597
- * by the bundle header validator. Does NOT verify that the
598
- * timestamp portion decodes to a sensible date the format only
599
- * cares about the encoding shape.
646
+ * Extract one compartment's inner v1 `.noydb` bundle bytes, ready to
647
+ * pass to `readNoydbBundle`. `selector` is a compartment `handle` or a
648
+ * zero-based index. For a single v1 bundle, the bundle itself is the
649
+ * only compartment.
650
+ *
651
+ * Does NOT verify the manifest `innerSha256` — it returns the raw
652
+ * slice. Integrity is enforced downstream: `readNoydbBundle` verifies
653
+ * the inner bundle's own `bodySha256`. Callers wanting an early,
654
+ * pre-decrypt check can hash the returned bytes against the
655
+ * compartment's `innerSha256`.
600
656
  */
601
- declare function isULID(value: string): boolean;
657
+ declare function readMultiVaultBundleCompartment(bytes: Uint8Array, selector: string | number): Uint8Array;
602
658
 
603
- export { type AutoCredential as A, COMPRESSION_BROTLI as C, FLAG_COMPRESSED as F, NOYDB_BUNDLE_FORMAT_VERSION as N, type ReadNoydbBundleOptions as R, type TransferSealPayload as T, type WriteNoydbBundleOptions as W, COMPRESSION_GZIP as a, COMPRESSION_NONE as b, type CompressionAlgo as c, FLAG_HAS_INTEGRITY_HASH as d, NOYDB_BUNDLE_MAGIC as e, NOYDB_BUNDLE_PREFIX_BYTES as f, type NoydbBundleHeader as g, type NoydbBundleReadResult as h, encodeBundleHeader as i, generateULID as j, isULID as k, readNoydbBundleHeader as l, resetBrotliSupportCache as m, type AutoCredentialKind as n, hasNoydbBundleMagic as o, readNoydbBundlePublicEnvelope as p, readNoydbBundle as r, validateBundleHeader as v, writeNoydbBundle as w };
659
+ export { type AutoCredential as A, hasNoydbBundleMagic as B, COMPRESSION_BROTLI as C, type DecryptedRecord as D, readNoydbBundlePublicEnvelope as E, FLAG_COMPRESSED as F, type MultiBundleManifest as M, NOYDB_BUNDLE_FORMAT_VERSION as N, type ReadNoydbBundleOptions as R, type TransferSealPayload as T, type WriteNoydbBundleOptions as W, COMPRESSION_GZIP as a, COMPRESSION_NONE as b, type CompartmentManifest as c, type CompressionAlgo as d, FLAG_HAS_INTEGRITY_HASH as e, type MultiVaultCompartmentInput as f, NOYDB_BUNDLE_MAGIC as g, NOYDB_BUNDLE_PREFIX_BYTES as h, NOYDB_MULTI_BUNDLE_MAGIC as i, NOYDB_MULTI_BUNDLE_PREFIX_BYTES as j, NOYDB_MULTI_BUNDLE_VERSION as k, type NoydbBundleHeader as l, type NoydbBundleReadResult as m, decodeMultiBundle as n, decryptExtractedPartition as o, encodeBundleHeader as p, encodeMultiBundle as q, readMultiVaultBundleCompartment as r, readNoydbBundle as s, readNoydbBundleHeader as t, readNoydbBundleManifest as u, resetBrotliSupportCache as v, validateBundleHeader as w, writeMultiVaultBundle as x, writeNoydbBundle as y, type AutoCredentialKind as z };
@@ -0,0 +1,38 @@
1
+ import {
2
+ Noydb,
3
+ createNoydb
4
+ } from "./chunk-QOXZM3L2.js";
5
+ import "./chunk-EMIGCR7X.js";
6
+ import "./chunk-BCMHJYVT.js";
7
+ import "./chunk-CCNRFAL3.js";
8
+ import "./chunk-3XJU3OHE.js";
9
+ import "./chunk-FG6IQ3ZL.js";
10
+ import "./chunk-U6LTLN7O.js";
11
+ import "./chunk-JKM2AVVH.js";
12
+ import "./chunk-TQMQZOMX.js";
13
+ import "./chunk-77WF53XY.js";
14
+ import "./chunk-GEWIFM4J.js";
15
+ import "./chunk-XC32SZPW.js";
16
+ import "./chunk-4TCMCCC3.js";
17
+ import "./chunk-P7OL22JP.js";
18
+ import "./chunk-DCA2BDHA.js";
19
+ import "./chunk-HHJ5DZCZ.js";
20
+ import "./chunk-UF3BUNQZ.js";
21
+ import "./chunk-7X4EF35A.js";
22
+ import "./chunk-HD4QCT2O.js";
23
+ import "./chunk-OWAMTSAI.js";
24
+ import "./chunk-TOMSCJRV.js";
25
+ import "./chunk-B5CSNGSE.js";
26
+ import "./chunk-2QR2PQTT.js";
27
+ import "./chunk-FZU343FL.js";
28
+ import "./chunk-AONK5GCC.js";
29
+ import "./chunk-PDVP3C2I.js";
30
+ import "./chunk-35U5YNRR.js";
31
+ import "./chunk-LR7CODVN.js";
32
+ import "./chunk-WQ3KAGOV.js";
33
+ import "./chunk-4BB4T3O7.js";
34
+ export {
35
+ Noydb,
36
+ createNoydb
37
+ };
38
+ //# sourceMappingURL=noydb-2PI2ZBX6.js.map