@noy-db/hub 0.3.0-pre.7 → 0.3.0-pre.9

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 (401) hide show
  1. package/dist/adapter/index.d.ts +2 -3
  2. package/dist/adapter/index.js +1 -1
  3. package/dist/aggregate/index.d.ts +3 -4
  4. package/dist/aggregate/index.js +9 -8
  5. package/dist/aggregate/index.js.map +1 -1
  6. package/dist/api-HV4PDUWF.js +20 -0
  7. package/dist/as/index.d.ts +4 -5
  8. package/dist/as/index.js +11 -11
  9. package/dist/at/index.d.ts +2 -3
  10. package/dist/attestation/index.d.ts +3 -4
  11. package/dist/attestation/index.js +18 -18
  12. package/dist/{backup-7PX6NDKT.js → backup-ODXO7OGA.js} +12 -12
  13. package/dist/blobs/index.d.ts +4 -5
  14. package/dist/blobs/index.js +11 -11
  15. package/dist/blobs/index.js.map +1 -1
  16. package/dist/bundle/index.d.ts +5 -6
  17. package/dist/bundle/index.js +20 -20
  18. package/dist/{bundle-BN_VSq5L.d.ts → bundle-DlSxo31R.d.ts} +1 -1
  19. package/dist/by/index.js +2 -2
  20. package/dist/cargo/index.d.ts +4 -5
  21. package/dist/cargo/index.js +23 -22
  22. package/dist/{chunk-QYNBPDGO.js → chunk-2644KEGW.js} +18 -10
  23. package/dist/chunk-2644KEGW.js.map +1 -0
  24. package/dist/{chunk-XW5LZYV4.js → chunk-2HVUKRNE.js} +2 -2
  25. package/dist/{chunk-VFQOE76I.js → chunk-2KOSJTMU.js} +2 -2
  26. package/dist/{chunk-7AERMJP6.js → chunk-2UQ4RMHV.js} +4 -4
  27. package/dist/{chunk-5GQE5IDB.js → chunk-2XE6LIXT.js} +13 -11
  28. package/dist/chunk-2XE6LIXT.js.map +1 -0
  29. package/dist/{chunk-VIWOGJ2O.js → chunk-34RRRIC3.js} +2 -2
  30. package/dist/{chunk-BASCPHNM.js → chunk-3C5CKXFI.js} +289 -48
  31. package/dist/chunk-3C5CKXFI.js.map +1 -0
  32. package/dist/{chunk-LFGJG4XZ.js → chunk-3I4KYWNP.js} +2 -2
  33. package/dist/{chunk-RUWEHFRB.js → chunk-42KVY3OC.js} +4 -4
  34. package/dist/{chunk-5K7KZMXG.js → chunk-4C4WBS4V.js} +2048 -948
  35. package/dist/chunk-4C4WBS4V.js.map +1 -0
  36. package/dist/{chunk-J54DC5IC.js → chunk-4G3IT7J7.js} +7 -7
  37. package/dist/{chunk-WJEMUO32.js → chunk-4RQ62VSR.js} +2 -2
  38. package/dist/{chunk-QAVFI23O.js → chunk-4ZSGSRBI.js} +8 -8
  39. package/dist/{chunk-C4NOLA5X.js → chunk-5GAX2QOH.js} +2 -2
  40. package/dist/{chunk-IEKK2XI4.js → chunk-5SAZMBW7.js} +7 -7
  41. package/dist/{chunk-II6DLDZM.js → chunk-5TZZUL5X.js} +2 -2
  42. package/dist/{chunk-GMZFHDSG.js → chunk-6CU3FN74.js} +8 -8
  43. package/dist/chunk-6G2SCQYS.js +29 -0
  44. package/dist/chunk-6G2SCQYS.js.map +1 -0
  45. package/dist/{chunk-UWZ7O4NR.js → chunk-6MWUANRF.js} +2 -2
  46. package/dist/{chunk-U7LV2DUN.js → chunk-6ULCYCMU.js} +2 -2
  47. package/dist/{chunk-6Z435B6N.js → chunk-7HAPHVRJ.js} +131 -92
  48. package/dist/chunk-7HAPHVRJ.js.map +1 -0
  49. package/dist/{chunk-VFG5YXWM.js → chunk-7IZQTCTR.js} +3 -3
  50. package/dist/chunk-7ZANJ6JZ.js +265 -0
  51. package/dist/chunk-7ZANJ6JZ.js.map +1 -0
  52. package/dist/{chunk-VMRXI3IF.js → chunk-A2APWS32.js} +6 -6
  53. package/dist/chunk-A2APWS32.js.map +1 -0
  54. package/dist/{chunk-U5IJHUHZ.js → chunk-A4MAD6PO.js} +5 -5
  55. package/dist/chunk-ANDBBA2P.js +36 -0
  56. package/dist/chunk-ANDBBA2P.js.map +1 -0
  57. package/dist/{chunk-5HZULLHE.js → chunk-AUR7MRHA.js} +2 -2
  58. package/dist/{chunk-YSJG4L4A.js → chunk-AYGZMQP5.js} +3 -3
  59. package/dist/chunk-AYGZMQP5.js.map +1 -0
  60. package/dist/{chunk-H7WQMGXH.js → chunk-CJEMA2Z6.js} +2 -2
  61. package/dist/{chunk-WRLPV6SI.js → chunk-CTSFKDGA.js} +2 -2
  62. package/dist/{chunk-OJ64XMPJ.js → chunk-CU62BBRB.js} +32 -1
  63. package/dist/chunk-CU62BBRB.js.map +1 -0
  64. package/dist/{chunk-OFYY5Q4R.js → chunk-CWCCYH34.js} +2 -2
  65. package/dist/{chunk-WGH3YV6Y.js → chunk-DEYAO3N6.js} +10 -10
  66. package/dist/{chunk-7L6EH6S7.js → chunk-DFIBOSOQ.js} +8 -8
  67. package/dist/{chunk-3CHNKEFI.js → chunk-E5AHO65E.js} +7 -7
  68. package/dist/{chunk-AG2PLGQ2.js → chunk-FC3XK5JT.js} +8 -8
  69. package/dist/{chunk-CP3GUIAN.js → chunk-FGOGS7CE.js} +10 -12
  70. package/dist/chunk-FGOGS7CE.js.map +1 -0
  71. package/dist/{chunk-DJ4TNF4N.js → chunk-GX2BYNCT.js} +7 -7
  72. package/dist/{chunk-YTCCC6NG.js → chunk-GZ2MOPVX.js} +34 -63
  73. package/dist/chunk-GZ2MOPVX.js.map +1 -0
  74. package/dist/chunk-H57P2SJB.js +126 -0
  75. package/dist/chunk-H57P2SJB.js.map +1 -0
  76. package/dist/{chunk-55LSDABW.js → chunk-HBTT7YQX.js} +2 -2
  77. package/dist/{chunk-PYIUDUGS.js → chunk-HOCEGVGQ.js} +2 -2
  78. package/dist/{chunk-5JQMX2EH.js → chunk-ICV32FPK.js} +2 -2
  79. package/dist/{chunk-WFBZRXS5.js → chunk-IIP5WFVT.js} +138 -92
  80. package/dist/chunk-IIP5WFVT.js.map +1 -0
  81. package/dist/{chunk-YSU2E4GZ.js → chunk-IUKGIB2Q.js} +19 -6
  82. package/dist/chunk-IUKGIB2Q.js.map +1 -0
  83. package/dist/{chunk-OWGAXPRE.js → chunk-IWTYFS3D.js} +2 -2
  84. package/dist/{chunk-FCOZ7DEC.js → chunk-JC5R7P44.js} +3 -3
  85. package/dist/{chunk-K6WHZBCO.js → chunk-KBBWY46Y.js} +2 -2
  86. package/dist/{chunk-RNYDHIQL.js → chunk-KBF5GSGX.js} +3 -3
  87. package/dist/{chunk-6P5AJ2ZS.js → chunk-KCG3BHFG.js} +2 -23
  88. package/dist/chunk-KCG3BHFG.js.map +1 -0
  89. package/dist/{chunk-T4NQMPBN.js → chunk-KNXN47MO.js} +3 -3
  90. package/dist/{chunk-VK6OC22R.js → chunk-KWLD2D75.js} +4 -3
  91. package/dist/chunk-KWLD2D75.js.map +1 -0
  92. package/dist/{chunk-7F2P2NHX.js → chunk-KXKLKJW4.js} +6 -6
  93. package/dist/{chunk-PAJCRV7O.js → chunk-KYC4LIEU.js} +2 -2
  94. package/dist/{chunk-AZPGB4OD.js → chunk-LEOXZY36.js} +8 -8
  95. package/dist/{chunk-2L7PPF2C.js → chunk-M5I354EE.js} +9 -9
  96. package/dist/{chunk-26FSVNBL.js → chunk-MK2BSS44.js} +2 -2
  97. package/dist/{chunk-G5CFMITA.js → chunk-MSVY7ULZ.js} +3 -3
  98. package/dist/{chunk-PE25C4QL.js → chunk-NNWK3PSY.js} +9 -9
  99. package/dist/{chunk-JT4A6OAJ.js → chunk-NSZ6J5DF.js} +7 -7
  100. package/dist/{chunk-RHB7BOEO.js → chunk-NUEFXLZU.js} +7 -7
  101. package/dist/{chunk-I6Q7YECW.js → chunk-NYVQCZ54.js} +5 -5
  102. package/dist/chunk-NYVQCZ54.js.map +1 -0
  103. package/dist/{chunk-DKGZIX6S.js → chunk-OQAODTYR.js} +2 -2
  104. package/dist/{chunk-HV3VNAYI.js → chunk-OV4CMJGR.js} +5 -5
  105. package/dist/{chunk-V76PHWLE.js → chunk-PEDZFFKW.js} +2 -2
  106. package/dist/chunk-PF3FQCCF.js +164 -0
  107. package/dist/chunk-PF3FQCCF.js.map +1 -0
  108. package/dist/{chunk-CND5WQLO.js → chunk-Q2KVKTC2.js} +5 -5
  109. package/dist/{chunk-RUIMKQTA.js → chunk-QJR3W3MF.js} +1 -1
  110. package/dist/chunk-QJR3W3MF.js.map +1 -0
  111. package/dist/{chunk-HBVEGUON.js → chunk-QTXQ6RNZ.js} +3 -3
  112. package/dist/{chunk-J5YDMJHG.js → chunk-RJ5522XX.js} +12 -12
  113. package/dist/{chunk-H3MPSYCH.js → chunk-RMUXPHIH.js} +56 -7
  114. package/dist/chunk-RMUXPHIH.js.map +1 -0
  115. package/dist/{chunk-CHK5VVMI.js → chunk-S6AQXDN4.js} +2 -2
  116. package/dist/{chunk-E3LURVGQ.js → chunk-SSFC3IYA.js} +9 -9
  117. package/dist/chunk-SSFC3IYA.js.map +1 -0
  118. package/dist/{chunk-MOQ5M46U.js → chunk-SZCHEDML.js} +2 -2
  119. package/dist/{chunk-UB3XHGFG.js → chunk-TDPEJINP.js} +14 -7
  120. package/dist/chunk-TDPEJINP.js.map +1 -0
  121. package/dist/{chunk-HCK2DFEK.js → chunk-UNJU345Q.js} +1 -1
  122. package/dist/chunk-UNJU345Q.js.map +1 -0
  123. package/dist/chunk-V7RNIND6.js +265 -0
  124. package/dist/chunk-V7RNIND6.js.map +1 -0
  125. package/dist/{chunk-VUHXLL32.js → chunk-VJ3NQK4K.js} +5 -5
  126. package/dist/{chunk-62TTFKU4.js → chunk-WNA6T3MA.js} +8 -8
  127. package/dist/{chunk-7CZ6YXMO.js → chunk-WVCQ75OK.js} +2 -2
  128. package/dist/{chunk-NO53W6O5.js → chunk-X66MXMR5.js} +2 -2
  129. package/dist/{chunk-JIW3Q5JN.js → chunk-XHD3L3JO.js} +199 -35
  130. package/dist/chunk-XHD3L3JO.js.map +1 -0
  131. package/dist/{chunk-6PALJTC2.js → chunk-XJK2WIYN.js} +3 -3
  132. package/dist/{chunk-5UOPIPZC.js → chunk-XQ7UYPVN.js} +3 -3
  133. package/dist/{chunk-HU55NPHZ.js → chunk-Y2OCKFZ3.js} +2 -2
  134. package/dist/{chunk-UJJJPKJO.js → chunk-YBFOBRTO.js} +3 -3
  135. package/dist/{chunk-I6JJ6VJS.js → chunk-YLN33ADH.js} +2 -2
  136. package/dist/{chunk-HGQ6UNHE.js → chunk-Z5YFRMG5.js} +2 -2
  137. package/dist/{chunk-EU7HDMT3.js → chunk-ZWQFOXBR.js} +2 -2
  138. package/dist/classified/index.d.ts +4 -5
  139. package/dist/classified/index.js +5 -3
  140. package/dist/{config-drift-LRKCC3VZ.js → classified-marker-IO5EBW7Q.js} +4 -4
  141. package/dist/classified-marker-IO5EBW7Q.js.map +1 -0
  142. package/dist/collection-facade-3RAXG2OU.js +38 -0
  143. package/dist/{computed-6FOFXQPE.js → computed-R62HGCO4.js} +3 -3
  144. package/dist/consent/index.d.ts +3 -4
  145. package/dist/consent/index.js +9 -9
  146. package/dist/crdt/index.d.ts +3 -4
  147. package/dist/{dead-filter-NZORV45S.js → dead-filter-VNA4M3GP.js} +2 -2
  148. package/dist/delegation-ZKII5UBI.js +25 -0
  149. package/dist/derivations/index.d.ts +4 -5
  150. package/dist/derivations/index.js +12 -11
  151. package/dist/derive-5D2C3WG4.js +21 -0
  152. package/dist/describe/index.d.ts +4 -1
  153. package/dist/{dev-unlock-CsOqX7O2.d.ts → dev-unlock-DDTafVO6.d.ts} +1 -1
  154. package/dist/{enclave-7X5BUAMS.js → enclave-EUBEJGPG.js} +11 -9
  155. package/dist/executor-IL7SRNUZ.js +23 -0
  156. package/dist/executor-OUA2Y6YC.js +9 -0
  157. package/dist/executor-WAEI6PDV.js +9 -0
  158. package/dist/export-accessible-O55RKAGC.js +23 -0
  159. package/dist/extract-partition-VBGCBA6Q.js +36 -0
  160. package/dist/{fanout-sidecar-BDKLP5GG.js → fanout-sidecar-CI5BCMQM.js} +11 -11
  161. package/dist/find-FISGUWSK.js +11 -0
  162. package/dist/forget/index.d.ts +2 -2
  163. package/dist/forget/index.js +9 -9
  164. package/dist/guards/index.d.ts +4 -5
  165. package/dist/guards/index.js +4 -4
  166. package/dist/{hash-BPzm02Za.d.ts → hash-DBkZfIBW.d.ts} +1 -1
  167. package/dist/history/index.d.ts +4 -5
  168. package/dist/history/index.js +11 -11
  169. package/dist/i18n/index.d.ts +24 -5
  170. package/dist/i18n/index.js +45 -34
  171. package/dist/i18n/index.js.map +1 -1
  172. package/dist/in/index.d.ts +2 -3
  173. package/dist/{index-CLucFLeN.d.ts → index-CyclmyDr.d.ts} +2 -3
  174. package/dist/{index-BJ3L-XcV.d.ts → index-DzhNI2vE.d.ts} +6378 -5022
  175. package/dist/index.d.ts +64 -23
  176. package/dist/index.js +411 -132
  177. package/dist/index.js.map +1 -1
  178. package/dist/indexing/index.d.ts +3 -4
  179. package/dist/indexing/index.js +4 -4
  180. package/dist/issue-EQAWIYFQ.js +19 -0
  181. package/dist/kernel/index.d.ts +3 -4
  182. package/dist/kernel/index.js +13 -12
  183. package/dist/lazy/index.d.ts +3 -4
  184. package/dist/{ledger-EMDHRJJN.js → ledger-AJA2SR3C.js} +11 -11
  185. package/dist/liberate-SEGR4JLY.js +24 -0
  186. package/dist/{link-set-62Y36TOG.js → link-set-YBAC2DQT.js} +11 -11
  187. package/dist/materialized-views/index.d.ts +14 -5
  188. package/dist/materialized-views/index.js +17 -15
  189. package/dist/{mime-magic-BlE9fzn2.d.ts → mime-magic-CbV1quyp.d.ts} +1 -1
  190. package/dist/noydb-AMEOU456.js +65 -0
  191. package/dist/on/index.d.ts +2 -3
  192. package/dist/on/index.js +9 -9
  193. package/dist/overlay-views/index.d.ts +4 -5
  194. package/dist/overlay-views/index.js +4 -4
  195. package/dist/periods/index.d.ts +3 -4
  196. package/dist/periods/index.js +20 -12
  197. package/dist/pod/index.d.ts +3 -4
  198. package/dist/pod/index.js +11 -11
  199. package/dist/{policy-SXPLTQS4.js → policy-SDGRWVIL.js} +5 -5
  200. package/dist/portability/index.d.ts +3 -4
  201. package/dist/portability/index.js +8 -8
  202. package/dist/{post-register-DCJ2SRVG.js → post-register-MROIUA5O.js} +6 -6
  203. package/dist/{public-envelope-CBRIJORQ.js → public-envelope-J5PLQOW2.js} +4 -4
  204. package/dist/query/index.d.ts +2 -3
  205. package/dist/query/index.js +9 -6
  206. package/dist/{read-only-facade-5ADRJVTM.js → read-only-facade-UCYNRE56.js} +2 -2
  207. package/dist/register-OVJKW7BS.js +23 -0
  208. package/dist/registry-5RJSK5AJ.js +9 -0
  209. package/dist/registry-DQRNTWRL.js +18 -0
  210. package/dist/registry-LTGLERS7.js +19 -0
  211. package/dist/request-withdrawal-27O77D2V.js +31 -0
  212. package/dist/{reveal-R5N7JKA5.js → reveal-LT3I2K4P.js} +6 -6
  213. package/dist/revoke-4N45G7D2.js +24 -0
  214. package/dist/satellites/index.d.ts +2 -3
  215. package/dist/satellites/index.js +1 -1
  216. package/dist/sealed-record/index.d.ts +3 -4
  217. package/dist/sealed-record/index.js +12 -12
  218. package/dist/session/index.d.ts +4 -5
  219. package/dist/session/index.js +9 -9
  220. package/dist/shadow/index.d.ts +3 -4
  221. package/dist/shadow/index.js +2 -2
  222. package/dist/signer-XJCOV7JD.js +25 -0
  223. package/dist/snapshots/index.d.ts +3 -4
  224. package/dist/snapshots/index.js +10 -10
  225. package/dist/{stale-DP66HFT3.js → stale-IYYXEH3U.js} +2 -2
  226. package/dist/storage-Y44CAPE6.js +23 -0
  227. package/dist/{store-coordination-provider-F5N5ASDF.js → store-coordination-provider-WKGAE2WI.js} +3 -3
  228. package/dist/{subject-index-O75wKshW.d.ts → subject-index-CyOgGMJL.d.ts} +18 -0
  229. package/dist/sync/index.d.ts +2 -3
  230. package/dist/sync/index.js +9 -9
  231. package/dist/team/index.d.ts +3 -4
  232. package/dist/team/index.js +15 -15
  233. package/dist/tiers/index.d.ts +2 -3
  234. package/dist/tiers/index.js +10 -10
  235. package/dist/to/index.d.ts +2 -3
  236. package/dist/to/index.js +1 -1
  237. package/dist/{transition-guard-BzsAQEd-.d.ts → transition-guard-BOUkzQU4.d.ts} +1 -1
  238. package/dist/tx/index.d.ts +3 -4
  239. package/dist/tx/index.js +3 -3
  240. package/dist/ui/index.d.ts +4 -1
  241. package/dist/util/index.js +1 -1
  242. package/dist/{validators-DGmYFP51.d.ts → validators-B3SalxlJ.d.ts} +1 -1
  243. package/dist/{vault-diff-DmBBatkx.d.ts → vault-diff-Dt9NkLzw.d.ts} +1 -1
  244. package/dist/{verify-CAYGXYNO.js → verify-GH6CWVSW.js} +5 -5
  245. package/dist/{walk-3SB25HF2.js → walk-76UCFXYV.js} +11 -11
  246. package/dist/with/index.d.ts +3 -4
  247. package/dist/with/index.js +11 -11
  248. package/dist/{with-materialized-view-DPEVoGoB.d.ts → with-materialized-view-BP33v1Z6.d.ts} +1 -1
  249. package/dist/{with-overlayed-view-DGpKFSv1.d.ts → with-overlayed-view-DntFpOKN.d.ts} +1 -1
  250. package/dist/{with-rollup-B2RwnTq0.d.ts → with-rollup-ClCHO6-4.d.ts} +1 -1
  251. package/dist/withdraw-accessible-6J2UH3IN.js +28 -0
  252. package/package.json +3 -3
  253. package/dist/api-Z66JMGOU.js +0 -20
  254. package/dist/chunk-47C4CI7R.js +0 -108
  255. package/dist/chunk-47C4CI7R.js.map +0 -1
  256. package/dist/chunk-5GQE5IDB.js.map +0 -1
  257. package/dist/chunk-5K7KZMXG.js.map +0 -1
  258. package/dist/chunk-6P5AJ2ZS.js.map +0 -1
  259. package/dist/chunk-6Z435B6N.js.map +0 -1
  260. package/dist/chunk-7KTL4RHZ.js +0 -120
  261. package/dist/chunk-7KTL4RHZ.js.map +0 -1
  262. package/dist/chunk-BASCPHNM.js.map +0 -1
  263. package/dist/chunk-CP3GUIAN.js.map +0 -1
  264. package/dist/chunk-E3LURVGQ.js.map +0 -1
  265. package/dist/chunk-H3MPSYCH.js.map +0 -1
  266. package/dist/chunk-HCK2DFEK.js.map +0 -1
  267. package/dist/chunk-I6Q7YECW.js.map +0 -1
  268. package/dist/chunk-JIW3Q5JN.js.map +0 -1
  269. package/dist/chunk-OJ64XMPJ.js.map +0 -1
  270. package/dist/chunk-QYNBPDGO.js.map +0 -1
  271. package/dist/chunk-RUIMKQTA.js.map +0 -1
  272. package/dist/chunk-UB3XHGFG.js.map +0 -1
  273. package/dist/chunk-VK6OC22R.js.map +0 -1
  274. package/dist/chunk-VMRXI3IF.js.map +0 -1
  275. package/dist/chunk-WFBZRXS5.js.map +0 -1
  276. package/dist/chunk-YSJG4L4A.js.map +0 -1
  277. package/dist/chunk-YSU2E4GZ.js.map +0 -1
  278. package/dist/chunk-YTCCC6NG.js.map +0 -1
  279. package/dist/collection-facade-JP6N7USE.js +0 -39
  280. package/dist/config-drift-LRKCC3VZ.js.map +0 -1
  281. package/dist/delegation-FDOXXHNG.js +0 -25
  282. package/dist/derive-JR2C5JFG.js +0 -21
  283. package/dist/describe-C6iHNlqJ.d.ts +0 -162
  284. package/dist/executor-6LHOV7MN.js +0 -21
  285. package/dist/executor-EUPYHCLU.js +0 -9
  286. package/dist/executor-KZ4B3PRT.js +0 -9
  287. package/dist/export-accessible-7XLSZBGJ.js +0 -23
  288. package/dist/extract-partition-RM6EROS5.js +0 -36
  289. package/dist/find-OH4BEULF.js +0 -11
  290. package/dist/issue-FJE2IHUI.js +0 -19
  291. package/dist/liberate-HFIPHJGR.js +0 -24
  292. package/dist/noydb-4ZASGII5.js +0 -62
  293. package/dist/register-5NRE7HBZ.js +0 -23
  294. package/dist/registry-5QLETK3Q.js +0 -17
  295. package/dist/registry-DYTNLOJC.js +0 -19
  296. package/dist/registry-HSNQ4NBP.js +0 -9
  297. package/dist/request-withdrawal-5APB7RKN.js +0 -31
  298. package/dist/revoke-VELFCK7S.js +0 -24
  299. package/dist/signer-IVU3B6DP.js +0 -25
  300. package/dist/storage-RH5VBLLL.js +0 -23
  301. package/dist/withdraw-accessible-LN4AOJDD.js +0 -28
  302. /package/dist/{api-Z66JMGOU.js.map → api-HV4PDUWF.js.map} +0 -0
  303. /package/dist/{backup-7PX6NDKT.js.map → backup-ODXO7OGA.js.map} +0 -0
  304. /package/dist/{chunk-XW5LZYV4.js.map → chunk-2HVUKRNE.js.map} +0 -0
  305. /package/dist/{chunk-VFQOE76I.js.map → chunk-2KOSJTMU.js.map} +0 -0
  306. /package/dist/{chunk-7AERMJP6.js.map → chunk-2UQ4RMHV.js.map} +0 -0
  307. /package/dist/{chunk-VIWOGJ2O.js.map → chunk-34RRRIC3.js.map} +0 -0
  308. /package/dist/{chunk-LFGJG4XZ.js.map → chunk-3I4KYWNP.js.map} +0 -0
  309. /package/dist/{chunk-RUWEHFRB.js.map → chunk-42KVY3OC.js.map} +0 -0
  310. /package/dist/{chunk-J54DC5IC.js.map → chunk-4G3IT7J7.js.map} +0 -0
  311. /package/dist/{chunk-WJEMUO32.js.map → chunk-4RQ62VSR.js.map} +0 -0
  312. /package/dist/{chunk-QAVFI23O.js.map → chunk-4ZSGSRBI.js.map} +0 -0
  313. /package/dist/{chunk-C4NOLA5X.js.map → chunk-5GAX2QOH.js.map} +0 -0
  314. /package/dist/{chunk-IEKK2XI4.js.map → chunk-5SAZMBW7.js.map} +0 -0
  315. /package/dist/{chunk-II6DLDZM.js.map → chunk-5TZZUL5X.js.map} +0 -0
  316. /package/dist/{chunk-GMZFHDSG.js.map → chunk-6CU3FN74.js.map} +0 -0
  317. /package/dist/{chunk-UWZ7O4NR.js.map → chunk-6MWUANRF.js.map} +0 -0
  318. /package/dist/{chunk-U7LV2DUN.js.map → chunk-6ULCYCMU.js.map} +0 -0
  319. /package/dist/{chunk-VFG5YXWM.js.map → chunk-7IZQTCTR.js.map} +0 -0
  320. /package/dist/{chunk-U5IJHUHZ.js.map → chunk-A4MAD6PO.js.map} +0 -0
  321. /package/dist/{chunk-5HZULLHE.js.map → chunk-AUR7MRHA.js.map} +0 -0
  322. /package/dist/{chunk-H7WQMGXH.js.map → chunk-CJEMA2Z6.js.map} +0 -0
  323. /package/dist/{chunk-WRLPV6SI.js.map → chunk-CTSFKDGA.js.map} +0 -0
  324. /package/dist/{chunk-OFYY5Q4R.js.map → chunk-CWCCYH34.js.map} +0 -0
  325. /package/dist/{chunk-WGH3YV6Y.js.map → chunk-DEYAO3N6.js.map} +0 -0
  326. /package/dist/{chunk-7L6EH6S7.js.map → chunk-DFIBOSOQ.js.map} +0 -0
  327. /package/dist/{chunk-3CHNKEFI.js.map → chunk-E5AHO65E.js.map} +0 -0
  328. /package/dist/{chunk-AG2PLGQ2.js.map → chunk-FC3XK5JT.js.map} +0 -0
  329. /package/dist/{chunk-DJ4TNF4N.js.map → chunk-GX2BYNCT.js.map} +0 -0
  330. /package/dist/{chunk-55LSDABW.js.map → chunk-HBTT7YQX.js.map} +0 -0
  331. /package/dist/{chunk-PYIUDUGS.js.map → chunk-HOCEGVGQ.js.map} +0 -0
  332. /package/dist/{chunk-5JQMX2EH.js.map → chunk-ICV32FPK.js.map} +0 -0
  333. /package/dist/{chunk-OWGAXPRE.js.map → chunk-IWTYFS3D.js.map} +0 -0
  334. /package/dist/{chunk-FCOZ7DEC.js.map → chunk-JC5R7P44.js.map} +0 -0
  335. /package/dist/{chunk-K6WHZBCO.js.map → chunk-KBBWY46Y.js.map} +0 -0
  336. /package/dist/{chunk-RNYDHIQL.js.map → chunk-KBF5GSGX.js.map} +0 -0
  337. /package/dist/{chunk-T4NQMPBN.js.map → chunk-KNXN47MO.js.map} +0 -0
  338. /package/dist/{chunk-7F2P2NHX.js.map → chunk-KXKLKJW4.js.map} +0 -0
  339. /package/dist/{chunk-PAJCRV7O.js.map → chunk-KYC4LIEU.js.map} +0 -0
  340. /package/dist/{chunk-AZPGB4OD.js.map → chunk-LEOXZY36.js.map} +0 -0
  341. /package/dist/{chunk-2L7PPF2C.js.map → chunk-M5I354EE.js.map} +0 -0
  342. /package/dist/{chunk-26FSVNBL.js.map → chunk-MK2BSS44.js.map} +0 -0
  343. /package/dist/{chunk-G5CFMITA.js.map → chunk-MSVY7ULZ.js.map} +0 -0
  344. /package/dist/{chunk-PE25C4QL.js.map → chunk-NNWK3PSY.js.map} +0 -0
  345. /package/dist/{chunk-JT4A6OAJ.js.map → chunk-NSZ6J5DF.js.map} +0 -0
  346. /package/dist/{chunk-RHB7BOEO.js.map → chunk-NUEFXLZU.js.map} +0 -0
  347. /package/dist/{chunk-DKGZIX6S.js.map → chunk-OQAODTYR.js.map} +0 -0
  348. /package/dist/{chunk-HV3VNAYI.js.map → chunk-OV4CMJGR.js.map} +0 -0
  349. /package/dist/{chunk-V76PHWLE.js.map → chunk-PEDZFFKW.js.map} +0 -0
  350. /package/dist/{chunk-CND5WQLO.js.map → chunk-Q2KVKTC2.js.map} +0 -0
  351. /package/dist/{chunk-HBVEGUON.js.map → chunk-QTXQ6RNZ.js.map} +0 -0
  352. /package/dist/{chunk-J5YDMJHG.js.map → chunk-RJ5522XX.js.map} +0 -0
  353. /package/dist/{chunk-CHK5VVMI.js.map → chunk-S6AQXDN4.js.map} +0 -0
  354. /package/dist/{chunk-MOQ5M46U.js.map → chunk-SZCHEDML.js.map} +0 -0
  355. /package/dist/{chunk-VUHXLL32.js.map → chunk-VJ3NQK4K.js.map} +0 -0
  356. /package/dist/{chunk-62TTFKU4.js.map → chunk-WNA6T3MA.js.map} +0 -0
  357. /package/dist/{chunk-7CZ6YXMO.js.map → chunk-WVCQ75OK.js.map} +0 -0
  358. /package/dist/{chunk-NO53W6O5.js.map → chunk-X66MXMR5.js.map} +0 -0
  359. /package/dist/{chunk-6PALJTC2.js.map → chunk-XJK2WIYN.js.map} +0 -0
  360. /package/dist/{chunk-5UOPIPZC.js.map → chunk-XQ7UYPVN.js.map} +0 -0
  361. /package/dist/{chunk-HU55NPHZ.js.map → chunk-Y2OCKFZ3.js.map} +0 -0
  362. /package/dist/{chunk-UJJJPKJO.js.map → chunk-YBFOBRTO.js.map} +0 -0
  363. /package/dist/{chunk-I6JJ6VJS.js.map → chunk-YLN33ADH.js.map} +0 -0
  364. /package/dist/{chunk-HGQ6UNHE.js.map → chunk-Z5YFRMG5.js.map} +0 -0
  365. /package/dist/{chunk-EU7HDMT3.js.map → chunk-ZWQFOXBR.js.map} +0 -0
  366. /package/dist/{collection-facade-JP6N7USE.js.map → collection-facade-3RAXG2OU.js.map} +0 -0
  367. /package/dist/{computed-6FOFXQPE.js.map → computed-R62HGCO4.js.map} +0 -0
  368. /package/dist/{dead-filter-NZORV45S.js.map → dead-filter-VNA4M3GP.js.map} +0 -0
  369. /package/dist/{delegation-FDOXXHNG.js.map → delegation-ZKII5UBI.js.map} +0 -0
  370. /package/dist/{derive-JR2C5JFG.js.map → derive-5D2C3WG4.js.map} +0 -0
  371. /package/dist/{enclave-7X5BUAMS.js.map → enclave-EUBEJGPG.js.map} +0 -0
  372. /package/dist/{executor-6LHOV7MN.js.map → executor-IL7SRNUZ.js.map} +0 -0
  373. /package/dist/{executor-EUPYHCLU.js.map → executor-OUA2Y6YC.js.map} +0 -0
  374. /package/dist/{executor-KZ4B3PRT.js.map → executor-WAEI6PDV.js.map} +0 -0
  375. /package/dist/{export-accessible-7XLSZBGJ.js.map → export-accessible-O55RKAGC.js.map} +0 -0
  376. /package/dist/{extract-partition-RM6EROS5.js.map → extract-partition-VBGCBA6Q.js.map} +0 -0
  377. /package/dist/{fanout-sidecar-BDKLP5GG.js.map → fanout-sidecar-CI5BCMQM.js.map} +0 -0
  378. /package/dist/{find-OH4BEULF.js.map → find-FISGUWSK.js.map} +0 -0
  379. /package/dist/{issue-FJE2IHUI.js.map → issue-EQAWIYFQ.js.map} +0 -0
  380. /package/dist/{ledger-EMDHRJJN.js.map → ledger-AJA2SR3C.js.map} +0 -0
  381. /package/dist/{liberate-HFIPHJGR.js.map → liberate-SEGR4JLY.js.map} +0 -0
  382. /package/dist/{link-set-62Y36TOG.js.map → link-set-YBAC2DQT.js.map} +0 -0
  383. /package/dist/{noydb-4ZASGII5.js.map → noydb-AMEOU456.js.map} +0 -0
  384. /package/dist/{policy-SXPLTQS4.js.map → policy-SDGRWVIL.js.map} +0 -0
  385. /package/dist/{post-register-DCJ2SRVG.js.map → post-register-MROIUA5O.js.map} +0 -0
  386. /package/dist/{public-envelope-CBRIJORQ.js.map → public-envelope-J5PLQOW2.js.map} +0 -0
  387. /package/dist/{read-only-facade-5ADRJVTM.js.map → read-only-facade-UCYNRE56.js.map} +0 -0
  388. /package/dist/{register-5NRE7HBZ.js.map → register-OVJKW7BS.js.map} +0 -0
  389. /package/dist/{registry-5QLETK3Q.js.map → registry-5RJSK5AJ.js.map} +0 -0
  390. /package/dist/{registry-DYTNLOJC.js.map → registry-DQRNTWRL.js.map} +0 -0
  391. /package/dist/{registry-HSNQ4NBP.js.map → registry-LTGLERS7.js.map} +0 -0
  392. /package/dist/{request-withdrawal-5APB7RKN.js.map → request-withdrawal-27O77D2V.js.map} +0 -0
  393. /package/dist/{reveal-R5N7JKA5.js.map → reveal-LT3I2K4P.js.map} +0 -0
  394. /package/dist/{revoke-VELFCK7S.js.map → revoke-4N45G7D2.js.map} +0 -0
  395. /package/dist/{signer-IVU3B6DP.js.map → signer-XJCOV7JD.js.map} +0 -0
  396. /package/dist/{stale-DP66HFT3.js.map → stale-IYYXEH3U.js.map} +0 -0
  397. /package/dist/{storage-RH5VBLLL.js.map → storage-Y44CAPE6.js.map} +0 -0
  398. /package/dist/{store-coordination-provider-F5N5ASDF.js.map → store-coordination-provider-WKGAE2WI.js.map} +0 -0
  399. /package/dist/{verify-CAYGXYNO.js.map → verify-GH6CWVSW.js.map} +0 -0
  400. /package/dist/{walk-3SB25HF2.js.map → walk-76UCFXYV.js.map} +0 -0
  401. /package/dist/{withdraw-accessible-LN4AOJDD.js.map → withdraw-accessible-6J2UH3IN.js.map} +0 -0
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  checkGate,
6
6
  describeGate,
7
7
  mergePolicy
8
- } from "./chunk-UJJJPKJO.js";
8
+ } from "./chunk-YBFOBRTO.js";
9
9
  import {
10
10
  Collection,
11
11
  ELEVATION_AUDIT_COLLECTION,
@@ -16,29 +16,32 @@ import {
16
16
  RefRegistry,
17
17
  RefScopeError,
18
18
  Vault,
19
+ buildLookupSnapshot,
19
20
  createNoydb,
20
21
  describeAllUsersAuth,
21
22
  describeAuthConfig,
22
23
  describeUserAuth,
23
24
  diagramAuthConfig,
24
25
  isRefArray,
26
+ isViaFieldSpec,
25
27
  memoryStore,
26
28
  ref,
27
29
  refArray,
30
+ via,
28
31
  withArchive
29
- } from "./chunk-5K7KZMXG.js";
32
+ } from "./chunk-4C4WBS4V.js";
30
33
  import {
31
34
  META_COLLECTION,
32
35
  POLICY_RECORD_ID,
33
36
  loadVaultPolicy,
34
37
  saveVaultPolicy
35
- } from "./chunk-NO53W6O5.js";
38
+ } from "./chunk-X66MXMR5.js";
36
39
  import {
37
40
  DELEGATIONS_COLLECTION,
38
41
  issueDelegation,
39
42
  loadActiveDelegations,
40
43
  revokeDelegation
41
- } from "./chunk-U5IJHUHZ.js";
44
+ } from "./chunk-A4MAD6PO.js";
42
45
  import "./chunk-TQ3REHVF.js";
43
46
  import {
44
47
  DEFAULT_PUBLIC_ENVELOPE_SCHEMA,
@@ -51,137 +54,139 @@ import {
51
54
  compileSequenceFormat,
52
55
  resolveSequenceKey,
53
56
  withSequence
54
- } from "./chunk-IEKK2XI4.js";
57
+ } from "./chunk-5SAZMBW7.js";
55
58
  import {
56
59
  UserApi
57
- } from "./chunk-VFG5YXWM.js";
60
+ } from "./chunk-7IZQTCTR.js";
58
61
  import {
59
62
  persistSchemaIfNeeded
60
- } from "./chunk-7AERMJP6.js";
63
+ } from "./chunk-2UQ4RMHV.js";
61
64
  import {
62
65
  LinkEndpointError
63
- } from "./chunk-AZPGB4OD.js";
66
+ } from "./chunk-LEOXZY36.js";
64
67
  import {
65
68
  LinkIntegrityError,
66
69
  isLinkCollectionName
67
- } from "./chunk-V76PHWLE.js";
68
- import "./chunk-5JQMX2EH.js";
70
+ } from "./chunk-PEDZFFKW.js";
71
+ import "./chunk-ICV32FPK.js";
69
72
  import {
70
73
  ComputedFieldError,
71
74
  evalComputedFields
72
- } from "./chunk-VK6OC22R.js";
75
+ } from "./chunk-KWLD2D75.js";
73
76
  import {
74
77
  WithdrawalRequestError,
75
78
  approveWithdrawal,
76
79
  listWithdrawalRequests,
77
80
  rejectWithdrawal,
78
81
  requestWithdrawal
79
- } from "./chunk-HV3VNAYI.js";
80
- import "./chunk-WRLPV6SI.js";
82
+ } from "./chunk-OV4CMJGR.js";
83
+ import "./chunk-CTSFKDGA.js";
81
84
  import {
82
85
  NO_SEARCH,
83
86
  tokenize,
84
87
  withSearch
85
- } from "./chunk-CP3GUIAN.js";
88
+ } from "./chunk-FGOGS7CE.js";
86
89
  import {
87
90
  derivePersistedSchema,
88
91
  isZodSchema
89
- } from "./chunk-55LSDABW.js";
92
+ } from "./chunk-HBTT7YQX.js";
90
93
  import "./chunk-GYGLAVCX.js";
91
94
  import {
92
95
  withCargo
93
- } from "./chunk-K6WHZBCO.js";
96
+ } from "./chunk-KBBWY46Y.js";
94
97
  import {
95
98
  CustodyApi,
96
99
  NO_CARGO,
97
100
  NO_CUSTODY,
98
101
  withCustody
99
- } from "./chunk-RUWEHFRB.js";
102
+ } from "./chunk-42KVY3OC.js";
100
103
  import {
101
104
  DEED_RECORD_ID,
102
105
  createDeedOwner,
103
106
  isDeedVault,
104
107
  liberateVault,
105
108
  loadDeedMarker
106
- } from "./chunk-PE25C4QL.js";
109
+ } from "./chunk-NNWK3PSY.js";
107
110
  import {
108
111
  withdrawAccessibleData
109
- } from "./chunk-DJ4TNF4N.js";
112
+ } from "./chunk-GX2BYNCT.js";
110
113
  import {
111
114
  diffVault
112
115
  } from "./chunk-LB7FD65R.js";
113
116
  import {
114
117
  exportAccessibleData
115
- } from "./chunk-DKGZIX6S.js";
116
- import "./chunk-HBVEGUON.js";
118
+ } from "./chunk-OQAODTYR.js";
119
+ import "./chunk-QTXQ6RNZ.js";
117
120
  import {
118
121
  isDiscriminant
119
122
  } from "./chunk-PY4KJPYU.js";
120
- import "./chunk-LFGJG4XZ.js";
123
+ import "./chunk-3I4KYWNP.js";
121
124
  import {
122
125
  classified,
123
126
  luhnCheck
124
- } from "./chunk-QYNBPDGO.js";
127
+ } from "./chunk-2644KEGW.js";
125
128
  import {
126
129
  ClassifiedNeverStoredError,
127
130
  ClassifiedValidationError,
128
131
  isClassifiedFieldSpec,
129
132
  isClassifiedGroup,
130
133
  resolveClassifiedFields
131
- } from "./chunk-47C4CI7R.js";
132
- import "./chunk-E3LURVGQ.js";
133
- import "./chunk-II6DLDZM.js";
134
+ } from "./chunk-V7RNIND6.js";
135
+ import "./chunk-SSFC3IYA.js";
136
+ import "./chunk-5TZZUL5X.js";
134
137
  import "./chunk-BGIZAFY7.js";
135
138
  import {
136
139
  fuseRetrieval
137
140
  } from "./chunk-AURFOK3D.js";
138
- import "./chunk-EU7HDMT3.js";
139
- import "./chunk-OFYY5Q4R.js";
141
+ import "./chunk-ZWQFOXBR.js";
142
+ import "./chunk-CWCCYH34.js";
140
143
  import {
141
144
  PERIODS_COLLECTION
142
- } from "./chunk-YSU2E4GZ.js";
145
+ } from "./chunk-IUKGIB2Q.js";
143
146
  import "./chunk-GHVIKOHT.js";
144
147
  import {
145
148
  immutableGuard,
146
149
  transitionGuard,
147
150
  withGuard
148
- } from "./chunk-PAJCRV7O.js";
149
- import "./chunk-RUIMKQTA.js";
151
+ } from "./chunk-KYC4LIEU.js";
152
+ import "./chunk-QJR3W3MF.js";
150
153
  import "./chunk-YMUGBZN2.js";
151
- import "./chunk-HU55NPHZ.js";
154
+ import "./chunk-Y2OCKFZ3.js";
152
155
  import {
153
156
  CollectionFrame,
154
157
  VaultFrame
155
- } from "./chunk-U7LV2DUN.js";
158
+ } from "./chunk-6ULCYCMU.js";
156
159
  import {
157
160
  TxCollection,
158
161
  TxContext,
159
162
  TxVault,
160
163
  runTransaction
161
- } from "./chunk-FCOZ7DEC.js";
164
+ } from "./chunk-JC5R7P44.js";
162
165
  import {
163
166
  withDerivation,
164
167
  withRollup
165
- } from "./chunk-OWGAXPRE.js";
166
- import "./chunk-7KTL4RHZ.js";
167
- import "./chunk-7CZ6YXMO.js";
168
+ } from "./chunk-IWTYFS3D.js";
169
+ import "./chunk-PF3FQCCF.js";
170
+ import "./chunk-7ZANJ6JZ.js";
171
+ import "./chunk-WVCQ75OK.js";
168
172
  import {
169
173
  withMaterializedView
170
- } from "./chunk-I6JJ6VJS.js";
171
- import "./chunk-UB3XHGFG.js";
172
- import "./chunk-YTCCC6NG.js";
173
- import "./chunk-WJEMUO32.js";
174
+ } from "./chunk-YLN33ADH.js";
175
+ import "./chunk-TDPEJINP.js";
176
+ import "./chunk-H57P2SJB.js";
177
+ import "./chunk-GZ2MOPVX.js";
178
+ import "./chunk-4RQ62VSR.js";
174
179
  import {
175
180
  withOverlayedView
176
- } from "./chunk-PYIUDUGS.js";
177
- import "./chunk-MOQ5M46U.js";
178
- import "./chunk-VIWOGJ2O.js";
181
+ } from "./chunk-HOCEGVGQ.js";
182
+ import "./chunk-SZCHEDML.js";
183
+ import "./chunk-34RRRIC3.js";
179
184
  import {
180
185
  importExternalObjects,
181
186
  memoryObjectProjection
182
187
  } from "./chunk-4Q6HSHHL.js";
183
- import "./chunk-I6Q7YECW.js";
184
- import "./chunk-6PALJTC2.js";
188
+ import "./chunk-NYVQCZ54.js";
189
+ import "./chunk-XJK2WIYN.js";
185
190
  import {
186
191
  withLazy
187
192
  } from "./chunk-THNJ3IKU.js";
@@ -196,12 +201,12 @@ import {
196
201
  } from "./chunk-6S7T6WC4.js";
197
202
  import {
198
203
  decryptExtractedPartition
199
- } from "./chunk-2L7PPF2C.js";
204
+ } from "./chunk-M5I354EE.js";
200
205
  import {
201
206
  SCHEMAS_COLLECTION,
202
207
  loadPersistedSchema,
203
208
  savePersistedSchema
204
- } from "./chunk-7F2P2NHX.js";
209
+ } from "./chunk-KXKLKJW4.js";
205
210
  import {
206
211
  MemoryRecipientSealer,
207
212
  MemorySealingKeyProvider,
@@ -212,7 +217,7 @@ import {
212
217
  parseSealedEnvelope,
213
218
  saveSealedPassphrase,
214
219
  sealRsaOaepTlv
215
- } from "./chunk-H7WQMGXH.js";
220
+ } from "./chunk-CJEMA2Z6.js";
216
221
  import {
217
222
  BLOB_CHUNKS_COLLECTION,
218
223
  BLOB_COLLECTION,
@@ -224,13 +229,13 @@ import {
224
229
  detectMagic,
225
230
  detectMimeType,
226
231
  isPreCompressed
227
- } from "./chunk-QAVFI23O.js";
232
+ } from "./chunk-4ZSGSRBI.js";
228
233
  import {
229
234
  createBundleStore,
230
235
  createPodStore,
231
236
  wrapBundleStore,
232
237
  wrapPodStore
233
- } from "./chunk-CHK5VVMI.js";
238
+ } from "./chunk-S6AQXDN4.js";
234
239
  import {
235
240
  NOYDB_BUNDLE_FORMAT_VERSION,
236
241
  NOYDB_BUNDLE_MAGIC,
@@ -244,7 +249,7 @@ import {
244
249
  resetBrotliSupportCache,
245
250
  writeNoydbBundle,
246
251
  writePod
247
- } from "./chunk-CND5WQLO.js";
252
+ } from "./chunk-Q2KVKTC2.js";
248
253
  import {
249
254
  PUBLIC_ENVELOPE_RECORD_ID,
250
255
  isPublicEnvelope,
@@ -252,20 +257,18 @@ import {
252
257
  readPublicEnvelope,
253
258
  savePublicEnvelope,
254
259
  validatePublicEnvelopeInput
255
- } from "./chunk-T4NQMPBN.js";
260
+ } from "./chunk-KNXN47MO.js";
256
261
  import {
257
262
  CONSENT_AUDIT_COLLECTION
258
- } from "./chunk-YSJG4L4A.js";
263
+ } from "./chunk-AYGZMQP5.js";
264
+ import "./chunk-ANDBBA2P.js";
259
265
  import {
260
266
  DICT_COLLECTION_PREFIX,
261
- DictionaryHandle,
267
+ LookupHandle,
262
268
  dictCollectionName,
263
269
  dictKey,
264
- isDictCollectionName,
265
- isDictKeyDescriptor,
266
- isStaticDictDescriptor,
267
270
  staticDict
268
- } from "./chunk-WFBZRXS5.js";
271
+ } from "./chunk-IIP5WFVT.js";
269
272
  import {
270
273
  credentialStatus,
271
274
  deleteCredential,
@@ -273,7 +276,7 @@ import {
273
276
  listCredentials,
274
277
  putCredential,
275
278
  withTeam
276
- } from "./chunk-AG2PLGQ2.js";
279
+ } from "./chunk-FC3XK5JT.js";
277
280
  import {
278
281
  MAGIC_LINK_CONTENT_INFO_PREFIX,
279
282
  MAGIC_LINK_GRANTS_COLLECTION,
@@ -293,7 +296,7 @@ import {
293
296
  rotatePassphrase,
294
297
  unwrapMagicLinkGrant,
295
298
  writeMagicLinkGrant
296
- } from "./chunk-WGH3YV6Y.js";
299
+ } from "./chunk-DEYAO3N6.js";
297
300
  import {
298
301
  burnPaperRecoveryEntry,
299
302
  hasRecoveryEnrolled,
@@ -307,12 +310,12 @@ import {
307
310
  unwrapDeksFromBlob,
308
311
  unwrapDeksFromPaperEntry,
309
312
  unwrapDeksFromShamirEntry
310
- } from "./chunk-VUHXLL32.js";
313
+ } from "./chunk-VJ3NQK4K.js";
311
314
  import {
312
315
  PresenceHandle,
313
316
  SyncEngine,
314
317
  SyncTransaction
315
- } from "./chunk-H3MPSYCH.js";
318
+ } from "./chunk-RMUXPHIH.js";
316
319
  import {
317
320
  BUNDLE_STORE_POLICY,
318
321
  INDEXED_STORE_POLICY,
@@ -323,7 +326,7 @@ import {
323
326
  assertTierAccess,
324
327
  dekKey,
325
328
  effectiveClearance
326
- } from "./chunk-26FSVNBL.js";
329
+ } from "./chunk-MK2BSS44.js";
327
330
  import {
328
331
  SYNC_CREDENTIALS_COLLECTION,
329
332
  WeakPassphraseError,
@@ -337,7 +340,7 @@ import {
337
340
  listUsers,
338
341
  listUsersWithEnvelopes,
339
342
  validatePassphrase
340
- } from "./chunk-GMZFHDSG.js";
343
+ } from "./chunk-6CU3FN74.js";
341
344
  import {
342
345
  DIRECTORY_RECORD_ID,
343
346
  VISIBILITY_RECORD_PREFIX,
@@ -351,7 +354,7 @@ import {
351
354
  readUserVisibility,
352
355
  saveUserEnvelope,
353
356
  visibilityRecordId
354
- } from "./chunk-3CHNKEFI.js";
357
+ } from "./chunk-E5AHO65E.js";
355
358
  import {
356
359
  PolicyEnforcer,
357
360
  activeSessionCount,
@@ -366,7 +369,7 @@ import {
366
369
  revokeAllSessions,
367
370
  revokeSession,
368
371
  validateSessionPolicy
369
- } from "./chunk-RNYDHIQL.js";
372
+ } from "./chunk-KBF5GSGX.js";
370
373
  import {
371
374
  generateULID,
372
375
  isULID
@@ -374,7 +377,7 @@ import {
374
377
  import {
375
378
  CollectionInstant,
376
379
  VaultInstant
377
- } from "./chunk-J54DC5IC.js";
380
+ } from "./chunk-4G3IT7J7.js";
378
381
  import {
379
382
  diff,
380
383
  formatDiff
@@ -383,7 +386,7 @@ import {
383
386
  LedgerStore,
384
387
  applyPatch,
385
388
  computePatch
386
- } from "./chunk-62TTFKU4.js";
389
+ } from "./chunk-WNA6T3MA.js";
387
390
  import {
388
391
  LEDGER_COLLECTION,
389
392
  LEDGER_DELTAS_COLLECTION
@@ -395,25 +398,17 @@ import {
395
398
  paddedIndex,
396
399
  parseIndex,
397
400
  sha256Hex
398
- } from "./chunk-G5CFMITA.js";
399
- import "./chunk-VMRXI3IF.js";
400
- import "./chunk-XW5LZYV4.js";
401
+ } from "./chunk-MSVY7ULZ.js";
402
+ import "./chunk-A2APWS32.js";
403
+ import "./chunk-2HVUKRNE.js";
401
404
  import {
402
405
  validateSchemaInput,
403
406
  validateSchemaOutput
404
- } from "./chunk-JIW3Q5JN.js";
405
- import "./chunk-HGQ6UNHE.js";
406
- import "./chunk-5UOPIPZC.js";
407
- import "./chunk-UWZ7O4NR.js";
408
- import {
409
- NOYDB_BACKUP_VERSION,
410
- NOYDB_FORMAT_VERSION,
411
- NOYDB_KEYRING_VERSION,
412
- NOYDB_SYNC_VERSION,
413
- SealedHandle,
414
- createStore
415
- } from "./chunk-HCK2DFEK.js";
416
- import "./chunk-VFQOE76I.js";
407
+ } from "./chunk-XHD3L3JO.js";
408
+ import "./chunk-Z5YFRMG5.js";
409
+ import "./chunk-XQ7UYPVN.js";
410
+ import "./chunk-6MWUANRF.js";
411
+ import "./chunk-2KOSJTMU.js";
417
412
  import "./chunk-LP7BEXCT.js";
418
413
  import {
419
414
  base64ToBuffer,
@@ -423,7 +418,15 @@ import {
423
418
  derivePresenceKey,
424
419
  encryptBytes,
425
420
  encryptDeterministic
426
- } from "./chunk-5HZULLHE.js";
421
+ } from "./chunk-AUR7MRHA.js";
422
+ import {
423
+ NOYDB_BACKUP_VERSION,
424
+ NOYDB_FORMAT_VERSION,
425
+ NOYDB_KEYRING_VERSION,
426
+ NOYDB_SYNC_VERSION,
427
+ SealedHandle,
428
+ createStore
429
+ } from "./chunk-UNJU345Q.js";
427
430
  import {
428
431
  DEFAULT_CROSS_JOIN_MAX_ROWS,
429
432
  DEFAULT_JOIN_MAX_ROWS,
@@ -433,10 +436,10 @@ import {
433
436
  buildLiveQuery,
434
437
  executePlan,
435
438
  resetJoinWarnings
436
- } from "./chunk-6Z435B6N.js";
439
+ } from "./chunk-7HAPHVRJ.js";
437
440
  import {
438
441
  CollectionIndexes
439
- } from "./chunk-C4NOLA5X.js";
442
+ } from "./chunk-5GAX2QOH.js";
440
443
  import {
441
444
  Aggregation,
442
445
  GROUPBY_MAX_CARDINALITY,
@@ -455,23 +458,30 @@ import {
455
458
  reduceRecords,
456
459
  reducerBuilder,
457
460
  sum
458
- } from "./chunk-5GQE5IDB.js";
461
+ } from "./chunk-2XE6LIXT.js";
459
462
  import {
460
463
  evaluateClause,
461
464
  evaluateFieldClause,
462
- installMoneyEngine,
463
465
  readPath
464
- } from "./chunk-6P5AJ2ZS.js";
466
+ } from "./chunk-KCG3BHFG.js";
465
467
  import {
466
468
  applyI18nLocale,
467
469
  enforceScript,
470
+ getAtPath,
468
471
  i18nText,
469
472
  inferScripts,
473
+ isDictCollectionName,
474
+ isDictKeyDescriptor,
470
475
  isI18nTextDescriptor,
476
+ isStaticDictDescriptor,
471
477
  resolveI18nText,
472
478
  resolvePolicy,
479
+ setAtPathInPlace,
473
480
  validateI18nTextValue
474
- } from "./chunk-BASCPHNM.js";
481
+ } from "./chunk-3C5CKXFI.js";
482
+ import {
483
+ installViaBinder
484
+ } from "./chunk-6G2SCQYS.js";
475
485
  import {
476
486
  AlreadyElevatedError,
477
487
  AmendmentForbiddenError,
@@ -512,6 +522,7 @@ import {
512
522
  EnclaveNotSupportedError,
513
523
  ExportCapabilityError,
514
524
  FieldFrozenError,
525
+ FieldNotQueryableError,
515
526
  FilenameSanitizationError,
516
527
  ForgetStrategyNotConfiguredError,
517
528
  GroupCardinalityError,
@@ -590,12 +601,13 @@ import {
590
601
  USER_ENVELOPE_MAX_BYTES,
591
602
  UniqueConstraintError,
592
603
  UnknownDictCodeError,
604
+ UnknownLookupKeyError,
593
605
  UnknownShardError,
594
606
  UnsupportedIndexOptionError,
595
607
  UserEnvelopeOversizedError,
596
608
  ValidationError,
597
609
  VaultTemplateNotFoundError
598
- } from "./chunk-OJ64XMPJ.js";
610
+ } from "./chunk-CU62BBRB.js";
599
611
  import "./chunk-PZ5AY32C.js";
600
612
 
601
613
  // src/kernel/debug.ts
@@ -816,18 +828,19 @@ function routeStore(opts) {
816
828
  }
817
829
  return tieredBlobs.large;
818
830
  }
819
- function isCold(collection, envelope) {
831
+ function isCold(collection, envelope, before) {
820
832
  if (!opts.age) return false;
821
833
  if (isInternal(collection)) return false;
822
834
  if (opts.age.collections && opts.age.collections.length > 0) {
823
835
  if (!opts.age.collections.includes(collection)) return false;
824
836
  }
825
- const cutoff = Date.now() - opts.age.coldAfterDays * 24 * 60 * 60 * 1e3;
826
- const ts = new Date(envelope._ts).getTime();
827
- return ts < cutoff;
837
+ const cutoffIso = before ?? (opts.age.coldAfterDays != null ? new Date(Date.now() - opts.age.coldAfterDays * 24 * 60 * 60 * 1e3).toISOString() : void 0);
838
+ if (cutoffIso === void 0) return false;
839
+ return envelope._ts < cutoffIso;
828
840
  }
829
841
  const store = {
830
842
  name: buildName(),
843
+ ...opts.age?.cold ? { capabilities: { ...primary.capabilities, coldArchival: true } } : primary.capabilities ? { capabilities: { ...primary.capabilities, coldArchival: false } } : {},
831
844
  async get(vault, collection, id) {
832
845
  const s = storeFor(vault, collection);
833
846
  const result = await s.get(vault, collection, id);
@@ -896,16 +909,16 @@ function routeStore(opts) {
896
909
  [...partitioned.entries()].map(([s, snap]) => s.saveAll(vault, snap))
897
910
  );
898
911
  },
899
- async compact(vault) {
912
+ async compact(vault, compactOpts) {
900
913
  if (!opts.age) return 0;
901
914
  let migrated = 0;
902
- const collections = opts.age.collections?.length ? opts.age.collections : await primary.list(vault, "").catch(() => []);
915
+ const collections = opts.age.collections?.length ? opts.age.collections : Object.keys(await primary.loadAll(vault).catch(() => ({})));
903
916
  for (const collection of collections) {
904
917
  const ids = await primary.list(vault, collection).catch(() => []);
905
918
  for (const id of ids) {
906
919
  const envelope = await primary.get(vault, collection, id);
907
920
  if (!envelope) continue;
908
- if (isCold(collection, envelope)) {
921
+ if (isCold(collection, envelope, compactOpts?.before)) {
909
922
  await opts.age.cold.put(vault, collection, id, envelope);
910
923
  await primary.delete(vault, collection, id);
911
924
  migrated++;
@@ -1347,7 +1360,7 @@ function withDeferredNumbering(config) {
1347
1360
  };
1348
1361
  }
1349
1362
 
1350
- // src/with-shape/money/iso4217.ts
1363
+ // src/shape/via-money/iso4217.ts
1351
1364
  var MINOR_UNITS = {
1352
1365
  // 2-decimal majors
1353
1366
  EUR: 2,
@@ -1405,7 +1418,7 @@ function scaleForCurrency(code) {
1405
1418
  return v === void 0 ? null : v;
1406
1419
  }
1407
1420
 
1408
- // src/with-shape/money/fixed-point.ts
1421
+ // src/shape/via-money/fixed-point.ts
1409
1422
  function expandExponent(s) {
1410
1423
  const m = /^([+-]?)(\d+)(?:\.(\d+))?[eE]([+-]?\d+)$/.exec(s);
1411
1424
  if (!m) return s;
@@ -1523,7 +1536,7 @@ function formatScaledInt(value, scale) {
1523
1536
  return (negative ? "-" : "") + intPart + "." + fracPart;
1524
1537
  }
1525
1538
 
1526
- // src/with-shape/money/paths.ts
1539
+ // src/shape/via-money/paths.ts
1527
1540
  var SEGMENT_RE = /^(\*|[^.[\]*]+)(\[\])?$/;
1528
1541
  var parseCache = /* @__PURE__ */ new Map();
1529
1542
  function parseMoneyPath(path) {
@@ -1625,7 +1638,7 @@ function transformAtMoneyPath(node, path, segments, index, visit, lenient) {
1625
1638
  return clone;
1626
1639
  }
1627
1640
 
1628
- // src/with-shape/money/normalize.ts
1641
+ // src/shape/via-money/normalize.ts
1629
1642
  function isMoneyValueObject(v) {
1630
1643
  return typeof v === "object" && v !== null && "currency" in v;
1631
1644
  }
@@ -1794,7 +1807,7 @@ function decodeMoneyFields(record, moneyFields, locale) {
1794
1807
  return out;
1795
1808
  }
1796
1809
 
1797
- // src/with-shape/money/where.ts
1810
+ // src/shape/via-money/where.ts
1798
1811
  function isMoneyValueObject2(v) {
1799
1812
  return typeof v === "object" && v !== null && "currency" in v;
1800
1813
  }
@@ -1839,7 +1852,7 @@ function moneyFieldClause(field, op, value, desc) {
1839
1852
  case ">":
1840
1853
  case ">=": {
1841
1854
  const e = parseOperand(field, value, desc);
1842
- return withMoney(field, op, value, desc, [e]);
1855
+ return { mode: desc.mode, entries: [e] };
1843
1856
  }
1844
1857
  case "between": {
1845
1858
  if (!Array.isArray(value) || value.length !== 2) {
@@ -1852,13 +1865,13 @@ function moneyFieldClause(field, op, value, desc) {
1852
1865
  `where("${field}"): 'between' bounds mix currencies (${lo.currency} vs ${hi.currency})`
1853
1866
  );
1854
1867
  }
1855
- return withMoney(field, op, value, desc, [lo, hi]);
1868
+ return { mode: desc.mode, entries: [lo, hi] };
1856
1869
  }
1857
1870
  case "in": {
1858
1871
  if (!Array.isArray(value)) {
1859
1872
  throw new MoneyUnsupportedError(`where("${field}"): 'in' needs an array of amounts`);
1860
1873
  }
1861
- return withMoney(field, op, value, desc, value.map((v) => parseOperand(field, v, desc)));
1874
+ return { mode: desc.mode, entries: value.map((v) => parseOperand(field, v, desc)) };
1862
1875
  }
1863
1876
  default:
1864
1877
  throw new MoneyUnsupportedError(
@@ -1866,11 +1879,6 @@ function moneyFieldClause(field, op, value, desc) {
1866
1879
  );
1867
1880
  }
1868
1881
  }
1869
- function withMoney(field, op, originalValue, desc, entries) {
1870
- const money2 = { mode: desc.mode, entries };
1871
- const value = desc.mode !== "fixed" ? originalValue : entries.length === 1 && op !== "in" && op !== "between" ? entries[0].scaled : entries.map((e) => e.scaled);
1872
- return { type: "field", field, op, value, money: money2 };
1873
- }
1874
1882
  function readStored(actual, operand) {
1875
1883
  let amount;
1876
1884
  let currency;
@@ -1927,7 +1935,7 @@ function evaluateMoneyClause(actual, op, operand) {
1927
1935
  }
1928
1936
  }
1929
1937
 
1930
- // src/with-shape/money/money-reducer.ts
1938
+ // src/shape/via-money/money-reducer.ts
1931
1939
  function toScaledIntFromAny(v, scale) {
1932
1940
  if (typeof v === "bigint") return v;
1933
1941
  if (typeof v === "number") {
@@ -2112,22 +2120,41 @@ function wrapMoneyReducers(spec, moneyFields) {
2112
2120
  return changed ? out : spec;
2113
2121
  }
2114
2122
 
2115
- // src/with-shape/money/engine.ts
2116
- function linkMoneyEngine() {
2117
- installMoneyEngine({
2118
- quantizeMoneyFields,
2119
- decodeMoneyFields,
2120
- canonicalizeStoredMoney,
2121
- canonicalizeIncomingMoney,
2122
- moneyScaledValue,
2123
- validateMoneyFieldPaths,
2124
- moneyFieldClause,
2125
- evaluateMoneyClause,
2126
- wrapMoneyReducers
2127
- });
2123
+ // src/shape/via-money/binding.ts
2124
+ function moneyBinding(moneyFields) {
2125
+ validateMoneyFieldPaths(moneyFields);
2126
+ return {
2127
+ brand: "money",
2128
+ posture: { encryptedAtRest: "envelope", queryable: "ordered", exportable: true, forgettable: true },
2129
+ covers: (field) => field in moneyFields,
2130
+ ingest: (r) => canonicalizeIncomingMoney(r, moneyFields),
2131
+ canonicalizeStored: (r) => canonicalizeStoredMoney(r, moneyFields),
2132
+ encodeWrite: (r) => quantizeMoneyFields(r, moneyFields),
2133
+ present: (r, ctx) => decodeMoneyFields(r, moneyFields, typeof ctx.locale === "string" ? ctx.locale : void 0),
2134
+ buildClause: (field, op, value) => {
2135
+ const desc = moneyFields[field];
2136
+ if (!desc) return void 0;
2137
+ return moneyFieldClause(field, op, value, desc);
2138
+ },
2139
+ evaluateClause: (actual, op, payload) => evaluateMoneyClause(actual, op, payload),
2140
+ decodeResults: (r) => decodeMoneyFields(r, moneyFields, "raw"),
2141
+ compareForOrder: (field, a, b) => {
2142
+ const desc = moneyFields[field];
2143
+ if (!desc) return void 0;
2144
+ const av = moneyScaledValue(a, desc);
2145
+ const bv = moneyScaledValue(b, desc);
2146
+ if (av === null) return bv === null ? 0 : 1;
2147
+ if (bv === null) return -1;
2148
+ return av < bv ? -1 : av > bv ? 1 : 0;
2149
+ },
2150
+ wrapReducers: (spec) => wrapMoneyReducers(spec, moneyFields)
2151
+ };
2152
+ }
2153
+ function linkMoneyVia() {
2154
+ installViaBinder("money", (cfg) => moneyBinding(cfg));
2128
2155
  }
2129
2156
 
2130
- // src/with-shape/money/descriptor.ts
2157
+ // src/shape/via-money/descriptor.ts
2131
2158
  var MoneyPrecisionError = class extends NoydbError {
2132
2159
  constructor(field, value, scale) {
2133
2160
  super(
@@ -2173,7 +2200,7 @@ function isMultiOptions(o) {
2173
2200
  return "currencies" in o;
2174
2201
  }
2175
2202
  function money(options) {
2176
- linkMoneyEngine();
2203
+ linkMoneyVia();
2177
2204
  const hasFixed = "currency" in options;
2178
2205
  const hasMulti = "currencies" in options;
2179
2206
  if (hasFixed && hasMulti) {
@@ -2197,6 +2224,7 @@ function money(options) {
2197
2224
  const soleCurrency = () => allowList !== "any" && allowList.length === 1 ? allowList[0] : void 0;
2198
2225
  return {
2199
2226
  _noydbMoney: true,
2227
+ _viaBrand: "money",
2200
2228
  mode: "multi",
2201
2229
  options,
2202
2230
  rounding,
@@ -2213,6 +2241,7 @@ function money(options) {
2213
2241
  }
2214
2242
  return {
2215
2243
  _noydbMoney: true,
2244
+ _viaBrand: "money",
2216
2245
  mode: "fixed",
2217
2246
  options,
2218
2247
  rounding,
@@ -2229,7 +2258,7 @@ function isMoneyDescriptor(x) {
2229
2258
  return typeof x === "object" && x !== null && x._noydbMoney === true;
2230
2259
  }
2231
2260
 
2232
- // src/with-shape/money/arith.ts
2261
+ // src/shape/via-money/arith.ts
2233
2262
  function parseAmount(label, amount, scale, rounding) {
2234
2263
  const r = parseToScaledInt(amount, scale, rounding);
2235
2264
  if (!r.ok) {
@@ -2314,7 +2343,7 @@ function allocate(amount, weights, opts = {}) {
2314
2343
  return base.map((p) => formatScaledInt(negative && p !== 0n ? -p : p, scale));
2315
2344
  }
2316
2345
 
2317
- // src/with-shape/money/branded.ts
2346
+ // src/shape/via-money/branded.ts
2318
2347
  function asMoney(value) {
2319
2348
  if (!isMoneyLike(value)) {
2320
2349
  throw new MoneyUnsupportedError(`asMoney: ${JSON.stringify(value)} is not a finite decimal`);
@@ -2335,6 +2364,246 @@ function isMoneyLike(value) {
2335
2364
  if (typeof value !== "string") return false;
2336
2365
  return decimalScaleOf(value) !== null;
2337
2366
  }
2367
+
2368
+ // src/shape/via-computed/descriptor.ts
2369
+ function computed(fn, opts) {
2370
+ return {
2371
+ _viaBrand: "computed",
2372
+ fn,
2373
+ ...opts?.deps !== void 0 ? { deps: opts.deps } : {},
2374
+ mode: opts?.mode ?? "materialized"
2375
+ };
2376
+ }
2377
+ function isComputedDescriptor(x) {
2378
+ return typeof x === "object" && x !== null && x._viaBrand === "computed";
2379
+ }
2380
+
2381
+ // src/shape/via-lookup/binding.ts
2382
+ function hasLabelSource(desc) {
2383
+ return !(desc.backing === "static" && desc.table === void 0);
2384
+ }
2385
+ async function fetchLookupLabel(desc, key, effLocale, fieldFallback, cfg) {
2386
+ if (desc.backing === "collection") {
2387
+ const getRow = cfg.getLookupBacking?.(desc.dimension);
2388
+ const row = getRow ? await getRow(key) : void 0;
2389
+ const labelField = desc.present?.label;
2390
+ if (!row || labelField === void 0) return void 0;
2391
+ const raw = row[labelField];
2392
+ if (desc.present?.by !== void 0) {
2393
+ return raw && typeof raw === "object" ? raw[effLocale] : void 0;
2394
+ }
2395
+ return typeof raw === "string" ? raw : void 0;
2396
+ }
2397
+ return cfg.lookupLabelResolver?.(desc.dimension, key, effLocale, fieldFallback);
2398
+ }
2399
+ async function runLookupPresent(record, ctx, cfg) {
2400
+ const fields = Object.entries(cfg.lookupFields).filter(([, d]) => hasLabelSource(d));
2401
+ if (fields.length === 0) return record;
2402
+ const locale = typeof ctx.locale === "string" ? ctx.locale : void 0;
2403
+ const fallback = ctx.fallback;
2404
+ const layer = ctx.layer;
2405
+ if (locale === "raw") return record;
2406
+ const hasStaticDisplay = fields.some(([, d]) => d.backing === "static" && d.displayLocale !== void 0);
2407
+ if (!locale && !hasStaticDisplay) return record;
2408
+ let result = record;
2409
+ const withLabels = { ...result };
2410
+ for (const [field, desc] of fields) {
2411
+ const policy = desc.onMissing ? resolvePolicy(desc.onMissing, layer) : "null";
2412
+ const fieldFallback = policy === "substitute" ? fallback ?? desc.substitute : fallback;
2413
+ const effLocale = locale ?? (desc.backing === "static" ? desc.displayLocale : void 0);
2414
+ const resolveKey = async (key) => {
2415
+ if (!effLocale) {
2416
+ if (policy === "throw") {
2417
+ throw new LocaleNotSpecifiedError(field, `lookup "${field}": no locale active to resolve key "${key}".`);
2418
+ }
2419
+ return null;
2420
+ }
2421
+ const label = await fetchLookupLabel(desc, key, effLocale, fieldFallback, cfg);
2422
+ if (label === void 0) {
2423
+ if (policy === "throw") {
2424
+ throw new LocaleNotSpecifiedError(field, `lookup "${field}": no label for key "${key}" in locale "${effLocale}".`);
2425
+ }
2426
+ return null;
2427
+ }
2428
+ return label;
2429
+ };
2430
+ if (field.includes("[].")) {
2431
+ const parts = field.split("[].");
2432
+ const arrayKey = parts[0];
2433
+ const leaf = parts[1];
2434
+ if (!leaf || leaf.includes(".")) continue;
2435
+ const arr = withLabels[arrayKey];
2436
+ if (!Array.isArray(arr)) continue;
2437
+ const labelKey = `${leaf}Label`;
2438
+ withLabels[arrayKey] = await Promise.all(
2439
+ arr.map(async (el) => {
2440
+ if (!el || typeof el !== "object" || Array.isArray(el)) return el;
2441
+ const k = el[leaf];
2442
+ if (typeof k !== "string") return el;
2443
+ return { ...el, [labelKey]: await resolveKey(k) };
2444
+ })
2445
+ );
2446
+ continue;
2447
+ }
2448
+ const val = result[field];
2449
+ if (Array.isArray(val)) {
2450
+ withLabels[`${field}Label`] = await Promise.all(
2451
+ val.map(async (k) => ({ key: k, label: typeof k === "string" ? await resolveKey(k) : null }))
2452
+ );
2453
+ } else if (typeof val === "string") {
2454
+ const label = await resolveKey(val);
2455
+ if (label !== null) withLabels[`${field}Label`] = label;
2456
+ }
2457
+ }
2458
+ result = withLabels;
2459
+ return result;
2460
+ }
2461
+ function buildLookupDescribeFragment(cfg) {
2462
+ const lookupFields = {};
2463
+ for (const [field, desc] of Object.entries(cfg.lookupFields)) {
2464
+ lookupFields[field] = {
2465
+ ...desc.dimension !== "" ? { dimension: desc.dimension } : {},
2466
+ backing: desc.backing,
2467
+ vocabulary: desc.vocabulary,
2468
+ key: desc.key,
2469
+ onDelete: desc.onDelete,
2470
+ ...desc.altKeys !== void 0 ? { altKeys: desc.altKeys } : {},
2471
+ ...desc.present !== void 0 ? { present: desc.present } : {},
2472
+ ...desc.sortBy !== void 0 ? { sortBy: desc.sortBy } : {},
2473
+ ...desc.keys !== void 0 ? { keys: desc.keys } : {}
2474
+ };
2475
+ }
2476
+ return { lookupFields };
2477
+ }
2478
+ function getAltIndexOrThrow(field, desc, cfg) {
2479
+ try {
2480
+ return cfg.getAltIndex?.(desc);
2481
+ } catch (err) {
2482
+ if (err instanceof Error && err.message.includes("lazy-mode")) {
2483
+ throw new ValidationError(
2484
+ `lookup: altKeys on "${field}" require the backing collection "${desc.dimension}" to be prefetch-enabled (lazy mode unsupported); open it without {prefetch:false} or drop altKeys.`
2485
+ );
2486
+ }
2487
+ throw err;
2488
+ }
2489
+ }
2490
+ function runLookupIngest(record, cfg) {
2491
+ const withAltKeys = Object.entries(cfg.lookupFields).filter(([, d]) => (d.altKeys?.length ?? 0) > 0);
2492
+ if (withAltKeys.length === 0) return record;
2493
+ let result = record;
2494
+ for (const [field, desc] of withAltKeys) {
2495
+ const backing = getAltIndexOrThrow(field, desc, cfg);
2496
+ if (!backing || backing.altIndex.size === 0) continue;
2497
+ const values = getAtPath(record, field);
2498
+ if (values.length !== 1) continue;
2499
+ const value = values[0];
2500
+ if (typeof value !== "string") continue;
2501
+ const canonical = backing.altIndex.get(value);
2502
+ if (canonical === void 0 || canonical === value) continue;
2503
+ if (result === record) result = { ...record };
2504
+ setAtPathInPlace(result, field, canonical);
2505
+ }
2506
+ return result;
2507
+ }
2508
+ async function runLookupEnforceWrite(record, cfg) {
2509
+ for (const [field, desc] of Object.entries(cfg.lookupFields)) {
2510
+ if (desc.vocabulary !== "closed") continue;
2511
+ for (const value of getAtPath(record, field)) {
2512
+ if (typeof value !== "string") continue;
2513
+ const known = cfg.membership ? await cfg.membership(field, value) : true;
2514
+ if (!known) throw new UnknownLookupKeyError(desc.dimension, field, value);
2515
+ }
2516
+ }
2517
+ }
2518
+ function compareLookupOrder(field, a, b, cfg) {
2519
+ if (typeof a !== "string" || typeof b !== "string") return void 0;
2520
+ const desc = cfg.lookupFields[field];
2521
+ if (!desc || desc.sortBy === void 0) return void 0;
2522
+ const rows = desc.backing === "static" ? desc.table ? new Map(Object.entries(desc.table)) : void 0 : cfg.snapshotFor?.(desc);
2523
+ if (!rows) return void 0;
2524
+ return buildLookupSnapshot(desc.dimension, rows, desc).compareKeys(a, b, desc.displayLocale ?? "");
2525
+ }
2526
+ function resolveLookupOrderLabel(field, key, locale, cfg) {
2527
+ const desc = cfg.lookupFields[field];
2528
+ if (!desc) return void 0;
2529
+ const rows = desc.backing === "static" ? desc.table ? new Map(Object.entries(desc.table)) : void 0 : cfg.snapshotFor?.(desc);
2530
+ if (!rows) return void 0;
2531
+ return buildLookupSnapshot(desc.dimension, rows, desc).label(key, locale ?? desc.displayLocale ?? "");
2532
+ }
2533
+ function lookupBinding(cfg) {
2534
+ return {
2535
+ brand: "lookup",
2536
+ posture: { encryptedAtRest: "envelope", queryable: "full", exportable: true, forgettable: false },
2537
+ reservedPrefixes: ["_dict_", "_lookup_"],
2538
+ covers: (field) => field in cfg.lookupFields,
2539
+ ingest: (record) => runLookupIngest(record, cfg),
2540
+ enforceWrite: (record) => runLookupEnforceWrite(record, cfg),
2541
+ present: async (record, ctx) => runLookupPresent(record, ctx, cfg),
2542
+ compareForOrder: (field, a, b) => compareLookupOrder(field, a, b, cfg),
2543
+ resolveOrderLabel: (field, key, locale) => resolveLookupOrderLabel(field, key, locale, cfg),
2544
+ describeFragment: () => buildLookupDescribeFragment(cfg)
2545
+ };
2546
+ }
2547
+ function linkLookupVia() {
2548
+ installViaBinder("lookup", (c) => lookupBinding(c));
2549
+ }
2550
+
2551
+ // src/shape/via-lookup/descriptor.ts
2552
+ function warnIfSortByNeedsDisplayLocale(dimension, opts) {
2553
+ if (opts?.sortBy !== void 0 && opts.present?.by !== void 0 && opts.displayLocale === void 0) {
2554
+ console.warn(
2555
+ `[noy-db] lookup("${dimension}"): sortBy "${opts.sortBy}" is locale-keyed (present.by is set) but no displayLocale is declared \u2014 a locale-less orderBy() will silently sort by the raw stored key instead of the resolved label. Declare displayLocale, or sort via orderBy(field, dir, { by: 'label' }), which resolves at the query's own per-call locale.`
2556
+ );
2557
+ }
2558
+ }
2559
+ function lookup(dimension, opts) {
2560
+ linkLookupVia();
2561
+ warnIfSortByNeedsDisplayLocale(dimension, opts);
2562
+ return {
2563
+ _viaBrand: "lookup",
2564
+ dimension,
2565
+ key: opts?.key ?? "id",
2566
+ vocabulary: opts?.vocabulary ?? "open",
2567
+ backing: opts?.backing ?? "collection",
2568
+ onDelete: opts?.onDelete ?? "restrict",
2569
+ ...opts?.altKeys !== void 0 ? { altKeys: opts.altKeys } : {},
2570
+ ...opts?.present !== void 0 ? { present: opts.present } : {},
2571
+ ...opts?.sortBy !== void 0 ? { sortBy: opts.sortBy } : {},
2572
+ ...opts?.keys !== void 0 ? { keys: opts.keys } : {},
2573
+ ...opts?.table !== void 0 ? { table: opts.table } : {},
2574
+ ...opts?.displayLocale !== void 0 ? { displayLocale: opts.displayLocale } : {},
2575
+ ...opts?.onMissing !== void 0 ? { onMissing: opts.onMissing } : {},
2576
+ ...opts?.substitute !== void 0 ? { substitute: opts.substitute } : {},
2577
+ ...opts?.labels !== void 0 ? { labels: opts.labels } : {}
2578
+ };
2579
+ }
2580
+ function enumOf(keys) {
2581
+ linkLookupVia();
2582
+ return {
2583
+ _viaBrand: "lookup",
2584
+ dimension: "",
2585
+ key: "id",
2586
+ vocabulary: "closed",
2587
+ backing: "static",
2588
+ onDelete: "restrict",
2589
+ keys
2590
+ };
2591
+ }
2592
+ function dict(dimension, opts) {
2593
+ linkLookupVia();
2594
+ return {
2595
+ _viaBrand: "lookup",
2596
+ dimension,
2597
+ key: "id",
2598
+ vocabulary: opts?.vocabulary ?? "open",
2599
+ backing: "reserved",
2600
+ onDelete: opts?.onDelete ?? "restrict",
2601
+ ...opts?.keys !== void 0 ? { keys: opts.keys } : {},
2602
+ ...opts?.present !== void 0 ? { present: opts.present } : {},
2603
+ ...opts?.onMissing !== void 0 ? { onMissing: opts.onMissing } : {},
2604
+ ...opts?.substitute !== void 0 ? { substitute: opts.substitute } : {}
2605
+ };
2606
+ }
2338
2607
  export {
2339
2608
  Aggregation,
2340
2609
  AlreadyElevatedError,
@@ -2394,7 +2663,7 @@ export {
2394
2663
  DerivationOutputUnknownError,
2395
2664
  DictKeyInUseError,
2396
2665
  DictKeyMissingError,
2397
- DictionaryHandle,
2666
+ LookupHandle as DictionaryHandle,
2398
2667
  DirectoryDisabledError,
2399
2668
  ELEVATION_AUDIT_COLLECTION,
2400
2669
  ElevatedHandle,
@@ -2404,6 +2673,7 @@ export {
2404
2673
  EnclaveNotSupportedError,
2405
2674
  ExportCapabilityError,
2406
2675
  FieldFrozenError,
2676
+ FieldNotQueryableError,
2407
2677
  FilenameSanitizationError,
2408
2678
  ForgetStrategyNotConfiguredError,
2409
2679
  GROUPBY_MAX_CARDINALITY,
@@ -2542,6 +2812,7 @@ export {
2542
2812
  USER_ENVELOPE_MAX_BYTES,
2543
2813
  UniqueConstraintError,
2544
2814
  UnknownDictCodeError,
2815
+ UnknownLookupKeyError,
2545
2816
  UnknownShardError,
2546
2817
  UnsupportedIndexOptionError,
2547
2818
  UserApi,
@@ -2579,6 +2850,7 @@ export {
2579
2850
  clearDevUnlock,
2580
2851
  compileSequenceFormat,
2581
2852
  computePatch,
2853
+ computed,
2582
2854
  coordinatedCutover,
2583
2855
  count,
2584
2856
  createBundleStore,
@@ -2606,6 +2878,7 @@ export {
2606
2878
  detectMagic,
2607
2879
  detectMimeType,
2608
2880
  diagramAuthConfig,
2881
+ dict,
2609
2882
  dictCollectionName,
2610
2883
  dictKey,
2611
2884
  diff,
@@ -2616,6 +2889,8 @@ export {
2616
2889
  encryptDeterministic,
2617
2890
  enforceScript,
2618
2891
  enrollAuthenticator,
2892
+ enumOf as enum,
2893
+ enumOf,
2619
2894
  envelopePayloadHash,
2620
2895
  estimateEntropy,
2621
2896
  estimateRecordBytes,
@@ -2643,6 +2918,7 @@ export {
2643
2918
  inferScripts,
2644
2919
  isClassifiedFieldSpec,
2645
2920
  isClassifiedGroup,
2921
+ isComputedDescriptor,
2646
2922
  isDeedVault,
2647
2923
  isDevUnlockActive,
2648
2924
  isDictCollectionName,
@@ -2659,6 +2935,7 @@ export {
2659
2935
  isSessionAlive,
2660
2936
  isStaticDictDescriptor,
2661
2937
  isULID,
2938
+ isViaFieldSpec,
2662
2939
  isZodSchema,
2663
2940
  issueDelegation,
2664
2941
  recoverPassphrase as keyringRecoverPassphrase,
@@ -2681,6 +2958,7 @@ export {
2681
2958
  loadUserEnvelope,
2682
2959
  loadVaultPolicy,
2683
2960
  lockSchema,
2961
+ lookup,
2684
2962
  luhnCheck,
2685
2963
  magicLinkGrantRecordId,
2686
2964
  max,
@@ -2765,6 +3043,7 @@ export {
2765
3043
  validateSchemaInput,
2766
3044
  validateSchemaOutput,
2767
3045
  validateSessionPolicy,
3046
+ via,
2768
3047
  visibilityRecordId,
2769
3048
  withArchive,
2770
3049
  withCache,