@interncom/diplomatic 0.13.3 → 0.13.5

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.
@@ -40,7 +40,8 @@ export declare enum Status {
40
40
  VarLimitExceeded = 26,
41
41
  InvalidResponse = 27,
42
42
  ConnectionClosed = 28,
43
- CryptoError = 29
43
+ CryptoError = 29,
44
+ WebAuthnError = 30
44
45
  }
45
46
  export declare enum APICallName {
46
47
  User = 0,
@@ -39,6 +39,10 @@ export declare function copyToArrayBuffer(src: Uint8Array): ArrayBuffer;
39
39
  export declare function bufferSourceToUint8(src: BufferSource): Uint8Array;
40
40
  /** Resolve RP id from opts or `location.hostname`. */
41
41
  export declare function resolveWebAuthnRpId(opts?: WebAuthnRp): ValStat<string>;
42
+ /** Last `credentials.create`/`get` throw (name + message). Empty if none. */
43
+ export declare function webAuthnLastError(): string;
44
+ /** Records a WebAuthn DOMException (or other throw) for {@link webAuthnLastError}. */
45
+ export declare function noteWebAuthnError(e: unknown): void;
42
46
  /** Success if WebAuthn credentials API is available in this environment. */
43
47
  export declare function checkWebAuthn(): Status;
44
48
  export declare function asPublicKeyCredential(cred: Credential | null): ValStat<PublicKeyCredential>;
@@ -12,7 +12,7 @@ export declare function largeBlobCapable(): Promise<boolean>;
12
12
  export declare function largeBlobCreateCred(opts?: LargeBlobCreateOpts): Promise<ValStat<Uint8Array>>;
13
13
  /** UV write of opaque bytes to largeBlob. */
14
14
  export declare function largeBlobWrite(credId: Uint8Array, data: Uint8Array, opts?: LargeBlobRp): Promise<Status>;
15
- /** UV read from largeBlob; `credId` undefined = discoverable assertion. */
15
+ /** UV read from largeBlob; `credId` undefined = discoverable then targeted read. */
16
16
  export declare function largeBlobRead(credId: Uint8Array | undefined, opts?: LargeBlobRp): Promise<ValStat<{
17
17
  blob: Uint8Array;
18
18
  credId: Uint8Array;