@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.
- package/dist/adapter/index.d.ts +2 -3
- package/dist/adapter/index.js +1 -1
- package/dist/aggregate/index.d.ts +3 -4
- package/dist/aggregate/index.js +9 -8
- package/dist/aggregate/index.js.map +1 -1
- package/dist/api-HV4PDUWF.js +20 -0
- package/dist/as/index.d.ts +4 -5
- package/dist/as/index.js +11 -11
- package/dist/at/index.d.ts +2 -3
- package/dist/attestation/index.d.ts +3 -4
- package/dist/attestation/index.js +18 -18
- package/dist/{backup-WRGNTGJF.js → backup-ODXO7OGA.js} +12 -12
- package/dist/blobs/index.d.ts +4 -5
- package/dist/blobs/index.js +11 -11
- package/dist/blobs/index.js.map +1 -1
- package/dist/bundle/index.d.ts +5 -6
- package/dist/bundle/index.js +20 -20
- package/dist/{bundle-DzWtVw7w.d.ts → bundle-DlSxo31R.d.ts} +1 -1
- package/dist/by/index.js +2 -2
- package/dist/cargo/index.d.ts +4 -5
- package/dist/cargo/index.js +23 -22
- package/dist/{chunk-X6VNIRHS.js → chunk-2644KEGW.js} +18 -10
- package/dist/chunk-2644KEGW.js.map +1 -0
- package/dist/{chunk-XW5LZYV4.js → chunk-2HVUKRNE.js} +2 -2
- package/dist/{chunk-VFQOE76I.js → chunk-2KOSJTMU.js} +2 -2
- package/dist/{chunk-2PJB6H3H.js → chunk-2UQ4RMHV.js} +4 -4
- package/dist/{chunk-5GQE5IDB.js → chunk-2XE6LIXT.js} +13 -11
- package/dist/chunk-2XE6LIXT.js.map +1 -0
- package/dist/{chunk-VIWOGJ2O.js → chunk-34RRRIC3.js} +2 -2
- package/dist/{chunk-BASCPHNM.js → chunk-3C5CKXFI.js} +289 -48
- package/dist/chunk-3C5CKXFI.js.map +1 -0
- package/dist/{chunk-LFGJG4XZ.js → chunk-3I4KYWNP.js} +2 -2
- package/dist/{chunk-723XB5NX.js → chunk-42KVY3OC.js} +4 -4
- package/dist/{chunk-56JB2BGI.js → chunk-4C4WBS4V.js} +1739 -920
- package/dist/chunk-4C4WBS4V.js.map +1 -0
- package/dist/{chunk-62APEMF3.js → chunk-4G3IT7J7.js} +7 -7
- package/dist/{chunk-W3JABOVB.js → chunk-4RQ62VSR.js} +2 -2
- package/dist/{chunk-WPNP3NF5.js → chunk-4ZSGSRBI.js} +8 -8
- package/dist/{chunk-C4NOLA5X.js → chunk-5GAX2QOH.js} +2 -2
- package/dist/{chunk-5HRJQSKN.js → chunk-5SAZMBW7.js} +7 -7
- package/dist/{chunk-II6DLDZM.js → chunk-5TZZUL5X.js} +2 -2
- package/dist/{chunk-TUL5YQWF.js → chunk-6CU3FN74.js} +8 -8
- package/dist/chunk-6G2SCQYS.js +29 -0
- package/dist/chunk-6G2SCQYS.js.map +1 -0
- package/dist/{chunk-UWZ7O4NR.js → chunk-6MWUANRF.js} +2 -2
- package/dist/{chunk-U7LV2DUN.js → chunk-6ULCYCMU.js} +2 -2
- package/dist/{chunk-6Z435B6N.js → chunk-7HAPHVRJ.js} +131 -92
- package/dist/chunk-7HAPHVRJ.js.map +1 -0
- package/dist/{chunk-GDOOG5YQ.js → chunk-7IZQTCTR.js} +3 -3
- package/dist/chunk-7ZANJ6JZ.js +265 -0
- package/dist/chunk-7ZANJ6JZ.js.map +1 -0
- package/dist/{chunk-VVLOWY74.js → chunk-A2APWS32.js} +6 -6
- package/dist/chunk-A2APWS32.js.map +1 -0
- package/dist/{chunk-TIAYXOEI.js → chunk-A4MAD6PO.js} +5 -5
- package/dist/chunk-ANDBBA2P.js +36 -0
- package/dist/chunk-ANDBBA2P.js.map +1 -0
- package/dist/{chunk-5HZULLHE.js → chunk-AUR7MRHA.js} +2 -2
- package/dist/{chunk-44DV37ZV.js → chunk-AYGZMQP5.js} +3 -3
- package/dist/chunk-AYGZMQP5.js.map +1 -0
- package/dist/{chunk-P2PEPSPK.js → chunk-CJEMA2Z6.js} +2 -2
- package/dist/{chunk-L6Q5NA22.js → chunk-CTSFKDGA.js} +2 -2
- package/dist/{chunk-OJ64XMPJ.js → chunk-CU62BBRB.js} +32 -1
- package/dist/chunk-CU62BBRB.js.map +1 -0
- package/dist/{chunk-J5YUA6JB.js → chunk-CWCCYH34.js} +2 -2
- package/dist/{chunk-NTPWQH4S.js → chunk-DEYAO3N6.js} +10 -10
- package/dist/{chunk-M3OYTM5Z.js → chunk-DFIBOSOQ.js} +8 -8
- package/dist/{chunk-FZK3JJJK.js → chunk-E5AHO65E.js} +7 -7
- package/dist/{chunk-F3EKFGUS.js → chunk-FC3XK5JT.js} +8 -8
- package/dist/{chunk-XBPUVQDO.js → chunk-FGOGS7CE.js} +10 -12
- package/dist/chunk-FGOGS7CE.js.map +1 -0
- package/dist/{chunk-3KBK5LU4.js → chunk-GX2BYNCT.js} +7 -7
- package/dist/{chunk-YTCCC6NG.js → chunk-GZ2MOPVX.js} +34 -63
- package/dist/chunk-GZ2MOPVX.js.map +1 -0
- package/dist/chunk-H57P2SJB.js +126 -0
- package/dist/chunk-H57P2SJB.js.map +1 -0
- package/dist/{chunk-55LSDABW.js → chunk-HBTT7YQX.js} +2 -2
- package/dist/{chunk-PYIUDUGS.js → chunk-HOCEGVGQ.js} +2 -2
- package/dist/{chunk-5JQMX2EH.js → chunk-ICV32FPK.js} +2 -2
- package/dist/{chunk-PMMV5SQC.js → chunk-IIP5WFVT.js} +138 -92
- package/dist/chunk-IIP5WFVT.js.map +1 -0
- package/dist/{chunk-37JZR7CY.js → chunk-IUKGIB2Q.js} +4 -4
- package/dist/{chunk-OWGAXPRE.js → chunk-IWTYFS3D.js} +2 -2
- package/dist/{chunk-FCOZ7DEC.js → chunk-JC5R7P44.js} +3 -3
- package/dist/{chunk-IARAK3PK.js → chunk-KBBWY46Y.js} +2 -2
- package/dist/{chunk-RNYDHIQL.js → chunk-KBF5GSGX.js} +3 -3
- package/dist/{chunk-6P5AJ2ZS.js → chunk-KCG3BHFG.js} +2 -23
- package/dist/chunk-KCG3BHFG.js.map +1 -0
- package/dist/{chunk-GLVXQU3E.js → chunk-KNXN47MO.js} +3 -3
- package/dist/{chunk-VK6OC22R.js → chunk-KWLD2D75.js} +4 -3
- package/dist/chunk-KWLD2D75.js.map +1 -0
- package/dist/{chunk-J7OH6R4K.js → chunk-KXKLKJW4.js} +6 -6
- package/dist/{chunk-PAJCRV7O.js → chunk-KYC4LIEU.js} +2 -2
- package/dist/{chunk-R4IVPJHN.js → chunk-LEOXZY36.js} +8 -8
- package/dist/{chunk-25G7PUTA.js → chunk-M5I354EE.js} +9 -9
- package/dist/{chunk-26FSVNBL.js → chunk-MK2BSS44.js} +2 -2
- package/dist/{chunk-UMH35AQV.js → chunk-MSVY7ULZ.js} +3 -3
- package/dist/{chunk-5YBUFCFF.js → chunk-NNWK3PSY.js} +9 -9
- package/dist/{chunk-X5QZAJDB.js → chunk-NSZ6J5DF.js} +7 -7
- package/dist/{chunk-I6URUNTD.js → chunk-NUEFXLZU.js} +7 -7
- package/dist/{chunk-PPPZIBKY.js → chunk-NYVQCZ54.js} +5 -5
- package/dist/chunk-NYVQCZ54.js.map +1 -0
- package/dist/{chunk-DCVVCJVB.js → chunk-OQAODTYR.js} +2 -2
- package/dist/{chunk-QYMMMKOO.js → chunk-OV4CMJGR.js} +5 -5
- package/dist/{chunk-V76PHWLE.js → chunk-PEDZFFKW.js} +2 -2
- package/dist/chunk-PF3FQCCF.js +164 -0
- package/dist/chunk-PF3FQCCF.js.map +1 -0
- package/dist/{chunk-BJ2XF2RC.js → chunk-Q2KVKTC2.js} +5 -5
- package/dist/{chunk-RUIMKQTA.js → chunk-QJR3W3MF.js} +1 -1
- package/dist/chunk-QJR3W3MF.js.map +1 -0
- package/dist/{chunk-QABECTNN.js → chunk-QTXQ6RNZ.js} +3 -3
- package/dist/{chunk-P6TZ3IVN.js → chunk-RJ5522XX.js} +12 -12
- package/dist/{chunk-BM6E4MUT.js → chunk-RMUXPHIH.js} +56 -7
- package/dist/chunk-RMUXPHIH.js.map +1 -0
- package/dist/{chunk-CHK5VVMI.js → chunk-S6AQXDN4.js} +2 -2
- package/dist/{chunk-4VDFUBTS.js → chunk-SSFC3IYA.js} +9 -9
- package/dist/chunk-SSFC3IYA.js.map +1 -0
- package/dist/{chunk-MOQ5M46U.js → chunk-SZCHEDML.js} +2 -2
- package/dist/{chunk-UB3XHGFG.js → chunk-TDPEJINP.js} +14 -7
- package/dist/chunk-TDPEJINP.js.map +1 -0
- package/dist/{chunk-REWTMYSF.js → chunk-UNJU345Q.js} +1 -1
- package/dist/chunk-UNJU345Q.js.map +1 -0
- package/dist/chunk-V7RNIND6.js +265 -0
- package/dist/chunk-V7RNIND6.js.map +1 -0
- package/dist/{chunk-FWART3VA.js → chunk-VJ3NQK4K.js} +5 -5
- package/dist/{chunk-3YKBGS3I.js → chunk-WNA6T3MA.js} +8 -8
- package/dist/{chunk-7CZ6YXMO.js → chunk-WVCQ75OK.js} +2 -2
- package/dist/{chunk-BTFTHF6Q.js → chunk-X66MXMR5.js} +2 -2
- package/dist/{chunk-7TAV3BFQ.js → chunk-XHD3L3JO.js} +199 -35
- package/dist/chunk-XHD3L3JO.js.map +1 -0
- package/dist/{chunk-6PALJTC2.js → chunk-XJK2WIYN.js} +3 -3
- package/dist/{chunk-5UOPIPZC.js → chunk-XQ7UYPVN.js} +3 -3
- package/dist/{chunk-HU55NPHZ.js → chunk-Y2OCKFZ3.js} +2 -2
- package/dist/{chunk-TCGVRKOS.js → chunk-YBFOBRTO.js} +3 -3
- package/dist/{chunk-I6JJ6VJS.js → chunk-YLN33ADH.js} +2 -2
- package/dist/{chunk-PVC2FBCQ.js → chunk-Z5YFRMG5.js} +2 -2
- package/dist/{chunk-EU7HDMT3.js → chunk-ZWQFOXBR.js} +2 -2
- package/dist/classified/index.d.ts +4 -5
- package/dist/classified/index.js +5 -3
- package/dist/{config-drift-RFEVGBKR.js → classified-marker-IO5EBW7Q.js} +4 -4
- package/dist/classified-marker-IO5EBW7Q.js.map +1 -0
- package/dist/collection-facade-3RAXG2OU.js +38 -0
- package/dist/{computed-6FOFXQPE.js → computed-R62HGCO4.js} +3 -3
- package/dist/consent/index.d.ts +3 -4
- package/dist/consent/index.js +9 -9
- package/dist/crdt/index.d.ts +3 -4
- package/dist/{dead-filter-RHMNYOXP.js → dead-filter-VNA4M3GP.js} +2 -2
- package/dist/delegation-ZKII5UBI.js +25 -0
- package/dist/derivations/index.d.ts +4 -5
- package/dist/derivations/index.js +12 -11
- package/dist/derive-5D2C3WG4.js +21 -0
- package/dist/describe/index.d.ts +4 -1
- package/dist/{dev-unlock-wgQ7Ci5I.d.ts → dev-unlock-DDTafVO6.d.ts} +1 -1
- package/dist/{enclave-KGEUW2GL.js → enclave-EUBEJGPG.js} +11 -9
- package/dist/executor-IL7SRNUZ.js +23 -0
- package/dist/executor-OUA2Y6YC.js +9 -0
- package/dist/executor-WAEI6PDV.js +9 -0
- package/dist/export-accessible-O55RKAGC.js +23 -0
- package/dist/extract-partition-VBGCBA6Q.js +36 -0
- package/dist/{fanout-sidecar-NBDKKCHT.js → fanout-sidecar-CI5BCMQM.js} +11 -11
- package/dist/find-FISGUWSK.js +11 -0
- package/dist/forget/index.d.ts +2 -2
- package/dist/forget/index.js +9 -9
- package/dist/guards/index.d.ts +4 -5
- package/dist/guards/index.js +4 -4
- package/dist/{hash-CwHnoKyW.d.ts → hash-DBkZfIBW.d.ts} +1 -1
- package/dist/history/index.d.ts +4 -5
- package/dist/history/index.js +11 -11
- package/dist/i18n/index.d.ts +24 -5
- package/dist/i18n/index.js +45 -34
- package/dist/i18n/index.js.map +1 -1
- package/dist/in/index.d.ts +2 -3
- package/dist/{index-CTvUp94-.d.ts → index-CyclmyDr.d.ts} +2 -3
- package/dist/{index-Dn5GzPg_.d.ts → index-DzhNI2vE.d.ts} +7114 -5992
- package/dist/index.d.ts +51 -17
- package/dist/index.js +403 -125
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.d.ts +3 -4
- package/dist/indexing/index.js +4 -4
- package/dist/issue-EQAWIYFQ.js +19 -0
- package/dist/kernel/index.d.ts +3 -4
- package/dist/kernel/index.js +13 -12
- package/dist/lazy/index.d.ts +3 -4
- package/dist/{ledger-3LR3YO2W.js → ledger-AJA2SR3C.js} +11 -11
- package/dist/liberate-SEGR4JLY.js +24 -0
- package/dist/{link-set-NSUIX6BR.js → link-set-YBAC2DQT.js} +11 -11
- package/dist/materialized-views/index.d.ts +14 -5
- package/dist/materialized-views/index.js +17 -15
- package/dist/{mime-magic-CYbFNQ4h.d.ts → mime-magic-CbV1quyp.d.ts} +1 -1
- package/dist/noydb-AMEOU456.js +65 -0
- package/dist/on/index.d.ts +2 -3
- package/dist/on/index.js +9 -9
- package/dist/overlay-views/index.d.ts +4 -5
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.d.ts +3 -4
- package/dist/periods/index.js +12 -12
- package/dist/pod/index.d.ts +3 -4
- package/dist/pod/index.js +11 -11
- package/dist/{policy-Y7HL2KGA.js → policy-SDGRWVIL.js} +5 -5
- package/dist/portability/index.d.ts +3 -4
- package/dist/portability/index.js +8 -8
- package/dist/{post-register-KOFRTCDD.js → post-register-MROIUA5O.js} +6 -6
- package/dist/{public-envelope-NC7SPNMV.js → public-envelope-J5PLQOW2.js} +4 -4
- package/dist/query/index.d.ts +2 -3
- package/dist/query/index.js +9 -6
- package/dist/{read-only-facade-5ADRJVTM.js → read-only-facade-UCYNRE56.js} +2 -2
- package/dist/register-OVJKW7BS.js +23 -0
- package/dist/registry-5RJSK5AJ.js +9 -0
- package/dist/registry-DQRNTWRL.js +18 -0
- package/dist/registry-LTGLERS7.js +19 -0
- package/dist/request-withdrawal-27O77D2V.js +31 -0
- package/dist/{reveal-5Y777N5Q.js → reveal-LT3I2K4P.js} +6 -6
- package/dist/revoke-4N45G7D2.js +24 -0
- package/dist/satellites/index.d.ts +2 -3
- package/dist/satellites/index.js +1 -1
- package/dist/sealed-record/index.d.ts +3 -4
- package/dist/sealed-record/index.js +12 -12
- package/dist/session/index.d.ts +4 -5
- package/dist/session/index.js +9 -9
- package/dist/shadow/index.d.ts +3 -4
- package/dist/shadow/index.js +2 -2
- package/dist/signer-XJCOV7JD.js +25 -0
- package/dist/snapshots/index.d.ts +3 -4
- package/dist/snapshots/index.js +10 -10
- package/dist/{stale-77LP2EEF.js → stale-IYYXEH3U.js} +2 -2
- package/dist/storage-Y44CAPE6.js +23 -0
- package/dist/{store-coordination-provider-NJDDZ264.js → store-coordination-provider-WKGAE2WI.js} +3 -3
- package/dist/{subject-index-O75wKshW.d.ts → subject-index-CyOgGMJL.d.ts} +18 -0
- package/dist/sync/index.d.ts +2 -3
- package/dist/sync/index.js +9 -9
- package/dist/team/index.d.ts +3 -4
- package/dist/team/index.js +15 -15
- package/dist/tiers/index.d.ts +2 -3
- package/dist/tiers/index.js +10 -10
- package/dist/to/index.d.ts +2 -3
- package/dist/to/index.js +1 -1
- package/dist/{transition-guard-D5RLJv8S.d.ts → transition-guard-BOUkzQU4.d.ts} +1 -1
- package/dist/tx/index.d.ts +3 -4
- package/dist/tx/index.js +3 -3
- package/dist/ui/index.d.ts +4 -1
- package/dist/util/index.js +1 -1
- package/dist/{validators-C3lrVF-c.d.ts → validators-B3SalxlJ.d.ts} +1 -1
- package/dist/{vault-diff-_LSIcOMv.d.ts → vault-diff-Dt9NkLzw.d.ts} +1 -1
- package/dist/{verify-CAYGXYNO.js → verify-GH6CWVSW.js} +5 -5
- package/dist/{walk-SMAE4IEI.js → walk-76UCFXYV.js} +11 -11
- package/dist/with/index.d.ts +3 -4
- package/dist/with/index.js +11 -11
- package/dist/{with-materialized-view-Xv1-9Bh0.d.ts → with-materialized-view-BP33v1Z6.d.ts} +1 -1
- package/dist/{with-overlayed-view-CuWhq_-C.d.ts → with-overlayed-view-DntFpOKN.d.ts} +1 -1
- package/dist/{with-rollup-K_iwal4b.d.ts → with-rollup-ClCHO6-4.d.ts} +1 -1
- package/dist/withdraw-accessible-6J2UH3IN.js +28 -0
- package/package.json +3 -3
- package/dist/api-JDWL67WL.js +0 -20
- package/dist/chunk-44DV37ZV.js.map +0 -1
- package/dist/chunk-47C4CI7R.js +0 -108
- package/dist/chunk-47C4CI7R.js.map +0 -1
- package/dist/chunk-4VDFUBTS.js.map +0 -1
- package/dist/chunk-56JB2BGI.js.map +0 -1
- package/dist/chunk-5GQE5IDB.js.map +0 -1
- package/dist/chunk-6P5AJ2ZS.js.map +0 -1
- package/dist/chunk-6Z435B6N.js.map +0 -1
- package/dist/chunk-7KTL4RHZ.js +0 -120
- package/dist/chunk-7KTL4RHZ.js.map +0 -1
- package/dist/chunk-7TAV3BFQ.js.map +0 -1
- package/dist/chunk-BASCPHNM.js.map +0 -1
- package/dist/chunk-BM6E4MUT.js.map +0 -1
- package/dist/chunk-OJ64XMPJ.js.map +0 -1
- package/dist/chunk-PMMV5SQC.js.map +0 -1
- package/dist/chunk-PPPZIBKY.js.map +0 -1
- package/dist/chunk-REWTMYSF.js.map +0 -1
- package/dist/chunk-RUIMKQTA.js.map +0 -1
- package/dist/chunk-UB3XHGFG.js.map +0 -1
- package/dist/chunk-VK6OC22R.js.map +0 -1
- package/dist/chunk-VVLOWY74.js.map +0 -1
- package/dist/chunk-X6VNIRHS.js.map +0 -1
- package/dist/chunk-XBPUVQDO.js.map +0 -1
- package/dist/chunk-YTCCC6NG.js.map +0 -1
- package/dist/collection-facade-EJVIN2BY.js +0 -39
- package/dist/config-drift-RFEVGBKR.js.map +0 -1
- package/dist/delegation-IHXOASHV.js +0 -25
- package/dist/derive-CD3ZVIXK.js +0 -21
- package/dist/describe-C6iHNlqJ.d.ts +0 -162
- package/dist/executor-EUPYHCLU.js +0 -9
- package/dist/executor-KZ4B3PRT.js +0 -9
- package/dist/executor-MHUM2VZK.js +0 -21
- package/dist/export-accessible-Z3NSZZHN.js +0 -23
- package/dist/extract-partition-VSKT35JG.js +0 -36
- package/dist/find-OH4BEULF.js +0 -11
- package/dist/issue-AEOL6RXA.js +0 -19
- package/dist/liberate-XSEPRWEA.js +0 -24
- package/dist/noydb-POVTIVQ6.js +0 -62
- package/dist/register-3D6R2MKN.js +0 -23
- package/dist/registry-AI4E46PD.js +0 -19
- package/dist/registry-HSNQ4NBP.js +0 -9
- package/dist/registry-WIX6QCV5.js +0 -17
- package/dist/request-withdrawal-GU4XS2R5.js +0 -31
- package/dist/revoke-ZFETCLYV.js +0 -24
- package/dist/signer-GAIMQQ2J.js +0 -25
- package/dist/storage-KEXIXLGM.js +0 -23
- package/dist/withdraw-accessible-Q7BULAN5.js +0 -28
- /package/dist/{api-JDWL67WL.js.map → api-HV4PDUWF.js.map} +0 -0
- /package/dist/{backup-WRGNTGJF.js.map → backup-ODXO7OGA.js.map} +0 -0
- /package/dist/{chunk-XW5LZYV4.js.map → chunk-2HVUKRNE.js.map} +0 -0
- /package/dist/{chunk-VFQOE76I.js.map → chunk-2KOSJTMU.js.map} +0 -0
- /package/dist/{chunk-2PJB6H3H.js.map → chunk-2UQ4RMHV.js.map} +0 -0
- /package/dist/{chunk-VIWOGJ2O.js.map → chunk-34RRRIC3.js.map} +0 -0
- /package/dist/{chunk-LFGJG4XZ.js.map → chunk-3I4KYWNP.js.map} +0 -0
- /package/dist/{chunk-723XB5NX.js.map → chunk-42KVY3OC.js.map} +0 -0
- /package/dist/{chunk-62APEMF3.js.map → chunk-4G3IT7J7.js.map} +0 -0
- /package/dist/{chunk-W3JABOVB.js.map → chunk-4RQ62VSR.js.map} +0 -0
- /package/dist/{chunk-WPNP3NF5.js.map → chunk-4ZSGSRBI.js.map} +0 -0
- /package/dist/{chunk-C4NOLA5X.js.map → chunk-5GAX2QOH.js.map} +0 -0
- /package/dist/{chunk-5HRJQSKN.js.map → chunk-5SAZMBW7.js.map} +0 -0
- /package/dist/{chunk-II6DLDZM.js.map → chunk-5TZZUL5X.js.map} +0 -0
- /package/dist/{chunk-TUL5YQWF.js.map → chunk-6CU3FN74.js.map} +0 -0
- /package/dist/{chunk-UWZ7O4NR.js.map → chunk-6MWUANRF.js.map} +0 -0
- /package/dist/{chunk-U7LV2DUN.js.map → chunk-6ULCYCMU.js.map} +0 -0
- /package/dist/{chunk-GDOOG5YQ.js.map → chunk-7IZQTCTR.js.map} +0 -0
- /package/dist/{chunk-TIAYXOEI.js.map → chunk-A4MAD6PO.js.map} +0 -0
- /package/dist/{chunk-5HZULLHE.js.map → chunk-AUR7MRHA.js.map} +0 -0
- /package/dist/{chunk-P2PEPSPK.js.map → chunk-CJEMA2Z6.js.map} +0 -0
- /package/dist/{chunk-L6Q5NA22.js.map → chunk-CTSFKDGA.js.map} +0 -0
- /package/dist/{chunk-J5YUA6JB.js.map → chunk-CWCCYH34.js.map} +0 -0
- /package/dist/{chunk-NTPWQH4S.js.map → chunk-DEYAO3N6.js.map} +0 -0
- /package/dist/{chunk-M3OYTM5Z.js.map → chunk-DFIBOSOQ.js.map} +0 -0
- /package/dist/{chunk-FZK3JJJK.js.map → chunk-E5AHO65E.js.map} +0 -0
- /package/dist/{chunk-F3EKFGUS.js.map → chunk-FC3XK5JT.js.map} +0 -0
- /package/dist/{chunk-3KBK5LU4.js.map → chunk-GX2BYNCT.js.map} +0 -0
- /package/dist/{chunk-55LSDABW.js.map → chunk-HBTT7YQX.js.map} +0 -0
- /package/dist/{chunk-PYIUDUGS.js.map → chunk-HOCEGVGQ.js.map} +0 -0
- /package/dist/{chunk-5JQMX2EH.js.map → chunk-ICV32FPK.js.map} +0 -0
- /package/dist/{chunk-37JZR7CY.js.map → chunk-IUKGIB2Q.js.map} +0 -0
- /package/dist/{chunk-OWGAXPRE.js.map → chunk-IWTYFS3D.js.map} +0 -0
- /package/dist/{chunk-FCOZ7DEC.js.map → chunk-JC5R7P44.js.map} +0 -0
- /package/dist/{chunk-IARAK3PK.js.map → chunk-KBBWY46Y.js.map} +0 -0
- /package/dist/{chunk-RNYDHIQL.js.map → chunk-KBF5GSGX.js.map} +0 -0
- /package/dist/{chunk-GLVXQU3E.js.map → chunk-KNXN47MO.js.map} +0 -0
- /package/dist/{chunk-J7OH6R4K.js.map → chunk-KXKLKJW4.js.map} +0 -0
- /package/dist/{chunk-PAJCRV7O.js.map → chunk-KYC4LIEU.js.map} +0 -0
- /package/dist/{chunk-R4IVPJHN.js.map → chunk-LEOXZY36.js.map} +0 -0
- /package/dist/{chunk-25G7PUTA.js.map → chunk-M5I354EE.js.map} +0 -0
- /package/dist/{chunk-26FSVNBL.js.map → chunk-MK2BSS44.js.map} +0 -0
- /package/dist/{chunk-UMH35AQV.js.map → chunk-MSVY7ULZ.js.map} +0 -0
- /package/dist/{chunk-5YBUFCFF.js.map → chunk-NNWK3PSY.js.map} +0 -0
- /package/dist/{chunk-X5QZAJDB.js.map → chunk-NSZ6J5DF.js.map} +0 -0
- /package/dist/{chunk-I6URUNTD.js.map → chunk-NUEFXLZU.js.map} +0 -0
- /package/dist/{chunk-DCVVCJVB.js.map → chunk-OQAODTYR.js.map} +0 -0
- /package/dist/{chunk-QYMMMKOO.js.map → chunk-OV4CMJGR.js.map} +0 -0
- /package/dist/{chunk-V76PHWLE.js.map → chunk-PEDZFFKW.js.map} +0 -0
- /package/dist/{chunk-BJ2XF2RC.js.map → chunk-Q2KVKTC2.js.map} +0 -0
- /package/dist/{chunk-QABECTNN.js.map → chunk-QTXQ6RNZ.js.map} +0 -0
- /package/dist/{chunk-P6TZ3IVN.js.map → chunk-RJ5522XX.js.map} +0 -0
- /package/dist/{chunk-CHK5VVMI.js.map → chunk-S6AQXDN4.js.map} +0 -0
- /package/dist/{chunk-MOQ5M46U.js.map → chunk-SZCHEDML.js.map} +0 -0
- /package/dist/{chunk-FWART3VA.js.map → chunk-VJ3NQK4K.js.map} +0 -0
- /package/dist/{chunk-3YKBGS3I.js.map → chunk-WNA6T3MA.js.map} +0 -0
- /package/dist/{chunk-7CZ6YXMO.js.map → chunk-WVCQ75OK.js.map} +0 -0
- /package/dist/{chunk-BTFTHF6Q.js.map → chunk-X66MXMR5.js.map} +0 -0
- /package/dist/{chunk-6PALJTC2.js.map → chunk-XJK2WIYN.js.map} +0 -0
- /package/dist/{chunk-5UOPIPZC.js.map → chunk-XQ7UYPVN.js.map} +0 -0
- /package/dist/{chunk-HU55NPHZ.js.map → chunk-Y2OCKFZ3.js.map} +0 -0
- /package/dist/{chunk-TCGVRKOS.js.map → chunk-YBFOBRTO.js.map} +0 -0
- /package/dist/{chunk-I6JJ6VJS.js.map → chunk-YLN33ADH.js.map} +0 -0
- /package/dist/{chunk-PVC2FBCQ.js.map → chunk-Z5YFRMG5.js.map} +0 -0
- /package/dist/{chunk-EU7HDMT3.js.map → chunk-ZWQFOXBR.js.map} +0 -0
- /package/dist/{collection-facade-EJVIN2BY.js.map → collection-facade-3RAXG2OU.js.map} +0 -0
- /package/dist/{computed-6FOFXQPE.js.map → computed-R62HGCO4.js.map} +0 -0
- /package/dist/{dead-filter-RHMNYOXP.js.map → dead-filter-VNA4M3GP.js.map} +0 -0
- /package/dist/{delegation-IHXOASHV.js.map → delegation-ZKII5UBI.js.map} +0 -0
- /package/dist/{derive-CD3ZVIXK.js.map → derive-5D2C3WG4.js.map} +0 -0
- /package/dist/{enclave-KGEUW2GL.js.map → enclave-EUBEJGPG.js.map} +0 -0
- /package/dist/{executor-EUPYHCLU.js.map → executor-IL7SRNUZ.js.map} +0 -0
- /package/dist/{executor-KZ4B3PRT.js.map → executor-OUA2Y6YC.js.map} +0 -0
- /package/dist/{executor-MHUM2VZK.js.map → executor-WAEI6PDV.js.map} +0 -0
- /package/dist/{export-accessible-Z3NSZZHN.js.map → export-accessible-O55RKAGC.js.map} +0 -0
- /package/dist/{extract-partition-VSKT35JG.js.map → extract-partition-VBGCBA6Q.js.map} +0 -0
- /package/dist/{fanout-sidecar-NBDKKCHT.js.map → fanout-sidecar-CI5BCMQM.js.map} +0 -0
- /package/dist/{find-OH4BEULF.js.map → find-FISGUWSK.js.map} +0 -0
- /package/dist/{issue-AEOL6RXA.js.map → issue-EQAWIYFQ.js.map} +0 -0
- /package/dist/{ledger-3LR3YO2W.js.map → ledger-AJA2SR3C.js.map} +0 -0
- /package/dist/{liberate-XSEPRWEA.js.map → liberate-SEGR4JLY.js.map} +0 -0
- /package/dist/{link-set-NSUIX6BR.js.map → link-set-YBAC2DQT.js.map} +0 -0
- /package/dist/{noydb-POVTIVQ6.js.map → noydb-AMEOU456.js.map} +0 -0
- /package/dist/{policy-Y7HL2KGA.js.map → policy-SDGRWVIL.js.map} +0 -0
- /package/dist/{post-register-KOFRTCDD.js.map → post-register-MROIUA5O.js.map} +0 -0
- /package/dist/{public-envelope-NC7SPNMV.js.map → public-envelope-J5PLQOW2.js.map} +0 -0
- /package/dist/{read-only-facade-5ADRJVTM.js.map → read-only-facade-UCYNRE56.js.map} +0 -0
- /package/dist/{register-3D6R2MKN.js.map → register-OVJKW7BS.js.map} +0 -0
- /package/dist/{registry-AI4E46PD.js.map → registry-5RJSK5AJ.js.map} +0 -0
- /package/dist/{registry-HSNQ4NBP.js.map → registry-DQRNTWRL.js.map} +0 -0
- /package/dist/{registry-WIX6QCV5.js.map → registry-LTGLERS7.js.map} +0 -0
- /package/dist/{request-withdrawal-GU4XS2R5.js.map → request-withdrawal-27O77D2V.js.map} +0 -0
- /package/dist/{reveal-5Y777N5Q.js.map → reveal-LT3I2K4P.js.map} +0 -0
- /package/dist/{revoke-ZFETCLYV.js.map → revoke-4N45G7D2.js.map} +0 -0
- /package/dist/{signer-GAIMQQ2J.js.map → signer-XJCOV7JD.js.map} +0 -0
- /package/dist/{stale-77LP2EEF.js.map → stale-IYYXEH3U.js.map} +0 -0
- /package/dist/{storage-KEXIXLGM.js.map → storage-Y44CAPE6.js.map} +0 -0
- /package/dist/{store-coordination-provider-NJDDZ264.js.map → store-coordination-provider-WKGAE2WI.js.map} +0 -0
- /package/dist/{verify-CAYGXYNO.js.map → verify-GH6CWVSW.js.map} +0 -0
- /package/dist/{walk-SMAE4IEI.js.map → walk-76UCFXYV.js.map} +0 -0
- /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-
|
|
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-
|
|
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-
|
|
38
|
+
} from "./chunk-X66MXMR5.js";
|
|
36
39
|
import {
|
|
37
40
|
DELEGATIONS_COLLECTION,
|
|
38
41
|
issueDelegation,
|
|
39
42
|
loadActiveDelegations,
|
|
40
43
|
revokeDelegation
|
|
41
|
-
} from "./chunk-
|
|
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-
|
|
57
|
+
} from "./chunk-5SAZMBW7.js";
|
|
55
58
|
import {
|
|
56
59
|
UserApi
|
|
57
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-7IZQTCTR.js";
|
|
58
61
|
import {
|
|
59
62
|
persistSchemaIfNeeded
|
|
60
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-2UQ4RMHV.js";
|
|
61
64
|
import {
|
|
62
65
|
LinkEndpointError
|
|
63
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-LEOXZY36.js";
|
|
64
67
|
import {
|
|
65
68
|
LinkIntegrityError,
|
|
66
69
|
isLinkCollectionName
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import "./chunk-
|
|
70
|
+
} from "./chunk-PEDZFFKW.js";
|
|
71
|
+
import "./chunk-ICV32FPK.js";
|
|
69
72
|
import {
|
|
70
73
|
ComputedFieldError,
|
|
71
74
|
evalComputedFields
|
|
72
|
-
} from "./chunk-
|
|
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-
|
|
80
|
-
import "./chunk-
|
|
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-
|
|
88
|
+
} from "./chunk-FGOGS7CE.js";
|
|
86
89
|
import {
|
|
87
90
|
derivePersistedSchema,
|
|
88
91
|
isZodSchema
|
|
89
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-HBTT7YQX.js";
|
|
90
93
|
import "./chunk-GYGLAVCX.js";
|
|
91
94
|
import {
|
|
92
95
|
withCargo
|
|
93
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
109
|
+
} from "./chunk-NNWK3PSY.js";
|
|
107
110
|
import {
|
|
108
111
|
withdrawAccessibleData
|
|
109
|
-
} from "./chunk-
|
|
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-
|
|
116
|
-
import "./chunk-
|
|
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-
|
|
123
|
+
import "./chunk-3I4KYWNP.js";
|
|
121
124
|
import {
|
|
122
125
|
classified,
|
|
123
126
|
luhnCheck
|
|
124
|
-
} from "./chunk-
|
|
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-
|
|
132
|
-
import "./chunk-
|
|
133
|
-
import "./chunk-
|
|
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-
|
|
139
|
-
import "./chunk-
|
|
141
|
+
import "./chunk-ZWQFOXBR.js";
|
|
142
|
+
import "./chunk-CWCCYH34.js";
|
|
140
143
|
import {
|
|
141
144
|
PERIODS_COLLECTION
|
|
142
|
-
} from "./chunk-
|
|
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-
|
|
149
|
-
import "./chunk-
|
|
151
|
+
} from "./chunk-KYC4LIEU.js";
|
|
152
|
+
import "./chunk-QJR3W3MF.js";
|
|
150
153
|
import "./chunk-YMUGBZN2.js";
|
|
151
|
-
import "./chunk-
|
|
154
|
+
import "./chunk-Y2OCKFZ3.js";
|
|
152
155
|
import {
|
|
153
156
|
CollectionFrame,
|
|
154
157
|
VaultFrame
|
|
155
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-6ULCYCMU.js";
|
|
156
159
|
import {
|
|
157
160
|
TxCollection,
|
|
158
161
|
TxContext,
|
|
159
162
|
TxVault,
|
|
160
163
|
runTransaction
|
|
161
|
-
} from "./chunk-
|
|
164
|
+
} from "./chunk-JC5R7P44.js";
|
|
162
165
|
import {
|
|
163
166
|
withDerivation,
|
|
164
167
|
withRollup
|
|
165
|
-
} from "./chunk-
|
|
166
|
-
import "./chunk-
|
|
167
|
-
import "./chunk-
|
|
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-
|
|
171
|
-
import "./chunk-
|
|
172
|
-
import "./chunk-
|
|
173
|
-
import "./chunk-
|
|
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-
|
|
177
|
-
import "./chunk-
|
|
178
|
-
import "./chunk-
|
|
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-
|
|
184
|
-
import "./chunk-
|
|
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-
|
|
204
|
+
} from "./chunk-M5I354EE.js";
|
|
200
205
|
import {
|
|
201
206
|
SCHEMAS_COLLECTION,
|
|
202
207
|
loadPersistedSchema,
|
|
203
208
|
savePersistedSchema
|
|
204
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
232
|
+
} from "./chunk-4ZSGSRBI.js";
|
|
228
233
|
import {
|
|
229
234
|
createBundleStore,
|
|
230
235
|
createPodStore,
|
|
231
236
|
wrapBundleStore,
|
|
232
237
|
wrapPodStore
|
|
233
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
260
|
+
} from "./chunk-KNXN47MO.js";
|
|
256
261
|
import {
|
|
257
262
|
CONSENT_AUDIT_COLLECTION
|
|
258
|
-
} from "./chunk-
|
|
263
|
+
} from "./chunk-AYGZMQP5.js";
|
|
264
|
+
import "./chunk-ANDBBA2P.js";
|
|
259
265
|
import {
|
|
260
266
|
DICT_COLLECTION_PREFIX,
|
|
261
|
-
|
|
267
|
+
LookupHandle,
|
|
262
268
|
dictCollectionName,
|
|
263
269
|
dictKey,
|
|
264
|
-
isDictCollectionName,
|
|
265
|
-
isDictKeyDescriptor,
|
|
266
|
-
isStaticDictDescriptor,
|
|
267
270
|
staticDict
|
|
268
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
313
|
+
} from "./chunk-VJ3NQK4K.js";
|
|
311
314
|
import {
|
|
312
315
|
PresenceHandle,
|
|
313
316
|
SyncEngine,
|
|
314
317
|
SyncTransaction
|
|
315
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
399
|
-
import "./chunk-
|
|
400
|
-
import "./chunk-
|
|
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-
|
|
405
|
-
import "./chunk-
|
|
406
|
-
import "./chunk-
|
|
407
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
439
|
+
} from "./chunk-7HAPHVRJ.js";
|
|
437
440
|
import {
|
|
438
441
|
CollectionIndexes
|
|
439
|
-
} from "./chunk-
|
|
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-
|
|
461
|
+
} from "./chunk-2XE6LIXT.js";
|
|
459
462
|
import {
|
|
460
463
|
evaluateClause,
|
|
461
464
|
evaluateFieldClause,
|
|
462
|
-
installMoneyEngine,
|
|
463
465
|
readPath
|
|
464
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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
|
|
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
|
|
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
|
|
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/
|
|
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/
|
|
2117
|
-
function
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
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/
|
|
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
|
-
|
|
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/
|
|
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/
|
|
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,
|