@noy-db/hub 0.6.0-pre.13 → 0.6.0-pre.14

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 (367) hide show
  1. package/dist/api-6IBOZN6F.js +20 -0
  2. package/dist/attestation/index.js +19 -19
  3. package/dist/{backup-JNCS4OMI.js → backup-FNAYQMLF.js} +12 -12
  4. package/dist/blobs/index.js +13 -13
  5. package/dist/broker/index.js +12 -12
  6. package/dist/cargo/index.js +30 -30
  7. package/dist/{chunk-M3VRXAVD.js → chunk-42IDLU5V.js} +2 -2
  8. package/dist/{chunk-FWZ7WYAH.js → chunk-4444HN72.js} +4 -4
  9. package/dist/{chunk-WX5ABQSL.js → chunk-466KGOQB.js} +2 -2
  10. package/dist/{chunk-ZJADGNYF.js → chunk-4AOERLTV.js} +1 -1
  11. package/dist/chunk-4AOERLTV.js.map +1 -0
  12. package/dist/{chunk-GAELDPIH.js → chunk-4LNFXGNW.js} +63 -63
  13. package/dist/chunk-4LNFXGNW.js.map +1 -0
  14. package/dist/{chunk-YZC4DWJQ.js → chunk-4NI5PR5S.js} +2 -2
  15. package/dist/{chunk-ZFO26ZZR.js → chunk-4YUIVHII.js} +5 -5
  16. package/dist/{chunk-2KX6MT3D.js → chunk-5NKSNW25.js} +2 -2
  17. package/dist/{chunk-ALBA4CET.js → chunk-5SK5AFYH.js} +2 -2
  18. package/dist/{chunk-DKJXAZWF.js → chunk-6U7M7AX6.js} +2 -2
  19. package/dist/{chunk-7GWC6RI5.js → chunk-6ZFTVY3O.js} +1 -1
  20. package/dist/chunk-6ZFTVY3O.js.map +1 -0
  21. package/dist/{chunk-MLMDO4OQ.js → chunk-7EIPPOEL.js} +2 -2
  22. package/dist/{chunk-KOM2GMTW.js → chunk-7J6YERYT.js} +10 -10
  23. package/dist/{chunk-R6V4M2JO.js → chunk-7VIIEXQ2.js} +12 -12
  24. package/dist/chunk-7VIIEXQ2.js.map +1 -0
  25. package/dist/{chunk-YRTS5MWY.js → chunk-A4JJUWSV.js} +3 -3
  26. package/dist/{chunk-VFBJMTLJ.js → chunk-AFSMT3WI.js} +3 -3
  27. package/dist/{chunk-C5N3ZWGJ.js → chunk-AMKCY454.js} +2 -2
  28. package/dist/{chunk-SX4HK6FU.js → chunk-BVYRPAB2.js} +7 -7
  29. package/dist/{chunk-IHKRTVJQ.js → chunk-C66T4W5P.js} +3 -3
  30. package/dist/{chunk-M3XBZPLU.js → chunk-C6MI5OCF.js} +6 -6
  31. package/dist/{chunk-2KHT6EP3.js → chunk-CAJ7QAPC.js} +3 -3
  32. package/dist/{chunk-DMRDPZQ7.js → chunk-CK6Z5DJQ.js} +4 -4
  33. package/dist/{chunk-EPUDMBVL.js → chunk-CK7IRIRY.js} +5 -5
  34. package/dist/{chunk-C6RYZ4ZD.js → chunk-CNA3QRLM.js} +2 -2
  35. package/dist/chunk-CNA3QRLM.js.map +1 -0
  36. package/dist/{chunk-KYIXANXU.js → chunk-CWX6YIX5.js} +7 -7
  37. package/dist/{chunk-TJGB5I4J.js → chunk-D763JZRO.js} +3 -3
  38. package/dist/{chunk-AS53PYO6.js → chunk-DZWRTWN2.js} +81 -81
  39. package/dist/{chunk-AS53PYO6.js.map → chunk-DZWRTWN2.js.map} +1 -1
  40. package/dist/{chunk-OERLXUF5.js → chunk-ESABIXMQ.js} +4 -4
  41. package/dist/{chunk-H6UFT22R.js → chunk-FMZV43QY.js} +4 -4
  42. package/dist/{chunk-YRMA7CJH.js → chunk-FSZPQCDR.js} +3 -3
  43. package/dist/{chunk-65NL6YZM.js → chunk-GBTLOHJM.js} +5 -5
  44. package/dist/{chunk-4TLFWYZG.js → chunk-GE2AGI67.js} +3 -3
  45. package/dist/{chunk-Y6C67PJX.js → chunk-GJX6DOGD.js} +5 -5
  46. package/dist/{chunk-PV76W4KB.js → chunk-GLS7OSZT.js} +7 -7
  47. package/dist/{chunk-IQVVUZ6Z.js → chunk-H545OIWE.js} +2 -2
  48. package/dist/{chunk-CM7MGRP3.js → chunk-HJAFOPTN.js} +6 -6
  49. package/dist/{chunk-HRQF23XS.js → chunk-HNOBRU24.js} +2 -2
  50. package/dist/{chunk-GNMGX4FY.js → chunk-HVPQ5QIZ.js} +8 -8
  51. package/dist/{chunk-CUEWN4FX.js → chunk-HVR74IBG.js} +2 -2
  52. package/dist/{chunk-CT35TQV7.js → chunk-I64WQSN3.js} +7 -7
  53. package/dist/chunk-I64WQSN3.js.map +1 -0
  54. package/dist/{chunk-LVLXWIBF.js → chunk-IMYGJ5HU.js} +2 -2
  55. package/dist/{chunk-OFGLLNQW.js → chunk-IYYGLI2K.js} +6 -6
  56. package/dist/{chunk-LOLK4EAT.js → chunk-JBMSNYOS.js} +5 -5
  57. package/dist/{chunk-JTZRLD47.js → chunk-JU3JKOY5.js} +3 -3
  58. package/dist/{chunk-A7BP42KY.js → chunk-K2MR7ROB.js} +2 -2
  59. package/dist/{chunk-M44ZBLL3.js → chunk-KCLNKE4W.js} +6 -6
  60. package/dist/{chunk-OGQSJJWF.js → chunk-KPD6HNQD.js} +12 -12
  61. package/dist/chunk-KPD6HNQD.js.map +1 -0
  62. package/dist/{chunk-A5AB7EZU.js → chunk-KTCQKXHW.js} +3 -3
  63. package/dist/{chunk-GGM3JCEG.js → chunk-LBQIKMBH.js} +2 -2
  64. package/dist/{chunk-S7UTUFPU.js → chunk-LWOSNMHE.js} +8 -8
  65. package/dist/{chunk-4TRAQICY.js → chunk-MVG67SMN.js} +2 -2
  66. package/dist/{chunk-45UIDGPY.js → chunk-N6OJLR2M.js} +3 -3
  67. package/dist/{chunk-OOOU3F5Y.js → chunk-P2UFDX2F.js} +5 -5
  68. package/dist/{chunk-LQEHLFFF.js → chunk-PCXAUC65.js} +2 -2
  69. package/dist/{chunk-V3WLQXDF.js → chunk-PJ5TGJ7U.js} +2 -2
  70. package/dist/{chunk-Z7PW63ZC.js → chunk-QEYXKICE.js} +2 -2
  71. package/dist/{chunk-LQFNJRMI.js → chunk-QI2KXQOM.js} +2 -2
  72. package/dist/{chunk-MUE2CQX2.js → chunk-QJYTGH5V.js} +7 -7
  73. package/dist/{chunk-Y2FDCDLY.js → chunk-QLMUW7OC.js} +2 -2
  74. package/dist/{chunk-MRDQ6HJS.js → chunk-QQP5KJMS.js} +4 -4
  75. package/dist/{chunk-WJD5VF2N.js → chunk-QTDAPDDV.js} +2 -2
  76. package/dist/{chunk-Q4AU3NJE.js → chunk-QWNYUTI2.js} +2 -2
  77. package/dist/{chunk-H3BDH7DA.js → chunk-R7E7X4CQ.js} +3 -3
  78. package/dist/{chunk-3IJK5FRG.js → chunk-RBTZLXZJ.js} +2 -2
  79. package/dist/{chunk-6FXQZ3T7.js → chunk-RDPZMUCX.js} +2 -2
  80. package/dist/{chunk-4WXISHDI.js → chunk-RJTGXZT6.js} +2 -2
  81. package/dist/{chunk-4R4N5PRM.js → chunk-ROFEKKMI.js} +4 -4
  82. package/dist/{chunk-7DK6CYXO.js → chunk-RVTOCAHQ.js} +2 -2
  83. package/dist/{chunk-J6EBSGIR.js → chunk-RWPNRCK2.js} +2 -2
  84. package/dist/{chunk-YVGJLRXN.js → chunk-S6CP5FWF.js} +2 -2
  85. package/dist/{chunk-LZHDIO64.js → chunk-S77LTWCZ.js} +7 -7
  86. package/dist/{chunk-TEOL6VAV.js → chunk-SGEI3IJK.js} +2 -2
  87. package/dist/{chunk-EWTAUGAK.js → chunk-SZZEDEIU.js} +3 -3
  88. package/dist/{chunk-ZG7MXW5J.js → chunk-T7AEAFEE.js} +4 -4
  89. package/dist/{chunk-KMLMEIWV.js → chunk-THYGVKZB.js} +7 -7
  90. package/dist/chunk-THYGVKZB.js.map +1 -0
  91. package/dist/{chunk-TAFRRVFR.js → chunk-TQ7IRULX.js} +2 -2
  92. package/dist/{chunk-MVWO6KXU.js → chunk-TQLYMYOK.js} +2 -2
  93. package/dist/{chunk-MSCXCF4T.js → chunk-UTQLKPBS.js} +6 -6
  94. package/dist/{chunk-QLFLX5VA.js → chunk-V2BEYLNR.js} +6 -6
  95. package/dist/{chunk-P7A2FX5Y.js → chunk-V4M4BZNW.js} +2 -2
  96. package/dist/{chunk-PLJ622XY.js → chunk-VTTRWLOR.js} +2 -2
  97. package/dist/{chunk-QNGRTWGM.js → chunk-VVMSDWRG.js} +5 -5
  98. package/dist/{chunk-PRN65IDE.js → chunk-WLZKVY33.js} +6 -6
  99. package/dist/{chunk-3EFQV2XQ.js → chunk-XHX3NTRP.js} +4 -4
  100. package/dist/{chunk-CFM6GBNF.js → chunk-Y7MJSOZ7.js} +5 -5
  101. package/dist/{chunk-CFM6GBNF.js.map → chunk-Y7MJSOZ7.js.map} +1 -1
  102. package/dist/{chunk-ALDFGMO7.js → chunk-YDJXGYYA.js} +2 -2
  103. package/dist/{chunk-VDQZKDED.js → chunk-YGJZLOSR.js} +2 -2
  104. package/dist/{chunk-IONRKUH4.js → chunk-YH65A6WM.js} +2 -2
  105. package/dist/{chunk-YKDAFWWS.js → chunk-YKEJ5P3H.js} +5 -5
  106. package/dist/{chunk-J5LO2H42.js → chunk-YODIXNV4.js} +4 -4
  107. package/dist/{chunk-37M5QBAS.js → chunk-YVOW35HH.js} +2 -2
  108. package/dist/{chunk-NW3PSKAN.js → chunk-YZ7BRD26.js} +2 -2
  109. package/dist/{chunk-2BBXXSAD.js → chunk-Z3U2YVNM.js} +4 -4
  110. package/dist/{chunk-SX2ZKKZS.js → chunk-ZHDMT2MJ.js} +6 -6
  111. package/dist/{chunk-EZYLQKHP.js → chunk-ZWPUYBNK.js} +8 -8
  112. package/dist/classified/index.js +5 -5
  113. package/dist/{classified-marker-IYWA7L6U.js → classified-marker-3STDEUFT.js} +3 -3
  114. package/dist/collection-facade-SGTS3TRS.js +45 -0
  115. package/dist/{computed-B3BJQSU5.js → computed-5E2OM6EN.js} +3 -3
  116. package/dist/consent/index.js +10 -10
  117. package/dist/cover/index.js +3 -3
  118. package/dist/custody/index.js +11 -11
  119. package/dist/{dead-filter-QV7ORQS3.js → dead-filter-ZNWVGV5U.js} +2 -2
  120. package/dist/debug/index.js +1 -1
  121. package/dist/{delegation-UPE5PUKB.js → delegation-LZWFOST7.js} +11 -11
  122. package/dist/derivations/index.js +12 -12
  123. package/dist/derive-BWXA2L7D.js +22 -0
  124. package/dist/directory/index.js +10 -10
  125. package/dist/{dispatch-BW2W2LXV.js → dispatch-S34AUC43.js} +18 -18
  126. package/dist/{dispatch-OBZS537P.js → dispatch-TIYW3UDN.js} +5 -5
  127. package/dist/{enclave-LXFVDJLO.js → enclave-Y6GMYQMS.js} +9 -9
  128. package/dist/executor-JDMH2IGK.js +29 -0
  129. package/dist/executor-PCZN2LTY.js +9 -0
  130. package/dist/executor-WFTHIDT7.js +9 -0
  131. package/dist/export-accessible-U6GXZZMQ.js +23 -0
  132. package/dist/extract-partition-IDI6NDUR.js +38 -0
  133. package/dist/{fanout-sidecar-BD4ZSPER.js → fanout-sidecar-BVFOEJTP.js} +9 -9
  134. package/dist/find-VBNMB42N.js +11 -0
  135. package/dist/forget/index.js +9 -9
  136. package/dist/guards/index.js +4 -4
  137. package/dist/history/index.js +12 -12
  138. package/dist/i18n/index.js +14 -14
  139. package/dist/index.d.ts +7 -7
  140. package/dist/index.js +103 -103
  141. package/dist/indexing/index.js +2 -2
  142. package/dist/introspection/index.js +11 -11
  143. package/dist/issue-TEGTAN7N.js +19 -0
  144. package/dist/kernel/errors.d.ts +6 -6
  145. package/dist/kernel/types.d.ts +1 -1
  146. package/dist/kernel/vault.d.ts +4 -4
  147. package/dist/{ledger-6EMFGJRU.js → ledger-NFLBQASD.js} +11 -11
  148. package/dist/liberate-SG2PPGAJ.js +24 -0
  149. package/dist/{link-set-GUKFJQGW.js → link-set-IPS57KDM.js} +11 -11
  150. package/dist/{managed-secret-T6X4VHB2.js → managed-secret-GFYGPLNI.js} +3 -3
  151. package/dist/materialized-views/index.js +20 -20
  152. package/dist/money/index.js +4 -4
  153. package/dist/noydb-TN2VIJJO.js +83 -0
  154. package/dist/overlay-views/index.js +4 -4
  155. package/dist/periods/index.js +12 -12
  156. package/dist/pod/index.js +71 -71
  157. package/dist/{bundle-handle-RJZXOFXE.js → pod-handle-I4ZME246.js} +6 -6
  158. package/dist/pod-handle-I4ZME246.js.map +1 -0
  159. package/dist/policy/index.js +4 -4
  160. package/dist/portability/index.js +8 -8
  161. package/dist/{post-register-XKYJDDZL.js → post-register-JUSV3X4E.js} +6 -6
  162. package/dist/query/index.js +3 -3
  163. package/dist/reduce/index.js +4 -4
  164. package/dist/register-UTMPUAQW.js +32 -0
  165. package/dist/registry-B2S4UNUI.js +19 -0
  166. package/dist/registry-E4FM32KD.js +9 -0
  167. package/dist/registry-HACMULJJ.js +9 -0
  168. package/dist/registry-NDLBGQLJ.js +18 -0
  169. package/dist/request-withdrawal-Q5G43PR7.js +31 -0
  170. package/dist/{reveal-IN2ZBB5U.js → reveal-YJU7GUYJ.js} +6 -6
  171. package/dist/revoke-NXOUPYS3.js +24 -0
  172. package/dist/satellites/index.js +1 -1
  173. package/dist/schema-update/index.js +2 -2
  174. package/dist/sealed-record/index.js +12 -12
  175. package/dist/search/index.js +4 -4
  176. package/dist/{seed-D623RNG3.js → seed-XXLR4KXU.js} +11 -11
  177. package/dist/sequence/index.js +9 -9
  178. package/dist/session/index.js +10 -10
  179. package/dist/shadow/index.js +2 -2
  180. package/dist/share-link/index.js +1 -1
  181. package/dist/signer-FCGAUB6E.js +25 -0
  182. package/dist/snapshots/index.js +10 -10
  183. package/dist/snapshots/index.js.map +1 -1
  184. package/dist/{stale-O3CZVYMO.js → stale-OT5NMBXU.js} +10 -10
  185. package/dist/storage-EWWIFB43.js +23 -0
  186. package/dist/{store-coordination-provider-RKBDHHN4.js → store-coordination-provider-PPLVM2I2.js} +3 -3
  187. package/dist/sync/index.js +10 -10
  188. package/dist/team/index.js +14 -14
  189. package/dist/tiers/index.js +10 -10
  190. package/dist/to/index.js +1 -1
  191. package/dist/transactions/index.js +4 -4
  192. package/dist/{ulid-PTAIMDG4.js → ulid-VQW6ERQN.js} +2 -2
  193. package/dist/util/index.js +1 -1
  194. package/dist/{verify-GB7SBYC3.js → verify-SHJXGZGM.js} +5 -5
  195. package/dist/walk-4NIT2ZBH.js +21 -0
  196. package/dist/with-cargo/adopt-partition.d.ts +1 -1
  197. package/dist/with-cargo/extract-partition.d.ts +1 -1
  198. package/dist/with-cargo/index.d.ts +1 -1
  199. package/dist/with-party/team/index.d.ts +1 -1
  200. package/dist/with-party/team/keyring.d.ts +2 -2
  201. package/dist/with-pod/format.d.ts +10 -10
  202. package/dist/with-pod/index.d.ts +7 -7
  203. package/dist/with-pod/open.d.ts +2 -2
  204. package/dist/with-pod/{bundle-handle.d.ts → pod-handle.d.ts} +2 -2
  205. package/dist/with-pod/{bundle.d.ts → pod.d.ts} +8 -8
  206. package/dist/with-pod/ulid.d.ts +1 -1
  207. package/dist/withdraw-accessible-LJG66PZQ.js +28 -0
  208. package/package.json +3 -3
  209. package/dist/api-FYF5WE2E.js +0 -20
  210. package/dist/bundle-handle-RJZXOFXE.js.map +0 -1
  211. package/dist/chunk-7GWC6RI5.js.map +0 -1
  212. package/dist/chunk-C6RYZ4ZD.js.map +0 -1
  213. package/dist/chunk-CT35TQV7.js.map +0 -1
  214. package/dist/chunk-GAELDPIH.js.map +0 -1
  215. package/dist/chunk-KMLMEIWV.js.map +0 -1
  216. package/dist/chunk-OGQSJJWF.js.map +0 -1
  217. package/dist/chunk-R6V4M2JO.js.map +0 -1
  218. package/dist/chunk-ZJADGNYF.js.map +0 -1
  219. package/dist/collection-facade-FLXXGAPR.js +0 -45
  220. package/dist/derive-R7ALNQRH.js +0 -22
  221. package/dist/executor-4WZG7D46.js +0 -9
  222. package/dist/executor-5RWPUTGR.js +0 -29
  223. package/dist/executor-VOD4C6ZA.js +0 -9
  224. package/dist/export-accessible-TCVU6B72.js +0 -23
  225. package/dist/extract-partition-UNUQF5MD.js +0 -38
  226. package/dist/find-QJPVK6CY.js +0 -11
  227. package/dist/issue-QYCCTU4S.js +0 -19
  228. package/dist/liberate-ZJDLMKOW.js +0 -24
  229. package/dist/noydb-IP2QPER4.js +0 -83
  230. package/dist/register-GFYFTV74.js +0 -32
  231. package/dist/registry-BY7Z54RJ.js +0 -9
  232. package/dist/registry-D6NSZUVQ.js +0 -9
  233. package/dist/registry-KQPWMFIP.js +0 -19
  234. package/dist/registry-P7RU4TPR.js +0 -18
  235. package/dist/request-withdrawal-6RA6PGWD.js +0 -31
  236. package/dist/revoke-ETYVUNHE.js +0 -24
  237. package/dist/signer-FLW4HHWM.js +0 -25
  238. package/dist/storage-7GVHLKVJ.js +0 -23
  239. package/dist/walk-77FSILOU.js +0 -21
  240. package/dist/withdraw-accessible-XMWJWDZP.js +0 -28
  241. /package/dist/{api-FYF5WE2E.js.map → api-6IBOZN6F.js.map} +0 -0
  242. /package/dist/{backup-JNCS4OMI.js.map → backup-FNAYQMLF.js.map} +0 -0
  243. /package/dist/{chunk-M3VRXAVD.js.map → chunk-42IDLU5V.js.map} +0 -0
  244. /package/dist/{chunk-FWZ7WYAH.js.map → chunk-4444HN72.js.map} +0 -0
  245. /package/dist/{chunk-WX5ABQSL.js.map → chunk-466KGOQB.js.map} +0 -0
  246. /package/dist/{chunk-YZC4DWJQ.js.map → chunk-4NI5PR5S.js.map} +0 -0
  247. /package/dist/{chunk-ZFO26ZZR.js.map → chunk-4YUIVHII.js.map} +0 -0
  248. /package/dist/{chunk-2KX6MT3D.js.map → chunk-5NKSNW25.js.map} +0 -0
  249. /package/dist/{chunk-ALBA4CET.js.map → chunk-5SK5AFYH.js.map} +0 -0
  250. /package/dist/{chunk-DKJXAZWF.js.map → chunk-6U7M7AX6.js.map} +0 -0
  251. /package/dist/{chunk-MLMDO4OQ.js.map → chunk-7EIPPOEL.js.map} +0 -0
  252. /package/dist/{chunk-KOM2GMTW.js.map → chunk-7J6YERYT.js.map} +0 -0
  253. /package/dist/{chunk-YRTS5MWY.js.map → chunk-A4JJUWSV.js.map} +0 -0
  254. /package/dist/{chunk-VFBJMTLJ.js.map → chunk-AFSMT3WI.js.map} +0 -0
  255. /package/dist/{chunk-C5N3ZWGJ.js.map → chunk-AMKCY454.js.map} +0 -0
  256. /package/dist/{chunk-SX4HK6FU.js.map → chunk-BVYRPAB2.js.map} +0 -0
  257. /package/dist/{chunk-IHKRTVJQ.js.map → chunk-C66T4W5P.js.map} +0 -0
  258. /package/dist/{chunk-M3XBZPLU.js.map → chunk-C6MI5OCF.js.map} +0 -0
  259. /package/dist/{chunk-2KHT6EP3.js.map → chunk-CAJ7QAPC.js.map} +0 -0
  260. /package/dist/{chunk-DMRDPZQ7.js.map → chunk-CK6Z5DJQ.js.map} +0 -0
  261. /package/dist/{chunk-EPUDMBVL.js.map → chunk-CK7IRIRY.js.map} +0 -0
  262. /package/dist/{chunk-KYIXANXU.js.map → chunk-CWX6YIX5.js.map} +0 -0
  263. /package/dist/{chunk-TJGB5I4J.js.map → chunk-D763JZRO.js.map} +0 -0
  264. /package/dist/{chunk-OERLXUF5.js.map → chunk-ESABIXMQ.js.map} +0 -0
  265. /package/dist/{chunk-H6UFT22R.js.map → chunk-FMZV43QY.js.map} +0 -0
  266. /package/dist/{chunk-YRMA7CJH.js.map → chunk-FSZPQCDR.js.map} +0 -0
  267. /package/dist/{chunk-65NL6YZM.js.map → chunk-GBTLOHJM.js.map} +0 -0
  268. /package/dist/{chunk-4TLFWYZG.js.map → chunk-GE2AGI67.js.map} +0 -0
  269. /package/dist/{chunk-Y6C67PJX.js.map → chunk-GJX6DOGD.js.map} +0 -0
  270. /package/dist/{chunk-PV76W4KB.js.map → chunk-GLS7OSZT.js.map} +0 -0
  271. /package/dist/{chunk-IQVVUZ6Z.js.map → chunk-H545OIWE.js.map} +0 -0
  272. /package/dist/{chunk-CM7MGRP3.js.map → chunk-HJAFOPTN.js.map} +0 -0
  273. /package/dist/{chunk-HRQF23XS.js.map → chunk-HNOBRU24.js.map} +0 -0
  274. /package/dist/{chunk-GNMGX4FY.js.map → chunk-HVPQ5QIZ.js.map} +0 -0
  275. /package/dist/{chunk-CUEWN4FX.js.map → chunk-HVR74IBG.js.map} +0 -0
  276. /package/dist/{chunk-LVLXWIBF.js.map → chunk-IMYGJ5HU.js.map} +0 -0
  277. /package/dist/{chunk-OFGLLNQW.js.map → chunk-IYYGLI2K.js.map} +0 -0
  278. /package/dist/{chunk-LOLK4EAT.js.map → chunk-JBMSNYOS.js.map} +0 -0
  279. /package/dist/{chunk-JTZRLD47.js.map → chunk-JU3JKOY5.js.map} +0 -0
  280. /package/dist/{chunk-A7BP42KY.js.map → chunk-K2MR7ROB.js.map} +0 -0
  281. /package/dist/{chunk-M44ZBLL3.js.map → chunk-KCLNKE4W.js.map} +0 -0
  282. /package/dist/{chunk-A5AB7EZU.js.map → chunk-KTCQKXHW.js.map} +0 -0
  283. /package/dist/{chunk-GGM3JCEG.js.map → chunk-LBQIKMBH.js.map} +0 -0
  284. /package/dist/{chunk-S7UTUFPU.js.map → chunk-LWOSNMHE.js.map} +0 -0
  285. /package/dist/{chunk-4TRAQICY.js.map → chunk-MVG67SMN.js.map} +0 -0
  286. /package/dist/{chunk-45UIDGPY.js.map → chunk-N6OJLR2M.js.map} +0 -0
  287. /package/dist/{chunk-OOOU3F5Y.js.map → chunk-P2UFDX2F.js.map} +0 -0
  288. /package/dist/{chunk-LQEHLFFF.js.map → chunk-PCXAUC65.js.map} +0 -0
  289. /package/dist/{chunk-V3WLQXDF.js.map → chunk-PJ5TGJ7U.js.map} +0 -0
  290. /package/dist/{chunk-Z7PW63ZC.js.map → chunk-QEYXKICE.js.map} +0 -0
  291. /package/dist/{chunk-LQFNJRMI.js.map → chunk-QI2KXQOM.js.map} +0 -0
  292. /package/dist/{chunk-MUE2CQX2.js.map → chunk-QJYTGH5V.js.map} +0 -0
  293. /package/dist/{chunk-Y2FDCDLY.js.map → chunk-QLMUW7OC.js.map} +0 -0
  294. /package/dist/{chunk-MRDQ6HJS.js.map → chunk-QQP5KJMS.js.map} +0 -0
  295. /package/dist/{chunk-WJD5VF2N.js.map → chunk-QTDAPDDV.js.map} +0 -0
  296. /package/dist/{chunk-Q4AU3NJE.js.map → chunk-QWNYUTI2.js.map} +0 -0
  297. /package/dist/{chunk-H3BDH7DA.js.map → chunk-R7E7X4CQ.js.map} +0 -0
  298. /package/dist/{chunk-3IJK5FRG.js.map → chunk-RBTZLXZJ.js.map} +0 -0
  299. /package/dist/{chunk-6FXQZ3T7.js.map → chunk-RDPZMUCX.js.map} +0 -0
  300. /package/dist/{chunk-4WXISHDI.js.map → chunk-RJTGXZT6.js.map} +0 -0
  301. /package/dist/{chunk-4R4N5PRM.js.map → chunk-ROFEKKMI.js.map} +0 -0
  302. /package/dist/{chunk-7DK6CYXO.js.map → chunk-RVTOCAHQ.js.map} +0 -0
  303. /package/dist/{chunk-J6EBSGIR.js.map → chunk-RWPNRCK2.js.map} +0 -0
  304. /package/dist/{chunk-YVGJLRXN.js.map → chunk-S6CP5FWF.js.map} +0 -0
  305. /package/dist/{chunk-LZHDIO64.js.map → chunk-S77LTWCZ.js.map} +0 -0
  306. /package/dist/{chunk-TEOL6VAV.js.map → chunk-SGEI3IJK.js.map} +0 -0
  307. /package/dist/{chunk-EWTAUGAK.js.map → chunk-SZZEDEIU.js.map} +0 -0
  308. /package/dist/{chunk-ZG7MXW5J.js.map → chunk-T7AEAFEE.js.map} +0 -0
  309. /package/dist/{chunk-TAFRRVFR.js.map → chunk-TQ7IRULX.js.map} +0 -0
  310. /package/dist/{chunk-MVWO6KXU.js.map → chunk-TQLYMYOK.js.map} +0 -0
  311. /package/dist/{chunk-MSCXCF4T.js.map → chunk-UTQLKPBS.js.map} +0 -0
  312. /package/dist/{chunk-QLFLX5VA.js.map → chunk-V2BEYLNR.js.map} +0 -0
  313. /package/dist/{chunk-P7A2FX5Y.js.map → chunk-V4M4BZNW.js.map} +0 -0
  314. /package/dist/{chunk-PLJ622XY.js.map → chunk-VTTRWLOR.js.map} +0 -0
  315. /package/dist/{chunk-QNGRTWGM.js.map → chunk-VVMSDWRG.js.map} +0 -0
  316. /package/dist/{chunk-PRN65IDE.js.map → chunk-WLZKVY33.js.map} +0 -0
  317. /package/dist/{chunk-3EFQV2XQ.js.map → chunk-XHX3NTRP.js.map} +0 -0
  318. /package/dist/{chunk-ALDFGMO7.js.map → chunk-YDJXGYYA.js.map} +0 -0
  319. /package/dist/{chunk-VDQZKDED.js.map → chunk-YGJZLOSR.js.map} +0 -0
  320. /package/dist/{chunk-IONRKUH4.js.map → chunk-YH65A6WM.js.map} +0 -0
  321. /package/dist/{chunk-YKDAFWWS.js.map → chunk-YKEJ5P3H.js.map} +0 -0
  322. /package/dist/{chunk-J5LO2H42.js.map → chunk-YODIXNV4.js.map} +0 -0
  323. /package/dist/{chunk-37M5QBAS.js.map → chunk-YVOW35HH.js.map} +0 -0
  324. /package/dist/{chunk-NW3PSKAN.js.map → chunk-YZ7BRD26.js.map} +0 -0
  325. /package/dist/{chunk-2BBXXSAD.js.map → chunk-Z3U2YVNM.js.map} +0 -0
  326. /package/dist/{chunk-SX2ZKKZS.js.map → chunk-ZHDMT2MJ.js.map} +0 -0
  327. /package/dist/{chunk-EZYLQKHP.js.map → chunk-ZWPUYBNK.js.map} +0 -0
  328. /package/dist/{classified-marker-IYWA7L6U.js.map → classified-marker-3STDEUFT.js.map} +0 -0
  329. /package/dist/{collection-facade-FLXXGAPR.js.map → collection-facade-SGTS3TRS.js.map} +0 -0
  330. /package/dist/{computed-B3BJQSU5.js.map → computed-5E2OM6EN.js.map} +0 -0
  331. /package/dist/{dead-filter-QV7ORQS3.js.map → dead-filter-ZNWVGV5U.js.map} +0 -0
  332. /package/dist/{delegation-UPE5PUKB.js.map → delegation-LZWFOST7.js.map} +0 -0
  333. /package/dist/{derive-R7ALNQRH.js.map → derive-BWXA2L7D.js.map} +0 -0
  334. /package/dist/{dispatch-BW2W2LXV.js.map → dispatch-S34AUC43.js.map} +0 -0
  335. /package/dist/{dispatch-OBZS537P.js.map → dispatch-TIYW3UDN.js.map} +0 -0
  336. /package/dist/{enclave-LXFVDJLO.js.map → enclave-Y6GMYQMS.js.map} +0 -0
  337. /package/dist/{executor-4WZG7D46.js.map → executor-JDMH2IGK.js.map} +0 -0
  338. /package/dist/{executor-5RWPUTGR.js.map → executor-PCZN2LTY.js.map} +0 -0
  339. /package/dist/{executor-VOD4C6ZA.js.map → executor-WFTHIDT7.js.map} +0 -0
  340. /package/dist/{export-accessible-TCVU6B72.js.map → export-accessible-U6GXZZMQ.js.map} +0 -0
  341. /package/dist/{extract-partition-UNUQF5MD.js.map → extract-partition-IDI6NDUR.js.map} +0 -0
  342. /package/dist/{fanout-sidecar-BD4ZSPER.js.map → fanout-sidecar-BVFOEJTP.js.map} +0 -0
  343. /package/dist/{find-QJPVK6CY.js.map → find-VBNMB42N.js.map} +0 -0
  344. /package/dist/{issue-QYCCTU4S.js.map → issue-TEGTAN7N.js.map} +0 -0
  345. /package/dist/{ledger-6EMFGJRU.js.map → ledger-NFLBQASD.js.map} +0 -0
  346. /package/dist/{liberate-ZJDLMKOW.js.map → liberate-SG2PPGAJ.js.map} +0 -0
  347. /package/dist/{link-set-GUKFJQGW.js.map → link-set-IPS57KDM.js.map} +0 -0
  348. /package/dist/{managed-secret-T6X4VHB2.js.map → managed-secret-GFYGPLNI.js.map} +0 -0
  349. /package/dist/{noydb-IP2QPER4.js.map → noydb-TN2VIJJO.js.map} +0 -0
  350. /package/dist/{post-register-XKYJDDZL.js.map → post-register-JUSV3X4E.js.map} +0 -0
  351. /package/dist/{register-GFYFTV74.js.map → register-UTMPUAQW.js.map} +0 -0
  352. /package/dist/{registry-BY7Z54RJ.js.map → registry-B2S4UNUI.js.map} +0 -0
  353. /package/dist/{registry-D6NSZUVQ.js.map → registry-E4FM32KD.js.map} +0 -0
  354. /package/dist/{registry-KQPWMFIP.js.map → registry-HACMULJJ.js.map} +0 -0
  355. /package/dist/{registry-P7RU4TPR.js.map → registry-NDLBGQLJ.js.map} +0 -0
  356. /package/dist/{request-withdrawal-6RA6PGWD.js.map → request-withdrawal-Q5G43PR7.js.map} +0 -0
  357. /package/dist/{reveal-IN2ZBB5U.js.map → reveal-YJU7GUYJ.js.map} +0 -0
  358. /package/dist/{revoke-ETYVUNHE.js.map → revoke-NXOUPYS3.js.map} +0 -0
  359. /package/dist/{seed-D623RNG3.js.map → seed-XXLR4KXU.js.map} +0 -0
  360. /package/dist/{signer-FLW4HHWM.js.map → signer-FCGAUB6E.js.map} +0 -0
  361. /package/dist/{stale-O3CZVYMO.js.map → stale-OT5NMBXU.js.map} +0 -0
  362. /package/dist/{storage-7GVHLKVJ.js.map → storage-EWWIFB43.js.map} +0 -0
  363. /package/dist/{store-coordination-provider-RKBDHHN4.js.map → store-coordination-provider-PPLVM2I2.js.map} +0 -0
  364. /package/dist/{ulid-PTAIMDG4.js.map → ulid-VQW6ERQN.js.map} +0 -0
  365. /package/dist/{verify-GB7SBYC3.js.map → verify-SHJXGZGM.js.map} +0 -0
  366. /package/dist/{walk-77FSILOU.js.map → walk-4NIT2ZBH.js.map} +0 -0
  367. /package/dist/{withdraw-accessible-XMWJWDZP.js.map → withdraw-accessible-LJG66PZQ.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/with-fork/snapshots/engine.ts","../../src/with-fork/snapshots/active.ts"],"sourcesContent":["import { writePod, readPod } from '../../with-pod/bundle.js'\nimport { SnapshotNotFoundError } from '../../kernel/errors.js'\nimport type { NoydbPodStore } from '../../kernel/types.js'\nimport type { Vault } from '../../kernel/vault.js'\nimport type { SnapshotMeta, RetentionPolicy, SnapshotIndex } from './strategy.js'\n\nexport class SnapshotEngine {\n constructor(\n private readonly store: NoydbPodStore,\n private readonly retention: RetentionPolicy,\n ) {}\n\n private indexKey(vaultName: string): string {\n return `${vaultName}__index`\n }\n\n private snapKey(vaultName: string, n: number): string {\n return `${vaultName}__snap_${n.toString().padStart(6, '0')}`\n }\n\n private autoKey(vaultName: string): string {\n return `${vaultName}__auto`\n }\n\n private async readIndex(\n vaultName: string,\n ): Promise<{ index: SnapshotIndex; indexVersion: string | null }> {\n const result = await this.store.readBundle(this.indexKey(vaultName))\n if (!result) return { index: { snapshots: [], nextCounter: 1 }, indexVersion: null }\n const text = new TextDecoder().decode(result.bytes)\n return { index: JSON.parse(text) as SnapshotIndex, indexVersion: result.version }\n }\n\n private async writeIndex(\n vaultName: string,\n index: SnapshotIndex,\n expectedVersion: string | null,\n ): Promise<void> {\n const bytes = new TextEncoder().encode(JSON.stringify(index))\n await this.store.writeBundle(this.indexKey(vaultName), bytes, expectedVersion)\n }\n\n async snapshot(\n vault: Vault,\n by: string,\n opts?: { label?: string; note?: string },\n ): Promise<SnapshotMeta> {\n const bytes = await writePod(vault, {})\n const { index, indexVersion } = await this.readIndex(vault.name)\n const key = this.snapKey(vault.name, index.nextCounter)\n\n // Write blob first. If the subsequent index write fails, the next snapshot()\n // call will re-derive the same key (counter not persisted) and overwrite this blob.\n // This is an accepted v1 trade-off: failure window is narrow and requires a store\n // error between the two writes. A retry produces a fresh snapshot at the same key.\n await this.store.writeBundle(key, bytes, null)\n\n const meta: SnapshotMeta = {\n version: key,\n ...(opts?.label !== undefined ? { label: opts.label } : {}),\n ...(opts?.note !== undefined ? { note: opts.note } : {}),\n exportedAt: new Date().toISOString(),\n exportedBy: by,\n size: bytes.length,\n integrity: 'verified',\n }\n\n const newIndex: SnapshotIndex = {\n snapshots: [...index.snapshots, meta],\n nextCounter: index.nextCounter + 1,\n // Preserve the rolling auto slot — on-demand snapshots never touch it.\n ...(index.auto ? { auto: index.auto } : {}),\n }\n const toDelete = this.applyRetention(newIndex)\n await this.writeIndex(vault.name, newIndex, indexVersion)\n\n for (const k of toDelete) {\n await this.store.deleteBundle(k)\n }\n\n return meta\n }\n\n /**\n * Rolling auto-snapshot. Overwrites the single fixed `<vault>__auto` key and\n * stores its meta in `index.auto`, separate from the immutable `snapshots`\n * pool — retention never prunes it. Used by the cadence scheduler.\n */\n async autoSnapshot(\n vault: Vault,\n by: string,\n opts?: { label?: string; note?: string },\n ): Promise<SnapshotMeta> {\n const bytes = await writePod(vault, {})\n const { index, indexVersion } = await this.readIndex(vault.name)\n const key = this.autoKey(vault.name)\n\n // Unconditional overwrite of the rolling slot.\n await this.store.writeBundle(key, bytes, null)\n\n const meta: SnapshotMeta = {\n version: key,\n label: opts?.label ?? 'auto',\n ...(opts?.note !== undefined ? { note: opts.note } : {}),\n exportedAt: new Date().toISOString(),\n exportedBy: by,\n size: bytes.length,\n integrity: 'verified',\n auto: true,\n }\n\n index.auto = meta\n await this.writeIndex(vault.name, index, indexVersion)\n return meta\n }\n\n async listSnapshots(vaultId: string): Promise<SnapshotMeta[]> {\n const { index } = await this.readIndex(vaultId)\n const immutable = [...index.snapshots].reverse()\n return index.auto ? [index.auto, ...immutable] : immutable\n }\n\n async restoreSnapshot(vault: Vault, version: string): Promise<void> {\n if (!version.startsWith(`${vault.name}__`)) throw new SnapshotNotFoundError(version)\n const result = await this.store.readBundle(version)\n if (!result) throw new SnapshotNotFoundError(version)\n const { dumpJson } = await readPod(result.bytes)\n await vault.load(dumpJson)\n }\n\n /**\n * Applies the configured retention policy to `index`, mutating `index.snapshots`\n * in place and returning the blob keys that should be deleted from the store.\n * Called by `snapshot()` before the index is written.\n *\n * @internal — public for direct testing only\n */\n applyRetention(index: SnapshotIndex): string[] {\n const prune = this.retention.prune ?? true\n if (!prune) return []\n\n const toDelete: string[] = []\n let remaining = index.snapshots.slice()\n\n if (this.retention.keepLast !== undefined && remaining.length > this.retention.keepLast) {\n const excess = remaining.splice(0, remaining.length - this.retention.keepLast)\n toDelete.push(...excess.map(m => m.version))\n }\n\n if (this.retention.maxAgeDays !== undefined) {\n const cutoffMs = this.retention.maxAgeDays * 86_400_000\n const now = Date.now()\n const fresh = remaining.filter(m => now - new Date(m.exportedAt).getTime() <= cutoffMs)\n toDelete.push(...remaining.filter(m => !fresh.includes(m)).map(m => m.version))\n remaining = fresh\n }\n\n index.snapshots = remaining\n return toDelete\n }\n}\n","import { SnapshotEngine } from './engine.js'\nimport type { SnapshotsStrategy, RetentionPolicy } from './strategy.js'\nimport type { SnapshotPolicy } from './policy.js'\nimport type { NoydbPodStore } from '../../kernel/types.js'\nimport type { Vault } from '../../kernel/vault.js'\n\nexport interface WithSnapshotsOptions {\n /** Bundle store where snapshot blobs and the sidecar index are written. */\n store: NoydbPodStore\n /**\n * Declarative retention policy. Enforced eagerly after each on-demand `snapshot()`.\n * Defaults to no retention (all on-demand snapshots kept forever). Never affects\n * the rolling auto-snapshot.\n */\n retention?: RetentionPolicy\n /**\n * Automatic-snapshot cadence. Default `mode:'manual'` ⇒ no timers; snapshots\n * stay on-demand. Set `mode:'debounce'`/`'interval'` to enable auto-snapshots\n * to the rolling `<vault>__auto` key.\n */\n snapshotPolicy?: SnapshotPolicy\n}\n\nexport function withSnapshots(opts: WithSnapshotsOptions): SnapshotsStrategy {\n const engine = new SnapshotEngine(opts.store, opts.retention ?? {})\n return {\n snapshot(vault, by, snapOpts) {\n return engine.snapshot(vault as Vault, by, snapOpts)\n },\n listSnapshots(vaultId) {\n return engine.listSnapshots(vaultId)\n },\n restoreSnapshot(vault, version) {\n return engine.restoreSnapshot(vault as Vault, version)\n },\n autoSnapshot(vault, by, snapOpts) {\n return engine.autoSnapshot(vault as Vault, by, snapOpts)\n },\n ...(opts.snapshotPolicy ? { policy: opts.snapshotPolicy } : {}),\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAMO,IAAM,iBAAN,MAAqB;AAAA,EAC1B,YACmB,OACA,WACjB;AAFiB;AACA;AAAA,EAChB;AAAA,EAFgB;AAAA,EACA;AAAA,EAGX,SAAS,WAA2B;AAC1C,WAAO,GAAG,SAAS;AAAA,EACrB;AAAA,EAEQ,QAAQ,WAAmB,GAAmB;AACpD,WAAO,GAAG,SAAS,UAAU,EAAE,SAAS,EAAE,SAAS,GAAG,GAAG,CAAC;AAAA,EAC5D;AAAA,EAEQ,QAAQ,WAA2B;AACzC,WAAO,GAAG,SAAS;AAAA,EACrB;AAAA,EAEA,MAAc,UACZ,WACgE;AAChE,UAAM,S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AgB,OAAO;AAAA,IACvD;AAAA,IACA,aAAa,OAAO,IAAI,UAAU;AAChC,aAAO,OAAO,aAAa,OAAgB,IAAI,QAAQ;AAAA,IACzD;AAAA,IACA,GAAI,KAAK,iBAAiB,EAAE,QAAQ,KAAK,eAAe,IAAI,CAAC;AAAA,EAC/D;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/with-fork/snapshots/engine.ts","../../src/with-fork/snapshots/active.ts"],"sourcesContent":["import { writePod, readPod } from '../../with-pod/pod.js'\nimport { SnapshotNotFoundError } from '../../kernel/errors.js'\nimport type { NoydbPodStore } from '../../kernel/types.js'\nimport type { Vault } from '../../kernel/vault.js'\nimport type { SnapshotMeta, RetentionPolicy, SnapshotIndex } from './strategy.js'\n\nexport class SnapshotEngine {\n constructor(\n private readonly store: NoydbPodStore,\n private readonly retention: RetentionPolicy,\n ) {}\n\n private indexKey(vaultName: string): string {\n return `${vaultName}__index`\n }\n\n private snapKey(vaultName: string, n: number): string {\n return `${vaultName}__snap_${n.toString().padStart(6, '0')}`\n }\n\n private autoKey(vaultName: string): string {\n return `${vaultName}__auto`\n }\n\n private async readIndex(\n vaultName: string,\n ): Promise<{ index: SnapshotIndex; indexVersion: string | null }> {\n const result = await this.store.readBundle(this.indexKey(vaultName))\n if (!result) return { index: { snapshots: [], nextCounter: 1 }, indexVersion: null }\n const text = new TextDecoder().decode(result.bytes)\n return { index: JSON.parse(text) as SnapshotIndex, indexVersion: result.version }\n }\n\n private async writeIndex(\n vaultName: string,\n index: SnapshotIndex,\n expectedVersion: string | null,\n ): Promise<void> {\n const bytes = new TextEncoder().encode(JSON.stringify(index))\n await this.store.writeBundle(this.indexKey(vaultName), bytes, expectedVersion)\n }\n\n async snapshot(\n vault: Vault,\n by: string,\n opts?: { label?: string; note?: string },\n ): Promise<SnapshotMeta> {\n const bytes = await writePod(vault, {})\n const { index, indexVersion } = await this.readIndex(vault.name)\n const key = this.snapKey(vault.name, index.nextCounter)\n\n // Write blob first. If the subsequent index write fails, the next snapshot()\n // call will re-derive the same key (counter not persisted) and overwrite this blob.\n // This is an accepted v1 trade-off: failure window is narrow and requires a store\n // error between the two writes. A retry produces a fresh snapshot at the same key.\n await this.store.writeBundle(key, bytes, null)\n\n const meta: SnapshotMeta = {\n version: key,\n ...(opts?.label !== undefined ? { label: opts.label } : {}),\n ...(opts?.note !== undefined ? { note: opts.note } : {}),\n exportedAt: new Date().toISOString(),\n exportedBy: by,\n size: bytes.length,\n integrity: 'verified',\n }\n\n const newIndex: SnapshotIndex = {\n snapshots: [...index.snapshots, meta],\n nextCounter: index.nextCounter + 1,\n // Preserve the rolling auto slot — on-demand snapshots never touch it.\n ...(index.auto ? { auto: index.auto } : {}),\n }\n const toDelete = this.applyRetention(newIndex)\n await this.writeIndex(vault.name, newIndex, indexVersion)\n\n for (const k of toDelete) {\n await this.store.deleteBundle(k)\n }\n\n return meta\n }\n\n /**\n * Rolling auto-snapshot. Overwrites the single fixed `<vault>__auto` key and\n * stores its meta in `index.auto`, separate from the immutable `snapshots`\n * pool — retention never prunes it. Used by the cadence scheduler.\n */\n async autoSnapshot(\n vault: Vault,\n by: string,\n opts?: { label?: string; note?: string },\n ): Promise<SnapshotMeta> {\n const bytes = await writePod(vault, {})\n const { index, indexVersion } = await this.readIndex(vault.name)\n const key = this.autoKey(vault.name)\n\n // Unconditional overwrite of the rolling slot.\n await this.store.writeBundle(key, bytes, null)\n\n const meta: SnapshotMeta = {\n version: key,\n label: opts?.label ?? 'auto',\n ...(opts?.note !== undefined ? { note: opts.note } : {}),\n exportedAt: new Date().toISOString(),\n exportedBy: by,\n size: bytes.length,\n integrity: 'verified',\n auto: true,\n }\n\n index.auto = meta\n await this.writeIndex(vault.name, index, indexVersion)\n return meta\n }\n\n async listSnapshots(vaultId: string): Promise<SnapshotMeta[]> {\n const { index } = await this.readIndex(vaultId)\n const immutable = [...index.snapshots].reverse()\n return index.auto ? [index.auto, ...immutable] : immutable\n }\n\n async restoreSnapshot(vault: Vault, version: string): Promise<void> {\n if (!version.startsWith(`${vault.name}__`)) throw new SnapshotNotFoundError(version)\n const result = await this.store.readBundle(version)\n if (!result) throw new SnapshotNotFoundError(version)\n const { dumpJson } = await readPod(result.bytes)\n await vault.load(dumpJson)\n }\n\n /**\n * Applies the configured retention policy to `index`, mutating `index.snapshots`\n * in place and returning the blob keys that should be deleted from the store.\n * Called by `snapshot()` before the index is written.\n *\n * @internal — public for direct testing only\n */\n applyRetention(index: SnapshotIndex): string[] {\n const prune = this.retention.prune ?? true\n if (!prune) return []\n\n const toDelete: string[] = []\n let remaining = index.snapshots.slice()\n\n if (this.retention.keepLast !== undefined && remaining.length > this.retention.keepLast) {\n const excess = remaining.splice(0, remaining.length - this.retention.keepLast)\n toDelete.push(...excess.map(m => m.version))\n }\n\n if (this.retention.maxAgeDays !== undefined) {\n const cutoffMs = this.retention.maxAgeDays * 86_400_000\n const now = Date.now()\n const fresh = remaining.filter(m => now - new Date(m.exportedAt).getTime() <= cutoffMs)\n toDelete.push(...remaining.filter(m => !fresh.includes(m)).map(m => m.version))\n remaining = fresh\n }\n\n index.snapshots = remaining\n return toDelete\n }\n}\n","import { SnapshotEngine } from './engine.js'\nimport type { SnapshotsStrategy, RetentionPolicy } from './strategy.js'\nimport type { SnapshotPolicy } from './policy.js'\nimport type { NoydbPodStore } from '../../kernel/types.js'\nimport type { Vault } from '../../kernel/vault.js'\n\nexport interface WithSnapshotsOptions {\n /** Bundle store where snapshot blobs and the sidecar index are written. */\n store: NoydbPodStore\n /**\n * Declarative retention policy. Enforced eagerly after each on-demand `snapshot()`.\n * Defaults to no retention (all on-demand snapshots kept forever). Never affects\n * the rolling auto-snapshot.\n */\n retention?: RetentionPolicy\n /**\n * Automatic-snapshot cadence. Default `mode:'manual'` ⇒ no timers; snapshots\n * stay on-demand. Set `mode:'debounce'`/`'interval'` to enable auto-snapshots\n * to the rolling `<vault>__auto` key.\n */\n snapshotPolicy?: SnapshotPolicy\n}\n\nexport function withSnapshots(opts: WithSnapshotsOptions): SnapshotsStrategy {\n const engine = new SnapshotEngine(opts.store, opts.retention ?? {})\n return {\n snapshot(vault, by, snapOpts) {\n return engine.snapshot(vault as Vault, by, snapOpts)\n },\n listSnapshots(vaultId) {\n return engine.listSnapshots(vaultId)\n },\n restoreSnapshot(vault, version) {\n return engine.restoreSnapshot(vault as Vault, version)\n },\n autoSnapshot(vault, by, snapOpts) {\n return engine.autoSnapshot(vault as Vault, by, snapOpts)\n },\n ...(opts.snapshotPolicy ? { policy: opts.snapshotPolicy } : {}),\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAMO,IAAM,iBAAN,MAAqB;AAAA,EAC1B,YACmB,OACA,WACjB;AAFiB;AACA;AAAA,EAChB;AAAA,EAFgB;AAAA,EACA;AAAA,EAGX,SAAS,WAA2B;AAC1C,WAAO,GAAG,SAAS;AAAA,EACrB;AAAA,EAEQ,QAAQ,WAAmB,GAAmB;AACpD,WAAO,GAAG,SAAS,UAAU,EAAE,SAAS,EAAE,SAAS,GAAG,GAAG,CAAC;AAAA,EAC5D;AAAA,EAEQ,QAAQ,WAA2B;AACzC,WAAO,GAAG,SAAS;AAAA,EACrB;AAAA,EAEA,MAAc,UACZ,WACgE;AAChE,UAAM,SAAS,MAAM,KAAK,MAAM,WAAW,KAAK,SAAS,SAAS,CAAC;AACnE,QAAI,CAAC,OAAQ,QAAO,EAAE,OAAO,EAAE,WAAW,CAAC,GAAG,aAAa,EAAE,GAAG,cAAc,KAAK;AACnF,UAAM,OAAO,IAAI,YAAY,EAAE,OAAO,OAAO,KAAK;AAClD,WAAO,EAAE,OAAO,KAAK,MAAM,IAAI,GAAoB,cAAc,OAAO,QAAQ;AAAA,EAClF;AAAA,EAEA,MAAc,WACZ,WACA,OACA,iBACe;AACf,UAAM,QAAQ,IAAI,YAAY,EAAE,OAAO,KAAK,UAAU,KAAK,CAAC;AAC5D,UAAM,KAAK,MAAM,YAAY,KAAK,SAAS,SAAS,GAAG,OAAO,eAAe;AAAA,EAC/E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,GAAG,OAAO,IAAI,OAAK,EAAE,OAAO,CAAC;AAAA,IAC7C;AAEA,QAAI,KAAK,UAAU,eAAe,QAAW;AAC3C,YAAM,WAAW,KAAK,UAAU,aAAa;AAC7C,YAAM,MAAM,KAAK,IAAI;AACrB,YAAM,QAAQ,UAAU,OAAO,OAAK,MAAM,IAAI,KAAK,EAAE,UAAU,EAAE,QAAQ,KAAK,QAAQ;AACtF,eAAS,KAAK,GAAG,UAAU,OAAO,OAAK,CAAC,MAAM,SAAS,CAAC,CAAC,EAAE,IAAI,OAAK,EAAE,OAAO,CAAC;AAC9E,kBAAY;AAAA,IACd;AAEA,UAAM,YAAY;AAClB,WAAO;AAAA,EACT;AACF;;;ACzIO,SAAS,cAAc,MAA+C;AAC3E,QAAM,SAAS,IAAI,eAAe,KAAK,OAAO,KAAK,aAAa,CAAC,CAAC;AAClE,SAAO;AAAA,IACL,SAAS,OAAO,IAAI,UAAU;AAC5B,aAAO,OAAO,SAAS,OAAgB,IAAI,QAAQ;AAAA,IACrD;AAAA,IACA,cAAc,SAAS;AACrB,aAAO,OAAO,cAAc,OAAO;AAAA,IACrC;AAAA,IACA,gBAAgB,OAAO,SAAS;AAC9B,aAAO,OAAO,gBAAgB,OAAgB,OAAO;AAAA,IACvD;AAAA,IACA,aAAa,OAAO,IAAI,UAAU;AAChC,aAAO,OAAO,aAAa,OAAgB,IAAI,QAAQ;AAAA,IACzD;AAAA,IACA,GAAI,KAAK,iBAAiB,EAAE,QAAQ,KAAK,eAAe,IAAI,CAAC;AAAA,EAC/D;AACF;","names":[]}
@@ -6,17 +6,17 @@ import {
6
6
  isMVStale,
7
7
  markMVStale,
8
8
  resolveStaleMVOnRead
9
- } from "./chunk-H3BDH7DA.js";
9
+ } from "./chunk-R7E7X4CQ.js";
10
10
  import "./chunk-5D2ALSM5.js";
11
- import "./chunk-EZYLQKHP.js";
12
- import "./chunk-LVLXWIBF.js";
13
- import "./chunk-YRMA7CJH.js";
14
- import "./chunk-CUEWN4FX.js";
15
- import "./chunk-3IJK5FRG.js";
11
+ import "./chunk-ZWPUYBNK.js";
12
+ import "./chunk-IMYGJ5HU.js";
13
+ import "./chunk-FSZPQCDR.js";
14
+ import "./chunk-HVR74IBG.js";
15
+ import "./chunk-RBTZLXZJ.js";
16
16
  import "./chunk-LP7BEXCT.js";
17
- import "./chunk-WJD5VF2N.js";
18
- import "./chunk-7GWC6RI5.js";
19
- import "./chunk-CT35TQV7.js";
17
+ import "./chunk-QTDAPDDV.js";
18
+ import "./chunk-6ZFTVY3O.js";
19
+ import "./chunk-I64WQSN3.js";
20
20
  import "./chunk-PZ5AY32C.js";
21
21
  export {
22
22
  MV_STALE_COLLECTION,
@@ -27,4 +27,4 @@ export {
27
27
  markMVStale,
28
28
  resolveStaleMVOnRead
29
29
  };
30
- //# sourceMappingURL=stale-O3CZVYMO.js.map
30
+ //# sourceMappingURL=stale-OT5NMBXU.js.map
@@ -0,0 +1,23 @@
1
+ import {
2
+ SCHEMAS_COLLECTION,
3
+ loadPersistedSchema,
4
+ loadPersistedSchemaEntry,
5
+ savePersistedSchema
6
+ } from "./chunk-CK6Z5DJQ.js";
7
+ import "./chunk-ZWPUYBNK.js";
8
+ import "./chunk-IMYGJ5HU.js";
9
+ import "./chunk-FSZPQCDR.js";
10
+ import "./chunk-HVR74IBG.js";
11
+ import "./chunk-RBTZLXZJ.js";
12
+ import "./chunk-LP7BEXCT.js";
13
+ import "./chunk-QTDAPDDV.js";
14
+ import "./chunk-6ZFTVY3O.js";
15
+ import "./chunk-I64WQSN3.js";
16
+ import "./chunk-PZ5AY32C.js";
17
+ export {
18
+ SCHEMAS_COLLECTION,
19
+ loadPersistedSchema,
20
+ loadPersistedSchemaEntry,
21
+ savePersistedSchema
22
+ };
23
+ //# sourceMappingURL=storage-EWWIFB43.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  loadFence,
3
3
  saveFence
4
- } from "./chunk-GGM3JCEG.js";
4
+ } from "./chunk-LBQIKMBH.js";
5
5
  import {
6
6
  NOYDB_FORMAT_VERSION
7
- } from "./chunk-7GWC6RI5.js";
7
+ } from "./chunk-6ZFTVY3O.js";
8
8
  import "./chunk-PZ5AY32C.js";
9
9
 
10
10
  // src/with-shape/schema-update/client-registry.ts
@@ -139,4 +139,4 @@ function unref(timer) {
139
139
  export {
140
140
  StoreCoordinationProvider
141
141
  };
142
- //# sourceMappingURL=store-coordination-provider-RKBDHHN4.js.map
142
+ //# sourceMappingURL=store-coordination-provider-PPLVM2I2.js.map
@@ -2,20 +2,20 @@ import {
2
2
  PresenceHandle,
3
3
  SyncEngine,
4
4
  SyncTransaction
5
- } from "../chunk-MUE2CQX2.js";
5
+ } from "../chunk-QJYTGH5V.js";
6
6
  import {
7
7
  NO_SYNC
8
8
  } from "../chunk-JN64WH3U.js";
9
- import "../chunk-P7A2FX5Y.js";
10
- import "../chunk-EZYLQKHP.js";
11
- import "../chunk-LVLXWIBF.js";
12
- import "../chunk-YRMA7CJH.js";
13
- import "../chunk-CUEWN4FX.js";
14
- import "../chunk-3IJK5FRG.js";
9
+ import "../chunk-V4M4BZNW.js";
10
+ import "../chunk-ZWPUYBNK.js";
11
+ import "../chunk-IMYGJ5HU.js";
12
+ import "../chunk-FSZPQCDR.js";
13
+ import "../chunk-HVR74IBG.js";
14
+ import "../chunk-RBTZLXZJ.js";
15
15
  import "../chunk-LP7BEXCT.js";
16
- import "../chunk-WJD5VF2N.js";
17
- import "../chunk-7GWC6RI5.js";
18
- import "../chunk-CT35TQV7.js";
16
+ import "../chunk-QTDAPDDV.js";
17
+ import "../chunk-6ZFTVY3O.js";
18
+ import "../chunk-I64WQSN3.js";
19
19
  import "../chunk-PZ5AY32C.js";
20
20
 
21
21
  // src/with-sync/active.ts
@@ -2,7 +2,7 @@ import {
2
2
  MemoryDeviceSealProvider,
3
3
  beginEchoUnlock,
4
4
  withTeam
5
- } from "../chunk-45UIDGPY.js";
5
+ } from "../chunk-N6OJLR2M.js";
6
6
  import {
7
7
  NO_TEAM,
8
8
  burnPaperRecoveryEntry,
@@ -31,8 +31,8 @@ import {
31
31
  unwrapMagicLinkGrant,
32
32
  updateAuthenticator,
33
33
  writeMagicLinkGrant
34
- } from "../chunk-S7UTUFPU.js";
35
- import "../chunk-NW3PSKAN.js";
34
+ } from "../chunk-LWOSNMHE.js";
35
+ import "../chunk-YZ7BRD26.js";
36
36
  import {
37
37
  buildEchoBlock,
38
38
  buildRecipientKeyringFile,
@@ -53,20 +53,20 @@ import {
53
53
  updateKeyringIdentity,
54
54
  verifyPrompt,
55
55
  verifyTypedEcho
56
- } from "../chunk-CFM6GBNF.js";
57
- import "../chunk-EPUDMBVL.js";
58
- import "../chunk-37M5QBAS.js";
59
- import "../chunk-EZYLQKHP.js";
60
- import "../chunk-LVLXWIBF.js";
61
- import "../chunk-YRMA7CJH.js";
62
- import "../chunk-CUEWN4FX.js";
63
- import "../chunk-3IJK5FRG.js";
56
+ } from "../chunk-Y7MJSOZ7.js";
57
+ import "../chunk-CK7IRIRY.js";
58
+ import "../chunk-YVOW35HH.js";
59
+ import "../chunk-ZWPUYBNK.js";
60
+ import "../chunk-IMYGJ5HU.js";
61
+ import "../chunk-FSZPQCDR.js";
62
+ import "../chunk-HVR74IBG.js";
63
+ import "../chunk-RBTZLXZJ.js";
64
64
  import "../chunk-LP7BEXCT.js";
65
- import "../chunk-WJD5VF2N.js";
66
- import "../chunk-7GWC6RI5.js";
65
+ import "../chunk-QTDAPDDV.js";
66
+ import "../chunk-6ZFTVY3O.js";
67
67
  import {
68
68
  TeamNotEnabledError
69
- } from "../chunk-CT35TQV7.js";
69
+ } from "../chunk-I64WQSN3.js";
70
70
  import "../chunk-PZ5AY32C.js";
71
71
  export {
72
72
  MemoryDeviceSealProvider,
@@ -11,19 +11,19 @@ import {
11
11
  putAtTier,
12
12
  syncDerivedOutputs,
13
13
  withTiers
14
- } from "../chunk-PV76W4KB.js";
15
- import "../chunk-37M5QBAS.js";
16
- import "../chunk-EZYLQKHP.js";
17
- import "../chunk-LVLXWIBF.js";
18
- import "../chunk-YRMA7CJH.js";
19
- import "../chunk-CUEWN4FX.js";
20
- import "../chunk-3IJK5FRG.js";
14
+ } from "../chunk-GLS7OSZT.js";
15
+ import "../chunk-YVOW35HH.js";
16
+ import "../chunk-ZWPUYBNK.js";
17
+ import "../chunk-IMYGJ5HU.js";
18
+ import "../chunk-FSZPQCDR.js";
19
+ import "../chunk-HVR74IBG.js";
20
+ import "../chunk-RBTZLXZJ.js";
21
21
  import "../chunk-LP7BEXCT.js";
22
- import "../chunk-WJD5VF2N.js";
23
- import "../chunk-7GWC6RI5.js";
22
+ import "../chunk-QTDAPDDV.js";
23
+ import "../chunk-6ZFTVY3O.js";
24
24
  import {
25
25
  TiersNotEnabledError
26
- } from "../chunk-CT35TQV7.js";
26
+ } from "../chunk-I64WQSN3.js";
27
27
  import "../chunk-PZ5AY32C.js";
28
28
  export {
29
29
  NO_TIERS,
package/dist/to/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  PodVersionConflictError,
6
6
  StoreCapabilityError,
7
7
  UnknownStoreKindError
8
- } from "../chunk-CT35TQV7.js";
8
+ } from "../chunk-I64WQSN3.js";
9
9
  import "../chunk-PZ5AY32C.js";
10
10
 
11
11
  // src/port/to/locator.ts
@@ -3,16 +3,16 @@ import {
3
3
  TxContext,
4
4
  TxVault,
5
5
  runTransaction
6
- } from "../chunk-FWZ7WYAH.js";
6
+ } from "../chunk-4444HN72.js";
7
7
  import {
8
8
  lazy
9
9
  } from "../chunk-5D2ALSM5.js";
10
- import "../chunk-ZJADGNYF.js";
11
- import "../chunk-CT35TQV7.js";
10
+ import "../chunk-4AOERLTV.js";
11
+ import "../chunk-I64WQSN3.js";
12
12
  import "../chunk-PZ5AY32C.js";
13
13
 
14
14
  // src/with-commit/tx/dry-run.ts
15
- var loadGuardExecutor = lazy(() => import("../executor-VOD4C6ZA.js"));
15
+ var loadGuardExecutor = lazy(() => import("../executor-WFTHIDT7.js"));
16
16
  var SEP = " ";
17
17
  var keyOf = (op) => `${op.vaultName}${SEP}${op.collectionName}${SEP}${op.id}`;
18
18
  async function runDryRun(db, fn) {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  generateULID,
3
3
  isULID
4
- } from "./chunk-ZJADGNYF.js";
4
+ } from "./chunk-4AOERLTV.js";
5
5
  import "./chunk-PZ5AY32C.js";
6
6
  export {
7
7
  generateULID,
8
8
  isULID
9
9
  };
10
- //# sourceMappingURL=ulid-PTAIMDG4.js.map
10
+ //# sourceMappingURL=ulid-VQW6ERQN.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "../chunk-PY4KJPYU.js";
4
4
  import {
5
5
  FilenameSanitizationError
6
- } from "../chunk-CT35TQV7.js";
6
+ } from "../chunk-I64WQSN3.js";
7
7
  import "../chunk-PZ5AY32C.js";
8
8
 
9
9
  // src/kernel/util/sanitize-filename.ts
@@ -2,10 +2,10 @@ import {
2
2
  blindedEqual,
3
3
  evaluateKofN,
4
4
  openVdigPayload
5
- } from "./chunk-YRMA7CJH.js";
5
+ } from "./chunk-FSZPQCDR.js";
6
6
  import {
7
7
  dualReadSealedSlot
8
- } from "./chunk-CUEWN4FX.js";
8
+ } from "./chunk-HVR74IBG.js";
9
9
  import {
10
10
  VDIG_ITERATIONS,
11
11
  normalizeForVerify,
@@ -14,11 +14,11 @@ import {
14
14
  import {
15
15
  base64ToBuffer,
16
16
  generateSalt
17
- } from "./chunk-WJD5VF2N.js";
17
+ } from "./chunk-QTDAPDDV.js";
18
18
  import {
19
19
  ClassifiedConfigError,
20
20
  ClassifiedVerifyError
21
- } from "./chunk-CT35TQV7.js";
21
+ } from "./chunk-I64WQSN3.js";
22
22
  import "./chunk-PZ5AY32C.js";
23
23
 
24
24
  // src/kernel/enclave/classify/verify.ts
@@ -137,4 +137,4 @@ export {
137
137
  verifyDigestField,
138
138
  verifyTextField
139
139
  };
140
- //# sourceMappingURL=verify-GB7SBYC3.js.map
140
+ //# sourceMappingURL=verify-SHJXGZGM.js.map
@@ -0,0 +1,21 @@
1
+ import {
2
+ dumpVaultSchema
3
+ } from "./chunk-KTCQKXHW.js";
4
+ import "./chunk-KHKKD62N.js";
5
+ import "./chunk-HNOBRU24.js";
6
+ import "./chunk-Y2NBBT6K.js";
7
+ import "./chunk-CK6Z5DJQ.js";
8
+ import "./chunk-ZWPUYBNK.js";
9
+ import "./chunk-IMYGJ5HU.js";
10
+ import "./chunk-FSZPQCDR.js";
11
+ import "./chunk-HVR74IBG.js";
12
+ import "./chunk-RBTZLXZJ.js";
13
+ import "./chunk-LP7BEXCT.js";
14
+ import "./chunk-QTDAPDDV.js";
15
+ import "./chunk-6ZFTVY3O.js";
16
+ import "./chunk-I64WQSN3.js";
17
+ import "./chunk-PZ5AY32C.js";
18
+ export {
19
+ dumpVaultSchema
20
+ };
21
+ //# sourceMappingURL=walk-4NIT2ZBH.js.map
@@ -12,7 +12,7 @@ import type { NoydbStore } from '../kernel/types.js';
12
12
  import type { SealingKeyProvider } from '../with-party/team/managed-secret.js';
13
13
  import type { ShamirRecoveryProvider } from '../with-party/team/shamir-recovery-provider.js';
14
14
  import type { RecoveryEnrollmentInput } from '../with-party/team/rotate-recover.js';
15
- import type { TransferSealPayload } from '../with-pod/bundle.js';
15
+ import type { TransferSealPayload } from '../with-pod/pod.js';
16
16
  /**
17
17
  * Reverse of `sealDeks`. Imports the transfer key, decrypts the
18
18
  * sealed `{ collection: base64(rawDEK) }` map (layout iv(12)‖ct‖tag), and
@@ -10,7 +10,7 @@ import type { Vault } from '../kernel/vault.js';
10
10
  import type { EncryptedEnvelope } from '../kernel/types.js';
11
11
  import { type EnclaveKey } from '../kernel/enclave/index.js';
12
12
  import { type WalkClosureOptions, type DanglingRefNotice } from './walk-closure.js';
13
- import { type TransferSealPayload } from '../with-pod/bundle.js';
13
+ import { type TransferSealPayload } from '../with-pod/pod.js';
14
14
  /** Re-keyed collections snapshot + the fresh DEKs used. */
15
15
  export interface ReKeyResult {
16
16
  readonly collections: Record<string, Record<string, EncryptedEnvelope>>;
@@ -43,4 +43,4 @@ export type { WriteConflict } from '../kernel/types.js';
43
43
  export type { AccessibleVault } from '../kernel/types.js';
44
44
  export type { Unsubscribe } from '../kernel/types.js';
45
45
  export type { ExtractPartitionOptions } from './extract-partition.js';
46
- export type { TransferSealPayload } from '../with-pod/bundle.js';
46
+ export type { TransferSealPayload } from '../with-pod/pod.js';
@@ -17,7 +17,7 @@ export { NO_TEAM, type TeamStrategy } from './strategy.js';
17
17
  export { TeamNotEnabledError } from '../../kernel/errors.js';
18
18
  export type { UnlockedKeyring } from './keyring.js';
19
19
  export { loadKeyring, createOwnerKeyring, grant, revoke, changeSecret, listUsers, listUsersWithEnvelopes, ensureCollectionDEK, persistKeyring, updateKeyringIdentity, buildRecipientKeyringFile, } from './keyring.js';
20
- export type { BundleRecipient, ListUsersOptions } from './keyring.js';
20
+ export type { PodRecipient, ListUsersOptions } from './keyring.js';
21
21
  export type { LoadKeyringOptions, CreateOwnerKeyringOptions, RotateKeysOptions, ChangeSecretOptions, } from './keyring.js';
22
22
  export { enrollAuthenticator, removeAuthenticator, updateAuthenticator, findAuthenticator, } from './authenticators.js';
23
23
  export type { EnrollAuthenticatorOptions, EnrollAuthenticatorWrappingKEKOptions, EnrollAuthenticatorWrappingDEKsOptions, UpdateAuthenticatorOptions, } from './authenticators.js';
@@ -261,7 +261,7 @@ export interface EchoRecipientSecret extends EchoSecretParts {
261
261
  *
262
262
  * @public
263
263
  */
264
- export interface BundleRecipient {
264
+ export interface PodRecipient {
265
265
  /** User id stamped onto the keyring file in the bundle. */
266
266
  readonly id: string;
267
267
  /** Optional display name. Defaults to `id`. */
@@ -312,7 +312,7 @@ export interface BundleRecipient {
312
312
  *
313
313
  * @internal
314
314
  */
315
- export declare function buildRecipientKeyringFile(callerKeyring: UnlockedKeyring, recipient: BundleRecipient): Promise<KeyringFile>;
315
+ export declare function buildRecipientKeyringFile(callerKeyring: UnlockedKeyring, recipient: PodRecipient): Promise<KeyringFile>;
316
316
  /** List all users with access to a vault. */
317
317
  export declare function listUsers(store: NoydbStore, vault: string): Promise<UserInfo[]>;
318
318
  /**
@@ -47,14 +47,14 @@
47
47
  */
48
48
  import type { Cover } from '../with-party/directory/cover/types.js';
49
49
  import type { Redirect } from './redirect.js';
50
- /** Magic bytes 'NDB1' (ASCII), identifying a NOYDB bundle. */
51
- export declare const NOYDB_BUNDLE_MAGIC: Uint8Array<ArrayBuffer>;
50
+ /** Magic bytes 'NDB1' (ASCII) — `NoyDB 1` — identifying a NOYDB pod (`.noydb` container). */
51
+ export declare const NOYDB_POD_MAGIC: Uint8Array<ArrayBuffer>;
52
52
  /** Total fixed prefix before the header JSON: 4+1+1+4 bytes. */
53
- export declare const NOYDB_BUNDLE_PREFIX_BYTES = 10;
53
+ export declare const NOYDB_POD_PREFIX_BYTES = 10;
54
54
  /** Current bundle format version. Bumped on layout changes. Default for unsigned pods. */
55
- export declare const NOYDB_BUNDLE_FORMAT_VERSION = 1;
55
+ export declare const NOYDB_POD_FORMAT_VERSION = 1;
56
56
  /** Format version for pods carrying a header signature (`sig`/`keyId`/`sigAlg`). */
57
- export declare const NOYDB_BUNDLE_FORMAT_VERSION_SIGNED = 2;
57
+ export declare const NOYDB_POD_FORMAT_VERSION_SIGNED = 2;
58
58
  /**
59
59
  * Bitfield interpretation of the flags byte.
60
60
  *
@@ -85,7 +85,7 @@ export type CompressionAlgo = 0 | 1 | 2;
85
85
  *
86
86
  * **Minimum-disclosure rules:** these are the ONLY allowed keys.
87
87
  * Any other key in a parsed header causes
88
- * `validateBundleHeader` to throw. The set is kept short to
88
+ * `validatePodHeaderFields` to throw. The set is kept short to
89
89
  * minimize attack surface from cloud-storage metadata indexing —
90
90
  * see the file-level doc comment for the rationale.
91
91
  *
@@ -264,18 +264,18 @@ export type UnlockMethod = 'password' | 'webauthn' | 'oidc' | 'totp' | 'email-ot
264
264
  * The error messages name the offending field so consumers can
265
265
  * fix the producer rather than the reader.
266
266
  */
267
- export declare function validateBundleHeader(parsed: unknown): asserts parsed is NoydbPodHeader;
267
+ export declare function validatePodHeaderFields(parsed: unknown): asserts parsed is NoydbPodHeader;
268
268
  /**
269
269
  * Encode a header object to UTF-8 JSON bytes after validating
270
270
  * minimum disclosure. Used by the writer to serialize the header
271
271
  * region of the container.
272
272
  */
273
- export declare function encodeBundleHeader(header: NoydbPodHeader): Uint8Array;
273
+ export declare function encodePodHeader(header: NoydbPodHeader): Uint8Array;
274
274
  /**
275
275
  * Parse a bundle header from its UTF-8 JSON bytes. Throws on
276
276
  * invalid JSON or any minimum-disclosure violation.
277
277
  */
278
- export declare function decodeBundleHeader(bytes: Uint8Array): NoydbPodHeader;
278
+ export declare function decodePodHeader(bytes: Uint8Array): NoydbPodHeader;
279
279
  /**
280
280
  * Read a uint32 from `bytes` at `offset` in big-endian byte order.
281
281
  * No bounds check — callers must guarantee `offset + 4 <= bytes.length`.
@@ -293,4 +293,4 @@ export declare function writeUint32BE(bytes: Uint8Array, offset: number, value:
293
293
  * 4 bytes match `NDB1`. Used by readers as a fast file-type check
294
294
  * before any further parsing.
295
295
  */
296
- export declare function hasNoydbBundleMagic(bytes: Uint8Array): boolean;
296
+ export declare function hasNoydbPodMagic(bytes: Uint8Array): boolean;
@@ -11,19 +11,19 @@
11
11
  * omit this subpath and save ~805 LOC of format code + Brotli/gzip
12
12
  * wiring.
13
13
  */
14
- export { writePod, readPod, readPodHeader, readPodCover, resetBrotliSupportCache, } from './bundle.js';
14
+ export { writePod, readPod, readPodHeader, readPodCover, resetBrotliSupportCache, } from './pod.js';
15
15
  export type { Cover } from '../with-party/directory/cover/types.js';
16
- export type { WritePodOptions, ReadPodOptions, PodReadResult, } from './bundle.js';
17
- export { verifyPodHeader } from './bundle.js';
18
- export type { PodVerifyResult } from './bundle.js';
16
+ export type { WritePodOptions, ReadPodOptions, PodReadResult, } from './pod.js';
17
+ export { verifyPodHeader } from './pod.js';
18
+ export type { PodVerifyResult } from './pod.js';
19
19
  export { signRecord, verifyRecord, signedBytes, POD_SIG_ALG } from './signature.js';
20
- export { NOYDB_BUNDLE_MAGIC, NOYDB_BUNDLE_PREFIX_BYTES, NOYDB_BUNDLE_FORMAT_VERSION, FLAG_COMPRESSED, FLAG_HAS_INTEGRITY_HASH, COMPRESSION_NONE, COMPRESSION_GZIP, COMPRESSION_BROTLI, validateBundleHeader, encodeBundleHeader, hasNoydbBundleMagic, } from './format.js';
20
+ export { NOYDB_POD_MAGIC, NOYDB_POD_PREFIX_BYTES, NOYDB_POD_FORMAT_VERSION, FLAG_COMPRESSED, FLAG_HAS_INTEGRITY_HASH, COMPRESSION_NONE, COMPRESSION_GZIP, COMPRESSION_BROTLI, validatePodHeaderFields, encodePodHeader, hasNoydbPodMagic, } from './format.js';
21
21
  export type { CompressionAlgo, NoydbPodHeader, UnlockMethod, } from './format.js';
22
22
  export { generateULID, isULID } from './ulid.js';
23
23
  export { wrapPodStore, createPodStore } from './pod-store.js';
24
24
  export type { WrappedPodNoydbStore, WrapPodStoreOptions, } from './pod-store.js';
25
- export { BundleIntegrityError, BundleSealMismatchError, PodVersionConflictError, BackupLedgerError, BackupCorruptedError, } from '../kernel/errors.js';
26
- export { readPodRedirect } from './bundle.js';
25
+ export { PodIntegrityError, PodSealMismatchError, PodVersionConflictError, BackupLedgerError, BackupCorruptedError, } from '../kernel/errors.js';
26
+ export { readPodRedirect } from './pod.js';
27
27
  export { signRedirect, verifyRedirect, followRedirects } from './redirect.js';
28
28
  export type { Redirect, RedirectHop, FollowRedirectsResult } from './redirect.js';
29
29
  export type { DocSigner } from '../with-audit/attestation/signer.js';
@@ -6,7 +6,7 @@
6
6
  * reachable through published seams). Composes, in order:
7
7
  *
8
8
  * 1. `readPod` — parse + integrity-check the container (throws
9
- * `BundleIntegrityError` on a corrupted/truncated pod).
9
+ * `PodIntegrityError` on a corrupted/truncated pod).
10
10
  * 2. `verifyPodHeader` — only when `opts.trustedKeys` is supplied.
11
11
  * `'unsigned'` is benign (legacy pod, or `writePod({ sign: false })`)
12
12
  * and open() proceeds; `'untrusted'` / `'tampered'` are fail-closed —
@@ -63,7 +63,7 @@
63
63
  * @module
64
64
  */
65
65
  import type { NoydbPodHeader } from './format.js';
66
- import type { PodVerifyResult } from './bundle.js';
66
+ import type { PodVerifyResult } from './pod.js';
67
67
  import type { Noydb } from '../kernel/noydb.js';
68
68
  import type { Vault } from '../kernel/vault.js';
69
69
  import type { NoydbOptions, NoydbStore, EchoSecretParts } from '../kernel/types.js';
@@ -3,7 +3,7 @@ import type { NoydbStore } from '../kernel/types.js';
3
3
  * Return the stable opaque bundle handle for the given vault adapter,
4
4
  * generating and persisting a fresh ULID on first call.
5
5
  *
6
- * See {@link import('../kernel/vault.js').Vault.getBundleHandle} for
6
+ * See {@link import('../kernel/vault.js').Vault.getPodHandle} for
7
7
  * the full rationale and storage-path documentation.
8
8
  */
9
- export declare function buildBundleHandle(adapter: NoydbStore, name: string): Promise<string>;
9
+ export declare function buildPodHandle(adapter: NoydbStore, name: string): Promise<string>;
@@ -36,7 +36,7 @@ import { type NoydbPodHeader, type UnlockMethod } from './format.js';
36
36
  import type { Redirect } from './redirect.js';
37
37
  import type { DocSigner } from '../with-audit/attestation/signer.js';
38
38
  import type { Vault } from '../kernel/vault.js';
39
- import type { BundleRecipient } from '../with-party/team/keyring.js';
39
+ import type { PodRecipient } from '../with-party/team/keyring.js';
40
40
  import type { Cover } from '../with-party/directory/cover/types.js';
41
41
  import type { SealingKeyProvider, RecipientSealer, RecipientHint } from '../with-party/team/managed-secret.js';
42
42
  /**
@@ -128,7 +128,7 @@ export interface WritePodOptions {
128
128
  * the bundle inherits the source keyring as-is (today's behaviour,
129
129
  * suited to personal backup-and-restore).
130
130
  */
131
- readonly recipients?: readonly BundleRecipient[];
131
+ readonly recipients?: readonly PodRecipient[];
132
132
  /**
133
133
  * Auto-unlock — unsealed per-user credentials.
134
134
  *
@@ -371,7 +371,7 @@ export declare function resetBrotliSupportCache(): void;
371
371
  *
372
372
  * Pipeline:
373
373
  * 1. Resolve or create the compartment's stable bundle handle
374
- * via `vault.getBundleHandle()` — same handle on
374
+ * via `vault.getPodHandle()` — same handle on
375
375
  * every export from the same vault instance, so cloud
376
376
  * adapters can use it as a primary key.
377
377
  * 2. `vault.dump()` → JSON string with encrypted records
@@ -396,7 +396,7 @@ export declare function resetBrotliSupportCache(): void;
396
396
  *
397
397
  * @internal
398
398
  */
399
- export declare function assembleBundleContainer(opts: {
399
+ export declare function assemblePodContainer(opts: {
400
400
  handle: string;
401
401
  bodyJsonStr: string;
402
402
  compression: WritePodOptions['compression'];
@@ -451,7 +451,7 @@ export interface PodVerifyResult {
451
451
  * (`keyId → publicKeyB64` the caller already trusts), it reports whether the
452
452
  * header was signed by a trusted document signer.
453
453
  *
454
- * Pairs with the signing half in `assembleBundleContainer`/`writePod`: the
454
+ * Pairs with the signing half in `assemblePodContainer`/`writePod`: the
455
455
  * signed payload is the final wire header with `sig` removed, so verification
456
456
  * reconstructs it by stripping EXACTLY the `sig` field — `keyId`, `sigAlg`,
457
457
  * and every other header field stay in the verified payload.
@@ -463,7 +463,7 @@ export interface PodVerifyResult {
463
463
  * header (which includes the *claimed* `bodySha256`) is signed by a trusted
464
464
  * key; it does NOT prove the body matches that hash. To trust the pod's
465
465
  * BODY you MUST also confirm the body hashes to `header.bodySha256` — call
466
- * `readPod`, which throws `BundleIntegrityError` on mismatch. A `verified`
466
+ * `readPod`, which throws `PodIntegrityError` on mismatch. A `verified`
467
467
  * header paired with a swapped body is caught only by that integrity check.
468
468
  * This function stays body-free by design so a static page can authenticate a
469
469
  * header without decompressing the body; composing the two checks is the
@@ -492,7 +492,7 @@ export declare function readPodCover(bytes: Uint8Array, opts?: {
492
492
  * the header's `redirect` field or `undefined` if the bundle was written
493
493
  * without one.
494
494
  *
495
- * The record is returned UNVERIFIED: `validateBundleHeader` only checks
495
+ * The record is returned UNVERIFIED: `validatePodHeaderFields` only checks
496
496
  * its shape at parse time (a parser has no `trustedKeys`). Callers that
497
497
  * intend to follow the redirect MUST separately call `verifyRedirect`
498
498
  * (`redirect.js`) before trusting `target`.
@@ -504,7 +504,7 @@ export declare function readPodRedirect(bytes: Uint8Array): Redirect | undefined
504
504
  * original `vault.dump()` JSON string ready to pass to
505
505
  * `vault.load()`.
506
506
  *
507
- * Throws `BundleIntegrityError` if the body's actual SHA-256 does
507
+ * Throws `PodIntegrityError` if the body's actual SHA-256 does
508
508
  * not match the value declared in the header. Distinct from a
509
509
  * format error so consumers can pattern-match in catch blocks
510
510
  * (corrupted-in-transit vs malformed-by-producer).
@@ -39,7 +39,7 @@
39
39
  *
40
40
  * If a future use case needs timestamp-free handles, a v2 of the
41
41
  * format could specify "use the random portion only" without a
42
- * format break — `validateBundleHeader` only checks the regex
42
+ * format break — `validatePodHeaderFields` only checks the regex
43
43
  * shape, not the encoded timestamp.
44
44
  */
45
45
  /**