@interncom/diplomatic 0.22.0 → 0.24.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.
Files changed (98) hide show
  1. package/dist/cli/bun/src/crypto.d.ts +2 -3
  2. package/dist/cli/index.mjs +4 -5
  3. package/dist/cli/shared/api/peek.d.ts +9 -1
  4. package/dist/cli/shared/api/pull.d.ts +9 -1
  5. package/dist/cli/shared/api/push.d.ts +3 -1
  6. package/dist/cli/shared/api/user.d.ts +1 -1
  7. package/dist/cli/shared/auth.d.ts +2 -2
  8. package/dist/cli/shared/bag.d.ts +11 -6
  9. package/dist/cli/shared/client.d.ts +18 -9
  10. package/dist/cli/shared/codec.d.ts +4 -0
  11. package/dist/cli/shared/codecs/kdm.d.ts +7 -0
  12. package/dist/cli/shared/codecs/notifItem.d.ts +2 -0
  13. package/dist/cli/shared/crypto/bagman.d.ts +19 -0
  14. package/dist/cli/shared/crypto/binary.d.ts +1 -0
  15. package/dist/cli/shared/crypto/derivation.d.ts +45 -0
  16. package/dist/cli/shared/crypto/enclave.d.ts +31 -102
  17. package/dist/cli/shared/crypto/largeBlob.d.ts +8 -0
  18. package/dist/cli/shared/crypto/noble.d.ts +15 -22
  19. package/dist/cli/shared/crypto/pairing.d.ts +19 -2
  20. package/dist/cli/shared/crypto/prf.d.ts +52 -0
  21. package/dist/cli/shared/crypto/realms.d.ts +7 -0
  22. package/dist/cli/shared/endpoint.d.ts +4 -5
  23. package/dist/cli/shared/http.d.ts +12 -12
  24. package/dist/cli/shared/sync.d.ts +3 -3
  25. package/dist/cli/shared/types.d.ts +24 -16
  26. package/dist/cli/shared/webauthn/prf.d.ts +8 -0
  27. package/dist/cli/src/index.d.ts +6 -5
  28. package/dist/web/client.d.ts +18 -7
  29. package/dist/web/crypto.d.ts +2 -3
  30. package/dist/web/entdb/cached.d.ts +4 -0
  31. package/dist/web/entdb/entdb.d.ts +3 -0
  32. package/dist/web/entdb/idb.d.ts +8 -5
  33. package/dist/web/index.d.ts +11 -5
  34. package/dist/web/index.mjs +1 -1
  35. package/dist/web/objEq.d.ts +1 -0
  36. package/dist/web/passkey/prf-store.d.ts +26 -10
  37. package/dist/web/passkey/seed.d.ts +12 -6
  38. package/dist/web/shared/api/peek.d.ts +9 -1
  39. package/dist/web/shared/api/pull.d.ts +9 -1
  40. package/dist/web/shared/api/push.d.ts +3 -1
  41. package/dist/web/shared/api/user.d.ts +1 -1
  42. package/dist/web/shared/auth.d.ts +2 -2
  43. package/dist/web/shared/bag.d.ts +11 -6
  44. package/dist/web/shared/blobs.d.ts +25 -0
  45. package/dist/web/shared/client.d.ts +18 -9
  46. package/dist/web/shared/codec.d.ts +4 -0
  47. package/dist/web/shared/codecs/ent.d.ts +5 -0
  48. package/dist/web/shared/codecs/kdm.d.ts +7 -0
  49. package/dist/web/shared/codecs/notifItem.d.ts +2 -0
  50. package/dist/web/shared/crypto/bagman.d.ts +19 -0
  51. package/dist/web/shared/crypto/binary.d.ts +1 -0
  52. package/dist/web/shared/crypto/derivation.d.ts +45 -0
  53. package/dist/web/shared/crypto/enclave.d.ts +31 -102
  54. package/dist/web/shared/crypto/largeBlob.d.ts +8 -0
  55. package/dist/web/shared/crypto/noble.d.ts +15 -22
  56. package/dist/web/shared/crypto/pairing.d.ts +19 -2
  57. package/dist/web/shared/crypto/prf.d.ts +52 -0
  58. package/dist/web/shared/crypto/realms.d.ts +7 -0
  59. package/dist/web/shared/crypto/tty.d.ts +3 -0
  60. package/dist/web/shared/endpoint.d.ts +4 -5
  61. package/dist/web/shared/exim.d.ts +5 -5
  62. package/dist/web/shared/http.d.ts +12 -12
  63. package/dist/web/shared/storage/memory.d.ts +2 -2
  64. package/dist/web/shared/sync.d.ts +3 -3
  65. package/dist/web/shared/types.d.ts +24 -16
  66. package/dist/web/shared/webauthn/prf.d.ts +8 -0
  67. package/dist/web/state.d.ts +1 -2
  68. package/dist/web/stores/cursor.d.ts +30 -0
  69. package/dist/web/stores/idb/account.d.ts +58 -0
  70. package/dist/web/stores/idb/catalog.d.ts +1 -0
  71. package/dist/web/stores/idb/dnlds.d.ts +3 -2
  72. package/dist/web/stores/idb/hosts.d.ts +8 -7
  73. package/dist/web/stores/idb/idbutil.d.ts +2 -0
  74. package/dist/web/stores/idb/migrate.d.ts +2 -0
  75. package/dist/web/stores/idb/msgs.d.ts +1 -1
  76. package/dist/web/stores/idb/names.d.ts +13 -0
  77. package/dist/web/stores/idb/realms.d.ts +11 -0
  78. package/dist/web/stores/idb/store.d.ts +26 -19
  79. package/dist/web/stores/idb/uplds.d.ts +1 -1
  80. package/dist/web/stores/keyTag.d.ts +14 -0
  81. package/dist/web/stores/label.d.ts +3 -0
  82. package/dist/web/stores/memory/account.d.ts +14 -0
  83. package/dist/web/stores/memory/dnlds.d.ts +4 -2
  84. package/dist/web/stores/memory/hosts.d.ts +8 -6
  85. package/dist/web/stores/memory/realms.d.ts +10 -0
  86. package/dist/web/stores/memory/store.d.ts +6 -2
  87. package/dist/web/stores/realm.d.ts +35 -0
  88. package/dist/web/sync.d.ts +18 -16
  89. package/dist/web/types.d.ts +59 -18
  90. package/dist/web/worker/client.d.ts +7 -3
  91. package/dist/web/worker/protocol.d.ts +6 -0
  92. package/dist/web/worker/runtime.d.ts +4 -2
  93. package/dist/web/worker.mjs +1 -1
  94. package/package.json +1 -2
  95. package/dist/cli/bun/src/codec.d.ts +0 -3
  96. package/dist/web/stores/idb/seed.d.ts +0 -32
  97. package/dist/web/stores/identityPin.d.ts +0 -19
  98. package/dist/web/stores/memory/seed.d.ts +0 -13
@@ -3,11 +3,13 @@ import { IClock } from "../shared/clock.ts";
3
3
  import type { IBagPeekItem } from "../shared/codecs/peekItem.ts";
4
4
  import { IBagPullItem } from "../shared/codecs/pullItem.ts";
5
5
  import { IBagPushItem } from "../shared/codecs/pushItem.ts";
6
+ import type { IKDM } from "../shared/codecs/kdm.ts";
6
7
  import { Status } from "../shared/consts.ts";
7
8
  import { Enclave } from "../shared/crypto/enclave.ts";
8
9
  import { HostHandle, IHostConnectionInfo, IMessage, ITransport } from "../shared/types.ts";
9
10
  import { ValStat } from "../shared/valstat.ts";
10
11
  export declare class CLIClient<Handle extends HostHandle> {
12
+ #private;
11
13
  private enclave;
12
14
  private conn?;
13
15
  private clock;
@@ -16,10 +18,10 @@ export declare class CLIClient<Handle extends HostHandle> {
16
18
  clock?: IClock;
17
19
  });
18
20
  connect(host: IHostConnectionInfo<Handle>, transport: ITransport): Promise<Status>;
19
- push(msgs: IMessage[]): Promise<ValStat<IBagPushItem[]>>;
20
- peek(lastSeq: number): Promise<ValStat<IBagPeekItem[]>>;
21
- pull(seqs: number[]): Promise<ValStat<IBagPullItem[]>>;
22
- open(peekItem: IBagPeekItem, pullItem: IBagPullItem): Promise<ValStat<IOpenBag>>;
21
+ push(msgs: IMessage[], realm?: IKDM): Promise<ValStat<IBagPushItem[]>>;
22
+ peek(lastSeq: number, realm?: IKDM): Promise<ValStat<IBagPeekItem[]>>;
23
+ pull(seqs: number[], realm?: IKDM): Promise<ValStat<IBagPullItem[]>>;
24
+ open(peekItem: IBagPeekItem, pullItem: IBagPullItem, realm?: IKDM): Promise<ValStat<IOpenBag>>;
23
25
  upsertSingletonSync(type: string, body: Uint8Array): Promise<Status>;
24
26
  listen(onNotification: (bytes: Uint8Array) => Promise<Status>, onDisconnect?: () => void, onConnect?: () => void): Promise<Status>;
25
27
  isConnected(): boolean;
@@ -37,7 +39,6 @@ export declare function initCLIOrPanic<Handle extends URL>({ enclave, host, tran
37
39
  /** Load master seed hex from env and construct an Enclave immediately. */
38
40
  export declare function loadEnclaveOrPanic(envVar: string): Enclave;
39
41
  export declare function loadHostOrPanic(envVar: string): IHostConnectionInfo<URL>;
40
- export { default as msgpack } from "../bun/src/codec.ts";
41
42
  export { Decoder } from "../shared/codec.ts";
42
43
  export { notifItemCodec } from "../shared/codecs/notifItem.ts";
43
44
  export type { IBagNotifItem } from "../shared/codecs/notifItem.ts";
@@ -5,8 +5,10 @@ import { EncodedMessage } from "./shared/message";
5
5
  import type { Enclave } from "./shared/crypto/enclave";
6
6
  import { EntityID, Hash, HostHandle, ICrypto, IDeleteParams, IEntRev, IHostConnectionInfo, IInsertParams, IMessageHead, IStateManager, ITransport, IUpdateParams } from "./shared/types";
7
7
  import { ValStat } from "./shared/valstat";
8
- import { ApldState, IClient, IDiplomaticClientState, IDiplomaticClientXferState, IHostRow, IStateEmitter, IStore, IStoredMessage, ListMsgsOpts, ReconcileOpts, ReconcileReport, SetSeedOpts, WipeOpts } from "./types";
8
+ import { type IBlobUpdate, type IBlobWrite } from "./shared/blobs";
9
+ import { ApldState, IClient, IDiplomaticClientState, IDiplomaticClientXferState, IHostRow, IStateEmitter, IStore, IStoredMessage, ListMsgsOpts, OpenAccount, ReconcileOpts, ReconcileReport, SetSeedOpts, WipeOpts } from "./types";
9
10
  export declare class SyncClient<Handle extends HostHandle> implements IClient<Handle> {
11
+ #private;
10
12
  private clock;
11
13
  private state;
12
14
  private store;
@@ -56,7 +58,10 @@ export declare class SyncClient<Handle extends HostHandle> implements IClient<Ha
56
58
  onScheduleSync?: (() => void) | undefined);
57
59
  /** Record phase progress and notify xferState listeners. */
58
60
  private emitProgress;
59
- setSeed(enclave: Enclave, opts?: SetSeedOpts): Promise<void>;
61
+ /** Account this client is operating as, if one is open. */
62
+ selected(): OpenAccount<Handle> | undefined;
63
+ setSeed(enclave: Enclave, opts?: SetSeedOpts): Promise<Status>;
64
+ adopt(enclave: Enclave, label?: string): Promise<Status>;
60
65
  private getClientState;
61
66
  private getXferState;
62
67
  /**
@@ -121,13 +126,18 @@ export declare class SyncClient<Handle extends HostHandle> implements IClient<Ha
121
126
  */
122
127
  private updateWithSkew;
123
128
  updateRaw(prior: IEntRev, bod: EncodedMessage | undefined, force?: boolean, typ?: string): Promise<ValStat<IMessageHead>>;
124
- insert<T = unknown>(op: IInsertParams<T>): Promise<ValStat<IMessageHead>>;
125
- update<T = unknown>(op: IUpdateParams<T>): Promise<ValStat<IMessageHead>>;
129
+ insert(op: IInsertParams<Uint8Array>): Promise<ValStat<IMessageHead>>;
130
+ update(op: IUpdateParams<Uint8Array>): Promise<ValStat<IMessageHead>>;
126
131
  /**
127
132
  * Delete by `{ prior }` (preferred) or `{ eid }` (archive lookup).
128
133
  * `force` defaults to true (skew recovery on delete).
129
134
  */
130
135
  delete(op: IDeleteParams): Promise<ValStat<IMessageHead>>;
136
+ insertBlob(mime: string, bytes: Uint8Array, opts?: IBlobWrite): Promise<ValStat<IMessageHead>>;
137
+ updateBlob(eid: EntityID, bytes: Uint8Array, opts?: IBlobUpdate): Promise<ValStat<IMessageHead>>;
138
+ deleteBlob(eid: EntityID): Promise<ValStat<IMessageHead>>;
139
+ readBlob(eid: EntityID): Promise<ValStat<Uint8Array>>;
140
+ private lastMsg;
131
141
  /**
132
142
  * Latest rev for eid from the message archive.
133
143
  * If none, returns ctr -1 so the next write uses ctr 0.
@@ -168,9 +178,10 @@ export declare class SyncClient<Handle extends HostHandle> implements IClient<Ha
168
178
  /** Count archive rows; optional apld filter. Prefer over list+length. */
169
179
  countMsgs(apld?: ApldState): Promise<number>;
170
180
  /**
171
- * Full inventory of one host (peek seq 0): advances lastSeq; optionally
172
- * enqueues pull/push. Waits out in-flight {@link sync} first (same as
173
- * {@link rebuild}). By default drains via {@link sync}, then re-inventories.
181
+ * Full inventory of one host (peek seq 0 per realm). Sets each cursor and
182
+ * optionally enqueues pull/push. Waits out in-flight {@link sync} first
183
+ * (same as {@link rebuild}). By default drains via {@link sync}, then
184
+ * re-inventories.
174
185
  * Returns ephemeral {@link ReconcileReport} (msgcheck, numBags, numDupes) —
175
186
  * bag tallies are not persisted.
176
187
  */
@@ -1,3 +1,2 @@
1
- import { NobleCrypto } from "./shared/crypto/noble";
2
- declare const crypto: NobleCrypto;
3
- export default crypto;
1
+ import { noble } from "./shared/crypto/noble";
2
+ export default noble;
@@ -25,6 +25,10 @@ export type OpenEntDBOptions = {
25
25
  * Process-wide; also accepted on openDiplomaticClient / useClient.
26
26
  */
27
27
  verbose?: boolean;
28
+ /** Account whose EntDB to open. Default is the unlabeled account. */
29
+ label?: string;
30
+ /** Database name. The worker passes this and does not open the catalog. */
31
+ name?: string;
28
32
  };
29
33
  export type CachedEntDBOptions = {
30
34
  /** Secondary mem indexes (default true). See {@link OpenEntDBOptions.indexes}. */
@@ -1,3 +1,4 @@
1
+ import type { EntRlm } from "../stores/realm";
1
2
  import { Status } from "../shared/consts";
2
3
  import { ValStat } from "../shared/valstat";
3
4
  import { EntityID, Hash, ICrypto, IEntRev, IMessageHead, IMsgEntBody, IOp } from "../shared/types";
@@ -9,6 +10,8 @@ export interface IEntity<T = unknown> extends Omit<IMsgEntBody<T>, "body"> {
9
10
  createdAt: Date;
10
11
  ctr: number;
11
12
  body: T;
13
+ /** Realm label. Omitted for the default realm. */
14
+ rlm?: EntRlm;
12
15
  }
13
16
  /**
14
17
  * Deleted eid's LWW frontier: eid + updatedAt + ctr only (no type/body/…).
@@ -8,15 +8,18 @@ export declare const typeUpdatedAtIndexName = "entity_type_updated_at";
8
8
  export declare const typeParentIndexName = "entity_type_parent_id";
9
9
  /** multiEntry index on tgs[]; query by tag then filter by type. */
10
10
  export declare const tagsIndexName = "entity_tags";
11
- /** Shared by main thread and sync worker — must stay in lockstep. */
12
- export declare const ENT_IDB_NAME = "db";
13
- /** v14: drop [`typ`,`gid`] index (gid superseded by tags). */
14
- export declare const ENT_IDB_VERSION = 14;
11
+ /** Realm label. Rows in the default realm omit rlm and are not in this index. */
12
+ export declare const realmIndexName = "entity_rlm";
13
+ /** Current EntDB schema. Default-realm rows omit rlm. */
14
+ export declare const ENT_IDB_VERSION = 15;
15
15
  export declare class EntIDB implements IEntDB {
16
+ private name;
16
17
  db: IDBDatabase | undefined;
17
18
  /** In-flight open; coalesces concurrent ensureDb / peer upgrade reopen. */
18
19
  private opening;
20
+ constructor(name: string);
19
21
  init(): Promise<void>;
22
+ close(): void;
20
23
  /**
21
24
  * Open (or reopen) the shared EntDB IDB connection.
22
25
  * Main + worker both hold connections; on versionchange we must close so the
@@ -43,4 +46,4 @@ export declare class EntIDB implements IEntDB {
43
46
  checksum(crypto: ICrypto): Promise<ValStat<Hash>>;
44
47
  }
45
48
  /** Durable IndexedDB EntDB. Internal-only. Apps use {@link openEntDB} instead. */
46
- export declare function openEntIDB(): Promise<EntIDB>;
49
+ export declare function openEntIDB(name: string): Promise<EntIDB>;
@@ -11,19 +11,24 @@ import { b64tob, b64urltob, btob64, btob64url, btoh, htob } from "./shared/binar
11
11
  import { Clock } from "./shared/clock";
12
12
  import { Decoder, Encoder } from "./shared/codec";
13
13
  import { eidCodec, genSingletonEID } from "./shared/codecs/eid";
14
+ import { encodeEnt, entCodec } from "./shared/codecs/ent";
14
15
  import { Status } from "./shared/consts";
15
16
  import { hostHTTPTransport, HTTPTransport } from "./shared/http";
16
17
  import { TypedEventEmitter } from "./shared/events";
17
18
  import { asSealedMasterKey, MASTER_SEED_LEN, SEALED_MASTER_KEY_LEN, type SealedMasterKey } from "./shared/seed";
18
19
  import { EntityID, HostHandle, ICrypto, IDeleteParams, IEntRev, IHostConnectionInfo, IMessage, IMutateOp, type IOp, IStateManager, ITransport, IUpdateParams } from "./shared/types";
19
20
  import { Enclave } from "./shared/crypto/enclave";
20
- import type { PairRequest } from "./shared/crypto/enclave";
21
+ import type { BagManager } from "./shared/crypto/bagman";
22
+ import { asChildKey, asHostRlm, type ChildKey, type HostRlm, nullKDM, Purpose } from "./shared/crypto/derivation";
23
+ import type { PairRequest } from "./shared/crypto/pairing";
24
+ import type { BindPrior, PrfBound } from "./shared/crypto/prf";
21
25
  import { nullStateManager, StateManager } from "./state";
22
- import { IDBSeedStore } from "./stores/idb/seed";
26
+ import type { EntRlm, IRealm } from "./stores/realm";
27
+ import { IDBAccountStore } from "./stores/idb/account";
23
28
  import { IDBStore, openIDBStore } from "./stores/idb/store";
24
29
  import { MemoryStore } from "./stores/memory/store";
25
30
  import { SingletonStateManager } from "./shared/singleton";
26
- import type { ApldState, Applier, HostStatsUpdate, IClient, IDiplomaticClientState, IHostRow, IStore, IStoredMessage, IStoredMessageData, IStoredMessageWrite, ListMsgsOpts, ReconcileOpts, ReconcileReport, SetSeedOpts } from "./types";
31
+ import type { ApldState, Applier, HostSeqsUpdate, IClient, IDiplomaticClientState, IHostRow, IStore, IStoredMessage, IStoredMessageData, IStoredMessageWrite, ListMsgsOpts, OpenAccount, ReconcileOpts, ReconcileReport, SetSeedOpts } from "./types";
27
32
  import { APLD_APPLIED, APLD_ERROR, APLD_PENDING, apldFromStored, isApldState, isPendingApply, isTerminalApplyFailure, setApld } from "./types";
28
33
  import type { SyncProgressEvent } from "./progress";
29
34
  import { defaultPeekProgressEvery, idleProgress, shouldEmitItemProgress } from "./progress";
@@ -34,6 +39,7 @@ import { KEYRING_MAX, keyringCredIds, keyringKind, keyringLabel, PrfSeedStore }
34
39
  import type { Keyring, KeyringEntry, KeyringRow, PersistKeyring, PrfSeedStoreOpts } from "./passkey/prf-store";
35
40
  import type { PasskeySeedStoreOpts } from "./passkey/seed";
36
41
  import { type BundleHost } from "./shared/codecs/bundleHost";
42
+ import { type IKDM } from "./shared/codecs/kdm";
37
43
  import { asDHKEReq, asDHKEResp } from "./shared/crypto/pairing";
38
44
  import type { DHKEReq, DHKEResp } from "./shared/crypto/pairing";
39
45
  import { checksumEntRevs, checksumSet, cmpBytes, encodeEntRev } from "./shared/checksum";
@@ -44,5 +50,5 @@ import type { WipeOpts } from "./types";
44
50
  /** Platform advertises largeBlob (not a guarantee the binding key has it). */
45
51
  export { largeBlobCapable } from "./shared/webauthn/largeBlob";
46
52
  export { webAuthnLastError } from "./shared/webauthn/common";
47
- 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, PasskeySeedStore, prfCapable, PrfSeedStore, revFromEntity, revFromHead, SEALED_MASTER_KEY_LEN, setApld, shouldEmitItemProgress, SingletonStateManager, StateManager, Status, SyncClient, TypedEventEmitter, useClient, useClientState, useClientXferState, useStateWatcher, useStateWatcherSuspense, useSyncOnResume, WorkerClient, };
48
- 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, PairRequest, PasskeySeedStoreOpts, PersistKeyring, PrfRp, PrfSeedStoreOpts, ReconcileOpts, ReconcileReport, SealedMasterKey, SetSeedOpts, SyncProgressEvent, TagSpec, WipeOpts, WorkerClientOptions, };
53
+ export { APLD_APPLIED, APLD_ERROR, APLD_PENDING, apldFromStored, asChildKey, asDHKEReq, asDHKEResp, asHostRlm, asSealedMasterKey, b64tob, b64urltob, btob64, btob64url, btoh, CachedEntDB, checksumEntRevs, checksumSet, Clock, cmpBytes, crypto, Decoder, DEFAULT_PRF_SALT, defaultPeekProgressEvery, defaultWebAuthnRpId, eidCodec, Enclave, encodeEnt, encodeEntRev, Encoder, entCodec, EntDBMemory, EntIDB, EntitiesQuery, EntityID, entStateManager, genSingletonEID, hostHTTPTransport, htob, HTTPTransport, IDBAccountStore, IDBStore, idleProgress, IEntDB, IEntity, isApldState, isLiveEnt, isPendingApply, isTerminalApplyFailure, isTombstone, IStore, KEYRING_MAX, keyringCredIds, keyringKind, keyringLabel, MASTER_SEED_LEN, MemoryStore, normalizeTags, nullEntDB, nullKDM, nullStateManager, openDiplomaticClient, openEntDB, openIDBStore, PasskeySeedStore, prfCapable, PrfSeedStore, Purpose, revFromEntity, revFromHead, SEALED_MASTER_KEY_LEN, setApld, shouldEmitItemProgress, SingletonStateManager, StateManager, Status, SyncClient, TypedEventEmitter, useClient, useClientState, useClientXferState, useStateWatcher, useStateWatcherSuspense, useSyncOnResume, WorkerClient, };
54
+ export type { ApldState, Applier, BagManager, BindPrior, BundleHost, CachedEntDBOptions, ChildKey, DateSpec, DHKEReq, DHKEResp, EntDBMemoryOptions, EntRlm, HostHandle, HostRlm, HostSeqsUpdate, IClient, ICrypto, IDateRange, IDeleteParams, IDiplomaticClientState, IEntRev, IEntRow, IHostConnectionInfo, IHostRow, IKDM, IMessage, IMutateOp, IOp, IRealm, IStateManager, IStoredMessage, IStoredMessageData, IStoredMessageWrite, ITagRange, ITombstone, ITransport, IUpdateParams, Keyring, KeyringEntry, KeyringRow, ListMsgsOpts, OpenAccount, OpenDiplomaticClientMainOptions, OpenDiplomaticClientOptions, OpenDiplomaticClientWorkerOptions, OpenedDiplomaticClient, OpenEntDBOptions, PairRequest, PasskeySeedStoreOpts, PersistKeyring, PrfBound, PrfRp, PrfSeedStoreOpts, ReconcileOpts, ReconcileReport, SealedMasterKey, SetSeedOpts, SyncProgressEvent, TagSpec, WipeOpts, WorkerClientOptions, };