@noy-db/hub 0.2.0-pre.1 → 0.2.0-pre.10

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 (306) hide show
  1. package/dist/aggregate/index.cjs +9 -0
  2. package/dist/aggregate/index.cjs.map +1 -1
  3. package/dist/aggregate/index.d.cts +2 -2
  4. package/dist/aggregate/index.d.ts +2 -2
  5. package/dist/aggregate/index.js +4 -4
  6. package/dist/attestation/index.cjs +305 -0
  7. package/dist/attestation/index.cjs.map +1 -0
  8. package/dist/attestation/index.d.cts +52 -0
  9. package/dist/attestation/index.d.ts +52 -0
  10. package/dist/attestation/index.js +36 -0
  11. package/dist/attestation/index.js.map +1 -0
  12. package/dist/blobs/index.cjs.map +1 -1
  13. package/dist/blobs/index.d.cts +7 -6
  14. package/dist/blobs/index.d.ts +7 -6
  15. package/dist/blobs/index.js +10 -8
  16. package/dist/blobs/index.js.map +1 -1
  17. package/dist/bundle/index.cjs +18899 -129
  18. package/dist/bundle/index.cjs.map +1 -1
  19. package/dist/bundle/index.d.cts +175 -6
  20. package/dist/bundle/index.d.ts +175 -6
  21. package/dist/bundle/index.js +533 -5
  22. package/dist/bundle/index.js.map +1 -1
  23. package/dist/{chunk-6HPZY4ON.js → chunk-26NK23DZ.js} +9 -4
  24. package/dist/chunk-26NK23DZ.js.map +1 -0
  25. package/dist/{chunk-XGSOTWYX.js → chunk-2LPPNWF6.js} +3 -3
  26. package/dist/{chunk-5SCJ5UEF.js → chunk-2N62W5YP.js} +3 -3
  27. package/dist/{chunk-537VFZTR.js → chunk-3LPV6BXR.js} +4 -4
  28. package/dist/{chunk-UA4RI7OT.js → chunk-4CLICFEY.js} +5 -5
  29. package/dist/chunk-4CLICFEY.js.map +1 -0
  30. package/dist/chunk-4USCAEDT.js +10529 -0
  31. package/dist/chunk-4USCAEDT.js.map +1 -0
  32. package/dist/chunk-5IXJGFF2.js +83 -0
  33. package/dist/chunk-5IXJGFF2.js.map +1 -0
  34. package/dist/{chunk-HB3Z2GCR.js → chunk-5OEJ6GOT.js} +2 -2
  35. package/dist/chunk-5OEJ6GOT.js.map +1 -0
  36. package/dist/chunk-5OX6XVNS.js +79 -0
  37. package/dist/chunk-5OX6XVNS.js.map +1 -0
  38. package/dist/{chunk-VMIO4IXG.js → chunk-6EOXTJS2.js} +6 -229
  39. package/dist/chunk-6EOXTJS2.js.map +1 -0
  40. package/dist/{chunk-UZXLQCHP.js → chunk-6T2UDBKG.js} +2 -2
  41. package/dist/chunk-6T2UDBKG.js.map +1 -0
  42. package/dist/{chunk-23TTQXVO.js → chunk-6YLPHBKR.js} +214 -9
  43. package/dist/chunk-6YLPHBKR.js.map +1 -0
  44. package/dist/{chunk-Z72JH4KG.js → chunk-7CEGU63S.js} +5 -35
  45. package/dist/chunk-7CEGU63S.js.map +1 -0
  46. package/dist/{chunk-PEULZC6M.js → chunk-A3JMGXPG.js} +8 -1
  47. package/dist/chunk-A3JMGXPG.js.map +1 -0
  48. package/dist/{chunk-7H6DOO3E.js → chunk-BB27JMWB.js} +211 -36
  49. package/dist/chunk-BB27JMWB.js.map +1 -0
  50. package/dist/{chunk-I6MX32UC.js → chunk-BDV7INMP.js} +4 -4
  51. package/dist/{chunk-MKSA2V7A.js → chunk-C3WE6UJY.js} +2 -2
  52. package/dist/{chunk-FCXOFQAJ.js → chunk-CH22FZHT.js} +19 -2
  53. package/dist/chunk-CH22FZHT.js.map +1 -0
  54. package/dist/{chunk-DYBQG5PQ.js → chunk-CXFOITNS.js} +2 -2
  55. package/dist/{chunk-5ZGZ6HIZ.js → chunk-CXJG63MA.js} +11 -2
  56. package/dist/chunk-CXJG63MA.js.map +1 -0
  57. package/dist/{chunk-EGQYGYIU.js → chunk-DAP2XL7Q.js} +3 -3
  58. package/dist/chunk-DAP2XL7Q.js.map +1 -0
  59. package/dist/{chunk-4TFSM22V.js → chunk-DJRWA3Q5.js} +4 -4
  60. package/dist/chunk-DRXIZOFV.js +233 -0
  61. package/dist/chunk-DRXIZOFV.js.map +1 -0
  62. package/dist/{chunk-DPMFBCV6.js → chunk-FO3UEG4S.js} +20 -3
  63. package/dist/chunk-FO3UEG4S.js.map +1 -0
  64. package/dist/{chunk-SIZWEV2Y.js → chunk-GAUEWM7D.js} +7 -5
  65. package/dist/chunk-GAUEWM7D.js.map +1 -0
  66. package/dist/{chunk-NIOHFJPJ.js → chunk-GNHAC43Q.js} +218 -119
  67. package/dist/chunk-GNHAC43Q.js.map +1 -0
  68. package/dist/chunk-HHOO7HGH.js +57 -0
  69. package/dist/chunk-HHOO7HGH.js.map +1 -0
  70. package/dist/{chunk-PA6R5ZCI.js → chunk-HQSQC2XL.js} +5 -5
  71. package/dist/chunk-HQSQC2XL.js.map +1 -0
  72. package/dist/chunk-IMYKDWB4.js +139 -0
  73. package/dist/chunk-IMYKDWB4.js.map +1 -0
  74. package/dist/{chunk-5DWL3JBF.js → chunk-LSTBFLL2.js} +2 -2
  75. package/dist/{chunk-ADQ5MQ54.js → chunk-O6EJ6WTI.js} +163 -2
  76. package/dist/chunk-O6EJ6WTI.js.map +1 -0
  77. package/dist/{chunk-OMLIZL2P.js → chunk-PC6ZEDRL.js} +12 -2
  78. package/dist/{chunk-OMLIZL2P.js.map → chunk-PC6ZEDRL.js.map} +1 -1
  79. package/dist/chunk-PM3QYWUU.js +251 -0
  80. package/dist/chunk-PM3QYWUU.js.map +1 -0
  81. package/dist/{chunk-34YSDCDP.js → chunk-PVUUIWHY.js} +2 -2
  82. package/dist/{chunk-CBAHB2BF.js → chunk-PXTQPZO4.js} +7 -70
  83. package/dist/chunk-PXTQPZO4.js.map +1 -0
  84. package/dist/{chunk-DYECX3IX.js → chunk-QSOYKKMD.js} +4 -4
  85. package/dist/chunk-QSOYKKMD.js.map +1 -0
  86. package/dist/{chunk-WCA2NROQ.js → chunk-R233SLY3.js} +2 -2
  87. package/dist/chunk-RC6SU5NO.js +36 -0
  88. package/dist/chunk-RC6SU5NO.js.map +1 -0
  89. package/dist/{chunk-P7EQ2S5O.js → chunk-RRNA5GKT.js} +2 -2
  90. package/dist/{chunk-ZNOEIM6Y.js → chunk-RYIL3PI2.js} +2 -2
  91. package/dist/chunk-STNPB3UM.js +9 -0
  92. package/dist/chunk-STNPB3UM.js.map +1 -0
  93. package/dist/{chunk-MRIBLZL3.js → chunk-TV3YZ35S.js} +5 -1
  94. package/dist/chunk-TV3YZ35S.js.map +1 -0
  95. package/dist/chunk-TY32C732.js +59 -0
  96. package/dist/chunk-TY32C732.js.map +1 -0
  97. package/dist/{chunk-YMYK7US4.js → chunk-WIBHRONM.js} +2 -2
  98. package/dist/chunk-WIBHRONM.js.map +1 -0
  99. package/dist/{chunk-YS3POABP.js → chunk-WIRRPTFH.js} +1 -1
  100. package/dist/chunk-WIRRPTFH.js.map +1 -0
  101. package/dist/{chunk-KESP7GOK.js → chunk-Y26YV5R3.js} +3 -3
  102. package/dist/{chunk-MIQHZESA.js → chunk-YM7LFCG7.js} +5 -5
  103. package/dist/{chunk-MIQHZESA.js.map → chunk-YM7LFCG7.js.map} +1 -1
  104. package/dist/{chunk-2AXFIYHT.js → chunk-Z6FNBOTC.js} +1 -1
  105. package/dist/chunk-Z6FNBOTC.js.map +1 -0
  106. package/dist/{chunk-RD5LYKD6.js → chunk-ZROPXHJY.js} +2 -2
  107. package/dist/chunk-ZROPXHJY.js.map +1 -0
  108. package/dist/consent/index.cjs.map +1 -1
  109. package/dist/consent/index.d.cts +7 -6
  110. package/dist/consent/index.d.ts +7 -6
  111. package/dist/consent/index.js +3 -3
  112. package/dist/{crypto-A7FRXYHC.js → crypto-2CRLG4F4.js} +3 -3
  113. package/dist/{delegation-YBA4X4JN.js → delegation-ZTRT2PRV.js} +5 -5
  114. package/dist/derivations/index.cjs +18 -1
  115. package/dist/derivations/index.cjs.map +1 -1
  116. package/dist/derivations/index.d.cts +10 -9
  117. package/dist/derivations/index.d.ts +10 -9
  118. package/dist/derivations/index.js +4 -4
  119. package/dist/{dev-unlock-DRwVSy2S.d.cts → dev-unlock-AglVnkPY.d.cts} +1 -1
  120. package/dist/{dev-unlock-D9s-loPr.d.ts → dev-unlock-BOEYl1xl.d.ts} +1 -1
  121. package/dist/discriminant-BN9REW3o.d.cts +60 -0
  122. package/dist/discriminant-BN9REW3o.d.ts +60 -0
  123. package/dist/executor-S76VN45G.js +8 -0
  124. package/dist/executor-UCXLIGLW.js +11 -0
  125. package/dist/executor-ZCNZJMGR.js +8 -0
  126. package/dist/{fanout-sidecar-VJ52RIEY.js → fanout-sidecar-OKPMMPLG.js} +2 -2
  127. package/dist/fanout-sidecar-OKPMMPLG.js.map +1 -0
  128. package/dist/guards/index.cjs +7 -0
  129. package/dist/guards/index.cjs.map +1 -1
  130. package/dist/guards/index.d.cts +8 -7
  131. package/dist/guards/index.d.ts +8 -7
  132. package/dist/guards/index.js +4 -4
  133. package/dist/{hash-DXXXusyk.d.ts → hash-B9m3_fhj.d.ts} +1 -1
  134. package/dist/{hash-DtRih9MQ.d.cts → hash-RVqz2zi8.d.cts} +1 -1
  135. package/dist/history/index.cjs +2 -2
  136. package/dist/history/index.cjs.map +1 -1
  137. package/dist/history/index.d.cts +8 -7
  138. package/dist/history/index.d.ts +8 -7
  139. package/dist/history/index.js +6 -6
  140. package/dist/i18n/index.cjs +287 -27
  141. package/dist/i18n/index.cjs.map +1 -1
  142. package/dist/i18n/index.d.cts +7 -6
  143. package/dist/i18n/index.d.ts +7 -6
  144. package/dist/i18n/index.js +21 -6
  145. package/dist/i18n/index.js.map +1 -1
  146. package/dist/{index-CmVgTkqk.d.cts → index-B8bjExET.d.cts} +214 -18
  147. package/dist/{index-CNwA-B6-.d.ts → index-DfUbNad8.d.ts} +214 -18
  148. package/dist/index.cjs +3329 -446
  149. package/dist/index.cjs.map +1 -1
  150. package/dist/index.d.cts +43 -22
  151. package/dist/index.d.ts +43 -22
  152. package/dist/index.js +179 -8799
  153. package/dist/index.js.map +1 -1
  154. package/dist/indexing/index.cjs +5 -1
  155. package/dist/indexing/index.cjs.map +1 -1
  156. package/dist/indexing/index.d.cts +3 -3
  157. package/dist/indexing/index.d.ts +3 -3
  158. package/dist/indexing/index.js +4 -4
  159. package/dist/issue-3W6IVLKH.js +12 -0
  160. package/dist/{lazy-builder-Rpd-V3jP.d.ts → lazy-builder-Ci5_YG73.d.cts} +2 -2
  161. package/dist/{lazy-builder-C-rPfWG0.d.cts → lazy-builder-D5GU14TS.d.ts} +2 -2
  162. package/dist/{ledger-3TXNP47J.js → ledger-O7FXOG3D.js} +6 -6
  163. package/dist/materialized-views/index.cjs +21 -2
  164. package/dist/materialized-views/index.cjs.map +1 -1
  165. package/dist/materialized-views/index.d.cts +23 -20
  166. package/dist/materialized-views/index.d.ts +23 -20
  167. package/dist/materialized-views/index.js +12 -12
  168. package/dist/noydb-YAZNH5TI.js +34 -0
  169. package/dist/overlay-views/index.cjs +11 -1
  170. package/dist/overlay-views/index.cjs.map +1 -1
  171. package/dist/overlay-views/index.d.cts +10 -9
  172. package/dist/overlay-views/index.d.ts +10 -9
  173. package/dist/overlay-views/index.js +6 -4
  174. package/dist/periods/index.cjs.map +1 -1
  175. package/dist/periods/index.d.cts +7 -6
  176. package/dist/periods/index.d.ts +7 -6
  177. package/dist/periods/index.js +6 -6
  178. package/dist/{predicate-Dnu81tsS.d.cts → predicate-Bt5ft-9c.d.cts} +28 -3
  179. package/dist/{predicate-Dnu81tsS.d.ts → predicate-Bt5ft-9c.d.ts} +28 -3
  180. package/dist/{public-envelope-PY6NKFLI.js → public-envelope-HMYHZIRH.js} +4 -4
  181. package/dist/query/index.cjs +255 -6
  182. package/dist/query/index.cjs.map +1 -1
  183. package/dist/query/index.d.cts +3 -3
  184. package/dist/query/index.d.ts +3 -3
  185. package/dist/query/index.js +12 -6
  186. package/dist/registry-DKEXOJVO.js +7 -0
  187. package/dist/{registry-3L3N3PTG.js → registry-ST2VNFZC.js} +3 -3
  188. package/dist/registry-UFIK7CSR.js +8 -0
  189. package/dist/registry-ZGYYSM5I.js +8 -0
  190. package/dist/registry-ZGYYSM5I.js.map +1 -0
  191. package/dist/revoke-S6JMSLUN.js +17 -0
  192. package/dist/revoke-S6JMSLUN.js.map +1 -0
  193. package/dist/session/index.cjs.map +1 -1
  194. package/dist/session/index.d.cts +8 -7
  195. package/dist/session/index.d.ts +8 -7
  196. package/dist/session/index.js +3 -3
  197. package/dist/shadow/index.cjs.map +1 -1
  198. package/dist/shadow/index.d.cts +7 -6
  199. package/dist/shadow/index.d.ts +7 -6
  200. package/dist/shadow/index.js +2 -2
  201. package/dist/signer-7NPTB3SQ.js +18 -0
  202. package/dist/signer-7NPTB3SQ.js.map +1 -0
  203. package/dist/snapshots/index.cjs +937 -0
  204. package/dist/snapshots/index.cjs.map +1 -0
  205. package/dist/snapshots/index.d.cts +28 -0
  206. package/dist/snapshots/index.d.ts +28 -0
  207. package/dist/snapshots/index.js +152 -0
  208. package/dist/snapshots/index.js.map +1 -0
  209. package/dist/{stale-HSC5YO2O.js → stale-VKXSXJF4.js} +2 -2
  210. package/dist/stale-VKXSXJF4.js.map +1 -0
  211. package/dist/store/index.cjs.map +1 -1
  212. package/dist/store/index.d.cts +7 -6
  213. package/dist/store/index.d.ts +7 -6
  214. package/dist/store/index.js +2 -2
  215. package/dist/{strategy-DSTrsZ8t.d.cts → strategy-CT2LCKAX.d.cts} +12 -0
  216. package/dist/{strategy-DSTrsZ8t.d.ts → strategy-CT2LCKAX.d.ts} +12 -0
  217. package/dist/sync/index.cjs.map +1 -1
  218. package/dist/sync/index.d.cts +6 -5
  219. package/dist/sync/index.d.ts +6 -5
  220. package/dist/sync/index.js +4 -4
  221. package/dist/team/index.cjs +1 -1
  222. package/dist/team/index.cjs.map +1 -1
  223. package/dist/team/index.d.cts +7 -6
  224. package/dist/team/index.d.ts +7 -6
  225. package/dist/team/index.js +13 -11
  226. package/dist/tx/index.cjs +82 -2
  227. package/dist/tx/index.cjs.map +1 -1
  228. package/dist/tx/index.d.cts +8 -7
  229. package/dist/tx/index.d.ts +8 -7
  230. package/dist/tx/index.js +56 -3
  231. package/dist/tx/index.js.map +1 -1
  232. package/dist/{types-DW9RGSSs.d.ts → types-CaNQm4i8.d.ts} +1270 -259
  233. package/dist/{types-C4lwMKKF.d.cts → types-n2_IfwlQ.d.cts} +1270 -259
  234. package/dist/{index-4agOpzqd.d.ts → ulid-B9SMWj5i.d.ts} +64 -46
  235. package/dist/{index-hdFvZkBP.d.cts → ulid-CLMjmyhG.d.cts} +64 -46
  236. package/dist/util/index.cjs +7 -0
  237. package/dist/util/index.cjs.map +1 -1
  238. package/dist/util/index.d.cts +2 -0
  239. package/dist/util/index.d.ts +2 -0
  240. package/dist/util/index.js +5 -1
  241. package/dist/util/index.js.map +1 -1
  242. package/dist/{with-derivation-g-pGoMzL.d.ts → with-derivation-CVIOPTUf.d.ts} +1 -1
  243. package/dist/{with-derivation-C8LDlV7t.d.cts → with-derivation-aKrtS7Jj.d.cts} +1 -1
  244. package/dist/{with-guard-jI1x9Z3k.d.cts → with-guard-DZQbPzoP.d.cts} +1 -1
  245. package/dist/{with-guard-DWOCK4Ca.d.ts → with-guard-DseETUrF.d.ts} +1 -1
  246. package/dist/{with-materialized-view-DaKR-N6J.d.ts → with-materialized-view-C1eA1_T_.d.cts} +2 -2
  247. package/dist/{with-materialized-view-DcTx4H3j.d.cts → with-materialized-view-DaYaE8-Q.d.ts} +2 -2
  248. package/dist/{with-overlayed-view-N7jYuNOS.d.ts → with-overlayed-view-DQsh2p8H.d.ts} +2 -2
  249. package/dist/{with-overlayed-view-D-6oWAgM.d.cts → with-overlayed-view-DleJfKcV.d.cts} +2 -2
  250. package/package.json +27 -4
  251. package/dist/chunk-23TTQXVO.js.map +0 -1
  252. package/dist/chunk-2AXFIYHT.js.map +0 -1
  253. package/dist/chunk-5ZGZ6HIZ.js.map +0 -1
  254. package/dist/chunk-6HPZY4ON.js.map +0 -1
  255. package/dist/chunk-7H6DOO3E.js.map +0 -1
  256. package/dist/chunk-ADQ5MQ54.js.map +0 -1
  257. package/dist/chunk-CBAHB2BF.js.map +0 -1
  258. package/dist/chunk-DPMFBCV6.js.map +0 -1
  259. package/dist/chunk-DYECX3IX.js.map +0 -1
  260. package/dist/chunk-EGQYGYIU.js.map +0 -1
  261. package/dist/chunk-FCXOFQAJ.js.map +0 -1
  262. package/dist/chunk-HB3Z2GCR.js.map +0 -1
  263. package/dist/chunk-MRIBLZL3.js.map +0 -1
  264. package/dist/chunk-NIOHFJPJ.js.map +0 -1
  265. package/dist/chunk-PA6R5ZCI.js.map +0 -1
  266. package/dist/chunk-PEULZC6M.js.map +0 -1
  267. package/dist/chunk-RD5LYKD6.js.map +0 -1
  268. package/dist/chunk-SIZWEV2Y.js.map +0 -1
  269. package/dist/chunk-UA4RI7OT.js.map +0 -1
  270. package/dist/chunk-UZXLQCHP.js.map +0 -1
  271. package/dist/chunk-VMIO4IXG.js.map +0 -1
  272. package/dist/chunk-YMYK7US4.js.map +0 -1
  273. package/dist/chunk-YS3POABP.js.map +0 -1
  274. package/dist/chunk-Z72JH4KG.js.map +0 -1
  275. package/dist/executor-7E3VFGW7.js +0 -11
  276. package/dist/executor-CEWX2FQI.js +0 -8
  277. package/dist/executor-X4SQ3ZLC.js +0 -8
  278. package/dist/fanout-sidecar-VJ52RIEY.js.map +0 -1
  279. package/dist/registry-O47PUPSY.js +0 -8
  280. package/dist/registry-RFGGMVNJ.js +0 -7
  281. package/dist/registry-WLLMODKN.js +0 -8
  282. /package/dist/{chunk-XGSOTWYX.js.map → chunk-2LPPNWF6.js.map} +0 -0
  283. /package/dist/{chunk-5SCJ5UEF.js.map → chunk-2N62W5YP.js.map} +0 -0
  284. /package/dist/{chunk-537VFZTR.js.map → chunk-3LPV6BXR.js.map} +0 -0
  285. /package/dist/{chunk-I6MX32UC.js.map → chunk-BDV7INMP.js.map} +0 -0
  286. /package/dist/{chunk-MKSA2V7A.js.map → chunk-C3WE6UJY.js.map} +0 -0
  287. /package/dist/{chunk-DYBQG5PQ.js.map → chunk-CXFOITNS.js.map} +0 -0
  288. /package/dist/{chunk-4TFSM22V.js.map → chunk-DJRWA3Q5.js.map} +0 -0
  289. /package/dist/{chunk-5DWL3JBF.js.map → chunk-LSTBFLL2.js.map} +0 -0
  290. /package/dist/{chunk-34YSDCDP.js.map → chunk-PVUUIWHY.js.map} +0 -0
  291. /package/dist/{chunk-WCA2NROQ.js.map → chunk-R233SLY3.js.map} +0 -0
  292. /package/dist/{chunk-P7EQ2S5O.js.map → chunk-RRNA5GKT.js.map} +0 -0
  293. /package/dist/{chunk-ZNOEIM6Y.js.map → chunk-RYIL3PI2.js.map} +0 -0
  294. /package/dist/{chunk-KESP7GOK.js.map → chunk-Y26YV5R3.js.map} +0 -0
  295. /package/dist/{crypto-A7FRXYHC.js.map → crypto-2CRLG4F4.js.map} +0 -0
  296. /package/dist/{delegation-YBA4X4JN.js.map → delegation-ZTRT2PRV.js.map} +0 -0
  297. /package/dist/{executor-7E3VFGW7.js.map → executor-S76VN45G.js.map} +0 -0
  298. /package/dist/{executor-CEWX2FQI.js.map → executor-UCXLIGLW.js.map} +0 -0
  299. /package/dist/{executor-X4SQ3ZLC.js.map → executor-ZCNZJMGR.js.map} +0 -0
  300. /package/dist/{ledger-3TXNP47J.js.map → issue-3W6IVLKH.js.map} +0 -0
  301. /package/dist/{public-envelope-PY6NKFLI.js.map → ledger-O7FXOG3D.js.map} +0 -0
  302. /package/dist/{registry-3L3N3PTG.js.map → noydb-YAZNH5TI.js.map} +0 -0
  303. /package/dist/{registry-O47PUPSY.js.map → public-envelope-HMYHZIRH.js.map} +0 -0
  304. /package/dist/{registry-RFGGMVNJ.js.map → registry-DKEXOJVO.js.map} +0 -0
  305. /package/dist/{registry-WLLMODKN.js.map → registry-ST2VNFZC.js.map} +0 -0
  306. /package/dist/{stale-HSC5YO2O.js.map → registry-UFIK7CSR.js.map} +0 -0
@@ -1,5 +1,4 @@
1
- import { bh as PublicEnvelope, dj as SealingKeyProvider, bu as BundleRecipient, bq as Vault } from './types-DW9RGSSs.js';
2
- import './index-CNwA-B6-.js';
1
+ import { br as PublicEnvelope, bs as SealingKeyProvider, bt as BundleRecipient, bu as RecipientSealer, bv as RecipientHint, bw as Vault } from './types-CaNQm4i8.js';
3
2
 
4
3
  /**
5
4
  * `.noydb` container format — byte layout, header schema, validators.
@@ -125,7 +124,7 @@ interface NoydbBundleHeader {
125
124
  */
126
125
  readonly publicEnvelope?: PublicEnvelope;
127
126
  /**
128
- * Auto-unlock material indicator (#197). When present, the bundle
127
+ * Auto-unlock material indicator. When present, the bundle
129
128
  * body wraps the dump JSON in a structure carrying per-user
130
129
  * passphrases — either plaintext (`'unsealed'`, public-by-design)
131
130
  * or sealed under a `SealingKeyProvider` (`'sealed'`, requires
@@ -137,9 +136,25 @@ interface NoydbBundleHeader {
137
136
  * (sealed).
138
137
  *
139
138
  * Absent → the body is a raw `vault.dump()` JSON string (the
140
- * pre-#197 shape; back-compatible).
139
+ * the legacy shape; back-compatible).
141
140
  */
142
141
  readonly autoUnlock?: 'unsealed' | 'sealed';
142
+ /**
143
+ * Bundle's role in the source → destination lifecycle.
144
+ * - omitted / 'snapshot' (default): backup/copy of an existing vault.
145
+ * - 'extracted-partition': re-keyed projection awaiting adoption.
146
+ */
147
+ readonly bundleKind?: 'snapshot' | 'extracted-partition';
148
+ /**
149
+ * Transfer-seal INDICATOR — metadata only, no payload (the
150
+ * sealed DEKs live in the body). Present iff
151
+ * bundleKind === 'extracted-partition'.
152
+ */
153
+ readonly transferSeal?: {
154
+ readonly v: 1;
155
+ readonly alg: 'aes-256-gcm-pre-shared';
156
+ readonly sealId: string;
157
+ };
143
158
  }
144
159
  /**
145
160
  * Validate a parsed bundle header. Throws on any deviation from
@@ -233,7 +248,7 @@ interface AutoCredential {
233
248
  * - `compression: 'gzip'` — force gzip
234
249
  * - `compression: 'none'` — no compression (round-trip testing only)
235
250
  *
236
- * **Slice filtering** (added in ):
251
+ * **Slice filtering:**
237
252
  * - `collections` — allowlist of collection names to include. Internal
238
253
  * collections (keyrings, ledger) and excluded user collections are
239
254
  * dropped from the bundle. Records inside included collections are
@@ -296,7 +311,7 @@ interface WriteNoydbBundleOptions {
296
311
  */
297
312
  readonly recipients?: readonly BundleRecipient[];
298
313
  /**
299
- * Auto-unlock — unsealed per-user credentials (#215).
314
+ * Auto-unlock — unsealed per-user credentials.
300
315
  *
301
316
  * Generalises `autoPassphrases` to support any bundleable credential
302
317
  * kind (`passphrase` | `password` | `pin`).
@@ -318,7 +333,7 @@ interface WriteNoydbBundleOptions {
318
333
  };
319
334
  /**
320
335
  * Auto-unlock — per-user credentials sealed under a
321
- * {@link SealingKeyProvider} (#215).
336
+ * {@link SealingKeyProvider}.
322
337
  *
323
338
  * Generalises `sealedPassphrases` to support any bundleable
324
339
  * credential kind (`passphrase` | `password` | `pin`).
@@ -328,9 +343,15 @@ interface WriteNoydbBundleOptions {
328
343
  * recipient must hold a provider with a matching `pid` (i.e.,
329
344
  * `provider.id`) to auto-unseal on import.
330
345
  *
331
- * `mode: 'self-target'` is the only supported mode sender and
332
- * recipient share the same provider identity (same iCloud Keychain
333
- * entry, same MDM-provisioned bundle id, same KMS account, etc.).
346
+ * `mode: 'self-target'` sender and recipient share the same
347
+ * provider identity (same iCloud Keychain entry, same
348
+ * MDM-provisioned bundle id, same KMS account, etc.).
349
+ *
350
+ * `mode: 'recipient-target'` — asymmetric sealing via a
351
+ * {@link RecipientSealer}. Each user entry carries a
352
+ * `credential` and a `hint` (the recipient's public material).
353
+ * The bundle can only be unsealed by the holder of the matching
354
+ * private key.
334
355
  *
335
356
  * Mutually exclusive with `autoCredentials`, `autoPassphrases`,
336
357
  * and `sealedPassphrases`.
@@ -339,11 +360,18 @@ interface WriteNoydbBundleOptions {
339
360
  readonly mode: 'self-target';
340
361
  readonly provider: SealingKeyProvider;
341
362
  readonly perUser: Record<string, AutoCredential>;
363
+ } | {
364
+ readonly mode: 'recipient-target';
365
+ readonly provider: RecipientSealer;
366
+ readonly perUser: Record<string, {
367
+ readonly credential: AutoCredential;
368
+ readonly hint: RecipientHint;
369
+ }>;
342
370
  };
343
371
  /**
344
- * @deprecated Use `autoCredentials` instead (#215).
372
+ * @deprecated Use `autoCredentials` instead.
345
373
  *
346
- * Auto-unlock — unsealed per-user passphrases (#197 slice 1).
374
+ * Auto-unlock — unsealed per-user passphrases.
347
375
  *
348
376
  * Public-by-design: anyone holding the bundle bytes can read these
349
377
  * plaintext credentials. Use for demo data, sample vaults,
@@ -361,21 +389,21 @@ interface WriteNoydbBundleOptions {
361
389
  readonly perUser: Record<string, string>;
362
390
  };
363
391
  /**
364
- * @deprecated Use `sealedCredentials` instead (#215).
392
+ * @deprecated Use `sealedCredentials` instead.
365
393
  *
366
394
  * Auto-unlock — per-user passphrases sealed under a
367
- * {@link SealingKeyProvider} (#197 slice 1, self-target only).
395
+ * {@link SealingKeyProvider} (self-target only).
368
396
  *
369
397
  * The hub seals each user's plaintext passphrase under `provider`
370
398
  * and embeds the resulting sealed envelopes in the bundle. The
371
399
  * recipient must hold a provider with a matching `pid` (i.e.,
372
400
  * `provider.id`) to auto-unseal on import.
373
401
  *
374
- * `mode: 'self-target'` is the only mode in slice 1 — sender and
375
- * recipient share the same provider identity (same iCloud Keychain
402
+ * `mode: 'self-target'` is the only mode for `sealedPassphrases` — sender
403
+ * and recipient share the same provider identity (same iCloud Keychain
376
404
  * entry, same MDM-provisioned bundle id, same KMS account, etc.).
377
- * Recipient-target sealing via the `RecipientSealer` interface
378
- * (foundation §11.4) is deferred to a follow-up slice.
405
+ * For recipient-target sealing via the `RecipientSealer` interface,
406
+ * use `sealedCredentials` with `mode: 'recipient-target'` (§11.4).
379
407
  *
380
408
  * Mutually exclusive with `autoCredentials`, `sealedCredentials`,
381
409
  * and `autoPassphrases`.
@@ -396,7 +424,7 @@ interface NoydbBundleReadResult {
396
424
  readonly header: NoydbBundleHeader;
397
425
  readonly dumpJson: string;
398
426
  /**
399
- * Auto-unlock material (#197, widened in #215). Present only when
427
+ * Auto-unlock material. Present only when
400
428
  * the header's `autoUnlock` flag is set AND the body's wrapped
401
429
  * structure survived parsing. Values are typed credentials — either
402
430
  * delivered plain (`kind: 'unsealed'`) or unsealed at read time
@@ -416,9 +444,9 @@ interface NoydbBundleReadResult {
416
444
  };
417
445
  }
418
446
  /**
419
- * Options accepted by {@link readNoydbBundle} for the #197
420
- * auto-unlock paths. Without these the reader behaves exactly as
421
- * pre-#197 (header parsed; body returned as `dumpJson`).
447
+ * Options accepted by {@link readNoydbBundle} for the
448
+ * auto-unlock paths. Without these the reader behaves exactly as before
449
+ * (header parsed; body returned as `dumpJson`).
422
450
  */
423
451
  interface ReadNoydbBundleOptions {
424
452
  /**
@@ -440,31 +468,21 @@ interface ReadNoydbBundleOptions {
440
468
  */
441
469
  readonly attemptUnsealAcrossProviders?: boolean;
442
470
  }
443
- /** Test-only: reset the brotli detection cache between tests. */
444
- declare function resetBrotliSupportCache(): void;
445
471
  /**
446
- * Write a `.noydb` bundle for the given vault.
447
- *
448
- * Pipeline:
449
- * 1. Resolve or create the compartment's stable bundle handle
450
- * via `vault.getBundleHandle()` — same handle on
451
- * every export from the same vault instance, so cloud
452
- * adapters can use it as a primary key.
453
- * 2. `vault.dump()` → JSON string with encrypted records
454
- * inside.
455
- * 3. UTF-8 encode the dump string.
456
- * 4. Compress (brotli if available, gzip fallback by default).
457
- * 5. Compute SHA-256 of the compressed body for integrity.
458
- * 6. Build the minimum-disclosure header from format version,
459
- * handle, body length, body sha.
460
- * 7. Serialize: magic (4) + flags (1) + algo (1) + headerLen (4)
461
- * + header JSON (N) + compressed body (M).
462
- *
463
- * The output is a single `Uint8Array`. Consumers writing to disk
464
- * pass it to `fs.writeFile`; consumers uploading to cloud storage
465
- * pass it as the request body. The `@noy-db/file` adapter wraps
466
- * this with a `saveBundle(path, vault)` helper.
472
+ * Transfer-seal payload. The destination DEKs, exported to raw
473
+ * bytes and AES-256-GCM-sealed *as a set* under the one-time transfer
474
+ * key. `adoptPartition` unseals this; `createOwnerOnAdoptedPartition`
475
+ * re-wraps the raw DEKs under the recipient's KEK.
467
476
  */
477
+ interface TransferSealPayload {
478
+ readonly v: 1;
479
+ readonly alg: 'aes-256-gcm-pre-shared';
480
+ readonly sealId: string;
481
+ /** base64(AES-256-GCM(transferKey, JSON of { collection: base64(rawDEK) })) — iv ‖ ct ‖ tag. */
482
+ readonly payload: string;
483
+ }
484
+ /** Test-only: reset the brotli detection cache between tests. */
485
+ declare function resetBrotliSupportCache(): void;
468
486
  declare function writeNoydbBundle(vault: Vault, opts?: WriteNoydbBundleOptions): Promise<Uint8Array>;
469
487
  /**
470
488
  * Read just the bundle header — no body decompression, no
@@ -582,4 +600,4 @@ declare function generateULID(): string;
582
600
  */
583
601
  declare function isULID(value: string): boolean;
584
602
 
585
- export { type AutoCredential as A, type CompressionAlgo as C, FLAG_COMPRESSED as F, NOYDB_BUNDLE_FORMAT_VERSION as N, type ReadNoydbBundleOptions as R, type WriteNoydbBundleOptions as W, type AutoCredentialKind as a, NOYDB_BUNDLE_MAGIC as b, NOYDB_BUNDLE_PREFIX_BYTES as c, type NoydbBundleHeader as d, type NoydbBundleReadResult as e, readNoydbBundleHeader as f, generateULID as g, hasNoydbBundleMagic as h, isULID as i, readNoydbBundlePublicEnvelope as j, resetBrotliSupportCache as k, COMPRESSION_BROTLI as l, COMPRESSION_GZIP as m, COMPRESSION_NONE as n, FLAG_HAS_INTEGRITY_HASH as o, encodeBundleHeader as p, readNoydbBundle as r, validateBundleHeader as v, writeNoydbBundle as w };
603
+ export { type AutoCredential as A, COMPRESSION_BROTLI as C, FLAG_COMPRESSED as F, NOYDB_BUNDLE_FORMAT_VERSION as N, type ReadNoydbBundleOptions as R, type TransferSealPayload as T, type WriteNoydbBundleOptions as W, COMPRESSION_GZIP as a, COMPRESSION_NONE as b, type CompressionAlgo as c, FLAG_HAS_INTEGRITY_HASH as d, NOYDB_BUNDLE_MAGIC as e, NOYDB_BUNDLE_PREFIX_BYTES as f, type NoydbBundleHeader as g, type NoydbBundleReadResult as h, encodeBundleHeader as i, generateULID as j, isULID as k, readNoydbBundleHeader as l, resetBrotliSupportCache as m, type AutoCredentialKind as n, hasNoydbBundleMagic as o, readNoydbBundlePublicEnvelope as p, readNoydbBundle as r, validateBundleHeader as v, writeNoydbBundle as w };
@@ -1,5 +1,4 @@
1
- import { bh as PublicEnvelope, dj as SealingKeyProvider, bu as BundleRecipient, bq as Vault } from './types-C4lwMKKF.cjs';
2
- import './index-CmVgTkqk.cjs';
1
+ import { br as PublicEnvelope, bs as SealingKeyProvider, bt as BundleRecipient, bu as RecipientSealer, bv as RecipientHint, bw as Vault } from './types-n2_IfwlQ.cjs';
3
2
 
4
3
  /**
5
4
  * `.noydb` container format — byte layout, header schema, validators.
@@ -125,7 +124,7 @@ interface NoydbBundleHeader {
125
124
  */
126
125
  readonly publicEnvelope?: PublicEnvelope;
127
126
  /**
128
- * Auto-unlock material indicator (#197). When present, the bundle
127
+ * Auto-unlock material indicator. When present, the bundle
129
128
  * body wraps the dump JSON in a structure carrying per-user
130
129
  * passphrases — either plaintext (`'unsealed'`, public-by-design)
131
130
  * or sealed under a `SealingKeyProvider` (`'sealed'`, requires
@@ -137,9 +136,25 @@ interface NoydbBundleHeader {
137
136
  * (sealed).
138
137
  *
139
138
  * Absent → the body is a raw `vault.dump()` JSON string (the
140
- * pre-#197 shape; back-compatible).
139
+ * the legacy shape; back-compatible).
141
140
  */
142
141
  readonly autoUnlock?: 'unsealed' | 'sealed';
142
+ /**
143
+ * Bundle's role in the source → destination lifecycle.
144
+ * - omitted / 'snapshot' (default): backup/copy of an existing vault.
145
+ * - 'extracted-partition': re-keyed projection awaiting adoption.
146
+ */
147
+ readonly bundleKind?: 'snapshot' | 'extracted-partition';
148
+ /**
149
+ * Transfer-seal INDICATOR — metadata only, no payload (the
150
+ * sealed DEKs live in the body). Present iff
151
+ * bundleKind === 'extracted-partition'.
152
+ */
153
+ readonly transferSeal?: {
154
+ readonly v: 1;
155
+ readonly alg: 'aes-256-gcm-pre-shared';
156
+ readonly sealId: string;
157
+ };
143
158
  }
144
159
  /**
145
160
  * Validate a parsed bundle header. Throws on any deviation from
@@ -233,7 +248,7 @@ interface AutoCredential {
233
248
  * - `compression: 'gzip'` — force gzip
234
249
  * - `compression: 'none'` — no compression (round-trip testing only)
235
250
  *
236
- * **Slice filtering** (added in ):
251
+ * **Slice filtering:**
237
252
  * - `collections` — allowlist of collection names to include. Internal
238
253
  * collections (keyrings, ledger) and excluded user collections are
239
254
  * dropped from the bundle. Records inside included collections are
@@ -296,7 +311,7 @@ interface WriteNoydbBundleOptions {
296
311
  */
297
312
  readonly recipients?: readonly BundleRecipient[];
298
313
  /**
299
- * Auto-unlock — unsealed per-user credentials (#215).
314
+ * Auto-unlock — unsealed per-user credentials.
300
315
  *
301
316
  * Generalises `autoPassphrases` to support any bundleable credential
302
317
  * kind (`passphrase` | `password` | `pin`).
@@ -318,7 +333,7 @@ interface WriteNoydbBundleOptions {
318
333
  };
319
334
  /**
320
335
  * Auto-unlock — per-user credentials sealed under a
321
- * {@link SealingKeyProvider} (#215).
336
+ * {@link SealingKeyProvider}.
322
337
  *
323
338
  * Generalises `sealedPassphrases` to support any bundleable
324
339
  * credential kind (`passphrase` | `password` | `pin`).
@@ -328,9 +343,15 @@ interface WriteNoydbBundleOptions {
328
343
  * recipient must hold a provider with a matching `pid` (i.e.,
329
344
  * `provider.id`) to auto-unseal on import.
330
345
  *
331
- * `mode: 'self-target'` is the only supported mode sender and
332
- * recipient share the same provider identity (same iCloud Keychain
333
- * entry, same MDM-provisioned bundle id, same KMS account, etc.).
346
+ * `mode: 'self-target'` sender and recipient share the same
347
+ * provider identity (same iCloud Keychain entry, same
348
+ * MDM-provisioned bundle id, same KMS account, etc.).
349
+ *
350
+ * `mode: 'recipient-target'` — asymmetric sealing via a
351
+ * {@link RecipientSealer}. Each user entry carries a
352
+ * `credential` and a `hint` (the recipient's public material).
353
+ * The bundle can only be unsealed by the holder of the matching
354
+ * private key.
334
355
  *
335
356
  * Mutually exclusive with `autoCredentials`, `autoPassphrases`,
336
357
  * and `sealedPassphrases`.
@@ -339,11 +360,18 @@ interface WriteNoydbBundleOptions {
339
360
  readonly mode: 'self-target';
340
361
  readonly provider: SealingKeyProvider;
341
362
  readonly perUser: Record<string, AutoCredential>;
363
+ } | {
364
+ readonly mode: 'recipient-target';
365
+ readonly provider: RecipientSealer;
366
+ readonly perUser: Record<string, {
367
+ readonly credential: AutoCredential;
368
+ readonly hint: RecipientHint;
369
+ }>;
342
370
  };
343
371
  /**
344
- * @deprecated Use `autoCredentials` instead (#215).
372
+ * @deprecated Use `autoCredentials` instead.
345
373
  *
346
- * Auto-unlock — unsealed per-user passphrases (#197 slice 1).
374
+ * Auto-unlock — unsealed per-user passphrases.
347
375
  *
348
376
  * Public-by-design: anyone holding the bundle bytes can read these
349
377
  * plaintext credentials. Use for demo data, sample vaults,
@@ -361,21 +389,21 @@ interface WriteNoydbBundleOptions {
361
389
  readonly perUser: Record<string, string>;
362
390
  };
363
391
  /**
364
- * @deprecated Use `sealedCredentials` instead (#215).
392
+ * @deprecated Use `sealedCredentials` instead.
365
393
  *
366
394
  * Auto-unlock — per-user passphrases sealed under a
367
- * {@link SealingKeyProvider} (#197 slice 1, self-target only).
395
+ * {@link SealingKeyProvider} (self-target only).
368
396
  *
369
397
  * The hub seals each user's plaintext passphrase under `provider`
370
398
  * and embeds the resulting sealed envelopes in the bundle. The
371
399
  * recipient must hold a provider with a matching `pid` (i.e.,
372
400
  * `provider.id`) to auto-unseal on import.
373
401
  *
374
- * `mode: 'self-target'` is the only mode in slice 1 — sender and
375
- * recipient share the same provider identity (same iCloud Keychain
402
+ * `mode: 'self-target'` is the only mode for `sealedPassphrases` — sender
403
+ * and recipient share the same provider identity (same iCloud Keychain
376
404
  * entry, same MDM-provisioned bundle id, same KMS account, etc.).
377
- * Recipient-target sealing via the `RecipientSealer` interface
378
- * (foundation §11.4) is deferred to a follow-up slice.
405
+ * For recipient-target sealing via the `RecipientSealer` interface,
406
+ * use `sealedCredentials` with `mode: 'recipient-target'` (§11.4).
379
407
  *
380
408
  * Mutually exclusive with `autoCredentials`, `sealedCredentials`,
381
409
  * and `autoPassphrases`.
@@ -396,7 +424,7 @@ interface NoydbBundleReadResult {
396
424
  readonly header: NoydbBundleHeader;
397
425
  readonly dumpJson: string;
398
426
  /**
399
- * Auto-unlock material (#197, widened in #215). Present only when
427
+ * Auto-unlock material. Present only when
400
428
  * the header's `autoUnlock` flag is set AND the body's wrapped
401
429
  * structure survived parsing. Values are typed credentials — either
402
430
  * delivered plain (`kind: 'unsealed'`) or unsealed at read time
@@ -416,9 +444,9 @@ interface NoydbBundleReadResult {
416
444
  };
417
445
  }
418
446
  /**
419
- * Options accepted by {@link readNoydbBundle} for the #197
420
- * auto-unlock paths. Without these the reader behaves exactly as
421
- * pre-#197 (header parsed; body returned as `dumpJson`).
447
+ * Options accepted by {@link readNoydbBundle} for the
448
+ * auto-unlock paths. Without these the reader behaves exactly as before
449
+ * (header parsed; body returned as `dumpJson`).
422
450
  */
423
451
  interface ReadNoydbBundleOptions {
424
452
  /**
@@ -440,31 +468,21 @@ interface ReadNoydbBundleOptions {
440
468
  */
441
469
  readonly attemptUnsealAcrossProviders?: boolean;
442
470
  }
443
- /** Test-only: reset the brotli detection cache between tests. */
444
- declare function resetBrotliSupportCache(): void;
445
471
  /**
446
- * Write a `.noydb` bundle for the given vault.
447
- *
448
- * Pipeline:
449
- * 1. Resolve or create the compartment's stable bundle handle
450
- * via `vault.getBundleHandle()` — same handle on
451
- * every export from the same vault instance, so cloud
452
- * adapters can use it as a primary key.
453
- * 2. `vault.dump()` → JSON string with encrypted records
454
- * inside.
455
- * 3. UTF-8 encode the dump string.
456
- * 4. Compress (brotli if available, gzip fallback by default).
457
- * 5. Compute SHA-256 of the compressed body for integrity.
458
- * 6. Build the minimum-disclosure header from format version,
459
- * handle, body length, body sha.
460
- * 7. Serialize: magic (4) + flags (1) + algo (1) + headerLen (4)
461
- * + header JSON (N) + compressed body (M).
462
- *
463
- * The output is a single `Uint8Array`. Consumers writing to disk
464
- * pass it to `fs.writeFile`; consumers uploading to cloud storage
465
- * pass it as the request body. The `@noy-db/file` adapter wraps
466
- * this with a `saveBundle(path, vault)` helper.
472
+ * Transfer-seal payload. The destination DEKs, exported to raw
473
+ * bytes and AES-256-GCM-sealed *as a set* under the one-time transfer
474
+ * key. `adoptPartition` unseals this; `createOwnerOnAdoptedPartition`
475
+ * re-wraps the raw DEKs under the recipient's KEK.
467
476
  */
477
+ interface TransferSealPayload {
478
+ readonly v: 1;
479
+ readonly alg: 'aes-256-gcm-pre-shared';
480
+ readonly sealId: string;
481
+ /** base64(AES-256-GCM(transferKey, JSON of { collection: base64(rawDEK) })) — iv ‖ ct ‖ tag. */
482
+ readonly payload: string;
483
+ }
484
+ /** Test-only: reset the brotli detection cache between tests. */
485
+ declare function resetBrotliSupportCache(): void;
468
486
  declare function writeNoydbBundle(vault: Vault, opts?: WriteNoydbBundleOptions): Promise<Uint8Array>;
469
487
  /**
470
488
  * Read just the bundle header — no body decompression, no
@@ -582,4 +600,4 @@ declare function generateULID(): string;
582
600
  */
583
601
  declare function isULID(value: string): boolean;
584
602
 
585
- export { type AutoCredential as A, type CompressionAlgo as C, FLAG_COMPRESSED as F, NOYDB_BUNDLE_FORMAT_VERSION as N, type ReadNoydbBundleOptions as R, type WriteNoydbBundleOptions as W, type AutoCredentialKind as a, NOYDB_BUNDLE_MAGIC as b, NOYDB_BUNDLE_PREFIX_BYTES as c, type NoydbBundleHeader as d, type NoydbBundleReadResult as e, readNoydbBundleHeader as f, generateULID as g, hasNoydbBundleMagic as h, isULID as i, readNoydbBundlePublicEnvelope as j, resetBrotliSupportCache as k, COMPRESSION_BROTLI as l, COMPRESSION_GZIP as m, COMPRESSION_NONE as n, FLAG_HAS_INTEGRITY_HASH as o, encodeBundleHeader as p, readNoydbBundle as r, validateBundleHeader as v, writeNoydbBundle as w };
603
+ export { type AutoCredential as A, COMPRESSION_BROTLI as C, FLAG_COMPRESSED as F, NOYDB_BUNDLE_FORMAT_VERSION as N, type ReadNoydbBundleOptions as R, type TransferSealPayload as T, type WriteNoydbBundleOptions as W, COMPRESSION_GZIP as a, COMPRESSION_NONE as b, type CompressionAlgo as c, FLAG_HAS_INTEGRITY_HASH as d, NOYDB_BUNDLE_MAGIC as e, NOYDB_BUNDLE_PREFIX_BYTES as f, type NoydbBundleHeader as g, type NoydbBundleReadResult as h, encodeBundleHeader as i, generateULID as j, isULID as k, readNoydbBundleHeader as l, resetBrotliSupportCache as m, type AutoCredentialKind as n, hasNoydbBundleMagic as o, readNoydbBundlePublicEnvelope as p, readNoydbBundle as r, validateBundleHeader as v, writeNoydbBundle as w };
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/util/index.ts
21
21
  var util_exports = {};
22
22
  __export(util_exports, {
23
+ isDiscriminant: () => isDiscriminant,
23
24
  sanitizeFilename: () => sanitizeFilename
24
25
  });
25
26
  module.exports = __toCommonJS(util_exports);
@@ -223,8 +224,14 @@ function truncateToByteCap(s, max) {
223
224
  }
224
225
  return out;
225
226
  }
227
+
228
+ // src/util/discriminant.ts
229
+ function isDiscriminant(record, key, value) {
230
+ return record[key] === value;
231
+ }
226
232
  // Annotate the CommonJS export names for ESM import in node:
227
233
  0 && (module.exports = {
234
+ isDiscriminant,
228
235
  sanitizeFilename
229
236
  });
230
237
  //# sourceMappingURL=index.cjs.map