@noy-db/hub 0.2.0-pre.19 → 0.2.0-pre.20

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 (272) hide show
  1. package/dist/aggregate/index.cjs.map +1 -1
  2. package/dist/aggregate/index.d.cts +3 -3
  3. package/dist/aggregate/index.d.ts +3 -3
  4. package/dist/aggregate/index.js +5 -5
  5. package/dist/attestation/index.cjs.map +1 -1
  6. package/dist/attestation/index.d.cts +4 -4
  7. package/dist/attestation/index.d.ts +4 -4
  8. package/dist/attestation/index.js +6 -6
  9. package/dist/blobs/index.cjs +252 -2
  10. package/dist/blobs/index.cjs.map +1 -1
  11. package/dist/blobs/index.d.cts +6 -6
  12. package/dist/blobs/index.d.ts +6 -6
  13. package/dist/blobs/index.js +11 -7
  14. package/dist/blobs/index.js.map +1 -1
  15. package/dist/bundle/index.cjs +81 -7
  16. package/dist/bundle/index.cjs.map +1 -1
  17. package/dist/bundle/index.d.cts +6 -6
  18. package/dist/bundle/index.d.ts +6 -6
  19. package/dist/bundle/index.js +10 -10
  20. package/dist/{chunk-U7JNBSS3.js → chunk-2XA2ZML4.js} +3 -3
  21. package/dist/chunk-2XA2ZML4.js.map +1 -0
  22. package/dist/{chunk-OKOKPYWH.js → chunk-37VGJM3T.js} +2 -2
  23. package/dist/{chunk-B6E5IRPJ.js → chunk-3HNKR65T.js} +3 -3
  24. package/dist/{chunk-6KESZO5D.js → chunk-5YTXYPES.js} +5 -5
  25. package/dist/{chunk-7HD67R6U.js → chunk-6QAZ5O6X.js} +2 -2
  26. package/dist/{chunk-XPH3FWME.js → chunk-6QE4DUYC.js} +2 -2
  27. package/dist/{chunk-4ULLGYPA.js → chunk-7MRT7EPB.js} +3 -3
  28. package/dist/{chunk-KYGGXXT6.js → chunk-7PH4OPBZ.js} +119 -58
  29. package/dist/chunk-7PH4OPBZ.js.map +1 -0
  30. package/dist/{chunk-3FSMVWBN.js → chunk-AI4USDRI.js} +4 -4
  31. package/dist/{chunk-GKQAU52M.js → chunk-BZW5IL43.js} +4 -4
  32. package/dist/{chunk-NN6IISZO.js → chunk-C2RJVZZL.js} +2 -2
  33. package/dist/{chunk-VNUE6FHP.js → chunk-C6W5KVDV.js} +3 -3
  34. package/dist/{chunk-KNKNOJFS.js → chunk-CQYEDODS.js} +3 -3
  35. package/dist/{chunk-FPHRTW2Z.js → chunk-EYK72OTL.js} +5 -5
  36. package/dist/{chunk-FBLAWK6A.js → chunk-F5GWNSE2.js} +2 -2
  37. package/dist/{chunk-Y5J63SMF.js → chunk-F5ILTHMU.js} +5 -5
  38. package/dist/{chunk-M3FPNTO2.js → chunk-FRRJIUSI.js} +4 -4
  39. package/dist/chunk-FRRJIUSI.js.map +1 -0
  40. package/dist/{chunk-Q5MCHUXZ.js → chunk-GJTKMME7.js} +2 -2
  41. package/dist/{chunk-S22UOMHM.js → chunk-HYJMAV53.js} +6 -6
  42. package/dist/{chunk-YZE6C3TQ.js → chunk-I3IYTUUI.js} +3 -3
  43. package/dist/{chunk-5IGWRMEC.js → chunk-IVZWHIEK.js} +5 -5
  44. package/dist/{chunk-7C6VFNIY.js → chunk-IW4L4X65.js} +2 -2
  45. package/dist/{chunk-V3VIRTTE.js → chunk-IY24WS2P.js} +3 -3
  46. package/dist/{chunk-IVP5IVON.js → chunk-J6RGRZOY.js} +2 -2
  47. package/dist/{chunk-DY3EOJEN.js → chunk-JBBWALNI.js} +2 -2
  48. package/dist/{chunk-YX333DPS.js → chunk-JDCPRJVS.js} +4 -4
  49. package/dist/{chunk-E66DSTJP.js → chunk-JOK73NDT.js} +3 -3
  50. package/dist/{chunk-G4PYA575.js → chunk-JTI57WRT.js} +2 -2
  51. package/dist/{chunk-OBMYMKGO.js → chunk-JYNH4FIM.js} +4 -4
  52. package/dist/{chunk-GYAWXHFO.js → chunk-KOAJ3TZM.js} +2 -2
  53. package/dist/{chunk-X7FJMKT3.js → chunk-MBXKRHSS.js} +2 -2
  54. package/dist/{chunk-WFK2EVYU.js → chunk-NSXNXLYM.js} +2 -2
  55. package/dist/{chunk-3Q2AOPLT.js → chunk-NV4IHBZS.js} +5 -5
  56. package/dist/{chunk-H42KZXNV.js → chunk-O5XKZCUD.js} +5 -5
  57. package/dist/{chunk-DJF3FXW5.js → chunk-OTWT6BAJ.js} +18 -1
  58. package/dist/chunk-OTWT6BAJ.js.map +1 -0
  59. package/dist/{chunk-6OSOE6BY.js → chunk-S45MDEEF.js} +2 -2
  60. package/dist/{chunk-S3XA7G35.js → chunk-SQKAECUL.js} +2 -2
  61. package/dist/{chunk-YLRRU72W.js → chunk-SQOK5UM6.js} +2 -2
  62. package/dist/{chunk-SHIUFIPW.js → chunk-TA6HPKWQ.js} +1 -1
  63. package/dist/chunk-TA6HPKWQ.js.map +1 -0
  64. package/dist/{chunk-V5FZWQNN.js → chunk-TAMRU7A2.js} +4 -4
  65. package/dist/{chunk-PWFTQHYX.js → chunk-TGIJTNM3.js} +2 -2
  66. package/dist/{chunk-VEIVAYJ7.js → chunk-TNH5SLCD.js} +2 -2
  67. package/dist/{chunk-IBVTH4JR.js → chunk-TYMDCIQM.js} +4 -4
  68. package/dist/{chunk-LSIIPKYT.js → chunk-U2XSUCDF.js} +2 -2
  69. package/dist/{chunk-MI36HL5G.js → chunk-UU6M64HI.js} +4 -4
  70. package/dist/{chunk-KEDJDWWQ.js → chunk-WE2BUQD2.js} +3 -3
  71. package/dist/{chunk-OY7RX2VL.js → chunk-WWVJXBOT.js} +256 -8
  72. package/dist/chunk-WWVJXBOT.js.map +1 -0
  73. package/dist/{chunk-CYNTFU2D.js → chunk-YPIOFSN3.js} +2 -2
  74. package/dist/{chunk-PTGQPWMV.js → chunk-ZONKSLF2.js} +2 -2
  75. package/dist/consent/index.cjs.map +1 -1
  76. package/dist/consent/index.d.cts +5 -5
  77. package/dist/consent/index.d.ts +5 -5
  78. package/dist/consent/index.js +3 -3
  79. package/dist/{crypto-B46VNH6X.js → crypto-456N7UVX.js} +3 -3
  80. package/dist/{delegation-5HON72PV.js → delegation-DP4COTXB.js} +5 -5
  81. package/dist/derivations/index.cjs.map +1 -1
  82. package/dist/derivations/index.d.cts +6 -6
  83. package/dist/derivations/index.d.ts +6 -6
  84. package/dist/derivations/index.js +4 -4
  85. package/dist/{dev-unlock-BR1rMOS-.d.cts → dev-unlock-CY0HIZA0.d.cts} +1 -1
  86. package/dist/{dev-unlock-whL49sxV.d.ts → dev-unlock-CpKSkl2c.d.ts} +1 -1
  87. package/dist/{errors-DL-zTrrF.d.cts → errors-Dkc_fi-S.d.cts} +21 -1
  88. package/dist/{errors-DL-zTrrF.d.ts → errors-Dkc_fi-S.d.ts} +21 -1
  89. package/dist/executor-4IEW4KG5.js +8 -0
  90. package/dist/executor-KYJCJCIN.js +12 -0
  91. package/dist/executor-W7VIBOBZ.js +8 -0
  92. package/dist/{fanout-sidecar-DCQWJQ6S.js → fanout-sidecar-YXNAEZ33.js} +2 -2
  93. package/dist/forget/index.js +4 -4
  94. package/dist/guards/index.cjs.map +1 -1
  95. package/dist/guards/index.d.cts +6 -6
  96. package/dist/guards/index.d.ts +6 -6
  97. package/dist/guards/index.js +3 -3
  98. package/dist/{hash-BEUBmmI4.d.cts → hash-BSd0-_L8.d.cts} +1 -1
  99. package/dist/{hash-Dtb7FwWd.d.ts → hash-BnBQx39y.d.ts} +1 -1
  100. package/dist/history/index.cjs.map +1 -1
  101. package/dist/history/index.d.cts +6 -6
  102. package/dist/history/index.d.ts +6 -6
  103. package/dist/history/index.js +5 -5
  104. package/dist/i18n/index.cjs.map +1 -1
  105. package/dist/i18n/index.d.cts +5 -5
  106. package/dist/i18n/index.d.ts +5 -5
  107. package/dist/i18n/index.js +6 -6
  108. package/dist/{index-BelbyUwz.d.ts → index-Bm9hIY7t.d.ts} +2 -2
  109. package/dist/{index-BM7O48Ur.d.cts → index-tZqVB9g5.d.cts} +2 -2
  110. package/dist/index.cjs +358 -9
  111. package/dist/index.cjs.map +1 -1
  112. package/dist/index.d.cts +42 -16
  113. package/dist/index.d.ts +42 -16
  114. package/dist/index.js +73 -46
  115. package/dist/index.js.map +1 -1
  116. package/dist/indexing/index.cjs.map +1 -1
  117. package/dist/indexing/index.js +4 -4
  118. package/dist/issue-JXC6T2QR.js +12 -0
  119. package/dist/{ledger-LS6GXCBP.js → ledger-I7JUYP4L.js} +5 -5
  120. package/dist/materialized-views/index.cjs.map +1 -1
  121. package/dist/materialized-views/index.d.cts +6 -6
  122. package/dist/materialized-views/index.d.ts +6 -6
  123. package/dist/materialized-views/index.js +8 -8
  124. package/dist/mime-magic-BnJCGJzB.d.cts +103 -0
  125. package/dist/mime-magic-CjSyakO4.d.ts +103 -0
  126. package/dist/noydb-ZZCRF6TE.js +38 -0
  127. package/dist/overlay-views/index.cjs.map +1 -1
  128. package/dist/overlay-views/index.d.cts +6 -6
  129. package/dist/overlay-views/index.d.ts +6 -6
  130. package/dist/overlay-views/index.js +4 -4
  131. package/dist/periods/index.cjs.map +1 -1
  132. package/dist/periods/index.d.cts +5 -5
  133. package/dist/periods/index.d.ts +5 -5
  134. package/dist/periods/index.js +5 -5
  135. package/dist/{public-envelope-AGU6SS4Z.js → public-envelope-5XRTUNKF.js} +4 -4
  136. package/dist/query/index.cjs.map +1 -1
  137. package/dist/query/index.d.cts +3 -3
  138. package/dist/query/index.d.ts +3 -3
  139. package/dist/query/index.js +7 -7
  140. package/dist/registry-ATRHOG5B.js +8 -0
  141. package/dist/registry-LEHB26TY.js +8 -0
  142. package/dist/{registry-RDPTFXQ7.js → registry-NWHOLD5M.js} +3 -3
  143. package/dist/{revoke-IFLXEZA5.js → revoke-5IEK22KT.js} +6 -6
  144. package/dist/sealed-record/index.cjs.map +1 -1
  145. package/dist/sealed-record/index.d.cts +1 -1
  146. package/dist/sealed-record/index.d.ts +1 -1
  147. package/dist/sealed-record/index.js +2 -2
  148. package/dist/session/index.cjs.map +1 -1
  149. package/dist/session/index.d.cts +6 -6
  150. package/dist/session/index.d.ts +6 -6
  151. package/dist/session/index.js +3 -3
  152. package/dist/shadow/index.cjs.map +1 -1
  153. package/dist/shadow/index.d.cts +5 -5
  154. package/dist/shadow/index.d.ts +5 -5
  155. package/dist/shadow/index.js +2 -2
  156. package/dist/{signer-UNWOUJAK.js → signer-I6YARZQA.js} +5 -5
  157. package/dist/snapshots/index.cjs.map +1 -1
  158. package/dist/snapshots/index.d.cts +5 -5
  159. package/dist/snapshots/index.d.ts +5 -5
  160. package/dist/snapshots/index.js +4 -4
  161. package/dist/{stale-NTEV5SLX.js → stale-CPESGAPL.js} +2 -2
  162. package/dist/{state-vault-TUTFRTOA.js → state-vault-JR3CFGNP.js} +4 -4
  163. package/dist/store/index.cjs.map +1 -1
  164. package/dist/store/index.d.cts +5 -5
  165. package/dist/store/index.d.ts +5 -5
  166. package/dist/store/index.js +2 -2
  167. package/dist/{strategy-BDxQnnTX.d.ts → strategy-54eIwox5.d.ts} +1 -1
  168. package/dist/{strategy-C5ol6NdV.d.cts → strategy-WtB-jXYv.d.cts} +1 -1
  169. package/dist/sync/index.cjs.map +1 -1
  170. package/dist/sync/index.d.cts +4 -4
  171. package/dist/sync/index.d.ts +4 -4
  172. package/dist/sync/index.js +4 -4
  173. package/dist/team/index.cjs.map +1 -1
  174. package/dist/team/index.d.cts +5 -5
  175. package/dist/team/index.d.ts +5 -5
  176. package/dist/team/index.js +8 -8
  177. package/dist/{transition-guard-C__YeF3_.d.ts → transition-guard-D4bfIAiW.d.ts} +1 -1
  178. package/dist/{transition-guard-B1N82hMf.d.cts → transition-guard-Dmpqzg-_.d.cts} +1 -1
  179. package/dist/tx/index.cjs.map +1 -1
  180. package/dist/tx/index.d.cts +5 -5
  181. package/dist/tx/index.d.ts +5 -5
  182. package/dist/tx/index.js +3 -3
  183. package/dist/{types-CraiZOyO.d.ts → types-DLfWFr6U.d.ts} +374 -139
  184. package/dist/{types-D-gr5t0G.d.cts → types-DyOI6XZ_.d.cts} +374 -139
  185. package/dist/{ulid-FFRRHkVf.d.ts → ulid-B2L_aqVA.d.ts} +1 -1
  186. package/dist/{ulid-DQnSAP5W.d.cts → ulid-LaxfH2tK.d.cts} +1 -1
  187. package/dist/util/index.cjs.map +1 -1
  188. package/dist/util/index.js +1 -1
  189. package/dist/{vault-group-27EV7KB4.js → vault-group-BB246VIM.js} +7 -7
  190. package/dist/{with-materialized-view-BboqxyV3.d.cts → with-materialized-view-CeZYGJVf.d.cts} +1 -1
  191. package/dist/{with-materialized-view-CguCeVcT.d.ts → with-materialized-view-DNULSxoP.d.ts} +1 -1
  192. package/dist/{with-overlayed-view-DO08u_tx.d.ts → with-overlayed-view-C9joG7UZ.d.ts} +1 -1
  193. package/dist/{with-overlayed-view-mmsg5Of3.d.cts → with-overlayed-view-kdcPGHih.d.cts} +1 -1
  194. package/dist/{with-rollup-_TyBzz3T.d.ts → with-rollup-DJDbrxjf.d.ts} +1 -1
  195. package/dist/{with-rollup-aaxOZcIb.d.cts → with-rollup-s58XAeWO.d.cts} +1 -1
  196. package/package.json +3 -3
  197. package/dist/chunk-DJF3FXW5.js.map +0 -1
  198. package/dist/chunk-KYGGXXT6.js.map +0 -1
  199. package/dist/chunk-M3FPNTO2.js.map +0 -1
  200. package/dist/chunk-OY7RX2VL.js.map +0 -1
  201. package/dist/chunk-SHIUFIPW.js.map +0 -1
  202. package/dist/chunk-U7JNBSS3.js.map +0 -1
  203. package/dist/executor-44R5CUS2.js +0 -12
  204. package/dist/executor-AOACUK7Z.js +0 -8
  205. package/dist/executor-OKFLQCDW.js +0 -8
  206. package/dist/issue-EPA2PSWP.js +0 -12
  207. package/dist/mime-magic-CBBSOkjm.d.cts +0 -50
  208. package/dist/mime-magic-CBBSOkjm.d.ts +0 -50
  209. package/dist/noydb-BVKFP74P.js +0 -38
  210. package/dist/registry-ERNAMRDE.js +0 -8
  211. package/dist/registry-EXTHSXQW.js +0 -8
  212. /package/dist/{chunk-OKOKPYWH.js.map → chunk-37VGJM3T.js.map} +0 -0
  213. /package/dist/{chunk-B6E5IRPJ.js.map → chunk-3HNKR65T.js.map} +0 -0
  214. /package/dist/{chunk-6KESZO5D.js.map → chunk-5YTXYPES.js.map} +0 -0
  215. /package/dist/{chunk-7HD67R6U.js.map → chunk-6QAZ5O6X.js.map} +0 -0
  216. /package/dist/{chunk-XPH3FWME.js.map → chunk-6QE4DUYC.js.map} +0 -0
  217. /package/dist/{chunk-4ULLGYPA.js.map → chunk-7MRT7EPB.js.map} +0 -0
  218. /package/dist/{chunk-3FSMVWBN.js.map → chunk-AI4USDRI.js.map} +0 -0
  219. /package/dist/{chunk-GKQAU52M.js.map → chunk-BZW5IL43.js.map} +0 -0
  220. /package/dist/{chunk-NN6IISZO.js.map → chunk-C2RJVZZL.js.map} +0 -0
  221. /package/dist/{chunk-VNUE6FHP.js.map → chunk-C6W5KVDV.js.map} +0 -0
  222. /package/dist/{chunk-KNKNOJFS.js.map → chunk-CQYEDODS.js.map} +0 -0
  223. /package/dist/{chunk-FPHRTW2Z.js.map → chunk-EYK72OTL.js.map} +0 -0
  224. /package/dist/{chunk-FBLAWK6A.js.map → chunk-F5GWNSE2.js.map} +0 -0
  225. /package/dist/{chunk-Y5J63SMF.js.map → chunk-F5ILTHMU.js.map} +0 -0
  226. /package/dist/{chunk-Q5MCHUXZ.js.map → chunk-GJTKMME7.js.map} +0 -0
  227. /package/dist/{chunk-S22UOMHM.js.map → chunk-HYJMAV53.js.map} +0 -0
  228. /package/dist/{chunk-YZE6C3TQ.js.map → chunk-I3IYTUUI.js.map} +0 -0
  229. /package/dist/{chunk-5IGWRMEC.js.map → chunk-IVZWHIEK.js.map} +0 -0
  230. /package/dist/{chunk-7C6VFNIY.js.map → chunk-IW4L4X65.js.map} +0 -0
  231. /package/dist/{chunk-V3VIRTTE.js.map → chunk-IY24WS2P.js.map} +0 -0
  232. /package/dist/{chunk-IVP5IVON.js.map → chunk-J6RGRZOY.js.map} +0 -0
  233. /package/dist/{chunk-DY3EOJEN.js.map → chunk-JBBWALNI.js.map} +0 -0
  234. /package/dist/{chunk-YX333DPS.js.map → chunk-JDCPRJVS.js.map} +0 -0
  235. /package/dist/{chunk-E66DSTJP.js.map → chunk-JOK73NDT.js.map} +0 -0
  236. /package/dist/{chunk-G4PYA575.js.map → chunk-JTI57WRT.js.map} +0 -0
  237. /package/dist/{chunk-OBMYMKGO.js.map → chunk-JYNH4FIM.js.map} +0 -0
  238. /package/dist/{chunk-GYAWXHFO.js.map → chunk-KOAJ3TZM.js.map} +0 -0
  239. /package/dist/{chunk-X7FJMKT3.js.map → chunk-MBXKRHSS.js.map} +0 -0
  240. /package/dist/{chunk-WFK2EVYU.js.map → chunk-NSXNXLYM.js.map} +0 -0
  241. /package/dist/{chunk-3Q2AOPLT.js.map → chunk-NV4IHBZS.js.map} +0 -0
  242. /package/dist/{chunk-H42KZXNV.js.map → chunk-O5XKZCUD.js.map} +0 -0
  243. /package/dist/{chunk-6OSOE6BY.js.map → chunk-S45MDEEF.js.map} +0 -0
  244. /package/dist/{chunk-S3XA7G35.js.map → chunk-SQKAECUL.js.map} +0 -0
  245. /package/dist/{chunk-YLRRU72W.js.map → chunk-SQOK5UM6.js.map} +0 -0
  246. /package/dist/{chunk-V5FZWQNN.js.map → chunk-TAMRU7A2.js.map} +0 -0
  247. /package/dist/{chunk-PWFTQHYX.js.map → chunk-TGIJTNM3.js.map} +0 -0
  248. /package/dist/{chunk-VEIVAYJ7.js.map → chunk-TNH5SLCD.js.map} +0 -0
  249. /package/dist/{chunk-IBVTH4JR.js.map → chunk-TYMDCIQM.js.map} +0 -0
  250. /package/dist/{chunk-LSIIPKYT.js.map → chunk-U2XSUCDF.js.map} +0 -0
  251. /package/dist/{chunk-MI36HL5G.js.map → chunk-UU6M64HI.js.map} +0 -0
  252. /package/dist/{chunk-KEDJDWWQ.js.map → chunk-WE2BUQD2.js.map} +0 -0
  253. /package/dist/{chunk-CYNTFU2D.js.map → chunk-YPIOFSN3.js.map} +0 -0
  254. /package/dist/{chunk-PTGQPWMV.js.map → chunk-ZONKSLF2.js.map} +0 -0
  255. /package/dist/{crypto-B46VNH6X.js.map → crypto-456N7UVX.js.map} +0 -0
  256. /package/dist/{delegation-5HON72PV.js.map → delegation-DP4COTXB.js.map} +0 -0
  257. /package/dist/{executor-44R5CUS2.js.map → executor-4IEW4KG5.js.map} +0 -0
  258. /package/dist/{executor-AOACUK7Z.js.map → executor-KYJCJCIN.js.map} +0 -0
  259. /package/dist/{executor-OKFLQCDW.js.map → executor-W7VIBOBZ.js.map} +0 -0
  260. /package/dist/{fanout-sidecar-DCQWJQ6S.js.map → fanout-sidecar-YXNAEZ33.js.map} +0 -0
  261. /package/dist/{issue-EPA2PSWP.js.map → issue-JXC6T2QR.js.map} +0 -0
  262. /package/dist/{ledger-LS6GXCBP.js.map → ledger-I7JUYP4L.js.map} +0 -0
  263. /package/dist/{noydb-BVKFP74P.js.map → noydb-ZZCRF6TE.js.map} +0 -0
  264. /package/dist/{public-envelope-AGU6SS4Z.js.map → public-envelope-5XRTUNKF.js.map} +0 -0
  265. /package/dist/{registry-ERNAMRDE.js.map → registry-ATRHOG5B.js.map} +0 -0
  266. /package/dist/{registry-EXTHSXQW.js.map → registry-LEHB26TY.js.map} +0 -0
  267. /package/dist/{registry-RDPTFXQ7.js.map → registry-NWHOLD5M.js.map} +0 -0
  268. /package/dist/{revoke-IFLXEZA5.js.map → revoke-5IEK22KT.js.map} +0 -0
  269. /package/dist/{signer-UNWOUJAK.js.map → signer-I6YARZQA.js.map} +0 -0
  270. /package/dist/{stale-NTEV5SLX.js.map → stale-CPESGAPL.js.map} +0 -0
  271. /package/dist/{state-vault-TUTFRTOA.js.map → state-vault-JR3CFGNP.js.map} +0 -0
  272. /package/dist/{vault-group-27EV7KB4.js.map → vault-group-BB246VIM.js.map} +0 -0
@@ -7,10 +7,10 @@ import {
7
7
  import {
8
8
  TxContext,
9
9
  revertExecuted
10
- } from "./chunk-V3VIRTTE.js";
10
+ } from "./chunk-IY24WS2P.js";
11
11
  import {
12
12
  OverlayedCollection
13
- } from "./chunk-X7FJMKT3.js";
13
+ } from "./chunk-MBXKRHSS.js";
14
14
  import {
15
15
  NO_AGGREGATE,
16
16
  Query,
@@ -20,36 +20,36 @@ import {
20
20
  decodeMoneyFields,
21
21
  quantizeMoneyFields,
22
22
  validateMoneyFieldPaths
23
- } from "./chunk-3Q2AOPLT.js";
23
+ } from "./chunk-NV4IHBZS.js";
24
24
  import {
25
25
  EXPORT_AUDIT_COLLECTION,
26
26
  createExportBlobsHandle,
27
27
  runCompaction
28
- } from "./chunk-U7JNBSS3.js";
28
+ } from "./chunk-2XA2ZML4.js";
29
29
  import {
30
30
  LazyQuery,
31
31
  decodeIdxId,
32
32
  encodeIdxId
33
- } from "./chunk-B6E5IRPJ.js";
33
+ } from "./chunk-3HNKR65T.js";
34
34
  import {
35
35
  canonicalGroupKey
36
- } from "./chunk-OBMYMKGO.js";
36
+ } from "./chunk-JYNH4FIM.js";
37
37
  import {
38
38
  readPath
39
- } from "./chunk-LSIIPKYT.js";
39
+ } from "./chunk-U2XSUCDF.js";
40
40
  import {
41
41
  SCHEMAS_COLLECTION,
42
42
  loadPersistedSchema,
43
43
  resolveManagedSecret,
44
44
  savePersistedSchema,
45
45
  saveSealedPassphrase
46
- } from "./chunk-VNUE6FHP.js";
46
+ } from "./chunk-C6W5KVDV.js";
47
47
  import {
48
48
  loadPublicEnvelope,
49
49
  readPublicEnvelope,
50
50
  savePublicEnvelope,
51
51
  validatePublicEnvelopeInput
52
- } from "./chunk-E66DSTJP.js";
52
+ } from "./chunk-JOK73NDT.js";
53
53
  import {
54
54
  buildTombstone,
55
55
  isTombstone,
@@ -58,19 +58,19 @@ import {
58
58
  rewrapBodyToDek,
59
59
  rotateRecordCek,
60
60
  sealRecordToHost
61
- } from "./chunk-GKQAU52M.js";
61
+ } from "./chunk-BZW5IL43.js";
62
62
  import {
63
63
  PERIODS_COLLECTION
64
- } from "./chunk-YZE6C3TQ.js";
64
+ } from "./chunk-I3IYTUUI.js";
65
65
  import {
66
66
  isDictCollectionName,
67
67
  isStaticDictDescriptor
68
- } from "./chunk-H42KZXNV.js";
68
+ } from "./chunk-O5XKZCUD.js";
69
69
  import {
70
70
  getAtPath,
71
71
  resolvePolicy,
72
72
  setAtPathInPlace
73
- } from "./chunk-VEIVAYJ7.js";
73
+ } from "./chunk-TNH5SLCD.js";
74
74
  import {
75
75
  ManagedRecoveryNotEnrolledError,
76
76
  PolicyDeniedError,
@@ -92,11 +92,11 @@ import {
92
92
  saveShamirRecoveryEntries,
93
93
  updateAuthenticator,
94
94
  writeMagicLinkGrant
95
- } from "./chunk-S22UOMHM.js";
95
+ } from "./chunk-HYJMAV53.js";
96
96
  import {
97
97
  assertTierAccess,
98
98
  dekKey
99
- } from "./chunk-FBLAWK6A.js";
99
+ } from "./chunk-F5GWNSE2.js";
100
100
  import {
101
101
  USER_ENVELOPE_COLLECTION,
102
102
  assertKeyringOpenAllowed,
@@ -121,7 +121,7 @@ import {
121
121
  rotateKeys,
122
122
  saveUserEnvelope,
123
123
  updateKeyringIdentity
124
- } from "./chunk-M3FPNTO2.js";
124
+ } from "./chunk-FRRJIUSI.js";
125
125
  import {
126
126
  INDEXED_STORE_POLICY
127
127
  } from "./chunk-2QR2PQTT.js";
@@ -131,7 +131,7 @@ import {
131
131
  import {
132
132
  LEDGER_COLLECTION,
133
133
  LEDGER_DELTAS_COLLECTION
134
- } from "./chunk-YX333DPS.js";
134
+ } from "./chunk-JDCPRJVS.js";
135
135
  import {
136
136
  sha256Hex as sha256Hex2
137
137
  } from "./chunk-PDVP3C2I.js";
@@ -143,11 +143,11 @@ import {
143
143
  readDottedPath,
144
144
  rebuildSubjectIndex,
145
145
  removeSubjectRef
146
- } from "./chunk-KNKNOJFS.js";
146
+ } from "./chunk-CQYEDODS.js";
147
147
  import {
148
148
  NOYDB_BACKUP_VERSION,
149
149
  NOYDB_FORMAT_VERSION
150
- } from "./chunk-SHIUFIPW.js";
150
+ } from "./chunk-TA6HPKWQ.js";
151
151
  import {
152
152
  decrypt,
153
153
  encrypt,
@@ -155,13 +155,15 @@ import {
155
155
  sha256Hex,
156
156
  unwrapCek,
157
157
  wrapCek
158
- } from "./chunk-OKOKPYWH.js";
158
+ } from "./chunk-37VGJM3T.js";
159
159
  import {
160
160
  AlreadyElevatedError,
161
161
  AttestationError,
162
162
  BackupCorruptedError,
163
163
  BackupLedgerError,
164
164
  ConflictError,
165
+ DebugPlaintextError,
166
+ DebugReservedFieldError,
165
167
  DerivationCapExceededError,
166
168
  ElevationExpiredError,
167
169
  ExportCapabilityError,
@@ -194,7 +196,7 @@ import {
194
196
  UnsupportedIndexOptionError,
195
197
  ValidationError,
196
198
  VaultTemplateNotFoundError
197
- } from "./chunk-DJF3FXW5.js";
199
+ } from "./chunk-OTWT6BAJ.js";
198
200
 
199
201
  // src/policy/storage.ts
200
202
  var META_COLLECTION = "_meta";
@@ -908,7 +910,7 @@ async function resolveStaleOnRead(accessor, outputCollection, id) {
908
910
  }
909
911
  const sourceWithId = { ...source, id };
910
912
  if (DerivationExecutor === null) {
911
- ({ DerivationExecutor } = await import("./executor-OKFLQCDW.js"));
913
+ ({ DerivationExecutor } = await import("./executor-4IEW4KG5.js"));
912
914
  }
913
915
  const ctx = { vault: accessor.getReadOnlyFacade() };
914
916
  const result = await DerivationExecutor.run(spec, sourceWithId, 0, strategyHash, ctx);
@@ -990,6 +992,8 @@ var Collection = class {
990
992
  * reaches the bundle.
991
993
  */
992
994
  blobStrategy;
995
+ objectStore;
996
+ blobFields;
993
997
  aggregateStrategy;
994
998
  crdtStrategy;
995
999
  historyStrategy;
@@ -1267,6 +1271,8 @@ var Collection = class {
1267
1271
  this.subsystemBus = opts.subsystemBus;
1268
1272
  this.activeTxId = opts.activeTxId;
1269
1273
  this.blobStrategy = opts.blobStrategy ?? NO_BLOBS;
1274
+ this.objectStore = opts.objectStore;
1275
+ this.blobFields = opts.blobFields;
1270
1276
  this.aggregateStrategy = opts.aggregateStrategy ?? NO_AGGREGATE;
1271
1277
  this.crdtStrategy = opts.crdtStrategy ?? NO_CRDT;
1272
1278
  this.historyStrategy = opts.historyStrategy ?? NO_HISTORY;
@@ -1453,7 +1459,7 @@ var Collection = class {
1453
1459
  }
1454
1460
  }
1455
1461
  if (this.materializedViewSource !== void 0) {
1456
- const { resolveStaleMVOnRead } = await import("./stale-NTEV5SLX.js");
1462
+ const { resolveStaleMVOnRead } = await import("./stale-CPESGAPL.js");
1457
1463
  await resolveStaleMVOnRead(this.materializedViewSource, this.name);
1458
1464
  }
1459
1465
  let record;
@@ -1863,7 +1869,7 @@ var Collection = class {
1863
1869
  if (mode === "eager") {
1864
1870
  if (executor === null) {
1865
1871
  ;
1866
- ({ MaterializedViewExecutor: executor } = await import("./executor-44R5CUS2.js"));
1872
+ ({ MaterializedViewExecutor: executor } = await import("./executor-KYJCJCIN.js"));
1867
1873
  }
1868
1874
  await executor.refresh(reg, {
1869
1875
  getCollection: (name) => this.materializedViewSource.getCollection(name),
@@ -1872,7 +1878,7 @@ var Collection = class {
1872
1878
  });
1873
1879
  } else if (mode === "lazy") {
1874
1880
  if (staleHelpers === null) {
1875
- staleHelpers = await import("./stale-NTEV5SLX.js");
1881
+ staleHelpers = await import("./stale-CPESGAPL.js");
1876
1882
  }
1877
1883
  staleHelpers.markMVStale(registry, reg.spec.name);
1878
1884
  }
@@ -2046,7 +2052,7 @@ var Collection = class {
2046
2052
  continue;
2047
2053
  }
2048
2054
  if (DerivationExecutor === null) {
2049
- ({ DerivationExecutor } = await import("./executor-OKFLQCDW.js"));
2055
+ ({ DerivationExecutor } = await import("./executor-4IEW4KG5.js"));
2050
2056
  }
2051
2057
  for (const run of runs) {
2052
2058
  const ctx = { vault: this.derivationSource.getReadOnlyFacade() };
@@ -2065,7 +2071,7 @@ var Collection = class {
2065
2071
  const outputCollection = this.derivationSource.getCollection(outSpec.collection);
2066
2072
  const txCtx = this.derivationSource.getActiveTxContext();
2067
2073
  if (out.kind === "array") {
2068
- const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-DCQWJQ6S.js");
2074
+ const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-YXNAEZ33.js");
2069
2075
  const prior = await loadFanoutSidecar(
2070
2076
  this.adapter,
2071
2077
  this.vault,
@@ -2428,7 +2434,7 @@ var Collection = class {
2428
2434
  for (const [outputKey, outSpec] of Object.entries(spec.outputs)) {
2429
2435
  if (outSpec.shape !== "array") continue;
2430
2436
  if (helpers === null) {
2431
- helpers = await import("./fanout-sidecar-DCQWJQ6S.js");
2437
+ helpers = await import("./fanout-sidecar-YXNAEZ33.js");
2432
2438
  }
2433
2439
  const sidecar = await helpers.loadFanoutSidecar(
2434
2440
  this.adapter,
@@ -2468,7 +2474,7 @@ var Collection = class {
2468
2474
  if (mode === "eager") {
2469
2475
  if (executor === null) {
2470
2476
  ;
2471
- ({ MaterializedViewExecutor: executor } = await import("./executor-44R5CUS2.js"));
2477
+ ({ MaterializedViewExecutor: executor } = await import("./executor-KYJCJCIN.js"));
2472
2478
  }
2473
2479
  await executor.refresh(reg, {
2474
2480
  getCollection: (name) => this.materializedViewSource.getCollection(name),
@@ -2477,7 +2483,7 @@ var Collection = class {
2477
2483
  });
2478
2484
  } else if (mode === "lazy") {
2479
2485
  if (staleHelpers === null) {
2480
- staleHelpers = await import("./stale-NTEV5SLX.js");
2486
+ staleHelpers = await import("./stale-CPESGAPL.js");
2481
2487
  }
2482
2488
  staleHelpers.markMVStale(registry, reg.spec.name);
2483
2489
  }
@@ -2500,7 +2506,7 @@ var Collection = class {
2500
2506
  );
2501
2507
  }
2502
2508
  if (this.materializedViewSource !== void 0) {
2503
- const { resolveStaleMVOnRead } = await import("./stale-NTEV5SLX.js");
2509
+ const { resolveStaleMVOnRead } = await import("./stale-CPESGAPL.js");
2504
2510
  await resolveStaleMVOnRead(this.materializedViewSource, this.name);
2505
2511
  }
2506
2512
  await this.ensureHydrated();
@@ -3407,7 +3413,10 @@ var Collection = class {
3407
3413
  getDEK: this.getDEK,
3408
3414
  encrypted: this.encrypted,
3409
3415
  userId: this.keyring.userId,
3410
- erasableBlobs: this.perRecordCek
3416
+ erasableBlobs: this.perRecordCek,
3417
+ debugPlaintext: this.keyring.debugPlaintext === true,
3418
+ ...this.objectStore !== void 0 ? { objectStore: this.objectStore } : {},
3419
+ ...this.blobFields !== void 0 ? { blobFields: this.blobFields } : {}
3411
3420
  });
3412
3421
  }
3413
3422
  /** Get all records as encrypted envelopes (for dump). */
@@ -3793,6 +3802,30 @@ var Collection = class {
3793
3802
  * path encrypts the body directly under the collection DEK — byte-identical
3794
3803
  * to pre-CEK behaviour, so non-adopting collections pay nothing.
3795
3804
  */
3805
+ /**
3806
+ * Build a debug-plaintext envelope: the record's own fields inlined as
3807
+ * top-level keys beside the reserved `_`-metadata, with `_debug: 1` and an
3808
+ * empty `_data`. Lets native store tooling read the record without
3809
+ * unwrapping. Only reached for user collections under `debugPlaintext`
3810
+ * (see {@link encryptRecord}). Rejects `_`-prefixed record fields, which
3811
+ * would collide with the reserved metadata namespace.
3812
+ */
3813
+ buildDebugEnvelope(record, version) {
3814
+ const rec = record;
3815
+ for (const key of Object.keys(rec)) {
3816
+ if (key.startsWith("_")) throw new DebugReservedFieldError(this.name, key);
3817
+ }
3818
+ return {
3819
+ _noydb: NOYDB_FORMAT_VERSION,
3820
+ _v: version,
3821
+ _ts: (/* @__PURE__ */ new Date()).toISOString(),
3822
+ _iv: "",
3823
+ _data: "",
3824
+ _by: this.keyring.userId,
3825
+ _debug: NOYDB_FORMAT_VERSION,
3826
+ ...rec
3827
+ };
3828
+ }
3796
3829
  async encryptJsonString(json, version, cek) {
3797
3830
  const by = this.keyring.userId;
3798
3831
  if (!this.encrypted) {
@@ -3830,6 +3863,9 @@ var Collection = class {
3830
3863
  };
3831
3864
  }
3832
3865
  async encryptRecord(record, version, cek) {
3866
+ if (!this.encrypted && this.keyring.debugPlaintext === true && !this.name.startsWith("_")) {
3867
+ return this.buildDebugEnvelope(record, version);
3868
+ }
3833
3869
  const base = await this.encryptJsonString(JSON.stringify(record), version, cek);
3834
3870
  if (!this.deterministicFields || !this.encrypted) return base;
3835
3871
  const dek = await this.getDEK(this.name);
@@ -4170,7 +4206,16 @@ var Collection = class {
4170
4206
  */
4171
4207
  async decryptJsonString(envelope, id) {
4172
4208
  if (isTombstone(envelope, this.encrypted)) return null;
4173
- if (!this.encrypted) return envelope._data;
4209
+ if (!this.encrypted) {
4210
+ if (envelope._debug !== void 0) {
4211
+ const rec = {};
4212
+ for (const [key, value] of Object.entries(envelope)) {
4213
+ if (!key.startsWith("_")) rec[key] = value;
4214
+ }
4215
+ return JSON.stringify(rec);
4216
+ }
4217
+ return envelope._data;
4218
+ }
4174
4219
  const dek = await this.getDEK(this.name);
4175
4220
  if (envelope._cek !== void 0) {
4176
4221
  const cached = id !== void 0 ? this.cekCache?.get(id) : void 0;
@@ -5907,6 +5952,7 @@ var Vault = class {
5907
5952
  * call throws with a pointer at `@noy-db/hub/blobs`.
5908
5953
  */
5909
5954
  blobStrategy;
5955
+ objectStore;
5910
5956
  /** Cold-storage archival strategy (the archive target store). */
5911
5957
  archiveStrategy;
5912
5958
  /** Per-collection record archival policies. Indexed by collection name. */
@@ -6152,6 +6198,7 @@ var Vault = class {
6152
6198
  this.onRegisterConflictResolver = opts.onRegisterConflictResolver;
6153
6199
  this.syncAdapter = opts.syncAdapter;
6154
6200
  this.blobStrategy = opts.blobStrategy;
6201
+ this.objectStore = opts.objectStore;
6155
6202
  this.archiveStrategy = opts.archiveStrategy;
6156
6203
  this.indexStrategy = opts.indexStrategy;
6157
6204
  this.aggregateStrategy = opts.aggregateStrategy;
@@ -6335,6 +6382,8 @@ var Vault = class {
6335
6382
  // collection. `undefined` is intentionally preserved so the
6336
6383
  // Collection constructor uses its NO_BLOBS default.
6337
6384
  ...this.blobStrategy !== void 0 ? { blobStrategy: this.blobStrategy } : {},
6385
+ ...this.objectStore !== void 0 ? { objectStore: this.objectStore } : {},
6386
+ ...options?.blobFields !== void 0 ? { blobFields: options.blobFields } : {},
6338
6387
  ...this.indexStrategy !== void 0 ? { indexStrategy: this.indexStrategy } : {},
6339
6388
  ...this.aggregateStrategy !== void 0 ? { aggregateStrategy: this.aggregateStrategy } : {},
6340
6389
  ...this.crdtStrategy !== void 0 ? { crdtStrategy: this.crdtStrategy } : {},
@@ -7085,12 +7134,12 @@ var Vault = class {
7085
7134
  if (!fieldSchema) {
7086
7135
  throw new AttestationError(`issueAttestation: collection '${collectionName}' has no attestation field-schema. Declare it via vault.collection('${collectionName}', { attestation: { fields: [...] } }).`);
7087
7136
  }
7088
- const { issueAttestationCore } = await import("./issue-EPA2PSWP.js");
7137
+ const { issueAttestationCore } = await import("./issue-JXC6T2QR.js");
7089
7138
  const out = await issueAttestationCore(this.makeIssueContext(), { collection: collectionName, id, fieldSchema });
7090
7139
  return { docId: out.docId, qr: out.qr, keyId: out.keyId, publicKeyB64: out.publicKeyB64 };
7091
7140
  }
7092
7141
  async getDocumentSigningPublicKey() {
7093
- const { loadSigner, loadOrCreateSigner } = await import("./signer-UNWOUJAK.js");
7142
+ const { loadSigner, loadOrCreateSigner } = await import("./signer-I6YARZQA.js");
7094
7143
  const existing = await loadSigner(this.adapter, this.name, this.getDEK);
7095
7144
  if (existing) return { keyId: existing.keyId, publicKeyB64: existing.publicKeyB64 };
7096
7145
  if (this.keyring.role !== "owner") {
@@ -7116,19 +7165,19 @@ var Vault = class {
7116
7165
  };
7117
7166
  }
7118
7167
  async revokeAttestation(docId) {
7119
- const { revokeDocCore } = await import("./revoke-IFLXEZA5.js");
7168
+ const { revokeDocCore } = await import("./revoke-5IEK22KT.js");
7120
7169
  await revokeDocCore(this.makeRevokeContext(), docId);
7121
7170
  }
7122
7171
  async unrevokeAttestation(docId) {
7123
- const { unrevokeDocCore } = await import("./revoke-IFLXEZA5.js");
7172
+ const { unrevokeDocCore } = await import("./revoke-5IEK22KT.js");
7124
7173
  await unrevokeDocCore(this.makeRevokeContext(), docId);
7125
7174
  }
7126
7175
  async getRevokedDocIds() {
7127
- const { getRevokedDocIdsCore } = await import("./revoke-IFLXEZA5.js");
7176
+ const { getRevokedDocIdsCore } = await import("./revoke-5IEK22KT.js");
7128
7177
  return getRevokedDocIdsCore(this.makeRevokeContext());
7129
7178
  }
7130
7179
  async publishRevocationList() {
7131
- const { publishRevocationListCore } = await import("./revoke-IFLXEZA5.js");
7180
+ const { publishRevocationListCore } = await import("./revoke-5IEK22KT.js");
7132
7181
  return publishRevocationListCore(this.makeRevokeContext());
7133
7182
  }
7134
7183
  makeRevokeContext() {
@@ -7787,7 +7836,7 @@ var Vault = class {
7787
7836
  async _initDerivations(handles) {
7788
7837
  if (handles.length === 0) return;
7789
7838
  const [{ DerivationRegistry }, { ReadOnlyVaultFacade }] = await Promise.all([
7790
- import("./registry-ERNAMRDE.js"),
7839
+ import("./registry-ATRHOG5B.js"),
7791
7840
  import("./read-only-facade-EX6WZZBP.js")
7792
7841
  ]);
7793
7842
  const registry = new DerivationRegistry();
@@ -7818,7 +7867,7 @@ var Vault = class {
7818
7867
  */
7819
7868
  async _initMaterializedViews(handles) {
7820
7869
  if (handles.length === 0) return;
7821
- const { MaterializedViewRegistry } = await import("./registry-RDPTFXQ7.js");
7870
+ const { MaterializedViewRegistry } = await import("./registry-NWHOLD5M.js");
7822
7871
  const registry = new MaterializedViewRegistry();
7823
7872
  this.materializedViewRegistry = registry;
7824
7873
  const db = this;
@@ -7842,7 +7891,7 @@ var Vault = class {
7842
7891
  */
7843
7892
  async _initOverlayedViews(handles) {
7844
7893
  if (handles.length === 0) return;
7845
- const { OverlayedViewRegistry } = await import("./registry-EXTHSXQW.js");
7894
+ const { OverlayedViewRegistry } = await import("./registry-LEHB26TY.js");
7846
7895
  const registry = new OverlayedViewRegistry();
7847
7896
  const mvRegistry = this.materializedViewRegistry;
7848
7897
  const overlayNames = /* @__PURE__ */ new Set();
@@ -7889,13 +7938,13 @@ var Vault = class {
7889
7938
  if (!reg) {
7890
7939
  throw new Error(`refreshView: no MV registered with name "${name}"`);
7891
7940
  }
7892
- const { MaterializedViewExecutor } = await import("./executor-44R5CUS2.js");
7941
+ const { MaterializedViewExecutor } = await import("./executor-KYJCJCIN.js");
7893
7942
  const result = await MaterializedViewExecutor.refresh(reg, {
7894
7943
  getCollection: (n) => this.collection(n),
7895
7944
  getActiveTxContext: () => this.noydb._activeTxContextOrNull,
7896
7945
  getQueryContext: () => this
7897
7946
  });
7898
- const { clearMVStale } = await import("./stale-NTEV5SLX.js");
7947
+ const { clearMVStale } = await import("./stale-CPESGAPL.js");
7899
7948
  clearMVStale(registry, name);
7900
7949
  return result;
7901
7950
  }
@@ -7911,7 +7960,7 @@ var Vault = class {
7911
7960
  if (registry === null) return { derived: 0, failed: 0 };
7912
7961
  const strategies = registry.strategiesForSource(sourceCollection);
7913
7962
  if (strategies.length === 0) return { derived: 0, failed: 0 };
7914
- const { DerivationExecutor } = await import("./executor-OKFLQCDW.js");
7963
+ const { DerivationExecutor } = await import("./executor-4IEW4KG5.js");
7915
7964
  const sourceColl = this.collection(sourceCollection);
7916
7965
  const records = await sourceColl.list();
7917
7966
  const ctx = { vault: this.derivationFacade ?? new (await import("./read-only-facade-EX6WZZBP.js")).ReadOnlyVaultFacade(this, "derivation") };
@@ -7936,7 +7985,7 @@ var Vault = class {
7936
7985
  if (!outSpec) continue;
7937
7986
  const outputColl = this.collection(outSpec.collection);
7938
7987
  if (out.kind === "array") {
7939
- const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-DCQWJQ6S.js");
7988
+ const { loadFanoutSidecar, saveFanoutSidecar } = await import("./fanout-sidecar-YXNAEZ33.js");
7940
7989
  const prior = await loadFanoutSidecar(this.adapter, this.name, spec.source, id, key);
7941
7990
  const prevKeys = new Set(prior?.keys ?? []);
7942
7991
  const newKeysList = out.entries.map((e) => e.key);
@@ -8158,7 +8207,7 @@ var Vault = class {
8158
8207
  * collection.
8159
8208
  */
8160
8209
  async delegate(opts) {
8161
- const { issueDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-5HON72PV.js");
8210
+ const { issueDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-DP4COTXB.js");
8162
8211
  if (!this.keyring.kek) {
8163
8212
  throw new ValidationError(
8164
8213
  "issueDelegation: keyring.kek is null \u2014 issuing a delegation requires a tier-1 unlock. Re-authenticate at tier 1 (passphrase) first."
@@ -8180,7 +8229,7 @@ var Vault = class {
8180
8229
  * if the id does not exist.
8181
8230
  */
8182
8231
  async revokeDelegation(id) {
8183
- const { revokeDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-5HON72PV.js");
8232
+ const { revokeDelegation, DELEGATIONS_COLLECTION } = await import("./delegation-DP4COTXB.js");
8184
8233
  await revokeDelegation(this.adapter, this.name, id);
8185
8234
  void DELEGATIONS_COLLECTION;
8186
8235
  }
@@ -8649,7 +8698,7 @@ var Vault = class {
8649
8698
  * @see docs/subsystems/public-envelope.md
8650
8699
  */
8651
8700
  async getPublicEnvelope(opts = {}) {
8652
- const { readPublicEnvelope: readPublicEnvelope2 } = await import("./public-envelope-AGU6SS4Z.js");
8701
+ const { readPublicEnvelope: readPublicEnvelope2 } = await import("./public-envelope-5XRTUNKF.js");
8653
8702
  return readPublicEnvelope2(this.adapter, this.name, opts);
8654
8703
  }
8655
8704
  /**
@@ -10141,7 +10190,7 @@ var ROLE_RANK = {
10141
10190
  admin: 4,
10142
10191
  owner: 5
10143
10192
  };
10144
- function createPlaintextKeyring(userId) {
10193
+ function createPlaintextKeyring(userId, debugPlaintext = false) {
10145
10194
  return {
10146
10195
  userId,
10147
10196
  displayName: userId,
@@ -10150,7 +10199,8 @@ function createPlaintextKeyring(userId) {
10150
10199
  deks: /* @__PURE__ */ new Map(),
10151
10200
  kek: null,
10152
10201
  salt: new Uint8Array(0),
10153
- authenticators: []
10202
+ authenticators: [],
10203
+ ...debugPlaintext ? { debugPlaintext } : {}
10154
10204
  };
10155
10205
  }
10156
10206
  var Noydb = class {
@@ -10227,6 +10277,14 @@ var Noydb = class {
10227
10277
  _translatorAuditLog = [];
10228
10278
  constructor(options) {
10229
10279
  this.options = options;
10280
+ if (options.debugPlaintext === true && options.encrypt !== false) {
10281
+ throw new DebugPlaintextError();
10282
+ }
10283
+ if (options.debugPlaintext === true) {
10284
+ console.warn(
10285
+ "[noydb] debugPlaintext is ON \u2014 records are stored UNENCRYPTED and laid out for native store inspection. NEVER use this for production or client data."
10286
+ );
10287
+ }
10230
10288
  this.txStrategy = options.txStrategy ?? NO_TX;
10231
10289
  this.forgetStrategy = options.forgetStrategy ?? NO_FORGET;
10232
10290
  this.sessionStrategy = options.sessionStrategy ?? NO_SESSION;
@@ -10321,7 +10379,7 @@ var Noydb = class {
10321
10379
  if (!facade) return;
10322
10380
  const ctx = { existing, vault: facade, userId: e.userId, role: e.role };
10323
10381
  await registry.runChecks(e.collection, incoming, ctx);
10324
- const { GuardExecutor } = await import("./executor-AOACUK7Z.js");
10382
+ const { GuardExecutor } = await import("./executor-W7VIBOBZ.js");
10325
10383
  for (const g of guards) {
10326
10384
  await GuardExecutor.checkFrozenFields(g, e.docId, existing, incoming, e.computedFieldNames);
10327
10385
  }
@@ -10502,6 +10560,7 @@ var Noydb = class {
10502
10560
  syncAdapter: targets.length > 0 ? targets[0].store : void 0,
10503
10561
  historyConfig: this.options.history,
10504
10562
  ...this.options.blobStrategy !== void 0 ? { blobStrategy: this.options.blobStrategy } : {},
10563
+ ...this.options.objectStore !== void 0 ? { objectStore: this.options.objectStore } : {},
10505
10564
  ...this.options.archiveStrategy !== void 0 ? { archiveStrategy: this.options.archiveStrategy } : {},
10506
10565
  ...this.options.indexStrategy !== void 0 ? { indexStrategy: this.options.indexStrategy } : {},
10507
10566
  ...this.options.aggregateStrategy !== void 0 ? { aggregateStrategy: this.options.aggregateStrategy } : {},
@@ -10548,7 +10607,7 @@ var Noydb = class {
10548
10607
  const cached = this.vaultCache.get(name);
10549
10608
  if (cached) return cached;
10550
10609
  if (this.options.encrypt === false) {
10551
- const keyring2 = createPlaintextKeyring(this.options.user);
10610
+ const keyring2 = createPlaintextKeyring(this.options.user, this.options.debugPlaintext === true);
10552
10611
  const comp2 = new Vault({
10553
10612
  adapter: this.options.store,
10554
10613
  name,
@@ -10558,6 +10617,7 @@ var Noydb = class {
10558
10617
  emitter: this.emitter,
10559
10618
  historyConfig: this.options.history,
10560
10619
  ...this.options.blobStrategy !== void 0 ? { blobStrategy: this.options.blobStrategy } : {},
10620
+ ...this.options.objectStore !== void 0 ? { objectStore: this.options.objectStore } : {},
10561
10621
  ...this.options.archiveStrategy !== void 0 ? { archiveStrategy: this.options.archiveStrategy } : {},
10562
10622
  ...this.options.indexStrategy !== void 0 ? { indexStrategy: this.options.indexStrategy } : {},
10563
10623
  ...this.options.aggregateStrategy !== void 0 ? { aggregateStrategy: this.options.aggregateStrategy } : {},
@@ -10589,6 +10649,7 @@ var Noydb = class {
10589
10649
  encrypted: true,
10590
10650
  historyConfig: this.options.history,
10591
10651
  ...this.options.blobStrategy !== void 0 ? { blobStrategy: this.options.blobStrategy } : {},
10652
+ ...this.options.objectStore !== void 0 ? { objectStore: this.options.objectStore } : {},
10592
10653
  ...this.options.archiveStrategy !== void 0 ? { archiveStrategy: this.options.archiveStrategy } : {},
10593
10654
  ...this.options.indexStrategy !== void 0 ? { indexStrategy: this.options.indexStrategy } : {},
10594
10655
  ...this.options.aggregateStrategy !== void 0 ? { aggregateStrategy: this.options.aggregateStrategy } : {},
@@ -10922,8 +10983,8 @@ var Noydb = class {
10922
10983
  if (name === STATE_VAULT_NAME) throw new ReservedVaultNameError(name);
10923
10984
  const template = this.vaultTemplates.get(opts.sharding.vaultTemplate);
10924
10985
  if (!template) throw new VaultTemplateNotFoundError(opts.sharding.vaultTemplate);
10925
- const { VaultGroup } = await import("./vault-group-27EV7KB4.js");
10926
- const { StateManagementVault } = await import("./state-vault-TUTFRTOA.js");
10986
+ const { VaultGroup } = await import("./vault-group-BB246VIM.js");
10987
+ const { StateManagementVault } = await import("./state-vault-JR3CFGNP.js");
10927
10988
  const stateVault = opts.registry ? void 0 : await StateManagementVault.open(this);
10928
10989
  const registry = opts.registry ?? stateVault.registry;
10929
10990
  const group = new VaultGroup(this, name, registry, opts.sharding, template, opts.migrateOnOpen ?? false);
@@ -10950,7 +11011,7 @@ var Noydb = class {
10950
11011
  */
10951
11012
  async openStateManagementVault() {
10952
11013
  if (this.closed) throw new ValidationError("Instance is closed");
10953
- const { StateManagementVault } = await import("./state-vault-TUTFRTOA.js");
11014
+ const { StateManagementVault } = await import("./state-vault-JR3CFGNP.js");
10954
11015
  return StateManagementVault.open(this);
10955
11016
  }
10956
11017
  /**
@@ -12289,7 +12350,7 @@ var Noydb = class {
12289
12350
  */
12290
12351
  async getKeyringInternal(vault, opts = { create: true }) {
12291
12352
  if (this.options.encrypt === false) {
12292
- return createPlaintextKeyring(this.options.user);
12353
+ return createPlaintextKeyring(this.options.user, this.options.debugPlaintext === true);
12293
12354
  }
12294
12355
  const cached = this.keyringCache.get(vault);
12295
12356
  if (cached) return cached;
@@ -12508,4 +12569,4 @@ export {
12508
12569
  Noydb,
12509
12570
  createNoydb
12510
12571
  };
12511
- //# sourceMappingURL=chunk-KYGGXXT6.js.map
12572
+ //# sourceMappingURL=chunk-7PH4OPBZ.js.map