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

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 (264) 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 +5 -5
  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 +5 -5
  13. package/dist/bundle/index.cjs +4 -207
  14. package/dist/bundle/index.cjs.map +1 -1
  15. package/dist/bundle/index.d.cts +6 -6
  16. package/dist/bundle/index.d.ts +6 -6
  17. package/dist/bundle/index.js +10 -26
  18. package/dist/bundle/index.js.map +1 -1
  19. package/dist/{chunk-ZBENTRFS.js → chunk-2KA3PDUR.js} +2 -2
  20. package/dist/{chunk-OWAMTSAI.js → chunk-2RHBFCWQ.js} +5 -5
  21. package/dist/{chunk-GEWIFM4J.js → chunk-3BANVNDH.js} +2 -2
  22. package/dist/{chunk-QOXZM3L2.js → chunk-56ENKU46.js} +49 -62
  23. package/dist/{chunk-QOXZM3L2.js.map → chunk-56ENKU46.js.map} +1 -1
  24. package/dist/{chunk-WQ3KAGOV.js → chunk-7JSP3E67.js} +2 -2
  25. package/dist/{chunk-RNQPDV75.js → chunk-ANLOD6IS.js} +4 -4
  26. package/dist/{chunk-77WF53XY.js → chunk-C7UIT5XY.js} +4 -4
  27. package/dist/{chunk-4BB4T3O7.js → chunk-DDOYOMAD.js} +2 -12
  28. package/dist/chunk-DDOYOMAD.js.map +1 -0
  29. package/dist/{chunk-R5ZECURV.js → chunk-E5TJAQS7.js} +2 -2
  30. package/dist/{chunk-BCMHJYVT.js → chunk-EJJTUDNI.js} +3 -3
  31. package/dist/{chunk-JKM2AVVH.js → chunk-EW3H5Y7N.js} +2 -2
  32. package/dist/{chunk-AONK5GCC.js → chunk-EYZJULEN.js} +3 -3
  33. package/dist/{chunk-HHJ5DZCZ.js → chunk-FCIZXX56.js} +3 -3
  34. package/dist/{chunk-G4GW5VOS.js → chunk-FJ3C3ELF.js} +2 -2
  35. package/dist/{chunk-TQMQZOMX.js → chunk-FO5WEDKF.js} +2 -2
  36. package/dist/{chunk-7ZCTUI26.js → chunk-FUDVHE2U.js} +2 -2
  37. package/dist/{chunk-4HEGG5NJ.js → chunk-GHXOVGTX.js} +4 -4
  38. package/dist/{chunk-UAK2AMO2.js → chunk-GPZHHTJU.js} +3 -3
  39. package/dist/{chunk-U6LTLN7O.js → chunk-H4XFA2LM.js} +3 -3
  40. package/dist/{chunk-P7OL22JP.js → chunk-HUXDQIVU.js} +2 -2
  41. package/dist/{chunk-TOMSCJRV.js → chunk-J73KU4AE.js} +2 -2
  42. package/dist/{chunk-7X4EF35A.js → chunk-JJKXJAH2.js} +4 -4
  43. package/dist/{chunk-HD4QCT2O.js → chunk-KD253AI5.js} +2 -2
  44. package/dist/{chunk-SGM7CK7R.js → chunk-KJ37E3R5.js} +4 -4
  45. package/dist/{chunk-LMWVNF6X.js → chunk-KNJ7MK4B.js} +2 -2
  46. package/dist/{chunk-AO3QSMCU.js → chunk-LX4CPLU6.js} +2 -2
  47. package/dist/{chunk-4TCMCCC3.js → chunk-N4EXCKWP.js} +3 -5
  48. package/dist/{chunk-JRMOSIH4.js → chunk-OCRDV3NU.js} +4 -4
  49. package/dist/{chunk-DCICHSRS.js → chunk-OMBPGXCL.js} +2 -2
  50. package/dist/{chunk-3XJU3OHE.js → chunk-PS6PSEZL.js} +5 -5
  51. package/dist/{chunk-ZDITTESU.js → chunk-Q7P4WHTL.js} +2 -2
  52. package/dist/{chunk-OKV7S356.js → chunk-QYQRAOEF.js} +3 -3
  53. package/dist/{chunk-IEIADIPM.js → chunk-RHVYFAVQ.js} +2 -2
  54. package/dist/{chunk-R43KS34V.js → chunk-RZOGD7IF.js} +10 -177
  55. package/dist/chunk-RZOGD7IF.js.map +1 -0
  56. package/dist/{chunk-IHAISFXP.js → chunk-SKYBEGHB.js} +2 -2
  57. package/dist/{chunk-SOQE5DUV.js → chunk-TESFHBOW.js} +3 -3
  58. package/dist/{chunk-35U5YNRR.js → chunk-TSUICI5N.js} +2 -2
  59. package/dist/{chunk-B5CSNGSE.js → chunk-UNBX2HMA.js} +3 -3
  60. package/dist/{chunk-C472BRJ4.js → chunk-VGAN5RLD.js} +3 -3
  61. package/dist/{chunk-5A2FVGHT.js → chunk-VJNV2GRF.js} +5 -5
  62. package/dist/{chunk-5GZC2ZM3.js → chunk-VUUQYWF5.js} +2 -2
  63. package/dist/{chunk-P5A4E53B.js → chunk-WVYL6HM7.js} +2 -2
  64. package/dist/{chunk-DCA2BDHA.js → chunk-Y5CTT6K5.js} +3 -3
  65. package/dist/{chunk-XC32SZPW.js → chunk-YP2AYE5W.js} +2 -2
  66. package/dist/{chunk-RFEXGW3L.js → chunk-YRQPI67X.js} +2 -2
  67. package/dist/{chunk-CCNRFAL3.js → chunk-YYTM4U4J.js} +2 -2
  68. package/dist/{chunk-FG6IQ3ZL.js → chunk-ZCBJIDT4.js} +2 -2
  69. package/dist/{chunk-XQO4TAJS.js → chunk-ZW2YSN6G.js} +4 -4
  70. package/dist/consent/index.cjs.map +1 -1
  71. package/dist/consent/index.d.cts +5 -5
  72. package/dist/consent/index.d.ts +5 -5
  73. package/dist/consent/index.js +3 -3
  74. package/dist/{crypto-2LU6XUFF.js → crypto-YBKBNPVM.js} +3 -3
  75. package/dist/{multi-bundle-6s5nKAZX.d.ts → decrypt-partition-C71vhnND.d.cts} +2 -103
  76. package/dist/{multi-bundle-WhYiJEgV.d.cts → decrypt-partition-CyyJUWLR.d.ts} +2 -103
  77. package/dist/{delegation-6ABSJGXV.js → delegation-4JSMM6BB.js} +5 -5
  78. package/dist/derivations/index.cjs.map +1 -1
  79. package/dist/derivations/index.d.cts +6 -6
  80. package/dist/derivations/index.d.ts +6 -6
  81. package/dist/derivations/index.js +4 -4
  82. package/dist/{dev-unlock-DURe4IvF.d.cts → dev-unlock-BdrE0kbS.d.cts} +1 -1
  83. package/dist/{dev-unlock-BlhRHr6p.d.ts → dev-unlock-ByBkl99-.d.ts} +1 -1
  84. package/dist/{errors-B2tUcRPg.d.ts → errors-Dwk2k1xY.d.cts} +1 -6
  85. package/dist/{errors-B2tUcRPg.d.cts → errors-Dwk2k1xY.d.ts} +1 -6
  86. package/dist/executor-3SVNESQ3.js +8 -0
  87. package/dist/executor-BIW4FT5R.js +12 -0
  88. package/dist/executor-VEZUBJNQ.js +8 -0
  89. package/dist/forget/index.js +3 -3
  90. package/dist/guards/index.cjs.map +1 -1
  91. package/dist/guards/index.d.cts +6 -6
  92. package/dist/guards/index.d.ts +6 -6
  93. package/dist/guards/index.js +3 -3
  94. package/dist/{hash-CqRZfDZH.d.cts → hash-BUkDp_8Q.d.cts} +1 -1
  95. package/dist/{hash-cF4iWaBV.d.ts → hash-CZxVv8RH.d.ts} +1 -1
  96. package/dist/history/index.cjs.map +1 -1
  97. package/dist/history/index.d.cts +6 -6
  98. package/dist/history/index.d.ts +6 -6
  99. package/dist/history/index.js +4 -4
  100. package/dist/i18n/index.cjs.map +1 -1
  101. package/dist/i18n/index.d.cts +5 -5
  102. package/dist/i18n/index.d.ts +5 -5
  103. package/dist/i18n/index.js +5 -5
  104. package/dist/{index-da0M3NnR.d.cts → index-CBUhOmrM.d.cts} +4 -4
  105. package/dist/{index-B8MoIS7B.d.ts → index-DFhKV-6A.d.ts} +4 -4
  106. package/dist/{index-BthnP2MA.d.cts → index-DoxKSsMj.d.cts} +2 -2
  107. package/dist/{index-BLff_E35.d.ts → index-LaexBi3v.d.ts} +2 -2
  108. package/dist/index.cjs +5 -190
  109. package/dist/index.cjs.map +1 -1
  110. package/dist/index.d.cts +17 -17
  111. package/dist/index.d.ts +17 -17
  112. package/dist/index.js +46 -54
  113. package/dist/index.js.map +1 -1
  114. package/dist/indexing/index.cjs.map +1 -1
  115. package/dist/indexing/index.js +4 -4
  116. package/dist/issue-LEBPVF3Y.js +12 -0
  117. package/dist/kernel/index.cjs +1 -1
  118. package/dist/kernel/index.cjs.map +1 -1
  119. package/dist/kernel/index.d.cts +5 -5
  120. package/dist/kernel/index.d.ts +5 -5
  121. package/dist/kernel/index.js +5 -5
  122. package/dist/{ledger-VOS2X3WJ.js → ledger-FLRTSOYH.js} +4 -4
  123. package/dist/materialized-views/index.cjs.map +1 -1
  124. package/dist/materialized-views/index.d.cts +6 -6
  125. package/dist/materialized-views/index.d.ts +6 -6
  126. package/dist/materialized-views/index.js +8 -8
  127. package/dist/{mime-magic-CCrP-iXJ.d.cts → mime-magic-BAhLjkHw.d.cts} +1 -1
  128. package/dist/{mime-magic-BswIvWkR.d.ts → mime-magic-C1UbcBxP.d.ts} +1 -1
  129. package/dist/noydb-6FA46A4M.js +38 -0
  130. package/dist/overlay-views/index.cjs.map +1 -1
  131. package/dist/overlay-views/index.d.cts +6 -6
  132. package/dist/overlay-views/index.d.ts +6 -6
  133. package/dist/overlay-views/index.js +4 -4
  134. package/dist/periods/index.cjs.map +1 -1
  135. package/dist/periods/index.d.cts +5 -5
  136. package/dist/periods/index.d.ts +5 -5
  137. package/dist/periods/index.js +4 -4
  138. package/dist/{public-envelope-IJJMWSTJ.js → public-envelope-DBKJEBBF.js} +3 -3
  139. package/dist/query/index.cjs.map +1 -1
  140. package/dist/query/index.d.cts +3 -3
  141. package/dist/query/index.d.ts +3 -3
  142. package/dist/query/index.js +7 -7
  143. package/dist/registry-CMEVTOCN.js +8 -0
  144. package/dist/{registry-JGEVJ6YC.js → registry-OUZ3VBZA.js} +3 -3
  145. package/dist/registry-XUBRO5JJ.js +8 -0
  146. package/dist/{revoke-WUY4AYRJ.js → revoke-P5D3UTRX.js} +5 -5
  147. package/dist/sealed-record/index.cjs.map +1 -1
  148. package/dist/sealed-record/index.d.cts +1 -1
  149. package/dist/sealed-record/index.d.ts +1 -1
  150. package/dist/sealed-record/index.js +2 -2
  151. package/dist/session/index.cjs.map +1 -1
  152. package/dist/session/index.d.cts +6 -6
  153. package/dist/session/index.d.ts +6 -6
  154. package/dist/session/index.js +3 -3
  155. package/dist/shadow/index.cjs.map +1 -1
  156. package/dist/shadow/index.d.cts +5 -5
  157. package/dist/shadow/index.d.ts +5 -5
  158. package/dist/shadow/index.js +2 -2
  159. package/dist/{signer-UJF3CFDC.js → signer-NEQPCHMW.js} +4 -4
  160. package/dist/snapshots/index.cjs.map +1 -1
  161. package/dist/snapshots/index.d.cts +5 -5
  162. package/dist/snapshots/index.d.ts +5 -5
  163. package/dist/snapshots/index.js +3 -3
  164. package/dist/{stale-PW6VBGSP.js → stale-KKCHF2VB.js} +2 -2
  165. package/dist/store/index.cjs.map +1 -1
  166. package/dist/store/index.d.cts +5 -5
  167. package/dist/store/index.d.ts +5 -5
  168. package/dist/store/index.js +2 -2
  169. package/dist/{strategy-BWmgRPA2.d.cts → strategy-D1zjEV3n.d.cts} +1 -1
  170. package/dist/{strategy-D47TC5X6.d.ts → strategy-YQ1qJWyq.d.ts} +1 -1
  171. package/dist/sync/index.cjs.map +1 -1
  172. package/dist/sync/index.d.cts +4 -4
  173. package/dist/sync/index.d.ts +4 -4
  174. package/dist/sync/index.js +3 -3
  175. package/dist/team/index.cjs.map +1 -1
  176. package/dist/team/index.d.cts +5 -5
  177. package/dist/team/index.d.ts +5 -5
  178. package/dist/team/index.js +7 -7
  179. package/dist/{transition-guard-CQH5263l.d.ts → transition-guard-BSLdikC_.d.ts} +1 -1
  180. package/dist/{transition-guard-C3NxfVKk.d.cts → transition-guard-DPs6al8h.d.cts} +1 -1
  181. package/dist/tx/index.cjs.map +1 -1
  182. package/dist/tx/index.d.cts +5 -5
  183. package/dist/tx/index.d.ts +5 -5
  184. package/dist/tx/index.js +3 -3
  185. package/dist/{types-COQ6qJZh.d.cts → types-BCYvhKzr.d.cts} +7 -13
  186. package/dist/{types-BGRX6sPT.d.ts → types-CCq0WHh9.d.ts} +7 -13
  187. package/dist/util/index.cjs.map +1 -1
  188. package/dist/util/index.js +1 -1
  189. package/dist/{with-materialized-view-D4U-KrBH.d.cts → with-materialized-view-CTHe6uh9.d.cts} +1 -1
  190. package/dist/{with-materialized-view-Cj-6fuav.d.ts → with-materialized-view-DiD41wQp.d.ts} +1 -1
  191. package/dist/{with-overlayed-view-COp_7EEy.d.ts → with-overlayed-view-DlbsJMhF.d.ts} +1 -1
  192. package/dist/{with-overlayed-view-BKjdUPRx.d.cts → with-overlayed-view-Dlz5hcM8.d.cts} +1 -1
  193. package/dist/{with-rollup-C-Bok_o2.d.cts → with-rollup-BBWdrCvu.d.cts} +1 -1
  194. package/dist/{with-rollup-B1_ZjG02.d.ts → with-rollup-mT4_CWaU.d.ts} +1 -1
  195. package/package.json +3 -3
  196. package/dist/chunk-4BB4T3O7.js.map +0 -1
  197. package/dist/chunk-R43KS34V.js.map +0 -1
  198. package/dist/executor-JKMSEB34.js +0 -8
  199. package/dist/executor-UYXSQB4D.js +0 -12
  200. package/dist/executor-VJSCTBWY.js +0 -8
  201. package/dist/issue-KLRMW5DH.js +0 -12
  202. package/dist/noydb-2PI2ZBX6.js +0 -38
  203. package/dist/registry-GAIFVWXF.js +0 -8
  204. package/dist/registry-J77ZUQ7G.js +0 -8
  205. /package/dist/{chunk-ZBENTRFS.js.map → chunk-2KA3PDUR.js.map} +0 -0
  206. /package/dist/{chunk-OWAMTSAI.js.map → chunk-2RHBFCWQ.js.map} +0 -0
  207. /package/dist/{chunk-GEWIFM4J.js.map → chunk-3BANVNDH.js.map} +0 -0
  208. /package/dist/{chunk-WQ3KAGOV.js.map → chunk-7JSP3E67.js.map} +0 -0
  209. /package/dist/{chunk-RNQPDV75.js.map → chunk-ANLOD6IS.js.map} +0 -0
  210. /package/dist/{chunk-77WF53XY.js.map → chunk-C7UIT5XY.js.map} +0 -0
  211. /package/dist/{chunk-R5ZECURV.js.map → chunk-E5TJAQS7.js.map} +0 -0
  212. /package/dist/{chunk-BCMHJYVT.js.map → chunk-EJJTUDNI.js.map} +0 -0
  213. /package/dist/{chunk-JKM2AVVH.js.map → chunk-EW3H5Y7N.js.map} +0 -0
  214. /package/dist/{chunk-AONK5GCC.js.map → chunk-EYZJULEN.js.map} +0 -0
  215. /package/dist/{chunk-HHJ5DZCZ.js.map → chunk-FCIZXX56.js.map} +0 -0
  216. /package/dist/{chunk-G4GW5VOS.js.map → chunk-FJ3C3ELF.js.map} +0 -0
  217. /package/dist/{chunk-TQMQZOMX.js.map → chunk-FO5WEDKF.js.map} +0 -0
  218. /package/dist/{chunk-7ZCTUI26.js.map → chunk-FUDVHE2U.js.map} +0 -0
  219. /package/dist/{chunk-4HEGG5NJ.js.map → chunk-GHXOVGTX.js.map} +0 -0
  220. /package/dist/{chunk-UAK2AMO2.js.map → chunk-GPZHHTJU.js.map} +0 -0
  221. /package/dist/{chunk-U6LTLN7O.js.map → chunk-H4XFA2LM.js.map} +0 -0
  222. /package/dist/{chunk-P7OL22JP.js.map → chunk-HUXDQIVU.js.map} +0 -0
  223. /package/dist/{chunk-TOMSCJRV.js.map → chunk-J73KU4AE.js.map} +0 -0
  224. /package/dist/{chunk-7X4EF35A.js.map → chunk-JJKXJAH2.js.map} +0 -0
  225. /package/dist/{chunk-HD4QCT2O.js.map → chunk-KD253AI5.js.map} +0 -0
  226. /package/dist/{chunk-SGM7CK7R.js.map → chunk-KJ37E3R5.js.map} +0 -0
  227. /package/dist/{chunk-LMWVNF6X.js.map → chunk-KNJ7MK4B.js.map} +0 -0
  228. /package/dist/{chunk-AO3QSMCU.js.map → chunk-LX4CPLU6.js.map} +0 -0
  229. /package/dist/{chunk-4TCMCCC3.js.map → chunk-N4EXCKWP.js.map} +0 -0
  230. /package/dist/{chunk-JRMOSIH4.js.map → chunk-OCRDV3NU.js.map} +0 -0
  231. /package/dist/{chunk-DCICHSRS.js.map → chunk-OMBPGXCL.js.map} +0 -0
  232. /package/dist/{chunk-3XJU3OHE.js.map → chunk-PS6PSEZL.js.map} +0 -0
  233. /package/dist/{chunk-ZDITTESU.js.map → chunk-Q7P4WHTL.js.map} +0 -0
  234. /package/dist/{chunk-OKV7S356.js.map → chunk-QYQRAOEF.js.map} +0 -0
  235. /package/dist/{chunk-IEIADIPM.js.map → chunk-RHVYFAVQ.js.map} +0 -0
  236. /package/dist/{chunk-IHAISFXP.js.map → chunk-SKYBEGHB.js.map} +0 -0
  237. /package/dist/{chunk-SOQE5DUV.js.map → chunk-TESFHBOW.js.map} +0 -0
  238. /package/dist/{chunk-35U5YNRR.js.map → chunk-TSUICI5N.js.map} +0 -0
  239. /package/dist/{chunk-B5CSNGSE.js.map → chunk-UNBX2HMA.js.map} +0 -0
  240. /package/dist/{chunk-C472BRJ4.js.map → chunk-VGAN5RLD.js.map} +0 -0
  241. /package/dist/{chunk-5A2FVGHT.js.map → chunk-VJNV2GRF.js.map} +0 -0
  242. /package/dist/{chunk-5GZC2ZM3.js.map → chunk-VUUQYWF5.js.map} +0 -0
  243. /package/dist/{chunk-P5A4E53B.js.map → chunk-WVYL6HM7.js.map} +0 -0
  244. /package/dist/{chunk-DCA2BDHA.js.map → chunk-Y5CTT6K5.js.map} +0 -0
  245. /package/dist/{chunk-XC32SZPW.js.map → chunk-YP2AYE5W.js.map} +0 -0
  246. /package/dist/{chunk-RFEXGW3L.js.map → chunk-YRQPI67X.js.map} +0 -0
  247. /package/dist/{chunk-CCNRFAL3.js.map → chunk-YYTM4U4J.js.map} +0 -0
  248. /package/dist/{chunk-FG6IQ3ZL.js.map → chunk-ZCBJIDT4.js.map} +0 -0
  249. /package/dist/{chunk-XQO4TAJS.js.map → chunk-ZW2YSN6G.js.map} +0 -0
  250. /package/dist/{crypto-2LU6XUFF.js.map → crypto-YBKBNPVM.js.map} +0 -0
  251. /package/dist/{delegation-6ABSJGXV.js.map → delegation-4JSMM6BB.js.map} +0 -0
  252. /package/dist/{executor-JKMSEB34.js.map → executor-3SVNESQ3.js.map} +0 -0
  253. /package/dist/{executor-UYXSQB4D.js.map → executor-BIW4FT5R.js.map} +0 -0
  254. /package/dist/{executor-VJSCTBWY.js.map → executor-VEZUBJNQ.js.map} +0 -0
  255. /package/dist/{issue-KLRMW5DH.js.map → issue-LEBPVF3Y.js.map} +0 -0
  256. /package/dist/{ledger-VOS2X3WJ.js.map → ledger-FLRTSOYH.js.map} +0 -0
  257. /package/dist/{noydb-2PI2ZBX6.js.map → noydb-6FA46A4M.js.map} +0 -0
  258. /package/dist/{public-envelope-IJJMWSTJ.js.map → public-envelope-DBKJEBBF.js.map} +0 -0
  259. /package/dist/{registry-GAIFVWXF.js.map → registry-CMEVTOCN.js.map} +0 -0
  260. /package/dist/{registry-J77ZUQ7G.js.map → registry-OUZ3VBZA.js.map} +0 -0
  261. /package/dist/{registry-JGEVJ6YC.js.map → registry-XUBRO5JJ.js.map} +0 -0
  262. /package/dist/{revoke-WUY4AYRJ.js.map → revoke-P5D3UTRX.js.map} +0 -0
  263. /package/dist/{signer-UJF3CFDC.js.map → signer-NEQPCHMW.js.map} +0 -0
  264. /package/dist/{stale-PW6VBGSP.js.map → stale-KKCHF2VB.js.map} +0 -0
@@ -1,13 +1,13 @@
1
- import { B as BlobStrategy } from '../types-COQ6qJZh.cjs';
2
- export { o as BLOB_CHUNKS_COLLECTION, p as BLOB_COLLECTION, q as BLOB_EVICTION_AUDIT_COLLECTION, r as BLOB_INDEX_COLLECTION, t as BLOB_SLOTS_PREFIX, u as BLOB_VERSIONS_PREFIX, w as BlobEvictionEntry, x as BlobFieldPolicy, y as BlobFieldsConfig, z as BlobObject, A as BlobPutOptions, C as BlobResponseOptions, E as BlobSet, F as BlobStrategyOpenArgs, G as CompactRunOptions, H as CompactionContext, J as CompactionResult, K as DEFAULT_CHUNK_SIZE, L as EXPORT_AUDIT_COLLECTION, M as ExportBlobsAbortedError, N as ExportBlobsAuditEntry, O as ExportBlobsHandle, Q as ExportBlobsOptions, R as ExportedBlob, T as ObjectListEntry, U as ObjectMeta, V as ObjectProjection, W as ObjectUrlOptions, X as PutObjectOptions, Y as PutUrlOptions, Z as SlotInfo, _ as SlotRecord, $ as VersionRecord, a0 as createExportBlobsHandle, a1 as memoryObjectProjection, a2 as runCompaction } from '../types-COQ6qJZh.cjs';
3
- export { I as ImportExternalOptions, a as ImportExternalResult, b as ImportableCollection, d as detectMagic, c as detectMimeType, i as importExternalObjects, e as isPreCompressed } from '../mime-magic-CCrP-iXJ.cjs';
1
+ import { B as BlobStrategy } from '../types-BCYvhKzr.cjs';
2
+ export { o as BLOB_CHUNKS_COLLECTION, p as BLOB_COLLECTION, q as BLOB_EVICTION_AUDIT_COLLECTION, r as BLOB_INDEX_COLLECTION, t as BLOB_SLOTS_PREFIX, u as BLOB_VERSIONS_PREFIX, w as BlobEvictionEntry, x as BlobFieldPolicy, y as BlobFieldsConfig, z as BlobObject, A as BlobPutOptions, C as BlobResponseOptions, E as BlobSet, F as BlobStrategyOpenArgs, G as CompactRunOptions, H as CompactionContext, J as CompactionResult, K as DEFAULT_CHUNK_SIZE, L as EXPORT_AUDIT_COLLECTION, M as ExportBlobsAbortedError, N as ExportBlobsAuditEntry, O as ExportBlobsHandle, Q as ExportBlobsOptions, R as ExportedBlob, T as ObjectListEntry, U as ObjectMeta, V as ObjectProjection, W as ObjectUrlOptions, X as PutObjectOptions, Y as PutUrlOptions, Z as SlotInfo, _ as SlotRecord, $ as VersionRecord, a0 as createExportBlobsHandle, a1 as memoryObjectProjection, a2 as runCompaction } from '../types-BCYvhKzr.cjs';
3
+ export { I as ImportExternalOptions, a as ImportExternalResult, b as ImportableCollection, d as detectMagic, c as detectMimeType, i as importExternalObjects, e as isPreCompressed } from '../mime-magic-BAhLjkHw.cjs';
4
4
  import '../lazy-builder-eYZzLEL1.cjs';
5
5
  import '../predicate-BmhBSPCH.cjs';
6
- import '../strategy-BWmgRPA2.cjs';
7
- import '../errors-B2tUcRPg.cjs';
6
+ import '../strategy-D1zjEV3n.cjs';
7
+ import '../errors-Dwk2k1xY.cjs';
8
8
  import '../strategy-BSxFXGzb.cjs';
9
9
  import '../index-BMmajblo.cjs';
10
- import '../index-BthnP2MA.cjs';
10
+ import '../index-DoxKSsMj.cjs';
11
11
  import '@noy-db/attestation';
12
12
 
13
13
  /**
@@ -1,13 +1,13 @@
1
- import { B as BlobStrategy } from '../types-BGRX6sPT.js';
2
- export { o as BLOB_CHUNKS_COLLECTION, p as BLOB_COLLECTION, q as BLOB_EVICTION_AUDIT_COLLECTION, r as BLOB_INDEX_COLLECTION, t as BLOB_SLOTS_PREFIX, u as BLOB_VERSIONS_PREFIX, w as BlobEvictionEntry, x as BlobFieldPolicy, y as BlobFieldsConfig, z as BlobObject, A as BlobPutOptions, C as BlobResponseOptions, E as BlobSet, F as BlobStrategyOpenArgs, G as CompactRunOptions, H as CompactionContext, J as CompactionResult, K as DEFAULT_CHUNK_SIZE, L as EXPORT_AUDIT_COLLECTION, M as ExportBlobsAbortedError, N as ExportBlobsAuditEntry, O as ExportBlobsHandle, Q as ExportBlobsOptions, R as ExportedBlob, T as ObjectListEntry, U as ObjectMeta, V as ObjectProjection, W as ObjectUrlOptions, X as PutObjectOptions, Y as PutUrlOptions, Z as SlotInfo, _ as SlotRecord, $ as VersionRecord, a0 as createExportBlobsHandle, a1 as memoryObjectProjection, a2 as runCompaction } from '../types-BGRX6sPT.js';
3
- export { I as ImportExternalOptions, a as ImportExternalResult, b as ImportableCollection, d as detectMagic, c as detectMimeType, i as importExternalObjects, e as isPreCompressed } from '../mime-magic-BswIvWkR.js';
1
+ import { B as BlobStrategy } from '../types-CCq0WHh9.js';
2
+ export { o as BLOB_CHUNKS_COLLECTION, p as BLOB_COLLECTION, q as BLOB_EVICTION_AUDIT_COLLECTION, r as BLOB_INDEX_COLLECTION, t as BLOB_SLOTS_PREFIX, u as BLOB_VERSIONS_PREFIX, w as BlobEvictionEntry, x as BlobFieldPolicy, y as BlobFieldsConfig, z as BlobObject, A as BlobPutOptions, C as BlobResponseOptions, E as BlobSet, F as BlobStrategyOpenArgs, G as CompactRunOptions, H as CompactionContext, J as CompactionResult, K as DEFAULT_CHUNK_SIZE, L as EXPORT_AUDIT_COLLECTION, M as ExportBlobsAbortedError, N as ExportBlobsAuditEntry, O as ExportBlobsHandle, Q as ExportBlobsOptions, R as ExportedBlob, T as ObjectListEntry, U as ObjectMeta, V as ObjectProjection, W as ObjectUrlOptions, X as PutObjectOptions, Y as PutUrlOptions, Z as SlotInfo, _ as SlotRecord, $ as VersionRecord, a0 as createExportBlobsHandle, a1 as memoryObjectProjection, a2 as runCompaction } from '../types-CCq0WHh9.js';
3
+ export { I as ImportExternalOptions, a as ImportExternalResult, b as ImportableCollection, d as detectMagic, c as detectMimeType, i as importExternalObjects, e as isPreCompressed } from '../mime-magic-C1UbcBxP.js';
4
4
  import '../lazy-builder-ChSqcF5t.js';
5
5
  import '../predicate-BmhBSPCH.js';
6
- import '../strategy-D47TC5X6.js';
7
- import '../errors-B2tUcRPg.js';
6
+ import '../strategy-YQ1qJWyq.js';
7
+ import '../errors-Dwk2k1xY.js';
8
8
  import '../strategy-BSxFXGzb.js';
9
9
  import '../index-BMmajblo.js';
10
- import '../index-BLff_E35.js';
10
+ import '../index-LaexBi3v.js';
11
11
  import '@noy-db/attestation';
12
12
 
13
13
  /**
@@ -11,18 +11,18 @@ import {
11
11
  importExternalObjects,
12
12
  isPreCompressed,
13
13
  memoryObjectProjection
14
- } from "../chunk-SGM7CK7R.js";
14
+ } from "../chunk-KJ37E3R5.js";
15
15
  import {
16
16
  BLOB_EVICTION_AUDIT_COLLECTION,
17
17
  EXPORT_AUDIT_COLLECTION,
18
18
  ExportBlobsAbortedError,
19
19
  createExportBlobsHandle,
20
20
  runCompaction
21
- } from "../chunk-FG6IQ3ZL.js";
22
- import "../chunk-DCA2BDHA.js";
21
+ } from "../chunk-ZCBJIDT4.js";
22
+ import "../chunk-Y5CTT6K5.js";
23
23
  import "../chunk-LR7CODVN.js";
24
- import "../chunk-WQ3KAGOV.js";
25
- import "../chunk-4BB4T3O7.js";
24
+ import "../chunk-7JSP3E67.js";
25
+ import "../chunk-DDOYOMAD.js";
26
26
 
27
27
  // src/blobs/active.ts
28
28
  function withBlobs() {
@@ -203,7 +203,7 @@ var init_format = __esm({
203
203
  });
204
204
 
205
205
  // src/errors.ts
206
- var NoydbError, DebugPlaintextError, DebugReservedFieldError, DecryptionError, TamperedError, InvalidKeyError, KeyringCorruptError, NoAccessError, ReadOnlyError, PermissionDeniedError, ExportCapabilityError, KeyringExpiredError, ImportCapabilityError, StoreCapabilityError, PrivilegeEscalationError, FieldFrozenError, InvariantError, AmendmentForbiddenError, TierNotGrantedError, ElevationExpiredError, AlreadyElevatedError, TierDemoteDeniedError, DelegationTargetMissingError, ConflictError, LedgerContentionError, SequenceContentionError, SequenceOfflineError, NumberingUncertaintyError, BundleVersionConflictError, ValidationError, SchemaValidationError, SchemaUpdateError, SchemaFenceError, MigrationRequiredError, QuiesceTimeoutError, GroupCardinalityError, IndexRequiredError, UniqueConstraintError, UnsupportedIndexOptionError, IndexWriteFailureError, BundleIntegrityError, BundleSealMismatchError, ReservedCollectionNameError, LocaleNotSpecifiedError, StaticDictReadonlyError, UnknownDictCodeError, TranslatorNotConfiguredError, BackupLedgerError, BackupCorruptedError, PartitionExtractionError, TransferSealError, AdoptionStateError, AttestationError, JoinTooLargeError, CrossJoinTooLargeError, CrossJoinSourceUnknownError, DanglingReferenceError, DerivationCycleError, DerivationOutputShapeError, DerivationCapExceededError, MaterializedViewCycleError, MaterializedViewSourceUnknownError, MaterializedViewTooLargeError, OverlayBaseIsVirtualError, OverlayCollectionUnavailableError, OverlayNameCollisionError, OverlayIdMismatchError, FederationMovedError, ForgetStrategyNotConfiguredError, RecordCekNotFoundError;
206
+ var NoydbError, DebugPlaintextError, DebugReservedFieldError, DecryptionError, TamperedError, InvalidKeyError, KeyringCorruptError, NoAccessError, ReadOnlyError, PermissionDeniedError, ExportCapabilityError, KeyringExpiredError, ImportCapabilityError, StoreCapabilityError, PrivilegeEscalationError, FieldFrozenError, InvariantError, AmendmentForbiddenError, TierNotGrantedError, ElevationExpiredError, AlreadyElevatedError, TierDemoteDeniedError, DelegationTargetMissingError, ConflictError, LedgerContentionError, SequenceContentionError, SequenceOfflineError, NumberingUncertaintyError, BundleVersionConflictError, ValidationError, SchemaValidationError, SchemaUpdateError, SchemaFenceError, MigrationRequiredError, QuiesceTimeoutError, GroupCardinalityError, IndexRequiredError, UniqueConstraintError, UnsupportedIndexOptionError, IndexWriteFailureError, BundleIntegrityError, BundleSealMismatchError, ReservedCollectionNameError, LocaleNotSpecifiedError, StaticDictReadonlyError, UnknownDictCodeError, TranslatorNotConfiguredError, BackupLedgerError, BackupCorruptedError, PartitionExtractionError, TransferSealError, AdoptionStateError, AttestationError, JoinTooLargeError, CrossJoinTooLargeError, CrossJoinSourceUnknownError, DanglingReferenceError, DerivationCycleError, DerivationOutputShapeError, DerivationCapExceededError, MaterializedViewCycleError, MaterializedViewSourceUnknownError, MaterializedViewTooLargeError, OverlayBaseIsVirtualError, OverlayCollectionUnavailableError, OverlayNameCollisionError, OverlayIdMismatchError, ForgetStrategyNotConfiguredError, RecordCekNotFoundError;
207
207
  var init_errors = __esm({
208
208
  "src/errors.ts"() {
209
209
  "use strict";
@@ -929,15 +929,6 @@ Resolutions:
929
929
  this.expected = expected;
930
930
  }
931
931
  };
932
- FederationMovedError = class extends NoydbError {
933
- constructor(api) {
934
- super(
935
- "FEDERATION_MOVED",
936
- `${api} has moved to @klum-db/lobby. Install @klum-db/lobby, then: import { createLobby } from '@klum-db/lobby'; const lobby = createLobby(db); await lobby.${api}(...)`
937
- );
938
- this.name = "FederationMovedError";
939
- }
940
- };
941
932
  ForgetStrategyNotConfiguredError = class extends NoydbError {
942
933
  constructor(message = 'vault.forget() requires a forget strategy. Pass `forgetStrategy: withForgetCascade({ subjects: { <collection>: <subjectField> } })` from "@noy-db/hub/forget" to createNoydb().') {
943
934
  super("FORGET_NOT_CONFIGURED", message);
@@ -1673,17 +1664,6 @@ function parsePrefixAndHeader(bytes) {
1673
1664
  function readNoydbBundleHeader(bytes) {
1674
1665
  return parsePrefixAndHeader(bytes).header;
1675
1666
  }
1676
- function readNoydbBundlePublicEnvelope(bytes, opts = {}) {
1677
- const header = parsePrefixAndHeader(bytes).header;
1678
- const env = header.publicEnvelope;
1679
- if (!env) return void 0;
1680
- if (opts.locale === void 0) return env;
1681
- return {
1682
- ...env,
1683
- ...env.name !== void 0 ? { name: pickLocale(env.name, opts.locale, env.defaultLocale) } : {},
1684
- ...env.description !== void 0 ? { description: pickLocale(env.description, opts.locale, env.defaultLocale) } : {}
1685
- };
1686
- }
1687
1667
  async function readNoydbBundle(bytes, opts = {}) {
1688
1668
  const { header, bodyOffset, algo } = parsePrefixAndHeader(bytes);
1689
1669
  const body = bytes.slice(bodyOffset);
@@ -1725,7 +1705,6 @@ var init_bundle = __esm({
1725
1705
  "use strict";
1726
1706
  init_format();
1727
1707
  init_errors();
1728
- init_storage();
1729
1708
  cachedBrotliSupport = null;
1730
1709
  }
1731
1710
  });
@@ -21894,25 +21873,13 @@ var init_noydb = __esm({
21894
21873
  return results;
21895
21874
  }
21896
21875
  /**
21897
- * @internal True once `close()` has been called. Read by
21898
- * `@klum-db/lobby`'s Lobby entry points (which can't see the private
21899
- * `closed` field).
21876
+ * @internal True once `close()` has been called. Read by outward
21877
+ * orchestration frameworks whose entry points can't see the private
21878
+ * `closed` field.
21900
21879
  */
21901
21880
  get isClosed() {
21902
21881
  return this.closed;
21903
21882
  }
21904
- /** @deprecated Federation moved to @klum-db/lobby. Use `createLobby(db).withVaultTemplate(...)`. */
21905
- withVaultTemplate() {
21906
- throw new FederationMovedError("withVaultTemplate");
21907
- }
21908
- /** @deprecated Federation moved to @klum-db/lobby. Use `createLobby(db).openVaultGroup(...)`. */
21909
- async openVaultGroup() {
21910
- throw new FederationMovedError("openVaultGroup");
21911
- }
21912
- /** @deprecated Federation moved to @klum-db/lobby. Use `createLobby(db).openStateManagementVault()`. */
21913
- async openStateManagementVault() {
21914
- throw new FederationMovedError("openStateManagementVault");
21915
- }
21916
21883
  /**
21917
21884
  * @internal — true when an encrypted shard vault is provisioned
21918
21885
  * (its keyring exists in the store).
@@ -23403,30 +23370,22 @@ __export(bundle_exports, {
23403
23370
  NOYDB_BUNDLE_FORMAT_VERSION: () => NOYDB_BUNDLE_FORMAT_VERSION,
23404
23371
  NOYDB_BUNDLE_MAGIC: () => NOYDB_BUNDLE_MAGIC,
23405
23372
  NOYDB_BUNDLE_PREFIX_BYTES: () => NOYDB_BUNDLE_PREFIX_BYTES,
23406
- NOYDB_MULTI_BUNDLE_MAGIC: () => NOYDB_MULTI_BUNDLE_MAGIC,
23407
- NOYDB_MULTI_BUNDLE_PREFIX_BYTES: () => NOYDB_MULTI_BUNDLE_PREFIX_BYTES,
23408
- NOYDB_MULTI_BUNDLE_VERSION: () => NOYDB_MULTI_BUNDLE_VERSION,
23409
23373
  PartitionExtractionError: () => PartitionExtractionError,
23410
23374
  TransferSealError: () => TransferSealError,
23411
23375
  adoptPartition: () => adoptPartition,
23412
23376
  createOwnerOnAdoptedPartition: () => createOwnerOnAdoptedPartition,
23413
- decodeMultiBundle: () => decodeMultiBundle,
23414
23377
  decryptExtractedPartition: () => decryptExtractedPartition,
23415
23378
  describeExtraction: () => describeExtraction,
23416
23379
  encodeBundleHeader: () => encodeBundleHeader,
23417
- encodeMultiBundle: () => encodeMultiBundle,
23418
23380
  extractPartition: () => extractPartition,
23419
23381
  generateULID: () => generateULID,
23420
23382
  isULID: () => isULID,
23421
- readMultiVaultBundleCompartment: () => readMultiVaultBundleCompartment,
23422
23383
  readNoydbBundle: () => readNoydbBundle,
23423
23384
  readNoydbBundleHeader: () => readNoydbBundleHeader,
23424
- readNoydbBundleManifest: () => readNoydbBundleManifest,
23425
23385
  resetBrotliSupportCache: () => resetBrotliSupportCache,
23426
23386
  unsealDeks: () => unsealDeks,
23427
23387
  validateBundleHeader: () => validateBundleHeader,
23428
23388
  walkClosure: () => walkClosure,
23429
- writeMultiVaultBundle: () => writeMultiVaultBundle,
23430
23389
  writeNoydbBundle: () => writeNoydbBundle
23431
23390
  });
23432
23391
  module.exports = __toCommonJS(bundle_exports);
@@ -23434,160 +23393,6 @@ init_bundle();
23434
23393
  init_format();
23435
23394
  init_ulid();
23436
23395
 
23437
- // src/bundle/multi-bundle.ts
23438
- init_crypto();
23439
- init_ulid();
23440
- init_format();
23441
- init_bundle();
23442
- var NOYDB_MULTI_BUNDLE_MAGIC = new Uint8Array([78, 68, 66, 77]);
23443
- var NOYDB_MULTI_BUNDLE_PREFIX_BYTES = 10;
23444
- var NOYDB_MULTI_BUNDLE_VERSION = 1;
23445
- function encodeMultiBundle(manifest, inner) {
23446
- validateManifest(manifest);
23447
- if (manifest.compartments.length !== inner.length) {
23448
- throw new Error(`multi-bundle: manifest has ${manifest.compartments.length} compartments but ${inner.length} inner bundles were provided.`);
23449
- }
23450
- for (let i = 0; i < inner.length; i++) {
23451
- if (manifest.compartments[i].innerBytes !== inner[i].length) {
23452
- throw new Error(`multi-bundle: compartment ${i} declares innerBytes ${manifest.compartments[i].innerBytes} but ${inner[i].length} bytes were provided.`);
23453
- }
23454
- }
23455
- const manifestBytes = new TextEncoder().encode(JSON.stringify(manifest));
23456
- const bodyLen = inner.reduce((n, b) => n + b.length, 0);
23457
- const out = new Uint8Array(NOYDB_MULTI_BUNDLE_PREFIX_BYTES + manifestBytes.length + bodyLen);
23458
- out.set(NOYDB_MULTI_BUNDLE_MAGIC, 0);
23459
- out[4] = NOYDB_MULTI_BUNDLE_VERSION;
23460
- out[5] = 0;
23461
- writeUint32BE(out, 6, manifestBytes.length);
23462
- out.set(manifestBytes, NOYDB_MULTI_BUNDLE_PREFIX_BYTES);
23463
- let off = NOYDB_MULTI_BUNDLE_PREFIX_BYTES + manifestBytes.length;
23464
- for (const b of inner) {
23465
- out.set(b, off);
23466
- off += b.length;
23467
- }
23468
- return out;
23469
- }
23470
- function hasMultiMagic(bytes) {
23471
- if (bytes.length < NOYDB_MULTI_BUNDLE_MAGIC.length) return false;
23472
- for (let i = 0; i < NOYDB_MULTI_BUNDLE_MAGIC.length; i++) if (bytes[i] !== NOYDB_MULTI_BUNDLE_MAGIC[i]) return false;
23473
- return true;
23474
- }
23475
- function validateManifest(parsed) {
23476
- if (parsed === null || typeof parsed !== "object") throw new Error("multi-bundle manifest must be a JSON object.");
23477
- const m = parsed;
23478
- if (m["multiFormatVersion"] !== NOYDB_MULTI_BUNDLE_VERSION) throw new Error(`multi-bundle manifest.multiFormatVersion must be ${NOYDB_MULTI_BUNDLE_VERSION}, got ${String(m["multiFormatVersion"])}.`);
23479
- if (typeof m["handle"] !== "string" || m["handle"].length === 0) throw new Error("multi-bundle manifest.handle must be a non-empty string.");
23480
- if (!Array.isArray(m["compartments"])) throw new Error("multi-bundle manifest.compartments must be an array.");
23481
- const seenHandles = /* @__PURE__ */ new Set();
23482
- for (const c of m["compartments"]) {
23483
- if (c === null || typeof c !== "object") throw new Error("multi-bundle compartment must be an object.");
23484
- const e = c;
23485
- if (typeof e["handle"] !== "string" || e["handle"].length === 0) throw new Error("multi-bundle compartment.handle must be a non-empty string.");
23486
- if (seenHandles.has(e["handle"])) {
23487
- throw new Error(`multi-bundle manifest has a duplicate compartment handle "${e["handle"]}".`);
23488
- }
23489
- seenHandles.add(e["handle"]);
23490
- if (typeof e["innerBytes"] !== "number" || !Number.isInteger(e["innerBytes"]) || e["innerBytes"] < 0) throw new Error("multi-bundle compartment.innerBytes must be a non-negative integer.");
23491
- if (typeof e["innerSha256"] !== "string" || !/^[0-9a-f]{64}$/.test(e["innerSha256"])) throw new Error("multi-bundle compartment.innerSha256 must be 64-char lowercase hex.");
23492
- }
23493
- }
23494
- function decodeMultiBundle(bytes) {
23495
- if (!hasMultiMagic(bytes)) throw new Error("not a NOYDB multi-bundle: missing NDBM magic.");
23496
- if (bytes.length < NOYDB_MULTI_BUNDLE_PREFIX_BYTES) throw new Error("multi-bundle truncated: shorter than the fixed prefix.");
23497
- if (bytes[4] !== NOYDB_MULTI_BUNDLE_VERSION) throw new Error(`unsupported multi-bundle version ${String(bytes[4])}.`);
23498
- const manifestLen = readUint32BE(bytes, 6);
23499
- const manifestEnd = NOYDB_MULTI_BUNDLE_PREFIX_BYTES + manifestLen;
23500
- if (manifestEnd > bytes.length) throw new Error("multi-bundle truncated: manifest length overruns the buffer.");
23501
- const manifestJson = new TextDecoder("utf-8", { fatal: true }).decode(bytes.subarray(NOYDB_MULTI_BUNDLE_PREFIX_BYTES, manifestEnd));
23502
- let parsed;
23503
- try {
23504
- parsed = JSON.parse(manifestJson);
23505
- } catch (err) {
23506
- throw new Error(`multi-bundle manifest is not valid JSON: ${err.message}`);
23507
- }
23508
- validateManifest(parsed);
23509
- const inner = [];
23510
- let off = manifestEnd;
23511
- for (const c of parsed.compartments) {
23512
- const end = off + c.innerBytes;
23513
- if (end > bytes.length) throw new Error(`multi-bundle truncated: compartment "${c.handle}" innerBytes overruns the buffer.`);
23514
- inner.push(bytes.subarray(off, end));
23515
- off = end;
23516
- }
23517
- if (off !== bytes.length) {
23518
- throw new Error(`multi-bundle: ${bytes.length - off} trailing byte(s) after the last compartment \u2014 buffer may be corrupt.`);
23519
- }
23520
- return { manifest: parsed, inner };
23521
- }
23522
- async function writeMultiVaultBundle(compartments, opts = {}) {
23523
- if (compartments.length === 0) throw new Error("writeMultiVaultBundle: at least one compartment is required.");
23524
- const inner = [];
23525
- const entries = [];
23526
- for (const c of compartments) {
23527
- const innerBytes = await writeNoydbBundle(c.vault, c.bundleOptions ?? {});
23528
- const header = readNoydbBundleHeader(innerBytes);
23529
- const entry = {
23530
- handle: header.handle,
23531
- exportedAt: c.exportedAt ?? (/* @__PURE__ */ new Date()).toISOString(),
23532
- innerBytes: innerBytes.length,
23533
- innerSha256: await sha256Hex2(innerBytes)
23534
- };
23535
- if (c.roleTag !== void 0) entry.roleTag = c.roleTag;
23536
- if (c.disclose?.name !== void 0 && c.disclose.name !== false) {
23537
- entry.name = c.disclose.name === true ? c.vault.name : c.disclose.name;
23538
- }
23539
- if (c.disclose?.collections === true) {
23540
- const names = await c.vault.collections();
23541
- entry.collections = await Promise.all(
23542
- names.map(async (n) => ({ name: n, count: await c.vault.collection(n).count() }))
23543
- );
23544
- }
23545
- if (c.disclose?.publicEnvelope === true) {
23546
- const env = readNoydbBundlePublicEnvelope(innerBytes);
23547
- if (env !== void 0) entry.publicEnvelope = env;
23548
- }
23549
- const fence = await c.vault.schemaFenceState();
23550
- entry.schemaVersion = fence.currentSchemaVersion;
23551
- inner.push(innerBytes);
23552
- entries.push(entry);
23553
- }
23554
- const manifest = {
23555
- multiFormatVersion: NOYDB_MULTI_BUNDLE_VERSION,
23556
- handle: opts.handle ?? generateULID(),
23557
- compartments: entries
23558
- };
23559
- return encodeMultiBundle(manifest, inner);
23560
- }
23561
- async function readNoydbBundleManifest(bytes) {
23562
- if (hasMultiMagic(bytes)) return [...decodeMultiBundle(bytes).manifest.compartments];
23563
- if (hasNoydbBundleMagic(bytes)) {
23564
- const header = readNoydbBundleHeader(bytes);
23565
- const env = readNoydbBundlePublicEnvelope(bytes);
23566
- const entry = {
23567
- handle: header.handle,
23568
- innerBytes: bytes.length,
23569
- innerSha256: await sha256Hex2(bytes)
23570
- };
23571
- if (env !== void 0) entry.publicEnvelope = env;
23572
- return [entry];
23573
- }
23574
- throw new Error("readNoydbBundleManifest: not a NOYDB bundle (no NDB1 or NDBM magic).");
23575
- }
23576
- function readMultiVaultBundleCompartment(bytes, selector) {
23577
- if (typeof selector === "number" && !Number.isInteger(selector)) {
23578
- throw new Error(`readMultiVaultBundleCompartment: numeric selector must be an integer, got ${selector}.`);
23579
- }
23580
- if (hasNoydbBundleMagic(bytes) && !hasMultiMagic(bytes)) {
23581
- const header = readNoydbBundleHeader(bytes);
23582
- if (selector === 0 || selector === header.handle) return bytes;
23583
- throw new Error(`readMultiVaultBundleCompartment: single v1 bundle has only compartment "${header.handle}".`);
23584
- }
23585
- const { manifest, inner } = decodeMultiBundle(bytes);
23586
- const idx = typeof selector === "number" ? selector : manifest.compartments.findIndex((c) => c.handle === selector);
23587
- if (idx < 0 || idx >= inner.length) throw new Error(`readMultiVaultBundleCompartment: no compartment ${typeof selector === "number" ? `at index ${selector}` : `"${selector}"`}.`);
23588
- return inner[idx];
23589
- }
23590
-
23591
23396
  // src/bundle/walk-closure.ts
23592
23397
  init_errors();
23593
23398
  async function walkClosure(vault, opts) {
@@ -24170,30 +23975,22 @@ init_errors();
24170
23975
  NOYDB_BUNDLE_FORMAT_VERSION,
24171
23976
  NOYDB_BUNDLE_MAGIC,
24172
23977
  NOYDB_BUNDLE_PREFIX_BYTES,
24173
- NOYDB_MULTI_BUNDLE_MAGIC,
24174
- NOYDB_MULTI_BUNDLE_PREFIX_BYTES,
24175
- NOYDB_MULTI_BUNDLE_VERSION,
24176
23978
  PartitionExtractionError,
24177
23979
  TransferSealError,
24178
23980
  adoptPartition,
24179
23981
  createOwnerOnAdoptedPartition,
24180
- decodeMultiBundle,
24181
23982
  decryptExtractedPartition,
24182
23983
  describeExtraction,
24183
23984
  encodeBundleHeader,
24184
- encodeMultiBundle,
24185
23985
  extractPartition,
24186
23986
  generateULID,
24187
23987
  isULID,
24188
- readMultiVaultBundleCompartment,
24189
23988
  readNoydbBundle,
24190
23989
  readNoydbBundleHeader,
24191
- readNoydbBundleManifest,
24192
23990
  resetBrotliSupportCache,
24193
23991
  unsealDeks,
24194
23992
  validateBundleHeader,
24195
23993
  walkClosure,
24196
- writeMultiVaultBundle,
24197
23994
  writeNoydbBundle
24198
23995
  });
24199
23996
  //# sourceMappingURL=index.cjs.map