From 58e2c0bce0e82da6466a543e284a8eceb39fe071 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Fri, 5 Feb 2021 10:16:51 -0800 Subject: Update JSON types with DOM extension types --- packages/typescript-types/src/index.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'packages/typescript-types') diff --git a/packages/typescript-types/src/index.ts b/packages/typescript-types/src/index.ts index 25d4203..9d8a856 100644 --- a/packages/typescript-types/src/index.ts +++ b/packages/typescript-types/src/index.ts @@ -13,6 +13,8 @@ import type { PublicKeyCredentialDescriptor, PublicKeyCredentialRequestOptions, PublicKeyCredentialUserEntity, + AuthenticationExtensionsClientInputs, + AuthenticationExtensionsClientOutputs, } from './dom'; export * from './dom'; @@ -26,7 +28,7 @@ export interface PublicKeyCredentialCreationOptionsJSON user: PublicKeyCredentialUserEntityJSON; challenge: Base64URLString; excludeCredentials: PublicKeyCredentialDescriptorJSON[]; - extensions?: CredentialCreationExtensionsInputJSON; + extensions?: AuthenticationExtensionsClientInputs; } /** @@ -37,7 +39,7 @@ export interface PublicKeyCredentialRequestOptionsJSON extends Omit { challenge: Base64URLString; allowCredentials?: PublicKeyCredentialDescriptorJSON[]; - extensions?: CredentialRequestExtensionsInputJSON; + extensions?: AuthenticationExtensionsClientInputs; } export interface PublicKeyCredentialDescriptorJSON @@ -66,7 +68,7 @@ export interface AttestationCredentialJSON rawId: Base64URLString; response: AuthenticatorAttestationResponseJSON; transports?: AuthenticatorTransport[]; - clientExtensionResults?: CredentialCreationExtensionsOutputJSON; + clientExtensionResults?: AuthenticationExtensionsClientOutputs; } /** @@ -84,7 +86,7 @@ export interface AssertionCredentialJSON extends Omit { rawId: Base64URLString; response: AuthenticatorAssertionResponseJSON; - clientExtensionResults?: CredentialRequestExtensionsOutputJSON; + clientExtensionResults?: AuthenticationExtensionsClientOutputs; } /** -- cgit v1.2.3