summaryrefslogtreecommitdiffhomepage
path: root/packages/typescript-types
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2021-02-06 16:01:48 -0800
committerGitHub <noreply@github.com>2021-02-06 16:01:48 -0800
commitabfb8a510069f4231d95bc594bd2e3b16a7bac5c (patch)
tree9789f61491ba38b7703d5fdef25ad3efb0362bee /packages/typescript-types
parentc09135e9b4166f8aa65a3396f0cd240704c2546b (diff)
parent6d4de49262bc9b655d8033af53b047b6caa23ec2 (diff)
Merge pull request #94 from MasterKale/feature/browser-extensions-support
feature/browser-extensions-support
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;
}
/**