@simplewebauthn/typescript-types
Advanced tools
Comparing version 0.9.0 to 0.10.0
@@ -33,3 +33,3 @@ /** | ||
export interface AttestationCredential extends PublicKeyCredential { | ||
response: AuthenticatorAttestationResponse; | ||
response: AuthenticatorAttestationResponseFuture; | ||
} | ||
@@ -43,2 +43,3 @@ /** | ||
response: AuthenticatorAttestationResponseJSON; | ||
transports?: AuthenticatorTransport[]; | ||
} | ||
@@ -63,3 +64,3 @@ /** | ||
*/ | ||
export interface AuthenticatorAttestationResponseJSON extends Omit<AuthenticatorAttestationResponse, 'clientDataJSON' | 'attestationObject'> { | ||
export interface AuthenticatorAttestationResponseJSON extends Omit<AuthenticatorAttestationResponseFuture, 'clientDataJSON' | 'attestationObject'> { | ||
clientDataJSON: Base64URLString; | ||
@@ -90,1 +91,16 @@ attestationObject: Base64URLString; | ||
export declare type Base64URLString = string; | ||
/** | ||
* AuthenticatorAttestationResponse in TypeScript's DOM lib is outdated (up through v3.9.7). | ||
* Maintain an augmented version here so we can implement additional properties as the WebAuthn | ||
* spec evolves. | ||
* | ||
* See https://www.w3.org/TR/webauthn-2/#iface-authenticatorattestationresponse | ||
* | ||
* Properties marked optional are not supported in all browsers. | ||
*/ | ||
export interface AuthenticatorAttestationResponseFuture extends AuthenticatorAttestationResponse { | ||
getTransports?: () => AuthenticatorTransport[]; | ||
getAuthenticatorData?: () => ArrayBuffer; | ||
getPublicKey?: () => ArrayBuffer; | ||
getPublicKeyAlgorithm?: () => COSEAlgorithmIdentifier[]; | ||
} |
{ | ||
"name": "@simplewebauthn/typescript-types", | ||
"version": "0.9.0", | ||
"version": "0.10.0", | ||
"description": "TypeScript types used by the @simplewebauthn series of libraries", | ||
@@ -28,3 +28,3 @@ "main": "dist/index.js", | ||
], | ||
"gitHead": "c6c147f1a4dbbe21d643e02775a5b2e6957689c9" | ||
"gitHead": "30839edf84a46e15b1e3c45dbe5f6bb940dfc86a" | ||
} |
6921
104