@noy-db/hub 0.4.0-pre.3 → 0.4.0-pre.5

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 (381) hide show
  1. package/README.md +2 -2
  2. package/dist/aggregate/index.js +4 -4
  3. package/dist/api-22ES33N3.js +20 -0
  4. package/dist/as/index.js +11 -11
  5. package/dist/attestation/index.js +20 -20
  6. package/dist/{backup-JL2GOTYQ.js → backup-YCHAC575.js} +11 -11
  7. package/dist/blobs/index.js +12 -12
  8. package/dist/broker/index.js +12 -12
  9. package/dist/by/index.js +2 -2
  10. package/dist/cargo/index.js +29 -29
  11. package/dist/{chunk-2RMDVWGB.js → chunk-2CRZOVDI.js} +2 -2
  12. package/dist/{chunk-T7S4V52L.js → chunk-2PDBYF2O.js} +4 -4
  13. package/dist/{chunk-WJDYZP3U.js → chunk-3LJYHE7S.js} +36 -36
  14. package/dist/chunk-3LJYHE7S.js.map +1 -0
  15. package/dist/{chunk-CCT4WZI6.js → chunk-3OWYOECI.js} +5 -5
  16. package/dist/chunk-3OWYOECI.js.map +1 -0
  17. package/dist/{chunk-L4OA7G5T.js → chunk-522MBPE5.js} +2 -2
  18. package/dist/{chunk-ZJGZDOQO.js → chunk-5ATANZSW.js} +6 -6
  19. package/dist/{chunk-M25ZIEB2.js → chunk-5HSSTOOG.js} +2 -2
  20. package/dist/{chunk-LLVW4V7R.js → chunk-5WLDZZ6S.js} +3 -3
  21. package/dist/{chunk-7B4GPCX7.js → chunk-6RPWILRH.js} +5 -5
  22. package/dist/{chunk-IGM563N5.js → chunk-6SYOHUHM.js} +6 -6
  23. package/dist/chunk-6SYOHUHM.js.map +1 -0
  24. package/dist/{chunk-HGVFJL63.js → chunk-7BIJS6II.js} +15 -5
  25. package/dist/{chunk-HGVFJL63.js.map → chunk-7BIJS6II.js.map} +1 -1
  26. package/dist/{chunk-KR5EGWI4.js → chunk-7ICV4ASA.js} +5 -5
  27. package/dist/{chunk-J3VW4J4E.js → chunk-7LP7FFJ2.js} +2 -2
  28. package/dist/chunk-7LP7FFJ2.js.map +1 -0
  29. package/dist/{chunk-5P5AAXYA.js → chunk-7U6AB7DZ.js} +7 -7
  30. package/dist/chunk-7U6AB7DZ.js.map +1 -0
  31. package/dist/{chunk-KMONEHDJ.js → chunk-AFAPBZAA.js} +2 -2
  32. package/dist/{chunk-GBEXTC6Z.js → chunk-BAAUFCJK.js} +3 -3
  33. package/dist/chunk-BAAUFCJK.js.map +1 -0
  34. package/dist/{chunk-CGPO3ZYB.js → chunk-BY5YBSXA.js} +2 -2
  35. package/dist/{chunk-3O62PVDW.js → chunk-CJVEAVYH.js} +5 -5
  36. package/dist/chunk-CJVEAVYH.js.map +1 -0
  37. package/dist/{chunk-3XVOLB75.js → chunk-CKUYQO2P.js} +3 -3
  38. package/dist/{chunk-2JZ763FV.js → chunk-D4LAJ737.js} +2 -2
  39. package/dist/{chunk-OOTTXUNV.js → chunk-DYZ5CCVM.js} +2 -2
  40. package/dist/{chunk-LUH2MPEF.js → chunk-EEZCB74X.js} +808 -1175
  41. package/dist/chunk-EEZCB74X.js.map +1 -0
  42. package/dist/{chunk-N4FZ6ITM.js → chunk-EGU4PWQW.js} +2 -2
  43. package/dist/{chunk-JKWNG3TM.js → chunk-FHHYCBBP.js} +2 -2
  44. package/dist/{chunk-UBF7HTOR.js → chunk-FIP7KI2P.js} +40 -40
  45. package/dist/chunk-FIP7KI2P.js.map +1 -0
  46. package/dist/{chunk-N4A3DCBT.js → chunk-FTCGEUOY.js} +8 -8
  47. package/dist/{chunk-5BB3N4KU.js → chunk-G4MFQXYX.js} +2 -2
  48. package/dist/{chunk-PEY6ZTCF.js → chunk-GEEJPID6.js} +9 -9
  49. package/dist/{chunk-PEY6ZTCF.js.map → chunk-GEEJPID6.js.map} +1 -1
  50. package/dist/{chunk-KVHWEPT2.js → chunk-GHEMAVTN.js} +2 -2
  51. package/dist/{chunk-OVFCAS7U.js → chunk-GP54LU5N.js} +9 -9
  52. package/dist/{chunk-XW7NWO4A.js → chunk-GTNRMJYH.js} +2 -2
  53. package/dist/{chunk-J6U4BOKP.js → chunk-HAPY7WFP.js} +12 -12
  54. package/dist/{chunk-GU5AYA2Q.js → chunk-HQKRZIX6.js} +5 -5
  55. package/dist/{chunk-OWE4BNTM.js → chunk-I2XEBEEF.js} +4 -4
  56. package/dist/{chunk-WEC3JGBA.js → chunk-IGLU4ME7.js} +3 -3
  57. package/dist/{chunk-BZK6JEX4.js → chunk-ILM6X6CP.js} +5 -5
  58. package/dist/{chunk-2KL6NDD4.js → chunk-J5TEU77Q.js} +4 -4
  59. package/dist/{chunk-UEO5CHOP.js → chunk-JAMDDLIM.js} +13 -13
  60. package/dist/chunk-JAMDDLIM.js.map +1 -0
  61. package/dist/{chunk-V7RGFJ3Z.js → chunk-JIHH26WQ.js} +6 -6
  62. package/dist/{chunk-XGVDLQJE.js → chunk-JN3SGXJE.js} +3 -3
  63. package/dist/{chunk-XULHFSHO.js → chunk-K4BWPNJO.js} +5 -5
  64. package/dist/chunk-K4BWPNJO.js.map +1 -0
  65. package/dist/{chunk-BZEPJJOK.js → chunk-K7BADAOS.js} +4 -4
  66. package/dist/{chunk-OWLPX2GI.js → chunk-KJTIAECI.js} +17 -17
  67. package/dist/chunk-KJTIAECI.js.map +1 -0
  68. package/dist/{chunk-SN75YVM5.js → chunk-L2CAWCQL.js} +18 -18
  69. package/dist/{chunk-SN75YVM5.js.map → chunk-L2CAWCQL.js.map} +1 -1
  70. package/dist/{chunk-MSO2C3KG.js → chunk-LC7DSMHR.js} +2 -2
  71. package/dist/{chunk-JA5B3SLH.js → chunk-M6QA2KK2.js} +2 -2
  72. package/dist/{chunk-IUIVDVXM.js → chunk-MUPZ6IZX.js} +2 -2
  73. package/dist/{chunk-QAFWRGVD.js → chunk-OGVE4IJW.js} +7 -7
  74. package/dist/{chunk-BCOKZC4B.js → chunk-OHV6T5JB.js} +19 -19
  75. package/dist/chunk-OHV6T5JB.js.map +1 -0
  76. package/dist/{chunk-25ZDB25Z.js → chunk-OMSKGLYA.js} +3 -3
  77. package/dist/chunk-OMSKGLYA.js.map +1 -0
  78. package/dist/{chunk-2U7Y7BNJ.js → chunk-ONB627HU.js} +2 -2
  79. package/dist/{chunk-GYB2QK5H.js → chunk-OWLZONGX.js} +2 -2
  80. package/dist/{chunk-YHPUDB7Q.js → chunk-OWOT7CFC.js} +2 -2
  81. package/dist/{chunk-VEX6G3YL.js → chunk-P4NUJVWL.js} +2 -2
  82. package/dist/{chunk-NM4LVUXH.js → chunk-PTT2NB46.js} +2 -2
  83. package/dist/{chunk-2ITLQZV5.js → chunk-PWWWMRT7.js} +2 -2
  84. package/dist/{chunk-GS3Q2KOZ.js → chunk-QBOQI6PG.js} +2 -2
  85. package/dist/{chunk-JIMEB4C6.js → chunk-QMMOMBH6.js} +4 -4
  86. package/dist/{chunk-QDNVHA2F.js → chunk-QMZ5A6FQ.js} +2 -2
  87. package/dist/{chunk-FLHOTGOO.js → chunk-QVGEVZ5F.js} +3 -3
  88. package/dist/{chunk-AFBJHD55.js → chunk-QZJEYZ4I.js} +5 -5
  89. package/dist/{chunk-V3YB7RGR.js → chunk-R2N37AA6.js} +3 -3
  90. package/dist/{chunk-JLHKBAFY.js → chunk-RWW3I3PO.js} +3 -3
  91. package/dist/{chunk-IGAIOGCN.js → chunk-S4YERMGJ.js} +4 -4
  92. package/dist/{chunk-OGFPMCSP.js → chunk-SBOHNJUD.js} +2 -2
  93. package/dist/{chunk-QXPOEAKR.js → chunk-SC4JLMZI.js} +2 -2
  94. package/dist/{chunk-EDC6MLXV.js → chunk-SEU6QHH4.js} +2 -2
  95. package/dist/{chunk-F4COUZLL.js → chunk-TMR64XPL.js} +2 -2
  96. package/dist/{chunk-DEQ2JTBR.js → chunk-TNATF3HB.js} +3 -3
  97. package/dist/{chunk-GZ2GKOF6.js → chunk-TNJVDG2B.js} +3 -3
  98. package/dist/{chunk-5OZCCLNC.js → chunk-TSNRZSRC.js} +2 -2
  99. package/dist/{chunk-QCUH2G77.js → chunk-UTEATWHO.js} +6 -6
  100. package/dist/{chunk-JA5O7UEZ.js → chunk-UVBHM7AK.js} +6 -6
  101. package/dist/chunk-UVBHM7AK.js.map +1 -0
  102. package/dist/{chunk-HKR25MGX.js → chunk-V5JUAW4M.js} +10 -10
  103. package/dist/chunk-V5JUAW4M.js.map +1 -0
  104. package/dist/{chunk-YGBIBOCR.js → chunk-VEGQYPCP.js} +7 -7
  105. package/dist/{chunk-25G7U6RD.js → chunk-WQN5SM7P.js} +2 -2
  106. package/dist/{chunk-NOT7XA7Q.js → chunk-X3MWEFPT.js} +5 -5
  107. package/dist/chunk-XUFAFHQM.js +78 -0
  108. package/dist/chunk-XUFAFHQM.js.map +1 -0
  109. package/dist/{chunk-MEKAMERX.js → chunk-YCAJDK4O.js} +29 -29
  110. package/dist/chunk-YCAJDK4O.js.map +1 -0
  111. package/dist/{chunk-BVZGNMVM.js → chunk-YFFEF6HR.js} +3 -3
  112. package/dist/{chunk-H4SMS4O2.js → chunk-YJ3TREAC.js} +2 -2
  113. package/dist/{chunk-5SZ24DL5.js → chunk-YQQPNXNO.js} +6 -6
  114. package/dist/{chunk-5BHNQNBI.js → chunk-YTW6ZIPD.js} +1 -1
  115. package/dist/chunk-YTW6ZIPD.js.map +1 -0
  116. package/dist/{chunk-EW4HFWGJ.js → chunk-YWZEDG7F.js} +6 -6
  117. package/dist/{chunk-2VUISNGP.js → chunk-YXIVUWDU.js} +5 -5
  118. package/dist/{chunk-YG2EG6CB.js → chunk-YXZNGHID.js} +4 -4
  119. package/dist/{chunk-QYJIOWKN.js → chunk-YZN6NRTR.js} +9 -9
  120. package/dist/{chunk-IZX3WZBF.js → chunk-YZNKFYDC.js} +4 -4
  121. package/dist/{chunk-E2R5NRZD.js → chunk-Z4D3YGAB.js} +2 -2
  122. package/dist/{chunk-STR7WBOB.js → chunk-ZUDAK436.js} +2 -2
  123. package/dist/{chunk-ITI3SJRB.js → chunk-ZX5FNWH7.js} +2 -2
  124. package/dist/classified/index.js +5 -5
  125. package/dist/{classified-marker-7S5IEP6Q.js → classified-marker-52P3D72W.js} +3 -3
  126. package/dist/collection-facade-XKCFHSLR.js +44 -0
  127. package/dist/{computed-WZNKRLCY.js → computed-33DRJDOC.js} +3 -3
  128. package/dist/consent/index.js +9 -9
  129. package/dist/{cover-B5MY43CK.js → cover-5BSNJREH.js} +4 -4
  130. package/dist/{dead-filter-KRRD57MR.js → dead-filter-JXVCKS6W.js} +2 -2
  131. package/dist/delegation-WWZPEDK2.js +25 -0
  132. package/dist/derivations/index.js +12 -12
  133. package/dist/derive-CWWFEQ4N.js +21 -0
  134. package/dist/dispatch-PKQQFDBT.js +193 -0
  135. package/dist/dispatch-PKQQFDBT.js.map +1 -0
  136. package/dist/dispatch-SMXUO7W5.js +72 -0
  137. package/dist/dispatch-SMXUO7W5.js.map +1 -0
  138. package/dist/{enclave-YFKA3GJT.js → enclave-I5H3GINP.js} +11 -11
  139. package/dist/executor-FCJEH3FU.js +9 -0
  140. package/dist/executor-OHET7TF7.js +9 -0
  141. package/dist/executor-SHYLIBOM.js +26 -0
  142. package/dist/export-accessible-FBL6TDSK.js +23 -0
  143. package/dist/extract-partition-ZYIRYMTI.js +38 -0
  144. package/dist/{fanout-sidecar-HJV3A7PM.js → fanout-sidecar-WWXVHHUH.js} +9 -9
  145. package/dist/find-LEBUXVL7.js +11 -0
  146. package/dist/forget/index.js +9 -9
  147. package/dist/guards/index.js +3 -3
  148. package/dist/history/index.js +12 -12
  149. package/dist/i18n/index.js +14 -14
  150. package/dist/index.d.ts +13 -9
  151. package/dist/index.js +119 -118
  152. package/dist/index.js.map +1 -1
  153. package/dist/indexing/index.js +2 -2
  154. package/dist/issue-F76PAGIR.js +19 -0
  155. package/dist/kernel/collection-config.d.ts +11 -69
  156. package/dist/kernel/collection.d.ts +10 -22
  157. package/dist/kernel/enclave/crypto.d.ts +8 -8
  158. package/dist/kernel/enclave/index.d.ts +2 -2
  159. package/dist/kernel/errors.d.ts +20 -20
  160. package/dist/kernel/noydb.d.ts +43 -103
  161. package/dist/kernel/types.d.ts +82 -41
  162. package/dist/kernel/validation.d.ts +33 -33
  163. package/dist/kernel/vault.d.ts +31 -215
  164. package/dist/kernel/via/dispatch.d.ts +7 -0
  165. package/dist/{ledger-SW6QQOAV.js → ledger-M2BKCNVS.js} +11 -11
  166. package/dist/liberate-ZP7UB57K.js +24 -0
  167. package/dist/{link-set-GNGGCFI4.js → link-set-ZU4E5J5S.js} +11 -11
  168. package/dist/materialized-views/index.js +19 -19
  169. package/dist/noydb-BNDGEK5X.js +71 -0
  170. package/dist/on/index.js +9 -9
  171. package/dist/overlay-views/index.js +4 -4
  172. package/dist/periods/index.js +13 -13
  173. package/dist/pod/index.js +11 -11
  174. package/dist/{policy-EAXSJNOT.js → policy-IY2YEA3A.js} +5 -5
  175. package/dist/port/at/index.d.ts +4 -4
  176. package/dist/port/with/archive-strategy.d.ts +31 -0
  177. package/dist/port/with/collection-options.d.ts +171 -0
  178. package/dist/port/with/strategies.d.ts +134 -0
  179. package/dist/port/with/team-strategy.d.ts +1 -1
  180. package/dist/portability/index.js +8 -8
  181. package/dist/{post-register-A7HCFBP5.js → post-register-XIAHB6KF.js} +6 -6
  182. package/dist/query/index.js +6 -6
  183. package/dist/register-HB4TQZSV.js +23 -0
  184. package/dist/registry-6BMBFEXT.js +19 -0
  185. package/dist/registry-7CZWF3EQ.js +9 -0
  186. package/dist/registry-JOFO7RAH.js +18 -0
  187. package/dist/request-withdrawal-UN3TRHWI.js +31 -0
  188. package/dist/{reveal-PB3YG544.js → reveal-VWXRV2XU.js} +6 -6
  189. package/dist/revoke-OLO2OVR7.js +24 -0
  190. package/dist/satellites/index.js +1 -1
  191. package/dist/sealed-record/index.js +12 -12
  192. package/dist/{seed-EKF4DIBB.js → seed-CDBFOTIK.js} +12 -12
  193. package/dist/seed-CDBFOTIK.js.map +1 -0
  194. package/dist/session/index.js +9 -9
  195. package/dist/shadow/index.js +2 -2
  196. package/dist/signer-MGGKPYAN.js +25 -0
  197. package/dist/snapshots/index.js +10 -10
  198. package/dist/{stale-4UNPHWOU.js → stale-NBROTA66.js} +10 -10
  199. package/dist/storage-3R37QZLA.js +23 -0
  200. package/dist/{store-coordination-provider-3AELCZ4Y.js → store-coordination-provider-P3IU5JHD.js} +3 -3
  201. package/dist/sync/index.js +10 -10
  202. package/dist/team/index.js +20 -20
  203. package/dist/tiers/index.js +10 -10
  204. package/dist/to/index.js +1 -1
  205. package/dist/tx/index.js +3 -3
  206. package/dist/util/index.js +1 -1
  207. package/dist/{verify-MXN66IIH.js → verify-5X37OXRY.js} +5 -5
  208. package/dist/{walk-H4YE52S2.js → walk-E3OVLBFR.js} +11 -11
  209. package/dist/with/index.js +11 -11
  210. package/dist/with-audit/portability/export-accessible.d.ts +4 -4
  211. package/dist/with-audit/portability/request-withdrawal.d.ts +3 -3
  212. package/dist/with-audit/portability/withdraw-accessible.d.ts +2 -2
  213. package/dist/with-audit/sealed-record/strategy.d.ts +1 -1
  214. package/dist/with-cargo/adopt-partition.d.ts +7 -7
  215. package/dist/with-cargo/index.d.ts +1 -1
  216. package/dist/with-commit/history/time-machine.d.ts +2 -2
  217. package/dist/with-formula/derivations/dispatch.d.ts +98 -0
  218. package/dist/with-formula/materialized-views/dispatch.d.ts +75 -0
  219. package/dist/with-party/custody/liberate.d.ts +3 -3
  220. package/dist/with-party/session/dev-unlock.d.ts +2 -2
  221. package/dist/with-party/session/session.d.ts +2 -2
  222. package/dist/with-party/team/deed.d.ts +8 -8
  223. package/dist/with-party/team/index.d.ts +2 -2
  224. package/dist/with-party/team/keyring.d.ts +19 -19
  225. package/dist/with-party/team/{managed-passphrase.d.ts → managed-secret.d.ts} +27 -27
  226. package/dist/with-party/team/noydb-facade.d.ts +41 -41
  227. package/dist/with-party/team/peer-recover.d.ts +13 -13
  228. package/dist/with-party/team/recovery.d.ts +5 -5
  229. package/dist/with-party/team/rotate-recover.d.ts +30 -30
  230. package/dist/with-pod/bundle.d.ts +30 -30
  231. package/dist/with-pod/format.d.ts +2 -2
  232. package/dist/withdraw-accessible-Q2EMATCU.js +28 -0
  233. package/package.json +3 -3
  234. package/dist/api-UPAT2O3M.js +0 -20
  235. package/dist/chunk-25ZDB25Z.js.map +0 -1
  236. package/dist/chunk-3O62PVDW.js.map +0 -1
  237. package/dist/chunk-5BHNQNBI.js.map +0 -1
  238. package/dist/chunk-5P5AAXYA.js.map +0 -1
  239. package/dist/chunk-BCOKZC4B.js.map +0 -1
  240. package/dist/chunk-CCT4WZI6.js.map +0 -1
  241. package/dist/chunk-GBEXTC6Z.js.map +0 -1
  242. package/dist/chunk-HKR25MGX.js.map +0 -1
  243. package/dist/chunk-IGM563N5.js.map +0 -1
  244. package/dist/chunk-J3VW4J4E.js.map +0 -1
  245. package/dist/chunk-JA5O7UEZ.js.map +0 -1
  246. package/dist/chunk-LUH2MPEF.js.map +0 -1
  247. package/dist/chunk-MEKAMERX.js.map +0 -1
  248. package/dist/chunk-OWLPX2GI.js.map +0 -1
  249. package/dist/chunk-UBF7HTOR.js.map +0 -1
  250. package/dist/chunk-UEO5CHOP.js.map +0 -1
  251. package/dist/chunk-WJDYZP3U.js.map +0 -1
  252. package/dist/chunk-XULHFSHO.js.map +0 -1
  253. package/dist/collection-facade-ENLTJZBT.js +0 -44
  254. package/dist/delegation-UT76AQIG.js +0 -25
  255. package/dist/derive-SGRCCKVP.js +0 -21
  256. package/dist/executor-TEZYRDN3.js +0 -9
  257. package/dist/executor-WQQRU6DO.js +0 -9
  258. package/dist/executor-YORMIBWV.js +0 -26
  259. package/dist/export-accessible-HXMKW5LJ.js +0 -23
  260. package/dist/extract-partition-QGQ2R42J.js +0 -38
  261. package/dist/find-VV6PBIHK.js +0 -11
  262. package/dist/issue-7JJ4Z7E2.js +0 -19
  263. package/dist/liberate-FK7JI2QX.js +0 -24
  264. package/dist/noydb-KUX2TJMX.js +0 -70
  265. package/dist/register-YBMRLZLO.js +0 -23
  266. package/dist/registry-3LXKNXWI.js +0 -9
  267. package/dist/registry-4V4YQCXJ.js +0 -19
  268. package/dist/registry-ZULMLCJK.js +0 -18
  269. package/dist/request-withdrawal-SEVUEUDG.js +0 -31
  270. package/dist/revoke-5QULL5GT.js +0 -24
  271. package/dist/seed-EKF4DIBB.js.map +0 -1
  272. package/dist/signer-ZMH35FT4.js +0 -25
  273. package/dist/storage-QOZKQMID.js +0 -23
  274. package/dist/withdraw-accessible-HPOVNG2G.js +0 -28
  275. /package/dist/{api-UPAT2O3M.js.map → api-22ES33N3.js.map} +0 -0
  276. /package/dist/{backup-JL2GOTYQ.js.map → backup-YCHAC575.js.map} +0 -0
  277. /package/dist/{chunk-2RMDVWGB.js.map → chunk-2CRZOVDI.js.map} +0 -0
  278. /package/dist/{chunk-T7S4V52L.js.map → chunk-2PDBYF2O.js.map} +0 -0
  279. /package/dist/{chunk-L4OA7G5T.js.map → chunk-522MBPE5.js.map} +0 -0
  280. /package/dist/{chunk-ZJGZDOQO.js.map → chunk-5ATANZSW.js.map} +0 -0
  281. /package/dist/{chunk-M25ZIEB2.js.map → chunk-5HSSTOOG.js.map} +0 -0
  282. /package/dist/{chunk-LLVW4V7R.js.map → chunk-5WLDZZ6S.js.map} +0 -0
  283. /package/dist/{chunk-7B4GPCX7.js.map → chunk-6RPWILRH.js.map} +0 -0
  284. /package/dist/{chunk-KR5EGWI4.js.map → chunk-7ICV4ASA.js.map} +0 -0
  285. /package/dist/{chunk-KMONEHDJ.js.map → chunk-AFAPBZAA.js.map} +0 -0
  286. /package/dist/{chunk-CGPO3ZYB.js.map → chunk-BY5YBSXA.js.map} +0 -0
  287. /package/dist/{chunk-3XVOLB75.js.map → chunk-CKUYQO2P.js.map} +0 -0
  288. /package/dist/{chunk-2JZ763FV.js.map → chunk-D4LAJ737.js.map} +0 -0
  289. /package/dist/{chunk-OOTTXUNV.js.map → chunk-DYZ5CCVM.js.map} +0 -0
  290. /package/dist/{chunk-N4FZ6ITM.js.map → chunk-EGU4PWQW.js.map} +0 -0
  291. /package/dist/{chunk-JKWNG3TM.js.map → chunk-FHHYCBBP.js.map} +0 -0
  292. /package/dist/{chunk-N4A3DCBT.js.map → chunk-FTCGEUOY.js.map} +0 -0
  293. /package/dist/{chunk-5BB3N4KU.js.map → chunk-G4MFQXYX.js.map} +0 -0
  294. /package/dist/{chunk-KVHWEPT2.js.map → chunk-GHEMAVTN.js.map} +0 -0
  295. /package/dist/{chunk-OVFCAS7U.js.map → chunk-GP54LU5N.js.map} +0 -0
  296. /package/dist/{chunk-XW7NWO4A.js.map → chunk-GTNRMJYH.js.map} +0 -0
  297. /package/dist/{chunk-J6U4BOKP.js.map → chunk-HAPY7WFP.js.map} +0 -0
  298. /package/dist/{chunk-GU5AYA2Q.js.map → chunk-HQKRZIX6.js.map} +0 -0
  299. /package/dist/{chunk-OWE4BNTM.js.map → chunk-I2XEBEEF.js.map} +0 -0
  300. /package/dist/{chunk-WEC3JGBA.js.map → chunk-IGLU4ME7.js.map} +0 -0
  301. /package/dist/{chunk-BZK6JEX4.js.map → chunk-ILM6X6CP.js.map} +0 -0
  302. /package/dist/{chunk-2KL6NDD4.js.map → chunk-J5TEU77Q.js.map} +0 -0
  303. /package/dist/{chunk-V7RGFJ3Z.js.map → chunk-JIHH26WQ.js.map} +0 -0
  304. /package/dist/{chunk-XGVDLQJE.js.map → chunk-JN3SGXJE.js.map} +0 -0
  305. /package/dist/{chunk-BZEPJJOK.js.map → chunk-K7BADAOS.js.map} +0 -0
  306. /package/dist/{chunk-MSO2C3KG.js.map → chunk-LC7DSMHR.js.map} +0 -0
  307. /package/dist/{chunk-JA5B3SLH.js.map → chunk-M6QA2KK2.js.map} +0 -0
  308. /package/dist/{chunk-IUIVDVXM.js.map → chunk-MUPZ6IZX.js.map} +0 -0
  309. /package/dist/{chunk-QAFWRGVD.js.map → chunk-OGVE4IJW.js.map} +0 -0
  310. /package/dist/{chunk-2U7Y7BNJ.js.map → chunk-ONB627HU.js.map} +0 -0
  311. /package/dist/{chunk-GYB2QK5H.js.map → chunk-OWLZONGX.js.map} +0 -0
  312. /package/dist/{chunk-YHPUDB7Q.js.map → chunk-OWOT7CFC.js.map} +0 -0
  313. /package/dist/{chunk-VEX6G3YL.js.map → chunk-P4NUJVWL.js.map} +0 -0
  314. /package/dist/{chunk-NM4LVUXH.js.map → chunk-PTT2NB46.js.map} +0 -0
  315. /package/dist/{chunk-2ITLQZV5.js.map → chunk-PWWWMRT7.js.map} +0 -0
  316. /package/dist/{chunk-GS3Q2KOZ.js.map → chunk-QBOQI6PG.js.map} +0 -0
  317. /package/dist/{chunk-JIMEB4C6.js.map → chunk-QMMOMBH6.js.map} +0 -0
  318. /package/dist/{chunk-QDNVHA2F.js.map → chunk-QMZ5A6FQ.js.map} +0 -0
  319. /package/dist/{chunk-FLHOTGOO.js.map → chunk-QVGEVZ5F.js.map} +0 -0
  320. /package/dist/{chunk-AFBJHD55.js.map → chunk-QZJEYZ4I.js.map} +0 -0
  321. /package/dist/{chunk-V3YB7RGR.js.map → chunk-R2N37AA6.js.map} +0 -0
  322. /package/dist/{chunk-JLHKBAFY.js.map → chunk-RWW3I3PO.js.map} +0 -0
  323. /package/dist/{chunk-IGAIOGCN.js.map → chunk-S4YERMGJ.js.map} +0 -0
  324. /package/dist/{chunk-OGFPMCSP.js.map → chunk-SBOHNJUD.js.map} +0 -0
  325. /package/dist/{chunk-QXPOEAKR.js.map → chunk-SC4JLMZI.js.map} +0 -0
  326. /package/dist/{chunk-EDC6MLXV.js.map → chunk-SEU6QHH4.js.map} +0 -0
  327. /package/dist/{chunk-F4COUZLL.js.map → chunk-TMR64XPL.js.map} +0 -0
  328. /package/dist/{chunk-DEQ2JTBR.js.map → chunk-TNATF3HB.js.map} +0 -0
  329. /package/dist/{chunk-GZ2GKOF6.js.map → chunk-TNJVDG2B.js.map} +0 -0
  330. /package/dist/{chunk-5OZCCLNC.js.map → chunk-TSNRZSRC.js.map} +0 -0
  331. /package/dist/{chunk-QCUH2G77.js.map → chunk-UTEATWHO.js.map} +0 -0
  332. /package/dist/{chunk-YGBIBOCR.js.map → chunk-VEGQYPCP.js.map} +0 -0
  333. /package/dist/{chunk-25G7U6RD.js.map → chunk-WQN5SM7P.js.map} +0 -0
  334. /package/dist/{chunk-NOT7XA7Q.js.map → chunk-X3MWEFPT.js.map} +0 -0
  335. /package/dist/{chunk-BVZGNMVM.js.map → chunk-YFFEF6HR.js.map} +0 -0
  336. /package/dist/{chunk-H4SMS4O2.js.map → chunk-YJ3TREAC.js.map} +0 -0
  337. /package/dist/{chunk-5SZ24DL5.js.map → chunk-YQQPNXNO.js.map} +0 -0
  338. /package/dist/{chunk-EW4HFWGJ.js.map → chunk-YWZEDG7F.js.map} +0 -0
  339. /package/dist/{chunk-2VUISNGP.js.map → chunk-YXIVUWDU.js.map} +0 -0
  340. /package/dist/{chunk-YG2EG6CB.js.map → chunk-YXZNGHID.js.map} +0 -0
  341. /package/dist/{chunk-QYJIOWKN.js.map → chunk-YZN6NRTR.js.map} +0 -0
  342. /package/dist/{chunk-IZX3WZBF.js.map → chunk-YZNKFYDC.js.map} +0 -0
  343. /package/dist/{chunk-E2R5NRZD.js.map → chunk-Z4D3YGAB.js.map} +0 -0
  344. /package/dist/{chunk-STR7WBOB.js.map → chunk-ZUDAK436.js.map} +0 -0
  345. /package/dist/{chunk-ITI3SJRB.js.map → chunk-ZX5FNWH7.js.map} +0 -0
  346. /package/dist/{classified-marker-7S5IEP6Q.js.map → classified-marker-52P3D72W.js.map} +0 -0
  347. /package/dist/{collection-facade-ENLTJZBT.js.map → collection-facade-XKCFHSLR.js.map} +0 -0
  348. /package/dist/{computed-WZNKRLCY.js.map → computed-33DRJDOC.js.map} +0 -0
  349. /package/dist/{cover-B5MY43CK.js.map → cover-5BSNJREH.js.map} +0 -0
  350. /package/dist/{dead-filter-KRRD57MR.js.map → dead-filter-JXVCKS6W.js.map} +0 -0
  351. /package/dist/{delegation-UT76AQIG.js.map → delegation-WWZPEDK2.js.map} +0 -0
  352. /package/dist/{derive-SGRCCKVP.js.map → derive-CWWFEQ4N.js.map} +0 -0
  353. /package/dist/{enclave-YFKA3GJT.js.map → enclave-I5H3GINP.js.map} +0 -0
  354. /package/dist/{executor-TEZYRDN3.js.map → executor-FCJEH3FU.js.map} +0 -0
  355. /package/dist/{executor-WQQRU6DO.js.map → executor-OHET7TF7.js.map} +0 -0
  356. /package/dist/{executor-YORMIBWV.js.map → executor-SHYLIBOM.js.map} +0 -0
  357. /package/dist/{export-accessible-HXMKW5LJ.js.map → export-accessible-FBL6TDSK.js.map} +0 -0
  358. /package/dist/{extract-partition-QGQ2R42J.js.map → extract-partition-ZYIRYMTI.js.map} +0 -0
  359. /package/dist/{fanout-sidecar-HJV3A7PM.js.map → fanout-sidecar-WWXVHHUH.js.map} +0 -0
  360. /package/dist/{find-VV6PBIHK.js.map → find-LEBUXVL7.js.map} +0 -0
  361. /package/dist/{issue-7JJ4Z7E2.js.map → issue-F76PAGIR.js.map} +0 -0
  362. /package/dist/{ledger-SW6QQOAV.js.map → ledger-M2BKCNVS.js.map} +0 -0
  363. /package/dist/{liberate-FK7JI2QX.js.map → liberate-ZP7UB57K.js.map} +0 -0
  364. /package/dist/{link-set-GNGGCFI4.js.map → link-set-ZU4E5J5S.js.map} +0 -0
  365. /package/dist/{noydb-KUX2TJMX.js.map → noydb-BNDGEK5X.js.map} +0 -0
  366. /package/dist/{policy-EAXSJNOT.js.map → policy-IY2YEA3A.js.map} +0 -0
  367. /package/dist/{post-register-A7HCFBP5.js.map → post-register-XIAHB6KF.js.map} +0 -0
  368. /package/dist/{register-YBMRLZLO.js.map → register-HB4TQZSV.js.map} +0 -0
  369. /package/dist/{registry-3LXKNXWI.js.map → registry-6BMBFEXT.js.map} +0 -0
  370. /package/dist/{registry-4V4YQCXJ.js.map → registry-7CZWF3EQ.js.map} +0 -0
  371. /package/dist/{registry-ZULMLCJK.js.map → registry-JOFO7RAH.js.map} +0 -0
  372. /package/dist/{request-withdrawal-SEVUEUDG.js.map → request-withdrawal-UN3TRHWI.js.map} +0 -0
  373. /package/dist/{reveal-PB3YG544.js.map → reveal-VWXRV2XU.js.map} +0 -0
  374. /package/dist/{revoke-5QULL5GT.js.map → revoke-OLO2OVR7.js.map} +0 -0
  375. /package/dist/{signer-ZMH35FT4.js.map → signer-MGGKPYAN.js.map} +0 -0
  376. /package/dist/{stale-4UNPHWOU.js.map → stale-NBROTA66.js.map} +0 -0
  377. /package/dist/{storage-QOZKQMID.js.map → storage-3R37QZLA.js.map} +0 -0
  378. /package/dist/{store-coordination-provider-3AELCZ4Y.js.map → store-coordination-provider-P3IU5JHD.js.map} +0 -0
  379. /package/dist/{verify-MXN66IIH.js.map → verify-5X37OXRY.js.map} +0 -0
  380. /package/dist/{walk-H4YE52S2.js.map → walk-E3OVLBFR.js.map} +0 -0
  381. /package/dist/{withdraw-accessible-HPOVNG2G.js.map → withdraw-accessible-Q2EMATCU.js.map} +0 -0
@@ -7,12 +7,12 @@ import {
7
7
  decodeIdxId,
8
8
  encodeIdxId,
9
9
  isIdxId
10
- } from "../chunk-CGPO3ZYB.js";
10
+ } from "../chunk-BY5YBSXA.js";
11
11
  import {
12
12
  CollectionIndexes
13
13
  } from "../chunk-KPZS5QAQ.js";
14
14
  import "../chunk-IGJCYUT5.js";
15
- import "../chunk-IGM563N5.js";
15
+ import "../chunk-6SYOHUHM.js";
16
16
  import "../chunk-PZ5AY32C.js";
17
17
 
18
18
  // src/with-lookup/indexing/active.ts
@@ -0,0 +1,19 @@
1
+ import {
2
+ issueAttestationCore
3
+ } from "./chunk-YXIVUWDU.js";
4
+ import "./chunk-QZJEYZ4I.js";
5
+ import "./chunk-ZJADGNYF.js";
6
+ import "./chunk-GEEJPID6.js";
7
+ import "./chunk-SC4JLMZI.js";
8
+ import "./chunk-5WLDZZ6S.js";
9
+ import "./chunk-5HSSTOOG.js";
10
+ import "./chunk-G4MFQXYX.js";
11
+ import "./chunk-LP7BEXCT.js";
12
+ import "./chunk-7U6AB7DZ.js";
13
+ import "./chunk-YTW6ZIPD.js";
14
+ import "./chunk-6SYOHUHM.js";
15
+ import "./chunk-PZ5AY32C.js";
16
+ export {
17
+ issueAttestationCore
18
+ };
19
+ //# sourceMappingURL=issue-F76PAGIR.js.map
@@ -17,6 +17,7 @@
17
17
  * signature can't be exposed via a method without breaking `Collection<T>`
18
18
  * assignability to `Collection<unknown>`).
19
19
  */
20
+ import type { StrategyBag } from '../port/with/strategies.js';
20
21
  import type { NoydbStore, ConflictPolicy, CollectionConflictResolver, HistoryConfig, TierMode, CrossTierAccessEvent, VdigFieldPolicy } from './types.js';
21
22
  import type { EnclaveKey } from './enclave/index.js';
22
23
  import type { UnlockedKeyring } from '../with-party/team/keyring.js';
@@ -29,24 +30,15 @@ import type { SchemaFenceController } from '../with-shape/schema-update/fence-co
29
30
  import type { StandardSchemaV1 } from './schema.js';
30
31
  import type { LedgerStore } from '../with-commit/history/ledger/index.js';
31
32
  import type { CrdtMode } from '../with-commit/crdt/crdt.js';
32
- import type { CrdtStrategy } from './types.js';
33
- import { type HistoryStrategy } from '../with-commit/history/strategy.js';
34
- import { type I18nStrategy } from '../port/with/i18n-strategy.js';
35
- import { type SyncStrategy } from '../with-party/team/sync-strategy.js';
36
- import { type BlobStrategy } from '../port/with/blob-strategy.js';
37
- import { type AggregateStrategy } from '../with-lookup/aggregate/strategy.js';
38
- import { type TiersStrategy } from '../with-audit/tiers/strategy.js';
39
- import { type SearchStrategy } from '../with-lookup/search/strategy.js';
40
33
  import type { ObjectProjection } from '../with-shape/blobs/object-projection.js';
41
34
  import type { BlobFieldsConfig } from '../with-shape/blobs/blob-compaction.js';
42
- import type { IndexStrategy } from '../with-lookup/indexing/strategy.js';
43
35
  import type { IndexDef } from '../with-lookup/indexing/eager-indexes.js';
44
36
  import type { I18nTextDescriptor, DictKeyDescriptor, StaticDictDescriptor, DictionaryHandle } from '../port/with/i18n-strategy.js';
45
37
  import type { LookupDescriptor, MaterializedBacking } from '../port/with/lookup-strategy.js';
46
38
  import type { ComputedFields, ComputedFn, ComputedFieldEntry } from '../with-formula/computed/index.js';
47
39
  import type { RollupDeleteIntent } from './via/dispatch.js';
48
40
  import '../port/with/computed-strategy.js';
49
- import { type ClassifiedEntry, type ResolvedClassified, type ClassifiedGuardCtx, type ClassifiedStrategy, type ClassifiedViaConfig } from '../port/with/classified-strategy.js';
41
+ import { type ClassifiedEntry, type ResolvedClassified, type ClassifiedGuardCtx, type ClassifiedViaConfig } from '../port/with/classified-strategy.js';
50
42
  import type { FieldRef, Grain } from './via/graph.js';
51
43
  import type { FieldMeta } from '../with-shape/introspection/field-meta.js';
52
44
  import type { CollectionMeta } from '../with-shape/introspection/meta.js';
@@ -60,7 +52,6 @@ import type { TxContext } from '../with-commit/tx/transaction.js';
60
52
  import type { MaterializedViewRegistry } from '../with-formula/materialized-views/registry.js';
61
53
  import type { MVQueryContext } from '../with-formula/materialized-views/types.js';
62
54
  import type { Collection, OnDirtyCallback, CacheOptions } from './collection.js';
63
- import type { LazyStrategy } from '../port/with/lazy-strategy.js';
64
55
  import { ViaPipeline } from './via/pipeline.js';
65
56
  import { type ViaBinding, type ViaDescriptor } from './via/index.js';
66
57
  import { type ViaFieldSpec } from './via/compose.js';
@@ -74,6 +65,14 @@ export interface CollectionOpts<T> {
74
65
  name: string;
75
66
  keyring: UnlockedKeyring;
76
67
  encrypted: boolean;
68
+ /**
69
+ * Every opt-in service, resolved once by `createNoydb` (#838). Replaces the
70
+ * eleven optional `*Strategy` fields this interface used to declare, each of
71
+ * which re-applied a `?? NO_*` default that had already been applied
72
+ * upstream. Each entry is a tree-shake seam: an un-opted-in service holds
73
+ * its `NO_*` stub, so the real machinery never reaches the bundle.
74
+ */
75
+ strategies: StrategyBag;
77
76
  /**
78
77
  * Opt-in: keep the working set encrypted in RAM, decrypting on read (future phase).
79
78
  * Default false — the working set is plaintext.
@@ -113,13 +112,6 @@ export interface CollectionOpts<T> {
113
112
  * back to an unconditional store read on re-create.
114
113
  */
115
114
  tabCoordinated?: (() => boolean) | undefined;
116
- /**
117
- * tree-shake seam. When omitted, `collection.blob(id)` throws
118
- * with a pointer at the `@noy-db/hub/blobs` subpath. When set (via
119
- * `createNoydb({ blobStrategy: blobs() })`), blob storage is live.
120
- * `@internal` by virtue of `BlobStrategy` being `@internal`.
121
- */
122
- blobStrategy?: BlobStrategy | undefined;
123
115
  objectStore?: ObjectProjection | undefined;
124
116
  blobFields?: BlobFieldsConfig | undefined;
125
117
  /**
@@ -132,26 +124,6 @@ export interface CollectionOpts<T> {
132
124
  * decryptable at rest under the flat `_blob` DEK (documented residue).
133
125
  */
134
126
  blobTierPolicy?: 'isolate' | 'dedup' | undefined;
135
- aggregateStrategy?: AggregateStrategy | undefined;
136
- crdtStrategy?: CrdtStrategy | undefined;
137
- /**
138
- * tree-shake seam — strategy for optional history/ledger/
139
- * time-machine. When omitted, history snapshots and ledger appends
140
- * become silent no-ops (data still writes); the read APIs
141
- * (`history`, `getVersion`, `revert`, `diff`, `clearHistory`,
142
- * `pruneRecordHistory`) throw with a pointer at `@noy-db/hub/history`.
143
- */
144
- historyStrategy?: HistoryStrategy | undefined;
145
- i18nStrategy?: I18nStrategy | undefined;
146
- syncStrategy?: SyncStrategy | undefined;
147
- /**
148
- * tree-shake seam. When omitted, indexing is off for this
149
- * collection — every `.lazyQuery()` call throws, `.rebuildIndexes()`
150
- * is a no-op, and `indexes: [...]` declarations are ignored. Enable
151
- * by passing `withIndexing()` from `@noy-db/hub/indexing` at
152
- * `createNoydb` time.
153
- */
154
- indexStrategy?: IndexStrategy | undefined;
155
127
  indexes?: IndexDef[] | undefined;
156
128
  /**
157
129
  * Auto-reconcile behavior for persisted-index drift on lazy-mode
@@ -183,12 +155,6 @@ export interface CollectionOpts<T> {
183
155
  * unbounded lazy cache defeats the purpose.
184
156
  */
185
157
  cache?: CacheOptions | undefined;
186
- /**
187
- * Lazy service seam (#267) — supplies the bounded-LRU working-set cache
188
- * when `prefetch: false`. Omitted → the deprecated IMPLICIT_LAZY
189
- * back-compat default (identical behavior + one-time warn).
190
- */
191
- lazyStrategy?: LazyStrategy | undefined;
192
158
  /**
193
159
  * Optional Standard Schema v1 validator (Zod, Valibot, ArkType,
194
160
  * Effect Schema, etc.). When set, every `put()` is validated before
@@ -274,8 +240,6 @@ export interface CollectionOpts<T> {
274
240
  * `undefined` when no forget strategy declares this collection (no-op).
275
241
  */
276
242
  addSubjectRef?: ((id: string, record: unknown) => Promise<void>) | undefined;
277
- /** — tree-shake seam for `collection.reveal()`. Defaults to `NO_CLASSIFIED`. */
278
- classifiedStrategy?: ClassifiedStrategy | undefined;
279
243
  /**
280
244
  * async callback that resolves a dict key to its label
281
245
  * for a given locale. Provided by the Vault.
@@ -433,20 +397,6 @@ export interface CollectionOpts<T> {
433
397
  * throw). Tier 0 is implicit and always available.
434
398
  */
435
399
  tiers?: readonly number[] | undefined;
436
- /**
437
- * tree-shake seam — strategy for the collection-level tier operations
438
- * (`putAtTier`/`getAtTier`/`listAtTier`/`elevate`/`demote`). When omitted,
439
- * every tier operation throws `TiersNotEnabledError`. Enable by passing
440
- * `withTiers()` from `@noy-db/hub/tiers` at `createNoydb` time.
441
- */
442
- tiersStrategy?: TiersStrategy | undefined;
443
- /**
444
- * Search / retrieval capability strategy. When omitted, a collection's
445
- * `search`/`retrieve`/`similarTo`/`warmIndex`/`flushIndex` methods and the
446
- * embedding write-hook throw `SearchNotEnabledError`. Enable by passing
447
- * `withSearch()` from `@noy-db/hub` at `createNoydb` time.
448
- */
449
- searchStrategy?: SearchStrategy | undefined;
450
400
  /**
451
401
  * what a lower-tier caller sees for above-tier
452
402
  * records. Default `'invisibility'`.
@@ -702,14 +652,9 @@ export declare function resolveCollectionConfig<T>(opts: CollectionOpts<T>): {
702
652
  writeHooks: WriteHookRegistry | undefined;
703
653
  subsystemBus: ServiceBus | undefined;
704
654
  activeTxId: (() => string | null) | undefined;
705
- blobStrategy: BlobStrategy;
655
+ strategies: StrategyBag;
706
656
  objectStore: ObjectProjection | undefined;
707
657
  blobFields: BlobFieldsConfig | undefined;
708
- aggregateStrategy: AggregateStrategy;
709
- crdtStrategy: CrdtStrategy;
710
- historyStrategy: HistoryStrategy;
711
- i18nStrategy: I18nStrategy;
712
- syncStrategy: SyncStrategy;
713
658
  reconcileOnOpen: "auto" | "off" | "dry-run";
714
659
  getDEK: (collectionName: string) => Promise<EnclaveKey>;
715
660
  onDirty: OnDirtyCallback | undefined;
@@ -742,7 +687,6 @@ export declare function resolveCollectionConfig<T>(opts: CollectionOpts<T>): {
742
687
  moneyFields: Record<string, ViaDescriptor> | undefined;
743
688
  classified: ResolvedClassified | undefined;
744
689
  classifiedGuardCtx: ClassifiedGuardCtx;
745
- classifiedStrategy: ClassifiedStrategy;
746
690
  computed: ComputedFields | undefined;
747
691
  computedEdges: readonly GraphEdge[];
748
692
  viaDepsEdges: readonly GraphEdge[];
@@ -794,8 +738,6 @@ export declare function resolveCollectionConfig<T>(opts: CollectionOpts<T>): {
794
738
  collectDelete(collection: string, id: string, intents: readonly RollupDeleteIntent[]): void;
795
739
  } | undefined;
796
740
  tiers: Set<number> | null;
797
- tiersStrategy: TiersStrategy;
798
- searchStrategy: SearchStrategy;
799
741
  tierMode: TierMode;
800
742
  blobTierPolicy: "isolate" | "dedup";
801
743
  onCrossTierAccess: ((event: CrossTierAccessEvent) => void) | undefined;
@@ -96,24 +96,19 @@ export declare class Collection<T, S extends keyof T = never, Q extends keyof T
96
96
  /** True when the caller explicitly provided a `historyConfig` option (vs. inheriting the vault default). */
97
97
  private readonly historyConfigExplicit;
98
98
  /**
99
- * tree-shake seam — the strategy that backs `collection.blob(id)`.
100
- * Defaults to `NO_BLOBS`, a ~10-line stub that throws with an actionable
101
- * message. Consumers opt into real blob storage by importing
102
- * `{ blobs }` from `@noy-db/hub/blobs` and passing the returned
103
- * strategy to `createNoydb({ blobStrategy: blobs() })`. With the
104
- * default stub, none of the BlobSet / chunk / MIME-magic machinery
105
- * reaches the bundle.
106
- */
107
- private readonly blobStrategy;
99
+ * Every opt-in service, resolved once by `createNoydb` (#838) and shared by
100
+ * reference with the owning `Vault` and `Noydb`.
101
+ *
102
+ * Each entry is a tree-shake seam. An un-opted-in service resolves to its
103
+ * `NO_*` stub — a tiny module that throws with an actionable message —
104
+ * so, for example, none of the BlobSet / chunk / MIME-magic machinery
105
+ * reaches the bundle unless the consumer imports `@noy-db/hub/blobs` and
106
+ * passes `blobStrategy: blobs()` to `createNoydb`.
107
+ */
108
+ private readonly strategies;
108
109
  private readonly objectStore;
109
110
  private readonly blobFields;
110
111
  private readonly blobTierPolicy;
111
- private readonly aggregateStrategy;
112
- private readonly crdtStrategy;
113
- private readonly tiersStrategy;
114
- private readonly searchStrategy;
115
- private readonly historyStrategy;
116
- private readonly syncStrategy;
117
112
  private readonly cache;
118
113
  private hydrated;
119
114
  /**
@@ -275,12 +270,6 @@ export declare class Collection<T, S extends keyof T = never, Q extends keyof T
275
270
  /** C-A/R10 memoization: marker declared-set lookup (undefined=unresolved) + classified-handle persist-once flag. */
276
271
  private _markerDigestOnlyCache;
277
272
  private _markerPersisted;
278
- /**
279
- * Tree-shake seam for `reveal()` — defaults to `NO_CLASSIFIED`, which
280
- * throws `ClassifiedNotEnabledError`. Set via the `classifiedStrategy`
281
- * `createNoydb()` option (opt in with `withClassified()`).
282
- */
283
- private readonly classifiedStrategy;
284
273
  /** Async callback provided by the Vault to open a dynamic dictionary handle (for label-map pre-computation in the search index). Only used in `resolveDictLabelMaps()`; static dicts bypass this entirely. Mutable, assign-once — see {@link _reconcileReadState} (#671 item 1). */
285
274
  private getDictionary;
286
275
  /**
@@ -676,7 +665,6 @@ export declare class Collection<T, S extends keyof T = never, Q extends keyof T
676
665
  * right back out, defeating C6.
677
666
  */
678
667
  private _toCacheableRecord;
679
- /** @internal Untracked put body — call {@link put}, not this. */
680
668
  private _putInternal;
681
669
  /**
682
670
  * Fire registered MV strategies whose dependency set includes this
@@ -22,7 +22,7 @@
22
22
  * ## Key lifecycle
23
23
  *
24
24
  * ```
25
- * passphrase + salt
25
+ * secret + salt
26
26
  * └─► deriveKey() → KEK (CryptoKey, extractable: false)
27
27
  * └─► wrapKey() → wrapped DEK bytes [stored in keyring]
28
28
  * └─► unwrapKey() → DEK (CryptoKey) [memory only during session]
@@ -46,26 +46,26 @@
46
46
  * between barrel functions (`encrypt`/`decrypt`/`wrapKey`/`unwrapKey`/…).
47
47
  */
48
48
  export type EnclaveKey = CryptoKey;
49
- /** Derive a KEK from a passphrase and salt using PBKDF2-SHA256. */
50
- export declare function deriveKey(passphrase: string, salt: Uint8Array): Promise<CryptoKey>;
49
+ /** Derive a KEK from a secret and salt using PBKDF2-SHA256. */
50
+ export declare function deriveKey(secret: string, salt: Uint8Array): Promise<CryptoKey>;
51
51
  /**
52
- * Which AES algorithm/usage a {@link derivePassphraseKey} result is for:
52
+ * Which AES algorithm/usage a {@link deriveSecretKey} result is for:
53
53
  * `'aes-kw'` mints a key-wrapping key (`wrapKey`/`unwrapKey`, e.g. for
54
54
  * KEK derivation); `'aes-gcm'` mints a direct encrypt/decrypt key (e.g.
55
55
  * for the wrap-DEKs primitive in `with-party/team/wrapped-deks.ts`).
56
56
  */
57
- export type PassphraseKeyUsage = 'aes-kw' | 'aes-gcm';
57
+ export type SecretKeyUsage = 'aes-kw' | 'aes-gcm';
58
58
  /**
59
- * Derive a non-extractable AES key from a passphrase/credential and salt
59
+ * Derive a non-extractable AES key from a secret/credential and salt
60
60
  * via PBKDF2-SHA256, generalizing {@link deriveKey}'s AES-KW derivation to
61
61
  * also cover AES-GCM-usage keys. Callers pin their own `iterations` and
62
62
  * `keyUsage` so an existing call site's exact parameters (and thus its
63
63
  * derived-key bytes) are preserved verbatim when migrated onto this
64
64
  * shared primitive — this is call-site consolidation, not a KDF change.
65
65
  */
66
- export declare function derivePassphraseKey(passphrase: string, salt: Uint8Array, params: {
66
+ export declare function deriveSecretKey(secret: string, salt: Uint8Array, params: {
67
67
  iterations: number;
68
- keyUsage: PassphraseKeyUsage;
68
+ keyUsage: SecretKeyUsage;
69
69
  }): Promise<CryptoKey>;
70
70
  /** Generate a random AES-256-GCM data encryption key. */
71
71
  export declare function generateDEK(): Promise<CryptoKey>;
@@ -56,8 +56,8 @@
56
56
  */
57
57
  export type { EnclaveKey, EncryptResult } from './crypto.js';
58
58
  export { encrypt, decrypt, encryptBytes, decryptBytes, encryptBytesWithAAD, decryptBytesWithAAD, encryptDeterministic, decryptDeterministic, sha256Hex, hmacSha256Hex, } from './crypto.js';
59
- export { deriveKey, derivePassphraseKey, generateDEK, generateSalt, generateIV, wrapKey, unwrapKey, bufferToBase64, base64ToBuffer, derivePresenceKey, deriveDeterministicKey, deriveSealedFieldKey, deriveSealedFieldKeyFromCek, wrapCek, unwrapCek, importCek, } from './crypto.js';
60
- export type { PassphraseKeyUsage } from './crypto.js';
59
+ export { deriveKey, deriveSecretKey, generateDEK, generateSalt, generateIV, wrapKey, unwrapKey, bufferToBase64, base64ToBuffer, derivePresenceKey, deriveDeterministicKey, deriveSealedFieldKey, deriveSealedFieldKeyFromCek, wrapCek, unwrapCek, importCek, } from './crypto.js';
60
+ export type { SecretKeyUsage } from './crypto.js';
61
61
  export { resolveStableCek, rewrapBodyToDek, rewrapEnvelope, applyRewrappedBody, isRewrappedUnder } from './record-keys/lifecycle.js';
62
62
  export type { RewrappedBody } from './record-keys/lifecycle.js';
63
63
  export { RecordCodec } from './record-keys/record-codec.js';
@@ -10,7 +10,7 @@
10
10
  * ├─ Crypto errors
11
11
  * │ ├─ DecryptionError — AES-GCM tag failure
12
12
  * │ ├─ TamperedError — ciphertext modified after write
13
- * │ └─ InvalidKeyError — wrong passphrase / corrupt keyring
13
+ * │ └─ InvalidKeyError — wrong secret / corrupt keyring
14
14
  * ├─ Access errors
15
15
  * │ ├─ NoAccessError — no DEK for this collection
16
16
  * │ ├─ ReadOnlyError — ro permission, write attempted
@@ -78,9 +78,9 @@
78
78
  * import { NoydbError, InvalidKeyError, ConflictError } from '@noy-db/hub'
79
79
  *
80
80
  * try {
81
- * await vault.unlock(passphrase)
81
+ * await vault.unlock(secret)
82
82
  * } catch (e) {
83
- * if (e instanceof InvalidKeyError) { showBadPassphraseUI(); return }
83
+ * if (e instanceof InvalidKeyError) { showBadSecretUI(); return }
84
84
  * if (e instanceof NoydbError) { logToSentry(e.code, e); return }
85
85
  * throw e // unexpected — re-throw
86
86
  * }
@@ -125,8 +125,8 @@ export declare class DebugReservedFieldError extends NoydbError {
125
125
  /**
126
126
  * Thrown when AES-GCM decryption fails.
127
127
  *
128
- * The most common cause is a wrong passphrase or a corrupted ciphertext.
129
- * A `DecryptionError` at the wrong passphrase level is caught internally
128
+ * The most common cause is a wrong secret or a corrupted ciphertext.
129
+ * A `DecryptionError` at the wrong secret level is caught internally
130
130
  * and re-thrown as `InvalidKeyError` — so in practice this surfaces for
131
131
  * per-record corruption rather than authentication failures.
132
132
  */
@@ -146,12 +146,12 @@ export declare class TamperedError extends NoydbError {
146
146
  constructor(message?: string);
147
147
  }
148
148
  /**
149
- * Thrown when key unwrapping fails, typically because the passphrase is wrong
149
+ * Thrown when key unwrapping fails, typically because the secret is wrong
150
150
  * or the keyring file is corrupted.
151
151
  *
152
152
  * NOYDB uses AES-KW (RFC 3394) to wrap DEKs with the KEK. If AES-KW
153
153
  * unwrapping fails, it means either the KEK was derived from the wrong
154
- * passphrase (PBKDF2 with 600K iterations) or the keyring bytes are
154
+ * secret (PBKDF2 with 600K iterations) or the keyring bytes are
155
155
  * corrupted. This is the error shown to the user on a failed unlock attempt.
156
156
  */
157
157
  export declare class InvalidKeyError extends NoydbError {
@@ -160,7 +160,7 @@ export declare class InvalidKeyError extends NoydbError {
160
160
  /**
161
161
  * Thrown when a keyring's wrapped-DEK set unwraps partially — at least
162
162
  * one DEK succeeds (proving the KEK is correct) but at least one fails.
163
- * The passphrase is right; the failed entries are corrupted.
163
+ * The secret is right; the failed entries are corrupted.
164
164
  *
165
165
  * This is distinct from {@link InvalidKeyError} so that
166
166
  * `NoydbOptions.onInvalidKey: 'reset'` does NOT fire — resetting on
@@ -273,7 +273,7 @@ export declare class ExportCapabilityError extends NoydbError {
273
273
  * Thrown when a keyring file's `expires_at` cutoff has passed.
274
274
  * Surfaced by `loadKeyring` before any DEK unwrap is attempted —
275
275
  * past the cutoff the slot refuses to open even with the right
276
- * passphrase. Distinct from PBKDF2 / unwrap errors so consumer code
276
+ * secret. Distinct from PBKDF2 / unwrap errors so consumer code
277
277
  * can show a precise "this bundle slot has expired" message instead
278
278
  * of the generic decryption-failure UX.
279
279
  *
@@ -948,14 +948,14 @@ export declare class BundleIntegrityError extends NoydbError {
948
948
  }
949
949
  /**
950
950
  * Thrown by `readPod` when the bundle carries
951
- * sealed per-user passphrases but no supplied `SealingKeyProvider`
951
+ * sealed per-user secrets but no supplied `SealingKeyProvider`
952
952
  * has a `.id` (= `pid`) matching the sealed entry's `pid`.
953
953
  *
954
954
  * Carries the failing pid + the user id so the recipient can
955
955
  * surface an actionable prompt:
956
956
  *
957
957
  * ```
958
- * BundleSealMismatchError: bundle carries sealed passphrase for user "alice"
958
+ * BundleSealMismatchError: bundle carries sealed secret for user "alice"
959
959
  * under provider "macos-keychain:com.acme.app/alice@acme.example",
960
960
  * but no registered provider matches that pid.
961
961
  * ```
@@ -1290,7 +1290,7 @@ export declare class CustodyNotEnabledError extends NoydbError {
1290
1290
  * (#267 keyring-grant → team split): enable multi-user grant/revoke/rotate
1291
1291
  * with `teamStrategy: withTeam()` from "@noy-db/hub/team" in createNoydb().
1292
1292
  * Single-user primitives (owner keyring, unlock, `listUsers`, `updateUser`,
1293
- * passphrase rotate/recover) stay ungated.
1293
+ * secret rotate/recover) stay ungated.
1294
1294
  */
1295
1295
  export declare class TeamNotEnabledError extends NoydbError {
1296
1296
  constructor(message?: string);
@@ -1386,7 +1386,7 @@ export declare class SessionNotFoundError extends NoydbError {
1386
1386
  *
1387
1387
  * The `operation` field names the specific operation that was blocked
1388
1388
  * (e.g. `'export'`, `'grant'`, `'rotate'`) so the caller can surface
1389
- * a targeted prompt ("Please re-enter your passphrase to export data").
1389
+ * a targeted prompt ("Please re-enter your secret to export data").
1390
1390
  */
1391
1391
  export declare class SessionPolicyError extends NoydbError {
1392
1392
  readonly operation: string;
@@ -1825,7 +1825,7 @@ export declare class PolicyDeniedError extends NoydbError {
1825
1825
  }
1826
1826
  /**
1827
1827
  * Raised by `createNoydb({ ... })` when the developer omits a recovery
1828
- * profile and `recover-passphrase` is not explicitly disabled. Vaults
1828
+ * profile and `recover-secret` is not explicitly disabled. Vaults
1829
1829
  * MUST have at least one recovery path enrolled before being
1830
1830
  * production-ready (paper, shamir, multi-channel, or admin-mediated).
1831
1831
  *
@@ -1835,10 +1835,10 @@ export declare class RecoveryNotEnrolledError extends NoydbError {
1835
1835
  constructor(message?: string);
1836
1836
  }
1837
1837
  /**
1838
- * Raised by `openVault` when a managed-passphrase-mode vault has no
1838
+ * Raised by `openVault` when a managed-secret-mode vault has no
1839
1839
  * STRONG recovery profile enrolled.
1840
1840
  *
1841
- * Managed mode means the user never types a passphrase — the unlock
1841
+ * Managed mode means the user never types a secret — the unlock
1842
1842
  * material lives in a `SealingKeyProvider` (`at-*` package). If that
1843
1843
  * provider's key is lost AND no strong recovery is enrolled, the
1844
1844
  * vault is irrecoverable. To prevent that footgun, managed-mode vaults
@@ -1846,11 +1846,11 @@ export declare class RecoveryNotEnrolledError extends NoydbError {
1846
1846
  * multi-channel / admin-mediated when those ship).
1847
1847
  *
1848
1848
  * Paper recovery alone is NOT strong under managed mode: the user has
1849
- * no memorized passphrase to fall back on, so losing the paper sheet =
1849
+ * no memorized secret to fall back on, so losing the paper sheet =
1850
1850
  * losing every record permanently.
1851
1851
  *
1852
- * Bootstrap with `db.openVaultAndEnrollRecovery(vault, { recovery: [{ profile: "shamir", k, n }] })`
1853
- * to atomically create-and-enroll, or call `db.enrollRecovery(vault, { profile: "shamir", ... })`
1852
+ * Bootstrap with `db.team.openVaultAndEnrollRecovery(vault, { recovery: [{ profile: "shamir", k, n }] })`
1853
+ * to atomically create-and-enroll, or call `db.team.enrollRecovery(vault, { profile: "shamir", ... })`
1854
1854
  * separately before re-attempting `openVault`.
1855
1855
  */
1856
1856
  export declare class ManagedRecoveryNotEnrolledError extends NoydbError {
@@ -1858,7 +1858,7 @@ export declare class ManagedRecoveryNotEnrolledError extends NoydbError {
1858
1858
  constructor(vault: string);
1859
1859
  }
1860
1860
  /**
1861
- * Raised by `db.recoverPassphrase` / `db.enrollRecovery` /
1861
+ * Raised by `db.recoverSecret` / `db.enrollRecovery` /
1862
1862
  * `db.rotateRecovery` when the developer requests a recovery profile
1863
1863
  * not yet wired in this hub release.
1864
1864
  *