@noy-db/hub 0.4.0-pre.4 → 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 (378) 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-W7TCXZWU.js → chunk-EEZCB74X.js} +393 -716
  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-QUIG6BZT.js → chunk-FIP7KI2P.js} +26 -26
  45. package/dist/chunk-FIP7KI2P.js.map +1 -0
  46. package/dist/{chunk-5KI3REO3.js → chunk-FTCGEUOY.js} +7 -7
  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-JW3XCZA2.js → chunk-HAPY7WFP.js} +11 -11
  54. package/dist/{chunk-4X6DJZHY.js → chunk-HQKRZIX6.js} +4 -4
  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-BLB7P7LS.js → chunk-KJTIAECI.js} +17 -17
  67. package/dist/chunk-KJTIAECI.js.map +1 -0
  68. package/dist/{chunk-U73LHVPF.js → chunk-L2CAWCQL.js} +4 -4
  69. package/dist/{chunk-MSO2C3KG.js → chunk-LC7DSMHR.js} +2 -2
  70. package/dist/{chunk-JA5B3SLH.js → chunk-M6QA2KK2.js} +2 -2
  71. package/dist/{chunk-IUIVDVXM.js → chunk-MUPZ6IZX.js} +2 -2
  72. package/dist/{chunk-QAFWRGVD.js → chunk-OGVE4IJW.js} +7 -7
  73. package/dist/{chunk-BCOKZC4B.js → chunk-OHV6T5JB.js} +19 -19
  74. package/dist/chunk-OHV6T5JB.js.map +1 -0
  75. package/dist/{chunk-25ZDB25Z.js → chunk-OMSKGLYA.js} +3 -3
  76. package/dist/chunk-OMSKGLYA.js.map +1 -0
  77. package/dist/{chunk-2U7Y7BNJ.js → chunk-ONB627HU.js} +2 -2
  78. package/dist/{chunk-GYB2QK5H.js → chunk-OWLZONGX.js} +2 -2
  79. package/dist/{chunk-YHPUDB7Q.js → chunk-OWOT7CFC.js} +2 -2
  80. package/dist/{chunk-VEX6G3YL.js → chunk-P4NUJVWL.js} +2 -2
  81. package/dist/{chunk-NM4LVUXH.js → chunk-PTT2NB46.js} +2 -2
  82. package/dist/{chunk-2ITLQZV5.js → chunk-PWWWMRT7.js} +2 -2
  83. package/dist/{chunk-GS3Q2KOZ.js → chunk-QBOQI6PG.js} +2 -2
  84. package/dist/{chunk-JIMEB4C6.js → chunk-QMMOMBH6.js} +4 -4
  85. package/dist/{chunk-QDNVHA2F.js → chunk-QMZ5A6FQ.js} +2 -2
  86. package/dist/{chunk-FLHOTGOO.js → chunk-QVGEVZ5F.js} +3 -3
  87. package/dist/{chunk-AFBJHD55.js → chunk-QZJEYZ4I.js} +5 -5
  88. package/dist/{chunk-V3YB7RGR.js → chunk-R2N37AA6.js} +3 -3
  89. package/dist/{chunk-JLHKBAFY.js → chunk-RWW3I3PO.js} +3 -3
  90. package/dist/{chunk-IGAIOGCN.js → chunk-S4YERMGJ.js} +4 -4
  91. package/dist/{chunk-OGFPMCSP.js → chunk-SBOHNJUD.js} +2 -2
  92. package/dist/{chunk-QXPOEAKR.js → chunk-SC4JLMZI.js} +2 -2
  93. package/dist/{chunk-EDC6MLXV.js → chunk-SEU6QHH4.js} +2 -2
  94. package/dist/{chunk-F4COUZLL.js → chunk-TMR64XPL.js} +2 -2
  95. package/dist/{chunk-DEQ2JTBR.js → chunk-TNATF3HB.js} +3 -3
  96. package/dist/{chunk-GZ2GKOF6.js → chunk-TNJVDG2B.js} +3 -3
  97. package/dist/{chunk-5OZCCLNC.js → chunk-TSNRZSRC.js} +2 -2
  98. package/dist/{chunk-QCUH2G77.js → chunk-UTEATWHO.js} +6 -6
  99. package/dist/{chunk-JA5O7UEZ.js → chunk-UVBHM7AK.js} +6 -6
  100. package/dist/chunk-UVBHM7AK.js.map +1 -0
  101. package/dist/{chunk-HKR25MGX.js → chunk-V5JUAW4M.js} +10 -10
  102. package/dist/chunk-V5JUAW4M.js.map +1 -0
  103. package/dist/{chunk-YGBIBOCR.js → chunk-VEGQYPCP.js} +7 -7
  104. package/dist/{chunk-25G7U6RD.js → chunk-WQN5SM7P.js} +2 -2
  105. package/dist/{chunk-NOT7XA7Q.js → chunk-X3MWEFPT.js} +5 -5
  106. package/dist/chunk-XUFAFHQM.js +78 -0
  107. package/dist/chunk-XUFAFHQM.js.map +1 -0
  108. package/dist/{chunk-MEKAMERX.js → chunk-YCAJDK4O.js} +29 -29
  109. package/dist/chunk-YCAJDK4O.js.map +1 -0
  110. package/dist/{chunk-BVZGNMVM.js → chunk-YFFEF6HR.js} +3 -3
  111. package/dist/{chunk-H4SMS4O2.js → chunk-YJ3TREAC.js} +2 -2
  112. package/dist/{chunk-5SZ24DL5.js → chunk-YQQPNXNO.js} +6 -6
  113. package/dist/{chunk-5BHNQNBI.js → chunk-YTW6ZIPD.js} +1 -1
  114. package/dist/chunk-YTW6ZIPD.js.map +1 -0
  115. package/dist/{chunk-EW4HFWGJ.js → chunk-YWZEDG7F.js} +6 -6
  116. package/dist/{chunk-2VUISNGP.js → chunk-YXIVUWDU.js} +5 -5
  117. package/dist/{chunk-YG2EG6CB.js → chunk-YXZNGHID.js} +4 -4
  118. package/dist/{chunk-QYJIOWKN.js → chunk-YZN6NRTR.js} +9 -9
  119. package/dist/{chunk-IZX3WZBF.js → chunk-YZNKFYDC.js} +4 -4
  120. package/dist/{chunk-E2R5NRZD.js → chunk-Z4D3YGAB.js} +2 -2
  121. package/dist/{chunk-STR7WBOB.js → chunk-ZUDAK436.js} +2 -2
  122. package/dist/{chunk-ITI3SJRB.js → chunk-ZX5FNWH7.js} +2 -2
  123. package/dist/classified/index.js +5 -5
  124. package/dist/{classified-marker-7S5IEP6Q.js → classified-marker-52P3D72W.js} +3 -3
  125. package/dist/collection-facade-XKCFHSLR.js +44 -0
  126. package/dist/{computed-WZNKRLCY.js → computed-33DRJDOC.js} +3 -3
  127. package/dist/consent/index.js +9 -9
  128. package/dist/{cover-B5MY43CK.js → cover-5BSNJREH.js} +4 -4
  129. package/dist/{dead-filter-KRRD57MR.js → dead-filter-JXVCKS6W.js} +2 -2
  130. package/dist/delegation-WWZPEDK2.js +25 -0
  131. package/dist/derivations/index.js +12 -12
  132. package/dist/derive-CWWFEQ4N.js +21 -0
  133. package/dist/dispatch-PKQQFDBT.js +193 -0
  134. package/dist/dispatch-PKQQFDBT.js.map +1 -0
  135. package/dist/dispatch-SMXUO7W5.js +72 -0
  136. package/dist/dispatch-SMXUO7W5.js.map +1 -0
  137. package/dist/{enclave-YFKA3GJT.js → enclave-I5H3GINP.js} +11 -11
  138. package/dist/executor-FCJEH3FU.js +9 -0
  139. package/dist/executor-OHET7TF7.js +9 -0
  140. package/dist/executor-SHYLIBOM.js +26 -0
  141. package/dist/export-accessible-FBL6TDSK.js +23 -0
  142. package/dist/extract-partition-ZYIRYMTI.js +38 -0
  143. package/dist/{fanout-sidecar-HJV3A7PM.js → fanout-sidecar-WWXVHHUH.js} +9 -9
  144. package/dist/find-LEBUXVL7.js +11 -0
  145. package/dist/forget/index.js +9 -9
  146. package/dist/guards/index.js +3 -3
  147. package/dist/history/index.js +12 -12
  148. package/dist/i18n/index.js +14 -14
  149. package/dist/index.d.ts +13 -9
  150. package/dist/index.js +119 -118
  151. package/dist/index.js.map +1 -1
  152. package/dist/indexing/index.js +2 -2
  153. package/dist/issue-F76PAGIR.js +19 -0
  154. package/dist/kernel/collection.d.ts +0 -1
  155. package/dist/kernel/enclave/crypto.d.ts +8 -8
  156. package/dist/kernel/enclave/index.d.ts +2 -2
  157. package/dist/kernel/errors.d.ts +20 -20
  158. package/dist/kernel/noydb.d.ts +32 -91
  159. package/dist/kernel/types.d.ts +82 -41
  160. package/dist/kernel/validation.d.ts +33 -33
  161. package/dist/kernel/vault.d.ts +12 -149
  162. package/dist/kernel/via/dispatch.d.ts +7 -0
  163. package/dist/{ledger-SW6QQOAV.js → ledger-M2BKCNVS.js} +11 -11
  164. package/dist/liberate-ZP7UB57K.js +24 -0
  165. package/dist/{link-set-GNGGCFI4.js → link-set-ZU4E5J5S.js} +11 -11
  166. package/dist/materialized-views/index.js +19 -19
  167. package/dist/noydb-BNDGEK5X.js +71 -0
  168. package/dist/on/index.js +9 -9
  169. package/dist/overlay-views/index.js +4 -4
  170. package/dist/periods/index.js +13 -13
  171. package/dist/pod/index.js +11 -11
  172. package/dist/{policy-EAXSJNOT.js → policy-IY2YEA3A.js} +5 -5
  173. package/dist/port/at/index.d.ts +4 -4
  174. package/dist/port/with/collection-options.d.ts +171 -0
  175. package/dist/port/with/team-strategy.d.ts +1 -1
  176. package/dist/portability/index.js +8 -8
  177. package/dist/{post-register-A7HCFBP5.js → post-register-XIAHB6KF.js} +6 -6
  178. package/dist/query/index.js +6 -6
  179. package/dist/register-HB4TQZSV.js +23 -0
  180. package/dist/registry-6BMBFEXT.js +19 -0
  181. package/dist/registry-7CZWF3EQ.js +9 -0
  182. package/dist/registry-JOFO7RAH.js +18 -0
  183. package/dist/request-withdrawal-UN3TRHWI.js +31 -0
  184. package/dist/{reveal-PB3YG544.js → reveal-VWXRV2XU.js} +6 -6
  185. package/dist/revoke-OLO2OVR7.js +24 -0
  186. package/dist/satellites/index.js +1 -1
  187. package/dist/sealed-record/index.js +12 -12
  188. package/dist/{seed-EKF4DIBB.js → seed-CDBFOTIK.js} +12 -12
  189. package/dist/seed-CDBFOTIK.js.map +1 -0
  190. package/dist/session/index.js +9 -9
  191. package/dist/shadow/index.js +2 -2
  192. package/dist/signer-MGGKPYAN.js +25 -0
  193. package/dist/snapshots/index.js +10 -10
  194. package/dist/{stale-4UNPHWOU.js → stale-NBROTA66.js} +10 -10
  195. package/dist/storage-3R37QZLA.js +23 -0
  196. package/dist/{store-coordination-provider-3AELCZ4Y.js → store-coordination-provider-P3IU5JHD.js} +3 -3
  197. package/dist/sync/index.js +10 -10
  198. package/dist/team/index.js +20 -20
  199. package/dist/tiers/index.js +10 -10
  200. package/dist/to/index.js +1 -1
  201. package/dist/tx/index.js +3 -3
  202. package/dist/util/index.js +1 -1
  203. package/dist/{verify-MXN66IIH.js → verify-5X37OXRY.js} +5 -5
  204. package/dist/{walk-H4YE52S2.js → walk-E3OVLBFR.js} +11 -11
  205. package/dist/with/index.js +11 -11
  206. package/dist/with-audit/portability/export-accessible.d.ts +4 -4
  207. package/dist/with-audit/portability/request-withdrawal.d.ts +3 -3
  208. package/dist/with-audit/portability/withdraw-accessible.d.ts +2 -2
  209. package/dist/with-audit/sealed-record/strategy.d.ts +1 -1
  210. package/dist/with-cargo/adopt-partition.d.ts +7 -7
  211. package/dist/with-cargo/index.d.ts +1 -1
  212. package/dist/with-commit/history/time-machine.d.ts +2 -2
  213. package/dist/with-formula/derivations/dispatch.d.ts +98 -0
  214. package/dist/with-formula/materialized-views/dispatch.d.ts +75 -0
  215. package/dist/with-party/custody/liberate.d.ts +3 -3
  216. package/dist/with-party/session/dev-unlock.d.ts +2 -2
  217. package/dist/with-party/session/session.d.ts +2 -2
  218. package/dist/with-party/team/deed.d.ts +8 -8
  219. package/dist/with-party/team/index.d.ts +2 -2
  220. package/dist/with-party/team/keyring.d.ts +19 -19
  221. package/dist/with-party/team/{managed-passphrase.d.ts → managed-secret.d.ts} +27 -27
  222. package/dist/with-party/team/noydb-facade.d.ts +41 -41
  223. package/dist/with-party/team/peer-recover.d.ts +13 -13
  224. package/dist/with-party/team/recovery.d.ts +5 -5
  225. package/dist/with-party/team/rotate-recover.d.ts +30 -30
  226. package/dist/with-pod/bundle.d.ts +30 -30
  227. package/dist/with-pod/format.d.ts +2 -2
  228. package/dist/withdraw-accessible-Q2EMATCU.js +28 -0
  229. package/package.json +3 -3
  230. package/dist/api-UPAT2O3M.js +0 -20
  231. package/dist/chunk-25ZDB25Z.js.map +0 -1
  232. package/dist/chunk-3O62PVDW.js.map +0 -1
  233. package/dist/chunk-5BHNQNBI.js.map +0 -1
  234. package/dist/chunk-5P5AAXYA.js.map +0 -1
  235. package/dist/chunk-BCOKZC4B.js.map +0 -1
  236. package/dist/chunk-BLB7P7LS.js.map +0 -1
  237. package/dist/chunk-CCT4WZI6.js.map +0 -1
  238. package/dist/chunk-GBEXTC6Z.js.map +0 -1
  239. package/dist/chunk-HKR25MGX.js.map +0 -1
  240. package/dist/chunk-IGM563N5.js.map +0 -1
  241. package/dist/chunk-J3VW4J4E.js.map +0 -1
  242. package/dist/chunk-JA5O7UEZ.js.map +0 -1
  243. package/dist/chunk-MEKAMERX.js.map +0 -1
  244. package/dist/chunk-QUIG6BZT.js.map +0 -1
  245. package/dist/chunk-UEO5CHOP.js.map +0 -1
  246. package/dist/chunk-W7TCXZWU.js.map +0 -1
  247. package/dist/chunk-WJDYZP3U.js.map +0 -1
  248. package/dist/chunk-XULHFSHO.js.map +0 -1
  249. package/dist/collection-facade-CMZGQ6IS.js +0 -44
  250. package/dist/delegation-UT76AQIG.js +0 -25
  251. package/dist/derive-SGRCCKVP.js +0 -21
  252. package/dist/executor-TEZYRDN3.js +0 -9
  253. package/dist/executor-WQQRU6DO.js +0 -9
  254. package/dist/executor-YORMIBWV.js +0 -26
  255. package/dist/export-accessible-HXMKW5LJ.js +0 -23
  256. package/dist/extract-partition-QGQ2R42J.js +0 -38
  257. package/dist/find-VV6PBIHK.js +0 -11
  258. package/dist/issue-7JJ4Z7E2.js +0 -19
  259. package/dist/liberate-FK7JI2QX.js +0 -24
  260. package/dist/noydb-N5IW6OFZ.js +0 -70
  261. package/dist/register-YBMRLZLO.js +0 -23
  262. package/dist/registry-3LXKNXWI.js +0 -9
  263. package/dist/registry-4V4YQCXJ.js +0 -19
  264. package/dist/registry-ZULMLCJK.js +0 -18
  265. package/dist/request-withdrawal-SEVUEUDG.js +0 -31
  266. package/dist/revoke-5QULL5GT.js +0 -24
  267. package/dist/seed-EKF4DIBB.js.map +0 -1
  268. package/dist/signer-ZMH35FT4.js +0 -25
  269. package/dist/storage-QOZKQMID.js +0 -23
  270. package/dist/withdraw-accessible-HPOVNG2G.js +0 -28
  271. /package/dist/{api-UPAT2O3M.js.map → api-22ES33N3.js.map} +0 -0
  272. /package/dist/{backup-JL2GOTYQ.js.map → backup-YCHAC575.js.map} +0 -0
  273. /package/dist/{chunk-2RMDVWGB.js.map → chunk-2CRZOVDI.js.map} +0 -0
  274. /package/dist/{chunk-T7S4V52L.js.map → chunk-2PDBYF2O.js.map} +0 -0
  275. /package/dist/{chunk-L4OA7G5T.js.map → chunk-522MBPE5.js.map} +0 -0
  276. /package/dist/{chunk-ZJGZDOQO.js.map → chunk-5ATANZSW.js.map} +0 -0
  277. /package/dist/{chunk-M25ZIEB2.js.map → chunk-5HSSTOOG.js.map} +0 -0
  278. /package/dist/{chunk-LLVW4V7R.js.map → chunk-5WLDZZ6S.js.map} +0 -0
  279. /package/dist/{chunk-7B4GPCX7.js.map → chunk-6RPWILRH.js.map} +0 -0
  280. /package/dist/{chunk-KR5EGWI4.js.map → chunk-7ICV4ASA.js.map} +0 -0
  281. /package/dist/{chunk-KMONEHDJ.js.map → chunk-AFAPBZAA.js.map} +0 -0
  282. /package/dist/{chunk-CGPO3ZYB.js.map → chunk-BY5YBSXA.js.map} +0 -0
  283. /package/dist/{chunk-3XVOLB75.js.map → chunk-CKUYQO2P.js.map} +0 -0
  284. /package/dist/{chunk-2JZ763FV.js.map → chunk-D4LAJ737.js.map} +0 -0
  285. /package/dist/{chunk-OOTTXUNV.js.map → chunk-DYZ5CCVM.js.map} +0 -0
  286. /package/dist/{chunk-N4FZ6ITM.js.map → chunk-EGU4PWQW.js.map} +0 -0
  287. /package/dist/{chunk-JKWNG3TM.js.map → chunk-FHHYCBBP.js.map} +0 -0
  288. /package/dist/{chunk-5KI3REO3.js.map → chunk-FTCGEUOY.js.map} +0 -0
  289. /package/dist/{chunk-5BB3N4KU.js.map → chunk-G4MFQXYX.js.map} +0 -0
  290. /package/dist/{chunk-KVHWEPT2.js.map → chunk-GHEMAVTN.js.map} +0 -0
  291. /package/dist/{chunk-OVFCAS7U.js.map → chunk-GP54LU5N.js.map} +0 -0
  292. /package/dist/{chunk-XW7NWO4A.js.map → chunk-GTNRMJYH.js.map} +0 -0
  293. /package/dist/{chunk-JW3XCZA2.js.map → chunk-HAPY7WFP.js.map} +0 -0
  294. /package/dist/{chunk-4X6DJZHY.js.map → chunk-HQKRZIX6.js.map} +0 -0
  295. /package/dist/{chunk-OWE4BNTM.js.map → chunk-I2XEBEEF.js.map} +0 -0
  296. /package/dist/{chunk-WEC3JGBA.js.map → chunk-IGLU4ME7.js.map} +0 -0
  297. /package/dist/{chunk-BZK6JEX4.js.map → chunk-ILM6X6CP.js.map} +0 -0
  298. /package/dist/{chunk-2KL6NDD4.js.map → chunk-J5TEU77Q.js.map} +0 -0
  299. /package/dist/{chunk-V7RGFJ3Z.js.map → chunk-JIHH26WQ.js.map} +0 -0
  300. /package/dist/{chunk-XGVDLQJE.js.map → chunk-JN3SGXJE.js.map} +0 -0
  301. /package/dist/{chunk-BZEPJJOK.js.map → chunk-K7BADAOS.js.map} +0 -0
  302. /package/dist/{chunk-U73LHVPF.js.map → chunk-L2CAWCQL.js.map} +0 -0
  303. /package/dist/{chunk-MSO2C3KG.js.map → chunk-LC7DSMHR.js.map} +0 -0
  304. /package/dist/{chunk-JA5B3SLH.js.map → chunk-M6QA2KK2.js.map} +0 -0
  305. /package/dist/{chunk-IUIVDVXM.js.map → chunk-MUPZ6IZX.js.map} +0 -0
  306. /package/dist/{chunk-QAFWRGVD.js.map → chunk-OGVE4IJW.js.map} +0 -0
  307. /package/dist/{chunk-2U7Y7BNJ.js.map → chunk-ONB627HU.js.map} +0 -0
  308. /package/dist/{chunk-GYB2QK5H.js.map → chunk-OWLZONGX.js.map} +0 -0
  309. /package/dist/{chunk-YHPUDB7Q.js.map → chunk-OWOT7CFC.js.map} +0 -0
  310. /package/dist/{chunk-VEX6G3YL.js.map → chunk-P4NUJVWL.js.map} +0 -0
  311. /package/dist/{chunk-NM4LVUXH.js.map → chunk-PTT2NB46.js.map} +0 -0
  312. /package/dist/{chunk-2ITLQZV5.js.map → chunk-PWWWMRT7.js.map} +0 -0
  313. /package/dist/{chunk-GS3Q2KOZ.js.map → chunk-QBOQI6PG.js.map} +0 -0
  314. /package/dist/{chunk-JIMEB4C6.js.map → chunk-QMMOMBH6.js.map} +0 -0
  315. /package/dist/{chunk-QDNVHA2F.js.map → chunk-QMZ5A6FQ.js.map} +0 -0
  316. /package/dist/{chunk-FLHOTGOO.js.map → chunk-QVGEVZ5F.js.map} +0 -0
  317. /package/dist/{chunk-AFBJHD55.js.map → chunk-QZJEYZ4I.js.map} +0 -0
  318. /package/dist/{chunk-V3YB7RGR.js.map → chunk-R2N37AA6.js.map} +0 -0
  319. /package/dist/{chunk-JLHKBAFY.js.map → chunk-RWW3I3PO.js.map} +0 -0
  320. /package/dist/{chunk-IGAIOGCN.js.map → chunk-S4YERMGJ.js.map} +0 -0
  321. /package/dist/{chunk-OGFPMCSP.js.map → chunk-SBOHNJUD.js.map} +0 -0
  322. /package/dist/{chunk-QXPOEAKR.js.map → chunk-SC4JLMZI.js.map} +0 -0
  323. /package/dist/{chunk-EDC6MLXV.js.map → chunk-SEU6QHH4.js.map} +0 -0
  324. /package/dist/{chunk-F4COUZLL.js.map → chunk-TMR64XPL.js.map} +0 -0
  325. /package/dist/{chunk-DEQ2JTBR.js.map → chunk-TNATF3HB.js.map} +0 -0
  326. /package/dist/{chunk-GZ2GKOF6.js.map → chunk-TNJVDG2B.js.map} +0 -0
  327. /package/dist/{chunk-5OZCCLNC.js.map → chunk-TSNRZSRC.js.map} +0 -0
  328. /package/dist/{chunk-QCUH2G77.js.map → chunk-UTEATWHO.js.map} +0 -0
  329. /package/dist/{chunk-YGBIBOCR.js.map → chunk-VEGQYPCP.js.map} +0 -0
  330. /package/dist/{chunk-25G7U6RD.js.map → chunk-WQN5SM7P.js.map} +0 -0
  331. /package/dist/{chunk-NOT7XA7Q.js.map → chunk-X3MWEFPT.js.map} +0 -0
  332. /package/dist/{chunk-BVZGNMVM.js.map → chunk-YFFEF6HR.js.map} +0 -0
  333. /package/dist/{chunk-H4SMS4O2.js.map → chunk-YJ3TREAC.js.map} +0 -0
  334. /package/dist/{chunk-5SZ24DL5.js.map → chunk-YQQPNXNO.js.map} +0 -0
  335. /package/dist/{chunk-EW4HFWGJ.js.map → chunk-YWZEDG7F.js.map} +0 -0
  336. /package/dist/{chunk-2VUISNGP.js.map → chunk-YXIVUWDU.js.map} +0 -0
  337. /package/dist/{chunk-YG2EG6CB.js.map → chunk-YXZNGHID.js.map} +0 -0
  338. /package/dist/{chunk-QYJIOWKN.js.map → chunk-YZN6NRTR.js.map} +0 -0
  339. /package/dist/{chunk-IZX3WZBF.js.map → chunk-YZNKFYDC.js.map} +0 -0
  340. /package/dist/{chunk-E2R5NRZD.js.map → chunk-Z4D3YGAB.js.map} +0 -0
  341. /package/dist/{chunk-STR7WBOB.js.map → chunk-ZUDAK436.js.map} +0 -0
  342. /package/dist/{chunk-ITI3SJRB.js.map → chunk-ZX5FNWH7.js.map} +0 -0
  343. /package/dist/{classified-marker-7S5IEP6Q.js.map → classified-marker-52P3D72W.js.map} +0 -0
  344. /package/dist/{collection-facade-CMZGQ6IS.js.map → collection-facade-XKCFHSLR.js.map} +0 -0
  345. /package/dist/{computed-WZNKRLCY.js.map → computed-33DRJDOC.js.map} +0 -0
  346. /package/dist/{cover-B5MY43CK.js.map → cover-5BSNJREH.js.map} +0 -0
  347. /package/dist/{dead-filter-KRRD57MR.js.map → dead-filter-JXVCKS6W.js.map} +0 -0
  348. /package/dist/{delegation-UT76AQIG.js.map → delegation-WWZPEDK2.js.map} +0 -0
  349. /package/dist/{derive-SGRCCKVP.js.map → derive-CWWFEQ4N.js.map} +0 -0
  350. /package/dist/{enclave-YFKA3GJT.js.map → enclave-I5H3GINP.js.map} +0 -0
  351. /package/dist/{executor-TEZYRDN3.js.map → executor-FCJEH3FU.js.map} +0 -0
  352. /package/dist/{executor-WQQRU6DO.js.map → executor-OHET7TF7.js.map} +0 -0
  353. /package/dist/{executor-YORMIBWV.js.map → executor-SHYLIBOM.js.map} +0 -0
  354. /package/dist/{export-accessible-HXMKW5LJ.js.map → export-accessible-FBL6TDSK.js.map} +0 -0
  355. /package/dist/{extract-partition-QGQ2R42J.js.map → extract-partition-ZYIRYMTI.js.map} +0 -0
  356. /package/dist/{fanout-sidecar-HJV3A7PM.js.map → fanout-sidecar-WWXVHHUH.js.map} +0 -0
  357. /package/dist/{find-VV6PBIHK.js.map → find-LEBUXVL7.js.map} +0 -0
  358. /package/dist/{issue-7JJ4Z7E2.js.map → issue-F76PAGIR.js.map} +0 -0
  359. /package/dist/{ledger-SW6QQOAV.js.map → ledger-M2BKCNVS.js.map} +0 -0
  360. /package/dist/{liberate-FK7JI2QX.js.map → liberate-ZP7UB57K.js.map} +0 -0
  361. /package/dist/{link-set-GNGGCFI4.js.map → link-set-ZU4E5J5S.js.map} +0 -0
  362. /package/dist/{noydb-N5IW6OFZ.js.map → noydb-BNDGEK5X.js.map} +0 -0
  363. /package/dist/{policy-EAXSJNOT.js.map → policy-IY2YEA3A.js.map} +0 -0
  364. /package/dist/{post-register-A7HCFBP5.js.map → post-register-XIAHB6KF.js.map} +0 -0
  365. /package/dist/{register-YBMRLZLO.js.map → register-HB4TQZSV.js.map} +0 -0
  366. /package/dist/{registry-3LXKNXWI.js.map → registry-6BMBFEXT.js.map} +0 -0
  367. /package/dist/{registry-4V4YQCXJ.js.map → registry-7CZWF3EQ.js.map} +0 -0
  368. /package/dist/{registry-ZULMLCJK.js.map → registry-JOFO7RAH.js.map} +0 -0
  369. /package/dist/{request-withdrawal-SEVUEUDG.js.map → request-withdrawal-UN3TRHWI.js.map} +0 -0
  370. /package/dist/{reveal-PB3YG544.js.map → reveal-VWXRV2XU.js.map} +0 -0
  371. /package/dist/{revoke-5QULL5GT.js.map → revoke-OLO2OVR7.js.map} +0 -0
  372. /package/dist/{signer-ZMH35FT4.js.map → signer-MGGKPYAN.js.map} +0 -0
  373. /package/dist/{stale-4UNPHWOU.js.map → stale-NBROTA66.js.map} +0 -0
  374. /package/dist/{storage-QOZKQMID.js.map → storage-3R37QZLA.js.map} +0 -0
  375. /package/dist/{store-coordination-provider-3AELCZ4Y.js.map → store-coordination-provider-P3IU5JHD.js.map} +0 -0
  376. /package/dist/{verify-MXN66IIH.js.map → verify-5X37OXRY.js.map} +0 -0
  377. /package/dist/{walk-H4YE52S2.js.map → walk-E3OVLBFR.js.map} +0 -0
  378. /package/dist/{withdraw-accessible-HPOVNG2G.js.map → withdraw-accessible-Q2EMATCU.js.map} +0 -0
@@ -2,9 +2,9 @@
2
2
  * Noydb-side auth / recovery / enrollment facade.
3
3
  *
4
4
  * Holds the tier-2 authenticator enrollment/unlock wrappers, WebAuthn
5
- * enrollment, auth-config introspection, the tier-1 passphrase
5
+ * enrollment, auth-config introspection, the tier-1 secret
6
6
  * rotate/recover flows, the paper/Shamir recovery rotate/enroll flows,
7
- * managed-passphrase recovery, peer-recovery, tier-3 PIN unlock, and the
7
+ * managed-secret recovery, peer-recovery, tier-3 PIN unlock, and the
8
8
  * public `getKeyring` accessor.
9
9
  *
10
10
  * The near-parallel rotate/recover variants (managed vs user vs paper vs
@@ -16,17 +16,17 @@
16
16
  * (`assertRecoveryEnrolled`), `openVault`, and the one-shot
17
17
  * managed-recovery skip flag stay kernel-resident and arrive as callbacks.
18
18
  *
19
- * Internal service — reached through `noydb.rotatePassphrase(...)` etc.
19
+ * Internal service — reached through `noydb.team.rotateSecret(...)` etc.
20
20
  */
21
21
  import type { NoydbOptions, NoydbStore, KeyringAuthenticator } from '../../kernel/types.js';
22
- import { type RotatePassphraseInput, type RecoverPassphraseInput, type RecoverPassphraseResult, type RotateRecoveryOptions, type RotateRecoveryResult, type EnrollRecoveryResult, type RecoveryEnrollmentInput, type RecoveryProof } from './rotate-recover.js';
22
+ import { type RotateSecretInput, type RecoverSecretInput, type RecoverSecretResult, type RotateRecoveryOptions, type RotateRecoveryResult, type EnrollRecoveryResult, type RecoveryEnrollmentInput, type RecoveryProof } from './rotate-recover.js';
23
23
  import { type RecoverUserOptions } from './peer-recover.js';
24
24
  import { type PaperRecoveryEntry, type ShamirRecoveryEntry } from './recovery.js';
25
25
  import type { Vault } from '../../kernel/vault.js';
26
26
  import type { UnlockedKeyring } from './keyring.js';
27
27
  import { type EnrollAuthenticatorOptions, type UpdateAuthenticatorOptions } from './authenticators.js';
28
28
  import type { QuickUnlockStore, QuickUnlockState } from '../session/unlock-state.js';
29
- import type { PassphrasePolicy } from '../../kernel/validation.js';
29
+ import type { SecretPolicy } from '../../kernel/validation.js';
30
30
  import type { ActiveTier, FactorProofBundle, GateName, GrantOptions, ReAuthOperation, RevokeOptions, VaultPolicy } from '../../kernel/types.js';
31
31
  /** NoydbOptions with the store resolved to a non-optional value (internal use only). */
32
32
  type ResolvedNoydbOptions = NoydbOptions & {
@@ -34,7 +34,7 @@ type ResolvedNoydbOptions = NoydbOptions & {
34
34
  };
35
35
  /** Everything the moving auth/recovery/enrollment methods touched on the Noydb instance's `this.*`. */
36
36
  export interface TeamFacadeDeps {
37
- /** Resolved Noydb options (store, user, passphraseMode, sealingKey, shamirRecovery, …). */
37
+ /** Resolved Noydb options (store, user, secretMode, sealingKey, shamirRecovery, …). */
38
38
  readonly options: ResolvedNoydbOptions;
39
39
  /** Live unlocked-keyring cache (Noydb-resident; read/written by reference). */
40
40
  readonly keyringCache: Map<string, UnlockedKeyring>;
@@ -143,7 +143,7 @@ export declare class TeamFacade {
143
143
  * ```ts
144
144
  * import { enrollWebAuthn } from '@noy-db/on-webauthn'
145
145
  *
146
- * await db.enrollWebAuthn('demo', async (keyring) => {
146
+ * await db.team.enrollWebAuthn('demo', async (keyring) => {
147
147
  * const e = await enrollWebAuthn(keyring, 'demo', { rp: {...} })
148
148
  * return {
149
149
  * id: `webauthn-${e.credentialId.slice(0, 8)}`,
@@ -207,38 +207,38 @@ export declare class TeamFacade {
207
207
  description: string;
208
208
  }>>;
209
209
  /**
210
- * Rotate the user's passphrase (user remembers old). Validates the
211
- * new phrase against the configured `passphrase` policy, runs the
212
- * `rotate-passphrase` gate, then re-derives + re-wraps every DEK.
210
+ * Rotate the user's secret (user remembers old). Validates the
211
+ * new phrase against the configured `secret` policy, runs the
212
+ * `rotate-secret` gate, then re-derives + re-wraps every DEK.
213
213
  *
214
214
  * Tier-2 authenticator slots are dropped — each slot wraps the old
215
215
  * KEK and would need its derivation key to be re-presented. Re-enrol
216
216
  * via `db.enrollAuthenticator` after rotation.
217
217
  *
218
- * @throws `WeakPassphraseError` on a weak new phrase.
218
+ * @throws `WeakSecretError` on a weak new phrase.
219
219
  * @throws `PolicyDeniedError` when the gate denies (missing factor, …).
220
- * @throws `InvalidKeyError` when `oldPassphrase` is wrong.
220
+ * @throws `InvalidKeyError` when `oldSecret` is wrong.
221
221
  */
222
- rotatePassphrase(vault: string, input: RotatePassphraseInput, factors?: FactorProofBundle): Promise<void>;
222
+ rotateSecret(vault: string, input: RotateSecretInput, factors?: FactorProofBundle): Promise<void>;
223
223
  /**
224
- * Reset the passphrase using a recovery proof (user forgot the old).
224
+ * Reset the secret using a recovery proof (user forgot the old).
225
225
  * Currently supports the `'paper'` profile end-to-end; the
226
226
  * other profiles throw {@link RecoveryProfileNotImplementedError}.
227
227
  *
228
228
  * Burns the used recovery entry on success.
229
229
  */
230
- recoverPassphrase(vault: string, input: RecoverPassphraseInput, factors?: FactorProofBundle): Promise<RecoverPassphraseResult>;
230
+ recoverSecret(vault: string, input: RecoverSecretInput, factors?: FactorProofBundle): Promise<RecoverSecretResult>;
231
231
  /**
232
232
  * Deliberate paper-recovery-code regeneration. User knows their
233
- * passphrase but wants a fresh sheet — they lost the printout or
233
+ * secret but wants a fresh sheet — they lost the printout or
234
234
  * suspect compromise of the off-site copy.
235
235
  *
236
- * Symmetric to {@link rotatePassphrase} for the recovery profile:
236
+ * Symmetric to {@link rotateSecret} for the recovery profile:
237
237
  * gated, audit-trackable, ergonomic. Replaces (not appends) the
238
238
  * paper sheet under `_meta/recovery-paper` in a single envelope `put`.
239
239
  *
240
240
  * Gated by the `rotate-recovery` policy gate:
241
- * - PERSONAL_POLICY: `{ minTier: 1 }` — knowing the passphrase
241
+ * - PERSONAL_POLICY: `{ minTier: 1 }` — knowing the secret
242
242
  * suffices, matching the lower-level flow's bar.
243
243
  * - STRICT_POLICY: `{ minTier: 1, factors: [{ anyOf: ['totp',
244
244
  * 'email-otp', 'webauthn-roaming'] }] }` — rotation is an
@@ -258,13 +258,13 @@ export declare class TeamFacade {
258
258
  *
259
259
  * @example Default count + show-once UI
260
260
  * ```ts
261
- * const { newCodes } = await db.rotateRecovery('acme', { profile: 'paper' })
261
+ * const { newCodes } = await db.team.rotateRecovery('acme', { profile: 'paper' })
262
262
  * showCodesToUser(newCodes)
263
263
  * ```
264
264
  *
265
265
  * @example STRICT-policy site with TOTP factor proof
266
266
  * ```ts
267
- * await db.rotateRecovery(
267
+ * await db.team.rotateRecovery(
268
268
  * 'acme',
269
269
  * { profile: 'paper', count: 10 },
270
270
  * { factors: [{ kind: 'totp', proof: '123456' }] },
@@ -278,7 +278,7 @@ export declare class TeamFacade {
278
278
  * **Atomic create-and-enroll for managed-mode vaults.**
279
279
  *
280
280
  * Bootstraps a managed-mode vault and enrolls strong recovery in
281
- * a single ceremony. Under `passphraseMode: 'managed'`, every
281
+ * a single ceremony. Under `secretMode: 'managed'`, every
282
282
  * `openVault` call requires a strong recovery profile (Shamir
283
283
  * today) to be enrolled — otherwise it throws
284
284
  * {@link ManagedRecoveryNotEnrolledError}. This method bypasses
@@ -297,11 +297,11 @@ export declare class TeamFacade {
297
297
  * ```ts
298
298
  * const db = await createNoydb({
299
299
  * store, user: 'alice',
300
- * passphraseMode: 'managed',
300
+ * secretMode: 'managed',
301
301
  * sealingKey: macosKeychainSealingProvider({ ... }),
302
302
  * })
303
303
  *
304
- * const { vault, recoveryEnrollments } = await db.openVaultAndEnrollRecovery('acme', {
304
+ * const { vault, recoveryEnrollments } = await db.team.openVaultAndEnrollRecovery('acme', {
305
305
  * recovery: [{ profile: 'shamir', k: 2, n: 3 }],
306
306
  * })
307
307
  * for (const r of recoveryEnrollments) {
@@ -320,20 +320,20 @@ export declare class TeamFacade {
320
320
  readonly recoveryEnrollments: ReadonlyArray<EnrollRecoveryResult>;
321
321
  }>;
322
322
  /**
323
- * **Recovery flow under managed-passphrase mode.**
323
+ * **Recovery flow under managed-secret mode.**
324
324
  *
325
- * Replaces the sealed passphrase of a managed-mode vault with a
325
+ * Replaces the sealed secret of a managed-mode vault with a
326
326
  * fresh 256-bit random, sealed under the configured
327
- * `SealingKeyProvider`. The user never sees the new passphrase.
327
+ * `SealingKeyProvider`. The user never sees the new secret.
328
328
  *
329
329
  * Internally:
330
330
  * 1. Verify the recovery proof (Shamir today) and unwrap the
331
331
  * DEK set.
332
- * 2. Mint a fresh 256-bit random as the new effective passphrase.
332
+ * 2. Mint a fresh 256-bit random as the new effective secret.
333
333
  * 3. Rewrap the DEK set under a fresh KEK derived from the new
334
- * passphrase (via the existing `recoverPassphrase` path).
334
+ * secret (via the existing `recoverSecret` path).
335
335
  * 4. Seal the random bytes under the provider and overwrite
336
- * `_meta/sealed-passphrase`.
336
+ * `_meta/sealed-secret`.
337
337
  * 5. Drop the keyring cache so the next operation re-derives.
338
338
  *
339
339
  * The vault's strong-recovery enrollment is preserved across
@@ -341,13 +341,13 @@ export declare class TeamFacade {
341
341
  *
342
342
  * @throws ValidationError if the Noydb instance is not in managed mode.
343
343
  */
344
- recoverManagedPassphrase(vault: string, options: {
344
+ recoverManagedSecret(vault: string, options: {
345
345
  readonly recoveryProof: RecoveryProof;
346
- readonly passphrasePolicy?: PassphrasePolicy;
346
+ readonly secretPolicy?: SecretPolicy;
347
347
  }): Promise<void>;
348
348
  /**
349
349
  * Atomic peer-recovery — re-wraps an EXISTING user's keyring under
350
- * a fresh temp passphrase in a single store write. Closes the
350
+ * a fresh temp secret in a single store write. Closes the
351
351
  * partial-failure window (the previous compose-from-primitives
352
352
  * pattern was `db.revoke + db.grant`, two writes — if the issuer
353
353
  * cancelled between them the target was locked out entirely).
@@ -366,17 +366,17 @@ export declare class TeamFacade {
366
366
  * recovery / TOTP / email-OTP factor proof at the moment of
367
367
  * recovery, so the issuer affirmatively re-asserts identity.
368
368
  *
369
- * The recipient should call `db.rotatePassphrase` on first session
369
+ * The recipient should call `db.rotateSecret` on first session
370
370
  * to choose their own phrase — the temp acts as a single-use
371
371
  * bridge.
372
372
  *
373
373
  * ```ts
374
- * await db.recoverUser('acme', {
374
+ * await db.team.recoverUser('acme', {
375
375
  * userId: 'bob',
376
- * passphrase: 'temporary-correct-horse-battery-staple-printer',
376
+ * secret: 'temporary-correct-horse-battery-staple-printer',
377
377
  * }, { factors: [{ kind: 'recovery' }] })
378
378
  * // Bob opens createNoydb({ user: 'bob', secret: tempPhrase })
379
- * // and immediately calls db.rotatePassphrase to set his own.
379
+ * // and immediately calls db.rotateSecret to set his own.
380
380
  * ```
381
381
  *
382
382
  * @throws `NoAccessError` when no keyring exists for the target.
@@ -395,17 +395,17 @@ export declare class TeamFacade {
395
395
  * The hub wraps the user's DEK set (not the KEK) under a code-derived
396
396
  * AES-GCM key — see `team/recovery.ts` for the rationale. The mint
397
397
  * helper {@link mintPaperRecoveryEntry} is the canonical primitive;
398
- * pair it with `db.getKeyring(vault)` to obtain the live DEK set:
398
+ * pair it with `db.team.getKeyring(vault)` to obtain the live DEK set:
399
399
  *
400
400
  * ```ts
401
401
  * import { mintPaperRecoveryEntry } from '@noy-db/hub'
402
402
  *
403
- * const keyring = await db.getKeyring('acme')
403
+ * const keyring = await db.team.getKeyring('acme')
404
404
  * const codes: string[] = ['CORRECT-HORSE-1', 'BATTERY-STAPLE-2', ...]
405
405
  * const entries = await Promise.all(
406
406
  * codes.map((code, i) => mintPaperRecoveryEntry(keyring.deks, code, `code-${i}`)),
407
407
  * )
408
- * await db.enrollRecovery('acme', { profile: 'paper', entries })
408
+ * await db.team.enrollRecovery('acme', { profile: 'paper', entries })
409
409
  * showCodesToUser(codes)
410
410
  * ```
411
411
  *
@@ -416,7 +416,7 @@ export declare class TeamFacade {
416
416
  * ```ts
417
417
  * import { generateRecoveryCodeSet } from '@noy-db/on-recovery'
418
418
  * const { codes, entries } = await generateRecoveryCodeSet({ deks: keyring.deks, count: 8 })
419
- * await db.enrollRecovery('acme', { profile: 'paper', entries })
419
+ * await db.team.enrollRecovery('acme', { profile: 'paper', entries })
420
420
  * ```
421
421
  */
422
422
  enrollRecovery(vault: string, enrollment: RecoveryEnrollmentInput): Promise<EnrollRecoveryResult>;
@@ -473,7 +473,7 @@ export declare class TeamFacade {
473
473
  * and no `secret` / `getKeyring` is configured.
474
474
  *
475
475
  * ```ts
476
- * const keyring = await db.getKeyring('acme')
476
+ * const keyring = await db.team.getKeyring('acme')
477
477
  * // keyring.deks: Map<collection, CryptoKey>
478
478
  * // keyring.kek: CryptoKey | null (null for tier-3 / wrap-DEKs sessions)
479
479
  * // keyring.role / .permissions / .authenticators
@@ -22,7 +22,7 @@
22
22
  * gate `peer-recover-user` carries the freshness requirement.
23
23
  * 5. **Tier-2 slots dropped.** The slots wrap the OLD KEK under
24
24
  * method-derived keys; after recovery the KEK is re-derived
25
- * from the new temp passphrase. Match `rotatePassphrase`'s
25
+ * from the new temp secret. Match `rotateSecret`'s
26
26
  * precedent — the recovered user re-enrols slots after picking
27
27
  * their own phrase.
28
28
  *
@@ -34,47 +34,47 @@
34
34
  * @module
35
35
  */
36
36
  import type { NoydbStore, Role } from '../../kernel/types.js';
37
- import { type PassphrasePolicy } from '../../kernel/validation.js';
37
+ import { type SecretPolicy } from '../../kernel/validation.js';
38
38
  import type { UnlockedKeyring } from './keyring.js';
39
39
  /** Input shape for {@link recoverUser}. */
40
40
  export interface RecoverUserOptions {
41
41
  /** Target user id whose keyring is being recovered. */
42
42
  readonly userId: string;
43
43
  /**
44
- * Temporary passphrase under which the new keyring is wrapped.
45
- * The recipient should call `db.rotatePassphrase` immediately on
44
+ * Temporary secret under which the new keyring is wrapped.
45
+ * The recipient should call `db.rotateSecret` immediately on
46
46
  * acceptance to choose their own phrase — this temp acts as a
47
47
  * single-use bridge in invite / peer-recovery flows.
48
48
  */
49
- readonly passphrase: string;
49
+ readonly secret: string;
50
50
  /** Override the target's role. Defaults to the existing target's role. */
51
51
  readonly role?: Role;
52
52
  /** Override the target's display name. Defaults to existing. */
53
53
  readonly displayName?: string;
54
54
  /** Validate phrase strength against the configured policy. */
55
- readonly validatePassphrase?: boolean;
55
+ readonly validateSecret?: boolean;
56
56
  /**
57
- * Skip phrase strength validation even when `validatePassphrase` is
57
+ * Skip phrase strength validation even when `validateSecret` is
58
58
  * set. The escape hatch matches `grant`'s shape — used when the
59
59
  * temp phrase is a high-entropy one-shot string that doesn't need
60
60
  * to satisfy the human-typeable rules.
61
61
  */
62
- readonly allowWeakPassphrase?: boolean;
62
+ readonly allowWeakSecret?: boolean;
63
63
  /**
64
64
  * Optional explicit phrase policy override (passed through to
65
- * `assertStrongPassphrase`). Mirrors how `grant` accepts a custom
66
- * `PassphrasePolicy` for app-specific tightening.
65
+ * `assertStrongSecret`). Mirrors how `grant` accepts a custom
66
+ * `SecretPolicy` for app-specific tightening.
67
67
  */
68
- readonly passphrasePolicy?: PassphrasePolicy;
68
+ readonly secretPolicy?: SecretPolicy;
69
69
  }
70
70
  /**
71
71
  * Atomically rewrap the target user's keyring under a fresh temp
72
- * passphrase. Single store write; no revoke step; no key rotation.
72
+ * secret. Single store write; no revoke step; no key rotation.
73
73
  *
74
74
  * Caller's responsibilities (NOT enforced here):
75
75
  * - Run the `peer-recover-user` policy gate first via
76
76
  * `Noydb.checkGate` to enforce the freshness factor proof.
77
- * - Communicate the temp passphrase to the recipient via a secure
77
+ * - Communicate the temp secret to the recipient via a secure
78
78
  * channel (URL fragment, in-person, etc.) — the hub does not
79
79
  * transport secrets.
80
80
  */
@@ -34,7 +34,7 @@ import type { ShamirRecoveryProvider } from './shamir-recovery-provider.js';
34
34
  * we wrap a serialized DEK set: the entry holds the AES-GCM
35
35
  * ciphertext of `{ deks: { collection: rawDekBase64 } }`. Recovery
36
36
  * deserializes the DEK set, then mints a fresh KEK from the new
37
- * passphrase and rewraps the DEKs under it.
37
+ * secret and rewraps the DEKs under it.
38
38
  *
39
39
  * This is the same pattern `@noy-db/on-pin` uses for tier-3 quick
40
40
  * resume — the cryptographic guarantee is identical (AES-GCM with a
@@ -67,8 +67,8 @@ export declare function hasRecoveryEnrolled(store: NoydbStore, vault: string): P
67
67
  /**
68
68
  * Whether at least one **strong** recovery profile is enrolled.
69
69
  *
70
- * "Strong" excludes paper-alone — under managed-passphrase mode the
71
- * user has no memorized passphrase, so a stolen/lost paper sheet
70
+ * "Strong" excludes paper-alone — under managed-secret mode the
71
+ * user has no memorized secret, so a stolen/lost paper sheet
72
72
  * would be a single point of total loss. Strong profiles today:
73
73
  *
74
74
  * - `shamir` (k-of-n threshold; survives loss of up to n-k shares)
@@ -167,7 +167,7 @@ export declare function unwrapDeksFromShamirEntry(provider: ShamirRecoveryProvid
167
167
  *
168
168
  * Returns the serializable entry (persisted via
169
169
  * {@link savePaperRecoveryEntries}). The recovery flow unwraps the
170
- * DEK set, then mints a fresh KEK from the user's new passphrase.
170
+ * DEK set, then mints a fresh KEK from the user's new secret.
171
171
  *
172
172
  * Thin wrapper over {@link mintWrappedDeksBlob} — the crypto
173
173
  * lives in the shared primitive; this function just adds paper-
@@ -182,7 +182,7 @@ export declare function unwrapDeksFromShamirEntry(provider: ShamirRecoveryProvid
182
182
  export declare function mintPaperRecoveryEntry(deks: Map<string, EnclaveKey>, code: string, codeId: string): Promise<PaperRecoveryEntry>;
183
183
  /**
184
184
  * Decrypt a recovery entry to recover the raw DEK set. Used by the
185
- * `recoverPassphrase` flow after the user's code has been parsed.
185
+ * `recoverSecret` flow after the user's code has been parsed.
186
186
  *
187
187
  * Thin wrapper over {@link unwrapDeksFromBlob}.
188
188
  *
@@ -1,12 +1,12 @@
1
1
  /**
2
- * Tier-1 change flows — `rotatePassphrase` (user remembers old) and
3
- * `recoverPassphrase` (user supplies a recovery proof).
2
+ * Tier-1 change flows — `rotateSecret` (user remembers old) and
3
+ * `recoverSecret` (user supplies a recovery proof).
4
4
  *
5
5
  * The two flows share the post-verification half — fresh salt, fresh
6
6
  * KEK, rewrap every DEK — and differ only in how they re-derive the
7
7
  * old KEK:
8
8
  *
9
- * - **Rotate**: derive from the supplied `oldPassphrase`.
9
+ * - **Rotate**: derive from the supplied `oldSecret`.
10
10
  * - **Recover (paper)**: unwrap from a `RecoveryCodeEntry` using a
11
11
  * user-supplied recovery code. The entry is burned on success.
12
12
  *
@@ -20,12 +20,12 @@ import type { NoydbStore } from '../../kernel/types.js';
20
20
  import { type EnclaveKey } from '../../kernel/enclave/index.js';
21
21
  import { type PaperRecoveryEntry } from './recovery.js';
22
22
  import type { ShamirRecoveryProvider } from './shamir-recovery-provider.js';
23
- import { type PassphrasePolicy } from '../../kernel/validation.js';
23
+ import { type SecretPolicy } from '../../kernel/validation.js';
24
24
  import type { UnlockedKeyring } from './keyring.js';
25
25
  import type { KeyringAuthenticator } from '../../kernel/types.js';
26
26
  import type { EnrollAuthenticatorOptions } from './authenticators.js';
27
27
  /**
28
- * Context handed to a {@link SlotRewrapCeremony} when `rotatePassphrase`
28
+ * Context handed to a {@link SlotRewrapCeremony} when `rotateSecret`
29
29
  * preserves a tier-2 slot. The ceremony's job is to re-derive its
30
30
  * method-specific wrapping material (PRF assertion, PBKDF2 of the
31
31
  * password, etc.) and wrap the freshly rewrapped DEK set under
@@ -57,25 +57,25 @@ export interface SlotRewrapContext {
57
57
  readonly oldSlot: KeyringAuthenticator;
58
58
  }
59
59
  /**
60
- * Callback that re-enrolls one tier-2 slot during `rotatePassphrase`.
60
+ * Callback that re-enrolls one tier-2 slot during `rotateSecret`.
61
61
  * Returns the new slot's `EnrollAuthenticatorOptions` — same shape
62
62
  * the consumer would pass to `db.enrollAuthenticator` for a fresh
63
63
  * enrollment. Hub persists the result atomically with the rotation.
64
64
  */
65
65
  export type SlotRewrapCeremony = (ctx: SlotRewrapContext) => Promise<EnrollAuthenticatorOptions>;
66
- /** Caller payload for {@link rotatePassphrase}. */
67
- export interface RotatePassphraseInput {
68
- readonly oldPassphrase: string;
69
- readonly newPassphrase: string;
70
- readonly passphrasePolicy?: PassphrasePolicy;
71
- readonly allowWeakPassphrase?: boolean;
66
+ /** Caller payload for {@link rotateSecret}. */
67
+ export interface RotateSecretInput {
68
+ readonly oldSecret: string;
69
+ readonly newSecret: string;
70
+ readonly secretPolicy?: SecretPolicy;
71
+ readonly allowWeakSecret?: boolean;
72
72
  /**
73
73
  * Map of slot id → re-enrolment ceremony. Slots whose id appears
74
74
  * here are PRESERVED across rotation (the ceremony re-derives the
75
75
  * method-specific wrapping under the new keyring); slots whose id
76
76
  * is absent are DROPPED (the pre-slot-ceremony behavior).
77
77
  *
78
- * Without this map, `rotatePassphrase` wipes every tier-2 slot. Consumers building a
78
+ * Without this map, `rotateSecret` wipes every tier-2 slot. Consumers building a
79
79
  * "rotate without losing my biometric" flow supply ceremonies for
80
80
  * each slot they want to keep.
81
81
  *
@@ -90,8 +90,8 @@ export interface RotatePassphraseInput {
90
90
  };
91
91
  }
92
92
  /**
93
- * Re-derive the user's KEK from `oldPassphrase`, rewrap every DEK
94
- * under a freshly-derived KEK from `newPassphrase`, and persist.
93
+ * Re-derive the user's KEK from `oldSecret`, rewrap every DEK
94
+ * under a freshly-derived KEK from `newSecret`, and persist.
95
95
  *
96
96
  * Tier-2 authenticator slots are dropped UNLESS the caller supplies
97
97
  * a `slotCeremonies` map — each ceremony re-derives its
@@ -99,14 +99,14 @@ export interface RotatePassphraseInput {
99
99
  * the rewrapped slots atomically with the rotation. Slots whose id
100
100
  * isn't in the map are still dropped.
101
101
  *
102
- * @throws `InvalidKeyError` if `oldPassphrase` does not unwrap the keyring.
103
- * @throws `WeakPassphraseError` if `newPassphrase` fails the strength rule.
102
+ * @throws `InvalidKeyError` if `oldSecret` does not unwrap the keyring.
103
+ * @throws `WeakSecretError` if `newSecret` fails the strength rule.
104
104
  * @throws `ValidationError` if a ceremony's result mismatches the
105
105
  * slot's id or method (anti-slot-swap guard).
106
106
  */
107
- export declare function rotatePassphrase(store: NoydbStore, vault: string, userId: string, input: RotatePassphraseInput): Promise<UnlockedKeyring>;
107
+ export declare function rotateSecret(store: NoydbStore, vault: string, userId: string, input: RotateSecretInput): Promise<UnlockedKeyring>;
108
108
  /**
109
- * Caller payload for {@link recoverPassphrase}.
109
+ * Caller payload for {@link recoverSecret}.
110
110
  *
111
111
  * `paper` and `shamir` are wired end-to-end.
112
112
  * The remaining two profiles (`multi-channel`, `admin-mediated`)
@@ -129,11 +129,11 @@ export type RecoveryProof = {
129
129
  readonly shares: ReadonlyArray<string>;
130
130
  };
131
131
  };
132
- export interface RecoverPassphraseInput {
133
- readonly newPassphrase: string;
132
+ export interface RecoverSecretInput {
133
+ readonly newSecret: string;
134
134
  readonly recoveryProof: RecoveryProof;
135
- readonly passphrasePolicy?: PassphrasePolicy;
136
- readonly allowWeakPassphrase?: boolean;
135
+ readonly secretPolicy?: SecretPolicy;
136
+ readonly allowWeakSecret?: boolean;
137
137
  /**
138
138
  * After a successful paper-recovery, replace ALL remaining recovery
139
139
  * entries with freshly-minted ones. Defaults to `true` (defensive).
@@ -177,27 +177,27 @@ export interface RecoverPassphraseInput {
177
177
  readonly codeGenerator?: () => string;
178
178
  }
179
179
  /**
180
- * Return shape of `db.recoverPassphrase`. `newCodes` is populated when
180
+ * Return shape of `db.recoverSecret`. `newCodes` is populated when
181
181
  * `rotateRemainingCodes` was enabled and at least one entry was
182
182
  * rotated; an empty array means no rotation happened (rotation
183
183
  * disabled, or no remaining codes after burn). Show the codes to the
184
184
  * user once — they are the canonical credential for future recovery
185
185
  * and CANNOT be retrieved again.
186
186
  */
187
- export interface RecoverPassphraseResult {
187
+ export interface RecoverSecretResult {
188
188
  readonly newCodes: readonly string[];
189
189
  }
190
190
  /**
191
191
  * Input for {@link Noydb.rotateRecovery} — deliberate
192
192
  * recovery-credential regeneration when the user knows their
193
- * passphrase but wants a fresh sheet (paper) or fresh shares
194
- * (shamir). Symmetric to {@link RotatePassphraseInput}.
193
+ * secret but wants a fresh sheet (paper) or fresh shares
194
+ * (shamir). Symmetric to {@link RotateSecretInput}.
195
195
  */
196
196
  export type RotateRecoveryOptions = {
197
197
  readonly profile: 'paper';
198
198
  /** How many fresh codes to mint. Default: existing sheet size. */
199
199
  readonly count?: number;
200
- /** Optional code generator — see {@link RecoverPassphraseInput.codeGenerator}. */
200
+ /** Optional code generator — see {@link RecoverSecretInput.codeGenerator}. */
201
201
  readonly codeGenerator?: () => string;
202
202
  } | {
203
203
  readonly profile: 'shamir';
@@ -265,11 +265,11 @@ export type RecoveryEnrollmentInput = {
265
265
  readonly entryId?: string;
266
266
  };
267
267
  /**
268
- * Reset the user's passphrase using a recovery proof.
268
+ * Reset the user's secret using a recovery proof.
269
269
  * Supports `'paper'` and `'shamir'` profiles. The other profiles throw
270
270
  * {@link RecoveryProfileNotImplementedError}.
271
271
  *
272
272
  * On success, the used recovery entry is burned (deleted from the
273
273
  * stored set).
274
274
  */
275
- export declare function recoverPassphrase(provider: ShamirRecoveryProvider | undefined, store: NoydbStore, vault: string, userId: string, input: RecoverPassphraseInput): Promise<UnlockedKeyring>;
275
+ export declare function recoverSecret(provider: ShamirRecoveryProvider | undefined, store: NoydbStore, vault: string, userId: string, input: RecoverSecretInput): Promise<UnlockedKeyring>;