@interncom/diplomatic 0.12.0 → 0.12.2

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.
@@ -1 +1 @@
1
- export { asPublicKeyCredential, checkWebAuthn, copyToArrayBuffer, defaultWebAuthnRpId, resolveWebAuthnRpId, webAuthnExtensionCapable, COSE_ALG_EDDSA, COSE_ALG_ES256, COSE_ALG_RS256, WEBAUTHN_CHAL_LEN, WEBAUTHN_PUB_KEY_PARAMS, type WebAuthnRp, } from "../shared/webauthn/common";
1
+ export { asPublicKeyCredential, checkWebAuthn, copyToArrayBuffer, COSE_ALG_EDDSA, COSE_ALG_ES256, COSE_ALG_RS256, defaultWebAuthnRpId, resolveWebAuthnRpId, WEBAUTHN_CHAL_LEN, WEBAUTHN_PUB_KEY_PARAMS, webAuthnExtensionCapable, type WebAuthnRp, } from "../shared/webauthn/common";
@@ -5,7 +5,7 @@ import { IHostConnectionInfo, IStateManager } from "../shared/types";
5
5
  import type { IClient, IDiplomaticClientState, IDiplomaticClientXferState, IStore } from "../types";
6
6
  export declare function useClientState(client: Pick<IClient<URL>, "clientState">): IDiplomaticClientState | undefined;
7
7
  export declare function useClientXferState(client: Pick<IClient<URL>, "xferState">): IDiplomaticClientXferState | undefined;
8
- export declare function useSyncOnResume(client: Pick<IClient<URL>, "connect" | "sync">): void;
8
+ export declare function useSyncOnResume(client: Pick<IClient<URL>, "connect" | "sync" | "clientState">): void;
9
9
  type UseClientBase = {
10
10
  clock?: IClock;
11
11
  /** Session enclave (master seed stays inside Enclave). */
@@ -1 +1 @@
1
- export declare const DIPLOMATIC_WORKER_SOURCE = "";
1
+ export declare const DIPLOMATIC_WORKER_SOURCE_B64 = "";
@@ -4,6 +4,10 @@ import type { HostStatsUpdate, IHostRow, IHostStore } from "../../types";
4
4
  export declare class IDBHostStore implements IHostStore<URL> {
5
5
  db: IDBDatabase;
6
6
  constructor(db: IDBDatabase);
7
+ /**
8
+ * Upsert connection info. Same label + same handle/idx keeps lastSeq and
9
+ * host meta (safe re-link). Changing handle/idx resets the peek cursor.
10
+ */
7
11
  add(info: IHostConnectionInfo<URL>): Promise<void>;
8
12
  private put;
9
13
  touch(label: string, seq: number): Promise<void>;
@@ -1,7 +1,7 @@
1
1
  import { Enclave } from "../../shared/crypto/enclave";
2
2
  import type { ICrypto } from "../../shared/types";
3
3
  import type { ISeedStore, SetSeedOpts } from "../../types";
4
- import { PrfSeedStore, type PrfSeedMeta, type PrfSeedStoreOpts } from "../../passkey/prf-store";
4
+ import { type PrfSeedMeta, PrfSeedStore, type PrfSeedStoreOpts } from "../../passkey/prf-store";
5
5
  export declare class IDBSeedStore implements ISeedStore {
6
6
  #private;
7
7
  enclave?: Enclave;
@@ -3,6 +3,10 @@ import { HostHandle, IHostConnectionInfo, IHostMetadata } from "../../shared/typ
3
3
  import type { HostStatsUpdate, IHostRow, IHostStore } from "../../types";
4
4
  export declare class MemoryHostStore<Handle extends HostHandle> implements IHostStore<Handle> {
5
5
  hosts: Map<string, IHostRow<Handle>>;
6
+ /**
7
+ * Upsert connection info. Same label + same handle/idx keeps lastSeq and
8
+ * host meta (safe re-link). Changing handle/idx resets the peek cursor.
9
+ */
6
10
  add(info: IHostConnectionInfo<Handle>): Promise<void>;
7
11
  touch(label: string, seq: number): Promise<void>;
8
12
  recordStats(label: string, u: HostStatsUpdate): Promise<void>;