@noy-db/hub 0.3.0-pre.8 → 0.3.0
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/aggregate/index.js +9 -8
- package/dist/aggregate/index.js.map +1 -1
- package/dist/api-ZGS6LCOF.js +20 -0
- package/dist/as/index.js +11 -11
- package/dist/attestation/index.js +18 -18
- package/dist/backup-BJ57IKAO.js +242 -0
- package/dist/backup-BJ57IKAO.js.map +1 -0
- package/dist/blobs/index.js +13 -11
- package/dist/blobs/index.js.map +1 -1
- package/dist/broker/index.js +92 -0
- package/dist/broker/index.js.map +1 -0
- package/dist/bundle/index.js +25 -22
- package/dist/bundle/index.js.map +1 -1
- package/dist/by/index.js +2 -2
- package/dist/cargo/index.js +31 -31
- package/dist/chunk-2NVOWNI3.js +167 -0
- package/dist/chunk-2NVOWNI3.js.map +1 -0
- package/dist/chunk-3B5VVCNY.js +71 -0
- package/dist/chunk-3LQ2YKO4.js +230 -0
- package/dist/chunk-3QCRBHCY.js +54 -0
- package/dist/chunk-454JXE57.js +1697 -0
- package/dist/chunk-454JXE57.js.map +1 -0
- package/dist/chunk-4CTHCN4J.js +480 -0
- package/dist/chunk-4CTHCN4J.js.map +1 -0
- package/dist/chunk-4GPE63GU.js +111 -0
- package/dist/chunk-4GPE63GU.js.map +1 -0
- package/dist/chunk-4JBYV75E.js +150 -0
- package/dist/chunk-4NXKCLLQ.js +97 -0
- package/dist/chunk-4VNQOLML.js +29 -0
- package/dist/chunk-4VNQOLML.js.map +1 -0
- package/dist/chunk-5M5DVGV7.js +69 -0
- package/dist/chunk-5O3XF4DV.js +150 -0
- package/dist/chunk-5O3XF4DV.js.map +1 -0
- package/dist/chunk-5YOLBEQ6.js +30 -0
- package/dist/chunk-6CRIV7DE.js +129 -0
- package/dist/chunk-6JTIAGHD.js +621 -0
- package/dist/chunk-6JTIAGHD.js.map +1 -0
- package/dist/chunk-6QTNZJBS.js +255 -0
- package/dist/chunk-6T2SCQRU.js +86 -0
- package/dist/chunk-7DSTRQIJ.js +45 -0
- package/dist/chunk-AUSTCW2X.js +589 -0
- package/dist/chunk-B3HJYUOF.js +209 -0
- package/dist/chunk-BDVFPG6Y.js +164 -0
- package/dist/chunk-BIOUI4HL.js +1554 -0
- package/dist/chunk-BIOUI4HL.js.map +1 -0
- package/dist/chunk-CAF6WOK7.js +36 -0
- package/dist/chunk-CDUQTA3Z.js +381 -0
- package/dist/chunk-CDUQTA3Z.js.map +1 -0
- package/dist/chunk-CIE2BASH.js +404 -0
- package/dist/chunk-CRI4OUV4.js +42 -0
- package/dist/chunk-DLG74CNB.js +91 -0
- package/dist/chunk-E5ZQT5KX.js +30 -0
- package/dist/chunk-E5ZQT5KX.js.map +1 -0
- package/dist/chunk-EQO2UVP4.js +247 -0
- package/dist/chunk-EQO2UVP4.js.map +1 -0
- package/dist/chunk-ERJ7FU55.js +367 -0
- package/dist/chunk-EVVGJDRQ.js +205 -0
- package/dist/chunk-EVX47VBM.js +74 -0
- package/dist/chunk-EVX47VBM.js.map +1 -0
- package/dist/chunk-EXK7QRWF.js +59 -0
- package/dist/chunk-EYZ6IQ6X.js +202 -0
- package/dist/chunk-F64IRYG3.js +45 -0
- package/dist/chunk-FHS2HQSH.js +823 -0
- package/dist/chunk-FM3G3NOY.js +206 -0
- package/dist/chunk-FM3G3NOY.js.map +1 -0
- package/dist/chunk-FUG4SFN3.js +36 -0
- package/dist/chunk-FUG4SFN3.js.map +1 -0
- package/dist/chunk-GKEWXIV5.js +80 -0
- package/dist/chunk-GTGPO5KW.js +59 -0
- package/dist/chunk-HB3RFQSC.js +95 -0
- package/dist/chunk-HDMEGAQE.js +957 -0
- package/dist/chunk-HDMEGAQE.js.map +1 -0
- package/dist/chunk-HDQIIUPH.js +135 -0
- package/dist/chunk-HDQIIUPH.js.map +1 -0
- package/dist/chunk-HTJQYHZP.js +344 -0
- package/dist/chunk-HTJQYHZP.js.map +1 -0
- package/dist/chunk-I6GALP6E.js +99 -0
- package/dist/chunk-IGJCYUT5.js +99 -0
- package/dist/chunk-IGJCYUT5.js.map +1 -0
- package/dist/chunk-IL6POWCW.js +130 -0
- package/dist/chunk-IU6SNYX6.js +117 -0
- package/dist/chunk-J2ZX2XUV.js +778 -0
- package/dist/chunk-JIF24JPM.js +495 -0
- package/dist/chunk-JIF24JPM.js.map +1 -0
- package/dist/chunk-JK733I5V.js +23 -0
- package/dist/chunk-JK733I5V.js.map +1 -0
- package/dist/chunk-JKJOGPZN.js +29 -0
- package/dist/chunk-JNAI2HN2.js +32 -0
- package/dist/chunk-JNAI2HN2.js.map +1 -0
- package/dist/chunk-JZUV47FZ.js +41 -0
- package/dist/chunk-K5IMOGHB.js +30 -0
- package/dist/chunk-KPZS5QAQ.js +151 -0
- package/dist/chunk-KPZS5QAQ.js.map +1 -0
- package/dist/chunk-KSKBRKGJ.js +291 -0
- package/dist/chunk-KSKBRKGJ.js.map +1 -0
- package/dist/chunk-LASZKVMO.js +382 -0
- package/dist/chunk-LXEXBTKL.js +515 -0
- package/dist/chunk-LXEXBTKL.js.map +1 -0
- package/dist/chunk-M4CV6BRT.js +524 -0
- package/dist/chunk-M4CV6BRT.js.map +1 -0
- package/dist/chunk-MEFJPTZ4.js +371 -0
- package/dist/chunk-MEFJPTZ4.js.map +1 -0
- package/dist/chunk-MV43JSJF.js +265 -0
- package/dist/chunk-MV43JSJF.js.map +1 -0
- package/dist/chunk-NJ4EOKMB.js +392 -0
- package/dist/chunk-NJ4EOKMB.js.map +1 -0
- package/dist/chunk-NR5LT5RY.js +135 -0
- package/dist/chunk-NWSGI5C7.js +261 -0
- package/dist/chunk-NWSGI5C7.js.map +1 -0
- package/dist/chunk-OSDB5WW3.js +739 -0
- package/dist/chunk-OSDB5WW3.js.map +1 -0
- package/dist/chunk-PN2XMATY.js +37 -0
- package/dist/chunk-PN2XMATY.js.map +1 -0
- package/dist/chunk-Q5VNKNE5.js +70 -0
- package/dist/chunk-QLWMEXCT.js +21 -0
- package/dist/chunk-QRB7NAOJ.js +123 -0
- package/dist/chunk-R4ROFEYC.js +74 -0
- package/dist/chunk-RCVJZMFE.js +164 -0
- package/dist/chunk-RCVJZMFE.js.map +1 -0
- package/dist/chunk-RIX4V2TB.js +367 -0
- package/dist/chunk-RYCTDFUX.js +40 -0
- package/dist/chunk-RZ5SVOYR.js +155 -0
- package/dist/chunk-SLFHQTTW.js +99 -0
- package/dist/chunk-SNZ6URZZ.js +2782 -0
- package/dist/chunk-SNZ6URZZ.js.map +1 -0
- package/dist/chunk-T2FFWNPK.js +75 -0
- package/dist/chunk-T2FFWNPK.js.map +1 -0
- package/dist/chunk-UNFPPVNI.js +23 -0
- package/dist/chunk-VFUPHI2Z.js +333 -0
- package/dist/chunk-VFUPHI2Z.js.map +1 -0
- package/dist/chunk-VLFCJYTL.js +235 -0
- package/dist/chunk-VN3DBQAU.js +124 -0
- package/dist/chunk-VYYM3MEN.js +98 -0
- package/dist/chunk-VYYM3MEN.js.map +1 -0
- package/dist/chunk-VZRODIM3.js +49 -0
- package/dist/chunk-W22IKJE2.js +94 -0
- package/dist/chunk-X3YYQWOQ.js +155 -0
- package/dist/chunk-X7QBD67R.js +14405 -0
- package/dist/chunk-X7QBD67R.js.map +1 -0
- package/dist/chunk-XDYREZWE.js +1128 -0
- package/dist/chunk-XDYREZWE.js.map +1 -0
- package/dist/chunk-XWZVFISC.js +720 -0
- package/dist/chunk-XWZVFISC.js.map +1 -0
- package/dist/chunk-YFXZEAYK.js +85 -0
- package/dist/chunk-ZAJAVEXY.js +50 -0
- package/dist/chunk-ZICD77GM.js +34 -0
- package/dist/chunk-ZJ2AK4V7.js +38 -0
- package/dist/chunk-ZJ2AK4V7.js.map +1 -0
- package/dist/chunk-ZUODRVHY.js +14 -0
- package/dist/classified/index.js +5 -3
- package/dist/classified-marker-CZKA6ITE.js +28 -0
- package/dist/classified-marker-CZKA6ITE.js.map +1 -0
- package/dist/collection-facade-TLWIPI76.js +44 -0
- package/dist/computed-ZIQTYTDI.js +11 -0
- package/dist/consent/index.js +9 -9
- package/dist/crdt/index.js +1 -1
- package/dist/dead-filter-ESOBZZP5.js +28 -0
- package/dist/delegation-W7ZV2322.js +25 -0
- package/dist/derivations/index.js +12 -11
- package/dist/derive-H2BJTLUI.js +21 -0
- package/dist/enclave-AP3I5W7O.js +141 -0
- package/dist/executor-KGWTNEQD.js +9 -0
- package/dist/executor-OVEXR6RT.js +9 -0
- package/dist/executor-UNEH5ZYH.js +25 -0
- package/dist/export-accessible-PCMXSUZS.js +23 -0
- package/dist/extract-partition-SWHFSYJO.js +38 -0
- package/dist/fanout-sidecar-A765THMX.js +74 -0
- package/dist/find-N6345CNT.js +11 -0
- package/dist/forget/index.js +10 -10
- package/dist/forget/index.js.map +1 -1
- package/dist/guards/index.js +6 -6
- package/dist/history/index.js +14 -11
- package/dist/history/index.js.map +1 -1
- package/dist/i18n/index.js +50 -37
- package/dist/i18n/index.js.map +1 -1
- package/dist/index.d.ts +307 -1459
- package/dist/index.js +595 -198
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.js +7 -7
- package/dist/indexing/index.js.map +1 -1
- package/dist/issue-5OKB6I2R.js +19 -0
- package/dist/kernel/best-effort-revert.d.ts +52 -0
- package/dist/kernel/cache/index.d.ts +10 -0
- package/dist/kernel/cache/lru.d.ts +97 -0
- package/dist/kernel/cache/policy.d.ts +32 -0
- package/dist/kernel/collection-config.d.ts +809 -0
- package/dist/kernel/collection.d.ts +1522 -0
- package/dist/kernel/constants.d.ts +18 -0
- package/dist/kernel/debug.d.ts +25 -0
- package/dist/kernel/enclave/broker/proof.d.ts +154 -0
- package/dist/kernel/enclave/classify/bidx.d.ts +77 -0
- package/dist/kernel/enclave/classify/compare.d.ts +10 -0
- package/dist/kernel/enclave/classify/digest.d.ts +8 -0
- package/dist/kernel/enclave/classify/find.d.ts +36 -0
- package/dist/kernel/enclave/classify/kofn.d.ts +7 -0
- package/dist/kernel/enclave/classify/normalize.d.ts +7 -0
- package/dist/kernel/enclave/classify/reveal.d.ts +10 -0
- package/dist/kernel/enclave/classify/vdig.d.ts +39 -0
- package/dist/kernel/enclave/classify/verify.d.ts +36 -0
- package/dist/kernel/enclave/classify/write.d.ts +8 -0
- package/dist/kernel/enclave/crypto.d.ts +263 -0
- package/dist/kernel/enclave/index.d.ts +79 -0
- package/dist/kernel/enclave/record-keys/deterministic.d.ts +55 -0
- package/dist/kernel/enclave/record-keys/envelope-body.d.ts +79 -0
- package/dist/kernel/enclave/record-keys/lifecycle.d.ts +107 -0
- package/dist/kernel/enclave/record-keys/record-codec.d.ts +328 -0
- package/dist/kernel/enclave/record-keys/sealed-slot.d.ts +14 -0
- package/dist/kernel/enclave/record-keys/sealed-slots.d.ts +123 -0
- package/dist/kernel/enclave/record-keys/sealing.d.ts +70 -0
- package/dist/kernel/enclave/record-keys/tombstone.d.ts +57 -0
- package/dist/kernel/env-check.d.ts +1 -0
- package/dist/kernel/errors.d.ts +1922 -0
- package/dist/kernel/events.d.ts +11 -0
- package/dist/kernel/lazy-count.d.ts +13 -0
- package/dist/kernel/memory-store.d.ts +17 -0
- package/dist/kernel/mutation.d.ts +14 -0
- package/dist/kernel/noydb.d.ts +826 -0
- package/dist/kernel/paths.d.ts +25 -0
- package/dist/kernel/query/builder.d.ts +520 -0
- package/dist/kernel/query/index.d.ts +31 -0
- package/dist/kernel/query/join.d.ts +205 -0
- package/dist/kernel/query/live.d.ts +111 -0
- package/dist/kernel/query/predicate.d.ts +139 -0
- package/dist/kernel/query/scan-builder.d.ts +334 -0
- package/dist/kernel/refs.d.ts +205 -0
- package/dist/kernel/schema.d.ts +134 -0
- package/dist/kernel/sync-policy.d.ts +188 -0
- package/dist/kernel/tier-visibility.d.ts +54 -0
- package/dist/kernel/types.d.ts +3239 -0
- package/dist/kernel/util/discriminant.d.ts +58 -0
- package/dist/kernel/util/index.d.ts +14 -0
- package/dist/kernel/util/sanitize-filename.d.ts +75 -0
- package/dist/kernel/validation.d.ts +130 -0
- package/dist/kernel/vault.d.ts +1740 -0
- package/dist/kernel/via/compose.d.ts +144 -0
- package/dist/kernel/via/dispatch.d.ts +195 -0
- package/dist/kernel/via/graph-wiring.d.ts +145 -0
- package/dist/kernel/via/graph.d.ts +166 -0
- package/dist/kernel/via/index.d.ts +200 -0
- package/dist/kernel/via/pipeline.d.ts +266 -0
- package/dist/kernel/via/reconcile.d.ts +153 -0
- package/dist/kernel/via/taint-binding.d.ts +66 -0
- package/dist/kernel/write-queue.d.ts +46 -0
- package/dist/ledger-GFBKVPV4.js +42 -0
- package/dist/legacy/bundle.d.ts +30 -0
- package/dist/legacy/kernel.d.ts +33 -0
- package/dist/liberate-3VDOT4KO.js +24 -0
- package/dist/link-set-Z7Q2ASFX.js +31 -0
- package/dist/materialized-views/index.js +19 -15
- package/dist/noydb-ZCJOYBDI.js +68 -0
- package/dist/on/index.js +9 -9
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.js +12 -12
- package/dist/pod/index.js +11 -11
- package/dist/policy-Z3RUAIY2.js +41 -0
- package/dist/port/as/index.d.ts +26 -0
- package/dist/port/at/index.d.ts +18 -0
- package/dist/port/by/default-provider.d.ts +9 -0
- package/dist/port/by/index.d.ts +17 -0
- package/dist/port/by/types.d.ts +86 -0
- package/dist/port/in/index.d.ts +21 -0
- package/dist/port/on/index.d.ts +27 -0
- package/dist/port/to/index.d.ts +19 -0
- package/dist/port/ui/index.d.ts +21 -0
- package/dist/port/with/blob-strategy.d.ts +98 -0
- package/dist/port/with/broker-strategy.d.ts +84 -0
- package/dist/port/with/capabilities.d.ts +31 -0
- package/dist/port/with/classified-marker.d.ts +9 -0
- package/dist/port/with/classified-strategy.d.ts +62 -0
- package/dist/port/with/computed-strategy.d.ts +19 -0
- package/dist/port/with/i18n-strategy.d.ts +175 -0
- package/dist/port/with/index.d.ts +18 -0
- package/dist/port/with/lazy-strategy.d.ts +48 -0
- package/dist/port/with/lookup-strategy.d.ts +129 -0
- package/dist/port/with/service-bus.d.ts +156 -0
- package/dist/port/with/team-strategy.d.ts +36 -0
- package/dist/port/with/write-hooks.d.ts +34 -0
- package/dist/portability/index.js +8 -8
- package/dist/post-register-JTH76BLY.js +60 -0
- package/dist/post-register-JTH76BLY.js.map +1 -0
- package/dist/public-envelope-B4KNWVUA.js +32 -0
- package/dist/purge-scope-FGNNLWHD.js +24 -0
- package/dist/purge-scope-FGNNLWHD.js.map +1 -0
- package/dist/query/index.js +9 -6
- package/dist/read-only-facade-CHCKSEPD.js +8 -0
- package/dist/register-VAHONCID.js +23 -0
- package/dist/registry-7MLVD3VO.js +19 -0
- package/dist/registry-EPKPD5SM.js +18 -0
- package/dist/registry-P5T7PS2U.js +9 -0
- package/dist/request-withdrawal-TI3A5WPS.js +31 -0
- package/dist/reveal-DIBHLUZX.js +38 -0
- package/dist/reveal-DIBHLUZX.js.map +1 -0
- package/dist/revoke-FDRD6GRW.js +24 -0
- package/dist/satellites/index.js +1 -1
- package/dist/sealed-record/index.js +12 -12
- package/dist/seed-Q6M2IZFL.js +231 -0
- package/dist/seed-Q6M2IZFL.js.map +1 -0
- package/dist/session/index.js +9 -9
- package/dist/shadow/index.js +2 -2
- package/dist/signer-MUWEIUI6.js +25 -0
- package/dist/snapshots/index.js +10 -10
- package/dist/stale-OSQ7J3AA.js +29 -0
- package/dist/storage-MVFCGEQE.js +23 -0
- package/dist/store-coordination-provider-64OEZFGS.js +142 -0
- package/dist/sync/index.js +9 -9
- package/dist/team/index.js +15 -15
- package/dist/tiers/index.js +14 -10
- package/dist/to/index.js +1 -2
- package/dist/tx/index.js +3 -3
- package/dist/util/index.js +1 -1
- package/dist/verify-ZASTRNPR.js +140 -0
- package/dist/verify-ZASTRNPR.js.map +1 -0
- package/dist/via/blob/active.d.ts +34 -0
- package/dist/via/blob/binding.d.ts +86 -0
- package/dist/via/blob/index.d.ts +34 -0
- package/dist/via/classified/active.d.ts +3 -0
- package/dist/via/classified/binding.d.ts +83 -0
- package/dist/via/classified/config-drift.d.ts +34 -0
- package/dist/via/classified/descriptor.d.ts +66 -0
- package/dist/via/classified/errors.d.ts +19 -0
- package/dist/via/classified/guards.d.ts +23 -0
- package/dist/via/classified/index.d.ts +11 -0
- package/dist/via/classified/presets.d.ts +65 -0
- package/dist/via/classified/resolve.d.ts +9 -0
- package/dist/via/classified/strategy.d.ts +11 -0
- package/dist/via/classified/validators.d.ts +3 -0
- package/dist/via/classified/write.d.ts +4 -0
- package/dist/via/computed/binding.d.ts +34 -0
- package/dist/via/computed/descriptor.d.ts +35 -0
- package/dist/via/i18n/active.d.ts +28 -0
- package/dist/via/i18n/binding.d.ts +36 -0
- package/dist/via/i18n/core.d.ts +267 -0
- package/dist/via/i18n/densify.d.ts +24 -0
- package/dist/via/i18n/dictionary.d.ts +200 -0
- package/dist/via/i18n/index.d.ts +21 -0
- package/dist/via/i18n/policy.d.ts +44 -0
- package/dist/via/i18n/script.d.ts +26 -0
- package/dist/via/i18n/strategy.d.ts +13 -0
- package/dist/via/lookup/active.d.ts +19 -0
- package/dist/via/lookup/binding.d.ts +99 -0
- package/dist/via/lookup/descriptor.d.ts +123 -0
- package/dist/via/lookup/handle.d.ts +220 -0
- package/dist/via/lookup/index.d.ts +17 -0
- package/dist/via/lookup/registry.d.ts +228 -0
- package/dist/via/lookup/snapshot.d.ts +67 -0
- package/dist/via/money/arith.d.ts +68 -0
- package/dist/via/money/binding.d.ts +21 -0
- package/dist/via/money/branded.d.ts +61 -0
- package/dist/via/money/descriptor.d.ts +73 -0
- package/dist/via/money/fixed-point.d.ts +51 -0
- package/dist/via/money/index.d.ts +15 -0
- package/dist/via/money/iso4217.d.ts +6 -0
- package/dist/via/money/money-reducer.d.ts +33 -0
- package/dist/via/money/normalize.d.ts +105 -0
- package/dist/via/money/paths.d.ts +61 -0
- package/dist/via/money/where.d.ts +127 -0
- package/dist/walk-SVNDIZ62.js +241 -0
- package/dist/with/index.js +11 -11
- package/dist/with-audit/attestation/active.d.ts +10 -0
- package/dist/with-audit/attestation/index.d.ts +16 -0
- package/dist/with-audit/attestation/issue.d.ts +29 -0
- package/dist/with-audit/attestation/revoke.d.ts +15 -0
- package/dist/with-audit/attestation/signer.d.ts +33 -0
- package/dist/with-audit/attestation/strategy.d.ts +44 -0
- package/dist/with-audit/attestation/vault-facade.d.ts +62 -0
- package/dist/with-audit/consent/active.d.ts +14 -0
- package/dist/with-audit/consent/consent.d.ts +114 -0
- package/dist/with-audit/consent/index.d.ts +14 -0
- package/dist/with-audit/consent/strategy.d.ts +36 -0
- package/dist/with-audit/forget/active.d.ts +31 -0
- package/dist/with-audit/forget/index.d.ts +28 -0
- package/dist/with-audit/forget/purge-scope.d.ts +54 -0
- package/dist/with-audit/forget/strategy.d.ts +199 -0
- package/dist/with-audit/forget/subject-index.d.ts +83 -0
- package/dist/with-audit/guards/executor.d.ts +26 -0
- package/dist/with-audit/guards/immutable-guard.d.ts +63 -0
- package/dist/with-audit/guards/index.d.ts +10 -0
- package/dist/with-audit/guards/read-only-facade.d.ts +31 -0
- package/dist/with-audit/guards/registry.d.ts +83 -0
- package/dist/with-audit/guards/transition-guard.d.ts +82 -0
- package/dist/with-audit/guards/types.d.ts +134 -0
- package/dist/with-audit/guards/with-guard.d.ts +15 -0
- package/dist/with-audit/periods/active.d.ts +11 -0
- package/dist/with-audit/periods/index.d.ts +18 -0
- package/dist/with-audit/periods/periods.d.ts +417 -0
- package/dist/with-audit/periods/strategy.d.ts +32 -0
- package/dist/with-audit/periods/vault-facade.d.ts +95 -0
- package/dist/with-audit/portability/active.d.ts +11 -0
- package/dist/with-audit/portability/export-accessible.d.ts +46 -0
- package/dist/with-audit/portability/index.d.ts +18 -0
- package/dist/with-audit/portability/request-withdrawal.d.ts +85 -0
- package/dist/with-audit/portability/strategy.d.ts +31 -0
- package/dist/with-audit/portability/withdraw-accessible.d.ts +82 -0
- package/dist/with-audit/sealed-record/active.d.ts +9 -0
- package/dist/with-audit/sealed-record/index.d.ts +55 -0
- package/dist/with-audit/sealed-record/strategy.d.ts +34 -0
- package/dist/with-audit/sealed-record/types.d.ts +27 -0
- package/dist/with-audit/tiers/active.d.ts +9 -0
- package/dist/with-audit/tiers/index.d.ts +394 -0
- package/dist/with-audit/tiers/strategy.d.ts +36 -0
- package/dist/with-cargo/active.d.ts +11 -0
- package/dist/with-cargo/adopt-partition.d.ts +81 -0
- package/dist/with-cargo/decrypt-partition.d.ts +19 -0
- package/dist/with-cargo/describe-extraction.d.ts +41 -0
- package/dist/with-cargo/extract-partition.d.ts +155 -0
- package/dist/with-cargo/index.d.ts +33 -0
- package/dist/with-cargo/strategy.d.ts +30 -0
- package/dist/with-cargo/vault-diff.d.ts +144 -0
- package/dist/with-cargo/walk-closure.d.ts +67 -0
- package/dist/with-commit/crdt/active.d.ts +25 -0
- package/dist/with-commit/crdt/crdt.d.ts +42 -0
- package/dist/with-commit/crdt/index.d.ts +16 -0
- package/dist/with-commit/crdt/strategy.d.ts +25 -0
- package/dist/with-commit/history/active.d.ts +40 -0
- package/dist/with-commit/history/diff.d.ts +23 -0
- package/dist/with-commit/history/history.d.ts +73 -0
- package/dist/with-commit/history/index.d.ts +30 -0
- package/dist/with-commit/history/ledger/constants.d.ts +37 -0
- package/dist/with-commit/history/ledger/entry.d.ts +195 -0
- package/dist/with-commit/history/ledger/hash.d.ts +30 -0
- package/dist/with-commit/history/ledger/index.d.ts +19 -0
- package/dist/with-commit/history/ledger/patch.d.ts +99 -0
- package/dist/with-commit/history/ledger/store.d.ts +356 -0
- package/dist/with-commit/history/strategy.d.ts +136 -0
- package/dist/with-commit/history/time-machine.d.ts +202 -0
- package/dist/with-commit/numbering/descriptor.d.ts +27 -0
- package/dist/with-commit/numbering/index.d.ts +69 -0
- package/dist/with-commit/sequence/active.d.ts +10 -0
- package/dist/with-commit/sequence/index.d.ts +150 -0
- package/dist/with-commit/sequence/strategy.d.ts +26 -0
- package/dist/with-commit/tx/active.d.ts +27 -0
- package/dist/with-commit/tx/dry-run.d.ts +29 -0
- package/dist/with-commit/tx/elevated-handle.d.ts +59 -0
- package/dist/with-commit/tx/index.d.ts +13 -0
- package/dist/with-commit/tx/invariants.d.ts +68 -0
- package/dist/with-commit/tx/strategy.d.ts +23 -0
- package/dist/with-commit/tx/transaction.d.ts +212 -0
- package/dist/with-fork/archive/engine.d.ts +71 -0
- package/dist/with-fork/archive/index.d.ts +23 -0
- package/dist/with-fork/shadow/active.d.ts +6 -0
- package/dist/with-fork/shadow/index.d.ts +14 -0
- package/dist/with-fork/shadow/strategy.d.ts +28 -0
- package/dist/with-fork/shadow/vault-frame.d.ts +93 -0
- package/dist/with-fork/snapshots/active.d.ts +20 -0
- package/dist/with-fork/snapshots/engine.d.ts +36 -0
- package/dist/with-fork/snapshots/index.d.ts +5 -0
- package/dist/with-fork/snapshots/noydb-facade.d.ts +64 -0
- package/dist/with-fork/snapshots/policy.d.ts +23 -0
- package/dist/with-fork/snapshots/scheduler.d.ts +34 -0
- package/dist/with-fork/snapshots/strategy.d.ts +48 -0
- package/dist/with-formula/computed/index.d.ts +48 -0
- package/dist/with-formula/computed/lazy.d.ts +13 -0
- package/dist/with-formula/derivations/executor.d.ts +61 -0
- package/dist/with-formula/derivations/fanout-sidecar.d.ts +75 -0
- package/dist/with-formula/derivations/index.d.ts +6 -0
- package/dist/with-formula/derivations/registry.d.ts +67 -0
- package/dist/with-formula/derivations/stale.d.ts +39 -0
- package/dist/with-formula/derivations/strategy-hash.d.ts +1 -0
- package/dist/with-formula/derivations/types.d.ts +248 -0
- package/dist/with-formula/derivations/with-derivation.d.ts +10 -0
- package/dist/with-formula/derivations/with-rollup.d.ts +34 -0
- package/dist/with-formula/materialized-views/dependency-analyzer.d.ts +58 -0
- package/dist/with-formula/materialized-views/executor.d.ts +80 -0
- package/dist/with-formula/materialized-views/index.d.ts +11 -0
- package/dist/with-formula/materialized-views/query-hash.d.ts +23 -0
- package/dist/with-formula/materialized-views/registry.d.ts +99 -0
- package/dist/with-formula/materialized-views/stale.d.ts +113 -0
- package/dist/with-formula/materialized-views/types.d.ts +318 -0
- package/dist/with-formula/materialized-views/with-materialized-view.d.ts +24 -0
- package/dist/with-formula/overlay-views/index.d.ts +5 -0
- package/dist/with-formula/overlay-views/registry.d.ts +42 -0
- package/dist/with-formula/overlay-views/types.d.ts +97 -0
- package/dist/with-formula/overlay-views/virtual-collection.d.ts +90 -0
- package/dist/with-formula/overlay-views/with-overlayed-view.d.ts +9 -0
- package/dist/with-lookup/aggregate/active.d.ts +33 -0
- package/dist/with-lookup/aggregate/aggregation.d.ts +166 -0
- package/dist/with-lookup/aggregate/canonical-key.d.ts +16 -0
- package/dist/with-lookup/aggregate/groupby.d.ts +280 -0
- package/dist/with-lookup/aggregate/index.d.ts +23 -0
- package/dist/with-lookup/aggregate/reducers.d.ts +257 -0
- package/dist/with-lookup/aggregate/strategy.d.ts +59 -0
- package/dist/with-lookup/embeddings/cosine.d.ts +2 -0
- package/dist/with-lookup/embeddings/descriptor.d.ts +8 -0
- package/dist/with-lookup/embeddings/index.d.ts +4 -0
- package/dist/with-lookup/embeddings/vec-id.d.ts +47 -0
- package/dist/with-lookup/embeddings/vector-set.d.ts +19 -0
- package/dist/with-lookup/indexing/active.d.ts +30 -0
- package/dist/with-lookup/indexing/collection-facade.d.ts +157 -0
- package/dist/with-lookup/indexing/eager-indexes.d.ts +122 -0
- package/dist/with-lookup/indexing/index.d.ts +27 -0
- package/dist/with-lookup/indexing/lazy-builder.d.ts +102 -0
- package/dist/with-lookup/indexing/persisted-indexes.d.ts +229 -0
- package/dist/with-lookup/indexing/strategy.d.ts +56 -0
- package/dist/with-lookup/indexing/unique-constraints.d.ts +74 -0
- package/dist/with-lookup/search/active.d.ts +10 -0
- package/dist/with-lookup/search/build-docs.d.ts +15 -0
- package/dist/with-lookup/search/collection-facade.d.ts +163 -0
- package/dist/with-lookup/search/fuse.d.ts +22 -0
- package/dist/with-lookup/search/index-store.d.ts +19 -0
- package/dist/with-lookup/search/index.d.ts +19 -0
- package/dist/with-lookup/search/inverted-index.d.ts +47 -0
- package/dist/with-lookup/search/persisted-index-store.d.ts +121 -0
- package/dist/with-lookup/search/retrieve-types.d.ts +29 -0
- package/dist/with-lookup/search/scan.d.ts +28 -0
- package/dist/with-lookup/search/segment.d.ts +15 -0
- package/dist/with-lookup/search/serialize.d.ts +4 -0
- package/dist/with-lookup/search/snippet.d.ts +5 -0
- package/dist/with-lookup/search/strategy.d.ts +41 -0
- package/dist/with-lookup/search/tokenize.d.ts +12 -0
- package/dist/with-party/auth-introspection/index.d.ts +44 -0
- package/dist/with-party/broker/active.d.ts +23 -0
- package/dist/with-party/broker/index.d.ts +28 -0
- package/dist/with-party/broker/seed.d.ts +77 -0
- package/dist/with-party/custody/active.d.ts +10 -0
- package/dist/with-party/custody/index.d.ts +69 -0
- package/dist/with-party/custody/liberate.d.ts +64 -0
- package/dist/with-party/custody/strategy.d.ts +48 -0
- package/dist/with-party/directory/index.d.ts +11 -0
- package/dist/with-party/directory/public-envelope/index.d.ts +12 -0
- package/dist/with-party/directory/public-envelope/schema.d.ts +24 -0
- package/dist/with-party/directory/public-envelope/storage.d.ts +59 -0
- package/dist/with-party/directory/public-envelope/types.d.ts +80 -0
- package/dist/with-party/directory/storage.d.ts +33 -0
- package/dist/with-party/directory/types.d.ts +43 -0
- package/dist/with-party/directory/user-envelope/api.d.ts +201 -0
- package/dist/with-party/directory/user-envelope/index.d.ts +12 -0
- package/dist/with-party/directory/user-envelope/storage.d.ts +54 -0
- package/dist/with-party/directory/visibility.d.ts +47 -0
- package/dist/with-party/policy/engine.d.ts +60 -0
- package/dist/with-party/policy/index.d.ts +15 -0
- package/dist/with-party/policy/noydb-facade.d.ts +39 -0
- package/dist/with-party/policy/presets.d.ts +38 -0
- package/dist/with-party/policy/storage.d.ts +31 -0
- package/dist/with-party/session/active.d.ts +34 -0
- package/dist/with-party/session/dev-unlock.d.ts +128 -0
- package/dist/with-party/session/index.d.ts +23 -0
- package/dist/with-party/session/session-policy.d.ts +92 -0
- package/dist/with-party/session/session.d.ts +131 -0
- package/dist/with-party/session/strategy.d.ts +42 -0
- package/dist/with-party/session/unlock-state.d.ts +47 -0
- package/dist/with-party/sync/index.d.ts +31 -0
- package/dist/with-party/tab-coordination.d.ts +73 -0
- package/dist/with-party/tab-write-relay.d.ts +39 -0
- package/dist/with-party/team/active.d.ts +13 -0
- package/dist/with-party/team/authenticators.d.ts +95 -0
- package/dist/with-party/team/deed.d.ts +97 -0
- package/dist/with-party/team/delegation.d.ts +88 -0
- package/dist/with-party/team/index.d.ts +38 -0
- package/dist/with-party/team/keyring.d.ts +318 -0
- package/dist/with-party/team/magic-link-grant.d.ts +152 -0
- package/dist/with-party/team/managed-passphrase.d.ts +280 -0
- package/dist/with-party/team/noydb-facade.d.ts +484 -0
- package/dist/with-party/team/peer-recover.d.ts +81 -0
- package/dist/with-party/team/presence.d.ts +81 -0
- package/dist/with-party/team/recovery.d.ts +191 -0
- package/dist/with-party/team/reserved-secret-collections.d.ts +41 -0
- package/dist/with-party/team/rotate-recover.d.ts +275 -0
- package/dist/with-party/team/shamir-recovery-provider.d.ts +15 -0
- package/dist/with-party/team/strategy.d.ts +9 -0
- package/dist/with-party/team/sync-active.d.ts +33 -0
- package/dist/with-party/team/sync-credentials.d.ts +113 -0
- package/dist/with-party/team/sync-strategy.d.ts +67 -0
- package/dist/with-party/team/sync-transaction.d.ts +39 -0
- package/dist/with-party/team/sync.d.ts +174 -0
- package/dist/with-party/team/tiers.d.ts +39 -0
- package/dist/with-party/team/wrapped-deks.d.ts +86 -0
- package/dist/with-pod/backup.d.ts +74 -0
- package/dist/with-pod/bundle.d.ts +414 -0
- package/dist/with-pod/format.d.ts +203 -0
- package/dist/with-pod/index.d.ts +20 -0
- package/dist/with-pod/pod-store.d.ts +54 -0
- package/dist/with-pod/ulid.d.ts +64 -0
- package/dist/with-shape/blobs/blob-compaction.d.ts +170 -0
- package/dist/with-shape/blobs/blob-intent.d.ts +153 -0
- package/dist/with-shape/blobs/blob-set.d.ts +1286 -0
- package/dist/with-shape/blobs/export-blobs.d.ts +110 -0
- package/dist/with-shape/blobs/import-external.d.ts +50 -0
- package/dist/with-shape/blobs/mime-magic.d.ts +48 -0
- package/dist/with-shape/blobs/object-projection.d.ts +70 -0
- package/dist/with-shape/introspection/describe.d.ts +237 -0
- package/dist/with-shape/introspection/field-meta.d.ts +61 -0
- package/dist/with-shape/introspection/fields.d.ts +14 -0
- package/dist/with-shape/introspection/index.d.ts +12 -0
- package/dist/with-shape/introspection/json-schema.d.ts +13 -0
- package/dist/with-shape/introspection/meta.d.ts +22 -0
- package/dist/with-shape/introspection/projection.d.ts +13 -0
- package/dist/with-shape/introspection/types.d.ts +154 -0
- package/dist/with-shape/introspection/walk.d.ts +50 -0
- package/dist/with-shape/links/lazy-handle.d.ts +36 -0
- package/dist/with-shape/links/link-set.d.ts +67 -0
- package/dist/with-shape/links/names.d.ts +65 -0
- package/dist/with-shape/links/vault-facade.d.ts +211 -0
- package/dist/with-shape/persisted-schemas/canonicalize.d.ts +11 -0
- package/dist/with-shape/persisted-schemas/derive.d.ts +29 -0
- package/dist/with-shape/persisted-schemas/index.d.ts +21 -0
- package/dist/with-shape/persisted-schemas/register.d.ts +66 -0
- package/dist/with-shape/persisted-schemas/storage.d.ts +61 -0
- package/dist/with-shape/persisted-schemas/types.d.ts +54 -0
- package/dist/with-shape/satellites/dead-filter.d.ts +21 -0
- package/dist/with-shape/satellites/declare.d.ts +60 -0
- package/dist/with-shape/satellites/existence.d.ts +5 -0
- package/dist/with-shape/satellites/fanout.d.ts +38 -0
- package/dist/with-shape/satellites/forget.d.ts +47 -0
- package/dist/with-shape/satellites/index.d.ts +3 -0
- package/dist/with-shape/satellites/joined.d.ts +19 -0
- package/dist/with-shape/satellites/marker.d.ts +10 -0
- package/dist/with-shape/satellites/migrate-cek.d.ts +26 -0
- package/dist/with-shape/satellites/post-register.d.ts +6 -0
- package/dist/with-shape/satellites/proxy.d.ts +37 -0
- package/dist/with-shape/satellites/raw-target.d.ts +14 -0
- package/dist/with-shape/satellites/registry.d.ts +19 -0
- package/dist/with-shape/satellites/types.d.ts +37 -0
- package/dist/with-shape/satellites/validate.d.ts +17 -0
- package/dist/with-shape/schema-update/client-registry.d.ts +35 -0
- package/dist/with-shape/schema-update/cutover.d.ts +5 -0
- package/dist/with-shape/schema-update/delta.d.ts +2 -0
- package/dist/with-shape/schema-update/dispatch.d.ts +3 -0
- package/dist/with-shape/schema-update/fence-controller.d.ts +62 -0
- package/dist/with-shape/schema-update/fence-watcher.d.ts +37 -0
- package/dist/with-shape/schema-update/fence.d.ts +15 -0
- package/dist/with-shape/schema-update/gate.d.ts +16 -0
- package/dist/with-shape/schema-update/index.d.ts +6 -0
- package/dist/with-shape/schema-update/store-coordination-provider.d.ts +29 -0
- package/dist/with-shape/schema-update/strategies.d.ts +12 -0
- package/dist/with-shape/schema-update/types.d.ts +53 -0
- package/dist/with-store/index.d.ts +15 -0
- package/dist/with-store/lazy/active.d.ts +12 -0
- package/dist/with-store/lazy/index.d.ts +14 -0
- package/dist/with-store/lazy/strategy.d.ts +9 -0
- package/dist/with-store/route-store.d.ts +259 -0
- package/dist/with-store/store-middleware.d.ts +189 -0
- package/dist/withdraw-accessible-WZIEVWSR.js +28 -0
- package/package.json +47 -55
- package/dist/adapter/index.d.ts +0 -5
- package/dist/adapter/index.js +0 -15
- package/dist/aggregate/index.d.ts +0 -42
- package/dist/api-JDWL67WL.js +0 -20
- package/dist/as/index.d.ts +0 -7
- package/dist/at/index.d.ts +0 -5
- package/dist/attestation/index.d.ts +0 -20
- package/dist/backup-WRGNTGJF.js +0 -225
- package/dist/backup-WRGNTGJF.js.map +0 -1
- package/dist/blobs/index.d.ts +0 -44
- package/dist/bundle/index.d.ts +0 -122
- package/dist/bundle-DzWtVw7w.d.ts +0 -548
- package/dist/by/index.d.ts +0 -1
- package/dist/cargo/index.d.ts +0 -9
- package/dist/chunk-25G7PUTA.js +0 -235
- package/dist/chunk-26FSVNBL.js +0 -34
- package/dist/chunk-2PJB6H3H.js +0 -167
- package/dist/chunk-2PJB6H3H.js.map +0 -1
- package/dist/chunk-37JZR7CY.js +0 -91
- package/dist/chunk-3KBK5LU4.js +0 -117
- package/dist/chunk-3YKBGS3I.js +0 -686
- package/dist/chunk-3YKBGS3I.js.map +0 -1
- package/dist/chunk-44DV37ZV.js +0 -75
- 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 +0 -275
- package/dist/chunk-4VDFUBTS.js.map +0 -1
- package/dist/chunk-55LSDABW.js +0 -94
- package/dist/chunk-56JB2BGI.js +0 -13003
- package/dist/chunk-56JB2BGI.js.map +0 -1
- package/dist/chunk-5GQE5IDB.js +0 -513
- package/dist/chunk-5GQE5IDB.js.map +0 -1
- package/dist/chunk-5HRJQSKN.js +0 -202
- package/dist/chunk-5HZULLHE.js +0 -404
- package/dist/chunk-5JQMX2EH.js +0 -50
- package/dist/chunk-5UOPIPZC.js +0 -95
- package/dist/chunk-5YBUFCFF.js +0 -135
- package/dist/chunk-62APEMF3.js +0 -280
- package/dist/chunk-62APEMF3.js.map +0 -1
- package/dist/chunk-6P5AJ2ZS.js +0 -120
- package/dist/chunk-6P5AJ2ZS.js.map +0 -1
- package/dist/chunk-6PALJTC2.js +0 -430
- package/dist/chunk-6PALJTC2.js.map +0 -1
- package/dist/chunk-6S7T6WC4.js +0 -111
- package/dist/chunk-6S7T6WC4.js.map +0 -1
- package/dist/chunk-6Z435B6N.js +0 -1656
- package/dist/chunk-6Z435B6N.js.map +0 -1
- package/dist/chunk-723XB5NX.js +0 -86
- package/dist/chunk-7CZ6YXMO.js +0 -124
- package/dist/chunk-7KTL4RHZ.js +0 -120
- package/dist/chunk-7KTL4RHZ.js.map +0 -1
- package/dist/chunk-7TAV3BFQ.js +0 -766
- package/dist/chunk-7TAV3BFQ.js.map +0 -1
- package/dist/chunk-BASCPHNM.js +0 -380
- package/dist/chunk-BASCPHNM.js.map +0 -1
- package/dist/chunk-BGIZAFY7.js +0 -1
- package/dist/chunk-BJ2XF2RC.js +0 -823
- package/dist/chunk-BM6E4MUT.js +0 -881
- package/dist/chunk-BM6E4MUT.js.map +0 -1
- package/dist/chunk-BTFTHF6Q.js +0 -42
- package/dist/chunk-C4NOLA5X.js +0 -132
- package/dist/chunk-C4NOLA5X.js.map +0 -1
- package/dist/chunk-CHK5VVMI.js +0 -155
- package/dist/chunk-DCVVCJVB.js +0 -45
- package/dist/chunk-EU7HDMT3.js +0 -54
- package/dist/chunk-F3EKFGUS.js +0 -99
- package/dist/chunk-FCOZ7DEC.js +0 -355
- package/dist/chunk-FCOZ7DEC.js.map +0 -1
- package/dist/chunk-FWART3VA.js +0 -205
- package/dist/chunk-FZK3JJJK.js +0 -150
- package/dist/chunk-GDOOG5YQ.js +0 -382
- package/dist/chunk-GLVXQU3E.js +0 -155
- package/dist/chunk-HU55NPHZ.js +0 -80
- package/dist/chunk-I6JJ6VJS.js +0 -97
- package/dist/chunk-I6URUNTD.js +0 -59
- package/dist/chunk-IARAK3PK.js +0 -14
- package/dist/chunk-II6DLDZM.js +0 -30
- package/dist/chunk-J5YUA6JB.js +0 -23
- package/dist/chunk-J7OH6R4K.js +0 -49
- package/dist/chunk-K2WCO3NX.js +0 -1
- package/dist/chunk-L6Q5NA22.js +0 -40
- package/dist/chunk-LFGJG4XZ.js +0 -30
- package/dist/chunk-M3OYTM5Z.js +0 -85
- package/dist/chunk-MOQ5M46U.js +0 -209
- package/dist/chunk-NTPWQH4S.js +0 -589
- package/dist/chunk-OJ64XMPJ.js +0 -1434
- package/dist/chunk-OJ64XMPJ.js.map +0 -1
- package/dist/chunk-OWGAXPRE.js +0 -129
- package/dist/chunk-P2PEPSPK.js +0 -230
- package/dist/chunk-P6TZ3IVN.js +0 -453
- package/dist/chunk-P6TZ3IVN.js.map +0 -1
- package/dist/chunk-PAJCRV7O.js +0 -123
- package/dist/chunk-PMMV5SQC.js +0 -416
- package/dist/chunk-PMMV5SQC.js.map +0 -1
- package/dist/chunk-PPPZIBKY.js +0 -261
- package/dist/chunk-PPPZIBKY.js.map +0 -1
- package/dist/chunk-PVC2FBCQ.js +0 -45
- package/dist/chunk-PYIUDUGS.js +0 -36
- package/dist/chunk-QABECTNN.js +0 -255
- package/dist/chunk-QYMMMKOO.js +0 -164
- package/dist/chunk-R4IVPJHN.js +0 -130
- package/dist/chunk-REWTMYSF.js +0 -32
- package/dist/chunk-REWTMYSF.js.map +0 -1
- package/dist/chunk-RNYDHIQL.js +0 -367
- package/dist/chunk-RUIMKQTA.js +0 -23
- package/dist/chunk-RUIMKQTA.js.map +0 -1
- package/dist/chunk-TCGVRKOS.js +0 -367
- package/dist/chunk-TIAYXOEI.js +0 -99
- package/dist/chunk-TQ3REHVF.js +0 -95
- package/dist/chunk-TQ3REHVF.js.map +0 -1
- package/dist/chunk-TUL5YQWF.js +0 -777
- package/dist/chunk-U7LV2DUN.js +0 -74
- package/dist/chunk-UB3XHGFG.js +0 -181
- package/dist/chunk-UB3XHGFG.js.map +0 -1
- package/dist/chunk-UMH35AQV.js +0 -70
- package/dist/chunk-UWZ7O4NR.js +0 -29
- package/dist/chunk-V76PHWLE.js +0 -41
- package/dist/chunk-VFQOE76I.js +0 -69
- package/dist/chunk-VIWOGJ2O.js +0 -71
- package/dist/chunk-VK6OC22R.js +0 -37
- package/dist/chunk-VK6OC22R.js.map +0 -1
- package/dist/chunk-VVLOWY74.js +0 -150
- package/dist/chunk-VVLOWY74.js.map +0 -1
- package/dist/chunk-W3JABOVB.js +0 -53
- package/dist/chunk-W3JABOVB.js.map +0 -1
- package/dist/chunk-WPNP3NF5.js +0 -1221
- package/dist/chunk-WPNP3NF5.js.map +0 -1
- package/dist/chunk-X5QZAJDB.js +0 -59
- package/dist/chunk-X6VNIRHS.js +0 -239
- package/dist/chunk-X6VNIRHS.js.map +0 -1
- package/dist/chunk-XBPUVQDO.js +0 -664
- package/dist/chunk-XBPUVQDO.js.map +0 -1
- package/dist/chunk-XW5LZYV4.js +0 -21
- package/dist/chunk-YTCCC6NG.js +0 -320
- package/dist/chunk-YTCCC6NG.js.map +0 -1
- package/dist/classified/index.d.ts +0 -17
- package/dist/collection-facade-EJVIN2BY.js +0 -39
- package/dist/computed-6FOFXQPE.js +0 -11
- package/dist/config-drift-RFEVGBKR.js +0 -24
- package/dist/config-drift-RFEVGBKR.js.map +0 -1
- package/dist/consent/index.d.ts +0 -23
- package/dist/crdt/index.d.ts +0 -34
- package/dist/dead-filter-RHMNYOXP.js +0 -28
- package/dist/decrypt-partition-IHtxEnTi.d.ts +0 -21
- package/dist/delegation-IHXOASHV.js +0 -25
- package/dist/derivations/index.d.ts +0 -70
- package/dist/derive-CD3ZVIXK.js +0 -21
- package/dist/describe/index.d.ts +0 -1
- package/dist/describe/index.js +0 -1
- package/dist/describe-C6iHNlqJ.d.ts +0 -162
- package/dist/dev-unlock-wgQ7Ci5I.d.ts +0 -263
- package/dist/discriminant-BN9REW3o.d.ts +0 -60
- package/dist/enclave-KGEUW2GL.js +0 -123
- 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/fanout-sidecar-NBDKKCHT.js +0 -74
- package/dist/find-OH4BEULF.js +0 -11
- package/dist/forget/index.d.ts +0 -36
- package/dist/guards/index.d.ts +0 -35
- package/dist/hash-CwHnoKyW.d.ts +0 -72
- package/dist/history/index.d.ts +0 -61
- package/dist/i18n/index.d.ts +0 -37
- package/dist/in/index.d.ts +0 -5
- package/dist/index-B9QdHytu.d.ts +0 -123
- package/dist/index-CTvUp94-.d.ts +0 -123
- package/dist/index-Dn5GzPg_.d.ts +0 -22138
- package/dist/indexing/index.d.ts +0 -39
- package/dist/issue-AEOL6RXA.js +0 -19
- package/dist/kernel/index.d.ts +0 -32
- package/dist/kernel/index.js +0 -59
- package/dist/lazy/index.d.ts +0 -21
- package/dist/ledger-3LR3YO2W.js +0 -42
- package/dist/liberate-XSEPRWEA.js +0 -24
- package/dist/link-set-NSUIX6BR.js +0 -31
- package/dist/materialized-views/index.d.ts +0 -173
- package/dist/mime-magic-CYbFNQ4h.d.ts +0 -103
- package/dist/noydb-POVTIVQ6.js +0 -62
- package/dist/on/index.d.ts +0 -5
- package/dist/overlay-views/index.d.ts +0 -98
- package/dist/periods/index.d.ts +0 -20
- package/dist/pod/index.d.ts +0 -63
- package/dist/policy-Y7HL2KGA.js +0 -41
- package/dist/portability/index.d.ts +0 -20
- package/dist/post-register-KOFRTCDD.js +0 -55
- package/dist/post-register-KOFRTCDD.js.map +0 -1
- package/dist/public-envelope-NC7SPNMV.js +0 -32
- package/dist/query/index.d.ts +0 -5
- package/dist/read-only-facade-5ADRJVTM.js +0 -8
- 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/reveal-5Y777N5Q.js +0 -38
- package/dist/reveal-5Y777N5Q.js.map +0 -1
- package/dist/revoke-ZFETCLYV.js +0 -24
- package/dist/revoke-ZFETCLYV.js.map +0 -1
- package/dist/satellites/index.d.ts +0 -5
- package/dist/sealed-record/index.d.ts +0 -69
- package/dist/session/index.d.ts +0 -44
- package/dist/shadow/index.d.ts +0 -15
- package/dist/signer-GAIMQQ2J.js +0 -25
- package/dist/signer-GAIMQQ2J.js.map +0 -1
- package/dist/snapshots/index.d.ts +0 -26
- package/dist/stale-77LP2EEF.js +0 -14
- package/dist/stale-77LP2EEF.js.map +0 -1
- package/dist/storage-KEXIXLGM.js +0 -23
- package/dist/storage-KEXIXLGM.js.map +0 -1
- package/dist/store-coordination-provider-NJDDZ264.js +0 -142
- package/dist/subject-index-O75wKshW.d.ts +0 -362
- package/dist/sync/index.d.ts +0 -41
- package/dist/team/index.d.ts +0 -155
- package/dist/tiers/index.d.ts +0 -5
- package/dist/to/index.d.ts +0 -5
- package/dist/transition-guard-D5RLJv8S.d.ts +0 -165
- package/dist/tx/index.d.ts +0 -35
- package/dist/ui/index.d.ts +0 -1
- package/dist/ulid-DRH25k3y.d.ts +0 -66
- package/dist/util/index.d.ts +0 -79
- package/dist/validators-C3lrVF-c.d.ts +0 -101
- package/dist/vault-diff-_LSIcOMv.d.ts +0 -147
- package/dist/verify-CAYGXYNO.js +0 -139
- package/dist/verify-CAYGXYNO.js.map +0 -1
- package/dist/walk-SMAE4IEI.js +0 -241
- package/dist/with/index.d.ts +0 -38
- package/dist/with-materialized-view-Xv1-9Bh0.d.ts +0 -27
- package/dist/with-overlayed-view-CuWhq_-C.d.ts +0 -12
- package/dist/with-rollup-K_iwal4b.d.ts +0 -47
- package/dist/withdraw-accessible-Q7BULAN5.js +0 -28
- package/dist/withdraw-accessible-Q7BULAN5.js.map +0 -1
- /package/dist/{adapter/index.js.map → api-ZGS6LCOF.js.map} +0 -0
- /package/dist/{chunk-VIWOGJ2O.js.map → chunk-3B5VVCNY.js.map} +0 -0
- /package/dist/{chunk-P2PEPSPK.js.map → chunk-3LQ2YKO4.js.map} +0 -0
- /package/dist/{chunk-EU7HDMT3.js.map → chunk-3QCRBHCY.js.map} +0 -0
- /package/dist/{chunk-FZK3JJJK.js.map → chunk-4JBYV75E.js.map} +0 -0
- /package/dist/{chunk-I6JJ6VJS.js.map → chunk-4NXKCLLQ.js.map} +0 -0
- /package/dist/{chunk-VFQOE76I.js.map → chunk-5M5DVGV7.js.map} +0 -0
- /package/dist/{chunk-LFGJG4XZ.js.map → chunk-5YOLBEQ6.js.map} +0 -0
- /package/dist/{chunk-OWGAXPRE.js.map → chunk-6CRIV7DE.js.map} +0 -0
- /package/dist/{chunk-QABECTNN.js.map → chunk-6QTNZJBS.js.map} +0 -0
- /package/dist/{chunk-723XB5NX.js.map → chunk-6T2SCQRU.js.map} +0 -0
- /package/dist/{chunk-PVC2FBCQ.js.map → chunk-7DSTRQIJ.js.map} +0 -0
- /package/dist/{chunk-NTPWQH4S.js.map → chunk-AUSTCW2X.js.map} +0 -0
- /package/dist/{chunk-MOQ5M46U.js.map → chunk-B3HJYUOF.js.map} +0 -0
- /package/dist/{chunk-QYMMMKOO.js.map → chunk-BDVFPG6Y.js.map} +0 -0
- /package/dist/{chunk-PYIUDUGS.js.map → chunk-CAF6WOK7.js.map} +0 -0
- /package/dist/{chunk-5HZULLHE.js.map → chunk-CIE2BASH.js.map} +0 -0
- /package/dist/{chunk-BTFTHF6Q.js.map → chunk-CRI4OUV4.js.map} +0 -0
- /package/dist/{chunk-37JZR7CY.js.map → chunk-DLG74CNB.js.map} +0 -0
- /package/dist/{chunk-TCGVRKOS.js.map → chunk-ERJ7FU55.js.map} +0 -0
- /package/dist/{chunk-FWART3VA.js.map → chunk-EVVGJDRQ.js.map} +0 -0
- /package/dist/{chunk-X5QZAJDB.js.map → chunk-EXK7QRWF.js.map} +0 -0
- /package/dist/{chunk-5HRJQSKN.js.map → chunk-EYZ6IQ6X.js.map} +0 -0
- /package/dist/{chunk-DCVVCJVB.js.map → chunk-F64IRYG3.js.map} +0 -0
- /package/dist/{chunk-BJ2XF2RC.js.map → chunk-FHS2HQSH.js.map} +0 -0
- /package/dist/{chunk-HU55NPHZ.js.map → chunk-GKEWXIV5.js.map} +0 -0
- /package/dist/{chunk-I6URUNTD.js.map → chunk-GTGPO5KW.js.map} +0 -0
- /package/dist/{chunk-5UOPIPZC.js.map → chunk-HB3RFQSC.js.map} +0 -0
- /package/dist/{chunk-F3EKFGUS.js.map → chunk-I6GALP6E.js.map} +0 -0
- /package/dist/{chunk-R4IVPJHN.js.map → chunk-IL6POWCW.js.map} +0 -0
- /package/dist/{chunk-3KBK5LU4.js.map → chunk-IU6SNYX6.js.map} +0 -0
- /package/dist/{chunk-TUL5YQWF.js.map → chunk-J2ZX2XUV.js.map} +0 -0
- /package/dist/{chunk-UWZ7O4NR.js.map → chunk-JKJOGPZN.js.map} +0 -0
- /package/dist/{chunk-V76PHWLE.js.map → chunk-JZUV47FZ.js.map} +0 -0
- /package/dist/{chunk-II6DLDZM.js.map → chunk-K5IMOGHB.js.map} +0 -0
- /package/dist/{chunk-GDOOG5YQ.js.map → chunk-LASZKVMO.js.map} +0 -0
- /package/dist/{chunk-5YBUFCFF.js.map → chunk-NR5LT5RY.js.map} +0 -0
- /package/dist/{chunk-UMH35AQV.js.map → chunk-Q5VNKNE5.js.map} +0 -0
- /package/dist/{chunk-XW5LZYV4.js.map → chunk-QLWMEXCT.js.map} +0 -0
- /package/dist/{chunk-PAJCRV7O.js.map → chunk-QRB7NAOJ.js.map} +0 -0
- /package/dist/{chunk-U7LV2DUN.js.map → chunk-R4ROFEYC.js.map} +0 -0
- /package/dist/{chunk-RNYDHIQL.js.map → chunk-RIX4V2TB.js.map} +0 -0
- /package/dist/{chunk-L6Q5NA22.js.map → chunk-RYCTDFUX.js.map} +0 -0
- /package/dist/{chunk-CHK5VVMI.js.map → chunk-RZ5SVOYR.js.map} +0 -0
- /package/dist/{chunk-TIAYXOEI.js.map → chunk-SLFHQTTW.js.map} +0 -0
- /package/dist/{chunk-J5YUA6JB.js.map → chunk-UNFPPVNI.js.map} +0 -0
- /package/dist/{chunk-25G7PUTA.js.map → chunk-VLFCJYTL.js.map} +0 -0
- /package/dist/{chunk-7CZ6YXMO.js.map → chunk-VN3DBQAU.js.map} +0 -0
- /package/dist/{chunk-J7OH6R4K.js.map → chunk-VZRODIM3.js.map} +0 -0
- /package/dist/{chunk-55LSDABW.js.map → chunk-W22IKJE2.js.map} +0 -0
- /package/dist/{chunk-GLVXQU3E.js.map → chunk-X3YYQWOQ.js.map} +0 -0
- /package/dist/{chunk-M3OYTM5Z.js.map → chunk-YFXZEAYK.js.map} +0 -0
- /package/dist/{chunk-5JQMX2EH.js.map → chunk-ZAJAVEXY.js.map} +0 -0
- /package/dist/{chunk-26FSVNBL.js.map → chunk-ZICD77GM.js.map} +0 -0
- /package/dist/{chunk-IARAK3PK.js.map → chunk-ZUODRVHY.js.map} +0 -0
- /package/dist/{api-JDWL67WL.js.map → collection-facade-TLWIPI76.js.map} +0 -0
- /package/dist/{chunk-BGIZAFY7.js.map → computed-ZIQTYTDI.js.map} +0 -0
- /package/dist/{dead-filter-RHMNYOXP.js.map → dead-filter-ESOBZZP5.js.map} +0 -0
- /package/dist/{chunk-K2WCO3NX.js.map → delegation-W7ZV2322.js.map} +0 -0
- /package/dist/{collection-facade-EJVIN2BY.js.map → derive-H2BJTLUI.js.map} +0 -0
- /package/dist/{computed-6FOFXQPE.js.map → enclave-AP3I5W7O.js.map} +0 -0
- /package/dist/{delegation-IHXOASHV.js.map → executor-KGWTNEQD.js.map} +0 -0
- /package/dist/{derive-CD3ZVIXK.js.map → executor-OVEXR6RT.js.map} +0 -0
- /package/dist/{describe/index.js.map → executor-UNEH5ZYH.js.map} +0 -0
- /package/dist/{enclave-KGEUW2GL.js.map → export-accessible-PCMXSUZS.js.map} +0 -0
- /package/dist/{executor-EUPYHCLU.js.map → extract-partition-SWHFSYJO.js.map} +0 -0
- /package/dist/{fanout-sidecar-NBDKKCHT.js.map → fanout-sidecar-A765THMX.js.map} +0 -0
- /package/dist/{executor-KZ4B3PRT.js.map → find-N6345CNT.js.map} +0 -0
- /package/dist/{executor-MHUM2VZK.js.map → issue-5OKB6I2R.js.map} +0 -0
- /package/dist/{export-accessible-Z3NSZZHN.js.map → ledger-GFBKVPV4.js.map} +0 -0
- /package/dist/{extract-partition-VSKT35JG.js.map → liberate-3VDOT4KO.js.map} +0 -0
- /package/dist/{find-OH4BEULF.js.map → link-set-Z7Q2ASFX.js.map} +0 -0
- /package/dist/{issue-AEOL6RXA.js.map → noydb-ZCJOYBDI.js.map} +0 -0
- /package/dist/{kernel/index.js.map → policy-Z3RUAIY2.js.map} +0 -0
- /package/dist/{ledger-3LR3YO2W.js.map → public-envelope-B4KNWVUA.js.map} +0 -0
- /package/dist/{liberate-XSEPRWEA.js.map → read-only-facade-CHCKSEPD.js.map} +0 -0
- /package/dist/{link-set-NSUIX6BR.js.map → register-VAHONCID.js.map} +0 -0
- /package/dist/{noydb-POVTIVQ6.js.map → registry-7MLVD3VO.js.map} +0 -0
- /package/dist/{policy-Y7HL2KGA.js.map → registry-EPKPD5SM.js.map} +0 -0
- /package/dist/{public-envelope-NC7SPNMV.js.map → registry-P5T7PS2U.js.map} +0 -0
- /package/dist/{read-only-facade-5ADRJVTM.js.map → request-withdrawal-TI3A5WPS.js.map} +0 -0
- /package/dist/{register-3D6R2MKN.js.map → revoke-FDRD6GRW.js.map} +0 -0
- /package/dist/{registry-AI4E46PD.js.map → signer-MUWEIUI6.js.map} +0 -0
- /package/dist/{registry-HSNQ4NBP.js.map → stale-OSQ7J3AA.js.map} +0 -0
- /package/dist/{registry-WIX6QCV5.js.map → storage-MVFCGEQE.js.map} +0 -0
- /package/dist/{store-coordination-provider-NJDDZ264.js.map → store-coordination-provider-64OEZFGS.js.map} +0 -0
- /package/dist/{walk-SMAE4IEI.js.map → walk-SVNDIZ62.js.map} +0 -0
- /package/dist/{request-withdrawal-GU4XS2R5.js.map → withdraw-accessible-WZIEVWSR.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DEFAULT_FRESHNESS_MS,
|
|
3
|
-
PERSONAL_POLICY,
|
|
4
|
-
STRICT_POLICY,
|
|
5
|
-
checkGate,
|
|
6
|
-
describeGate,
|
|
7
|
-
mergePolicy
|
|
8
|
-
} from "./chunk-TCGVRKOS.js";
|
|
9
1
|
import {
|
|
10
2
|
Collection,
|
|
11
3
|
ELEVATION_AUDIT_COLLECTION,
|
|
@@ -22,24 +14,20 @@ import {
|
|
|
22
14
|
describeUserAuth,
|
|
23
15
|
diagramAuthConfig,
|
|
24
16
|
isRefArray,
|
|
17
|
+
isViaFieldSpec,
|
|
25
18
|
memoryStore,
|
|
26
19
|
ref,
|
|
27
20
|
refArray,
|
|
21
|
+
via,
|
|
28
22
|
withArchive
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import {
|
|
31
|
-
META_COLLECTION,
|
|
32
|
-
POLICY_RECORD_ID,
|
|
33
|
-
loadVaultPolicy,
|
|
34
|
-
saveVaultPolicy
|
|
35
|
-
} from "./chunk-BTFTHF6Q.js";
|
|
23
|
+
} from "./chunk-X7QBD67R.js";
|
|
36
24
|
import {
|
|
37
25
|
DELEGATIONS_COLLECTION,
|
|
38
26
|
issueDelegation,
|
|
39
27
|
loadActiveDelegations,
|
|
40
28
|
revokeDelegation
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-SLFHQTTW.js";
|
|
30
|
+
import "./chunk-VYYM3MEN.js";
|
|
43
31
|
import {
|
|
44
32
|
DEFAULT_PUBLIC_ENVELOPE_SCHEMA,
|
|
45
33
|
PUBLIC_ENVELOPE_FIELDS,
|
|
@@ -51,137 +39,170 @@ import {
|
|
|
51
39
|
compileSequenceFormat,
|
|
52
40
|
resolveSequenceKey,
|
|
53
41
|
withSequence
|
|
54
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-EYZ6IQ6X.js";
|
|
55
43
|
import {
|
|
56
44
|
UserApi
|
|
57
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-LASZKVMO.js";
|
|
58
46
|
import {
|
|
59
|
-
|
|
60
|
-
|
|
47
|
+
DEFAULT_FRESHNESS_MS,
|
|
48
|
+
PERSONAL_POLICY,
|
|
49
|
+
STRICT_POLICY,
|
|
50
|
+
checkGate,
|
|
51
|
+
describeGate,
|
|
52
|
+
mergePolicy
|
|
53
|
+
} from "./chunk-ERJ7FU55.js";
|
|
54
|
+
import {
|
|
55
|
+
META_COLLECTION,
|
|
56
|
+
POLICY_RECORD_ID,
|
|
57
|
+
loadVaultPolicy,
|
|
58
|
+
saveVaultPolicy
|
|
59
|
+
} from "./chunk-CRI4OUV4.js";
|
|
61
60
|
import {
|
|
62
61
|
LinkEndpointError
|
|
63
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-IL6POWCW.js";
|
|
64
63
|
import {
|
|
65
64
|
LinkIntegrityError,
|
|
66
65
|
isLinkCollectionName
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import {
|
|
70
|
-
ComputedFieldError,
|
|
71
|
-
evalComputedFields
|
|
72
|
-
} from "./chunk-VK6OC22R.js";
|
|
66
|
+
} from "./chunk-JZUV47FZ.js";
|
|
67
|
+
import "./chunk-ZAJAVEXY.js";
|
|
73
68
|
import {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
rejectWithdrawal,
|
|
78
|
-
requestWithdrawal
|
|
79
|
-
} from "./chunk-QYMMMKOO.js";
|
|
80
|
-
import "./chunk-L6Q5NA22.js";
|
|
69
|
+
persistSchemaIfNeeded
|
|
70
|
+
} from "./chunk-2NVOWNI3.js";
|
|
71
|
+
import "./chunk-RYCTDFUX.js";
|
|
81
72
|
import {
|
|
82
73
|
NO_SEARCH,
|
|
83
74
|
tokenize,
|
|
84
75
|
withSearch
|
|
85
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-OSDB5WW3.js";
|
|
86
77
|
import {
|
|
87
78
|
derivePersistedSchema,
|
|
88
79
|
isZodSchema
|
|
89
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-W22IKJE2.js";
|
|
81
|
+
import {
|
|
82
|
+
ComputedFieldError,
|
|
83
|
+
evalComputedFields
|
|
84
|
+
} from "./chunk-ZJ2AK4V7.js";
|
|
90
85
|
import "./chunk-GYGLAVCX.js";
|
|
86
|
+
import {
|
|
87
|
+
WithdrawalRequestError,
|
|
88
|
+
approveWithdrawal,
|
|
89
|
+
listWithdrawalRequests,
|
|
90
|
+
rejectWithdrawal,
|
|
91
|
+
requestWithdrawal
|
|
92
|
+
} from "./chunk-BDVFPG6Y.js";
|
|
91
93
|
import {
|
|
92
94
|
withCargo
|
|
93
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-ZUODRVHY.js";
|
|
94
96
|
import {
|
|
95
97
|
CustodyApi,
|
|
96
98
|
NO_CARGO,
|
|
97
99
|
NO_CUSTODY,
|
|
98
100
|
withCustody
|
|
99
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-6T2SCQRU.js";
|
|
100
102
|
import {
|
|
101
103
|
DEED_RECORD_ID,
|
|
102
104
|
createDeedOwner,
|
|
103
105
|
isDeedVault,
|
|
104
106
|
liberateVault,
|
|
105
107
|
loadDeedMarker
|
|
106
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-NR5LT5RY.js";
|
|
107
109
|
import {
|
|
108
|
-
|
|
109
|
-
} from "./chunk-
|
|
110
|
+
fuseRetrieval
|
|
111
|
+
} from "./chunk-AURFOK3D.js";
|
|
110
112
|
import {
|
|
111
113
|
diffVault
|
|
112
114
|
} from "./chunk-LB7FD65R.js";
|
|
115
|
+
import {
|
|
116
|
+
withdrawAccessibleData
|
|
117
|
+
} from "./chunk-IU6SNYX6.js";
|
|
113
118
|
import {
|
|
114
119
|
exportAccessibleData
|
|
115
|
-
} from "./chunk-
|
|
116
|
-
import "./chunk-
|
|
120
|
+
} from "./chunk-F64IRYG3.js";
|
|
121
|
+
import "./chunk-6QTNZJBS.js";
|
|
122
|
+
import "./chunk-3QCRBHCY.js";
|
|
123
|
+
import {
|
|
124
|
+
withOverlayedView
|
|
125
|
+
} from "./chunk-CAF6WOK7.js";
|
|
126
|
+
import "./chunk-B3HJYUOF.js";
|
|
127
|
+
import "./chunk-3B5VVCNY.js";
|
|
117
128
|
import {
|
|
118
129
|
isDiscriminant
|
|
119
130
|
} from "./chunk-PY4KJPYU.js";
|
|
120
|
-
import "./chunk-
|
|
131
|
+
import "./chunk-5YOLBEQ6.js";
|
|
121
132
|
import {
|
|
122
133
|
classified,
|
|
123
134
|
luhnCheck
|
|
124
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-EQO2UVP4.js";
|
|
125
136
|
import {
|
|
126
137
|
ClassifiedNeverStoredError,
|
|
127
138
|
ClassifiedValidationError,
|
|
128
139
|
isClassifiedFieldSpec,
|
|
129
140
|
isClassifiedGroup,
|
|
130
141
|
resolveClassifiedFields
|
|
131
|
-
} from "./chunk-
|
|
132
|
-
import "./chunk-
|
|
133
|
-
import "./chunk-
|
|
134
|
-
import "./chunk-BGIZAFY7.js";
|
|
142
|
+
} from "./chunk-MV43JSJF.js";
|
|
143
|
+
import "./chunk-CDUQTA3Z.js";
|
|
144
|
+
import "./chunk-K5IMOGHB.js";
|
|
135
145
|
import {
|
|
136
|
-
|
|
137
|
-
} from "./chunk-
|
|
138
|
-
import "./chunk-
|
|
139
|
-
import "./chunk-J5YUA6JB.js";
|
|
146
|
+
CONSENT_AUDIT_COLLECTION
|
|
147
|
+
} from "./chunk-T2FFWNPK.js";
|
|
148
|
+
import "./chunk-UNFPPVNI.js";
|
|
140
149
|
import {
|
|
141
150
|
PERIODS_COLLECTION
|
|
142
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-DLG74CNB.js";
|
|
143
152
|
import "./chunk-GHVIKOHT.js";
|
|
144
153
|
import {
|
|
145
154
|
immutableGuard,
|
|
146
155
|
transitionGuard,
|
|
147
156
|
withGuard
|
|
148
|
-
} from "./chunk-
|
|
149
|
-
import "./chunk-RUIMKQTA.js";
|
|
157
|
+
} from "./chunk-QRB7NAOJ.js";
|
|
150
158
|
import "./chunk-YMUGBZN2.js";
|
|
151
|
-
import "./chunk-
|
|
159
|
+
import "./chunk-JK733I5V.js";
|
|
160
|
+
import "./chunk-GKEWXIV5.js";
|
|
152
161
|
import {
|
|
153
162
|
CollectionFrame,
|
|
154
163
|
VaultFrame
|
|
155
|
-
} from "./chunk-
|
|
164
|
+
} from "./chunk-R4ROFEYC.js";
|
|
156
165
|
import {
|
|
157
166
|
TxCollection,
|
|
158
167
|
TxContext,
|
|
159
168
|
TxVault,
|
|
160
169
|
runTransaction
|
|
161
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-MEFJPTZ4.js";
|
|
162
171
|
import {
|
|
163
172
|
withDerivation,
|
|
164
173
|
withRollup
|
|
165
|
-
} from "./chunk-
|
|
166
|
-
import "./chunk-
|
|
167
|
-
import "./chunk-
|
|
174
|
+
} from "./chunk-6CRIV7DE.js";
|
|
175
|
+
import "./chunk-RCVJZMFE.js";
|
|
176
|
+
import "./chunk-HTJQYHZP.js";
|
|
177
|
+
import "./chunk-VN3DBQAU.js";
|
|
168
178
|
import {
|
|
169
179
|
withMaterializedView
|
|
170
|
-
} from "./chunk-
|
|
171
|
-
import "./chunk-
|
|
172
|
-
import "./chunk-YTCCC6NG.js";
|
|
173
|
-
import "./chunk-W3JABOVB.js";
|
|
180
|
+
} from "./chunk-4NXKCLLQ.js";
|
|
181
|
+
import "./chunk-FM3G3NOY.js";
|
|
174
182
|
import {
|
|
175
|
-
|
|
176
|
-
} from "./chunk-
|
|
177
|
-
import "./chunk-
|
|
178
|
-
import "./chunk-
|
|
183
|
+
buildLookupSnapshot
|
|
184
|
+
} from "./chunk-4CTHCN4J.js";
|
|
185
|
+
import "./chunk-KSKBRKGJ.js";
|
|
186
|
+
import "./chunk-HDQIIUPH.js";
|
|
187
|
+
import {
|
|
188
|
+
DEFAULT_CROSS_JOIN_MAX_ROWS,
|
|
189
|
+
DEFAULT_JOIN_MAX_ROWS,
|
|
190
|
+
Query,
|
|
191
|
+
ScanBuilder,
|
|
192
|
+
applyJoins,
|
|
193
|
+
buildLiveQuery,
|
|
194
|
+
executePlan,
|
|
195
|
+
resetJoinWarnings
|
|
196
|
+
} from "./chunk-454JXE57.js";
|
|
179
197
|
import {
|
|
180
198
|
importExternalObjects,
|
|
181
199
|
memoryObjectProjection
|
|
182
200
|
} from "./chunk-4Q6HSHHL.js";
|
|
183
|
-
import "./chunk-
|
|
184
|
-
import "./chunk-
|
|
201
|
+
import "./chunk-NWSGI5C7.js";
|
|
202
|
+
import "./chunk-M4CV6BRT.js";
|
|
203
|
+
import {
|
|
204
|
+
CollectionIndexes
|
|
205
|
+
} from "./chunk-KPZS5QAQ.js";
|
|
185
206
|
import {
|
|
186
207
|
withLazy
|
|
187
208
|
} from "./chunk-THNJ3IKU.js";
|
|
@@ -190,18 +211,42 @@ import {
|
|
|
190
211
|
estimateRecordBytes,
|
|
191
212
|
parseBytes
|
|
192
213
|
} from "./chunk-NO272T7Q.js";
|
|
214
|
+
import {
|
|
215
|
+
Aggregation,
|
|
216
|
+
GROUPBY_MAX_CARDINALITY,
|
|
217
|
+
GROUPBY_WARN_CARDINALITY,
|
|
218
|
+
GroupedAggregation,
|
|
219
|
+
GroupedQuery,
|
|
220
|
+
GroupedQueryN,
|
|
221
|
+
avg,
|
|
222
|
+
count,
|
|
223
|
+
groupAndReduce,
|
|
224
|
+
max,
|
|
225
|
+
min,
|
|
226
|
+
moneyMax,
|
|
227
|
+
moneyMin,
|
|
228
|
+
moneySum,
|
|
229
|
+
reduceRecords,
|
|
230
|
+
reducerBuilder,
|
|
231
|
+
sum
|
|
232
|
+
} from "./chunk-LXEXBTKL.js";
|
|
233
|
+
import {
|
|
234
|
+
evaluateClause,
|
|
235
|
+
evaluateFieldClause,
|
|
236
|
+
readPath
|
|
237
|
+
} from "./chunk-IGJCYUT5.js";
|
|
193
238
|
import {
|
|
194
239
|
mergeCrdtStates,
|
|
195
240
|
resolveCrdtSnapshot
|
|
196
|
-
} from "./chunk-
|
|
241
|
+
} from "./chunk-4GPE63GU.js";
|
|
197
242
|
import {
|
|
198
243
|
decryptExtractedPartition
|
|
199
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-VLFCJYTL.js";
|
|
200
245
|
import {
|
|
201
246
|
SCHEMAS_COLLECTION,
|
|
202
247
|
loadPersistedSchema,
|
|
203
248
|
savePersistedSchema
|
|
204
|
-
} from "./chunk-
|
|
249
|
+
} from "./chunk-VZRODIM3.js";
|
|
205
250
|
import {
|
|
206
251
|
MemoryRecipientSealer,
|
|
207
252
|
MemorySealingKeyProvider,
|
|
@@ -212,25 +257,30 @@ import {
|
|
|
212
257
|
parseSealedEnvelope,
|
|
213
258
|
saveSealedPassphrase,
|
|
214
259
|
sealRsaOaepTlv
|
|
215
|
-
} from "./chunk-
|
|
260
|
+
} from "./chunk-3LQ2YKO4.js";
|
|
216
261
|
import {
|
|
217
262
|
BLOB_CHUNKS_COLLECTION,
|
|
218
263
|
BLOB_COLLECTION,
|
|
219
264
|
BLOB_INDEX_COLLECTION,
|
|
265
|
+
BLOB_INTENT_COLLECTION,
|
|
220
266
|
BLOB_SLOTS_PREFIX,
|
|
221
267
|
BLOB_VERSIONS_PREFIX,
|
|
222
268
|
BlobSet,
|
|
223
269
|
DEFAULT_CHUNK_SIZE,
|
|
270
|
+
createIntent,
|
|
271
|
+
deleteIntent,
|
|
224
272
|
detectMagic,
|
|
225
273
|
detectMimeType,
|
|
226
|
-
|
|
227
|
-
|
|
274
|
+
getIntent,
|
|
275
|
+
isPreCompressed,
|
|
276
|
+
sweepBlobIntents
|
|
277
|
+
} from "./chunk-SNZ6URZZ.js";
|
|
228
278
|
import {
|
|
229
279
|
createBundleStore,
|
|
230
280
|
createPodStore,
|
|
231
281
|
wrapBundleStore,
|
|
232
282
|
wrapPodStore
|
|
233
|
-
} from "./chunk-
|
|
283
|
+
} from "./chunk-RZ5SVOYR.js";
|
|
234
284
|
import {
|
|
235
285
|
NOYDB_BUNDLE_FORMAT_VERSION,
|
|
236
286
|
NOYDB_BUNDLE_MAGIC,
|
|
@@ -244,7 +294,7 @@ import {
|
|
|
244
294
|
resetBrotliSupportCache,
|
|
245
295
|
writeNoydbBundle,
|
|
246
296
|
writePod
|
|
247
|
-
} from "./chunk-
|
|
297
|
+
} from "./chunk-FHS2HQSH.js";
|
|
248
298
|
import {
|
|
249
299
|
PUBLIC_ENVELOPE_RECORD_ID,
|
|
250
300
|
isPublicEnvelope,
|
|
@@ -252,20 +302,35 @@ import {
|
|
|
252
302
|
readPublicEnvelope,
|
|
253
303
|
savePublicEnvelope,
|
|
254
304
|
validatePublicEnvelopeInput
|
|
255
|
-
} from "./chunk-
|
|
305
|
+
} from "./chunk-X3YYQWOQ.js";
|
|
306
|
+
import "./chunk-FUG4SFN3.js";
|
|
256
307
|
import {
|
|
257
|
-
|
|
258
|
-
|
|
308
|
+
dictKey,
|
|
309
|
+
staticDict
|
|
310
|
+
} from "./chunk-EVX47VBM.js";
|
|
259
311
|
import {
|
|
260
312
|
DICT_COLLECTION_PREFIX,
|
|
261
|
-
|
|
262
|
-
dictCollectionName
|
|
263
|
-
|
|
313
|
+
LookupHandle,
|
|
314
|
+
dictCollectionName
|
|
315
|
+
} from "./chunk-NJ4EOKMB.js";
|
|
316
|
+
import {
|
|
317
|
+
applyI18nLocale,
|
|
318
|
+
enforceScript,
|
|
319
|
+
getAtPath,
|
|
320
|
+
i18nText,
|
|
321
|
+
inferScripts,
|
|
264
322
|
isDictCollectionName,
|
|
265
323
|
isDictKeyDescriptor,
|
|
324
|
+
isI18nTextDescriptor,
|
|
266
325
|
isStaticDictDescriptor,
|
|
267
|
-
|
|
268
|
-
|
|
326
|
+
resolveI18nText,
|
|
327
|
+
resolvePolicy,
|
|
328
|
+
setAtPathInPlace,
|
|
329
|
+
validateI18nTextValue
|
|
330
|
+
} from "./chunk-6JTIAGHD.js";
|
|
331
|
+
import {
|
|
332
|
+
installViaBinder
|
|
333
|
+
} from "./chunk-4VNQOLML.js";
|
|
269
334
|
import {
|
|
270
335
|
credentialStatus,
|
|
271
336
|
deleteCredential,
|
|
@@ -273,7 +338,7 @@ import {
|
|
|
273
338
|
listCredentials,
|
|
274
339
|
putCredential,
|
|
275
340
|
withTeam
|
|
276
|
-
} from "./chunk-
|
|
341
|
+
} from "./chunk-I6GALP6E.js";
|
|
277
342
|
import {
|
|
278
343
|
MAGIC_LINK_CONTENT_INFO_PREFIX,
|
|
279
344
|
MAGIC_LINK_GRANTS_COLLECTION,
|
|
@@ -293,7 +358,7 @@ import {
|
|
|
293
358
|
rotatePassphrase,
|
|
294
359
|
unwrapMagicLinkGrant,
|
|
295
360
|
writeMagicLinkGrant
|
|
296
|
-
} from "./chunk-
|
|
361
|
+
} from "./chunk-AUSTCW2X.js";
|
|
297
362
|
import {
|
|
298
363
|
burnPaperRecoveryEntry,
|
|
299
364
|
hasRecoveryEnrolled,
|
|
@@ -307,23 +372,18 @@ import {
|
|
|
307
372
|
unwrapDeksFromBlob,
|
|
308
373
|
unwrapDeksFromPaperEntry,
|
|
309
374
|
unwrapDeksFromShamirEntry
|
|
310
|
-
} from "./chunk-
|
|
375
|
+
} from "./chunk-EVVGJDRQ.js";
|
|
311
376
|
import {
|
|
312
377
|
PresenceHandle,
|
|
313
378
|
SyncEngine,
|
|
314
379
|
SyncTransaction
|
|
315
|
-
} from "./chunk-
|
|
380
|
+
} from "./chunk-HDMEGAQE.js";
|
|
316
381
|
import {
|
|
317
382
|
BUNDLE_STORE_POLICY,
|
|
318
383
|
INDEXED_STORE_POLICY,
|
|
319
384
|
POD_STORE_POLICY,
|
|
320
385
|
SyncScheduler
|
|
321
386
|
} from "./chunk-VQNJ7UZL.js";
|
|
322
|
-
import {
|
|
323
|
-
assertTierAccess,
|
|
324
|
-
dekKey,
|
|
325
|
-
effectiveClearance
|
|
326
|
-
} from "./chunk-26FSVNBL.js";
|
|
327
387
|
import {
|
|
328
388
|
SYNC_CREDENTIALS_COLLECTION,
|
|
329
389
|
WeakPassphraseError,
|
|
@@ -337,7 +397,7 @@ import {
|
|
|
337
397
|
listUsers,
|
|
338
398
|
listUsersWithEnvelopes,
|
|
339
399
|
validatePassphrase
|
|
340
|
-
} from "./chunk-
|
|
400
|
+
} from "./chunk-J2ZX2XUV.js";
|
|
341
401
|
import {
|
|
342
402
|
DIRECTORY_RECORD_ID,
|
|
343
403
|
VISIBILITY_RECORD_PREFIX,
|
|
@@ -351,7 +411,13 @@ import {
|
|
|
351
411
|
readUserVisibility,
|
|
352
412
|
saveUserEnvelope,
|
|
353
413
|
visibilityRecordId
|
|
354
|
-
} from "./chunk-
|
|
414
|
+
} from "./chunk-4JBYV75E.js";
|
|
415
|
+
import {
|
|
416
|
+
assertTierAccess,
|
|
417
|
+
dekKey,
|
|
418
|
+
effectiveClearance
|
|
419
|
+
} from "./chunk-ZICD77GM.js";
|
|
420
|
+
import "./chunk-E5ZQT5KX.js";
|
|
355
421
|
import {
|
|
356
422
|
PolicyEnforcer,
|
|
357
423
|
activeSessionCount,
|
|
@@ -366,7 +432,7 @@ import {
|
|
|
366
432
|
revokeAllSessions,
|
|
367
433
|
revokeSession,
|
|
368
434
|
validateSessionPolicy
|
|
369
|
-
} from "./chunk-
|
|
435
|
+
} from "./chunk-RIX4V2TB.js";
|
|
370
436
|
import {
|
|
371
437
|
generateULID,
|
|
372
438
|
isULID
|
|
@@ -374,7 +440,7 @@ import {
|
|
|
374
440
|
import {
|
|
375
441
|
CollectionInstant,
|
|
376
442
|
VaultInstant
|
|
377
|
-
} from "./chunk-
|
|
443
|
+
} from "./chunk-VFUPHI2Z.js";
|
|
378
444
|
import {
|
|
379
445
|
diff,
|
|
380
446
|
formatDiff
|
|
@@ -383,11 +449,12 @@ import {
|
|
|
383
449
|
LedgerStore,
|
|
384
450
|
applyPatch,
|
|
385
451
|
computePatch
|
|
386
|
-
} from "./chunk-
|
|
452
|
+
} from "./chunk-XWZVFISC.js";
|
|
387
453
|
import {
|
|
388
454
|
LEDGER_COLLECTION,
|
|
389
455
|
LEDGER_DELTAS_COLLECTION
|
|
390
456
|
} from "./chunk-I7FD46FF.js";
|
|
457
|
+
import "./chunk-PN2XMATY.js";
|
|
391
458
|
import {
|
|
392
459
|
canonicalJson,
|
|
393
460
|
envelopePayloadHash,
|
|
@@ -395,25 +462,17 @@ import {
|
|
|
395
462
|
paddedIndex,
|
|
396
463
|
parseIndex,
|
|
397
464
|
sha256Hex
|
|
398
|
-
} from "./chunk-
|
|
399
|
-
import "./chunk-
|
|
400
|
-
import "./chunk-
|
|
465
|
+
} from "./chunk-Q5VNKNE5.js";
|
|
466
|
+
import "./chunk-5O3XF4DV.js";
|
|
467
|
+
import "./chunk-QLWMEXCT.js";
|
|
401
468
|
import {
|
|
402
469
|
validateSchemaInput,
|
|
403
470
|
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";
|
|
471
|
+
} from "./chunk-XDYREZWE.js";
|
|
472
|
+
import "./chunk-7DSTRQIJ.js";
|
|
473
|
+
import "./chunk-HB3RFQSC.js";
|
|
474
|
+
import "./chunk-JKJOGPZN.js";
|
|
475
|
+
import "./chunk-5M5DVGV7.js";
|
|
417
476
|
import "./chunk-LP7BEXCT.js";
|
|
418
477
|
import {
|
|
419
478
|
base64ToBuffer,
|
|
@@ -423,55 +482,15 @@ import {
|
|
|
423
482
|
derivePresenceKey,
|
|
424
483
|
encryptBytes,
|
|
425
484
|
encryptDeterministic
|
|
426
|
-
} from "./chunk-
|
|
427
|
-
import {
|
|
428
|
-
DEFAULT_CROSS_JOIN_MAX_ROWS,
|
|
429
|
-
DEFAULT_JOIN_MAX_ROWS,
|
|
430
|
-
Query,
|
|
431
|
-
ScanBuilder,
|
|
432
|
-
applyJoins,
|
|
433
|
-
buildLiveQuery,
|
|
434
|
-
executePlan,
|
|
435
|
-
resetJoinWarnings
|
|
436
|
-
} from "./chunk-6Z435B6N.js";
|
|
437
|
-
import {
|
|
438
|
-
CollectionIndexes
|
|
439
|
-
} from "./chunk-C4NOLA5X.js";
|
|
440
|
-
import {
|
|
441
|
-
Aggregation,
|
|
442
|
-
GROUPBY_MAX_CARDINALITY,
|
|
443
|
-
GROUPBY_WARN_CARDINALITY,
|
|
444
|
-
GroupedAggregation,
|
|
445
|
-
GroupedQuery,
|
|
446
|
-
GroupedQueryN,
|
|
447
|
-
avg,
|
|
448
|
-
count,
|
|
449
|
-
groupAndReduce,
|
|
450
|
-
max,
|
|
451
|
-
min,
|
|
452
|
-
moneyMax,
|
|
453
|
-
moneyMin,
|
|
454
|
-
moneySum,
|
|
455
|
-
reduceRecords,
|
|
456
|
-
reducerBuilder,
|
|
457
|
-
sum
|
|
458
|
-
} from "./chunk-5GQE5IDB.js";
|
|
459
|
-
import {
|
|
460
|
-
evaluateClause,
|
|
461
|
-
evaluateFieldClause,
|
|
462
|
-
installMoneyEngine,
|
|
463
|
-
readPath
|
|
464
|
-
} from "./chunk-6P5AJ2ZS.js";
|
|
485
|
+
} from "./chunk-CIE2BASH.js";
|
|
465
486
|
import {
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
validateI18nTextValue
|
|
474
|
-
} from "./chunk-BASCPHNM.js";
|
|
487
|
+
NOYDB_BACKUP_VERSION,
|
|
488
|
+
NOYDB_FORMAT_VERSION,
|
|
489
|
+
NOYDB_KEYRING_VERSION,
|
|
490
|
+
NOYDB_SYNC_VERSION,
|
|
491
|
+
SealedHandle,
|
|
492
|
+
createStore
|
|
493
|
+
} from "./chunk-JNAI2HN2.js";
|
|
475
494
|
import {
|
|
476
495
|
AlreadyElevatedError,
|
|
477
496
|
AmendmentForbiddenError,
|
|
@@ -479,6 +498,7 @@ import {
|
|
|
479
498
|
AttestationNotEnabledError,
|
|
480
499
|
BackupCorruptedError,
|
|
481
500
|
BackupLedgerError,
|
|
501
|
+
BlobIntentPendingError,
|
|
482
502
|
BundleIntegrityError,
|
|
483
503
|
BundleSealMismatchError,
|
|
484
504
|
BundleVersionConflictError,
|
|
@@ -512,6 +532,7 @@ import {
|
|
|
512
532
|
EnclaveNotSupportedError,
|
|
513
533
|
ExportCapabilityError,
|
|
514
534
|
FieldFrozenError,
|
|
535
|
+
FieldNotQueryableError,
|
|
515
536
|
FilenameSanitizationError,
|
|
516
537
|
ForgetStrategyNotConfiguredError,
|
|
517
538
|
GroupCardinalityError,
|
|
@@ -546,6 +567,7 @@ import {
|
|
|
546
567
|
PathEscapeError,
|
|
547
568
|
PeriodClosedError,
|
|
548
569
|
PermissionDeniedError,
|
|
570
|
+
PersistedIndexCompensationError,
|
|
549
571
|
PodVersionConflictError,
|
|
550
572
|
PolicyDeniedError,
|
|
551
573
|
PortabilityNotEnabledError,
|
|
@@ -560,6 +582,7 @@ import {
|
|
|
560
582
|
RecoveryProfileNotImplementedError,
|
|
561
583
|
ReservedCollectionNameError,
|
|
562
584
|
ReservedVaultNameError,
|
|
585
|
+
RestrictRefUnresolvableError,
|
|
563
586
|
STATE_VAULT_NAME,
|
|
564
587
|
SchemaFenceError,
|
|
565
588
|
SchemaLockedError,
|
|
@@ -584,18 +607,21 @@ import {
|
|
|
584
607
|
TeamNotEnabledError,
|
|
585
608
|
TierDemoteDeniedError,
|
|
586
609
|
TierNotGrantedError,
|
|
610
|
+
TierWriteRefusedError,
|
|
587
611
|
TiersNotEnabledError,
|
|
588
612
|
TranslatorNotConfiguredError,
|
|
589
613
|
USER_ENVELOPE_COLLECTION,
|
|
590
614
|
USER_ENVELOPE_MAX_BYTES,
|
|
591
615
|
UniqueConstraintError,
|
|
592
616
|
UnknownDictCodeError,
|
|
617
|
+
UnknownLookupKeyError,
|
|
593
618
|
UnknownShardError,
|
|
594
619
|
UnsupportedIndexOptionError,
|
|
620
|
+
UnsupportedTierCompositionError,
|
|
595
621
|
UserEnvelopeOversizedError,
|
|
596
622
|
ValidationError,
|
|
597
623
|
VaultTemplateNotFoundError
|
|
598
|
-
} from "./chunk-
|
|
624
|
+
} from "./chunk-BIOUI4HL.js";
|
|
599
625
|
import "./chunk-PZ5AY32C.js";
|
|
600
626
|
|
|
601
627
|
// src/kernel/debug.ts
|
|
@@ -1348,7 +1374,7 @@ function withDeferredNumbering(config) {
|
|
|
1348
1374
|
};
|
|
1349
1375
|
}
|
|
1350
1376
|
|
|
1351
|
-
// src/
|
|
1377
|
+
// src/via/money/iso4217.ts
|
|
1352
1378
|
var MINOR_UNITS = {
|
|
1353
1379
|
// 2-decimal majors
|
|
1354
1380
|
EUR: 2,
|
|
@@ -1406,7 +1432,7 @@ function scaleForCurrency(code) {
|
|
|
1406
1432
|
return v === void 0 ? null : v;
|
|
1407
1433
|
}
|
|
1408
1434
|
|
|
1409
|
-
// src/
|
|
1435
|
+
// src/via/money/fixed-point.ts
|
|
1410
1436
|
function expandExponent(s) {
|
|
1411
1437
|
const m = /^([+-]?)(\d+)(?:\.(\d+))?[eE]([+-]?\d+)$/.exec(s);
|
|
1412
1438
|
if (!m) return s;
|
|
@@ -1524,7 +1550,7 @@ function formatScaledInt(value, scale) {
|
|
|
1524
1550
|
return (negative ? "-" : "") + intPart + "." + fracPart;
|
|
1525
1551
|
}
|
|
1526
1552
|
|
|
1527
|
-
// src/
|
|
1553
|
+
// src/via/money/paths.ts
|
|
1528
1554
|
var SEGMENT_RE = /^(\*|[^.[\]*]+)(\[\])?$/;
|
|
1529
1555
|
var parseCache = /* @__PURE__ */ new Map();
|
|
1530
1556
|
function parseMoneyPath(path) {
|
|
@@ -1626,7 +1652,7 @@ function transformAtMoneyPath(node, path, segments, index, visit, lenient) {
|
|
|
1626
1652
|
return clone;
|
|
1627
1653
|
}
|
|
1628
1654
|
|
|
1629
|
-
// src/
|
|
1655
|
+
// src/via/money/normalize.ts
|
|
1630
1656
|
function isMoneyValueObject(v) {
|
|
1631
1657
|
return typeof v === "object" && v !== null && "currency" in v;
|
|
1632
1658
|
}
|
|
@@ -1727,6 +1753,11 @@ function moneyScaledValue(stored, desc) {
|
|
|
1727
1753
|
return null;
|
|
1728
1754
|
}
|
|
1729
1755
|
}
|
|
1756
|
+
function canonicalizeMoneyIndexKey(field, rawValue, moneyFields) {
|
|
1757
|
+
const desc = moneyFields[field];
|
|
1758
|
+
if (!desc || desc.mode !== "fixed") return void 0;
|
|
1759
|
+
return moneyScaledValue(rawValue, desc)?.toString();
|
|
1760
|
+
}
|
|
1730
1761
|
function decodeValue(stored, desc) {
|
|
1731
1762
|
let currency;
|
|
1732
1763
|
let scaledIntString;
|
|
@@ -1755,6 +1786,30 @@ function decodeValue(stored, desc) {
|
|
|
1755
1786
|
scale
|
|
1756
1787
|
};
|
|
1757
1788
|
}
|
|
1789
|
+
function presentVirtualMoneyFields(record, moneyFields, virtualMoney, locale) {
|
|
1790
|
+
let out = record;
|
|
1791
|
+
const format = locale !== "raw";
|
|
1792
|
+
const fmtLocale = typeof locale === "string" && locale !== "raw" ? locale : "en-US";
|
|
1793
|
+
for (const field of virtualMoney) {
|
|
1794
|
+
const desc = moneyFields[field];
|
|
1795
|
+
if (!desc || desc.mode !== "fixed") continue;
|
|
1796
|
+
const raw = out[field];
|
|
1797
|
+
if (raw === null || raw === void 0) continue;
|
|
1798
|
+
if (typeof raw !== "number" && typeof raw !== "string") continue;
|
|
1799
|
+
const currency = desc.fixedCurrency;
|
|
1800
|
+
const scale = desc.scaleFor(currency);
|
|
1801
|
+
const r = parseToScaledInt(raw, scale, desc.rounding);
|
|
1802
|
+
if (!r.ok) continue;
|
|
1803
|
+
if (out === record) out = { ...record };
|
|
1804
|
+
const decimal = formatScaledInt(r.value, scale);
|
|
1805
|
+
out[field] = decimal;
|
|
1806
|
+
if (format) {
|
|
1807
|
+
out[`${field}Formatted`] = formatCurrency(decimal, currency, scale, fmtLocale);
|
|
1808
|
+
out[`${field}Number`] = Number(decimal);
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1811
|
+
return out;
|
|
1812
|
+
}
|
|
1758
1813
|
function decodeMoneyFields(record, moneyFields, locale) {
|
|
1759
1814
|
let out = { ...record };
|
|
1760
1815
|
const format = locale !== "raw";
|
|
@@ -1795,7 +1850,7 @@ function decodeMoneyFields(record, moneyFields, locale) {
|
|
|
1795
1850
|
return out;
|
|
1796
1851
|
}
|
|
1797
1852
|
|
|
1798
|
-
// src/
|
|
1853
|
+
// src/via/money/where.ts
|
|
1799
1854
|
function isMoneyValueObject2(v) {
|
|
1800
1855
|
return typeof v === "object" && v !== null && "currency" in v;
|
|
1801
1856
|
}
|
|
@@ -1840,7 +1895,7 @@ function moneyFieldClause(field, op, value, desc) {
|
|
|
1840
1895
|
case ">":
|
|
1841
1896
|
case ">=": {
|
|
1842
1897
|
const e = parseOperand(field, value, desc);
|
|
1843
|
-
return
|
|
1898
|
+
return { mode: desc.mode, entries: [e] };
|
|
1844
1899
|
}
|
|
1845
1900
|
case "between": {
|
|
1846
1901
|
if (!Array.isArray(value) || value.length !== 2) {
|
|
@@ -1853,13 +1908,13 @@ function moneyFieldClause(field, op, value, desc) {
|
|
|
1853
1908
|
`where("${field}"): 'between' bounds mix currencies (${lo.currency} vs ${hi.currency})`
|
|
1854
1909
|
);
|
|
1855
1910
|
}
|
|
1856
|
-
return
|
|
1911
|
+
return { mode: desc.mode, entries: [lo, hi] };
|
|
1857
1912
|
}
|
|
1858
1913
|
case "in": {
|
|
1859
1914
|
if (!Array.isArray(value)) {
|
|
1860
1915
|
throw new MoneyUnsupportedError(`where("${field}"): 'in' needs an array of amounts`);
|
|
1861
1916
|
}
|
|
1862
|
-
return
|
|
1917
|
+
return { mode: desc.mode, entries: value.map((v) => parseOperand(field, v, desc)) };
|
|
1863
1918
|
}
|
|
1864
1919
|
default:
|
|
1865
1920
|
throw new MoneyUnsupportedError(
|
|
@@ -1867,10 +1922,11 @@ function moneyFieldClause(field, op, value, desc) {
|
|
|
1867
1922
|
);
|
|
1868
1923
|
}
|
|
1869
1924
|
}
|
|
1870
|
-
function
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1925
|
+
function moneyIndexProbe(op, payload) {
|
|
1926
|
+
if (payload.mode !== "fixed") return void 0;
|
|
1927
|
+
if (op === "==") return payload.entries[0]?.scaled;
|
|
1928
|
+
if (op === "in") return payload.entries.map((e) => e.scaled);
|
|
1929
|
+
return void 0;
|
|
1874
1930
|
}
|
|
1875
1931
|
function readStored(actual, operand) {
|
|
1876
1932
|
let amount;
|
|
@@ -1928,7 +1984,7 @@ function evaluateMoneyClause(actual, op, operand) {
|
|
|
1928
1984
|
}
|
|
1929
1985
|
}
|
|
1930
1986
|
|
|
1931
|
-
// src/
|
|
1987
|
+
// src/via/money/money-reducer.ts
|
|
1932
1988
|
function toScaledIntFromAny(v, scale) {
|
|
1933
1989
|
if (typeof v === "bigint") return v;
|
|
1934
1990
|
if (typeof v === "number") {
|
|
@@ -2113,22 +2169,51 @@ function wrapMoneyReducers(spec, moneyFields) {
|
|
|
2113
2169
|
return changed ? out : spec;
|
|
2114
2170
|
}
|
|
2115
2171
|
|
|
2116
|
-
// src/
|
|
2117
|
-
function
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2172
|
+
// src/via/money/binding.ts
|
|
2173
|
+
function moneyBinding(moneyFields, virtualMoneyFields) {
|
|
2174
|
+
validateMoneyFieldPaths(moneyFields);
|
|
2175
|
+
const hasVirtualMoney = virtualMoneyFields !== void 0 && virtualMoneyFields.size > 0;
|
|
2176
|
+
const ordinaryPresentFields = hasVirtualMoney ? Object.fromEntries(Object.entries(moneyFields).filter(([f]) => !virtualMoneyFields.has(f))) : moneyFields;
|
|
2177
|
+
return {
|
|
2178
|
+
brand: "money",
|
|
2179
|
+
posture: { encryptedAtRest: "envelope", queryable: "ordered", exportable: true, forgettable: true },
|
|
2180
|
+
covers: (field) => field in moneyFields,
|
|
2181
|
+
ingest: (r) => canonicalizeIncomingMoney(r, moneyFields),
|
|
2182
|
+
canonicalizeStored: (r) => canonicalizeStoredMoney(r, moneyFields),
|
|
2183
|
+
encodeWrite: (r) => quantizeMoneyFields(r, moneyFields),
|
|
2184
|
+
present: (r, ctx) => decodeMoneyFields(r, ordinaryPresentFields, typeof ctx.locale === "string" ? ctx.locale : void 0),
|
|
2185
|
+
...hasVirtualMoney ? {
|
|
2186
|
+
presentLate: (r, ctx) => presentVirtualMoneyFields(r, moneyFields, virtualMoneyFields, typeof ctx.locale === "string" ? ctx.locale : void 0)
|
|
2187
|
+
} : {},
|
|
2188
|
+
buildClause: (field, op, value) => {
|
|
2189
|
+
const desc = moneyFields[field];
|
|
2190
|
+
if (!desc) return void 0;
|
|
2191
|
+
return moneyFieldClause(field, op, value, desc);
|
|
2192
|
+
},
|
|
2193
|
+
evaluateClause: (actual, op, payload) => evaluateMoneyClause(actual, op, payload),
|
|
2194
|
+
indexProbe: (op, payload) => moneyIndexProbe(op, payload),
|
|
2195
|
+
canonicalizeIndexKey: (field, rawValue) => canonicalizeMoneyIndexKey(field, rawValue, moneyFields),
|
|
2196
|
+
decodeResults: (r) => decodeMoneyFields(r, moneyFields, "raw"),
|
|
2197
|
+
compareForOrder: (field, a, b) => {
|
|
2198
|
+
const desc = moneyFields[field];
|
|
2199
|
+
if (!desc) return void 0;
|
|
2200
|
+
const av = moneyScaledValue(a, desc);
|
|
2201
|
+
const bv = moneyScaledValue(b, desc);
|
|
2202
|
+
if (av === null) return bv === null ? 0 : 1;
|
|
2203
|
+
if (bv === null) return -1;
|
|
2204
|
+
return av < bv ? -1 : av > bv ? 1 : 0;
|
|
2205
|
+
},
|
|
2206
|
+
wrapReducers: (spec) => wrapMoneyReducers(spec, moneyFields)
|
|
2207
|
+
};
|
|
2208
|
+
}
|
|
2209
|
+
function linkMoneyVia() {
|
|
2210
|
+
installViaBinder("money", (cfg) => {
|
|
2211
|
+
const c = cfg;
|
|
2212
|
+
return moneyBinding(c.moneyFields, c.virtualMoneyFields);
|
|
2128
2213
|
});
|
|
2129
2214
|
}
|
|
2130
2215
|
|
|
2131
|
-
// src/
|
|
2216
|
+
// src/via/money/descriptor.ts
|
|
2132
2217
|
var MoneyPrecisionError = class extends NoydbError {
|
|
2133
2218
|
constructor(field, value, scale) {
|
|
2134
2219
|
super(
|
|
@@ -2174,7 +2259,7 @@ function isMultiOptions(o) {
|
|
|
2174
2259
|
return "currencies" in o;
|
|
2175
2260
|
}
|
|
2176
2261
|
function money(options) {
|
|
2177
|
-
|
|
2262
|
+
linkMoneyVia();
|
|
2178
2263
|
const hasFixed = "currency" in options;
|
|
2179
2264
|
const hasMulti = "currencies" in options;
|
|
2180
2265
|
if (hasFixed && hasMulti) {
|
|
@@ -2198,6 +2283,7 @@ function money(options) {
|
|
|
2198
2283
|
const soleCurrency = () => allowList !== "any" && allowList.length === 1 ? allowList[0] : void 0;
|
|
2199
2284
|
return {
|
|
2200
2285
|
_noydbMoney: true,
|
|
2286
|
+
_viaBrand: "money",
|
|
2201
2287
|
mode: "multi",
|
|
2202
2288
|
options,
|
|
2203
2289
|
rounding,
|
|
@@ -2214,6 +2300,7 @@ function money(options) {
|
|
|
2214
2300
|
}
|
|
2215
2301
|
return {
|
|
2216
2302
|
_noydbMoney: true,
|
|
2303
|
+
_viaBrand: "money",
|
|
2217
2304
|
mode: "fixed",
|
|
2218
2305
|
options,
|
|
2219
2306
|
rounding,
|
|
@@ -2230,7 +2317,7 @@ function isMoneyDescriptor(x) {
|
|
|
2230
2317
|
return typeof x === "object" && x !== null && x._noydbMoney === true;
|
|
2231
2318
|
}
|
|
2232
2319
|
|
|
2233
|
-
// src/
|
|
2320
|
+
// src/via/money/arith.ts
|
|
2234
2321
|
function parseAmount(label, amount, scale, rounding) {
|
|
2235
2322
|
const r = parseToScaledInt(amount, scale, rounding);
|
|
2236
2323
|
if (!r.ok) {
|
|
@@ -2315,7 +2402,7 @@ function allocate(amount, weights, opts = {}) {
|
|
|
2315
2402
|
return base.map((p) => formatScaledInt(negative && p !== 0n ? -p : p, scale));
|
|
2316
2403
|
}
|
|
2317
2404
|
|
|
2318
|
-
// src/
|
|
2405
|
+
// src/via/money/branded.ts
|
|
2319
2406
|
function asMoney(value) {
|
|
2320
2407
|
if (!isMoneyLike(value)) {
|
|
2321
2408
|
throw new MoneyUnsupportedError(`asMoney: ${JSON.stringify(value)} is not a finite decimal`);
|
|
@@ -2336,6 +2423,296 @@ function isMoneyLike(value) {
|
|
|
2336
2423
|
if (typeof value !== "string") return false;
|
|
2337
2424
|
return decimalScaleOf(value) !== null;
|
|
2338
2425
|
}
|
|
2426
|
+
|
|
2427
|
+
// src/via/computed/descriptor.ts
|
|
2428
|
+
function computed(fn, opts) {
|
|
2429
|
+
return {
|
|
2430
|
+
_viaBrand: "computed",
|
|
2431
|
+
fn,
|
|
2432
|
+
...opts?.deps !== void 0 ? { deps: opts.deps } : {},
|
|
2433
|
+
mode: opts?.mode ?? "materialized"
|
|
2434
|
+
};
|
|
2435
|
+
}
|
|
2436
|
+
function isComputedDescriptor(x) {
|
|
2437
|
+
return typeof x === "object" && x !== null && x._viaBrand === "computed";
|
|
2438
|
+
}
|
|
2439
|
+
|
|
2440
|
+
// src/via/lookup/binding.ts
|
|
2441
|
+
function hasLabelSource(desc) {
|
|
2442
|
+
return !(desc.backing === "static" && desc.table === void 0);
|
|
2443
|
+
}
|
|
2444
|
+
async function fetchLookupLabel(desc, key, effLocale, fieldFallback, cfg) {
|
|
2445
|
+
if (desc.backing === "collection") {
|
|
2446
|
+
const getRow = cfg.getLookupBacking?.(desc);
|
|
2447
|
+
const row = getRow ? await getRow(key) : void 0;
|
|
2448
|
+
const labelField = desc.present?.label;
|
|
2449
|
+
if (!row || labelField === void 0) return void 0;
|
|
2450
|
+
const raw = row[labelField];
|
|
2451
|
+
if (desc.present?.by !== void 0) {
|
|
2452
|
+
return raw && typeof raw === "object" ? raw[effLocale] : void 0;
|
|
2453
|
+
}
|
|
2454
|
+
return typeof raw === "string" ? raw : void 0;
|
|
2455
|
+
}
|
|
2456
|
+
return cfg.lookupLabelResolver?.(desc.dimension, key, effLocale, fieldFallback);
|
|
2457
|
+
}
|
|
2458
|
+
async function runLookupPresent(record, ctx, cfg) {
|
|
2459
|
+
const fields = Object.entries(cfg.lookupFields).filter(([, d]) => hasLabelSource(d));
|
|
2460
|
+
if (fields.length === 0) return record;
|
|
2461
|
+
const locale = typeof ctx.locale === "string" ? ctx.locale : void 0;
|
|
2462
|
+
const fallback = ctx.fallback;
|
|
2463
|
+
const layer = ctx.layer;
|
|
2464
|
+
if (locale === "raw") return record;
|
|
2465
|
+
const hasStaticDisplay = fields.some(([, d]) => d.backing === "static" && d.displayLocale !== void 0);
|
|
2466
|
+
if (!locale && !hasStaticDisplay) return record;
|
|
2467
|
+
let result = record;
|
|
2468
|
+
const withLabels = { ...result };
|
|
2469
|
+
for (const [field, desc] of fields) {
|
|
2470
|
+
const policy = desc.onMissing ? resolvePolicy(desc.onMissing, layer) : "null";
|
|
2471
|
+
const fieldFallback = policy === "substitute" ? fallback ?? desc.substitute : fallback;
|
|
2472
|
+
const effLocale = locale ?? (desc.backing === "static" ? desc.displayLocale : void 0);
|
|
2473
|
+
const resolveKey = async (key) => {
|
|
2474
|
+
if (!effLocale) {
|
|
2475
|
+
if (policy === "throw") {
|
|
2476
|
+
throw new LocaleNotSpecifiedError(field, `lookup "${field}": no locale active to resolve key "${key}".`);
|
|
2477
|
+
}
|
|
2478
|
+
return null;
|
|
2479
|
+
}
|
|
2480
|
+
const label = await fetchLookupLabel(desc, key, effLocale, fieldFallback, cfg);
|
|
2481
|
+
if (label === void 0) {
|
|
2482
|
+
if (policy === "throw") {
|
|
2483
|
+
throw new LocaleNotSpecifiedError(field, `lookup "${field}": no label for key "${key}" in locale "${effLocale}".`);
|
|
2484
|
+
}
|
|
2485
|
+
return null;
|
|
2486
|
+
}
|
|
2487
|
+
return label;
|
|
2488
|
+
};
|
|
2489
|
+
if (field.includes("[].")) {
|
|
2490
|
+
const parts = field.split("[].");
|
|
2491
|
+
const arrayKey = parts[0];
|
|
2492
|
+
const leaf = parts[1];
|
|
2493
|
+
if (!leaf || leaf.includes(".")) continue;
|
|
2494
|
+
const arr = withLabels[arrayKey];
|
|
2495
|
+
if (!Array.isArray(arr)) continue;
|
|
2496
|
+
const labelKey = `${leaf}Label`;
|
|
2497
|
+
withLabels[arrayKey] = await Promise.all(
|
|
2498
|
+
arr.map(async (el) => {
|
|
2499
|
+
if (!el || typeof el !== "object" || Array.isArray(el)) return el;
|
|
2500
|
+
const k = el[leaf];
|
|
2501
|
+
if (typeof k !== "string") return el;
|
|
2502
|
+
return { ...el, [labelKey]: await resolveKey(k) };
|
|
2503
|
+
})
|
|
2504
|
+
);
|
|
2505
|
+
continue;
|
|
2506
|
+
}
|
|
2507
|
+
const val = result[field];
|
|
2508
|
+
if (Array.isArray(val)) {
|
|
2509
|
+
withLabels[`${field}Label`] = await Promise.all(
|
|
2510
|
+
val.map(async (k) => ({ key: k, label: typeof k === "string" ? await resolveKey(k) : null }))
|
|
2511
|
+
);
|
|
2512
|
+
} else if (typeof val === "string") {
|
|
2513
|
+
const label = await resolveKey(val);
|
|
2514
|
+
if (label !== null) withLabels[`${field}Label`] = label;
|
|
2515
|
+
}
|
|
2516
|
+
}
|
|
2517
|
+
result = withLabels;
|
|
2518
|
+
return result;
|
|
2519
|
+
}
|
|
2520
|
+
function buildLookupDescribeFragment(cfg) {
|
|
2521
|
+
const lookupFields = {};
|
|
2522
|
+
for (const [field, desc] of Object.entries(cfg.lookupFields)) {
|
|
2523
|
+
lookupFields[field] = {
|
|
2524
|
+
...desc.dimension !== "" ? { dimension: desc.dimension } : {},
|
|
2525
|
+
backing: desc.backing,
|
|
2526
|
+
vocabulary: desc.vocabulary,
|
|
2527
|
+
key: desc.key,
|
|
2528
|
+
onDelete: desc.onDelete,
|
|
2529
|
+
...desc.altKeys !== void 0 ? { altKeys: desc.altKeys } : {},
|
|
2530
|
+
...desc.present !== void 0 ? { present: desc.present } : {},
|
|
2531
|
+
...desc.sortBy !== void 0 ? { sortBy: desc.sortBy } : {},
|
|
2532
|
+
// #657 — static tier: when no `keys` was explicitly declared but a
|
|
2533
|
+
// `table` was (the staticDict()-equivalent `lookup(dim, {backing:
|
|
2534
|
+
// 'static', table})` shape), the table's own key set IS the
|
|
2535
|
+
// statically-known closed-vocabulary set the DescribedField.lookup
|
|
2536
|
+
// docblock promises ("declared `keys`, OR a static table's own
|
|
2537
|
+
// keys"). Reserved/matrix tiers never carry `table`, so this branch
|
|
2538
|
+
// never fires for them — their `keys` emission is unchanged.
|
|
2539
|
+
...desc.keys !== void 0 ? { keys: desc.keys } : desc.backing === "static" && desc.table !== void 0 ? { keys: Object.keys(desc.table) } : {}
|
|
2540
|
+
};
|
|
2541
|
+
}
|
|
2542
|
+
return { lookupFields };
|
|
2543
|
+
}
|
|
2544
|
+
function getAltIndexOrThrow(field, desc, cfg) {
|
|
2545
|
+
try {
|
|
2546
|
+
return cfg.getAltIndex?.(desc);
|
|
2547
|
+
} catch (err) {
|
|
2548
|
+
if (err instanceof Error && err.message.includes("lazy-mode")) {
|
|
2549
|
+
throw new ValidationError(
|
|
2550
|
+
`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.`
|
|
2551
|
+
);
|
|
2552
|
+
}
|
|
2553
|
+
throw err;
|
|
2554
|
+
}
|
|
2555
|
+
}
|
|
2556
|
+
function runLookupIngest(record, cfg) {
|
|
2557
|
+
const withAltKeys = Object.entries(cfg.lookupFields).filter(([, d]) => (d.altKeys?.length ?? 0) > 0);
|
|
2558
|
+
if (withAltKeys.length === 0) return record;
|
|
2559
|
+
let result = record;
|
|
2560
|
+
for (const [field, desc] of withAltKeys) {
|
|
2561
|
+
const backing = getAltIndexOrThrow(field, desc, cfg);
|
|
2562
|
+
if (!backing || backing.altIndex.size === 0) continue;
|
|
2563
|
+
if (field.includes("[].")) {
|
|
2564
|
+
const [arrayKey, leaf] = field.split("[].");
|
|
2565
|
+
if (!leaf || leaf.includes(".")) continue;
|
|
2566
|
+
const arr = record[arrayKey];
|
|
2567
|
+
if (!Array.isArray(arr)) continue;
|
|
2568
|
+
let changed = false;
|
|
2569
|
+
const normalized = arr.map((item) => {
|
|
2570
|
+
if (!item || typeof item !== "object" || Array.isArray(item)) return item;
|
|
2571
|
+
const value2 = item[leaf];
|
|
2572
|
+
if (typeof value2 !== "string") return item;
|
|
2573
|
+
const canonical2 = backing.altIndex.get(value2);
|
|
2574
|
+
if (canonical2 === void 0 || canonical2 === value2) return item;
|
|
2575
|
+
changed = true;
|
|
2576
|
+
return { ...item, [leaf]: canonical2 };
|
|
2577
|
+
});
|
|
2578
|
+
if (!changed) continue;
|
|
2579
|
+
if (result === record) result = { ...record };
|
|
2580
|
+
result[arrayKey] = normalized;
|
|
2581
|
+
continue;
|
|
2582
|
+
}
|
|
2583
|
+
const values = getAtPath(record, field);
|
|
2584
|
+
if (values.length !== 1) continue;
|
|
2585
|
+
const value = values[0];
|
|
2586
|
+
if (Array.isArray(value)) {
|
|
2587
|
+
if (value.length === 0) continue;
|
|
2588
|
+
let changed = false;
|
|
2589
|
+
const normalized = value.map((el) => {
|
|
2590
|
+
if (typeof el !== "string") return el;
|
|
2591
|
+
const canonical2 = backing.altIndex.get(el);
|
|
2592
|
+
if (canonical2 === void 0 || canonical2 === el) return el;
|
|
2593
|
+
changed = true;
|
|
2594
|
+
return canonical2;
|
|
2595
|
+
});
|
|
2596
|
+
if (!changed) continue;
|
|
2597
|
+
if (result === record) result = { ...record };
|
|
2598
|
+
setAtPathInPlace(result, field, normalized);
|
|
2599
|
+
continue;
|
|
2600
|
+
}
|
|
2601
|
+
if (typeof value !== "string") continue;
|
|
2602
|
+
const canonical = backing.altIndex.get(value);
|
|
2603
|
+
if (canonical === void 0 || canonical === value) continue;
|
|
2604
|
+
if (result === record) result = { ...record };
|
|
2605
|
+
setAtPathInPlace(result, field, canonical);
|
|
2606
|
+
}
|
|
2607
|
+
return result;
|
|
2608
|
+
}
|
|
2609
|
+
async function runLookupEnforceWrite(record, cfg) {
|
|
2610
|
+
for (const [field, desc] of Object.entries(cfg.lookupFields)) {
|
|
2611
|
+
if (desc.vocabulary !== "closed") continue;
|
|
2612
|
+
for (const value of getAtPath(record, field)) {
|
|
2613
|
+
if (Array.isArray(value)) {
|
|
2614
|
+
for (const el of value) {
|
|
2615
|
+
if (typeof el !== "string") continue;
|
|
2616
|
+
const known2 = cfg.membership ? await cfg.membership(field, el) : true;
|
|
2617
|
+
if (!known2) throw new UnknownLookupKeyError(desc.dimension, field, el);
|
|
2618
|
+
}
|
|
2619
|
+
continue;
|
|
2620
|
+
}
|
|
2621
|
+
if (typeof value !== "string") continue;
|
|
2622
|
+
const known = cfg.membership ? await cfg.membership(field, value) : true;
|
|
2623
|
+
if (!known) throw new UnknownLookupKeyError(desc.dimension, field, value);
|
|
2624
|
+
}
|
|
2625
|
+
}
|
|
2626
|
+
}
|
|
2627
|
+
function compareLookupOrder(field, a, b, cfg) {
|
|
2628
|
+
if (typeof a !== "string" || typeof b !== "string") return void 0;
|
|
2629
|
+
const desc = cfg.lookupFields[field];
|
|
2630
|
+
if (!desc || desc.sortBy === void 0) return void 0;
|
|
2631
|
+
const rows = desc.backing === "static" ? desc.table ? new Map(Object.entries(desc.table)) : void 0 : cfg.snapshotFor?.(desc);
|
|
2632
|
+
if (!rows) return void 0;
|
|
2633
|
+
return buildLookupSnapshot(desc.dimension, rows, desc).compareKeys(a, b, desc.displayLocale ?? "");
|
|
2634
|
+
}
|
|
2635
|
+
function resolveLookupOrderLabel(field, key, locale, cfg) {
|
|
2636
|
+
const desc = cfg.lookupFields[field];
|
|
2637
|
+
if (!desc) return void 0;
|
|
2638
|
+
const rows = desc.backing === "static" ? desc.table ? new Map(Object.entries(desc.table)) : void 0 : cfg.snapshotFor?.(desc);
|
|
2639
|
+
if (!rows) return void 0;
|
|
2640
|
+
return buildLookupSnapshot(desc.dimension, rows, desc).label(key, locale ?? desc.displayLocale ?? "");
|
|
2641
|
+
}
|
|
2642
|
+
function lookupBinding(cfg) {
|
|
2643
|
+
return {
|
|
2644
|
+
brand: "lookup",
|
|
2645
|
+
posture: { encryptedAtRest: "envelope", queryable: "full", exportable: true, forgettable: false },
|
|
2646
|
+
reservedPrefixes: ["_dict_", "_lookup_"],
|
|
2647
|
+
covers: (field) => field in cfg.lookupFields,
|
|
2648
|
+
ingest: (record) => runLookupIngest(record, cfg),
|
|
2649
|
+
enforceWrite: (record) => runLookupEnforceWrite(record, cfg),
|
|
2650
|
+
present: async (record, ctx) => runLookupPresent(record, ctx, cfg),
|
|
2651
|
+
compareForOrder: (field, a, b) => compareLookupOrder(field, a, b, cfg),
|
|
2652
|
+
resolveOrderLabel: (field, key, locale) => resolveLookupOrderLabel(field, key, locale, cfg),
|
|
2653
|
+
describeFragment: () => buildLookupDescribeFragment(cfg)
|
|
2654
|
+
};
|
|
2655
|
+
}
|
|
2656
|
+
function linkLookupVia() {
|
|
2657
|
+
installViaBinder("lookup", (c) => lookupBinding(c));
|
|
2658
|
+
}
|
|
2659
|
+
|
|
2660
|
+
// src/via/lookup/descriptor.ts
|
|
2661
|
+
function warnIfSortByNeedsDisplayLocale(dimension, opts) {
|
|
2662
|
+
if (opts?.sortBy !== void 0 && opts.present?.by !== void 0 && opts.displayLocale === void 0) {
|
|
2663
|
+
console.warn(
|
|
2664
|
+
`[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.`
|
|
2665
|
+
);
|
|
2666
|
+
}
|
|
2667
|
+
}
|
|
2668
|
+
function lookup(dimension, opts) {
|
|
2669
|
+
linkLookupVia();
|
|
2670
|
+
warnIfSortByNeedsDisplayLocale(dimension, opts);
|
|
2671
|
+
return {
|
|
2672
|
+
_viaBrand: "lookup",
|
|
2673
|
+
dimension,
|
|
2674
|
+
key: opts?.key ?? "id",
|
|
2675
|
+
vocabulary: opts?.vocabulary ?? "open",
|
|
2676
|
+
backing: opts?.backing ?? "collection",
|
|
2677
|
+
onDelete: opts?.onDelete ?? "restrict",
|
|
2678
|
+
...opts?.altKeys !== void 0 ? { altKeys: opts.altKeys } : {},
|
|
2679
|
+
...opts?.present !== void 0 ? { present: opts.present } : {},
|
|
2680
|
+
...opts?.sortBy !== void 0 ? { sortBy: opts.sortBy } : {},
|
|
2681
|
+
...opts?.keys !== void 0 ? { keys: opts.keys } : {},
|
|
2682
|
+
...opts?.table !== void 0 ? { table: opts.table } : {},
|
|
2683
|
+
...opts?.displayLocale !== void 0 ? { displayLocale: opts.displayLocale } : {},
|
|
2684
|
+
...opts?.onMissing !== void 0 ? { onMissing: opts.onMissing } : {},
|
|
2685
|
+
...opts?.substitute !== void 0 ? { substitute: opts.substitute } : {},
|
|
2686
|
+
...opts?.labels !== void 0 ? { labels: opts.labels } : {}
|
|
2687
|
+
};
|
|
2688
|
+
}
|
|
2689
|
+
function enumOf(keys) {
|
|
2690
|
+
linkLookupVia();
|
|
2691
|
+
return {
|
|
2692
|
+
_viaBrand: "lookup",
|
|
2693
|
+
dimension: "",
|
|
2694
|
+
key: "id",
|
|
2695
|
+
vocabulary: "closed",
|
|
2696
|
+
backing: "static",
|
|
2697
|
+
onDelete: "restrict",
|
|
2698
|
+
keys
|
|
2699
|
+
};
|
|
2700
|
+
}
|
|
2701
|
+
function dict(dimension, opts) {
|
|
2702
|
+
linkLookupVia();
|
|
2703
|
+
return {
|
|
2704
|
+
_viaBrand: "lookup",
|
|
2705
|
+
dimension,
|
|
2706
|
+
key: "id",
|
|
2707
|
+
vocabulary: opts?.vocabulary ?? "open",
|
|
2708
|
+
backing: "reserved",
|
|
2709
|
+
onDelete: opts?.onDelete ?? "restrict",
|
|
2710
|
+
...opts?.keys !== void 0 ? { keys: opts.keys } : {},
|
|
2711
|
+
...opts?.present !== void 0 ? { present: opts.present } : {},
|
|
2712
|
+
...opts?.onMissing !== void 0 ? { onMissing: opts.onMissing } : {},
|
|
2713
|
+
...opts?.substitute !== void 0 ? { substitute: opts.substitute } : {}
|
|
2714
|
+
};
|
|
2715
|
+
}
|
|
2339
2716
|
export {
|
|
2340
2717
|
Aggregation,
|
|
2341
2718
|
AlreadyElevatedError,
|
|
@@ -2345,11 +2722,13 @@ export {
|
|
|
2345
2722
|
BLOB_CHUNKS_COLLECTION,
|
|
2346
2723
|
BLOB_COLLECTION,
|
|
2347
2724
|
BLOB_INDEX_COLLECTION,
|
|
2725
|
+
BLOB_INTENT_COLLECTION,
|
|
2348
2726
|
BLOB_SLOTS_PREFIX,
|
|
2349
2727
|
BLOB_VERSIONS_PREFIX,
|
|
2350
2728
|
BUNDLE_STORE_POLICY,
|
|
2351
2729
|
BackupCorruptedError,
|
|
2352
2730
|
BackupLedgerError,
|
|
2731
|
+
BlobIntentPendingError,
|
|
2353
2732
|
BlobSet,
|
|
2354
2733
|
BundleIntegrityError,
|
|
2355
2734
|
BundleSealMismatchError,
|
|
@@ -2395,7 +2774,7 @@ export {
|
|
|
2395
2774
|
DerivationOutputUnknownError,
|
|
2396
2775
|
DictKeyInUseError,
|
|
2397
2776
|
DictKeyMissingError,
|
|
2398
|
-
DictionaryHandle,
|
|
2777
|
+
LookupHandle as DictionaryHandle,
|
|
2399
2778
|
DirectoryDisabledError,
|
|
2400
2779
|
ELEVATION_AUDIT_COLLECTION,
|
|
2401
2780
|
ElevatedHandle,
|
|
@@ -2405,6 +2784,7 @@ export {
|
|
|
2405
2784
|
EnclaveNotSupportedError,
|
|
2406
2785
|
ExportCapabilityError,
|
|
2407
2786
|
FieldFrozenError,
|
|
2787
|
+
FieldNotQueryableError,
|
|
2408
2788
|
FilenameSanitizationError,
|
|
2409
2789
|
ForgetStrategyNotConfiguredError,
|
|
2410
2790
|
GROUPBY_MAX_CARDINALITY,
|
|
@@ -2479,6 +2859,7 @@ export {
|
|
|
2479
2859
|
PathEscapeError,
|
|
2480
2860
|
PeriodClosedError,
|
|
2481
2861
|
PermissionDeniedError,
|
|
2862
|
+
PersistedIndexCompensationError,
|
|
2482
2863
|
PodVersionConflictError,
|
|
2483
2864
|
PolicyDeniedError,
|
|
2484
2865
|
PolicyEnforcer,
|
|
@@ -2500,6 +2881,7 @@ export {
|
|
|
2500
2881
|
RefScopeError,
|
|
2501
2882
|
ReservedCollectionNameError,
|
|
2502
2883
|
ReservedVaultNameError,
|
|
2884
|
+
RestrictRefUnresolvableError,
|
|
2503
2885
|
SCHEMAS_COLLECTION,
|
|
2504
2886
|
SEALED_PASSPHRASE_RECORD_ID,
|
|
2505
2887
|
STATE_VAULT_NAME,
|
|
@@ -2534,6 +2916,7 @@ export {
|
|
|
2534
2916
|
TeamNotEnabledError,
|
|
2535
2917
|
TierDemoteDeniedError,
|
|
2536
2918
|
TierNotGrantedError,
|
|
2919
|
+
TierWriteRefusedError,
|
|
2537
2920
|
TiersNotEnabledError,
|
|
2538
2921
|
TranslatorNotConfiguredError,
|
|
2539
2922
|
TxCollection,
|
|
@@ -2543,8 +2926,10 @@ export {
|
|
|
2543
2926
|
USER_ENVELOPE_MAX_BYTES,
|
|
2544
2927
|
UniqueConstraintError,
|
|
2545
2928
|
UnknownDictCodeError,
|
|
2929
|
+
UnknownLookupKeyError,
|
|
2546
2930
|
UnknownShardError,
|
|
2547
2931
|
UnsupportedIndexOptionError,
|
|
2932
|
+
UnsupportedTierCompositionError,
|
|
2548
2933
|
UserApi,
|
|
2549
2934
|
UserEnvelopeOversizedError,
|
|
2550
2935
|
VISIBILITY_RECORD_PREFIX,
|
|
@@ -2580,11 +2965,13 @@ export {
|
|
|
2580
2965
|
clearDevUnlock,
|
|
2581
2966
|
compileSequenceFormat,
|
|
2582
2967
|
computePatch,
|
|
2968
|
+
computed,
|
|
2583
2969
|
coordinatedCutover,
|
|
2584
2970
|
count,
|
|
2585
2971
|
createBundleStore,
|
|
2586
2972
|
createDeedOwner,
|
|
2587
2973
|
createEnforcer,
|
|
2974
|
+
createIntent,
|
|
2588
2975
|
createNoydb,
|
|
2589
2976
|
createPodStore,
|
|
2590
2977
|
createSession,
|
|
@@ -2595,6 +2982,7 @@ export {
|
|
|
2595
2982
|
decryptExtractedPartition,
|
|
2596
2983
|
dekKey,
|
|
2597
2984
|
deleteCredential,
|
|
2985
|
+
deleteIntent,
|
|
2598
2986
|
deleteUserEnvelope,
|
|
2599
2987
|
deleteUserVisibility,
|
|
2600
2988
|
deriveMagicLinkContentKey,
|
|
@@ -2607,6 +2995,7 @@ export {
|
|
|
2607
2995
|
detectMagic,
|
|
2608
2996
|
detectMimeType,
|
|
2609
2997
|
diagramAuthConfig,
|
|
2998
|
+
dict,
|
|
2610
2999
|
dictCollectionName,
|
|
2611
3000
|
dictKey,
|
|
2612
3001
|
diff,
|
|
@@ -2617,6 +3006,8 @@ export {
|
|
|
2617
3006
|
encryptDeterministic,
|
|
2618
3007
|
enforceScript,
|
|
2619
3008
|
enrollAuthenticator,
|
|
3009
|
+
enumOf as enum,
|
|
3010
|
+
enumOf,
|
|
2620
3011
|
envelopePayloadHash,
|
|
2621
3012
|
estimateEntropy,
|
|
2622
3013
|
estimateRecordBytes,
|
|
@@ -2632,6 +3023,7 @@ export {
|
|
|
2632
3023
|
fuseRetrieval,
|
|
2633
3024
|
generateULID,
|
|
2634
3025
|
getCredential,
|
|
3026
|
+
getIntent,
|
|
2635
3027
|
groupAndReduce,
|
|
2636
3028
|
hasExportCapability,
|
|
2637
3029
|
hasImportCapability,
|
|
@@ -2644,6 +3036,7 @@ export {
|
|
|
2644
3036
|
inferScripts,
|
|
2645
3037
|
isClassifiedFieldSpec,
|
|
2646
3038
|
isClassifiedGroup,
|
|
3039
|
+
isComputedDescriptor,
|
|
2647
3040
|
isDeedVault,
|
|
2648
3041
|
isDevUnlockActive,
|
|
2649
3042
|
isDictCollectionName,
|
|
@@ -2660,6 +3053,7 @@ export {
|
|
|
2660
3053
|
isSessionAlive,
|
|
2661
3054
|
isStaticDictDescriptor,
|
|
2662
3055
|
isULID,
|
|
3056
|
+
isViaFieldSpec,
|
|
2663
3057
|
isZodSchema,
|
|
2664
3058
|
issueDelegation,
|
|
2665
3059
|
recoverPassphrase as keyringRecoverPassphrase,
|
|
@@ -2682,6 +3076,7 @@ export {
|
|
|
2682
3076
|
loadUserEnvelope,
|
|
2683
3077
|
loadVaultPolicy,
|
|
2684
3078
|
lockSchema,
|
|
3079
|
+
lookup,
|
|
2685
3080
|
luhnCheck,
|
|
2686
3081
|
magicLinkGrantRecordId,
|
|
2687
3082
|
max,
|
|
@@ -2754,6 +3149,7 @@ export {
|
|
|
2754
3149
|
sha256Hex,
|
|
2755
3150
|
staticDict,
|
|
2756
3151
|
sum,
|
|
3152
|
+
sweepBlobIntents,
|
|
2757
3153
|
tokenize,
|
|
2758
3154
|
transitionGuard,
|
|
2759
3155
|
unwrapDeksFromBlob,
|
|
@@ -2766,6 +3162,7 @@ export {
|
|
|
2766
3162
|
validateSchemaInput,
|
|
2767
3163
|
validateSchemaOutput,
|
|
2768
3164
|
validateSessionPolicy,
|
|
3165
|
+
via,
|
|
2769
3166
|
visibilityRecordId,
|
|
2770
3167
|
withArchive,
|
|
2771
3168
|
withCache,
|