@noy-db/hub 0.6.0-pre.9 → 0.7.0-pre.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (572) hide show
  1. package/CHANGELOG.md +7127 -0
  2. package/README.md +1 -1
  3. package/codemods/0.4.0-pre.json +24 -0
  4. package/codemods/0.6.0-pre.json +229 -0
  5. package/codemods/0.7.0-pre.json +258 -0
  6. package/dist/api-EQYRTZO2.js +20 -0
  7. package/dist/as/index.js +146 -0
  8. package/dist/as/index.js.map +1 -0
  9. package/dist/at/index.js +23 -0
  10. package/dist/attestation/index.js +19 -19
  11. package/dist/{backup-KULFZ2T4.js → backup-Z7ZBTAQ6.js} +36 -18
  12. package/dist/backup-Z7ZBTAQ6.js.map +1 -0
  13. package/dist/blobs/index.js +22 -20
  14. package/dist/blobs/index.js.map +1 -1
  15. package/dist/broker/index.js +12 -12
  16. package/dist/by/index.js +11 -0
  17. package/dist/cargo/index.js +40 -36
  18. package/dist/{chunk-YAWK6AWF.js → chunk-225O5CXQ.js} +2 -2
  19. package/dist/{chunk-MSWYQLMQ.js → chunk-2GXEQUEX.js} +2 -2
  20. package/dist/chunk-2GXEQUEX.js.map +1 -0
  21. package/dist/{chunk-3URQC7EH.js → chunk-2LPVI4PX.js} +355 -132
  22. package/dist/chunk-2LPVI4PX.js.map +1 -0
  23. package/dist/{chunk-JJNOLSG5.js → chunk-3L2MVE36.js} +15 -16
  24. package/dist/chunk-3L2MVE36.js.map +1 -0
  25. package/dist/{chunk-OF3L2SD6.js → chunk-3QARDAYW.js} +2 -2
  26. package/dist/{chunk-WLZ47GSL.js → chunk-467SKJ65.js} +12 -10
  27. package/dist/{chunk-WLZ47GSL.js.map → chunk-467SKJ65.js.map} +1 -1
  28. package/dist/{chunk-W3TVWF6N.js → chunk-4A4TYISP.js} +2 -2
  29. package/dist/{chunk-ZJADGNYF.js → chunk-4AOERLTV.js} +1 -1
  30. package/dist/chunk-4AOERLTV.js.map +1 -0
  31. package/dist/{chunk-CCZJJ4I2.js → chunk-4G25SDQL.js} +6 -6
  32. package/dist/{chunk-4I72F5DF.js → chunk-4LPF226H.js} +11 -14
  33. package/dist/chunk-4LPF226H.js.map +1 -0
  34. package/dist/{chunk-7F4DBNSP.js → chunk-4ZPE6SKS.js} +135 -18
  35. package/dist/chunk-4ZPE6SKS.js.map +1 -0
  36. package/dist/{chunk-7TSYBD3E.js → chunk-5263OEM3.js} +2 -2
  37. package/dist/{chunk-WFUIE565.js → chunk-57JTHWLQ.js} +17 -14
  38. package/dist/chunk-57JTHWLQ.js.map +1 -0
  39. package/dist/{chunk-FNSMZQS4.js → chunk-5ACAVJUI.js} +2 -2
  40. package/dist/{chunk-PDLLCOGD.js → chunk-5AFMP532.js} +20 -17
  41. package/dist/chunk-5AFMP532.js.map +1 -0
  42. package/dist/{chunk-JRKZTEZZ.js → chunk-5W7YXFV5.js} +444 -73
  43. package/dist/chunk-5W7YXFV5.js.map +1 -0
  44. package/dist/chunk-6EW2UCVF.js +190 -0
  45. package/dist/chunk-6EW2UCVF.js.map +1 -0
  46. package/dist/{chunk-4VUPLMZ6.js → chunk-6FOGTKBY.js} +68 -73
  47. package/dist/chunk-6FOGTKBY.js.map +1 -0
  48. package/dist/{chunk-VMCCGUQB.js → chunk-7LYUJNU3.js} +2 -2
  49. package/dist/{chunk-52JPHN5N.js → chunk-A2YW5EMU.js} +27 -149
  50. package/dist/chunk-A2YW5EMU.js.map +1 -0
  51. package/dist/{chunk-WLYIROCJ.js → chunk-AB5P32RE.js} +2 -2
  52. package/dist/{chunk-PL2GHSCM.js → chunk-ALB64CZM.js} +157 -90
  53. package/dist/chunk-ALB64CZM.js.map +1 -0
  54. package/dist/{chunk-SUFG5E73.js → chunk-ALUNQEBY.js} +2 -2
  55. package/dist/{chunk-CADUYBQD.js → chunk-ATL3ZVXT.js} +2 -2
  56. package/dist/{chunk-BWVKEOPE.js → chunk-ATV637J7.js} +7 -11
  57. package/dist/chunk-ATV637J7.js.map +1 -0
  58. package/dist/{chunk-DG27IUVI.js → chunk-CBRS2NEK.js} +2 -11
  59. package/dist/chunk-CBRS2NEK.js.map +1 -0
  60. package/dist/{chunk-7MNBICB5.js → chunk-CN6B5PEN.js} +16 -14
  61. package/dist/chunk-CN6B5PEN.js.map +1 -0
  62. package/dist/{chunk-6FJWSWFT.js → chunk-DBNYPLWY.js} +3 -3
  63. package/dist/{chunk-5JY5TSVY.js → chunk-DFAUMLD7.js} +25 -31
  64. package/dist/chunk-DFAUMLD7.js.map +1 -0
  65. package/dist/{chunk-FFDNKRCY.js → chunk-DKWPJOYH.js} +2 -2
  66. package/dist/chunk-DKWPJOYH.js.map +1 -0
  67. package/dist/{chunk-VJFMXYKP.js → chunk-E6YA6UAP.js} +2 -2
  68. package/dist/{chunk-WASHZV34.js → chunk-F23WQK3G.js} +65 -27
  69. package/dist/chunk-F23WQK3G.js.map +1 -0
  70. package/dist/{chunk-JIUVJ4M7.js → chunk-F7ZFRPGQ.js} +3 -3
  71. package/dist/{chunk-HXGUIPQB.js → chunk-FOG7YEJP.js} +3 -3
  72. package/dist/{chunk-QULVCV3M.js → chunk-GK4DRVUD.js} +6 -6
  73. package/dist/chunk-GK4DRVUD.js.map +1 -0
  74. package/dist/{chunk-BRVW2GS5.js → chunk-H36KSN6X.js} +87 -34
  75. package/dist/chunk-H36KSN6X.js.map +1 -0
  76. package/dist/{chunk-O2ERS4UJ.js → chunk-H4M7ADXY.js} +81 -52
  77. package/dist/chunk-H4M7ADXY.js.map +1 -0
  78. package/dist/{chunk-FZ6NYJ7L.js → chunk-H7HP56F6.js} +11 -8
  79. package/dist/chunk-H7HP56F6.js.map +1 -0
  80. package/dist/chunk-HK67PX4J.js +27 -0
  81. package/dist/chunk-HK67PX4J.js.map +1 -0
  82. package/dist/{chunk-X56RTUK3.js → chunk-HM4JSXX2.js} +3 -3
  83. package/dist/{chunk-AHLJSVRL.js → chunk-HTGRQZFB.js} +5 -7
  84. package/dist/chunk-HTGRQZFB.js.map +1 -0
  85. package/dist/{chunk-GQ3BX5EA.js → chunk-I3ISCYT7.js} +2 -2
  86. package/dist/{chunk-Q6TEJXBX.js → chunk-IESNYJXZ.js} +31 -49
  87. package/dist/chunk-IESNYJXZ.js.map +1 -0
  88. package/dist/{chunk-FUHKW252.js → chunk-J4MN6XIU.js} +2 -2
  89. package/dist/{chunk-ADW22QSB.js → chunk-J4UJ5FRV.js} +4 -4
  90. package/dist/{chunk-HNGSV2YC.js → chunk-JBIV4FLR.js} +67 -10
  91. package/dist/chunk-JBIV4FLR.js.map +1 -0
  92. package/dist/{chunk-HVQGCKY4.js → chunk-JVLSU7S2.js} +2 -2
  93. package/dist/{chunk-AR2JDFAE.js → chunk-KDJGJR7F.js} +2 -2
  94. package/dist/{chunk-NPP5R7FF.js → chunk-KN4W2OQ4.js} +22 -18
  95. package/dist/chunk-KN4W2OQ4.js.map +1 -0
  96. package/dist/{chunk-G6S5VVHP.js → chunk-L6GTLZRK.js} +10 -10
  97. package/dist/chunk-L6GTLZRK.js.map +1 -0
  98. package/dist/{chunk-2BMRJ6LQ.js → chunk-LF6DMX4C.js} +8 -11
  99. package/dist/{chunk-2BMRJ6LQ.js.map → chunk-LF6DMX4C.js.map} +1 -1
  100. package/dist/chunk-LFUID7OW.js +163 -0
  101. package/dist/chunk-LFUID7OW.js.map +1 -0
  102. package/dist/{chunk-747LRSOO.js → chunk-LKFKXS5K.js} +2 -2
  103. package/dist/{chunk-U5O6GIWZ.js → chunk-LR4Z47QD.js} +3 -3
  104. package/dist/{chunk-VZ3XFUQ7.js → chunk-MTBXJAS4.js} +16 -22
  105. package/dist/chunk-MTBXJAS4.js.map +1 -0
  106. package/dist/chunk-N4CNVSUF.js +66 -0
  107. package/dist/chunk-N4CNVSUF.js.map +1 -0
  108. package/dist/{chunk-RTAMLDWP.js → chunk-NLKLXXTO.js} +2 -2
  109. package/dist/{chunk-IGJCYUT5.js → chunk-NSITFOCJ.js} +1 -1
  110. package/dist/chunk-NSITFOCJ.js.map +1 -0
  111. package/dist/{chunk-FDX7OWWI.js → chunk-OPXR4PB2.js} +2 -2
  112. package/dist/{chunk-4GZ6XOVW.js → chunk-OWLVBOWO.js} +44 -42
  113. package/dist/chunk-OWLVBOWO.js.map +1 -0
  114. package/dist/{chunk-Z45YRGFO.js → chunk-P6ASQOZR.js} +2 -2
  115. package/dist/{chunk-5O5HRRTV.js → chunk-PCQDY6QN.js} +7 -7
  116. package/dist/{chunk-5O5HRRTV.js.map → chunk-PCQDY6QN.js.map} +1 -1
  117. package/dist/{chunk-BEFVYAR5.js → chunk-PGFKIOR3.js} +4 -4
  118. package/dist/chunk-PGFKIOR3.js.map +1 -0
  119. package/dist/{chunk-3FSX6LDG.js → chunk-POS53FG6.js} +18 -3
  120. package/dist/{chunk-3FSX6LDG.js.map → chunk-POS53FG6.js.map} +1 -1
  121. package/dist/{chunk-3IXIU6FP.js → chunk-PQ6Z2TAP.js} +7 -10
  122. package/dist/chunk-PQ6Z2TAP.js.map +1 -0
  123. package/dist/{chunk-CEJWMBXO.js → chunk-PUJTKLPL.js} +6 -2
  124. package/dist/chunk-PUJTKLPL.js.map +1 -0
  125. package/dist/{chunk-GAG7QOVO.js → chunk-QGJ4XIA7.js} +53 -18
  126. package/dist/chunk-QGJ4XIA7.js.map +1 -0
  127. package/dist/{chunk-2DHSSLOD.js → chunk-QHJKK77B.js} +13 -15
  128. package/dist/chunk-QHJKK77B.js.map +1 -0
  129. package/dist/{chunk-2Z3NCLNX.js → chunk-QI5NWLVW.js} +7 -7
  130. package/dist/{chunk-6SAFL5YE.js → chunk-RC4BROYR.js} +3 -3
  131. package/dist/{chunk-NJDQ4YSV.js → chunk-RDHUZ674.js} +4 -4
  132. package/dist/{chunk-YPYHVOXP.js → chunk-RK7N4OQ5.js} +2 -2
  133. package/dist/chunk-RK7N4OQ5.js.map +1 -0
  134. package/dist/{chunk-3737A6EA.js → chunk-S2VG3ABP.js} +127 -31
  135. package/dist/chunk-S2VG3ABP.js.map +1 -0
  136. package/dist/{chunk-3JVXVJ7L.js → chunk-S35S77YU.js} +10 -10
  137. package/dist/{chunk-KUDZVJKQ.js → chunk-SHILAQH5.js} +2 -2
  138. package/dist/{chunk-4UVDI4XE.js → chunk-T3PHCEN4.js} +4 -4
  139. package/dist/{chunk-55LKVALY.js → chunk-T7IR4N2S.js} +1 -3
  140. package/dist/chunk-T7IR4N2S.js.map +1 -0
  141. package/dist/{chunk-RXYYFSBB.js → chunk-TOV6VMHF.js} +6 -6
  142. package/dist/chunk-TOV6VMHF.js.map +1 -0
  143. package/dist/{chunk-W77KZHCW.js → chunk-TVIFAHZR.js} +16 -17
  144. package/dist/chunk-TVIFAHZR.js.map +1 -0
  145. package/dist/chunk-UBSFPGVJ.js +1 -0
  146. package/dist/{chunk-FAXZQ5UF.js → chunk-UCUALOSM.js} +2 -2
  147. package/dist/{chunk-4HDYQL3J.js → chunk-VAG47QHV.js} +2 -2
  148. package/dist/{chunk-35EBKWQU.js → chunk-VFIWDPXZ.js} +4 -4
  149. package/dist/{chunk-5ZKS6ZE2.js → chunk-VTG7327U.js} +4 -4
  150. package/dist/chunk-VTG7327U.js.map +1 -0
  151. package/dist/{chunk-VCETL77O.js → chunk-W5LHQXZU.js} +36 -7
  152. package/dist/chunk-W5LHQXZU.js.map +1 -0
  153. package/dist/{chunk-6NVPFKN3.js → chunk-WK5FSW7T.js} +92 -35
  154. package/dist/chunk-WK5FSW7T.js.map +1 -0
  155. package/dist/{chunk-HNHCQ556.js → chunk-WLLUM35R.js} +2 -2
  156. package/dist/{chunk-YJ6IONGA.js → chunk-X62MEF2O.js} +13 -5
  157. package/dist/chunk-X62MEF2O.js.map +1 -0
  158. package/dist/{chunk-7G6VDWXB.js → chunk-X67FCULK.js} +5 -5
  159. package/dist/chunk-X67FCULK.js.map +1 -0
  160. package/dist/{chunk-UHXCLPGC.js → chunk-XDVVBETV.js} +2 -2
  161. package/dist/chunk-XDVVBETV.js.map +1 -0
  162. package/dist/chunk-XJ3FEKEY.js +15 -0
  163. package/dist/chunk-XJ3FEKEY.js.map +1 -0
  164. package/dist/{chunk-E6427JU2.js → chunk-XSN63FUS.js} +19 -3
  165. package/dist/chunk-XSN63FUS.js.map +1 -0
  166. package/dist/{chunk-JRCYZEHU.js → chunk-XVU7J43V.js} +2 -2
  167. package/dist/{chunk-2GAJGUNM.js → chunk-Y3YLJORD.js} +408 -260
  168. package/dist/chunk-Y3YLJORD.js.map +1 -0
  169. package/dist/{chunk-6BU3L4UE.js → chunk-Y6GZ2P4M.js} +7 -10
  170. package/dist/chunk-Y6GZ2P4M.js.map +1 -0
  171. package/dist/{chunk-DMQCLZ4Z.js → chunk-YCSM3GZU.js} +2 -2
  172. package/dist/{chunk-RV3ARMPN.js → chunk-YKPGQJFU.js} +30 -180
  173. package/dist/chunk-YKPGQJFU.js.map +1 -0
  174. package/dist/{chunk-FMQJZH4R.js → chunk-YMLQBZFJ.js} +6 -6
  175. package/dist/{chunk-6HFM7EIT.js → chunk-YPSOHDNC.js} +2 -2
  176. package/dist/{chunk-CDB2HVQW.js → chunk-YXA2TCTZ.js} +14 -15
  177. package/dist/chunk-YXA2TCTZ.js.map +1 -0
  178. package/dist/{chunk-N35NC4JH.js → chunk-Z2PWOSCJ.js} +2 -2
  179. package/dist/{chunk-XWX7GL56.js → chunk-Z2WK53N6.js} +47 -23
  180. package/dist/chunk-Z2WK53N6.js.map +1 -0
  181. package/dist/{chunk-HPLWFNG4.js → chunk-Z7ZXZL6Y.js} +2 -2
  182. package/dist/{chunk-PNKHAKQ7.js → chunk-ZO252Q5S.js} +17 -10
  183. package/dist/chunk-ZO252Q5S.js.map +1 -0
  184. package/dist/classified/index.js +5 -5
  185. package/dist/{classified-marker-2KJAXRRO.js → classified-marker-BSQHU4JT.js} +3 -3
  186. package/dist/collection-facade-LG3NYZVB.js +45 -0
  187. package/dist/{computed-6G5M3UPH.js → computed-ASBNTLOK.js} +3 -3
  188. package/dist/consent/index.js +10 -10
  189. package/dist/cover/index.js +10 -3
  190. package/dist/custody/index.js +12 -11
  191. package/dist/{dead-filter-DCB62VWW.js → dead-filter-QKU56XTQ.js} +2 -2
  192. package/dist/debug/index.js +1 -1
  193. package/dist/{delegation-MO7YZYJS.js → delegation-XWRPYODW.js} +24 -23
  194. package/dist/delegation-XWRPYODW.js.map +1 -0
  195. package/dist/derivations/index.js +12 -12
  196. package/dist/derive-CXHCY46K.js +22 -0
  197. package/dist/directory/index.js +10 -10
  198. package/dist/{dispatch-MJ6SHB3Y.js → dispatch-4AP4PUZU.js} +18 -18
  199. package/dist/{dispatch-FZEAWKVM.js → dispatch-VR4LRXZ7.js} +9 -6
  200. package/dist/dispatch-VR4LRXZ7.js.map +1 -0
  201. package/dist/{enclave-JU4YIEPB.js → enclave-NYPT7WA7.js} +31 -9
  202. package/dist/executor-3KFRQETS.js +29 -0
  203. package/dist/executor-AFHQYRAU.js +9 -0
  204. package/dist/executor-YYDW6XQI.js +9 -0
  205. package/dist/export-accessible-BX2ILB4C.js +23 -0
  206. package/dist/extract-partition-UPOVITFI.js +38 -0
  207. package/dist/{fanout-sidecar-NNAJQXMX.js → fanout-sidecar-IWP3R4RC.js} +18 -27
  208. package/dist/fanout-sidecar-IWP3R4RC.js.map +1 -0
  209. package/dist/{fence-watcher-DHQ775JB.js → fence-watcher-ZVSMLKQD.js} +1 -1
  210. package/dist/fence-watcher-ZVSMLKQD.js.map +1 -0
  211. package/dist/find-SZBL2HPB.js +11 -0
  212. package/dist/forget/index.js +9 -9
  213. package/dist/guards/index.js +4 -4
  214. package/dist/history/index.js +23 -20
  215. package/dist/history/index.js.map +1 -1
  216. package/dist/i18n/index.js +14 -14
  217. package/dist/index.d.ts +35 -18
  218. package/dist/index.js +199 -204
  219. package/dist/index.js.map +1 -1
  220. package/dist/indexing/index.js +4 -4
  221. package/dist/introspection/index.js +12 -11
  222. package/dist/issue-G53NB6EW.js +19 -0
  223. package/dist/kernel/collection-config.d.ts +9 -9
  224. package/dist/kernel/collection.d.ts +9 -3
  225. package/dist/kernel/constants.d.ts +36 -0
  226. package/dist/kernel/enclave/crypto.d.ts +52 -4
  227. package/dist/kernel/enclave/index.d.ts +10 -3
  228. package/dist/kernel/enclave/record-aad.d.ts +131 -0
  229. package/dist/kernel/enclave/record-envelope.d.ts +76 -0
  230. package/dist/kernel/enclave/record-keys/envelope-body.d.ts +34 -2
  231. package/dist/kernel/enclave/record-keys/lifecycle.d.ts +22 -5
  232. package/dist/kernel/enclave/record-keys/record-codec.d.ts +47 -14
  233. package/dist/kernel/enclave/record-keys/rekey-blob.d.ts +88 -0
  234. package/dist/kernel/enclave/record-keys/rekey.d.ts +91 -0
  235. package/dist/kernel/enclave/record-keys/tombstone.d.ts +3 -2
  236. package/dist/kernel/errors.d.ts +134 -14
  237. package/dist/kernel/merge-authority.d.ts +25 -0
  238. package/dist/kernel/noydb.d.ts +33 -10
  239. package/dist/kernel/query/builder.d.ts +51 -4
  240. package/dist/kernel/query/join.d.ts +27 -0
  241. package/dist/kernel/query/live.d.ts +31 -9
  242. package/dist/kernel/query/predicate.d.ts +9 -0
  243. package/dist/kernel/refs.d.ts +3 -1
  244. package/dist/kernel/secret-mode.d.ts +1 -1
  245. package/dist/kernel/sync-policy.d.ts +0 -2
  246. package/dist/kernel/tier-visibility.d.ts +34 -0
  247. package/dist/kernel/types.d.ts +145 -28
  248. package/dist/kernel/vault.d.ts +16 -7
  249. package/dist/kernel/via/compose.d.ts +3 -3
  250. package/dist/kernel/via/index.d.ts +15 -6
  251. package/dist/kernel/via/pipeline.d.ts +6 -6
  252. package/dist/kernel/via/reconcile.d.ts +14 -2
  253. package/dist/kernel/via/taint-binding.d.ts +3 -3
  254. package/dist/{ledger-AETNF4OM.js → ledger-T5K4P2D7.js} +11 -11
  255. package/dist/liberate-VEOZRESE.js +25 -0
  256. package/dist/{link-set-E5HNY67I.js → link-set-76JZ6YB4.js} +11 -11
  257. package/dist/{managed-secret-CWQ6PND5.js → managed-secret-6YC32VXG.js} +13 -5
  258. package/dist/materialized-views/index.js +27 -27
  259. package/dist/migrate-cek-LBRKYUZZ.js +19 -0
  260. package/dist/migrate-cek-LBRKYUZZ.js.map +1 -0
  261. package/dist/money/index.js +5 -5
  262. package/dist/noydb-EDJA4JNJ.js +86 -0
  263. package/dist/on/index.js +1 -0
  264. package/dist/overlay-views/index.js +4 -4
  265. package/dist/periods/index.js +12 -12
  266. package/dist/pod/index.js +79 -88
  267. package/dist/pod-handle-P6DPBM5U.js +41 -0
  268. package/dist/pod-handle-P6DPBM5U.js.map +1 -0
  269. package/dist/policy/index.js +11 -4
  270. package/dist/port/as/active.d.ts +10 -0
  271. package/dist/port/as/index.d.ts +32 -0
  272. package/dist/port/as/types.d.ts +113 -0
  273. package/dist/port/at/index.d.ts +37 -0
  274. package/dist/port/by/default-provider.d.ts +3 -3
  275. package/dist/port/by/index.d.ts +32 -10
  276. package/dist/port/by/types.d.ts +29 -11
  277. package/dist/port/on/index.d.ts +50 -0
  278. package/dist/port/to/index.d.ts +4 -4
  279. package/dist/port/to/locator.d.ts +54 -8
  280. package/dist/port/with/computed-strategy.d.ts +1 -1
  281. package/dist/port/with/device-seal-strategy.d.ts +2 -2
  282. package/dist/port/with/formats-strategy.d.ts +76 -0
  283. package/dist/port/with/i18n-strategy.d.ts +4 -1
  284. package/dist/port/with/lookup-strategy.d.ts +4 -1
  285. package/dist/port/with/merge-authority.d.ts +52 -0
  286. package/dist/port/with/service-bus.d.ts +0 -4
  287. package/dist/port/with/strategies.d.ts +13 -5
  288. package/dist/port/with/team-strategy.d.ts +5 -1
  289. package/dist/portability/index.js +8 -8
  290. package/dist/{post-register-2XSSMGEQ.js → post-register-53O7AJRZ.js} +6 -6
  291. package/dist/query/index.js +6 -6
  292. package/dist/reduce/index.js +6 -6
  293. package/dist/register-6TCBR6XD.js +32 -0
  294. package/dist/registry-DH2L4O2V.js +18 -0
  295. package/dist/registry-IWFMXCHX.js +9 -0
  296. package/dist/registry-Q3FG3OAX.js +9 -0
  297. package/dist/registry-YC3IFG3A.js +19 -0
  298. package/dist/request-withdrawal-NM5VYR6F.js +31 -0
  299. package/dist/{reveal-BW36KCOQ.js → reveal-XBIMHAXR.js} +6 -6
  300. package/dist/revoke-MJNYWO72.js +24 -0
  301. package/dist/satellites/index.js +1 -1
  302. package/dist/schema-update/index.js +2 -2
  303. package/dist/sealed-record/index.js +20 -13
  304. package/dist/sealed-record/index.js.map +1 -1
  305. package/dist/search/index.js +4 -4
  306. package/dist/{seed-GDV5PT4R.js → seed-NSNIGYXE.js} +20 -22
  307. package/dist/seed-NSNIGYXE.js.map +1 -0
  308. package/dist/sequence/index.js +9 -9
  309. package/dist/session/index.js +10 -10
  310. package/dist/shadow/index.js +2 -2
  311. package/dist/share-link/index.js +1 -1
  312. package/dist/signer-6XVS2AU3.js +25 -0
  313. package/dist/snapshots/index.js +10 -10
  314. package/dist/snapshots/index.js.map +1 -1
  315. package/dist/{stale-ARHFVL5U.js → stale-MCS46TFO.js} +10 -10
  316. package/dist/storage-ZXUT476I.js +23 -0
  317. package/dist/storage-ZXUT476I.js.map +1 -0
  318. package/dist/{store-coordination-provider-GFCUOBR6.js → store-coordination-provider-6FM26VQM.js} +22 -15
  319. package/dist/store-coordination-provider-6FM26VQM.js.map +1 -0
  320. package/dist/sync/index.js +11 -11
  321. package/dist/team/index.js +17 -16
  322. package/dist/tiers/index.js +11 -10
  323. package/dist/to/index.js +17 -9
  324. package/dist/to/index.js.map +1 -1
  325. package/dist/transactions/index.js +4 -4
  326. package/dist/{ulid-PTAIMDG4.js → ulid-VQW6ERQN.js} +2 -2
  327. package/dist/ulid-VQW6ERQN.js.map +1 -0
  328. package/dist/util/index.js +1 -1
  329. package/dist/vault-diff-FE5J35NJ.js +9 -0
  330. package/dist/vault-diff-FE5J35NJ.js.map +1 -0
  331. package/dist/vault-head/index.js +115 -0
  332. package/dist/vault-head/index.js.map +1 -0
  333. package/dist/{verify-RO5RTZOJ.js → verify-WYOFLSNA.js} +5 -5
  334. package/dist/via/blob/binding.d.ts +6 -6
  335. package/dist/via/blob/index.d.ts +3 -0
  336. package/dist/via/classified/binding.d.ts +9 -9
  337. package/dist/via/computed/binding.d.ts +2 -2
  338. package/dist/via/i18n/binding.d.ts +4 -4
  339. package/dist/via/lookup/binding.d.ts +5 -5
  340. package/dist/via/lookup/handle.d.ts +4 -1
  341. package/dist/via/lookup/index.d.ts +1 -1
  342. package/dist/via/lookup/snapshot.d.ts +1 -1
  343. package/dist/via/money/binding.d.ts +3 -3
  344. package/dist/via/money/normalize.d.ts +1 -1
  345. package/dist/via/money/where.d.ts +3 -3
  346. package/dist/walk-JNEOYCAU.js +21 -0
  347. package/dist/walk-JNEOYCAU.js.map +1 -0
  348. package/dist/with-audit/periods/periods.d.ts +1 -1
  349. package/dist/with-audit/periods/strategy.d.ts +1 -1
  350. package/dist/with-audit/sealed-record/index.d.ts +13 -0
  351. package/dist/with-audit/tiers/index.d.ts +17 -2
  352. package/dist/with-cargo/adopt-partition.d.ts +7 -7
  353. package/dist/with-cargo/extract-partition.d.ts +1 -1
  354. package/dist/with-cargo/floor.d.ts +1 -1
  355. package/dist/with-cargo/index.d.ts +2 -2
  356. package/dist/with-commit/history/history.d.ts +26 -0
  357. package/dist/with-commit/history/index.d.ts +2 -1
  358. package/dist/with-commit/history/ledger/store.d.ts +7 -1
  359. package/dist/with-commit/history/strategy.d.ts +11 -1
  360. package/dist/with-commit/numbering/index.d.ts +0 -5
  361. package/dist/with-commit/vault-head/active.d.ts +2 -0
  362. package/dist/with-commit/vault-head/head.d.ts +28 -0
  363. package/dist/with-commit/vault-head/index.d.ts +10 -0
  364. package/dist/with-commit/vault-head/strategy.d.ts +127 -0
  365. package/dist/with-commit/vault-head/verify.d.ts +90 -0
  366. package/dist/with-formula/materialized-views/dependency-analyzer.d.ts +4 -0
  367. package/dist/with-formula/materialized-views/projection-legs.d.ts +59 -0
  368. package/dist/with-formula/materialized-views/registry.d.ts +50 -0
  369. package/dist/with-formula/materialized-views/types.d.ts +68 -10
  370. package/dist/with-party/directory/cover/storage.d.ts +0 -8
  371. package/dist/with-party/directory/storage.d.ts +0 -11
  372. package/dist/with-party/directory/visibility.d.ts +0 -21
  373. package/dist/with-party/policy/storage.d.ts +0 -10
  374. package/dist/with-party/team/deed.d.ts +4 -4
  375. package/dist/with-party/team/device-seal.d.ts +5 -5
  376. package/dist/with-party/team/echo-ceremony.d.ts +2 -2
  377. package/dist/with-party/team/echo-secret.d.ts +4 -4
  378. package/dist/with-party/team/index.d.ts +3 -3
  379. package/dist/with-party/team/keyring.d.ts +141 -4
  380. package/dist/with-party/team/managed-secret.d.ts +21 -11
  381. package/dist/with-party/team/noydb-facade.d.ts +7 -3
  382. package/dist/with-party/team/{shamir-recovery-provider.d.ts → noydb-shamir.d.ts} +1 -1
  383. package/dist/with-party/team/recovery.d.ts +3 -3
  384. package/dist/with-party/team/roster-tag.d.ts +101 -0
  385. package/dist/with-party/team/rotate-recover.d.ts +5 -5
  386. package/dist/with-party/team/tiers.d.ts +2 -1
  387. package/dist/with-pod/format.d.ts +11 -13
  388. package/dist/with-pod/index.d.ts +10 -10
  389. package/dist/with-pod/open.d.ts +2 -2
  390. package/dist/with-pod/pod-handle.d.ts +19 -0
  391. package/dist/with-pod/pod-store.d.ts +0 -8
  392. package/dist/with-pod/{bundle.d.ts → pod.d.ts} +17 -25
  393. package/dist/with-pod/ulid.d.ts +1 -1
  394. package/dist/with-shape/blobs/blob-compaction.d.ts +13 -0
  395. package/dist/with-shape/blobs/blob-set.d.ts +83 -11
  396. package/dist/with-shape/blobs/orphan-report.d.ts +62 -0
  397. package/dist/with-shape/introspection/describe.d.ts +2 -2
  398. package/dist/with-shape/schema-update/fence-controller.d.ts +4 -4
  399. package/dist/with-shape/schema-update/fence-watcher.d.ts +4 -4
  400. package/dist/with-shape/schema-update/store-coordination-provider.d.ts +7 -6
  401. package/dist/with-sync/engine.d.ts +54 -5
  402. package/dist/with-sync/strategy.d.ts +3 -0
  403. package/dist/withdraw-accessible-ILTSXTIE.js +28 -0
  404. package/dist/withdraw-accessible-ILTSXTIE.js.map +1 -0
  405. package/package.json +29 -5
  406. package/dist/api-RXUMEKT3.js +0 -20
  407. package/dist/backup-KULFZ2T4.js.map +0 -1
  408. package/dist/bundle-handle-GFNHT52M.js +0 -36
  409. package/dist/bundle-handle-GFNHT52M.js.map +0 -1
  410. package/dist/chunk-2DHSSLOD.js.map +0 -1
  411. package/dist/chunk-2GAJGUNM.js.map +0 -1
  412. package/dist/chunk-3737A6EA.js.map +0 -1
  413. package/dist/chunk-3IXIU6FP.js.map +0 -1
  414. package/dist/chunk-3URQC7EH.js.map +0 -1
  415. package/dist/chunk-4GZ6XOVW.js.map +0 -1
  416. package/dist/chunk-4I72F5DF.js.map +0 -1
  417. package/dist/chunk-4VUPLMZ6.js.map +0 -1
  418. package/dist/chunk-52JPHN5N.js.map +0 -1
  419. package/dist/chunk-55LKVALY.js.map +0 -1
  420. package/dist/chunk-5JY5TSVY.js.map +0 -1
  421. package/dist/chunk-5ZKS6ZE2.js.map +0 -1
  422. package/dist/chunk-6BU3L4UE.js.map +0 -1
  423. package/dist/chunk-6NVPFKN3.js.map +0 -1
  424. package/dist/chunk-7F4DBNSP.js.map +0 -1
  425. package/dist/chunk-7G6VDWXB.js.map +0 -1
  426. package/dist/chunk-7H73RIE3.js +0 -45
  427. package/dist/chunk-7H73RIE3.js.map +0 -1
  428. package/dist/chunk-7MNBICB5.js.map +0 -1
  429. package/dist/chunk-AFHQATY4.js +0 -47
  430. package/dist/chunk-AFHQATY4.js.map +0 -1
  431. package/dist/chunk-AHLJSVRL.js.map +0 -1
  432. package/dist/chunk-BEFVYAR5.js.map +0 -1
  433. package/dist/chunk-BRVW2GS5.js.map +0 -1
  434. package/dist/chunk-BWVKEOPE.js.map +0 -1
  435. package/dist/chunk-CDB2HVQW.js.map +0 -1
  436. package/dist/chunk-CEJWMBXO.js.map +0 -1
  437. package/dist/chunk-DG27IUVI.js.map +0 -1
  438. package/dist/chunk-E6427JU2.js.map +0 -1
  439. package/dist/chunk-FFDNKRCY.js.map +0 -1
  440. package/dist/chunk-FZ6NYJ7L.js.map +0 -1
  441. package/dist/chunk-G6S5VVHP.js.map +0 -1
  442. package/dist/chunk-GAG7QOVO.js.map +0 -1
  443. package/dist/chunk-HNGSV2YC.js.map +0 -1
  444. package/dist/chunk-IGJCYUT5.js.map +0 -1
  445. package/dist/chunk-JJNOLSG5.js.map +0 -1
  446. package/dist/chunk-JRKZTEZZ.js.map +0 -1
  447. package/dist/chunk-MSWYQLMQ.js.map +0 -1
  448. package/dist/chunk-NPP5R7FF.js.map +0 -1
  449. package/dist/chunk-O2ERS4UJ.js.map +0 -1
  450. package/dist/chunk-PDLLCOGD.js.map +0 -1
  451. package/dist/chunk-PL2GHSCM.js.map +0 -1
  452. package/dist/chunk-PNKHAKQ7.js.map +0 -1
  453. package/dist/chunk-Q6TEJXBX.js.map +0 -1
  454. package/dist/chunk-QULVCV3M.js.map +0 -1
  455. package/dist/chunk-RV3ARMPN.js.map +0 -1
  456. package/dist/chunk-RXYYFSBB.js.map +0 -1
  457. package/dist/chunk-UHXCLPGC.js.map +0 -1
  458. package/dist/chunk-VCETL77O.js.map +0 -1
  459. package/dist/chunk-VZ3XFUQ7.js.map +0 -1
  460. package/dist/chunk-W77KZHCW.js.map +0 -1
  461. package/dist/chunk-WASHZV34.js.map +0 -1
  462. package/dist/chunk-WFUIE565.js.map +0 -1
  463. package/dist/chunk-XWX7GL56.js.map +0 -1
  464. package/dist/chunk-YJ6IONGA.js.map +0 -1
  465. package/dist/chunk-YPYHVOXP.js.map +0 -1
  466. package/dist/chunk-ZJADGNYF.js.map +0 -1
  467. package/dist/collection-facade-QEJIM6BC.js +0 -45
  468. package/dist/delegation-MO7YZYJS.js.map +0 -1
  469. package/dist/derive-IUA6JFLB.js +0 -22
  470. package/dist/dispatch-FZEAWKVM.js.map +0 -1
  471. package/dist/executor-CYJQLKKI.js +0 -9
  472. package/dist/executor-S4QIKEHW.js +0 -9
  473. package/dist/executor-YIQB2S6N.js +0 -29
  474. package/dist/export-accessible-4S36PQNR.js +0 -23
  475. package/dist/extract-partition-IO7FDZ2P.js +0 -38
  476. package/dist/fanout-sidecar-NNAJQXMX.js.map +0 -1
  477. package/dist/fence-watcher-DHQ775JB.js.map +0 -1
  478. package/dist/find-RBBYKXI7.js +0 -11
  479. package/dist/issue-RIVHSY2S.js +0 -19
  480. package/dist/liberate-GFN4C7RR.js +0 -24
  481. package/dist/noydb-ASEXNJS6.js +0 -83
  482. package/dist/register-4EFJCVYD.js +0 -32
  483. package/dist/registry-4SDHHOJ7.js +0 -18
  484. package/dist/registry-CZVINVQH.js +0 -9
  485. package/dist/registry-IKUR2MXD.js +0 -9
  486. package/dist/registry-OYTFGWVK.js +0 -19
  487. package/dist/request-withdrawal-KGXGDPVQ.js +0 -31
  488. package/dist/revoke-JFN773KF.js +0 -24
  489. package/dist/seed-GDV5PT4R.js.map +0 -1
  490. package/dist/signer-TA55QB6R.js +0 -25
  491. package/dist/storage-V7MTFAQJ.js +0 -23
  492. package/dist/store-coordination-provider-GFCUOBR6.js.map +0 -1
  493. package/dist/walk-3ZECBFDA.js +0 -21
  494. package/dist/with-pod/bundle-handle.d.ts +0 -9
  495. package/dist/withdraw-accessible-7PG4DYQK.js +0 -28
  496. /package/dist/{api-RXUMEKT3.js.map → api-EQYRTZO2.js.map} +0 -0
  497. /package/dist/{collection-facade-QEJIM6BC.js.map → at/index.js.map} +0 -0
  498. /package/dist/{computed-6G5M3UPH.js.map → by/index.js.map} +0 -0
  499. /package/dist/{chunk-YAWK6AWF.js.map → chunk-225O5CXQ.js.map} +0 -0
  500. /package/dist/{chunk-OF3L2SD6.js.map → chunk-3QARDAYW.js.map} +0 -0
  501. /package/dist/{chunk-W3TVWF6N.js.map → chunk-4A4TYISP.js.map} +0 -0
  502. /package/dist/{chunk-CCZJJ4I2.js.map → chunk-4G25SDQL.js.map} +0 -0
  503. /package/dist/{chunk-7TSYBD3E.js.map → chunk-5263OEM3.js.map} +0 -0
  504. /package/dist/{chunk-FNSMZQS4.js.map → chunk-5ACAVJUI.js.map} +0 -0
  505. /package/dist/{chunk-VMCCGUQB.js.map → chunk-7LYUJNU3.js.map} +0 -0
  506. /package/dist/{chunk-WLYIROCJ.js.map → chunk-AB5P32RE.js.map} +0 -0
  507. /package/dist/{chunk-SUFG5E73.js.map → chunk-ALUNQEBY.js.map} +0 -0
  508. /package/dist/{chunk-CADUYBQD.js.map → chunk-ATL3ZVXT.js.map} +0 -0
  509. /package/dist/{chunk-6FJWSWFT.js.map → chunk-DBNYPLWY.js.map} +0 -0
  510. /package/dist/{chunk-VJFMXYKP.js.map → chunk-E6YA6UAP.js.map} +0 -0
  511. /package/dist/{chunk-JIUVJ4M7.js.map → chunk-F7ZFRPGQ.js.map} +0 -0
  512. /package/dist/{chunk-HXGUIPQB.js.map → chunk-FOG7YEJP.js.map} +0 -0
  513. /package/dist/{chunk-X56RTUK3.js.map → chunk-HM4JSXX2.js.map} +0 -0
  514. /package/dist/{chunk-GQ3BX5EA.js.map → chunk-I3ISCYT7.js.map} +0 -0
  515. /package/dist/{chunk-FUHKW252.js.map → chunk-J4MN6XIU.js.map} +0 -0
  516. /package/dist/{chunk-ADW22QSB.js.map → chunk-J4UJ5FRV.js.map} +0 -0
  517. /package/dist/{chunk-HVQGCKY4.js.map → chunk-JVLSU7S2.js.map} +0 -0
  518. /package/dist/{chunk-AR2JDFAE.js.map → chunk-KDJGJR7F.js.map} +0 -0
  519. /package/dist/{chunk-747LRSOO.js.map → chunk-LKFKXS5K.js.map} +0 -0
  520. /package/dist/{chunk-U5O6GIWZ.js.map → chunk-LR4Z47QD.js.map} +0 -0
  521. /package/dist/{chunk-RTAMLDWP.js.map → chunk-NLKLXXTO.js.map} +0 -0
  522. /package/dist/{chunk-FDX7OWWI.js.map → chunk-OPXR4PB2.js.map} +0 -0
  523. /package/dist/{chunk-Z45YRGFO.js.map → chunk-P6ASQOZR.js.map} +0 -0
  524. /package/dist/{chunk-2Z3NCLNX.js.map → chunk-QI5NWLVW.js.map} +0 -0
  525. /package/dist/{chunk-6SAFL5YE.js.map → chunk-RC4BROYR.js.map} +0 -0
  526. /package/dist/{chunk-NJDQ4YSV.js.map → chunk-RDHUZ674.js.map} +0 -0
  527. /package/dist/{chunk-3JVXVJ7L.js.map → chunk-S35S77YU.js.map} +0 -0
  528. /package/dist/{chunk-KUDZVJKQ.js.map → chunk-SHILAQH5.js.map} +0 -0
  529. /package/dist/{chunk-4UVDI4XE.js.map → chunk-T3PHCEN4.js.map} +0 -0
  530. /package/dist/{derive-IUA6JFLB.js.map → chunk-UBSFPGVJ.js.map} +0 -0
  531. /package/dist/{chunk-FAXZQ5UF.js.map → chunk-UCUALOSM.js.map} +0 -0
  532. /package/dist/{chunk-4HDYQL3J.js.map → chunk-VAG47QHV.js.map} +0 -0
  533. /package/dist/{chunk-35EBKWQU.js.map → chunk-VFIWDPXZ.js.map} +0 -0
  534. /package/dist/{chunk-HNHCQ556.js.map → chunk-WLLUM35R.js.map} +0 -0
  535. /package/dist/{chunk-JRCYZEHU.js.map → chunk-XVU7J43V.js.map} +0 -0
  536. /package/dist/{chunk-DMQCLZ4Z.js.map → chunk-YCSM3GZU.js.map} +0 -0
  537. /package/dist/{chunk-FMQJZH4R.js.map → chunk-YMLQBZFJ.js.map} +0 -0
  538. /package/dist/{chunk-6HFM7EIT.js.map → chunk-YPSOHDNC.js.map} +0 -0
  539. /package/dist/{chunk-N35NC4JH.js.map → chunk-Z2PWOSCJ.js.map} +0 -0
  540. /package/dist/{chunk-HPLWFNG4.js.map → chunk-Z7ZXZL6Y.js.map} +0 -0
  541. /package/dist/{classified-marker-2KJAXRRO.js.map → classified-marker-BSQHU4JT.js.map} +0 -0
  542. /package/dist/{enclave-JU4YIEPB.js.map → collection-facade-LG3NYZVB.js.map} +0 -0
  543. /package/dist/{executor-CYJQLKKI.js.map → computed-ASBNTLOK.js.map} +0 -0
  544. /package/dist/{dead-filter-DCB62VWW.js.map → dead-filter-QKU56XTQ.js.map} +0 -0
  545. /package/dist/{executor-S4QIKEHW.js.map → derive-CXHCY46K.js.map} +0 -0
  546. /package/dist/{dispatch-MJ6SHB3Y.js.map → dispatch-4AP4PUZU.js.map} +0 -0
  547. /package/dist/{executor-YIQB2S6N.js.map → enclave-NYPT7WA7.js.map} +0 -0
  548. /package/dist/{export-accessible-4S36PQNR.js.map → executor-3KFRQETS.js.map} +0 -0
  549. /package/dist/{extract-partition-IO7FDZ2P.js.map → executor-AFHQYRAU.js.map} +0 -0
  550. /package/dist/{find-RBBYKXI7.js.map → executor-YYDW6XQI.js.map} +0 -0
  551. /package/dist/{issue-RIVHSY2S.js.map → export-accessible-BX2ILB4C.js.map} +0 -0
  552. /package/dist/{ledger-AETNF4OM.js.map → extract-partition-UPOVITFI.js.map} +0 -0
  553. /package/dist/{liberate-GFN4C7RR.js.map → find-SZBL2HPB.js.map} +0 -0
  554. /package/dist/{link-set-E5HNY67I.js.map → issue-G53NB6EW.js.map} +0 -0
  555. /package/dist/{managed-secret-CWQ6PND5.js.map → ledger-T5K4P2D7.js.map} +0 -0
  556. /package/dist/{noydb-ASEXNJS6.js.map → liberate-VEOZRESE.js.map} +0 -0
  557. /package/dist/{register-4EFJCVYD.js.map → link-set-76JZ6YB4.js.map} +0 -0
  558. /package/dist/{registry-4SDHHOJ7.js.map → managed-secret-6YC32VXG.js.map} +0 -0
  559. /package/dist/{registry-CZVINVQH.js.map → noydb-EDJA4JNJ.js.map} +0 -0
  560. /package/dist/{registry-IKUR2MXD.js.map → on/index.js.map} +0 -0
  561. /package/dist/{post-register-2XSSMGEQ.js.map → post-register-53O7AJRZ.js.map} +0 -0
  562. /package/dist/{registry-OYTFGWVK.js.map → register-6TCBR6XD.js.map} +0 -0
  563. /package/dist/{request-withdrawal-KGXGDPVQ.js.map → registry-DH2L4O2V.js.map} +0 -0
  564. /package/dist/{revoke-JFN773KF.js.map → registry-IWFMXCHX.js.map} +0 -0
  565. /package/dist/{signer-TA55QB6R.js.map → registry-Q3FG3OAX.js.map} +0 -0
  566. /package/dist/{stale-ARHFVL5U.js.map → registry-YC3IFG3A.js.map} +0 -0
  567. /package/dist/{storage-V7MTFAQJ.js.map → request-withdrawal-NM5VYR6F.js.map} +0 -0
  568. /package/dist/{reveal-BW36KCOQ.js.map → reveal-XBIMHAXR.js.map} +0 -0
  569. /package/dist/{ulid-PTAIMDG4.js.map → revoke-MJNYWO72.js.map} +0 -0
  570. /package/dist/{walk-3ZECBFDA.js.map → signer-6XVS2AU3.js.map} +0 -0
  571. /package/dist/{withdraw-accessible-7PG4DYQK.js.map → stale-MCS46TFO.js.map} +0 -0
  572. /package/dist/{verify-RO5RTZOJ.js.map → verify-WYOFLSNA.js.map} +0 -0
package/dist/pod/index.js CHANGED
@@ -1,48 +1,48 @@
1
1
  import {
2
- createBundleStore,
3
2
  createPodStore,
4
3
  followRedirects,
5
4
  open,
6
5
  signRedirect,
7
6
  verifyRedirect,
8
- wrapBundleStore,
9
7
  wrapPodStore
10
- } from "../chunk-BWVKEOPE.js";
11
- import "../chunk-2GAJGUNM.js";
12
- import "../chunk-HVQGCKY4.js";
13
- import "../chunk-4HDYQL3J.js";
8
+ } from "../chunk-ATV637J7.js";
9
+ import "../chunk-Y3YLJORD.js";
10
+ import "../chunk-VAG47QHV.js";
14
11
  import {
15
12
  deriveSchemaManifest,
16
13
  loadSchemaManifestEntry
17
- } from "../chunk-2DHSSLOD.js";
14
+ } from "../chunk-QHJKK77B.js";
18
15
  import {
19
16
  MANIFEST_COLLECTION,
20
17
  isManifestReservedCollection
21
18
  } from "../chunk-EPFF7LOX.js";
22
- import "../chunk-HNHCQ556.js";
19
+ import "../chunk-WLLUM35R.js";
20
+ import "../chunk-JVLSU7S2.js";
21
+ import "../chunk-Y6GZ2P4M.js";
22
+ import "../chunk-L6GTLZRK.js";
23
23
  import "../chunk-GYGLAVCX.js";
24
- import "../chunk-6BU3L4UE.js";
25
- import "../chunk-G6S5VVHP.js";
26
24
  import "../chunk-6LJY7X5A.js";
27
- import "../chunk-QULVCV3M.js";
28
- import "../chunk-6NVPFKN3.js";
29
- import "../chunk-FUHKW252.js";
30
- import "../chunk-DG27IUVI.js";
31
- import "../chunk-XWX7GL56.js";
25
+ import "../chunk-E6YA6UAP.js";
26
+ import "../chunk-GK4DRVUD.js";
27
+ import "../chunk-WK5FSW7T.js";
28
+ import "../chunk-J4MN6XIU.js";
29
+ import "../chunk-XJ3FEKEY.js";
30
+ import "../chunk-Z2WK53N6.js";
31
+ import "../chunk-CBRS2NEK.js";
32
32
  import "../chunk-KHKKD62N.js";
33
- import "../chunk-Z45YRGFO.js";
33
+ import "../chunk-P6ASQOZR.js";
34
34
  import "../chunk-Y2NBBT6K.js";
35
- import "../chunk-CDB2HVQW.js";
36
- import "../chunk-ADW22QSB.js";
37
- import "../chunk-7TSYBD3E.js";
38
- import "../chunk-5ZKS6ZE2.js";
39
- import "../chunk-OF3L2SD6.js";
40
- import "../chunk-55LKVALY.js";
41
- import "../chunk-VJFMXYKP.js";
35
+ import "../chunk-YXA2TCTZ.js";
36
+ import "../chunk-CN6B5PEN.js";
37
+ import "../chunk-J4UJ5FRV.js";
38
+ import "../chunk-5263OEM3.js";
39
+ import "../chunk-VTG7327U.js";
40
+ import "../chunk-3QARDAYW.js";
41
+ import "../chunk-T7IR4N2S.js";
42
42
  import "../chunk-PEOZ34EM.js";
43
- import "../chunk-5O5HRRTV.js";
43
+ import "../chunk-PCQDY6QN.js";
44
44
  import "../chunk-GHVIKOHT.js";
45
- import "../chunk-HPLWFNG4.js";
45
+ import "../chunk-Z7ZXZL6Y.js";
46
46
  import "../chunk-SMY5X46Z.js";
47
47
  import "../chunk-DZFQVICS.js";
48
48
  import {
@@ -51,14 +51,12 @@ import {
51
51
  COMPRESSION_NONE,
52
52
  FLAG_COMPRESSED,
53
53
  FLAG_HAS_INTEGRITY_HASH,
54
- NOYDB_BUNDLE_FORMAT_VERSION,
55
- NOYDB_BUNDLE_MAGIC,
56
- NOYDB_BUNDLE_PREFIX_BYTES,
54
+ NOYDB_POD_FORMAT_VERSION,
55
+ NOYDB_POD_MAGIC,
56
+ NOYDB_POD_PREFIX_BYTES,
57
57
  POD_SIG_ALG,
58
- encodeBundleHeader,
59
- hasNoydbBundleMagic,
60
- readNoydbBundle,
61
- readNoydbBundleHeader,
58
+ encodePodHeader,
59
+ hasNoydbPodMagic,
62
60
  readPod,
63
61
  readPodCover,
64
62
  readPodHeader,
@@ -66,81 +64,77 @@ import {
66
64
  resetBrotliSupportCache,
67
65
  signRecord,
68
66
  signedBytes,
69
- validateBundleHeader,
67
+ validatePodHeaderFields,
70
68
  verifyPodHeader,
71
69
  verifyRecord,
72
- writeNoydbBundle,
73
70
  writePod
74
- } from "../chunk-4VUPLMZ6.js";
75
- import "../chunk-2BMRJ6LQ.js";
76
- import "../chunk-35EBKWQU.js";
71
+ } from "../chunk-6FOGTKBY.js";
72
+ import "../chunk-LF6DMX4C.js";
73
+ import "../chunk-VFIWDPXZ.js";
77
74
  import "../chunk-5D2ALSM5.js";
78
- import "../chunk-3JVXVJ7L.js";
75
+ import "../chunk-S35S77YU.js";
79
76
  import "../chunk-AURFOK3D.js";
80
- import "../chunk-7MNBICB5.js";
81
- import "../chunk-3737A6EA.js";
82
- import "../chunk-E6427JU2.js";
83
- import "../chunk-WASHZV34.js";
84
- import "../chunk-JIUVJ4M7.js";
85
- import "../chunk-GQ3BX5EA.js";
77
+ import "../chunk-UCUALOSM.js";
78
+ import "../chunk-S2VG3ABP.js";
79
+ import "../chunk-XSN63FUS.js";
80
+ import "../chunk-F23WQK3G.js";
81
+ import "../chunk-ALB64CZM.js";
82
+ import "../chunk-F7ZFRPGQ.js";
83
+ import "../chunk-I3ISCYT7.js";
86
84
  import "../chunk-NO272T7Q.js";
87
85
  import "../chunk-XZHEOSQ2.js";
88
86
  import "../chunk-YMUFFJCO.js";
89
- import "../chunk-CADUYBQD.js";
90
- import "../chunk-IGJCYUT5.js";
87
+ import "../chunk-ATL3ZVXT.js";
88
+ import "../chunk-NSITFOCJ.js";
91
89
  import "../chunk-PVEWA2DU.js";
92
- import "../chunk-MSWYQLMQ.js";
93
- import "../chunk-WFUIE565.js";
94
- import "../chunk-7G6VDWXB.js";
95
- import "../chunk-UHXCLPGC.js";
96
- import "../chunk-O2ERS4UJ.js";
97
- import "../chunk-3IXIU6FP.js";
98
- import "../chunk-JRKZTEZZ.js";
99
- import "../chunk-5JY5TSVY.js";
100
- import "../chunk-AHLJSVRL.js";
101
- import "../chunk-W3TVWF6N.js";
90
+ import "../chunk-2GXEQUEX.js";
91
+ import "../chunk-57JTHWLQ.js";
92
+ import "../chunk-X67FCULK.js";
93
+ import "../chunk-XDVVBETV.js";
94
+ import "../chunk-H4M7ADXY.js";
95
+ import "../chunk-PQ6Z2TAP.js";
96
+ import "../chunk-5W7YXFV5.js";
97
+ import "../chunk-DFAUMLD7.js";
98
+ import "../chunk-HTGRQZFB.js";
99
+ import "../chunk-4A4TYISP.js";
102
100
  import "../chunk-VKQCVU2Z.js";
103
101
  import {
104
102
  generateULID,
105
103
  isULID
106
- } from "../chunk-ZJADGNYF.js";
107
- import "../chunk-AFHQATY4.js";
108
- import "../chunk-Q6TEJXBX.js";
104
+ } from "../chunk-4AOERLTV.js";
105
+ import "../chunk-6EW2UCVF.js";
106
+ import "../chunk-IESNYJXZ.js";
109
107
  import "../chunk-I7FD46FF.js";
110
- import "../chunk-3FSX6LDG.js";
111
- import "../chunk-6SAFL5YE.js";
112
- import "../chunk-WLZ47GSL.js";
113
- import "../chunk-FAXZQ5UF.js";
114
- import "../chunk-3URQC7EH.js";
115
- import "../chunk-7H73RIE3.js";
116
- import "../chunk-HXGUIPQB.js";
117
- import "../chunk-AR2JDFAE.js";
118
- import "../chunk-747LRSOO.js";
108
+ import "../chunk-RC4BROYR.js";
109
+ import "../chunk-POS53FG6.js";
110
+ import "../chunk-HK67PX4J.js";
111
+ import "../chunk-467SKJ65.js";
112
+ import "../chunk-2LPVI4PX.js";
113
+ import "../chunk-N4CNVSUF.js";
114
+ import "../chunk-FOG7YEJP.js";
115
+ import "../chunk-KDJGJR7F.js";
116
+ import "../chunk-LKFKXS5K.js";
119
117
  import "../chunk-LP7BEXCT.js";
120
- import "../chunk-VCETL77O.js";
121
- import "../chunk-YPYHVOXP.js";
118
+ import "../chunk-W5LHQXZU.js";
119
+ import "../chunk-RK7N4OQ5.js";
122
120
  import {
123
121
  BackupCorruptedError,
124
122
  BackupLedgerError,
125
- BundleIntegrityError,
126
- BundleSealMismatchError,
127
- BundleVersionConflictError,
128
123
  ManifestConflictError,
129
124
  MigrationRequiredError,
130
125
  PodHeaderVerificationError,
126
+ PodIntegrityError,
127
+ PodSealMismatchError,
131
128
  PodVersionConflictError,
132
129
  RedirectBadSignatureError,
133
130
  RedirectDepthExceededError,
134
131
  RedirectLoopError,
135
132
  RedirectUnreachableError
136
- } from "../chunk-HNGSV2YC.js";
133
+ } from "../chunk-JBIV4FLR.js";
137
134
  import "../chunk-PZ5AY32C.js";
138
135
  export {
139
136
  BackupCorruptedError,
140
137
  BackupLedgerError,
141
- BundleIntegrityError,
142
- BundleSealMismatchError,
143
- BundleVersionConflictError,
144
138
  COMPRESSION_BROTLI,
145
139
  COMPRESSION_GZIP,
146
140
  COMPRESSION_NONE,
@@ -149,29 +143,28 @@ export {
149
143
  MANIFEST_COLLECTION,
150
144
  ManifestConflictError,
151
145
  MigrationRequiredError,
152
- NOYDB_BUNDLE_FORMAT_VERSION,
153
- NOYDB_BUNDLE_MAGIC,
154
- NOYDB_BUNDLE_PREFIX_BYTES,
146
+ NOYDB_POD_FORMAT_VERSION,
147
+ NOYDB_POD_MAGIC,
148
+ NOYDB_POD_PREFIX_BYTES,
155
149
  POD_SIG_ALG,
156
150
  PodHeaderVerificationError,
151
+ PodIntegrityError,
152
+ PodSealMismatchError,
157
153
  PodVersionConflictError,
158
154
  RedirectBadSignatureError,
159
155
  RedirectDepthExceededError,
160
156
  RedirectLoopError,
161
157
  RedirectUnreachableError,
162
- createBundleStore,
163
158
  createPodStore,
164
159
  deriveSchemaManifest,
165
- encodeBundleHeader,
160
+ encodePodHeader,
166
161
  followRedirects,
167
162
  generateULID,
168
- hasNoydbBundleMagic,
163
+ hasNoydbPodMagic,
169
164
  isManifestReservedCollection,
170
165
  isULID,
171
166
  loadSchemaManifestEntry,
172
167
  open,
173
- readNoydbBundle,
174
- readNoydbBundleHeader,
175
168
  readPod,
176
169
  readPodCover,
177
170
  readPodHeader,
@@ -180,13 +173,11 @@ export {
180
173
  signRecord,
181
174
  signRedirect,
182
175
  signedBytes,
183
- validateBundleHeader,
176
+ validatePodHeaderFields,
184
177
  verifyPodHeader,
185
178
  verifyRecord,
186
179
  verifyRedirect,
187
- wrapBundleStore,
188
180
  wrapPodStore,
189
- writeNoydbBundle,
190
181
  writePod
191
182
  };
192
183
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,41 @@
1
+ import "./chunk-2LPVI4PX.js";
2
+ import {
3
+ buildRecordEnvelope
4
+ } from "./chunk-N4CNVSUF.js";
5
+ import "./chunk-FOG7YEJP.js";
6
+ import "./chunk-KDJGJR7F.js";
7
+ import "./chunk-LKFKXS5K.js";
8
+ import "./chunk-LP7BEXCT.js";
9
+ import "./chunk-W5LHQXZU.js";
10
+ import "./chunk-RK7N4OQ5.js";
11
+ import "./chunk-JBIV4FLR.js";
12
+ import "./chunk-PZ5AY32C.js";
13
+
14
+ // src/with-pod/pod-handle.ts
15
+ async function buildPodHandle(adapter, name) {
16
+ const existing = await adapter.get(name, "_meta", "handle");
17
+ if (existing) {
18
+ try {
19
+ const parsed = JSON.parse(existing._data);
20
+ if (parsed !== null && typeof parsed === "object" && "handle" in parsed) {
21
+ const handle2 = parsed.handle;
22
+ if (typeof handle2 === "string" && /^[0-9A-HJKMNP-TV-Z]{26}$/.test(handle2)) {
23
+ return handle2;
24
+ }
25
+ }
26
+ } catch {
27
+ }
28
+ }
29
+ const { generateULID } = await import("./ulid-VQW6ERQN.js");
30
+ const handle = generateULID();
31
+ const envelope = buildRecordEnvelope(
32
+ { collection: "_meta", id: "handle", version: 1 },
33
+ { iv: "", data: JSON.stringify({ handle }) }
34
+ );
35
+ await adapter.put(name, "_meta", "handle", envelope);
36
+ return handle;
37
+ }
38
+ export {
39
+ buildPodHandle
40
+ };
41
+ //# sourceMappingURL=pod-handle-P6DPBM5U.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/with-pod/pod-handle.ts"],"sourcesContent":["/**\n * Vault bundle handle — the stable opaque ULID identifying a vault\n * across `.noydb` exports.\n *\n * Behaviour is byte-identical to the inline `Vault.getPodHandle`\n * method this function replaced. `Vault` keeps the public method as\n * a thin delegator.\n *\n * Internal — reached through `vault.getPodHandle()`.\n */\nimport type { NoydbStore, EncryptedEnvelope } from '../kernel/types.js'\nimport { buildRecordEnvelope } from '../kernel/enclave/index.js'\n\n/**\n * Return the stable opaque bundle handle for the given vault adapter,\n * generating and persisting a fresh ULID on first call.\n *\n * See {@link import('../kernel/vault.js').Vault.getPodHandle} for\n * the full rationale and storage-path documentation.\n */\nexport async function buildPodHandle(adapter: NoydbStore, name: string): Promise<string> {\n const existing = await adapter.get(name, '_meta', 'handle')\n if (existing) {\n try {\n const parsed = JSON.parse(existing._data) as unknown\n if (parsed !== null && typeof parsed === 'object' && 'handle' in parsed) {\n const handle = (parsed as { handle: unknown }).handle\n if (typeof handle === 'string' && /^[0-9A-HJKMNP-TV-Z]{26}$/.test(handle)) {\n return handle\n }\n }\n } catch {\n // Fall through to regenerate — corrupted handle envelope\n // is treated as missing, not as an error. The new handle\n // overwrites the bad one.\n }\n }\n const { generateULID } = await import('./ulid.js')\n const handle = generateULID()\n const envelope: EncryptedEnvelope = buildRecordEnvelope(\n { collection: '_meta', id: 'handle', version: 1 },\n { iv: '', data: JSON.stringify({ handle }) },\n )\n await adapter.put(name, '_meta', 'handle', envelope)\n return handle\n}\n"],"mappings":";;;;;;;;;;;;;;AAoBA,eAAsB,eAAe,SAAqB,MAA+B;AACvF,QAAM,WAAW,MAAM,QAAQ,IAAI,MAAM,SAAS,QAAQ;AAC1D,MAAI,UAAU;AACZ,QAAI;AACF,YAAM,SAAS,KAAK,MAAM,SAAS,KAAK;AACxC,UAAI,WAAW,QAAQ,OAAO,WAAW,YAAY,YAAY,QAAQ;AACvE,cAAMA,UAAU,OAA+B;AAC/C,YAAI,OAAOA,YAAW,YAAY,2BAA2B,KAAKA,OAAM,GAAG;AACzE,iBAAOA;AAAA,QACT;AAAA,MACF;AAAA,IACF,QAAQ;AAAA,IAIR;AAAA,EACF;AACA,QAAM,EAAE,aAAa,IAAI,MAAM,OAAO,oBAAW;AACjD,QAAM,SAAS,aAAa;AAC5B,QAAM,WAA8B;AAAA,IAClC,EAAE,YAAY,SAAS,IAAI,UAAU,SAAS,EAAE;AAAA,IAChD,EAAE,IAAI,IAAI,MAAM,KAAK,UAAU,EAAE,OAAO,CAAC,EAAE;AAAA,EAC7C;AACA,QAAM,QAAQ,IAAI,MAAM,SAAS,UAAU,QAAQ;AACnD,SAAO;AACT;","names":["handle"]}
@@ -6,20 +6,27 @@ import {
6
6
  createNoydbPolicy,
7
7
  describeGate,
8
8
  mergePolicy
9
- } from "../chunk-U5O6GIWZ.js";
9
+ } from "../chunk-LR4Z47QD.js";
10
10
  import {
11
11
  META_COLLECTION,
12
12
  POLICY_RECORD_ID,
13
13
  loadVaultPolicy,
14
14
  saveVaultPolicy
15
- } from "../chunk-3IXIU6FP.js";
16
- import "../chunk-YPYHVOXP.js";
15
+ } from "../chunk-PQ6Z2TAP.js";
16
+ import "../chunk-2LPVI4PX.js";
17
+ import "../chunk-N4CNVSUF.js";
18
+ import "../chunk-FOG7YEJP.js";
19
+ import "../chunk-KDJGJR7F.js";
20
+ import "../chunk-LKFKXS5K.js";
21
+ import "../chunk-LP7BEXCT.js";
22
+ import "../chunk-W5LHQXZU.js";
23
+ import "../chunk-RK7N4OQ5.js";
17
24
  import {
18
25
  ManagedRecoveryNotEnrolledError,
19
26
  PolicyDeniedError,
20
27
  RecoveryNotEnrolledError,
21
28
  RecoveryProfileNotImplementedError
22
- } from "../chunk-HNGSV2YC.js";
29
+ } from "../chunk-JBIV4FLR.js";
23
30
  import "../chunk-PZ5AY32C.js";
24
31
  export {
25
32
  DEFAULT_FRESHNESS_MS,
@@ -0,0 +1,10 @@
1
+ import type { FormatsStrategy } from '../with/formats-strategy.js';
2
+ /**
3
+ * Enable `vault.export()` / `vault.import()`.
4
+ *
5
+ * ```ts
6
+ * const db = await createNoydb({ store, user, secret, formatsStrategy: withFormats() })
7
+ * const csv = await vault.export(asCsv(), { collections: ['invoices'] })
8
+ * ```
9
+ */
10
+ export declare function withFormats(): FormatsStrategy;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * `@noy-db/hub/as` — the format port (the `as-*` family port).
3
+ *
4
+ * A serialization format — `as-csv`, `as-json`, a third party's — binds ONLY
5
+ * this subpath: the {@link NoydbFormat} contract plus the import types hub
6
+ * owns. Mirrors `@noy-db/hub/to` for stores and `/at` for sealers.
7
+ *
8
+ * ## Why this seam exists NOW and did not before
9
+ *
10
+ * `/as` shipped in 0.3.0 and was removed in 0.4.0 — "family port removed, it
11
+ * had zero importers" — alongside `/at`, `/in`, `/on` and `/ui`. It was a
12
+ * second place to find types already on the root barrel.
13
+ *
14
+ * What is different is not the subpath, it is what stands behind it. `/as` now
15
+ * carries types that exist NOWHERE ELSE: `ImportPolicy` was declared six times
16
+ * across satellites and not at all in hub, and `ImportPlan` was declared per
17
+ * package around a hub-owned `VaultDiff`. Consolidating them is the seam's
18
+ * substance — this is not a re-export of the root barrel, it is the first
19
+ * hub-side home the import contract has ever had.
20
+ *
21
+ * See `docs/adr/0004-as-format-port.md` for the measurements, and for why the
22
+ * port reaches five of ten `as-*` packages rather than all of them.
23
+ *
24
+ * ⚠️ Re-introducing a retired subpath is declared, not incidental: the
25
+ * `unretired` list in `codemods/0.7.0-pre.json` records it, and
26
+ * `codemod-map.test.ts` refuses the claim unless the subpath really resolves.
27
+ *
28
+ * Named re-exports only (no `export *`) so the published surface is explicit.
29
+ */
30
+ export { withFormats } from './active.js';
31
+ export type { FormatsStrategy, FormatExportOptions, FormatImportOptions, } from '../with/formats-strategy.js';
32
+ export type { NoydbFormat, DecodedChunk, ImportPolicy, ImportPlan, ExportChunk, ExportFormat, VaultDiff, } from './types.js';
@@ -0,0 +1,113 @@
1
+ /**
2
+ * The `as-*` family port — the contract a format implements, and the types
3
+ * hub owns on both sides of it.
4
+ *
5
+ * See `docs/adr/0004-as-format-port.md`. In short: `as-*` is export AND
6
+ * import — data, schema, validation — and both halves were duplicated per
7
+ * package. The import half was the worse of the two:
8
+ *
9
+ * ImportPolicy declared SIX times across as-* packages,
10
+ * byte-identical, and absent from hub entirely
11
+ * As<X>ImportPlan declared per package, byte-identical
12
+ * VaultDiff hub-owned — so a plan was HALF hub-owned
13
+ * and half copy-pasted
14
+ *
15
+ * Consolidating them here is non-breaking: each package re-exports these
16
+ * instead of redeclaring them, so six independent definitions that nothing
17
+ * compared become one that the compiler enforces.
18
+ *
19
+ * @module
20
+ */
21
+ import type { ExportChunk, ExportFormat } from '../../kernel/types.js';
22
+ import type { VaultDiff } from '../../with-cargo/vault-diff.js';
23
+ /**
24
+ * How an import reconciles with what the collection already holds.
25
+ *
26
+ * Hub-owned as of 0.7. Previously declared independently in `as-csv`,
27
+ * `as-json`, `as-ndjson`, `as-xml`, `as-xlsx` and `as-zip` — six copies of one
28
+ * line, with no mechanism that would have noticed them drifting apart.
29
+ */
30
+ export type ImportPolicy = 'merge' | 'replace' | 'insert-only';
31
+ /**
32
+ * A planned-but-not-applied import.
33
+ *
34
+ * Read the `plan` to show a diff, then `apply()` to commit it. The two-phase
35
+ * shape is deliberate: an import that writes before the caller has seen what
36
+ * it would change is not reviewable, and every `as-*` package had already
37
+ * converged on this independently — which is the argument for hub owning it
38
+ * rather than each of them re-deriving it.
39
+ */
40
+ export interface ImportPlan {
41
+ /** What would change. Safe to render; nothing has been written. */
42
+ readonly plan: VaultDiff;
43
+ /** The reconciliation the plan was computed under. */
44
+ readonly policy: ImportPolicy;
45
+ /** Commit the plan. */
46
+ apply(): Promise<void>;
47
+ }
48
+ /**
49
+ * What a format produces from bytes: records, per collection.
50
+ *
51
+ * Deliberately NOT a `VaultDiff` — computing the diff needs the vault's
52
+ * current contents, which a format does not have and must not need. The
53
+ * format's job ends at "these are the records the input describes"; hub
54
+ * turns that into a plan.
55
+ */
56
+ export interface DecodedChunk {
57
+ readonly collection: string;
58
+ readonly records: readonly unknown[];
59
+ }
60
+ /**
61
+ * A serialization format for vault data — the `as-*` family port.
62
+ *
63
+ * **Pure by construction.** A format receives records and returns bytes, or
64
+ * receives bytes and returns records. It never holds a `Vault`, which is what
65
+ * makes the export gate unskippable rather than merely checked: there is no
66
+ * vault in scope to read past `assertCanExport`.
67
+ *
68
+ * That property is the whole point of the inversion. The conformance kit it
69
+ * replaces could only check implementors who ran it; a format that cannot
70
+ * reach a vault is gated whether its author cooperated or not — including
71
+ * third-party formats this family will never see.
72
+ *
73
+ * Records arrive **already redacted**: hub applies the projection before
74
+ * `encode`, because five packages were each calling
75
+ * `vault.collection(x).describe()` and `applyListProjection` to do it
76
+ * themselves.
77
+ *
78
+ * @typeParam Out - `string` for text formats, `Uint8Array` for binary ones.
79
+ */
80
+ export interface NoydbFormat<Out extends string | Uint8Array = string | Uint8Array> {
81
+ /**
82
+ * Stable identifier, e.g. `'csv'`.
83
+ *
84
+ * A format declares its own id rather than being named by hub's
85
+ * `ExportFormat` union, which is closed — under the old shape a new format
86
+ * needed a hub release just to be nameable.
87
+ */
88
+ readonly id: string;
89
+ /** File extension without the dot, e.g. `'csv'`. Used by `download`/`write`. */
90
+ readonly extension: string;
91
+ /** MIME type, e.g. `'text/csv;charset=utf-8'`. Used by `download`. */
92
+ readonly mimeType: string;
93
+ /**
94
+ * The capability tier hub gates this format under. `'plaintext'` for a
95
+ * readable projection; `'bundle'` for encrypted output.
96
+ *
97
+ * Not inferred from anything: `as-noydb` emits an encrypted pod and gates on
98
+ * `'bundle'`, and a format that quietly gated on the wrong tier would be a
99
+ * silent downgrade.
100
+ */
101
+ readonly tier: 'plaintext' | 'bundle';
102
+ /** Records → bytes. Pure. */
103
+ encode(chunks: readonly ExportChunk[]): Out | Promise<Out>;
104
+ /**
105
+ * Bytes → records. Pure.
106
+ *
107
+ * Optional on an implementation, not on the contract: `as-sql` is
108
+ * export-only today. A format that omits it makes `vault.import` throw with
109
+ * its id named, rather than failing somewhere less legible.
110
+ */
111
+ decode?(input: Out): readonly DecodedChunk[] | Promise<readonly DecodedChunk[]>;
112
+ }
113
+ export type { ExportChunk, ExportFormat, VaultDiff };
@@ -0,0 +1,37 @@
1
+ /**
2
+ * `@noy-db/hub/at` — the sealing-key port (the `at-*` family port).
3
+ *
4
+ * A sealing-key provider — `at-env`, `at-aws-kms`, `at-gcp-kms`,
5
+ * `at-macos-keychain`, `at-azure-keyvault`, or a third party's — binds ONLY
6
+ * this subpath: the {@link NoydbSealer} contract plus the in-memory double an
7
+ * implementor develops against. Mirrors `@noy-db/hub/to` for stores.
8
+ *
9
+ * ## Why this seam exists NOW and did not before
10
+ *
11
+ * `/at` shipped in 0.3.0 and was removed in 0.4.0 — "family port removed, it
12
+ * had zero importers" — along with `/as`, `/in`, `/on` and `/ui`. Only `/to`
13
+ * survived, and the difference is not taste: `/to` had a contract, a registry
14
+ * and a conformance kit behind it, so a store author had a reason to bind it.
15
+ * `/at` was a second place to find a type already on the root barrel.
16
+ *
17
+ * What changed is not the subpath, it is what stands behind it:
18
+ * `@noy-db/test-sealer-conformance` publishes the contract as an executable
19
+ * suite, so "implements NoydbSealer" now means one checkable thing. The seam
20
+ * follows the port rather than preceding it — which is the ordering 0.4
21
+ * demonstrated the hard way.
22
+ *
23
+ * ⚠️ Re-introducing a retired subpath is declared, not incidental: the
24
+ * `unretired` list in `codemods/0.7.0-pre.json` records it, and
25
+ * `codemod-map.test.ts` refuses to accept the claim unless the subpath really
26
+ * resolves. Consumers who followed the 0.4 codemod row onto the root barrel
27
+ * are untouched — this is additive, and the root barrel and `/cargo` keep
28
+ * exporting everything they did.
29
+ *
30
+ * Named re-exports only (no `export *`) so the published surface is explicit
31
+ * and tsup's per-entry bundling keeps class identity stable across subpaths.
32
+ */
33
+ export type { NoydbSealer } from '../../with-party/team/managed-secret.js';
34
+ export { MemorySealer, MemoryRecipientSealer } from '../../with-party/team/managed-secret.js';
35
+ export type { RecipientSealer } from '../../kernel/types.js';
36
+ export type { SealedSecret, SealedEnvelope, RecipientHint } from '../../with-party/team/managed-secret.js';
37
+ export { parseSealedEnvelope, SEALED_SECRET_RECORD_ID } from '../../with-party/team/managed-secret.js';
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Lazy factory for the store-backed default {@link CoordinationProvider}.
2
+ * Lazy factory for the store-backed default {@link NoydbMesh}.
3
3
  * `with-shape/schema-update` is service-layer code the kernel spine may not
4
4
  * statically import — the dynamic `import()` below is the port-layering
5
5
  * law's sanctioned escape hatch for this exact case.
6
6
  */
7
7
  import type { NoydbStore } from '../../kernel/types.js';
8
- export type { CoordinationProvider } from './types.js';
9
- export declare function createDefaultCoordinationProvider(store: NoydbStore): Promise<import("../../with-shape/schema-update/store-coordination-provider.js").StoreCoordinationProvider>;
8
+ export type { NoydbMesh } from './types.js';
9
+ export declare function createDefaultMesh(store: NoydbStore): Promise<import("../../with-shape/schema-update/store-coordination-provider.js").StoreMesh>;
@@ -1,17 +1,39 @@
1
1
  /**
2
- * @noy-db/hub/by — the coordination port for `by-*` transports (the `by-*`
3
- * family port).
2
+ * `@noy-db/hub/by` — the mesh port for `by-*` session-share transports.
4
3
  *
5
- * A session-share transport (`by-tabs`, `by-peer`) binds ONLY to this
6
- * subpath: the drain-barrier coordination contract for the schema-fence
7
- * cutover. `@klum-db/lobby` drives the same port through the `Noydb` handle
8
- * without ever naming a `by-*` package. `StoreCoordinationProvider` (the
9
- * store-backed default implementation) lives in `with-shape/schema-update`
10
- * — its only consumer — and is intentionally NOT exported here.
4
+ * A `by-*` transport (`by-tabs`, `by-peer`) binds ONLY to this subpath: the
5
+ * drain-barrier contract for the schema-fence cutover — who is live, and what
6
+ * generation are they on. `@klum-db/lobby` drives the same port through the
7
+ * `Noydb` handle (`db.mesh`) without ever naming a `by-*` package.
8
+ *
9
+ * `StoreMesh` — the store-polling default — lives in
10
+ * `with-shape/schema-update`, its only consumer, and is intentionally NOT
11
+ * exported here. That is a real cost, recorded rather than worked around: it
12
+ * is hub's own implementation of this port and the one most consumers actually
13
+ * run, and because it is not on the published surface,
14
+ * `@noy-db/test-mesh-conformance` cannot import it. **A port's in-hub default
15
+ * is coverable by its published kit only if it is on the published surface.**
16
+ *
17
+ * ## Why this subpath exists again
18
+ *
19
+ * It shipped in 0.3.0 and was pruned in 0.4.0 for "zero importers" — correct at
20
+ * the time, because it was a second place to find types that were already on
21
+ * the root barrel. It returns in the 0.7 line because something now stands
22
+ * behind it: the contract is published as an executable suite, and two
23
+ * transports implement it. Ports first, then seams.
24
+ *
25
+ * ⚠️ That last sentence was FALSE when this seam first shipped (#1171).
26
+ * `by-peer`, `by-tabs` and the conformance kit all imported `NoydbMesh` from
27
+ * `@noy-db/hub/cargo`, so `/by` was republished with **zero binders** — the
28
+ * exact condition it was pruned for — while this comment claimed otherwise. A
29
+ * subpath resolves whether or not anyone imports it, so nothing was red. The
30
+ * three were migrated, and `family-port-has-binder` in check-architecture.mjs
31
+ * now asks the question on every run rather than trusting the sentence.
11
32
  *
12
33
  * Named re-exports only (no `export *`) so the published surface is explicit
13
34
  * and tsup's per-entry bundling keeps class identity stable across subpaths.
14
- * Supersedes the (already-deprecated) coordination re-exports on `/kernel`.
35
+ * Everything here also remains on `/cargo`, which is where the 0.4 codemod row
36
+ * sends a consumer — this is additive, and that row stays true.
15
37
  */
16
38
  export { isQuorum, runDrainBarrier } from './types.js';
17
- export type { CoordinationProvider, WriterPresence, FenceState, DrainBarrierOptions, } from './types.js';
39
+ export type { NoydbMesh, WriterPresence, FenceDoc, DrainBarrierOptions, } from './types.js';