@interncom/diplomatic 0.12.9 → 0.13.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/codec.d.ts +1 -0
- package/dist/cli/shared/codecs/pairPackage.d.ts +1 -2
- package/dist/cli/shared/consts.d.ts +2 -1
- package/dist/cli/shared/crypto/enclave.d.ts +8 -27
- package/dist/cli/shared/crypto/noble.d.ts +8 -1
- package/dist/cli/shared/crypto/pairing.d.ts +34 -0
- package/dist/cli/shared/crypto/x25519.d.ts +10 -0
- package/dist/web/index.d.ts +8 -10
- package/dist/web/index.mjs +1 -1
- package/dist/web/passkey/prf-store.d.ts +0 -2
- package/dist/web/passkey/seed.d.ts +0 -2
- package/dist/web/shared/codec.d.ts +1 -0
- package/dist/web/shared/codecs/pairPackage.d.ts +1 -2
- package/dist/web/shared/consts.d.ts +2 -1
- package/dist/web/shared/crypto/enclave.d.ts +8 -27
- package/dist/web/shared/crypto/noble.d.ts +8 -1
- package/dist/web/shared/crypto/pairing.d.ts +34 -0
- package/dist/web/shared/crypto/x25519.d.ts +10 -0
- package/dist/web/stores/idb/seed.d.ts +1 -3
- package/dist/web/worker.mjs +1 -1
- package/package.json +1 -1
- package/dist/web/identity/pairPackage.d.ts +0 -31
- package/dist/web/shared/codecs/pairPackageEnvelope.d.ts +0 -18
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ValStat } from "../valstat.ts";
|
|
2
|
+
export declare const X25519_SK_LEN = 32;
|
|
3
|
+
declare const x25519SkSymbol: unique symbol;
|
|
4
|
+
export type X25519Sk = Uint8Array & {
|
|
5
|
+
readonly [x25519SkSymbol]: true;
|
|
6
|
+
};
|
|
7
|
+
export declare function asX25519Sk(bytes: Uint8Array): ValStat<X25519Sk>;
|
|
8
|
+
export declare function x25519(sk: X25519Sk, u: Uint8Array): Uint8Array;
|
|
9
|
+
export declare function x25519Pub(sk: X25519Sk): Uint8Array;
|
|
10
|
+
export {};
|
package/dist/web/index.d.ts
CHANGED
|
@@ -25,23 +25,21 @@ import type { ApldState, Applier, HostStatsUpdate, IClient, IDiplomaticClientSta
|
|
|
25
25
|
import { APLD_APPLIED, APLD_ERROR, APLD_PENDING, apldFromStored, isApldState, isPendingApply, isTerminalApplyFailure, setApld } from "./types";
|
|
26
26
|
import type { SyncProgressEvent } from "./progress";
|
|
27
27
|
import { defaultPeekProgressEvery, idleProgress, shouldEmitItemProgress } from "./progress";
|
|
28
|
-
import { defaultWebAuthnRpId,
|
|
29
|
-
import type { LargeBlobCreateOpts, LargeBlobRp } from "./passkey/seed";
|
|
28
|
+
import { defaultWebAuthnRpId, PasskeySeedStore } from "./passkey/seed";
|
|
30
29
|
import { DEFAULT_PRF_SALT, prfCapable, type PrfRp } from "./shared/webauthn/prf";
|
|
31
30
|
import { PrfSeedStore } from "./passkey/prf-store";
|
|
32
31
|
import type { PersistPrfSeedMeta, PrfSeedMeta, PrfSeedStoreOpts } from "./passkey/prf-store";
|
|
33
32
|
import type { PasskeySeedStoreOpts } from "./passkey/seed";
|
|
34
33
|
import { type BundleHost } from "./shared/codecs/bundleHost";
|
|
35
|
-
import {
|
|
36
|
-
import type {
|
|
34
|
+
import { asDHKEReq, asDHKEResp, PairRequest } from "./shared/crypto/pairing";
|
|
35
|
+
import type { DHKEReq, DHKEResp } from "./shared/crypto/pairing";
|
|
36
|
+
import type { PairPackagePlain } from "./shared/codecs/pairPackage";
|
|
37
37
|
import { checksumEntRevs, checksumSet, cmpBytes, encodeEntRev } from "./shared/checksum";
|
|
38
38
|
import { openDiplomaticClient, type OpenDiplomaticClientMainOptions, type OpenDiplomaticClientOptions, type OpenDiplomaticClientWorkerOptions, type OpenedDiplomaticClient } from "./openClient";
|
|
39
39
|
import { WorkerClient } from "./worker/client";
|
|
40
40
|
import type { WorkerClientOptions } from "./worker/client";
|
|
41
41
|
import type { WipeOpts } from "./types";
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
export { APLD_APPLIED, APLD_ERROR, APLD_PENDING, apldFromStored, 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, GroupID, hostHTTPTransport, htob, HTTPTransport, IDBSeedStore, IDBStore, idleProgress, IEntDB, IEntity, isApldState, isLiveEnt, isPendingApply, isTerminalApplyFailure, isTombstone, IStore, LargeBlob, MASTER_SEED_LEN, MemoryStore, normalizeTags, nullEntDB, nullStateManager, openDiplomaticClient, openEntDB, openIDBStore, PairPackage, PasskeySeedStore, prfCapable, PrfSeedStore, revFromEntity, revFromHead, SEALED_MASTER_KEY_LEN, setApld, shouldEmitItemProgress, SingletonStateManager, StateManager, Status, SyncClient, TypedEventEmitter, useClient, useClientState, useClientXferState, useStateWatcher, useStateWatcherSuspense, useSyncOnResume, WorkerClient, };
|
|
47
|
-
export type { ApldState, Applier, BundleHost, CachedEntDBOptions, EntDBMemoryOptions, HostHandle, HostStatsUpdate, IClient, ICrypto, IDeleteParams, IDiplomaticClientState, IEntRev, IEntRow, IHostConnectionInfo, IHostRow, IMessage, IMutateOp, IOp, IStateManager, IStoredMessage, IStoredMessageData, IStoredMessageWrite, ITombstone, ITransport, IUpdateParams, LargeBlobCreateOpts, LargeBlobRp, ListMsgsOpts, OpenDiplomaticClientMainOptions, OpenDiplomaticClientOptions, OpenDiplomaticClientWorkerOptions, OpenedDiplomaticClient, OpenedPairPackage, OpenEntDBOptions, PairPackageEnvelope, PasskeySeedStoreOpts, PersistPrfSeedMeta, PrfRp, PrfSeedMeta, PrfSeedStoreOpts, ReconcileOpts, ReconcileReport, SealedMasterKey, SetSeedOpts, SyncProgressEvent, WipeOpts, WorkerClientOptions, };
|
|
42
|
+
/** Platform advertises largeBlob (not a guarantee the authenticator has it). */
|
|
43
|
+
export declare function largeBlobCapable(): Promise<boolean>;
|
|
44
|
+
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, GroupID, hostHTTPTransport, htob, HTTPTransport, IDBSeedStore, IDBStore, idleProgress, IEntDB, IEntity, isApldState, isLiveEnt, isPendingApply, isTerminalApplyFailure, isTombstone, IStore, 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, };
|
|
45
|
+
export type { ApldState, Applier, BundleHost, CachedEntDBOptions, DHKEReq, DHKEResp, EntDBMemoryOptions, HostHandle, HostStatsUpdate, IClient, ICrypto, IDeleteParams, IDiplomaticClientState, IEntRev, IEntRow, IHostConnectionInfo, IHostRow, IMessage, IMutateOp, IOp, IStateManager, IStoredMessage, IStoredMessageData, IStoredMessageWrite, ITombstone, ITransport, IUpdateParams, ListMsgsOpts, OpenDiplomaticClientMainOptions, OpenDiplomaticClientOptions, OpenDiplomaticClientWorkerOptions, OpenedDiplomaticClient, OpenEntDBOptions, PairPackagePlain, PasskeySeedStoreOpts, PersistPrfSeedMeta, PrfRp, PrfSeedMeta, PrfSeedStoreOpts, ReconcileOpts, ReconcileReport, SealedMasterKey, SetSeedOpts, SyncProgressEvent, WipeOpts, WorkerClientOptions, };
|