@noy-db/hub 0.2.0-pre.11 → 0.2.0-pre.12
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/README.md +126 -0
- package/dist/aggregate/index.cjs +289 -12
- package/dist/aggregate/index.cjs.map +1 -1
- package/dist/aggregate/index.d.cts +2 -2
- package/dist/aggregate/index.d.ts +2 -2
- package/dist/aggregate/index.js +7 -7
- package/dist/aggregate/index.js.map +1 -1
- package/dist/attestation/index.cjs.map +1 -1
- package/dist/attestation/index.d.cts +3 -3
- package/dist/attestation/index.d.ts +3 -3
- package/dist/attestation/index.js +6 -6
- package/dist/blobs/index.cjs +28 -0
- package/dist/blobs/index.cjs.map +1 -1
- package/dist/blobs/index.d.cts +4 -4
- package/dist/blobs/index.d.ts +4 -4
- package/dist/blobs/index.js +5 -5
- package/dist/bundle/index.cjs +1452 -16
- package/dist/bundle/index.cjs.map +1 -1
- package/dist/bundle/index.d.cts +5 -5
- package/dist/bundle/index.d.ts +5 -5
- package/dist/bundle/index.js +9 -9
- package/dist/{chunk-7CEGU63S.js → chunk-4BHFNKTP.js} +2 -2
- package/dist/{chunk-5OEJ6GOT.js → chunk-5ARRXIVR.js} +2 -2
- package/dist/{chunk-77DWLQRY.js → chunk-6AD5TBF2.js} +31 -3
- package/dist/chunk-6AD5TBF2.js.map +1 -0
- package/dist/{chunk-YM7LFCG7.js → chunk-6BYBVRZU.js} +3 -3
- package/dist/{chunk-73YLDCNF.js → chunk-7JJE3OMJ.js} +5 -5
- package/dist/{chunk-GKI4SDP7.js → chunk-7LVRIW4G.js} +4 -4
- package/dist/{chunk-O6EJ6WTI.js → chunk-AGRC7NQQ.js} +62 -2
- package/dist/chunk-AGRC7NQQ.js.map +1 -0
- package/dist/{chunk-IMYKDWB4.js → chunk-B7GGYNKQ.js} +2 -2
- package/dist/{chunk-BDV7INMP.js → chunk-BXOUVUES.js} +4 -4
- package/dist/{chunk-FO3UEG4S.js → chunk-C2CIIQRG.js} +2 -2
- package/dist/{chunk-ZROPXHJY.js → chunk-CHBXWJZQ.js} +2 -2
- package/dist/{chunk-RYIL3PI2.js → chunk-CILT6V3V.js} +2 -2
- package/dist/{chunk-YVZRTCGG.js → chunk-DLTU4M2I.js} +6 -6
- package/dist/{chunk-GAUEWM7D.js → chunk-EKNUBIIQ.js} +4 -4
- package/dist/{chunk-QCXNMCHN.js → chunk-GFPR7VJS.js} +4 -4
- package/dist/{chunk-V2PZC6AW.js → chunk-HBAJDI2N.js} +5 -5
- package/dist/{chunk-PVUUIWHY.js → chunk-HLGDYFWR.js} +10 -3
- package/dist/chunk-HLGDYFWR.js.map +1 -0
- package/dist/{chunk-RRNA5GKT.js → chunk-IEPT7HVP.js} +2 -2
- package/dist/{chunk-R233SLY3.js → chunk-IUBHXEPJ.js} +2 -2
- package/dist/{chunk-CH22FZHT.js → chunk-L6BYRCYB.js} +2 -2
- package/dist/{chunk-PC3ZZBTO.js → chunk-LOA2VCMS.js} +5 -5
- package/dist/{chunk-TGALXXLV.js → chunk-LSEW3ZZ2.js} +3 -3
- package/dist/{chunk-Y26YV5R3.js → chunk-LWSD4QPT.js} +3 -3
- package/dist/{chunk-SLV4LAKX.js → chunk-LYNNZEQD.js} +1 -1
- package/dist/chunk-LYNNZEQD.js.map +1 -0
- package/dist/{chunk-26NK23DZ.js → chunk-M45IRXDM.js} +3 -3
- package/dist/{chunk-CXJG63MA.js → chunk-NP6EZT44.js} +20 -6
- package/dist/chunk-NP6EZT44.js.map +1 -0
- package/dist/{chunk-ZBBW7YQN.js → chunk-O53RIZCC.js} +5 -5
- package/dist/chunk-OPDTLHFA.js +783 -0
- package/dist/chunk-OPDTLHFA.js.map +1 -0
- package/dist/{chunk-LSTBFLL2.js → chunk-P3Z5Y2TS.js} +2 -2
- package/dist/{chunk-QSOYKKMD.js → chunk-P4EDT5ZP.js} +2 -2
- package/dist/{chunk-PC6ZEDRL.js → chunk-RHQYVHFH.js} +2 -2
- package/dist/{chunk-3DGHRDCX.js → chunk-RRDWXNBQ.js} +3 -3
- package/dist/{chunk-6MFH4BMK.js → chunk-SJJQKNMP.js} +4 -4
- package/dist/{chunk-EBVBE7UK.js → chunk-SZ4N3IL5.js} +5 -5
- package/dist/{chunk-MPOLUAMI.js → chunk-TMHJEYW7.js} +497 -57
- package/dist/chunk-TMHJEYW7.js.map +1 -0
- package/dist/{chunk-JQ4NEJJ6.js → chunk-UA6G45ME.js} +3 -3
- package/dist/{chunk-6YLPHBKR.js → chunk-UOC7JMZO.js} +13 -4
- package/dist/chunk-UOC7JMZO.js.map +1 -0
- package/dist/{chunk-DAP2XL7Q.js → chunk-VOXMU6LB.js} +2 -2
- package/dist/chunk-WNRGOVLG.js +64 -0
- package/dist/chunk-WNRGOVLG.js.map +1 -0
- package/dist/{chunk-YW5DBAPG.js → chunk-WUG3E423.js} +4 -4
- package/dist/{chunk-LJXYPGRH.js → chunk-XHM2SARW.js} +3 -3
- package/dist/{chunk-RC6SU5NO.js → chunk-XSIFXX54.js} +2 -2
- package/dist/{chunk-CXFOITNS.js → chunk-ZC7MNVYN.js} +2 -2
- package/dist/{chunk-6T2UDBKG.js → chunk-ZCFS7U4J.js} +2 -2
- package/dist/consent/index.cjs.map +1 -1
- package/dist/consent/index.d.cts +4 -4
- package/dist/consent/index.d.ts +4 -4
- package/dist/consent/index.js +3 -3
- package/dist/{crypto-2CRLG4F4.js → crypto-AJB72OKN.js} +3 -3
- package/dist/{delegation-ZTRT2PRV.js → delegation-6FCWDRUS.js} +5 -5
- package/dist/derivations/index.cjs.map +1 -1
- package/dist/derivations/index.d.cts +5 -5
- package/dist/derivations/index.d.ts +5 -5
- package/dist/derivations/index.js +4 -4
- package/dist/{dev-unlock-BH6y3Hx0.d.ts → dev-unlock-D3mpVFRc.d.ts} +1 -1
- package/dist/{dev-unlock-H1Xwxc3U.d.cts → dev-unlock-ckqa_Nso.d.cts} +1 -1
- package/dist/executor-7KSCEIFA.js +8 -0
- package/dist/executor-D2QMNGRJ.js +8 -0
- package/dist/executor-O5AZK7UW.js +11 -0
- package/dist/{fanout-sidecar-F3ZRFU4H.js → fanout-sidecar-ZSKEQ6NI.js} +2 -2
- package/dist/guards/index.cjs +53 -1
- package/dist/guards/index.cjs.map +1 -1
- package/dist/guards/index.d.cts +12 -6
- package/dist/guards/index.d.ts +12 -6
- package/dist/guards/index.js +5 -3
- package/dist/{hash-D89JdDbj.d.ts → hash-CTZVkXLx.d.ts} +1 -1
- package/dist/{hash-_sDFvtmX.d.cts → hash-rDSSd_oW.d.cts} +1 -1
- package/dist/history/index.cjs.map +1 -1
- package/dist/history/index.d.cts +5 -5
- package/dist/history/index.d.ts +5 -5
- package/dist/history/index.js +5 -5
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +4 -4
- package/dist/i18n/index.d.ts +4 -4
- package/dist/i18n/index.js +6 -6
- package/dist/immutable-guard-C51vAHuh.d.cts +67 -0
- package/dist/immutable-guard-DyD0qg2k.d.ts +67 -0
- package/dist/index-CkFHr4OP.d.ts +1190 -0
- package/dist/index-Cmop06zJ.d.cts +1190 -0
- package/dist/index.cjs +1620 -58
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +46 -13
- package/dist/index.d.ts +46 -13
- package/dist/index.js +76 -44
- package/dist/index.js.map +1 -1
- package/dist/indexing/index.cjs.map +1 -1
- package/dist/indexing/index.js +2 -2
- package/dist/issue-YIYG4OW5.js +12 -0
- package/dist/{ledger-NYCGJX2D.js → ledger-5JMVF7PY.js} +5 -5
- package/dist/materialized-views/index.cjs.map +1 -1
- package/dist/materialized-views/index.d.cts +5 -6
- package/dist/materialized-views/index.d.ts +5 -6
- package/dist/materialized-views/index.js +6 -6
- package/dist/noydb-D5SLAJ6V.js +34 -0
- package/dist/overlay-views/index.cjs.map +1 -1
- package/dist/overlay-views/index.d.cts +5 -5
- package/dist/overlay-views/index.d.ts +5 -5
- package/dist/overlay-views/index.js +4 -4
- package/dist/periods/index.cjs.map +1 -1
- package/dist/periods/index.d.cts +4 -4
- package/dist/periods/index.d.ts +4 -4
- package/dist/periods/index.js +5 -5
- package/dist/{public-envelope-QOXZEHKH.js → public-envelope-PFLZI5MO.js} +4 -4
- package/dist/query/index.cjs +293 -10
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +2 -2
- package/dist/query/index.d.ts +2 -2
- package/dist/query/index.js +4 -4
- package/dist/registry-BVQ5ITMF.js +8 -0
- package/dist/registry-JLP3QOLD.js +8 -0
- package/dist/{registry-ST2VNFZC.js → registry-NCY445U5.js} +3 -3
- package/dist/{revoke-RT7QYB4G.js → revoke-7RLGQWZ7.js} +6 -6
- package/dist/session/index.cjs.map +1 -1
- package/dist/session/index.d.cts +5 -5
- package/dist/session/index.d.ts +5 -5
- package/dist/session/index.js +3 -3
- package/dist/shadow/index.cjs.map +1 -1
- package/dist/shadow/index.d.cts +4 -4
- package/dist/shadow/index.d.ts +4 -4
- package/dist/shadow/index.js +2 -2
- package/dist/{signer-QNU66JF5.js → signer-6JF44I4A.js} +5 -5
- package/dist/snapshots/index.cjs.map +1 -1
- package/dist/snapshots/index.d.cts +4 -4
- package/dist/snapshots/index.d.ts +4 -4
- package/dist/snapshots/index.js +4 -4
- package/dist/{stale-VKXSXJF4.js → stale-UBLP3RJ3.js} +2 -2
- package/dist/store/index.cjs.map +1 -1
- package/dist/store/index.d.cts +4 -4
- package/dist/store/index.d.ts +4 -4
- package/dist/store/index.js +2 -2
- package/dist/strategy-rtpKDfTC.d.cts +2029 -0
- package/dist/strategy-rtpKDfTC.d.ts +2029 -0
- package/dist/sync/index.cjs.map +1 -1
- package/dist/sync/index.d.cts +3 -3
- package/dist/sync/index.d.ts +3 -3
- package/dist/sync/index.js +4 -4
- package/dist/team/index.cjs.map +1 -1
- package/dist/team/index.d.cts +4 -4
- package/dist/team/index.d.ts +4 -4
- package/dist/team/index.js +8 -8
- package/dist/tx/index.cjs +8 -1
- package/dist/tx/index.cjs.map +1 -1
- package/dist/tx/index.d.cts +4 -4
- package/dist/tx/index.d.ts +4 -4
- package/dist/tx/index.js +3 -3
- package/dist/{types-DiSXn3a4.d.cts → types-BGwjsDef.d.cts} +511 -6
- package/dist/{types-CD8mc8zR.d.ts → types-DRdfwgTG.d.ts} +511 -6
- package/dist/{ulid-DQ1hcJvZ.d.cts → ulid-D4d0Xto3.d.cts} +1 -1
- package/dist/{ulid-8p83wbR4.d.ts → ulid-DOTPZ5_h.d.ts} +1 -1
- package/dist/util/index.cjs.map +1 -1
- package/dist/util/index.js +1 -1
- package/dist/vault-group-Z4KB75ZH.js +450 -0
- package/dist/vault-group-Z4KB75ZH.js.map +1 -0
- package/dist/{with-derivation-DWMTpgEH.d.ts → with-derivation-B082Y_WQ.d.ts} +1 -1
- package/dist/{with-derivation-CVT7-dUt.d.cts → with-derivation-CB1EdcFF.d.cts} +1 -1
- package/dist/{with-materialized-view-BTTU3BNK.d.cts → with-materialized-view-CzRg1Dpr.d.cts} +1 -1
- package/dist/{with-materialized-view-X0CoL8-L.d.ts → with-materialized-view-Dw4SwjKl.d.ts} +1 -1
- package/dist/{with-overlayed-view-DcacRRsS.d.cts → with-overlayed-view-C9YFKXzn.d.cts} +1 -1
- package/dist/{with-overlayed-view-DQjO_DSG.d.ts → with-overlayed-view-CaCXeW26.d.ts} +1 -1
- package/package.json +3 -3
- package/dist/chunk-2LPPNWF6.js +0 -340
- package/dist/chunk-2LPPNWF6.js.map +0 -1
- package/dist/chunk-6YLPHBKR.js.map +0 -1
- package/dist/chunk-77DWLQRY.js.map +0 -1
- package/dist/chunk-C3WE6UJY.js +0 -19
- package/dist/chunk-C3WE6UJY.js.map +0 -1
- package/dist/chunk-CXJG63MA.js.map +0 -1
- package/dist/chunk-MPOLUAMI.js.map +0 -1
- package/dist/chunk-O6EJ6WTI.js.map +0 -1
- package/dist/chunk-PVUUIWHY.js.map +0 -1
- package/dist/chunk-SLV4LAKX.js.map +0 -1
- package/dist/executor-S76VN45G.js +0 -8
- package/dist/executor-UCXLIGLW.js +0 -11
- package/dist/executor-ZCNZJMGR.js +0 -8
- package/dist/index-B8bjExET.d.cts +0 -2434
- package/dist/index-DfUbNad8.d.ts +0 -2434
- package/dist/issue-IVTVSKWW.js +0 -12
- package/dist/noydb-SH4RLE47.js +0 -34
- package/dist/registry-UFIK7CSR.js +0 -8
- package/dist/registry-ZGYYSM5I.js +0 -8
- package/dist/strategy-CT2LCKAX.d.cts +0 -613
- package/dist/strategy-CT2LCKAX.d.ts +0 -613
- package/dist/with-guard-BRvt53da.d.ts +0 -18
- package/dist/with-guard-Dx2zZnTA.d.cts +0 -18
- /package/dist/{chunk-7CEGU63S.js.map → chunk-4BHFNKTP.js.map} +0 -0
- /package/dist/{chunk-5OEJ6GOT.js.map → chunk-5ARRXIVR.js.map} +0 -0
- /package/dist/{chunk-YM7LFCG7.js.map → chunk-6BYBVRZU.js.map} +0 -0
- /package/dist/{chunk-73YLDCNF.js.map → chunk-7JJE3OMJ.js.map} +0 -0
- /package/dist/{chunk-GKI4SDP7.js.map → chunk-7LVRIW4G.js.map} +0 -0
- /package/dist/{chunk-IMYKDWB4.js.map → chunk-B7GGYNKQ.js.map} +0 -0
- /package/dist/{chunk-BDV7INMP.js.map → chunk-BXOUVUES.js.map} +0 -0
- /package/dist/{chunk-FO3UEG4S.js.map → chunk-C2CIIQRG.js.map} +0 -0
- /package/dist/{chunk-ZROPXHJY.js.map → chunk-CHBXWJZQ.js.map} +0 -0
- /package/dist/{chunk-RYIL3PI2.js.map → chunk-CILT6V3V.js.map} +0 -0
- /package/dist/{chunk-YVZRTCGG.js.map → chunk-DLTU4M2I.js.map} +0 -0
- /package/dist/{chunk-GAUEWM7D.js.map → chunk-EKNUBIIQ.js.map} +0 -0
- /package/dist/{chunk-QCXNMCHN.js.map → chunk-GFPR7VJS.js.map} +0 -0
- /package/dist/{chunk-V2PZC6AW.js.map → chunk-HBAJDI2N.js.map} +0 -0
- /package/dist/{chunk-RRNA5GKT.js.map → chunk-IEPT7HVP.js.map} +0 -0
- /package/dist/{chunk-R233SLY3.js.map → chunk-IUBHXEPJ.js.map} +0 -0
- /package/dist/{chunk-CH22FZHT.js.map → chunk-L6BYRCYB.js.map} +0 -0
- /package/dist/{chunk-PC3ZZBTO.js.map → chunk-LOA2VCMS.js.map} +0 -0
- /package/dist/{chunk-TGALXXLV.js.map → chunk-LSEW3ZZ2.js.map} +0 -0
- /package/dist/{chunk-Y26YV5R3.js.map → chunk-LWSD4QPT.js.map} +0 -0
- /package/dist/{chunk-26NK23DZ.js.map → chunk-M45IRXDM.js.map} +0 -0
- /package/dist/{chunk-ZBBW7YQN.js.map → chunk-O53RIZCC.js.map} +0 -0
- /package/dist/{chunk-LSTBFLL2.js.map → chunk-P3Z5Y2TS.js.map} +0 -0
- /package/dist/{chunk-QSOYKKMD.js.map → chunk-P4EDT5ZP.js.map} +0 -0
- /package/dist/{chunk-PC6ZEDRL.js.map → chunk-RHQYVHFH.js.map} +0 -0
- /package/dist/{chunk-3DGHRDCX.js.map → chunk-RRDWXNBQ.js.map} +0 -0
- /package/dist/{chunk-6MFH4BMK.js.map → chunk-SJJQKNMP.js.map} +0 -0
- /package/dist/{chunk-EBVBE7UK.js.map → chunk-SZ4N3IL5.js.map} +0 -0
- /package/dist/{chunk-JQ4NEJJ6.js.map → chunk-UA6G45ME.js.map} +0 -0
- /package/dist/{chunk-DAP2XL7Q.js.map → chunk-VOXMU6LB.js.map} +0 -0
- /package/dist/{chunk-YW5DBAPG.js.map → chunk-WUG3E423.js.map} +0 -0
- /package/dist/{chunk-LJXYPGRH.js.map → chunk-XHM2SARW.js.map} +0 -0
- /package/dist/{chunk-RC6SU5NO.js.map → chunk-XSIFXX54.js.map} +0 -0
- /package/dist/{chunk-CXFOITNS.js.map → chunk-ZC7MNVYN.js.map} +0 -0
- /package/dist/{chunk-6T2UDBKG.js.map → chunk-ZCFS7U4J.js.map} +0 -0
- /package/dist/{crypto-2CRLG4F4.js.map → crypto-AJB72OKN.js.map} +0 -0
- /package/dist/{delegation-ZTRT2PRV.js.map → delegation-6FCWDRUS.js.map} +0 -0
- /package/dist/{executor-S76VN45G.js.map → executor-7KSCEIFA.js.map} +0 -0
- /package/dist/{executor-UCXLIGLW.js.map → executor-D2QMNGRJ.js.map} +0 -0
- /package/dist/{executor-ZCNZJMGR.js.map → executor-O5AZK7UW.js.map} +0 -0
- /package/dist/{fanout-sidecar-F3ZRFU4H.js.map → fanout-sidecar-ZSKEQ6NI.js.map} +0 -0
- /package/dist/{issue-IVTVSKWW.js.map → issue-YIYG4OW5.js.map} +0 -0
- /package/dist/{ledger-NYCGJX2D.js.map → ledger-5JMVF7PY.js.map} +0 -0
- /package/dist/{noydb-SH4RLE47.js.map → noydb-D5SLAJ6V.js.map} +0 -0
- /package/dist/{public-envelope-QOXZEHKH.js.map → public-envelope-PFLZI5MO.js.map} +0 -0
- /package/dist/{registry-ST2VNFZC.js.map → registry-BVQ5ITMF.js.map} +0 -0
- /package/dist/{registry-UFIK7CSR.js.map → registry-JLP3QOLD.js.map} +0 -0
- /package/dist/{registry-ZGYYSM5I.js.map → registry-NCY445U5.js.map} +0 -0
- /package/dist/{revoke-RT7QYB4G.js.map → revoke-7RLGQWZ7.js.map} +0 -0
- /package/dist/{signer-QNU66JF5.js.map → signer-6JF44I4A.js.map} +0 -0
- /package/dist/{stale-VKXSXJF4.js.map → stale-UBLP3RJ3.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { b3 as NoydbStore, bF as UserEnvelope, br as PublicEnvelope, bG as GateName, bH as GatePolicy, bI as VaultPolicy, bJ as ActiveTier, bK as FactorProof, bL as SchemaUpdateStrategy, bM as TransformFn, bN as PersistedSchemaEnvelope, bO as UpdateDecision, bP as DirectoryConfig, bQ as UserVisibility, b1 as UnlockedKeyring, bw as Vault, ba as DiffEntry } from './types-
|
|
2
|
-
export { bR as AccessibleVault, bS as AffectedDocument, b7 as AppendInput, aP as ArrayOutputSpec, z as BLOB_CHUNKS_COLLECTION, A as BLOB_COLLECTION, E as BLOB_INDEX_COLLECTION, F as BLOB_SLOTS_PREFIX, G as BLOB_VERSIONS_PREFIX,
|
|
1
|
+
import { b3 as NoydbStore, bF as UserEnvelope, br as PublicEnvelope, bG as GateName, bH as GatePolicy, bI as VaultPolicy, bJ as ActiveTier, bK as FactorProof, bL as SchemaUpdateStrategy, bM as TransformFn, bN as PersistedSchemaEnvelope, bO as UpdateDecision, bP as DirectoryConfig, bQ as UserVisibility, b1 as UnlockedKeyring, bw as Vault, ba as DiffEntry } from './types-BGwjsDef.cjs';
|
|
2
|
+
export { bR as AccessibleVault, bS as AffectedDocument, b7 as AppendInput, bT as ArchivePolicy, bU as ArchiveResult, bV as ArchiveRunOptions, bW as ArchiveStrategy, aP as ArrayOutputSpec, z as BLOB_CHUNKS_COLLECTION, A as BLOB_COLLECTION, E as BLOB_INDEX_COLLECTION, F as BLOB_SLOTS_PREFIX, G as BLOB_VERSIONS_PREFIX, bX as BUNDLE_STORE_POLICY, M as BlobObject, N as BlobPutOptions, Q as BlobResponseOptions, T as BlobSet, bY as BuiltInGateName, bt as BundleRecipient, a9 as CONSENT_AUDIT_COLLECTION, bZ as CacheOptions, b_ as CacheStats, b$ as ChangeEvent, b8 as ChangeType, ai as ClosePeriodOptions, aY as Collection, c0 as CollectionChangeEvent, c1 as CollectionConflictResolver, c2 as CollectionDescriptor, az as CollectionFrame, b9 as CollectionInstant, c3 as CollectionStats, c4 as ComputedFieldError, c5 as ComputedFields, c6 as ComputedFn, c7 as Conflict, c8 as ConflictPolicy, c9 as ConflictStrategy, aa as ConsentAuditEntry, ab as ConsentAuditFilter, ac as ConsentContext, ad as ConsentOp, ca as CrossTierAccessEvent, cb as CrossVaultAggregation, cc as CrossVaultGroupedAggregation, cd as CrossVaultGroupedRow, ce as CrossVaultLiveAggregation, cf as CrossVaultLiveQuery, Y as DEFAULT_CHUNK_SIZE, cg as DEFAULT_PUBLIC_ENVELOPE_SCHEMA, ch as DELEGATIONS_COLLECTION, D as DICT_COLLECTION_PREFIX, ci as DeepPartial, cj as DeepPartialOrNull, ck as DelegationToken, cl as DeleteManyResult, cm as DerivationDescriptor, aN as DerivationStrategy, aR as DerivationStrategyHandle, aS as DerivedFromMeta, a as DictEntry, b as DictKeyDescriptor, c as DictionaryHandle, d as DictionaryOptions, cn as DirtyEntry, co as DryRunResult, cp as DumpSchemaOptions, cq as ELEVATION_AUDIT_COLLECTION, cr as ElevatedHandle, b5 as EncryptedEnvelope, cs as EnrollAuthenticatorOptions, ct as EnrollAuthenticatorWrappingDEKsOptions, cu as EnrollAuthenticatorWrappingKEKOptions, cv as EnrollRecoveryResult, cw as ExportCapability, cx as ExportChunk, cy as ExportFormat, cz as ExportStreamOptions, cA as FactorKind, cB as FactorProofBundle, cC as FactorRequirement, cD as FanoutQueryOptions, cE as FanoutResult, cF as FenceDoc, cG as FenceState, cH as FieldChange, cI as FieldDescriptor, cJ as FieldSource, cK as GhostRecord, cL as GrantOptions, at as GuardChange, au as GuardContext, as as GuardStrategy, aw as GuardStrategyHandle, cM as GuardViolation, cN as HistoryConfig, cO as HistoryEntry, b4 as HistoryOptions, e as I18nMap, f as I18nTextDescriptor, g as I18nTextOptions, cP as INDEXED_STORE_POLICY, cQ as ImportCapability, cR as InferOutput, cS as InternalCollectionStats, cT as IssueDelegationOptions, cU as IssueMagicLinkGrantOptions, bb as JsonPatch, bc as JsonPatchOp, cV as KeyringAuthenticator, cW as KeyringAuthenticatorWrappingDEKs, cX as KeyringAuthenticatorWrappingKEK, cY as KeyringFile, L as Layer, bd as LedgerEntry, be as LedgerStore, cZ as ListAccessibleVaultsOptions, c_ as ListPageResult, c$ as ListUsersOptions, d0 as LiveQueryOptions, d1 as LiveUserEnvelope, d2 as LocaleReadOptions, d3 as Lru, d4 as LruOptions, d5 as LruStats, d6 as MAGIC_LINK_CONTENT_INFO_PREFIX, d7 as MAGIC_LINK_GRANTS_COLLECTION, d8 as MAGIC_LINK_KEK_INFO_PREFIX, d9 as MagicLinkGrantPayload, da as MagicLinkGrantRecord, bC as MaterializedFromMeta, db as MaterializedViewDescriptor, bD as MaterializedViewOutput, aV as MaterializedViewStrategy, aW as MaterializedViewStrategyHandle, dc as MemoryRecipientSealer, dd as MemorySealingKeyProvider, de as NOYDB_BACKUP_VERSION, df as NOYDB_FORMAT_VERSION, dg as NOYDB_KEYRING_VERSION, dh as NOYDB_SYNC_VERSION, di as Noydb, aB as NoydbBundleStore, dj as NoydbEventMap, dk as NoydbOptions, O as OnMissing, h as OnMissingPolicy, aj as OpenPeriodOptions, aT as OutputSpec, dl as OverlayViewDescriptor, aX as OverlayedViewStrategy, a_ as OverlayedViewStrategyHandle, ak as PERIODS_COLLECTION, dm as PUBLIC_ENVELOPE_FIELDS, dn as PaperRecoveryDoc, dp as PaperRecoveryEntry, dq as PassphrasePolicy, dr as PassphraseValidationResult, al as PeriodRecord, ds as Permission, dt as Permissions, du as PersistedSchemaKind, dv as PlaintextTranslatorContext, dw as PlaintextTranslatorFn, P as PolicyEnforcer, dx as PresenceHandle, dy as PresencePeer, b6 as PruneOptions, dz as PublicEnvelopeField, dA as PublicEnvelopeSchema, dB as PublicEnvelopeText, dC as PullMode, dD as PullOptions, dE as PullPolicy, dF as PullResult, dG as PushMode, dH as PushOptions, dI as PushPolicy, dJ as PushResult, dK as PutManyItemOptions, dL as PutManyOptions, dM as PutManyResult, dN as QueryAcrossOptions, dO as QueryAcrossResult, dP as QuickUnlockState, dQ as QuickUnlockStore, dR as ReAuthOperation, bv as RecipientHint, bu as RecipientSealer, aU as RecordOutputSpec, dS as RecoverPassphraseInput, dT as RecoverPassphraseResult, dU as RecoverUserOptions, dV as RecoveryProof, R as ResolveI18nOptions, dW as ResolvedPublicEnvelopeSchema, aC as RetentionPolicy, dX as RevokeOptions, b0 as Role, dY as RotatePassphraseInput, dZ as RotateRecoveryOptions, d_ as RotateRecoveryResult, d$ as SEALED_PASSPHRASE_RECORD_ID, e0 as SchemaDelta, e1 as SchemaIntrospection, S as ScriptWarning, e2 as SealedEnvelope, e3 as SealedPassphrase, bs as SealingKeyProvider, e4 as SequenceHandle, e5 as SequenceStore, e6 as SessionPolicy, e7 as SetPublicEnvelopeInput, e8 as ShamirRecoveryDoc, e9 as ShamirRecoveryEntry, by as ShamirRecoveryProvider, ea as ShardedCollection, eb as ShardedGroupedQuery, ec as ShardedQuery, ed as ShardingConfig, ee as SkippedVault, a3 as SlotInfo, a4 as SlotRecord, ef as SlotRewrapCeremony, eg as SlotRewrapContext, aF as SnapshotMeta, eh as StandardSchemaV1, ei as StandardSchemaV1Issue, ej as StandardSchemaV1SyncResult, ek as StoreAuth, el as StoreAuthKind, em as StoreCapabilities, en as SyncEngine, eo as SyncMetadata, ep as SyncPolicy, eq as SyncScheduler, er as SyncSchedulerStatus, es as SyncStatus, et as SyncTarget, eu as SyncTargetRole, ev as SyncTransaction, ew as SyncTransactionResult, ex as TabChannel, ey as TabCoordinationOptions, ez as TabLockManager, eA as TabPresence, eB as TabRole, eC as TierMode, eD as TranslatorAuditEntry, aJ as TxCollection, aK as TxContext, eE as TxOp, aL as TxVault, eF as USER_ENVELOPE_COLLECTION, eG as USER_ENVELOPE_MAX_BYTES, bE as UnionSource, eH as Unsubscribe, eI as UpdateAuthenticatorOptions, eJ as UpdateContext, eK as UpdateUserOptions, eL as UserApi, eM as UserEnvelopeCheckGate, eN as UserEnvelopeOversizedError, eO as UserEnvelopePresented, eP as UserInfo, eQ as VaultBackup, bf as VaultEngine, aA as VaultFrame, eR as VaultGroup, eS as VaultGroupOptions, bg as VaultInstant, eT as VaultPolicyOnDisk, eU as VaultRegistryRow, eV as VaultSchemaSnapshot, eW as VaultSnapshot, eX as VaultTemplate, bh as VerifyResult, a5 as VersionRecord, eY as WarningRules, eZ as WeakPassphraseError, e_ as WeakPassphraseReason, e$ as WithArchiveOptions, f0 as WrappedDeksBlob, f1 as WriteConflict, f2 as WriteEvent, f3 as WriteHook, f4 as WriteQueue, i as applyI18nLocale, bi as applyPatch, f5 as assertStrongPassphrase, f6 as buildRecipientKeyringFile, f7 as burnPaperRecoveryEntry, bj as canonicalJson, bk as computePatch, x as createEnforcer, f8 as createNoydb, f9 as createStore, fa as deriveMagicLinkContentKey, j as dictCollectionName, k as dictKey, bl as diff, l as enforceScript, fb as enrollAuthenticator, fc as estimateEntropy, fd as evalComputedFields, fe as evaluateExportCapability, ff as evaluateImportCapability, fg as findAuthenticator, bm as formatDiff, fh as hasExportCapability, fi as hasImportCapability, fj as hasRecoveryEnrolled, bn as hashEntry, n as i18nText, o as inferScripts, p as isDictCollectionName, q as isDictKeyDescriptor, r as isI18nTextDescriptor, fk as isMagicLinkGrantExpired, fl as isPublicEnvelope, fm as issueDelegation, fn as keyringRecoverPassphrase, fo as keyringRotatePassphrase, fp as listMagicLinkGrants, fq as listUsers, fr as listUsersWithEnvelopes, fs as loadActiveDelegations, ft as loadPaperRecoveryEntries, fu as loadSealedPassphrase, fv as loadShamirRecoveryEntries, fw as magicLinkGrantRecordId, fx as mintPaperRecoveryEntry, fy as mintShamirRecoveryEntry, fz as mintWrappedDeksBlob, bo as paddedIndex, bp as parseIndex, fA as parseSealedEnvelope, fB as readMagicLinkGrantRecord, fC as recoverUser, fD as removeAuthenticator, s as resolveI18nText, t as resolvePolicy, fE as resolvePublicEnvelopeSchema, fF as revokeDelegation, fG as revokeMagicLinkGrant, aM as runTransaction, fH as savePaperRecoveryEntries, fI as saveSealedPassphrase, fJ as saveShamirRecoveryEntries, bq as sha256Hex, fK as unwrapDeksFromBlob, fL as unwrapDeksFromPaperEntry, fM as unwrapDeksFromShamirEntry, fN as unwrapMagicLinkGrant, v as validateI18nTextValue, fO as validatePassphrase, fP as validatePublicEnvelopeInput, fQ as validateSchemaInput, fR as validateSchemaOutput, y as validateSessionPolicy, fS as withArchive, fT as writeMagicLinkGrant } from './types-BGwjsDef.cjs';
|
|
3
3
|
export { d as detectMagic, a as detectMimeType, i as isPreCompressed } from './mime-magic-CBBSOkjm.cjs';
|
|
4
4
|
export { AgeRoute, BlobLifecyclePolicy, BlobStoreRoute, CircuitBreakerOptions, HealthCheckOptions, LogLevel, LoggingOptions, MetricsOptions, OverrideOptions, OverrideTarget, RetryOptions, RouteStatus, RouteStoreOptions, RoutedNoydbStore, StoreCacheOptions, StoreMiddleware, StoreOperation, SuspendOptions, WrapBundleStoreOptions, WrappedBundleNoydbStore, createBundleStore, routeStore, withCache, withCircuitBreaker, withHealthCheck, withLogging, withMetrics, withRetry, wrapBundleStore, wrapStore } from './store/index.cjs';
|
|
5
|
-
import {
|
|
6
|
-
export {
|
|
7
|
-
export { A as AutoCredential, n as AutoCredentialKind, c as CompressionAlgo, N as NOYDB_BUNDLE_FORMAT_VERSION, e as NOYDB_BUNDLE_MAGIC, f as NOYDB_BUNDLE_PREFIX_BYTES, g as NoydbBundleHeader, h as NoydbBundleReadResult, R as ReadNoydbBundleOptions, W as WriteNoydbBundleOptions, j as generateULID, o as hasNoydbBundleMagic, k as isULID, r as readNoydbBundle, l as readNoydbBundleHeader, p as readNoydbBundlePublicEnvelope, m as resetBrotliSupportCache, w as writeNoydbBundle } from './ulid-
|
|
5
|
+
import { a7 as NoydbError } from './strategy-rtpKDfTC.cjs';
|
|
6
|
+
export { e as AggregateResult, f as AggregateSpec, g as Aggregation, h as AggregationUpstream, a8 as AlreadyElevatedError, B as AmendmentForbiddenError, W as AttestationError, Y as BackupCorruptedError, Z as BackupLedgerError, _ as BundleIntegrityError, $ as BundleSealMismatchError, a0 as BundleVersionConflictError, a9 as ConflictError, aa as CrossJoinSourceUnknownError, ab as CrossJoinTooLargeError, ac as DanglingReferenceError, ad as DecryptionError, ae as DelegationTargetMissingError, H as DerivationCapExceededError, J as DerivationCycleError, K as DerivationDepthError, N as DerivationOutputShapeError, O as DerivationOutputUnknownError, D as DictKeyInUseError, a as DictKeyMissingError, af as DirectoryDisabledError, ag as ElevationExpiredError, ah as ExportCapabilityError, F as FieldFrozenError, ai as FilenameSanitizationError, G as GROUPBY_MAX_CARDINALITY, i as GROUPBY_WARN_CARDINALITY, aj as GroupCardinalityError, j as GroupedAggregation, k as GroupedQuery, l as GroupedQueryN, m as GroupedRow, n as GroupedRowN, ak as ImportCapabilityError, al as IndexRequiredError, am as IndexWriteFailureError, an as InvalidKeyError, I as InvariantError, ao as JoinTooLargeError, ap as KeyringCorruptError, aq as KeyringExpiredError, ar as LedgerContentionError, o as LiveAggregation, L as LocaleNotSpecifiedError, a3 as MaterializedViewConfigError, a4 as MaterializedViewCycleError, a5 as MaterializedViewSourceUnknownError, a6 as MaterializedViewTooLargeError, as as MigrationRequiredError, M as MissingTranslationError, at as MoneyCurrencyError, au as MoneyDescriptor, av as MoneyOptions, aw as MoneyOptionsFixed, ax as MoneyOptionsMulti, ay as MoneyPrecisionError, az as MoneyUnsupportedError, aA as NetworkError, aB as NoAccessError, aC as NonAdditiveSchemaChangeError, aD as NotFoundError, P as OverlayBaseIsVirtualError, Q as OverlayCollectionUnavailableError, U as OverlayIdMismatchError, V as OverlayNameCollisionError, aE as PathEscapeError, aF as PeriodClosedError, aG as PermissionDeniedError, aH as PrivilegeEscalationError, aI as QuiesceTimeoutError, aJ as ReadOnlyAtInstantError, aK as ReadOnlyError, aL as ReadOnlyFrameError, C as RecordLockedError, p as Reducer, q as ReducerOptions, R as ReservedCollectionNameError, aM as RoundingMode, aN as SchemaFenceError, aO as SchemaLockedError, aP as SchemaUpdateError, aQ as SchemaValidationError, S as ScriptViolationError, aR as SequenceContentionError, aS as SequenceOfflineError, b as SessionExpiredError, c as SessionNotFoundError, d as SessionPolicyError, aT as ShardProvisioningError, E as SnapshotNotFoundError, aU as StoreCapabilityError, aV as TamperedError, aW as TierDemoteDeniedError, aX as TierNotGrantedError, T as TranslatorNotConfiguredError, aY as UniqueConstraintError, aZ as UnknownShardError, a_ as UnsupportedIndexOptionError, a$ as ValidationError, b0 as VaultTemplateNotFoundError, r as avg, t as count, u as groupAndReduce, b1 as isMoneyDescriptor, v as max, w as min, b2 as money, x as reduceRecords, z as sum } from './strategy-rtpKDfTC.cjs';
|
|
7
|
+
export { A as AutoCredential, n as AutoCredentialKind, c as CompressionAlgo, N as NOYDB_BUNDLE_FORMAT_VERSION, e as NOYDB_BUNDLE_MAGIC, f as NOYDB_BUNDLE_PREFIX_BYTES, g as NoydbBundleHeader, h as NoydbBundleReadResult, R as ReadNoydbBundleOptions, W as WriteNoydbBundleOptions, j as generateULID, o as hasNoydbBundleMagic, k as isULID, r as readNoydbBundle, l as readNoydbBundleHeader, p as readNoydbBundlePublicEnvelope, m as resetBrotliSupportCache, w as writeNoydbBundle } from './ulid-D4d0Xto3.cjs';
|
|
8
|
+
export { D as DEFAULT_CROSS_JOIN_MAX_ROWS, a as DEFAULT_JOIN_MAX_ROWS, J as JoinContext, b as JoinLeg, c as JoinStrategy, d as JoinableSource, L as LiveQuery, e as LiveUpstream, O as OrderBy, Q as Query, f as QueryPlan, g as QuerySource, R as RefDescriptor, h as RefIntegrityError, i as RefMode, j as RefRegistry, k as RefScopeError, l as RefViolation, S as ScanBuilder, m as ScanPageProvider, n as applyJoins, o as buildLiveQuery, p as executePlan, r as ref, q as resetJoinWarnings } from './index-Cmop06zJ.cjs';
|
|
8
9
|
export { a as CrdtMode, b as CrdtState, L as LwwMapState, R as RgaState, Y as YjsState, m as mergeCrdtStates, r as resolveCrdtSnapshot } from './strategy-BSxFXGzb.cjs';
|
|
9
|
-
export { w as withGuard } from './
|
|
10
|
-
export { w as withDerivation } from './with-derivation-
|
|
11
|
-
export { w as withMaterializedView } from './with-materialized-view-
|
|
10
|
+
export { I as ImmutableGuardConfig, i as immutableGuard, w as withGuard } from './immutable-guard-C51vAHuh.cjs';
|
|
11
|
+
export { w as withDerivation } from './with-derivation-CB1EdcFF.cjs';
|
|
12
|
+
export { w as withMaterializedView } from './with-materialized-view-CzRg1Dpr.cjs';
|
|
12
13
|
export { a as Clause, C as CollectionIndexes, F as FieldClause, b as FilterClause, G as GroupClause, H as HashIndex, I as IndexDef, O as Operator, e as evaluateClause, c as evaluateFieldClause, r as readPath } from './predicate-Bt5ft-9c.cjs';
|
|
13
|
-
export { w as withOverlayedView } from './with-overlayed-view-
|
|
14
|
+
export { w as withOverlayedView } from './with-overlayed-view-C9YFKXzn.cjs';
|
|
14
15
|
export { SYNC_CREDENTIALS_COLLECTION, SyncCredential, credentialStatus, deleteCredential, getCredential, listCredentials, putCredential } from './team/index.cjs';
|
|
15
|
-
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-
|
|
16
|
+
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-ckqa_Nso.cjs';
|
|
16
17
|
export { i as isDiscriminant } from './discriminant-BN9REW3o.cjs';
|
|
17
|
-
export {
|
|
18
|
-
export { L as LEDGER_COLLECTION, a as LEDGER_DELTAS_COLLECTION, e as envelopePayloadHash } from './hash-_sDFvtmX.cjs';
|
|
18
|
+
export { L as LEDGER_COLLECTION, a as LEDGER_DELTAS_COLLECTION, e as envelopePayloadHash } from './hash-rDSSd_oW.cjs';
|
|
19
19
|
import './lazy-builder-Ci5_YG73.cjs';
|
|
20
20
|
import '@noy-db/attestation';
|
|
21
21
|
|
|
@@ -620,6 +620,39 @@ declare function decryptDeterministic(ivBase64: string, dataBase64: string, dek:
|
|
|
620
620
|
declare function bufferToBase64(buffer: ArrayBuffer | Uint8Array): string;
|
|
621
621
|
declare function base64ToBuffer(base64: string): Uint8Array<ArrayBuffer>;
|
|
622
622
|
|
|
623
|
+
/**
|
|
624
|
+
* Return the ISO-4217 minor-unit scale for a currency code, or `null`
|
|
625
|
+
* when the code is not in the known set (caller must supply an explicit
|
|
626
|
+
* scale).
|
|
627
|
+
*/
|
|
628
|
+
declare function scaleForCurrency(code: string): number | null;
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* Money-aware aggregation: exact `sum` / `min` / `max` over money
|
|
632
|
+
* fields.
|
|
633
|
+
*
|
|
634
|
+
* The generic reducers (`aggregate/reducers.ts`) read a field via
|
|
635
|
+
* `readNumber`, which coerces a string (the stored scaled-integer form
|
|
636
|
+
* of money, e.g. `'12345'`) to `0` — so an un-wrapped money `sum` would
|
|
637
|
+
* silently return zero. {@link wrapMoneyReducers} rewrites any `sum` /
|
|
638
|
+
* `min` / `max` over a declared money field into a reducer that
|
|
639
|
+
* accumulates per-currency `BigInt` totals of the stored integers, so
|
|
640
|
+
* the result is exact for any magnitude (past `Number.MAX_SAFE_INTEGER`
|
|
641
|
+
* included).
|
|
642
|
+
*
|
|
643
|
+
* Results are currency-aware and never silently mix currencies:
|
|
644
|
+
* - **fixed** mode → a single exact decimal string.
|
|
645
|
+
* - **multi** mode → an exact `Record<currency, string>` map.
|
|
646
|
+
* - **`sum` with `convertTo` + `fx`** → a single exact string, with
|
|
647
|
+
* each currency converted via BigInt arithmetic (no float).
|
|
648
|
+
*
|
|
649
|
+
* `remove()` is implemented for every money reducer so they participate
|
|
650
|
+
* in incremental live-aggregation and materialized-view maintenance
|
|
651
|
+
* exactly like the generic reducers they replace.
|
|
652
|
+
*/
|
|
653
|
+
|
|
654
|
+
type FxRates = Record<string, number | string>;
|
|
655
|
+
|
|
623
656
|
/**
|
|
624
657
|
* Hierarchical access — tier-aware keyring helpers.
|
|
625
658
|
*
|
|
@@ -774,4 +807,4 @@ type DiffCandidate<T = unknown> = Vault | Record<string, readonly T[]> | string;
|
|
|
774
807
|
*/
|
|
775
808
|
declare function diffVault<T = unknown>(vault: Vault, candidate: DiffCandidate<T>, options?: DiffOptions): Promise<VaultDiff<T>>;
|
|
776
809
|
|
|
777
|
-
export { ActiveTier, type CheckGateContext, DEFAULT_FRESHNESS_MS, DIRECTORY_RECORD_ID, type DiffCandidate, DiffEntry, type DiffOptions, DirectoryConfig, FactorProof, GateName, GatePolicy, META_COLLECTION, ManagedRecoveryNotEnrolledError, NoydbError, NoydbStore, PERSONAL_POLICY, POLICY_RECORD_ID, PUBLIC_ENVELOPE_RECORD_ID, type PersistSchemaResult, PersistedSchemaEnvelope, PolicyDeniedError, type PolicyDenyReason, PublicEnvelope, RecoveryNotEnrolledError, RecoveryProfileNotImplementedError, SCHEMAS_COLLECTION, STRICT_POLICY, SchemaUpdateStrategy, UnlockedKeyring, UpdateDecision, UserEnvelope, UserVisibility, VISIBILITY_RECORD_PREFIX, Vault, type VaultDiff, type VaultDiffEntry, type VaultDiffModifiedEntry, VaultPolicy, additiveOnly, assertTierAccess, base64ToBuffer, blindUpdate, bufferToBase64, checkGate, coordinatedCutover, decryptBytes, decryptDeterministic, dekKey, deleteUserEnvelope, deleteUserVisibility, derivePersistedSchema, derivePresenceKey, describeAllUsersAuth, describeAuthConfig, describeGate, describeUserAuth, diagramAuthConfig, diffVault, effectiveClearance, encryptBytes, encryptDeterministic, estimateRecordBytes, isZodSchema, listUserEnvelopeIds, loadPersistedSchema, loadPublicEnvelope, loadUserEnvelope, loadVaultPolicy, lockSchema, mergePolicy, parseBytes, persistDirectoryConfig, persistSchemaIfNeeded, persistUserVisibility, readDirectoryConfig, readPublicEnvelope, readUserVisibility, savePersistedSchema, savePublicEnvelope, saveUserEnvelope, saveVaultPolicy, visibilityRecordId };
|
|
810
|
+
export { ActiveTier, type CheckGateContext, DEFAULT_FRESHNESS_MS, DIRECTORY_RECORD_ID, type DiffCandidate, DiffEntry, type DiffOptions, DirectoryConfig, FactorProof, type FxRates, GateName, GatePolicy, META_COLLECTION, ManagedRecoveryNotEnrolledError, NoydbError, NoydbStore, PERSONAL_POLICY, POLICY_RECORD_ID, PUBLIC_ENVELOPE_RECORD_ID, type PersistSchemaResult, PersistedSchemaEnvelope, PolicyDeniedError, type PolicyDenyReason, PublicEnvelope, RecoveryNotEnrolledError, RecoveryProfileNotImplementedError, SCHEMAS_COLLECTION, STRICT_POLICY, SchemaUpdateStrategy, UnlockedKeyring, UpdateDecision, UserEnvelope, UserVisibility, VISIBILITY_RECORD_PREFIX, Vault, type VaultDiff, type VaultDiffEntry, type VaultDiffModifiedEntry, VaultPolicy, additiveOnly, assertTierAccess, base64ToBuffer, blindUpdate, bufferToBase64, checkGate, coordinatedCutover, decryptBytes, decryptDeterministic, dekKey, deleteUserEnvelope, deleteUserVisibility, derivePersistedSchema, derivePresenceKey, describeAllUsersAuth, describeAuthConfig, describeGate, describeUserAuth, diagramAuthConfig, diffVault, effectiveClearance, encryptBytes, encryptDeterministic, estimateRecordBytes, isZodSchema, listUserEnvelopeIds, loadPersistedSchema, loadPublicEnvelope, loadUserEnvelope, loadVaultPolicy, lockSchema, mergePolicy, parseBytes, persistDirectoryConfig, persistSchemaIfNeeded, persistUserVisibility, readDirectoryConfig, readPublicEnvelope, readUserVisibility, savePersistedSchema, savePublicEnvelope, saveUserEnvelope, saveVaultPolicy, scaleForCurrency, visibilityRecordId };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { b3 as NoydbStore, bF as UserEnvelope, br as PublicEnvelope, bG as GateName, bH as GatePolicy, bI as VaultPolicy, bJ as ActiveTier, bK as FactorProof, bL as SchemaUpdateStrategy, bM as TransformFn, bN as PersistedSchemaEnvelope, bO as UpdateDecision, bP as DirectoryConfig, bQ as UserVisibility, b1 as UnlockedKeyring, bw as Vault, ba as DiffEntry } from './types-
|
|
2
|
-
export { bR as AccessibleVault, bS as AffectedDocument, b7 as AppendInput, aP as ArrayOutputSpec, z as BLOB_CHUNKS_COLLECTION, A as BLOB_COLLECTION, E as BLOB_INDEX_COLLECTION, F as BLOB_SLOTS_PREFIX, G as BLOB_VERSIONS_PREFIX,
|
|
1
|
+
import { b3 as NoydbStore, bF as UserEnvelope, br as PublicEnvelope, bG as GateName, bH as GatePolicy, bI as VaultPolicy, bJ as ActiveTier, bK as FactorProof, bL as SchemaUpdateStrategy, bM as TransformFn, bN as PersistedSchemaEnvelope, bO as UpdateDecision, bP as DirectoryConfig, bQ as UserVisibility, b1 as UnlockedKeyring, bw as Vault, ba as DiffEntry } from './types-DRdfwgTG.js';
|
|
2
|
+
export { bR as AccessibleVault, bS as AffectedDocument, b7 as AppendInput, bT as ArchivePolicy, bU as ArchiveResult, bV as ArchiveRunOptions, bW as ArchiveStrategy, aP as ArrayOutputSpec, z as BLOB_CHUNKS_COLLECTION, A as BLOB_COLLECTION, E as BLOB_INDEX_COLLECTION, F as BLOB_SLOTS_PREFIX, G as BLOB_VERSIONS_PREFIX, bX as BUNDLE_STORE_POLICY, M as BlobObject, N as BlobPutOptions, Q as BlobResponseOptions, T as BlobSet, bY as BuiltInGateName, bt as BundleRecipient, a9 as CONSENT_AUDIT_COLLECTION, bZ as CacheOptions, b_ as CacheStats, b$ as ChangeEvent, b8 as ChangeType, ai as ClosePeriodOptions, aY as Collection, c0 as CollectionChangeEvent, c1 as CollectionConflictResolver, c2 as CollectionDescriptor, az as CollectionFrame, b9 as CollectionInstant, c3 as CollectionStats, c4 as ComputedFieldError, c5 as ComputedFields, c6 as ComputedFn, c7 as Conflict, c8 as ConflictPolicy, c9 as ConflictStrategy, aa as ConsentAuditEntry, ab as ConsentAuditFilter, ac as ConsentContext, ad as ConsentOp, ca as CrossTierAccessEvent, cb as CrossVaultAggregation, cc as CrossVaultGroupedAggregation, cd as CrossVaultGroupedRow, ce as CrossVaultLiveAggregation, cf as CrossVaultLiveQuery, Y as DEFAULT_CHUNK_SIZE, cg as DEFAULT_PUBLIC_ENVELOPE_SCHEMA, ch as DELEGATIONS_COLLECTION, D as DICT_COLLECTION_PREFIX, ci as DeepPartial, cj as DeepPartialOrNull, ck as DelegationToken, cl as DeleteManyResult, cm as DerivationDescriptor, aN as DerivationStrategy, aR as DerivationStrategyHandle, aS as DerivedFromMeta, a as DictEntry, b as DictKeyDescriptor, c as DictionaryHandle, d as DictionaryOptions, cn as DirtyEntry, co as DryRunResult, cp as DumpSchemaOptions, cq as ELEVATION_AUDIT_COLLECTION, cr as ElevatedHandle, b5 as EncryptedEnvelope, cs as EnrollAuthenticatorOptions, ct as EnrollAuthenticatorWrappingDEKsOptions, cu as EnrollAuthenticatorWrappingKEKOptions, cv as EnrollRecoveryResult, cw as ExportCapability, cx as ExportChunk, cy as ExportFormat, cz as ExportStreamOptions, cA as FactorKind, cB as FactorProofBundle, cC as FactorRequirement, cD as FanoutQueryOptions, cE as FanoutResult, cF as FenceDoc, cG as FenceState, cH as FieldChange, cI as FieldDescriptor, cJ as FieldSource, cK as GhostRecord, cL as GrantOptions, at as GuardChange, au as GuardContext, as as GuardStrategy, aw as GuardStrategyHandle, cM as GuardViolation, cN as HistoryConfig, cO as HistoryEntry, b4 as HistoryOptions, e as I18nMap, f as I18nTextDescriptor, g as I18nTextOptions, cP as INDEXED_STORE_POLICY, cQ as ImportCapability, cR as InferOutput, cS as InternalCollectionStats, cT as IssueDelegationOptions, cU as IssueMagicLinkGrantOptions, bb as JsonPatch, bc as JsonPatchOp, cV as KeyringAuthenticator, cW as KeyringAuthenticatorWrappingDEKs, cX as KeyringAuthenticatorWrappingKEK, cY as KeyringFile, L as Layer, bd as LedgerEntry, be as LedgerStore, cZ as ListAccessibleVaultsOptions, c_ as ListPageResult, c$ as ListUsersOptions, d0 as LiveQueryOptions, d1 as LiveUserEnvelope, d2 as LocaleReadOptions, d3 as Lru, d4 as LruOptions, d5 as LruStats, d6 as MAGIC_LINK_CONTENT_INFO_PREFIX, d7 as MAGIC_LINK_GRANTS_COLLECTION, d8 as MAGIC_LINK_KEK_INFO_PREFIX, d9 as MagicLinkGrantPayload, da as MagicLinkGrantRecord, bC as MaterializedFromMeta, db as MaterializedViewDescriptor, bD as MaterializedViewOutput, aV as MaterializedViewStrategy, aW as MaterializedViewStrategyHandle, dc as MemoryRecipientSealer, dd as MemorySealingKeyProvider, de as NOYDB_BACKUP_VERSION, df as NOYDB_FORMAT_VERSION, dg as NOYDB_KEYRING_VERSION, dh as NOYDB_SYNC_VERSION, di as Noydb, aB as NoydbBundleStore, dj as NoydbEventMap, dk as NoydbOptions, O as OnMissing, h as OnMissingPolicy, aj as OpenPeriodOptions, aT as OutputSpec, dl as OverlayViewDescriptor, aX as OverlayedViewStrategy, a_ as OverlayedViewStrategyHandle, ak as PERIODS_COLLECTION, dm as PUBLIC_ENVELOPE_FIELDS, dn as PaperRecoveryDoc, dp as PaperRecoveryEntry, dq as PassphrasePolicy, dr as PassphraseValidationResult, al as PeriodRecord, ds as Permission, dt as Permissions, du as PersistedSchemaKind, dv as PlaintextTranslatorContext, dw as PlaintextTranslatorFn, P as PolicyEnforcer, dx as PresenceHandle, dy as PresencePeer, b6 as PruneOptions, dz as PublicEnvelopeField, dA as PublicEnvelopeSchema, dB as PublicEnvelopeText, dC as PullMode, dD as PullOptions, dE as PullPolicy, dF as PullResult, dG as PushMode, dH as PushOptions, dI as PushPolicy, dJ as PushResult, dK as PutManyItemOptions, dL as PutManyOptions, dM as PutManyResult, dN as QueryAcrossOptions, dO as QueryAcrossResult, dP as QuickUnlockState, dQ as QuickUnlockStore, dR as ReAuthOperation, bv as RecipientHint, bu as RecipientSealer, aU as RecordOutputSpec, dS as RecoverPassphraseInput, dT as RecoverPassphraseResult, dU as RecoverUserOptions, dV as RecoveryProof, R as ResolveI18nOptions, dW as ResolvedPublicEnvelopeSchema, aC as RetentionPolicy, dX as RevokeOptions, b0 as Role, dY as RotatePassphraseInput, dZ as RotateRecoveryOptions, d_ as RotateRecoveryResult, d$ as SEALED_PASSPHRASE_RECORD_ID, e0 as SchemaDelta, e1 as SchemaIntrospection, S as ScriptWarning, e2 as SealedEnvelope, e3 as SealedPassphrase, bs as SealingKeyProvider, e4 as SequenceHandle, e5 as SequenceStore, e6 as SessionPolicy, e7 as SetPublicEnvelopeInput, e8 as ShamirRecoveryDoc, e9 as ShamirRecoveryEntry, by as ShamirRecoveryProvider, ea as ShardedCollection, eb as ShardedGroupedQuery, ec as ShardedQuery, ed as ShardingConfig, ee as SkippedVault, a3 as SlotInfo, a4 as SlotRecord, ef as SlotRewrapCeremony, eg as SlotRewrapContext, aF as SnapshotMeta, eh as StandardSchemaV1, ei as StandardSchemaV1Issue, ej as StandardSchemaV1SyncResult, ek as StoreAuth, el as StoreAuthKind, em as StoreCapabilities, en as SyncEngine, eo as SyncMetadata, ep as SyncPolicy, eq as SyncScheduler, er as SyncSchedulerStatus, es as SyncStatus, et as SyncTarget, eu as SyncTargetRole, ev as SyncTransaction, ew as SyncTransactionResult, ex as TabChannel, ey as TabCoordinationOptions, ez as TabLockManager, eA as TabPresence, eB as TabRole, eC as TierMode, eD as TranslatorAuditEntry, aJ as TxCollection, aK as TxContext, eE as TxOp, aL as TxVault, eF as USER_ENVELOPE_COLLECTION, eG as USER_ENVELOPE_MAX_BYTES, bE as UnionSource, eH as Unsubscribe, eI as UpdateAuthenticatorOptions, eJ as UpdateContext, eK as UpdateUserOptions, eL as UserApi, eM as UserEnvelopeCheckGate, eN as UserEnvelopeOversizedError, eO as UserEnvelopePresented, eP as UserInfo, eQ as VaultBackup, bf as VaultEngine, aA as VaultFrame, eR as VaultGroup, eS as VaultGroupOptions, bg as VaultInstant, eT as VaultPolicyOnDisk, eU as VaultRegistryRow, eV as VaultSchemaSnapshot, eW as VaultSnapshot, eX as VaultTemplate, bh as VerifyResult, a5 as VersionRecord, eY as WarningRules, eZ as WeakPassphraseError, e_ as WeakPassphraseReason, e$ as WithArchiveOptions, f0 as WrappedDeksBlob, f1 as WriteConflict, f2 as WriteEvent, f3 as WriteHook, f4 as WriteQueue, i as applyI18nLocale, bi as applyPatch, f5 as assertStrongPassphrase, f6 as buildRecipientKeyringFile, f7 as burnPaperRecoveryEntry, bj as canonicalJson, bk as computePatch, x as createEnforcer, f8 as createNoydb, f9 as createStore, fa as deriveMagicLinkContentKey, j as dictCollectionName, k as dictKey, bl as diff, l as enforceScript, fb as enrollAuthenticator, fc as estimateEntropy, fd as evalComputedFields, fe as evaluateExportCapability, ff as evaluateImportCapability, fg as findAuthenticator, bm as formatDiff, fh as hasExportCapability, fi as hasImportCapability, fj as hasRecoveryEnrolled, bn as hashEntry, n as i18nText, o as inferScripts, p as isDictCollectionName, q as isDictKeyDescriptor, r as isI18nTextDescriptor, fk as isMagicLinkGrantExpired, fl as isPublicEnvelope, fm as issueDelegation, fn as keyringRecoverPassphrase, fo as keyringRotatePassphrase, fp as listMagicLinkGrants, fq as listUsers, fr as listUsersWithEnvelopes, fs as loadActiveDelegations, ft as loadPaperRecoveryEntries, fu as loadSealedPassphrase, fv as loadShamirRecoveryEntries, fw as magicLinkGrantRecordId, fx as mintPaperRecoveryEntry, fy as mintShamirRecoveryEntry, fz as mintWrappedDeksBlob, bo as paddedIndex, bp as parseIndex, fA as parseSealedEnvelope, fB as readMagicLinkGrantRecord, fC as recoverUser, fD as removeAuthenticator, s as resolveI18nText, t as resolvePolicy, fE as resolvePublicEnvelopeSchema, fF as revokeDelegation, fG as revokeMagicLinkGrant, aM as runTransaction, fH as savePaperRecoveryEntries, fI as saveSealedPassphrase, fJ as saveShamirRecoveryEntries, bq as sha256Hex, fK as unwrapDeksFromBlob, fL as unwrapDeksFromPaperEntry, fM as unwrapDeksFromShamirEntry, fN as unwrapMagicLinkGrant, v as validateI18nTextValue, fO as validatePassphrase, fP as validatePublicEnvelopeInput, fQ as validateSchemaInput, fR as validateSchemaOutput, y as validateSessionPolicy, fS as withArchive, fT as writeMagicLinkGrant } from './types-DRdfwgTG.js';
|
|
3
3
|
export { d as detectMagic, a as detectMimeType, i as isPreCompressed } from './mime-magic-CBBSOkjm.js';
|
|
4
4
|
export { AgeRoute, BlobLifecyclePolicy, BlobStoreRoute, CircuitBreakerOptions, HealthCheckOptions, LogLevel, LoggingOptions, MetricsOptions, OverrideOptions, OverrideTarget, RetryOptions, RouteStatus, RouteStoreOptions, RoutedNoydbStore, StoreCacheOptions, StoreMiddleware, StoreOperation, SuspendOptions, WrapBundleStoreOptions, WrappedBundleNoydbStore, createBundleStore, routeStore, withCache, withCircuitBreaker, withHealthCheck, withLogging, withMetrics, withRetry, wrapBundleStore, wrapStore } from './store/index.js';
|
|
5
|
-
import {
|
|
6
|
-
export {
|
|
7
|
-
export { A as AutoCredential, n as AutoCredentialKind, c as CompressionAlgo, N as NOYDB_BUNDLE_FORMAT_VERSION, e as NOYDB_BUNDLE_MAGIC, f as NOYDB_BUNDLE_PREFIX_BYTES, g as NoydbBundleHeader, h as NoydbBundleReadResult, R as ReadNoydbBundleOptions, W as WriteNoydbBundleOptions, j as generateULID, o as hasNoydbBundleMagic, k as isULID, r as readNoydbBundle, l as readNoydbBundleHeader, p as readNoydbBundlePublicEnvelope, m as resetBrotliSupportCache, w as writeNoydbBundle } from './ulid-
|
|
5
|
+
import { a7 as NoydbError } from './strategy-rtpKDfTC.js';
|
|
6
|
+
export { e as AggregateResult, f as AggregateSpec, g as Aggregation, h as AggregationUpstream, a8 as AlreadyElevatedError, B as AmendmentForbiddenError, W as AttestationError, Y as BackupCorruptedError, Z as BackupLedgerError, _ as BundleIntegrityError, $ as BundleSealMismatchError, a0 as BundleVersionConflictError, a9 as ConflictError, aa as CrossJoinSourceUnknownError, ab as CrossJoinTooLargeError, ac as DanglingReferenceError, ad as DecryptionError, ae as DelegationTargetMissingError, H as DerivationCapExceededError, J as DerivationCycleError, K as DerivationDepthError, N as DerivationOutputShapeError, O as DerivationOutputUnknownError, D as DictKeyInUseError, a as DictKeyMissingError, af as DirectoryDisabledError, ag as ElevationExpiredError, ah as ExportCapabilityError, F as FieldFrozenError, ai as FilenameSanitizationError, G as GROUPBY_MAX_CARDINALITY, i as GROUPBY_WARN_CARDINALITY, aj as GroupCardinalityError, j as GroupedAggregation, k as GroupedQuery, l as GroupedQueryN, m as GroupedRow, n as GroupedRowN, ak as ImportCapabilityError, al as IndexRequiredError, am as IndexWriteFailureError, an as InvalidKeyError, I as InvariantError, ao as JoinTooLargeError, ap as KeyringCorruptError, aq as KeyringExpiredError, ar as LedgerContentionError, o as LiveAggregation, L as LocaleNotSpecifiedError, a3 as MaterializedViewConfigError, a4 as MaterializedViewCycleError, a5 as MaterializedViewSourceUnknownError, a6 as MaterializedViewTooLargeError, as as MigrationRequiredError, M as MissingTranslationError, at as MoneyCurrencyError, au as MoneyDescriptor, av as MoneyOptions, aw as MoneyOptionsFixed, ax as MoneyOptionsMulti, ay as MoneyPrecisionError, az as MoneyUnsupportedError, aA as NetworkError, aB as NoAccessError, aC as NonAdditiveSchemaChangeError, aD as NotFoundError, P as OverlayBaseIsVirtualError, Q as OverlayCollectionUnavailableError, U as OverlayIdMismatchError, V as OverlayNameCollisionError, aE as PathEscapeError, aF as PeriodClosedError, aG as PermissionDeniedError, aH as PrivilegeEscalationError, aI as QuiesceTimeoutError, aJ as ReadOnlyAtInstantError, aK as ReadOnlyError, aL as ReadOnlyFrameError, C as RecordLockedError, p as Reducer, q as ReducerOptions, R as ReservedCollectionNameError, aM as RoundingMode, aN as SchemaFenceError, aO as SchemaLockedError, aP as SchemaUpdateError, aQ as SchemaValidationError, S as ScriptViolationError, aR as SequenceContentionError, aS as SequenceOfflineError, b as SessionExpiredError, c as SessionNotFoundError, d as SessionPolicyError, aT as ShardProvisioningError, E as SnapshotNotFoundError, aU as StoreCapabilityError, aV as TamperedError, aW as TierDemoteDeniedError, aX as TierNotGrantedError, T as TranslatorNotConfiguredError, aY as UniqueConstraintError, aZ as UnknownShardError, a_ as UnsupportedIndexOptionError, a$ as ValidationError, b0 as VaultTemplateNotFoundError, r as avg, t as count, u as groupAndReduce, b1 as isMoneyDescriptor, v as max, w as min, b2 as money, x as reduceRecords, z as sum } from './strategy-rtpKDfTC.js';
|
|
7
|
+
export { A as AutoCredential, n as AutoCredentialKind, c as CompressionAlgo, N as NOYDB_BUNDLE_FORMAT_VERSION, e as NOYDB_BUNDLE_MAGIC, f as NOYDB_BUNDLE_PREFIX_BYTES, g as NoydbBundleHeader, h as NoydbBundleReadResult, R as ReadNoydbBundleOptions, W as WriteNoydbBundleOptions, j as generateULID, o as hasNoydbBundleMagic, k as isULID, r as readNoydbBundle, l as readNoydbBundleHeader, p as readNoydbBundlePublicEnvelope, m as resetBrotliSupportCache, w as writeNoydbBundle } from './ulid-DOTPZ5_h.js';
|
|
8
|
+
export { D as DEFAULT_CROSS_JOIN_MAX_ROWS, a as DEFAULT_JOIN_MAX_ROWS, J as JoinContext, b as JoinLeg, c as JoinStrategy, d as JoinableSource, L as LiveQuery, e as LiveUpstream, O as OrderBy, Q as Query, f as QueryPlan, g as QuerySource, R as RefDescriptor, h as RefIntegrityError, i as RefMode, j as RefRegistry, k as RefScopeError, l as RefViolation, S as ScanBuilder, m as ScanPageProvider, n as applyJoins, o as buildLiveQuery, p as executePlan, r as ref, q as resetJoinWarnings } from './index-CkFHr4OP.js';
|
|
8
9
|
export { a as CrdtMode, b as CrdtState, L as LwwMapState, R as RgaState, Y as YjsState, m as mergeCrdtStates, r as resolveCrdtSnapshot } from './strategy-BSxFXGzb.js';
|
|
9
|
-
export { w as withGuard } from './
|
|
10
|
-
export { w as withDerivation } from './with-derivation-
|
|
11
|
-
export { w as withMaterializedView } from './with-materialized-view-
|
|
10
|
+
export { I as ImmutableGuardConfig, i as immutableGuard, w as withGuard } from './immutable-guard-DyD0qg2k.js';
|
|
11
|
+
export { w as withDerivation } from './with-derivation-B082Y_WQ.js';
|
|
12
|
+
export { w as withMaterializedView } from './with-materialized-view-Dw4SwjKl.js';
|
|
12
13
|
export { a as Clause, C as CollectionIndexes, F as FieldClause, b as FilterClause, G as GroupClause, H as HashIndex, I as IndexDef, O as Operator, e as evaluateClause, c as evaluateFieldClause, r as readPath } from './predicate-Bt5ft-9c.js';
|
|
13
|
-
export { w as withOverlayedView } from './with-overlayed-view-
|
|
14
|
+
export { w as withOverlayedView } from './with-overlayed-view-CaCXeW26.js';
|
|
14
15
|
export { SYNC_CREDENTIALS_COLLECTION, SyncCredential, credentialStatus, deleteCredential, getCredential, listCredentials, putCredential } from './team/index.js';
|
|
15
|
-
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-
|
|
16
|
+
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-D3mpVFRc.js';
|
|
16
17
|
export { i as isDiscriminant } from './discriminant-BN9REW3o.js';
|
|
17
|
-
export {
|
|
18
|
-
export { L as LEDGER_COLLECTION, a as LEDGER_DELTAS_COLLECTION, e as envelopePayloadHash } from './hash-D89JdDbj.js';
|
|
18
|
+
export { L as LEDGER_COLLECTION, a as LEDGER_DELTAS_COLLECTION, e as envelopePayloadHash } from './hash-CTZVkXLx.js';
|
|
19
19
|
import './lazy-builder-D5GU14TS.js';
|
|
20
20
|
import '@noy-db/attestation';
|
|
21
21
|
|
|
@@ -620,6 +620,39 @@ declare function decryptDeterministic(ivBase64: string, dataBase64: string, dek:
|
|
|
620
620
|
declare function bufferToBase64(buffer: ArrayBuffer | Uint8Array): string;
|
|
621
621
|
declare function base64ToBuffer(base64: string): Uint8Array<ArrayBuffer>;
|
|
622
622
|
|
|
623
|
+
/**
|
|
624
|
+
* Return the ISO-4217 minor-unit scale for a currency code, or `null`
|
|
625
|
+
* when the code is not in the known set (caller must supply an explicit
|
|
626
|
+
* scale).
|
|
627
|
+
*/
|
|
628
|
+
declare function scaleForCurrency(code: string): number | null;
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* Money-aware aggregation: exact `sum` / `min` / `max` over money
|
|
632
|
+
* fields.
|
|
633
|
+
*
|
|
634
|
+
* The generic reducers (`aggregate/reducers.ts`) read a field via
|
|
635
|
+
* `readNumber`, which coerces a string (the stored scaled-integer form
|
|
636
|
+
* of money, e.g. `'12345'`) to `0` — so an un-wrapped money `sum` would
|
|
637
|
+
* silently return zero. {@link wrapMoneyReducers} rewrites any `sum` /
|
|
638
|
+
* `min` / `max` over a declared money field into a reducer that
|
|
639
|
+
* accumulates per-currency `BigInt` totals of the stored integers, so
|
|
640
|
+
* the result is exact for any magnitude (past `Number.MAX_SAFE_INTEGER`
|
|
641
|
+
* included).
|
|
642
|
+
*
|
|
643
|
+
* Results are currency-aware and never silently mix currencies:
|
|
644
|
+
* - **fixed** mode → a single exact decimal string.
|
|
645
|
+
* - **multi** mode → an exact `Record<currency, string>` map.
|
|
646
|
+
* - **`sum` with `convertTo` + `fx`** → a single exact string, with
|
|
647
|
+
* each currency converted via BigInt arithmetic (no float).
|
|
648
|
+
*
|
|
649
|
+
* `remove()` is implemented for every money reducer so they participate
|
|
650
|
+
* in incremental live-aggregation and materialized-view maintenance
|
|
651
|
+
* exactly like the generic reducers they replace.
|
|
652
|
+
*/
|
|
653
|
+
|
|
654
|
+
type FxRates = Record<string, number | string>;
|
|
655
|
+
|
|
623
656
|
/**
|
|
624
657
|
* Hierarchical access — tier-aware keyring helpers.
|
|
625
658
|
*
|
|
@@ -774,4 +807,4 @@ type DiffCandidate<T = unknown> = Vault | Record<string, readonly T[]> | string;
|
|
|
774
807
|
*/
|
|
775
808
|
declare function diffVault<T = unknown>(vault: Vault, candidate: DiffCandidate<T>, options?: DiffOptions): Promise<VaultDiff<T>>;
|
|
776
809
|
|
|
777
|
-
export { ActiveTier, type CheckGateContext, DEFAULT_FRESHNESS_MS, DIRECTORY_RECORD_ID, type DiffCandidate, DiffEntry, type DiffOptions, DirectoryConfig, FactorProof, GateName, GatePolicy, META_COLLECTION, ManagedRecoveryNotEnrolledError, NoydbError, NoydbStore, PERSONAL_POLICY, POLICY_RECORD_ID, PUBLIC_ENVELOPE_RECORD_ID, type PersistSchemaResult, PersistedSchemaEnvelope, PolicyDeniedError, type PolicyDenyReason, PublicEnvelope, RecoveryNotEnrolledError, RecoveryProfileNotImplementedError, SCHEMAS_COLLECTION, STRICT_POLICY, SchemaUpdateStrategy, UnlockedKeyring, UpdateDecision, UserEnvelope, UserVisibility, VISIBILITY_RECORD_PREFIX, Vault, type VaultDiff, type VaultDiffEntry, type VaultDiffModifiedEntry, VaultPolicy, additiveOnly, assertTierAccess, base64ToBuffer, blindUpdate, bufferToBase64, checkGate, coordinatedCutover, decryptBytes, decryptDeterministic, dekKey, deleteUserEnvelope, deleteUserVisibility, derivePersistedSchema, derivePresenceKey, describeAllUsersAuth, describeAuthConfig, describeGate, describeUserAuth, diagramAuthConfig, diffVault, effectiveClearance, encryptBytes, encryptDeterministic, estimateRecordBytes, isZodSchema, listUserEnvelopeIds, loadPersistedSchema, loadPublicEnvelope, loadUserEnvelope, loadVaultPolicy, lockSchema, mergePolicy, parseBytes, persistDirectoryConfig, persistSchemaIfNeeded, persistUserVisibility, readDirectoryConfig, readPublicEnvelope, readUserVisibility, savePersistedSchema, savePublicEnvelope, saveUserEnvelope, saveVaultPolicy, visibilityRecordId };
|
|
810
|
+
export { ActiveTier, type CheckGateContext, DEFAULT_FRESHNESS_MS, DIRECTORY_RECORD_ID, type DiffCandidate, DiffEntry, type DiffOptions, DirectoryConfig, FactorProof, type FxRates, GateName, GatePolicy, META_COLLECTION, ManagedRecoveryNotEnrolledError, NoydbError, NoydbStore, PERSONAL_POLICY, POLICY_RECORD_ID, PUBLIC_ENVELOPE_RECORD_ID, type PersistSchemaResult, PersistedSchemaEnvelope, PolicyDeniedError, type PolicyDenyReason, PublicEnvelope, RecoveryNotEnrolledError, RecoveryProfileNotImplementedError, SCHEMAS_COLLECTION, STRICT_POLICY, SchemaUpdateStrategy, UnlockedKeyring, UpdateDecision, UserEnvelope, UserVisibility, VISIBILITY_RECORD_PREFIX, Vault, type VaultDiff, type VaultDiffEntry, type VaultDiffModifiedEntry, VaultPolicy, additiveOnly, assertTierAccess, base64ToBuffer, blindUpdate, bufferToBase64, checkGate, coordinatedCutover, decryptBytes, decryptDeterministic, dekKey, deleteUserEnvelope, deleteUserVisibility, derivePersistedSchema, derivePresenceKey, describeAllUsersAuth, describeAuthConfig, describeGate, describeUserAuth, diagramAuthConfig, diffVault, effectiveClearance, encryptBytes, encryptDeterministic, estimateRecordBytes, isZodSchema, listUserEnvelopeIds, loadPersistedSchema, loadPublicEnvelope, loadUserEnvelope, loadVaultPolicy, lockSchema, mergePolicy, parseBytes, persistDirectoryConfig, persistSchemaIfNeeded, persistUserVisibility, readDirectoryConfig, readPublicEnvelope, readUserVisibility, savePersistedSchema, savePublicEnvelope, saveUserEnvelope, saveVaultPolicy, scaleForCurrency, visibilityRecordId };
|