@simplewebauthn/typescript-types
Advanced tools
Comparing version 5.2.1 to 5.3.0
@@ -6,3 +6,3 @@ /** | ||
/// <reference types="node" /> | ||
import type { AuthenticatorAssertionResponse, AuthenticatorAttestationResponse, COSEAlgorithmIdentifier, PublicKeyCredential, PublicKeyCredentialCreationOptions, PublicKeyCredentialDescriptor, PublicKeyCredentialRequestOptions, PublicKeyCredentialUserEntity, AuthenticationExtensionsClientInputs, AuthenticationExtensionsClientOutputs } from './dom'; | ||
import type { AuthenticatorAssertionResponse, AuthenticatorAttestationResponse, COSEAlgorithmIdentifier, PublicKeyCredential, PublicKeyCredentialCreationOptions, PublicKeyCredentialDescriptor, PublicKeyCredentialRequestOptions, PublicKeyCredentialUserEntity, AuthenticationExtensionsClientInputs, AuthenticationExtensionsClientOutputs, AuthenticatorAttachment } from './dom'; | ||
export * from './dom'; | ||
@@ -38,3 +38,3 @@ /** | ||
*/ | ||
export interface RegistrationCredential extends PublicKeyCredential { | ||
export interface RegistrationCredential extends PublicKeyCredentialFuture { | ||
response: AuthenticatorAttestationResponseFuture; | ||
@@ -55,3 +55,3 @@ } | ||
*/ | ||
export interface AuthenticationCredential extends PublicKeyCredential { | ||
export interface AuthenticationCredential extends PublicKeyCredentialFuture { | ||
response: AuthenticatorAssertionResponse; | ||
@@ -119,3 +119,3 @@ } | ||
*/ | ||
export declare type AuthenticatorTransportFuture = "ble" | "internal" | "nfc" | "usb" | "cable"; | ||
export declare type AuthenticatorTransportFuture = "ble" | "internal" | "nfc" | "usb" | "cable" | "hybrid"; | ||
/** | ||
@@ -130,2 +130,9 @@ * A super class of TypeScript's `PublicKeyCredentialDescriptor` that knows about the latest | ||
/** | ||
* A super class of TypeScript's `PublicKeyCredential` that knows about upcoming WebAuthn methods | ||
*/ | ||
export interface PublicKeyCredentialFuture extends PublicKeyCredential { | ||
isConditionalMediationAvailable?(): Promise<boolean>; | ||
authenticatorAttachment?: AuthenticatorAttachment; | ||
} | ||
/** | ||
* The two types of credentials as defined by bit 3 ("Backup Eligibility") in authenticator data: | ||
@@ -132,0 +139,0 @@ * - `"singleDevice"` credentials will never be backed up |
{ | ||
"name": "@simplewebauthn/typescript-types", | ||
"version": "5.2.1", | ||
"version": "5.3.0", | ||
"description": "TypeScript types used by the @simplewebauthn series of libraries", | ||
@@ -29,3 +29,3 @@ "main": "dist/index.js", | ||
], | ||
"gitHead": "7a51b18bd724795f8f891207dda3fd8f04b915e9" | ||
"gitHead": "ad8b71fb26330f123155ec8467dd8f2ffedc0986" | ||
} |
15808
308