@noy-db/hub 0.3.0-pre.8 → 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 (400) 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-WRGNTGJF.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-DzWtVw7w.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-X6VNIRHS.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-2PJB6H3H.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-723XB5NX.js → chunk-42KVY3OC.js} +4 -4
  34. package/dist/{chunk-56JB2BGI.js → chunk-4C4WBS4V.js} +1739 -920
  35. package/dist/chunk-4C4WBS4V.js.map +1 -0
  36. package/dist/{chunk-62APEMF3.js → chunk-4G3IT7J7.js} +7 -7
  37. package/dist/{chunk-W3JABOVB.js → chunk-4RQ62VSR.js} +2 -2
  38. package/dist/{chunk-WPNP3NF5.js → chunk-4ZSGSRBI.js} +8 -8
  39. package/dist/{chunk-C4NOLA5X.js → chunk-5GAX2QOH.js} +2 -2
  40. package/dist/{chunk-5HRJQSKN.js → chunk-5SAZMBW7.js} +7 -7
  41. package/dist/{chunk-II6DLDZM.js → chunk-5TZZUL5X.js} +2 -2
  42. package/dist/{chunk-TUL5YQWF.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-GDOOG5YQ.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-VVLOWY74.js → chunk-A2APWS32.js} +6 -6
  53. package/dist/chunk-A2APWS32.js.map +1 -0
  54. package/dist/{chunk-TIAYXOEI.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-44DV37ZV.js → chunk-AYGZMQP5.js} +3 -3
  59. package/dist/chunk-AYGZMQP5.js.map +1 -0
  60. package/dist/{chunk-P2PEPSPK.js → chunk-CJEMA2Z6.js} +2 -2
  61. package/dist/{chunk-L6Q5NA22.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-J5YUA6JB.js → chunk-CWCCYH34.js} +2 -2
  65. package/dist/{chunk-NTPWQH4S.js → chunk-DEYAO3N6.js} +10 -10
  66. package/dist/{chunk-M3OYTM5Z.js → chunk-DFIBOSOQ.js} +8 -8
  67. package/dist/{chunk-FZK3JJJK.js → chunk-E5AHO65E.js} +7 -7
  68. package/dist/{chunk-F3EKFGUS.js → chunk-FC3XK5JT.js} +8 -8
  69. package/dist/{chunk-XBPUVQDO.js → chunk-FGOGS7CE.js} +10 -12
  70. package/dist/chunk-FGOGS7CE.js.map +1 -0
  71. package/dist/{chunk-3KBK5LU4.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-PMMV5SQC.js → chunk-IIP5WFVT.js} +138 -92
  80. package/dist/chunk-IIP5WFVT.js.map +1 -0
  81. package/dist/{chunk-37JZR7CY.js → chunk-IUKGIB2Q.js} +4 -4
  82. package/dist/{chunk-OWGAXPRE.js → chunk-IWTYFS3D.js} +2 -2
  83. package/dist/{chunk-FCOZ7DEC.js → chunk-JC5R7P44.js} +3 -3
  84. package/dist/{chunk-IARAK3PK.js → chunk-KBBWY46Y.js} +2 -2
  85. package/dist/{chunk-RNYDHIQL.js → chunk-KBF5GSGX.js} +3 -3
  86. package/dist/{chunk-6P5AJ2ZS.js → chunk-KCG3BHFG.js} +2 -23
  87. package/dist/chunk-KCG3BHFG.js.map +1 -0
  88. package/dist/{chunk-GLVXQU3E.js → chunk-KNXN47MO.js} +3 -3
  89. package/dist/{chunk-VK6OC22R.js → chunk-KWLD2D75.js} +4 -3
  90. package/dist/chunk-KWLD2D75.js.map +1 -0
  91. package/dist/{chunk-J7OH6R4K.js → chunk-KXKLKJW4.js} +6 -6
  92. package/dist/{chunk-PAJCRV7O.js → chunk-KYC4LIEU.js} +2 -2
  93. package/dist/{chunk-R4IVPJHN.js → chunk-LEOXZY36.js} +8 -8
  94. package/dist/{chunk-25G7PUTA.js → chunk-M5I354EE.js} +9 -9
  95. package/dist/{chunk-26FSVNBL.js → chunk-MK2BSS44.js} +2 -2
  96. package/dist/{chunk-UMH35AQV.js → chunk-MSVY7ULZ.js} +3 -3
  97. package/dist/{chunk-5YBUFCFF.js → chunk-NNWK3PSY.js} +9 -9
  98. package/dist/{chunk-X5QZAJDB.js → chunk-NSZ6J5DF.js} +7 -7
  99. package/dist/{chunk-I6URUNTD.js → chunk-NUEFXLZU.js} +7 -7
  100. package/dist/{chunk-PPPZIBKY.js → chunk-NYVQCZ54.js} +5 -5
  101. package/dist/chunk-NYVQCZ54.js.map +1 -0
  102. package/dist/{chunk-DCVVCJVB.js → chunk-OQAODTYR.js} +2 -2
  103. package/dist/{chunk-QYMMMKOO.js → chunk-OV4CMJGR.js} +5 -5
  104. package/dist/{chunk-V76PHWLE.js → chunk-PEDZFFKW.js} +2 -2
  105. package/dist/chunk-PF3FQCCF.js +164 -0
  106. package/dist/chunk-PF3FQCCF.js.map +1 -0
  107. package/dist/{chunk-BJ2XF2RC.js → chunk-Q2KVKTC2.js} +5 -5
  108. package/dist/{chunk-RUIMKQTA.js → chunk-QJR3W3MF.js} +1 -1
  109. package/dist/chunk-QJR3W3MF.js.map +1 -0
  110. package/dist/{chunk-QABECTNN.js → chunk-QTXQ6RNZ.js} +3 -3
  111. package/dist/{chunk-P6TZ3IVN.js → chunk-RJ5522XX.js} +12 -12
  112. package/dist/{chunk-BM6E4MUT.js → chunk-RMUXPHIH.js} +56 -7
  113. package/dist/chunk-RMUXPHIH.js.map +1 -0
  114. package/dist/{chunk-CHK5VVMI.js → chunk-S6AQXDN4.js} +2 -2
  115. package/dist/{chunk-4VDFUBTS.js → chunk-SSFC3IYA.js} +9 -9
  116. package/dist/chunk-SSFC3IYA.js.map +1 -0
  117. package/dist/{chunk-MOQ5M46U.js → chunk-SZCHEDML.js} +2 -2
  118. package/dist/{chunk-UB3XHGFG.js → chunk-TDPEJINP.js} +14 -7
  119. package/dist/chunk-TDPEJINP.js.map +1 -0
  120. package/dist/{chunk-REWTMYSF.js → chunk-UNJU345Q.js} +1 -1
  121. package/dist/chunk-UNJU345Q.js.map +1 -0
  122. package/dist/chunk-V7RNIND6.js +265 -0
  123. package/dist/chunk-V7RNIND6.js.map +1 -0
  124. package/dist/{chunk-FWART3VA.js → chunk-VJ3NQK4K.js} +5 -5
  125. package/dist/{chunk-3YKBGS3I.js → chunk-WNA6T3MA.js} +8 -8
  126. package/dist/{chunk-7CZ6YXMO.js → chunk-WVCQ75OK.js} +2 -2
  127. package/dist/{chunk-BTFTHF6Q.js → chunk-X66MXMR5.js} +2 -2
  128. package/dist/{chunk-7TAV3BFQ.js → chunk-XHD3L3JO.js} +199 -35
  129. package/dist/chunk-XHD3L3JO.js.map +1 -0
  130. package/dist/{chunk-6PALJTC2.js → chunk-XJK2WIYN.js} +3 -3
  131. package/dist/{chunk-5UOPIPZC.js → chunk-XQ7UYPVN.js} +3 -3
  132. package/dist/{chunk-HU55NPHZ.js → chunk-Y2OCKFZ3.js} +2 -2
  133. package/dist/{chunk-TCGVRKOS.js → chunk-YBFOBRTO.js} +3 -3
  134. package/dist/{chunk-I6JJ6VJS.js → chunk-YLN33ADH.js} +2 -2
  135. package/dist/{chunk-PVC2FBCQ.js → chunk-Z5YFRMG5.js} +2 -2
  136. package/dist/{chunk-EU7HDMT3.js → chunk-ZWQFOXBR.js} +2 -2
  137. package/dist/classified/index.d.ts +4 -5
  138. package/dist/classified/index.js +5 -3
  139. package/dist/{config-drift-RFEVGBKR.js → classified-marker-IO5EBW7Q.js} +4 -4
  140. package/dist/classified-marker-IO5EBW7Q.js.map +1 -0
  141. package/dist/collection-facade-3RAXG2OU.js +38 -0
  142. package/dist/{computed-6FOFXQPE.js → computed-R62HGCO4.js} +3 -3
  143. package/dist/consent/index.d.ts +3 -4
  144. package/dist/consent/index.js +9 -9
  145. package/dist/crdt/index.d.ts +3 -4
  146. package/dist/{dead-filter-RHMNYOXP.js → dead-filter-VNA4M3GP.js} +2 -2
  147. package/dist/delegation-ZKII5UBI.js +25 -0
  148. package/dist/derivations/index.d.ts +4 -5
  149. package/dist/derivations/index.js +12 -11
  150. package/dist/derive-5D2C3WG4.js +21 -0
  151. package/dist/describe/index.d.ts +4 -1
  152. package/dist/{dev-unlock-wgQ7Ci5I.d.ts → dev-unlock-DDTafVO6.d.ts} +1 -1
  153. package/dist/{enclave-KGEUW2GL.js → enclave-EUBEJGPG.js} +11 -9
  154. package/dist/executor-IL7SRNUZ.js +23 -0
  155. package/dist/executor-OUA2Y6YC.js +9 -0
  156. package/dist/executor-WAEI6PDV.js +9 -0
  157. package/dist/export-accessible-O55RKAGC.js +23 -0
  158. package/dist/extract-partition-VBGCBA6Q.js +36 -0
  159. package/dist/{fanout-sidecar-NBDKKCHT.js → fanout-sidecar-CI5BCMQM.js} +11 -11
  160. package/dist/find-FISGUWSK.js +11 -0
  161. package/dist/forget/index.d.ts +2 -2
  162. package/dist/forget/index.js +9 -9
  163. package/dist/guards/index.d.ts +4 -5
  164. package/dist/guards/index.js +4 -4
  165. package/dist/{hash-CwHnoKyW.d.ts → hash-DBkZfIBW.d.ts} +1 -1
  166. package/dist/history/index.d.ts +4 -5
  167. package/dist/history/index.js +11 -11
  168. package/dist/i18n/index.d.ts +24 -5
  169. package/dist/i18n/index.js +45 -34
  170. package/dist/i18n/index.js.map +1 -1
  171. package/dist/in/index.d.ts +2 -3
  172. package/dist/{index-CTvUp94-.d.ts → index-CyclmyDr.d.ts} +2 -3
  173. package/dist/{index-Dn5GzPg_.d.ts → index-DzhNI2vE.d.ts} +7114 -5992
  174. package/dist/index.d.ts +51 -17
  175. package/dist/index.js +403 -125
  176. package/dist/index.js.map +1 -1
  177. package/dist/indexing/index.d.ts +3 -4
  178. package/dist/indexing/index.js +4 -4
  179. package/dist/issue-EQAWIYFQ.js +19 -0
  180. package/dist/kernel/index.d.ts +3 -4
  181. package/dist/kernel/index.js +13 -12
  182. package/dist/lazy/index.d.ts +3 -4
  183. package/dist/{ledger-3LR3YO2W.js → ledger-AJA2SR3C.js} +11 -11
  184. package/dist/liberate-SEGR4JLY.js +24 -0
  185. package/dist/{link-set-NSUIX6BR.js → link-set-YBAC2DQT.js} +11 -11
  186. package/dist/materialized-views/index.d.ts +14 -5
  187. package/dist/materialized-views/index.js +17 -15
  188. package/dist/{mime-magic-CYbFNQ4h.d.ts → mime-magic-CbV1quyp.d.ts} +1 -1
  189. package/dist/noydb-AMEOU456.js +65 -0
  190. package/dist/on/index.d.ts +2 -3
  191. package/dist/on/index.js +9 -9
  192. package/dist/overlay-views/index.d.ts +4 -5
  193. package/dist/overlay-views/index.js +4 -4
  194. package/dist/periods/index.d.ts +3 -4
  195. package/dist/periods/index.js +12 -12
  196. package/dist/pod/index.d.ts +3 -4
  197. package/dist/pod/index.js +11 -11
  198. package/dist/{policy-Y7HL2KGA.js → policy-SDGRWVIL.js} +5 -5
  199. package/dist/portability/index.d.ts +3 -4
  200. package/dist/portability/index.js +8 -8
  201. package/dist/{post-register-KOFRTCDD.js → post-register-MROIUA5O.js} +6 -6
  202. package/dist/{public-envelope-NC7SPNMV.js → public-envelope-J5PLQOW2.js} +4 -4
  203. package/dist/query/index.d.ts +2 -3
  204. package/dist/query/index.js +9 -6
  205. package/dist/{read-only-facade-5ADRJVTM.js → read-only-facade-UCYNRE56.js} +2 -2
  206. package/dist/register-OVJKW7BS.js +23 -0
  207. package/dist/registry-5RJSK5AJ.js +9 -0
  208. package/dist/registry-DQRNTWRL.js +18 -0
  209. package/dist/registry-LTGLERS7.js +19 -0
  210. package/dist/request-withdrawal-27O77D2V.js +31 -0
  211. package/dist/{reveal-5Y777N5Q.js → reveal-LT3I2K4P.js} +6 -6
  212. package/dist/revoke-4N45G7D2.js +24 -0
  213. package/dist/satellites/index.d.ts +2 -3
  214. package/dist/satellites/index.js +1 -1
  215. package/dist/sealed-record/index.d.ts +3 -4
  216. package/dist/sealed-record/index.js +12 -12
  217. package/dist/session/index.d.ts +4 -5
  218. package/dist/session/index.js +9 -9
  219. package/dist/shadow/index.d.ts +3 -4
  220. package/dist/shadow/index.js +2 -2
  221. package/dist/signer-XJCOV7JD.js +25 -0
  222. package/dist/snapshots/index.d.ts +3 -4
  223. package/dist/snapshots/index.js +10 -10
  224. package/dist/{stale-77LP2EEF.js → stale-IYYXEH3U.js} +2 -2
  225. package/dist/storage-Y44CAPE6.js +23 -0
  226. package/dist/{store-coordination-provider-NJDDZ264.js → store-coordination-provider-WKGAE2WI.js} +3 -3
  227. package/dist/{subject-index-O75wKshW.d.ts → subject-index-CyOgGMJL.d.ts} +18 -0
  228. package/dist/sync/index.d.ts +2 -3
  229. package/dist/sync/index.js +9 -9
  230. package/dist/team/index.d.ts +3 -4
  231. package/dist/team/index.js +15 -15
  232. package/dist/tiers/index.d.ts +2 -3
  233. package/dist/tiers/index.js +10 -10
  234. package/dist/to/index.d.ts +2 -3
  235. package/dist/to/index.js +1 -1
  236. package/dist/{transition-guard-D5RLJv8S.d.ts → transition-guard-BOUkzQU4.d.ts} +1 -1
  237. package/dist/tx/index.d.ts +3 -4
  238. package/dist/tx/index.js +3 -3
  239. package/dist/ui/index.d.ts +4 -1
  240. package/dist/util/index.js +1 -1
  241. package/dist/{validators-C3lrVF-c.d.ts → validators-B3SalxlJ.d.ts} +1 -1
  242. package/dist/{vault-diff-_LSIcOMv.d.ts → vault-diff-Dt9NkLzw.d.ts} +1 -1
  243. package/dist/{verify-CAYGXYNO.js → verify-GH6CWVSW.js} +5 -5
  244. package/dist/{walk-SMAE4IEI.js → walk-76UCFXYV.js} +11 -11
  245. package/dist/with/index.d.ts +3 -4
  246. package/dist/with/index.js +11 -11
  247. package/dist/{with-materialized-view-Xv1-9Bh0.d.ts → with-materialized-view-BP33v1Z6.d.ts} +1 -1
  248. package/dist/{with-overlayed-view-CuWhq_-C.d.ts → with-overlayed-view-DntFpOKN.d.ts} +1 -1
  249. package/dist/{with-rollup-K_iwal4b.d.ts → with-rollup-ClCHO6-4.d.ts} +1 -1
  250. package/dist/withdraw-accessible-6J2UH3IN.js +28 -0
  251. package/package.json +3 -3
  252. package/dist/api-JDWL67WL.js +0 -20
  253. package/dist/chunk-44DV37ZV.js.map +0 -1
  254. package/dist/chunk-47C4CI7R.js +0 -108
  255. package/dist/chunk-47C4CI7R.js.map +0 -1
  256. package/dist/chunk-4VDFUBTS.js.map +0 -1
  257. package/dist/chunk-56JB2BGI.js.map +0 -1
  258. package/dist/chunk-5GQE5IDB.js.map +0 -1
  259. package/dist/chunk-6P5AJ2ZS.js.map +0 -1
  260. package/dist/chunk-6Z435B6N.js.map +0 -1
  261. package/dist/chunk-7KTL4RHZ.js +0 -120
  262. package/dist/chunk-7KTL4RHZ.js.map +0 -1
  263. package/dist/chunk-7TAV3BFQ.js.map +0 -1
  264. package/dist/chunk-BASCPHNM.js.map +0 -1
  265. package/dist/chunk-BM6E4MUT.js.map +0 -1
  266. package/dist/chunk-OJ64XMPJ.js.map +0 -1
  267. package/dist/chunk-PMMV5SQC.js.map +0 -1
  268. package/dist/chunk-PPPZIBKY.js.map +0 -1
  269. package/dist/chunk-REWTMYSF.js.map +0 -1
  270. package/dist/chunk-RUIMKQTA.js.map +0 -1
  271. package/dist/chunk-UB3XHGFG.js.map +0 -1
  272. package/dist/chunk-VK6OC22R.js.map +0 -1
  273. package/dist/chunk-VVLOWY74.js.map +0 -1
  274. package/dist/chunk-X6VNIRHS.js.map +0 -1
  275. package/dist/chunk-XBPUVQDO.js.map +0 -1
  276. package/dist/chunk-YTCCC6NG.js.map +0 -1
  277. package/dist/collection-facade-EJVIN2BY.js +0 -39
  278. package/dist/config-drift-RFEVGBKR.js.map +0 -1
  279. package/dist/delegation-IHXOASHV.js +0 -25
  280. package/dist/derive-CD3ZVIXK.js +0 -21
  281. package/dist/describe-C6iHNlqJ.d.ts +0 -162
  282. package/dist/executor-EUPYHCLU.js +0 -9
  283. package/dist/executor-KZ4B3PRT.js +0 -9
  284. package/dist/executor-MHUM2VZK.js +0 -21
  285. package/dist/export-accessible-Z3NSZZHN.js +0 -23
  286. package/dist/extract-partition-VSKT35JG.js +0 -36
  287. package/dist/find-OH4BEULF.js +0 -11
  288. package/dist/issue-AEOL6RXA.js +0 -19
  289. package/dist/liberate-XSEPRWEA.js +0 -24
  290. package/dist/noydb-POVTIVQ6.js +0 -62
  291. package/dist/register-3D6R2MKN.js +0 -23
  292. package/dist/registry-AI4E46PD.js +0 -19
  293. package/dist/registry-HSNQ4NBP.js +0 -9
  294. package/dist/registry-WIX6QCV5.js +0 -17
  295. package/dist/request-withdrawal-GU4XS2R5.js +0 -31
  296. package/dist/revoke-ZFETCLYV.js +0 -24
  297. package/dist/signer-GAIMQQ2J.js +0 -25
  298. package/dist/storage-KEXIXLGM.js +0 -23
  299. package/dist/withdraw-accessible-Q7BULAN5.js +0 -28
  300. /package/dist/{api-JDWL67WL.js.map → api-HV4PDUWF.js.map} +0 -0
  301. /package/dist/{backup-WRGNTGJF.js.map → backup-ODXO7OGA.js.map} +0 -0
  302. /package/dist/{chunk-XW5LZYV4.js.map → chunk-2HVUKRNE.js.map} +0 -0
  303. /package/dist/{chunk-VFQOE76I.js.map → chunk-2KOSJTMU.js.map} +0 -0
  304. /package/dist/{chunk-2PJB6H3H.js.map → chunk-2UQ4RMHV.js.map} +0 -0
  305. /package/dist/{chunk-VIWOGJ2O.js.map → chunk-34RRRIC3.js.map} +0 -0
  306. /package/dist/{chunk-LFGJG4XZ.js.map → chunk-3I4KYWNP.js.map} +0 -0
  307. /package/dist/{chunk-723XB5NX.js.map → chunk-42KVY3OC.js.map} +0 -0
  308. /package/dist/{chunk-62APEMF3.js.map → chunk-4G3IT7J7.js.map} +0 -0
  309. /package/dist/{chunk-W3JABOVB.js.map → chunk-4RQ62VSR.js.map} +0 -0
  310. /package/dist/{chunk-WPNP3NF5.js.map → chunk-4ZSGSRBI.js.map} +0 -0
  311. /package/dist/{chunk-C4NOLA5X.js.map → chunk-5GAX2QOH.js.map} +0 -0
  312. /package/dist/{chunk-5HRJQSKN.js.map → chunk-5SAZMBW7.js.map} +0 -0
  313. /package/dist/{chunk-II6DLDZM.js.map → chunk-5TZZUL5X.js.map} +0 -0
  314. /package/dist/{chunk-TUL5YQWF.js.map → chunk-6CU3FN74.js.map} +0 -0
  315. /package/dist/{chunk-UWZ7O4NR.js.map → chunk-6MWUANRF.js.map} +0 -0
  316. /package/dist/{chunk-U7LV2DUN.js.map → chunk-6ULCYCMU.js.map} +0 -0
  317. /package/dist/{chunk-GDOOG5YQ.js.map → chunk-7IZQTCTR.js.map} +0 -0
  318. /package/dist/{chunk-TIAYXOEI.js.map → chunk-A4MAD6PO.js.map} +0 -0
  319. /package/dist/{chunk-5HZULLHE.js.map → chunk-AUR7MRHA.js.map} +0 -0
  320. /package/dist/{chunk-P2PEPSPK.js.map → chunk-CJEMA2Z6.js.map} +0 -0
  321. /package/dist/{chunk-L6Q5NA22.js.map → chunk-CTSFKDGA.js.map} +0 -0
  322. /package/dist/{chunk-J5YUA6JB.js.map → chunk-CWCCYH34.js.map} +0 -0
  323. /package/dist/{chunk-NTPWQH4S.js.map → chunk-DEYAO3N6.js.map} +0 -0
  324. /package/dist/{chunk-M3OYTM5Z.js.map → chunk-DFIBOSOQ.js.map} +0 -0
  325. /package/dist/{chunk-FZK3JJJK.js.map → chunk-E5AHO65E.js.map} +0 -0
  326. /package/dist/{chunk-F3EKFGUS.js.map → chunk-FC3XK5JT.js.map} +0 -0
  327. /package/dist/{chunk-3KBK5LU4.js.map → chunk-GX2BYNCT.js.map} +0 -0
  328. /package/dist/{chunk-55LSDABW.js.map → chunk-HBTT7YQX.js.map} +0 -0
  329. /package/dist/{chunk-PYIUDUGS.js.map → chunk-HOCEGVGQ.js.map} +0 -0
  330. /package/dist/{chunk-5JQMX2EH.js.map → chunk-ICV32FPK.js.map} +0 -0
  331. /package/dist/{chunk-37JZR7CY.js.map → chunk-IUKGIB2Q.js.map} +0 -0
  332. /package/dist/{chunk-OWGAXPRE.js.map → chunk-IWTYFS3D.js.map} +0 -0
  333. /package/dist/{chunk-FCOZ7DEC.js.map → chunk-JC5R7P44.js.map} +0 -0
  334. /package/dist/{chunk-IARAK3PK.js.map → chunk-KBBWY46Y.js.map} +0 -0
  335. /package/dist/{chunk-RNYDHIQL.js.map → chunk-KBF5GSGX.js.map} +0 -0
  336. /package/dist/{chunk-GLVXQU3E.js.map → chunk-KNXN47MO.js.map} +0 -0
  337. /package/dist/{chunk-J7OH6R4K.js.map → chunk-KXKLKJW4.js.map} +0 -0
  338. /package/dist/{chunk-PAJCRV7O.js.map → chunk-KYC4LIEU.js.map} +0 -0
  339. /package/dist/{chunk-R4IVPJHN.js.map → chunk-LEOXZY36.js.map} +0 -0
  340. /package/dist/{chunk-25G7PUTA.js.map → chunk-M5I354EE.js.map} +0 -0
  341. /package/dist/{chunk-26FSVNBL.js.map → chunk-MK2BSS44.js.map} +0 -0
  342. /package/dist/{chunk-UMH35AQV.js.map → chunk-MSVY7ULZ.js.map} +0 -0
  343. /package/dist/{chunk-5YBUFCFF.js.map → chunk-NNWK3PSY.js.map} +0 -0
  344. /package/dist/{chunk-X5QZAJDB.js.map → chunk-NSZ6J5DF.js.map} +0 -0
  345. /package/dist/{chunk-I6URUNTD.js.map → chunk-NUEFXLZU.js.map} +0 -0
  346. /package/dist/{chunk-DCVVCJVB.js.map → chunk-OQAODTYR.js.map} +0 -0
  347. /package/dist/{chunk-QYMMMKOO.js.map → chunk-OV4CMJGR.js.map} +0 -0
  348. /package/dist/{chunk-V76PHWLE.js.map → chunk-PEDZFFKW.js.map} +0 -0
  349. /package/dist/{chunk-BJ2XF2RC.js.map → chunk-Q2KVKTC2.js.map} +0 -0
  350. /package/dist/{chunk-QABECTNN.js.map → chunk-QTXQ6RNZ.js.map} +0 -0
  351. /package/dist/{chunk-P6TZ3IVN.js.map → chunk-RJ5522XX.js.map} +0 -0
  352. /package/dist/{chunk-CHK5VVMI.js.map → chunk-S6AQXDN4.js.map} +0 -0
  353. /package/dist/{chunk-MOQ5M46U.js.map → chunk-SZCHEDML.js.map} +0 -0
  354. /package/dist/{chunk-FWART3VA.js.map → chunk-VJ3NQK4K.js.map} +0 -0
  355. /package/dist/{chunk-3YKBGS3I.js.map → chunk-WNA6T3MA.js.map} +0 -0
  356. /package/dist/{chunk-7CZ6YXMO.js.map → chunk-WVCQ75OK.js.map} +0 -0
  357. /package/dist/{chunk-BTFTHF6Q.js.map → chunk-X66MXMR5.js.map} +0 -0
  358. /package/dist/{chunk-6PALJTC2.js.map → chunk-XJK2WIYN.js.map} +0 -0
  359. /package/dist/{chunk-5UOPIPZC.js.map → chunk-XQ7UYPVN.js.map} +0 -0
  360. /package/dist/{chunk-HU55NPHZ.js.map → chunk-Y2OCKFZ3.js.map} +0 -0
  361. /package/dist/{chunk-TCGVRKOS.js.map → chunk-YBFOBRTO.js.map} +0 -0
  362. /package/dist/{chunk-I6JJ6VJS.js.map → chunk-YLN33ADH.js.map} +0 -0
  363. /package/dist/{chunk-PVC2FBCQ.js.map → chunk-Z5YFRMG5.js.map} +0 -0
  364. /package/dist/{chunk-EU7HDMT3.js.map → chunk-ZWQFOXBR.js.map} +0 -0
  365. /package/dist/{collection-facade-EJVIN2BY.js.map → collection-facade-3RAXG2OU.js.map} +0 -0
  366. /package/dist/{computed-6FOFXQPE.js.map → computed-R62HGCO4.js.map} +0 -0
  367. /package/dist/{dead-filter-RHMNYOXP.js.map → dead-filter-VNA4M3GP.js.map} +0 -0
  368. /package/dist/{delegation-IHXOASHV.js.map → delegation-ZKII5UBI.js.map} +0 -0
  369. /package/dist/{derive-CD3ZVIXK.js.map → derive-5D2C3WG4.js.map} +0 -0
  370. /package/dist/{enclave-KGEUW2GL.js.map → enclave-EUBEJGPG.js.map} +0 -0
  371. /package/dist/{executor-EUPYHCLU.js.map → executor-IL7SRNUZ.js.map} +0 -0
  372. /package/dist/{executor-KZ4B3PRT.js.map → executor-OUA2Y6YC.js.map} +0 -0
  373. /package/dist/{executor-MHUM2VZK.js.map → executor-WAEI6PDV.js.map} +0 -0
  374. /package/dist/{export-accessible-Z3NSZZHN.js.map → export-accessible-O55RKAGC.js.map} +0 -0
  375. /package/dist/{extract-partition-VSKT35JG.js.map → extract-partition-VBGCBA6Q.js.map} +0 -0
  376. /package/dist/{fanout-sidecar-NBDKKCHT.js.map → fanout-sidecar-CI5BCMQM.js.map} +0 -0
  377. /package/dist/{find-OH4BEULF.js.map → find-FISGUWSK.js.map} +0 -0
  378. /package/dist/{issue-AEOL6RXA.js.map → issue-EQAWIYFQ.js.map} +0 -0
  379. /package/dist/{ledger-3LR3YO2W.js.map → ledger-AJA2SR3C.js.map} +0 -0
  380. /package/dist/{liberate-XSEPRWEA.js.map → liberate-SEGR4JLY.js.map} +0 -0
  381. /package/dist/{link-set-NSUIX6BR.js.map → link-set-YBAC2DQT.js.map} +0 -0
  382. /package/dist/{noydb-POVTIVQ6.js.map → noydb-AMEOU456.js.map} +0 -0
  383. /package/dist/{policy-Y7HL2KGA.js.map → policy-SDGRWVIL.js.map} +0 -0
  384. /package/dist/{post-register-KOFRTCDD.js.map → post-register-MROIUA5O.js.map} +0 -0
  385. /package/dist/{public-envelope-NC7SPNMV.js.map → public-envelope-J5PLQOW2.js.map} +0 -0
  386. /package/dist/{read-only-facade-5ADRJVTM.js.map → read-only-facade-UCYNRE56.js.map} +0 -0
  387. /package/dist/{register-3D6R2MKN.js.map → register-OVJKW7BS.js.map} +0 -0
  388. /package/dist/{registry-AI4E46PD.js.map → registry-5RJSK5AJ.js.map} +0 -0
  389. /package/dist/{registry-HSNQ4NBP.js.map → registry-DQRNTWRL.js.map} +0 -0
  390. /package/dist/{registry-WIX6QCV5.js.map → registry-LTGLERS7.js.map} +0 -0
  391. /package/dist/{request-withdrawal-GU4XS2R5.js.map → request-withdrawal-27O77D2V.js.map} +0 -0
  392. /package/dist/{reveal-5Y777N5Q.js.map → reveal-LT3I2K4P.js.map} +0 -0
  393. /package/dist/{revoke-ZFETCLYV.js.map → revoke-4N45G7D2.js.map} +0 -0
  394. /package/dist/{signer-GAIMQQ2J.js.map → signer-XJCOV7JD.js.map} +0 -0
  395. /package/dist/{stale-77LP2EEF.js.map → stale-IYYXEH3U.js.map} +0 -0
  396. /package/dist/{storage-KEXIXLGM.js.map → storage-Y44CAPE6.js.map} +0 -0
  397. /package/dist/{store-coordination-provider-NJDDZ264.js.map → store-coordination-provider-WKGAE2WI.js.map} +0 -0
  398. /package/dist/{verify-CAYGXYNO.js.map → verify-GH6CWVSW.js.map} +0 -0
  399. /package/dist/{walk-SMAE4IEI.js.map → walk-76UCFXYV.js.map} +0 -0
  400. /package/dist/{withdraw-accessible-Q7BULAN5.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-TCGVRKOS.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-56JB2BGI.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-BTFTHF6Q.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-TIAYXOEI.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-5HRJQSKN.js";
57
+ } from "./chunk-5SAZMBW7.js";
55
58
  import {
56
59
  UserApi
57
- } from "./chunk-GDOOG5YQ.js";
60
+ } from "./chunk-7IZQTCTR.js";
58
61
  import {
59
62
  persistSchemaIfNeeded
60
- } from "./chunk-2PJB6H3H.js";
63
+ } from "./chunk-2UQ4RMHV.js";
61
64
  import {
62
65
  LinkEndpointError
63
- } from "./chunk-R4IVPJHN.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-QYMMMKOO.js";
80
- import "./chunk-L6Q5NA22.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-XBPUVQDO.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-IARAK3PK.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-723XB5NX.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-5YBUFCFF.js";
109
+ } from "./chunk-NNWK3PSY.js";
107
110
  import {
108
111
  withdrawAccessibleData
109
- } from "./chunk-3KBK5LU4.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-DCVVCJVB.js";
116
- import "./chunk-QABECTNN.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-X6VNIRHS.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-4VDFUBTS.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-J5YUA6JB.js";
141
+ import "./chunk-ZWQFOXBR.js";
142
+ import "./chunk-CWCCYH34.js";
140
143
  import {
141
144
  PERIODS_COLLECTION
142
- } from "./chunk-37JZR7CY.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-W3JABOVB.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-PPPZIBKY.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-25G7PUTA.js";
204
+ } from "./chunk-M5I354EE.js";
200
205
  import {
201
206
  SCHEMAS_COLLECTION,
202
207
  loadPersistedSchema,
203
208
  savePersistedSchema
204
- } from "./chunk-J7OH6R4K.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-P2PEPSPK.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-WPNP3NF5.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-BJ2XF2RC.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-GLVXQU3E.js";
260
+ } from "./chunk-KNXN47MO.js";
256
261
  import {
257
262
  CONSENT_AUDIT_COLLECTION
258
- } from "./chunk-44DV37ZV.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-PMMV5SQC.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-F3EKFGUS.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-NTPWQH4S.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-FWART3VA.js";
313
+ } from "./chunk-VJ3NQK4K.js";
311
314
  import {
312
315
  PresenceHandle,
313
316
  SyncEngine,
314
317
  SyncTransaction
315
- } from "./chunk-BM6E4MUT.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-TUL5YQWF.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-FZK3JJJK.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-62APEMF3.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-3YKBGS3I.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-UMH35AQV.js";
399
- import "./chunk-VVLOWY74.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-7TAV3BFQ.js";
405
- import "./chunk-PVC2FBCQ.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-REWTMYSF.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
@@ -1348,7 +1360,7 @@ function withDeferredNumbering(config) {
1348
1360
  };
1349
1361
  }
1350
1362
 
1351
- // src/with-shape/money/iso4217.ts
1363
+ // src/shape/via-money/iso4217.ts
1352
1364
  var MINOR_UNITS = {
1353
1365
  // 2-decimal majors
1354
1366
  EUR: 2,
@@ -1406,7 +1418,7 @@ function scaleForCurrency(code) {
1406
1418
  return v === void 0 ? null : v;
1407
1419
  }
1408
1420
 
1409
- // src/with-shape/money/fixed-point.ts
1421
+ // src/shape/via-money/fixed-point.ts
1410
1422
  function expandExponent(s) {
1411
1423
  const m = /^([+-]?)(\d+)(?:\.(\d+))?[eE]([+-]?\d+)$/.exec(s);
1412
1424
  if (!m) return s;
@@ -1524,7 +1536,7 @@ function formatScaledInt(value, scale) {
1524
1536
  return (negative ? "-" : "") + intPart + "." + fracPart;
1525
1537
  }
1526
1538
 
1527
- // src/with-shape/money/paths.ts
1539
+ // src/shape/via-money/paths.ts
1528
1540
  var SEGMENT_RE = /^(\*|[^.[\]*]+)(\[\])?$/;
1529
1541
  var parseCache = /* @__PURE__ */ new Map();
1530
1542
  function parseMoneyPath(path) {
@@ -1626,7 +1638,7 @@ function transformAtMoneyPath(node, path, segments, index, visit, lenient) {
1626
1638
  return clone;
1627
1639
  }
1628
1640
 
1629
- // src/with-shape/money/normalize.ts
1641
+ // src/shape/via-money/normalize.ts
1630
1642
  function isMoneyValueObject(v) {
1631
1643
  return typeof v === "object" && v !== null && "currency" in v;
1632
1644
  }
@@ -1795,7 +1807,7 @@ function decodeMoneyFields(record, moneyFields, locale) {
1795
1807
  return out;
1796
1808
  }
1797
1809
 
1798
- // src/with-shape/money/where.ts
1810
+ // src/shape/via-money/where.ts
1799
1811
  function isMoneyValueObject2(v) {
1800
1812
  return typeof v === "object" && v !== null && "currency" in v;
1801
1813
  }
@@ -1840,7 +1852,7 @@ function moneyFieldClause(field, op, value, desc) {
1840
1852
  case ">":
1841
1853
  case ">=": {
1842
1854
  const e = parseOperand(field, value, desc);
1843
- return withMoney(field, op, value, desc, [e]);
1855
+ return { mode: desc.mode, entries: [e] };
1844
1856
  }
1845
1857
  case "between": {
1846
1858
  if (!Array.isArray(value) || value.length !== 2) {
@@ -1853,13 +1865,13 @@ function moneyFieldClause(field, op, value, desc) {
1853
1865
  `where("${field}"): 'between' bounds mix currencies (${lo.currency} vs ${hi.currency})`
1854
1866
  );
1855
1867
  }
1856
- return withMoney(field, op, value, desc, [lo, hi]);
1868
+ return { mode: desc.mode, entries: [lo, hi] };
1857
1869
  }
1858
1870
  case "in": {
1859
1871
  if (!Array.isArray(value)) {
1860
1872
  throw new MoneyUnsupportedError(`where("${field}"): 'in' needs an array of amounts`);
1861
1873
  }
1862
- 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)) };
1863
1875
  }
1864
1876
  default:
1865
1877
  throw new MoneyUnsupportedError(
@@ -1867,11 +1879,6 @@ function moneyFieldClause(field, op, value, desc) {
1867
1879
  );
1868
1880
  }
1869
1881
  }
1870
- function withMoney(field, op, originalValue, desc, entries) {
1871
- const money2 = { mode: desc.mode, entries };
1872
- const value = desc.mode !== "fixed" ? originalValue : entries.length === 1 && op !== "in" && op !== "between" ? entries[0].scaled : entries.map((e) => e.scaled);
1873
- return { type: "field", field, op, value, money: money2 };
1874
- }
1875
1882
  function readStored(actual, operand) {
1876
1883
  let amount;
1877
1884
  let currency;
@@ -1928,7 +1935,7 @@ function evaluateMoneyClause(actual, op, operand) {
1928
1935
  }
1929
1936
  }
1930
1937
 
1931
- // src/with-shape/money/money-reducer.ts
1938
+ // src/shape/via-money/money-reducer.ts
1932
1939
  function toScaledIntFromAny(v, scale) {
1933
1940
  if (typeof v === "bigint") return v;
1934
1941
  if (typeof v === "number") {
@@ -2113,22 +2120,41 @@ function wrapMoneyReducers(spec, moneyFields) {
2113
2120
  return changed ? out : spec;
2114
2121
  }
2115
2122
 
2116
- // src/with-shape/money/engine.ts
2117
- function linkMoneyEngine() {
2118
- installMoneyEngine({
2119
- quantizeMoneyFields,
2120
- decodeMoneyFields,
2121
- canonicalizeStoredMoney,
2122
- canonicalizeIncomingMoney,
2123
- moneyScaledValue,
2124
- validateMoneyFieldPaths,
2125
- moneyFieldClause,
2126
- evaluateMoneyClause,
2127
- wrapMoneyReducers
2128
- });
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));
2129
2155
  }
2130
2156
 
2131
- // src/with-shape/money/descriptor.ts
2157
+ // src/shape/via-money/descriptor.ts
2132
2158
  var MoneyPrecisionError = class extends NoydbError {
2133
2159
  constructor(field, value, scale) {
2134
2160
  super(
@@ -2174,7 +2200,7 @@ function isMultiOptions(o) {
2174
2200
  return "currencies" in o;
2175
2201
  }
2176
2202
  function money(options) {
2177
- linkMoneyEngine();
2203
+ linkMoneyVia();
2178
2204
  const hasFixed = "currency" in options;
2179
2205
  const hasMulti = "currencies" in options;
2180
2206
  if (hasFixed && hasMulti) {
@@ -2198,6 +2224,7 @@ function money(options) {
2198
2224
  const soleCurrency = () => allowList !== "any" && allowList.length === 1 ? allowList[0] : void 0;
2199
2225
  return {
2200
2226
  _noydbMoney: true,
2227
+ _viaBrand: "money",
2201
2228
  mode: "multi",
2202
2229
  options,
2203
2230
  rounding,
@@ -2214,6 +2241,7 @@ function money(options) {
2214
2241
  }
2215
2242
  return {
2216
2243
  _noydbMoney: true,
2244
+ _viaBrand: "money",
2217
2245
  mode: "fixed",
2218
2246
  options,
2219
2247
  rounding,
@@ -2230,7 +2258,7 @@ function isMoneyDescriptor(x) {
2230
2258
  return typeof x === "object" && x !== null && x._noydbMoney === true;
2231
2259
  }
2232
2260
 
2233
- // src/with-shape/money/arith.ts
2261
+ // src/shape/via-money/arith.ts
2234
2262
  function parseAmount(label, amount, scale, rounding) {
2235
2263
  const r = parseToScaledInt(amount, scale, rounding);
2236
2264
  if (!r.ok) {
@@ -2315,7 +2343,7 @@ function allocate(amount, weights, opts = {}) {
2315
2343
  return base.map((p) => formatScaledInt(negative && p !== 0n ? -p : p, scale));
2316
2344
  }
2317
2345
 
2318
- // src/with-shape/money/branded.ts
2346
+ // src/shape/via-money/branded.ts
2319
2347
  function asMoney(value) {
2320
2348
  if (!isMoneyLike(value)) {
2321
2349
  throw new MoneyUnsupportedError(`asMoney: ${JSON.stringify(value)} is not a finite decimal`);
@@ -2336,6 +2364,246 @@ function isMoneyLike(value) {
2336
2364
  if (typeof value !== "string") return false;
2337
2365
  return decimalScaleOf(value) !== null;
2338
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
+ }
2339
2607
  export {
2340
2608
  Aggregation,
2341
2609
  AlreadyElevatedError,
@@ -2395,7 +2663,7 @@ export {
2395
2663
  DerivationOutputUnknownError,
2396
2664
  DictKeyInUseError,
2397
2665
  DictKeyMissingError,
2398
- DictionaryHandle,
2666
+ LookupHandle as DictionaryHandle,
2399
2667
  DirectoryDisabledError,
2400
2668
  ELEVATION_AUDIT_COLLECTION,
2401
2669
  ElevatedHandle,
@@ -2405,6 +2673,7 @@ export {
2405
2673
  EnclaveNotSupportedError,
2406
2674
  ExportCapabilityError,
2407
2675
  FieldFrozenError,
2676
+ FieldNotQueryableError,
2408
2677
  FilenameSanitizationError,
2409
2678
  ForgetStrategyNotConfiguredError,
2410
2679
  GROUPBY_MAX_CARDINALITY,
@@ -2543,6 +2812,7 @@ export {
2543
2812
  USER_ENVELOPE_MAX_BYTES,
2544
2813
  UniqueConstraintError,
2545
2814
  UnknownDictCodeError,
2815
+ UnknownLookupKeyError,
2546
2816
  UnknownShardError,
2547
2817
  UnsupportedIndexOptionError,
2548
2818
  UserApi,
@@ -2580,6 +2850,7 @@ export {
2580
2850
  clearDevUnlock,
2581
2851
  compileSequenceFormat,
2582
2852
  computePatch,
2853
+ computed,
2583
2854
  coordinatedCutover,
2584
2855
  count,
2585
2856
  createBundleStore,
@@ -2607,6 +2878,7 @@ export {
2607
2878
  detectMagic,
2608
2879
  detectMimeType,
2609
2880
  diagramAuthConfig,
2881
+ dict,
2610
2882
  dictCollectionName,
2611
2883
  dictKey,
2612
2884
  diff,
@@ -2617,6 +2889,8 @@ export {
2617
2889
  encryptDeterministic,
2618
2890
  enforceScript,
2619
2891
  enrollAuthenticator,
2892
+ enumOf as enum,
2893
+ enumOf,
2620
2894
  envelopePayloadHash,
2621
2895
  estimateEntropy,
2622
2896
  estimateRecordBytes,
@@ -2644,6 +2918,7 @@ export {
2644
2918
  inferScripts,
2645
2919
  isClassifiedFieldSpec,
2646
2920
  isClassifiedGroup,
2921
+ isComputedDescriptor,
2647
2922
  isDeedVault,
2648
2923
  isDevUnlockActive,
2649
2924
  isDictCollectionName,
@@ -2660,6 +2935,7 @@ export {
2660
2935
  isSessionAlive,
2661
2936
  isStaticDictDescriptor,
2662
2937
  isULID,
2938
+ isViaFieldSpec,
2663
2939
  isZodSchema,
2664
2940
  issueDelegation,
2665
2941
  recoverPassphrase as keyringRecoverPassphrase,
@@ -2682,6 +2958,7 @@ export {
2682
2958
  loadUserEnvelope,
2683
2959
  loadVaultPolicy,
2684
2960
  lockSchema,
2961
+ lookup,
2685
2962
  luhnCheck,
2686
2963
  magicLinkGrantRecordId,
2687
2964
  max,
@@ -2766,6 +3043,7 @@ export {
2766
3043
  validateSchemaInput,
2767
3044
  validateSchemaOutput,
2768
3045
  validateSessionPolicy,
3046
+ via,
2769
3047
  visibilityRecordId,
2770
3048
  withArchive,
2771
3049
  withCache,