keri-ts 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/keri/npm/src/acdc/chaining.js +223 -89
- package/esm/keri/npm/src/acdc/observing.js +2 -2
- package/esm/keri/npm/src/acdc/regbasing.js +20 -29
- package/esm/keri/npm/src/acdc/regengine.js +4 -6
- package/esm/keri/npm/src/acdc/registering.js +13 -10
- package/esm/keri/npm/src/acdc/registraring.js +4 -9
- package/esm/keri/npm/src/acdc/salting.js +127 -25
- package/esm/keri/npm/src/acdc/unblinding.js +2 -4
- package/esm/keri/npm/src/app/bootstrap/oobiery.js +1 -1
- package/esm/keri/npm/src/app/credentials/root-replicating.js +123 -0
- package/esm/keri/npm/src/app/credentials/verifying.js +21 -3
- package/esm/keri/npm/src/app/delivery/forwarding.js +49 -7
- package/esm/keri/npm/src/app/exchanges/exchanging.js +11 -12
- package/esm/keri/npm/src/app/identity/configing.js +17 -43
- package/esm/keri/npm/src/app/identity/habbing.js +54 -35
- package/esm/keri/npm/src/app/identity/keeping.js +1 -1
- package/esm/keri/npm/src/app/identity/lmdb-habery.js +12 -0
- package/esm/keri/npm/src/app/ipex/ipex-graph.js +7 -70
- package/esm/keri/npm/src/app/ipex/ipex-grouping.js +8 -5
- package/esm/keri/npm/src/app/ipex/ipex-v2.js +21 -5
- package/esm/keri/npm/src/app/ipex/ipexing.js +1 -1
- package/esm/keri/npm/src/app/mailbox/mailboxing.js +5 -9
- package/esm/keri/npm/src/app/multisig/group-members.js +14 -0
- package/esm/keri/npm/src/app/multisig/grouping.js +4 -3
- package/esm/keri/npm/src/app/multisig/multisig-workflows.js +7 -2
- package/esm/keri/npm/src/app/notifications/notifying.js +5 -9
- package/esm/keri/npm/src/app/protocol/protocol-processing.js +35 -3
- package/esm/keri/npm/src/app/queries/witness-inquisitor.js +2 -2
- package/esm/keri/npm/src/app/runtime/agent-runtime.js +7 -10
- package/esm/keri/npm/src/app/transport/byte-source.js +6 -42
- package/esm/keri/npm/src/app/transport/cesr-egress.js +77 -13
- package/esm/keri/npm/src/app/transport/file-bytes.js +41 -0
- package/esm/keri/npm/src/app/transport/http-messenger.js +14 -9
- package/esm/keri/npm/src/app/transport/message-source.js +1 -1
- package/esm/keri/npm/src/app/transport/messengering.js +3 -4
- package/esm/keri/npm/src/app/transport/node-http-client.js +21 -0
- package/esm/keri/npm/src/app/transport/tcp-dialer.js +14 -0
- package/esm/keri/npm/src/app/witness/receipt-client.js +2 -2
- package/esm/keri/npm/src/cli/common/context.js +2 -2
- package/esm/keri/npm/src/cli/common/existing.js +3 -5
- package/esm/keri/npm/src/cli/credentials/ipex.js +2 -1
- package/esm/keri/npm/src/cli/endpoints/oobi-clean.js +4 -3
- package/esm/keri/npm/src/cli/endpoints/oobi.js +2 -2
- package/esm/keri/npm/src/cli/identity/challenge.js +2 -2
- package/esm/keri/npm/src/cli/identity/incept.js +2 -2
- package/esm/keri/npm/src/cli/identity/init.js +4 -3
- package/esm/keri/npm/src/cli/identity/interact.js +2 -2
- package/esm/keri/npm/src/cli/identity/rotate.js +2 -2
- package/esm/keri/npm/src/cli/messaging/exchange.js +2 -2
- package/esm/keri/npm/src/cli/messaging/multisig.js +61 -3
- package/esm/keri/npm/src/cli/tools/annotate.js +2 -1
- package/esm/keri/npm/src/cli/tools/benchmark.js +2 -1
- package/esm/keri/npm/src/cli/tools/db-dump.js +1 -4
- package/esm/keri/npm/src/core/bytes.js +9 -0
- package/esm/keri/npm/src/core/kel/delegation-ancestry.js +92 -0
- package/esm/keri/npm/src/core/kel/eventing.js +1 -2
- package/esm/keri/npm/src/core/kel/kever.js +11 -9
- package/esm/keri/npm/src/core/mailbox/kram-policy.js +2 -3
- package/esm/keri/npm/src/core/mailbox/kram-pruning.js +15 -22
- package/esm/keri/npm/src/core/mailbox/kram-staging.js +2 -2
- package/esm/keri/npm/src/core/routing.js +2 -2
- package/esm/keri/npm/src/db/basing.js +149 -203
- package/esm/keri/npm/src/db/core/dber.js +1062 -0
- package/esm/keri/npm/src/db/core/index.js +4 -2
- package/esm/keri/npm/src/db/core/lmdb-opener.js +30 -0
- package/esm/keri/npm/src/db/core/lmdber.js +199 -1067
- package/esm/keri/npm/src/db/core/memstore.js +532 -0
- package/esm/keri/npm/src/db/core/path-manager.js +109 -223
- package/esm/keri/npm/src/db/core/store-owner.js +104 -0
- package/esm/keri/npm/src/db/core/webdber.js +252 -0
- package/esm/keri/npm/src/db/escrowing.js +2 -2
- package/esm/keri/npm/src/db/exchange/exchange-nests.js +3 -2
- package/esm/keri/npm/src/db/keeping.js +27 -121
- package/esm/keri/npm/src/db/koming.js +1 -1
- package/esm/keri/npm/src/db/lmdb-stores.js +68 -0
- package/esm/keri/npm/src/db/lmdb.js +6 -0
- package/esm/keri/npm/src/db/mailbox/mailboxing.js +12 -65
- package/esm/keri/npm/src/db/noting.js +11 -55
- package/esm/keri/npm/src/db/reger.js +43 -105
- package/esm/keri/npm/src/db/replay/witness-replay.js +2 -20
- package/esm/keri/npm/src/db/subing.js +1 -1
- package/esm/keri/npm/src/npm/db-lmdb.js +3 -0
- package/esm/keri/npm/src/npm/runtime-node.js +3 -0
- package/esm/keri/npm/src/runtime/index.js +9 -10
- package/esm/keri/npm/src/runtime/node.js +14 -0
- package/esm/keri/npm/src/vdr/eventing.js +1 -1
- package/esm/keri/npm/src/vdr/tel-publication.js +3 -3
- package/esm/keri/npm/src/version.js +2 -2
- package/package.json +11 -4
- package/types/acdc/chaining.d.ts +56 -6
- package/types/acdc/chaining.d.ts.map +1 -1
- package/types/acdc/regbasing.d.ts +7 -6
- package/types/acdc/regbasing.d.ts.map +1 -1
- package/types/acdc/regengine.d.ts.map +1 -1
- package/types/acdc/registering.d.ts +8 -4
- package/types/acdc/registering.d.ts.map +1 -1
- package/types/acdc/registraring.d.ts.map +1 -1
- package/types/acdc/salting.d.ts +53 -6
- package/types/acdc/salting.d.ts.map +1 -1
- package/types/acdc/unblinding.d.ts.map +1 -1
- package/types/app/credentials/root-replicating.d.ts +85 -0
- package/types/app/credentials/root-replicating.d.ts.map +1 -0
- package/types/app/credentials/verifying.d.ts +2 -1
- package/types/app/credentials/verifying.d.ts.map +1 -1
- package/types/app/delivery/forwarding.d.ts +10 -0
- package/types/app/delivery/forwarding.d.ts.map +1 -1
- package/types/app/exchanges/exchanging.d.ts +2 -0
- package/types/app/exchanges/exchanging.d.ts.map +1 -1
- package/types/app/identity/configing.d.ts +7 -5
- package/types/app/identity/configing.d.ts.map +1 -1
- package/types/app/identity/habbing.d.ts +23 -5
- package/types/app/identity/habbing.d.ts.map +1 -1
- package/types/app/identity/keeping.d.ts +1 -1
- package/types/app/identity/lmdb-habery.d.ts +6 -0
- package/types/app/identity/lmdb-habery.d.ts.map +1 -0
- package/types/app/ipex/ipex-graph.d.ts +4 -4
- package/types/app/ipex/ipex-graph.d.ts.map +1 -1
- package/types/app/ipex/ipex-grouping.d.ts.map +1 -1
- package/types/app/ipex/ipex-v2.d.ts +11 -2
- package/types/app/ipex/ipex-v2.d.ts.map +1 -1
- package/types/app/ipex/ipexing.d.ts +3 -0
- package/types/app/ipex/ipexing.d.ts.map +1 -1
- package/types/app/mailbox/mailboxing.d.ts +1 -1
- package/types/app/mailbox/mailboxing.d.ts.map +1 -1
- package/types/app/multisig/group-members.d.ts +9 -0
- package/types/app/multisig/group-members.d.ts.map +1 -1
- package/types/app/multisig/grouping.d.ts.map +1 -1
- package/types/app/multisig/multisig-workflows.d.ts +2 -1
- package/types/app/multisig/multisig-workflows.d.ts.map +1 -1
- package/types/app/notifications/notifying.d.ts +1 -1
- package/types/app/notifications/notifying.d.ts.map +1 -1
- package/types/app/protocol/parsering.d.ts +3 -1
- package/types/app/protocol/parsering.d.ts.map +1 -1
- package/types/app/protocol/protocol-processing.d.ts +2 -0
- package/types/app/protocol/protocol-processing.d.ts.map +1 -1
- package/types/app/runtime/agent-runtime.d.ts +7 -0
- package/types/app/runtime/agent-runtime.d.ts.map +1 -1
- package/types/app/transport/byte-source.d.ts +13 -10
- package/types/app/transport/byte-source.d.ts.map +1 -1
- package/types/app/transport/cesr-egress.d.ts +21 -7
- package/types/app/transport/cesr-egress.d.ts.map +1 -1
- package/types/app/transport/file-bytes.d.ts +11 -0
- package/types/app/transport/file-bytes.d.ts.map +1 -0
- package/types/app/transport/http-client.d.ts +3 -0
- package/types/app/transport/http-client.d.ts.map +1 -1
- package/types/app/transport/http-messenger.d.ts +15 -10
- package/types/app/transport/http-messenger.d.ts.map +1 -1
- package/types/app/transport/message-source.d.ts +1 -1
- package/types/app/transport/messengering.d.ts +2 -2
- package/types/app/transport/messengering.d.ts.map +1 -1
- package/types/app/transport/node-http-client.d.ts +10 -0
- package/types/app/transport/node-http-client.d.ts.map +1 -0
- package/types/app/transport/tcp-dialer.d.ts +21 -0
- package/types/app/transport/tcp-dialer.d.ts.map +1 -0
- package/types/cli/common/existing.d.ts.map +1 -1
- package/types/cli/credentials/ipex.d.ts.map +1 -1
- package/types/cli/endpoints/oobi-clean.d.ts.map +1 -1
- package/types/cli/identity/init.d.ts.map +1 -1
- package/types/cli/index.d.ts +1 -1
- package/types/cli/index.d.ts.map +1 -1
- package/types/cli/messaging/multisig.d.ts +10 -1
- package/types/cli/messaging/multisig.d.ts.map +1 -1
- package/types/cli/tools/annotate.d.ts.map +1 -1
- package/types/cli/tools/benchmark.d.ts.map +1 -1
- package/types/cli/tools/db-dump.d.ts.map +1 -1
- package/types/core/bytes.d.ts +2 -0
- package/types/core/bytes.d.ts.map +1 -1
- package/types/core/kel/delegation-ancestry.d.ts +41 -0
- package/types/core/kel/delegation-ancestry.d.ts.map +1 -0
- package/types/core/kel/eventing.d.ts.map +1 -1
- package/types/core/kel/kever.d.ts +5 -4
- package/types/core/kel/kever.d.ts.map +1 -1
- package/types/core/mailbox/kram-policy.d.ts.map +1 -1
- package/types/core/mailbox/kram-pruning.d.ts +1 -3
- package/types/core/mailbox/kram-pruning.d.ts.map +1 -1
- package/types/db/basing.d.ts +14 -23
- package/types/db/basing.d.ts.map +1 -1
- package/types/db/core/dber.d.ts +505 -0
- package/types/db/core/dber.d.ts.map +1 -0
- package/types/db/core/index.d.ts +4 -2
- package/types/db/core/index.d.ts.map +1 -1
- package/types/db/core/lmdb-opener.d.ts +17 -0
- package/types/db/core/lmdb-opener.d.ts.map +1 -0
- package/types/db/core/lmdber.d.ts +60 -383
- package/types/db/core/lmdber.d.ts.map +1 -1
- package/types/db/core/memstore.d.ts +129 -0
- package/types/db/core/memstore.d.ts.map +1 -0
- package/types/db/core/path-manager.d.ts +22 -45
- package/types/db/core/path-manager.d.ts.map +1 -1
- package/types/db/core/store-owner.d.ts +59 -0
- package/types/db/core/store-owner.d.ts.map +1 -0
- package/types/db/core/webdber.d.ts +127 -0
- package/types/db/core/webdber.d.ts.map +1 -0
- package/types/db/escrowing.d.ts +3 -3
- package/types/db/escrowing.d.ts.map +1 -1
- package/types/db/exchange/exchange-nests.d.ts.map +1 -1
- package/types/db/keeping.d.ts +9 -23
- package/types/db/keeping.d.ts.map +1 -1
- package/types/db/koming.d.ts +7 -8
- package/types/db/koming.d.ts.map +1 -1
- package/types/db/lmdb-stores.d.ts +45 -0
- package/types/db/lmdb-stores.d.ts.map +1 -0
- package/types/db/lmdb.d.ts +7 -0
- package/types/db/lmdb.d.ts.map +1 -0
- package/types/db/mailbox/mailboxing.d.ts +7 -21
- package/types/db/mailbox/mailboxing.d.ts.map +1 -1
- package/types/db/noting.d.ts +7 -12
- package/types/db/noting.d.ts.map +1 -1
- package/types/db/reger.d.ts +7 -11
- package/types/db/reger.d.ts.map +1 -1
- package/types/db/replay/witness-replay.d.ts +0 -2
- package/types/db/replay/witness-replay.d.ts.map +1 -1
- package/types/db/subing.d.ts +24 -25
- package/types/db/subing.d.ts.map +1 -1
- package/types/npm/db-lmdb.d.ts +4 -0
- package/types/npm/db-lmdb.d.ts.map +1 -0
- package/types/npm/runtime-node.d.ts +4 -0
- package/types/npm/runtime-node.d.ts.map +1 -0
- package/types/runtime/index.d.ts +9 -10
- package/types/runtime/index.d.ts.map +1 -1
- package/types/runtime/node.d.ts +15 -0
- package/types/runtime/node.d.ts.map +1 -0
- package/types/version.d.ts +2 -2
- package/esm/keri/npm/src/acdc/relating.js +0 -59
- package/esm/keri/npm/src/db/baser-defaults.js +0 -11
- package/types/acdc/relating.d.ts +0 -21
- package/types/acdc/relating.d.ts.map +0 -1
- package/types/db/baser-defaults.d.ts +0 -5
- package/types/db/baser-defaults.d.ts.map +0 -1
package/types/db/koming.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type Kind } from "cesr-ts";
|
|
2
|
-
import type { Database } from "lmdb" with { "resolution-mode": "require" };
|
|
3
2
|
import { RawRecord, type RawRecordClass, type RecordInputOf, type RecordShapeOf } from "../core/records.js";
|
|
4
|
-
import {
|
|
3
|
+
import type { DBer, Table } from "./core/dber.js";
|
|
5
4
|
type KeyPart = string | Uint8Array;
|
|
6
5
|
type Keys = KeyPart | Iterable<KeyPart>;
|
|
7
6
|
/** Serialization kinds supported by `Komer` record payloads. */
|
|
@@ -39,14 +38,14 @@ export interface KomerOptions<TRecord extends RawRecord<any>> extends Omit<Komer
|
|
|
39
38
|
*/
|
|
40
39
|
export declare class KomerBase<TRecord extends RawRecord<any>> {
|
|
41
40
|
static readonly Sep = ".";
|
|
42
|
-
readonly db:
|
|
43
|
-
readonly sdb:
|
|
41
|
+
readonly db: DBer;
|
|
42
|
+
readonly sdb: Table;
|
|
44
43
|
readonly sep: string;
|
|
45
44
|
readonly kind: KomerKind;
|
|
46
45
|
readonly recordClass: RawRecordClass<TRecord>;
|
|
47
46
|
protected readonly _ser: (val: RecordInputOf<TRecord>) => Uint8Array;
|
|
48
47
|
protected readonly _des: (val: Uint8Array | null) => TRecord | null;
|
|
49
|
-
constructor(db:
|
|
48
|
+
constructor(db: DBer, { subkey, sep, kind, dupsort, recordClass, }: KomerBaseOptions<TRecord>);
|
|
50
49
|
/**
|
|
51
50
|
* Converts a key path to one LMDB key, optionally forcing a trailing
|
|
52
51
|
* separator for top-branch scans.
|
|
@@ -125,7 +124,7 @@ export declare class KomerBase<TRecord extends RawRecord<any>> {
|
|
|
125
124
|
* return hydrated record instances
|
|
126
125
|
*/
|
|
127
126
|
export declare class Komer<TRecord extends RawRecord<any>> extends KomerBase<TRecord> {
|
|
128
|
-
constructor(db:
|
|
127
|
+
constructor(db: DBer, { subkey, sep, kind, ...options }: KomerOptions<TRecord>);
|
|
129
128
|
/** Insert one record value at its effective key if absent. */
|
|
130
129
|
put(keys: Keys, val: RecordInputOf<TRecord>): boolean;
|
|
131
130
|
/** Upsert one record value at its effective key. */
|
|
@@ -153,7 +152,7 @@ export declare class Komer<TRecord extends RawRecord<any>> extends KomerBase<TRe
|
|
|
153
152
|
* - mirrors `keri.db.koming.IoSetKomer`
|
|
154
153
|
*/
|
|
155
154
|
export declare class IoSetKomer<TRecord extends RawRecord<any>> extends KomerBase<TRecord> {
|
|
156
|
-
constructor(db:
|
|
155
|
+
constructor(db: DBer, { subkey, sep, kind, ...options }: KomerOptions<TRecord>);
|
|
157
156
|
/**
|
|
158
157
|
* Insert an insertion-ordered set of records for one effective key if absent.
|
|
159
158
|
*
|
|
@@ -196,7 +195,7 @@ export declare class IoSetKomer<TRecord extends RawRecord<any>> extends KomerBas
|
|
|
196
195
|
* - values must remain under LMDB's dupsort value-size limits
|
|
197
196
|
*/
|
|
198
197
|
export declare class DupKomer<TRecord extends RawRecord<any>> extends KomerBase<TRecord> {
|
|
199
|
-
constructor(db:
|
|
198
|
+
constructor(db: DBer, { subkey, sep, kind, ...options }: KomerOptions<TRecord>);
|
|
200
199
|
/** Insert duplicate members at one effective key without overwriting existing values. */
|
|
201
200
|
put(keys: Keys, vals?: RecordInputOf<TRecord> | Iterable<RecordInputOf<TRecord>> | null): boolean;
|
|
202
201
|
/** Add one duplicate member if that exact stored value is absent. */
|
package/types/db/koming.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"koming.d.ts","sourceRoot":"","sources":["../../src/db/koming.ts"],"names":[],"mappings":"AACA,OAAO,EAAqC,KAAK,IAAI,EAAY,MAAM,SAAS,CAAC;AACjF,OAAO,
|
|
1
|
+
{"version":3,"file":"koming.d.ts","sourceRoot":"","sources":["../../src/db/koming.ts"],"names":[],"mappings":"AACA,OAAO,EAAqC,KAAK,IAAI,EAAY,MAAM,SAAS,CAAC;AACjF,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC5G,OAAO,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAElD,KAAK,OAAO,GAAG,MAAM,GAAG,UAAU,CAAC;AACnC,KAAK,IAAI,GAAG,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;AAExC,gEAAgE;AAChE,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC;AAEhE,8DAA8D;AAC9D,MAAM,MAAM,cAAc,CAAC,OAAO,SAAS,SAAS,CAAC,GAAG,CAAC,IAAI,aAAa,CACxE,OAAO,CACR,CAAC;AAEF,2DAA2D;AAC3D,MAAM,WAAW,gBAAgB,CAAC,OAAO,SAAS,SAAS,CAAC,GAAG,CAAC;IAC9D,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;CACtC;AAED,8DAA8D;AAC9D,MAAM,WAAW,YAAY,CAAC,OAAO,SAAS,SAAS,CAAC,GAAG,CAAC,CAAE,SAAQ,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC;CAAG;AAoCnH;;;;;;;;;;;;;;;;;GAiBG;A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AE,MAAM,EAAE,GAAmB,EAAE,IAAiB,EAAE,GAAG,OAAO,EAAE,EAAE,YAAY,CAAC,OAAO,CAAC;IAKvF,yFAAyF;IACzF,GAAG,CACD,IAAI,EAAE,IAAI,EACV,IAAI,GAAE,aAAa,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,GAAG,IAAW,GAC5E,OAAO;IAQV,qEAAqE;IACrE,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG,OAAO;IAIrD,4DAA4D;IAC5D,GAAG,CACD,IAAI,EAAE,IAAI,EACV,IAAI,GAAE,aAAa,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,GAAG,IAAW,GAC5E,OAAO;IAUV,wDAAwD;IACxD,GAAG,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,EAAE;IAW1B,8EAA8E;IAC9E,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,GAAG,IAAI;IAInC,8EAA8E;IAC7E,OAAO,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC,OAAO,CAAC;IASxC,8EAA8E;IAC9E,GAAG,CAAC,IAAI,GAAE,IAAS,GAAG,MAAM;IAU5B,qFAAqF;IACrF,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,GAAE,aAAa,CAAC,OAAO,CAAC,GAAG,IAAW,GAAG,OAAO;CAOpE"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMDB-backed construction of the domain stores.
|
|
3
|
+
*
|
|
4
|
+
* These helpers bind each `StoreOwner` to an `LMDBer` at its established paths.
|
|
5
|
+
* Everything here reaches the native addon; backend-neutral callers use the
|
|
6
|
+
* store classes with an injected `DBer` instead.
|
|
7
|
+
*/
|
|
8
|
+
import type { Operation } from "effection";
|
|
9
|
+
import { RegBaser } from "../acdc/regbasing.js";
|
|
10
|
+
import { type OpenRegistryOptions } from "../acdc/registering.js";
|
|
11
|
+
import { Baser, type BaserOptions } from "./basing.js";
|
|
12
|
+
import { Keeper, type KeeperOptions } from "./keeping.js";
|
|
13
|
+
import { Mailboxer, type MailboxerOptions } from "./mailbox/mailboxing.js";
|
|
14
|
+
import { Noter, type NoterOptions } from "./noting.js";
|
|
15
|
+
import { Reger, type RegerOptions } from "./reger.js";
|
|
16
|
+
/** Construct a closed LMDB-backed `Baser` at its established paths. */
|
|
17
|
+
export declare function lmdbBaser({ compat, ...options }?: BaserOptions): Baser;
|
|
18
|
+
/** Constructor-safe async factory for a fully reopened `Baser`. */
|
|
19
|
+
export declare function createBaser(options?: BaserOptions): Operation<Baser>;
|
|
20
|
+
/** Construct a closed LMDB-backed `Keeper` at its established paths. */
|
|
21
|
+
export declare function lmdbKeeper({ compat, ...options }?: KeeperOptions): Keeper;
|
|
22
|
+
/** Constructor-safe async factory for a fully reopened `Keeper`. */
|
|
23
|
+
export declare function createKeeper(options?: KeeperOptions): Operation<Keeper>;
|
|
24
|
+
/** Construct a closed LMDB-backed `Noter` at its established paths. */
|
|
25
|
+
export declare function lmdbNoter({ compat, ...options }?: NoterOptions): Noter;
|
|
26
|
+
/** Open a notification sidecar and return the ready-to-use databaser. */
|
|
27
|
+
export declare function createNoter(options?: NoterOptions): Operation<Noter>;
|
|
28
|
+
/** Construct a closed LMDB-backed `Mailboxer` at its established paths. */
|
|
29
|
+
export declare function lmdbMailboxer({ compat, ...options }?: MailboxerOptions): Mailboxer;
|
|
30
|
+
/**
|
|
31
|
+
* Open a mailbox environment and return the ready-to-use databaser.
|
|
32
|
+
*
|
|
33
|
+
* Compatibility rule:
|
|
34
|
+
* - explicit mailbox opens stay strict
|
|
35
|
+
* - missing additive sidecars are tolerated only by higher-level habery open
|
|
36
|
+
* flows that are inspecting compat stores readonly
|
|
37
|
+
*/
|
|
38
|
+
export declare function createMailboxer(options?: MailboxerOptions): Operation<Mailboxer>;
|
|
39
|
+
/** Transfer a ready `Reger` to its caller, closing unreturned acquisitions on failure or cancellation. */
|
|
40
|
+
export declare function createReger({ compat, ...options }?: RegerOptions): Operation<Reger>;
|
|
41
|
+
/** Open a registry store on LMDB at its established paths; the reference web backend remains unsupported. */
|
|
42
|
+
export declare function openLmdbRegistry({ web, reopen, compat, opener: _opener, ...options }?: OpenRegistryOptions & {
|
|
43
|
+
web?: boolean;
|
|
44
|
+
}): Operation<RegBaser>;
|
|
45
|
+
//# sourceMappingURL=lmdb-stores.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lmdb-stores.d.ts","sourceRoot":"","sources":["../../src/db/lmdb-stores.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAiB,KAAK,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAEjF,OAAO,EAAE,KAAK,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAIvD,OAAO,EAAE,MAAM,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAEtD,uEAAuE;AACvE,wBAAgB,SAAS,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,EAAE,GAAE,YAAiB,GAAG,KAAK,CAE1E;AAED,mEAAmE;AACnE,wBAAiB,WAAW,CAAC,OAAO,GAAE,YAAiB,GAAG,SAAS,CAAC,KAAK,CAAC,CAEzE;AAED,wEAAwE;AACxE,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,EAAE,GAAE,aAAkB,GAAG,MAAM,CAE7E;AAED,oEAAoE;AACpE,wBAAiB,YAAY,CAAC,OAAO,GAAE,aAAkB,GAAG,SAAS,CAAC,MAAM,CAAC,CAE5E;AAED,uEAAuE;AACvE,wBAAgB,SAAS,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,EAAE,GAAE,YAAiB,GAAG,KAAK,CAE1E;AAED,yEAAyE;AACzE,wBAAiB,WAAW,CAAC,OAAO,GAAE,YAAiB,GAAG,SAAS,CAAC,KAAK,CAAC,CAEzE;AAED,2EAA2E;AAC3E,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,EAAE,GAAE,gBAAqB,GAAG,SAAS,CAEtF;AAED;;;;;;;GAOG;AACH,wBAAiB,eAAe,CAAC,OAAO,GAAE,gBAAqB,GAAG,SAAS,CAAC,SAAS,CAAC,CAErF;AAED,0GAA0G;AAC1G,wBAAiB,WAAW,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,EAAE,GAAE,YAAiB,GAAG,SAAS,CAAC,KAAK,CAAC,CAGxF;AAED,6GAA6G;AAC7G,wBAAiB,gBAAgB,CAC/B,EAAE,GAAW,EAAE,MAAa,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,GAAE,mBAAmB,GAAG;IAAE,GAAG,CAAC,EAAE,OAAO,CAAA;CAAO,GAChH,SAAS,CAAC,QAAQ,CAAC,CAGrB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** LMDB backend surface: native stores, paths and the default opener. */
|
|
2
|
+
export { createHabery } from "../app/identity/lmdb-habery.js";
|
|
3
|
+
export * from "./core/lmdb-opener.js";
|
|
4
|
+
export * from "./core/lmdber.js";
|
|
5
|
+
export * from "./core/path-manager.js";
|
|
6
|
+
export * from "./lmdb-stores.js";
|
|
7
|
+
//# sourceMappingURL=lmdb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lmdb.d.ts","sourceRoot":"","sources":["../../src/db/lmdb.ts"],"names":[],"mappings":"AAAA,yEAAyE;AAEzE,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC"}
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { Diger } from "cesr-ts";
|
|
17
17
|
import { type Operation } from "effection";
|
|
18
|
-
import {
|
|
18
|
+
import type { StoreIdentity } from "../core/dber.js";
|
|
19
|
+
import type { LMDBerOptions } from "../core/lmdber.js";
|
|
20
|
+
import { type StoreFamily, StoreOwner } from "../core/store-owner.js";
|
|
19
21
|
import { CesrOnSuber, Suber } from "../subing.js";
|
|
20
22
|
/** Accepted topic key shapes for the mailbox ordering store. */
|
|
21
23
|
type MailboxKeys = string | Uint8Array | Iterable<string | Uint8Array>;
|
|
@@ -46,22 +48,15 @@ declare class BytesSuber extends Suber<Uint8Array> {
|
|
|
46
48
|
* - `.tpcs` stores `(topic, on) -> digest`
|
|
47
49
|
* - `.msgs` stores `digest -> raw message bytes`
|
|
48
50
|
*/
|
|
49
|
-
export declare class Mailboxer extends
|
|
51
|
+
export declare class Mailboxer extends StoreOwner {
|
|
52
|
+
/** Placement of this store kind. */
|
|
53
|
+
static readonly Family: StoreFamily;
|
|
50
54
|
tpcs: CesrOnSuber<Diger>;
|
|
51
55
|
msgs: BytesSuber;
|
|
52
|
-
/** Default primary path for Tufa-owned mailbox environments. */
|
|
53
|
-
static readonly TailDirPath = "keri/mbx";
|
|
54
|
-
/** Default alternate path for Tufa-owned mailbox environments. */
|
|
55
|
-
static readonly AltTailDirPath = ".tufa/mbx";
|
|
56
|
-
/** Alternate path used when opening KERIpy-compatible mailbox stores. */
|
|
57
|
-
static readonly CompatAltTailDirPath = ".keri/mbx";
|
|
58
|
-
static readonly TempPrefix = "keri_mbx_";
|
|
59
|
-
static readonly MaxNamedDBs = 8;
|
|
60
|
-
constructor(options?: MailboxerOptions);
|
|
61
56
|
/**
|
|
62
57
|
* Reopen the mailbox environment and bind the KERIpy-shaped named subdbs.
|
|
63
58
|
*/
|
|
64
|
-
reopen(options?:
|
|
59
|
+
reopen(options?: StoreIdentity): Operation<boolean>;
|
|
65
60
|
/**
|
|
66
61
|
* Remove one topic ordinal index without deleting the deduplicated message.
|
|
67
62
|
*
|
|
@@ -99,14 +94,5 @@ export declare class Mailboxer extends LMDBer {
|
|
|
99
94
|
*/
|
|
100
95
|
cloneTopicIter(topic: MailboxKeys, fn?: number): Generator<[number, string, Uint8Array]>;
|
|
101
96
|
}
|
|
102
|
-
/**
|
|
103
|
-
* Open a mailbox environment and return the ready-to-use databaser.
|
|
104
|
-
*
|
|
105
|
-
* Compatibility rule:
|
|
106
|
-
* - explicit mailbox opens stay strict
|
|
107
|
-
* - missing additive sidecars are tolerated only by higher-level habery open
|
|
108
|
-
* flows that are inspecting compat stores readonly
|
|
109
|
-
*/
|
|
110
|
-
export declare function createMailboxer(options?: MailboxerOptions): Operation<Mailboxer>;
|
|
111
97
|
export {};
|
|
112
98
|
//# sourceMappingURL=mailboxing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mailboxing.d.ts","sourceRoot":"","sources":["../../../src/db/mailbox/mailboxing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,KAAK,EAAU,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"mailboxing.d.ts","sourceRoot":"","sources":["../../../src/db/mailbox/mailboxing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,KAAK,EAAU,MAAM,SAAS,CAAC;AACxC,OAA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;IAWtD;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,UAAU,GAAG,MAAM,GAAG,OAAO;IAe/D;;;;;OAKG;IACF,cAAc,CACb,KAAK,EAAE,WAAW,EAClB,EAAE,SAAI,GACL,SAAS,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;CAS3C"}
|
package/types/db/noting.d.ts
CHANGED
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import { Cigar } from "cesr-ts";
|
|
14
14
|
import type { Operation } from "effection";
|
|
15
|
-
import {
|
|
15
|
+
import type { StoreIdentity } from "./core/dber.js";
|
|
16
|
+
import type { LMDBerOptions } from "./core/lmdber.js";
|
|
17
|
+
import { type StoreFamily, StoreOwner } from "./core/store-owner.js";
|
|
16
18
|
import { CesrSuber, Suber } from "./subing.js";
|
|
17
19
|
/** Notification attribute payload stored inside a `Notice`. */
|
|
18
20
|
export type NoticeAttrs = Record<string, unknown>;
|
|
@@ -76,19 +78,14 @@ declare class NoticeSuber extends Suber<Notice> {
|
|
|
76
78
|
* - `.nidx` stores `rid -> dt`
|
|
77
79
|
* - `.ncigs` stores detached `Cigar`s for integrity verification
|
|
78
80
|
*/
|
|
79
|
-
export declare class Noter extends
|
|
81
|
+
export declare class Noter extends StoreOwner {
|
|
82
|
+
/** Placement of this store kind. */
|
|
83
|
+
static readonly Family: StoreFamily;
|
|
80
84
|
notes: NoticeSuber;
|
|
81
85
|
nidx: Suber<string>;
|
|
82
86
|
ncigs: CesrSuber<Cigar>;
|
|
83
|
-
static readonly TailDirPath = "keri/not";
|
|
84
|
-
static readonly AltTailDirPath = ".tufa/not";
|
|
85
|
-
static readonly CompatAltTailDirPath = ".keri/not";
|
|
86
|
-
static readonly TempPrefix = "keri_not_";
|
|
87
|
-
static readonly MaxNamedDBs = 8;
|
|
88
|
-
/** Select `.tufa/not` by default while preserving `.keri/not` compat mode. */
|
|
89
|
-
constructor(options?: NoterOptions);
|
|
90
87
|
/** Open all notice, reverse-index, and detached-signature families. */
|
|
91
|
-
reopen(options?:
|
|
88
|
+
reopen(options?: StoreIdentity): Operation<boolean>;
|
|
92
89
|
/** Add one new notice iff its `rid` is not already present. */
|
|
93
90
|
add(note: Notice, cigar: Cigar): boolean;
|
|
94
91
|
/** Update one existing notice and detached signature in place. */
|
|
@@ -102,7 +99,5 @@ export declare class Noter extends LMDBer {
|
|
|
102
99
|
/** List stored notice/signature pairs in datetime order. */
|
|
103
100
|
listNotices(start?: number, limit?: number): Array<[Notice, Cigar]>;
|
|
104
101
|
}
|
|
105
|
-
/** Open a notification sidecar and return the ready-to-use databaser. */
|
|
106
|
-
export declare function createNoter(options?: NoterOptions): Operation<Noter>;
|
|
107
102
|
export {};
|
|
108
103
|
//# sourceMappingURL=noting.d.ts.map
|
package/types/db/noting.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"noting.d.ts","sourceRoot":"","sources":["../../src/db/noting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,KAAK,EAAkB,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"noting.d.ts","sourceRoot":"","sources":["../../src/db/noting.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,KAAK,EAAkB,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,KAAK,WAAW,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAA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age } from "cesr-ts";
|
|
13
13
|
import { type Operation } from "effection";
|
|
14
14
|
import { RegistryRecord, RegStateRecord, type VerferCigarCouple } from "../core/records.js";
|
|
15
|
-
import {
|
|
15
|
+
import type { StoreIdentity } from "./core/dber.js";
|
|
16
|
+
import type { LMDBerOptions } from "./core/lmdber.js";
|
|
17
|
+
import { type StoreFamily, StoreOwner } from "./core/store-owner.js";
|
|
16
18
|
import { Broker } from "./escrowing.js";
|
|
17
19
|
import { Komer } from "./koming.js";
|
|
18
20
|
import { CapturedTelReplay, type TelReplayRange, type TelReplaySettings } from "./replay/tel-replay.js";
|
|
@@ -33,7 +35,9 @@ export interface RegerOptions extends LMDBerOptions {
|
|
|
33
35
|
* Protocol evidence uses literal KERIpy `Reger` subkeys; observer receipt
|
|
34
36
|
* evidence remains separate from local issuer publication state.
|
|
35
37
|
*/
|
|
36
|
-
export declare class Reger extends
|
|
38
|
+
export declare class Reger extends StoreOwner {
|
|
39
|
+
/** Placement of this store kind. */
|
|
40
|
+
static readonly Family: StoreFamily;
|
|
37
41
|
readonly registries: Set<string>;
|
|
38
42
|
readonly tevers: Map<string, unknown>;
|
|
39
43
|
tvts: BytesSuber;
|
|
@@ -66,14 +70,8 @@ export declare class Reger extends LMDBer {
|
|
|
66
70
|
ctel: CesrSuber<Saider>;
|
|
67
71
|
cmse: SerderSuber<SerderACDC>;
|
|
68
72
|
ccrd: SerderSuber<SerderACDC>;
|
|
69
|
-
static readonly TailDirPath = "keri/reg";
|
|
70
|
-
static readonly AltTailDirPath = ".tufa/reg";
|
|
71
|
-
static readonly CompatAltTailDirPath = ".keri/reg";
|
|
72
|
-
static readonly TempPrefix = "keri_reg_";
|
|
73
|
-
static readonly MaxNamedDBs = 96;
|
|
74
|
-
constructor(options?: RegerOptions);
|
|
75
73
|
/** Open the root LMDB environment and bind the KERIpy `Reger` subdb surface. */
|
|
76
|
-
reopen(options?:
|
|
74
|
+
reopen(options?: StoreIdentity): Operation<boolean>;
|
|
77
75
|
/** Persist one base credential and its anchoring event triple. */
|
|
78
76
|
logCred(creder: SerderACDC, prefixer: Prefixer, number: NumberPrimitive, diger: Diger): boolean;
|
|
79
77
|
/** Load one stored credential and the event triple that anchored it. */
|
|
@@ -94,7 +92,5 @@ export declare class Reger extends LMDBer {
|
|
|
94
92
|
/** Return recursive source credentials with source seals at each body/requested genus floor. */
|
|
95
93
|
sources(_db: unknown, creder: SerderACDC, gvrsn?: Versionage): CredentialSource[];
|
|
96
94
|
}
|
|
97
|
-
/** Transfer a ready `Reger` to its caller, closing unreturned acquisitions on failure or cancellation. */
|
|
98
|
-
export declare function createReger(options?: RegerOptions): Operation<Reger>;
|
|
99
95
|
export {};
|
|
100
96
|
//# sourceMappingURL=reger.d.ts.map
|
package/types/db/reger.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reger.d.ts","sourceRoot":"","sources":["../../src/db/reger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAKL,KAAK,EACL,KAAK,EACL,eAAe,EACf,QAAQ,EACR,MAAM,EACN,UAAU,EAEV,KAAK,EAGL,KAAK,UAAU,EAEhB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAQ3C,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"reger.d.ts","sourceRoot":"","sources":["../../src/db/reger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAKL,KAAK,EACL,KAAK,EACL,eAAe,EACf,QAAQ,EACR,MAAM,EACN,UAAU,EAEV,KAAK,EAGL,KAAK,UAAU,EAEhB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAQ3C,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,KAAK,iBAAiB,EAA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QAAQ,UAAQ,GACf,UAAU;IAqEb,gGAAgG;IAChG,OAAO,CACL,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,UAAU,EAClB,KAAK,GAAE,UAAqB,GAC3B,gBAAgB,EAAE;CAkCtB"}
|
|
@@ -8,8 +8,6 @@ export declare class CapturedWitnessReplay implements Iterable<Uint8Array> {
|
|
|
8
8
|
readonly felEnd: number;
|
|
9
9
|
/** Fixed primitive metadata only; the caller keeps the borrowed store open through response disposal. */
|
|
10
10
|
constructor(db: Baser, pre: string, from: number, end: number, felEnd: number);
|
|
11
|
-
/** Copy one duplicate through the pinned binary seek branch; the facade never leaves this synchronous read. */
|
|
12
|
-
private readDuplicate;
|
|
13
11
|
/** Seek after one physical insertion proem, closing every cursor before hydration or yield. */
|
|
14
12
|
[Symbol.iterator](): Generator<Uint8Array>;
|
|
15
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"witness-replay.d.ts","sourceRoot":"","sources":["../../../src/db/replay/witness-replay.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAG1C,sGAAsG;AACtG,qBAAa,qBAAsB,YAAW,QAAQ,CAAC,UAAU,CAAC;;IAM9D,QAAQ,CAAC,GAAG,EAAE,MAAM;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM;IACrB,QAAQ,CAAC,GAAG,EAAE,MAAM;IACpB,QAAQ,CAAC,MAAM,EAAE,MAAM;IANzB,yGAAyG;gBAEvG,EAAE,EAAE,KAAK,EACA,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM;IAezB,+
|
|
1
|
+
{"version":3,"file":"witness-replay.d.ts","sourceRoot":"","sources":["../../../src/db/replay/witness-replay.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAG1C,sGAAsG;AACtG,qBAAa,qBAAsB,YAAW,QAAQ,CAAC,UAAU,CAAC;;IAM9D,QAAQ,CAAC,GAAG,EAAE,MAAM;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM;IACrB,QAAQ,CAAC,GAAG,EAAE,MAAM;IACpB,QAAQ,CAAC,MAAM,EAAE,MAAM;IANzB,yGAAyG;gBAEvG,EAAE,EAAE,KAAK,EACA,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM;IAezB,+FAA+F;IAC9F,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,SAAS,CAAC,UAAU,CAAC;CA6C5C"}
|
package/types/db/subing.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Cipher, type Counter, type Decrypter, type Encrypter, type Indexer, Matter, type Serder, SerderKERI, Signer } from "cesr-ts";
|
|
2
|
-
import type { Database } from "lmdb" with { "resolution-mode": "require" };
|
|
3
2
|
import { Schemer } from "../core/scheming.js";
|
|
4
|
-
import {
|
|
3
|
+
import type { DBer, Table } from "./core/dber.js";
|
|
5
4
|
type KeyPart = string | Uint8Array;
|
|
6
5
|
type Keys = KeyPart | Iterable<KeyPart>;
|
|
7
6
|
type CesrValue = Matter | Indexer | Counter;
|
|
@@ -24,11 +23,11 @@ type SerderCtor<T extends Serder> = {
|
|
|
24
23
|
*/
|
|
25
24
|
export declare class SuberBase<T = string> {
|
|
26
25
|
static readonly Sep = ".";
|
|
27
|
-
protected readonly db:
|
|
28
|
-
readonly sdb:
|
|
26
|
+
protected readonly db: DBer;
|
|
27
|
+
readonly sdb: Table;
|
|
29
28
|
readonly sep: string;
|
|
30
29
|
readonly verify: boolean;
|
|
31
|
-
constructor(db:
|
|
30
|
+
constructor(db: DBer, { subkey, dupsort, sep, verify, }: {
|
|
32
31
|
subkey: string;
|
|
33
32
|
dupsort?: boolean;
|
|
34
33
|
sep?: string;
|
|
@@ -76,7 +75,7 @@ export declare class SuberBase<T = string> {
|
|
|
76
75
|
* Single-value non-duplicate subdb family (`Suber`).
|
|
77
76
|
*/
|
|
78
77
|
export declare class Suber<T = string> extends SuberBase<T> {
|
|
79
|
-
constructor(db:
|
|
78
|
+
constructor(db: DBer, { subkey, sep, verify, }: {
|
|
80
79
|
subkey: string;
|
|
81
80
|
sep?: string;
|
|
82
81
|
verify?: boolean;
|
|
@@ -161,7 +160,7 @@ export declare class BytesSuber extends Suber<Uint8Array> {
|
|
|
161
160
|
* Base64 tuple value family (`B64*`).
|
|
162
161
|
*/
|
|
163
162
|
export declare class B64SuberBase<T extends string[] = string[]> extends Suber<T> {
|
|
164
|
-
constructor(db:
|
|
163
|
+
constructor(db: DBer, { subkey, sep, verify, }: {
|
|
165
164
|
subkey: string;
|
|
166
165
|
sep?: string;
|
|
167
166
|
verify?: boolean;
|
|
@@ -184,7 +183,7 @@ export declare class B64Suber<T extends string[] = string[]> extends B64SuberBas
|
|
|
184
183
|
export declare class CesrSuberBase<T extends CesrValue = CesrValue> extends Suber<T> {
|
|
185
184
|
protected readonly ctor: QualifiedCtor<T>;
|
|
186
185
|
protected readonly strict: boolean;
|
|
187
|
-
constructor(db:
|
|
186
|
+
constructor(db: DBer, { subkey, sep, verify, ctor, strict, }: {
|
|
188
187
|
subkey: string;
|
|
189
188
|
sep?: string;
|
|
190
189
|
verify?: boolean;
|
|
@@ -207,7 +206,7 @@ export declare class CesrSuber<T extends CesrValue = CesrValue> extends CesrSube
|
|
|
207
206
|
export declare class CesrOnSuber<T extends CesrValue = CesrValue> extends OnSuberBase<T> {
|
|
208
207
|
protected readonly ctor: QualifiedCtor<T>;
|
|
209
208
|
protected readonly strict: boolean;
|
|
210
|
-
constructor(db:
|
|
209
|
+
constructor(db: DBer, { subkey, sep, verify, ctor, strict, }: {
|
|
211
210
|
subkey: string;
|
|
212
211
|
sep?: string;
|
|
213
212
|
verify?: boolean;
|
|
@@ -223,7 +222,7 @@ export declare class CesrOnSuber<T extends CesrValue = CesrValue> extends OnSube
|
|
|
223
222
|
export declare class CatCesrSuberBase<T extends readonly CesrValue[] = readonly CesrValue[]> extends Suber<T> {
|
|
224
223
|
protected readonly ctors: readonly QualifiedCtor<CesrValue>[];
|
|
225
224
|
protected readonly strict: boolean;
|
|
226
|
-
constructor(db:
|
|
225
|
+
constructor(db: DBer, { subkey, sep, verify, ctor, strict, }: {
|
|
227
226
|
subkey: string;
|
|
228
227
|
sep?: string;
|
|
229
228
|
verify?: boolean;
|
|
@@ -240,7 +239,7 @@ export declare class CatCesrSuber<T extends readonly CesrValue[] = readonly Cesr
|
|
|
240
239
|
* Insertion-ordered synthetic set family (`IoSet*`).
|
|
241
240
|
*/
|
|
242
241
|
export declare class IoSetSuber<T = string> extends SuberBase<T> {
|
|
243
|
-
constructor(db:
|
|
242
|
+
constructor(db: DBer, { subkey, sep, verify, }: {
|
|
244
243
|
subkey: string;
|
|
245
244
|
sep?: string;
|
|
246
245
|
verify?: boolean;
|
|
@@ -297,7 +296,7 @@ export declare class IoSetSuber<T = string> extends SuberBase<T> {
|
|
|
297
296
|
* - Base64-only tuple-like text payloads
|
|
298
297
|
*/
|
|
299
298
|
export declare class B64IoSetSuber<T extends string[] = string[]> extends IoSetSuber<T> {
|
|
300
|
-
constructor(db:
|
|
299
|
+
constructor(db: DBer, { subkey, sep, verify, }: {
|
|
301
300
|
subkey: string;
|
|
302
301
|
sep?: string;
|
|
303
302
|
verify?: boolean;
|
|
@@ -322,7 +321,7 @@ export declare class BytesIoSetSuber extends IoSetSuber<Uint8Array> {
|
|
|
322
321
|
export declare class CesrIoSetSuber<T extends CesrValue = CesrValue> extends IoSetSuber<T> {
|
|
323
322
|
protected readonly ctor: QualifiedCtor<T>;
|
|
324
323
|
protected readonly strict: boolean;
|
|
325
|
-
constructor(db:
|
|
324
|
+
constructor(db: DBer, { subkey, sep, verify, ctor, strict, }: {
|
|
326
325
|
subkey: string;
|
|
327
326
|
sep?: string;
|
|
328
327
|
verify?: boolean;
|
|
@@ -342,7 +341,7 @@ export declare class CesrIoSetSuber<T extends CesrValue = CesrValue> extends IoS
|
|
|
342
341
|
export declare class CatCesrIoSetSuber<T extends readonly CesrValue[] = readonly CesrValue[]> extends IoSetSuber<T> {
|
|
343
342
|
protected readonly ctors: readonly QualifiedCtor<CesrValue>[];
|
|
344
343
|
protected readonly strict: boolean;
|
|
345
|
-
constructor(db:
|
|
344
|
+
constructor(db: DBer, { subkey, sep, verify, ctor, strict, }: {
|
|
346
345
|
subkey: string;
|
|
347
346
|
sep?: string;
|
|
348
347
|
verify?: boolean;
|
|
@@ -369,7 +368,7 @@ export declare class CatCesrIoSetSuber<T extends readonly CesrValue[] = readonly
|
|
|
369
368
|
* so `Signer.verfer` and `Signer.transferable` survive round-trips
|
|
370
369
|
*/
|
|
371
370
|
export declare class SignerSuber extends CesrSuberBase<Signer> {
|
|
372
|
-
constructor(db:
|
|
371
|
+
constructor(db: DBer, { subkey, sep, verify, }: {
|
|
373
372
|
subkey: string;
|
|
374
373
|
sep?: string;
|
|
375
374
|
verify?: boolean;
|
|
@@ -451,7 +450,7 @@ export declare class CryptSignerSuber extends SignerSuber {
|
|
|
451
450
|
*/
|
|
452
451
|
export declare class SerderSuberBase<T extends Serder = SerderKERI> extends Suber<T> {
|
|
453
452
|
protected readonly ctor: SerderCtor<T>;
|
|
454
|
-
constructor(db:
|
|
453
|
+
constructor(db: DBer, { subkey, sep, verify, ctor, }: {
|
|
455
454
|
subkey: string;
|
|
456
455
|
sep?: string;
|
|
457
456
|
verify?: boolean;
|
|
@@ -477,7 +476,7 @@ export declare class SchemerSuber extends Suber<Schemer> {
|
|
|
477
476
|
*/
|
|
478
477
|
export declare class SerderIoSetSuber<T extends Serder = SerderKERI> extends IoSetSuber<T> {
|
|
479
478
|
protected readonly ctor: SerderCtor<T>;
|
|
480
|
-
constructor(db:
|
|
479
|
+
constructor(db: DBer, { subkey, sep, verify, ctor, }: {
|
|
481
480
|
subkey: string;
|
|
482
481
|
sep?: string;
|
|
483
482
|
verify?: boolean;
|
|
@@ -493,7 +492,7 @@ export declare class SerderIoSetSuber<T extends Serder = SerderKERI> extends IoS
|
|
|
493
492
|
* Native dupsort duplicate families (`Dup*` / `IoDup*`).
|
|
494
493
|
*/
|
|
495
494
|
export declare class DupSuber<T = string> extends SuberBase<T> {
|
|
496
|
-
constructor(db:
|
|
495
|
+
constructor(db: DBer, { subkey, sep, verify, }: {
|
|
497
496
|
subkey: string;
|
|
498
497
|
sep?: string;
|
|
499
498
|
verify?: boolean;
|
|
@@ -519,7 +518,7 @@ export declare class DupSuber<T = string> extends SuberBase<T> {
|
|
|
519
518
|
export declare class CesrDupSuber<T extends CesrValue = CesrValue> extends DupSuber<T> {
|
|
520
519
|
protected readonly ctor: QualifiedCtor<T>;
|
|
521
520
|
protected readonly strict: boolean;
|
|
522
|
-
constructor(db:
|
|
521
|
+
constructor(db: DBer, { subkey, sep, verify, ctor, strict, }: {
|
|
523
522
|
subkey: string;
|
|
524
523
|
sep?: string;
|
|
525
524
|
verify?: boolean;
|
|
@@ -533,7 +532,7 @@ export declare class CesrDupSuber<T extends CesrValue = CesrValue> extends DupSu
|
|
|
533
532
|
export declare class CatCesrDupSuber<T extends readonly CesrValue[] = readonly CesrValue[]> extends DupSuber<T> {
|
|
534
533
|
protected readonly ctors: readonly QualifiedCtor<CesrValue>[];
|
|
535
534
|
protected readonly strict: boolean;
|
|
536
|
-
constructor(db:
|
|
535
|
+
constructor(db: DBer, { subkey, sep, verify, ctor, strict, }: {
|
|
537
536
|
subkey: string;
|
|
538
537
|
sep?: string;
|
|
539
538
|
verify?: boolean;
|
|
@@ -574,7 +573,7 @@ export declare class IoDupSuber<T = string> extends DupSuber<T> {
|
|
|
574
573
|
}
|
|
575
574
|
/** Base64 tuple family over insertion-ordered native duplicates. */
|
|
576
575
|
export declare class B64IoDupSuber<T extends string[] = string[]> extends IoDupSuber<T> {
|
|
577
|
-
constructor(db:
|
|
576
|
+
constructor(db: DBer, { subkey, sep, verify, }: {
|
|
578
577
|
subkey: string;
|
|
579
578
|
sep?: string;
|
|
580
579
|
verify?: boolean;
|
|
@@ -597,7 +596,7 @@ export declare class B64IoDupSuber<T extends string[] = string[]> extends IoDupS
|
|
|
597
596
|
* - the older `*On*` names stay available here until upper layers migrate
|
|
598
597
|
*/
|
|
599
598
|
export declare class OnIoDupSuber<T = string> extends SuberBase<T> {
|
|
600
|
-
constructor(db:
|
|
599
|
+
constructor(db: DBer, { subkey, sep, verify, }: {
|
|
601
600
|
subkey: string;
|
|
602
601
|
sep?: string;
|
|
603
602
|
verify?: boolean;
|
|
@@ -650,7 +649,7 @@ export declare class OnIoDupSuber<T = string> extends SuberBase<T> {
|
|
|
650
649
|
}
|
|
651
650
|
/** Base64 tuple family over exposed-ordinal insertion-ordered duplicates. */
|
|
652
651
|
export declare class B64OnIoDupSuber<T extends string[] = string[]> extends OnIoDupSuber<T> {
|
|
653
|
-
constructor(db:
|
|
652
|
+
constructor(db: DBer, { subkey, sep, verify, }: {
|
|
654
653
|
subkey: string;
|
|
655
654
|
sep?: string;
|
|
656
655
|
verify?: boolean;
|
|
@@ -670,7 +669,7 @@ export declare class B64OnIoDupSuber<T extends string[] = string[]> extends OnIo
|
|
|
670
669
|
* `keri-ts` DB call sites
|
|
671
670
|
*/
|
|
672
671
|
export declare class OnIoSetSuber<T = string> extends SuberBase<T> {
|
|
673
|
-
constructor(db:
|
|
672
|
+
constructor(db: DBer, { subkey, sep, verify, }: {
|
|
674
673
|
subkey: string;
|
|
675
674
|
sep?: string;
|
|
676
675
|
verify?: boolean;
|
|
@@ -762,7 +761,7 @@ export declare class OnIoSetSuber<T = string> extends SuberBase<T> {
|
|
|
762
761
|
}
|
|
763
762
|
/** Base64 tuple family over exposed-ordinal synthetic insertion-ordered sets. */
|
|
764
763
|
export declare class B64OnIoSetSuber<T extends string[] = string[]> extends OnIoSetSuber<T> {
|
|
765
|
-
constructor(db:
|
|
764
|
+
constructor(db: DBer, { subkey, sep, verify, }: {
|
|
766
765
|
subkey: string;
|
|
767
766
|
sep?: string;
|
|
768
767
|
verify?: boolean;
|