@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
|
@@ -0,0 +1,809 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Collection construction config — the PURE half of the `Collection`
|
|
3
|
+
* constructor.
|
|
4
|
+
*
|
|
5
|
+
* `resolveCollectionConfig` takes the raw `CollectionOpts` the Vault threads in
|
|
6
|
+
* and resolves every `?? default`, every normalized/derived field, and runs the
|
|
7
|
+
* pure construction-time validations (embeddings-on-CRDT, money-field paths,
|
|
8
|
+
* deterministic-risk acknowledgement). It holds **no `this`** and performs no
|
|
9
|
+
* external side effect — the only objects it allocates (`Set`s, `VectorSet`,
|
|
10
|
+
* the CEK `Lru`) are the same instances the collection then owns by reference.
|
|
11
|
+
*
|
|
12
|
+
* The `this`-dependent construction (the search-index store whose persisted
|
|
13
|
+
* callback closes over `this.searchContext()`, the `RecordCodec`, and the
|
|
14
|
+
* SyncEngine conflict-resolver registration) stays in the constructor — those
|
|
15
|
+
* genuinely capture the live instance (and the conflict-resolver closures close
|
|
16
|
+
* over `conflictPolicy: ConflictPolicy<T>`, whose invariant-in-T custom-merge
|
|
17
|
+
* signature can't be exposed via a method without breaking `Collection<T>`
|
|
18
|
+
* assignability to `Collection<unknown>`).
|
|
19
|
+
*/
|
|
20
|
+
import type { NoydbStore, ConflictPolicy, CollectionConflictResolver, HistoryConfig, TierMode, CrossTierAccessEvent, VdigFieldPolicy } from './types.js';
|
|
21
|
+
import type { EnclaveKey } from './enclave/index.js';
|
|
22
|
+
import type { UnlockedKeyring } from '../with-party/team/keyring.js';
|
|
23
|
+
import type { NoydbEventEmitter } from './events.js';
|
|
24
|
+
import type { WriteQueueTracker } from './write-queue.js';
|
|
25
|
+
import type { WriteHookRegistry } from '../port/with/write-hooks.js';
|
|
26
|
+
import type { ServiceBus } from '../port/with/service-bus.js';
|
|
27
|
+
import type { SchemaUpdateGate } from '../with-shape/schema-update/gate.js';
|
|
28
|
+
import type { SchemaFenceController } from '../with-shape/schema-update/fence-controller.js';
|
|
29
|
+
import type { StandardSchemaV1 } from './schema.js';
|
|
30
|
+
import type { LedgerStore } from '../with-commit/history/ledger/index.js';
|
|
31
|
+
import type { CrdtMode } from '../with-commit/crdt/crdt.js';
|
|
32
|
+
import type { CrdtStrategy } from './types.js';
|
|
33
|
+
import { type HistoryStrategy } from '../with-commit/history/strategy.js';
|
|
34
|
+
import { type I18nStrategy } from '../port/with/i18n-strategy.js';
|
|
35
|
+
import { type SyncStrategy } from '../with-party/team/sync-strategy.js';
|
|
36
|
+
import { type BlobStrategy } from '../port/with/blob-strategy.js';
|
|
37
|
+
import { type AggregateStrategy } from '../with-lookup/aggregate/strategy.js';
|
|
38
|
+
import { type TiersStrategy } from '../with-audit/tiers/strategy.js';
|
|
39
|
+
import { type SearchStrategy } from '../with-lookup/search/strategy.js';
|
|
40
|
+
import type { ObjectProjection } from '../with-shape/blobs/object-projection.js';
|
|
41
|
+
import type { BlobFieldsConfig } from '../with-shape/blobs/blob-compaction.js';
|
|
42
|
+
import type { IndexStrategy } from '../with-lookup/indexing/strategy.js';
|
|
43
|
+
import type { IndexDef } from '../with-lookup/indexing/eager-indexes.js';
|
|
44
|
+
import type { I18nTextDescriptor, DictKeyDescriptor, StaticDictDescriptor, DictionaryHandle } from '../port/with/i18n-strategy.js';
|
|
45
|
+
import type { LookupDescriptor, MaterializedBacking } from '../port/with/lookup-strategy.js';
|
|
46
|
+
import type { ComputedFields, ComputedFn, ComputedFieldEntry } from '../with-formula/computed/index.js';
|
|
47
|
+
import type { RollupDeleteIntent } from './via/dispatch.js';
|
|
48
|
+
import '../port/with/computed-strategy.js';
|
|
49
|
+
import { type ClassifiedEntry, type ResolvedClassified, type ClassifiedGuardCtx, type ClassifiedStrategy, type ClassifiedViaConfig } from '../port/with/classified-strategy.js';
|
|
50
|
+
import type { FieldRef, Grain } from './via/graph.js';
|
|
51
|
+
import type { FieldMeta } from '../with-shape/introspection/field-meta.js';
|
|
52
|
+
import type { CollectionMeta } from '../with-shape/introspection/meta.js';
|
|
53
|
+
import type { RefDescriptor } from './refs.js';
|
|
54
|
+
import type { JoinableSource } from './query/index.js';
|
|
55
|
+
import { VectorSet, type EmbeddingDescriptor } from '../with-lookup/embeddings/index.js';
|
|
56
|
+
import { Lru } from './cache/index.js';
|
|
57
|
+
import type { ReadOnlyVaultFacade } from '../with-audit/guards/types.js';
|
|
58
|
+
import type { DerivationRegistry } from '../with-formula/derivations/registry.js';
|
|
59
|
+
import type { TxContext } from '../with-commit/tx/transaction.js';
|
|
60
|
+
import type { MaterializedViewRegistry } from '../with-formula/materialized-views/registry.js';
|
|
61
|
+
import type { MVQueryContext } from '../with-formula/materialized-views/types.js';
|
|
62
|
+
import type { Collection, OnDirtyCallback, CacheOptions } from './collection.js';
|
|
63
|
+
import type { LazyStrategy } from '../port/with/lazy-strategy.js';
|
|
64
|
+
import { ViaPipeline } from './via/pipeline.js';
|
|
65
|
+
import { type ViaBinding, type ViaDescriptor } from './via/index.js';
|
|
66
|
+
import { type ViaFieldSpec } from './via/compose.js';
|
|
67
|
+
/**
|
|
68
|
+
* Raw options handed to the {@link Collection} constructor by the Vault.
|
|
69
|
+
* One named type shared by the constructor and the pure resolver.
|
|
70
|
+
*/
|
|
71
|
+
export interface CollectionOpts<T> {
|
|
72
|
+
adapter: NoydbStore;
|
|
73
|
+
vault: string;
|
|
74
|
+
name: string;
|
|
75
|
+
keyring: UnlockedKeyring;
|
|
76
|
+
encrypted: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Opt-in: keep the working set encrypted in RAM, decrypting on read (future phase).
|
|
79
|
+
* Default false — the working set is plaintext.
|
|
80
|
+
*/
|
|
81
|
+
ramCiphertext?: boolean;
|
|
82
|
+
emitter: NoydbEventEmitter;
|
|
83
|
+
/**
|
|
84
|
+
* Vault-level in-flight write tracker. When present,
|
|
85
|
+
* `put`/`delete` run inside `writeQueue.track()` so `hub.writeQueue`
|
|
86
|
+
* reflects outstanding writes. Optional so direct Collection
|
|
87
|
+
* construction in tests still works untracked.
|
|
88
|
+
*/
|
|
89
|
+
writeQueue?: WriteQueueTracker | undefined;
|
|
90
|
+
/** Per-collection schema-update gate; `put`/`delete` await it. */
|
|
91
|
+
schemaUpdateGate?: SchemaUpdateGate | undefined;
|
|
92
|
+
/** Vault-level fence controller; `put`/`delete` consult it. */
|
|
93
|
+
schemaFence?: SchemaFenceController | undefined;
|
|
94
|
+
/** Hub-level write-hook registry; fired around put/delete. */
|
|
95
|
+
writeHooks?: WriteHookRegistry | undefined;
|
|
96
|
+
/** The observe bus, threaded from Noydb. */
|
|
97
|
+
subsystemBus?: ServiceBus | undefined;
|
|
98
|
+
/** Active transaction id supplier (null outside a transaction). */
|
|
99
|
+
activeTxId?: (() => string | null) | undefined;
|
|
100
|
+
getDEK: (collectionName: string) => Promise<EnclaveKey>;
|
|
101
|
+
historyConfig?: HistoryConfig | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* When `true`, the caller explicitly provided `historyConfig` rather than
|
|
104
|
+
* inheriting the vault-wide default. Used by `getConfig()` to decide
|
|
105
|
+
* whether to surface `history: true` in the schema dump.
|
|
106
|
+
*/
|
|
107
|
+
historyConfigExplicit?: boolean | undefined;
|
|
108
|
+
onDirty?: OnDirtyCallback | undefined;
|
|
109
|
+
/**
|
|
110
|
+
* #693: live check for whether multi-tab coordination is active at all
|
|
111
|
+
* (`Noydb._tabCoordinationActive`). When true, the shared local store may be
|
|
112
|
+
* written out-of-band by another tab, so the #606 marker-id-set gate falls
|
|
113
|
+
* back to an unconditional store read on re-create.
|
|
114
|
+
*/
|
|
115
|
+
tabCoordinated?: (() => boolean) | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* tree-shake seam. When omitted, `collection.blob(id)` throws
|
|
118
|
+
* with a pointer at the `@noy-db/hub/blobs` subpath. When set (via
|
|
119
|
+
* `createNoydb({ blobStrategy: blobs() })`), blob storage is live.
|
|
120
|
+
* `@internal` by virtue of `BlobStrategy` being `@internal`.
|
|
121
|
+
*/
|
|
122
|
+
blobStrategy?: BlobStrategy | undefined;
|
|
123
|
+
objectStore?: ObjectProjection | undefined;
|
|
124
|
+
blobFields?: BlobFieldsConfig | undefined;
|
|
125
|
+
/**
|
|
126
|
+
* #724 Arc 10 Task 3: how `elevate()`/`demote()`/`putAtTier()` rehome a
|
|
127
|
+
* SHARED blob (`refCount > 1`) it can't rewrap in place. `'isolate'`
|
|
128
|
+
* (default) forks a private tier-scoped copy for the moving record and
|
|
129
|
+
* releases its hold on the shared object — co-owners stay byte-for-byte
|
|
130
|
+
* untouched. `'dedup'` (#741, opt-in) leaves the shared object in place;
|
|
131
|
+
* the Task-1 runtime read gate still hides it, but the chunks stay
|
|
132
|
+
* decryptable at rest under the flat `_blob` DEK (documented residue).
|
|
133
|
+
*/
|
|
134
|
+
blobTierPolicy?: 'isolate' | 'dedup' | undefined;
|
|
135
|
+
aggregateStrategy?: AggregateStrategy | undefined;
|
|
136
|
+
crdtStrategy?: CrdtStrategy | undefined;
|
|
137
|
+
/**
|
|
138
|
+
* tree-shake seam — strategy for optional history/ledger/
|
|
139
|
+
* time-machine. When omitted, history snapshots and ledger appends
|
|
140
|
+
* become silent no-ops (data still writes); the read APIs
|
|
141
|
+
* (`history`, `getVersion`, `revert`, `diff`, `clearHistory`,
|
|
142
|
+
* `pruneRecordHistory`) throw with a pointer at `@noy-db/hub/history`.
|
|
143
|
+
*/
|
|
144
|
+
historyStrategy?: HistoryStrategy | undefined;
|
|
145
|
+
i18nStrategy?: I18nStrategy | undefined;
|
|
146
|
+
syncStrategy?: SyncStrategy | undefined;
|
|
147
|
+
/**
|
|
148
|
+
* tree-shake seam. When omitted, indexing is off for this
|
|
149
|
+
* collection — every `.lazyQuery()` call throws, `.rebuildIndexes()`
|
|
150
|
+
* is a no-op, and `indexes: [...]` declarations are ignored. Enable
|
|
151
|
+
* by passing `withIndexing()` from `@noy-db/hub/indexing` at
|
|
152
|
+
* `createNoydb` time.
|
|
153
|
+
*/
|
|
154
|
+
indexStrategy?: IndexStrategy | undefined;
|
|
155
|
+
indexes?: IndexDef[] | undefined;
|
|
156
|
+
/**
|
|
157
|
+
* Auto-reconcile behavior for persisted-index drift on lazy-mode
|
|
158
|
+
* collections. Defaults to `'off'` — operators call
|
|
159
|
+
* `collection.reconcileIndex(field)` explicitly.
|
|
160
|
+
*
|
|
161
|
+
* - `'off'` (default): no implicit work. Same semantics as.
|
|
162
|
+
* - `'dry-run'`: on first lazy-mode query, run
|
|
163
|
+
* `reconcileIndex(field, { dryRun: true })` per declared field
|
|
164
|
+
* and emit `index:reconciled` with the diff. Nothing is written.
|
|
165
|
+
* - `'auto'`: same walk as `'dry-run'` but with `dryRun: false`.
|
|
166
|
+
* Drift is repaired in-place and the fix count surfaces on the
|
|
167
|
+
* event.
|
|
168
|
+
*
|
|
169
|
+
* Unattended long-lived processes (Workers, Node services with no
|
|
170
|
+
* human operator) should set `'auto'`. Attended desktop apps should
|
|
171
|
+
* leave it `'off'` and surface a manual "rebuild indexes" button.
|
|
172
|
+
*/
|
|
173
|
+
reconcileOnOpen?: 'off' | 'dry-run' | 'auto';
|
|
174
|
+
/**
|
|
175
|
+
* Hydration mode. `'eager'` (default) loads everything into memory on
|
|
176
|
+
* first access — matches behavior exactly. `'lazy'` defers loads
|
|
177
|
+
* to per-id `get()` calls and bounds memory via the `cache` option.
|
|
178
|
+
*/
|
|
179
|
+
prefetch?: boolean;
|
|
180
|
+
/**
|
|
181
|
+
* LRU cache options. Only meaningful when `prefetch: false`. At least
|
|
182
|
+
* one of `maxRecords` or `maxBytes` must be set in lazy mode — an
|
|
183
|
+
* unbounded lazy cache defeats the purpose.
|
|
184
|
+
*/
|
|
185
|
+
cache?: CacheOptions | undefined;
|
|
186
|
+
/**
|
|
187
|
+
* Lazy service seam (#267) — supplies the bounded-LRU working-set cache
|
|
188
|
+
* when `prefetch: false`. Omitted → the deprecated IMPLICIT_LAZY
|
|
189
|
+
* back-compat default (identical behavior + one-time warn).
|
|
190
|
+
*/
|
|
191
|
+
lazyStrategy?: LazyStrategy | undefined;
|
|
192
|
+
/**
|
|
193
|
+
* Optional Standard Schema v1 validator (Zod, Valibot, ArkType,
|
|
194
|
+
* Effect Schema, etc.). When set, every `put()` is validated before
|
|
195
|
+
* encryption and every read is validated after decryption. See the
|
|
196
|
+
* `schema` field docstring for the error semantics.
|
|
197
|
+
*/
|
|
198
|
+
schema?: StandardSchemaV1<unknown, T> | undefined;
|
|
199
|
+
/** Declares this collection a satellite of `satelliteOf` (spec #591). */
|
|
200
|
+
satelliteOf?: string | undefined;
|
|
201
|
+
/** Satellite routing table — the fields owned by this satellite (required with satelliteOf). */
|
|
202
|
+
fields?: readonly string[] | undefined;
|
|
203
|
+
/** Registers the full-record joined handle under this name (optional; see vault.joined()). */
|
|
204
|
+
joined?: string | undefined;
|
|
205
|
+
/**
|
|
206
|
+
* Optional reference to the compartment's hash-chained ledger.
|
|
207
|
+
* When present, successful mutations append a ledger entry via
|
|
208
|
+
* `LedgerStore.append()`. Constructed at the Vault level and
|
|
209
|
+
* threaded through — see the Vault.collection() source for
|
|
210
|
+
* the wiring.
|
|
211
|
+
*/
|
|
212
|
+
ledger?: LedgerStore | undefined;
|
|
213
|
+
/**
|
|
214
|
+
* Optional back-reference to the owning compartment's ref
|
|
215
|
+
* enforcer`).
|
|
216
|
+
* Collection.put calls `enforceRefsOnPut` before the adapter
|
|
217
|
+
* write; Collection.delete calls `enforceRefsOnDelete` before
|
|
218
|
+
* its own adapter delete. See the `refEnforcer` field docstring
|
|
219
|
+
* for the full protocol.
|
|
220
|
+
*/
|
|
221
|
+
refEnforcer?: {
|
|
222
|
+
enforceRefsOnPut(collectionName: string, record: unknown): Promise<void>;
|
|
223
|
+
enforceRefsOnDelete(collectionName: string, id: string): Promise<void>;
|
|
224
|
+
} | undefined;
|
|
225
|
+
/**
|
|
226
|
+
* Optional back-reference to the owning compartment's join
|
|
227
|
+
* resolver. When present, `query()` builds a
|
|
228
|
+
* `JoinContext` so `.join(field)` can resolve through the
|
|
229
|
+
* existing `ref()` declaration into the target collection.
|
|
230
|
+
* Absent in tests that construct a Collection directly without
|
|
231
|
+
* a vault; production usage always has one because
|
|
232
|
+
* Vault.collection() passes `this` through.
|
|
233
|
+
*/
|
|
234
|
+
joinResolver?: {
|
|
235
|
+
resolveSource(collectionName: string): JoinableSource | null;
|
|
236
|
+
resolveRef(leftCollection: string, field: string): RefDescriptor | null;
|
|
237
|
+
resolveDictSource?: (leftCollection: string, field: string) => JoinableSource | null;
|
|
238
|
+
} | undefined;
|
|
239
|
+
/** — i18nText field descriptors for locale-aware reads. */
|
|
240
|
+
i18nFields?: Record<string, I18nTextDescriptor> | undefined;
|
|
241
|
+
/** — embedding config for write-time vector derivation + semantic retrieval. */
|
|
242
|
+
embeddings?: EmbeddingDescriptor | undefined;
|
|
243
|
+
/** — string fields exposed to client-side `retrieve()`. */
|
|
244
|
+
textIndexes?: readonly string[] | undefined;
|
|
245
|
+
/** — pre-build the lexical index on open (eager-only). */
|
|
246
|
+
warmIndexOnOpen?: boolean | undefined;
|
|
247
|
+
/** — persist the lexical index as an opaque encrypted blob at `_ftindex/<name>`. */
|
|
248
|
+
textIndexPersist?: boolean | undefined;
|
|
249
|
+
/** — dictKey field descriptors for label resolution on reads. */
|
|
250
|
+
dictKeyFields?: Record<string, DictKeyDescriptor | StaticDictDescriptor> | undefined;
|
|
251
|
+
/** — consumer-neutral per-field descriptors. Read via getFieldMeta(). */
|
|
252
|
+
fieldMeta?: Record<string, FieldMeta> | undefined;
|
|
253
|
+
/** — collection-level descriptive metadata. Read via getMeta(). */
|
|
254
|
+
meta?: CollectionMeta | undefined;
|
|
255
|
+
moneyFields?: Record<string, ViaDescriptor> | undefined;
|
|
256
|
+
/** — declare via() composed fields; grouped by `_viaBrand` and merged with the money/i18n sugar keys above (a field in both throws). */
|
|
257
|
+
viaFields?: Record<string, ViaFieldSpec> | undefined;
|
|
258
|
+
/** — outbound ref declarations (snapshot from vault refRegistry). Used by describe(). */
|
|
259
|
+
declaredRefs?: Record<string, RefDescriptor> | undefined;
|
|
260
|
+
computed?: ComputedFields | undefined;
|
|
261
|
+
/** — declare classified() sensitive-field descriptors (sealed + riders + projections). */
|
|
262
|
+
classifiedFields?: Record<string, ClassifiedEntry> | undefined;
|
|
263
|
+
/**
|
|
264
|
+
* The forget-cascade subject key for this collection (from
|
|
265
|
+
* `withForgetCascade({ subjects })`), plumbed by the Vault. Consumed by the
|
|
266
|
+
* classified refusal matrix (R4: a digest-only field cannot be the subject key).
|
|
267
|
+
*/
|
|
268
|
+
subjectKeyField?: string | undefined;
|
|
269
|
+
/**
|
|
270
|
+
* Register a record's forget-subject ref directly (bypassing the write-hook
|
|
271
|
+
* pipeline), wired by the Vault when this collection declares a forget-
|
|
272
|
+
* subject field. Consumed by `putAtTier` (#766, via `TiersContext.addSubjectRef`)
|
|
273
|
+
* so a record whose first write is a tier write still enters `_subject_index`.
|
|
274
|
+
* `undefined` when no forget strategy declares this collection (no-op).
|
|
275
|
+
*/
|
|
276
|
+
addSubjectRef?: ((id: string, record: unknown) => Promise<void>) | undefined;
|
|
277
|
+
/** — tree-shake seam for `collection.reveal()`. Defaults to `NO_CLASSIFIED`. */
|
|
278
|
+
classifiedStrategy?: ClassifiedStrategy | undefined;
|
|
279
|
+
/**
|
|
280
|
+
* async callback that resolves a dict key to its label
|
|
281
|
+
* for a given locale. Provided by the Vault.
|
|
282
|
+
*/
|
|
283
|
+
dictLabelResolver?: ((dictName: string, key: string, locale: string, fallback?: string | readonly string[]) => Promise<string | undefined>) | undefined;
|
|
284
|
+
/**
|
|
285
|
+
* Async callback to open a dynamic dictionary handle.
|
|
286
|
+
* Provided by the Vault for dynamic-dict label-map resolution in
|
|
287
|
+
* the search index. Static dicts bypass this.
|
|
288
|
+
*/
|
|
289
|
+
getDictionary?: ((name: string) => Promise<DictionaryHandle>) | undefined;
|
|
290
|
+
/**
|
|
291
|
+
* synchronous callback that validates i18nText fields
|
|
292
|
+
* on put. Provided by the Vault. Throws MissingTranslationError.
|
|
293
|
+
*/
|
|
294
|
+
i18nPutValidator?: ((record: unknown) => void) | undefined;
|
|
295
|
+
/** — declare lookup()/enumOf()/dict() fields (#650 Task 2 sugar key, mirrors dictKeyFields), merged with `via(lookup(...))` entries. */
|
|
296
|
+
lookupFields?: Record<string, LookupDescriptor> | undefined;
|
|
297
|
+
/**
|
|
298
|
+
* async label resolver for the `'lookup'` binding's `'static'`/`'reserved'`
|
|
299
|
+
* tiers. Provided by the Vault — the SAME closure as `dictLabelResolver`
|
|
300
|
+
* (static table first, else the `vault.dictionary()` handle), so a
|
|
301
|
+
* native `dict()`/`lookup(static)` field resolves through identical
|
|
302
|
+
* label data as its `dictKey()`/`staticDict()` alias.
|
|
303
|
+
*/
|
|
304
|
+
lookupLabelResolver?: ((dimension: string, key: string, locale: string, fallback?: string | readonly string[]) => Promise<string | undefined>) | undefined;
|
|
305
|
+
/** — the matrix (`backing:'collection'`) tier's present-time row accessor, keyed by the full
|
|
306
|
+
* descriptor so it can resolve by `descriptor.key`, not the backing row's PUT-id (#651 Task 3).
|
|
307
|
+
* Provided by the Vault. */
|
|
308
|
+
getLookupBacking?: ((descriptor: LookupDescriptor) => (key: string) => Promise<Record<string, unknown> | undefined>) | undefined;
|
|
309
|
+
/** — closed-vocabulary write-time membership test (#650 Task 3). Provided by the Vault. */
|
|
310
|
+
membership?: ((field: string, key: string) => boolean | Promise<boolean>) | undefined;
|
|
311
|
+
/** — altKeys `ingest` normalization source (#650 Task 3). Provided by the Vault. */
|
|
312
|
+
getAltIndex?: ((desc: LookupDescriptor) => MaterializedBacking | undefined) | undefined;
|
|
313
|
+
/**
|
|
314
|
+
* — sync materialized `key -> row` rows for a lookup descriptor (#650
|
|
315
|
+
* Task 6, spec §5's snapshot+locale seam; matrix-tier routing added Task
|
|
316
|
+
* 7). Provided by the Vault; feeds the `'lookup'` binding's
|
|
317
|
+
* `compareForOrder`/`resolveOrderLabel` and this collection's
|
|
318
|
+
* `presentForJoin` hook (`resolveCollectionConfig` builds the latter via
|
|
319
|
+
* `buildPresentForJoin`, below).
|
|
320
|
+
*/
|
|
321
|
+
snapshotFor?: ((descriptor: LookupDescriptor) => ReadonlyMap<string, Record<string, unknown>> | undefined) | undefined;
|
|
322
|
+
/**
|
|
323
|
+
* translator callback from Noydb. When present, missing
|
|
324
|
+
* translations for `autoTranslate: true` i18nText fields are generated
|
|
325
|
+
* before the i18n validator runs.
|
|
326
|
+
*/
|
|
327
|
+
autoTranslateHook?: ((text: string, from: string, to: string, field: string, collection: string) => Promise<string>) | undefined;
|
|
328
|
+
/**
|
|
329
|
+
* vault-default locale, inherited from
|
|
330
|
+
* `openVault(name, { locale })` or `vault.setLocale()`.
|
|
331
|
+
*/
|
|
332
|
+
defaultLocale?: string | undefined;
|
|
333
|
+
/**
|
|
334
|
+
* collection-level conflict resolution policy.
|
|
335
|
+
* Overrides the db-level `conflict` option for this collection only.
|
|
336
|
+
*/
|
|
337
|
+
conflictPolicy?: ConflictPolicy<T> | undefined;
|
|
338
|
+
/**
|
|
339
|
+
* callback to register an envelope-level resolver with the
|
|
340
|
+
* SyncEngine. Provided by the Vault (wired from the SyncEngine).
|
|
341
|
+
*/
|
|
342
|
+
onRegisterConflictResolver?: ((name: string, resolver: CollectionConflictResolver) => void) | undefined;
|
|
343
|
+
/**
|
|
344
|
+
* CRDT mode for this collection. When set, `put()` stores
|
|
345
|
+
* CRDT state in the envelope and `get()` returns the resolved snapshot.
|
|
346
|
+
* `getRaw(id)` returns the full CRDT state for merge operations.
|
|
347
|
+
*/
|
|
348
|
+
crdt?: CrdtMode | undefined;
|
|
349
|
+
/**
|
|
350
|
+
* optional remote/sync adapter. When present, `presence()`
|
|
351
|
+
* writes heartbeats to this adapter so other devices can read them.
|
|
352
|
+
* If the adapter implements pub/sub, presence updates are real-time.
|
|
353
|
+
*/
|
|
354
|
+
syncAdapter?: NoydbStore | undefined;
|
|
355
|
+
/**
|
|
356
|
+
* called by the collection after every successful
|
|
357
|
+
* `get` / `put` / `delete`. The Vault installs a callback that
|
|
358
|
+
* appends a consent-audit entry when `withConsent` is active;
|
|
359
|
+
* outside a consent scope the callback is a no-op. Awaited so a
|
|
360
|
+
* thrown audit write surfaces to the caller.
|
|
361
|
+
*/
|
|
362
|
+
onAccess?: (op: 'get' | 'put' | 'delete' | 'reveal' | 'verify' | 'find', id: string) => Promise<void>;
|
|
363
|
+
/**
|
|
364
|
+
* invoked by `put`/`delete` before any adapter
|
|
365
|
+
* write. Receives the prior envelope timestamp + decrypted
|
|
366
|
+
* record (or `null` if no prior) and the incoming record (or
|
|
367
|
+
* `null` for delete). Throws `PeriodClosedError` to abort.
|
|
368
|
+
*/
|
|
369
|
+
/**
|
|
370
|
+
* opt-in deterministic-encryption index.
|
|
371
|
+
*
|
|
372
|
+
* Field names listed here get a deterministic AES-GCM ciphertext
|
|
373
|
+
* attached to every envelope's `_det` map, which enables blind
|
|
374
|
+
* equality search via `collection.findByDet(field, value)`.
|
|
375
|
+
*
|
|
376
|
+
* **Leaks equality.** Two records with the same value in a
|
|
377
|
+
* deterministic field produce identical ciphertexts, so anyone
|
|
378
|
+
* with store access can tell which records share a value without
|
|
379
|
+
* learning the value itself. This is the textbook trade-off of
|
|
380
|
+
* deterministic encryption — strictly opt-in for that reason.
|
|
381
|
+
*
|
|
382
|
+
* Declaring any field here without also passing
|
|
383
|
+
* `acknowledgeDeterministicRisk: true` throws at construction,
|
|
384
|
+
* so the risk must be explicitly acknowledged.
|
|
385
|
+
*/
|
|
386
|
+
deterministicFields?: readonly string[] | undefined;
|
|
387
|
+
/**
|
|
388
|
+
* gate for `deterministicFields`. Must be `true` when
|
|
389
|
+
* any deterministic field is declared. Any other value throws.
|
|
390
|
+
*/
|
|
391
|
+
acknowledgeDeterministicRisk?: boolean | undefined;
|
|
392
|
+
/**
|
|
393
|
+
* gate for the classified `equatable` knob (R8 double door). Must be `true`
|
|
394
|
+
* when any classified field declares `equatable: true`; otherwise construction
|
|
395
|
+
* throws. One-directional — setting it with zero equatable members is a
|
|
396
|
+
* silent no-op (mirrors `acknowledgeDeterministicRisk`).
|
|
397
|
+
*/
|
|
398
|
+
acknowledgeEquatableRisk?: boolean | undefined;
|
|
399
|
+
/**
|
|
400
|
+
* Structural group-encryption. Fields listed here are
|
|
401
|
+
* encrypted into their own `_sealed[field]` envelope slot — each under
|
|
402
|
+
* an HKDF-derived per-field key — instead of sitting inside the open
|
|
403
|
+
* `_data` blob. Default-off: with no `sensitive` fields the envelope is
|
|
404
|
+
* byte-identical to today. Read merges them back inline (the
|
|
405
|
+
* `Sealed<V>`/`reveal()` access restriction is a separate follow-up).
|
|
406
|
+
*
|
|
407
|
+
* **Incompatible with `perRecordKeys`/forget-cascade:** sealed
|
|
408
|
+
* field keys derive off the *collection* DEK, not the per-record CEK, so
|
|
409
|
+
* crypto-shredding a record does not erase its sealed fields.
|
|
410
|
+
*/
|
|
411
|
+
sensitive?: readonly string[] | undefined;
|
|
412
|
+
/**
|
|
413
|
+
* Per-record content-encryption keys. When `true`, every record body
|
|
414
|
+
* (and every history version of it) is encrypted under a fresh
|
|
415
|
+
* per-record CEK, AES-KW-wrapped under the collection DEK and stored
|
|
416
|
+
* on the envelope's `_cek`. Off by default. Foundation for per-record
|
|
417
|
+
* erasure and record-scoped sealing. `_det` slots stay
|
|
418
|
+
* keyed to the collection DEK regardless.
|
|
419
|
+
*/
|
|
420
|
+
perRecordKeys?: boolean | undefined;
|
|
421
|
+
/**
|
|
422
|
+
* Per-record provenance tracking. When `true`, `put()` calls that
|
|
423
|
+
* supply a `source` option stamp `_source` (opaque source id) and
|
|
424
|
+
* `_sourceTs` (ISO-8601 timestamp) onto the unencrypted envelope
|
|
425
|
+
* metadata. Off by default — zero cost for collections that don't
|
|
426
|
+
* need lineage tracking.
|
|
427
|
+
*/
|
|
428
|
+
provenance?: boolean | undefined;
|
|
429
|
+
/**
|
|
430
|
+
* declared tiers this collection supports. An
|
|
431
|
+
* undefined or empty list disables the hierarchical-tier surface
|
|
432
|
+
* on this collection (`putAtTier`, `getAtTier`, `elevate`, `demote`
|
|
433
|
+
* throw). Tier 0 is implicit and always available.
|
|
434
|
+
*/
|
|
435
|
+
tiers?: readonly number[] | undefined;
|
|
436
|
+
/**
|
|
437
|
+
* tree-shake seam — strategy for the collection-level tier operations
|
|
438
|
+
* (`putAtTier`/`getAtTier`/`listAtTier`/`elevate`/`demote`). When omitted,
|
|
439
|
+
* every tier operation throws `TiersNotEnabledError`. Enable by passing
|
|
440
|
+
* `withTiers()` from `@noy-db/hub/tiers` at `createNoydb` time.
|
|
441
|
+
*/
|
|
442
|
+
tiersStrategy?: TiersStrategy | undefined;
|
|
443
|
+
/**
|
|
444
|
+
* Search / retrieval capability strategy. When omitted, a collection's
|
|
445
|
+
* `search`/`retrieve`/`similarTo`/`warmIndex`/`flushIndex` methods and the
|
|
446
|
+
* embedding write-hook throw `SearchNotEnabledError`. Enable by passing
|
|
447
|
+
* `withSearch()` from `@noy-db/hub` at `createNoydb` time.
|
|
448
|
+
*/
|
|
449
|
+
searchStrategy?: SearchStrategy | undefined;
|
|
450
|
+
/**
|
|
451
|
+
* what a lower-tier caller sees for above-tier
|
|
452
|
+
* records. Default `'invisibility'`.
|
|
453
|
+
*/
|
|
454
|
+
tierMode?: TierMode | undefined;
|
|
455
|
+
/**
|
|
456
|
+
* optional callback fired on every cross-tier access.
|
|
457
|
+
* Provided by the Vault; collects notification events and writes
|
|
458
|
+
* to the ledger.
|
|
459
|
+
*/
|
|
460
|
+
onCrossTierAccess?: ((event: CrossTierAccessEvent) => void) | undefined;
|
|
461
|
+
/**
|
|
462
|
+
/**
|
|
463
|
+
* Optional back-reference to the owning vault's derivation
|
|
464
|
+
* registry + collection accessor. When present, successful
|
|
465
|
+
* `put()` dispatches registered derivation strategies for the
|
|
466
|
+
* source collection.
|
|
467
|
+
*/
|
|
468
|
+
derivationSource?: {
|
|
469
|
+
registry(): DerivationRegistry;
|
|
470
|
+
getCollection(name: string): Collection<Record<string, unknown>>;
|
|
471
|
+
/**
|
|
472
|
+
* Read-only vault facade handed to `derive(source, ctx)` so a
|
|
473
|
+
* derivation can fetch sibling records. Same shape and
|
|
474
|
+
* instance the guards service uses for `check(incoming, ctx)`.
|
|
475
|
+
*/
|
|
476
|
+
getReadOnlyFacade(): ReadOnlyVaultFacade;
|
|
477
|
+
/**
|
|
478
|
+
* Read access to the owning Noydb's currently-active multi-record
|
|
479
|
+
* transaction context, or `null` when no transaction is running.
|
|
480
|
+
* `dispatchDerivations` consults this so a recursive derived-output
|
|
481
|
+
* write can register its pre-write envelope onto `ctx._executed`
|
|
482
|
+
* and roll back alongside the source op on mid-batch failure.
|
|
483
|
+
*/
|
|
484
|
+
getActiveTxContext(): TxContext | null;
|
|
485
|
+
/**
|
|
486
|
+
* Construct a transient TxContext bound to the owning Noydb. Used
|
|
487
|
+
* by `Collection.putManyAtomic` to publish an active context for
|
|
488
|
+
* its Phase 2 loop.
|
|
489
|
+
*/
|
|
490
|
+
createTxContext(): TxContext;
|
|
491
|
+
/** Publish a TxContext for the duration of a bulk-atomic loop. */
|
|
492
|
+
setActiveTxContext(ctx: TxContext): void;
|
|
493
|
+
/** Drop a previously-published TxContext. */
|
|
494
|
+
clearActiveTxContext(ctx: TxContext): void;
|
|
495
|
+
} | undefined;
|
|
496
|
+
/**
|
|
497
|
+
* Vault-internal hook for materialized-view dispatch.
|
|
498
|
+
* Parallel to `derivationSource`. When set, `Collection.put` fires
|
|
499
|
+
* registered MV `onSourceWrite` after the standard derivation
|
|
500
|
+
* dispatch.
|
|
501
|
+
*/
|
|
502
|
+
materializedViewSource?: {
|
|
503
|
+
registry(): MaterializedViewRegistry;
|
|
504
|
+
getCollection(name: string): Collection<any>;
|
|
505
|
+
getActiveTxContext(): TxContext | null;
|
|
506
|
+
getQueryContext(): MVQueryContext;
|
|
507
|
+
} | undefined;
|
|
508
|
+
/**
|
|
509
|
+
* #638 Task 4 — thin collector hook wired by the Vault (`Vault._collectGraphTouch`). Every
|
|
510
|
+
* `sync-apply`/`cutover`/`restore` mutation origin calls `collect(this.name, id)`; a no-op
|
|
511
|
+
* when no batch is open (`_beginGraphBatch()` wasn't called) or the vault has no graph.
|
|
512
|
+
* `collectDelete` (#640) is the sync-apply delete socket — the resolved rollup-parent intents
|
|
513
|
+
* for a deleted record, captured pre-invalidation.
|
|
514
|
+
*/
|
|
515
|
+
graphDispatch?: {
|
|
516
|
+
collect(collection: string, id: string): void;
|
|
517
|
+
collectDelete(collection: string, id: string, intents: readonly RollupDeleteIntent[]): void;
|
|
518
|
+
} | undefined;
|
|
519
|
+
}
|
|
520
|
+
/** One normalized `ComputedFields` entry — a plain `ComputedFn` or a `ComputedFieldEntry`
|
|
521
|
+
* reduced to its parts, `mode` always defaulted (#638 Task 7). Exported so
|
|
522
|
+
* `via/graph-wiring.ts`'s reconcile-path guard can check `mode` without duplicating
|
|
523
|
+
* the plain-fn-vs-object-form normalization. */
|
|
524
|
+
export interface ComputedEntryParts {
|
|
525
|
+
readonly fn: ComputedFn;
|
|
526
|
+
readonly deps?: readonly string[];
|
|
527
|
+
readonly mode: 'materialized' | 'virtual';
|
|
528
|
+
}
|
|
529
|
+
export declare function computedEntryParts(entry: ComputedFn | ComputedFieldEntry): ComputedEntryParts;
|
|
530
|
+
/**
|
|
531
|
+
* Compile a collection's declared config into the ordered list of `ViaBinding`s
|
|
532
|
+
* for its `ViaPipeline`.
|
|
533
|
+
*
|
|
534
|
+
* money then i18n then lookup then classified then blob then computed — order
|
|
535
|
+
* pinned for pipeline parity with the hand-wired baseline this replaces: money
|
|
536
|
+
* encode ran before the i18n write stages, and money decode ran before i18n
|
|
537
|
+
* locale/dict-label resolution on read. Lookup compiles right after i18n
|
|
538
|
+
* (#650 Task 2) — a separate binding for native lookup()/enumOf()/dict()
|
|
539
|
+
* fields (`dictKeyFields`/`dictKey()`/`staticDict()` stay on the i18n
|
|
540
|
+
* binding above, unchanged); its `present` hook only adds `<field>Label`,
|
|
541
|
+
* same shape of read-time addition as i18n's own dict-label dressing, and
|
|
542
|
+
* declares no write-pipeline hooks yet (Task 3 adds `ingest`/`enforceWrite`).
|
|
543
|
+
* Classified compiles after those (#629 Task 6): its
|
|
544
|
+
* `encodeAtRest`/`decodeAtRest` hooks make the pipeline's `hasAtRestHooks`
|
|
545
|
+
* true, retiring the codec's inline `sensitiveFields` seal path
|
|
546
|
+
* (record-codec.ts) for any collection that declares `classifiedFields` —
|
|
547
|
+
* `classifiedGuardCtx` is the SAME `ClassifiedGuardCtx`
|
|
548
|
+
* `resolveCollectionConfig` already built for door 1's
|
|
549
|
+
* `guardClassifiedCompat` call, threaded in by its one caller below. Blob
|
|
550
|
+
* compiles next (#629 Task 7) but its position is inert: the blob binding
|
|
551
|
+
* declares NO write/read pipeline hooks (blob content is out-of-band
|
|
552
|
+
* `BlobSet` side-collections — it must never flip `hasAtRestHooks`), only
|
|
553
|
+
* `erase`/`describeFragment`. Computed compiles LAST (#638 Task 7) — its
|
|
554
|
+
* `present` hook must run AFTER money's own `present` so a virtual field's
|
|
555
|
+
* `deps` read the decoded (quantized) amount, not the raw stored form; at
|
|
556
|
+
* present-time i18n/lookup's DRESSING now runs AFTER computed instead (#665
|
|
557
|
+
* `_presentOrder`, `via/pipeline.ts` — compile order here is unchanged).
|
|
558
|
+
* `via/graph-wiring.ts#applyTaintOverlay` appends the `taint`
|
|
559
|
+
* binding after WHATEVER this function returns, so taint's present-time
|
|
560
|
+
* redaction always runs after computed's regardless of this ordering.
|
|
561
|
+
* {@link Collection._applyMoneyFields} PREPENDS money for the same reason
|
|
562
|
+
* on its own (MV-precreation reconcile) path — see its docstring;
|
|
563
|
+
* {@link Collection._applyClassifiedFields} APPENDS classified on that same
|
|
564
|
+
* reconcile path (blobFields/computed have no late-attach reconcile door —
|
|
565
|
+
* `viaFields`, like i18nFields/dictKeyFields, is construction-only).
|
|
566
|
+
*
|
|
567
|
+
* `eraseCfgOut` (#629 Task 10, optional out-param) — this function runs
|
|
568
|
+
* before the owning `Collection` exists (`this.codec` isn't built yet), so
|
|
569
|
+
* the classified binding's `classifySealedShred` closure can't be wired
|
|
570
|
+
* here. When supplied, `eraseCfgOut.classified` is set to the SAME cfg
|
|
571
|
+
* object instance handed to `viaBinder('classified')`, so a caller
|
|
572
|
+
* (`resolveCollectionConfig`) can thread it out to the `Collection`
|
|
573
|
+
* constructor, which mutates `classifySealedShred` in place once
|
|
574
|
+
* `this.codec` exists. Additive — every existing caller omits it and keeps
|
|
575
|
+
* getting a plain `ViaBinding[]`.
|
|
576
|
+
*/
|
|
577
|
+
export declare function compileViaBindings<T>(opts: CollectionOpts<T>, classifiedGuardCtx: ClassifiedGuardCtx, eraseCfgOut?: {
|
|
578
|
+
classified?: ClassifiedViaConfig;
|
|
579
|
+
}): ViaBinding[];
|
|
580
|
+
/**
|
|
581
|
+
* The money∩virtual-mode-computed field-name intersection (#669) — shared by
|
|
582
|
+
* `compileViaBindings` above (fresh construction, `isVirtual` closes over the just-built
|
|
583
|
+
* `virtualFields` Map) and {@link Collection._applyMoneyFields} (late-attach, `isVirtual`
|
|
584
|
+
* closes over the already-compiled pipeline's `computed` binding instead — virtual-mode
|
|
585
|
+
* computed fields have no late-attach door of their own (declaring one on a reconcile call
|
|
586
|
+
* throws), so by the time money reconciles onto an existing collection, any virtual field
|
|
587
|
+
* is already sitting in `bindings`, never in `this.computed`: `resolveCollectionConfig`
|
|
588
|
+
* deliberately excludes virtual-mode entries from the map it assigns to `this.computed`,
|
|
589
|
+
* since that field feeds ONLY the write-time `evalComputedFields` path — see
|
|
590
|
+
* `materializedComputed` above). Both callers get the identical intersection semantics from
|
|
591
|
+
* one function, so money's `presentLate` MAJOR-UNITS dressing (`via/money/binding.ts`) can
|
|
592
|
+
* never silently disagree between the fresh and late-attach paths.
|
|
593
|
+
*/
|
|
594
|
+
export declare function resolveVirtualMoneyFields(moneyFieldNames: Iterable<string>, isVirtual: (field: string) => boolean): Set<string>;
|
|
595
|
+
/** One `ViaGraph.registerDerived` call's worth of edge data — target + sources,
|
|
596
|
+
* `kind` chosen by the caller (#638 Task 2 edge extraction). `grain` defaults to
|
|
597
|
+
* `'record'` when absent; `resolveComputedEdges` (#638 Task 7) sets it to `'virtual'`
|
|
598
|
+
* for a `mode: 'virtual'` computed field's edge. */
|
|
599
|
+
export interface GraphEdge {
|
|
600
|
+
readonly target: FieldRef;
|
|
601
|
+
readonly sources: readonly FieldRef[];
|
|
602
|
+
readonly grain?: Grain;
|
|
603
|
+
}
|
|
604
|
+
/**
|
|
605
|
+
* The known-field-name universe builder (#638 Task 2 fix wave 2) — used by
|
|
606
|
+
* {@link resolveCollectionConfig} to validate `resolveViaBindingDepsEdges`'s `deps`
|
|
607
|
+
* entries, and by {@link resolveComputedEdges}'s classified-collection dep-name check
|
|
608
|
+
* (Finding I2ii's "shared, so the two paths cannot silently drift apart" rationale).
|
|
609
|
+
* #638 Task 7 dropped `resolveComputedEdges`'s dep-name check entirely (legalizing a
|
|
610
|
+
* plain-field dep on a non-classified collection); the Task 7 review's CRITICAL finding
|
|
611
|
+
* (a typo'd dep on a CLASSIFIED collection reopens the #636 leak) restored a
|
|
612
|
+
* classified-only slice of it, scoped through this SAME helper rather than a
|
|
613
|
+
* hand-rolled second universe — exported so `via/graph-wiring.ts`'s reconcile path can
|
|
614
|
+
* build its own call-scoped knownFields the identical way the fresh path does.
|
|
615
|
+
*/
|
|
616
|
+
export declare function collectKnownFieldNames(parts: {
|
|
617
|
+
readonly moneyFields?: Record<string, unknown> | undefined;
|
|
618
|
+
readonly i18nFields?: Record<string, unknown> | undefined;
|
|
619
|
+
readonly dictKeyFields?: Record<string, unknown> | undefined;
|
|
620
|
+
readonly classifiedFields?: Record<string, unknown> | undefined;
|
|
621
|
+
readonly computed?: Record<string, unknown> | undefined;
|
|
622
|
+
readonly lookupFields?: Record<string, unknown> | undefined;
|
|
623
|
+
}): Set<string>;
|
|
624
|
+
/**
|
|
625
|
+
* Validate each `computed` entry's `deps` well-formedness and resolve them into graph
|
|
626
|
+
* edges (#638 Task 2; #638 Task 7 folded the formerly-separate `computedDeps` sibling
|
|
627
|
+
* option into each entry's own `{ fn, deps?, mode? }` shape — see
|
|
628
|
+
* `with-formula/computed/index.ts#ComputedFieldEntry`). `computed` is the RAW
|
|
629
|
+
* user-declared map — `unifyComputedFields`'s union of the `computed:` sugar option and
|
|
630
|
+
* `via(computed(...))` entries, NEVER `mergedComputed`: a classified preset's
|
|
631
|
+
* `riderComputed` companions are a sanctioned, already-vetted classified→computed channel
|
|
632
|
+
* and are deliberately NOT subject to this guard. A depsless entry is fine UNLESS the
|
|
633
|
+
* collection also declares classified fields (`hasClassifiedFields`), in which case an
|
|
634
|
+
* opaque computed function could silently copy a classified field's plaintext into an
|
|
635
|
+
* ordinary, unredacted field (the #636 leak) — refused at declare time, regardless of
|
|
636
|
+
* `mode` (a virtual field's read-time redaction, `via/taint-binding.ts`, only fires for a
|
|
637
|
+
* field the graph actually taints — a depsless one never is).
|
|
638
|
+
*
|
|
639
|
+
* A `deps` entry may name ANY field — including a PLAIN field with no via feature
|
|
640
|
+
* declared on it at all (#638 Task 7; Task 2's original design only ever validated a
|
|
641
|
+
* `deps` entry against `moneyFields`/`i18nFields`/`dictKeyFields`/`classifiedFields`/
|
|
642
|
+
* `computed`'s own declared names — `collection-config.ts` has no schema-introspection
|
|
643
|
+
* API to check a `deps` entry against the record's FULL field set, since
|
|
644
|
+
* `StandardSchemaV1` — Zod/Valibot/ArkType/Effect, deliberately schema-library-agnostic —
|
|
645
|
+
* exposes no "list of field names" capability). This is safe on a NON-classified
|
|
646
|
+
* collection: a dep with no registered `ViaGraph` node contributes `DEFAULT_POSTURE`
|
|
647
|
+
* when folded (`ViaGraph._contribution`'s `?? DEFAULT_POSTURE` fallback) — i.e. nothing,
|
|
648
|
+
* exactly like any other untainted source.
|
|
649
|
+
*
|
|
650
|
+
* Task 7 review CRITICAL fix (empirically confirmed leak reopening): on a collection
|
|
651
|
+
* that DOES declare classified fields, an UNKNOWN `deps` entry (a typo — e.g.
|
|
652
|
+
* `deps: ['sssn']` instead of `['ssn']`) used to fold to `DEFAULT_POSTURE` exactly like
|
|
653
|
+
* the "harmless plain field" case above, silently reopening the #636 leak — construction
|
|
654
|
+
* didn't throw, and the derived field was written/read UNSEALED even though its `fn`
|
|
655
|
+
* actually read a classified field. `knownFields` (built by {@link collectKnownFieldNames}
|
|
656
|
+
* the SAME way at every call site — never a hand-rolled second universe, the exact drift
|
|
657
|
+
* that caused a Task 2 bug) restores the "every dep must name a known field" check, but
|
|
658
|
+
* ONLY when `hasClassifiedFields` — a non-classified collection keeps the Task 7 freedom
|
|
659
|
+
* (any string is a legal dep, per the paragraph above) since an untainted fold there is
|
|
660
|
+
* always safe regardless of typos.
|
|
661
|
+
*
|
|
662
|
+
* KNOWN LIMIT (pre-existing since Task 2, phase-E territory — pinned by
|
|
663
|
+
* `via/taint.test.ts`'s "KNOWN LIMIT" test): this only checks that a `deps` entry names
|
|
664
|
+
* SOME known field, not that it names the RIGHT one. A `deps` entry naming a real,
|
|
665
|
+
* declared-but-WRONG field (e.g. `fn` reads classified field `ssn` but `deps: ['amount']`
|
|
666
|
+
* — a genuine, known, non-classified field) still passes this check and still leaks:
|
|
667
|
+
* the graph edge folds from `amount`'s posture, not `ssn`'s, so the derived field is
|
|
668
|
+
* folded/sealed as if it read `amount`, while its actual output is `ssn`'s plaintext.
|
|
669
|
+
* There is no schema-introspection capability (see above) to verify a `deps` entry
|
|
670
|
+
* actually corresponds to what `fn` reads — closing this fully would need runtime
|
|
671
|
+
* read-tracking or a schema-aware capability, out of this fix's scope.
|
|
672
|
+
*/
|
|
673
|
+
export declare function resolveComputedEdges(collectionName: string, computed: ComputedFields | undefined, hasClassifiedFields: boolean, knownFields?: ReadonlySet<string>): readonly GraphEdge[];
|
|
674
|
+
/**
|
|
675
|
+
* Extract graph edges from `ViaBinding.deps` (#638 Task 2 — `deps` goes from
|
|
676
|
+
* inert to validated). For any compiled binding declaring `deps`, every field
|
|
677
|
+
* it `covers()` (tested against `knownFields`) becomes a derived target whose
|
|
678
|
+
* sources are `deps`; an unknown source field throws declare-time
|
|
679
|
+
* `ValidationError`. No shipped binding declares `deps` today (money/i18n/
|
|
680
|
+
* classified/blob don't) — this is the general path a future derive-bearing
|
|
681
|
+
* binding (phase C Task 7's `computed` via-binding) plugs into.
|
|
682
|
+
*/
|
|
683
|
+
export declare function resolveViaBindingDepsEdges(collectionName: string, bindings: readonly ViaBinding[], knownFields: ReadonlySet<string>): readonly GraphEdge[];
|
|
684
|
+
/**
|
|
685
|
+
* Resolve the raw {@link CollectionOpts} into the concrete field values the
|
|
686
|
+
* {@link Collection} constructor assigns — every `?? default`, every derived
|
|
687
|
+
* `Set`/subset, plus the three pure construction-time validations. Pure: no
|
|
688
|
+
* `this`, no external side effect. The allocated `Set`/`VectorSet`/`Lru`
|
|
689
|
+
* instances become the collection's own by reference.
|
|
690
|
+
*/
|
|
691
|
+
export declare function resolveCollectionConfig<T>(opts: CollectionOpts<T>): {
|
|
692
|
+
adapter: NoydbStore;
|
|
693
|
+
vault: string;
|
|
694
|
+
name: string;
|
|
695
|
+
keyring: UnlockedKeyring;
|
|
696
|
+
storeCiphertext: boolean;
|
|
697
|
+
ramCiphertext: boolean;
|
|
698
|
+
emitter: NoydbEventEmitter;
|
|
699
|
+
writeQueue: WriteQueueTracker | undefined;
|
|
700
|
+
schemaUpdateGate: SchemaUpdateGate | undefined;
|
|
701
|
+
schemaFence: SchemaFenceController | undefined;
|
|
702
|
+
writeHooks: WriteHookRegistry | undefined;
|
|
703
|
+
subsystemBus: ServiceBus | undefined;
|
|
704
|
+
activeTxId: (() => string | null) | undefined;
|
|
705
|
+
blobStrategy: BlobStrategy;
|
|
706
|
+
objectStore: ObjectProjection | undefined;
|
|
707
|
+
blobFields: BlobFieldsConfig | undefined;
|
|
708
|
+
aggregateStrategy: AggregateStrategy;
|
|
709
|
+
crdtStrategy: CrdtStrategy;
|
|
710
|
+
historyStrategy: HistoryStrategy;
|
|
711
|
+
i18nStrategy: I18nStrategy;
|
|
712
|
+
syncStrategy: SyncStrategy;
|
|
713
|
+
reconcileOnOpen: "auto" | "off" | "dry-run";
|
|
714
|
+
getDEK: (collectionName: string) => Promise<EnclaveKey>;
|
|
715
|
+
onDirty: OnDirtyCallback | undefined;
|
|
716
|
+
tabCoordinated: (() => boolean) | undefined;
|
|
717
|
+
historyConfig: HistoryConfig;
|
|
718
|
+
historyConfigExplicit: boolean;
|
|
719
|
+
schema: StandardSchemaV1<unknown, T> | undefined;
|
|
720
|
+
ledger: LedgerStore | undefined;
|
|
721
|
+
refEnforcer: {
|
|
722
|
+
enforceRefsOnPut(collectionName: string, record: unknown): Promise<void>;
|
|
723
|
+
enforceRefsOnDelete(collectionName: string, id: string): Promise<void>;
|
|
724
|
+
} | undefined;
|
|
725
|
+
joinResolver: {
|
|
726
|
+
resolveSource(collectionName: string): JoinableSource | null;
|
|
727
|
+
resolveRef(leftCollection: string, field: string): RefDescriptor | null;
|
|
728
|
+
resolveDictSource?: (leftCollection: string, field: string) => JoinableSource | null;
|
|
729
|
+
} | undefined;
|
|
730
|
+
i18nFields: Record<string, I18nTextDescriptor> | undefined;
|
|
731
|
+
textIndexes: readonly string[] | undefined;
|
|
732
|
+
embeddings: EmbeddingDescriptor | undefined;
|
|
733
|
+
vectorSet: VectorSet | undefined;
|
|
734
|
+
dictKeyFields: Record<string, StaticDictDescriptor<string> | DictKeyDescriptor<string>> | undefined;
|
|
735
|
+
lookupFields: Record<string, LookupDescriptor<string>> | undefined;
|
|
736
|
+
presentForJoin: ((record: unknown, locale: string) => unknown) | undefined;
|
|
737
|
+
fieldMeta: Record<string, FieldMeta> | undefined;
|
|
738
|
+
meta: CollectionMeta | undefined;
|
|
739
|
+
_refs: Record<string, RefDescriptor>;
|
|
740
|
+
via: ViaPipeline | undefined;
|
|
741
|
+
classifiedEraseCfg: ClassifiedViaConfig | undefined;
|
|
742
|
+
moneyFields: Record<string, ViaDescriptor> | undefined;
|
|
743
|
+
classified: ResolvedClassified | undefined;
|
|
744
|
+
classifiedGuardCtx: ClassifiedGuardCtx;
|
|
745
|
+
classifiedStrategy: ClassifiedStrategy;
|
|
746
|
+
computed: ComputedFields | undefined;
|
|
747
|
+
computedEdges: readonly GraphEdge[];
|
|
748
|
+
viaDepsEdges: readonly GraphEdge[];
|
|
749
|
+
computedFieldNames: string[];
|
|
750
|
+
dictLabelResolver: ((dictName: string, key: string, locale: string, fallback?: string | readonly string[]) => Promise<string | undefined>) | undefined;
|
|
751
|
+
getDictionary: ((name: string) => Promise<DictionaryHandle>) | undefined;
|
|
752
|
+
i18nPutValidator: ((record: unknown) => void) | undefined;
|
|
753
|
+
autoTranslateHook: ((text: string, from: string, to: string, field: string, collection: string) => Promise<string>) | undefined;
|
|
754
|
+
defaultLocale: string | undefined;
|
|
755
|
+
crdtMode: CrdtMode | undefined;
|
|
756
|
+
syncAdapter: NoydbStore | undefined;
|
|
757
|
+
onAccess: ((op: "get" | "put" | "delete" | "reveal" | "verify" | "find", id: string) => Promise<void>) | undefined;
|
|
758
|
+
derivationSource: {
|
|
759
|
+
registry(): DerivationRegistry;
|
|
760
|
+
getCollection(name: string): Collection<Record<string, unknown>>;
|
|
761
|
+
/**
|
|
762
|
+
* Read-only vault facade handed to `derive(source, ctx)` so a
|
|
763
|
+
* derivation can fetch sibling records. Same shape and
|
|
764
|
+
* instance the guards service uses for `check(incoming, ctx)`.
|
|
765
|
+
*/
|
|
766
|
+
getReadOnlyFacade(): ReadOnlyVaultFacade;
|
|
767
|
+
/**
|
|
768
|
+
* Read access to the owning Noydb's currently-active multi-record
|
|
769
|
+
* transaction context, or `null` when no transaction is running.
|
|
770
|
+
* `dispatchDerivations` consults this so a recursive derived-output
|
|
771
|
+
* write can register its pre-write envelope onto `ctx._executed`
|
|
772
|
+
* and roll back alongside the source op on mid-batch failure.
|
|
773
|
+
*/
|
|
774
|
+
getActiveTxContext(): TxContext | null;
|
|
775
|
+
/**
|
|
776
|
+
* Construct a transient TxContext bound to the owning Noydb. Used
|
|
777
|
+
* by `Collection.putManyAtomic` to publish an active context for
|
|
778
|
+
* its Phase 2 loop.
|
|
779
|
+
*/
|
|
780
|
+
createTxContext(): TxContext;
|
|
781
|
+
/** Publish a TxContext for the duration of a bulk-atomic loop. */
|
|
782
|
+
setActiveTxContext(ctx: TxContext): void;
|
|
783
|
+
/** Drop a previously-published TxContext. */
|
|
784
|
+
clearActiveTxContext(ctx: TxContext): void;
|
|
785
|
+
} | undefined;
|
|
786
|
+
materializedViewSource: {
|
|
787
|
+
registry(): MaterializedViewRegistry;
|
|
788
|
+
getCollection(name: string): Collection<any>;
|
|
789
|
+
getActiveTxContext(): TxContext | null;
|
|
790
|
+
getQueryContext(): MVQueryContext;
|
|
791
|
+
} | undefined;
|
|
792
|
+
graphDispatch: {
|
|
793
|
+
collect(collection: string, id: string): void;
|
|
794
|
+
collectDelete(collection: string, id: string, intents: readonly RollupDeleteIntent[]): void;
|
|
795
|
+
} | undefined;
|
|
796
|
+
tiers: Set<number> | null;
|
|
797
|
+
tiersStrategy: TiersStrategy;
|
|
798
|
+
searchStrategy: SearchStrategy;
|
|
799
|
+
tierMode: TierMode;
|
|
800
|
+
blobTierPolicy: "isolate" | "dedup";
|
|
801
|
+
onCrossTierAccess: ((event: CrossTierAccessEvent) => void) | undefined;
|
|
802
|
+
addSubjectRef: ((id: string, record: unknown) => Promise<void>) | undefined;
|
|
803
|
+
deterministicFields: ReadonlySet<string> | null;
|
|
804
|
+
sensitiveFields: ReadonlySet<string>;
|
|
805
|
+
vdigFields: ReadonlyMap<string, VdigFieldPolicy> | null;
|
|
806
|
+
perRecordCek: boolean;
|
|
807
|
+
cekCache: Lru<string, CryptoKey> | null;
|
|
808
|
+
provenance: boolean;
|
|
809
|
+
};
|