@noy-db/hub 0.8.0-pre.0 → 0.8.0

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 (624) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist/api-OS747DS4.js +18 -0
  3. package/dist/as/index.js +11 -12
  4. package/dist/as/index.js.map +1 -1
  5. package/dist/at/index.js +9 -10
  6. package/dist/attestation/index.js +39 -28
  7. package/dist/attestation/index.js.map +1 -1
  8. package/dist/{backup-7TFRVFLH.js → backup-YE2VQ26S.js} +15 -16
  9. package/dist/backup-YE2VQ26S.js.map +1 -0
  10. package/dist/blobs/index.js +13 -14
  11. package/dist/blobs/index.js.map +1 -1
  12. package/dist/broker/index.js +12 -13
  13. package/dist/broker/index.js.map +1 -1
  14. package/dist/by/index.js +2 -2
  15. package/dist/capsule/contract.d.ts +159 -0
  16. package/dist/capsule/contract.js +95 -0
  17. package/dist/capsule/enclave-aes/bound.d.ts +52 -0
  18. package/dist/capsule/enclave-aes/capabilities.d.ts +2 -0
  19. package/dist/capsule/enclave-aes/classify/compare.d.ts +20 -0
  20. package/dist/{kernel/enclave → capsule/enclave-aes}/classify/find.d.ts +1 -1
  21. package/dist/{kernel/enclave → capsule/enclave-aes}/classify/reveal.d.ts +1 -1
  22. package/dist/{kernel/enclave → capsule/enclave-aes}/classify/verify.d.ts +2 -2
  23. package/dist/{kernel/enclave → capsule/enclave-aes}/classify/write.d.ts +1 -1
  24. package/dist/{kernel/enclave → capsule/enclave-aes}/crypto.d.ts +33 -129
  25. package/dist/capsule/enclave-aes/index.d.ts +113 -0
  26. package/dist/capsule/enclave-aes/index.js +335 -0
  27. package/dist/capsule/enclave-aes/index.js.map +1 -0
  28. package/dist/capsule/enclave-aes/primitives.d.ts +29 -0
  29. package/dist/capsule/index.d.ts +27 -0
  30. package/dist/capsule/plumbing/ct-equal.d.ts +11 -0
  31. package/dist/{kernel/enclave/record-keys → capsule/plumbing}/deterministic.d.ts +8 -21
  32. package/dist/capsule/plumbing/digest.d.ts +122 -0
  33. package/dist/{kernel/enclave/record-keys → capsule/plumbing}/envelope-body.d.ts +44 -48
  34. package/dist/capsule/plumbing/index.d.ts +100 -0
  35. package/dist/capsule/plumbing/lifecycle.d.ts +50 -0
  36. package/dist/{kernel/enclave/record-keys → capsule/plumbing}/record-codec.d.ts +55 -20
  37. package/dist/{kernel/enclave → capsule/plumbing}/record-envelope.d.ts +1 -1
  38. package/dist/capsule/plumbing/rekey-blob.d.ts +33 -0
  39. package/dist/capsule/plumbing/rekey.d.ts +44 -0
  40. package/dist/capsule/plumbing/sealed-slot.d.ts +22 -0
  41. package/dist/capsule/plumbing/sealed-slots.d.ts +37 -0
  42. package/dist/capsule/plumbing/sealing.d.ts +29 -0
  43. package/dist/capsule/plumbing/sign.d.ts +9 -0
  44. package/dist/{kernel/enclave/record-keys → capsule/plumbing}/tombstone.d.ts +2 -2
  45. package/dist/capsule-VOLX3QRQ.js +209 -0
  46. package/dist/cargo/index.js +36 -36
  47. package/dist/{chunk-DF73H4UN.js → chunk-23D6M6VM.js} +5 -5
  48. package/dist/chunk-23D6M6VM.js.map +1 -0
  49. package/dist/{chunk-FH2L2E34.js → chunk-244QBK7Z.js} +4 -4
  50. package/dist/{chunk-FH2L2E34.js.map → chunk-244QBK7Z.js.map} +1 -1
  51. package/dist/{chunk-YSK2CU2Q.js → chunk-2AFX33YA.js} +2 -2
  52. package/dist/{chunk-TKUOEU2F.js → chunk-2GHDLTPE.js} +2 -2
  53. package/dist/{chunk-GYGLAVCX.js → chunk-2MG3SW7Q.js} +6 -2
  54. package/dist/chunk-2MG3SW7Q.js.map +1 -0
  55. package/dist/{chunk-6OWXYZK2.js → chunk-2ODVB6LZ.js} +2 -2
  56. package/dist/{chunk-X25NWUZB.js → chunk-2PVXF5CS.js} +3 -3
  57. package/dist/{chunk-IEX7NK2K.js → chunk-2RH777HH.js} +21 -20
  58. package/dist/{chunk-IEX7NK2K.js.map → chunk-2RH777HH.js.map} +1 -1
  59. package/dist/{chunk-244VXYPG.js → chunk-37EPTBBR.js} +14 -1
  60. package/dist/chunk-37EPTBBR.js.map +1 -0
  61. package/dist/{chunk-NRT6QZQB.js → chunk-3A5DUZ56.js} +6 -6
  62. package/dist/chunk-3A5DUZ56.js.map +1 -0
  63. package/dist/{chunk-ORDURZBU.js → chunk-3EWS67C7.js} +2 -2
  64. package/dist/{chunk-3H5KLDZN.js → chunk-3L2NBKDR.js} +4 -8
  65. package/dist/chunk-3L2NBKDR.js.map +1 -0
  66. package/dist/{chunk-ENAG3IY7.js → chunk-3XJQBBZD.js} +26 -28
  67. package/dist/chunk-3XJQBBZD.js.map +1 -0
  68. package/dist/{chunk-KJFW62P4.js → chunk-42ALPZ2B.js} +652 -662
  69. package/dist/chunk-42ALPZ2B.js.map +1 -0
  70. package/dist/{chunk-FXQBGFOX.js → chunk-4CIQDWRB.js} +8 -8
  71. package/dist/{chunk-HT2AHGQI.js → chunk-4JPMZTJY.js} +2 -2
  72. package/dist/{chunk-FQ5VRHIB.js → chunk-4T3SE27M.js} +5 -9
  73. package/dist/chunk-4T3SE27M.js.map +1 -0
  74. package/dist/{chunk-MKXXMNJH.js → chunk-4V3Q35WG.js} +2 -2
  75. package/dist/{chunk-A6IJU4TK.js → chunk-52MGURXO.js} +2 -2
  76. package/dist/{chunk-IUWCVHQ7.js → chunk-5A4345TG.js} +4 -4
  77. package/dist/{chunk-IUWCVHQ7.js.map → chunk-5A4345TG.js.map} +1 -1
  78. package/dist/{chunk-ISZQJBML.js → chunk-5FE75J4S.js} +6 -6
  79. package/dist/chunk-5FE75J4S.js.map +1 -0
  80. package/dist/chunk-5KC7QYEC.js +565 -0
  81. package/dist/chunk-5KC7QYEC.js.map +1 -0
  82. package/dist/{chunk-NNARWO72.js → chunk-5UMK7GRI.js} +13 -12
  83. package/dist/chunk-5UMK7GRI.js.map +1 -0
  84. package/dist/{chunk-HLEK5VAN.js → chunk-5WWDGFOS.js} +2 -2
  85. package/dist/{chunk-CKNGS5MH.js → chunk-6QVKPHBF.js} +3 -5
  86. package/dist/chunk-6QVKPHBF.js.map +1 -0
  87. package/dist/{chunk-PSIV7CJV.js → chunk-747G6CT3.js} +2 -2
  88. package/dist/chunk-747G6CT3.js.map +1 -0
  89. package/dist/{chunk-LGRLME4M.js → chunk-7R2Q7CPL.js} +16 -16
  90. package/dist/chunk-7R2Q7CPL.js.map +1 -0
  91. package/dist/{chunk-SOIQ4MM4.js → chunk-7XMHMVTS.js} +3 -3
  92. package/dist/{chunk-BUDAGWL5.js → chunk-A4XMIZT3.js} +6 -6
  93. package/dist/{chunk-BUDAGWL5.js.map → chunk-A4XMIZT3.js.map} +1 -1
  94. package/dist/{chunk-4MXI3ODD.js → chunk-AEQGFRU4.js} +3 -3
  95. package/dist/{chunk-7JE7BDYJ.js → chunk-AL6ML4LA.js} +5 -5
  96. package/dist/{chunk-ZUVBC32X.js → chunk-AUKKUPVB.js} +2 -2
  97. package/dist/chunk-BNWA3WG5.js +22 -0
  98. package/dist/chunk-BNWA3WG5.js.map +1 -0
  99. package/dist/{chunk-WY2XXTET.js → chunk-BPWYQ25R.js} +4 -4
  100. package/dist/{chunk-EOVMT6TB.js → chunk-BVCUTXE3.js} +2 -2
  101. package/dist/{chunk-UPD5NWI5.js → chunk-DHHGL42E.js} +13 -16
  102. package/dist/chunk-DHHGL42E.js.map +1 -0
  103. package/dist/{chunk-3JWHAR6E.js → chunk-DIZLQVAA.js} +2 -2
  104. package/dist/{chunk-QWFHIOD2.js → chunk-DLD5LGDS.js} +11 -12
  105. package/dist/chunk-DLD5LGDS.js.map +1 -0
  106. package/dist/{chunk-ZE4CHIED.js → chunk-DQESF6RP.js} +17 -28
  107. package/dist/chunk-DQESF6RP.js.map +1 -0
  108. package/dist/{chunk-IT22PWKV.js → chunk-E2N2T5ZO.js} +2 -2
  109. package/dist/{chunk-3ELRMVJK.js → chunk-EGVJ7TM4.js} +31 -34
  110. package/dist/chunk-EGVJ7TM4.js.map +1 -0
  111. package/dist/{chunk-WNJ4AVGE.js → chunk-EJLV62NI.js} +2 -2
  112. package/dist/{chunk-QBBUZ3I3.js → chunk-EYG2CY2X.js} +11 -11
  113. package/dist/{enclave-27SMF6GF.js → chunk-EZGV6F47.js} +83 -56
  114. package/dist/chunk-EZGV6F47.js.map +1 -0
  115. package/dist/{chunk-LQ4ZHOKP.js → chunk-EZOAKKTB.js} +36 -27
  116. package/dist/chunk-EZOAKKTB.js.map +1 -0
  117. package/dist/{chunk-BJ2IXQ5Q.js → chunk-FFJFE4T7.js} +2 -2
  118. package/dist/{chunk-JCN44NCY.js → chunk-FLPCETP6.js} +2 -2
  119. package/dist/{chunk-5O7D6ZTW.js → chunk-FOEDQATO.js} +2 -2
  120. package/dist/{chunk-VNNRUGMM.js → chunk-FVH5QYY2.js} +2 -2
  121. package/dist/{chunk-ANWPSTZU.js → chunk-G2MVBDFP.js} +23 -26
  122. package/dist/chunk-G2MVBDFP.js.map +1 -0
  123. package/dist/chunk-GMKGGY7V.js +234 -0
  124. package/dist/chunk-GMKGGY7V.js.map +1 -0
  125. package/dist/{chunk-EIPVYUEP.js → chunk-GQ4MF3CM.js} +3 -3
  126. package/dist/chunk-GQ4MF3CM.js.map +1 -0
  127. package/dist/{chunk-PEOZ34EM.js → chunk-GSAK56VF.js} +1 -1
  128. package/dist/chunk-GSAK56VF.js.map +1 -0
  129. package/dist/{chunk-QOOUUR4A.js → chunk-GUZET4SG.js} +10 -4
  130. package/dist/chunk-GUZET4SG.js.map +1 -0
  131. package/dist/{chunk-4AF3TUMP.js → chunk-GZT3NQRA.js} +2 -2
  132. package/dist/{chunk-N5DNADLQ.js → chunk-H23XHRTT.js} +19 -34
  133. package/dist/chunk-H23XHRTT.js.map +1 -0
  134. package/dist/{chunk-MVZ2TPVP.js → chunk-H427H63K.js} +2 -2
  135. package/dist/{chunk-6B3VNR4P.js → chunk-H7JBY4P7.js} +23 -32
  136. package/dist/chunk-H7JBY4P7.js.map +1 -0
  137. package/dist/{chunk-MLPHLJIQ.js → chunk-HS554XAF.js} +2 -2
  138. package/dist/{chunk-HK67PX4J.js → chunk-HW7CMKUG.js} +1 -1
  139. package/dist/chunk-HW7CMKUG.js.map +1 -0
  140. package/dist/{chunk-S57HTZ6X.js → chunk-IMQKWR46.js} +5 -7
  141. package/dist/chunk-IMQKWR46.js.map +1 -0
  142. package/dist/{chunk-FCKWQE2H.js → chunk-IUBMZPHM.js} +7 -7
  143. package/dist/chunk-IUBMZPHM.js.map +1 -0
  144. package/dist/{chunk-UD5EVGZ7.js → chunk-IUT3GWP3.js} +49 -13
  145. package/dist/chunk-IUT3GWP3.js.map +1 -0
  146. package/dist/{chunk-J6UOHJY5.js → chunk-JDEYF3PJ.js} +4 -8
  147. package/dist/{chunk-J6UOHJY5.js.map → chunk-JDEYF3PJ.js.map} +1 -1
  148. package/dist/{chunk-NWHBJQAL.js → chunk-JIBUPZHA.js} +4 -4
  149. package/dist/chunk-JIBUPZHA.js.map +1 -0
  150. package/dist/{chunk-TROR3ALR.js → chunk-JOSPH3E5.js} +2 -2
  151. package/dist/{chunk-F24ZZTHQ.js → chunk-JQYKPKG6.js} +4 -4
  152. package/dist/{chunk-GF5BZ7D4.js → chunk-JSMTXZR3.js} +8 -12
  153. package/dist/chunk-JSMTXZR3.js.map +1 -0
  154. package/dist/chunk-JWWYRR4Q.js +12 -0
  155. package/dist/chunk-JWWYRR4Q.js.map +1 -0
  156. package/dist/{chunk-HBPPGWUM.js → chunk-KZXDLBY6.js} +14 -9
  157. package/dist/chunk-KZXDLBY6.js.map +1 -0
  158. package/dist/{chunk-7VCXZDA4.js → chunk-LIOVX5TJ.js} +7 -11
  159. package/dist/chunk-LIOVX5TJ.js.map +1 -0
  160. package/dist/{chunk-QWGU66MP.js → chunk-LNSVGRHO.js} +5 -7
  161. package/dist/chunk-LNSVGRHO.js.map +1 -0
  162. package/dist/{chunk-MDWKM2XC.js → chunk-M5B2W6YY.js} +3 -3
  163. package/dist/{chunk-F2TDU7MQ.js → chunk-MBMTND6D.js} +2 -2
  164. package/dist/{chunk-K6W7BVZ6.js → chunk-MILI22XQ.js} +3 -3
  165. package/dist/{chunk-YNIUIERI.js → chunk-MXKI4ABF.js} +18 -59
  166. package/dist/chunk-MXKI4ABF.js.map +1 -0
  167. package/dist/{chunk-T2LBQ5DV.js → chunk-MXOQ5JCG.js} +252 -214
  168. package/dist/chunk-MXOQ5JCG.js.map +1 -0
  169. package/dist/{chunk-ZXABPVM6.js → chunk-N7EVQD5S.js} +9 -13
  170. package/dist/chunk-N7EVQD5S.js.map +1 -0
  171. package/dist/{chunk-CF5UU4S7.js → chunk-N7UDP5VU.js} +7 -7
  172. package/dist/{chunk-FQ54DWUQ.js → chunk-NBQ3KK6X.js} +4 -4
  173. package/dist/{chunk-4I522ERM.js → chunk-NCO25JZO.js} +4 -4
  174. package/dist/chunk-NH2UOV3B.js +18 -0
  175. package/dist/chunk-NH2UOV3B.js.map +1 -0
  176. package/dist/{chunk-SI3V7D4G.js → chunk-O2IMQSNA.js} +2 -2
  177. package/dist/{chunk-T52GX4SA.js → chunk-O46CHQT7.js} +4 -4
  178. package/dist/chunk-OIEO4WDL.js +27 -0
  179. package/dist/chunk-OIEO4WDL.js.map +1 -0
  180. package/dist/{chunk-GHLTDZRS.js → chunk-OKSTSITU.js} +25 -4
  181. package/dist/chunk-OKSTSITU.js.map +1 -0
  182. package/dist/{chunk-TOPYQ6GA.js → chunk-OYW3I5M4.js} +6 -6
  183. package/dist/{chunk-X4773RBR.js → chunk-PD64727P.js} +2 -2
  184. package/dist/chunk-PD64727P.js.map +1 -0
  185. package/dist/{chunk-BP6DARYA.js → chunk-PP3K67AJ.js} +4 -4
  186. package/dist/chunk-PP3K67AJ.js.map +1 -0
  187. package/dist/chunk-Q2XRFWOI.js +40 -0
  188. package/dist/chunk-Q2XRFWOI.js.map +1 -0
  189. package/dist/{chunk-AOWGXU6D.js → chunk-Q4UHJ5SN.js} +2 -2
  190. package/dist/{chunk-FW22ZCXT.js → chunk-QBLT6POL.js} +2 -2
  191. package/dist/chunk-QMWY2FDS.js +157 -0
  192. package/dist/chunk-QMWY2FDS.js.map +1 -0
  193. package/dist/{chunk-I3JDRCMW.js → chunk-RB4DOPGZ.js} +10 -10
  194. package/dist/{chunk-32YV3TJT.js → chunk-SMV2HRDU.js} +2 -2
  195. package/dist/{chunk-ODVPTDPK.js → chunk-SV2PM2OY.js} +1 -1
  196. package/dist/chunk-SV2PM2OY.js.map +1 -0
  197. package/dist/{chunk-Z5HTYMMQ.js → chunk-SYNY3VB5.js} +2 -2
  198. package/dist/{chunk-SYVZW77S.js → chunk-TEHHROZL.js} +6 -8
  199. package/dist/chunk-TEHHROZL.js.map +1 -0
  200. package/dist/{chunk-ZSX4S5XB.js → chunk-TKVUE4JF.js} +9 -9
  201. package/dist/{chunk-B57AFBY2.js → chunk-TZZBXPZK.js} +2 -2
  202. package/dist/{chunk-VNPEWFPD.js → chunk-U2FZNEWJ.js} +4 -4
  203. package/dist/chunk-U2FZNEWJ.js.map +1 -0
  204. package/dist/{chunk-5FDLC6G7.js → chunk-UA372JHH.js} +3 -3
  205. package/dist/{chunk-PDCG6PR5.js → chunk-UEFOQH74.js} +2 -2
  206. package/dist/chunk-UEFOQH74.js.map +1 -0
  207. package/dist/{chunk-HVSCEIYL.js → chunk-UIYESRD6.js} +9 -11
  208. package/dist/chunk-UIYESRD6.js.map +1 -0
  209. package/dist/{chunk-B6SJIBQK.js → chunk-V3RWOOSO.js} +4 -4
  210. package/dist/{chunk-HBRLNOHL.js → chunk-V7ADQF5O.js} +4 -4
  211. package/dist/{chunk-L7DOS3TE.js → chunk-VAORSCSU.js} +3 -3
  212. package/dist/chunk-VAORSCSU.js.map +1 -0
  213. package/dist/{chunk-M522UYZ2.js → chunk-VFHCKG5M.js} +6 -10
  214. package/dist/chunk-VFHCKG5M.js.map +1 -0
  215. package/dist/{chunk-DC5QVPV7.js → chunk-VHBKYN2J.js} +3 -3
  216. package/dist/chunk-VHBKYN2J.js.map +1 -0
  217. package/dist/{chunk-WX5ADGTZ.js → chunk-VKI2EB3N.js} +3 -3
  218. package/dist/chunk-VKI2EB3N.js.map +1 -0
  219. package/dist/{chunk-MTL7MXGR.js → chunk-VMV5SBE4.js} +16 -17
  220. package/dist/chunk-VMV5SBE4.js.map +1 -0
  221. package/dist/{chunk-F7XGHL5O.js → chunk-VQDZYB2B.js} +3 -3
  222. package/dist/{chunk-BK2HHQGN.js → chunk-VVOLDVIR.js} +2 -2
  223. package/dist/{chunk-6LMQ5R26.js → chunk-WPOYWFSE.js} +7 -7
  224. package/dist/{chunk-6LMQ5R26.js.map → chunk-WPOYWFSE.js.map} +1 -1
  225. package/dist/{chunk-3F7GLNAE.js → chunk-WXE4W2U6.js} +7 -11
  226. package/dist/chunk-WXE4W2U6.js.map +1 -0
  227. package/dist/{chunk-6K7DPM7D.js → chunk-XQRFSKYM.js} +2 -2
  228. package/dist/{chunk-M7NI3IWE.js → chunk-XSPFDUDG.js} +22 -50
  229. package/dist/chunk-XSPFDUDG.js.map +1 -0
  230. package/dist/{chunk-ID6Z6E66.js → chunk-Y2RKVFKR.js} +2 -2
  231. package/dist/{chunk-6LNL42F5.js → chunk-Y3LPTBG7.js} +12 -12
  232. package/dist/chunk-Y3LPTBG7.js.map +1 -0
  233. package/dist/{chunk-FN5EBVTQ.js → chunk-YRXFFWG4.js} +2 -2
  234. package/dist/classified/index.js +5 -5
  235. package/dist/{classified-marker-W3USLL5M.js → classified-marker-SIYKUU5L.js} +3 -3
  236. package/dist/classified-marker-SIYKUU5L.js.map +1 -0
  237. package/dist/collection-facade-CS7CA2XO.js +47 -0
  238. package/dist/{computed-TPFBX7U4.js → computed-FAD7SED4.js} +3 -3
  239. package/dist/consent/index.js +10 -11
  240. package/dist/consent/index.js.map +1 -1
  241. package/dist/cover/index.js +9 -10
  242. package/dist/custody/index.js +12 -13
  243. package/dist/{dead-filter-U2UYKSZL.js → dead-filter-4F3LWYKH.js} +11 -3
  244. package/dist/dead-filter-4F3LWYKH.js.map +1 -0
  245. package/dist/debug/index.js +11 -2
  246. package/dist/debug/index.js.map +1 -1
  247. package/dist/{delegation-S3AEPW2T.js → delegation-NANZDG4N.js} +13 -16
  248. package/dist/delegation-NANZDG4N.js.map +1 -0
  249. package/dist/derivations/index.js +23 -24
  250. package/dist/derive-XLOJVXPU.js +20 -0
  251. package/dist/directory/index.js +10 -11
  252. package/dist/{dispatch-3CQDJV5Q.js → dispatch-H4HV32AM.js} +5 -5
  253. package/dist/{dispatch-RH4LHKBH.js → dispatch-JDZNGEB3.js} +21 -22
  254. package/dist/dispatch-JDZNGEB3.js.map +1 -0
  255. package/dist/executor-FMPVN6DT.js +35 -0
  256. package/dist/executor-LBBBRTN5.js +8 -0
  257. package/dist/executor-OSRZST2U.js +8 -0
  258. package/dist/export-accessible-RAOJAAU5.js +22 -0
  259. package/dist/extract-partition-JD5CUSTG.js +37 -0
  260. package/dist/{fanout-sidecar-OT6RYLOL.js → fanout-sidecar-L7NHPIOC.js} +13 -15
  261. package/dist/fanout-sidecar-L7NHPIOC.js.map +1 -0
  262. package/dist/find-JRN4RNQ5.js +10 -0
  263. package/dist/forget/index.js +9 -10
  264. package/dist/forget/index.js.map +1 -1
  265. package/dist/guards/index.js +4 -4
  266. package/dist/history/index.js +13 -14
  267. package/dist/history/index.js.map +1 -1
  268. package/dist/i18n/index.js +14 -15
  269. package/dist/i18n/index.js.map +1 -1
  270. package/dist/index.d.ts +8 -8
  271. package/dist/index.js +183 -184
  272. package/dist/index.js.map +1 -1
  273. package/dist/indexing/index.js +5 -5
  274. package/dist/introspection/index.js +11 -12
  275. package/dist/issue-YIVBZUTH.js +19 -0
  276. package/dist/kernel/attestation-types.d.ts +62 -0
  277. package/dist/kernel/collection-config.d.ts +1 -48
  278. package/dist/kernel/collection.d.ts +1 -1
  279. package/dist/kernel/cutover-transform.d.ts +1 -1
  280. package/dist/kernel/errors.d.ts +30 -2
  281. package/dist/kernel/merge-authority.d.ts +1 -1
  282. package/dist/kernel/paths.d.ts +29 -5
  283. package/dist/kernel/prepared-write.d.ts +1 -1
  284. package/dist/kernel/secret-mode.d.ts +1 -1
  285. package/dist/kernel/types.d.ts +42 -5
  286. package/dist/kernel/vault.d.ts +2 -2
  287. package/dist/kernel/write-queue.d.ts +17 -0
  288. package/dist/{ledger-KZPCMVZY.js → ledger-5ZMGE44K.js} +11 -12
  289. package/dist/liberate-WZSZM2W6.js +24 -0
  290. package/dist/link-set-MFXC24VK.js +29 -0
  291. package/dist/{managed-secret-S3MQ6SH6.js → managed-secret-MFTFT22X.js} +10 -11
  292. package/dist/materialized-views/index.js +26 -27
  293. package/dist/{migrate-cek-V7GKJZ7O.js → migrate-cek-DZRFFOHW.js} +2 -2
  294. package/dist/money/index.js +5 -5
  295. package/dist/noydb-ITIGNKUF.js +96 -0
  296. package/dist/overlay-views/index.js +4 -4
  297. package/dist/periods/index.js +12 -13
  298. package/dist/pod/index.js +72 -72
  299. package/dist/{pod-handle-WGDFB4C2.js → pod-handle-A3LET7NO.js} +10 -11
  300. package/dist/pod-handle-A3LET7NO.js.map +1 -0
  301. package/dist/policy/index.js +10 -11
  302. package/dist/port/on/index.d.ts +1 -1
  303. package/dist/port/to/index.d.ts +1 -1
  304. package/dist/port/with/blob-strategy.d.ts +1 -1
  305. package/dist/port/with/classified-strategy.d.ts +1 -1
  306. package/dist/port/with/collection-options.d.ts +1 -1
  307. package/dist/port/with/collection-registries.d.ts +1 -1
  308. package/dist/port/with/lookup-strategy.d.ts +2 -2
  309. package/dist/portability/index.js +8 -8
  310. package/dist/{post-register-SLSXIPBV.js → post-register-7ND27CF2.js} +6 -6
  311. package/dist/post-register-7ND27CF2.js.map +1 -0
  312. package/dist/query/all/index.js +15 -15
  313. package/dist/query/index.js +7 -7
  314. package/dist/query/live/index.js +7 -7
  315. package/dist/query/reduce/index.js +10 -10
  316. package/dist/query/relate/index.js +9 -9
  317. package/dist/reduce/index.js +8 -8
  318. package/dist/register-DT5HZ2LZ.js +30 -0
  319. package/dist/registry-BHRZGZHF.js +8 -0
  320. package/dist/registry-ET6ZFFWA.js +34 -0
  321. package/dist/registry-HXFGLGTG.js +8 -0
  322. package/dist/registry-THCPDEOD.js +23 -0
  323. package/dist/request-withdrawal-AV2MJJKY.js +30 -0
  324. package/dist/{reveal-4BCKPEC2.js → reveal-B2TLP4JQ.js} +10 -9
  325. package/dist/reveal-B2TLP4JQ.js.map +1 -0
  326. package/dist/revoke-6DWIEOCV.js +24 -0
  327. package/dist/satellites/index.js +1 -1
  328. package/dist/schema-update/index.js +2 -2
  329. package/dist/sealed-record/index.js +16 -18
  330. package/dist/sealed-record/index.js.map +1 -1
  331. package/dist/search/index.js +4 -4
  332. package/dist/{seed-4JS2RJ4A.js → seed-XNSE4U3S.js} +15 -18
  333. package/dist/seed-XNSE4U3S.js.map +1 -0
  334. package/dist/sequence/index.js +9 -10
  335. package/dist/session/index.js +9 -10
  336. package/dist/session/index.js.map +1 -1
  337. package/dist/shadow/index.js +2 -2
  338. package/dist/signer-MHGW3OIL.js +23 -0
  339. package/dist/snapshots/index.js +11 -11
  340. package/dist/stale-6GCFMOOR.js +28 -0
  341. package/dist/storage-BYN5LO6Z.js +21 -0
  342. package/dist/store/index.js +1 -1
  343. package/dist/{store-coordination-provider-2O2VUHKW.js → store-coordination-provider-C4BPT5XF.js} +11 -12
  344. package/dist/store-coordination-provider-C4BPT5XF.js.map +1 -0
  345. package/dist/sync/index.js +10 -11
  346. package/dist/sync/index.js.map +1 -1
  347. package/dist/team/index.js +15 -16
  348. package/dist/tiers/index.js +11 -12
  349. package/dist/to/index.js +2 -2
  350. package/dist/transactions/index.js +3 -3
  351. package/dist/util/index.js +1 -1
  352. package/dist/vault-head/index.js +11 -14
  353. package/dist/vault-head/index.js.map +1 -1
  354. package/dist/{verify-RVT67IMH.js → verify-UKALW7C2.js} +14 -12
  355. package/dist/verify-UKALW7C2.js.map +1 -0
  356. package/dist/via/classified/binding.d.ts +2 -2
  357. package/dist/via/classified/config-drift.d.ts +2 -2
  358. package/dist/via/classified/errors.d.ts +1 -1
  359. package/dist/via/lookup/handle.d.ts +4 -4
  360. package/dist/walk-4VPK7AS4.js +20 -0
  361. package/dist/with-audit/attestation/index.d.ts +2 -1
  362. package/dist/with-audit/attestation/issue.d.ts +2 -2
  363. package/dist/with-audit/attestation/revoke.d.ts +2 -2
  364. package/dist/with-audit/attestation/scheme.d.ts +7 -0
  365. package/dist/with-audit/attestation/signer.d.ts +1 -1
  366. package/dist/with-audit/attestation/strategy.d.ts +2 -2
  367. package/dist/with-audit/attestation/types.d.ts +10 -0
  368. package/dist/with-audit/attestation/vault-facade.d.ts +2 -2
  369. package/dist/with-audit/attestation/verifier.d.ts +6 -0
  370. package/dist/with-audit/consent/consent.d.ts +1 -1
  371. package/dist/with-audit/consent/strategy.d.ts +1 -1
  372. package/dist/with-audit/forget/subject-index.d.ts +1 -1
  373. package/dist/with-audit/periods/vault-facade.d.ts +1 -1
  374. package/dist/with-audit/sealed-record/index.d.ts +2 -2
  375. package/dist/with-audit/sealed-record/strategy.d.ts +1 -1
  376. package/dist/with-audit/tiers/index.d.ts +2 -2
  377. package/dist/with-cargo/adopt-partition.d.ts +1 -1
  378. package/dist/with-cargo/extract-partition.d.ts +1 -1
  379. package/dist/with-cargo/floor.d.ts +1 -1
  380. package/dist/with-commit/history/history.d.ts +2 -2
  381. package/dist/with-commit/history/index.d.ts +1 -1
  382. package/dist/with-commit/history/ledger/store.d.ts +1 -1
  383. package/dist/with-commit/history/strategy.d.ts +1 -1
  384. package/dist/with-commit/history/time-machine.d.ts +1 -1
  385. package/dist/with-commit/numbering/index.d.ts +1 -1
  386. package/dist/with-commit/sequence/index.d.ts +1 -1
  387. package/dist/with-commit/vault-head/head.d.ts +1 -1
  388. package/dist/with-commit/vault-head/index.d.ts +1 -1
  389. package/dist/with-commit/vault-head/strategy.d.ts +1 -1
  390. package/dist/with-commit/vault-head/verify.d.ts +1 -1
  391. package/dist/with-formula/derivations/dispatch.d.ts +1 -1
  392. package/dist/with-formula/derivations/fanout-sidecar.d.ts +1 -1
  393. package/dist/with-lookup/indexing/collection-facade.d.ts +1 -1
  394. package/dist/with-lookup/search/collection-facade.d.ts +1 -1
  395. package/dist/with-party/broker/index.d.ts +3 -3
  396. package/dist/with-party/directory/user-envelope/storage.d.ts +1 -1
  397. package/dist/with-party/team/delegation.d.ts +1 -1
  398. package/dist/with-party/team/echo-secret.d.ts +2 -2
  399. package/dist/with-party/team/index.d.ts +1 -1
  400. package/dist/with-party/team/keyring.d.ts +1 -1
  401. package/dist/with-party/team/magic-link-grant.d.ts +1 -1
  402. package/dist/with-party/team/recovery.d.ts +1 -1
  403. package/dist/with-party/team/roster-tag.d.ts +1 -1
  404. package/dist/with-party/team/rotate-recover.d.ts +1 -1
  405. package/dist/with-party/team/wrapped-deks.d.ts +1 -1
  406. package/dist/with-pod/index.d.ts +1 -1
  407. package/dist/with-shape/blobs/blob-compaction.d.ts +1 -1
  408. package/dist/with-shape/blobs/blob-intent.d.ts +1 -1
  409. package/dist/with-shape/blobs/blob-set.d.ts +2 -2
  410. package/dist/with-shape/blobs/legacy-sweep.d.ts +1 -1
  411. package/dist/with-shape/introspection/describe.d.ts +1 -1
  412. package/dist/with-shape/introspection/walk.d.ts +1 -1
  413. package/dist/with-shape/links/lazy-handle.d.ts +1 -1
  414. package/dist/with-shape/links/link-set.d.ts +1 -1
  415. package/dist/with-shape/manifest/derive.d.ts +1 -1
  416. package/dist/with-shape/manifest/storage.d.ts +1 -1
  417. package/dist/with-shape/persisted-schemas/register.d.ts +1 -1
  418. package/dist/with-shape/persisted-schemas/storage.d.ts +1 -1
  419. package/dist/with-shape/satellites/dead-filter.d.ts +1 -1
  420. package/dist/with-shape/satellites/declare.d.ts +1 -1
  421. package/dist/with-shape/satellites/marker.d.ts +1 -1
  422. package/dist/with-shape/satellites/post-register.d.ts +1 -1
  423. package/dist/with-sync/presence.d.ts +5 -10
  424. package/dist/withdraw-accessible-HL7GACUE.js +27 -0
  425. package/dist/withdraw-accessible-HL7GACUE.js.map +1 -0
  426. package/package.json +14 -5
  427. package/dist/api-GVYEKSJE.js +0 -19
  428. package/dist/backup-7TFRVFLH.js.map +0 -1
  429. package/dist/chunk-244VXYPG.js.map +0 -1
  430. package/dist/chunk-3ELRMVJK.js.map +0 -1
  431. package/dist/chunk-3F7GLNAE.js.map +0 -1
  432. package/dist/chunk-3H5KLDZN.js.map +0 -1
  433. package/dist/chunk-6B3VNR4P.js.map +0 -1
  434. package/dist/chunk-6LNL42F5.js.map +0 -1
  435. package/dist/chunk-6QSQQLSE.js +0 -95
  436. package/dist/chunk-6QSQQLSE.js.map +0 -1
  437. package/dist/chunk-7VCXZDA4.js.map +0 -1
  438. package/dist/chunk-ANWPSTZU.js.map +0 -1
  439. package/dist/chunk-BP6DARYA.js.map +0 -1
  440. package/dist/chunk-CKNGS5MH.js.map +0 -1
  441. package/dist/chunk-DC5QVPV7.js.map +0 -1
  442. package/dist/chunk-DE4DH2RZ.js +0 -29
  443. package/dist/chunk-DE4DH2RZ.js.map +0 -1
  444. package/dist/chunk-DF73H4UN.js.map +0 -1
  445. package/dist/chunk-EIPVYUEP.js.map +0 -1
  446. package/dist/chunk-ENAG3IY7.js.map +0 -1
  447. package/dist/chunk-FCKWQE2H.js.map +0 -1
  448. package/dist/chunk-FQ5VRHIB.js.map +0 -1
  449. package/dist/chunk-GF5BZ7D4.js.map +0 -1
  450. package/dist/chunk-GHLTDZRS.js.map +0 -1
  451. package/dist/chunk-GYGLAVCX.js.map +0 -1
  452. package/dist/chunk-HBPPGWUM.js.map +0 -1
  453. package/dist/chunk-HK67PX4J.js.map +0 -1
  454. package/dist/chunk-HVSCEIYL.js.map +0 -1
  455. package/dist/chunk-ISZQJBML.js.map +0 -1
  456. package/dist/chunk-KJFW62P4.js.map +0 -1
  457. package/dist/chunk-L7DOS3TE.js.map +0 -1
  458. package/dist/chunk-LGRLME4M.js.map +0 -1
  459. package/dist/chunk-LP7BEXCT.js +0 -32
  460. package/dist/chunk-LP7BEXCT.js.map +0 -1
  461. package/dist/chunk-LQ4ZHOKP.js.map +0 -1
  462. package/dist/chunk-M522UYZ2.js.map +0 -1
  463. package/dist/chunk-M7NI3IWE.js.map +0 -1
  464. package/dist/chunk-MTL7MXGR.js.map +0 -1
  465. package/dist/chunk-N5DNADLQ.js.map +0 -1
  466. package/dist/chunk-NNARWO72.js.map +0 -1
  467. package/dist/chunk-NRT6QZQB.js.map +0 -1
  468. package/dist/chunk-NWHBJQAL.js.map +0 -1
  469. package/dist/chunk-ODVPTDPK.js.map +0 -1
  470. package/dist/chunk-PDCG6PR5.js.map +0 -1
  471. package/dist/chunk-PEOZ34EM.js.map +0 -1
  472. package/dist/chunk-PSIV7CJV.js.map +0 -1
  473. package/dist/chunk-QOOUUR4A.js.map +0 -1
  474. package/dist/chunk-QWFHIOD2.js.map +0 -1
  475. package/dist/chunk-QWGU66MP.js.map +0 -1
  476. package/dist/chunk-S57HTZ6X.js.map +0 -1
  477. package/dist/chunk-SEE332EV.js +0 -66
  478. package/dist/chunk-SEE332EV.js.map +0 -1
  479. package/dist/chunk-SYVZW77S.js.map +0 -1
  480. package/dist/chunk-T2LBQ5DV.js.map +0 -1
  481. package/dist/chunk-UD5EVGZ7.js.map +0 -1
  482. package/dist/chunk-UPD5NWI5.js.map +0 -1
  483. package/dist/chunk-UYB234ZR.js +0 -479
  484. package/dist/chunk-UYB234ZR.js.map +0 -1
  485. package/dist/chunk-VNPEWFPD.js.map +0 -1
  486. package/dist/chunk-WX5ADGTZ.js.map +0 -1
  487. package/dist/chunk-X4773RBR.js.map +0 -1
  488. package/dist/chunk-YNIUIERI.js.map +0 -1
  489. package/dist/chunk-ZE4CHIED.js.map +0 -1
  490. package/dist/chunk-ZXABPVM6.js.map +0 -1
  491. package/dist/classified-marker-W3USLL5M.js.map +0 -1
  492. package/dist/collection-facade-QU6IJBN3.js +0 -48
  493. package/dist/dead-filter-U2UYKSZL.js.map +0 -1
  494. package/dist/delegation-S3AEPW2T.js.map +0 -1
  495. package/dist/derive-OX7F6TGG.js +0 -21
  496. package/dist/dispatch-RH4LHKBH.js.map +0 -1
  497. package/dist/executor-B6SRO2QS.js +0 -36
  498. package/dist/executor-BI5CHWRY.js +0 -8
  499. package/dist/executor-RBKM5W5K.js +0 -8
  500. package/dist/export-accessible-VMA3YM5V.js +0 -22
  501. package/dist/extract-partition-NF7PXGPP.js +0 -37
  502. package/dist/fanout-sidecar-OT6RYLOL.js.map +0 -1
  503. package/dist/find-LZMP26KF.js +0 -10
  504. package/dist/issue-IHARXWW5.js +0 -18
  505. package/dist/kernel/enclave/classify/compare.d.ts +0 -10
  506. package/dist/kernel/enclave/index.d.ts +0 -87
  507. package/dist/kernel/enclave/record-keys/lifecycle.d.ts +0 -124
  508. package/dist/kernel/enclave/record-keys/rekey-blob.d.ts +0 -88
  509. package/dist/kernel/enclave/record-keys/rekey.d.ts +0 -91
  510. package/dist/kernel/enclave/record-keys/sealed-slot.d.ts +0 -14
  511. package/dist/kernel/enclave/record-keys/sealed-slots.d.ts +0 -123
  512. package/dist/kernel/enclave/record-keys/sealing.d.ts +0 -70
  513. package/dist/liberate-GRLCZMW4.js +0 -24
  514. package/dist/link-set-JCMJ7ULP.js +0 -30
  515. package/dist/noydb-SWQJ3MZS.js +0 -97
  516. package/dist/pod-handle-WGDFB4C2.js.map +0 -1
  517. package/dist/post-register-SLSXIPBV.js.map +0 -1
  518. package/dist/register-F3OYE7MJ.js +0 -31
  519. package/dist/registry-CILQFXFK.js +0 -8
  520. package/dist/registry-XNNYQVKV.js +0 -8
  521. package/dist/registry-YCDZV3VW.js +0 -35
  522. package/dist/registry-ZGYS33TE.js +0 -24
  523. package/dist/request-withdrawal-Z5NC6TXT.js +0 -30
  524. package/dist/reveal-4BCKPEC2.js.map +0 -1
  525. package/dist/revoke-ZL62WC2D.js +0 -23
  526. package/dist/seed-4JS2RJ4A.js.map +0 -1
  527. package/dist/signer-MBZZMXTC.js +0 -24
  528. package/dist/stale-TJ3DYZMQ.js +0 -29
  529. package/dist/storage-SVMKRGCW.js +0 -22
  530. package/dist/store-coordination-provider-2O2VUHKW.js.map +0 -1
  531. package/dist/verify-RVT67IMH.js.map +0 -1
  532. package/dist/walk-HJ42EISE.js +0 -21
  533. package/dist/withdraw-accessible-5NZUPAVA.js +0 -27
  534. /package/dist/{api-GVYEKSJE.js.map → api-OS747DS4.js.map} +0 -0
  535. /package/dist/{computed-TPFBX7U4.js.map → capsule/contract.js.map} +0 -0
  536. /package/dist/{kernel/enclave → capsule/enclave-aes}/broker/proof.d.ts +0 -0
  537. /package/dist/{kernel/enclave → capsule/enclave-aes}/classify/bidx.d.ts +0 -0
  538. /package/dist/{kernel/enclave → capsule/enclave-aes}/classify/digest.d.ts +0 -0
  539. /package/dist/{kernel/enclave → capsule/enclave-aes}/classify/vdig.d.ts +0 -0
  540. /package/dist/{kernel/enclave/classify → capsule/plumbing}/kofn.d.ts +0 -0
  541. /package/dist/{kernel/enclave/classify → capsule/plumbing}/normalize.d.ts +0 -0
  542. /package/dist/{kernel/enclave → capsule/plumbing}/record-aad.d.ts +0 -0
  543. /package/dist/{collection-facade-QU6IJBN3.js.map → capsule-VOLX3QRQ.js.map} +0 -0
  544. /package/dist/{chunk-YSK2CU2Q.js.map → chunk-2AFX33YA.js.map} +0 -0
  545. /package/dist/{chunk-TKUOEU2F.js.map → chunk-2GHDLTPE.js.map} +0 -0
  546. /package/dist/{chunk-6OWXYZK2.js.map → chunk-2ODVB6LZ.js.map} +0 -0
  547. /package/dist/{chunk-X25NWUZB.js.map → chunk-2PVXF5CS.js.map} +0 -0
  548. /package/dist/{chunk-ORDURZBU.js.map → chunk-3EWS67C7.js.map} +0 -0
  549. /package/dist/{chunk-FXQBGFOX.js.map → chunk-4CIQDWRB.js.map} +0 -0
  550. /package/dist/{chunk-HT2AHGQI.js.map → chunk-4JPMZTJY.js.map} +0 -0
  551. /package/dist/{chunk-MKXXMNJH.js.map → chunk-4V3Q35WG.js.map} +0 -0
  552. /package/dist/{chunk-A6IJU4TK.js.map → chunk-52MGURXO.js.map} +0 -0
  553. /package/dist/{chunk-HLEK5VAN.js.map → chunk-5WWDGFOS.js.map} +0 -0
  554. /package/dist/{chunk-SOIQ4MM4.js.map → chunk-7XMHMVTS.js.map} +0 -0
  555. /package/dist/{chunk-4MXI3ODD.js.map → chunk-AEQGFRU4.js.map} +0 -0
  556. /package/dist/{chunk-7JE7BDYJ.js.map → chunk-AL6ML4LA.js.map} +0 -0
  557. /package/dist/{chunk-ZUVBC32X.js.map → chunk-AUKKUPVB.js.map} +0 -0
  558. /package/dist/{chunk-WY2XXTET.js.map → chunk-BPWYQ25R.js.map} +0 -0
  559. /package/dist/{chunk-EOVMT6TB.js.map → chunk-BVCUTXE3.js.map} +0 -0
  560. /package/dist/{chunk-3JWHAR6E.js.map → chunk-DIZLQVAA.js.map} +0 -0
  561. /package/dist/{chunk-IT22PWKV.js.map → chunk-E2N2T5ZO.js.map} +0 -0
  562. /package/dist/{chunk-WNJ4AVGE.js.map → chunk-EJLV62NI.js.map} +0 -0
  563. /package/dist/{chunk-QBBUZ3I3.js.map → chunk-EYG2CY2X.js.map} +0 -0
  564. /package/dist/{chunk-BJ2IXQ5Q.js.map → chunk-FFJFE4T7.js.map} +0 -0
  565. /package/dist/{chunk-JCN44NCY.js.map → chunk-FLPCETP6.js.map} +0 -0
  566. /package/dist/{chunk-5O7D6ZTW.js.map → chunk-FOEDQATO.js.map} +0 -0
  567. /package/dist/{chunk-VNNRUGMM.js.map → chunk-FVH5QYY2.js.map} +0 -0
  568. /package/dist/{chunk-4AF3TUMP.js.map → chunk-GZT3NQRA.js.map} +0 -0
  569. /package/dist/{chunk-MVZ2TPVP.js.map → chunk-H427H63K.js.map} +0 -0
  570. /package/dist/{chunk-MLPHLJIQ.js.map → chunk-HS554XAF.js.map} +0 -0
  571. /package/dist/{chunk-TROR3ALR.js.map → chunk-JOSPH3E5.js.map} +0 -0
  572. /package/dist/{chunk-F24ZZTHQ.js.map → chunk-JQYKPKG6.js.map} +0 -0
  573. /package/dist/{chunk-MDWKM2XC.js.map → chunk-M5B2W6YY.js.map} +0 -0
  574. /package/dist/{chunk-F2TDU7MQ.js.map → chunk-MBMTND6D.js.map} +0 -0
  575. /package/dist/{chunk-K6W7BVZ6.js.map → chunk-MILI22XQ.js.map} +0 -0
  576. /package/dist/{chunk-CF5UU4S7.js.map → chunk-N7UDP5VU.js.map} +0 -0
  577. /package/dist/{chunk-FQ54DWUQ.js.map → chunk-NBQ3KK6X.js.map} +0 -0
  578. /package/dist/{chunk-4I522ERM.js.map → chunk-NCO25JZO.js.map} +0 -0
  579. /package/dist/{chunk-SI3V7D4G.js.map → chunk-O2IMQSNA.js.map} +0 -0
  580. /package/dist/{chunk-T52GX4SA.js.map → chunk-O46CHQT7.js.map} +0 -0
  581. /package/dist/{chunk-TOPYQ6GA.js.map → chunk-OYW3I5M4.js.map} +0 -0
  582. /package/dist/{chunk-AOWGXU6D.js.map → chunk-Q4UHJ5SN.js.map} +0 -0
  583. /package/dist/{chunk-FW22ZCXT.js.map → chunk-QBLT6POL.js.map} +0 -0
  584. /package/dist/{chunk-I3JDRCMW.js.map → chunk-RB4DOPGZ.js.map} +0 -0
  585. /package/dist/{chunk-32YV3TJT.js.map → chunk-SMV2HRDU.js.map} +0 -0
  586. /package/dist/{chunk-Z5HTYMMQ.js.map → chunk-SYNY3VB5.js.map} +0 -0
  587. /package/dist/{chunk-ZSX4S5XB.js.map → chunk-TKVUE4JF.js.map} +0 -0
  588. /package/dist/{chunk-B57AFBY2.js.map → chunk-TZZBXPZK.js.map} +0 -0
  589. /package/dist/{chunk-5FDLC6G7.js.map → chunk-UA372JHH.js.map} +0 -0
  590. /package/dist/{chunk-B6SJIBQK.js.map → chunk-V3RWOOSO.js.map} +0 -0
  591. /package/dist/{chunk-HBRLNOHL.js.map → chunk-V7ADQF5O.js.map} +0 -0
  592. /package/dist/{chunk-F7XGHL5O.js.map → chunk-VQDZYB2B.js.map} +0 -0
  593. /package/dist/{chunk-BK2HHQGN.js.map → chunk-VVOLDVIR.js.map} +0 -0
  594. /package/dist/{chunk-6K7DPM7D.js.map → chunk-XQRFSKYM.js.map} +0 -0
  595. /package/dist/{chunk-ID6Z6E66.js.map → chunk-Y2RKVFKR.js.map} +0 -0
  596. /package/dist/{chunk-FN5EBVTQ.js.map → chunk-YRXFFWG4.js.map} +0 -0
  597. /package/dist/{derive-OX7F6TGG.js.map → collection-facade-CS7CA2XO.js.map} +0 -0
  598. /package/dist/{enclave-27SMF6GF.js.map → computed-FAD7SED4.js.map} +0 -0
  599. /package/dist/{executor-B6SRO2QS.js.map → derive-XLOJVXPU.js.map} +0 -0
  600. /package/dist/{dispatch-3CQDJV5Q.js.map → dispatch-H4HV32AM.js.map} +0 -0
  601. /package/dist/{executor-BI5CHWRY.js.map → executor-FMPVN6DT.js.map} +0 -0
  602. /package/dist/{executor-RBKM5W5K.js.map → executor-LBBBRTN5.js.map} +0 -0
  603. /package/dist/{export-accessible-VMA3YM5V.js.map → executor-OSRZST2U.js.map} +0 -0
  604. /package/dist/{extract-partition-NF7PXGPP.js.map → export-accessible-RAOJAAU5.js.map} +0 -0
  605. /package/dist/{find-LZMP26KF.js.map → extract-partition-JD5CUSTG.js.map} +0 -0
  606. /package/dist/{issue-IHARXWW5.js.map → find-JRN4RNQ5.js.map} +0 -0
  607. /package/dist/{ledger-KZPCMVZY.js.map → issue-YIVBZUTH.js.map} +0 -0
  608. /package/dist/{liberate-GRLCZMW4.js.map → ledger-5ZMGE44K.js.map} +0 -0
  609. /package/dist/{link-set-JCMJ7ULP.js.map → liberate-WZSZM2W6.js.map} +0 -0
  610. /package/dist/{managed-secret-S3MQ6SH6.js.map → link-set-MFXC24VK.js.map} +0 -0
  611. /package/dist/{noydb-SWQJ3MZS.js.map → managed-secret-MFTFT22X.js.map} +0 -0
  612. /package/dist/{migrate-cek-V7GKJZ7O.js.map → migrate-cek-DZRFFOHW.js.map} +0 -0
  613. /package/dist/{register-F3OYE7MJ.js.map → noydb-ITIGNKUF.js.map} +0 -0
  614. /package/dist/{registry-CILQFXFK.js.map → register-DT5HZ2LZ.js.map} +0 -0
  615. /package/dist/{registry-XNNYQVKV.js.map → registry-BHRZGZHF.js.map} +0 -0
  616. /package/dist/{registry-YCDZV3VW.js.map → registry-ET6ZFFWA.js.map} +0 -0
  617. /package/dist/{registry-ZGYS33TE.js.map → registry-HXFGLGTG.js.map} +0 -0
  618. /package/dist/{request-withdrawal-Z5NC6TXT.js.map → registry-THCPDEOD.js.map} +0 -0
  619. /package/dist/{revoke-ZL62WC2D.js.map → request-withdrawal-AV2MJJKY.js.map} +0 -0
  620. /package/dist/{signer-MBZZMXTC.js.map → revoke-6DWIEOCV.js.map} +0 -0
  621. /package/dist/{stale-TJ3DYZMQ.js.map → signer-MHGW3OIL.js.map} +0 -0
  622. /package/dist/{storage-SVMKRGCW.js.map → stale-6GCFMOOR.js.map} +0 -0
  623. /package/dist/{walk-HJ42EISE.js.map → storage-BYN5LO6Z.js.map} +0 -0
  624. /package/dist/{withdraw-accessible-5NZUPAVA.js.map → walk-4VPK7AS4.js.map} +0 -0
@@ -1,31 +1,31 @@
1
+ import {
2
+ isManifestReservedCollection
3
+ } from "./chunk-EPFF7LOX.js";
1
4
  import {
2
5
  LinkIntegrityError,
3
6
  declareLink,
4
7
  isLinkCollectionName,
5
8
  linkCollectionName,
6
9
  linkRowKey
7
- } from "./chunk-AOWGXU6D.js";
10
+ } from "./chunk-Q4UHJ5SN.js";
8
11
  import {
9
12
  hashFields,
10
13
  validateSatelliteDeclaration
11
- } from "./chunk-6K7DPM7D.js";
14
+ } from "./chunk-XQRFSKYM.js";
12
15
  import {
13
16
  resolveStaleOnRead
14
- } from "./chunk-TROR3ALR.js";
15
- import {
16
- isManifestReservedCollection
17
- } from "./chunk-EPFF7LOX.js";
17
+ } from "./chunk-JOSPH3E5.js";
18
18
  import {
19
19
  loadFence
20
- } from "./chunk-L7DOS3TE.js";
20
+ } from "./chunk-VAORSCSU.js";
21
21
  import {
22
22
  buildPersistedIndexCallbacks,
23
23
  syncTierSearch
24
- } from "./chunk-6LNL42F5.js";
24
+ } from "./chunk-Y3LPTBG7.js";
25
25
  import {
26
26
  isBaseLive,
27
27
  liveBaseIdSet
28
- } from "./chunk-GYGLAVCX.js";
28
+ } from "./chunk-2MG3SW7Q.js";
29
29
  import {
30
30
  SchemaUpdateGate
31
31
  } from "./chunk-6LJY7X5A.js";
@@ -33,22 +33,54 @@ import {
33
33
  NO_TIERS,
34
34
  classifySealedShred,
35
35
  syncDerivedOutputs
36
- } from "./chunk-UPD5NWI5.js";
36
+ } from "./chunk-DHHGL42E.js";
37
37
  import {
38
38
  NO_PORTABILITY
39
- } from "./chunk-ZUVBC32X.js";
39
+ } from "./chunk-AUKKUPVB.js";
40
40
  import {
41
41
  NO_CARGO
42
- } from "./chunk-A6IJU4TK.js";
42
+ } from "./chunk-52MGURXO.js";
43
+ import {
44
+ saveSealedSecret
45
+ } from "./chunk-3XJQBBZD.js";
46
+ import {
47
+ runDrainBarrier
48
+ } from "./chunk-DIZLQVAA.js";
43
49
  import {
44
50
  fallbackDerivationName
45
51
  } from "./chunk-RXLYKVTF.js";
46
52
  import {
47
- saveSealedSecret
48
- } from "./chunk-ENAG3IY7.js";
53
+ CustodyApi,
54
+ NO_CUSTODY
55
+ } from "./chunk-V3RWOOSO.js";
49
56
  import {
50
- runDrainBarrier
51
- } from "./chunk-3JWHAR6E.js";
57
+ DEFAULT_POSTURE,
58
+ ViaGraph,
59
+ buildDescription,
60
+ collectKnownFieldNames,
61
+ computedEntryParts,
62
+ deriveZodFields,
63
+ guardReconcileCollisions,
64
+ mergeViaFields,
65
+ resolveCollectionConfig,
66
+ resolveComputedEdges,
67
+ resolveDescribeFieldIds,
68
+ resolveVirtualMoneyFields
69
+ } from "./chunk-IUT3GWP3.js";
70
+ import {
71
+ findMatchingIdsByPairs
72
+ } from "./chunk-TFMM5DBB.js";
73
+ import {
74
+ encodeVecId
75
+ } from "./chunk-M5B2W6YY.js";
76
+ import {
77
+ NO_CLASSIFIED,
78
+ guardClassifiedCompat,
79
+ resolveClassifiedFields
80
+ } from "./chunk-GUZET4SG.js";
81
+ import {
82
+ derivePersistedSchema
83
+ } from "./chunk-747G6CT3.js";
52
84
  import {
53
85
  findRollupSpecForIntent,
54
86
  forgetDerivedFanout,
@@ -58,17 +90,53 @@ import {
58
90
  runGraphDispatchWave,
59
91
  selfWriteFieldEqual,
60
92
  touchFor
61
- } from "./chunk-K6W7BVZ6.js";
93
+ } from "./chunk-MILI22XQ.js";
94
+ import {
95
+ buildLookupAltIndex,
96
+ buildLookupSnapshotRows,
97
+ buildPresentForJoin,
98
+ checkLookupMembership,
99
+ coerceLookupKey,
100
+ collectLookupDictCompat,
101
+ enforceStaticDictOnPut,
102
+ matchesReferencingValue,
103
+ registerLookupRefEdges,
104
+ reservedDictDepsOf,
105
+ resolveDictSource,
106
+ resolveLabelFromMap,
107
+ updateReferencingRecords
108
+ } from "./chunk-244QBK7Z.js";
62
109
  import {
63
110
  OverlayedCollection
64
- } from "./chunk-MLPHLJIQ.js";
111
+ } from "./chunk-HS554XAF.js";
65
112
  import {
66
113
  INDEXED_STORE_POLICY,
67
114
  NO_SYNC
68
115
  } from "./chunk-T7IR4N2S.js";
69
116
  import {
70
117
  NO_ATTESTATION
71
- } from "./chunk-X4773RBR.js";
118
+ } from "./chunk-PD64727P.js";
119
+ import {
120
+ NO_COVERAGE
121
+ } from "./chunk-RHVMZSUU.js";
122
+ import {
123
+ NO_PERIODS,
124
+ isEffectivelyReopened,
125
+ isOrderableBusinessDate,
126
+ malformedBusinessDate,
127
+ purgeMarkersOn,
128
+ resolvePeriodKey,
129
+ resolveReopenState,
130
+ samePartition
131
+ } from "./chunk-3A5DUZ56.js";
132
+ import {
133
+ PERIODS_COLLECTION,
134
+ PERIOD_ARCHIVES_COLLECTION,
135
+ PERIOD_FREEZES_COLLECTION,
136
+ PERIOD_REOPENS_COLLECTION,
137
+ PERIOD_TARGET_PURGES_COLLECTION,
138
+ periodExclusiveUpperBound
139
+ } from "./chunk-QBLT6POL.js";
72
140
  import {
73
141
  NO_SHADOW
74
142
  } from "./chunk-SMY5X46Z.js";
@@ -79,7 +147,7 @@ import {
79
147
  TxContext,
80
148
  bestEffortRevert,
81
149
  trackKeyedWrite
82
- } from "./chunk-5FDLC6G7.js";
150
+ } from "./chunk-UA372JHH.js";
83
151
  import {
84
152
  lazy
85
153
  } from "./chunk-5D2ALSM5.js";
@@ -88,67 +156,26 @@ import {
88
156
  InvertedIndex,
89
157
  MemoryIndexStore,
90
158
  NO_SEARCH
91
- } from "./chunk-I3JDRCMW.js";
159
+ } from "./chunk-RB4DOPGZ.js";
92
160
  import {
93
161
  NO_SEQUENCE,
94
162
  SEQUENCE_COLLECTION,
95
163
  compileSequenceFormat,
96
164
  resolveSequenceKey
97
- } from "./chunk-M522UYZ2.js";
98
- import {
99
- CustodyApi,
100
- NO_CUSTODY
101
- } from "./chunk-B6SJIBQK.js";
102
- import {
103
- DEFAULT_POSTURE,
104
- ViaGraph,
105
- buildDescription,
106
- collectKnownFieldNames,
107
- computedEntryParts,
108
- deriveZodFields,
109
- guardReconcileCollisions,
110
- mergeViaFields,
111
- resolveCollectionConfig,
112
- resolveComputedEdges,
113
- resolveDescribeFieldIds,
114
- resolveVirtualMoneyFields
115
- } from "./chunk-UD5EVGZ7.js";
116
- import {
117
- findMatchingIdsByPairs
118
- } from "./chunk-TFMM5DBB.js";
119
- import {
120
- encodeVecId
121
- } from "./chunk-MDWKM2XC.js";
122
- import {
123
- derivePersistedSchema
124
- } from "./chunk-PSIV7CJV.js";
125
- import {
126
- buildLookupAltIndex,
127
- buildLookupSnapshotRows,
128
- buildPresentForJoin,
129
- checkLookupMembership,
130
- coerceLookupKey,
131
- collectLookupDictCompat,
132
- enforceStaticDictOnPut,
133
- matchesReferencingValue,
134
- registerLookupRefEdges,
135
- reservedDictDepsOf,
136
- resolveDictSource,
137
- resolveLabelFromMap,
138
- updateReferencingRecords
139
- } from "./chunk-FH2L2E34.js";
165
+ } from "./chunk-VFHCKG5M.js";
140
166
  import {
141
- NO_CLASSIFIED,
142
- guardClassifiedCompat,
143
- resolveClassifiedFields
144
- } from "./chunk-QOOUUR4A.js";
167
+ EXPORT_AUDIT_COLLECTION,
168
+ NO_BLOBS,
169
+ createExportBlobsHandle,
170
+ runCompaction
171
+ } from "./chunk-JSMTXZR3.js";
145
172
  import {
146
173
  LazyQuery,
147
174
  NO_INDEXING,
148
175
  compositeKey,
149
176
  decodeIdxId,
150
177
  encodeIdxId
151
- } from "./chunk-HBRLNOHL.js";
178
+ } from "./chunk-V7ADQF5O.js";
152
179
  import {
153
180
  IMPLICIT_LAZY
154
181
  } from "./chunk-66TQOPFM.js";
@@ -163,71 +190,44 @@ import {
163
190
  } from "./chunk-PVEWA2DU.js";
164
191
  import {
165
192
  NO_CONSENT
166
- } from "./chunk-PEOZ34EM.js";
167
- import {
168
- NO_COVERAGE
169
- } from "./chunk-RHVMZSUU.js";
170
- import {
171
- NO_PERIODS,
172
- isEffectivelyReopened,
173
- isOrderableBusinessDate,
174
- malformedBusinessDate,
175
- purgeMarkersOn,
176
- resolvePeriodKey,
177
- resolveReopenState,
178
- samePartition
179
- } from "./chunk-NRT6QZQB.js";
180
- import {
181
- PERIODS_COLLECTION,
182
- PERIOD_ARCHIVES_COLLECTION,
183
- PERIOD_FREEZES_COLLECTION,
184
- PERIOD_REOPENS_COLLECTION,
185
- PERIOD_TARGET_PURGES_COLLECTION,
186
- periodExclusiveUpperBound
187
- } from "./chunk-FW22ZCXT.js";
193
+ } from "./chunk-GSAK56VF.js";
188
194
  import {
189
195
  NO_SEALED_RECORD
190
- } from "./chunk-PDCG6PR5.js";
196
+ } from "./chunk-UEFOQH74.js";
191
197
  import {
192
198
  normalizeIndexDefs,
193
199
  parseFieldIndexSnapshot
194
- } from "./chunk-YSK2CU2Q.js";
200
+ } from "./chunk-2AFX33YA.js";
195
201
  import {
196
202
  EXPORT_REDACTION_MARKER,
197
203
  ViaPipeline,
198
204
  exportRedact
199
- } from "./chunk-ORDURZBU.js";
205
+ } from "./chunk-3EWS67C7.js";
200
206
  import {
201
207
  ScanBuilder
202
- } from "./chunk-F24ZZTHQ.js";
208
+ } from "./chunk-JQYKPKG6.js";
203
209
  import {
204
210
  Query
205
- } from "./chunk-7JE7BDYJ.js";
211
+ } from "./chunk-AL6ML4LA.js";
206
212
  import {
207
213
  NO_REDUCE
208
214
  } from "./chunk-3TDUWVWB.js";
209
215
  import {
210
216
  readPath
211
- } from "./chunk-HLEK5VAN.js";
212
- import {
213
- EXPORT_AUDIT_COLLECTION,
214
- NO_BLOBS,
215
- createExportBlobsHandle,
216
- runCompaction
217
- } from "./chunk-GF5BZ7D4.js";
217
+ } from "./chunk-5WWDGFOS.js";
218
218
  import {
219
219
  dictCollectionName
220
- } from "./chunk-DF73H4UN.js";
220
+ } from "./chunk-23D6M6VM.js";
221
221
  import {
222
222
  NO_I18N,
223
223
  getAtPath,
224
224
  isDictCollectionName,
225
225
  isStaticDictDescriptor
226
- } from "./chunk-GHLTDZRS.js";
226
+ } from "./chunk-OKSTSITU.js";
227
227
  import {
228
228
  isViaInstalled,
229
229
  viaBinder
230
- } from "./chunk-Z5HTYMMQ.js";
230
+ } from "./chunk-SYNY3VB5.js";
231
231
  import {
232
232
  NO_TEAM,
233
233
  describeAllUsersAuth,
@@ -250,7 +250,7 @@ import {
250
250
  saveShamirRecoveryEntries,
251
251
  updateAuthenticator,
252
252
  writeMagicLinkGrant
253
- } from "./chunk-ZE4CHIED.js";
253
+ } from "./chunk-DQESF6RP.js";
254
254
  import {
255
255
  assertKeyringOpenAllowed,
256
256
  buildRecipientKeyringFile,
@@ -265,15 +265,15 @@ import {
265
265
  listUsers,
266
266
  loadKeyring,
267
267
  updateKeyringIdentity
268
- } from "./chunk-M7NI3IWE.js";
268
+ } from "./chunk-XSPFDUDG.js";
269
269
  import {
270
270
  persistDirectoryConfig,
271
271
  readDirectoryConfig
272
- } from "./chunk-7VCXZDA4.js";
272
+ } from "./chunk-LIOVX5TJ.js";
273
273
  import {
274
274
  NO_BROKER,
275
275
  buildCredentialBrokerHandle
276
- } from "./chunk-4AF3TUMP.js";
276
+ } from "./chunk-GZT3NQRA.js";
277
277
  import {
278
278
  NO_SESSION
279
279
  } from "./chunk-VKQCVU2Z.js";
@@ -282,19 +282,19 @@ import {
282
282
  } from "./chunk-4AOERLTV.js";
283
283
  import {
284
284
  NO_HISTORY
285
- } from "./chunk-QWGU66MP.js";
285
+ } from "./chunk-LNSVGRHO.js";
286
286
  import {
287
287
  sha256Hex
288
- } from "./chunk-CKNGS5MH.js";
288
+ } from "./chunk-6QVKPHBF.js";
289
289
  import {
290
290
  assertCutoverTierSafe,
291
291
  assertTierWritable,
292
292
  dekKey,
293
293
  liveRecordIsElevated
294
- } from "./chunk-JCN44NCY.js";
294
+ } from "./chunk-FLPCETP6.js";
295
295
  import {
296
296
  NO_VAULT_HEAD
297
- } from "./chunk-HK67PX4J.js";
297
+ } from "./chunk-HW7CMKUG.js";
298
298
  import {
299
299
  NO_FORGET,
300
300
  addSubjectRef,
@@ -303,36 +303,34 @@ import {
303
303
  readDottedPath,
304
304
  rebuildSubjectIndex,
305
305
  removeSubjectRef
306
- } from "./chunk-J6UOHJY5.js";
306
+ } from "./chunk-JDEYF3PJ.js";
307
307
  import {
308
308
  RecordCodec,
309
309
  SEALED_CEK_NS,
310
310
  applyRewrappedBody,
311
+ buildDeleteMarker,
311
312
  buildRecordAad,
313
+ buildRecordEnvelope,
314
+ buildTombstone,
315
+ encrypt,
312
316
  findByDet,
313
317
  hasPerRecordKey,
314
318
  hasSealedBody,
319
+ isDeleteMarker,
320
+ isTombstone,
315
321
  makeReservedEnvelopes,
316
322
  openEnvelopeJson,
317
323
  queryByDet,
318
324
  resolveStableCek,
319
325
  rewrapBodyToDek,
320
- validateSchemaInput,
321
326
  verifyRecordIdentity
322
- } from "./chunk-KJFW62P4.js";
323
- import {
324
- buildDeleteMarker,
325
- buildRecordEnvelope,
326
- buildTombstone,
327
- isDeleteMarker,
328
- isTombstone
329
- } from "./chunk-SEE332EV.js";
327
+ } from "./chunk-EZGV6F47.js";
330
328
  import {
331
- encrypt
332
- } from "./chunk-UYB234ZR.js";
329
+ validateSchemaInput
330
+ } from "./chunk-42ALPZ2B.js";
333
331
  import {
334
332
  SealedHandle
335
- } from "./chunk-ODVPTDPK.js";
333
+ } from "./chunk-SV2PM2OY.js";
336
334
  import {
337
335
  AlreadyElevatedError,
338
336
  AttestationError,
@@ -372,7 +370,7 @@ import {
372
370
  UniqueConstraintError,
373
371
  ValidationError,
374
372
  isConflictError
375
- } from "./chunk-244VXYPG.js";
373
+ } from "./chunk-37EPTBBR.js";
376
374
 
377
375
  // src/kernel/merge-authority.ts
378
376
  function buildMergeAuthority(keyring) {
@@ -553,7 +551,7 @@ function validateSecretModeOptions(options) {
553
551
  }
554
552
  async function resolveEffectiveSecret(options, store, vault) {
555
553
  if (options.secretMode === "managed") {
556
- const { resolveManagedSecret } = await import("./managed-secret-S3MQ6SH6.js");
554
+ const { resolveManagedSecret } = await import("./managed-secret-MFTFT22X.js");
557
555
  return resolveManagedSecret(store, vault, options.sealingKey);
558
556
  }
559
557
  return options.secret;
@@ -571,7 +569,7 @@ function ownerKeyringOptions(options, secret) {
571
569
 
572
570
  // src/port/by/default-provider.ts
573
571
  async function createDefaultMesh(store) {
574
- const { StoreMesh } = await import("./store-coordination-provider-2O2VUHKW.js");
572
+ const { StoreMesh } = await import("./store-coordination-provider-C4BPT5XF.js");
575
573
  return new StoreMesh(store);
576
574
  }
577
575
 
@@ -1725,7 +1723,7 @@ async function commitSequentially(ctx, entries, priors) {
1725
1723
  }
1726
1724
 
1727
1725
  // src/with-formula/computed/lazy.ts
1728
- var loadComputed = lazy(() => import("./computed-TPFBX7U4.js"));
1726
+ var loadComputed = lazy(() => import("./computed-FAD7SED4.js"));
1729
1727
  async function loadEvalComputedFields() {
1730
1728
  return (await loadComputed()).evalComputedFields;
1731
1729
  }
@@ -2534,7 +2532,7 @@ var Collection = class {
2534
2532
  }
2535
2533
  await this.onAccess?.("find", "*");
2536
2534
  if (hits.length === 0) return [];
2537
- const { verifyDigestField } = await import("./verify-RVT67IMH.js");
2535
+ const { verifyDigestField } = await import("./verify-UKALW7C2.js");
2538
2536
  const policy = {
2539
2537
  normalize: spec.verifyNormalize ?? "password",
2540
2538
  notLastN: spec.notLastN ?? 0,
@@ -2746,7 +2744,7 @@ var Collection = class {
2746
2744
  }
2747
2745
  }
2748
2746
  if (this.materializedViewSource !== void 0) {
2749
- const { resolveStaleMVOnRead } = await import("./stale-TJ3DYZMQ.js");
2747
+ const { resolveStaleMVOnRead } = await import("./stale-6GCFMOOR.js");
2750
2748
  await resolveStaleMVOnRead(this.materializedViewSource, this.name, this.#dispatchCtx({ collection: this.name, id: "resolve-on-read" }));
2751
2749
  }
2752
2750
  let record;
@@ -2867,30 +2865,35 @@ var Collection = class {
2867
2865
  }
2868
2866
  /** @internal The body of {@link put}; see the #1420 note there for why it is split. */
2869
2867
  async #putGated(id, record, options) {
2870
- await this.schemaUpdateGate?.assertWritable();
2871
- await this.schemaFence?.assertWritable(this.name);
2872
2868
  const hooksActive = this.#hooksActive();
2873
2869
  const busAfterPut = (this.subsystemBus?.hasHandlers("afterPut") ?? false) && !(this.subsystemBus?.dispatching ?? false);
2874
2870
  let event;
2875
- if (hooksActive || busAfterPut) {
2876
- const prior = await this.#priorForHook(id);
2877
- event = {
2878
- op: prior.record === null ? "create" : "update",
2879
- vault: this.vault,
2880
- collection: this.name,
2881
- docId: id,
2882
- before: prior.record,
2883
- after: record,
2884
- userId: this.keyring.userId,
2885
- timestamp: Date.now(),
2886
- txId: this.#txIdForHook(),
2887
- baseVersion: prior.version,
2888
- version: prior.version + 1
2889
- };
2890
- if (hooksActive) await this.writeHooks.runBefore(event);
2891
- }
2892
- if (this.writeQueue) await this.writeQueue.track(() => this._putInternal(id, record, options));
2893
- else await this._putInternal(id, record, options);
2871
+ const gated = async (committed) => {
2872
+ await this.schemaUpdateGate?.assertWritable();
2873
+ await this.schemaFence?.assertWritable(this.name);
2874
+ if (hooksActive || busAfterPut) {
2875
+ const prior = await this.#priorForHook(id);
2876
+ event = {
2877
+ op: prior.record === null ? "create" : "update",
2878
+ vault: this.vault,
2879
+ collection: this.name,
2880
+ docId: id,
2881
+ before: prior.record,
2882
+ after: record,
2883
+ userId: this.keyring.userId,
2884
+ timestamp: Date.now(),
2885
+ txId: this.#txIdForHook(),
2886
+ baseVersion: prior.version,
2887
+ version: prior.version + 1
2888
+ };
2889
+ if (hooksActive) await this.writeHooks.runBefore(event);
2890
+ }
2891
+ committed();
2892
+ await this._putInternal(id, record, options);
2893
+ };
2894
+ if (this.writeQueue) await this.writeQueue.trackGated(gated);
2895
+ else await gated(() => {
2896
+ });
2894
2897
  if (event) {
2895
2898
  if (hooksActive) await this.writeHooks.runAfter(event);
2896
2899
  if (busAfterPut) await this.subsystemBus.dispatch("afterPut", event);
@@ -3283,7 +3286,7 @@ var Collection = class {
3283
3286
  */
3284
3287
  async dispatchMaterializedViews(id, record, wave) {
3285
3288
  if (this.materializedViewSource === void 0) return;
3286
- const { dispatchMaterializedViews } = await import("./dispatch-3CQDJV5Q.js");
3289
+ const { dispatchMaterializedViews } = await import("./dispatch-H4HV32AM.js");
3287
3290
  return dispatchMaterializedViews(this.#mvDispatchCtx(this.materializedViewSource), id, record, wave);
3288
3291
  }
3289
3292
  /**
@@ -3449,13 +3452,13 @@ var Collection = class {
3449
3452
  * dispatch wave's per-target dedup; `undefined` on the local-write path (byte-identical). */
3450
3453
  async dispatchDerivations(id, record, version, wave, prior) {
3451
3454
  if (this.derivationSource === void 0) return;
3452
- const { dispatchDerivations } = await import("./dispatch-RH4LHKBH.js");
3455
+ const { dispatchDerivations } = await import("./dispatch-JDZNGEB3.js");
3453
3456
  return dispatchDerivations(this.#derivationDispatchCtx(), id, record, version, wave, prior);
3454
3457
  }
3455
3458
  /** @internal — trigger fan-out for a deleted parent (#1249); see dispatch.ts. */
3456
3459
  async dispatchTriggerDerivationsOnDelete(id, deleted) {
3457
3460
  if (this.derivationSource === void 0) return;
3458
- const { dispatchTriggerDerivationsOnDelete } = await import("./dispatch-RH4LHKBH.js");
3461
+ const { dispatchTriggerDerivationsOnDelete } = await import("./dispatch-JDZNGEB3.js");
3459
3462
  return dispatchTriggerDerivationsOnDelete(this.#derivationDispatchCtx(), id, deleted);
3460
3463
  }
3461
3464
  /**
@@ -3467,30 +3470,35 @@ var Collection = class {
3467
3470
  }
3468
3471
  /** @internal The body of {@link delete}; see the #1420 note on {@link put}. */
3469
3472
  async #deleteGated(id) {
3470
- await this.schemaUpdateGate?.assertWritable();
3471
- await this.schemaFence?.assertWritable(this.name);
3472
3473
  const hooksActive = this.#hooksActive();
3473
3474
  const busAfterDelete = (this.subsystemBus?.hasHandlers("afterDelete") ?? false) && !(this.subsystemBus?.dispatching ?? false);
3474
3475
  let event;
3475
- if (hooksActive || busAfterDelete) {
3476
- const prior = await this.#priorForHook(id);
3477
- event = {
3478
- op: "delete",
3479
- vault: this.vault,
3480
- collection: this.name,
3481
- docId: id,
3482
- before: prior.record,
3483
- after: null,
3484
- userId: this.keyring.userId,
3485
- timestamp: Date.now(),
3486
- txId: this.#txIdForHook(),
3487
- baseVersion: prior.version,
3488
- version: prior.version + 1
3489
- };
3490
- if (hooksActive) await this.writeHooks.runBefore(event);
3491
- }
3492
- if (this.writeQueue) await this.writeQueue.track(() => this._deleteInternal(id));
3493
- else await this._deleteInternal(id);
3476
+ const gated = async (committed) => {
3477
+ await this.schemaUpdateGate?.assertWritable();
3478
+ await this.schemaFence?.assertWritable(this.name);
3479
+ if (hooksActive || busAfterDelete) {
3480
+ const prior = await this.#priorForHook(id);
3481
+ event = {
3482
+ op: "delete",
3483
+ vault: this.vault,
3484
+ collection: this.name,
3485
+ docId: id,
3486
+ before: prior.record,
3487
+ after: null,
3488
+ userId: this.keyring.userId,
3489
+ timestamp: Date.now(),
3490
+ txId: this.#txIdForHook(),
3491
+ baseVersion: prior.version,
3492
+ version: prior.version + 1
3493
+ };
3494
+ if (hooksActive) await this.writeHooks.runBefore(event);
3495
+ }
3496
+ committed();
3497
+ await this._deleteInternal(id);
3498
+ };
3499
+ if (this.writeQueue) await this.writeQueue.trackGated(gated);
3500
+ else await gated(() => {
3501
+ });
3494
3502
  if (event) {
3495
3503
  if (hooksActive) await this.writeHooks.runAfter(event);
3496
3504
  if (busAfterDelete) await this.subsystemBus.dispatch("afterDelete", event);
@@ -3772,7 +3780,7 @@ var Collection = class {
3772
3780
  */
3773
3781
  async dispatchArrayDerivationsOnDelete(id, eraseRecordShapeToo = false) {
3774
3782
  if (this.derivationSource === void 0) return 0;
3775
- const { dispatchArrayDerivationsOnDelete } = await import("./dispatch-RH4LHKBH.js");
3783
+ const { dispatchArrayDerivationsOnDelete } = await import("./dispatch-JDZNGEB3.js");
3776
3784
  return dispatchArrayDerivationsOnDelete(this.#derivationDeleteCtx(this.derivationSource), id, eraseRecordShapeToo);
3777
3785
  }
3778
3786
  /**
@@ -3786,7 +3794,7 @@ var Collection = class {
3786
3794
  */
3787
3795
  async dispatchMaterializedViewsOnDelete(id) {
3788
3796
  if (this.materializedViewSource === void 0) return { deleted: 0, residueUndecodable: [], residueDeclined: [] };
3789
- const { dispatchMaterializedViewsOnDelete } = await import("./dispatch-3CQDJV5Q.js");
3797
+ const { dispatchMaterializedViewsOnDelete } = await import("./dispatch-H4HV32AM.js");
3790
3798
  return dispatchMaterializedViewsOnDelete(this.#mvDispatchCtx(this.materializedViewSource), id);
3791
3799
  }
3792
3800
  /**
@@ -3806,7 +3814,7 @@ var Collection = class {
3806
3814
  );
3807
3815
  }
3808
3816
  if (this.materializedViewSource !== void 0) {
3809
- const { resolveStaleMVOnRead } = await import("./stale-TJ3DYZMQ.js");
3817
+ const { resolveStaleMVOnRead } = await import("./stale-6GCFMOOR.js");
3810
3818
  await resolveStaleMVOnRead(this.materializedViewSource, this.name, this.#dispatchCtx({ collection: this.name, id: "resolve-on-read" }));
3811
3819
  }
3812
3820
  await this.ensureHydrated();
@@ -4971,14 +4979,14 @@ var Collection = class {
4971
4979
  /** C-A/R10: persist the classified marker once per classified handle (store I/O in config-drift.ts). */
4972
4980
  async _ensureClassifiedMarker() {
4973
4981
  if (this._markerPersisted || this.vdigFields === null) return;
4974
- const { persistClassifiedMarkerForFields } = await import("./classified-marker-W3USLL5M.js");
4982
+ const { persistClassifiedMarkerForFields } = await import("./classified-marker-SIYKUU5L.js");
4975
4983
  await persistClassifiedMarkerForFields(this.adapter, this.vault, this.name, this.vdigFields, await this.getDEK(this.name));
4976
4984
  this._markerPersisted = true;
4977
4985
  }
4978
4986
  /** C-A/R10 drift signal — the marker's declared digest-only set, memoized to one store read per handle (see config-drift.ts). */
4979
4987
  async _classifiedMarkerDigestOnly() {
4980
4988
  if (this._markerDigestOnlyCache !== void 0) return this._markerDigestOnlyCache;
4981
- const { readClassifiedMarkerDigestOnly } = await import("./classified-marker-W3USLL5M.js");
4989
+ const { readClassifiedMarkerDigestOnly } = await import("./classified-marker-SIYKUU5L.js");
4982
4990
  this._markerDigestOnlyCache = await readClassifiedMarkerDigestOnly(this.adapter, this.vault, this.name, await this.getDEK(this.name));
4983
4991
  return this._markerDigestOnlyCache;
4984
4992
  }
@@ -5432,7 +5440,7 @@ var DeferredNumberingStore = class {
5432
5440
  async readJson(collection, id) {
5433
5441
  const env = await this.adapter.get(this.vault, collection, id);
5434
5442
  if (!env) return { env: null, value: null };
5435
- const json = this.encrypted ? await openEnvelopeJson({ collection, id }, env, await this.dek(collection)) : env._data;
5443
+ const json = this.encrypted ? await openEnvelopeJson({ collection, id }, env, await this.dek(collection)) : env._data ?? "";
5436
5444
  return { env, value: JSON.parse(json) };
5437
5445
  }
5438
5446
  async writeJson(collection, id, value, expectedVersion) {
@@ -6064,7 +6072,7 @@ var VaultPeriods = class {
6064
6072
  async readReserved(collection, key) {
6065
6073
  const env = await this.deps.adapter.get(this.deps.vault, collection, key);
6066
6074
  if (!env) return null;
6067
- const json = this.deps.encrypted ? await openEnvelopeJson({ collection, id: key }, env, await this.deps.getDEK(collection)) : env._data;
6075
+ const json = this.deps.encrypted ? await openEnvelopeJson({ collection, id: key }, env, await this.deps.getDEK(collection)) : env._data ?? "";
6068
6076
  return JSON.parse(json);
6069
6077
  }
6070
6078
  async decryptPeriodRecord(periodId, envelope) {
@@ -6073,7 +6081,7 @@ var VaultPeriods = class {
6073
6081
  const dek = await this.deps.getDEK(PERIODS_COLLECTION);
6074
6082
  json = await openEnvelopeJson({ collection: PERIODS_COLLECTION, id: periodId }, envelope, dek);
6075
6083
  } else {
6076
- json = envelope._data;
6084
+ json = envelope._data ?? "";
6077
6085
  }
6078
6086
  return JSON.parse(json);
6079
6087
  }
@@ -6646,7 +6654,7 @@ var VaultLinks = class {
6646
6654
  // src/with-shape/links/lazy-handle.ts
6647
6655
  function makeLazyLinkSetHandle(d) {
6648
6656
  let engine = null;
6649
- const load = () => engine ??= import("./link-set-JCMJ7ULP.js").then(
6657
+ const load = () => engine ??= import("./link-set-MFXC24VK.js").then(
6650
6658
  ({ LinkSet }) => new LinkSet(d.adapter, d.vault, d.name, d.spec, d.encrypted, d.getDEK, d.actor, d.emitter, d.endpointExists)
6651
6659
  );
6652
6660
  return {
@@ -7297,7 +7305,7 @@ function declareSatellite(ctx, collectionName, options, existingRegistry) {
7297
7305
  ctx.forEachSyncEngine((e) => e.remirrorPairResolvers([spec.base, spec.satellite]));
7298
7306
  const registry = reg;
7299
7307
  const baseSchema = ctx.getBaseSchema(spec.base);
7300
- void import("./post-register-SLSXIPBV.js").then((m) => m.postRegister(ctx.adapter, ctx.vaultName, spec, ctx.getDEK, baseSchema, registry)).catch(() => {
7308
+ void import("./post-register-7ND27CF2.js").then((m) => m.postRegister(ctx.adapter, ctx.vaultName, spec, ctx.getDEK, baseSchema, registry)).catch(() => {
7301
7309
  });
7302
7310
  return reg;
7303
7311
  }
@@ -7487,7 +7495,7 @@ function makeSatelliteProxy(target, spec, registry) {
7487
7495
  return filterLiveHits(hits, adapter, vaultName, spec.base);
7488
7496
  },
7489
7497
  // #591 Task 9 review fix: findByDet/queryByDet scan envelopes straight
7490
- // off the adapter (kernel/enclave/record-keys/deterministic.ts) and
7498
+ // off the adapter (capsule/plumbing/deterministic.ts) and
7491
7499
  // return BARE records (no id), so a post-filter can't correlate a match
7492
7500
  // back to its base row. Instead the scan itself is scoped: re-run the
7493
7501
  // same det functions over the collection's own DeterministicContext
@@ -8274,7 +8282,7 @@ var Vault = class {
8274
8282
  const strategies = options.schemaUpdate ?? [];
8275
8283
  const work = (async () => {
8276
8284
  const dek = await this.getDEK(collectionName);
8277
- const { persistSchemaIfNeeded } = await import("./register-F3OYE7MJ.js");
8285
+ const { persistSchemaIfNeeded } = await import("./register-DT5HZ2LZ.js");
8278
8286
  const result = await persistSchemaIfNeeded({
8279
8287
  store: this.adapter,
8280
8288
  vault: this.name,
@@ -8424,7 +8432,7 @@ var Vault = class {
8424
8432
  const work = (async () => {
8425
8433
  try {
8426
8434
  const dek = await this.getDEK(collectionName);
8427
- await (await import("./register-F3OYE7MJ.js")).persistSchemaIfNeeded({
8435
+ await (await import("./register-DT5HZ2LZ.js")).persistSchemaIfNeeded({
8428
8436
  store: this.adapter,
8429
8437
  vault: this.name,
8430
8438
  collectionName,
@@ -8470,7 +8478,7 @@ var Vault = class {
8470
8478
  * writes (unfenced walk — see `with-shape/satellites/migrate-cek.ts`); resumable.
8471
8479
  */
8472
8480
  async migrateSatellitePerRecordKeys(satelliteName) {
8473
- const { migrateSatelliteCek } = await import("./migrate-cek-V7GKJZ7O.js");
8481
+ const { migrateSatelliteCek } = await import("./migrate-cek-DZRFFOHW.js");
8474
8482
  return migrateSatelliteCek(satelliteName, this.collection(satelliteName, { perRecordKeys: true }));
8475
8483
  }
8476
8484
  /**
@@ -8773,7 +8781,7 @@ var Vault = class {
8773
8781
  },
8774
8782
  emitter: this.emitter,
8775
8783
  buildDeleteMarker,
8776
- // #647 fix wave 1 — real kernel/enclave builder; LookupHandle can't import it directly
8784
+ // #647 fix wave 1 — real capsule/enclave-aes builder; LookupHandle can't import it directly
8777
8785
  // #650 Task 4 (#647) — choke-point participation for LOCAL writes: dirty-log tracking + a
8778
8786
  // one-shot graph-dispatch wave (local-write's `graphDispatch.collect`-equivalent; Task 5's ref edges give it dependents).
8779
8787
  onDirty: this.onDirty,
@@ -9105,7 +9113,7 @@ var Vault = class {
9105
9113
  */
9106
9114
  // eslint-disable-next-line @typescript-eslint/consistent-type-imports
9107
9115
  async _loadPodSigner() {
9108
- const { loadSigner } = await import("./signer-MBZZMXTC.js");
9116
+ const { loadSigner } = await import("./signer-MHGW3OIL.js");
9109
9117
  return loadSigner(this.adapter, this.name, this.getDEK);
9110
9118
  }
9111
9119
  async writeExportAudit(entry) {
@@ -9137,7 +9145,7 @@ var Vault = class {
9137
9145
  */
9138
9146
  async _decryptEnvelopeForBundleFilter(env, collectionName, recordId) {
9139
9147
  if (!this.encrypted) {
9140
- return JSON.parse(env._data);
9148
+ return JSON.parse(env._data ?? "");
9141
9149
  }
9142
9150
  const dek = await this.getDEK(collectionName);
9143
9151
  const json = await openEnvelopeJson({ collection: collectionName, id: recordId }, env, dek);
@@ -9595,7 +9603,7 @@ var Vault = class {
9595
9603
  async _initGuards(handles) {
9596
9604
  if (handles.length === 0) return;
9597
9605
  const [{ GuardRegistry }, { ReadOnlyVaultFacade }] = await Promise.all([
9598
- import("./registry-CILQFXFK.js"),
9606
+ import("./registry-BHRZGZHF.js"),
9599
9607
  import("./read-only-facade-BIGO37U3.js")
9600
9608
  ]);
9601
9609
  const registry = new GuardRegistry();
@@ -9623,7 +9631,7 @@ var Vault = class {
9623
9631
  async _initDerivations(handles) {
9624
9632
  if (handles.length === 0) return;
9625
9633
  const [{ DerivationRegistry }, { ReadOnlyVaultFacade }] = await Promise.all([
9626
- import("./registry-YCDZV3VW.js"),
9634
+ import("./registry-ET6ZFFWA.js"),
9627
9635
  import("./read-only-facade-BIGO37U3.js")
9628
9636
  ]);
9629
9637
  const registry = new DerivationRegistry();
@@ -9655,7 +9663,7 @@ var Vault = class {
9655
9663
  */
9656
9664
  async _initMaterializedViews(handles) {
9657
9665
  if (handles.length === 0) return;
9658
- const { MaterializedViewRegistry } = await import("./registry-ZGYS33TE.js");
9666
+ const { MaterializedViewRegistry } = await import("./registry-THCPDEOD.js");
9659
9667
  const registry = new MaterializedViewRegistry();
9660
9668
  this.materializedViewRegistry = registry;
9661
9669
  const db = this;
@@ -9680,7 +9688,7 @@ var Vault = class {
9680
9688
  */
9681
9689
  async _initOverlayedViews(handles) {
9682
9690
  if (handles.length === 0) return;
9683
- const { OverlayedViewRegistry } = await import("./registry-XNNYQVKV.js");
9691
+ const { OverlayedViewRegistry } = await import("./registry-HXFGLGTG.js");
9684
9692
  const registry = new OverlayedViewRegistry();
9685
9693
  const mvRegistry = this.materializedViewRegistry;
9686
9694
  const overlayNames = /* @__PURE__ */ new Set();
@@ -9743,14 +9751,14 @@ var Vault = class {
9743
9751
  if (!reg) {
9744
9752
  throw new Error(`refreshView: no MV registered with name "${name}"`);
9745
9753
  }
9746
- const { MaterializedViewExecutor } = await import("./executor-B6SRO2QS.js");
9754
+ const { MaterializedViewExecutor } = await import("./executor-FMPVN6DT.js");
9747
9755
  const result = await MaterializedViewExecutor.refresh(reg, {
9748
9756
  getCollection: (n) => this.collection(n),
9749
9757
  getActiveTxContext: () => this.noydb._activeTxContextOrNull,
9750
9758
  getQueryContext: () => this,
9751
9759
  dispatchCtx: this._dispatchCtx({ collection: name, id: "refreshView" })
9752
9760
  });
9753
- const { clearMVStaleFully } = await import("./stale-TJ3DYZMQ.js");
9761
+ const { clearMVStaleFully } = await import("./stale-6GCFMOOR.js");
9754
9762
  await clearMVStaleFully(this.adapter, this.name, registry, name);
9755
9763
  return result;
9756
9764
  }
@@ -9763,7 +9771,7 @@ var Vault = class {
9763
9771
  if (registry === null) return { derived: 0, failed: 0, skippedFrozen: 0 };
9764
9772
  const strategies = registry.strategiesForSource(sourceCollection);
9765
9773
  if (strategies.length === 0) return { derived: 0, failed: 0, skippedFrozen: 0 };
9766
- const { DerivationExecutor } = await import("./executor-RBKM5W5K.js");
9774
+ const { DerivationExecutor } = await import("./executor-OSRZST2U.js");
9767
9775
  const sourceColl = this.collection(sourceCollection);
9768
9776
  const records = await sourceColl.list();
9769
9777
  const ctx = { vault: this.derivationFacade ?? new (await import("./read-only-facade-BIGO37U3.js")).ReadOnlyVaultFacade(this, "derivation") };
@@ -9790,7 +9798,7 @@ var Vault = class {
9790
9798
  if (!outSpec) continue;
9791
9799
  const outputColl = this.collection(outSpec.collection);
9792
9800
  if (out.kind === "array") {
9793
- const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-OT6RYLOL.js");
9801
+ const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-L7NHPIOC.js");
9794
9802
  const prior = await loadFanoutSidecar(this.adapter, this.name, spec.source, id, key, this.getDEK, this.encrypted);
9795
9803
  const prevKeys = new Set(prior?.keys ?? []);
9796
9804
  const newKeysList = out.entries.map((e) => e.key);
@@ -10017,7 +10025,7 @@ var Vault = class {
10017
10025
  * collection.
10018
10026
  */
10019
10027
  async delegate(opts) {
10020
- const { issueDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-S3AEPW2T.js");
10028
+ const { issueDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-NANZDG4N.js");
10021
10029
  if (!this.keyring.kek) {
10022
10030
  throw new ValidationError(
10023
10031
  "issueDelegation: keyring.kek is null \u2014 issuing a delegation requires a tier-1 unlock. Re-authenticate at tier 1 (secret) first."
@@ -10039,7 +10047,7 @@ var Vault = class {
10039
10047
  * if the id does not exist.
10040
10048
  */
10041
10049
  async revokeDelegation(id) {
10042
- const { revokeDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-S3AEPW2T.js");
10050
+ const { revokeDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-NANZDG4N.js");
10043
10051
  await revokeDelegation(this.adapter, this.name, id);
10044
10052
  void DELEGATIONS_COLLECTION;
10045
10053
  }
@@ -10296,7 +10304,7 @@ var Vault = class {
10296
10304
  * @see design-history/2026-05-22-schema-dump-design.md
10297
10305
  */
10298
10306
  async dumpSchema(opts = {}) {
10299
- const { dumpVaultSchema } = await import("./walk-HJ42EISE.js");
10307
+ const { dumpVaultSchema } = await import("./walk-4VPK7AS4.js");
10300
10308
  return dumpVaultSchema(this, opts);
10301
10309
  }
10302
10310
  /**
@@ -10392,7 +10400,7 @@ var Vault = class {
10392
10400
  * separate vault instances now.
10393
10401
  */
10394
10402
  async getPodHandle() {
10395
- const { buildPodHandle } = await import("./pod-handle-WGDFB4C2.js");
10403
+ const { buildPodHandle } = await import("./pod-handle-A3LET7NO.js");
10396
10404
  return buildPodHandle(this.adapter, this.name);
10397
10405
  }
10398
10406
  /**
@@ -10424,7 +10432,7 @@ var Vault = class {
10424
10432
  * both modes round-trip cleanly.
10425
10433
  */
10426
10434
  async dump() {
10427
- const { dumpVault } = await import("./backup-7TFRVFLH.js");
10435
+ const { dumpVault } = await import("./backup-YE2VQ26S.js");
10428
10436
  return dumpVault(this.backupContext());
10429
10437
  }
10430
10438
  /**
@@ -10476,7 +10484,7 @@ var Vault = class {
10476
10484
  * — there's no chain to verify against.
10477
10485
  */
10478
10486
  async load(backupJson) {
10479
- const { loadVault } = await import("./backup-7TFRVFLH.js");
10487
+ const { loadVault } = await import("./backup-YE2VQ26S.js");
10480
10488
  return loadVault(this.backupContext(), backupJson);
10481
10489
  }
10482
10490
  /**
@@ -10508,7 +10516,7 @@ var Vault = class {
10508
10516
  * way to detect tampering of an in-place vault.
10509
10517
  */
10510
10518
  async verifyBackupIntegrity() {
10511
- const { verifyBackupIntegrity } = await import("./backup-7TFRVFLH.js");
10519
+ const { verifyBackupIntegrity } = await import("./backup-YE2VQ26S.js");
10512
10520
  return verifyBackupIntegrity(this.backupContext());
10513
10521
  }
10514
10522
  /**
@@ -10738,7 +10746,7 @@ var Vault = class {
10738
10746
  * is the live validator object, not a serialization of it).
10739
10747
  */
10740
10748
  async exportJSON(opts = {}) {
10741
- const { exportVaultJSON } = await import("./backup-7TFRVFLH.js");
10749
+ const { exportVaultJSON } = await import("./backup-YE2VQ26S.js");
10742
10750
  return exportVaultJSON(this.backupContext(), opts);
10743
10751
  }
10744
10752
  };
@@ -10826,6 +10834,36 @@ var WriteQueueTracker = class {
10826
10834
  throw error;
10827
10835
  }
10828
10836
  }
10837
+ /**
10838
+ * Run a write whose PRE-COMMIT phase may legitimately REFUSE — the schema
10839
+ * gates, and a user `beforeWrite` hook that throws to abort. `fn` calls
10840
+ * `committed()` at the point the store write itself begins.
10841
+ *
10842
+ * Before that point a rejection releases the depth it took but records NO
10843
+ * queue error; after it, a rejection settles as a failure like `track`.
10844
+ *
10845
+ * #11 — why the phase is inside `depth` at all: `pending` is the documented
10846
+ * shutdown guard (see the `writeQueue` getter's `beforeunload` example) and
10847
+ * the schema fence does a fresh store read per write, so leaving the gates
10848
+ * outside made `pending` read `false` during a real round-trip on every
10849
+ * write. The refusal carve-out is what the old outside-the-queue placement
10850
+ * was protecting ("a rejected write never counts toward depth") — it is kept
10851
+ * deliberately, so a refused write cannot reject a concurrent `onFlush()`.
10852
+ */
10853
+ async trackGated(fn) {
10854
+ this.begin();
10855
+ let refusable = true;
10856
+ try {
10857
+ const value = await fn(() => {
10858
+ refusable = false;
10859
+ });
10860
+ this.settle();
10861
+ return value;
10862
+ } catch (error) {
10863
+ this.settle(refusable ? void 0 : error);
10864
+ throw error;
10865
+ }
10866
+ }
10829
10867
  #emitChange() {
10830
10868
  for (const handler of this.#changeHandlers) handler();
10831
10869
  }
@@ -12765,7 +12803,7 @@ var Noydb = class {
12765
12803
  if (!facade) return;
12766
12804
  const ctx = { existing, vault: facade, userId: e.userId, role: e.role };
12767
12805
  await registry.runChecks(e.collection, incoming, ctx);
12768
- const { GuardExecutor } = await import("./executor-BI5CHWRY.js");
12806
+ const { GuardExecutor } = await import("./executor-LBBBRTN5.js");
12769
12807
  for (const g of guards) {
12770
12808
  await GuardExecutor.checkFrozenFields(g, e.docId, existing, incoming, e.computedFieldNames);
12771
12809
  }
@@ -14153,7 +14191,7 @@ async function createNoydb(options) {
14153
14191
  if (!options.store) options = { ...options, store: memoryStore() };
14154
14192
  validateSecretModeOptions(options);
14155
14193
  if (!options.mesh) options = { ...options, mesh: await createDefaultMesh(options.store) };
14156
- if (!options.userApiFactory) options = { ...options, userApiFactory: (await import("./api-GVYEKSJE.js")).createUserApi };
14194
+ if (!options.userApiFactory) options = { ...options, userApiFactory: (await import("./api-OS747DS4.js")).createUserApi };
14157
14195
  if (!options.policyFactory) {
14158
14196
  const policyModule = await import("./policy/index.js");
14159
14197
  options = { ...options, policyFactory: policyModule.createNoydbPolicy, policyCheckGateFn: policyModule.checkGate };
@@ -14186,4 +14224,4 @@ export {
14186
14224
  Noydb,
14187
14225
  createNoydb
14188
14226
  };
14189
- //# sourceMappingURL=chunk-T2LBQ5DV.js.map
14227
+ //# sourceMappingURL=chunk-MXOQ5JCG.js.map