@interncom/diplomatic 0.15.0 → 0.16.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 +3 -3
- package/dist/cli/shared/webauthn/common.d.ts +10 -0
- package/dist/web/entdb/entdb.d.ts +23 -1
- package/dist/web/entdb/idb.d.ts +2 -2
- package/dist/web/entdb/memory.d.ts +7 -14
- package/dist/web/index.d.ts +2 -1
- package/dist/web/index.mjs +1 -1
- package/dist/web/shared/webauthn/common.d.ts +10 -0
- package/dist/web/worker.mjs +1 -1
- package/package.json +2 -1
|
@@ -47,6 +47,16 @@ export declare function resolveWebAuthnRpId(opts?: WebAuthnRp): ValStat<string>;
|
|
|
47
47
|
export declare function webAuthnLastError(): string;
|
|
48
48
|
/** Records a WebAuthn DOMException (or other throw) for {@link webAuthnLastError}. */
|
|
49
49
|
export declare function noteWebAuthnError(e: unknown): void;
|
|
50
|
+
/** Chromium: create/get rejected because the browsing context is unfocused. */
|
|
51
|
+
export declare function webAuthnNotFocused(e: unknown): boolean;
|
|
52
|
+
/** Best-effort `window.focus()` so Chromium's IsFocused check can pass. */
|
|
53
|
+
export declare function tryFocus(): void;
|
|
54
|
+
/** Wait until the document is visible, or `ms` elapses; then try `focus()`. */
|
|
55
|
+
export declare function whenVisible(ms?: number): Promise<void>;
|
|
56
|
+
/** `credentials.create` after the document is visible; one retry on NOT_FOCUSED. */
|
|
57
|
+
export declare function webAuthnCreate(opts: CredentialCreationOptions): Promise<Credential | null>;
|
|
58
|
+
/** `credentials.get` after the document is visible; one retry on NOT_FOCUSED. */
|
|
59
|
+
export declare function webAuthnGet(opts: CredentialRequestOptions): Promise<Credential | null>;
|
|
50
60
|
/** Success if WebAuthn credentials API is available in this environment. */
|
|
51
61
|
export declare function checkWebAuthn(): Status;
|
|
52
62
|
export declare function asPublicKeyCredential(cred: Credential | null): ValStat<PublicKeyCredential>;
|