@interncom/diplomatic 0.17.1 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.mjs +2 -2
- package/dist/cli/shared/crypto/enclave.d.ts +18 -3
- package/dist/cli/shared/types.d.ts +0 -2
- package/dist/cli/shared/webauthn/prf.d.ts +5 -4
- package/dist/web/entdb/cached.d.ts +1 -1
- package/dist/web/entdb/entdb.d.ts +1 -4
- package/dist/web/entdb/idb.d.ts +3 -5
- package/dist/web/entdb/memory.d.ts +1 -3
- package/dist/web/index.d.ts +2 -2
- package/dist/web/index.mjs +1 -1
- package/dist/web/shared/crypto/enclave.d.ts +18 -3
- package/dist/web/shared/exim.d.ts +18 -9
- package/dist/web/shared/types.d.ts +0 -2
- package/dist/web/shared/webauthn/prf.d.ts +5 -4
- package/dist/web/worker.mjs +1 -1
- package/package.json +2 -2
|
@@ -5,7 +5,7 @@ import { ValStat } from "../shared/valstat.ts";
|
|
|
5
5
|
/** Options for {@link EntDBMemory}. */
|
|
6
6
|
export type EntDBMemoryOptions = {
|
|
7
7
|
/**
|
|
8
|
-
* Secondary type / type+pid / type+
|
|
8
|
+
* Secondary type / type+pid / type+tag indexes for list queries.
|
|
9
9
|
* Default true. Disable only if you need to save the index memory.
|
|
10
10
|
*/
|
|
11
11
|
indexes?: boolean;
|
|
@@ -18,8 +18,6 @@ export declare class EntDBMemory implements IEntDB {
|
|
|
18
18
|
private byType;
|
|
19
19
|
/** type → pidKey → eidKey → ent */
|
|
20
20
|
private byTypePid;
|
|
21
|
-
/** type → gid → eidKey → ent */
|
|
22
|
-
private byTypeGid;
|
|
23
21
|
/** type → tag → eidKey → ent */
|
|
24
22
|
private byTypeTag;
|
|
25
23
|
constructor(initEnts?: IEntity[], opts?: EntDBMemoryOptions);
|
package/dist/web/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { Status } from "./shared/consts";
|
|
|
15
15
|
import { hostHTTPTransport, HTTPTransport } from "./shared/http";
|
|
16
16
|
import { TypedEventEmitter } from "./shared/events";
|
|
17
17
|
import { asSealedMasterKey, MASTER_SEED_LEN, SEALED_MASTER_KEY_LEN, type SealedMasterKey } from "./shared/seed";
|
|
18
|
-
import { EntityID,
|
|
18
|
+
import { EntityID, HostHandle, ICrypto, IDeleteParams, IEntRev, IHostConnectionInfo, IMessage, IMutateOp, type IOp, IStateManager, ITransport, IUpdateParams } from "./shared/types";
|
|
19
19
|
import { Enclave } from "./shared/crypto/enclave";
|
|
20
20
|
import { nullStateManager, StateManager } from "./state";
|
|
21
21
|
import { IDBSeedStore } from "./stores/idb/seed";
|
|
@@ -43,5 +43,5 @@ import type { WipeOpts } from "./types";
|
|
|
43
43
|
/** Platform advertises largeBlob (not a guarantee the binding key has it). */
|
|
44
44
|
export { largeBlobCapable } from "./shared/webauthn/largeBlob";
|
|
45
45
|
export { webAuthnLastError } from "./shared/webauthn/common";
|
|
46
|
-
export { APLD_APPLIED, APLD_ERROR, APLD_PENDING, apldFromStored, asDHKEReq, asDHKEResp, asSealedMasterKey, b64tob, b64urltob, btob64, btob64url, btoh, CachedEntDB, checksumEntRevs, checksumSet, Clock, cmpBytes, crypto, Decoder, DEFAULT_PRF_SALT, defaultPeekProgressEvery, defaultWebAuthnRpId, eidCodec, Enclave, encodeEntRev, Encoder, EntDBMemory, EntIDB, EntitiesQuery, EntityID, entStateManager, genSingletonEID,
|
|
46
|
+
export { APLD_APPLIED, APLD_ERROR, APLD_PENDING, apldFromStored, asDHKEReq, asDHKEResp, asSealedMasterKey, b64tob, b64urltob, btob64, btob64url, btoh, CachedEntDB, checksumEntRevs, checksumSet, Clock, cmpBytes, crypto, Decoder, DEFAULT_PRF_SALT, defaultPeekProgressEvery, defaultWebAuthnRpId, eidCodec, Enclave, encodeEntRev, Encoder, EntDBMemory, EntIDB, EntitiesQuery, EntityID, entStateManager, genSingletonEID, hostHTTPTransport, htob, HTTPTransport, IDBSeedStore, IDBStore, idleProgress, IEntDB, IEntity, isApldState, isLiveEnt, isPendingApply, isTerminalApplyFailure, isTombstone, IStore, KEYRING_MAX, keyringCredIds, keyringKind, keyringLabel, MASTER_SEED_LEN, MemoryStore, normalizeTags, nullEntDB, nullStateManager, openDiplomaticClient, openEntDB, openIDBStore, PairRequest, PasskeySeedStore, prfCapable, PrfSeedStore, revFromEntity, revFromHead, SEALED_MASTER_KEY_LEN, setApld, shouldEmitItemProgress, SingletonStateManager, StateManager, Status, SyncClient, TypedEventEmitter, useClient, useClientState, useClientXferState, useStateWatcher, useStateWatcherSuspense, useSyncOnResume, WorkerClient, };
|
|
47
47
|
export type { ApldState, Applier, BundleHost, CachedEntDBOptions, DateSpec, DHKEReq, DHKEResp, EntDBMemoryOptions, HostHandle, HostStatsUpdate, IClient, ICrypto, IDateRange, IDeleteParams, IDiplomaticClientState, IEntRev, IEntRow, IHostConnectionInfo, IHostRow, IMessage, IMutateOp, IOp, IStateManager, IStoredMessage, IStoredMessageData, IStoredMessageWrite, ITagRange, ITombstone, ITransport, IUpdateParams, Keyring, KeyringEntry, KeyringRow, ListMsgsOpts, OpenDiplomaticClientMainOptions, OpenDiplomaticClientOptions, OpenDiplomaticClientWorkerOptions, OpenedDiplomaticClient, OpenEntDBOptions, PasskeySeedStoreOpts, PersistKeyring, PrfRp, PrfSeedStoreOpts, ReconcileOpts, ReconcileReport, SealedMasterKey, SetSeedOpts, SyncProgressEvent, TagSpec, WipeOpts, WorkerClientOptions, };
|