@noy-db/hub 0.3.0-pre.8 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aggregate/index.js +9 -8
- package/dist/aggregate/index.js.map +1 -1
- package/dist/api-ZGS6LCOF.js +20 -0
- package/dist/as/index.js +11 -11
- package/dist/attestation/index.js +18 -18
- package/dist/backup-BJ57IKAO.js +242 -0
- package/dist/backup-BJ57IKAO.js.map +1 -0
- package/dist/blobs/index.js +13 -11
- package/dist/blobs/index.js.map +1 -1
- package/dist/broker/index.js +92 -0
- package/dist/broker/index.js.map +1 -0
- package/dist/bundle/index.js +25 -22
- package/dist/bundle/index.js.map +1 -1
- package/dist/by/index.js +2 -2
- package/dist/cargo/index.js +31 -31
- package/dist/chunk-2NVOWNI3.js +167 -0
- package/dist/chunk-2NVOWNI3.js.map +1 -0
- package/dist/chunk-3B5VVCNY.js +71 -0
- package/dist/chunk-3LQ2YKO4.js +230 -0
- package/dist/chunk-3QCRBHCY.js +54 -0
- package/dist/chunk-454JXE57.js +1697 -0
- package/dist/chunk-454JXE57.js.map +1 -0
- package/dist/chunk-4CTHCN4J.js +480 -0
- package/dist/chunk-4CTHCN4J.js.map +1 -0
- package/dist/chunk-4GPE63GU.js +111 -0
- package/dist/chunk-4GPE63GU.js.map +1 -0
- package/dist/chunk-4JBYV75E.js +150 -0
- package/dist/chunk-4NXKCLLQ.js +97 -0
- package/dist/chunk-4VNQOLML.js +29 -0
- package/dist/chunk-4VNQOLML.js.map +1 -0
- package/dist/chunk-5M5DVGV7.js +69 -0
- package/dist/chunk-5O3XF4DV.js +150 -0
- package/dist/chunk-5O3XF4DV.js.map +1 -0
- package/dist/chunk-5YOLBEQ6.js +30 -0
- package/dist/chunk-6CRIV7DE.js +129 -0
- package/dist/chunk-6JTIAGHD.js +621 -0
- package/dist/chunk-6JTIAGHD.js.map +1 -0
- package/dist/chunk-6QTNZJBS.js +255 -0
- package/dist/chunk-6T2SCQRU.js +86 -0
- package/dist/chunk-7DSTRQIJ.js +45 -0
- package/dist/chunk-AUSTCW2X.js +589 -0
- package/dist/chunk-B3HJYUOF.js +209 -0
- package/dist/chunk-BDVFPG6Y.js +164 -0
- package/dist/chunk-BIOUI4HL.js +1554 -0
- package/dist/chunk-BIOUI4HL.js.map +1 -0
- package/dist/chunk-CAF6WOK7.js +36 -0
- package/dist/chunk-CDUQTA3Z.js +381 -0
- package/dist/chunk-CDUQTA3Z.js.map +1 -0
- package/dist/chunk-CIE2BASH.js +404 -0
- package/dist/chunk-CRI4OUV4.js +42 -0
- package/dist/chunk-DLG74CNB.js +91 -0
- package/dist/chunk-E5ZQT5KX.js +30 -0
- package/dist/chunk-E5ZQT5KX.js.map +1 -0
- package/dist/chunk-EQO2UVP4.js +247 -0
- package/dist/chunk-EQO2UVP4.js.map +1 -0
- package/dist/chunk-ERJ7FU55.js +367 -0
- package/dist/chunk-EVVGJDRQ.js +205 -0
- package/dist/chunk-EVX47VBM.js +74 -0
- package/dist/chunk-EVX47VBM.js.map +1 -0
- package/dist/chunk-EXK7QRWF.js +59 -0
- package/dist/chunk-EYZ6IQ6X.js +202 -0
- package/dist/chunk-F64IRYG3.js +45 -0
- package/dist/chunk-FHS2HQSH.js +823 -0
- package/dist/chunk-FM3G3NOY.js +206 -0
- package/dist/chunk-FM3G3NOY.js.map +1 -0
- package/dist/chunk-FUG4SFN3.js +36 -0
- package/dist/chunk-FUG4SFN3.js.map +1 -0
- package/dist/chunk-GKEWXIV5.js +80 -0
- package/dist/chunk-GTGPO5KW.js +59 -0
- package/dist/chunk-HB3RFQSC.js +95 -0
- package/dist/chunk-HDMEGAQE.js +957 -0
- package/dist/chunk-HDMEGAQE.js.map +1 -0
- package/dist/chunk-HDQIIUPH.js +135 -0
- package/dist/chunk-HDQIIUPH.js.map +1 -0
- package/dist/chunk-HTJQYHZP.js +344 -0
- package/dist/chunk-HTJQYHZP.js.map +1 -0
- package/dist/chunk-I6GALP6E.js +99 -0
- package/dist/chunk-IGJCYUT5.js +99 -0
- package/dist/chunk-IGJCYUT5.js.map +1 -0
- package/dist/chunk-IL6POWCW.js +130 -0
- package/dist/chunk-IU6SNYX6.js +117 -0
- package/dist/chunk-J2ZX2XUV.js +778 -0
- package/dist/chunk-JIF24JPM.js +495 -0
- package/dist/chunk-JIF24JPM.js.map +1 -0
- package/dist/chunk-JK733I5V.js +23 -0
- package/dist/chunk-JK733I5V.js.map +1 -0
- package/dist/chunk-JKJOGPZN.js +29 -0
- package/dist/chunk-JNAI2HN2.js +32 -0
- package/dist/chunk-JNAI2HN2.js.map +1 -0
- package/dist/chunk-JZUV47FZ.js +41 -0
- package/dist/chunk-K5IMOGHB.js +30 -0
- package/dist/chunk-KPZS5QAQ.js +151 -0
- package/dist/chunk-KPZS5QAQ.js.map +1 -0
- package/dist/chunk-KSKBRKGJ.js +291 -0
- package/dist/chunk-KSKBRKGJ.js.map +1 -0
- package/dist/chunk-LASZKVMO.js +382 -0
- package/dist/chunk-LXEXBTKL.js +515 -0
- package/dist/chunk-LXEXBTKL.js.map +1 -0
- package/dist/chunk-M4CV6BRT.js +524 -0
- package/dist/chunk-M4CV6BRT.js.map +1 -0
- package/dist/chunk-MEFJPTZ4.js +371 -0
- package/dist/chunk-MEFJPTZ4.js.map +1 -0
- package/dist/chunk-MV43JSJF.js +265 -0
- package/dist/chunk-MV43JSJF.js.map +1 -0
- package/dist/chunk-NJ4EOKMB.js +392 -0
- package/dist/chunk-NJ4EOKMB.js.map +1 -0
- package/dist/chunk-NR5LT5RY.js +135 -0
- package/dist/chunk-NWSGI5C7.js +261 -0
- package/dist/chunk-NWSGI5C7.js.map +1 -0
- package/dist/chunk-OSDB5WW3.js +739 -0
- package/dist/chunk-OSDB5WW3.js.map +1 -0
- package/dist/chunk-PN2XMATY.js +37 -0
- package/dist/chunk-PN2XMATY.js.map +1 -0
- package/dist/chunk-Q5VNKNE5.js +70 -0
- package/dist/chunk-QLWMEXCT.js +21 -0
- package/dist/chunk-QRB7NAOJ.js +123 -0
- package/dist/chunk-R4ROFEYC.js +74 -0
- package/dist/chunk-RCVJZMFE.js +164 -0
- package/dist/chunk-RCVJZMFE.js.map +1 -0
- package/dist/chunk-RIX4V2TB.js +367 -0
- package/dist/chunk-RYCTDFUX.js +40 -0
- package/dist/chunk-RZ5SVOYR.js +155 -0
- package/dist/chunk-SLFHQTTW.js +99 -0
- package/dist/chunk-SNZ6URZZ.js +2782 -0
- package/dist/chunk-SNZ6URZZ.js.map +1 -0
- package/dist/chunk-T2FFWNPK.js +75 -0
- package/dist/chunk-T2FFWNPK.js.map +1 -0
- package/dist/chunk-UNFPPVNI.js +23 -0
- package/dist/chunk-VFUPHI2Z.js +333 -0
- package/dist/chunk-VFUPHI2Z.js.map +1 -0
- package/dist/chunk-VLFCJYTL.js +235 -0
- package/dist/chunk-VN3DBQAU.js +124 -0
- package/dist/chunk-VYYM3MEN.js +98 -0
- package/dist/chunk-VYYM3MEN.js.map +1 -0
- package/dist/chunk-VZRODIM3.js +49 -0
- package/dist/chunk-W22IKJE2.js +94 -0
- package/dist/chunk-X3YYQWOQ.js +155 -0
- package/dist/chunk-X7QBD67R.js +14405 -0
- package/dist/chunk-X7QBD67R.js.map +1 -0
- package/dist/chunk-XDYREZWE.js +1128 -0
- package/dist/chunk-XDYREZWE.js.map +1 -0
- package/dist/chunk-XWZVFISC.js +720 -0
- package/dist/chunk-XWZVFISC.js.map +1 -0
- package/dist/chunk-YFXZEAYK.js +85 -0
- package/dist/chunk-ZAJAVEXY.js +50 -0
- package/dist/chunk-ZICD77GM.js +34 -0
- package/dist/chunk-ZJ2AK4V7.js +38 -0
- package/dist/chunk-ZJ2AK4V7.js.map +1 -0
- package/dist/chunk-ZUODRVHY.js +14 -0
- package/dist/classified/index.js +5 -3
- package/dist/classified-marker-CZKA6ITE.js +28 -0
- package/dist/classified-marker-CZKA6ITE.js.map +1 -0
- package/dist/collection-facade-TLWIPI76.js +44 -0
- package/dist/computed-ZIQTYTDI.js +11 -0
- package/dist/consent/index.js +9 -9
- package/dist/crdt/index.js +1 -1
- package/dist/dead-filter-ESOBZZP5.js +28 -0
- package/dist/delegation-W7ZV2322.js +25 -0
- package/dist/derivations/index.js +12 -11
- package/dist/derive-H2BJTLUI.js +21 -0
- package/dist/enclave-AP3I5W7O.js +141 -0
- package/dist/executor-KGWTNEQD.js +9 -0
- package/dist/executor-OVEXR6RT.js +9 -0
- package/dist/executor-UNEH5ZYH.js +25 -0
- package/dist/export-accessible-PCMXSUZS.js +23 -0
- package/dist/extract-partition-SWHFSYJO.js +38 -0
- package/dist/fanout-sidecar-A765THMX.js +74 -0
- package/dist/find-N6345CNT.js +11 -0
- package/dist/forget/index.js +10 -10
- package/dist/forget/index.js.map +1 -1
- package/dist/guards/index.js +6 -6
- package/dist/history/index.js +14 -11
- package/dist/history/index.js.map +1 -1
- package/dist/i18n/index.js +50 -37
- package/dist/i18n/index.js.map +1 -1
- package/dist/index.d.ts +307 -1459
- package/dist/index.js +595 -198
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.js +7 -7
- package/dist/indexing/index.js.map +1 -1
- package/dist/issue-5OKB6I2R.js +19 -0
- package/dist/kernel/best-effort-revert.d.ts +52 -0
- package/dist/kernel/cache/index.d.ts +10 -0
- package/dist/kernel/cache/lru.d.ts +97 -0
- package/dist/kernel/cache/policy.d.ts +32 -0
- package/dist/kernel/collection-config.d.ts +809 -0
- package/dist/kernel/collection.d.ts +1522 -0
- package/dist/kernel/constants.d.ts +18 -0
- package/dist/kernel/debug.d.ts +25 -0
- package/dist/kernel/enclave/broker/proof.d.ts +154 -0
- package/dist/kernel/enclave/classify/bidx.d.ts +77 -0
- package/dist/kernel/enclave/classify/compare.d.ts +10 -0
- package/dist/kernel/enclave/classify/digest.d.ts +8 -0
- package/dist/kernel/enclave/classify/find.d.ts +36 -0
- package/dist/kernel/enclave/classify/kofn.d.ts +7 -0
- package/dist/kernel/enclave/classify/normalize.d.ts +7 -0
- package/dist/kernel/enclave/classify/reveal.d.ts +10 -0
- package/dist/kernel/enclave/classify/vdig.d.ts +39 -0
- package/dist/kernel/enclave/classify/verify.d.ts +36 -0
- package/dist/kernel/enclave/classify/write.d.ts +8 -0
- package/dist/kernel/enclave/crypto.d.ts +263 -0
- package/dist/kernel/enclave/index.d.ts +79 -0
- package/dist/kernel/enclave/record-keys/deterministic.d.ts +55 -0
- package/dist/kernel/enclave/record-keys/envelope-body.d.ts +79 -0
- package/dist/kernel/enclave/record-keys/lifecycle.d.ts +107 -0
- package/dist/kernel/enclave/record-keys/record-codec.d.ts +328 -0
- package/dist/kernel/enclave/record-keys/sealed-slot.d.ts +14 -0
- package/dist/kernel/enclave/record-keys/sealed-slots.d.ts +123 -0
- package/dist/kernel/enclave/record-keys/sealing.d.ts +70 -0
- package/dist/kernel/enclave/record-keys/tombstone.d.ts +57 -0
- package/dist/kernel/env-check.d.ts +1 -0
- package/dist/kernel/errors.d.ts +1922 -0
- package/dist/kernel/events.d.ts +11 -0
- package/dist/kernel/lazy-count.d.ts +13 -0
- package/dist/kernel/memory-store.d.ts +17 -0
- package/dist/kernel/mutation.d.ts +14 -0
- package/dist/kernel/noydb.d.ts +826 -0
- package/dist/kernel/paths.d.ts +25 -0
- package/dist/kernel/query/builder.d.ts +520 -0
- package/dist/kernel/query/index.d.ts +31 -0
- package/dist/kernel/query/join.d.ts +205 -0
- package/dist/kernel/query/live.d.ts +111 -0
- package/dist/kernel/query/predicate.d.ts +139 -0
- package/dist/kernel/query/scan-builder.d.ts +334 -0
- package/dist/kernel/refs.d.ts +205 -0
- package/dist/kernel/schema.d.ts +134 -0
- package/dist/kernel/sync-policy.d.ts +188 -0
- package/dist/kernel/tier-visibility.d.ts +54 -0
- package/dist/kernel/types.d.ts +3239 -0
- package/dist/kernel/util/discriminant.d.ts +58 -0
- package/dist/kernel/util/index.d.ts +14 -0
- package/dist/kernel/util/sanitize-filename.d.ts +75 -0
- package/dist/kernel/validation.d.ts +130 -0
- package/dist/kernel/vault.d.ts +1740 -0
- package/dist/kernel/via/compose.d.ts +144 -0
- package/dist/kernel/via/dispatch.d.ts +195 -0
- package/dist/kernel/via/graph-wiring.d.ts +145 -0
- package/dist/kernel/via/graph.d.ts +166 -0
- package/dist/kernel/via/index.d.ts +200 -0
- package/dist/kernel/via/pipeline.d.ts +266 -0
- package/dist/kernel/via/reconcile.d.ts +153 -0
- package/dist/kernel/via/taint-binding.d.ts +66 -0
- package/dist/kernel/write-queue.d.ts +46 -0
- package/dist/ledger-GFBKVPV4.js +42 -0
- package/dist/legacy/bundle.d.ts +30 -0
- package/dist/legacy/kernel.d.ts +33 -0
- package/dist/liberate-3VDOT4KO.js +24 -0
- package/dist/link-set-Z7Q2ASFX.js +31 -0
- package/dist/materialized-views/index.js +19 -15
- package/dist/noydb-ZCJOYBDI.js +68 -0
- package/dist/on/index.js +9 -9
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.js +12 -12
- package/dist/pod/index.js +11 -11
- package/dist/policy-Z3RUAIY2.js +41 -0
- package/dist/port/as/index.d.ts +26 -0
- package/dist/port/at/index.d.ts +18 -0
- package/dist/port/by/default-provider.d.ts +9 -0
- package/dist/port/by/index.d.ts +17 -0
- package/dist/port/by/types.d.ts +86 -0
- package/dist/port/in/index.d.ts +21 -0
- package/dist/port/on/index.d.ts +27 -0
- package/dist/port/to/index.d.ts +19 -0
- package/dist/port/ui/index.d.ts +21 -0
- package/dist/port/with/blob-strategy.d.ts +98 -0
- package/dist/port/with/broker-strategy.d.ts +84 -0
- package/dist/port/with/capabilities.d.ts +31 -0
- package/dist/port/with/classified-marker.d.ts +9 -0
- package/dist/port/with/classified-strategy.d.ts +62 -0
- package/dist/port/with/computed-strategy.d.ts +19 -0
- package/dist/port/with/i18n-strategy.d.ts +175 -0
- package/dist/port/with/index.d.ts +18 -0
- package/dist/port/with/lazy-strategy.d.ts +48 -0
- package/dist/port/with/lookup-strategy.d.ts +129 -0
- package/dist/port/with/service-bus.d.ts +156 -0
- package/dist/port/with/team-strategy.d.ts +36 -0
- package/dist/port/with/write-hooks.d.ts +34 -0
- package/dist/portability/index.js +8 -8
- package/dist/post-register-JTH76BLY.js +60 -0
- package/dist/post-register-JTH76BLY.js.map +1 -0
- package/dist/public-envelope-B4KNWVUA.js +32 -0
- package/dist/purge-scope-FGNNLWHD.js +24 -0
- package/dist/purge-scope-FGNNLWHD.js.map +1 -0
- package/dist/query/index.js +9 -6
- package/dist/read-only-facade-CHCKSEPD.js +8 -0
- package/dist/register-VAHONCID.js +23 -0
- package/dist/registry-7MLVD3VO.js +19 -0
- package/dist/registry-EPKPD5SM.js +18 -0
- package/dist/registry-P5T7PS2U.js +9 -0
- package/dist/request-withdrawal-TI3A5WPS.js +31 -0
- package/dist/reveal-DIBHLUZX.js +38 -0
- package/dist/reveal-DIBHLUZX.js.map +1 -0
- package/dist/revoke-FDRD6GRW.js +24 -0
- package/dist/satellites/index.js +1 -1
- package/dist/sealed-record/index.js +12 -12
- package/dist/seed-Q6M2IZFL.js +231 -0
- package/dist/seed-Q6M2IZFL.js.map +1 -0
- package/dist/session/index.js +9 -9
- package/dist/shadow/index.js +2 -2
- package/dist/signer-MUWEIUI6.js +25 -0
- package/dist/snapshots/index.js +10 -10
- package/dist/stale-OSQ7J3AA.js +29 -0
- package/dist/storage-MVFCGEQE.js +23 -0
- package/dist/store-coordination-provider-64OEZFGS.js +142 -0
- package/dist/sync/index.js +9 -9
- package/dist/team/index.js +15 -15
- package/dist/tiers/index.js +14 -10
- package/dist/to/index.js +1 -2
- package/dist/tx/index.js +3 -3
- package/dist/util/index.js +1 -1
- package/dist/verify-ZASTRNPR.js +140 -0
- package/dist/verify-ZASTRNPR.js.map +1 -0
- package/dist/via/blob/active.d.ts +34 -0
- package/dist/via/blob/binding.d.ts +86 -0
- package/dist/via/blob/index.d.ts +34 -0
- package/dist/via/classified/active.d.ts +3 -0
- package/dist/via/classified/binding.d.ts +83 -0
- package/dist/via/classified/config-drift.d.ts +34 -0
- package/dist/via/classified/descriptor.d.ts +66 -0
- package/dist/via/classified/errors.d.ts +19 -0
- package/dist/via/classified/guards.d.ts +23 -0
- package/dist/via/classified/index.d.ts +11 -0
- package/dist/via/classified/presets.d.ts +65 -0
- package/dist/via/classified/resolve.d.ts +9 -0
- package/dist/via/classified/strategy.d.ts +11 -0
- package/dist/via/classified/validators.d.ts +3 -0
- package/dist/via/classified/write.d.ts +4 -0
- package/dist/via/computed/binding.d.ts +34 -0
- package/dist/via/computed/descriptor.d.ts +35 -0
- package/dist/via/i18n/active.d.ts +28 -0
- package/dist/via/i18n/binding.d.ts +36 -0
- package/dist/via/i18n/core.d.ts +267 -0
- package/dist/via/i18n/densify.d.ts +24 -0
- package/dist/via/i18n/dictionary.d.ts +200 -0
- package/dist/via/i18n/index.d.ts +21 -0
- package/dist/via/i18n/policy.d.ts +44 -0
- package/dist/via/i18n/script.d.ts +26 -0
- package/dist/via/i18n/strategy.d.ts +13 -0
- package/dist/via/lookup/active.d.ts +19 -0
- package/dist/via/lookup/binding.d.ts +99 -0
- package/dist/via/lookup/descriptor.d.ts +123 -0
- package/dist/via/lookup/handle.d.ts +220 -0
- package/dist/via/lookup/index.d.ts +17 -0
- package/dist/via/lookup/registry.d.ts +228 -0
- package/dist/via/lookup/snapshot.d.ts +67 -0
- package/dist/via/money/arith.d.ts +68 -0
- package/dist/via/money/binding.d.ts +21 -0
- package/dist/via/money/branded.d.ts +61 -0
- package/dist/via/money/descriptor.d.ts +73 -0
- package/dist/via/money/fixed-point.d.ts +51 -0
- package/dist/via/money/index.d.ts +15 -0
- package/dist/via/money/iso4217.d.ts +6 -0
- package/dist/via/money/money-reducer.d.ts +33 -0
- package/dist/via/money/normalize.d.ts +105 -0
- package/dist/via/money/paths.d.ts +61 -0
- package/dist/via/money/where.d.ts +127 -0
- package/dist/walk-SVNDIZ62.js +241 -0
- package/dist/with/index.js +11 -11
- package/dist/with-audit/attestation/active.d.ts +10 -0
- package/dist/with-audit/attestation/index.d.ts +16 -0
- package/dist/with-audit/attestation/issue.d.ts +29 -0
- package/dist/with-audit/attestation/revoke.d.ts +15 -0
- package/dist/with-audit/attestation/signer.d.ts +33 -0
- package/dist/with-audit/attestation/strategy.d.ts +44 -0
- package/dist/with-audit/attestation/vault-facade.d.ts +62 -0
- package/dist/with-audit/consent/active.d.ts +14 -0
- package/dist/with-audit/consent/consent.d.ts +114 -0
- package/dist/with-audit/consent/index.d.ts +14 -0
- package/dist/with-audit/consent/strategy.d.ts +36 -0
- package/dist/with-audit/forget/active.d.ts +31 -0
- package/dist/with-audit/forget/index.d.ts +28 -0
- package/dist/with-audit/forget/purge-scope.d.ts +54 -0
- package/dist/with-audit/forget/strategy.d.ts +199 -0
- package/dist/with-audit/forget/subject-index.d.ts +83 -0
- package/dist/with-audit/guards/executor.d.ts +26 -0
- package/dist/with-audit/guards/immutable-guard.d.ts +63 -0
- package/dist/with-audit/guards/index.d.ts +10 -0
- package/dist/with-audit/guards/read-only-facade.d.ts +31 -0
- package/dist/with-audit/guards/registry.d.ts +83 -0
- package/dist/with-audit/guards/transition-guard.d.ts +82 -0
- package/dist/with-audit/guards/types.d.ts +134 -0
- package/dist/with-audit/guards/with-guard.d.ts +15 -0
- package/dist/with-audit/periods/active.d.ts +11 -0
- package/dist/with-audit/periods/index.d.ts +18 -0
- package/dist/with-audit/periods/periods.d.ts +417 -0
- package/dist/with-audit/periods/strategy.d.ts +32 -0
- package/dist/with-audit/periods/vault-facade.d.ts +95 -0
- package/dist/with-audit/portability/active.d.ts +11 -0
- package/dist/with-audit/portability/export-accessible.d.ts +46 -0
- package/dist/with-audit/portability/index.d.ts +18 -0
- package/dist/with-audit/portability/request-withdrawal.d.ts +85 -0
- package/dist/with-audit/portability/strategy.d.ts +31 -0
- package/dist/with-audit/portability/withdraw-accessible.d.ts +82 -0
- package/dist/with-audit/sealed-record/active.d.ts +9 -0
- package/dist/with-audit/sealed-record/index.d.ts +55 -0
- package/dist/with-audit/sealed-record/strategy.d.ts +34 -0
- package/dist/with-audit/sealed-record/types.d.ts +27 -0
- package/dist/with-audit/tiers/active.d.ts +9 -0
- package/dist/with-audit/tiers/index.d.ts +394 -0
- package/dist/with-audit/tiers/strategy.d.ts +36 -0
- package/dist/with-cargo/active.d.ts +11 -0
- package/dist/with-cargo/adopt-partition.d.ts +81 -0
- package/dist/with-cargo/decrypt-partition.d.ts +19 -0
- package/dist/with-cargo/describe-extraction.d.ts +41 -0
- package/dist/with-cargo/extract-partition.d.ts +155 -0
- package/dist/with-cargo/index.d.ts +33 -0
- package/dist/with-cargo/strategy.d.ts +30 -0
- package/dist/with-cargo/vault-diff.d.ts +144 -0
- package/dist/with-cargo/walk-closure.d.ts +67 -0
- package/dist/with-commit/crdt/active.d.ts +25 -0
- package/dist/with-commit/crdt/crdt.d.ts +42 -0
- package/dist/with-commit/crdt/index.d.ts +16 -0
- package/dist/with-commit/crdt/strategy.d.ts +25 -0
- package/dist/with-commit/history/active.d.ts +40 -0
- package/dist/with-commit/history/diff.d.ts +23 -0
- package/dist/with-commit/history/history.d.ts +73 -0
- package/dist/with-commit/history/index.d.ts +30 -0
- package/dist/with-commit/history/ledger/constants.d.ts +37 -0
- package/dist/with-commit/history/ledger/entry.d.ts +195 -0
- package/dist/with-commit/history/ledger/hash.d.ts +30 -0
- package/dist/with-commit/history/ledger/index.d.ts +19 -0
- package/dist/with-commit/history/ledger/patch.d.ts +99 -0
- package/dist/with-commit/history/ledger/store.d.ts +356 -0
- package/dist/with-commit/history/strategy.d.ts +136 -0
- package/dist/with-commit/history/time-machine.d.ts +202 -0
- package/dist/with-commit/numbering/descriptor.d.ts +27 -0
- package/dist/with-commit/numbering/index.d.ts +69 -0
- package/dist/with-commit/sequence/active.d.ts +10 -0
- package/dist/with-commit/sequence/index.d.ts +150 -0
- package/dist/with-commit/sequence/strategy.d.ts +26 -0
- package/dist/with-commit/tx/active.d.ts +27 -0
- package/dist/with-commit/tx/dry-run.d.ts +29 -0
- package/dist/with-commit/tx/elevated-handle.d.ts +59 -0
- package/dist/with-commit/tx/index.d.ts +13 -0
- package/dist/with-commit/tx/invariants.d.ts +68 -0
- package/dist/with-commit/tx/strategy.d.ts +23 -0
- package/dist/with-commit/tx/transaction.d.ts +212 -0
- package/dist/with-fork/archive/engine.d.ts +71 -0
- package/dist/with-fork/archive/index.d.ts +23 -0
- package/dist/with-fork/shadow/active.d.ts +6 -0
- package/dist/with-fork/shadow/index.d.ts +14 -0
- package/dist/with-fork/shadow/strategy.d.ts +28 -0
- package/dist/with-fork/shadow/vault-frame.d.ts +93 -0
- package/dist/with-fork/snapshots/active.d.ts +20 -0
- package/dist/with-fork/snapshots/engine.d.ts +36 -0
- package/dist/with-fork/snapshots/index.d.ts +5 -0
- package/dist/with-fork/snapshots/noydb-facade.d.ts +64 -0
- package/dist/with-fork/snapshots/policy.d.ts +23 -0
- package/dist/with-fork/snapshots/scheduler.d.ts +34 -0
- package/dist/with-fork/snapshots/strategy.d.ts +48 -0
- package/dist/with-formula/computed/index.d.ts +48 -0
- package/dist/with-formula/computed/lazy.d.ts +13 -0
- package/dist/with-formula/derivations/executor.d.ts +61 -0
- package/dist/with-formula/derivations/fanout-sidecar.d.ts +75 -0
- package/dist/with-formula/derivations/index.d.ts +6 -0
- package/dist/with-formula/derivations/registry.d.ts +67 -0
- package/dist/with-formula/derivations/stale.d.ts +39 -0
- package/dist/with-formula/derivations/strategy-hash.d.ts +1 -0
- package/dist/with-formula/derivations/types.d.ts +248 -0
- package/dist/with-formula/derivations/with-derivation.d.ts +10 -0
- package/dist/with-formula/derivations/with-rollup.d.ts +34 -0
- package/dist/with-formula/materialized-views/dependency-analyzer.d.ts +58 -0
- package/dist/with-formula/materialized-views/executor.d.ts +80 -0
- package/dist/with-formula/materialized-views/index.d.ts +11 -0
- package/dist/with-formula/materialized-views/query-hash.d.ts +23 -0
- package/dist/with-formula/materialized-views/registry.d.ts +99 -0
- package/dist/with-formula/materialized-views/stale.d.ts +113 -0
- package/dist/with-formula/materialized-views/types.d.ts +318 -0
- package/dist/with-formula/materialized-views/with-materialized-view.d.ts +24 -0
- package/dist/with-formula/overlay-views/index.d.ts +5 -0
- package/dist/with-formula/overlay-views/registry.d.ts +42 -0
- package/dist/with-formula/overlay-views/types.d.ts +97 -0
- package/dist/with-formula/overlay-views/virtual-collection.d.ts +90 -0
- package/dist/with-formula/overlay-views/with-overlayed-view.d.ts +9 -0
- package/dist/with-lookup/aggregate/active.d.ts +33 -0
- package/dist/with-lookup/aggregate/aggregation.d.ts +166 -0
- package/dist/with-lookup/aggregate/canonical-key.d.ts +16 -0
- package/dist/with-lookup/aggregate/groupby.d.ts +280 -0
- package/dist/with-lookup/aggregate/index.d.ts +23 -0
- package/dist/with-lookup/aggregate/reducers.d.ts +257 -0
- package/dist/with-lookup/aggregate/strategy.d.ts +59 -0
- package/dist/with-lookup/embeddings/cosine.d.ts +2 -0
- package/dist/with-lookup/embeddings/descriptor.d.ts +8 -0
- package/dist/with-lookup/embeddings/index.d.ts +4 -0
- package/dist/with-lookup/embeddings/vec-id.d.ts +47 -0
- package/dist/with-lookup/embeddings/vector-set.d.ts +19 -0
- package/dist/with-lookup/indexing/active.d.ts +30 -0
- package/dist/with-lookup/indexing/collection-facade.d.ts +157 -0
- package/dist/with-lookup/indexing/eager-indexes.d.ts +122 -0
- package/dist/with-lookup/indexing/index.d.ts +27 -0
- package/dist/with-lookup/indexing/lazy-builder.d.ts +102 -0
- package/dist/with-lookup/indexing/persisted-indexes.d.ts +229 -0
- package/dist/with-lookup/indexing/strategy.d.ts +56 -0
- package/dist/with-lookup/indexing/unique-constraints.d.ts +74 -0
- package/dist/with-lookup/search/active.d.ts +10 -0
- package/dist/with-lookup/search/build-docs.d.ts +15 -0
- package/dist/with-lookup/search/collection-facade.d.ts +163 -0
- package/dist/with-lookup/search/fuse.d.ts +22 -0
- package/dist/with-lookup/search/index-store.d.ts +19 -0
- package/dist/with-lookup/search/index.d.ts +19 -0
- package/dist/with-lookup/search/inverted-index.d.ts +47 -0
- package/dist/with-lookup/search/persisted-index-store.d.ts +121 -0
- package/dist/with-lookup/search/retrieve-types.d.ts +29 -0
- package/dist/with-lookup/search/scan.d.ts +28 -0
- package/dist/with-lookup/search/segment.d.ts +15 -0
- package/dist/with-lookup/search/serialize.d.ts +4 -0
- package/dist/with-lookup/search/snippet.d.ts +5 -0
- package/dist/with-lookup/search/strategy.d.ts +41 -0
- package/dist/with-lookup/search/tokenize.d.ts +12 -0
- package/dist/with-party/auth-introspection/index.d.ts +44 -0
- package/dist/with-party/broker/active.d.ts +23 -0
- package/dist/with-party/broker/index.d.ts +28 -0
- package/dist/with-party/broker/seed.d.ts +77 -0
- package/dist/with-party/custody/active.d.ts +10 -0
- package/dist/with-party/custody/index.d.ts +69 -0
- package/dist/with-party/custody/liberate.d.ts +64 -0
- package/dist/with-party/custody/strategy.d.ts +48 -0
- package/dist/with-party/directory/index.d.ts +11 -0
- package/dist/with-party/directory/public-envelope/index.d.ts +12 -0
- package/dist/with-party/directory/public-envelope/schema.d.ts +24 -0
- package/dist/with-party/directory/public-envelope/storage.d.ts +59 -0
- package/dist/with-party/directory/public-envelope/types.d.ts +80 -0
- package/dist/with-party/directory/storage.d.ts +33 -0
- package/dist/with-party/directory/types.d.ts +43 -0
- package/dist/with-party/directory/user-envelope/api.d.ts +201 -0
- package/dist/with-party/directory/user-envelope/index.d.ts +12 -0
- package/dist/with-party/directory/user-envelope/storage.d.ts +54 -0
- package/dist/with-party/directory/visibility.d.ts +47 -0
- package/dist/with-party/policy/engine.d.ts +60 -0
- package/dist/with-party/policy/index.d.ts +15 -0
- package/dist/with-party/policy/noydb-facade.d.ts +39 -0
- package/dist/with-party/policy/presets.d.ts +38 -0
- package/dist/with-party/policy/storage.d.ts +31 -0
- package/dist/with-party/session/active.d.ts +34 -0
- package/dist/with-party/session/dev-unlock.d.ts +128 -0
- package/dist/with-party/session/index.d.ts +23 -0
- package/dist/with-party/session/session-policy.d.ts +92 -0
- package/dist/with-party/session/session.d.ts +131 -0
- package/dist/with-party/session/strategy.d.ts +42 -0
- package/dist/with-party/session/unlock-state.d.ts +47 -0
- package/dist/with-party/sync/index.d.ts +31 -0
- package/dist/with-party/tab-coordination.d.ts +73 -0
- package/dist/with-party/tab-write-relay.d.ts +39 -0
- package/dist/with-party/team/active.d.ts +13 -0
- package/dist/with-party/team/authenticators.d.ts +95 -0
- package/dist/with-party/team/deed.d.ts +97 -0
- package/dist/with-party/team/delegation.d.ts +88 -0
- package/dist/with-party/team/index.d.ts +38 -0
- package/dist/with-party/team/keyring.d.ts +318 -0
- package/dist/with-party/team/magic-link-grant.d.ts +152 -0
- package/dist/with-party/team/managed-passphrase.d.ts +280 -0
- package/dist/with-party/team/noydb-facade.d.ts +484 -0
- package/dist/with-party/team/peer-recover.d.ts +81 -0
- package/dist/with-party/team/presence.d.ts +81 -0
- package/dist/with-party/team/recovery.d.ts +191 -0
- package/dist/with-party/team/reserved-secret-collections.d.ts +41 -0
- package/dist/with-party/team/rotate-recover.d.ts +275 -0
- package/dist/with-party/team/shamir-recovery-provider.d.ts +15 -0
- package/dist/with-party/team/strategy.d.ts +9 -0
- package/dist/with-party/team/sync-active.d.ts +33 -0
- package/dist/with-party/team/sync-credentials.d.ts +113 -0
- package/dist/with-party/team/sync-strategy.d.ts +67 -0
- package/dist/with-party/team/sync-transaction.d.ts +39 -0
- package/dist/with-party/team/sync.d.ts +174 -0
- package/dist/with-party/team/tiers.d.ts +39 -0
- package/dist/with-party/team/wrapped-deks.d.ts +86 -0
- package/dist/with-pod/backup.d.ts +74 -0
- package/dist/with-pod/bundle.d.ts +414 -0
- package/dist/with-pod/format.d.ts +203 -0
- package/dist/with-pod/index.d.ts +20 -0
- package/dist/with-pod/pod-store.d.ts +54 -0
- package/dist/with-pod/ulid.d.ts +64 -0
- package/dist/with-shape/blobs/blob-compaction.d.ts +170 -0
- package/dist/with-shape/blobs/blob-intent.d.ts +153 -0
- package/dist/with-shape/blobs/blob-set.d.ts +1286 -0
- package/dist/with-shape/blobs/export-blobs.d.ts +110 -0
- package/dist/with-shape/blobs/import-external.d.ts +50 -0
- package/dist/with-shape/blobs/mime-magic.d.ts +48 -0
- package/dist/with-shape/blobs/object-projection.d.ts +70 -0
- package/dist/with-shape/introspection/describe.d.ts +237 -0
- package/dist/with-shape/introspection/field-meta.d.ts +61 -0
- package/dist/with-shape/introspection/fields.d.ts +14 -0
- package/dist/with-shape/introspection/index.d.ts +12 -0
- package/dist/with-shape/introspection/json-schema.d.ts +13 -0
- package/dist/with-shape/introspection/meta.d.ts +22 -0
- package/dist/with-shape/introspection/projection.d.ts +13 -0
- package/dist/with-shape/introspection/types.d.ts +154 -0
- package/dist/with-shape/introspection/walk.d.ts +50 -0
- package/dist/with-shape/links/lazy-handle.d.ts +36 -0
- package/dist/with-shape/links/link-set.d.ts +67 -0
- package/dist/with-shape/links/names.d.ts +65 -0
- package/dist/with-shape/links/vault-facade.d.ts +211 -0
- package/dist/with-shape/persisted-schemas/canonicalize.d.ts +11 -0
- package/dist/with-shape/persisted-schemas/derive.d.ts +29 -0
- package/dist/with-shape/persisted-schemas/index.d.ts +21 -0
- package/dist/with-shape/persisted-schemas/register.d.ts +66 -0
- package/dist/with-shape/persisted-schemas/storage.d.ts +61 -0
- package/dist/with-shape/persisted-schemas/types.d.ts +54 -0
- package/dist/with-shape/satellites/dead-filter.d.ts +21 -0
- package/dist/with-shape/satellites/declare.d.ts +60 -0
- package/dist/with-shape/satellites/existence.d.ts +5 -0
- package/dist/with-shape/satellites/fanout.d.ts +38 -0
- package/dist/with-shape/satellites/forget.d.ts +47 -0
- package/dist/with-shape/satellites/index.d.ts +3 -0
- package/dist/with-shape/satellites/joined.d.ts +19 -0
- package/dist/with-shape/satellites/marker.d.ts +10 -0
- package/dist/with-shape/satellites/migrate-cek.d.ts +26 -0
- package/dist/with-shape/satellites/post-register.d.ts +6 -0
- package/dist/with-shape/satellites/proxy.d.ts +37 -0
- package/dist/with-shape/satellites/raw-target.d.ts +14 -0
- package/dist/with-shape/satellites/registry.d.ts +19 -0
- package/dist/with-shape/satellites/types.d.ts +37 -0
- package/dist/with-shape/satellites/validate.d.ts +17 -0
- package/dist/with-shape/schema-update/client-registry.d.ts +35 -0
- package/dist/with-shape/schema-update/cutover.d.ts +5 -0
- package/dist/with-shape/schema-update/delta.d.ts +2 -0
- package/dist/with-shape/schema-update/dispatch.d.ts +3 -0
- package/dist/with-shape/schema-update/fence-controller.d.ts +62 -0
- package/dist/with-shape/schema-update/fence-watcher.d.ts +37 -0
- package/dist/with-shape/schema-update/fence.d.ts +15 -0
- package/dist/with-shape/schema-update/gate.d.ts +16 -0
- package/dist/with-shape/schema-update/index.d.ts +6 -0
- package/dist/with-shape/schema-update/store-coordination-provider.d.ts +29 -0
- package/dist/with-shape/schema-update/strategies.d.ts +12 -0
- package/dist/with-shape/schema-update/types.d.ts +53 -0
- package/dist/with-store/index.d.ts +15 -0
- package/dist/with-store/lazy/active.d.ts +12 -0
- package/dist/with-store/lazy/index.d.ts +14 -0
- package/dist/with-store/lazy/strategy.d.ts +9 -0
- package/dist/with-store/route-store.d.ts +259 -0
- package/dist/with-store/store-middleware.d.ts +189 -0
- package/dist/withdraw-accessible-WZIEVWSR.js +28 -0
- package/package.json +47 -55
- package/dist/adapter/index.d.ts +0 -5
- package/dist/adapter/index.js +0 -15
- package/dist/aggregate/index.d.ts +0 -42
- package/dist/api-JDWL67WL.js +0 -20
- package/dist/as/index.d.ts +0 -7
- package/dist/at/index.d.ts +0 -5
- package/dist/attestation/index.d.ts +0 -20
- package/dist/backup-WRGNTGJF.js +0 -225
- package/dist/backup-WRGNTGJF.js.map +0 -1
- package/dist/blobs/index.d.ts +0 -44
- package/dist/bundle/index.d.ts +0 -122
- package/dist/bundle-DzWtVw7w.d.ts +0 -548
- package/dist/by/index.d.ts +0 -1
- package/dist/cargo/index.d.ts +0 -9
- package/dist/chunk-25G7PUTA.js +0 -235
- package/dist/chunk-26FSVNBL.js +0 -34
- package/dist/chunk-2PJB6H3H.js +0 -167
- package/dist/chunk-2PJB6H3H.js.map +0 -1
- package/dist/chunk-37JZR7CY.js +0 -91
- package/dist/chunk-3KBK5LU4.js +0 -117
- package/dist/chunk-3YKBGS3I.js +0 -686
- package/dist/chunk-3YKBGS3I.js.map +0 -1
- package/dist/chunk-44DV37ZV.js +0 -75
- package/dist/chunk-44DV37ZV.js.map +0 -1
- package/dist/chunk-47C4CI7R.js +0 -108
- package/dist/chunk-47C4CI7R.js.map +0 -1
- package/dist/chunk-4VDFUBTS.js +0 -275
- package/dist/chunk-4VDFUBTS.js.map +0 -1
- package/dist/chunk-55LSDABW.js +0 -94
- package/dist/chunk-56JB2BGI.js +0 -13003
- package/dist/chunk-56JB2BGI.js.map +0 -1
- package/dist/chunk-5GQE5IDB.js +0 -513
- package/dist/chunk-5GQE5IDB.js.map +0 -1
- package/dist/chunk-5HRJQSKN.js +0 -202
- package/dist/chunk-5HZULLHE.js +0 -404
- package/dist/chunk-5JQMX2EH.js +0 -50
- package/dist/chunk-5UOPIPZC.js +0 -95
- package/dist/chunk-5YBUFCFF.js +0 -135
- package/dist/chunk-62APEMF3.js +0 -280
- package/dist/chunk-62APEMF3.js.map +0 -1
- package/dist/chunk-6P5AJ2ZS.js +0 -120
- package/dist/chunk-6P5AJ2ZS.js.map +0 -1
- package/dist/chunk-6PALJTC2.js +0 -430
- package/dist/chunk-6PALJTC2.js.map +0 -1
- package/dist/chunk-6S7T6WC4.js +0 -111
- package/dist/chunk-6S7T6WC4.js.map +0 -1
- package/dist/chunk-6Z435B6N.js +0 -1656
- package/dist/chunk-6Z435B6N.js.map +0 -1
- package/dist/chunk-723XB5NX.js +0 -86
- package/dist/chunk-7CZ6YXMO.js +0 -124
- package/dist/chunk-7KTL4RHZ.js +0 -120
- package/dist/chunk-7KTL4RHZ.js.map +0 -1
- package/dist/chunk-7TAV3BFQ.js +0 -766
- package/dist/chunk-7TAV3BFQ.js.map +0 -1
- package/dist/chunk-BASCPHNM.js +0 -380
- package/dist/chunk-BASCPHNM.js.map +0 -1
- package/dist/chunk-BGIZAFY7.js +0 -1
- package/dist/chunk-BJ2XF2RC.js +0 -823
- package/dist/chunk-BM6E4MUT.js +0 -881
- package/dist/chunk-BM6E4MUT.js.map +0 -1
- package/dist/chunk-BTFTHF6Q.js +0 -42
- package/dist/chunk-C4NOLA5X.js +0 -132
- package/dist/chunk-C4NOLA5X.js.map +0 -1
- package/dist/chunk-CHK5VVMI.js +0 -155
- package/dist/chunk-DCVVCJVB.js +0 -45
- package/dist/chunk-EU7HDMT3.js +0 -54
- package/dist/chunk-F3EKFGUS.js +0 -99
- package/dist/chunk-FCOZ7DEC.js +0 -355
- package/dist/chunk-FCOZ7DEC.js.map +0 -1
- package/dist/chunk-FWART3VA.js +0 -205
- package/dist/chunk-FZK3JJJK.js +0 -150
- package/dist/chunk-GDOOG5YQ.js +0 -382
- package/dist/chunk-GLVXQU3E.js +0 -155
- package/dist/chunk-HU55NPHZ.js +0 -80
- package/dist/chunk-I6JJ6VJS.js +0 -97
- package/dist/chunk-I6URUNTD.js +0 -59
- package/dist/chunk-IARAK3PK.js +0 -14
- package/dist/chunk-II6DLDZM.js +0 -30
- package/dist/chunk-J5YUA6JB.js +0 -23
- package/dist/chunk-J7OH6R4K.js +0 -49
- package/dist/chunk-K2WCO3NX.js +0 -1
- package/dist/chunk-L6Q5NA22.js +0 -40
- package/dist/chunk-LFGJG4XZ.js +0 -30
- package/dist/chunk-M3OYTM5Z.js +0 -85
- package/dist/chunk-MOQ5M46U.js +0 -209
- package/dist/chunk-NTPWQH4S.js +0 -589
- package/dist/chunk-OJ64XMPJ.js +0 -1434
- package/dist/chunk-OJ64XMPJ.js.map +0 -1
- package/dist/chunk-OWGAXPRE.js +0 -129
- package/dist/chunk-P2PEPSPK.js +0 -230
- package/dist/chunk-P6TZ3IVN.js +0 -453
- package/dist/chunk-P6TZ3IVN.js.map +0 -1
- package/dist/chunk-PAJCRV7O.js +0 -123
- package/dist/chunk-PMMV5SQC.js +0 -416
- package/dist/chunk-PMMV5SQC.js.map +0 -1
- package/dist/chunk-PPPZIBKY.js +0 -261
- package/dist/chunk-PPPZIBKY.js.map +0 -1
- package/dist/chunk-PVC2FBCQ.js +0 -45
- package/dist/chunk-PYIUDUGS.js +0 -36
- package/dist/chunk-QABECTNN.js +0 -255
- package/dist/chunk-QYMMMKOO.js +0 -164
- package/dist/chunk-R4IVPJHN.js +0 -130
- package/dist/chunk-REWTMYSF.js +0 -32
- package/dist/chunk-REWTMYSF.js.map +0 -1
- package/dist/chunk-RNYDHIQL.js +0 -367
- package/dist/chunk-RUIMKQTA.js +0 -23
- package/dist/chunk-RUIMKQTA.js.map +0 -1
- package/dist/chunk-TCGVRKOS.js +0 -367
- package/dist/chunk-TIAYXOEI.js +0 -99
- package/dist/chunk-TQ3REHVF.js +0 -95
- package/dist/chunk-TQ3REHVF.js.map +0 -1
- package/dist/chunk-TUL5YQWF.js +0 -777
- package/dist/chunk-U7LV2DUN.js +0 -74
- package/dist/chunk-UB3XHGFG.js +0 -181
- package/dist/chunk-UB3XHGFG.js.map +0 -1
- package/dist/chunk-UMH35AQV.js +0 -70
- package/dist/chunk-UWZ7O4NR.js +0 -29
- package/dist/chunk-V76PHWLE.js +0 -41
- package/dist/chunk-VFQOE76I.js +0 -69
- package/dist/chunk-VIWOGJ2O.js +0 -71
- package/dist/chunk-VK6OC22R.js +0 -37
- package/dist/chunk-VK6OC22R.js.map +0 -1
- package/dist/chunk-VVLOWY74.js +0 -150
- package/dist/chunk-VVLOWY74.js.map +0 -1
- package/dist/chunk-W3JABOVB.js +0 -53
- package/dist/chunk-W3JABOVB.js.map +0 -1
- package/dist/chunk-WPNP3NF5.js +0 -1221
- package/dist/chunk-WPNP3NF5.js.map +0 -1
- package/dist/chunk-X5QZAJDB.js +0 -59
- package/dist/chunk-X6VNIRHS.js +0 -239
- package/dist/chunk-X6VNIRHS.js.map +0 -1
- package/dist/chunk-XBPUVQDO.js +0 -664
- package/dist/chunk-XBPUVQDO.js.map +0 -1
- package/dist/chunk-XW5LZYV4.js +0 -21
- package/dist/chunk-YTCCC6NG.js +0 -320
- package/dist/chunk-YTCCC6NG.js.map +0 -1
- package/dist/classified/index.d.ts +0 -17
- package/dist/collection-facade-EJVIN2BY.js +0 -39
- package/dist/computed-6FOFXQPE.js +0 -11
- package/dist/config-drift-RFEVGBKR.js +0 -24
- package/dist/config-drift-RFEVGBKR.js.map +0 -1
- package/dist/consent/index.d.ts +0 -23
- package/dist/crdt/index.d.ts +0 -34
- package/dist/dead-filter-RHMNYOXP.js +0 -28
- package/dist/decrypt-partition-IHtxEnTi.d.ts +0 -21
- package/dist/delegation-IHXOASHV.js +0 -25
- package/dist/derivations/index.d.ts +0 -70
- package/dist/derive-CD3ZVIXK.js +0 -21
- package/dist/describe/index.d.ts +0 -1
- package/dist/describe/index.js +0 -1
- package/dist/describe-C6iHNlqJ.d.ts +0 -162
- package/dist/dev-unlock-wgQ7Ci5I.d.ts +0 -263
- package/dist/discriminant-BN9REW3o.d.ts +0 -60
- package/dist/enclave-KGEUW2GL.js +0 -123
- package/dist/executor-EUPYHCLU.js +0 -9
- package/dist/executor-KZ4B3PRT.js +0 -9
- package/dist/executor-MHUM2VZK.js +0 -21
- package/dist/export-accessible-Z3NSZZHN.js +0 -23
- package/dist/extract-partition-VSKT35JG.js +0 -36
- package/dist/fanout-sidecar-NBDKKCHT.js +0 -74
- package/dist/find-OH4BEULF.js +0 -11
- package/dist/forget/index.d.ts +0 -36
- package/dist/guards/index.d.ts +0 -35
- package/dist/hash-CwHnoKyW.d.ts +0 -72
- package/dist/history/index.d.ts +0 -61
- package/dist/i18n/index.d.ts +0 -37
- package/dist/in/index.d.ts +0 -5
- package/dist/index-B9QdHytu.d.ts +0 -123
- package/dist/index-CTvUp94-.d.ts +0 -123
- package/dist/index-Dn5GzPg_.d.ts +0 -22138
- package/dist/indexing/index.d.ts +0 -39
- package/dist/issue-AEOL6RXA.js +0 -19
- package/dist/kernel/index.d.ts +0 -32
- package/dist/kernel/index.js +0 -59
- package/dist/lazy/index.d.ts +0 -21
- package/dist/ledger-3LR3YO2W.js +0 -42
- package/dist/liberate-XSEPRWEA.js +0 -24
- package/dist/link-set-NSUIX6BR.js +0 -31
- package/dist/materialized-views/index.d.ts +0 -173
- package/dist/mime-magic-CYbFNQ4h.d.ts +0 -103
- package/dist/noydb-POVTIVQ6.js +0 -62
- package/dist/on/index.d.ts +0 -5
- package/dist/overlay-views/index.d.ts +0 -98
- package/dist/periods/index.d.ts +0 -20
- package/dist/pod/index.d.ts +0 -63
- package/dist/policy-Y7HL2KGA.js +0 -41
- package/dist/portability/index.d.ts +0 -20
- package/dist/post-register-KOFRTCDD.js +0 -55
- package/dist/post-register-KOFRTCDD.js.map +0 -1
- package/dist/public-envelope-NC7SPNMV.js +0 -32
- package/dist/query/index.d.ts +0 -5
- package/dist/read-only-facade-5ADRJVTM.js +0 -8
- package/dist/register-3D6R2MKN.js +0 -23
- package/dist/registry-AI4E46PD.js +0 -19
- package/dist/registry-HSNQ4NBP.js +0 -9
- package/dist/registry-WIX6QCV5.js +0 -17
- package/dist/request-withdrawal-GU4XS2R5.js +0 -31
- package/dist/reveal-5Y777N5Q.js +0 -38
- package/dist/reveal-5Y777N5Q.js.map +0 -1
- package/dist/revoke-ZFETCLYV.js +0 -24
- package/dist/revoke-ZFETCLYV.js.map +0 -1
- package/dist/satellites/index.d.ts +0 -5
- package/dist/sealed-record/index.d.ts +0 -69
- package/dist/session/index.d.ts +0 -44
- package/dist/shadow/index.d.ts +0 -15
- package/dist/signer-GAIMQQ2J.js +0 -25
- package/dist/signer-GAIMQQ2J.js.map +0 -1
- package/dist/snapshots/index.d.ts +0 -26
- package/dist/stale-77LP2EEF.js +0 -14
- package/dist/stale-77LP2EEF.js.map +0 -1
- package/dist/storage-KEXIXLGM.js +0 -23
- package/dist/storage-KEXIXLGM.js.map +0 -1
- package/dist/store-coordination-provider-NJDDZ264.js +0 -142
- package/dist/subject-index-O75wKshW.d.ts +0 -362
- package/dist/sync/index.d.ts +0 -41
- package/dist/team/index.d.ts +0 -155
- package/dist/tiers/index.d.ts +0 -5
- package/dist/to/index.d.ts +0 -5
- package/dist/transition-guard-D5RLJv8S.d.ts +0 -165
- package/dist/tx/index.d.ts +0 -35
- package/dist/ui/index.d.ts +0 -1
- package/dist/ulid-DRH25k3y.d.ts +0 -66
- package/dist/util/index.d.ts +0 -79
- package/dist/validators-C3lrVF-c.d.ts +0 -101
- package/dist/vault-diff-_LSIcOMv.d.ts +0 -147
- package/dist/verify-CAYGXYNO.js +0 -139
- package/dist/verify-CAYGXYNO.js.map +0 -1
- package/dist/walk-SMAE4IEI.js +0 -241
- package/dist/with/index.d.ts +0 -38
- package/dist/with-materialized-view-Xv1-9Bh0.d.ts +0 -27
- package/dist/with-overlayed-view-CuWhq_-C.d.ts +0 -12
- package/dist/with-rollup-K_iwal4b.d.ts +0 -47
- package/dist/withdraw-accessible-Q7BULAN5.js +0 -28
- package/dist/withdraw-accessible-Q7BULAN5.js.map +0 -1
- /package/dist/{adapter/index.js.map → api-ZGS6LCOF.js.map} +0 -0
- /package/dist/{chunk-VIWOGJ2O.js.map → chunk-3B5VVCNY.js.map} +0 -0
- /package/dist/{chunk-P2PEPSPK.js.map → chunk-3LQ2YKO4.js.map} +0 -0
- /package/dist/{chunk-EU7HDMT3.js.map → chunk-3QCRBHCY.js.map} +0 -0
- /package/dist/{chunk-FZK3JJJK.js.map → chunk-4JBYV75E.js.map} +0 -0
- /package/dist/{chunk-I6JJ6VJS.js.map → chunk-4NXKCLLQ.js.map} +0 -0
- /package/dist/{chunk-VFQOE76I.js.map → chunk-5M5DVGV7.js.map} +0 -0
- /package/dist/{chunk-LFGJG4XZ.js.map → chunk-5YOLBEQ6.js.map} +0 -0
- /package/dist/{chunk-OWGAXPRE.js.map → chunk-6CRIV7DE.js.map} +0 -0
- /package/dist/{chunk-QABECTNN.js.map → chunk-6QTNZJBS.js.map} +0 -0
- /package/dist/{chunk-723XB5NX.js.map → chunk-6T2SCQRU.js.map} +0 -0
- /package/dist/{chunk-PVC2FBCQ.js.map → chunk-7DSTRQIJ.js.map} +0 -0
- /package/dist/{chunk-NTPWQH4S.js.map → chunk-AUSTCW2X.js.map} +0 -0
- /package/dist/{chunk-MOQ5M46U.js.map → chunk-B3HJYUOF.js.map} +0 -0
- /package/dist/{chunk-QYMMMKOO.js.map → chunk-BDVFPG6Y.js.map} +0 -0
- /package/dist/{chunk-PYIUDUGS.js.map → chunk-CAF6WOK7.js.map} +0 -0
- /package/dist/{chunk-5HZULLHE.js.map → chunk-CIE2BASH.js.map} +0 -0
- /package/dist/{chunk-BTFTHF6Q.js.map → chunk-CRI4OUV4.js.map} +0 -0
- /package/dist/{chunk-37JZR7CY.js.map → chunk-DLG74CNB.js.map} +0 -0
- /package/dist/{chunk-TCGVRKOS.js.map → chunk-ERJ7FU55.js.map} +0 -0
- /package/dist/{chunk-FWART3VA.js.map → chunk-EVVGJDRQ.js.map} +0 -0
- /package/dist/{chunk-X5QZAJDB.js.map → chunk-EXK7QRWF.js.map} +0 -0
- /package/dist/{chunk-5HRJQSKN.js.map → chunk-EYZ6IQ6X.js.map} +0 -0
- /package/dist/{chunk-DCVVCJVB.js.map → chunk-F64IRYG3.js.map} +0 -0
- /package/dist/{chunk-BJ2XF2RC.js.map → chunk-FHS2HQSH.js.map} +0 -0
- /package/dist/{chunk-HU55NPHZ.js.map → chunk-GKEWXIV5.js.map} +0 -0
- /package/dist/{chunk-I6URUNTD.js.map → chunk-GTGPO5KW.js.map} +0 -0
- /package/dist/{chunk-5UOPIPZC.js.map → chunk-HB3RFQSC.js.map} +0 -0
- /package/dist/{chunk-F3EKFGUS.js.map → chunk-I6GALP6E.js.map} +0 -0
- /package/dist/{chunk-R4IVPJHN.js.map → chunk-IL6POWCW.js.map} +0 -0
- /package/dist/{chunk-3KBK5LU4.js.map → chunk-IU6SNYX6.js.map} +0 -0
- /package/dist/{chunk-TUL5YQWF.js.map → chunk-J2ZX2XUV.js.map} +0 -0
- /package/dist/{chunk-UWZ7O4NR.js.map → chunk-JKJOGPZN.js.map} +0 -0
- /package/dist/{chunk-V76PHWLE.js.map → chunk-JZUV47FZ.js.map} +0 -0
- /package/dist/{chunk-II6DLDZM.js.map → chunk-K5IMOGHB.js.map} +0 -0
- /package/dist/{chunk-GDOOG5YQ.js.map → chunk-LASZKVMO.js.map} +0 -0
- /package/dist/{chunk-5YBUFCFF.js.map → chunk-NR5LT5RY.js.map} +0 -0
- /package/dist/{chunk-UMH35AQV.js.map → chunk-Q5VNKNE5.js.map} +0 -0
- /package/dist/{chunk-XW5LZYV4.js.map → chunk-QLWMEXCT.js.map} +0 -0
- /package/dist/{chunk-PAJCRV7O.js.map → chunk-QRB7NAOJ.js.map} +0 -0
- /package/dist/{chunk-U7LV2DUN.js.map → chunk-R4ROFEYC.js.map} +0 -0
- /package/dist/{chunk-RNYDHIQL.js.map → chunk-RIX4V2TB.js.map} +0 -0
- /package/dist/{chunk-L6Q5NA22.js.map → chunk-RYCTDFUX.js.map} +0 -0
- /package/dist/{chunk-CHK5VVMI.js.map → chunk-RZ5SVOYR.js.map} +0 -0
- /package/dist/{chunk-TIAYXOEI.js.map → chunk-SLFHQTTW.js.map} +0 -0
- /package/dist/{chunk-J5YUA6JB.js.map → chunk-UNFPPVNI.js.map} +0 -0
- /package/dist/{chunk-25G7PUTA.js.map → chunk-VLFCJYTL.js.map} +0 -0
- /package/dist/{chunk-7CZ6YXMO.js.map → chunk-VN3DBQAU.js.map} +0 -0
- /package/dist/{chunk-J7OH6R4K.js.map → chunk-VZRODIM3.js.map} +0 -0
- /package/dist/{chunk-55LSDABW.js.map → chunk-W22IKJE2.js.map} +0 -0
- /package/dist/{chunk-GLVXQU3E.js.map → chunk-X3YYQWOQ.js.map} +0 -0
- /package/dist/{chunk-M3OYTM5Z.js.map → chunk-YFXZEAYK.js.map} +0 -0
- /package/dist/{chunk-5JQMX2EH.js.map → chunk-ZAJAVEXY.js.map} +0 -0
- /package/dist/{chunk-26FSVNBL.js.map → chunk-ZICD77GM.js.map} +0 -0
- /package/dist/{chunk-IARAK3PK.js.map → chunk-ZUODRVHY.js.map} +0 -0
- /package/dist/{api-JDWL67WL.js.map → collection-facade-TLWIPI76.js.map} +0 -0
- /package/dist/{chunk-BGIZAFY7.js.map → computed-ZIQTYTDI.js.map} +0 -0
- /package/dist/{dead-filter-RHMNYOXP.js.map → dead-filter-ESOBZZP5.js.map} +0 -0
- /package/dist/{chunk-K2WCO3NX.js.map → delegation-W7ZV2322.js.map} +0 -0
- /package/dist/{collection-facade-EJVIN2BY.js.map → derive-H2BJTLUI.js.map} +0 -0
- /package/dist/{computed-6FOFXQPE.js.map → enclave-AP3I5W7O.js.map} +0 -0
- /package/dist/{delegation-IHXOASHV.js.map → executor-KGWTNEQD.js.map} +0 -0
- /package/dist/{derive-CD3ZVIXK.js.map → executor-OVEXR6RT.js.map} +0 -0
- /package/dist/{describe/index.js.map → executor-UNEH5ZYH.js.map} +0 -0
- /package/dist/{enclave-KGEUW2GL.js.map → export-accessible-PCMXSUZS.js.map} +0 -0
- /package/dist/{executor-EUPYHCLU.js.map → extract-partition-SWHFSYJO.js.map} +0 -0
- /package/dist/{fanout-sidecar-NBDKKCHT.js.map → fanout-sidecar-A765THMX.js.map} +0 -0
- /package/dist/{executor-KZ4B3PRT.js.map → find-N6345CNT.js.map} +0 -0
- /package/dist/{executor-MHUM2VZK.js.map → issue-5OKB6I2R.js.map} +0 -0
- /package/dist/{export-accessible-Z3NSZZHN.js.map → ledger-GFBKVPV4.js.map} +0 -0
- /package/dist/{extract-partition-VSKT35JG.js.map → liberate-3VDOT4KO.js.map} +0 -0
- /package/dist/{find-OH4BEULF.js.map → link-set-Z7Q2ASFX.js.map} +0 -0
- /package/dist/{issue-AEOL6RXA.js.map → noydb-ZCJOYBDI.js.map} +0 -0
- /package/dist/{kernel/index.js.map → policy-Z3RUAIY2.js.map} +0 -0
- /package/dist/{ledger-3LR3YO2W.js.map → public-envelope-B4KNWVUA.js.map} +0 -0
- /package/dist/{liberate-XSEPRWEA.js.map → read-only-facade-CHCKSEPD.js.map} +0 -0
- /package/dist/{link-set-NSUIX6BR.js.map → register-VAHONCID.js.map} +0 -0
- /package/dist/{noydb-POVTIVQ6.js.map → registry-7MLVD3VO.js.map} +0 -0
- /package/dist/{policy-Y7HL2KGA.js.map → registry-EPKPD5SM.js.map} +0 -0
- /package/dist/{public-envelope-NC7SPNMV.js.map → registry-P5T7PS2U.js.map} +0 -0
- /package/dist/{read-only-facade-5ADRJVTM.js.map → request-withdrawal-TI3A5WPS.js.map} +0 -0
- /package/dist/{register-3D6R2MKN.js.map → revoke-FDRD6GRW.js.map} +0 -0
- /package/dist/{registry-AI4E46PD.js.map → signer-MUWEIUI6.js.map} +0 -0
- /package/dist/{registry-HSNQ4NBP.js.map → stale-OSQ7J3AA.js.map} +0 -0
- /package/dist/{registry-WIX6QCV5.js.map → storage-MVFCGEQE.js.map} +0 -0
- /package/dist/{store-coordination-provider-NJDDZ264.js.map → store-coordination-provider-64OEZFGS.js.map} +0 -0
- /package/dist/{walk-SMAE4IEI.js.map → walk-SVNDIZ62.js.map} +0 -0
- /package/dist/{request-withdrawal-GU4XS2R5.js.map → withdraw-accessible-WZIEVWSR.js.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,1473 +1,321 @@
|
|
|
1
|
-
import { ep as SearchStrategy, eq as SequenceStrategy, er as CustodyStrategy, d1 as EncryptedEnvelope, es as SchemaUpdateStrategy, et as TransformFn, c$ as NoydbStore, eu as PersistedSchemaEnvelope, ds as EnclaveKey, ev as UpdateDecision, ew as NoydbError, e8 as PublicEnvelope, ex as UserEnvelope, ey as VaultUserApi, ez as UserApiDeps, cG as RequestWithdrawalOptions, cH as RequestWithdrawalResult, cL as WithdrawalRequestStatus, cK as WithdrawalRequest, cB as ApproveWithdrawalOptions, cJ as WithdrawResult, cF as RejectWithdrawalOptions, cI as WithdrawAccessibleOptions, cC as ExportAccessibleOptions, eA as DeepPartialOrNull, eB as UserEnvelopePresented, eC as Unsubscribe, eD as LiveUserEnvelope, eE as RoundingMode, cN as UnlockedKeyring, eF as VaultPolicy, eG as ActiveTier, eH as FactorProof, eI as GateName, eJ as PolicyDenyReason, eK as GatePolicy } from './index-Dn5GzPg_.js';
|
|
2
|
-
export { eL as AccessibleVault, eM as AffectedDocument, aP as AggregateResult, aQ as AggregateSpec, aR as Aggregation, aS as AggregationUpstream, eN as AlreadyElevatedError, bU as AmendmentForbiddenError, d3 as AppendInput, eO as ArchivePolicy, eP as ArchiveResult, eQ as ArchiveRunOptions, eR as ArchiveStrategy, cc as ArrayOutputSpec, dH as AttestationError, dI as AttestationNotEnabledError, Y as BLOB_CHUNKS_COLLECTION, Z as BLOB_COLLECTION, $ as BLOB_INDEX_COLLECTION, a0 as BLOB_SLOTS_PREFIX, a1 as BLOB_VERSIONS_PREFIX, eS as BUNDLE_STORE_POLICY, du as BackupCorruptedError, dv as BackupLedgerError, a5 as BlobObject, a6 as BlobPutOptions, a7 as BlobResponseOptions, a8 as BlobSet, eT as BuiltInGateName, dw as BundleIntegrityError, e9 as BundleRecipient, dx as BundleSealMismatchError, dy as BundleVersionConflictError, bq as CONSENT_AUDIT_COLLECTION, eU as CacheOptions, eV as CacheStats, eW as CargoNotEnabledError, eX as CargoStrategy, eY as ChangeEvent, d4 as ChangeType, dV as ClassifiedConfigError, dW as ClassifiedEntry, dT as ClassifiedFieldSpec, dX as ClassifiedGroup, dY as ClassifiedList, eZ as ClassifiedNotEnabledError, d_ as ClassifiedRevealError, e0 as ClassifiedRotationError, e1 as ClassifiedStorage, e2 as ClassifiedVerdict, e4 as ClassifiedVerifyError, e_ as Clause, bz as ClosePeriodOptions, cq as Collection, e$ as CollectionChangeEvent, f0 as CollectionConfig, f1 as CollectionConflictResolver, f2 as CollectionDescriptor, c1 as CollectionFrame, ay as CollectionIndexes, d5 as CollectionInstant, f3 as CollectionStats, f4 as ComputedFieldError, f5 as ComputedFields, f6 as ComputedFn, f7 as Conflict, f8 as ConflictError, f9 as ConflictPolicy, fa as ConflictStrategy, br as ConsentAuditEntry, bs as ConsentAuditFilter, bt as ConsentContext, bu as ConsentOp, bg as CrdtMode, bh as CrdtState, fb as CrossJoinSourceUnknownError, fc as CrossJoinTooLargeError, fd as CrossTierAccessEvent, fe as CustodyApi, ff as CustodyHost, fg as CustodyNotEnabledError, ad as DEFAULT_CHUNK_SIZE, fh as DEFAULT_CROSS_JOIN_MAX_ROWS, fi as DEFAULT_JOIN_MAX_ROWS, fj as DEFAULT_PUBLIC_ENVELOPE_SCHEMA, fk as DELEGATIONS_COLLECTION, D as DICT_COLLECTION_PREFIX, fl as DanglingReferenceError, fm as DataResidencyError, fn as DebugPlaintextError, fo as DebugReservedFieldError, fp as DecryptionError, fq as DeepPartial, fr as DeferredNumberingConfig, fs as DelegationTargetMissingError, ft as DelegationToken, fu as DeleteManyResult, cd as DerivationCapExceededError, ce as DerivationCycleError, cf as DerivationDepthError, fv as DerivationDescriptor, cg as DerivationOutputShapeError, ch as DerivationOutputUnknownError, ca as DerivationStrategy, cj as DerivationStrategyHandle, ck as DerivedFromMeta, a as DictEntry, b as DictKeyDescriptor, c as DictKeyInUseError, d as DictKeyMissingError, e as DictionaryHandle, f as DictionaryOptions, cM as DiffEntry, fw as DirectoryDisabledError, fx as DirtyEntry, fy as DryRunResult, fz as DumpSchemaOptions, fA as ELEVATION_AUDIT_COLLECTION, fB as ElevatedHandle, fC as ElevationExpiredError, fD as EmbeddingDescriptor, fE as EmbeddingDimMismatchError, fF as EmbeddingModelMismatchError, fG as EnclaveNotSupportedError, fH as EnrollAuthenticatorOptions, fI as EnrollAuthenticatorWrappingDEKsOptions, fJ as EnrollAuthenticatorWrappingKEKOptions, fK as EnrollRecoveryResult, fL as ErasureEnforcement, fM as ExportCapability, fN as ExportCapabilityError, fO as ExportChunk, cO as ExportFormat, fP as ExportStreamOptions, fQ as FactorKind, fR as FactorProofBundle, fS as FactorRequirement, fT as FenceDoc, fU as FenceState, fV as FieldChange, fW as FieldClause, fX as FieldDescriptor, bV as FieldFrozenError, fY as FieldSource, fZ as FilenameSanitizationError, f_ as FilterClause, f$ as ForgetStrategyNotConfiguredError, g0 as FormattedSequenceHandle, g1 as FrozenSnapshotRef, aT as GROUPBY_MAX_CARDINALITY, aU as GROUPBY_WARN_CARDINALITY, g2 as GhostRecord, g3 as GrantCustodianOptions, g4 as GrantOptions, g5 as GroupCardinalityError, g6 as GroupClause, aV as GroupedAggregation, aW as GroupedQuery, aX as GroupedQueryN, aY as GroupedRow, aZ as GroupedRowN, bS as GuardChange, bT as GuardContext, bR as GuardStrategy, bX as GuardStrategyHandle, g7 as GuardViolation, az as HashIndex, g8 as HistoryConfig, g9 as HistoryEntry, d0 as HistoryOptions, g as I18nMap, h as I18nTextDescriptor, i as I18nTextOptions, ga as INDEXED_STORE_POLICY, bY as IllegalTransitionError, gb as ImportCapability, gc as ImportCapabilityError, aB as IndexDef, gd as IndexFieldName, ge as IndexRequiredError, gf as IndexWriteFailureError, gg as InferOutput, gh as InternalCollectionStats, gi as InvalidKeyError, bZ as InvariantError, gj as IssueDelegationOptions, gk as IssueMagicLinkGrantOptions, gl as JoinContext, gm as JoinLeg, gn as JoinStrategy, go as JoinTooLargeError, gp as JoinableSource, d6 as JsonPatch, d7 as JsonPatchOp, gq as KeyringAuthenticator, gr as KeyringAuthenticatorWrappingDEKs, gs as KeyringAuthenticatorWrappingKEK, gt as KeyringCorruptError, gu as KeyringExpiredError, gv as KeyringFile, L as Layer, gw as LazyStrategy, gx as LedgerContentionError, d8 as LedgerStore, gy as LiberateOptions, gz as LiberateResult, gA as LinkIntegrityError, gB as LinkOnDelete, gC as LinkRow, gD as LinkSetHandle, gE as LinkSpec, gF as ListAccessibleVaultsOptions, gG as ListPageResult, gH as ListUsersOptions, a_ as LiveAggregation, gI as LiveQuery, gJ as LiveUpstream, j as LocaleNotSpecifiedError, gK as LocaleReadOptions, gL as Lru, gM as LruOptions, gN as LruStats, bi as LwwMapState, gO as MAGIC_LINK_CONTENT_INFO_PREFIX, gP as MAGIC_LINK_GRANTS_COLLECTION, gQ as MAGIC_LINK_KEK_INFO_PREFIX, gR as MagicLinkGrantPayload, gS as MagicLinkGrantRecord, gT as ManagedRecoveryNotEnrolledError, eh as MaterializedFromMeta, ei as MaterializedViewConfigError, ej as MaterializedViewCycleError, gU as MaterializedViewDescriptor, ek as MaterializedViewOutput, el as MaterializedViewSourceUnknownError, cn as MaterializedViewStrategy, co as MaterializedViewStrategyHandle, em as MaterializedViewTooLargeError, gV as MemoryRecipientSealer, gW as MemorySealingKeyProvider, gX as MigrationRequiredError, M as MissingTranslationError, gY as MoneyCurrencyError, gZ as MoneyDescriptor, g_ as MoneyOptions, g$ as MoneyOptionsFixed, h0 as MoneyOptionsMulti, h1 as MoneyPrecisionError, h2 as MoneyString, h3 as MoneyUnsupportedError, h4 as NOYDB_BACKUP_VERSION, h5 as NOYDB_FORMAT_VERSION, h6 as NOYDB_KEYRING_VERSION, h7 as NOYDB_SYNC_VERSION, h8 as NO_CARGO, h9 as NO_CUSTODY, ha as NO_SEARCH, hb as NO_SEQUENCE, hc as NO_TEAM, hd as NetworkError, he as NextOptions, hf as NoAccessError, hg as NonAdditiveSchemaChangeError, hh as NotFoundError, hi as Noydb, hj as NoydbBundleStore, hk as NoydbEventMap, hl as NoydbOptions, c3 as NoydbPodStore, hm as NumberingAssignment, hn as NumberingUncertaintyError, ak as ObjectListEntry, al as ObjectMeta, am as ObjectProjection, an as ObjectUrlOptions, O as OnMissing, k as OnMissingPolicy, bA as OpenPeriodOptions, ho as Operator, hp as OrderBy, cl as OutputSpec, cr as OverlayBaseIsVirtualError, cs as OverlayCollectionUnavailableError, ct as OverlayFieldMergeMode, cu as OverlayFieldMergeRule, cv as OverlayIdMismatchError, cw as OverlayNameCollisionError, hq as OverlayViewDescriptor, cp as OverlayedViewStrategy, cy as OverlayedViewStrategyHandle, bB as PERIODS_COLLECTION, hr as POD_STORE_POLICY, hs as PUBLIC_ENVELOPE_FIELDS, ht as PaperRecoveryDoc, hu as PaperRecoveryEntry, hv as PassphrasePolicy, hw as PassphraseValidationResult, hx as PathEscapeError, hy as PeriodClosedError, bH as PeriodRecord, hz as Permission, hA as PermissionDeniedError, hB as Permissions, hC as PersistedSchemaKind, hD as PlaintextTranslatorContext, hE as PlaintextTranslatorFn, dC as PodVersionConflictError, hF as PolicyDeniedError, P as PolicyEnforcer, cE as PortabilityNotEnabledError, hG as PresenceHandle, hH as PresencePeer, hI as PrivilegeEscalationError, d2 as PruneOptions, hJ as PublicEnvelopeField, hK as PublicEnvelopeSchema, hL as PublicEnvelopeText, hM as PullMode, hN as PullOptions, hO as PullPolicy, hP as PullResult, hQ as PushMode, hR as PushOptions, hS as PushPolicy, hT as PushResult, hU as PutManyItemOptions, hV as PutManyOptions, hW as PutManyResult, ao as PutObjectOptions, ap as PutUrlOptions, ef as Query, hX as QueryAcrossOptions, hY as QueryAcrossResult, hZ as QueryField, h_ as QueryPlan, h$ as QuerySource, i0 as QuickUnlockState, i1 as QuickUnlockStore, i2 as QuiesceTimeoutError, i3 as ReAuthOperation, i4 as ReadOnlyAtInstantError, i5 as ReadOnlyError, i6 as ReadOnlyFrameError, eb as RecipientHint, ea as RecipientSealer, i7 as RecordCekNotFoundError, b$ as RecordLockedError, cm as RecordOutputSpec, i8 as RecoverPassphraseInput, i9 as RecoverPassphraseResult, ia as RecoverUserOptions, ib as RecoveryNotEnrolledError, ic as RecoveryProfileNotImplementedError, id as RecoveryProof, a$ as Reducer, b0 as ReducerBuilder, b1 as ReducerOptions, ie as RefDescriptor, ig as RefIntegrityError, ih as RefMode, ii as RefRegistry, ij as RefScopeError, ik as RefViolation, R as ReservedCollectionNameError, il as ReservedVaultNameError, l as ResolveI18nOptions, im as ResolvedPublicEnvelopeSchema, c4 as RetentionPolicy, io as RetrieveHit, ip as RetrieveOptions, iq as RevokeOptions, bj as RgaState, cZ as Role, ir as RotatePassphraseInput, is as RotateRecoveryOptions, it as RotateRecoveryResult, iu as SEALED_PASSPHRASE_RECORD_ID, iv as ScanBuilder, iw as ScanPageProvider, ix as SchemaDelta, iy as SchemaFenceError, iz as SchemaIntrospection, iA as SchemaLockedError, iB as SchemaUpdateError, iC as SchemaValidationError, S as ScriptViolationError, m as ScriptWarning, iD as Sealed, iE as SealedEnvelope, iF as SealedHandle, iG as SealedPassphrase, dk as SealedRecordExpiredError, dl as SealedRecordMismatchError, dm as SealedRecordNotEnabledError, iH as SealedView, dp as SealingKeyProvider, iI as SearchEntry, iJ as SearchNotEnabledError, iK as SearchOptions, iL as SearchResult, iM as SequenceContentionError, iN as SequenceHandle, iO as SequenceNotEnabledError, iP as SequenceOfflineError, iQ as SequenceOptions, iR as SequenceStore, iS as SequenceStoreOptions, J as SessionExpiredError, K as SessionNotFoundError, iT as SessionPolicy, N as SessionPolicyError, iU as SetPublicEnvelopeInput, iV as ShamirRecoveryDoc, iW as ShamirRecoveryEntry, dr as ShamirRecoveryProvider, iX as ShardProvisioningError, aq as SlotInfo, ar as SlotRecord, iY as SlotRewrapCeremony, iZ as SlotRewrapContext, c7 as SnapshotMeta, c9 as SnapshotNotFoundError, i_ as StandardSchemaV1, i$ as StandardSchemaV1Issue, j0 as StandardSchemaV1SyncResult, n as StaticDictDescriptor, o as StaticDictReadonlyError, j1 as StoreAuth, j2 as StoreAuthKind, j3 as StoreCapabilities, j4 as StoreCapabilityError, j5 as StoreTime, j6 as SyncEngine, j7 as SyncMetadata, j8 as SyncPolicy, j9 as SyncScheduler, ja as SyncSchedulerStatus, jb as SyncStatus, jc as SyncTarget, jd as SyncTargetRole, je as SyncTransaction, jf as SyncTransactionResult, jg as TabChannel, jh as TabCoordinationOptions, ji as TabLockManager, jj as TabPresence, jk as TabRole, jl as TamperedError, jm as TeamNotEnabledError, jn as TeamStrategy, jo as TierDemoteDeniedError, jp as TierMode, jq as TierNotGrantedError, jr as TiersNotEnabledError, js as TransactionInvariant, jt as TranslatorAuditEntry, T as TranslatorNotConfiguredError, ju as TxCollection, ec as TxContext, jv as TxOp, jw as TxVault, en as UnionArmJoin, eo as UnionSource, jx as UniqueConstraintError, U as UnknownDictCodeError, jy as UnknownShardError, jz as UnsupportedIndexOptionError, jA as UpdateAuthenticatorOptions, jB as UpdateContext, jC as UpdateUserOptions, jD as UserEnvelopeCheckGate, jE as UserEnvelopeOversizedError, jF as UserInfo, jG as ValidationError, V as Vault, jH as VaultBackup, d9 as VaultEngine, c2 as VaultFrame, da as VaultInstant, jI as VaultPolicyOnDisk, jJ as VaultSchemaSnapshot, jK as VaultSnapshot, jL as VaultTemplateNotFoundError, db as VerifyResult, as as VersionRecord, jM as WarningRules, jN as WeakPassphraseError, jO as WeakPassphraseReason, jP as WithArchiveOptions, jQ as WithdrawalRequestError, jR as WrappedDeksBlob, jS as WriteConflict, jT as WriteQueue, bk as YjsState, jU as aesGcmOpen, p as applyI18nLocale, jV as applyJoins, dc as applyPatch, jW as approveWithdrawal, jX as asMoney, jY as assertStrongPassphrase, b2 as avg, jZ as base64ToBuffer, j_ as bufferToBase64, j$ as buildLiveQuery, k0 as buildRecipientKeyringFile, k1 as burnPaperRecoveryEntry, k2 as compileSequenceFormat, dd as computePatch, b4 as count, Q as createEnforcer, k3 as createNoydb, k4 as createStore, k5 as decryptBytes, k6 as decryptDeterministic, k7 as deriveMagicLinkContentKey, k8 as derivePresenceKey, q as dictCollectionName, r as dictKey, de as diff, k9 as encryptBytes, ka as encryptDeterministic, s as enforceScript, kb as enrollAuthenticator, kc as estimateEntropy, kd as evalComputedFields, ke as evaluateClause, kf as evaluateExportCapability, kg as evaluateFieldClause, kh as evaluateImportCapability, ki as executePlan, kj as exportAccessibleData, kk as findAuthenticator, df as formatDiff, b5 as groupAndReduce, kl as hasExportCapability, km as hasImportCapability, kn as hasRecoveryEnrolled, u as i18nText, v as inferScripts, e6 as isClassifiedFieldSpec, e7 as isClassifiedGroup, w as isDictCollectionName, x as isDictKeyDescriptor, y as isI18nTextDescriptor, ko as isLinkCollectionName, kp as isMagicLinkGrantExpired, kq as isMoneyDescriptor, kr as isMoneyString, ks as isPublicEnvelope, kt as isRefArray, z as isStaticDictDescriptor, ku as issueDelegation, kv as keyringRecoverPassphrase, kw as keyringRotatePassphrase, kx as liberateVault, ky as listMagicLinkGrants, kz as listUsers, kA as listUsersWithEnvelopes, kB as listWithdrawalRequests, kC as loadActiveDelegations, kD as loadPaperRecoveryEntries, kE as loadSealedPassphrase, kF as loadShamirRecoveryEntries, kG as magicLinkGrantRecordId, b6 as max, au as memoryObjectProjection, bn as mergeCrdtStates, b7 as min, kH as mintPaperRecoveryEntry, kI as mintShamirRecoveryEntry, kJ as mintWrappedDeksBlob, kK as money, b8 as moneyMax, b9 as moneyMin, kL as moneyNumber, ba as moneySum, kM as parseRsaOaepTlv, kN as parseSealedEnvelope, kO as readMagicLinkGrantRecord, kP as readPath, kQ as recoverUser, bb as reduceRecords, bc as reducerBuilder, kR as ref, kS as refArray, kT as rejectWithdrawal, kU as removeAuthenticator, kV as requestWithdrawal, kW as resetJoinWarnings, bo as resolveCrdtSnapshot, A as resolveI18nText, B as resolvePolicy, kX as resolvePublicEnvelopeSchema, kY as resolveSequenceKey, kZ as revokeDelegation, k_ as revokeMagicLinkGrant, k$ as runTransaction, l0 as savePaperRecoveryEntries, l1 as saveSealedPassphrase, l2 as saveShamirRecoveryEntries, l3 as sealRsaOaepTlv, E as staticDict, be as sum, l4 as unwrapDeksFromBlob, l5 as unwrapDeksFromPaperEntry, l6 as unwrapDeksFromShamirEntry, l7 as unwrapMagicLinkGrant, G as validateI18nTextValue, l8 as validatePassphrase, l9 as validatePublicEnvelopeInput, la as validateSchemaInput, lb as validateSchemaOutput, W as validateSessionPolicy, lc as withArchive, ld as withDeferredNumbering, le as withdrawAccessibleData, lf as writeMagicLinkGrant } from './index-Dn5GzPg_.js';
|
|
3
|
-
export { I as ImportExternalOptions, a as ImportExternalResult, b as ImportableCollection, d as detectMagic, c as detectMimeType, i as importExternalObjects, e as isPreCompressed } from './mime-magic-CYbFNQ4h.js';
|
|
4
|
-
export { WrapBundleStoreOptions, WrapPodStoreOptions, WrappedBundleNoydbStore, WrappedPodNoydbStore, createBundleStore, createPodStore, wrapBundleStore, wrapPodStore } from './pod/index.js';
|
|
5
|
-
export { W as WriteEvent, a as WriteHook } from './index-B9QdHytu.js';
|
|
6
|
-
import { C as CollectionDescription } from './describe-C6iHNlqJ.js';
|
|
7
|
-
export { a as CollectionMeta, D as DescribeOptions, b as DescribedField, F as FieldMeta, S as SemanticType, V as VaultMeta } from './describe-C6iHNlqJ.js';
|
|
8
|
-
export { D as DEED_RECORD_ID, a as DeedMarker, S as STATE_VAULT_NAME, U as USER_ENVELOPE_COLLECTION, b as USER_ENVELOPE_MAX_BYTES, c as createDeedOwner, i as isDeedVault, l as loadDeedMarker, w as withCargo } from './index-CTvUp94-.js';
|
|
9
|
-
export { A as AutoCredential, q as AutoCredentialKind, d as CompressionAlgo, f as NOYDB_BUNDLE_FORMAT_VERSION, g as NOYDB_BUNDLE_MAGIC, h as NOYDB_BUNDLE_PREFIX_BYTES, i as NoydbBundleHeader, j as NoydbBundleReadResult, N as NoydbPodHeader, R as ReadNoydbBundleOptions, k as WriteNoydbBundleOptions, W as WritePodOptions, s as hasNoydbBundleMagic, m as readNoydbBundle, n as readNoydbBundleHeader, t as readNoydbBundlePublicEnvelope, r as readPod, a as readPodHeader, o as resetBrotliSupportCache, p as writeNoydbBundle, w as writePod } from './bundle-DzWtVw7w.js';
|
|
10
|
-
export { g as generateULID, i as isULID } from './ulid-DRH25k3y.js';
|
|
11
|
-
export { D as DecryptedRecord, d as decryptExtractedPartition } from './decrypt-partition-IHtxEnTi.js';
|
|
12
|
-
export { L as LedgerEntry, d as canonicalJson, h as hashEntry, p as paddedIndex, e as parseIndex, s as sha256Hex } from './subject-index-O75wKshW.js';
|
|
13
|
-
export { SYNC_CREDENTIALS_COLLECTION, SyncCredential, credentialStatus, deleteCredential, getCredential, listCredentials, putCredential, withTeam } from './team/index.js';
|
|
14
|
-
export { withLazy } from './lazy/index.js';
|
|
15
|
-
export { TransactionStrategyOptions } from './tx/index.js';
|
|
16
|
-
export { I as ImmutableGuardConfig, T as TransitionGuardConfig, i as immutableGuard, t as transitionGuard, w as withGuard } from './transition-guard-D5RLJv8S.js';
|
|
17
|
-
export { w as withDerivation, a as withRollup } from './with-rollup-K_iwal4b.js';
|
|
18
|
-
export { w as withMaterializedView } from './with-materialized-view-Xv1-9Bh0.js';
|
|
19
|
-
export { w as withOverlayedView } from './with-overlayed-view-CuWhq_-C.js';
|
|
20
|
-
export { C as ClassifiedNeverStoredError, a as ClassifiedValidationError, c as classified, l as luhnCheck, r as resolveClassifiedFields } from './validators-C3lrVF-c.js';
|
|
21
|
-
export { C as CreateSessionOptions, a as CreateSessionResult, D as DevUnlockOptions, S as SessionToken, b as activeSessionCount, c as clearDevUnlock, d as createSession, e as enableDevUnlock, i as isDevUnlockActive, f as isSessionAlive, l as loadDevUnlock, r as resolveSession, g as revokeAllSessions, h as revokeSession } from './dev-unlock-wgQ7Ci5I.js';
|
|
22
|
-
export { i as isDiscriminant } from './discriminant-BN9REW3o.js';
|
|
23
|
-
export { FuseOptions, fuseRetrieval } from './kernel/index.js';
|
|
24
|
-
export { D as DiffCandidate, a as DiffOptions, V as VaultDiff, b as VaultDiffEntry, c as VaultDiffModifiedEntry, d as diffVault } from './vault-diff-_LSIcOMv.js';
|
|
25
|
-
export { L as LEDGER_COLLECTION, a as LEDGER_DELTAS_COLLECTION, e as envelopePayloadHash } from './hash-CwHnoKyW.js';
|
|
26
|
-
import '@noy-db/attestation';
|
|
27
|
-
|
|
28
1
|
/**
|
|
29
|
-
*
|
|
2
|
+
* **@noy-db/hub** — zero-knowledge, offline-first, encrypted document store.
|
|
30
3
|
*
|
|
31
|
-
*
|
|
32
|
-
* number — interpreted as raw bytes
|
|
33
|
-
* '1024' — string of digits, raw bytes
|
|
34
|
-
* '50KB' — kilobytes (×1024)
|
|
35
|
-
* '50MB' — megabytes (×1024²)
|
|
36
|
-
* '1GB' — gigabytes (×1024³)
|
|
4
|
+
* ## What it is
|
|
37
5
|
*
|
|
38
|
-
*
|
|
6
|
+
* A TypeScript library that encrypts every record with AES-256-GCM before it
|
|
7
|
+
* reaches any storage backend. The store (file, DynamoDB, S3, IndexedDB, …)
|
|
8
|
+
* only ever sees ciphertext — it has no way to read or tamper with your data
|
|
9
|
+
* without the user's passphrase.
|
|
39
10
|
*
|
|
40
|
-
*
|
|
41
|
-
* to silently treat a typo as 0 bytes (which would evict everything).
|
|
42
|
-
*/
|
|
43
|
-
/** Parse a byte budget into a positive integer number of bytes. */
|
|
44
|
-
declare function parseBytes(input: number | string): number;
|
|
45
|
-
/**
|
|
46
|
-
* Estimate the in-memory byte size of a decrypted record.
|
|
47
|
-
*
|
|
48
|
-
* Uses `JSON.stringify().length` as a stand-in for actual heap usage.
|
|
49
|
-
* It's a deliberate approximation: real V8 heap size includes pointer
|
|
50
|
-
* overhead, hidden classes, and string interning that we can't measure
|
|
51
|
-
* from JavaScript. The JSON length is a stable, monotonic proxy that
|
|
52
|
-
* costs O(record size) per insert — fine when records are typically
|
|
53
|
-
* < 1 KB and the cache eviction is the slow path anyway.
|
|
54
|
-
*
|
|
55
|
-
* Returns `0` (and the caller must treat it as 1 for accounting) if
|
|
56
|
-
* stringification throws on circular references; this is documented
|
|
57
|
-
* but in practice records always come from JSON-decoded envelopes.
|
|
58
|
-
*/
|
|
59
|
-
declare function estimateRecordBytes(record: unknown): number;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Default text tokenizer for scan-mode search.
|
|
63
|
-
*
|
|
64
|
-
* NFKC-normalize → lowercase → split on Unicode letter/number runs. This is a
|
|
65
|
-
* word-boundary tokenizer: it does **not** segment scripts written without
|
|
66
|
-
* inter-word spaces (Thai, Lao, Khmer, CJK) — those collapse to one token per
|
|
67
|
-
* run. For such data, a dictionary/ICU segmenter is the right `tokenizer`
|
|
68
|
-
* (the engine takes one as a parameter); substring/`contains` matching is the
|
|
69
|
-
* pragmatic fallback until then.
|
|
70
|
-
*/
|
|
71
|
-
type Tokenizer = (text: string) => string[];
|
|
72
|
-
declare const tokenize: Tokenizer;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Enable the search / retrieval capability.
|
|
76
|
-
* Pass to `createNoydb({ searchStrategy: withSearch() })` to make a collection's
|
|
77
|
-
* `search` / `retrieve` / `similarTo` / `warmIndex` / `flushIndex` methods live,
|
|
78
|
-
* and to enable the put()-time embedding-vector compute for collections that
|
|
79
|
-
* declare an `embeddings` config. The search/retrieval engine is dynamically
|
|
80
|
-
* imported here, so it stays out of the floor bundle until opted in.
|
|
81
|
-
*/
|
|
82
|
-
|
|
83
|
-
declare function withSearch(): SearchStrategy;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Enable the atomic-sequence capability.
|
|
87
|
-
* Pass to `createNoydb({ sequenceStrategy: withSequence() })` to make
|
|
88
|
-
* `vault.sequence('name').next()` / `.peek()` / `.seedTo()` live. The
|
|
89
|
-
* {@link SequenceStore} CAS engine is statically imported here, so it is pulled
|
|
90
|
-
* into the bundle only when `withSequence()` is referenced (the floor never
|
|
91
|
-
* imports it).
|
|
92
|
-
*/
|
|
93
|
-
|
|
94
|
-
declare function withSequence(): SequenceStrategy;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Enable the sovereign-custody (FR-6) capability.
|
|
98
|
-
* Pass to `createNoydb({ custodyStrategy: withCustody() })` to make
|
|
99
|
-
* `db.grantCustodian` / `db.revokeCustodian` (and the `vault.custody.*` facade
|
|
100
|
-
* that delegates to them) plus `vault.custody.liberate()` live. The heavy
|
|
101
|
-
* `liberateVault` ceremony is dynamically imported here, so it is reached only
|
|
102
|
-
* via opt-in; grant/revoke run the host's own gate + keyring engine.
|
|
103
|
-
*/
|
|
104
|
-
|
|
105
|
-
declare function withCustody(): CustodyStrategy;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Helpers for reading records out of a *plaintext* store (`encrypt: false`)
|
|
109
|
-
* with native tooling — the programmatic core of a `noydb cat`-style unwrap.
|
|
110
|
-
* See the plaintext/debug-store-mode design.
|
|
111
|
-
*/
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Extract the record from a plaintext stored envelope, handling both layouts:
|
|
11
|
+
* ## Architecture in one diagram
|
|
115
12
|
*
|
|
116
|
-
* - **classic plaintext** (`encrypt: false`): the record is JSON in `_data`.
|
|
117
|
-
* - **debugPlaintext**: the record's fields are inlined beside the
|
|
118
|
-
* `_`-prefixed metadata (marked by `_debug`).
|
|
119
|
-
*
|
|
120
|
-
* Returns `null` for an empty/absent body. Throws if handed an **encrypted**
|
|
121
|
-
* envelope (non-empty `_iv`) — there is no key here; decrypt through the vault
|
|
122
|
-
* instead. Intended for record envelopes, not blob chunks.
|
|
123
|
-
*
|
|
124
|
-
* @example
|
|
125
|
-
* ```ts
|
|
126
|
-
* // node script over a to-file store, no vault needed:
|
|
127
|
-
* const env = JSON.parse(readFileSync('data/acme/invoices/inv-1.json', 'utf8'))
|
|
128
|
-
* console.log(readPlaintextRecord(env)) // → { id: 'inv-1', total: '120.00', … }
|
|
129
13
|
* ```
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
*
|
|
135
|
-
* Replaces classified field values with their declared projection (omit /
|
|
136
|
-
* mask / rider) so no consumer re-implements redaction. Pure, non-mutating.
|
|
137
|
-
* Consumed by as-* exporters (#489) and available to any list renderer.
|
|
138
|
-
* @module
|
|
139
|
-
*/
|
|
140
|
-
|
|
141
|
-
interface ListProjectionOptions {
|
|
142
|
-
/** Also handle fields carrying only a plain sensitivity tag (pii/secret). */
|
|
143
|
-
readonly sensitivity?: 'omit' | 'mask';
|
|
144
|
-
}
|
|
145
|
-
declare function applyListProjection(desc: CollectionDescription, record: Record<string, unknown>, opts?: ListProjectionOptions): Record<string, unknown>;
|
|
146
|
-
|
|
147
|
-
/** Allow any schema change. Explicit blind / back-compat. */
|
|
148
|
-
declare function blindUpdate(): SchemaUpdateStrategy;
|
|
149
|
-
/** Allow additive changes; reject non-additive ones. The safety backstop. */
|
|
150
|
-
declare function additiveOnly(): SchemaUpdateStrategy;
|
|
151
|
-
/**
|
|
152
|
-
* Reject schema changes. With `fields`, reject only when one of those
|
|
153
|
-
* fields is added/removed/changed; otherwise reject any non-`none` delta.
|
|
154
|
-
*/
|
|
155
|
-
declare function lockSchema(opts?: {
|
|
156
|
-
readonly fields?: readonly string[];
|
|
157
|
-
}): SchemaUpdateStrategy;
|
|
158
|
-
|
|
159
|
-
/** The coordinatedCutover update strategy (single-step — no from/to). */
|
|
160
|
-
|
|
161
|
-
declare function coordinatedCutover(opts: {
|
|
162
|
-
readonly transform: TransformFn;
|
|
163
|
-
}): SchemaUpdateStrategy;
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Built-in in-memory store — the kernel's zero-config default.
|
|
167
|
-
*
|
|
168
|
-
* Nested `Map`s: `vault → collection → id → envelope`. Non-persistent
|
|
169
|
-
* (data is lost on process exit). A conformant 6-method {@link NoydbStore}
|
|
170
|
-
* with CAS atomicity and a monotonic store clock — the kernel version of
|
|
171
|
-
* `@noy-db/to-memory`'s core, so `createNoydb()` works with no store package.
|
|
172
|
-
*
|
|
173
|
-
* Portable: imports only `types` + `errors` (no crypto primitive) — passes
|
|
174
|
-
* the `stores-ciphertext-only` architecture guard.
|
|
175
|
-
*
|
|
176
|
-
* Implements the 6-method core only (no optional `listVaults`/`ping`/`tx`),
|
|
177
|
-
* so `Noydb.listAccessibleVaults()` throws its documented capability error
|
|
178
|
-
* rather than enumerating vaults under the default store.
|
|
179
|
-
*/
|
|
180
|
-
declare function memoryStore(): NoydbStore;
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Store router / multiplexer.
|
|
184
|
-
*
|
|
185
|
-
* Dispatches `NoydbStore` operations to different backends based on
|
|
186
|
-
* collection type, record size, record age, collection name, or vault name.
|
|
187
|
-
*
|
|
188
|
-
* ```ts
|
|
189
|
-
* const db = await createNoydb({
|
|
190
|
-
* store: routeStore({
|
|
191
|
-
* default: dynamo({ table: 'myapp' }),
|
|
192
|
-
* blobs: s3Store({ bucket: 'myapp-blobs' }),
|
|
193
|
-
* }),
|
|
194
|
-
* })
|
|
14
|
+
* Passphrase
|
|
15
|
+
* └─► PBKDF2-SHA256 (600K iterations) → KEK [memory only]
|
|
16
|
+
* └─► AES-KW unwrap → DEK per collection [memory only]
|
|
17
|
+
* └─► AES-256-GCM encrypt/decrypt
|
|
18
|
+
* └─► NoydbStore [sees only ciphertext envelopes]
|
|
195
19
|
* ```
|
|
196
20
|
*
|
|
197
|
-
*
|
|
198
|
-
*/
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* Size-tiered blob routing configuration.
|
|
202
|
-
*
|
|
203
|
-
* Routes blob chunks to different stores based on byte size. Small blobs
|
|
204
|
-
* (under `threshold`) stay in the primary or `small` store; large blobs
|
|
205
|
-
* go to `large`. This lets you keep DynamoDB as the default while sending
|
|
206
|
-
* large binary objects to S3.
|
|
207
|
-
*/
|
|
208
|
-
interface BlobStoreRoute {
|
|
209
|
-
/** Store for small blobs (under threshold). Falls back to `default`. */
|
|
210
|
-
readonly small?: NoydbStore;
|
|
211
|
-
/** Store for large blobs (over threshold). */
|
|
212
|
-
readonly large: NoydbStore;
|
|
213
|
-
/** Size threshold in bytes. Default: `400 * 1024` (DynamoDB item limit). */
|
|
214
|
-
readonly threshold?: number;
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* Blob lifecycle management policies evaluated during `compact()`.
|
|
218
|
-
*
|
|
219
|
-
* Controls orphan cleanup, cold-tier archival, and hard deletion of
|
|
220
|
-
* blobs that are no longer referenced by any record.
|
|
221
|
-
*/
|
|
222
|
-
interface BlobLifecyclePolicy {
|
|
223
|
-
/** Delete orphan blobs (refCount: 0) after this many days. Default: 7. */
|
|
224
|
-
readonly orphanRetentionDays?: number;
|
|
225
|
-
/** Move blobs not accessed in this many days to the cold blob store. */
|
|
226
|
-
readonly archiveAfterDays?: number;
|
|
227
|
-
/** Store for archived blobs. Required if archiveAfterDays is set. */
|
|
228
|
-
readonly archiveStore?: NoydbStore;
|
|
229
|
-
/** Hard-delete archived blobs after this many days. */
|
|
230
|
-
readonly expireAfterDays?: number;
|
|
231
|
-
}
|
|
232
|
-
/**
|
|
233
|
-
* Age-based hot/cold tiering configuration.
|
|
234
|
-
*
|
|
235
|
-
* Records whose `_ts` timestamp is older than `coldAfterDays` are migrated
|
|
236
|
-
* to the `cold` store during `compact()`. Reads transparently fall through
|
|
237
|
-
* to the cold store when the hot store returns null, so callers don't need
|
|
238
|
-
* to know which tier a record lives in.
|
|
239
|
-
*/
|
|
240
|
-
interface AgeRoute {
|
|
241
|
-
/** Store for records older than the cutoff. */
|
|
242
|
-
readonly cold: NoydbStore;
|
|
243
|
-
/**
|
|
244
|
-
* Days after last modification before a record is cold-eligible for the
|
|
245
|
-
* ROLLING `compact(vault)` migrator. Omit for period-driven archival only
|
|
246
|
-
* (`compact(vault, { before })`), where the cutoff is supplied per call.
|
|
247
|
-
*/
|
|
248
|
-
readonly coldAfterDays?: number;
|
|
249
|
-
/**
|
|
250
|
-
* Collections that participate in age tiering.
|
|
251
|
-
* Empty array or omitted = all user collections (excluding `_` prefixed).
|
|
252
|
-
*/
|
|
253
|
-
readonly collections?: string[];
|
|
254
|
-
}
|
|
255
|
-
/**
|
|
256
|
-
* Options for `routeStore()` — the store multiplexer.
|
|
257
|
-
*
|
|
258
|
-
* At minimum, provide a `default` store. All other fields are optional
|
|
259
|
-
* extensions for specific routing scenarios (blobs → S3, geographic sharding,
|
|
260
|
-
* age-based tiering, etc.).
|
|
261
|
-
*/
|
|
262
|
-
interface RouteStoreOptions {
|
|
263
|
-
/** Default store for all unmatched operations. */
|
|
264
|
-
readonly default: NoydbStore;
|
|
265
|
-
/**
|
|
266
|
-
* Route blob chunk data to a separate store.
|
|
267
|
-
* - Pass a `NoydbStore` for simple prefix routing (all chunks → that store).
|
|
268
|
-
* - Pass `{ small?, large, threshold? }` for size-tiered routing.
|
|
269
|
-
*/
|
|
270
|
-
readonly blobs?: NoydbStore | BlobStoreRoute;
|
|
271
|
-
/** Route all blob metadata (index, slots, versions) to the blobs store too. Default: false. */
|
|
272
|
-
readonly routeBlobMeta?: boolean;
|
|
273
|
-
/** Route specific user collections to dedicated stores. */
|
|
274
|
-
readonly routes?: Record<string, NoydbStore>;
|
|
275
|
-
/** Route by vault name (prefix patterns, e.g. `'EU-'`). */
|
|
276
|
-
readonly vaultRoutes?: Record<string, NoydbStore>;
|
|
277
|
-
/**
|
|
278
|
-
* Age-based tiering: records older than `coldAfterDays` are read from
|
|
279
|
-
* the cold store. A background `compact()` method migrates them.
|
|
280
|
-
*/
|
|
281
|
-
readonly age?: AgeRoute;
|
|
282
|
-
/**
|
|
283
|
-
* Content-aware blob routing.
|
|
284
|
-
* Route blob chunks by MIME type glob pattern. The MIME type is stored
|
|
285
|
-
* in `BlobObject` and matched at read time via `storeHint`.
|
|
286
|
-
*/
|
|
287
|
-
readonly blobRoutes?: Record<string, NoydbStore>;
|
|
288
|
-
/**
|
|
289
|
-
* Blob lifecycle policies.
|
|
290
|
-
* Evaluated during `compact()`.
|
|
291
|
-
*/
|
|
292
|
-
readonly blobLifecycle?: BlobLifecyclePolicy;
|
|
293
|
-
/**
|
|
294
|
-
* Quota-aware overflow.
|
|
295
|
-
* When the default store's usage exceeds the threshold, new writes
|
|
296
|
-
* overflow to the specified store.
|
|
297
|
-
*/
|
|
298
|
-
readonly overflow?: NoydbStore;
|
|
299
|
-
/**
|
|
300
|
-
* Quota threshold (0-1). Default: 0.8 (overflow at 80% usage).
|
|
301
|
-
* Only effective when `overflow` is set.
|
|
302
|
-
*/
|
|
303
|
-
readonly quotaThreshold?: number;
|
|
304
|
-
}
|
|
305
|
-
/**
|
|
306
|
-
* Named route that can be overridden or suspended at runtime.
|
|
307
|
-
*
|
|
308
|
-
* Built-in names: `'default'`, `'blobs'`, `'cold'`.
|
|
309
|
-
* Custom names: any collection name from `routes`, any vault prefix from
|
|
310
|
-
* `vaultRoutes`, or any sync target label.
|
|
311
|
-
*/
|
|
312
|
-
type OverrideTarget = 'default' | 'blobs' | 'cold' | (string & {});
|
|
313
|
-
/**
|
|
314
|
-
* Options for `RoutedNoydbStore.override()`.
|
|
315
|
-
*
|
|
316
|
-
* Controls whether the new store is pre-populated with data from the
|
|
317
|
-
* original store before the switch takes effect.
|
|
318
|
-
*/
|
|
319
|
-
interface OverrideOptions {
|
|
320
|
-
/**
|
|
321
|
-
* Hydrate the override store from the original before activating.
|
|
322
|
-
* - `true` — copy all data for all vaults.
|
|
323
|
-
* - `string[]` — copy only named collections.
|
|
324
|
-
* Makes `override()` async — returns a Promise.
|
|
325
|
-
*/
|
|
326
|
-
hydrate?: boolean | string[];
|
|
327
|
-
}
|
|
328
|
-
/**
|
|
329
|
-
* Options for `RoutedNoydbStore.suspend()`.
|
|
330
|
-
*
|
|
331
|
-
* A suspended route becomes a null store: reads return null/[], writes
|
|
332
|
-
* are dropped (or buffered if `queue: true`). Useful for maintenance
|
|
333
|
-
* windows or restricted-network scenarios.
|
|
334
|
-
*/
|
|
335
|
-
interface SuspendOptions {
|
|
336
|
-
/**
|
|
337
|
-
* Buffer write operations during suspension. On `resume()`, queued
|
|
338
|
-
* writes are replayed against the restored store.
|
|
339
|
-
*/
|
|
340
|
-
queue?: boolean;
|
|
341
|
-
/**
|
|
342
|
-
* Maximum queued operations. When exceeded, oldest entries are dropped.
|
|
343
|
-
* Default: 10_000.
|
|
344
|
-
*/
|
|
345
|
-
maxQueueSize?: number;
|
|
346
|
-
}
|
|
347
|
-
/**
|
|
348
|
-
* Snapshot of the current override and suspend state of a `RoutedNoydbStore`.
|
|
349
|
-
* Returned by `routeStatus()` for diagnostics and health dashboards.
|
|
350
|
-
*/
|
|
351
|
-
interface RouteStatus {
|
|
352
|
-
/** Active overrides: route name → override store name. */
|
|
353
|
-
readonly overrides: Record<string, string>;
|
|
354
|
-
/** Currently suspended routes. */
|
|
355
|
-
readonly suspended: string[];
|
|
356
|
-
/** Queued writes per suspended route (only for routes suspended with `queue: true`). */
|
|
357
|
-
readonly queued: Record<string, number>;
|
|
358
|
-
}
|
|
359
|
-
/**
|
|
360
|
-
* Extended `NoydbStore` returned by `routeStore()`.
|
|
361
|
-
*
|
|
362
|
-
* Satisfies the full `NoydbStore` contract plus adds runtime control
|
|
363
|
-
* methods for overriding, suspending, and inspecting routes.
|
|
364
|
-
*/
|
|
365
|
-
interface RoutedNoydbStore extends NoydbStore {
|
|
366
|
-
/**
|
|
367
|
-
* Migrate records to the cold store. Only applies when `age.cold` is
|
|
368
|
-
* configured. With `{ before }`, migrates records whose `_ts < before`
|
|
369
|
-
* (period-driven archival); without, uses the rolling `coldAfterDays`.
|
|
370
|
-
* Returns the number of records migrated.
|
|
371
|
-
*/
|
|
372
|
-
compact(vault: string, opts?: {
|
|
373
|
-
before?: string;
|
|
374
|
-
}): Promise<number>;
|
|
375
|
-
/**
|
|
376
|
-
* Override a named route at runtime.
|
|
377
|
-
*
|
|
378
|
-
* The override persists until `clearOverride()` is called or the
|
|
379
|
-
* instance is closed. In-flight operations complete on the original
|
|
380
|
-
* store; new operations use the override.
|
|
381
|
-
*
|
|
382
|
-
* Options:
|
|
383
|
-
* - `hydrate: true` — async: copies all data from the original store
|
|
384
|
-
* into the override before activating the switch.
|
|
385
|
-
* - `hydrate: ['invoices', 'clients']` — copies only named collections.
|
|
386
|
-
*
|
|
387
|
-
* Use cases:
|
|
388
|
-
* - Shared device: `await store.override('default', memory(), { hydrate: true })`
|
|
389
|
-
* - Restricted network: `store.override('blobs', localFile(...))`
|
|
390
|
-
*/
|
|
391
|
-
override(route: OverrideTarget, store: NoydbStore, opts?: OverrideOptions): void | Promise<void>;
|
|
392
|
-
/** Clear a runtime override, reverting to the original store. */
|
|
393
|
-
clearOverride(route: OverrideTarget): void;
|
|
394
|
-
/**
|
|
395
|
-
* Suspend a route entirely. Operations to suspended stores become
|
|
396
|
-
* no-ops (puts silently dropped, gets return null, lists return []).
|
|
397
|
-
*
|
|
398
|
-
* Options:
|
|
399
|
-
* - `queue: true` — buffer write operations (put/delete) during
|
|
400
|
-
* suspension. When `resume()` is called, queued writes are replayed
|
|
401
|
-
* against the restored store.
|
|
402
|
-
*
|
|
403
|
-
* Returns a `SuspendHandle` when `queue: true`, for inspecting queue state.
|
|
404
|
-
*/
|
|
405
|
-
suspend(route: OverrideTarget, opts?: SuspendOptions): void;
|
|
406
|
-
/**
|
|
407
|
-
* Resume a previously suspended route.
|
|
408
|
-
* If the route was suspended with `queue: true`, replays queued writes.
|
|
409
|
-
* Returns the number of replayed operations.
|
|
410
|
-
*/
|
|
411
|
-
resume(route: OverrideTarget): Promise<number>;
|
|
412
|
-
/** Snapshot the current override/suspend state for diagnostics. */
|
|
413
|
-
routeStatus(): RouteStatus;
|
|
414
|
-
/**
|
|
415
|
-
* Resolve the physical backend a vault id maps to via the geographic
|
|
416
|
-
* `vaultRoutes` prefix routing (collection-independent), falling back to
|
|
417
|
-
* the `default` store. Used by the federation data-residency guard
|
|
418
|
-
* to read the placement backend's `capabilities.region`.
|
|
419
|
-
*/
|
|
420
|
-
resolveBackend(vaultId: string): NoydbStore;
|
|
421
|
-
}
|
|
422
|
-
/**
|
|
423
|
-
* Create a store multiplexer that dispatches operations to different backends
|
|
424
|
-
* based on collection type, record size, record age, vault prefix, or
|
|
425
|
-
* runtime overrides.
|
|
426
|
-
*
|
|
427
|
-
* ```ts
|
|
428
|
-
* const store = routeStore({
|
|
429
|
-
* default: dynamo({ table: 'myapp' }),
|
|
430
|
-
* blobs: s3({ bucket: 'myapp-blobs' }),
|
|
431
|
-
* routes: { auditLog: s3({ bucket: 'myapp-audit' }) },
|
|
432
|
-
* })
|
|
433
|
-
* ```
|
|
434
|
-
*
|
|
435
|
-
* The returned store satisfies `NoydbStore` and can be passed directly to
|
|
436
|
-
* `createNoydb({ store })`. It also exposes additional methods
|
|
437
|
-
* (`override`, `suspend`, `resume`, `routeStatus`, `compact`) for runtime
|
|
438
|
-
* control and maintenance.
|
|
439
|
-
*/
|
|
440
|
-
declare function routeStore(opts: RouteStoreOptions): RoutedNoydbStore;
|
|
441
|
-
|
|
442
|
-
/**
|
|
443
|
-
* Store middleware — composable interceptors for NoydbStore.
|
|
21
|
+
* ## Getting started
|
|
444
22
|
*
|
|
445
23
|
* ```ts
|
|
446
|
-
*
|
|
447
|
-
*
|
|
448
|
-
* withRetry({ maxRetries: 3 }),
|
|
449
|
-
* withLogging({ level: 'debug' }),
|
|
450
|
-
* withCache({ ttlMs: 60_000 }),
|
|
451
|
-
* )
|
|
452
|
-
* ```
|
|
453
|
-
*
|
|
454
|
-
* Each middleware is `(next: NoydbStore) => NoydbStore`. They compose
|
|
455
|
-
* left-to-right: first middleware is outermost (processes requests first,
|
|
456
|
-
* responses last).
|
|
24
|
+
* import { createNoydb } from '@noy-db/hub'
|
|
25
|
+
* import { jsonFile } from '@noy-db/to-file'
|
|
457
26
|
*
|
|
458
|
-
*
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
/**
|
|
462
|
-
* A store middleware function.
|
|
27
|
+
* const db = await createNoydb({ store: jsonFile({ dir: './data' }) })
|
|
28
|
+
* const acme = await db.openVault('acme', { passphrase: 'hunter2' })
|
|
29
|
+
* const invoices = acme.collection<Invoice>('invoices')
|
|
463
30
|
*
|
|
464
|
-
*
|
|
465
|
-
*
|
|
466
|
-
* (first to intercept requests, last to process responses).
|
|
467
|
-
*
|
|
468
|
-
* ```ts
|
|
469
|
-
* const mw: StoreMiddleware = (next) => ({
|
|
470
|
-
* ...next,
|
|
471
|
-
* async get(vault, collection, id) {
|
|
472
|
-
* console.log('get', id)
|
|
473
|
-
* return next.get(vault, collection, id)
|
|
474
|
-
* },
|
|
475
|
-
* })
|
|
31
|
+
* await invoices.put('inv-001', { amount: 1200, client: 'Acme Corp' })
|
|
32
|
+
* const all = await invoices.query().toArray()
|
|
476
33
|
* ```
|
|
477
|
-
*/
|
|
478
|
-
type StoreMiddleware = (next: NoydbStore) => NoydbStore;
|
|
479
|
-
/**
|
|
480
|
-
* Wrap a store with one or more middlewares. Middlewares compose left-to-right.
|
|
481
|
-
*/
|
|
482
|
-
declare function wrapStore(store: NoydbStore, ...middlewares: StoreMiddleware[]): NoydbStore;
|
|
483
|
-
/** Options for `withRetry()`. */
|
|
484
|
-
interface RetryOptions {
|
|
485
|
-
/** Maximum retry attempts. Default: 3. */
|
|
486
|
-
maxRetries?: number;
|
|
487
|
-
/** Base backoff delay in ms. Default: 500. */
|
|
488
|
-
backoffMs?: number;
|
|
489
|
-
/** Jitter factor (0-1). Adds random delay up to `backoffMs * jitter`. Default: 0.3. */
|
|
490
|
-
jitter?: number;
|
|
491
|
-
/** Only retry on these error codes. Default: retry all errors. */
|
|
492
|
-
retryOn?: string[];
|
|
493
|
-
}
|
|
494
|
-
/**
|
|
495
|
-
* Middleware that retries failed store operations with exponential backoff
|
|
496
|
-
* and optional jitter. Useful for transient network errors on DynamoDB/S3.
|
|
497
|
-
*
|
|
498
|
-
* ```ts
|
|
499
|
-
* wrapStore(dynamo({ table: 'myapp' }), withRetry({ maxRetries: 5, retryOn: ['NETWORK_ERROR'] }))
|
|
500
|
-
* ```
|
|
501
|
-
*/
|
|
502
|
-
declare function withRetry(opts?: RetryOptions): StoreMiddleware;
|
|
503
|
-
/** Log level for `withLogging()`. Maps to standard console method names. */
|
|
504
|
-
type LogLevel = 'debug' | 'info' | 'warn' | 'error';
|
|
505
|
-
/** Options for `withLogging()`. */
|
|
506
|
-
interface LoggingOptions {
|
|
507
|
-
/** Minimum log level. Default: 'info'. */
|
|
508
|
-
level?: LogLevel;
|
|
509
|
-
/** Custom logger. Default: console. */
|
|
510
|
-
logger?: {
|
|
511
|
-
debug(msg: string, ...args: unknown[]): void;
|
|
512
|
-
info(msg: string, ...args: unknown[]): void;
|
|
513
|
-
warn(msg: string, ...args: unknown[]): void;
|
|
514
|
-
error(msg: string, ...args: unknown[]): void;
|
|
515
|
-
};
|
|
516
|
-
/** Log the data payload (envelope contents). Default: false (privacy). */
|
|
517
|
-
logData?: boolean;
|
|
518
|
-
}
|
|
519
|
-
/**
|
|
520
|
-
* Middleware that logs every store operation with its method name, arguments,
|
|
521
|
-
* and elapsed duration. Privacy-safe by default: envelope payloads are not
|
|
522
|
-
* logged unless `logData: true` is set.
|
|
523
|
-
*/
|
|
524
|
-
declare function withLogging(opts?: LoggingOptions): StoreMiddleware;
|
|
525
|
-
/**
|
|
526
|
-
* Data emitted to `MetricsOptions.onOperation` after every store call.
|
|
527
|
-
*
|
|
528
|
-
* Carries method name, vault/collection/id context, elapsed duration,
|
|
529
|
-
* and success/failure status. Wire this into your metrics pipeline
|
|
530
|
-
* (DataDog, Prometheus, CloudWatch) to get per-operation latency histograms.
|
|
531
|
-
*/
|
|
532
|
-
interface StoreOperation {
|
|
533
|
-
method: 'get' | 'put' | 'delete' | 'list' | 'loadAll' | 'saveAll';
|
|
534
|
-
vault: string;
|
|
535
|
-
collection?: string;
|
|
536
|
-
id?: string;
|
|
537
|
-
durationMs: number;
|
|
538
|
-
success: boolean;
|
|
539
|
-
error?: Error;
|
|
540
|
-
}
|
|
541
|
-
/** Options for `withMetrics()`. */
|
|
542
|
-
interface MetricsOptions {
|
|
543
|
-
/** Called after every store operation. */
|
|
544
|
-
onOperation: (op: StoreOperation) => void;
|
|
545
|
-
}
|
|
546
|
-
/**
|
|
547
|
-
* Middleware that calls `onOperation` after every store method with timing
|
|
548
|
-
* and success/failure data. Designed for low-overhead integration with
|
|
549
|
-
* metrics systems — the callback is synchronous and fire-and-forget.
|
|
550
|
-
*/
|
|
551
|
-
declare function withMetrics(opts: MetricsOptions): StoreMiddleware;
|
|
552
|
-
/**
|
|
553
|
-
* Options for `withCircuitBreaker()`.
|
|
554
|
-
*
|
|
555
|
-
* The circuit breaker moves through three states:
|
|
556
|
-
* - `closed`: normal operation.
|
|
557
|
-
* - `open`: store is failing; all calls return fallback values immediately.
|
|
558
|
-
* - `half-open`: one probe call after `resetTimeoutMs` — success closes, failure re-opens.
|
|
559
|
-
*/
|
|
560
|
-
interface CircuitBreakerOptions {
|
|
561
|
-
/** Number of consecutive failures before opening the circuit. Default: 5. */
|
|
562
|
-
failureThreshold?: number;
|
|
563
|
-
/** Time in ms before attempting to half-open the circuit. Default: 30_000. */
|
|
564
|
-
resetTimeoutMs?: number;
|
|
565
|
-
/** Called when the circuit opens (store becomes unavailable). */
|
|
566
|
-
onOpen?: () => void;
|
|
567
|
-
/** Called when the circuit closes (store recovers). */
|
|
568
|
-
onClose?: () => void;
|
|
569
|
-
}
|
|
570
|
-
/**
|
|
571
|
-
* Middleware that implements the circuit-breaker pattern.
|
|
572
34
|
*
|
|
573
|
-
*
|
|
574
|
-
*
|
|
575
|
-
*
|
|
576
|
-
*
|
|
577
|
-
*
|
|
578
|
-
*
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
*
|
|
583
|
-
*
|
|
584
|
-
*
|
|
585
|
-
*
|
|
586
|
-
*
|
|
587
|
-
*
|
|
588
|
-
*
|
|
589
|
-
*
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
*
|
|
599
|
-
*
|
|
600
|
-
*
|
|
601
|
-
*
|
|
602
|
-
*
|
|
603
|
-
*
|
|
604
|
-
*
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
* @see https://github.com/vLannaAi/noy-db-docs/blob/main/content/docs/services/user-envelope.md → Directory visibility
|
|
861
|
-
*
|
|
862
|
-
* @module
|
|
863
|
-
*/
|
|
864
|
-
/**
|
|
865
|
-
* Vault-level directory toggle. Persisted at `_meta/directory`.
|
|
866
|
-
*
|
|
867
|
-
* - `enabled: true` (default when no document exists) — every authenticated
|
|
868
|
-
* caller can enumerate users via `listUsersWithEnvelopes`.
|
|
869
|
-
* - `enabled: false` — only `owner` and `admin` callers can enumerate;
|
|
870
|
-
* anyone else gets {@link import('../../kernel/errors.js').DirectoryDisabledError}.
|
|
871
|
-
*/
|
|
872
|
-
interface DirectoryConfig {
|
|
873
|
-
readonly enabled: boolean;
|
|
874
|
-
}
|
|
875
|
-
/**
|
|
876
|
-
* Per-user visibility flag. Persisted at `_meta/visibility/<keyringId>`.
|
|
877
|
-
*
|
|
878
|
-
* - `hidden: false` (default when no document exists) — the user shows up
|
|
879
|
-
* in `listUsersWithEnvelopes` like any other principal.
|
|
880
|
-
* - `hidden: true` — the user is filtered out of the default listing.
|
|
881
|
-
* `owner`/`admin` callers can still see them by passing
|
|
882
|
-
* `{ includeHidden: true }`.
|
|
883
|
-
*/
|
|
884
|
-
interface UserVisibility {
|
|
885
|
-
readonly hidden: boolean;
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
/**
|
|
889
|
-
* Implementation behind `vault.user`. Constructed once per Vault via
|
|
890
|
-
* {@link createUserApi}, holds the writer's keyringId in closure so
|
|
891
|
-
* `updateMe`/`setMe` cannot target any other principal — the own-only
|
|
892
|
-
* rule is enforced at the type level (no `set(otherKeyringId, …)`
|
|
893
|
-
* method) AND at runtime (the keyringId argument simply doesn't exist
|
|
894
|
-
* on the write path).
|
|
895
|
-
*/
|
|
896
|
-
declare class UserApi implements VaultUserApi {
|
|
897
|
-
/** keyringId → set of listeners. Wildcard '*' fires on every change. */
|
|
898
|
-
private readonly listeners;
|
|
899
|
-
private readonly adapter;
|
|
900
|
-
private readonly vaultName;
|
|
901
|
-
/** The writer's own keyringId. Frozen at construction time. */
|
|
902
|
-
private readonly writerKeyringId;
|
|
903
|
-
private readonly getDek;
|
|
904
|
-
/**
|
|
905
|
-
* Policy-gate validator. When omitted, gates are skipped — useful
|
|
906
|
-
* for low-level tests that exercise the storage layer directly.
|
|
907
|
-
* Production paths always wire the Noydb-backed implementation.
|
|
908
|
-
*/
|
|
909
|
-
private readonly checkGate?;
|
|
910
|
-
/**
|
|
911
|
-
* Noydb-backed `exportMyAccessibleData`, injected by the Vault
|
|
912
|
-
* (which holds the keyring + bundle machinery). Omitted in low-level tests.
|
|
913
|
-
*/
|
|
914
|
-
private readonly exportAccessible?;
|
|
915
|
-
/**
|
|
916
|
-
* Noydb-backed `unilateralWithdrawal`, injected by the Vault.
|
|
917
|
-
* Destructive — extract + dispose (delete | freeze). Omitted in low-level tests.
|
|
918
|
-
*/
|
|
919
|
-
private readonly unilateralWithdraw?;
|
|
920
|
-
/**
|
|
921
|
-
* Noydb-backed two-party withdrawal ceremony, injected by the
|
|
922
|
-
* Vault. requestWithdraw = requester side; the rest = owner side.
|
|
923
|
-
*/
|
|
924
|
-
private readonly requestWithdraw?;
|
|
925
|
-
private readonly listWithdrawals?;
|
|
926
|
-
private readonly approveWithdraw?;
|
|
927
|
-
private readonly rejectWithdraw?;
|
|
928
|
-
constructor(deps: UserApiDeps);
|
|
929
|
-
/**
|
|
930
|
-
* File a two-party withdrawal request for the caller's accessible
|
|
931
|
-
* scope. Non-destructive (writes a pending request); an owner later approves
|
|
932
|
-
* or rejects. This is the path for read-only roles (`client`/`viewer`) that
|
|
933
|
-
* cannot self-serve a destructive `unilateralWithdrawal`. Gated by
|
|
934
|
-
* `user-request-withdrawal` (enabled by default).
|
|
935
|
-
*/
|
|
936
|
-
requestWithdrawal(opts?: RequestWithdrawalOptions): Promise<RequestWithdrawalResult>;
|
|
937
|
-
/** Owner side: list filed withdrawal requests (optionally by status). */
|
|
938
|
-
listWithdrawalRequests(opts?: {
|
|
939
|
-
status?: WithdrawalRequestStatus;
|
|
940
|
-
}): Promise<WithdrawalRequest[]>;
|
|
941
|
-
/**
|
|
942
|
-
* Owner side: approve a pending request. Extracts the requester's
|
|
943
|
-
* recorded scope under firm authority, disposes of the source per the
|
|
944
|
-
* request's disposition, and returns the re-keyed bundle to hand back. Gated
|
|
945
|
-
* by `approve-user-withdrawal` (tier-2 default) + owner/admin role.
|
|
946
|
-
*/
|
|
947
|
-
approveWithdrawal(requestId: string, opts?: ApproveWithdrawalOptions): Promise<WithdrawResult>;
|
|
948
|
-
/** Owner side: reject a pending request (no data is touched). */
|
|
949
|
-
rejectWithdrawal(requestId: string, opts?: RejectWithdrawalOptions): Promise<WithdrawalRequest>;
|
|
950
|
-
/**
|
|
951
|
-
* Single-party withdrawal: export the caller's accessible scope
|
|
952
|
-
* (re-keyed) and dispose of the source (`delete` or `freeze`). Gated by the
|
|
953
|
-
* fail-closed built-in `client-unilateral-withdraw` policy — undefined or
|
|
954
|
-
* disabled → throws (use `requestWithdrawal`). The firm enables it at vault
|
|
955
|
-
* creation.
|
|
956
|
-
*/
|
|
957
|
-
unilateralWithdrawal(opts: WithdrawAccessibleOptions): Promise<WithdrawResult>;
|
|
958
|
-
/**
|
|
959
|
-
* Export the calling user's accessible scope as a portable, re-keyed
|
|
960
|
-
* `.noydb` bundle. Non-destructive and **always allowed** (data sovereignty
|
|
961
|
-
* by construction) but audited. Scope = the caller's DEK access set.
|
|
962
|
-
*/
|
|
963
|
-
exportMyAccessibleData(opts?: ExportAccessibleOptions): Promise<Uint8Array>;
|
|
964
|
-
/** Read the writer's own envelope. Returns null if never written. */
|
|
965
|
-
me<T = unknown>(): Promise<UserEnvelope<T> | null>;
|
|
966
|
-
/**
|
|
967
|
-
* Deep-merge a partial patch into the writer's own envelope. Creates
|
|
968
|
-
* the envelope on first call. Optimistic-concurrency safe — a stale
|
|
969
|
-
* `_v` (parallel writer on another device) throws `ConflictError`.
|
|
970
|
-
*
|
|
971
|
-
* Patch semantics:
|
|
972
|
-
* - `undefined` (or omitted key) — skip; existing value preserved
|
|
973
|
-
* - `null` — delete the field from the merged result
|
|
974
|
-
* - any other value — overwrite (deep-merge for plain objects,
|
|
975
|
-
* replace for primitives / arrays)
|
|
976
|
-
*
|
|
977
|
-
* To clear a field, pass `null` rather than `undefined`. Callers
|
|
978
|
-
* with shape `T = string | null` where `null` is a meaningful value
|
|
979
|
-
* should use `setMe` for that specific field instead — `null` here
|
|
980
|
-
* always means delete.
|
|
981
|
-
*
|
|
982
|
-
* Gated by the `edit-own-profile` policy gate (default `minTier: 3`).
|
|
983
|
-
* Pass `presented` to satisfy tightened policies that require a
|
|
984
|
-
* factor proof (e.g. STRICT_POLICY's TOTP requirement).
|
|
985
|
-
*/
|
|
986
|
-
updateMe<T extends object = Record<string, unknown>>(patch: DeepPartialOrNull<T>, presented?: UserEnvelopePresented): Promise<UserEnvelope<T>>;
|
|
987
|
-
/**
|
|
988
|
-
* Replace the writer's own envelope with `payload`. Use sparingly —
|
|
989
|
-
* `updateMe` is the canonical mutation. No `expectedVersion` check;
|
|
990
|
-
* callers explicitly take last-write-wins semantics.
|
|
991
|
-
*
|
|
992
|
-
* Gated by `edit-own-profile`. See `updateMe` for `presented` usage.
|
|
993
|
-
*/
|
|
994
|
-
setMe<T = unknown>(payload: T, presented?: UserEnvelopePresented): Promise<UserEnvelope<T>>;
|
|
995
|
-
/**
|
|
996
|
-
* Read the current user's visibility flag from
|
|
997
|
-
* `_meta/visibility/<keyringId>`. Returns `{ hidden: false }` when no
|
|
998
|
-
* document has been persisted (the default-visible case).
|
|
999
|
-
*/
|
|
1000
|
-
getMyVisibility(): Promise<UserVisibility>;
|
|
1001
|
-
/**
|
|
1002
|
-
* Update the current user's visibility in the team directory.
|
|
1003
|
-
*
|
|
1004
|
-
* - `hidden: true` — opt out of the default `listUsersWithEnvelopes`
|
|
1005
|
-
* listing. `owner`/`admin` callers can still see the user by passing
|
|
1006
|
-
* `{ includeHidden: true }`.
|
|
1007
|
-
* - `hidden: false` — opt back in.
|
|
1008
|
-
*
|
|
1009
|
-
* Own-only by construction: the keyringId argument doesn't exist on
|
|
1010
|
-
* this method, so no caller can hide or unhide another principal.
|
|
1011
|
-
*
|
|
1012
|
-
* Honest caveat: this is a UX flag, not a privacy guarantee. The
|
|
1013
|
-
* envelope ciphertext at `_users/<keyringId>` and the keyring file at
|
|
1014
|
-
* `_keyring/<userId>` are both still observable to anyone with direct
|
|
1015
|
-
* store read access. See `https://github.com/vLannaAi/noy-db-docs/blob/main/content/docs/services/user-envelope.md` →
|
|
1016
|
-
* "Directory visibility".
|
|
1017
|
-
*/
|
|
1018
|
-
setMyVisibility(visibility: UserVisibility): Promise<void>;
|
|
1019
|
-
/**
|
|
1020
|
-
* Read another principal's envelope by their keyringId. Returns null
|
|
1021
|
-
* if the principal exists but has no envelope yet, or if the
|
|
1022
|
-
* keyringId does not exist at all.
|
|
1023
|
-
*
|
|
1024
|
-
* Gated by `view-team-profiles` (default `minTier: 2`) — but ONLY for
|
|
1025
|
-
* cross-principal reads. Reading your own envelope (`keyringId ===
|
|
1026
|
-
* self`) is never gated; that's just `me()` written long-form.
|
|
1027
|
-
*/
|
|
1028
|
-
get<T = unknown>(keyringId: string, presented?: UserEnvelopePresented): Promise<UserEnvelope<T> | null>;
|
|
1029
|
-
/**
|
|
1030
|
-
* Read every persisted envelope in the vault. Order is store-defined.
|
|
1031
|
-
*
|
|
1032
|
-
* Gated by `view-team-profiles`. Default policy (`minTier: 2`) lets
|
|
1033
|
-
* any authenticated session read all envelopes. Two privacy-strict
|
|
1034
|
-
* opt-outs:
|
|
1035
|
-
*
|
|
1036
|
-
* - `view-team-profiles.enabled: false` → list() returns only the
|
|
1037
|
-
* caller's own envelope (silent self-fallback, no thrown error).
|
|
1038
|
-
* - `view-team-profiles.minTier: 1` + insufficient tier → throws
|
|
1039
|
-
* `PolicyDeniedError` with `reason: 'insufficient-tier'`. The
|
|
1040
|
-
* caller is expected to elevate, not silently degrade.
|
|
1041
|
-
*
|
|
1042
|
-
* The asymmetry is deliberate: `enabled: false` is a deliberate
|
|
1043
|
-
* design choice ("nobody sees teammate profiles in this app");
|
|
1044
|
-
* `insufficient-tier` is "you need to authenticate further". Different
|
|
1045
|
-
* UX prompts for different intents.
|
|
1046
|
-
*/
|
|
1047
|
-
list<T = unknown>(presented?: UserEnvelopePresented): Promise<UserEnvelope<T>[]>;
|
|
1048
|
-
/**
|
|
1049
|
-
* Listen for changes to a specific keyringId's envelope. The callback
|
|
1050
|
-
* fires synchronously after every successful local `updateMe` /
|
|
1051
|
-
* `setMe` for that principal.
|
|
1052
|
-
*
|
|
1053
|
-
* Cross-instance changes (a teammate edits their profile on their
|
|
1054
|
-
* device, the sync engine pulls the diff onto this device) will fire
|
|
1055
|
-
* subscribers when the sync layer replays the write through this API.
|
|
1056
|
-
* In v1, subscribers do NOT fire on raw store changes — wire your sync
|
|
1057
|
-
* layer to call back through `vault.user.setMe` / `updateMe` if you
|
|
1058
|
-
* need that.
|
|
1059
|
-
*
|
|
1060
|
-
* Pass keyringId `'*'` to fire on every change in the vault.
|
|
1061
|
-
*/
|
|
1062
|
-
subscribe<T = unknown>(keyringId: string, cb: (env: UserEnvelope<T> | null) => void): Unsubscribe;
|
|
1063
|
-
/**
|
|
1064
|
-
* Reactive handle that caches the current value and re-reads on every
|
|
1065
|
-
* change for the given keyringId. Convenient for framework bindings:
|
|
1066
|
-
*
|
|
1067
|
-
* const live = vault.user.live<UserShape>(vault.userId)
|
|
1068
|
-
* live.subscribe(env => render(env?.data))
|
|
1069
|
-
*
|
|
1070
|
-
* Initial value is `null` until the first `current()` call materializes
|
|
1071
|
-
* it via `vault.user.get()`. Call `stop()` when done to release the
|
|
1072
|
-
* subscription.
|
|
1073
|
-
*/
|
|
1074
|
-
live<T = unknown>(keyringId: string): LiveUserEnvelope<T>;
|
|
1075
|
-
private fireChange;
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
|
-
/**
|
|
1079
|
-
* Authentication introspection.
|
|
1080
|
-
*
|
|
1081
|
-
* Three surfaces over the configured tier model and the actual
|
|
1082
|
-
* per-user enrollment state:
|
|
1083
|
-
*
|
|
1084
|
-
* 1. **Vault-wide English summary** — {@link describeAuthConfig}.
|
|
1085
|
-
* 2. **Vault-wide Mermaid diagram** — {@link diagramAuthConfig}.
|
|
1086
|
-
* 3. **Per-user introspection** — {@link describeUserAuth}, gated by
|
|
1087
|
-
* the `view-user-auth` policy gate (off by default).
|
|
1088
|
-
*
|
|
1089
|
-
* The per-user surface is held to a strict allowlist — fields not on
|
|
1090
|
-
* the allowlist are dropped, never rendered. The negative test in
|
|
1091
|
-
* `auth-introspection.test.ts` exercises the allowlist by feeding a
|
|
1092
|
-
* contrived keyring with fake "secret" fields and asserting that none
|
|
1093
|
-
* of them appear in the output.
|
|
1094
|
-
*
|
|
1095
|
-
* @module
|
|
1096
|
-
*/
|
|
1097
|
-
|
|
1098
|
-
/** Vault-wide English summary of the configured authentication graph. */
|
|
1099
|
-
declare function describeAuthConfig(store: NoydbStore, vault: string): Promise<string>;
|
|
1100
|
-
/**
|
|
1101
|
-
* Render the vault's auth graph as Mermaid `flowchart TB` source. The
|
|
1102
|
-
* caller pipes this through Mermaid (CLI or browser) to get an SVG.
|
|
1103
|
-
*/
|
|
1104
|
-
declare function diagramAuthConfig(store: NoydbStore, vault: string): Promise<string>;
|
|
1105
|
-
/**
|
|
1106
|
-
* Render the per-user enrollment summary. Returns an empty
|
|
1107
|
-
* (non-throwing) string when the user has no keyring file — never
|
|
1108
|
-
* confirms or denies the existence of the user from the document
|
|
1109
|
-
* alone.
|
|
1110
|
-
*
|
|
1111
|
-
* Sanitization is strict: only the slot list, enrollment dates, and
|
|
1112
|
-
* recovery-profile counts are rendered. WebAuthn cred ids, OIDC
|
|
1113
|
-
* subject ids, password hashes, recovery codes, TOTP secrets — all
|
|
1114
|
-
* dropped at the allowlist boundary, not redacted.
|
|
1115
|
-
*/
|
|
1116
|
-
declare function describeUserAuth(store: NoydbStore, vault: string, userId: string): Promise<string>;
|
|
1117
|
-
/** Bulk variant for owner dashboards. */
|
|
1118
|
-
declare function describeAllUsersAuth(store: NoydbStore, vault: string): Promise<Array<{
|
|
1119
|
-
userId: string;
|
|
1120
|
-
description: string;
|
|
1121
|
-
}>>;
|
|
1122
|
-
|
|
1123
|
-
/**
|
|
1124
|
-
* Persistence helpers for the vault-level user-directory toggle
|
|
1125
|
-
* (`_meta/directory`). Mirrors the bypass-AES pattern used by
|
|
1126
|
-
* `_meta/policy` — the directory document is plain JSON, the
|
|
1127
|
-
* envelope's `_iv` field is left empty.
|
|
1128
|
-
*
|
|
1129
|
-
* @see https://github.com/vLannaAi/noy-db-docs/blob/main/content/docs/services/user-envelope.md → Directory visibility
|
|
1130
|
-
* @see https://github.com/vLannaAi/noy-db-docs/blob/main/content/docs/services/plaintext-bypass.md — every `_iv: ''` write site
|
|
1131
|
-
*
|
|
1132
|
-
* @module
|
|
1133
|
-
*/
|
|
1134
|
-
|
|
1135
|
-
/** Reserved id for the vault-level directory document. */
|
|
1136
|
-
declare const DIRECTORY_RECORD_ID = "directory";
|
|
1137
|
-
/**
|
|
1138
|
-
* Read the directory toggle from `_meta/directory`. Returns `undefined`
|
|
1139
|
-
* when no document has been persisted — callers treat that as the
|
|
1140
|
-
* default-on case (`{ enabled: true }`).
|
|
1141
|
-
*
|
|
1142
|
-
* Tolerates corrupted documents the same way `_meta/policy` does: a
|
|
1143
|
-
* JSON parse failure surfaces as `undefined`, not a thrown error, so a
|
|
1144
|
-
* bad write never permanently breaks team enumeration.
|
|
1145
|
-
*/
|
|
1146
|
-
declare function readDirectoryConfig(store: NoydbStore, vault: string): Promise<DirectoryConfig | undefined>;
|
|
1147
|
-
/**
|
|
1148
|
-
* Persist the directory toggle at `_meta/directory`. Idempotent — call
|
|
1149
|
-
* on every `db.setDirectoryEnabled()` invocation. Owner-only at the
|
|
1150
|
-
* caller site; this primitive does not check roles.
|
|
1151
|
-
*/
|
|
1152
|
-
declare function persistDirectoryConfig(store: NoydbStore, vault: string, config: DirectoryConfig): Promise<void>;
|
|
1153
|
-
|
|
1154
|
-
/**
|
|
1155
|
-
* Persistence helpers for the per-user visibility flag
|
|
1156
|
-
* (`_meta/visibility/<keyringId>`). Mirrors the bypass-AES pattern used
|
|
1157
|
-
* by `_meta/policy` — the visibility document is plain JSON, the
|
|
1158
|
-
* envelope's `_iv` field is left empty.
|
|
1159
|
-
*
|
|
1160
|
-
* Stored alongside the keyring file rather than inside the encrypted
|
|
1161
|
-
* user envelope (`_users/<keyringId>`) because:
|
|
1162
|
-
*
|
|
1163
|
-
* - `UserEnvelope<T>.data` is opaque-to-hub by contract — hub does not
|
|
1164
|
-
* introspect or reserve any keys inside it. Adding `hidden` there
|
|
1165
|
-
* would violate that contract.
|
|
1166
|
-
* - `listUsersWithEnvelopes` filters by the flag, and the filter must
|
|
1167
|
-
* work even when decryption fails (legacy keyrings predating the
|
|
1168
|
-
* envelope feature, or a corrupted envelope).
|
|
1169
|
-
*
|
|
1170
|
-
* @see https://github.com/vLannaAi/noy-db-docs/blob/main/content/docs/services/user-envelope.md → Directory visibility
|
|
1171
|
-
* @see https://github.com/vLannaAi/noy-db-docs/blob/main/content/docs/services/plaintext-bypass.md — every `_iv: ''` write site
|
|
1172
|
-
*
|
|
1173
|
-
* @module
|
|
1174
|
-
*/
|
|
1175
|
-
|
|
1176
|
-
/** Prefix for per-user visibility records inside `_meta`. */
|
|
1177
|
-
declare const VISIBILITY_RECORD_PREFIX = "visibility/";
|
|
1178
|
-
/** Compose the `_meta` record id for a keyring's visibility doc. */
|
|
1179
|
-
declare function visibilityRecordId(keyringId: string): string;
|
|
1180
|
-
/**
|
|
1181
|
-
* Read the visibility flag for `keyringId`. Returns `undefined` when no
|
|
1182
|
-
* document has been persisted — callers treat that as the default-visible
|
|
1183
|
-
* case (`{ hidden: false }`).
|
|
1184
|
-
*/
|
|
1185
|
-
declare function readUserVisibility(store: NoydbStore, vault: string, keyringId: string): Promise<UserVisibility | undefined>;
|
|
1186
|
-
/**
|
|
1187
|
-
* Persist the visibility flag for `keyringId` at
|
|
1188
|
-
* `_meta/visibility/<keyringId>`. Idempotent — call on every
|
|
1189
|
-
* `vault.user.setMyVisibility()` invocation. Own-only at the caller
|
|
1190
|
-
* site; this primitive does not enforce keyring ownership.
|
|
1191
|
-
*/
|
|
1192
|
-
declare function persistUserVisibility(store: NoydbStore, vault: string, keyringId: string, visibility: UserVisibility): Promise<void>;
|
|
1193
|
-
/**
|
|
1194
|
-
* Delete the visibility flag for `keyringId`. Called from `revoke()`
|
|
1195
|
-
* alongside `deleteUserEnvelope` so the sidecar does not leak to a
|
|
1196
|
-
* re-granted principal with the same `userId`. Idempotent — the store's
|
|
1197
|
-
* `delete()` is already a no-op when the record is absent.
|
|
1198
|
-
*/
|
|
1199
|
-
declare function deleteUserVisibility(store: NoydbStore, vault: string, keyringId: string): Promise<void>;
|
|
1200
|
-
|
|
1201
|
-
/**
|
|
1202
|
-
* Return the ISO-4217 minor-unit scale for a currency code, or `null`
|
|
1203
|
-
* when the code is not in the known set (caller must supply an explicit
|
|
1204
|
-
* scale).
|
|
1205
|
-
*/
|
|
1206
|
-
declare function scaleForCurrency(code: string): number | null;
|
|
1207
|
-
|
|
1208
|
-
/**
|
|
1209
|
-
* Money-aware aggregation: exact `sum` / `min` / `max` over money
|
|
1210
|
-
* fields.
|
|
1211
|
-
*
|
|
1212
|
-
* The generic reducers (`aggregate/reducers.ts`) read a field via
|
|
1213
|
-
* `readNumber`, which coerces a string (the stored scaled-integer form
|
|
1214
|
-
* of money, e.g. `'12345'`) to `0` — so an un-wrapped money `sum` would
|
|
1215
|
-
* silently return zero. {@link wrapMoneyReducers} rewrites any `sum` /
|
|
1216
|
-
* `min` / `max` over a declared money field into a reducer that
|
|
1217
|
-
* accumulates per-currency `BigInt` totals of the stored integers, so
|
|
1218
|
-
* the result is exact for any magnitude (past `Number.MAX_SAFE_INTEGER`
|
|
1219
|
-
* included).
|
|
1220
|
-
*
|
|
1221
|
-
* Results are currency-aware and never silently mix currencies:
|
|
1222
|
-
* - **fixed** mode → a single exact decimal string.
|
|
1223
|
-
* - **multi** mode → an exact `Record<currency, string>` map.
|
|
1224
|
-
* - **`sum` with `convertTo` + `fx`** → a single exact string, with
|
|
1225
|
-
* each currency converted via BigInt arithmetic (no float).
|
|
1226
|
-
*
|
|
1227
|
-
* `remove()` is implemented for every money reducer so they participate
|
|
1228
|
-
* in incremental live-aggregation and materialized-view maintenance
|
|
1229
|
-
* exactly like the generic reducers they replace.
|
|
1230
|
-
*/
|
|
1231
|
-
|
|
1232
|
-
type FxRates = Record<string, number | string>;
|
|
1233
|
-
|
|
1234
|
-
/**
|
|
1235
|
-
* Exact money arithmetic helpers — `mulRate` and `allocate`.
|
|
1236
|
-
*
|
|
1237
|
-
* Both operate on the canonical decoded string form that `get()`
|
|
1238
|
-
* returns (`'10000.00'`), entirely in scaled-`BigInt` space — no
|
|
1239
|
-
* floating-point step anywhere, exact past 2^53. They are pure
|
|
1240
|
-
* functions with no vault or descriptor dependency: the working scale
|
|
1241
|
-
* is inferred from the amount's fractional digits (a canonical money
|
|
1242
|
-
* string always carries exactly the field's scale) or pinned with
|
|
1243
|
-
* `opts.scale`.
|
|
1244
|
-
*
|
|
1245
|
-
* Why these two: app-side invariants of the form
|
|
1246
|
-
* `Σ parts === whole` (receipt totals, net-zero WHT pairs, proration)
|
|
1247
|
-
* carry ±0.01 tolerances ONLY because the math is major-unit floats +
|
|
1248
|
-
* round2. `mulRate` (VAT-style rate application with explicit
|
|
1249
|
-
* rounding) and `allocate` (largest-remainder split — parts sum to the
|
|
1250
|
-
* input EXACTLY, by construction) make those tolerances zero.
|
|
1251
|
-
*/
|
|
1252
|
-
|
|
1253
|
-
interface MulRateOptions {
|
|
1254
|
-
/**
|
|
1255
|
-
* Output scale (fraction digits). Defaults to the amount's own
|
|
1256
|
-
* fractional digits — for a canonical money string that IS the
|
|
1257
|
-
* field's scale.
|
|
1258
|
-
*/
|
|
1259
|
-
readonly scale?: number;
|
|
1260
|
-
/** Rounding for the final re-scale. Default `'half-up'`. */
|
|
1261
|
-
readonly rounding?: RoundingMode;
|
|
1262
|
-
}
|
|
1263
|
-
interface AllocateOptions {
|
|
1264
|
-
/** Working scale. Defaults to the amount's own fractional digits. */
|
|
1265
|
-
readonly scale?: number;
|
|
1266
|
-
}
|
|
1267
|
-
/**
|
|
1268
|
-
* Multiply a money amount by a decimal rate, exactly.
|
|
1269
|
-
*
|
|
1270
|
-
* The rate is parsed at its OWN full precision (`0.07` → `7` at scale
|
|
1271
|
-
* 2), the product computed in `BigInt` at `amountScale + rateScale`,
|
|
1272
|
-
* then re-scaled back to the output scale with the requested rounding —
|
|
1273
|
-
* one rounding step, at the very end.
|
|
1274
|
-
*
|
|
1275
|
-
* ```ts
|
|
1276
|
-
* mulRate('10000.00', 0.07) // '700.00' (VAT)
|
|
1277
|
-
* mulRate('33.33', '0.07') // '2.33' (half-up)
|
|
1278
|
-
* mulRate('33.33', 0.07, { rounding: 'floor' }) // '2.33'
|
|
1279
|
-
* mulRate(100, 0.07, { scale: 2 }) // '7.00'
|
|
1280
|
-
* ```
|
|
1281
|
-
*/
|
|
1282
|
-
declare function mulRate(amount: number | string, rate: number | string, opts?: MulRateOptions): string;
|
|
1283
|
-
/**
|
|
1284
|
-
* Split a money amount across weighted buckets with ZERO drift: the
|
|
1285
|
-
* returned parts sum to the input exactly, by construction
|
|
1286
|
-
* (largest-remainder method).
|
|
1287
|
-
*
|
|
1288
|
-
* Each bucket gets `floor(amount × weightᵢ / Σweights)`; the leftover
|
|
1289
|
-
* minor units (always fewer than the bucket count) go one each to the
|
|
1290
|
-
* buckets with the largest truncated remainders — ties broken by
|
|
1291
|
-
* position, earlier bucket first. Weights are parsed as exact decimals
|
|
1292
|
-
* (no float division anywhere); they must be non-negative with a
|
|
1293
|
-
* positive sum.
|
|
1294
|
-
*
|
|
1295
|
-
* ```ts
|
|
1296
|
-
* allocate('100.00', [1, 1, 1]) // ['33.34', '33.33', '33.33']
|
|
1297
|
-
* allocate('0.05', [3, 7]) // ['0.02', '0.03']
|
|
1298
|
-
* allocate('-100.00', [1, 1, 1]) // ['-33.34', '-33.33', '-33.33']
|
|
1299
|
-
* ```
|
|
1300
|
-
*/
|
|
1301
|
-
declare function allocate(amount: number | string, weights: ReadonlyArray<number | string>, opts?: AllocateOptions): string[];
|
|
1302
|
-
|
|
1303
|
-
/**
|
|
1304
|
-
* Hierarchical access — tier-aware keyring helpers.
|
|
1305
|
-
*
|
|
1306
|
-
* The keyring's existing `deks: Map<string, CryptoKey>` is keyed by
|
|
1307
|
-
* collection name. extends the key space:
|
|
1308
|
-
*
|
|
1309
|
-
* `'invoices'` — tier-0 DEK (unchanged from v0.x)
|
|
1310
|
-
* `'invoices#1'` — tier-1 DEK
|
|
1311
|
-
* `'invoices#2'` — tier-2 DEK
|
|
1312
|
-
*
|
|
1313
|
-
* Tier 0 keeps the bare collection name so any keyring written
|
|
1314
|
-
* before tiers existed loads without migration. Tiers ≥ 1 use `#N`
|
|
1315
|
-
* suffixes that
|
|
1316
|
-
* would be invalid as user-supplied collection names (see
|
|
1317
|
-
* `ReservedCollectionNameError` — `#` is reserved).
|
|
1318
|
-
*
|
|
1319
|
-
* @module
|
|
1320
|
-
*/
|
|
1321
|
-
|
|
1322
|
-
/** Canonical DEK key for a given collection + tier. Tier 0 → bare name. */
|
|
1323
|
-
declare function dekKey(collection: string, tier: number): string;
|
|
1324
|
-
/**
|
|
1325
|
-
* Returns the user's effective clearance for a given collection: the
|
|
1326
|
-
* maximum tier for which their keyring holds a DEK. Falls back to 0
|
|
1327
|
-
* when the user has only the tier-0 DEK (or none — the getDEK caller
|
|
1328
|
-
* will raise separately).
|
|
1329
|
-
*/
|
|
1330
|
-
declare function effectiveClearance(keyring: UnlockedKeyring, collection: string): number;
|
|
1331
|
-
/**
|
|
1332
|
-
* Assert the caller is cleared for the requested tier. Owners and
|
|
1333
|
-
* admins always pass (they can mint any new tier DEK on demand);
|
|
1334
|
-
* other roles must already hold the tier DEK — via a prior grant or
|
|
1335
|
-
* an active delegation — otherwise this throws `TierNotGrantedError`.
|
|
1336
|
-
*
|
|
1337
|
-
* This gate runs BEFORE `getDEK()` on the mutation path so a
|
|
1338
|
-
* non-cleared operator never has the opportunity to silently
|
|
1339
|
-
* auto-create a tier DEK they shouldn't have.
|
|
1340
|
-
*/
|
|
1341
|
-
declare function assertTierAccess(keyring: UnlockedKeyring, collection: string, tier: number): void;
|
|
1342
|
-
|
|
1343
|
-
/**
|
|
1344
|
-
* Default policy for personal vaults and SMB deployments — the gates
|
|
1345
|
-
* that need an off-device factor get one (TOTP / email-OTP / paper
|
|
1346
|
-
* recovery), the rest take a tier-1 unlock alone. Tier-3 (PIN) is the
|
|
1347
|
-
* floor only for `rotate-unlock` because that's the
|
|
1348
|
-
* "change my PIN" flow.
|
|
1349
|
-
*
|
|
1350
|
-
* The unspecified gates (e.g. `view-user-auth`) inherit the engine
|
|
1351
|
-
* default of `{ enabled: false, minTier: 1 }` — they fail closed.
|
|
1352
|
-
*
|
|
1353
|
-
* @see https://github.com/vLannaAi/noy-db-docs/blob/main/content/docs/services/session-tiers.md → Built-in gates
|
|
1354
|
-
*/
|
|
1355
|
-
declare const PERSONAL_POLICY: VaultPolicy;
|
|
1356
|
-
/**
|
|
1357
|
-
* Strict policy for regulated deployments and shared workstations —
|
|
1358
|
-
* raises the phrase floor to 8 words, demands two distinct factors for
|
|
1359
|
-
* exports, and blocks export-on-shared-device. Use as a base for
|
|
1360
|
-
* `policy: { ...STRICT_POLICY, gates: { ...STRICT_POLICY.gates, ... } }`
|
|
1361
|
-
* tweaks.
|
|
1362
|
-
*/
|
|
1363
|
-
declare const STRICT_POLICY: VaultPolicy;
|
|
1364
|
-
/**
|
|
1365
|
-
* Merge a developer override onto a preset. Unspecified gates inherit;
|
|
1366
|
-
* specified gates fully replace the preset's entry for that gate.
|
|
1367
|
-
*
|
|
1368
|
-
* Example:
|
|
1369
|
-
*
|
|
1370
|
-
* ```ts
|
|
1371
|
-
* mergePolicy(PERSONAL_POLICY, {
|
|
1372
|
-
* gates: {
|
|
1373
|
-
* 'app:approve-large-payment': { minTier: 2, factors: [{ anyOf: ['totp'] }] },
|
|
1374
|
-
* },
|
|
1375
|
-
* })
|
|
1376
|
-
* // → PERSONAL_POLICY plus the new app gate; existing gates intact.
|
|
1377
|
-
* ```
|
|
1378
|
-
*/
|
|
1379
|
-
declare function mergePolicy(base: VaultPolicy, override?: Partial<VaultPolicy>): VaultPolicy;
|
|
1380
|
-
|
|
1381
|
-
/**
|
|
1382
|
-
* Policy gate engine — the {@link checkGate} entry point.
|
|
1383
|
-
*
|
|
1384
|
-
* Given a configured {@link VaultPolicy}, an active session tier, and
|
|
1385
|
-
* the factor proofs an actor is presenting, decide whether the gate
|
|
1386
|
-
* permits the action. On denial, throws {@link PolicyDeniedError} with
|
|
1387
|
-
* a stable {@link PolicyDenyReason} so consumers can branch in error
|
|
1388
|
-
* UIs.
|
|
1389
|
-
*
|
|
1390
|
-
* @see https://github.com/vLannaAi/noy-db-docs/blob/main/content/docs/services/session-tiers.md → checkGate() API
|
|
1391
|
-
*
|
|
1392
|
-
* @module
|
|
1393
|
-
*/
|
|
1394
|
-
|
|
1395
|
-
/** Default freshness window — 5 minutes. */
|
|
1396
|
-
declare const DEFAULT_FRESHNESS_MS: number;
|
|
1397
|
-
/** Caller-supplied context for one `checkGate` invocation. */
|
|
1398
|
-
interface CheckGateContext {
|
|
1399
|
-
/** Tier the active session currently holds. */
|
|
1400
|
-
readonly activeTier: ActiveTier;
|
|
1401
|
-
/** Proofs the actor is presenting for this gate. */
|
|
1402
|
-
readonly factors?: ReadonlyArray<FactorProof>;
|
|
1403
|
-
/**
|
|
1404
|
-
* If the host knows the actor is on a shared device, set this to
|
|
1405
|
-
* `true` so the engine can apply `warn.sharedDevice` rules. Defaults
|
|
1406
|
-
* to `false`.
|
|
1407
|
-
*/
|
|
1408
|
-
readonly sharedDevice?: boolean;
|
|
1409
|
-
/**
|
|
1410
|
-
* Override `now()` for tests. Defaults to `Date.now()`.
|
|
1411
|
-
* @internal
|
|
1412
|
-
*/
|
|
1413
|
-
readonly now?: number;
|
|
1414
|
-
}
|
|
1415
|
-
/**
|
|
1416
|
-
* Decide whether `gate` permits the action under `context`. Throws
|
|
1417
|
-
* {@link PolicyDeniedError} on denial; resolves with `void` on success.
|
|
1418
|
-
*
|
|
1419
|
-
* Lookup rules:
|
|
1420
|
-
* - **Built-in gates** without a configured policy fail closed
|
|
1421
|
-
* (`enabled: false`).
|
|
1422
|
-
* - **App-defined gates** (`app:*`) without a configured policy are
|
|
1423
|
-
* treated as no-op (allow). The developer registered the policy if
|
|
1424
|
-
* they wanted enforcement; absence means the gate is informational.
|
|
1425
|
-
*/
|
|
1426
|
-
declare function checkGate(policy: VaultPolicy, gate: GateName, context: CheckGateContext): Promise<void>;
|
|
1427
|
-
/**
|
|
1428
|
-
* Same as {@link checkGate} but returns a structured verdict instead
|
|
1429
|
-
* of throwing. Useful when an error UI wants to show the user
|
|
1430
|
-
* "you'll need TOTP plus a recovery code to do that" without first
|
|
1431
|
-
* triggering the action.
|
|
1432
|
-
*/
|
|
1433
|
-
declare function describeGate(policy: VaultPolicy, gate: GateName, context: CheckGateContext): Promise<{
|
|
1434
|
-
ok: true;
|
|
1435
|
-
} | {
|
|
1436
|
-
ok: false;
|
|
1437
|
-
reason: PolicyDenyReason;
|
|
1438
|
-
required: GatePolicy;
|
|
1439
|
-
}>;
|
|
1440
|
-
|
|
1441
|
-
/**
|
|
1442
|
-
* Persistence helpers for the vault-level policy document
|
|
1443
|
-
* (`_meta/policy`). Mirrors the bypass-AES pattern used by
|
|
1444
|
-
* `_meta/handle` — the policy document is plain JSON, the envelope's
|
|
1445
|
-
* `_iv` field is left empty.
|
|
1446
|
-
*
|
|
1447
|
-
* @see https://github.com/vLannaAi/noy-db-docs/blob/main/content/docs/services/session-tiers.md → Storage location
|
|
1448
|
-
*
|
|
1449
|
-
* @module
|
|
1450
|
-
*/
|
|
1451
|
-
|
|
1452
|
-
/** Reserved collection name for vault-level metadata documents. */
|
|
1453
|
-
declare const META_COLLECTION = "_meta";
|
|
1454
|
-
/** Reserved id for the vault-level policy document. */
|
|
1455
|
-
declare const POLICY_RECORD_ID = "policy";
|
|
1456
|
-
/**
|
|
1457
|
-
* Read the vault-level policy from `_meta/policy`. Returns `undefined`
|
|
1458
|
-
* when no policy has been persisted (fresh vault, or a vault written
|
|
1459
|
-
* before the policy module landed). The caller falls back to the
|
|
1460
|
-
* default preset.
|
|
1461
|
-
*
|
|
1462
|
-
* Tolerates corrupted documents the same way `_meta/handle` does: a
|
|
1463
|
-
* JSON parse failure surfaces as `undefined`, not a thrown error, so
|
|
1464
|
-
* a bad write never permanently locks a vault.
|
|
1465
|
-
*/
|
|
1466
|
-
declare function loadVaultPolicy(store: NoydbStore, vault: string): Promise<VaultPolicy | undefined>;
|
|
1467
|
-
/**
|
|
1468
|
-
* Persist the vault-level policy at `_meta/policy`. Idempotent — call
|
|
1469
|
-
* once at vault creation and again on `db.updatePolicy()` invocations.
|
|
1470
|
-
*/
|
|
1471
|
-
declare function saveVaultPolicy(store: NoydbStore, vault: string, policy: VaultPolicy): Promise<void>;
|
|
1472
|
-
|
|
1473
|
-
export { ActiveTier, type AgeRoute, type AllocateOptions, ApproveWithdrawalOptions, type BlobLifecyclePolicy, type BlobStoreRoute, type CheckGateContext, type CircuitBreakerOptions, CollectionDescription, CustodyStrategy, DEFAULT_FRESHNESS_MS, DIRECTORY_RECORD_ID, DeepPartialOrNull, type DirectoryConfig, EncryptedEnvelope, ExportAccessibleOptions, FactorProof, type FxRates, GateName, GatePolicy, type HealthCheckOptions, LinkEndpointError, type ListProjectionOptions, LiveUserEnvelope, type LogLevel, type LoggingOptions, META_COLLECTION, type MetricsOptions, type MulRateOptions, NoydbError, NoydbStore, type OverrideOptions, type OverrideTarget, PERSONAL_POLICY, POLICY_RECORD_ID, PUBLIC_ENVELOPE_RECORD_ID, type PersistSchemaResult, PersistedSchemaEnvelope, PolicyDenyReason, PublicEnvelope, RejectWithdrawalOptions, RequestWithdrawalOptions, RequestWithdrawalResult, type RetryOptions, RoundingMode, type RouteStatus, type RouteStoreOptions, type RoutedNoydbStore, SCHEMAS_COLLECTION, STRICT_POLICY, SchemaUpdateStrategy, SearchStrategy, SequenceStrategy, type StoreCacheOptions, type StoreMiddleware, type StoreOperation, type SuspendOptions, type Tokenizer, UnlockedKeyring, Unsubscribe, UpdateDecision, UserApi, UserEnvelope, UserEnvelopePresented, type UserVisibility, VISIBILITY_RECORD_PREFIX, VaultPolicy, WithdrawAccessibleOptions, WithdrawResult, WithdrawalRequest, WithdrawalRequestStatus, additiveOnly, allocate, applyListProjection, assertTierAccess, blindUpdate, checkGate, coordinatedCutover, dekKey, deleteUserEnvelope, deleteUserVisibility, derivePersistedSchema, describeAllUsersAuth, describeAuthConfig, describeGate, describeUserAuth, diagramAuthConfig, effectiveClearance, estimateRecordBytes, isZodSchema, listUserEnvelopeIds, loadPersistedSchema, loadPublicEnvelope, loadUserEnvelope, loadVaultPolicy, lockSchema, memoryStore, mergePolicy, mulRate, parseBytes, persistDirectoryConfig, persistSchemaIfNeeded, persistUserVisibility, readDirectoryConfig, readPlaintextRecord, readPublicEnvelope, readUserVisibility, routeStore, savePersistedSchema, savePublicEnvelope, saveUserEnvelope, saveVaultPolicy, scaleForCurrency, tokenize, visibilityRecordId, withCache, withCircuitBreaker, withCustody, withHealthCheck, withLogging, withMetrics, withRetry, withSearch, withSequence, wrapStore };
|
|
35
|
+
* ## Key concepts
|
|
36
|
+
*
|
|
37
|
+
* | Concept | Type | Description |
|
|
38
|
+
* |---------|------|-------------|
|
|
39
|
+
* | Instance | {@link Noydb} | Top-level handle from {@link createNoydb} |
|
|
40
|
+
* | Vault | {@link Vault} | Tenant namespace; has its own keyrings |
|
|
41
|
+
* | Collection | {@link Collection} | Typed record set; has its own DEK |
|
|
42
|
+
* | Store | {@link NoydbStore} | 6-method backend interface |
|
|
43
|
+
* | Envelope | {@link EncryptedEnvelope} | What the store actually persists |
|
|
44
|
+
*
|
|
45
|
+
* ## Security invariants
|
|
46
|
+
*
|
|
47
|
+
* - **Zero crypto dependencies.** All cryptography uses `crypto.subtle` (Web
|
|
48
|
+
* Crypto API). No npm crypto packages.
|
|
49
|
+
* - **KEK never persisted.** The key-encryption key lives only in memory for
|
|
50
|
+
* the duration of an open session.
|
|
51
|
+
* - **Fresh IV per write.** Every `put()` generates a new random 12-byte IV.
|
|
52
|
+
* - **Stores see only ciphertext.** Encryption happens in core before any
|
|
53
|
+
* store method is called.
|
|
54
|
+
*
|
|
55
|
+
* ## Related packages
|
|
56
|
+
*
|
|
57
|
+
* | Package | Purpose |
|
|
58
|
+
* |---------|---------|
|
|
59
|
+
* | `@noy-db/to-file` | JSON file store (USB / local disk) |
|
|
60
|
+
* | `@noy-db/to-browser-idb` | IndexedDB store (atomic CAS) |
|
|
61
|
+
* | `@noy-db/to-memory` | In-memory store (testing) |
|
|
62
|
+
* | `@noy-db/to-aws-dynamo` | DynamoDB single-table store *(noy-db-to)* |
|
|
63
|
+
* | `@noy-db/to-aws-s3` | S3 object store *(noy-db-to)* |
|
|
64
|
+
* | `@noy-db/to-postgres` | PostgreSQL store *(noy-db-to)* |
|
|
65
|
+
* | `@noy-db/in-vue` | Vue 3 composables |
|
|
66
|
+
* | `@noy-db/in-pinia` | Pinia store integration |
|
|
67
|
+
* | `@noy-db/in-nuxt` | Nuxt 4 module |
|
|
68
|
+
* | `@noy-db/on-webauthn` | Hardware-key / passkey unlock |
|
|
69
|
+
* | `@noy-db/on-oidc` | OIDC / federated login unlock |
|
|
70
|
+
*
|
|
71
|
+
* @packageDocumentation
|
|
72
|
+
*/
|
|
73
|
+
import './kernel/env-check.js';
|
|
74
|
+
export type { Role, Permission, Permissions, EncryptedEnvelope, KeyringAuthenticator, KeyringAuthenticatorWrappingKEK, KeyringAuthenticatorWrappingDEKs, VaultPolicyOnDisk, VaultSnapshot, NoydbStore, ListPageResult, KeyringFile, VaultBackup, DirtyEntry, SyncMetadata, Conflict, ErasureEnforcement, ConflictStrategy, ConflictPolicy, CollectionConflictResolver, PushOptions, PullOptions, PushResult, PullResult, SyncTransactionResult, SyncStatus, ChangeEvent, NoydbEventMap, GrantOptions, RevokeOptions, UpdateUserOptions, UserInfo, NoydbOptions, HistoryConfig, HistoryOptions, HistoryEntry, PruneOptions, PutManyItemOptions, PutManyOptions, PutManyResult, DeleteManyResult, ExportStreamOptions, ExportChunk, AccessibleVault, ListAccessibleVaultsOptions, QueryAcrossOptions, QueryAcrossResult, SessionPolicy, ReAuthOperation, PlaintextTranslatorContext, PlaintextTranslatorFn, TranslatorAuditEntry, ExportCapability, ExportFormat, ImportCapability, } from './kernel/types.js';
|
|
75
|
+
export { NOYDB_FORMAT_VERSION, NOYDB_KEYRING_VERSION, NOYDB_BACKUP_VERSION, NOYDB_SYNC_VERSION, createStore, } from './kernel/types.js';
|
|
76
|
+
export type { StoreAuthKind, StoreAuth, StoreCapabilities, StoreCredentials, StoreCredentialSource, } from './kernel/types.js';
|
|
77
|
+
export type { NoydbPodStore, NoydbBundleStore, BlobObject, SlotRecord, SlotInfo, VersionRecord, BlobPutOptions, BlobResponseOptions, } from './kernel/types.js';
|
|
78
|
+
export { BlobSet } from './with-shape/blobs/blob-set.js';
|
|
79
|
+
export { memoryObjectProjection } from './with-shape/blobs/object-projection.js';
|
|
80
|
+
export type { ObjectProjection, ObjectMeta, ObjectListEntry, PutObjectOptions, ObjectUrlOptions, PutUrlOptions, } from './with-shape/blobs/object-projection.js';
|
|
81
|
+
export { importExternalObjects } from './with-shape/blobs/import-external.js';
|
|
82
|
+
export type { ImportableCollection, ImportExternalOptions, ImportExternalResult, } from './with-shape/blobs/import-external.js';
|
|
83
|
+
export { BLOB_COLLECTION, BLOB_INDEX_COLLECTION, BLOB_CHUNKS_COLLECTION, BLOB_SLOTS_PREFIX, BLOB_VERSIONS_PREFIX, DEFAULT_CHUNK_SIZE, } from './with-shape/blobs/blob-set.js';
|
|
84
|
+
export { detectMimeType, detectMagic, isPreCompressed } from './with-shape/blobs/mime-magic.js';
|
|
85
|
+
export { BLOB_INTENT_COLLECTION, getIntent, createIntent, deleteIntent, sweepBlobIntents, } from './with-shape/blobs/blob-intent.js';
|
|
86
|
+
export type { BlobIntent, BlobIntentHold, BlobIntentResume } from './with-shape/blobs/blob-intent.js';
|
|
87
|
+
export { BlobIntentPendingError } from './kernel/errors.js';
|
|
88
|
+
export { wrapPodStore, createPodStore, wrapBundleStore, createBundleStore } from './with-pod/pod-store.js';
|
|
89
|
+
export type { WrappedPodNoydbStore, WrapPodStoreOptions, WrappedBundleNoydbStore, WrapBundleStoreOptions, } from './with-pod/pod-store.js';
|
|
90
|
+
export { readPlaintextRecord } from './kernel/debug.js';
|
|
91
|
+
export type { WriteQueue } from './kernel/write-queue.js';
|
|
92
|
+
export type { WriteEvent, WriteHook } from './port/with/write-hooks.js';
|
|
93
|
+
export type { SchemaIntrospection } from './with-shape/introspection/types.js';
|
|
94
|
+
export type { FieldMeta, SemanticType } from './with-shape/introspection/field-meta.js';
|
|
95
|
+
export type { CollectionMeta, VaultMeta } from './with-shape/introspection/meta.js';
|
|
96
|
+
export type { CollectionDescription, DescribedField, DescribeOptions } from './with-shape/introspection/describe.js';
|
|
97
|
+
export { applyListProjection, type ListProjectionOptions } from './with-shape/introspection/projection.js';
|
|
98
|
+
export type { DryRunResult, AffectedDocument, GuardViolation } from './with-commit/tx/dry-run.js';
|
|
99
|
+
export type { TabRole, TabPresence, TabCoordinationOptions, TabLockManager, TabChannel } from './with-party/tab-coordination.js';
|
|
100
|
+
export type { WriteConflict } from './kernel/types.js';
|
|
101
|
+
export type { SchemaDelta, FieldChange, UpdateContext, UpdateDecision, SchemaUpdateStrategy, } from './with-shape/schema-update/index.js';
|
|
102
|
+
export { blindUpdate, additiveOnly, lockSchema, coordinatedCutover } from './with-shape/schema-update/index.js';
|
|
103
|
+
export type { FenceState, FenceDoc } from './with-shape/schema-update/fence.js';
|
|
104
|
+
export type { SyncPolicy, PushPolicy, PullPolicy, PushMode, PullMode, SyncSchedulerStatus } from './kernel/sync-policy.js';
|
|
105
|
+
export { SyncScheduler, INDEXED_STORE_POLICY, POD_STORE_POLICY, BUNDLE_STORE_POLICY } from './kernel/sync-policy.js';
|
|
106
|
+
export type { SyncTarget, SyncTargetRole } from './kernel/types.js';
|
|
107
|
+
export { memoryStore } from './kernel/memory-store.js';
|
|
108
|
+
export { routeStore } from './with-store/route-store.js';
|
|
109
|
+
export type { RouteStoreOptions, RoutedNoydbStore, BlobStoreRoute, AgeRoute, BlobLifecyclePolicy, OverrideTarget, OverrideOptions, SuspendOptions, RouteStatus, } from './with-store/route-store.js';
|
|
110
|
+
export { wrapStore, withRetry, withLogging, withMetrics, withCircuitBreaker, withCache, withHealthCheck } from './with-store/store-middleware.js';
|
|
111
|
+
export type { StoreMiddleware, RetryOptions, LoggingOptions, LogLevel, MetricsOptions, StoreOperation, CircuitBreakerOptions, StoreCacheOptions, HealthCheckOptions, } from './with-store/store-middleware.js';
|
|
112
|
+
export { NoydbError, DecryptionError, TamperedError, InvalidKeyError, KeyringCorruptError, NoAccessError, ReadOnlyError, PermissionDeniedError, PrivilegeEscalationError, StoreCapabilityError, ConflictError, NetworkError, NotFoundError, ValidationError, SchemaValidationError, GroupCardinalityError, BackupLedgerError, BackupCorruptedError, JoinTooLargeError, CrossJoinTooLargeError, CrossJoinSourceUnknownError, DanglingReferenceError, FilenameSanitizationError, PathEscapeError, ElevationExpiredError, AlreadyElevatedError, LedgerContentionError, SequenceContentionError, SequenceOfflineError, SequenceNotEnabledError, BundleIntegrityError, BundleSealMismatchError, PodVersionConflictError, BundleVersionConflictError, SessionExpiredError, SessionNotFoundError, SessionPolicyError, ExportCapabilityError, ImportCapabilityError, KeyringExpiredError, ReadOnlyAtInstantError, ReadOnlyFrameError, RecordLockedError, FieldFrozenError, IllegalTransitionError, InvariantError, AmendmentForbiddenError, AttestationError, AttestationNotEnabledError, ClassifiedNotEnabledError, TiersNotEnabledError, PortabilityNotEnabledError, SchemaUpdateError, NonAdditiveSchemaChangeError, SchemaLockedError, SchemaFenceError, MigrationRequiredError, QuiesceTimeoutError, } from './kernel/errors.js';
|
|
113
|
+
export { SnapshotNotFoundError } from './kernel/errors.js';
|
|
114
|
+
export type { SnapshotMeta, RetentionPolicy } from './with-fork/snapshots/strategy.js';
|
|
115
|
+
export { withArchive } from './with-fork/archive/index.js';
|
|
116
|
+
export type { ArchiveStrategy, WithArchiveOptions, ArchivePolicy, ArchiveResult, ArchiveRunOptions, } from './with-fork/archive/index.js';
|
|
117
|
+
export { SequenceStore, resolveSequenceKey, compileSequenceFormat } from './with-commit/sequence/index.js';
|
|
118
|
+
export type { SequenceHandle, FormattedSequenceHandle, NextOptions, SequenceOptions, SequenceStoreOptions } from './with-commit/sequence/index.js';
|
|
119
|
+
export { withSequence, NO_SEQUENCE } from './with-commit/sequence/index.js';
|
|
120
|
+
export type { SequenceStrategy } from './with-commit/sequence/index.js';
|
|
121
|
+
export { withDeferredNumbering } from './with-commit/numbering/descriptor.js';
|
|
122
|
+
export type { DeferredNumberingConfig } from './with-commit/numbering/descriptor.js';
|
|
123
|
+
export type { Assignment as NumberingAssignment } from './with-commit/numbering/index.js';
|
|
124
|
+
export { NumberingUncertaintyError } from './kernel/errors.js';
|
|
125
|
+
export type { StoreTime } from './kernel/types.js';
|
|
126
|
+
export { STATE_VAULT_NAME } from './kernel/constants.js';
|
|
127
|
+
export { UnknownShardError, ShardProvisioningError, VaultTemplateNotFoundError, ReservedVaultNameError, DataResidencyError } from './kernel/errors.js';
|
|
128
|
+
export { ForgetStrategyNotConfiguredError } from './kernel/errors.js';
|
|
129
|
+
export { SealedRecordExpiredError, SealedRecordMismatchError, RecordCekNotFoundError, SealedRecordNotEnabledError } from './kernel/errors.js';
|
|
130
|
+
export { DebugPlaintextError, DebugReservedFieldError } from './kernel/errors.js';
|
|
131
|
+
export { writePod, readPod, readPodHeader, writeNoydbBundle, readNoydbBundle, readNoydbBundleHeader, resetBrotliSupportCache, } from './with-pod/bundle.js';
|
|
132
|
+
export { exportAccessibleData } from './with-audit/portability/export-accessible.js';
|
|
133
|
+
export type { ExportAccessibleOptions } from './with-audit/portability/export-accessible.js';
|
|
134
|
+
export { withdrawAccessibleData } from './with-audit/portability/withdraw-accessible.js';
|
|
135
|
+
export type { WithdrawAccessibleOptions, WithdrawResult, FrozenSnapshotRef } from './with-audit/portability/withdraw-accessible.js';
|
|
136
|
+
export { requestWithdrawal, listWithdrawalRequests, approveWithdrawal, rejectWithdrawal, WithdrawalRequestError, } from './with-audit/portability/request-withdrawal.js';
|
|
137
|
+
export type { RequestWithdrawalOptions, RequestWithdrawalResult, WithdrawalRequest, WithdrawalRequestStatus, ApproveWithdrawalOptions, RejectWithdrawalOptions, } from './with-audit/portability/request-withdrawal.js';
|
|
138
|
+
export type { NoydbPodHeader, NoydbBundleHeader, CompressionAlgo, } from './with-pod/format.js';
|
|
139
|
+
export type { WritePodOptions, WriteNoydbBundleOptions, ReadNoydbBundleOptions, NoydbBundleReadResult, AutoCredentialKind, AutoCredential, } from './with-pod/bundle.js';
|
|
140
|
+
export { NOYDB_BUNDLE_MAGIC, NOYDB_BUNDLE_PREFIX_BYTES, NOYDB_BUNDLE_FORMAT_VERSION, hasNoydbBundleMagic, } from './with-pod/format.js';
|
|
141
|
+
export { generateULID, isULID } from './with-pod/ulid.js';
|
|
142
|
+
export { decryptExtractedPartition } from './with-cargo/decrypt-partition.js';
|
|
143
|
+
export type { DecryptedRecord } from './with-cargo/decrypt-partition.js';
|
|
144
|
+
export type { StandardSchemaV1, StandardSchemaV1SyncResult, StandardSchemaV1Issue, InferOutput, } from './kernel/schema.js';
|
|
145
|
+
export { validateSchemaInput, validateSchemaOutput } from './kernel/schema.js';
|
|
146
|
+
export type { VaultSchemaSnapshot, DumpSchemaOptions, CollectionDescriptor, CollectionConfig, CollectionStats, FieldDescriptor, FieldSource, MaterializedViewDescriptor, OverlayViewDescriptor, DerivationDescriptor, InternalCollectionStats, } from './with-shape/introspection/index.js';
|
|
147
|
+
export type { PersistedSchemaEnvelope, PersistedSchemaKind, PersistSchemaResult, } from './with-shape/persisted-schemas/index.js';
|
|
148
|
+
export { SCHEMAS_COLLECTION, derivePersistedSchema, isZodSchema, loadPersistedSchema, savePersistedSchema, persistSchemaIfNeeded, } from './with-shape/persisted-schemas/index.js';
|
|
149
|
+
export { VaultInstant, CollectionInstant } from './with-commit/history/time-machine.js';
|
|
150
|
+
export type { VaultEngine } from './with-commit/history/time-machine.js';
|
|
151
|
+
export { VaultFrame, CollectionFrame } from './with-fork/shadow/vault-frame.js';
|
|
152
|
+
export { CONSENT_AUDIT_COLLECTION } from './with-audit/consent/consent.js';
|
|
153
|
+
export type { ConsentContext, ConsentOp, ConsentAuditEntry, ConsentAuditFilter, } from './with-audit/consent/consent.js';
|
|
154
|
+
export { LedgerStore, LEDGER_COLLECTION, LEDGER_DELTAS_COLLECTION, envelopePayloadHash, canonicalJson, sha256Hex, hashEntry, paddedIndex, parseIndex, computePatch, applyPatch, } from './with-commit/history/ledger/index.js';
|
|
155
|
+
export type { LedgerEntry, AppendInput, VerifyResult, JsonPatch, JsonPatchOp, } from './with-commit/history/ledger/index.js';
|
|
156
|
+
export { ref, refArray, isRefArray, RefRegistry, RefIntegrityError, RefScopeError, } from './kernel/refs.js';
|
|
157
|
+
export type { RefMode, RefDescriptor, RefViolation, } from './kernel/refs.js';
|
|
158
|
+
export { isLinkCollectionName, LinkEndpointError, LinkIntegrityError, } from './with-shape/links/link-set.js';
|
|
159
|
+
export type { LinkSpec, LinkRow, LinkOnDelete, LinkSetHandle, } from './with-shape/links/link-set.js';
|
|
160
|
+
export type { UnlockedKeyring } from './with-party/team/keyring.js';
|
|
161
|
+
export { enrollAuthenticator, removeAuthenticator, findAuthenticator, } from './with-party/team/authenticators.js';
|
|
162
|
+
export type { EnrollAuthenticatorOptions, EnrollAuthenticatorWrappingKEKOptions, EnrollAuthenticatorWrappingDEKsOptions, UpdateAuthenticatorOptions, } from './with-party/team/authenticators.js';
|
|
163
|
+
export { QuickUnlockStore } from './with-party/session/unlock-state.js';
|
|
164
|
+
export type { QuickUnlockState } from './with-party/session/unlock-state.js';
|
|
165
|
+
export { rotatePassphrase as keyringRotatePassphrase, recoverPassphrase as keyringRecoverPassphrase, } from './with-party/team/rotate-recover.js';
|
|
166
|
+
export type { RotatePassphraseInput, RecoverPassphraseInput, RecoverPassphraseResult, RecoveryProof, SlotRewrapContext, SlotRewrapCeremony, } from './with-party/team/rotate-recover.js';
|
|
167
|
+
export { loadPublicEnvelope, savePublicEnvelope, readPublicEnvelope, resolveSchema as resolvePublicEnvelopeSchema, validatePublicEnvelopeInput, isPublicEnvelope, PUBLIC_ENVELOPE_FIELDS, DEFAULT_PUBLIC_ENVELOPE_SCHEMA, PUBLIC_ENVELOPE_RECORD_ID, } from './with-party/directory/public-envelope/index.js';
|
|
168
|
+
export type { PublicEnvelope, PublicEnvelopeText, PublicEnvelopeSchema, PublicEnvelopeField, ResolvedPublicEnvelopeSchema, SetPublicEnvelopeInput, } from './with-party/directory/public-envelope/index.js';
|
|
169
|
+
export { readNoydbBundlePublicEnvelope } from './with-pod/bundle.js';
|
|
170
|
+
export { USER_ENVELOPE_COLLECTION, USER_ENVELOPE_MAX_BYTES, } from './kernel/constants.js';
|
|
171
|
+
export { UserEnvelopeOversizedError } from './kernel/errors.js';
|
|
172
|
+
export { loadUserEnvelope, saveUserEnvelope, deleteUserEnvelope, listUserEnvelopeIds, } from './with-party/directory/user-envelope/index.js';
|
|
173
|
+
export type { UserEnvelope, DeepPartial, DeepPartialOrNull, Unsubscribe, LiveUserEnvelope, UserEnvelopePresented, UserEnvelopeCheckGate, } from './kernel/types.js';
|
|
174
|
+
export { UserApi } from './with-party/directory/user-envelope/api.js';
|
|
175
|
+
export { CustodyApi } from './with-party/custody/index.js';
|
|
176
|
+
export type { GrantCustodianOptions } from './with-party/custody/index.js';
|
|
177
|
+
export { liberateVault } from './with-party/custody/liberate.js';
|
|
178
|
+
export type { LiberateOptions, LiberateResult } from './with-party/custody/liberate.js';
|
|
179
|
+
export { withCustody, NO_CUSTODY } from './with-party/custody/index.js';
|
|
180
|
+
export type { CustodyStrategy, CustodyHost } from './with-party/custody/index.js';
|
|
181
|
+
export { CustodyNotEnabledError } from './kernel/errors.js';
|
|
182
|
+
export { createDeedOwner, loadDeedMarker, isDeedVault, DEED_RECORD_ID } from './with-party/team/deed.js';
|
|
183
|
+
export type { DeedMarker } from './with-party/team/deed.js';
|
|
184
|
+
export { withTeam } from './with-party/team/active.js';
|
|
185
|
+
export { NO_TEAM } from './with-party/team/strategy.js';
|
|
186
|
+
export type { TeamStrategy } from './with-party/team/strategy.js';
|
|
187
|
+
export { TeamNotEnabledError } from './kernel/errors.js';
|
|
188
|
+
export { withLazy } from './with-store/lazy/active.js';
|
|
189
|
+
export type { LazyStrategy } from './with-store/lazy/strategy.js';
|
|
190
|
+
export { describeAuthConfig, diagramAuthConfig, describeUserAuth, describeAllUsersAuth, } from './with-party/auth-introspection/index.js';
|
|
191
|
+
export { loadPaperRecoveryEntries, savePaperRecoveryEntries, burnPaperRecoveryEntry, hasRecoveryEnrolled, mintPaperRecoveryEntry, unwrapDeksFromPaperEntry, loadShamirRecoveryEntries, saveShamirRecoveryEntries, mintShamirRecoveryEntry, unwrapDeksFromShamirEntry, } from './with-party/team/recovery.js';
|
|
192
|
+
export type { PaperRecoveryEntry, PaperRecoveryDoc, ShamirRecoveryEntry, ShamirRecoveryDoc, } from './with-party/team/recovery.js';
|
|
193
|
+
export type { EnrollRecoveryResult, RotateRecoveryOptions, RotateRecoveryResult, } from './with-party/team/rotate-recover.js';
|
|
194
|
+
export { mintWrappedDeksBlob, unwrapDeksFromBlob } from './with-party/team/wrapped-deks.js';
|
|
195
|
+
export type { WrappedDeksBlob } from './with-party/team/wrapped-deks.js';
|
|
196
|
+
export type { SealingKeyProvider, SealedPassphrase, SealedEnvelope, RecipientHint, RecipientSealer } from './with-party/team/managed-passphrase.js';
|
|
197
|
+
export type { ShamirRecoveryProvider } from './with-party/team/shamir-recovery-provider.js';
|
|
198
|
+
export { MemorySealingKeyProvider, MemoryRecipientSealer, sealRsaOaepTlv, parseRsaOaepTlv, aesGcmOpen, loadSealedPassphrase, saveSealedPassphrase, parseSealedEnvelope, SEALED_PASSPHRASE_RECORD_ID, } from './with-party/team/managed-passphrase.js';
|
|
199
|
+
export { recoverUser } from './with-party/team/peer-recover.js';
|
|
200
|
+
export type { RecoverUserOptions } from './with-party/team/peer-recover.js';
|
|
201
|
+
export { hasExportCapability, evaluateExportCapability } from './with-party/team/keyring.js';
|
|
202
|
+
export { hasImportCapability, evaluateImportCapability } from './with-party/team/keyring.js';
|
|
203
|
+
export type { BundleRecipient } from './with-party/team/keyring.js';
|
|
204
|
+
export { buildRecipientKeyringFile } from './with-party/team/keyring.js';
|
|
205
|
+
export { listUsers, listUsersWithEnvelopes } from './with-party/team/keyring.js';
|
|
206
|
+
export type { ListUsersOptions } from './with-party/team/keyring.js';
|
|
207
|
+
export { readDirectoryConfig, persistDirectoryConfig, readUserVisibility, persistUserVisibility, deleteUserVisibility, visibilityRecordId, DIRECTORY_RECORD_ID, VISIBILITY_RECORD_PREFIX, } from './with-party/directory/index.js';
|
|
208
|
+
export type { DirectoryConfig, UserVisibility } from './with-party/directory/index.js';
|
|
209
|
+
export { DirectoryDisabledError } from './kernel/errors.js';
|
|
210
|
+
export { Noydb, createNoydb } from './kernel/noydb.js';
|
|
211
|
+
export { Vault } from './kernel/vault.js';
|
|
212
|
+
export { ElevatedHandle, ELEVATION_AUDIT_COLLECTION } from './with-commit/tx/elevated-handle.js';
|
|
213
|
+
export { Collection } from './kernel/collection.js';
|
|
214
|
+
export type { CacheOptions, CacheStats, CollectionChangeEvent } from './kernel/collection.js';
|
|
215
|
+
export type { CrdtMode, CrdtState, LwwMapState, RgaState, YjsState } from './with-commit/crdt/crdt.js';
|
|
216
|
+
export { resolveCrdtSnapshot, mergeCrdtStates } from './with-commit/crdt/crdt.js';
|
|
217
|
+
export { PresenceHandle } from './with-party/team/presence.js';
|
|
218
|
+
export type { PresencePeer } from './kernel/types.js';
|
|
219
|
+
export { derivePresenceKey } from './kernel/enclave/index.js';
|
|
220
|
+
export { SyncEngine } from './with-party/team/sync.js';
|
|
221
|
+
export { SyncTransaction } from './with-party/team/sync-transaction.js';
|
|
222
|
+
export { TxContext, TxVault, TxCollection, runTransaction } from './with-commit/tx/transaction.js';
|
|
223
|
+
export type { TxOp } from './kernel/types.js';
|
|
224
|
+
export type { TransactionInvariant } from './with-commit/tx/invariants.js';
|
|
225
|
+
export type { TransactionStrategyOptions } from './with-commit/tx/active.js';
|
|
226
|
+
export { withGuard } from './with-audit/guards/index.js';
|
|
227
|
+
export { immutableGuard } from './with-audit/guards/index.js';
|
|
228
|
+
export type { ImmutableGuardConfig } from './with-audit/guards/index.js';
|
|
229
|
+
export { transitionGuard } from './with-audit/guards/index.js';
|
|
230
|
+
export type { TransitionGuardConfig } from './with-audit/guards/index.js';
|
|
231
|
+
export type { GuardStrategy, GuardStrategyHandle, GuardContext, GuardChange, } from './with-audit/guards/index.js';
|
|
232
|
+
export { withDerivation } from './with-formula/derivations/index.js';
|
|
233
|
+
export { withRollup } from './with-formula/derivations/index.js';
|
|
234
|
+
export type { DerivationStrategy, DerivationStrategyHandle, DerivedFromMeta, OutputSpec, RecordOutputSpec, ArrayOutputSpec, } from './with-formula/derivations/index.js';
|
|
235
|
+
export { DerivationCycleError, DerivationDepthError, DerivationOutputUnknownError, DerivationOutputShapeError, DerivationCapExceededError, } from './kernel/errors.js';
|
|
236
|
+
export { withMaterializedView } from './with-formula/materialized-views/index.js';
|
|
237
|
+
export type { MaterializedViewStrategy, MaterializedViewStrategyHandle, MaterializedViewOutput, MaterializedFromMeta, UnionSource, UnionArmJoin, } from './with-formula/materialized-views/index.js';
|
|
238
|
+
export { MaterializedViewCycleError, MaterializedViewConfigError, MaterializedViewSourceUnknownError, MaterializedViewTooLargeError, } from './kernel/errors.js';
|
|
239
|
+
export { withOverlayedView } from './with-formula/overlay-views/index.js';
|
|
240
|
+
export type { OverlayedViewStrategy, OverlayedViewStrategyHandle, OverlayFieldMergeRule, OverlayFieldMergeMode, } from './with-formula/overlay-views/index.js';
|
|
241
|
+
export { OverlayBaseIsVirtualError, OverlayCollectionUnavailableError, OverlayNameCollisionError, OverlayIdMismatchError, } from './kernel/errors.js';
|
|
242
|
+
export { PERIODS_COLLECTION } from './with-audit/periods/index.js';
|
|
243
|
+
export type { PeriodRecord, ClosePeriodOptions, OpenPeriodOptions, } from './with-audit/periods/index.js';
|
|
244
|
+
export { PeriodClosedError } from './kernel/errors.js';
|
|
245
|
+
export { Lru, parseBytes, estimateRecordBytes } from './kernel/cache/index.js';
|
|
246
|
+
export type { LruOptions, LruStats } from './kernel/cache/index.js';
|
|
247
|
+
export { dictKey, isDictKeyDescriptor, staticDict, isStaticDictDescriptor, isDictCollectionName, dictCollectionName, DictionaryHandle, DICT_COLLECTION_PREFIX, } from './via/i18n/dictionary.js';
|
|
248
|
+
export type { DictKeyDescriptor, StaticDictDescriptor, DictEntry, DictionaryOptions, } from './via/i18n/dictionary.js';
|
|
249
|
+
export { i18nText, isI18nTextDescriptor, validateI18nTextValue, resolveI18nText, applyI18nLocale, } from './via/i18n/core.js';
|
|
250
|
+
export type { I18nTextOptions, I18nTextDescriptor, ResolveI18nOptions, I18nMap } from './via/i18n/core.js';
|
|
251
|
+
export { money, isMoneyDescriptor, MoneyPrecisionError, MoneyCurrencyError, MoneyUnsupportedError, scaleForCurrency, mulRate, allocate, asMoney, isMoneyString, moneyNumber, } from './via/money/index.js';
|
|
252
|
+
export type { MoneyDescriptor, MoneyOptions, MoneyOptionsFixed, MoneyOptionsMulti, RoundingMode, FxRates, MulRateOptions, AllocateOptions, MoneyString, } from './via/money/index.js';
|
|
253
|
+
export { via, isViaFieldSpec } from './kernel/via/compose.js';
|
|
254
|
+
export type { ViaFieldSpec } from './kernel/via/compose.js';
|
|
255
|
+
export type { ViaPosture, ViaDescriptor } from './kernel/via/index.js';
|
|
256
|
+
export type { DerivationSkippedFrozen } from './kernel/via/dispatch.js';
|
|
257
|
+
export { classified, luhnCheck, isClassifiedFieldSpec, isClassifiedGroup, resolveClassifiedFields, ClassifiedConfigError, ClassifiedNeverStoredError, ClassifiedValidationError, ClassifiedRevealError, ClassifiedVerifyError, ClassifiedRotationError } from './via/classified/index.js';
|
|
258
|
+
export type { ClassifiedFieldSpec, ClassifiedGroup, ClassifiedEntry, ClassifiedList, ClassifiedStorage, ClassifiedVerdict } from './via/classified/index.js';
|
|
259
|
+
export { evalComputedFields, ComputedFieldError } from './with-formula/computed/index.js';
|
|
260
|
+
export type { ComputedFields, ComputedFn, ComputedFieldEntry } from './with-formula/computed/index.js';
|
|
261
|
+
export { computed, isComputedDescriptor } from './via/computed/descriptor.js';
|
|
262
|
+
export type { ComputedDescriptor } from './via/computed/descriptor.js';
|
|
263
|
+
export { resolvePolicy } from './via/i18n/policy.js';
|
|
264
|
+
export type { OnMissing, Layer, OnMissingPolicy } from './via/i18n/policy.js';
|
|
265
|
+
export { inferScripts, enforceScript } from './via/i18n/script.js';
|
|
266
|
+
export type { ScriptWarning } from './via/i18n/script.js';
|
|
267
|
+
export { ReservedCollectionNameError, DictKeyMissingError, DictKeyInUseError, MissingTranslationError, LocaleNotSpecifiedError, TranslatorNotConfiguredError, ScriptViolationError, StaticDictReadonlyError, UnknownDictCodeError, } from './kernel/errors.js';
|
|
268
|
+
export { lookup, dict, enumOf, enum } from './via/lookup/index.js';
|
|
269
|
+
export { UnknownLookupKeyError, RestrictRefUnresolvableError } from './kernel/errors.js';
|
|
270
|
+
export type { LookupDescriptor, Vocabulary, OnDelete } from './via/lookup/index.js';
|
|
271
|
+
export type { LocaleReadOptions } from './kernel/types.js';
|
|
272
|
+
export { putCredential, getCredential, deleteCredential, listCredentials, credentialStatus, SYNC_CREDENTIALS_COLLECTION, } from './with-party/team/sync-credentials.js';
|
|
273
|
+
export type { SyncCredential } from './with-party/team/sync-credentials.js';
|
|
274
|
+
export { PolicyEnforcer, createEnforcer, validateSessionPolicy } from './with-party/session/session-policy.js';
|
|
275
|
+
export { createSession, resolveSession, revokeSession, revokeAllSessions, isSessionAlive, activeSessionCount, } from './with-party/session/session.js';
|
|
276
|
+
export type { SessionToken, CreateSessionResult, CreateSessionOptions, } from './with-party/session/session.js';
|
|
277
|
+
export { enableDevUnlock, loadDevUnlock, clearDevUnlock, isDevUnlockActive, } from './with-party/session/dev-unlock.js';
|
|
278
|
+
export type { DevUnlockOptions } from './with-party/session/dev-unlock.js';
|
|
279
|
+
export { isDiscriminant } from './kernel/util/discriminant.js';
|
|
280
|
+
export { bufferToBase64, base64ToBuffer, encryptBytes, decryptBytes } from './kernel/enclave/index.js';
|
|
281
|
+
export { encryptDeterministic, decryptDeterministic } from './kernel/enclave/index.js';
|
|
282
|
+
export { EnclaveNotSupportedError } from './kernel/errors.js';
|
|
283
|
+
export type { GhostRecord, TierMode, CrossTierAccessEvent } from './kernel/types.js';
|
|
284
|
+
export { TierNotGrantedError, TierDemoteDeniedError, DelegationTargetMissingError, TierWriteRefusedError, UnsupportedTierCompositionError } from './kernel/errors.js';
|
|
285
|
+
export { IndexRequiredError, IndexWriteFailureError } from './kernel/errors.js';
|
|
286
|
+
export { FieldNotQueryableError } from './kernel/errors.js';
|
|
287
|
+
export { fuseRetrieval, type FuseOptions } from './with-lookup/search/fuse.js';
|
|
288
|
+
export { UniqueConstraintError, UnsupportedIndexOptionError } from './kernel/errors.js';
|
|
289
|
+
export { EmbeddingDimMismatchError, EmbeddingModelMismatchError } from './kernel/errors.js';
|
|
290
|
+
export type { EmbeddingDescriptor } from './with-lookup/embeddings/index.js';
|
|
291
|
+
export { dekKey, effectiveClearance, assertTierAccess } from './with-party/team/tiers.js';
|
|
292
|
+
export type { DelegationToken, IssueDelegationOptions } from './with-party/team/delegation.js';
|
|
293
|
+
export { DELEGATIONS_COLLECTION, issueDelegation, loadActiveDelegations, revokeDelegation } from './with-party/team/delegation.js';
|
|
294
|
+
export type { MagicLinkGrantPayload, MagicLinkGrantRecord, IssueMagicLinkGrantOptions, } from './with-party/team/magic-link-grant.js';
|
|
295
|
+
export { MAGIC_LINK_GRANTS_COLLECTION, MAGIC_LINK_CONTENT_INFO_PREFIX, MAGIC_LINK_KEK_INFO_PREFIX, deriveMagicLinkContentKey, writeMagicLinkGrant, readMagicLinkGrantRecord, listMagicLinkGrants, unwrapMagicLinkGrant, revokeMagicLinkGrant, magicLinkGrantRecordId, isMagicLinkGrantExpired, } from './with-party/team/magic-link-grant.js';
|
|
296
|
+
export { diff, formatDiff } from './with-commit/history/diff.js';
|
|
297
|
+
export type { DiffEntry, ChangeType } from './with-commit/history/diff.js';
|
|
298
|
+
export { diffVault } from './with-cargo/vault-diff.js';
|
|
299
|
+
export type { VaultDiff, VaultDiffEntry, VaultDiffModifiedEntry, DiffOptions, DiffCandidate, } from './with-cargo/vault-diff.js';
|
|
300
|
+
export { withCargo, NO_CARGO } from './with-cargo/index.js';
|
|
301
|
+
export type { CargoStrategy } from './with-cargo/index.js';
|
|
302
|
+
export { CargoNotEnabledError } from './kernel/errors.js';
|
|
303
|
+
export { PERSONAL_POLICY, STRICT_POLICY, mergePolicy, checkGate, describeGate, DEFAULT_FRESHNESS_MS, loadVaultPolicy, saveVaultPolicy, META_COLLECTION, POLICY_RECORD_ID, } from './with-party/policy/index.js';
|
|
304
|
+
export { PolicyDeniedError, RecoveryNotEnrolledError, RecoveryProfileNotImplementedError, ManagedRecoveryNotEnrolledError, } from './kernel/errors.js';
|
|
305
|
+
export type { VaultPolicy, GatePolicy, GateName, BuiltInGateName, FactorKind, FactorRequirement, FactorProof, FactorProofBundle, WarningRules, ActiveTier, } from './kernel/types.js';
|
|
306
|
+
export type { PolicyDenyReason } from './kernel/errors.js';
|
|
307
|
+
export type { CheckGateContext } from './with-party/policy/index.js';
|
|
308
|
+
export { validatePassphrase, assertStrongPassphrase, estimateEntropy, WeakPassphraseError, } from './kernel/validation.js';
|
|
309
|
+
export type { PassphrasePolicy, PassphraseValidationResult, WeakPassphraseReason, } from './kernel/validation.js';
|
|
310
|
+
export { Query, executePlan, evaluateClause, evaluateFieldClause, readPath, CollectionIndexes, applyJoins, DEFAULT_JOIN_MAX_ROWS, DEFAULT_CROSS_JOIN_MAX_ROWS, resetJoinWarnings, buildLiveQuery, count, sum, avg, min, max, moneySum, moneyMin, moneyMax, reducerBuilder, Aggregation, reduceRecords, GroupedQuery, GroupedQueryN, GroupedAggregation, groupAndReduce, GROUPBY_WARN_CARDINALITY, GROUPBY_MAX_CARDINALITY, ScanBuilder, } from './kernel/query/index.js';
|
|
311
|
+
export type { QueryPlan, QuerySource, OrderBy, Operator, Clause, FieldClause, FilterClause, GroupClause, IndexDef, HashIndex, JoinLeg, JoinContext, JoinableSource, JoinStrategy, LiveQuery, LiveUpstream, Reducer, ReducerOptions, ReducerBuilder, AggregateSpec, AggregateResult, AggregationUpstream, LiveAggregation, GroupedRow, GroupedRowN, ScanPageProvider, } from './kernel/query/index.js';
|
|
312
|
+
export type { QueryField, IndexFieldName } from './kernel/types.js';
|
|
313
|
+
export type { Sealed, SealedView } from './kernel/types.js';
|
|
314
|
+
export { SealedHandle } from './kernel/types.js';
|
|
315
|
+
export { tokenize } from './with-lookup/search/index.js';
|
|
316
|
+
export type { Tokenizer, SearchOptions, SearchResult, SearchEntry } from './with-lookup/search/index.js';
|
|
317
|
+
export type { RetrieveOptions, RetrieveHit } from './with-lookup/search/index.js';
|
|
318
|
+
export { withSearch, NO_SEARCH } from './with-lookup/search/index.js';
|
|
319
|
+
export type { SearchStrategy } from './with-lookup/search/index.js';
|
|
320
|
+
export { SearchNotEnabledError } from './kernel/errors.js';
|
|
321
|
+
export { PersistedIndexCompensationError } from './kernel/errors.js';
|