summaryrefslogtreecommitdiffhomepage
path: root/packages/typescript-types
diff options
context:
space:
mode:
Diffstat (limited to 'packages/typescript-types')
-rw-r--r--packages/typescript-types/extract-dom-types.ts1
-rw-r--r--packages/typescript-types/src/index.ts6
2 files changed, 7 insertions, 0 deletions
diff --git a/packages/typescript-types/extract-dom-types.ts b/packages/typescript-types/extract-dom-types.ts
index bc16554..856cb63 100644
--- a/packages/typescript-types/extract-dom-types.ts
+++ b/packages/typescript-types/extract-dom-types.ts
@@ -22,6 +22,7 @@ const types = [
'AuthenticatorAttestationResponse',
'AuthenticatorTransport',
'AuthenticationExtensionsClientInputs',
+ 'AuthenticationExtensionsClientOutputs',
'AuthenticatorSelectionCriteria',
'COSEAlgorithmIdentifier',
'PublicKeyCredential',
diff --git a/packages/typescript-types/src/index.ts b/packages/typescript-types/src/index.ts
index 8ba2297..ab39bd6 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,6 +28,7 @@ export interface PublicKeyCredentialCreationOptionsJSON
user: PublicKeyCredentialUserEntityJSON;
challenge: Base64URLString;
excludeCredentials: PublicKeyCredentialDescriptorJSON[];
+ extensions?: AuthenticationExtensionsClientInputs;
}
/**
@@ -36,6 +39,7 @@ export interface PublicKeyCredentialRequestOptionsJSON
extends Omit<PublicKeyCredentialRequestOptions, 'challenge' | 'allowCredentials'> {
challenge: Base64URLString;
allowCredentials?: PublicKeyCredentialDescriptorJSON[];
+ extensions?: AuthenticationExtensionsClientInputs;
}
export interface PublicKeyCredentialDescriptorJSON
@@ -63,6 +67,7 @@ export interface AttestationCredentialJSON
extends Omit<AttestationCredential, 'response' | 'rawId' | 'getClientExtensionResults'> {
rawId: Base64URLString;
response: AuthenticatorAttestationResponseJSON;
+ clientExtensionResults: AuthenticationExtensionsClientOutputs;
transports?: AuthenticatorTransport[];
}
@@ -81,6 +86,7 @@ export interface AssertionCredentialJSON
extends Omit<AssertionCredential, 'response' | 'rawId' | 'getClientExtensionResults'> {
rawId: Base64URLString;
response: AuthenticatorAssertionResponseJSON;
+ clientExtensionResults: AuthenticationExtensionsClientOutputs;
}
/**