@noy-db/hub 0.2.0-pre.25 → 0.2.0-pre.27
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/attestation/index.cjs.map +1 -1
- package/dist/attestation/index.d.cts +1 -1
- package/dist/attestation/index.d.ts +1 -1
- package/dist/attestation/index.js +4 -4
- package/dist/blobs/index.cjs.map +1 -1
- package/dist/blobs/index.d.cts +3 -3
- package/dist/blobs/index.d.ts +3 -3
- package/dist/blobs/index.js +4 -4
- package/dist/bundle/index.cjs +320 -144
- package/dist/bundle/index.cjs.map +1 -1
- package/dist/bundle/index.d.cts +3 -3
- package/dist/bundle/index.d.ts +3 -3
- package/dist/bundle/index.js +8 -8
- package/dist/{chunk-HUXDQIVU.js → chunk-2NYVA6FW.js} +2 -2
- package/dist/{chunk-OCRDV3NU.js → chunk-5EITJMUJ.js} +3 -3
- package/dist/{chunk-EYZJULEN.js → chunk-6H4CAHMQ.js} +2 -2
- package/dist/{chunk-VGAN5RLD.js → chunk-6M5JKTUQ.js} +2 -2
- package/dist/{chunk-N4EXCKWP.js → chunk-6ZKXFMUG.js} +2 -2
- package/dist/{chunk-KJ37E3R5.js → chunk-7DDTFGXY.js} +2 -2
- package/dist/{chunk-LR7CODVN.js → chunk-AD6RNBAW.js} +1 -1
- package/dist/chunk-AD6RNBAW.js.map +1 -0
- package/dist/{chunk-TSUICI5N.js → chunk-BMDVFBCL.js} +2 -2
- package/dist/{chunk-FCIZXX56.js → chunk-BOMH3637.js} +2 -2
- package/dist/{chunk-RZOGD7IF.js → chunk-CVTPNW2Y.js} +6 -6
- package/dist/{chunk-GPZHHTJU.js → chunk-DONPLWRC.js} +2 -2
- package/dist/{chunk-GHXOVGTX.js → chunk-HAKEZTA7.js} +3 -3
- package/dist/{chunk-QYQRAOEF.js → chunk-I2RX62RX.js} +2 -2
- package/dist/{chunk-2RHBFCWQ.js → chunk-IWGVH2RR.js} +3 -3
- package/dist/{chunk-Y5CTT6K5.js → chunk-K6PCTYAH.js} +2 -2
- package/dist/{chunk-ANLOD6IS.js → chunk-KA5A5CSD.js} +3 -3
- package/dist/{chunk-56ENKU46.js → chunk-KSKKLVPA.js} +97 -144
- package/dist/chunk-KSKKLVPA.js.map +1 -0
- package/dist/{chunk-UNBX2HMA.js → chunk-LXA2E3VI.js} +2 -2
- package/dist/{chunk-JJKXJAH2.js → chunk-PFKAT4NT.js} +3 -3
- package/dist/{chunk-ZCBJIDT4.js → chunk-RRCRITDM.js} +2 -2
- package/dist/{chunk-YP2AYE5W.js → chunk-SID2NJNF.js} +2 -2
- package/dist/chunk-Z3BJF7SF.js +220 -0
- package/dist/chunk-Z3BJF7SF.js.map +1 -0
- package/dist/consent/index.d.cts +2 -2
- package/dist/consent/index.d.ts +2 -2
- package/dist/{decrypt-partition-CyyJUWLR.d.ts → decrypt-partition-CptDdcCx.d.ts} +1 -1
- package/dist/{decrypt-partition-C71vhnND.d.cts → decrypt-partition-DmkeOB4I.d.cts} +1 -1
- package/dist/derivations/index.d.cts +3 -3
- package/dist/derivations/index.d.ts +3 -3
- package/dist/{dev-unlock-BdrE0kbS.d.cts → dev-unlock-DUTLA3Sc.d.cts} +1 -1
- package/dist/{dev-unlock-ByBkl99-.d.ts → dev-unlock-Y9znMkQ2.d.ts} +1 -1
- package/dist/{fanout-sidecar-ZQT4Y7PF.js → fanout-sidecar-OC4QVTS2.js} +2 -2
- package/dist/forget/index.js +2 -2
- package/dist/guards/index.d.cts +3 -3
- package/dist/guards/index.d.ts +3 -3
- package/dist/{hash-CZxVv8RH.d.ts → hash-Btl9IvQS.d.ts} +1 -1
- package/dist/{hash-BUkDp_8Q.d.cts → hash-DFK7cGdo.d.cts} +1 -1
- package/dist/history/index.cjs.map +1 -1
- package/dist/history/index.d.cts +3 -3
- package/dist/history/index.d.ts +3 -3
- package/dist/history/index.js +3 -3
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +2 -2
- package/dist/i18n/index.d.ts +2 -2
- package/dist/i18n/index.js +3 -3
- package/dist/{index-CBUhOmrM.d.cts → index-CqzZml-D.d.cts} +1 -1
- package/dist/{index-DFhKV-6A.d.ts → index-wRwJVVJQ.d.ts} +1 -1
- package/dist/index.cjs +316 -140
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +19 -18
- package/dist/index.js.map +1 -1
- package/dist/{issue-LEBPVF3Y.js → issue-ZZ2XPOGP.js} +4 -4
- package/dist/kernel/index.cjs +61 -0
- package/dist/kernel/index.cjs.map +1 -1
- package/dist/kernel/index.d.cts +2 -2
- package/dist/kernel/index.d.ts +2 -2
- package/dist/kernel/index.js +7 -0
- package/dist/{ledger-FLRTSOYH.js → ledger-XQ4KVFQ6.js} +3 -3
- package/dist/materialized-views/index.d.cts +3 -3
- package/dist/materialized-views/index.d.ts +3 -3
- package/dist/{mime-magic-BAhLjkHw.d.cts → mime-magic-Co4Pyj-O.d.cts} +1 -1
- package/dist/{mime-magic-C1UbcBxP.d.ts → mime-magic-OiPT1qed.d.ts} +1 -1
- package/dist/{noydb-6FA46A4M.js → noydb-EY52NVH4.js} +15 -14
- package/dist/overlay-views/index.d.cts +3 -3
- package/dist/overlay-views/index.d.ts +3 -3
- package/dist/periods/index.cjs.map +1 -1
- package/dist/periods/index.d.cts +2 -2
- package/dist/periods/index.d.ts +2 -2
- package/dist/periods/index.js +3 -3
- package/dist/{public-envelope-DBKJEBBF.js → public-envelope-O6X6AUUS.js} +3 -3
- package/dist/{revoke-P5D3UTRX.js → revoke-QJ2HUM4W.js} +4 -4
- package/dist/session/index.d.cts +3 -3
- package/dist/session/index.d.ts +3 -3
- package/dist/shadow/index.d.cts +2 -2
- package/dist/shadow/index.d.ts +2 -2
- package/dist/{signer-NEQPCHMW.js → signer-SCJ6C6HQ.js} +3 -3
- package/dist/snapshots/index.d.cts +2 -2
- package/dist/snapshots/index.d.ts +2 -2
- package/dist/snapshots/index.js +3 -3
- package/dist/store/index.d.cts +2 -2
- package/dist/store/index.d.ts +2 -2
- package/dist/sync/index.cjs.map +1 -1
- package/dist/sync/index.d.cts +1 -1
- package/dist/sync/index.d.ts +1 -1
- package/dist/sync/index.js +2 -2
- package/dist/team/index.cjs.map +1 -1
- package/dist/team/index.d.cts +2 -2
- package/dist/team/index.d.ts +2 -2
- package/dist/team/index.js +5 -5
- package/dist/{transition-guard-BSLdikC_.d.ts → transition-guard-CJmb8O8q.d.ts} +1 -1
- package/dist/{transition-guard-DPs6al8h.d.cts → transition-guard-Dzj68JWC.d.cts} +1 -1
- package/dist/tx/index.d.cts +2 -2
- package/dist/tx/index.d.ts +2 -2
- package/dist/{types-CCq0WHh9.d.ts → types-CkSWJt0H.d.ts} +137 -7
- package/dist/{types-BCYvhKzr.d.cts → types-CwrTuYFI.d.cts} +137 -7
- package/dist/{with-materialized-view-DiD41wQp.d.ts → with-materialized-view-BVfcPlaE.d.ts} +1 -1
- package/dist/{with-materialized-view-CTHe6uh9.d.cts → with-materialized-view-dPG213gd.d.cts} +1 -1
- package/dist/{with-overlayed-view-Dlz5hcM8.d.cts → with-overlayed-view-CJ2UDBol.d.cts} +1 -1
- package/dist/{with-overlayed-view-DlbsJMhF.d.ts → with-overlayed-view-zYPQzGGh.d.ts} +1 -1
- package/dist/{with-rollup-BBWdrCvu.d.cts → with-rollup-B_zbRi3f.d.cts} +1 -1
- package/dist/{with-rollup-mT4_CWaU.d.ts → with-rollup-BvaJefEs.d.ts} +1 -1
- package/package.json +3 -3
- package/dist/chunk-56ENKU46.js.map +0 -1
- package/dist/chunk-LR7CODVN.js.map +0 -1
- /package/dist/{chunk-HUXDQIVU.js.map → chunk-2NYVA6FW.js.map} +0 -0
- /package/dist/{chunk-OCRDV3NU.js.map → chunk-5EITJMUJ.js.map} +0 -0
- /package/dist/{chunk-EYZJULEN.js.map → chunk-6H4CAHMQ.js.map} +0 -0
- /package/dist/{chunk-VGAN5RLD.js.map → chunk-6M5JKTUQ.js.map} +0 -0
- /package/dist/{chunk-N4EXCKWP.js.map → chunk-6ZKXFMUG.js.map} +0 -0
- /package/dist/{chunk-KJ37E3R5.js.map → chunk-7DDTFGXY.js.map} +0 -0
- /package/dist/{chunk-TSUICI5N.js.map → chunk-BMDVFBCL.js.map} +0 -0
- /package/dist/{chunk-FCIZXX56.js.map → chunk-BOMH3637.js.map} +0 -0
- /package/dist/{chunk-RZOGD7IF.js.map → chunk-CVTPNW2Y.js.map} +0 -0
- /package/dist/{chunk-GPZHHTJU.js.map → chunk-DONPLWRC.js.map} +0 -0
- /package/dist/{chunk-GHXOVGTX.js.map → chunk-HAKEZTA7.js.map} +0 -0
- /package/dist/{chunk-QYQRAOEF.js.map → chunk-I2RX62RX.js.map} +0 -0
- /package/dist/{chunk-2RHBFCWQ.js.map → chunk-IWGVH2RR.js.map} +0 -0
- /package/dist/{chunk-Y5CTT6K5.js.map → chunk-K6PCTYAH.js.map} +0 -0
- /package/dist/{chunk-ANLOD6IS.js.map → chunk-KA5A5CSD.js.map} +0 -0
- /package/dist/{chunk-UNBX2HMA.js.map → chunk-LXA2E3VI.js.map} +0 -0
- /package/dist/{chunk-JJKXJAH2.js.map → chunk-PFKAT4NT.js.map} +0 -0
- /package/dist/{chunk-ZCBJIDT4.js.map → chunk-RRCRITDM.js.map} +0 -0
- /package/dist/{chunk-YP2AYE5W.js.map → chunk-SID2NJNF.js.map} +0 -0
- /package/dist/{fanout-sidecar-ZQT4Y7PF.js.map → fanout-sidecar-OC4QVTS2.js.map} +0 -0
- /package/dist/{issue-LEBPVF3Y.js.map → issue-ZZ2XPOGP.js.map} +0 -0
- /package/dist/{ledger-FLRTSOYH.js.map → ledger-XQ4KVFQ6.js.map} +0 -0
- /package/dist/{noydb-6FA46A4M.js.map → noydb-EY52NVH4.js.map} +0 -0
- /package/dist/{public-envelope-DBKJEBBF.js.map → public-envelope-O6X6AUUS.js.map} +0 -0
- /package/dist/{revoke-P5D3UTRX.js.map → revoke-QJ2HUM4W.js.map} +0 -0
- /package/dist/{signer-NEQPCHMW.js.map → signer-SCJ6C6HQ.js.map} +0 -0
package/dist/team/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aW as NoydbStore, aU as UnlockedKeyring } from '../types-
|
|
2
|
-
export { be as BundleRecipient, cd as EnrollAuthenticatorOptions, ce as EnrollAuthenticatorWrappingDEKsOptions, cf as EnrollAuthenticatorWrappingKEKOptions, cW as ListUsersOptions, dk as PaperRecoveryEntry, dt as PresenceHandle, dO as RecoverPassphraseInput, dP as RecoverPassphraseResult, dQ as RecoverUserOptions, dR as RecoveryProof, dX as RotatePassphraseInput, ed as SlotRewrapCeremony, ee as SlotRewrapContext, em as SyncEngine, eu as SyncTransaction, eK as UpdateAuthenticatorOptions, f3 as WrappedDeksBlob, fb as buildRecipientKeyringFile, fc as burnPaperRecoveryEntry, ga as changeSecret, gb as createOwnerKeyring, fg as deriveMagicLinkContentKey, fh as enrollAuthenticator, gc as ensureCollectionDEK, fk as evaluateExportCapability, fl as evaluateImportCapability, fn as findAuthenticator, gd as grant, fo as hasExportCapability, fp as hasImportCapability, fs as isMagicLinkGrantExpired, fy as listMagicLinkGrants, fz as listUsers, fA as listUsersWithEnvelopes, ge as loadKeyring, fD as loadPaperRecoveryEntries, fG as magicLinkGrantRecordId, fH as mintPaperRecoveryEntry, fJ as mintWrappedDeksBlob, gf as persistKeyring, fM as readMagicLinkGrantRecord, fv as recoverPassphrase, fN as recoverUser, fP as removeAuthenticator, gg as revoke, fU as revokeMagicLinkGrant, fw as rotatePassphrase, fW as savePaperRecoveryEntries, f_ as unwrapDeksFromBlob, f$ as unwrapDeksFromPaperEntry, g1 as unwrapMagicLinkGrant, gh as updateAuthenticator, gi as updateKeyringIdentity, g9 as writeMagicLinkGrant } from '../types-
|
|
1
|
+
import { aW as NoydbStore, aU as UnlockedKeyring } from '../types-CwrTuYFI.cjs';
|
|
2
|
+
export { be as BundleRecipient, cd as EnrollAuthenticatorOptions, ce as EnrollAuthenticatorWrappingDEKsOptions, cf as EnrollAuthenticatorWrappingKEKOptions, cW as ListUsersOptions, dk as PaperRecoveryEntry, dt as PresenceHandle, dO as RecoverPassphraseInput, dP as RecoverPassphraseResult, dQ as RecoverUserOptions, dR as RecoveryProof, dX as RotatePassphraseInput, ed as SlotRewrapCeremony, ee as SlotRewrapContext, em as SyncEngine, eu as SyncTransaction, eK as UpdateAuthenticatorOptions, f3 as WrappedDeksBlob, fb as buildRecipientKeyringFile, fc as burnPaperRecoveryEntry, ga as changeSecret, gb as createOwnerKeyring, fg as deriveMagicLinkContentKey, fh as enrollAuthenticator, gc as ensureCollectionDEK, fk as evaluateExportCapability, fl as evaluateImportCapability, fn as findAuthenticator, gd as grant, fo as hasExportCapability, fp as hasImportCapability, fs as isMagicLinkGrantExpired, fy as listMagicLinkGrants, fz as listUsers, fA as listUsersWithEnvelopes, ge as loadKeyring, fD as loadPaperRecoveryEntries, fG as magicLinkGrantRecordId, fH as mintPaperRecoveryEntry, fJ as mintWrappedDeksBlob, gf as persistKeyring, fM as readMagicLinkGrantRecord, fv as recoverPassphrase, fN as recoverUser, fP as removeAuthenticator, gg as revoke, fU as revokeMagicLinkGrant, fw as rotatePassphrase, fW as savePaperRecoveryEntries, f_ as unwrapDeksFromBlob, f$ as unwrapDeksFromPaperEntry, g1 as unwrapMagicLinkGrant, gh as updateAuthenticator, gi as updateKeyringIdentity, g9 as writeMagicLinkGrant } from '../types-CwrTuYFI.cjs';
|
|
3
3
|
import '../lazy-builder-eYZzLEL1.cjs';
|
|
4
4
|
import '../predicate-BmhBSPCH.cjs';
|
|
5
5
|
import '../strategy-D1zjEV3n.cjs';
|
package/dist/team/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aW as NoydbStore, aU as UnlockedKeyring } from '../types-
|
|
2
|
-
export { be as BundleRecipient, cd as EnrollAuthenticatorOptions, ce as EnrollAuthenticatorWrappingDEKsOptions, cf as EnrollAuthenticatorWrappingKEKOptions, cW as ListUsersOptions, dk as PaperRecoveryEntry, dt as PresenceHandle, dO as RecoverPassphraseInput, dP as RecoverPassphraseResult, dQ as RecoverUserOptions, dR as RecoveryProof, dX as RotatePassphraseInput, ed as SlotRewrapCeremony, ee as SlotRewrapContext, em as SyncEngine, eu as SyncTransaction, eK as UpdateAuthenticatorOptions, f3 as WrappedDeksBlob, fb as buildRecipientKeyringFile, fc as burnPaperRecoveryEntry, ga as changeSecret, gb as createOwnerKeyring, fg as deriveMagicLinkContentKey, fh as enrollAuthenticator, gc as ensureCollectionDEK, fk as evaluateExportCapability, fl as evaluateImportCapability, fn as findAuthenticator, gd as grant, fo as hasExportCapability, fp as hasImportCapability, fs as isMagicLinkGrantExpired, fy as listMagicLinkGrants, fz as listUsers, fA as listUsersWithEnvelopes, ge as loadKeyring, fD as loadPaperRecoveryEntries, fG as magicLinkGrantRecordId, fH as mintPaperRecoveryEntry, fJ as mintWrappedDeksBlob, gf as persistKeyring, fM as readMagicLinkGrantRecord, fv as recoverPassphrase, fN as recoverUser, fP as removeAuthenticator, gg as revoke, fU as revokeMagicLinkGrant, fw as rotatePassphrase, fW as savePaperRecoveryEntries, f_ as unwrapDeksFromBlob, f$ as unwrapDeksFromPaperEntry, g1 as unwrapMagicLinkGrant, gh as updateAuthenticator, gi as updateKeyringIdentity, g9 as writeMagicLinkGrant } from '../types-
|
|
1
|
+
import { aW as NoydbStore, aU as UnlockedKeyring } from '../types-CkSWJt0H.js';
|
|
2
|
+
export { be as BundleRecipient, cd as EnrollAuthenticatorOptions, ce as EnrollAuthenticatorWrappingDEKsOptions, cf as EnrollAuthenticatorWrappingKEKOptions, cW as ListUsersOptions, dk as PaperRecoveryEntry, dt as PresenceHandle, dO as RecoverPassphraseInput, dP as RecoverPassphraseResult, dQ as RecoverUserOptions, dR as RecoveryProof, dX as RotatePassphraseInput, ed as SlotRewrapCeremony, ee as SlotRewrapContext, em as SyncEngine, eu as SyncTransaction, eK as UpdateAuthenticatorOptions, f3 as WrappedDeksBlob, fb as buildRecipientKeyringFile, fc as burnPaperRecoveryEntry, ga as changeSecret, gb as createOwnerKeyring, fg as deriveMagicLinkContentKey, fh as enrollAuthenticator, gc as ensureCollectionDEK, fk as evaluateExportCapability, fl as evaluateImportCapability, fn as findAuthenticator, gd as grant, fo as hasExportCapability, fp as hasImportCapability, fs as isMagicLinkGrantExpired, fy as listMagicLinkGrants, fz as listUsers, fA as listUsersWithEnvelopes, ge as loadKeyring, fD as loadPaperRecoveryEntries, fG as magicLinkGrantRecordId, fH as mintPaperRecoveryEntry, fJ as mintWrappedDeksBlob, gf as persistKeyring, fM as readMagicLinkGrantRecord, fv as recoverPassphrase, fN as recoverUser, fP as removeAuthenticator, gg as revoke, fU as revokeMagicLinkGrant, fw as rotatePassphrase, fW as savePaperRecoveryEntries, f_ as unwrapDeksFromBlob, f$ as unwrapDeksFromPaperEntry, g1 as unwrapMagicLinkGrant, gh as updateAuthenticator, gi as updateKeyringIdentity, g9 as writeMagicLinkGrant } from '../types-CkSWJt0H.js';
|
|
3
3
|
import '../lazy-builder-ChSqcF5t.js';
|
|
4
4
|
import '../predicate-BmhBSPCH.js';
|
|
5
5
|
import '../strategy-YQ1qJWyq.js';
|
package/dist/team/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getCredential,
|
|
6
6
|
listCredentials,
|
|
7
7
|
putCredential
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-5EITJMUJ.js";
|
|
9
9
|
import {
|
|
10
10
|
burnPaperRecoveryEntry,
|
|
11
11
|
deriveMagicLinkContentKey,
|
|
@@ -29,13 +29,13 @@ import {
|
|
|
29
29
|
unwrapMagicLinkGrant,
|
|
30
30
|
updateAuthenticator,
|
|
31
31
|
writeMagicLinkGrant
|
|
32
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-IWGVH2RR.js";
|
|
33
33
|
import "../chunk-J73KU4AE.js";
|
|
34
34
|
import {
|
|
35
35
|
PresenceHandle,
|
|
36
36
|
SyncEngine,
|
|
37
37
|
SyncTransaction
|
|
38
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-DONPLWRC.js";
|
|
39
39
|
import {
|
|
40
40
|
buildRecipientKeyringFile,
|
|
41
41
|
changeSecret,
|
|
@@ -52,9 +52,9 @@ import {
|
|
|
52
52
|
persistKeyring,
|
|
53
53
|
revoke,
|
|
54
54
|
updateKeyringIdentity
|
|
55
|
-
} from "../chunk-
|
|
55
|
+
} from "../chunk-LXA2E3VI.js";
|
|
56
56
|
import "../chunk-2QR2PQTT.js";
|
|
57
|
-
import "../chunk-
|
|
57
|
+
import "../chunk-AD6RNBAW.js";
|
|
58
58
|
import "../chunk-7JSP3E67.js";
|
|
59
59
|
import "../chunk-DDOYOMAD.js";
|
|
60
60
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { an as GuardStrategy, ar as GuardStrategyHandle, ao as GuardChange, ap as GuardContext } from './types-
|
|
1
|
+
import { an as GuardStrategy, ar as GuardStrategyHandle, ao as GuardChange, ap as GuardContext } from './types-CkSWJt0H.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Register a guard for a collection. Guards run on every `put()` /
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { an as GuardStrategy, ar as GuardStrategyHandle, ao as GuardChange, ap as GuardContext } from './types-
|
|
1
|
+
import { an as GuardStrategy, ar as GuardStrategyHandle, ao as GuardChange, ap as GuardContext } from './types-CwrTuYFI.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Register a guard for a collection. Guards run on every `put()` /
|
package/dist/tx/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { eC as TransactionInvariant, gj as TxStrategy } from '../types-
|
|
2
|
-
export { gk as AmendmentTxOptions, eE as TxCollection, bk as TxContext, eG as TxVault, fV as runTransaction } from '../types-
|
|
1
|
+
import { eC as TransactionInvariant, gj as TxStrategy } from '../types-CwrTuYFI.cjs';
|
|
2
|
+
export { gk as AmendmentTxOptions, eE as TxCollection, bk as TxContext, eG as TxVault, fV as runTransaction } from '../types-CwrTuYFI.cjs';
|
|
3
3
|
import '../lazy-builder-eYZzLEL1.cjs';
|
|
4
4
|
import '../predicate-BmhBSPCH.cjs';
|
|
5
5
|
import '../strategy-D1zjEV3n.cjs';
|
package/dist/tx/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { eC as TransactionInvariant, gj as TxStrategy } from '../types-
|
|
2
|
-
export { gk as AmendmentTxOptions, eE as TxCollection, bk as TxContext, eG as TxVault, fV as runTransaction } from '../types-
|
|
1
|
+
import { eC as TransactionInvariant, gj as TxStrategy } from '../types-CkSWJt0H.js';
|
|
2
|
+
export { gk as AmendmentTxOptions, eE as TxCollection, bk as TxContext, eG as TxVault, fV as runTransaction } from '../types-CkSWJt0H.js';
|
|
3
3
|
import '../lazy-builder-ChSqcF5t.js';
|
|
4
4
|
import '../predicate-BmhBSPCH.js';
|
|
5
5
|
import '../strategy-YQ1qJWyq.js';
|
|
@@ -3121,12 +3121,99 @@ declare class SchemaUpdateGate {
|
|
|
3121
3121
|
* pattern of `_meta/policy` (no PII — a counter + a state enum).
|
|
3122
3122
|
*/
|
|
3123
3123
|
|
|
3124
|
-
type FenceState = 'normal' | 'draining' | 'migrating' | 'complete';
|
|
3124
|
+
type FenceState$1 = 'normal' | 'draining' | 'migrating' | 'complete';
|
|
3125
3125
|
interface FenceDoc {
|
|
3126
3126
|
readonly currentSchemaVersion: number;
|
|
3127
|
-
readonly fenceState: FenceState;
|
|
3127
|
+
readonly fenceState: FenceState$1;
|
|
3128
3128
|
}
|
|
3129
3129
|
|
|
3130
|
+
/**
|
|
3131
|
+
* Kernel coordination port — the injected `CoordinationProvider` seam for the
|
|
3132
|
+
* schema-fence drain-barrier (#469).
|
|
3133
|
+
*
|
|
3134
|
+
* The kernel defines this port; `@noy-db/by-tabs` / `@noy-db/by-peer` implement
|
|
3135
|
+
* it for real-time quorum, and an external orchestrator (`@klum-db/lobby`)
|
|
3136
|
+
* drives it through the `Noydb` handle without ever naming a `by-*` package.
|
|
3137
|
+
* The dependency arrow is `by-* → kernel ← klum`, the app at the apex.
|
|
3138
|
+
*
|
|
3139
|
+
* This module carries only the port TYPES plus two pure-ish helpers:
|
|
3140
|
+
* {@link isQuorum} (a pure quorum predicate extracted from the legacy
|
|
3141
|
+
* `activeQuiesced`) and {@link runDrainBarrier} (the reusable barrier protocol
|
|
3142
|
+
* the migration cutover and klum both call).
|
|
3143
|
+
*
|
|
3144
|
+
* @module
|
|
3145
|
+
*/
|
|
3146
|
+
|
|
3147
|
+
/** Vault fence state (the existing FenceDoc shape). */
|
|
3148
|
+
interface FenceState {
|
|
3149
|
+
readonly currentSchemaVersion: number;
|
|
3150
|
+
readonly fenceState: 'normal' | 'draining' | 'migrating' | 'complete';
|
|
3151
|
+
}
|
|
3152
|
+
/** A writer's presence + ack, tagged with the session that owns it. */
|
|
3153
|
+
interface WriterPresence {
|
|
3154
|
+
/** = today's clientId (one per tab/peer). */
|
|
3155
|
+
readonly writerId: string;
|
|
3156
|
+
/** Groups one user's writers across vaults (consolidation is klum's job). */
|
|
3157
|
+
readonly sessionId: string;
|
|
3158
|
+
readonly lastSeen: number;
|
|
3159
|
+
readonly quiescedAtVersion: number | null;
|
|
3160
|
+
}
|
|
3161
|
+
/** Session-addressable drain-barrier coordination transport. Per-vault ops. */
|
|
3162
|
+
interface CoordinationProvider {
|
|
3163
|
+
/** orchestrator → all writers */
|
|
3164
|
+
setFence(vault: string, fence: FenceState): Promise<void>;
|
|
3165
|
+
/**
|
|
3166
|
+
* Fresh one-shot fence read for the write-path gate (`assertWritable`).
|
|
3167
|
+
* A direct read (not a cached `observeFence` snapshot) avoids a staleness
|
|
3168
|
+
* window and keeps the timing-sensitive cutover gate exact. The store
|
|
3169
|
+
* default reads `_meta/schema-fence`; `by-*` return their last-pushed fence.
|
|
3170
|
+
*/
|
|
3171
|
+
readFence(vault: string): Promise<FenceState>;
|
|
3172
|
+
/** writer observes fence changes (default: poll-emit; by-*: push) */
|
|
3173
|
+
observeFence(vault: string, onChange: (f: FenceState) => void): Unsubscribe$3;
|
|
3174
|
+
/** writer → orchestrator: presence + ack (heartbeat + quiescedAtVersion) */
|
|
3175
|
+
reportPresence(vault: string, p: WriterPresence): Promise<void>;
|
|
3176
|
+
/** orchestrator observes presence changes (default: poll-emit; by-*: push) */
|
|
3177
|
+
observePresence(vault: string, onChange: (writers: readonly WriterPresence[]) => void): Unsubscribe$3;
|
|
3178
|
+
/** orchestrator one-shot snapshot of reachable writers (quorum input) */
|
|
3179
|
+
reachableWriters(vault: string, o: {
|
|
3180
|
+
staleMs: number;
|
|
3181
|
+
now: number;
|
|
3182
|
+
}): Promise<readonly WriterPresence[]>;
|
|
3183
|
+
}
|
|
3184
|
+
/**
|
|
3185
|
+
* Pure quorum predicate: true when every writer (other than `excludeWriterId`)
|
|
3186
|
+
* has acked at exactly `generation`. An empty set is trivially a quorum.
|
|
3187
|
+
*
|
|
3188
|
+
* Extracted from the legacy `activeQuiesced` store-polling check so the
|
|
3189
|
+
* migration cutover, the store default provider, and `by-*` real-time
|
|
3190
|
+
* providers all share one definition of "everyone has drained".
|
|
3191
|
+
*/
|
|
3192
|
+
declare function isQuorum(writers: readonly WriterPresence[], generation: number, excludeWriterId?: string): boolean;
|
|
3193
|
+
/** Inputs for {@link runDrainBarrier}. */
|
|
3194
|
+
interface DrainBarrierOptions {
|
|
3195
|
+
readonly vault: string;
|
|
3196
|
+
readonly generation: number;
|
|
3197
|
+
readonly writerId: string;
|
|
3198
|
+
readonly onFlush: () => Promise<void>;
|
|
3199
|
+
readonly staleMs: number;
|
|
3200
|
+
readonly quiesceTimeoutMs: number;
|
|
3201
|
+
readonly now: () => number;
|
|
3202
|
+
/** Optional seam (mainly for deterministic tests) run before each poll tick. */
|
|
3203
|
+
readonly onPoll?: () => Promise<void>;
|
|
3204
|
+
}
|
|
3205
|
+
/**
|
|
3206
|
+
* The reusable drain-barrier protocol shared by the migration cutover and klum:
|
|
3207
|
+
*
|
|
3208
|
+
* drain self → setFence(draining) → await quorum (presence push + isQuorum,
|
|
3209
|
+
* polling as a fallback, or timeout) → run() → release-by-caller.
|
|
3210
|
+
*
|
|
3211
|
+
* Resolves once every reachable writer (excluding `writerId`) has quiesced at
|
|
3212
|
+
* `generation`, at which point `run` is invoked exactly once. Rejects with
|
|
3213
|
+
* {@link QuiesceTimeoutError} if `quiesceTimeoutMs` elapses first.
|
|
3214
|
+
*/
|
|
3215
|
+
declare function runDrainBarrier(provider: CoordinationProvider, o: DrainBarrierOptions, run: () => Promise<void>): Promise<void>;
|
|
3216
|
+
|
|
3130
3217
|
/**
|
|
3131
3218
|
* Vault-level schema-fence controller.
|
|
3132
3219
|
*
|
|
@@ -3135,6 +3222,11 @@ interface FenceDoc {
|
|
|
3135
3222
|
* migrator). 3b: a cooperative ack-barrier — after `draining`, the
|
|
3136
3223
|
* migrator waits for the active client set (registry heartbeats) to ack
|
|
3137
3224
|
* the draining generation before transforming. No leader election.
|
|
3225
|
+
*
|
|
3226
|
+
* The transport is the injected {@link CoordinationProvider} port: the
|
|
3227
|
+
* default {@link StoreCoordinationProvider} maps it onto today's
|
|
3228
|
+
* `_meta/schema-fence` store ops, so behavior is byte-for-byte the same;
|
|
3229
|
+
* `by-tabs` / `by-peer` swap in real-time push transports.
|
|
3138
3230
|
*/
|
|
3139
3231
|
|
|
3140
3232
|
/** Runs one collection's transform; supplied by the Vault (binds to a Collection). */
|
|
@@ -3142,16 +3234,23 @@ type RunTransform = (collection: string, transform: TransformFn) => Promise<void
|
|
|
3142
3234
|
declare class SchemaFenceController {
|
|
3143
3235
|
#private;
|
|
3144
3236
|
constructor(opts: {
|
|
3145
|
-
|
|
3237
|
+
coordination: CoordinationProvider;
|
|
3146
3238
|
vault: string;
|
|
3147
3239
|
onFlush: () => Promise<void>;
|
|
3240
|
+
/** Stable per-instance id; the migrator excludes itself from the barrier. */
|
|
3148
3241
|
clientId?: string;
|
|
3242
|
+
/**
|
|
3243
|
+
* Accepted for wiring symmetry with {@link FenceWatcher}, but the migrator
|
|
3244
|
+
* never reports its own presence (it excludes itself from the barrier), so
|
|
3245
|
+
* it carries no session of its own.
|
|
3246
|
+
*/
|
|
3247
|
+
sessionId?: string;
|
|
3149
3248
|
now?: () => number;
|
|
3150
3249
|
staleMs?: number;
|
|
3151
3250
|
quiesceTimeoutMs?: number;
|
|
3152
3251
|
emit?: (e: {
|
|
3153
3252
|
currentSchemaVersion: number;
|
|
3154
|
-
fenceState: FenceState;
|
|
3253
|
+
fenceState: FenceState$1;
|
|
3155
3254
|
}) => void;
|
|
3156
3255
|
});
|
|
3157
3256
|
/** Capture the generation snapshot at vault-open. */
|
|
@@ -3164,8 +3263,8 @@ declare class SchemaFenceController {
|
|
|
3164
3263
|
* Admin trigger. Drain → wait for the active set to quiesce (or time out)
|
|
3165
3264
|
* → migrate each pending transform → bump → complete → normal. The
|
|
3166
3265
|
* migrator excludes itself from the barrier (it drained synchronously
|
|
3167
|
-
*
|
|
3168
|
-
* production falls back to a short real delay.
|
|
3266
|
+
* inside {@link runDrainBarrier}). `onPoll` (tests) advances other clients
|
|
3267
|
+
* between barrier checks; production falls back to a short real delay.
|
|
3169
3268
|
*/
|
|
3170
3269
|
runCutover(run: RunTransform, opts?: {
|
|
3171
3270
|
onPoll?: () => Promise<void>;
|
|
@@ -5381,6 +5480,10 @@ declare class Noydb {
|
|
|
5381
5480
|
private readonly writeHooks;
|
|
5382
5481
|
private readonly subsystemBus;
|
|
5383
5482
|
private readonly clientId;
|
|
5483
|
+
/** Session that owns this instance's writers (one user's writers across vaults). */
|
|
5484
|
+
private readonly sessionId;
|
|
5485
|
+
/** Drain-barrier coordination transport for the schema fence (#469). */
|
|
5486
|
+
private readonly coordinationProvider;
|
|
5384
5487
|
private readonly vaultCache;
|
|
5385
5488
|
private readonly keyringCache;
|
|
5386
5489
|
private readonly syncEngines;
|
|
@@ -5883,6 +5986,14 @@ declare class Noydb {
|
|
|
5883
5986
|
get _subsystemBus(): SubsystemBus;
|
|
5884
5987
|
/** @internal Stable per-instance id for schema-cutover coordination. */
|
|
5885
5988
|
get _clientId(): string;
|
|
5989
|
+
/** @internal Session that owns this instance's writers (#469). */
|
|
5990
|
+
get _sessionId(): string;
|
|
5991
|
+
/**
|
|
5992
|
+
* @internal Drain-barrier coordination transport for the schema fence (#469).
|
|
5993
|
+
* The default store-backed provider reproduces today's fence behavior; a
|
|
5994
|
+
* `by-*` real-time transport is injected via `coordinationStrategy`.
|
|
5995
|
+
*/
|
|
5996
|
+
get coordination(): CoordinationProvider;
|
|
5886
5997
|
/**
|
|
5887
5998
|
* Soft-lock a single vault: clear its in-memory keyring, DEKs, vault
|
|
5888
5999
|
* instance, sync engine, policy enforcer, and active-tier entry —
|
|
@@ -14577,6 +14688,25 @@ interface NoydbOptions {
|
|
|
14577
14688
|
* Defaults to `'anonymous'` when not supplied.
|
|
14578
14689
|
*/
|
|
14579
14690
|
readonly plaintextTranslatorName?: string;
|
|
14691
|
+
/**
|
|
14692
|
+
* Drain-barrier coordination transport for the schema fence (#469).
|
|
14693
|
+
* When omitted, the kernel uses a {@link CoordinationProvider} backed by the
|
|
14694
|
+
* primary store (`StoreCoordinationProvider`), reproducing today's
|
|
14695
|
+
* store-polling fence behavior byte-for-byte. `@noy-db/by-tabs` /
|
|
14696
|
+
* `@noy-db/by-peer` inject a real-time push transport here; an external
|
|
14697
|
+
* orchestrator (`@klum-db/lobby`) drives it through the `Noydb` handle.
|
|
14698
|
+
*
|
|
14699
|
+
* @internal
|
|
14700
|
+
*/
|
|
14701
|
+
readonly coordinationStrategy?: CoordinationProvider;
|
|
14702
|
+
/**
|
|
14703
|
+
* Stable id for the session that owns this instance's writers (one user's
|
|
14704
|
+
* writers across vaults). Tags every {@link WriterPresence} the fence
|
|
14705
|
+
* watcher reports. Defaults to a fresh ULID per `Noydb` instance.
|
|
14706
|
+
*
|
|
14707
|
+
* @internal
|
|
14708
|
+
*/
|
|
14709
|
+
readonly sessionId?: string;
|
|
14580
14710
|
}
|
|
14581
14711
|
/** History configuration. */
|
|
14582
14712
|
interface HistoryConfig {
|
|
@@ -14662,4 +14792,4 @@ interface DeleteManyResult {
|
|
|
14662
14792
|
}>;
|
|
14663
14793
|
}
|
|
14664
14794
|
|
|
14665
|
-
export { type VersionRecord as $, type BlobPutOptions as A, type BlobStrategy as B, type BlobResponseOptions as C, DICT_COLLECTION_PREFIX as D, BlobSet as E, type BlobStrategyOpenArgs as F, type CompactRunOptions as G, type CompactionContext as H, type I18nStrategy as I, type CompactionResult as J, DEFAULT_CHUNK_SIZE as K, EXPORT_AUDIT_COLLECTION as L, ExportBlobsAbortedError as M, type ExportBlobsAuditEntry as N, type ExportBlobsHandle as O, PolicyEnforcer as P, type ExportBlobsOptions as Q, type ExportedBlob as R, type ScriptWarning as S, type ObjectListEntry as T, type ObjectMeta as U, type ObjectProjection as V, type ObjectUrlOptions as W, type PutObjectOptions as X, type PutUrlOptions as Y, type SlotInfo as Z, type SlotRecord as _, type DictEntry as a, type ChangeType as a$, createExportBlobsHandle as a0, memoryObjectProjection as a1, runCompaction as a2, type ConsentStrategy as a3, CONSENT_AUDIT_COLLECTION as a4, type ConsentAuditEntry as a5, type ConsentAuditFilter as a6, type ConsentContext as a7, type ConsentOp as a8, loadConsentEntries as a9, type SnapshotMeta as aA, type SnapshotMode as aB, type DerivationStrategy as aC, type DerivationContext as aD, type ArrayOutputSpec as aE, DerivationRegistry as aF, type DerivationStrategyHandle as aG, type DerivedFromMeta as aH, type OutputSpec as aI, type RecordOutputSpec as aJ, type MaterializedViewStrategy as aK, type MaterializedViewStrategyHandle as aL, type OverlayedViewStrategy as aM, Collection as aN, type OverlayFieldMergeMode as aO, type OverlayFieldMergeRule as aP, OverlayedViewRegistry as aQ, type OverlayedViewStrategyHandle as aR, type SyncStrategy as aS, type Role as aT, type UnlockedKeyring as aU, type HistoryStrategy as aV, type NoydbStore as aW, type HistoryOptions as aX, type EncryptedEnvelope as aY, type PruneOptions as aZ, type AppendInput as a_, writeConsentEntry as aa, type PeriodsStrategy as ab, type CarryForwardContext as ac, type ClosePeriodOptions as ad, type OpenPeriodOptions as ae, PERIODS_COLLECTION as af, type PeriodRecord as ag, type ReadOnlyCollection as ah, appendPeriodLedgerEntry as ai, assertTsWritable as aj, chainAnchor as ak, loadPeriods as al, validatePeriodName as am, type GuardStrategy as an, type GuardChange as ao, type GuardContext as ap, GuardRegistry as aq, type GuardStrategyHandle as ar, ReadOnlyVaultFacade as as, type ShadowStrategy as at, CollectionFrame as au, VaultFrame as av, type NoydbBundleStore as aw, type RetentionPolicy as ax, type SnapshotPolicy as ay, type SnapshotStrategy as az, type DictKeyDescriptor as b, CustodyApi as b$, CollectionInstant as b0, type DiffEntry as b1, type JsonPatch as b2, type JsonPatchOp as b3, LedgerStore as b4, type VaultEngine as b5, VaultInstant as b6, type VerifyResult as b7, applyPatch as b8, computePatch as b9, type PersistedSchemaEnvelope as bA, type UpdateDecision as bB, type DirectoryConfig as bC, type UserVisibility as bD, type AccessibleVault as bE, type AffectedDocument as bF, type ApproveWithdrawalOptions as bG, type ArchivePolicy as bH, type ArchiveResult as bI, type ArchiveRunOptions as bJ, type ArchiveStrategy as bK, BUNDLE_STORE_POLICY as bL, type BuiltInGateName as bM, type CacheOptions as bN, type CacheStats as bO, type ChangeEvent as bP, type CollectionChangeEvent as bQ, type CollectionConflictResolver as bR, type CollectionDescriptor as bS, type CollectionStats as bT, ComputedFieldError as bU, type ComputedFields as bV, type ComputedFn as bW, type Conflict as bX, type ConflictPolicy as bY, type ConflictStrategy as bZ, type CrossTierAccessEvent as b_, diff as ba, formatDiff as bb, type PublicEnvelope as bc, type SealingKeyProvider as bd, type BundleRecipient as be, type RecipientSealer as bf, type RecipientHint as bg, Vault as bh, type RecoveryEnrollmentInput as bi, type ShamirRecoveryProvider as bj, TxContext as bk, type MVQueryContext as bl, type RegisteredMV as bm, MaterializedViewRegistry as bn, type MaterializedFromMeta as bo, type MaterializedViewOutput as bp, type UnionArmJoin as bq, type UnionSource as br, type UserEnvelope as bs, type GateName as bt, type GatePolicy as bu, type VaultPolicy as bv, type ActiveTier as bw, type FactorProof as bx, type SchemaUpdateStrategy as by, type TransformFn as bz, DictionaryHandle as c, type LruStats as c$, DEFAULT_PUBLIC_ENVELOPE_SCHEMA as c0, DELEGATIONS_COLLECTION as c1, type DeepPartial as c2, type DeepPartialOrNull as c3, type DeferredNumberingConfig as c4, type DelegationToken as c5, type DeleteManyResult as c6, type DerivationDescriptor as c7, type DirtyEntry as c8, type DryRunResult as c9, type HistoryConfig as cA, type HistoryEntry as cB, INDEXED_STORE_POLICY as cC, type ImportCapability as cD, type InferOutput as cE, type InternalCollectionStats as cF, type IssueDelegationOptions as cG, type IssueMagicLinkGrantOptions as cH, type KeyringAuthenticator as cI, type KeyringAuthenticatorWrappingDEKs as cJ, type KeyringAuthenticatorWrappingKEK as cK, type KeyringFile as cL, type LiberateOptions as cM, type LiberateResult as cN, LinkEndpointError as cO, LinkIntegrityError as cP, type LinkOnDelete as cQ, type LinkRow as cR, type LinkSetHandle as cS, type LinkSpec as cT, type ListAccessibleVaultsOptions as cU, type ListPageResult as cV, type ListUsersOptions as cW, type LiveUserEnvelope as cX, type LocaleReadOptions as cY, Lru as cZ, type LruOptions as c_, type DumpSchemaOptions as ca, ELEVATION_AUDIT_COLLECTION as cb, ElevatedHandle as cc, type EnrollAuthenticatorOptions as cd, type EnrollAuthenticatorWrappingDEKsOptions as ce, type EnrollAuthenticatorWrappingKEKOptions as cf, type EnrollRecoveryResult as cg, type ExportAccessibleOptions as ch, type ExportCapability as ci, type ExportChunk as cj, type ExportFormat as ck, type ExportStreamOptions as cl, type FactorKind as cm, type FactorProofBundle as cn, type FactorRequirement as co, type FenceDoc as cp, type FenceState as cq, type FieldChange as cr, type FieldDescriptor as cs, type FieldSource as ct, type FormattedSequenceHandle as cu, type FrozenSnapshotRef as cv, type GhostRecord as cw, type GrantCustodianOptions as cx, type GrantOptions as cy, type GuardViolation as cz, type DictionaryOptions as d, type SchemaDelta as d$, MAGIC_LINK_CONTENT_INFO_PREFIX as d0, MAGIC_LINK_GRANTS_COLLECTION as d1, MAGIC_LINK_KEK_INFO_PREFIX as d2, type MagicLinkGrantPayload as d3, type MagicLinkGrantRecord as d4, type MaterializedViewDescriptor as d5, MemoryRecipientSealer as d6, MemorySealingKeyProvider as d7, NOYDB_BACKUP_VERSION as d8, NOYDB_FORMAT_VERSION as d9, type PullPolicy as dA, type PullResult as dB, type PushMode as dC, type PushOptions as dD, type PushPolicy as dE, type PushResult as dF, type PutManyItemOptions as dG, type PutManyOptions as dH, type PutManyResult as dI, type QueryAcrossOptions as dJ, type QueryAcrossResult as dK, type QuickUnlockState as dL, QuickUnlockStore as dM, type ReAuthOperation as dN, type RecoverPassphraseInput as dO, type RecoverPassphraseResult as dP, type RecoverUserOptions as dQ, type RecoveryProof as dR, type RejectWithdrawalOptions as dS, type RequestWithdrawalOptions as dT, type RequestWithdrawalResult as dU, type ResolvedPublicEnvelopeSchema as dV, type RevokeOptions as dW, type RotatePassphraseInput as dX, type RotateRecoveryOptions as dY, type RotateRecoveryResult as dZ, SEALED_PASSPHRASE_RECORD_ID as d_, NOYDB_KEYRING_VERSION as da, NOYDB_SYNC_VERSION as db, type NextOptions as dc, Noydb as dd, type NoydbEventMap as de, type NoydbOptions as df, type Assignment as dg, type OverlayViewDescriptor as dh, PUBLIC_ENVELOPE_FIELDS as di, type PaperRecoveryDoc as dj, type PaperRecoveryEntry as dk, type PassphrasePolicy as dl, type PassphraseValidationResult as dm, type Permission as dn, type Permissions as dp, type PersistedSchemaKind as dq, type PlaintextTranslatorContext as dr, type PlaintextTranslatorFn as ds, PresenceHandle as dt, type PresencePeer as du, type PublicEnvelopeField as dv, type PublicEnvelopeSchema as dw, type PublicEnvelopeText as dx, type PullMode as dy, type PullOptions as dz, type StaticDictDescriptor as e, type WithdrawResult as e$, type SchemaIntrospection as e0, type SealedEnvelope as e1, type SealedPassphrase as e2, type SearchEntry as e3, type SearchOptions as e4, type SearchResult as e5, type SequenceHandle as e6, type SequenceOptions as e7, SequenceStore as e8, type SessionPolicy as e9, type TabRole as eA, type TierMode as eB, type TransactionInvariant as eC, type TranslatorAuditEntry as eD, TxCollection as eE, type TxOp as eF, TxVault as eG, USER_ENVELOPE_COLLECTION as eH, USER_ENVELOPE_MAX_BYTES as eI, type Unsubscribe as eJ, type UpdateAuthenticatorOptions as eK, type UpdateContext as eL, type UpdateUserOptions as eM, UserApi as eN, type UserEnvelopeCheckGate as eO, UserEnvelopeOversizedError as eP, type UserEnvelopePresented as eQ, type UserInfo as eR, type VaultBackup as eS, type VaultPolicyOnDisk as eT, type VaultSchemaSnapshot as eU, type VaultSnapshot as eV, type WarningRules as eW, WeakPassphraseError as eX, type WeakPassphraseReason as eY, type WithArchiveOptions as eZ, type WithdrawAccessibleOptions as e_, type SetPublicEnvelopeInput as ea, type ShamirRecoveryDoc as eb, type ShamirRecoveryEntry as ec, type SlotRewrapCeremony as ed, type SlotRewrapContext as ee, type StandardSchemaV1 as ef, type StandardSchemaV1Issue as eg, type StandardSchemaV1SyncResult as eh, type StoreAuth as ei, type StoreAuthKind as ej, type StoreCapabilities as ek, type StoreTime as el, SyncEngine as em, type SyncMetadata as en, type SyncPolicy as eo, SyncScheduler as ep, type SyncSchedulerStatus as eq, type SyncStatus as er, type SyncTarget as es, type SyncTargetRole as et, SyncTransaction as eu, type SyncTransactionResult as ev, type TabChannel as ew, type TabCoordinationOptions as ex, type TabLockManager as ey, type TabPresence as ez, dictCollectionName as f, unwrapDeksFromPaperEntry as f$, type WithdrawalRequest as f0, WithdrawalRequestError as f1, type WithdrawalRequestStatus as f2, type WrappedDeksBlob as f3, type WriteConflict as f4, type WriteEvent as f5, type WriteHook as f6, type WriteQueue as f7, aesGcmOpen as f8, approveWithdrawal as f9, listUsersWithEnvelopes as fA, listWithdrawalRequests as fB, loadActiveDelegations as fC, loadPaperRecoveryEntries as fD, loadSealedPassphrase as fE, loadShamirRecoveryEntries as fF, magicLinkGrantRecordId as fG, mintPaperRecoveryEntry as fH, mintShamirRecoveryEntry as fI, mintWrappedDeksBlob as fJ, parseRsaOaepTlv as fK, parseSealedEnvelope as fL, readMagicLinkGrantRecord as fM, recoverUser as fN, rejectWithdrawal as fO, removeAuthenticator as fP, requestWithdrawal as fQ, resolveSchema as fR, resolveSequenceKey as fS, revokeDelegation as fT, revokeMagicLinkGrant as fU, runTransaction as fV, savePaperRecoveryEntries as fW, saveSealedPassphrase as fX, saveShamirRecoveryEntries as fY, sealRsaOaepTlv as fZ, unwrapDeksFromBlob as f_, assertStrongPassphrase as fa, buildRecipientKeyringFile as fb, burnPaperRecoveryEntry as fc, compileSequenceFormat as fd, createNoydb as fe, createStore as ff, deriveMagicLinkContentKey as fg, enrollAuthenticator as fh, estimateEntropy as fi, evalComputedFields as fj, evaluateExportCapability as fk, evaluateImportCapability as fl, exportAccessibleData as fm, findAuthenticator as fn, hasExportCapability as fo, hasImportCapability as fp, hasRecoveryEnrolled as fq, isLinkCollectionName as fr, isMagicLinkGrantExpired as fs, isPublicEnvelope as ft, issueDelegation as fu, recoverPassphrase as fv, rotatePassphrase as fw, liberateVault as fx, listMagicLinkGrants as fy, listUsers as fz, dictKey as g, unwrapDeksFromShamirEntry as g0, unwrapMagicLinkGrant as g1, validatePassphrase as g2, validatePublicEnvelopeInput as g3, validateSchemaInput as g4, validateSchemaOutput as g5, withArchive as g6, withDeferredNumbering as g7, withdrawAccessibleData as g8, writeMagicLinkGrant as g9, changeSecret as ga, createOwnerKeyring as gb, ensureCollectionDEK as gc, grant as gd, loadKeyring as ge, persistKeyring as gf, revoke as gg, updateAuthenticator as gh, updateKeyringIdentity as gi, type TxStrategy as gj, type AmendmentTxOptions as gk, enforceScript as h, inferScripts as i, isDictCollectionName as j, isDictKeyDescriptor as k, isStaticDictDescriptor as l, type SessionStrategy as m, createEnforcer as n, BLOB_CHUNKS_COLLECTION as o, BLOB_COLLECTION as p, BLOB_EVICTION_AUDIT_COLLECTION as q, BLOB_INDEX_COLLECTION as r, staticDict as s, BLOB_SLOTS_PREFIX as t, BLOB_VERSIONS_PREFIX as u, validateSessionPolicy as v, type BlobEvictionEntry as w, type BlobFieldPolicy as x, type BlobFieldsConfig as y, type BlobObject as z };
|
|
14795
|
+
export { type VersionRecord as $, type BlobPutOptions as A, type BlobStrategy as B, type BlobResponseOptions as C, DICT_COLLECTION_PREFIX as D, BlobSet as E, type BlobStrategyOpenArgs as F, type CompactRunOptions as G, type CompactionContext as H, type I18nStrategy as I, type CompactionResult as J, DEFAULT_CHUNK_SIZE as K, EXPORT_AUDIT_COLLECTION as L, ExportBlobsAbortedError as M, type ExportBlobsAuditEntry as N, type ExportBlobsHandle as O, PolicyEnforcer as P, type ExportBlobsOptions as Q, type ExportedBlob as R, type ScriptWarning as S, type ObjectListEntry as T, type ObjectMeta as U, type ObjectProjection as V, type ObjectUrlOptions as W, type PutObjectOptions as X, type PutUrlOptions as Y, type SlotInfo as Z, type SlotRecord as _, type DictEntry as a, type ChangeType as a$, createExportBlobsHandle as a0, memoryObjectProjection as a1, runCompaction as a2, type ConsentStrategy as a3, CONSENT_AUDIT_COLLECTION as a4, type ConsentAuditEntry as a5, type ConsentAuditFilter as a6, type ConsentContext as a7, type ConsentOp as a8, loadConsentEntries as a9, type SnapshotMeta as aA, type SnapshotMode as aB, type DerivationStrategy as aC, type DerivationContext as aD, type ArrayOutputSpec as aE, DerivationRegistry as aF, type DerivationStrategyHandle as aG, type DerivedFromMeta as aH, type OutputSpec as aI, type RecordOutputSpec as aJ, type MaterializedViewStrategy as aK, type MaterializedViewStrategyHandle as aL, type OverlayedViewStrategy as aM, Collection as aN, type OverlayFieldMergeMode as aO, type OverlayFieldMergeRule as aP, OverlayedViewRegistry as aQ, type OverlayedViewStrategyHandle as aR, type SyncStrategy as aS, type Role as aT, type UnlockedKeyring as aU, type HistoryStrategy as aV, type NoydbStore as aW, type HistoryOptions as aX, type EncryptedEnvelope as aY, type PruneOptions as aZ, type AppendInput as a_, writeConsentEntry as aa, type PeriodsStrategy as ab, type CarryForwardContext as ac, type ClosePeriodOptions as ad, type OpenPeriodOptions as ae, PERIODS_COLLECTION as af, type PeriodRecord as ag, type ReadOnlyCollection as ah, appendPeriodLedgerEntry as ai, assertTsWritable as aj, chainAnchor as ak, loadPeriods as al, validatePeriodName as am, type GuardStrategy as an, type GuardChange as ao, type GuardContext as ap, GuardRegistry as aq, type GuardStrategyHandle as ar, ReadOnlyVaultFacade as as, type ShadowStrategy as at, CollectionFrame as au, VaultFrame as av, type NoydbBundleStore as aw, type RetentionPolicy as ax, type SnapshotPolicy as ay, type SnapshotStrategy as az, type DictKeyDescriptor as b, CustodyApi as b$, CollectionInstant as b0, type DiffEntry as b1, type JsonPatch as b2, type JsonPatchOp as b3, LedgerStore as b4, type VaultEngine as b5, VaultInstant as b6, type VerifyResult as b7, applyPatch as b8, computePatch as b9, type PersistedSchemaEnvelope as bA, type UpdateDecision as bB, type DirectoryConfig as bC, type UserVisibility as bD, type AccessibleVault as bE, type AffectedDocument as bF, type ApproveWithdrawalOptions as bG, type ArchivePolicy as bH, type ArchiveResult as bI, type ArchiveRunOptions as bJ, type ArchiveStrategy as bK, BUNDLE_STORE_POLICY as bL, type BuiltInGateName as bM, type CacheOptions as bN, type CacheStats as bO, type ChangeEvent as bP, type CollectionChangeEvent as bQ, type CollectionConflictResolver as bR, type CollectionDescriptor as bS, type CollectionStats as bT, ComputedFieldError as bU, type ComputedFields as bV, type ComputedFn as bW, type Conflict as bX, type ConflictPolicy as bY, type ConflictStrategy as bZ, type CrossTierAccessEvent as b_, diff as ba, formatDiff as bb, type PublicEnvelope as bc, type SealingKeyProvider as bd, type BundleRecipient as be, type RecipientSealer as bf, type RecipientHint as bg, Vault as bh, type RecoveryEnrollmentInput as bi, type ShamirRecoveryProvider as bj, TxContext as bk, type MVQueryContext as bl, type RegisteredMV as bm, MaterializedViewRegistry as bn, type MaterializedFromMeta as bo, type MaterializedViewOutput as bp, type UnionArmJoin as bq, type UnionSource as br, type UserEnvelope as bs, type GateName as bt, type GatePolicy as bu, type VaultPolicy as bv, type ActiveTier as bw, type FactorProof as bx, type SchemaUpdateStrategy as by, type TransformFn as bz, DictionaryHandle as c, type LruStats as c$, DEFAULT_PUBLIC_ENVELOPE_SCHEMA as c0, DELEGATIONS_COLLECTION as c1, type DeepPartial as c2, type DeepPartialOrNull as c3, type DeferredNumberingConfig as c4, type DelegationToken as c5, type DeleteManyResult as c6, type DerivationDescriptor as c7, type DirtyEntry as c8, type DryRunResult as c9, type HistoryConfig as cA, type HistoryEntry as cB, INDEXED_STORE_POLICY as cC, type ImportCapability as cD, type InferOutput as cE, type InternalCollectionStats as cF, type IssueDelegationOptions as cG, type IssueMagicLinkGrantOptions as cH, type KeyringAuthenticator as cI, type KeyringAuthenticatorWrappingDEKs as cJ, type KeyringAuthenticatorWrappingKEK as cK, type KeyringFile as cL, type LiberateOptions as cM, type LiberateResult as cN, LinkEndpointError as cO, LinkIntegrityError as cP, type LinkOnDelete as cQ, type LinkRow as cR, type LinkSetHandle as cS, type LinkSpec as cT, type ListAccessibleVaultsOptions as cU, type ListPageResult as cV, type ListUsersOptions as cW, type LiveUserEnvelope as cX, type LocaleReadOptions as cY, Lru as cZ, type LruOptions as c_, type DumpSchemaOptions as ca, ELEVATION_AUDIT_COLLECTION as cb, ElevatedHandle as cc, type EnrollAuthenticatorOptions as cd, type EnrollAuthenticatorWrappingDEKsOptions as ce, type EnrollAuthenticatorWrappingKEKOptions as cf, type EnrollRecoveryResult as cg, type ExportAccessibleOptions as ch, type ExportCapability as ci, type ExportChunk as cj, type ExportFormat as ck, type ExportStreamOptions as cl, type FactorKind as cm, type FactorProofBundle as cn, type FactorRequirement as co, type FenceDoc as cp, type FenceState$1 as cq, type FieldChange as cr, type FieldDescriptor as cs, type FieldSource as ct, type FormattedSequenceHandle as cu, type FrozenSnapshotRef as cv, type GhostRecord as cw, type GrantCustodianOptions as cx, type GrantOptions as cy, type GuardViolation as cz, type DictionaryOptions as d, type SchemaDelta as d$, MAGIC_LINK_CONTENT_INFO_PREFIX as d0, MAGIC_LINK_GRANTS_COLLECTION as d1, MAGIC_LINK_KEK_INFO_PREFIX as d2, type MagicLinkGrantPayload as d3, type MagicLinkGrantRecord as d4, type MaterializedViewDescriptor as d5, MemoryRecipientSealer as d6, MemorySealingKeyProvider as d7, NOYDB_BACKUP_VERSION as d8, NOYDB_FORMAT_VERSION as d9, type PullPolicy as dA, type PullResult as dB, type PushMode as dC, type PushOptions as dD, type PushPolicy as dE, type PushResult as dF, type PutManyItemOptions as dG, type PutManyOptions as dH, type PutManyResult as dI, type QueryAcrossOptions as dJ, type QueryAcrossResult as dK, type QuickUnlockState as dL, QuickUnlockStore as dM, type ReAuthOperation as dN, type RecoverPassphraseInput as dO, type RecoverPassphraseResult as dP, type RecoverUserOptions as dQ, type RecoveryProof as dR, type RejectWithdrawalOptions as dS, type RequestWithdrawalOptions as dT, type RequestWithdrawalResult as dU, type ResolvedPublicEnvelopeSchema as dV, type RevokeOptions as dW, type RotatePassphraseInput as dX, type RotateRecoveryOptions as dY, type RotateRecoveryResult as dZ, SEALED_PASSPHRASE_RECORD_ID as d_, NOYDB_KEYRING_VERSION as da, NOYDB_SYNC_VERSION as db, type NextOptions as dc, Noydb as dd, type NoydbEventMap as de, type NoydbOptions as df, type Assignment as dg, type OverlayViewDescriptor as dh, PUBLIC_ENVELOPE_FIELDS as di, type PaperRecoveryDoc as dj, type PaperRecoveryEntry as dk, type PassphrasePolicy as dl, type PassphraseValidationResult as dm, type Permission as dn, type Permissions as dp, type PersistedSchemaKind as dq, type PlaintextTranslatorContext as dr, type PlaintextTranslatorFn as ds, PresenceHandle as dt, type PresencePeer as du, type PublicEnvelopeField as dv, type PublicEnvelopeSchema as dw, type PublicEnvelopeText as dx, type PullMode as dy, type PullOptions as dz, type StaticDictDescriptor as e, type WithdrawResult as e$, type SchemaIntrospection as e0, type SealedEnvelope as e1, type SealedPassphrase as e2, type SearchEntry as e3, type SearchOptions as e4, type SearchResult as e5, type SequenceHandle as e6, type SequenceOptions as e7, SequenceStore as e8, type SessionPolicy as e9, type TabRole as eA, type TierMode as eB, type TransactionInvariant as eC, type TranslatorAuditEntry as eD, TxCollection as eE, type TxOp as eF, TxVault as eG, USER_ENVELOPE_COLLECTION as eH, USER_ENVELOPE_MAX_BYTES as eI, type Unsubscribe as eJ, type UpdateAuthenticatorOptions as eK, type UpdateContext as eL, type UpdateUserOptions as eM, UserApi as eN, type UserEnvelopeCheckGate as eO, UserEnvelopeOversizedError as eP, type UserEnvelopePresented as eQ, type UserInfo as eR, type VaultBackup as eS, type VaultPolicyOnDisk as eT, type VaultSchemaSnapshot as eU, type VaultSnapshot as eV, type WarningRules as eW, WeakPassphraseError as eX, type WeakPassphraseReason as eY, type WithArchiveOptions as eZ, type WithdrawAccessibleOptions as e_, type SetPublicEnvelopeInput as ea, type ShamirRecoveryDoc as eb, type ShamirRecoveryEntry as ec, type SlotRewrapCeremony as ed, type SlotRewrapContext as ee, type StandardSchemaV1 as ef, type StandardSchemaV1Issue as eg, type StandardSchemaV1SyncResult as eh, type StoreAuth as ei, type StoreAuthKind as ej, type StoreCapabilities as ek, type StoreTime as el, SyncEngine as em, type SyncMetadata as en, type SyncPolicy as eo, SyncScheduler as ep, type SyncSchedulerStatus as eq, type SyncStatus as er, type SyncTarget as es, type SyncTargetRole as et, SyncTransaction as eu, type SyncTransactionResult as ev, type TabChannel as ew, type TabCoordinationOptions as ex, type TabLockManager as ey, type TabPresence as ez, dictCollectionName as f, unwrapDeksFromPaperEntry as f$, type WithdrawalRequest as f0, WithdrawalRequestError as f1, type WithdrawalRequestStatus as f2, type WrappedDeksBlob as f3, type WriteConflict as f4, type WriteEvent as f5, type WriteHook as f6, type WriteQueue as f7, aesGcmOpen as f8, approveWithdrawal as f9, listUsersWithEnvelopes as fA, listWithdrawalRequests as fB, loadActiveDelegations as fC, loadPaperRecoveryEntries as fD, loadSealedPassphrase as fE, loadShamirRecoveryEntries as fF, magicLinkGrantRecordId as fG, mintPaperRecoveryEntry as fH, mintShamirRecoveryEntry as fI, mintWrappedDeksBlob as fJ, parseRsaOaepTlv as fK, parseSealedEnvelope as fL, readMagicLinkGrantRecord as fM, recoverUser as fN, rejectWithdrawal as fO, removeAuthenticator as fP, requestWithdrawal as fQ, resolveSchema as fR, resolveSequenceKey as fS, revokeDelegation as fT, revokeMagicLinkGrant as fU, runTransaction as fV, savePaperRecoveryEntries as fW, saveSealedPassphrase as fX, saveShamirRecoveryEntries as fY, sealRsaOaepTlv as fZ, unwrapDeksFromBlob as f_, assertStrongPassphrase as fa, buildRecipientKeyringFile as fb, burnPaperRecoveryEntry as fc, compileSequenceFormat as fd, createNoydb as fe, createStore as ff, deriveMagicLinkContentKey as fg, enrollAuthenticator as fh, estimateEntropy as fi, evalComputedFields as fj, evaluateExportCapability as fk, evaluateImportCapability as fl, exportAccessibleData as fm, findAuthenticator as fn, hasExportCapability as fo, hasImportCapability as fp, hasRecoveryEnrolled as fq, isLinkCollectionName as fr, isMagicLinkGrantExpired as fs, isPublicEnvelope as ft, issueDelegation as fu, recoverPassphrase as fv, rotatePassphrase as fw, liberateVault as fx, listMagicLinkGrants as fy, listUsers as fz, dictKey as g, unwrapDeksFromShamirEntry as g0, unwrapMagicLinkGrant as g1, validatePassphrase as g2, validatePublicEnvelopeInput as g3, validateSchemaInput as g4, validateSchemaOutput as g5, withArchive as g6, withDeferredNumbering as g7, withdrawAccessibleData as g8, writeMagicLinkGrant as g9, changeSecret as ga, createOwnerKeyring as gb, ensureCollectionDEK as gc, grant as gd, loadKeyring as ge, persistKeyring as gf, revoke as gg, updateAuthenticator as gh, updateKeyringIdentity as gi, type TxStrategy as gj, type AmendmentTxOptions as gk, type CoordinationProvider as gl, type DrainBarrierOptions as gm, type FenceState as gn, type WriterPresence as go, isQuorum as gp, runDrainBarrier as gq, enforceScript as h, inferScripts as i, isDictCollectionName as j, isDictKeyDescriptor as k, isStaticDictDescriptor as l, type SessionStrategy as m, createEnforcer as n, BLOB_CHUNKS_COLLECTION as o, BLOB_COLLECTION as p, BLOB_EVICTION_AUDIT_COLLECTION as q, BLOB_INDEX_COLLECTION as r, staticDict as s, BLOB_SLOTS_PREFIX as t, BLOB_VERSIONS_PREFIX as u, validateSessionPolicy as v, type BlobEvictionEntry as w, type BlobFieldPolicy as x, type BlobFieldsConfig as y, type BlobObject as z };
|
|
@@ -3121,12 +3121,99 @@ declare class SchemaUpdateGate {
|
|
|
3121
3121
|
* pattern of `_meta/policy` (no PII — a counter + a state enum).
|
|
3122
3122
|
*/
|
|
3123
3123
|
|
|
3124
|
-
type FenceState = 'normal' | 'draining' | 'migrating' | 'complete';
|
|
3124
|
+
type FenceState$1 = 'normal' | 'draining' | 'migrating' | 'complete';
|
|
3125
3125
|
interface FenceDoc {
|
|
3126
3126
|
readonly currentSchemaVersion: number;
|
|
3127
|
-
readonly fenceState: FenceState;
|
|
3127
|
+
readonly fenceState: FenceState$1;
|
|
3128
3128
|
}
|
|
3129
3129
|
|
|
3130
|
+
/**
|
|
3131
|
+
* Kernel coordination port — the injected `CoordinationProvider` seam for the
|
|
3132
|
+
* schema-fence drain-barrier (#469).
|
|
3133
|
+
*
|
|
3134
|
+
* The kernel defines this port; `@noy-db/by-tabs` / `@noy-db/by-peer` implement
|
|
3135
|
+
* it for real-time quorum, and an external orchestrator (`@klum-db/lobby`)
|
|
3136
|
+
* drives it through the `Noydb` handle without ever naming a `by-*` package.
|
|
3137
|
+
* The dependency arrow is `by-* → kernel ← klum`, the app at the apex.
|
|
3138
|
+
*
|
|
3139
|
+
* This module carries only the port TYPES plus two pure-ish helpers:
|
|
3140
|
+
* {@link isQuorum} (a pure quorum predicate extracted from the legacy
|
|
3141
|
+
* `activeQuiesced`) and {@link runDrainBarrier} (the reusable barrier protocol
|
|
3142
|
+
* the migration cutover and klum both call).
|
|
3143
|
+
*
|
|
3144
|
+
* @module
|
|
3145
|
+
*/
|
|
3146
|
+
|
|
3147
|
+
/** Vault fence state (the existing FenceDoc shape). */
|
|
3148
|
+
interface FenceState {
|
|
3149
|
+
readonly currentSchemaVersion: number;
|
|
3150
|
+
readonly fenceState: 'normal' | 'draining' | 'migrating' | 'complete';
|
|
3151
|
+
}
|
|
3152
|
+
/** A writer's presence + ack, tagged with the session that owns it. */
|
|
3153
|
+
interface WriterPresence {
|
|
3154
|
+
/** = today's clientId (one per tab/peer). */
|
|
3155
|
+
readonly writerId: string;
|
|
3156
|
+
/** Groups one user's writers across vaults (consolidation is klum's job). */
|
|
3157
|
+
readonly sessionId: string;
|
|
3158
|
+
readonly lastSeen: number;
|
|
3159
|
+
readonly quiescedAtVersion: number | null;
|
|
3160
|
+
}
|
|
3161
|
+
/** Session-addressable drain-barrier coordination transport. Per-vault ops. */
|
|
3162
|
+
interface CoordinationProvider {
|
|
3163
|
+
/** orchestrator → all writers */
|
|
3164
|
+
setFence(vault: string, fence: FenceState): Promise<void>;
|
|
3165
|
+
/**
|
|
3166
|
+
* Fresh one-shot fence read for the write-path gate (`assertWritable`).
|
|
3167
|
+
* A direct read (not a cached `observeFence` snapshot) avoids a staleness
|
|
3168
|
+
* window and keeps the timing-sensitive cutover gate exact. The store
|
|
3169
|
+
* default reads `_meta/schema-fence`; `by-*` return their last-pushed fence.
|
|
3170
|
+
*/
|
|
3171
|
+
readFence(vault: string): Promise<FenceState>;
|
|
3172
|
+
/** writer observes fence changes (default: poll-emit; by-*: push) */
|
|
3173
|
+
observeFence(vault: string, onChange: (f: FenceState) => void): Unsubscribe$3;
|
|
3174
|
+
/** writer → orchestrator: presence + ack (heartbeat + quiescedAtVersion) */
|
|
3175
|
+
reportPresence(vault: string, p: WriterPresence): Promise<void>;
|
|
3176
|
+
/** orchestrator observes presence changes (default: poll-emit; by-*: push) */
|
|
3177
|
+
observePresence(vault: string, onChange: (writers: readonly WriterPresence[]) => void): Unsubscribe$3;
|
|
3178
|
+
/** orchestrator one-shot snapshot of reachable writers (quorum input) */
|
|
3179
|
+
reachableWriters(vault: string, o: {
|
|
3180
|
+
staleMs: number;
|
|
3181
|
+
now: number;
|
|
3182
|
+
}): Promise<readonly WriterPresence[]>;
|
|
3183
|
+
}
|
|
3184
|
+
/**
|
|
3185
|
+
* Pure quorum predicate: true when every writer (other than `excludeWriterId`)
|
|
3186
|
+
* has acked at exactly `generation`. An empty set is trivially a quorum.
|
|
3187
|
+
*
|
|
3188
|
+
* Extracted from the legacy `activeQuiesced` store-polling check so the
|
|
3189
|
+
* migration cutover, the store default provider, and `by-*` real-time
|
|
3190
|
+
* providers all share one definition of "everyone has drained".
|
|
3191
|
+
*/
|
|
3192
|
+
declare function isQuorum(writers: readonly WriterPresence[], generation: number, excludeWriterId?: string): boolean;
|
|
3193
|
+
/** Inputs for {@link runDrainBarrier}. */
|
|
3194
|
+
interface DrainBarrierOptions {
|
|
3195
|
+
readonly vault: string;
|
|
3196
|
+
readonly generation: number;
|
|
3197
|
+
readonly writerId: string;
|
|
3198
|
+
readonly onFlush: () => Promise<void>;
|
|
3199
|
+
readonly staleMs: number;
|
|
3200
|
+
readonly quiesceTimeoutMs: number;
|
|
3201
|
+
readonly now: () => number;
|
|
3202
|
+
/** Optional seam (mainly for deterministic tests) run before each poll tick. */
|
|
3203
|
+
readonly onPoll?: () => Promise<void>;
|
|
3204
|
+
}
|
|
3205
|
+
/**
|
|
3206
|
+
* The reusable drain-barrier protocol shared by the migration cutover and klum:
|
|
3207
|
+
*
|
|
3208
|
+
* drain self → setFence(draining) → await quorum (presence push + isQuorum,
|
|
3209
|
+
* polling as a fallback, or timeout) → run() → release-by-caller.
|
|
3210
|
+
*
|
|
3211
|
+
* Resolves once every reachable writer (excluding `writerId`) has quiesced at
|
|
3212
|
+
* `generation`, at which point `run` is invoked exactly once. Rejects with
|
|
3213
|
+
* {@link QuiesceTimeoutError} if `quiesceTimeoutMs` elapses first.
|
|
3214
|
+
*/
|
|
3215
|
+
declare function runDrainBarrier(provider: CoordinationProvider, o: DrainBarrierOptions, run: () => Promise<void>): Promise<void>;
|
|
3216
|
+
|
|
3130
3217
|
/**
|
|
3131
3218
|
* Vault-level schema-fence controller.
|
|
3132
3219
|
*
|
|
@@ -3135,6 +3222,11 @@ interface FenceDoc {
|
|
|
3135
3222
|
* migrator). 3b: a cooperative ack-barrier — after `draining`, the
|
|
3136
3223
|
* migrator waits for the active client set (registry heartbeats) to ack
|
|
3137
3224
|
* the draining generation before transforming. No leader election.
|
|
3225
|
+
*
|
|
3226
|
+
* The transport is the injected {@link CoordinationProvider} port: the
|
|
3227
|
+
* default {@link StoreCoordinationProvider} maps it onto today's
|
|
3228
|
+
* `_meta/schema-fence` store ops, so behavior is byte-for-byte the same;
|
|
3229
|
+
* `by-tabs` / `by-peer` swap in real-time push transports.
|
|
3138
3230
|
*/
|
|
3139
3231
|
|
|
3140
3232
|
/** Runs one collection's transform; supplied by the Vault (binds to a Collection). */
|
|
@@ -3142,16 +3234,23 @@ type RunTransform = (collection: string, transform: TransformFn) => Promise<void
|
|
|
3142
3234
|
declare class SchemaFenceController {
|
|
3143
3235
|
#private;
|
|
3144
3236
|
constructor(opts: {
|
|
3145
|
-
|
|
3237
|
+
coordination: CoordinationProvider;
|
|
3146
3238
|
vault: string;
|
|
3147
3239
|
onFlush: () => Promise<void>;
|
|
3240
|
+
/** Stable per-instance id; the migrator excludes itself from the barrier. */
|
|
3148
3241
|
clientId?: string;
|
|
3242
|
+
/**
|
|
3243
|
+
* Accepted for wiring symmetry with {@link FenceWatcher}, but the migrator
|
|
3244
|
+
* never reports its own presence (it excludes itself from the barrier), so
|
|
3245
|
+
* it carries no session of its own.
|
|
3246
|
+
*/
|
|
3247
|
+
sessionId?: string;
|
|
3149
3248
|
now?: () => number;
|
|
3150
3249
|
staleMs?: number;
|
|
3151
3250
|
quiesceTimeoutMs?: number;
|
|
3152
3251
|
emit?: (e: {
|
|
3153
3252
|
currentSchemaVersion: number;
|
|
3154
|
-
fenceState: FenceState;
|
|
3253
|
+
fenceState: FenceState$1;
|
|
3155
3254
|
}) => void;
|
|
3156
3255
|
});
|
|
3157
3256
|
/** Capture the generation snapshot at vault-open. */
|
|
@@ -3164,8 +3263,8 @@ declare class SchemaFenceController {
|
|
|
3164
3263
|
* Admin trigger. Drain → wait for the active set to quiesce (or time out)
|
|
3165
3264
|
* → migrate each pending transform → bump → complete → normal. The
|
|
3166
3265
|
* migrator excludes itself from the barrier (it drained synchronously
|
|
3167
|
-
*
|
|
3168
|
-
* production falls back to a short real delay.
|
|
3266
|
+
* inside {@link runDrainBarrier}). `onPoll` (tests) advances other clients
|
|
3267
|
+
* between barrier checks; production falls back to a short real delay.
|
|
3169
3268
|
*/
|
|
3170
3269
|
runCutover(run: RunTransform, opts?: {
|
|
3171
3270
|
onPoll?: () => Promise<void>;
|
|
@@ -5381,6 +5480,10 @@ declare class Noydb {
|
|
|
5381
5480
|
private readonly writeHooks;
|
|
5382
5481
|
private readonly subsystemBus;
|
|
5383
5482
|
private readonly clientId;
|
|
5483
|
+
/** Session that owns this instance's writers (one user's writers across vaults). */
|
|
5484
|
+
private readonly sessionId;
|
|
5485
|
+
/** Drain-barrier coordination transport for the schema fence (#469). */
|
|
5486
|
+
private readonly coordinationProvider;
|
|
5384
5487
|
private readonly vaultCache;
|
|
5385
5488
|
private readonly keyringCache;
|
|
5386
5489
|
private readonly syncEngines;
|
|
@@ -5883,6 +5986,14 @@ declare class Noydb {
|
|
|
5883
5986
|
get _subsystemBus(): SubsystemBus;
|
|
5884
5987
|
/** @internal Stable per-instance id for schema-cutover coordination. */
|
|
5885
5988
|
get _clientId(): string;
|
|
5989
|
+
/** @internal Session that owns this instance's writers (#469). */
|
|
5990
|
+
get _sessionId(): string;
|
|
5991
|
+
/**
|
|
5992
|
+
* @internal Drain-barrier coordination transport for the schema fence (#469).
|
|
5993
|
+
* The default store-backed provider reproduces today's fence behavior; a
|
|
5994
|
+
* `by-*` real-time transport is injected via `coordinationStrategy`.
|
|
5995
|
+
*/
|
|
5996
|
+
get coordination(): CoordinationProvider;
|
|
5886
5997
|
/**
|
|
5887
5998
|
* Soft-lock a single vault: clear its in-memory keyring, DEKs, vault
|
|
5888
5999
|
* instance, sync engine, policy enforcer, and active-tier entry —
|
|
@@ -14577,6 +14688,25 @@ interface NoydbOptions {
|
|
|
14577
14688
|
* Defaults to `'anonymous'` when not supplied.
|
|
14578
14689
|
*/
|
|
14579
14690
|
readonly plaintextTranslatorName?: string;
|
|
14691
|
+
/**
|
|
14692
|
+
* Drain-barrier coordination transport for the schema fence (#469).
|
|
14693
|
+
* When omitted, the kernel uses a {@link CoordinationProvider} backed by the
|
|
14694
|
+
* primary store (`StoreCoordinationProvider`), reproducing today's
|
|
14695
|
+
* store-polling fence behavior byte-for-byte. `@noy-db/by-tabs` /
|
|
14696
|
+
* `@noy-db/by-peer` inject a real-time push transport here; an external
|
|
14697
|
+
* orchestrator (`@klum-db/lobby`) drives it through the `Noydb` handle.
|
|
14698
|
+
*
|
|
14699
|
+
* @internal
|
|
14700
|
+
*/
|
|
14701
|
+
readonly coordinationStrategy?: CoordinationProvider;
|
|
14702
|
+
/**
|
|
14703
|
+
* Stable id for the session that owns this instance's writers (one user's
|
|
14704
|
+
* writers across vaults). Tags every {@link WriterPresence} the fence
|
|
14705
|
+
* watcher reports. Defaults to a fresh ULID per `Noydb` instance.
|
|
14706
|
+
*
|
|
14707
|
+
* @internal
|
|
14708
|
+
*/
|
|
14709
|
+
readonly sessionId?: string;
|
|
14580
14710
|
}
|
|
14581
14711
|
/** History configuration. */
|
|
14582
14712
|
interface HistoryConfig {
|
|
@@ -14662,4 +14792,4 @@ interface DeleteManyResult {
|
|
|
14662
14792
|
}>;
|
|
14663
14793
|
}
|
|
14664
14794
|
|
|
14665
|
-
export { type VersionRecord as $, type BlobPutOptions as A, type BlobStrategy as B, type BlobResponseOptions as C, DICT_COLLECTION_PREFIX as D, BlobSet as E, type BlobStrategyOpenArgs as F, type CompactRunOptions as G, type CompactionContext as H, type I18nStrategy as I, type CompactionResult as J, DEFAULT_CHUNK_SIZE as K, EXPORT_AUDIT_COLLECTION as L, ExportBlobsAbortedError as M, type ExportBlobsAuditEntry as N, type ExportBlobsHandle as O, PolicyEnforcer as P, type ExportBlobsOptions as Q, type ExportedBlob as R, type ScriptWarning as S, type ObjectListEntry as T, type ObjectMeta as U, type ObjectProjection as V, type ObjectUrlOptions as W, type PutObjectOptions as X, type PutUrlOptions as Y, type SlotInfo as Z, type SlotRecord as _, type DictEntry as a, type ChangeType as a$, createExportBlobsHandle as a0, memoryObjectProjection as a1, runCompaction as a2, type ConsentStrategy as a3, CONSENT_AUDIT_COLLECTION as a4, type ConsentAuditEntry as a5, type ConsentAuditFilter as a6, type ConsentContext as a7, type ConsentOp as a8, loadConsentEntries as a9, type SnapshotMeta as aA, type SnapshotMode as aB, type DerivationStrategy as aC, type DerivationContext as aD, type ArrayOutputSpec as aE, DerivationRegistry as aF, type DerivationStrategyHandle as aG, type DerivedFromMeta as aH, type OutputSpec as aI, type RecordOutputSpec as aJ, type MaterializedViewStrategy as aK, type MaterializedViewStrategyHandle as aL, type OverlayedViewStrategy as aM, Collection as aN, type OverlayFieldMergeMode as aO, type OverlayFieldMergeRule as aP, OverlayedViewRegistry as aQ, type OverlayedViewStrategyHandle as aR, type SyncStrategy as aS, type Role as aT, type UnlockedKeyring as aU, type HistoryStrategy as aV, type NoydbStore as aW, type HistoryOptions as aX, type EncryptedEnvelope as aY, type PruneOptions as aZ, type AppendInput as a_, writeConsentEntry as aa, type PeriodsStrategy as ab, type CarryForwardContext as ac, type ClosePeriodOptions as ad, type OpenPeriodOptions as ae, PERIODS_COLLECTION as af, type PeriodRecord as ag, type ReadOnlyCollection as ah, appendPeriodLedgerEntry as ai, assertTsWritable as aj, chainAnchor as ak, loadPeriods as al, validatePeriodName as am, type GuardStrategy as an, type GuardChange as ao, type GuardContext as ap, GuardRegistry as aq, type GuardStrategyHandle as ar, ReadOnlyVaultFacade as as, type ShadowStrategy as at, CollectionFrame as au, VaultFrame as av, type NoydbBundleStore as aw, type RetentionPolicy as ax, type SnapshotPolicy as ay, type SnapshotStrategy as az, type DictKeyDescriptor as b, CustodyApi as b$, CollectionInstant as b0, type DiffEntry as b1, type JsonPatch as b2, type JsonPatchOp as b3, LedgerStore as b4, type VaultEngine as b5, VaultInstant as b6, type VerifyResult as b7, applyPatch as b8, computePatch as b9, type PersistedSchemaEnvelope as bA, type UpdateDecision as bB, type DirectoryConfig as bC, type UserVisibility as bD, type AccessibleVault as bE, type AffectedDocument as bF, type ApproveWithdrawalOptions as bG, type ArchivePolicy as bH, type ArchiveResult as bI, type ArchiveRunOptions as bJ, type ArchiveStrategy as bK, BUNDLE_STORE_POLICY as bL, type BuiltInGateName as bM, type CacheOptions as bN, type CacheStats as bO, type ChangeEvent as bP, type CollectionChangeEvent as bQ, type CollectionConflictResolver as bR, type CollectionDescriptor as bS, type CollectionStats as bT, ComputedFieldError as bU, type ComputedFields as bV, type ComputedFn as bW, type Conflict as bX, type ConflictPolicy as bY, type ConflictStrategy as bZ, type CrossTierAccessEvent as b_, diff as ba, formatDiff as bb, type PublicEnvelope as bc, type SealingKeyProvider as bd, type BundleRecipient as be, type RecipientSealer as bf, type RecipientHint as bg, Vault as bh, type RecoveryEnrollmentInput as bi, type ShamirRecoveryProvider as bj, TxContext as bk, type MVQueryContext as bl, type RegisteredMV as bm, MaterializedViewRegistry as bn, type MaterializedFromMeta as bo, type MaterializedViewOutput as bp, type UnionArmJoin as bq, type UnionSource as br, type UserEnvelope as bs, type GateName as bt, type GatePolicy as bu, type VaultPolicy as bv, type ActiveTier as bw, type FactorProof as bx, type SchemaUpdateStrategy as by, type TransformFn as bz, DictionaryHandle as c, type LruStats as c$, DEFAULT_PUBLIC_ENVELOPE_SCHEMA as c0, DELEGATIONS_COLLECTION as c1, type DeepPartial as c2, type DeepPartialOrNull as c3, type DeferredNumberingConfig as c4, type DelegationToken as c5, type DeleteManyResult as c6, type DerivationDescriptor as c7, type DirtyEntry as c8, type DryRunResult as c9, type HistoryConfig as cA, type HistoryEntry as cB, INDEXED_STORE_POLICY as cC, type ImportCapability as cD, type InferOutput as cE, type InternalCollectionStats as cF, type IssueDelegationOptions as cG, type IssueMagicLinkGrantOptions as cH, type KeyringAuthenticator as cI, type KeyringAuthenticatorWrappingDEKs as cJ, type KeyringAuthenticatorWrappingKEK as cK, type KeyringFile as cL, type LiberateOptions as cM, type LiberateResult as cN, LinkEndpointError as cO, LinkIntegrityError as cP, type LinkOnDelete as cQ, type LinkRow as cR, type LinkSetHandle as cS, type LinkSpec as cT, type ListAccessibleVaultsOptions as cU, type ListPageResult as cV, type ListUsersOptions as cW, type LiveUserEnvelope as cX, type LocaleReadOptions as cY, Lru as cZ, type LruOptions as c_, type DumpSchemaOptions as ca, ELEVATION_AUDIT_COLLECTION as cb, ElevatedHandle as cc, type EnrollAuthenticatorOptions as cd, type EnrollAuthenticatorWrappingDEKsOptions as ce, type EnrollAuthenticatorWrappingKEKOptions as cf, type EnrollRecoveryResult as cg, type ExportAccessibleOptions as ch, type ExportCapability as ci, type ExportChunk as cj, type ExportFormat as ck, type ExportStreamOptions as cl, type FactorKind as cm, type FactorProofBundle as cn, type FactorRequirement as co, type FenceDoc as cp, type FenceState as cq, type FieldChange as cr, type FieldDescriptor as cs, type FieldSource as ct, type FormattedSequenceHandle as cu, type FrozenSnapshotRef as cv, type GhostRecord as cw, type GrantCustodianOptions as cx, type GrantOptions as cy, type GuardViolation as cz, type DictionaryOptions as d, type SchemaDelta as d$, MAGIC_LINK_CONTENT_INFO_PREFIX as d0, MAGIC_LINK_GRANTS_COLLECTION as d1, MAGIC_LINK_KEK_INFO_PREFIX as d2, type MagicLinkGrantPayload as d3, type MagicLinkGrantRecord as d4, type MaterializedViewDescriptor as d5, MemoryRecipientSealer as d6, MemorySealingKeyProvider as d7, NOYDB_BACKUP_VERSION as d8, NOYDB_FORMAT_VERSION as d9, type PullPolicy as dA, type PullResult as dB, type PushMode as dC, type PushOptions as dD, type PushPolicy as dE, type PushResult as dF, type PutManyItemOptions as dG, type PutManyOptions as dH, type PutManyResult as dI, type QueryAcrossOptions as dJ, type QueryAcrossResult as dK, type QuickUnlockState as dL, QuickUnlockStore as dM, type ReAuthOperation as dN, type RecoverPassphraseInput as dO, type RecoverPassphraseResult as dP, type RecoverUserOptions as dQ, type RecoveryProof as dR, type RejectWithdrawalOptions as dS, type RequestWithdrawalOptions as dT, type RequestWithdrawalResult as dU, type ResolvedPublicEnvelopeSchema as dV, type RevokeOptions as dW, type RotatePassphraseInput as dX, type RotateRecoveryOptions as dY, type RotateRecoveryResult as dZ, SEALED_PASSPHRASE_RECORD_ID as d_, NOYDB_KEYRING_VERSION as da, NOYDB_SYNC_VERSION as db, type NextOptions as dc, Noydb as dd, type NoydbEventMap as de, type NoydbOptions as df, type Assignment as dg, type OverlayViewDescriptor as dh, PUBLIC_ENVELOPE_FIELDS as di, type PaperRecoveryDoc as dj, type PaperRecoveryEntry as dk, type PassphrasePolicy as dl, type PassphraseValidationResult as dm, type Permission as dn, type Permissions as dp, type PersistedSchemaKind as dq, type PlaintextTranslatorContext as dr, type PlaintextTranslatorFn as ds, PresenceHandle as dt, type PresencePeer as du, type PublicEnvelopeField as dv, type PublicEnvelopeSchema as dw, type PublicEnvelopeText as dx, type PullMode as dy, type PullOptions as dz, type StaticDictDescriptor as e, type WithdrawResult as e$, type SchemaIntrospection as e0, type SealedEnvelope as e1, type SealedPassphrase as e2, type SearchEntry as e3, type SearchOptions as e4, type SearchResult as e5, type SequenceHandle as e6, type SequenceOptions as e7, SequenceStore as e8, type SessionPolicy as e9, type TabRole as eA, type TierMode as eB, type TransactionInvariant as eC, type TranslatorAuditEntry as eD, TxCollection as eE, type TxOp as eF, TxVault as eG, USER_ENVELOPE_COLLECTION as eH, USER_ENVELOPE_MAX_BYTES as eI, type Unsubscribe as eJ, type UpdateAuthenticatorOptions as eK, type UpdateContext as eL, type UpdateUserOptions as eM, UserApi as eN, type UserEnvelopeCheckGate as eO, UserEnvelopeOversizedError as eP, type UserEnvelopePresented as eQ, type UserInfo as eR, type VaultBackup as eS, type VaultPolicyOnDisk as eT, type VaultSchemaSnapshot as eU, type VaultSnapshot as eV, type WarningRules as eW, WeakPassphraseError as eX, type WeakPassphraseReason as eY, type WithArchiveOptions as eZ, type WithdrawAccessibleOptions as e_, type SetPublicEnvelopeInput as ea, type ShamirRecoveryDoc as eb, type ShamirRecoveryEntry as ec, type SlotRewrapCeremony as ed, type SlotRewrapContext as ee, type StandardSchemaV1 as ef, type StandardSchemaV1Issue as eg, type StandardSchemaV1SyncResult as eh, type StoreAuth as ei, type StoreAuthKind as ej, type StoreCapabilities as ek, type StoreTime as el, SyncEngine as em, type SyncMetadata as en, type SyncPolicy as eo, SyncScheduler as ep, type SyncSchedulerStatus as eq, type SyncStatus as er, type SyncTarget as es, type SyncTargetRole as et, SyncTransaction as eu, type SyncTransactionResult as ev, type TabChannel as ew, type TabCoordinationOptions as ex, type TabLockManager as ey, type TabPresence as ez, dictCollectionName as f, unwrapDeksFromPaperEntry as f$, type WithdrawalRequest as f0, WithdrawalRequestError as f1, type WithdrawalRequestStatus as f2, type WrappedDeksBlob as f3, type WriteConflict as f4, type WriteEvent as f5, type WriteHook as f6, type WriteQueue as f7, aesGcmOpen as f8, approveWithdrawal as f9, listUsersWithEnvelopes as fA, listWithdrawalRequests as fB, loadActiveDelegations as fC, loadPaperRecoveryEntries as fD, loadSealedPassphrase as fE, loadShamirRecoveryEntries as fF, magicLinkGrantRecordId as fG, mintPaperRecoveryEntry as fH, mintShamirRecoveryEntry as fI, mintWrappedDeksBlob as fJ, parseRsaOaepTlv as fK, parseSealedEnvelope as fL, readMagicLinkGrantRecord as fM, recoverUser as fN, rejectWithdrawal as fO, removeAuthenticator as fP, requestWithdrawal as fQ, resolveSchema as fR, resolveSequenceKey as fS, revokeDelegation as fT, revokeMagicLinkGrant as fU, runTransaction as fV, savePaperRecoveryEntries as fW, saveSealedPassphrase as fX, saveShamirRecoveryEntries as fY, sealRsaOaepTlv as fZ, unwrapDeksFromBlob as f_, assertStrongPassphrase as fa, buildRecipientKeyringFile as fb, burnPaperRecoveryEntry as fc, compileSequenceFormat as fd, createNoydb as fe, createStore as ff, deriveMagicLinkContentKey as fg, enrollAuthenticator as fh, estimateEntropy as fi, evalComputedFields as fj, evaluateExportCapability as fk, evaluateImportCapability as fl, exportAccessibleData as fm, findAuthenticator as fn, hasExportCapability as fo, hasImportCapability as fp, hasRecoveryEnrolled as fq, isLinkCollectionName as fr, isMagicLinkGrantExpired as fs, isPublicEnvelope as ft, issueDelegation as fu, recoverPassphrase as fv, rotatePassphrase as fw, liberateVault as fx, listMagicLinkGrants as fy, listUsers as fz, dictKey as g, unwrapDeksFromShamirEntry as g0, unwrapMagicLinkGrant as g1, validatePassphrase as g2, validatePublicEnvelopeInput as g3, validateSchemaInput as g4, validateSchemaOutput as g5, withArchive as g6, withDeferredNumbering as g7, withdrawAccessibleData as g8, writeMagicLinkGrant as g9, changeSecret as ga, createOwnerKeyring as gb, ensureCollectionDEK as gc, grant as gd, loadKeyring as ge, persistKeyring as gf, revoke as gg, updateAuthenticator as gh, updateKeyringIdentity as gi, type TxStrategy as gj, type AmendmentTxOptions as gk, enforceScript as h, inferScripts as i, isDictCollectionName as j, isDictKeyDescriptor as k, isStaticDictDescriptor as l, type SessionStrategy as m, createEnforcer as n, BLOB_CHUNKS_COLLECTION as o, BLOB_COLLECTION as p, BLOB_EVICTION_AUDIT_COLLECTION as q, BLOB_INDEX_COLLECTION as r, staticDict as s, BLOB_SLOTS_PREFIX as t, BLOB_VERSIONS_PREFIX as u, validateSessionPolicy as v, type BlobEvictionEntry as w, type BlobFieldPolicy as x, type BlobFieldsConfig as y, type BlobObject as z };
|
|
14795
|
+
export { type VersionRecord as $, type BlobPutOptions as A, type BlobStrategy as B, type BlobResponseOptions as C, DICT_COLLECTION_PREFIX as D, BlobSet as E, type BlobStrategyOpenArgs as F, type CompactRunOptions as G, type CompactionContext as H, type I18nStrategy as I, type CompactionResult as J, DEFAULT_CHUNK_SIZE as K, EXPORT_AUDIT_COLLECTION as L, ExportBlobsAbortedError as M, type ExportBlobsAuditEntry as N, type ExportBlobsHandle as O, PolicyEnforcer as P, type ExportBlobsOptions as Q, type ExportedBlob as R, type ScriptWarning as S, type ObjectListEntry as T, type ObjectMeta as U, type ObjectProjection as V, type ObjectUrlOptions as W, type PutObjectOptions as X, type PutUrlOptions as Y, type SlotInfo as Z, type SlotRecord as _, type DictEntry as a, type ChangeType as a$, createExportBlobsHandle as a0, memoryObjectProjection as a1, runCompaction as a2, type ConsentStrategy as a3, CONSENT_AUDIT_COLLECTION as a4, type ConsentAuditEntry as a5, type ConsentAuditFilter as a6, type ConsentContext as a7, type ConsentOp as a8, loadConsentEntries as a9, type SnapshotMeta as aA, type SnapshotMode as aB, type DerivationStrategy as aC, type DerivationContext as aD, type ArrayOutputSpec as aE, DerivationRegistry as aF, type DerivationStrategyHandle as aG, type DerivedFromMeta as aH, type OutputSpec as aI, type RecordOutputSpec as aJ, type MaterializedViewStrategy as aK, type MaterializedViewStrategyHandle as aL, type OverlayedViewStrategy as aM, Collection as aN, type OverlayFieldMergeMode as aO, type OverlayFieldMergeRule as aP, OverlayedViewRegistry as aQ, type OverlayedViewStrategyHandle as aR, type SyncStrategy as aS, type Role as aT, type UnlockedKeyring as aU, type HistoryStrategy as aV, type NoydbStore as aW, type HistoryOptions as aX, type EncryptedEnvelope as aY, type PruneOptions as aZ, type AppendInput as a_, writeConsentEntry as aa, type PeriodsStrategy as ab, type CarryForwardContext as ac, type ClosePeriodOptions as ad, type OpenPeriodOptions as ae, PERIODS_COLLECTION as af, type PeriodRecord as ag, type ReadOnlyCollection as ah, appendPeriodLedgerEntry as ai, assertTsWritable as aj, chainAnchor as ak, loadPeriods as al, validatePeriodName as am, type GuardStrategy as an, type GuardChange as ao, type GuardContext as ap, GuardRegistry as aq, type GuardStrategyHandle as ar, ReadOnlyVaultFacade as as, type ShadowStrategy as at, CollectionFrame as au, VaultFrame as av, type NoydbBundleStore as aw, type RetentionPolicy as ax, type SnapshotPolicy as ay, type SnapshotStrategy as az, type DictKeyDescriptor as b, CustodyApi as b$, CollectionInstant as b0, type DiffEntry as b1, type JsonPatch as b2, type JsonPatchOp as b3, LedgerStore as b4, type VaultEngine as b5, VaultInstant as b6, type VerifyResult as b7, applyPatch as b8, computePatch as b9, type PersistedSchemaEnvelope as bA, type UpdateDecision as bB, type DirectoryConfig as bC, type UserVisibility as bD, type AccessibleVault as bE, type AffectedDocument as bF, type ApproveWithdrawalOptions as bG, type ArchivePolicy as bH, type ArchiveResult as bI, type ArchiveRunOptions as bJ, type ArchiveStrategy as bK, BUNDLE_STORE_POLICY as bL, type BuiltInGateName as bM, type CacheOptions as bN, type CacheStats as bO, type ChangeEvent as bP, type CollectionChangeEvent as bQ, type CollectionConflictResolver as bR, type CollectionDescriptor as bS, type CollectionStats as bT, ComputedFieldError as bU, type ComputedFields as bV, type ComputedFn as bW, type Conflict as bX, type ConflictPolicy as bY, type ConflictStrategy as bZ, type CrossTierAccessEvent as b_, diff as ba, formatDiff as bb, type PublicEnvelope as bc, type SealingKeyProvider as bd, type BundleRecipient as be, type RecipientSealer as bf, type RecipientHint as bg, Vault as bh, type RecoveryEnrollmentInput as bi, type ShamirRecoveryProvider as bj, TxContext as bk, type MVQueryContext as bl, type RegisteredMV as bm, MaterializedViewRegistry as bn, type MaterializedFromMeta as bo, type MaterializedViewOutput as bp, type UnionArmJoin as bq, type UnionSource as br, type UserEnvelope as bs, type GateName as bt, type GatePolicy as bu, type VaultPolicy as bv, type ActiveTier as bw, type FactorProof as bx, type SchemaUpdateStrategy as by, type TransformFn as bz, DictionaryHandle as c, type LruStats as c$, DEFAULT_PUBLIC_ENVELOPE_SCHEMA as c0, DELEGATIONS_COLLECTION as c1, type DeepPartial as c2, type DeepPartialOrNull as c3, type DeferredNumberingConfig as c4, type DelegationToken as c5, type DeleteManyResult as c6, type DerivationDescriptor as c7, type DirtyEntry as c8, type DryRunResult as c9, type HistoryConfig as cA, type HistoryEntry as cB, INDEXED_STORE_POLICY as cC, type ImportCapability as cD, type InferOutput as cE, type InternalCollectionStats as cF, type IssueDelegationOptions as cG, type IssueMagicLinkGrantOptions as cH, type KeyringAuthenticator as cI, type KeyringAuthenticatorWrappingDEKs as cJ, type KeyringAuthenticatorWrappingKEK as cK, type KeyringFile as cL, type LiberateOptions as cM, type LiberateResult as cN, LinkEndpointError as cO, LinkIntegrityError as cP, type LinkOnDelete as cQ, type LinkRow as cR, type LinkSetHandle as cS, type LinkSpec as cT, type ListAccessibleVaultsOptions as cU, type ListPageResult as cV, type ListUsersOptions as cW, type LiveUserEnvelope as cX, type LocaleReadOptions as cY, Lru as cZ, type LruOptions as c_, type DumpSchemaOptions as ca, ELEVATION_AUDIT_COLLECTION as cb, ElevatedHandle as cc, type EnrollAuthenticatorOptions as cd, type EnrollAuthenticatorWrappingDEKsOptions as ce, type EnrollAuthenticatorWrappingKEKOptions as cf, type EnrollRecoveryResult as cg, type ExportAccessibleOptions as ch, type ExportCapability as ci, type ExportChunk as cj, type ExportFormat as ck, type ExportStreamOptions as cl, type FactorKind as cm, type FactorProofBundle as cn, type FactorRequirement as co, type FenceDoc as cp, type FenceState$1 as cq, type FieldChange as cr, type FieldDescriptor as cs, type FieldSource as ct, type FormattedSequenceHandle as cu, type FrozenSnapshotRef as cv, type GhostRecord as cw, type GrantCustodianOptions as cx, type GrantOptions as cy, type GuardViolation as cz, type DictionaryOptions as d, type SchemaDelta as d$, MAGIC_LINK_CONTENT_INFO_PREFIX as d0, MAGIC_LINK_GRANTS_COLLECTION as d1, MAGIC_LINK_KEK_INFO_PREFIX as d2, type MagicLinkGrantPayload as d3, type MagicLinkGrantRecord as d4, type MaterializedViewDescriptor as d5, MemoryRecipientSealer as d6, MemorySealingKeyProvider as d7, NOYDB_BACKUP_VERSION as d8, NOYDB_FORMAT_VERSION as d9, type PullPolicy as dA, type PullResult as dB, type PushMode as dC, type PushOptions as dD, type PushPolicy as dE, type PushResult as dF, type PutManyItemOptions as dG, type PutManyOptions as dH, type PutManyResult as dI, type QueryAcrossOptions as dJ, type QueryAcrossResult as dK, type QuickUnlockState as dL, QuickUnlockStore as dM, type ReAuthOperation as dN, type RecoverPassphraseInput as dO, type RecoverPassphraseResult as dP, type RecoverUserOptions as dQ, type RecoveryProof as dR, type RejectWithdrawalOptions as dS, type RequestWithdrawalOptions as dT, type RequestWithdrawalResult as dU, type ResolvedPublicEnvelopeSchema as dV, type RevokeOptions as dW, type RotatePassphraseInput as dX, type RotateRecoveryOptions as dY, type RotateRecoveryResult as dZ, SEALED_PASSPHRASE_RECORD_ID as d_, NOYDB_KEYRING_VERSION as da, NOYDB_SYNC_VERSION as db, type NextOptions as dc, Noydb as dd, type NoydbEventMap as de, type NoydbOptions as df, type Assignment as dg, type OverlayViewDescriptor as dh, PUBLIC_ENVELOPE_FIELDS as di, type PaperRecoveryDoc as dj, type PaperRecoveryEntry as dk, type PassphrasePolicy as dl, type PassphraseValidationResult as dm, type Permission as dn, type Permissions as dp, type PersistedSchemaKind as dq, type PlaintextTranslatorContext as dr, type PlaintextTranslatorFn as ds, PresenceHandle as dt, type PresencePeer as du, type PublicEnvelopeField as dv, type PublicEnvelopeSchema as dw, type PublicEnvelopeText as dx, type PullMode as dy, type PullOptions as dz, type StaticDictDescriptor as e, type WithdrawResult as e$, type SchemaIntrospection as e0, type SealedEnvelope as e1, type SealedPassphrase as e2, type SearchEntry as e3, type SearchOptions as e4, type SearchResult as e5, type SequenceHandle as e6, type SequenceOptions as e7, SequenceStore as e8, type SessionPolicy as e9, type TabRole as eA, type TierMode as eB, type TransactionInvariant as eC, type TranslatorAuditEntry as eD, TxCollection as eE, type TxOp as eF, TxVault as eG, USER_ENVELOPE_COLLECTION as eH, USER_ENVELOPE_MAX_BYTES as eI, type Unsubscribe as eJ, type UpdateAuthenticatorOptions as eK, type UpdateContext as eL, type UpdateUserOptions as eM, UserApi as eN, type UserEnvelopeCheckGate as eO, UserEnvelopeOversizedError as eP, type UserEnvelopePresented as eQ, type UserInfo as eR, type VaultBackup as eS, type VaultPolicyOnDisk as eT, type VaultSchemaSnapshot as eU, type VaultSnapshot as eV, type WarningRules as eW, WeakPassphraseError as eX, type WeakPassphraseReason as eY, type WithArchiveOptions as eZ, type WithdrawAccessibleOptions as e_, type SetPublicEnvelopeInput as ea, type ShamirRecoveryDoc as eb, type ShamirRecoveryEntry as ec, type SlotRewrapCeremony as ed, type SlotRewrapContext as ee, type StandardSchemaV1 as ef, type StandardSchemaV1Issue as eg, type StandardSchemaV1SyncResult as eh, type StoreAuth as ei, type StoreAuthKind as ej, type StoreCapabilities as ek, type StoreTime as el, SyncEngine as em, type SyncMetadata as en, type SyncPolicy as eo, SyncScheduler as ep, type SyncSchedulerStatus as eq, type SyncStatus as er, type SyncTarget as es, type SyncTargetRole as et, SyncTransaction as eu, type SyncTransactionResult as ev, type TabChannel as ew, type TabCoordinationOptions as ex, type TabLockManager as ey, type TabPresence as ez, dictCollectionName as f, unwrapDeksFromPaperEntry as f$, type WithdrawalRequest as f0, WithdrawalRequestError as f1, type WithdrawalRequestStatus as f2, type WrappedDeksBlob as f3, type WriteConflict as f4, type WriteEvent as f5, type WriteHook as f6, type WriteQueue as f7, aesGcmOpen as f8, approveWithdrawal as f9, listUsersWithEnvelopes as fA, listWithdrawalRequests as fB, loadActiveDelegations as fC, loadPaperRecoveryEntries as fD, loadSealedPassphrase as fE, loadShamirRecoveryEntries as fF, magicLinkGrantRecordId as fG, mintPaperRecoveryEntry as fH, mintShamirRecoveryEntry as fI, mintWrappedDeksBlob as fJ, parseRsaOaepTlv as fK, parseSealedEnvelope as fL, readMagicLinkGrantRecord as fM, recoverUser as fN, rejectWithdrawal as fO, removeAuthenticator as fP, requestWithdrawal as fQ, resolveSchema as fR, resolveSequenceKey as fS, revokeDelegation as fT, revokeMagicLinkGrant as fU, runTransaction as fV, savePaperRecoveryEntries as fW, saveSealedPassphrase as fX, saveShamirRecoveryEntries as fY, sealRsaOaepTlv as fZ, unwrapDeksFromBlob as f_, assertStrongPassphrase as fa, buildRecipientKeyringFile as fb, burnPaperRecoveryEntry as fc, compileSequenceFormat as fd, createNoydb as fe, createStore as ff, deriveMagicLinkContentKey as fg, enrollAuthenticator as fh, estimateEntropy as fi, evalComputedFields as fj, evaluateExportCapability as fk, evaluateImportCapability as fl, exportAccessibleData as fm, findAuthenticator as fn, hasExportCapability as fo, hasImportCapability as fp, hasRecoveryEnrolled as fq, isLinkCollectionName as fr, isMagicLinkGrantExpired as fs, isPublicEnvelope as ft, issueDelegation as fu, recoverPassphrase as fv, rotatePassphrase as fw, liberateVault as fx, listMagicLinkGrants as fy, listUsers as fz, dictKey as g, unwrapDeksFromShamirEntry as g0, unwrapMagicLinkGrant as g1, validatePassphrase as g2, validatePublicEnvelopeInput as g3, validateSchemaInput as g4, validateSchemaOutput as g5, withArchive as g6, withDeferredNumbering as g7, withdrawAccessibleData as g8, writeMagicLinkGrant as g9, changeSecret as ga, createOwnerKeyring as gb, ensureCollectionDEK as gc, grant as gd, loadKeyring as ge, persistKeyring as gf, revoke as gg, updateAuthenticator as gh, updateKeyringIdentity as gi, type TxStrategy as gj, type AmendmentTxOptions as gk, type CoordinationProvider as gl, type DrainBarrierOptions as gm, type FenceState as gn, type WriterPresence as go, isQuorum as gp, runDrainBarrier as gq, enforceScript as h, inferScripts as i, isDictCollectionName as j, isDictKeyDescriptor as k, isStaticDictDescriptor as l, type SessionStrategy as m, createEnforcer as n, BLOB_CHUNKS_COLLECTION as o, BLOB_COLLECTION as p, BLOB_EVICTION_AUDIT_COLLECTION as q, BLOB_INDEX_COLLECTION as r, staticDict as s, BLOB_SLOTS_PREFIX as t, BLOB_VERSIONS_PREFIX as u, validateSessionPolicy as v, type BlobEvictionEntry as w, type BlobFieldPolicy as x, type BlobFieldsConfig as y, type BlobObject as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aK as MaterializedViewStrategy, aL as MaterializedViewStrategyHandle } from './types-
|
|
1
|
+
import { aK as MaterializedViewStrategy, aL as MaterializedViewStrategyHandle } from './types-CkSWJt0H.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Register a materialized view: a declared query whose result is
|
package/dist/{with-materialized-view-CTHe6uh9.d.cts → with-materialized-view-dPG213gd.d.cts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aK as MaterializedViewStrategy, aL as MaterializedViewStrategyHandle } from './types-
|
|
1
|
+
import { aK as MaterializedViewStrategy, aL as MaterializedViewStrategyHandle } from './types-CwrTuYFI.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Register a materialized view: a declared query whose result is
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aM as OverlayedViewStrategy, aR as OverlayedViewStrategyHandle } from './types-
|
|
1
|
+
import { aM as OverlayedViewStrategy, aR as OverlayedViewStrategyHandle } from './types-CwrTuYFI.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Register a read-shadow overlay: bind an MV-owned base collection to
|