@interncom/diplomatic 0.13.0 → 0.13.1

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.
@@ -9,12 +9,10 @@ import { type PrfCreateOpts, type PrfEvalOpts, type PrfRp } from "../webauthn/pr
9
9
  export type { LargeBlobCreateOpts, LargeBlobRp };
10
10
  export type { PrfCreateOpts, PrfEvalOpts, PrfRp };
11
11
  /** Options for PRF seal/unseal ceremonies (no raw PRF bytes). */
12
- export type PasskeyPrfOpts = PrfRp & {
13
- salt?: Uint8Array;
12
+ export type PasskeyPrfOpts = PrfCreateOpts & {
14
13
  credId?: Uint8Array;
15
14
  /** Seal only: create a PRF credential first when no credId is known. */
16
15
  createCredIfNeeded?: boolean;
17
- userName?: string;
18
16
  };
19
17
  /** Durable PRF-sealed master + public meta (never includes PRF output). */
20
18
  export type PrfSealedMaster = {
@@ -3,7 +3,10 @@ import { type WebAuthnRp } from "./common.ts";
3
3
  export type PrfRp = WebAuthnRp;
4
4
  export type PrfCreateOpts = PrfRp & {
5
5
  userName?: string;
6
- authenticatorAttachment?: string;
6
+ /** Omit so the UA can offer roaming keys (YubiKey) and third-party providers. */
7
+ authenticatorAttachment?: "platform" | "cross-platform";
8
+ /** If set, request PRF eval at create so hmac-secret is actually enabled. */
9
+ salt?: Uint8Array;
7
10
  };
8
11
  /** Default salt for DIPLOMATIC PRF eval (UTF-8). */
9
12
  export declare const DEFAULT_PRF_SALT: Uint8Array<ArrayBufferLike>;