diff options
author | Matthew Miller <matthew@millerti.me> | 2021-02-05 10:16:51 -0800 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2021-02-05 10:16:51 -0800 |
commit | 58e2c0bce0e82da6466a543e284a8eceb39fe071 (patch) | |
tree | 591b2ff51194c441f83fda1ea4e926d159c1de14 | |
parent | 503850a0492e6768a60dbce18d038eb9cf76f5ea (diff) |
Update JSON types with DOM extension types
-rw-r--r-- | packages/typescript-types/src/index.ts | 10 |
1 files changed, 6 insertions, 4 deletions
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<PublicKeyCredentialRequestOptions, 'challenge' | 'allowCredentials'> { 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<AssertionCredential, 'response' | 'rawId' | 'getClientExtensionResults'> { rawId: Base64URLString; response: AuthenticatorAssertionResponseJSON; - clientExtensionResults?: CredentialRequestExtensionsOutputJSON; + clientExtensionResults?: AuthenticationExtensionsClientOutputs; } /** |