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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (385) hide show
  1. package/dist/api-6IBOZN6F.js +20 -0
  2. package/dist/attestation/index.js +19 -19
  3. package/dist/{backup-AWHG6ODK.js → backup-FNAYQMLF.js} +15 -14
  4. package/dist/backup-FNAYQMLF.js.map +1 -0
  5. package/dist/blobs/index.js +13 -13
  6. package/dist/broker/index.js +12 -12
  7. package/dist/cargo/index.js +30 -30
  8. package/dist/{chunk-DG27IUVI.js → chunk-42IDLU5V.js} +2 -2
  9. package/dist/{chunk-35EBKWQU.js → chunk-4444HN72.js} +4 -4
  10. package/dist/{chunk-N35NC4JH.js → chunk-466KGOQB.js} +2 -2
  11. package/dist/{chunk-ZJADGNYF.js → chunk-4AOERLTV.js} +1 -1
  12. package/dist/chunk-4AOERLTV.js.map +1 -0
  13. package/dist/{chunk-SPA5WX3T.js → chunk-4LNFXGNW.js} +64 -70
  14. package/dist/chunk-4LNFXGNW.js.map +1 -0
  15. package/dist/{chunk-6OC6YASM.js → chunk-4NI5PR5S.js} +2 -2
  16. package/dist/{chunk-OUST5WDV.js → chunk-4YUIVHII.js} +5 -5
  17. package/dist/{chunk-6HFM7EIT.js → chunk-5NKSNW25.js} +2 -2
  18. package/dist/{chunk-FDX7OWWI.js → chunk-5SK5AFYH.js} +2 -2
  19. package/dist/{chunk-DMQCLZ4Z.js → chunk-6U7M7AX6.js} +2 -2
  20. package/dist/{chunk-NSRITINN.js → chunk-6ZFTVY3O.js} +1 -1
  21. package/dist/chunk-6ZFTVY3O.js.map +1 -0
  22. package/dist/{chunk-FNSMZQS4.js → chunk-7EIPPOEL.js} +2 -2
  23. package/dist/{chunk-OXCU7G5I.js → chunk-7J6YERYT.js} +10 -10
  24. package/dist/{chunk-P2PLXMHO.js → chunk-7VIIEXQ2.js} +15 -12
  25. package/dist/chunk-7VIIEXQ2.js.map +1 -0
  26. package/dist/{chunk-AZQVFXJF.js → chunk-A4JJUWSV.js} +3 -3
  27. package/dist/{chunk-BGQ63MCT.js → chunk-AFSMT3WI.js} +3 -3
  28. package/dist/{chunk-3FSX6LDG.js → chunk-AMKCY454.js} +2 -2
  29. package/dist/{chunk-K6TQEDVJ.js → chunk-BVYRPAB2.js} +7 -7
  30. package/dist/{chunk-7F4DBNSP.js → chunk-C66T4W5P.js} +3 -3
  31. package/dist/{chunk-UFM3WVIF.js → chunk-C6MI5OCF.js} +6 -6
  32. package/dist/{chunk-PK3URBVU.js → chunk-CAJ7QAPC.js} +3 -3
  33. package/dist/{chunk-P2Y2F6EB.js → chunk-CK6Z5DJQ.js} +4 -4
  34. package/dist/{chunk-G4VQSGXL.js → chunk-CK7IRIRY.js} +5 -5
  35. package/dist/{chunk-44JENXEG.js → chunk-CNA3QRLM.js} +2 -2
  36. package/dist/chunk-CNA3QRLM.js.map +1 -0
  37. package/dist/{chunk-UAHHWR4P.js → chunk-CWX6YIX5.js} +7 -7
  38. package/dist/{chunk-5XFTL73S.js → chunk-D763JZRO.js} +3 -3
  39. package/dist/{chunk-ZSKB5BDK.js → chunk-DZWRTWN2.js} +82 -82
  40. package/dist/{chunk-ZSKB5BDK.js.map → chunk-DZWRTWN2.js.map} +1 -1
  41. package/dist/{chunk-CCZJJ4I2.js → chunk-ESABIXMQ.js} +4 -4
  42. package/dist/{chunk-5GMMIDJX.js → chunk-FMZV43QY.js} +4 -4
  43. package/dist/{chunk-HXGUIPQB.js → chunk-FSZPQCDR.js} +3 -3
  44. package/dist/{chunk-SYFEJFIO.js → chunk-GBTLOHJM.js} +9 -6
  45. package/dist/chunk-GBTLOHJM.js.map +1 -0
  46. package/dist/{chunk-Z7SMBVNM.js → chunk-GE2AGI67.js} +3 -3
  47. package/dist/{chunk-7VPWXVKU.js → chunk-GJX6DOGD.js} +5 -5
  48. package/dist/{chunk-VBCDVWRU.js → chunk-GLS7OSZT.js} +7 -7
  49. package/dist/{chunk-W3TVWF6N.js → chunk-H545OIWE.js} +2 -2
  50. package/dist/{chunk-VA3PPYTQ.js → chunk-HJAFOPTN.js} +6 -6
  51. package/dist/{chunk-Z45YRGFO.js → chunk-HNOBRU24.js} +2 -2
  52. package/dist/{chunk-OI7ZJUYT.js → chunk-HVPQ5QIZ.js} +8 -8
  53. package/dist/{chunk-AR2JDFAE.js → chunk-HVR74IBG.js} +2 -2
  54. package/dist/{chunk-HNGSV2YC.js → chunk-I64WQSN3.js} +7 -9
  55. package/dist/chunk-I64WQSN3.js.map +1 -0
  56. package/dist/{chunk-2APC6HS6.js → chunk-IMYGJ5HU.js} +2 -2
  57. package/dist/{chunk-25FGCLYS.js → chunk-IYYGLI2K.js} +6 -6
  58. package/dist/{chunk-E2TN45ZD.js → chunk-JBMSNYOS.js} +5 -5
  59. package/dist/{chunk-55LKVALY.js → chunk-JN64WH3U.js} +1 -3
  60. package/dist/chunk-JN64WH3U.js.map +1 -0
  61. package/dist/{chunk-RXYYFSBB.js → chunk-JU3JKOY5.js} +3 -3
  62. package/dist/{chunk-CEJWMBXO.js → chunk-K2MR7ROB.js} +2 -2
  63. package/dist/{chunk-PGWXE5CR.js → chunk-KCLNKE4W.js} +6 -6
  64. package/dist/{chunk-LRNODVQX.js → chunk-KPD6HNQD.js} +12 -12
  65. package/dist/chunk-KPD6HNQD.js.map +1 -0
  66. package/dist/{chunk-K525AZ5C.js → chunk-KTCQKXHW.js} +3 -3
  67. package/dist/{chunk-7HF4J7Z5.js → chunk-LBQIKMBH.js} +2 -2
  68. package/dist/{chunk-EBEKSNKS.js → chunk-LWOSNMHE.js} +11 -11
  69. package/dist/chunk-LWOSNMHE.js.map +1 -0
  70. package/dist/{chunk-4HDYQL3J.js → chunk-MVG67SMN.js} +2 -2
  71. package/dist/{chunk-7MT56F4U.js → chunk-N6OJLR2M.js} +3 -3
  72. package/dist/{chunk-DIICZPWS.js → chunk-P2UFDX2F.js} +5 -5
  73. package/dist/{chunk-HVQGCKY4.js → chunk-PCXAUC65.js} +2 -2
  74. package/dist/{chunk-MSWYQLMQ.js → chunk-PJ5TGJ7U.js} +2 -2
  75. package/dist/{chunk-CCZ5DEJ7.js → chunk-QEYXKICE.js} +2 -2
  76. package/dist/{chunk-H4YQSDOI.js → chunk-QI2KXQOM.js} +2 -2
  77. package/dist/{chunk-UANGJ2YB.js → chunk-QJYTGH5V.js} +11 -10
  78. package/dist/{chunk-UANGJ2YB.js.map → chunk-QJYTGH5V.js.map} +1 -1
  79. package/dist/{chunk-FAXZQ5UF.js → chunk-QLMUW7OC.js} +2 -2
  80. package/dist/{chunk-XXVIHJZY.js → chunk-QQP5KJMS.js} +4 -4
  81. package/dist/{chunk-VCETL77O.js → chunk-QTDAPDDV.js} +14 -6
  82. package/dist/chunk-QTDAPDDV.js.map +1 -0
  83. package/dist/{chunk-RTAMLDWP.js → chunk-QWNYUTI2.js} +2 -2
  84. package/dist/{chunk-NT432TE6.js → chunk-R7E7X4CQ.js} +3 -3
  85. package/dist/{chunk-747LRSOO.js → chunk-RBTZLXZJ.js} +2 -2
  86. package/dist/{chunk-OF3L2SD6.js → chunk-RDPZMUCX.js} +2 -2
  87. package/dist/{chunk-JIUVJ4M7.js → chunk-RJTGXZT6.js} +2 -2
  88. package/dist/{chunk-XJIGOFN6.js → chunk-ROFEKKMI.js} +4 -4
  89. package/dist/{chunk-UHXCLPGC.js → chunk-RVTOCAHQ.js} +2 -2
  90. package/dist/{chunk-WLYIROCJ.js → chunk-RWPNRCK2.js} +2 -2
  91. package/dist/{chunk-HNHCQ556.js → chunk-S6CP5FWF.js} +2 -2
  92. package/dist/{chunk-YY3PEDBR.js → chunk-S77LTWCZ.js} +7 -7
  93. package/dist/{chunk-JRCYZEHU.js → chunk-SGEI3IJK.js} +2 -2
  94. package/dist/{chunk-7G6VDWXB.js → chunk-SZZEDEIU.js} +3 -3
  95. package/dist/{chunk-4UVDI4XE.js → chunk-T7AEAFEE.js} +4 -4
  96. package/dist/{chunk-B2P7M2D2.js → chunk-THYGVKZB.js} +7 -11
  97. package/dist/chunk-THYGVKZB.js.map +1 -0
  98. package/dist/{chunk-FUHKW252.js → chunk-TQ7IRULX.js} +2 -2
  99. package/dist/{chunk-VJFMXYKP.js → chunk-TQLYMYOK.js} +2 -2
  100. package/dist/{chunk-QS2PUZC7.js → chunk-UTQLKPBS.js} +6 -6
  101. package/dist/{chunk-T227WEHE.js → chunk-V2BEYLNR.js} +6 -6
  102. package/dist/{chunk-HPLWFNG4.js → chunk-V4M4BZNW.js} +2 -2
  103. package/dist/{chunk-KUDZVJKQ.js → chunk-VTTRWLOR.js} +2 -2
  104. package/dist/{chunk-L2UHRVB4.js → chunk-VVMSDWRG.js} +5 -5
  105. package/dist/{chunk-SV4BNALS.js → chunk-WLZKVY33.js} +6 -6
  106. package/dist/{chunk-TJCRCCPT.js → chunk-XHX3NTRP.js} +4 -4
  107. package/dist/{chunk-7BEHYALK.js → chunk-Y7MJSOZ7.js} +7 -7
  108. package/dist/{chunk-7BEHYALK.js.map → chunk-Y7MJSOZ7.js.map} +1 -1
  109. package/dist/{chunk-YAWK6AWF.js → chunk-YDJXGYYA.js} +2 -2
  110. package/dist/{chunk-VMCCGUQB.js → chunk-YGJZLOSR.js} +2 -2
  111. package/dist/{chunk-7TSYBD3E.js → chunk-YH65A6WM.js} +2 -2
  112. package/dist/{chunk-Y3H4WOP3.js → chunk-YKEJ5P3H.js} +5 -5
  113. package/dist/{chunk-GV2EFYNV.js → chunk-YODIXNV4.js} +4 -4
  114. package/dist/{chunk-AHLJSVRL.js → chunk-YVOW35HH.js} +2 -2
  115. package/dist/{chunk-DEFCPAXD.js → chunk-YZ7BRD26.js} +2 -2
  116. package/dist/{chunk-NJDQ4YSV.js → chunk-Z3U2YVNM.js} +4 -4
  117. package/dist/{chunk-RSHNUOSJ.js → chunk-ZHDMT2MJ.js} +6 -6
  118. package/dist/{chunk-4X5Z5SRV.js → chunk-ZWPUYBNK.js} +35 -8
  119. package/dist/chunk-ZWPUYBNK.js.map +1 -0
  120. package/dist/classified/index.js +5 -5
  121. package/dist/{classified-marker-EHRSGBM7.js → classified-marker-3STDEUFT.js} +3 -3
  122. package/dist/collection-facade-SGTS3TRS.js +45 -0
  123. package/dist/{computed-6G5M3UPH.js → computed-5E2OM6EN.js} +3 -3
  124. package/dist/consent/index.js +10 -10
  125. package/dist/cover/index.js +3 -3
  126. package/dist/custody/index.js +11 -11
  127. package/dist/{dead-filter-ANPRM2LD.js → dead-filter-ZNWVGV5U.js} +2 -2
  128. package/dist/debug/index.js +1 -1
  129. package/dist/{delegation-6NUQCURX.js → delegation-LZWFOST7.js} +14 -12
  130. package/dist/delegation-LZWFOST7.js.map +1 -0
  131. package/dist/derivations/index.js +12 -12
  132. package/dist/derive-BWXA2L7D.js +22 -0
  133. package/dist/directory/index.js +10 -10
  134. package/dist/{dispatch-EO2QHEXK.js → dispatch-S34AUC43.js} +18 -18
  135. package/dist/{dispatch-UGU775MV.js → dispatch-TIYW3UDN.js} +5 -5
  136. package/dist/{enclave-3Z7VTJAW.js → enclave-Y6GMYQMS.js} +11 -9
  137. package/dist/executor-JDMH2IGK.js +29 -0
  138. package/dist/executor-PCZN2LTY.js +9 -0
  139. package/dist/executor-WFTHIDT7.js +9 -0
  140. package/dist/export-accessible-U6GXZZMQ.js +23 -0
  141. package/dist/extract-partition-IDI6NDUR.js +38 -0
  142. package/dist/{fanout-sidecar-3Q6BWNSS.js → fanout-sidecar-BVFOEJTP.js} +9 -9
  143. package/dist/find-VBNMB42N.js +11 -0
  144. package/dist/forget/index.js +9 -9
  145. package/dist/guards/index.js +4 -4
  146. package/dist/history/index.js +12 -12
  147. package/dist/i18n/index.js +14 -14
  148. package/dist/index.d.ts +12 -12
  149. package/dist/index.js +104 -118
  150. package/dist/index.js.map +1 -1
  151. package/dist/indexing/index.js +2 -2
  152. package/dist/introspection/index.js +11 -11
  153. package/dist/issue-TEGTAN7N.js +19 -0
  154. package/dist/kernel/enclave/crypto.d.ts +24 -4
  155. package/dist/kernel/enclave/index.d.ts +2 -0
  156. package/dist/kernel/enclave/record-aad.d.ts +59 -0
  157. package/dist/kernel/errors.d.ts +6 -10
  158. package/dist/kernel/sync-policy.d.ts +0 -2
  159. package/dist/kernel/types.d.ts +3 -6
  160. package/dist/kernel/vault.d.ts +4 -4
  161. package/dist/{ledger-ZO5OKKGR.js → ledger-NFLBQASD.js} +11 -11
  162. package/dist/liberate-SG2PPGAJ.js +24 -0
  163. package/dist/{link-set-ZZYDZPL4.js → link-set-IPS57KDM.js} +11 -11
  164. package/dist/{managed-secret-6FITSKDO.js → managed-secret-GFYGPLNI.js} +3 -3
  165. package/dist/materialized-views/index.js +20 -20
  166. package/dist/money/index.js +4 -4
  167. package/dist/noydb-TN2VIJJO.js +83 -0
  168. package/dist/overlay-views/index.js +4 -4
  169. package/dist/periods/index.js +12 -12
  170. package/dist/pod/index.js +72 -84
  171. package/dist/{bundle-handle-G4R37BQV.js → pod-handle-I4ZME246.js} +6 -6
  172. package/dist/pod-handle-I4ZME246.js.map +1 -0
  173. package/dist/policy/index.js +4 -4
  174. package/dist/port/to/index.d.ts +2 -2
  175. package/dist/port/with/service-bus.d.ts +0 -4
  176. package/dist/portability/index.js +8 -8
  177. package/dist/{post-register-577X4FAU.js → post-register-JUSV3X4E.js} +6 -6
  178. package/dist/query/index.js +3 -3
  179. package/dist/reduce/index.js +4 -4
  180. package/dist/register-UTMPUAQW.js +32 -0
  181. package/dist/registry-B2S4UNUI.js +19 -0
  182. package/dist/registry-E4FM32KD.js +9 -0
  183. package/dist/registry-HACMULJJ.js +9 -0
  184. package/dist/registry-NDLBGQLJ.js +18 -0
  185. package/dist/request-withdrawal-Q5G43PR7.js +31 -0
  186. package/dist/{reveal-PCQYK4NO.js → reveal-YJU7GUYJ.js} +6 -6
  187. package/dist/revoke-NXOUPYS3.js +24 -0
  188. package/dist/satellites/index.js +1 -1
  189. package/dist/schema-update/index.js +2 -2
  190. package/dist/sealed-record/index.js +12 -12
  191. package/dist/search/index.js +4 -4
  192. package/dist/{seed-BVO6SSKH.js → seed-XXLR4KXU.js} +11 -11
  193. package/dist/sequence/index.js +9 -9
  194. package/dist/session/index.js +10 -10
  195. package/dist/shadow/index.js +2 -2
  196. package/dist/share-link/index.js +1 -1
  197. package/dist/signer-FCGAUB6E.js +25 -0
  198. package/dist/snapshots/index.js +10 -10
  199. package/dist/snapshots/index.js.map +1 -1
  200. package/dist/{stale-3FW6U4OU.js → stale-OT5NMBXU.js} +10 -10
  201. package/dist/storage-EWWIFB43.js +23 -0
  202. package/dist/{store-coordination-provider-3QGSXG3P.js → store-coordination-provider-PPLVM2I2.js} +3 -3
  203. package/dist/sync/index.js +11 -11
  204. package/dist/team/index.js +14 -14
  205. package/dist/tiers/index.js +10 -10
  206. package/dist/to/index.js +1 -3
  207. package/dist/to/index.js.map +1 -1
  208. package/dist/transactions/index.js +4 -4
  209. package/dist/{ulid-PTAIMDG4.js → ulid-VQW6ERQN.js} +2 -2
  210. package/dist/util/index.js +1 -1
  211. package/dist/{verify-RO5RTZOJ.js → verify-SHJXGZGM.js} +5 -5
  212. package/dist/walk-4NIT2ZBH.js +21 -0
  213. package/dist/with-cargo/adopt-partition.d.ts +1 -1
  214. package/dist/with-cargo/extract-partition.d.ts +1 -1
  215. package/dist/with-cargo/index.d.ts +1 -1
  216. package/dist/with-party/team/index.d.ts +1 -1
  217. package/dist/with-party/team/keyring.d.ts +2 -2
  218. package/dist/with-pod/format.d.ts +10 -12
  219. package/dist/with-pod/index.d.ts +10 -10
  220. package/dist/with-pod/open.d.ts +2 -2
  221. package/dist/with-pod/{bundle-handle.d.ts → pod-handle.d.ts} +2 -2
  222. package/dist/with-pod/pod-store.d.ts +0 -8
  223. package/dist/with-pod/{bundle.d.ts → pod.d.ts} +11 -19
  224. package/dist/with-pod/ulid.d.ts +1 -1
  225. package/dist/withdraw-accessible-LJG66PZQ.js +28 -0
  226. package/package.json +3 -3
  227. package/dist/api-XDMGLURJ.js +0 -20
  228. package/dist/backup-AWHG6ODK.js.map +0 -1
  229. package/dist/bundle-handle-G4R37BQV.js.map +0 -1
  230. package/dist/chunk-44JENXEG.js.map +0 -1
  231. package/dist/chunk-4X5Z5SRV.js.map +0 -1
  232. package/dist/chunk-55LKVALY.js.map +0 -1
  233. package/dist/chunk-B2P7M2D2.js.map +0 -1
  234. package/dist/chunk-EBEKSNKS.js.map +0 -1
  235. package/dist/chunk-HNGSV2YC.js.map +0 -1
  236. package/dist/chunk-LRNODVQX.js.map +0 -1
  237. package/dist/chunk-NSRITINN.js.map +0 -1
  238. package/dist/chunk-P2PLXMHO.js.map +0 -1
  239. package/dist/chunk-SPA5WX3T.js.map +0 -1
  240. package/dist/chunk-SYFEJFIO.js.map +0 -1
  241. package/dist/chunk-VCETL77O.js.map +0 -1
  242. package/dist/chunk-ZJADGNYF.js.map +0 -1
  243. package/dist/collection-facade-5UJW6QRB.js +0 -45
  244. package/dist/delegation-6NUQCURX.js.map +0 -1
  245. package/dist/derive-5PFJNNNU.js +0 -22
  246. package/dist/executor-AB4BCJO4.js +0 -29
  247. package/dist/executor-CYJQLKKI.js +0 -9
  248. package/dist/executor-S4QIKEHW.js +0 -9
  249. package/dist/export-accessible-JXCJGHCF.js +0 -23
  250. package/dist/extract-partition-2WDL4FJ5.js +0 -38
  251. package/dist/find-RBBYKXI7.js +0 -11
  252. package/dist/issue-EABYJWX5.js +0 -19
  253. package/dist/liberate-S3JR4TQT.js +0 -24
  254. package/dist/noydb-SPEVD5JA.js +0 -83
  255. package/dist/register-OXUXXIWT.js +0 -32
  256. package/dist/registry-CZVINVQH.js +0 -9
  257. package/dist/registry-IKUR2MXD.js +0 -9
  258. package/dist/registry-L3CO5ZAY.js +0 -18
  259. package/dist/registry-QFIVGS2W.js +0 -19
  260. package/dist/request-withdrawal-UV42CNR5.js +0 -31
  261. package/dist/revoke-26DFO36Z.js +0 -24
  262. package/dist/signer-DDO7QEID.js +0 -25
  263. package/dist/storage-M7L2EK3F.js +0 -23
  264. package/dist/walk-OFXQN5US.js +0 -21
  265. package/dist/withdraw-accessible-7XKYVTMP.js +0 -28
  266. /package/dist/{api-XDMGLURJ.js.map → api-6IBOZN6F.js.map} +0 -0
  267. /package/dist/{chunk-DG27IUVI.js.map → chunk-42IDLU5V.js.map} +0 -0
  268. /package/dist/{chunk-35EBKWQU.js.map → chunk-4444HN72.js.map} +0 -0
  269. /package/dist/{chunk-N35NC4JH.js.map → chunk-466KGOQB.js.map} +0 -0
  270. /package/dist/{chunk-6OC6YASM.js.map → chunk-4NI5PR5S.js.map} +0 -0
  271. /package/dist/{chunk-OUST5WDV.js.map → chunk-4YUIVHII.js.map} +0 -0
  272. /package/dist/{chunk-6HFM7EIT.js.map → chunk-5NKSNW25.js.map} +0 -0
  273. /package/dist/{chunk-FDX7OWWI.js.map → chunk-5SK5AFYH.js.map} +0 -0
  274. /package/dist/{chunk-DMQCLZ4Z.js.map → chunk-6U7M7AX6.js.map} +0 -0
  275. /package/dist/{chunk-FNSMZQS4.js.map → chunk-7EIPPOEL.js.map} +0 -0
  276. /package/dist/{chunk-OXCU7G5I.js.map → chunk-7J6YERYT.js.map} +0 -0
  277. /package/dist/{chunk-AZQVFXJF.js.map → chunk-A4JJUWSV.js.map} +0 -0
  278. /package/dist/{chunk-BGQ63MCT.js.map → chunk-AFSMT3WI.js.map} +0 -0
  279. /package/dist/{chunk-3FSX6LDG.js.map → chunk-AMKCY454.js.map} +0 -0
  280. /package/dist/{chunk-K6TQEDVJ.js.map → chunk-BVYRPAB2.js.map} +0 -0
  281. /package/dist/{chunk-7F4DBNSP.js.map → chunk-C66T4W5P.js.map} +0 -0
  282. /package/dist/{chunk-UFM3WVIF.js.map → chunk-C6MI5OCF.js.map} +0 -0
  283. /package/dist/{chunk-PK3URBVU.js.map → chunk-CAJ7QAPC.js.map} +0 -0
  284. /package/dist/{chunk-P2Y2F6EB.js.map → chunk-CK6Z5DJQ.js.map} +0 -0
  285. /package/dist/{chunk-G4VQSGXL.js.map → chunk-CK7IRIRY.js.map} +0 -0
  286. /package/dist/{chunk-UAHHWR4P.js.map → chunk-CWX6YIX5.js.map} +0 -0
  287. /package/dist/{chunk-5XFTL73S.js.map → chunk-D763JZRO.js.map} +0 -0
  288. /package/dist/{chunk-CCZJJ4I2.js.map → chunk-ESABIXMQ.js.map} +0 -0
  289. /package/dist/{chunk-5GMMIDJX.js.map → chunk-FMZV43QY.js.map} +0 -0
  290. /package/dist/{chunk-HXGUIPQB.js.map → chunk-FSZPQCDR.js.map} +0 -0
  291. /package/dist/{chunk-Z7SMBVNM.js.map → chunk-GE2AGI67.js.map} +0 -0
  292. /package/dist/{chunk-7VPWXVKU.js.map → chunk-GJX6DOGD.js.map} +0 -0
  293. /package/dist/{chunk-VBCDVWRU.js.map → chunk-GLS7OSZT.js.map} +0 -0
  294. /package/dist/{chunk-W3TVWF6N.js.map → chunk-H545OIWE.js.map} +0 -0
  295. /package/dist/{chunk-VA3PPYTQ.js.map → chunk-HJAFOPTN.js.map} +0 -0
  296. /package/dist/{chunk-Z45YRGFO.js.map → chunk-HNOBRU24.js.map} +0 -0
  297. /package/dist/{chunk-OI7ZJUYT.js.map → chunk-HVPQ5QIZ.js.map} +0 -0
  298. /package/dist/{chunk-AR2JDFAE.js.map → chunk-HVR74IBG.js.map} +0 -0
  299. /package/dist/{chunk-2APC6HS6.js.map → chunk-IMYGJ5HU.js.map} +0 -0
  300. /package/dist/{chunk-25FGCLYS.js.map → chunk-IYYGLI2K.js.map} +0 -0
  301. /package/dist/{chunk-E2TN45ZD.js.map → chunk-JBMSNYOS.js.map} +0 -0
  302. /package/dist/{chunk-RXYYFSBB.js.map → chunk-JU3JKOY5.js.map} +0 -0
  303. /package/dist/{chunk-CEJWMBXO.js.map → chunk-K2MR7ROB.js.map} +0 -0
  304. /package/dist/{chunk-PGWXE5CR.js.map → chunk-KCLNKE4W.js.map} +0 -0
  305. /package/dist/{chunk-K525AZ5C.js.map → chunk-KTCQKXHW.js.map} +0 -0
  306. /package/dist/{chunk-7HF4J7Z5.js.map → chunk-LBQIKMBH.js.map} +0 -0
  307. /package/dist/{chunk-4HDYQL3J.js.map → chunk-MVG67SMN.js.map} +0 -0
  308. /package/dist/{chunk-7MT56F4U.js.map → chunk-N6OJLR2M.js.map} +0 -0
  309. /package/dist/{chunk-DIICZPWS.js.map → chunk-P2UFDX2F.js.map} +0 -0
  310. /package/dist/{chunk-HVQGCKY4.js.map → chunk-PCXAUC65.js.map} +0 -0
  311. /package/dist/{chunk-MSWYQLMQ.js.map → chunk-PJ5TGJ7U.js.map} +0 -0
  312. /package/dist/{chunk-CCZ5DEJ7.js.map → chunk-QEYXKICE.js.map} +0 -0
  313. /package/dist/{chunk-H4YQSDOI.js.map → chunk-QI2KXQOM.js.map} +0 -0
  314. /package/dist/{chunk-FAXZQ5UF.js.map → chunk-QLMUW7OC.js.map} +0 -0
  315. /package/dist/{chunk-XXVIHJZY.js.map → chunk-QQP5KJMS.js.map} +0 -0
  316. /package/dist/{chunk-RTAMLDWP.js.map → chunk-QWNYUTI2.js.map} +0 -0
  317. /package/dist/{chunk-NT432TE6.js.map → chunk-R7E7X4CQ.js.map} +0 -0
  318. /package/dist/{chunk-747LRSOO.js.map → chunk-RBTZLXZJ.js.map} +0 -0
  319. /package/dist/{chunk-OF3L2SD6.js.map → chunk-RDPZMUCX.js.map} +0 -0
  320. /package/dist/{chunk-JIUVJ4M7.js.map → chunk-RJTGXZT6.js.map} +0 -0
  321. /package/dist/{chunk-XJIGOFN6.js.map → chunk-ROFEKKMI.js.map} +0 -0
  322. /package/dist/{chunk-UHXCLPGC.js.map → chunk-RVTOCAHQ.js.map} +0 -0
  323. /package/dist/{chunk-WLYIROCJ.js.map → chunk-RWPNRCK2.js.map} +0 -0
  324. /package/dist/{chunk-HNHCQ556.js.map → chunk-S6CP5FWF.js.map} +0 -0
  325. /package/dist/{chunk-YY3PEDBR.js.map → chunk-S77LTWCZ.js.map} +0 -0
  326. /package/dist/{chunk-JRCYZEHU.js.map → chunk-SGEI3IJK.js.map} +0 -0
  327. /package/dist/{chunk-7G6VDWXB.js.map → chunk-SZZEDEIU.js.map} +0 -0
  328. /package/dist/{chunk-4UVDI4XE.js.map → chunk-T7AEAFEE.js.map} +0 -0
  329. /package/dist/{chunk-FUHKW252.js.map → chunk-TQ7IRULX.js.map} +0 -0
  330. /package/dist/{chunk-VJFMXYKP.js.map → chunk-TQLYMYOK.js.map} +0 -0
  331. /package/dist/{chunk-QS2PUZC7.js.map → chunk-UTQLKPBS.js.map} +0 -0
  332. /package/dist/{chunk-T227WEHE.js.map → chunk-V2BEYLNR.js.map} +0 -0
  333. /package/dist/{chunk-HPLWFNG4.js.map → chunk-V4M4BZNW.js.map} +0 -0
  334. /package/dist/{chunk-KUDZVJKQ.js.map → chunk-VTTRWLOR.js.map} +0 -0
  335. /package/dist/{chunk-L2UHRVB4.js.map → chunk-VVMSDWRG.js.map} +0 -0
  336. /package/dist/{chunk-SV4BNALS.js.map → chunk-WLZKVY33.js.map} +0 -0
  337. /package/dist/{chunk-TJCRCCPT.js.map → chunk-XHX3NTRP.js.map} +0 -0
  338. /package/dist/{chunk-YAWK6AWF.js.map → chunk-YDJXGYYA.js.map} +0 -0
  339. /package/dist/{chunk-VMCCGUQB.js.map → chunk-YGJZLOSR.js.map} +0 -0
  340. /package/dist/{chunk-7TSYBD3E.js.map → chunk-YH65A6WM.js.map} +0 -0
  341. /package/dist/{chunk-Y3H4WOP3.js.map → chunk-YKEJ5P3H.js.map} +0 -0
  342. /package/dist/{chunk-GV2EFYNV.js.map → chunk-YODIXNV4.js.map} +0 -0
  343. /package/dist/{chunk-AHLJSVRL.js.map → chunk-YVOW35HH.js.map} +0 -0
  344. /package/dist/{chunk-DEFCPAXD.js.map → chunk-YZ7BRD26.js.map} +0 -0
  345. /package/dist/{chunk-NJDQ4YSV.js.map → chunk-Z3U2YVNM.js.map} +0 -0
  346. /package/dist/{chunk-RSHNUOSJ.js.map → chunk-ZHDMT2MJ.js.map} +0 -0
  347. /package/dist/{classified-marker-EHRSGBM7.js.map → classified-marker-3STDEUFT.js.map} +0 -0
  348. /package/dist/{collection-facade-5UJW6QRB.js.map → collection-facade-SGTS3TRS.js.map} +0 -0
  349. /package/dist/{computed-6G5M3UPH.js.map → computed-5E2OM6EN.js.map} +0 -0
  350. /package/dist/{dead-filter-ANPRM2LD.js.map → dead-filter-ZNWVGV5U.js.map} +0 -0
  351. /package/dist/{derive-5PFJNNNU.js.map → derive-BWXA2L7D.js.map} +0 -0
  352. /package/dist/{dispatch-EO2QHEXK.js.map → dispatch-S34AUC43.js.map} +0 -0
  353. /package/dist/{dispatch-UGU775MV.js.map → dispatch-TIYW3UDN.js.map} +0 -0
  354. /package/dist/{enclave-3Z7VTJAW.js.map → enclave-Y6GMYQMS.js.map} +0 -0
  355. /package/dist/{executor-AB4BCJO4.js.map → executor-JDMH2IGK.js.map} +0 -0
  356. /package/dist/{executor-CYJQLKKI.js.map → executor-PCZN2LTY.js.map} +0 -0
  357. /package/dist/{executor-S4QIKEHW.js.map → executor-WFTHIDT7.js.map} +0 -0
  358. /package/dist/{export-accessible-JXCJGHCF.js.map → export-accessible-U6GXZZMQ.js.map} +0 -0
  359. /package/dist/{extract-partition-2WDL4FJ5.js.map → extract-partition-IDI6NDUR.js.map} +0 -0
  360. /package/dist/{fanout-sidecar-3Q6BWNSS.js.map → fanout-sidecar-BVFOEJTP.js.map} +0 -0
  361. /package/dist/{find-RBBYKXI7.js.map → find-VBNMB42N.js.map} +0 -0
  362. /package/dist/{issue-EABYJWX5.js.map → issue-TEGTAN7N.js.map} +0 -0
  363. /package/dist/{ledger-ZO5OKKGR.js.map → ledger-NFLBQASD.js.map} +0 -0
  364. /package/dist/{liberate-S3JR4TQT.js.map → liberate-SG2PPGAJ.js.map} +0 -0
  365. /package/dist/{link-set-ZZYDZPL4.js.map → link-set-IPS57KDM.js.map} +0 -0
  366. /package/dist/{managed-secret-6FITSKDO.js.map → managed-secret-GFYGPLNI.js.map} +0 -0
  367. /package/dist/{noydb-SPEVD5JA.js.map → noydb-TN2VIJJO.js.map} +0 -0
  368. /package/dist/{post-register-577X4FAU.js.map → post-register-JUSV3X4E.js.map} +0 -0
  369. /package/dist/{register-OXUXXIWT.js.map → register-UTMPUAQW.js.map} +0 -0
  370. /package/dist/{registry-CZVINVQH.js.map → registry-B2S4UNUI.js.map} +0 -0
  371. /package/dist/{registry-IKUR2MXD.js.map → registry-E4FM32KD.js.map} +0 -0
  372. /package/dist/{registry-L3CO5ZAY.js.map → registry-HACMULJJ.js.map} +0 -0
  373. /package/dist/{registry-QFIVGS2W.js.map → registry-NDLBGQLJ.js.map} +0 -0
  374. /package/dist/{request-withdrawal-UV42CNR5.js.map → request-withdrawal-Q5G43PR7.js.map} +0 -0
  375. /package/dist/{reveal-PCQYK4NO.js.map → reveal-YJU7GUYJ.js.map} +0 -0
  376. /package/dist/{revoke-26DFO36Z.js.map → revoke-NXOUPYS3.js.map} +0 -0
  377. /package/dist/{seed-BVO6SSKH.js.map → seed-XXLR4KXU.js.map} +0 -0
  378. /package/dist/{signer-DDO7QEID.js.map → signer-FCGAUB6E.js.map} +0 -0
  379. /package/dist/{stale-3FW6U4OU.js.map → stale-OT5NMBXU.js.map} +0 -0
  380. /package/dist/{storage-M7L2EK3F.js.map → storage-EWWIFB43.js.map} +0 -0
  381. /package/dist/{store-coordination-provider-3QGSXG3P.js.map → store-coordination-provider-PPLVM2I2.js.map} +0 -0
  382. /package/dist/{ulid-PTAIMDG4.js.map → ulid-VQW6ERQN.js.map} +0 -0
  383. /package/dist/{verify-RO5RTZOJ.js.map → verify-SHJXGZGM.js.map} +0 -0
  384. /package/dist/{walk-OFXQN5US.js.map → walk-4NIT2ZBH.js.map} +0 -0
  385. /package/dist/{withdraw-accessible-7XKYVTMP.js.map → withdraw-accessible-LJG66PZQ.js.map} +0 -0
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  pickLocale
3
- } from "./chunk-Z7SMBVNM.js";
3
+ } from "./chunk-GE2AGI67.js";
4
4
  import {
5
5
  sha256Hex
6
- } from "./chunk-VCETL77O.js";
6
+ } from "./chunk-QTDAPDDV.js";
7
7
  import {
8
- BundleIntegrityError,
9
- BundleSealMismatchError,
8
+ PodIntegrityError,
9
+ PodSealMismatchError,
10
10
  ValidationError
11
- } from "./chunk-HNGSV2YC.js";
11
+ } from "./chunk-I64WQSN3.js";
12
12
 
13
13
  // src/with-pod/format.ts
14
- var NOYDB_BUNDLE_MAGIC = new Uint8Array([78, 68, 66, 49]);
15
- var NOYDB_BUNDLE_PREFIX_BYTES = 10;
16
- var NOYDB_BUNDLE_FORMAT_VERSION = 1;
17
- var NOYDB_BUNDLE_FORMAT_VERSION_SIGNED = 2;
14
+ var NOYDB_POD_MAGIC = new Uint8Array([78, 68, 66, 49]);
15
+ var NOYDB_POD_PREFIX_BYTES = 10;
16
+ var NOYDB_POD_FORMAT_VERSION = 1;
17
+ var NOYDB_POD_FORMAT_VERSION_SIGNED = 2;
18
18
  var FLAG_COMPRESSED = 1;
19
19
  var FLAG_HAS_INTEGRITY_HASH = 2;
20
20
  var COMPRESSION_NONE = 0;
@@ -63,7 +63,7 @@ var REDIRECT_REASONS = /* @__PURE__ */ new Set([
63
63
  "tombstone",
64
64
  "repoint"
65
65
  ]);
66
- function validateBundleHeader(parsed) {
66
+ function validatePodHeaderFields(parsed) {
67
67
  if (parsed === null || typeof parsed !== "object") {
68
68
  throw new Error(
69
69
  `.noydb bundle header must be a JSON object, got ${parsed === null ? "null" : typeof parsed}`
@@ -77,9 +77,9 @@ function validateBundleHeader(parsed) {
77
77
  }
78
78
  }
79
79
  const h = parsed;
80
- if (typeof h["formatVersion"] !== "number" || h["formatVersion"] !== NOYDB_BUNDLE_FORMAT_VERSION && h["formatVersion"] !== NOYDB_BUNDLE_FORMAT_VERSION_SIGNED) {
80
+ if (typeof h["formatVersion"] !== "number" || h["formatVersion"] !== NOYDB_POD_FORMAT_VERSION && h["formatVersion"] !== NOYDB_POD_FORMAT_VERSION_SIGNED) {
81
81
  throw new Error(
82
- `.noydb bundle header.formatVersion must be ${NOYDB_BUNDLE_FORMAT_VERSION} or ${NOYDB_BUNDLE_FORMAT_VERSION_SIGNED}, got ${String(h["formatVersion"])}. The reader does not support forward-compat versions; upgrade the reader to handle newer bundles.`
82
+ `.noydb bundle header.formatVersion must be ${NOYDB_POD_FORMAT_VERSION} or ${NOYDB_POD_FORMAT_VERSION_SIGNED}, got ${String(h["formatVersion"])}. The reader does not support forward-compat versions; upgrade the reader to handle newer bundles.`
83
83
  );
84
84
  }
85
85
  if (typeof h["handle"] !== "string" || !/^[0-9A-HJKMNP-TV-Z]{26}$/.test(h["handle"])) {
@@ -264,14 +264,14 @@ function validateBundleHeader(parsed) {
264
264
  `.noydb bundle header.sig, .keyId, and .sigAlg must be present together or not at all (got ${sigFieldsPresent} of 3).`
265
265
  );
266
266
  }
267
- if (sigFieldsPresent === 3 && h["formatVersion"] !== NOYDB_BUNDLE_FORMAT_VERSION_SIGNED) {
267
+ if (sigFieldsPresent === 3 && h["formatVersion"] !== NOYDB_POD_FORMAT_VERSION_SIGNED) {
268
268
  throw new Error(
269
- `.noydb bundle header with sig/keyId/sigAlg must have formatVersion === ${NOYDB_BUNDLE_FORMAT_VERSION_SIGNED}, got ${String(h["formatVersion"])}.`
269
+ `.noydb bundle header with sig/keyId/sigAlg must have formatVersion === ${NOYDB_POD_FORMAT_VERSION_SIGNED}, got ${String(h["formatVersion"])}.`
270
270
  );
271
271
  }
272
272
  }
273
- function encodeBundleHeader(header) {
274
- validateBundleHeader(header);
273
+ function encodePodHeader(header) {
274
+ validatePodHeaderFields(header);
275
275
  const json = JSON.stringify({
276
276
  formatVersion: header.formatVersion,
277
277
  handle: header.handle,
@@ -297,7 +297,7 @@ function encodeBundleHeader(header) {
297
297
  });
298
298
  return new TextEncoder().encode(json);
299
299
  }
300
- function decodeBundleHeader(bytes) {
300
+ function decodePodHeader(bytes) {
301
301
  const json = new TextDecoder("utf-8", { fatal: true }).decode(bytes);
302
302
  let parsed;
303
303
  try {
@@ -307,7 +307,7 @@ function decodeBundleHeader(bytes) {
307
307
  `.noydb bundle header is not valid JSON: ${err.message}`
308
308
  );
309
309
  }
310
- validateBundleHeader(parsed);
310
+ validatePodHeaderFields(parsed);
311
311
  return parsed;
312
312
  }
313
313
  function readUint32BE(bytes, offset) {
@@ -319,10 +319,10 @@ function writeUint32BE(bytes, offset, value) {
319
319
  bytes[offset + 2] = value >>> 8 & 255;
320
320
  bytes[offset + 3] = value & 255;
321
321
  }
322
- function hasNoydbBundleMagic(bytes) {
323
- if (bytes.length < NOYDB_BUNDLE_MAGIC.length) return false;
324
- for (let i = 0; i < NOYDB_BUNDLE_MAGIC.length; i++) {
325
- if (bytes[i] !== NOYDB_BUNDLE_MAGIC[i]) return false;
322
+ function hasNoydbPodMagic(bytes) {
323
+ if (bytes.length < NOYDB_POD_MAGIC.length) return false;
324
+ for (let i = 0; i < NOYDB_POD_MAGIC.length; i++) {
325
+ if (bytes[i] !== NOYDB_POD_MAGIC[i]) return false;
326
326
  }
327
327
  return true;
328
328
  }
@@ -340,7 +340,7 @@ async function verifyRecord(publicKeyB64, sig, payload) {
340
340
  return ed25519Verify(publicKeyB64, sig, signedBytes(payload));
341
341
  }
342
342
 
343
- // src/with-pod/bundle.ts
343
+ // src/with-pod/pod.ts
344
344
  var WRITE_POD_OPTION_KEYS = [
345
345
  "compression",
346
346
  "collections",
@@ -562,30 +562,30 @@ function parseAutoUnlockBody(bodyString) {
562
562
  try {
563
563
  parsed = JSON.parse(bodyString);
564
564
  } catch (err) {
565
- throw new BundleIntegrityError(
565
+ throw new PodIntegrityError(
566
566
  "header declared autoUnlock but body could not be parsed as JSON wrapper: " + (err instanceof Error ? err.message : String(err))
567
567
  );
568
568
  }
569
569
  if (typeof parsed !== "object" || parsed === null) {
570
- throw new BundleIntegrityError("autoUnlock body is not a JSON object");
570
+ throw new PodIntegrityError("autoUnlock body is not a JSON object");
571
571
  }
572
572
  const obj = parsed;
573
573
  if (obj["_noydb_bundle_body"] !== 1) {
574
- throw new BundleIntegrityError(
574
+ throw new PodIntegrityError(
575
575
  "autoUnlock body missing `_noydb_bundle_body: 1` discriminator"
576
576
  );
577
577
  }
578
578
  if (typeof obj["dump"] !== "string") {
579
- throw new BundleIntegrityError("autoUnlock body must carry a string `dump` field");
579
+ throw new PodIntegrityError("autoUnlock body must carry a string `dump` field");
580
580
  }
581
581
  const blob = obj["_autoUnlock"];
582
582
  if (typeof blob !== "object" || blob === null) {
583
- throw new BundleIntegrityError("autoUnlock body missing `_autoUnlock` blob");
583
+ throw new PodIntegrityError("autoUnlock body missing `_autoUnlock` blob");
584
584
  }
585
585
  const blobObj = blob;
586
586
  const kind = blobObj["kind"];
587
587
  if (kind !== "unsealed" && kind !== "sealed") {
588
- throw new BundleIntegrityError(
588
+ throw new PodIntegrityError(
589
589
  `autoUnlock blob has invalid kind ${String(kind)}; expected 'unsealed' or 'sealed'`
590
590
  );
591
591
  }
@@ -602,29 +602,29 @@ function parseExtractedPartitionBody(bodyString) {
602
602
  try {
603
603
  parsed = JSON.parse(bodyString);
604
604
  } catch (err) {
605
- throw new BundleIntegrityError(
605
+ throw new PodIntegrityError(
606
606
  "header declared extracted-partition but body could not be parsed as JSON wrapper: " + (err instanceof Error ? err.message : String(err))
607
607
  );
608
608
  }
609
609
  if (typeof parsed !== "object" || parsed === null) {
610
- throw new BundleIntegrityError("extracted-partition body is not a JSON object");
610
+ throw new PodIntegrityError("extracted-partition body is not a JSON object");
611
611
  }
612
612
  const obj = parsed;
613
613
  if (obj["_noydb_bundle_body"] !== 1) {
614
- throw new BundleIntegrityError(
614
+ throw new PodIntegrityError(
615
615
  "extracted-partition body missing `_noydb_bundle_body: 1` discriminator"
616
616
  );
617
617
  }
618
618
  if (typeof obj["dump"] !== "string") {
619
- throw new BundleIntegrityError("extracted-partition body must carry a string `dump` field");
619
+ throw new PodIntegrityError("extracted-partition body must carry a string `dump` field");
620
620
  }
621
621
  const seal = obj["_transferSeal"];
622
622
  if (typeof seal !== "object" || seal === null) {
623
- throw new BundleIntegrityError("extracted-partition body missing `_transferSeal` blob");
623
+ throw new PodIntegrityError("extracted-partition body missing `_transferSeal` blob");
624
624
  }
625
625
  const s = seal;
626
626
  if (s["v"] !== 1 || s["alg"] !== "aes-256-gcm-pre-shared" || typeof s["sealId"] !== "string" || typeof s["payload"] !== "string") {
627
- throw new BundleIntegrityError("extracted-partition `_transferSeal` blob is malformed");
627
+ throw new PodIntegrityError("extracted-partition `_transferSeal` blob is malformed");
628
628
  }
629
629
  return { dump: obj["dump"], seal };
630
630
  }
@@ -670,7 +670,7 @@ async function resolveAutoUnlock(blob, opts) {
670
670
  unsealedMap[userId] = { kind: credKind, value: entry.sealed };
671
671
  continue;
672
672
  }
673
- throw new BundleSealMismatchError(userId, entry.pid);
673
+ throw new PodSealMismatchError(userId, entry.pid);
674
674
  }
675
675
  unsealedMap[userId] = { kind: credKind, value: opened };
676
676
  continue;
@@ -679,7 +679,7 @@ async function resolveAutoUnlock(blob, opts) {
679
679
  unsealedMap[userId] = { kind: credKind, value: entry.sealed };
680
680
  continue;
681
681
  }
682
- throw new BundleSealMismatchError(userId, entry.pid);
682
+ throw new PodSealMismatchError(userId, entry.pid);
683
683
  }
684
684
  const plaintextBytes = await provider.unseal(base64ToBytes(entry.sealed));
685
685
  unsealedMap[userId] = { kind: credKind, value: decoder.decode(plaintextBytes) };
@@ -812,7 +812,7 @@ async function applySatelliteLivenessFilter(vault, dumpJson) {
812
812
  if (!backup.collections || typeof backup.collections !== "object") return dumpJson;
813
813
  if (typeof vault._introspectState !== "function") return dumpJson;
814
814
  const { adapter, name, getDEK } = vault._introspectState();
815
- const { liveBaseIdSetsForBundle } = await import("./dead-filter-ANPRM2LD.js");
815
+ const { liveBaseIdSetsForBundle } = await import("./dead-filter-ZNWVGV5U.js");
816
816
  const satLive = await liveBaseIdSetsForBundle(adapter, name, Object.keys(backup.collections), getDEK);
817
817
  if (satLive.size === 0) return dumpJson;
818
818
  const next = {};
@@ -864,13 +864,13 @@ async function applyPlaintextFilters(vault, dumpJson, opts) {
864
864
  backup.collections = next;
865
865
  return JSON.stringify(backup);
866
866
  }
867
- async function assembleBundleContainer(opts) {
867
+ async function assemblePodContainer(opts) {
868
868
  const dumpBytes = new TextEncoder().encode(opts.bodyJsonStr);
869
869
  const { format, streamFormat } = selectCompression(opts.compression);
870
870
  const body = streamFormat === null ? dumpBytes : await pumpThroughStream(dumpBytes, new CompressionStream(streamFormat));
871
871
  const bodySha256 = await sha256Hex2(body);
872
872
  const header = {
873
- formatVersion: NOYDB_BUNDLE_FORMAT_VERSION,
873
+ formatVersion: NOYDB_POD_FORMAT_VERSION,
874
874
  handle: opts.handle,
875
875
  bodyBytes: body.length,
876
876
  bodySha256,
@@ -886,13 +886,13 @@ async function assembleBundleContainer(opts) {
886
886
  ...opts.headerExtras?.redirect !== void 0 ? { redirect: opts.headerExtras.redirect } : {}
887
887
  };
888
888
  const signed = opts.signer === void 0 ? header : await (async (s) => {
889
- const toSign = { ...header, formatVersion: NOYDB_BUNDLE_FORMAT_VERSION_SIGNED, keyId: s.keyId, sigAlg: "ed25519" };
889
+ const toSign = { ...header, formatVersion: NOYDB_POD_FORMAT_VERSION_SIGNED, keyId: s.keyId, sigAlg: "ed25519" };
890
890
  const sig = await signRecord(s.privateKeyPkcs8B64, toSign);
891
891
  return { ...toSign, sig };
892
892
  })(opts.signer);
893
- const headerBytes = encodeBundleHeader(signed);
894
- const prefix = new Uint8Array(NOYDB_BUNDLE_PREFIX_BYTES);
895
- prefix.set(NOYDB_BUNDLE_MAGIC, 0);
893
+ const headerBytes = encodePodHeader(signed);
894
+ const prefix = new Uint8Array(NOYDB_POD_PREFIX_BYTES);
895
+ prefix.set(NOYDB_POD_MAGIC, 0);
896
896
  prefix[4] = (streamFormat === null ? 0 : FLAG_COMPRESSED) | FLAG_HAS_INTEGRITY_HASH;
897
897
  prefix[5] = format;
898
898
  writeUint32BE(prefix, 6, headerBytes.length);
@@ -907,7 +907,7 @@ async function writePod(vault, opts = {}) {
907
907
  }
908
908
  const normalizedAutoUnlock = normalizeAutoUnlock(opts);
909
909
  const autoUnlockMode = validateAutoUnlockOptions(opts, normalizedAutoUnlock);
910
- const handle = await vault.getBundleHandle();
910
+ const handle = await vault.getPodHandle();
911
911
  const dumpJson = await vault.dump();
912
912
  const satelliteFiltered = await applySatelliteLivenessFilter(vault, dumpJson);
913
913
  const rekeyed = await applyRecipientRewrap(vault, satelliteFiltered, opts);
@@ -916,7 +916,7 @@ async function writePod(vault, opts = {}) {
916
916
  const bodyJsonStr = normalizedAutoUnlock === null ? filtered : JSON.stringify(await buildAutoUnlockWrapper(filtered, normalizedAutoUnlock));
917
917
  const cover = await vault.getCover();
918
918
  const signer = opts.sign === false ? void 0 : opts.sign !== void 0 ? opts.sign : await vault._loadPodSigner() ?? void 0;
919
- return assembleBundleContainer({
919
+ return assemblePodContainer({
920
920
  handle,
921
921
  bodyJsonStr,
922
922
  compression: opts.compression,
@@ -935,16 +935,15 @@ async function writePod(vault, opts = {}) {
935
935
  ...signer !== void 0 ? { signer } : {}
936
936
  });
937
937
  }
938
- var writeNoydbBundle = writePod;
939
938
  function parsePrefixAndHeader(bytes) {
940
- if (!hasNoydbBundleMagic(bytes)) {
939
+ if (!hasNoydbPodMagic(bytes)) {
941
940
  throw new Error(
942
941
  `Not a .noydb bundle: missing 'NDB1' magic prefix. The first 4 bytes are ${[...bytes.slice(0, 4)].map((b) => b.toString(16).padStart(2, "0")).join(" ")}.`
943
942
  );
944
943
  }
945
- if (bytes.length < NOYDB_BUNDLE_PREFIX_BYTES) {
944
+ if (bytes.length < NOYDB_POD_PREFIX_BYTES) {
946
945
  throw new Error(
947
- `Truncated .noydb bundle: file is only ${bytes.length} bytes, which is less than the ${NOYDB_BUNDLE_PREFIX_BYTES}-byte fixed prefix.`
946
+ `Truncated .noydb bundle: file is only ${bytes.length} bytes, which is less than the ${NOYDB_POD_PREFIX_BYTES}-byte fixed prefix.`
948
947
  );
949
948
  }
950
949
  const flags = bytes[4];
@@ -955,20 +954,19 @@ function parsePrefixAndHeader(bytes) {
955
954
  );
956
955
  }
957
956
  const headerLength = readUint32BE(bytes, 6);
958
- const bodyOffset = NOYDB_BUNDLE_PREFIX_BYTES + headerLength;
957
+ const bodyOffset = NOYDB_POD_PREFIX_BYTES + headerLength;
959
958
  if (bodyOffset > bytes.length) {
960
959
  throw new Error(
961
960
  `Truncated .noydb bundle: declared header length ${headerLength} would extend past end of file (${bytes.length} bytes).`
962
961
  );
963
962
  }
964
- const headerBytes = bytes.slice(NOYDB_BUNDLE_PREFIX_BYTES, bodyOffset);
965
- const header = decodeBundleHeader(headerBytes);
963
+ const headerBytes = bytes.slice(NOYDB_POD_PREFIX_BYTES, bodyOffset);
964
+ const header = decodePodHeader(headerBytes);
966
965
  return { header, bodyOffset, algo, flags };
967
966
  }
968
967
  function readPodHeader(bytes) {
969
968
  return parsePrefixAndHeader(bytes).header;
970
969
  }
971
- var readNoydbBundleHeader = readPodHeader;
972
970
  async function verifyPodHeader(bytes, trustedKeys) {
973
971
  const { header } = parsePrefixAndHeader(bytes);
974
972
  if (header.sig === void 0 || header.keyId === void 0 || header.sigAlg === void 0) {
@@ -1001,13 +999,13 @@ async function readPod(bytes, opts = {}) {
1001
999
  const { header, bodyOffset, algo } = parsePrefixAndHeader(bytes);
1002
1000
  const body = bytes.slice(bodyOffset);
1003
1001
  if (body.length !== header.bodyBytes) {
1004
- throw new BundleIntegrityError(
1002
+ throw new PodIntegrityError(
1005
1003
  `body length ${body.length} does not match header.bodyBytes ${header.bodyBytes}. The bundle was truncated or padded between write and read.`
1006
1004
  );
1007
1005
  }
1008
1006
  const actualSha = await sha256Hex2(body);
1009
1007
  if (actualSha !== header.bodySha256) {
1010
- throw new BundleIntegrityError(
1008
+ throw new PodIntegrityError(
1011
1009
  `body sha256 ${actualSha} does not match header.bodySha256 ${header.bodySha256}. The bundle bytes were modified between write and read \u2014 refuse to decompress.`
1012
1010
  );
1013
1011
  }
@@ -1019,7 +1017,7 @@ async function readPod(bytes, opts = {}) {
1019
1017
  try {
1020
1018
  dumpBytes = await pumpThroughStream(body, new DecompressionStream(streamFormat));
1021
1019
  } catch (err) {
1022
- throw new BundleIntegrityError(
1020
+ throw new PodIntegrityError(
1023
1021
  `decompression failed: ${err.message}. The bundle passed the integrity hash but the body is not valid ${streamFormat} data \u2014 likely a producer bug.`
1024
1022
  );
1025
1023
  }
@@ -1032,20 +1030,19 @@ async function readPod(bytes, opts = {}) {
1032
1030
  const autoUnlock = await resolveAutoUnlock(blob, opts);
1033
1031
  return { header, dumpJson: dump, autoUnlock };
1034
1032
  }
1035
- var readNoydbBundle = readPod;
1036
1033
 
1037
1034
  export {
1038
- NOYDB_BUNDLE_MAGIC,
1039
- NOYDB_BUNDLE_PREFIX_BYTES,
1040
- NOYDB_BUNDLE_FORMAT_VERSION,
1035
+ NOYDB_POD_MAGIC,
1036
+ NOYDB_POD_PREFIX_BYTES,
1037
+ NOYDB_POD_FORMAT_VERSION,
1041
1038
  FLAG_COMPRESSED,
1042
1039
  FLAG_HAS_INTEGRITY_HASH,
1043
1040
  COMPRESSION_NONE,
1044
1041
  COMPRESSION_GZIP,
1045
1042
  COMPRESSION_BROTLI,
1046
- validateBundleHeader,
1047
- encodeBundleHeader,
1048
- hasNoydbBundleMagic,
1043
+ validatePodHeaderFields,
1044
+ encodePodHeader,
1045
+ hasNoydbPodMagic,
1049
1046
  POD_SIG_ALG,
1050
1047
  signedBytes,
1051
1048
  signRecord,
@@ -1053,15 +1050,12 @@ export {
1053
1050
  buildExtractedPartitionWrapper,
1054
1051
  parseExtractedPartitionBody,
1055
1052
  resetBrotliSupportCache,
1056
- assembleBundleContainer,
1053
+ assemblePodContainer,
1057
1054
  writePod,
1058
- writeNoydbBundle,
1059
1055
  readPodHeader,
1060
- readNoydbBundleHeader,
1061
1056
  verifyPodHeader,
1062
1057
  readPodCover,
1063
1058
  readPodRedirect,
1064
- readPod,
1065
- readNoydbBundle
1059
+ readPod
1066
1060
  };
1067
- //# sourceMappingURL=chunk-SPA5WX3T.js.map
1061
+ //# sourceMappingURL=chunk-4LNFXGNW.js.map