@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,12 +1,12 @@
1
1
  import {
2
2
  installViaBinder
3
- } from "./chunk-7DK6CYXO.js";
3
+ } from "./chunk-RVTOCAHQ.js";
4
4
  import {
5
5
  LocaleNotSpecifiedError,
6
6
  MissingTranslationError,
7
7
  ScriptViolationError,
8
8
  TranslatorNotConfiguredError
9
- } from "./chunk-CT35TQV7.js";
9
+ } from "./chunk-I64WQSN3.js";
10
10
 
11
11
  // src/port/with/i18n-strategy.ts
12
12
  function notEnabled(op) {
@@ -618,4 +618,4 @@ export {
618
618
  presentI18nForJoin,
619
619
  stripI18nFilled
620
620
  };
621
- //# sourceMappingURL=chunk-EWTAUGAK.js.map
621
+ //# sourceMappingURL=chunk-SZZEDEIU.js.map
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  generateULID
3
- } from "./chunk-ZJADGNYF.js";
3
+ } from "./chunk-4AOERLTV.js";
4
4
  import {
5
5
  base64ToBuffer,
6
6
  bufferToBase64
7
- } from "./chunk-WJD5VF2N.js";
7
+ } from "./chunk-QTDAPDDV.js";
8
8
  import {
9
9
  SessionExpiredError,
10
10
  SessionNotFoundError,
11
11
  SessionPolicyError,
12
12
  ValidationError
13
- } from "./chunk-CT35TQV7.js";
13
+ } from "./chunk-I64WQSN3.js";
14
14
 
15
15
  // src/with-party/session/session.ts
16
16
  var subtle = globalThis.crypto.subtle;
@@ -364,4 +364,4 @@ export {
364
364
  clearDevUnlock,
365
365
  isDevUnlockActive
366
366
  };
367
- //# sourceMappingURL=chunk-ZG7MXW5J.js.map
367
+ //# sourceMappingURL=chunk-T7AEAFEE.js.map
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  createNoydb
3
- } from "./chunk-AS53PYO6.js";
3
+ } from "./chunk-DZWRTWN2.js";
4
4
  import {
5
5
  deriveSchemaManifest
6
- } from "./chunk-SX2ZKKZS.js";
6
+ } from "./chunk-ZHDMT2MJ.js";
7
7
  import {
8
8
  loadFence
9
- } from "./chunk-GGM3JCEG.js";
9
+ } from "./chunk-LBQIKMBH.js";
10
10
  import {
11
11
  readPod,
12
12
  readPodRedirect,
13
13
  signRecord,
14
14
  verifyPodHeader,
15
15
  verifyRecord
16
- } from "./chunk-GAELDPIH.js";
16
+ } from "./chunk-4LNFXGNW.js";
17
17
  import {
18
18
  loadKeyring
19
- } from "./chunk-CFM6GBNF.js";
19
+ } from "./chunk-Y7MJSOZ7.js";
20
20
  import {
21
21
  ConflictError,
22
22
  MigrationRequiredError,
@@ -26,7 +26,7 @@ import {
26
26
  RedirectDepthExceededError,
27
27
  RedirectLoopError,
28
28
  RedirectUnreachableError
29
- } from "./chunk-CT35TQV7.js";
29
+ } from "./chunk-I64WQSN3.js";
30
30
 
31
31
  // src/with-pod/pod-store.ts
32
32
  var BUNDLE_STORE_VERSION = 1;
@@ -286,4 +286,4 @@ export {
286
286
  followRedirects,
287
287
  open
288
288
  };
289
- //# sourceMappingURL=chunk-KMLMEIWV.js.map
289
+ //# sourceMappingURL=chunk-THYGVKZB.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/with-pod/pod-store.ts","../src/with-pod/redirect.ts","../src/with-pod/open.ts"],"sourcesContent":["import type { NoydbStore, NoydbPodStore, VaultSnapshot, EncryptedEnvelope } from '../kernel/types.js'\nimport { ConflictError, PodVersionConflictError } from '../kernel/errors.js'\n\n// ─── Bundle format ─────────────────────────────────────────────────────\n\nconst BUNDLE_STORE_VERSION = 1 as const\n\n/**\n * Wire format written by `wrapPodStore`. A JSON-serialised object that\n * contains the entire `VaultSnapshot` (all encrypted envelopes) plus a small\n * header for integrity checking. The envelopes inside are already AES-GCM\n * encrypted by core — the bundle bytes themselves are not additionally\n * encrypted, but they are safe to store on untrusted blob hosts because\n * every record inside is already ciphertext.\n *\n * @internal\n */\ninterface BundleStoreData {\n readonly _noydb_bundle_store: typeof BUNDLE_STORE_VERSION\n readonly vault: string\n readonly ts: string\n readonly data: VaultSnapshot\n}\n\n// ─── Options ───────────────────────────────────────────────────────────\n\nexport interface WrapPodStoreOptions {\n /**\n * When `true` (default), every `put()` and `delete()` flushes the full\n * vault snapshot to the bundle backend. Set to `false` for bulk operations\n * and call `store.flush(vaultId)` manually.\n */\n autoFlush?: boolean\n}\n\n// ─── Extended NoydbStore with flush/batch ───────────────────────────────\n\nexport interface WrappedPodNoydbStore extends NoydbStore {\n /** Manually flush the in-memory snapshot to the bundle backend. */\n flush(vaultId: string): Promise<void>\n /**\n * Run a batch of mutations without flushing until the callback completes.\n * A single flush is performed at the end.\n */\n batch(vaultId: string, fn: () => Promise<void>): Promise<void>\n}\n\n// ─── wrapPodStore ───────────────────────────────────────────────────\n\nconst MAX_CONFLICT_RETRIES = 3\n\n/**\n * Convert a `NoydbPodStore` (blob-oriented read/write with OCC) into the\n * standard six-method `NoydbStore` interface expected by `createNoydb({ store })`.\n *\n * Bundle stores operate on the entire vault as a single serialised unit —\n * ideal for backends like Google Drive, WebDAV, or iCloud Drive that work\n * best with whole-file I/O rather than per-record KV operations.\n *\n * ## Optimistic concurrency\n *\n * The wrapper tracks the `version` token from the last `readBundle` and\n * passes it as `expectedVersion` on every flush. On\n * `PodVersionConflictError`, it re-reads, merges the remote snapshot\n * (last-write-wins per record key), and retries (max 3 attempts).\n *\n * ## Flush modes\n *\n * By default, flushes on every mutation (O(vault size) per write). Options:\n * - `autoFlush: false` + explicit `store.flush(vaultId)` calls\n * - `store.batch(vaultId, async () => { ... })` — defers flush until end\n * - Pair with `syncPolicy: { push: { mode: 'debounce' } }` from \n */\nexport function wrapPodStore(\n bundle: NoydbPodStore,\n options?: WrapPodStoreOptions,\n): WrappedPodNoydbStore {\n const autoFlush = options?.autoFlush !== false\n\n // Per-vault state\n const snapshots = new Map<string, VaultSnapshot>()\n const versions = new Map<string, string | null>()\n const loaded = new Set<string>()\n\n // Batch mode: when > 0, suppress auto-flush\n let batchDepth = 0\n\n // #908 — in-flight loads, keyed by vault. Without this, every concurrent\n // caller issued its own `readBundle` and then REPLACED `snapshots` with a\n // freshly parsed object — orphaning the mutations earlier callers had\n // already made to the object they were handed. 100 racing puts kept 1.\n const loading = new Map<string, Promise<VaultSnapshot>>()\n\n async function load(vault: string): Promise<VaultSnapshot> {\n if (loaded.has(vault)) return snapshots.get(vault)!\n\n const inFlight = loading.get(vault)\n if (inFlight) return inFlight\n\n const pending = (async () => {\n const result = await bundle.readBundle(vault)\n if (result) {\n const text = new TextDecoder().decode(result.bytes)\n const format = JSON.parse(text) as BundleStoreData\n snapshots.set(vault, format.data)\n versions.set(vault, result.version)\n } else {\n snapshots.set(vault, {})\n versions.set(vault, null)\n }\n\n loaded.add(vault)\n return snapshots.get(vault)!\n })()\n\n loading.set(vault, pending)\n try {\n return await pending\n } finally {\n // Clear on failure too, so a transient read error does not poison\n // every later load of this vault with a rejected promise.\n loading.delete(vault)\n }\n }\n\n async function flush(vault: string): Promise<void> {\n const snapshot = snapshots.get(vault) ?? {}\n const format: BundleStoreData = {\n _noydb_bundle_store: BUNDLE_STORE_VERSION,\n vault,\n ts: new Date().toISOString(),\n data: snapshot,\n }\n const bytes = new TextEncoder().encode(JSON.stringify(format))\n const expectedVersion = versions.get(vault) ?? null\n\n for (let attempt = 0; attempt < MAX_CONFLICT_RETRIES; attempt++) {\n try {\n const { version: newVersion } = await bundle.writeBundle(vault, bytes, expectedVersion)\n versions.set(vault, newVersion)\n return\n } catch (err) {\n if (err instanceof PodVersionConflictError && attempt < MAX_CONFLICT_RETRIES - 1) {\n // Pull remote, merge (last-write-wins by record key), retry\n const remote = await bundle.readBundle(vault)\n if (remote) {\n const remoteText = new TextDecoder().decode(remote.bytes)\n const remoteFormat = JSON.parse(remoteText) as BundleStoreData\n const localSnap = snapshots.get(vault) ?? {}\n const mergedSnap = mergeSnapshots(remoteFormat.data, localSnap)\n snapshots.set(vault, mergedSnap)\n versions.set(vault, remote.version)\n }\n // Re-encode with merged data for the retry\n continue\n }\n throw err\n }\n }\n }\n\n // #908 — one flush at a time per vault. `flush` reads and writes the vault's\n // version token, so concurrent flushes race: each sends the same\n // `expectedVersion`, the losers take the conflict/merge path, and with enough\n // of them the retry budget is exhausted and the error surfaces to a caller\n // whose write was perfectly valid. Serialising makes every flush see the\n // token its predecessor produced.\n const flushChain = new Map<string, Promise<void>>()\n\n function serialFlush(vault: string): Promise<void> {\n const prev = flushChain.get(vault) ?? Promise.resolve()\n // Chain past a rejection as well — one failed flush must not wedge every\n // subsequent write to this vault.\n const next = prev.then(() => flush(vault), () => flush(vault))\n flushChain.set(vault, next)\n return next\n }\n\n async function maybeFlush(vault: string): Promise<void> {\n if (autoFlush && batchDepth === 0) {\n await serialFlush(vault)\n }\n }\n\n const store: WrappedPodNoydbStore = {\n name: bundle.name ?? 'bundle',\n\n async flush(vaultId: string): Promise<void> {\n await serialFlush(vaultId)\n },\n\n async batch(vaultId: string, fn: () => Promise<void>): Promise<void> {\n await load(vaultId) // ensure loaded before batch\n batchDepth++\n try {\n await fn()\n } finally {\n batchDepth--\n }\n await serialFlush(vaultId)\n },\n\n async get(vault: string, collection: string, id: string): Promise<EncryptedEnvelope | null> {\n const snap = await load(vault)\n return snap[collection]?.[id] ?? null\n },\n\n async put(\n vault: string,\n collection: string,\n id: string,\n envelope: EncryptedEnvelope,\n expectedVersion?: number,\n ): Promise<void> {\n const snap = await load(vault)\n\n if (expectedVersion !== undefined) {\n const current = snap[collection]?.[id]\n const currentVersion = current?._v ?? 0\n if (currentVersion !== expectedVersion) {\n throw new ConflictError(\n currentVersion,\n `Expected version ${expectedVersion} but found ${currentVersion} on ${collection}/${id}`,\n )\n }\n }\n\n snap[collection] ??= {}\n snap[collection][id] = envelope\n await maybeFlush(vault)\n },\n\n async delete(vault: string, collection: string, id: string): Promise<void> {\n const snap = await load(vault)\n if (snap[collection]) {\n delete snap[collection][id]\n await maybeFlush(vault)\n }\n },\n\n async list(vault: string, collection: string): Promise<string[]> {\n const snap = await load(vault)\n return Object.keys(snap[collection] ?? {})\n },\n\n async loadAll(vault: string): Promise<VaultSnapshot> {\n const snap = await load(vault)\n // #908 — two contract fixes in one place:\n // 1. internal collections (`_keyring`, `_sync`) are the vault's own\n // bookkeeping and must not appear in a snapshot — `@noy-db/to-file`\n // sets the reference behaviour with this same `_`-prefix rule;\n // 2. copy rather than hand out the live cache, which let a caller\n // mutating the result silently rewrite the wrapper's own state.\n // `get()`/`list()` still serve internal collections; this is about what\n // a *snapshot* claims, not about hiding data.\n const out: VaultSnapshot = {}\n for (const [collection, records] of Object.entries(snap)) {\n if (collection.startsWith('_')) continue\n out[collection] = { ...records }\n }\n return out\n },\n\n async saveAll(vault: string, data: VaultSnapshot): Promise<void> {\n snapshots.set(vault, data)\n loaded.add(vault)\n await serialFlush(vault)\n },\n }\n\n return store\n}\n\n// ─── Snapshot merge (last-write-wins per record) ────────────────────────\n\nfunction mergeSnapshots(remote: VaultSnapshot, local: VaultSnapshot): VaultSnapshot {\n const merged: VaultSnapshot = {}\n\n // Start with all remote collections\n for (const [coll, records] of Object.entries(remote)) {\n merged[coll] = { ...records }\n }\n\n // Overlay local collections — LWW by _ts per record\n for (const [coll, records] of Object.entries(local)) {\n if (!merged[coll]) {\n merged[coll] = { ...records }\n continue\n }\n for (const [id, envelope] of Object.entries(records)) {\n const existing = merged[coll][id]\n if (!existing || envelope._ts >= existing._ts) {\n merged[coll][id] = envelope\n }\n }\n }\n\n return merged\n}\n\n// ─── Factory helper ─────────────────────────────────────────────────────\n\n/**\n * Type-safe factory helper for `NoydbPodStore` implementations,\n * analogous to `createStore` for KV stores.\n */\nexport function createPodStore<TOptions>(\n factory: (options: TOptions) => NoydbPodStore,\n): (options: TOptions) => NoydbPodStore {\n return factory\n}\n\n// ─── Deprecated aliases (pre-rename compatibility) ──────────────────────\n\n","/**\n * Redirect record (#944) — a signed \"this moved, go there\" pointer carried\n * in the pod's PLAINTEXT header (`NoydbPodHeader.redirect`, see\n * `format.ts`) so a dispatcher can follow it pre-auth: no secret, no\n * decompression.\n *\n * The record carries its OWN inner `sig` (via `signRecord`/`verifyRecord`\n * from `signature.ts`) — independent from, and in addition to, the #943\n * pod-header signature. A Redirect is REQUIRED to be signed: there is no\n * legacy unsigned install base for this new record type, so an absent or\n * invalid signature is invalid for following, not merely \"unverified\".\n *\n * Minimum-disclosure: the record is kept to exactly\n * `{ v, target, reason, issuedBy, sig }` — no timestamps, no identities\n * beyond the signer's `keyId` fingerprint.\n */\n\nimport type { DocSigner } from '../with-audit/attestation/signer.js'\nimport { signRecord, verifyRecord } from './signature.js'\nimport { readPodRedirect } from './pod.js'\nimport {\n RedirectBadSignatureError,\n RedirectDepthExceededError,\n RedirectLoopError,\n RedirectUnreachableError,\n} from '../kernel/errors.js'\n\n/**\n * A signed pointer to another pod. `target` is a locator string or URL —\n * the forthcoming #945 `Locator` type isn't built yet, so `target` stays a\n * plain string for now (forward-seam noted, not blurred: a Redirect says\n * \"go elsewhere once\"; a Locator will say \"where cargo lives\").\n */\nexport interface Redirect {\n readonly v: 1\n readonly target: string\n readonly reason: 'moved' | 'release' | 'tombstone' | 'repoint'\n readonly issuedBy: string\n readonly sig: string\n}\n\n/**\n * Sign a new Redirect record with `signer`. Builds the record minus `sig`,\n * signs it via the #943 `signRecord` convention, and returns the complete\n * signed record.\n */\nexport async function signRedirect(\n signer: DocSigner,\n fields: { readonly target: string; readonly reason: Redirect['reason'] },\n): Promise<Redirect> {\n const record = {\n v: 1 as const,\n target: fields.target,\n reason: fields.reason,\n issuedBy: signer.keyId,\n }\n const sig = await signRecord(signer.privateKeyPkcs8B64, record)\n return { ...record, sig }\n}\n\n/**\n * Verify a Redirect record's signature against `trustedKeys`\n * (`keyId → publicKeyB64`). Fails closed: an `issuedBy` not present in\n * `trustedKeys` is untrusted/unverifiable and returns `false`, same as a\n * tampered or forged signature.\n */\nexport async function verifyRedirect(\n record: Redirect,\n trustedKeys: Readonly<Record<string, string>>,\n): Promise<boolean> {\n const publicKeyB64 = trustedKeys[record.issuedBy]\n if (publicKeyB64 === undefined) return false\n const payload = { v: record.v, target: record.target, reason: record.reason, issuedBy: record.issuedBy }\n return verifyRecord(publicKeyB64, record.sig, payload)\n}\n\n/** One followed hop's provenance — surfaced so a UI can show \"moved from X via Y\". */\nexport interface RedirectHop {\n readonly target: string\n readonly reason: Redirect['reason']\n readonly issuedBy: string\n}\n\n/** Result of {@link followRedirects}: the terminal (non-redirect) pod's bytes, plus the ordered hop list that led there. */\nexport interface FollowRedirectsResult {\n readonly terminal: Uint8Array\n readonly hops: readonly RedirectHop[]\n}\n\n/**\n * Follow a chain of Redirect records starting from `start`'s pod bytes,\n * fetching each hop's target via `fetcher`, until a pod with no `redirect`\n * header field (the terminal) is reached.\n *\n * HTTP-redirect discipline: each hop's Redirect is verified against\n * `opts.trustedKeys` BEFORE it is followed (fail closed — an untrusted or\n * forged hop never advances the walk), loops are detected on the target\n * about to be followed, and the hop count is capped at `opts.maxDepth`\n * (default 8). `fetcher` throwing or returning `null` for a target means\n * that hop is unreachable.\n *\n * @throws {RedirectBadSignatureError} a hop's Redirect fails verification.\n * @throws {RedirectLoopError} a hop's target was already followed in this chain.\n * @throws {RedirectDepthExceededError} more than `maxDepth` hops were followed.\n * @throws {RedirectUnreachableError} `fetcher` threw or returned `null` for a target.\n */\nexport async function followRedirects(\n start: Uint8Array,\n fetcher: (target: string) => Promise<Uint8Array | null>,\n opts: { readonly trustedKeys: Readonly<Record<string, string>>; readonly maxDepth?: number },\n): Promise<FollowRedirectsResult> {\n const maxDepth = opts.maxDepth ?? 8\n let current = start\n const hops: RedirectHop[] = []\n const visited = new Set<string>()\n\n for (;;) {\n const rec = readPodRedirect(current)\n if (rec === undefined) return { terminal: current, hops }\n\n if (!(await verifyRedirect(rec, opts.trustedKeys))) {\n throw new RedirectBadSignatureError(rec.target)\n }\n if (visited.has(rec.target)) {\n throw new RedirectLoopError(rec.target)\n }\n visited.add(rec.target)\n\n hops.push({ target: rec.target, reason: rec.reason, issuedBy: rec.issuedBy })\n if (hops.length > maxDepth) {\n throw new RedirectDepthExceededError(maxDepth)\n }\n\n let next: Uint8Array | null\n try {\n next = await fetcher(rec.target)\n } catch (cause) {\n throw new RedirectUnreachableError(rec.target, cause)\n }\n if (next === null) {\n throw new RedirectUnreachableError(rec.target)\n }\n current = next\n }\n}\n","/**\n * `open(podBytesOrFile)` — the pod READ-path orchestrator (#941 Task 4).\n *\n * A free function (never a `Vault` method — `kernel/vault.ts` is at its\n * line ceiling and open() needs no vault-internal state that isn't already\n * reachable through published seams). Composes, in order:\n *\n * 1. `readPod` — parse + integrity-check the container (throws\n * `PodIntegrityError` on a corrupted/truncated pod).\n * 2. `verifyPodHeader` — only when `opts.trustedKeys` is supplied.\n * `'unsigned'` is benign (legacy pod, or `writePod({ sign: false })`)\n * and open() proceeds; `'untrusted'` / `'tampered'` are fail-closed —\n * `PodHeaderVerificationError` — mirroring `followRedirects`'s\n * `RedirectBadSignatureError` posture: once a caller opts into\n * verification, an unverifiable header is a hard stop.\n * 3. `createNoydb` + `openVault` + `vault.load(dumpJson)` — the exact\n * unlock+restore sequence `bundle-roundtrip.test.ts` drives by hand.\n * The pod header carries no vault name (minimum-disclosure —\n * `format.ts`'s forbidden-fields list), so the caller names the\n * target vault via `opts.vault`.\n * 4. Re-derive the `SchemaManifest` from the just-restored `_schemas/*`\n * (the source of truth — Task 3's `deriveSchemaManifest`), via a\n * NON-MINTING `LookupDEK` built from `loadKeyring`'s already-unwrapped\n * `UnlockedKeyring.deks` map directly (`with-party/team/keyring.js`).\n * **Not** `ensureCollectionDEK` (#941 review fix — Important 2): that\n * helper mints+persists a fresh DEK into `_keyring/<user>` for any\n * collection absent from the keyring, which is correct for a WRITE\n * path but wrong here — `deriveSchemaManifest` only ever reads\n * collections that already have a `_schemas` envelope, so an absent\n * DEK means \"this principal can't decrypt this sibling\" (e.g. a\n * collection-scoped grantee), never \"new collection.\" The old\n * minting call polluted a scoped principal's freshly-restored keyring\n * with garbage sibling DEKs on every `open()`. The returned\n * `manifest` is that principal's own visible slice — see\n * `derive.ts`'s `LookupDEK` doc and `sync.ts`'s module doc for the\n * full rationale (the same distinction governs why the sync path\n * must SKIP rather than write a partial manifest).\n * 5. Generation check (AC #4 coexistence): compare the HIGHEST\n * per-collection generation stamp carried by the restored manifest\n * against THIS store's schema-fence generation as it stood\n * immediately before the restore (0 for a brand-new vault; whatever a\n * coexisting local vault already had). If the pod is ahead and\n * `!opts.allowGenerationAhead`, throw `MigrationRequiredError` (the\n * same class `SchemaFenceController`'s write-path gate throws) — the\n * reader hasn't reconciled schema changes that happened elsewhere.\n * `allowGenerationAhead: true` is the documented dev override: open\n * proceeds, with a console warning. Divergence in the OTHER direction\n * (reader ahead of the pod) is non-fatal but also warned (#941\n * review, Important 3 — AC #4 coexistence divergence must be\n * observable in either direction, not just the bypass case).\n *\n * NOTE: this deliberately reads per-collection entries, not\n * `manifest.generation` itself. `_meta/schema-fence` is local\n * session-coordination state and does NOT travel in a pod dump\n * (`with-pod/backup.ts`'s reserved-collection list carries `_schemas`\n * and `_manifest` but not `_meta`) — a fresh re-derive's top-level\n * `generation` is always driven by the (untouched-by-restore) target\n * store's own fence, not the pod's. Each `_schemas/<collection>`\n * envelope's own `generation` field DOES travel (it's stamped at\n * declare-time from the writer's real fence), so per-collection\n * entries are the only signal that survives a restore intact.\n *\n * @module\n */\n\nimport { readPod, verifyPodHeader } from './pod.js'\nimport type { NoydbPodHeader } from './format.js'\nimport type { PodVerifyResult } from './pod.js'\nimport { createNoydb } from '../kernel/noydb.js'\nimport type { Noydb } from '../kernel/noydb.js'\nimport type { Vault } from '../kernel/vault.js'\nimport type { NoydbOptions, NoydbStore, EchoSecretParts } from '../kernel/types.js'\nimport { MigrationRequiredError, PodHeaderVerificationError } from '../kernel/errors.js'\nimport { loadKeyring } from '../with-party/team/keyring.js'\nimport { loadFence } from '../with-shape/schema-update/fence.js'\nimport { deriveSchemaManifest, type LookupDEK } from '../with-shape/manifest/derive.js'\nimport type { SchemaManifest } from '../with-shape/manifest/types.js'\n\nexport interface OpenPodOptions {\n /** The ciphertext store to restore into (and where the opened `Vault` lives). */\n readonly store: NoydbStore\n /**\n * The target vault name. The pod header deliberately carries no vault\n * name (minimum-disclosure — `NoydbPodHeader`'s forbidden-fields list),\n * so the caller names the vault to restore into/open.\n */\n readonly vault: string\n /** User identifier — passed through to `createNoydb`. */\n readonly user: string\n /** That user's secret — passed through to `createNoydb` / `loadKeyring`. */\n readonly secret: string | EchoSecretParts\n /**\n * Trusted signing keys (`keyId → publicKeyB64`). When supplied,\n * `verifyPodHeader` runs and its result is returned as `verification`.\n * Omitted → no verification attempted, `verification` is absent.\n */\n readonly trustedKeys?: Readonly<Record<string, string>>\n /**\n * Passthrough to `createNoydb` for every option beyond `store`/`user`/\n * `secret` (history/indexing/blobs/… strategies, `secretMode`, etc.).\n */\n readonly noydbOptions?: Omit<NoydbOptions, 'store' | 'user' | 'secret'>\n /**\n * Dev override for the generation-ahead fence (AC #4). Default `false`:\n * a pod whose schema manifest generation is ahead of this store's\n * pre-restore fence generation throws `MigrationRequiredError`. `true`\n * opens anyway, logging a console warning.\n */\n readonly allowGenerationAhead?: boolean\n}\n\nexport interface OpenPodResult {\n readonly db: Noydb\n readonly vault: Vault\n readonly header: NoydbPodHeader\n /** Present iff `opts.trustedKeys` was supplied. */\n readonly verification?: PodVerifyResult\n /** The pod's schema manifest, re-derived from the just-restored `_schemas/*`. */\n readonly manifest?: SchemaManifest\n}\n\n/**\n * Open a `.noydb` pod: verify its integrity (and, opt-in, its signature),\n * unlock + restore it into `opts.vault`, and re-derive its schema manifest.\n * See the module doc for the full flow and the errors each step can throw.\n */\nexport async function open(podFileOrBytes: Uint8Array, opts: OpenPodOptions): Promise<OpenPodResult> {\n const { header, dumpJson } = await readPod(podFileOrBytes)\n\n let verification: PodVerifyResult | undefined\n if (opts.trustedKeys !== undefined) {\n verification = await verifyPodHeader(podFileOrBytes, opts.trustedKeys)\n if (verification.status === 'untrusted' || verification.status === 'tampered') {\n throw new PodHeaderVerificationError(verification.status, verification.keyId)\n }\n }\n\n // Reader's pre-restore generation snapshot (see module doc, step 5) —\n // must be read from the raw store BEFORE vault.load() overwrites it.\n const readerGeneration = (await loadFence(opts.store, opts.vault)).currentSchemaVersion\n\n const db = await createNoydb({ ...opts.noydbOptions, store: opts.store, user: opts.user, secret: opts.secret })\n const vault = await db.openVault(opts.vault)\n await vault.load(dumpJson)\n\n // #941 review fix: a NON-MINTING lookup, not `ensureCollectionDEK` (which\n // mints+persists a fresh DEK for any collection absent from the keyring).\n // open() is a READ path — deriveSchemaManifest only ever iterates\n // collections that already have a `_schemas` envelope, so an absent DEK\n // here means \"this principal cannot decrypt this sibling,\" never \"new\n // collection.\" The old minting call polluted a scoped principal's just-\n // restored `_keyring/<user>` file with garbage sibling DEKs on every\n // open(). See `derive.ts`'s `LookupDEK` doc for the full rationale.\n const keyring = await loadKeyring(opts.store, opts.vault, { userId: opts.user, secret: opts.secret })\n const lookupDEK: LookupDEK = async (name) => keyring.deks.get(name)\n const { manifest, undecodableCollections } = await deriveSchemaManifest(opts.store, opts.vault, lookupDEK)\n\n // A scoped principal's `manifest` is legitimately their own visible\n // slice (see `sync.ts`'s module doc) — `open()` is a per-principal read,\n // not an assertion of pod-wide completeness. `undecodableCollections` is\n // intentionally not surfaced on `OpenPodResult` (out of this fix's\n // scope); callers that need it can call `deriveSchemaManifest` directly.\n void undecodableCollections\n\n // See module doc, step 5 — the pod's generation signal is the highest\n // per-collection stamp, not the (locally re-derived, fence-driven)\n // top-level `manifest.generation`.\n const podGeneration = Object.values(manifest.collections)\n .reduce((max, entry) => Math.max(max, entry.generation), 0)\n\n if (podGeneration > readerGeneration) {\n if (!opts.allowGenerationAhead) {\n throw new MigrationRequiredError(\n `open(): pod's schema generation (${podGeneration}) is ahead of vault ` +\n `\"${opts.vault}\"'s local generation (${readerGeneration}). Pass ` +\n `\\`allowGenerationAhead: true\\` to open anyway, or reconcile the schema first.`,\n )\n }\n console.warn(\n `[noy-db] open(): vault \"${opts.vault}\" opened with allowGenerationAhead — pod schema ` +\n `generation ${podGeneration} is ahead of the local generation ${readerGeneration}.`,\n )\n } else if (podGeneration < readerGeneration) {\n // #941 review (Important 3, AC #4): divergence in EITHER direction\n // should be observable, not just the ahead-bypass case above. The\n // reader being ahead of the pod is non-fatal (the pod is simply older\n // content) but silent coexistence divergence is exactly what AC #4\n // asks to surface — same `[noy-db]`-prefixed console.warn facility as\n // `sync.ts`'s cap-exhaustion warning.\n console.warn(\n `[noy-db] open(): vault \"${opts.vault}\"'s local schema generation (${readerGeneration}) is ` +\n `ahead of the pod's (${podGeneration}) — the pod reflects an earlier schema than this reader.`,\n )\n }\n\n return { db, vault, header, manifest, ...(verification !== undefined ? { verification } : {}) }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,IAAM,uBAAuB;AA4C7B,IAAM,uBAAuB;AAwBtB,SAAS,aACd,QACA,SACsB;AACtB,QAAM,YAAY,SAAS,cAAc;AAGzC,QAAM,YAAY,oBAAI,IAA2B;AACjD,QAAM,WAAW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AO,KAAK,OAAO,MAAM,KAAK,MAAM,QAAQ,KAAK,OAAO,CAAC;AAC9G,QAAM,QAAQ,MAAM,GAAG,UAAU,KAAK,KAAK;AAC3C,QAAM,MAAM,KAAK,QAAQ;AAUzB,QAAM,UAAU,MAAM,YAAY,KAAK,OAAO,KAAK,OAAO,EAAE,QAAQ,KAAK,MAAM,QAAQ,KAAK,OAAO,CAAC;AACpG,QAAM,YAAuB,OAAO,SAAS,QAAQ,KAAK,IAAI,IAAI;AAClE,QAAM,EAAE,UAAU,uBAAuB,IAAI,MAAM,qBAAqB,KAAK,OAAO,KAAK,OAAO,SAAS;AAOzG,OAAK;AAKL,QAAM,gBAAgB,OAAO,OAAO,SAAS,WAAW,EACrD,OAAO,CAAC,KAAK,UAAU,KAAK,IAAI,KAAK,MAAM,UAAU,GAAG,CAAC;AAE5D,MAAI,gBAAgB,kBAAkB;AACpC,QAAI,CAAC,KAAK,sBAAsB;AAC9B,YAAM,IAAI;AAAA,QACR,oCAAoC,aAAa,wBAC3C,KAAK,KAAK,yBAAyB,gBAAgB;AAAA,MAE3D;AAAA,IACF;AACA,YAAQ;AAAA,MACN,2BAA2B,KAAK,KAAK,mEACrB,aAAa,qCAAqC,gBAAgB;AAAA,IACpF;AAAA,EACF,WAAW,gBAAgB,kBAAkB;AAO3C,YAAQ;AAAA,MACN,2BAA2B,KAAK,KAAK,gCAAgC,gBAAgB,4BAC5D,aAAa;AAAA,IACxC;AAAA,EACF;AAEA,SAAO,EAAE,IAAI,OAAO,QAAQ,UAAU,GAAI,iBAAiB,SAAY,EAAE,aAAa,IAAI,CAAC,EAAG;AAChG;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  PortabilityNotEnabledError
3
- } from "./chunk-CT35TQV7.js";
3
+ } from "./chunk-I64WQSN3.js";
4
4
 
5
5
  // src/with-audit/portability/strategy.ts
6
6
  var NO_PORTABILITY = {
@@ -27,4 +27,4 @@ var NO_PORTABILITY = {
27
27
  export {
28
28
  NO_PORTABILITY
29
29
  };
30
- //# sourceMappingURL=chunk-TAFRRVFR.js.map
30
+ //# sourceMappingURL=chunk-TQ7IRULX.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AttestationNotEnabledError
3
- } from "./chunk-CT35TQV7.js";
3
+ } from "./chunk-I64WQSN3.js";
4
4
 
5
5
  // src/with-audit/attestation/strategy.ts
6
6
  var NO_ATTESTATION = {
@@ -27,4 +27,4 @@ var NO_ATTESTATION = {
27
27
  export {
28
28
  NO_ATTESTATION
29
29
  };
30
- //# sourceMappingURL=chunk-MVWO6KXU.js.map
30
+ //# sourceMappingURL=chunk-TQLYMYOK.js.map
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  liveRecordIsElevated
3
- } from "./chunk-C5N3ZWGJ.js";
3
+ } from "./chunk-AMKCY454.js";
4
4
  import {
5
5
  isRewrappedUnder,
6
6
  openEnvelopeJson,
7
7
  rewrapEnvelope
8
- } from "./chunk-EZYLQKHP.js";
8
+ } from "./chunk-ZWPUYBNK.js";
9
9
  import {
10
10
  isTombstone,
11
11
  isTombstoneShape
12
- } from "./chunk-LVLXWIBF.js";
12
+ } from "./chunk-IMYGJ5HU.js";
13
13
  import {
14
14
  NOYDB_FORMAT_VERSION
15
- } from "./chunk-7GWC6RI5.js";
15
+ } from "./chunk-6ZFTVY3O.js";
16
16
  import {
17
17
  ReadOnlyAtInstantError
18
- } from "./chunk-CT35TQV7.js";
18
+ } from "./chunk-I64WQSN3.js";
19
19
 
20
20
  // src/with-commit/history/history.ts
21
21
  var HISTORY_COLLECTION = "_history";
@@ -330,4 +330,4 @@ export {
330
330
  VaultInstant,
331
331
  CollectionInstant
332
332
  };
333
- //# sourceMappingURL=chunk-MSCXCF4T.js.map
333
+ //# sourceMappingURL=chunk-UTQLKPBS.js.map
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  PERIODS_COLLECTION
3
- } from "./chunk-P7A2FX5Y.js";
3
+ } from "./chunk-V4M4BZNW.js";
4
4
  import {
5
5
  canonicalJson,
6
6
  sha256Hex
7
- } from "./chunk-YRTS5MWY.js";
7
+ } from "./chunk-A4JJUWSV.js";
8
8
  import {
9
9
  isDeleteMarker
10
- } from "./chunk-LVLXWIBF.js";
10
+ } from "./chunk-IMYGJ5HU.js";
11
11
  import {
12
12
  PeriodClosedError,
13
13
  ValidationError
14
- } from "./chunk-CT35TQV7.js";
14
+ } from "./chunk-I64WQSN3.js";
15
15
 
16
16
  // src/with-audit/periods/periods.ts
17
17
  function resolveReopenState(events) {
@@ -124,7 +124,7 @@ function validatePeriodName(name, existing, partition) {
124
124
  }
125
125
  async function appendPeriodLedgerEntry(ledger, actor, envelope, name, collection = PERIODS_COLLECTION) {
126
126
  if (!ledger) return;
127
- const { envelopePayloadHash } = await import("./ledger-6EMFGJRU.js");
127
+ const { envelopePayloadHash } = await import("./ledger-NFLBQASD.js");
128
128
  await ledger.append({
129
129
  op: "put",
130
130
  collection,
@@ -198,4 +198,4 @@ export {
198
198
  purgeMarkersOn,
199
199
  withPeriods
200
200
  };
201
- //# sourceMappingURL=chunk-QLFLX5VA.js.map
201
+ //# sourceMappingURL=chunk-V2BEYLNR.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ValidationError
3
- } from "./chunk-CT35TQV7.js";
3
+ } from "./chunk-I64WQSN3.js";
4
4
 
5
5
  // src/with-audit/periods/window.ts
6
6
  var PERIODS_COLLECTION = "_periods";
@@ -23,4 +23,4 @@ export {
23
23
  PERIOD_REOPENS_COLLECTION,
24
24
  periodExclusiveUpperBound
25
25
  };
26
- //# sourceMappingURL=chunk-P7A2FX5Y.js.map
26
+ //# sourceMappingURL=chunk-V4M4BZNW.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DuplicateBehaviorNameError
3
- } from "./chunk-CT35TQV7.js";
3
+ } from "./chunk-I64WQSN3.js";
4
4
 
5
5
  // src/with-audit/guards/registry.ts
6
6
  var GuardRegistry = class {
@@ -141,4 +141,4 @@ var GuardRegistry = class {
141
141
  export {
142
142
  GuardRegistry
143
143
  };
144
- //# sourceMappingURL=chunk-PLJ622XY.js.map
144
+ //# sourceMappingURL=chunk-VTTRWLOR.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  openEnvelopeJson
3
- } from "./chunk-EZYLQKHP.js";
3
+ } from "./chunk-ZWPUYBNK.js";
4
4
  import {
5
5
  encrypt
6
- } from "./chunk-WJD5VF2N.js";
6
+ } from "./chunk-QTDAPDDV.js";
7
7
  import {
8
8
  NOYDB_FORMAT_VERSION
9
- } from "./chunk-7GWC6RI5.js";
9
+ } from "./chunk-6ZFTVY3O.js";
10
10
  import {
11
11
  ConflictError
12
- } from "./chunk-CT35TQV7.js";
12
+ } from "./chunk-I64WQSN3.js";
13
13
 
14
14
  // src/with-audit/attestation/signer.ts
15
15
  import { generateDocSigningKeyPair } from "@noy-db/attestation";
@@ -56,4 +56,4 @@ export {
56
56
  loadSigner,
57
57
  loadOrCreateSigner
58
58
  };
59
- //# sourceMappingURL=chunk-QNGRTWGM.js.map
59
+ //# sourceMappingURL=chunk-VVMSDWRG.js.map
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  ATTESTATIONS_COLLECTION,
3
3
  loadOrCreateSigner
4
- } from "./chunk-QNGRTWGM.js";
4
+ } from "./chunk-VVMSDWRG.js";
5
5
  import {
6
6
  generateULID
7
- } from "./chunk-ZJADGNYF.js";
7
+ } from "./chunk-4AOERLTV.js";
8
8
  import {
9
9
  encrypt
10
- } from "./chunk-WJD5VF2N.js";
10
+ } from "./chunk-QTDAPDDV.js";
11
11
  import {
12
12
  NOYDB_FORMAT_VERSION
13
- } from "./chunk-7GWC6RI5.js";
13
+ } from "./chunk-6ZFTVY3O.js";
14
14
  import {
15
15
  AttestationError
16
- } from "./chunk-CT35TQV7.js";
16
+ } from "./chunk-I64WQSN3.js";
17
17
 
18
18
  // src/with-audit/attestation/issue.ts
19
19
  import {
@@ -56,4 +56,4 @@ async function issueAttestationCore(ctx, args) {
56
56
  export {
57
57
  issueAttestationCore
58
58
  };
59
- //# sourceMappingURL=chunk-PRN65IDE.js.map
59
+ //# sourceMappingURL=chunk-WLZKVY33.js.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  installViaBinder
3
- } from "./chunk-7DK6CYXO.js";
3
+ } from "./chunk-RVTOCAHQ.js";
4
4
  import {
5
5
  SealedHandle
6
- } from "./chunk-7GWC6RI5.js";
6
+ } from "./chunk-6ZFTVY3O.js";
7
7
  import {
8
8
  ClassifiedConfigError,
9
9
  ClassifiedNotEnabledError
10
- } from "./chunk-CT35TQV7.js";
10
+ } from "./chunk-I64WQSN3.js";
11
11
 
12
12
  // src/via/classified/descriptor.ts
13
13
  function isClassifiedFieldSpec(x) {
@@ -262,4 +262,4 @@ export {
262
262
  enforceClassifiedWrite,
263
263
  NO_CLASSIFIED
264
264
  };
265
- //# sourceMappingURL=chunk-3EFQV2XQ.js.map
265
+ //# sourceMappingURL=chunk-XHX3NTRP.js.map
@@ -5,7 +5,7 @@ import {
5
5
  readDirectoryConfig,
6
6
  readUserVisibility,
7
7
  saveUserEnvelope
8
- } from "./chunk-EPUDMBVL.js";
8
+ } from "./chunk-CK7IRIRY.js";
9
9
  import {
10
10
  base64ToBuffer,
11
11
  bufferToBase64,
@@ -20,11 +20,11 @@ import {
20
20
  generateSalt,
21
21
  unwrapKey,
22
22
  wrapKey
23
- } from "./chunk-WJD5VF2N.js";
23
+ } from "./chunk-QTDAPDDV.js";
24
24
  import {
25
25
  NOYDB_FORMAT_VERSION,
26
26
  NOYDB_KEYRING_VERSION
27
- } from "./chunk-7GWC6RI5.js";
27
+ } from "./chunk-6ZFTVY3O.js";
28
28
  import {
29
29
  DirectoryDisabledError,
30
30
  EchoCeremonyRequiredError,
@@ -38,7 +38,7 @@ import {
38
38
  USER_ENVELOPE_COLLECTION,
39
39
  ValidationError,
40
40
  WrongPromptError
41
- } from "./chunk-CT35TQV7.js";
41
+ } from "./chunk-I64WQSN3.js";
42
42
 
43
43
  // src/kernel/validation.ts
44
44
  var WeakSecretError = class extends NoydbError {
@@ -1024,4 +1024,4 @@ export {
1024
1024
  hasImportCapability,
1025
1025
  evaluateImportCapability
1026
1026
  };
1027
- //# sourceMappingURL=chunk-CFM6GBNF.js.map
1027
+ //# sourceMappingURL=chunk-Y7MJSOZ7.js.map