@simplewebauthn/server 13.3.3 → 14.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -4
- package/esm/authentication/generateAuthenticationOptions.d.ts +2 -2
- package/esm/authentication/generateAuthenticationOptions.d.ts.map +1 -1
- package/esm/authentication/verifyAuthenticationResponse.d.ts +1 -0
- package/esm/authentication/verifyAuthenticationResponse.d.ts.map +1 -1
- package/esm/authentication/verifyAuthenticationResponse.js +52 -2
- package/esm/errors/index.d.ts +17 -0
- package/esm/errors/index.d.ts.map +1 -0
- package/esm/errors/index.js +24 -0
- package/esm/helpers/convertX509PublicKeyToCOSE.d.ts +1 -1
- package/esm/helpers/convertX509PublicKeyToCOSE.d.ts.map +1 -1
- package/esm/helpers/convertX509PublicKeyToCOSE.js +22 -6
- package/esm/helpers/cose.d.ts +19 -2
- package/esm/helpers/cose.d.ts.map +1 -1
- package/esm/helpers/cose.js +15 -0
- package/esm/helpers/decodeClientDataJSON.d.ts +1 -0
- package/esm/helpers/decodeClientDataJSON.d.ts.map +1 -1
- package/esm/helpers/index.d.ts +2 -0
- package/esm/helpers/index.d.ts.map +1 -1
- package/esm/helpers/index.js +2 -0
- package/esm/helpers/isCertRevoked.d.ts +1 -0
- package/esm/helpers/isCertRevoked.d.ts.map +1 -1
- package/esm/helpers/isCertRevoked.js +1 -0
- package/esm/helpers/iso/isoCrypto/digest.js +2 -2
- package/esm/helpers/iso/isoCrypto/getWebCrypto.d.ts.map +1 -1
- package/esm/helpers/iso/isoCrypto/getWebCrypto.js +12 -0
- package/esm/helpers/iso/isoCrypto/importJWKKey.d.ts +9 -0
- package/esm/helpers/iso/isoCrypto/importJWKKey.d.ts.map +1 -0
- package/esm/helpers/iso/isoCrypto/{importKey.js → importJWKKey.js} +6 -4
- package/esm/helpers/iso/isoCrypto/mapCoseAlgToWebCryptoHashAlgName.d.ts +10 -0
- package/esm/helpers/iso/isoCrypto/mapCoseAlgToWebCryptoHashAlgName.d.ts.map +1 -0
- package/esm/helpers/iso/isoCrypto/{mapCoseAlgToWebCryptoAlg.js → mapCoseAlgToWebCryptoHashAlgName.js} +6 -3
- package/esm/helpers/iso/isoCrypto/mapCoseAlgToWebCryptoKeyAlgName.d.ts +4 -1
- package/esm/helpers/iso/isoCrypto/mapCoseAlgToWebCryptoKeyAlgName.d.ts.map +1 -1
- package/esm/helpers/iso/isoCrypto/mapCoseAlgToWebCryptoKeyAlgName.js +15 -0
- package/esm/helpers/iso/isoCrypto/runtimeSupportsWebCryptoKeyAlg.d.ts +7 -0
- package/esm/helpers/iso/isoCrypto/runtimeSupportsWebCryptoKeyAlg.d.ts.map +1 -0
- package/esm/helpers/iso/isoCrypto/runtimeSupportsWebCryptoKeyAlg.js +16 -0
- package/esm/helpers/iso/isoCrypto/structs.d.ts +1 -1
- package/esm/helpers/iso/isoCrypto/structs.d.ts.map +1 -1
- package/esm/helpers/iso/isoCrypto/verify.d.ts.map +1 -1
- package/esm/helpers/iso/isoCrypto/verify.js +5 -1
- package/esm/helpers/iso/isoCrypto/verifyAKP.d.ts +9 -0
- package/esm/helpers/iso/isoCrypto/verifyAKP.d.ts.map +1 -0
- package/esm/helpers/iso/isoCrypto/verifyAKP.js +48 -0
- package/esm/helpers/iso/isoCrypto/verifyEC2.d.ts.map +1 -1
- package/esm/helpers/iso/isoCrypto/verifyEC2.js +5 -8
- package/esm/helpers/iso/isoCrypto/verifyOKP.d.ts.map +1 -1
- package/esm/helpers/iso/isoCrypto/verifyOKP.js +2 -5
- package/esm/helpers/iso/isoCrypto/verifyRSA.d.ts.map +1 -1
- package/esm/helpers/iso/isoCrypto/verifyRSA.js +5 -8
- package/esm/helpers/logging.d.ts +28 -10
- package/esm/helpers/logging.d.ts.map +1 -1
- package/esm/helpers/logging.js +27 -16
- package/esm/helpers/mapX509SignatureAlgToCOSEAlg.d.ts +0 -3
- package/esm/helpers/mapX509SignatureAlgToCOSEAlg.d.ts.map +1 -1
- package/esm/helpers/mapX509SignatureAlgToCOSEAlg.js +19 -10
- package/esm/helpers/validateCertificatePath.d.ts +1 -0
- package/esm/helpers/validateCertificatePath.d.ts.map +1 -1
- package/esm/helpers/validateCertificatePath.js +26 -7
- package/esm/index.d.ts +1 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -0
- package/esm/registration/generateRegistrationOptions.d.ts +10 -8
- package/esm/registration/generateRegistrationOptions.d.ts.map +1 -1
- package/esm/registration/generateRegistrationOptions.js +11 -29
- package/esm/registration/verifications/tpm/constants.d.ts +1 -2
- package/esm/registration/verifications/tpm/constants.d.ts.map +1 -1
- package/esm/registration/verifications/tpm/constants.js +1 -2
- package/esm/registration/verifications/tpm/isValidTPMManufacturerID.d.ts +3 -0
- package/esm/registration/verifications/tpm/isValidTPMManufacturerID.d.ts.map +1 -0
- package/esm/registration/verifications/tpm/isValidTPMManufacturerID.js +6 -0
- package/esm/registration/verifications/tpm/verifyAttestationTPM.d.ts.map +1 -1
- package/esm/registration/verifications/tpm/verifyAttestationTPM.js +3 -2
- package/esm/registration/verifications/verifyAttestationPacked.js +1 -1
- package/esm/registration/verifyRegistrationResponse.d.ts +3 -3
- package/esm/registration/verifyRegistrationResponse.d.ts.map +1 -1
- package/esm/registration/verifyRegistrationResponse.js +22 -11
- package/esm/services/metadataService.d.ts +4 -0
- package/esm/services/metadataService.d.ts.map +1 -1
- package/esm/services/metadataService.js +16 -10
- package/esm/services/settingsService.d.ts +4 -0
- package/esm/services/settingsService.d.ts.map +1 -1
- package/esm/services/settingsService.js +12 -0
- package/esm/types/dom.d.ts +236 -3
- package/esm/types/dom.d.ts.map +1 -1
- package/esm/types/index.d.ts +158 -44
- package/esm/types/index.d.ts.map +1 -1
- package/package.json +4 -2
- package/script/authentication/generateAuthenticationOptions.d.ts +2 -2
- package/script/authentication/generateAuthenticationOptions.d.ts.map +1 -1
- package/script/authentication/verifyAuthenticationResponse.d.ts +1 -0
- package/script/authentication/verifyAuthenticationResponse.d.ts.map +1 -1
- package/script/authentication/verifyAuthenticationResponse.js +52 -2
- package/script/errors/index.d.ts +17 -0
- package/script/errors/index.d.ts.map +1 -0
- package/script/errors/index.js +29 -0
- package/script/helpers/convertX509PublicKeyToCOSE.d.ts +1 -1
- package/script/helpers/convertX509PublicKeyToCOSE.d.ts.map +1 -1
- package/script/helpers/convertX509PublicKeyToCOSE.js +21 -5
- package/script/helpers/cose.d.ts +19 -2
- package/script/helpers/cose.d.ts.map +1 -1
- package/script/helpers/cose.js +17 -0
- package/script/helpers/decodeClientDataJSON.d.ts +1 -0
- package/script/helpers/decodeClientDataJSON.d.ts.map +1 -1
- package/script/helpers/index.d.ts +2 -0
- package/script/helpers/index.d.ts.map +1 -1
- package/script/helpers/index.js +4 -1
- package/script/helpers/isCertRevoked.d.ts +1 -0
- package/script/helpers/isCertRevoked.d.ts.map +1 -1
- package/script/helpers/isCertRevoked.js +1 -0
- package/script/helpers/iso/isoCrypto/digest.js +2 -2
- package/script/helpers/iso/isoCrypto/getWebCrypto.d.ts.map +1 -1
- package/script/helpers/iso/isoCrypto/getWebCrypto.js +12 -0
- package/script/helpers/iso/isoCrypto/importJWKKey.d.ts +9 -0
- package/script/helpers/iso/isoCrypto/importJWKKey.d.ts.map +1 -0
- package/script/helpers/iso/isoCrypto/{importKey.js → importJWKKey.js} +7 -5
- package/script/helpers/iso/isoCrypto/mapCoseAlgToWebCryptoHashAlgName.d.ts +10 -0
- package/script/helpers/iso/isoCrypto/mapCoseAlgToWebCryptoHashAlgName.d.ts.map +1 -0
- package/script/helpers/iso/isoCrypto/{mapCoseAlgToWebCryptoAlg.js → mapCoseAlgToWebCryptoHashAlgName.js} +7 -4
- package/script/helpers/iso/isoCrypto/mapCoseAlgToWebCryptoKeyAlgName.d.ts +4 -1
- package/script/helpers/iso/isoCrypto/mapCoseAlgToWebCryptoKeyAlgName.d.ts.map +1 -1
- package/script/helpers/iso/isoCrypto/mapCoseAlgToWebCryptoKeyAlgName.js +15 -0
- package/script/helpers/iso/isoCrypto/runtimeSupportsWebCryptoKeyAlg.d.ts +7 -0
- package/script/helpers/iso/isoCrypto/runtimeSupportsWebCryptoKeyAlg.d.ts.map +1 -0
- package/script/helpers/iso/isoCrypto/runtimeSupportsWebCryptoKeyAlg.js +19 -0
- package/script/helpers/iso/isoCrypto/structs.d.ts +1 -1
- package/script/helpers/iso/isoCrypto/structs.d.ts.map +1 -1
- package/script/helpers/iso/isoCrypto/verify.d.ts.map +1 -1
- package/script/helpers/iso/isoCrypto/verify.js +4 -0
- package/script/helpers/iso/isoCrypto/verifyAKP.d.ts +9 -0
- package/script/helpers/iso/isoCrypto/verifyAKP.d.ts.map +1 -0
- package/script/helpers/iso/isoCrypto/verifyAKP.js +51 -0
- package/script/helpers/iso/isoCrypto/verifyEC2.d.ts.map +1 -1
- package/script/helpers/iso/isoCrypto/verifyEC2.js +5 -8
- package/script/helpers/iso/isoCrypto/verifyOKP.d.ts.map +1 -1
- package/script/helpers/iso/isoCrypto/verifyOKP.js +2 -5
- package/script/helpers/iso/isoCrypto/verifyRSA.d.ts.map +1 -1
- package/script/helpers/iso/isoCrypto/verifyRSA.js +5 -8
- package/script/helpers/logging.d.ts +28 -10
- package/script/helpers/logging.d.ts.map +1 -1
- package/script/helpers/logging.js +29 -17
- package/script/helpers/mapX509SignatureAlgToCOSEAlg.d.ts +0 -3
- package/script/helpers/mapX509SignatureAlgToCOSEAlg.d.ts.map +1 -1
- package/script/helpers/mapX509SignatureAlgToCOSEAlg.js +19 -10
- package/script/helpers/validateCertificatePath.d.ts +1 -0
- package/script/helpers/validateCertificatePath.d.ts.map +1 -1
- package/script/helpers/validateCertificatePath.js +26 -7
- package/script/index.d.ts +1 -0
- package/script/index.d.ts.map +1 -1
- package/script/index.js +1 -0
- package/script/registration/generateRegistrationOptions.d.ts +10 -8
- package/script/registration/generateRegistrationOptions.d.ts.map +1 -1
- package/script/registration/generateRegistrationOptions.js +13 -31
- package/script/registration/verifications/tpm/constants.d.ts +1 -2
- package/script/registration/verifications/tpm/constants.d.ts.map +1 -1
- package/script/registration/verifications/tpm/constants.js +1 -2
- package/script/registration/verifications/tpm/isValidTPMManufacturerID.d.ts +3 -0
- package/script/registration/verifications/tpm/isValidTPMManufacturerID.d.ts.map +1 -0
- package/script/registration/verifications/tpm/isValidTPMManufacturerID.js +9 -0
- package/script/registration/verifications/tpm/verifyAttestationTPM.d.ts.map +1 -1
- package/script/registration/verifications/tpm/verifyAttestationTPM.js +2 -1
- package/script/registration/verifications/verifyAttestationPacked.js +1 -1
- package/script/registration/verifyRegistrationResponse.d.ts +3 -3
- package/script/registration/verifyRegistrationResponse.d.ts.map +1 -1
- package/script/registration/verifyRegistrationResponse.js +24 -13
- package/script/services/metadataService.d.ts +4 -0
- package/script/services/metadataService.d.ts.map +1 -1
- package/script/services/metadataService.js +15 -9
- package/script/services/settingsService.d.ts +4 -0
- package/script/services/settingsService.d.ts.map +1 -1
- package/script/services/settingsService.js +12 -0
- package/script/types/dom.d.ts +236 -3
- package/script/types/dom.d.ts.map +1 -1
- package/script/types/index.d.ts +158 -44
- package/script/types/index.d.ts.map +1 -1
- package/esm/helpers/iso/isoCrypto/importKey.d.ts +0 -5
- package/esm/helpers/iso/isoCrypto/importKey.d.ts.map +0 -1
- package/esm/helpers/iso/isoCrypto/mapCoseAlgToWebCryptoAlg.d.ts +0 -7
- package/esm/helpers/iso/isoCrypto/mapCoseAlgToWebCryptoAlg.d.ts.map +0 -1
- package/script/helpers/iso/isoCrypto/importKey.d.ts +0 -5
- package/script/helpers/iso/isoCrypto/importKey.d.ts.map +0 -1
- package/script/helpers/iso/isoCrypto/mapCoseAlgToWebCryptoAlg.d.ts +0 -7
- package/script/helpers/iso/isoCrypto/mapCoseAlgToWebCryptoAlg.d.ts.map +0 -1
package/esm/types/dom.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* deno task codegen:types
|
|
8
8
|
*/
|
|
9
9
|
/**
|
|
10
|
-
* Generated from typescript@5.
|
|
10
|
+
* Generated from typescript@5.8.3
|
|
11
11
|
* To regenerate, run the following command from the package root:
|
|
12
12
|
* deno task extract-dom-types
|
|
13
13
|
*/
|
|
@@ -46,11 +46,13 @@ export interface AuthenticationExtensionsClientInputs {
|
|
|
46
46
|
credProps?: boolean;
|
|
47
47
|
hmacCreateSecret?: boolean;
|
|
48
48
|
minPinLength?: boolean;
|
|
49
|
+
prf?: AuthenticationExtensionsPRFInputs;
|
|
49
50
|
}
|
|
50
51
|
export interface AuthenticationExtensionsClientOutputs {
|
|
51
52
|
appid?: boolean;
|
|
52
53
|
credProps?: CredentialPropertiesOutput;
|
|
53
54
|
hmacCreateSecret?: boolean;
|
|
55
|
+
prf?: AuthenticationExtensionsPRFOutputs;
|
|
54
56
|
}
|
|
55
57
|
export interface AuthenticatorSelectionCriteria {
|
|
56
58
|
authenticatorAttachment?: AuthenticatorAttachment;
|
|
@@ -58,6 +60,15 @@ export interface AuthenticatorSelectionCriteria {
|
|
|
58
60
|
residentKey?: ResidentKeyRequirement;
|
|
59
61
|
userVerification?: UserVerificationRequirement;
|
|
60
62
|
}
|
|
63
|
+
export interface CredentialCreationOptions {
|
|
64
|
+
publicKey?: PublicKeyCredentialCreationOptions;
|
|
65
|
+
signal?: AbortSignal;
|
|
66
|
+
}
|
|
67
|
+
export interface CredentialRequestOptions {
|
|
68
|
+
mediation?: CredentialMediationRequirement;
|
|
69
|
+
publicKey?: PublicKeyCredentialRequestOptions;
|
|
70
|
+
signal?: AbortSignal;
|
|
71
|
+
}
|
|
61
72
|
/**
|
|
62
73
|
* Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.
|
|
63
74
|
*
|
|
@@ -93,6 +104,8 @@ export interface PublicKeyCredential extends Credential {
|
|
|
93
104
|
readonly response: AuthenticatorResponse;
|
|
94
105
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/getClientExtensionResults) */
|
|
95
106
|
getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
|
|
107
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/toJSON) */
|
|
108
|
+
toJSON(): PublicKeyCredentialJSON;
|
|
96
109
|
}
|
|
97
110
|
export interface PublicKeyCredentialCreationOptions {
|
|
98
111
|
attestation?: AttestationConveyancePreference;
|
|
@@ -110,6 +123,11 @@ export interface PublicKeyCredentialDescriptor {
|
|
|
110
123
|
transports?: AuthenticatorTransport[];
|
|
111
124
|
type: PublicKeyCredentialType;
|
|
112
125
|
}
|
|
126
|
+
export interface PublicKeyCredentialDescriptorJSON {
|
|
127
|
+
id: Base64URLString;
|
|
128
|
+
transports?: string[];
|
|
129
|
+
type: string;
|
|
130
|
+
}
|
|
113
131
|
export interface PublicKeyCredentialParameters {
|
|
114
132
|
alg: COSEAlgorithmIdentifier;
|
|
115
133
|
type: PublicKeyCredentialType;
|
|
@@ -135,9 +153,40 @@ export interface AuthenticatorResponse {
|
|
|
135
153
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse/clientDataJSON) */
|
|
136
154
|
readonly clientDataJSON: ArrayBuffer;
|
|
137
155
|
}
|
|
156
|
+
export interface AuthenticationExtensionsPRFInputs {
|
|
157
|
+
eval?: AuthenticationExtensionsPRFValues;
|
|
158
|
+
evalByCredential?: Record<string, AuthenticationExtensionsPRFValues>;
|
|
159
|
+
}
|
|
138
160
|
export interface CredentialPropertiesOutput {
|
|
139
161
|
rk?: boolean;
|
|
140
162
|
}
|
|
163
|
+
export interface AuthenticationExtensionsPRFOutputs {
|
|
164
|
+
enabled?: boolean;
|
|
165
|
+
results?: AuthenticationExtensionsPRFValues;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object.
|
|
169
|
+
*
|
|
170
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal)
|
|
171
|
+
*/
|
|
172
|
+
export interface AbortSignal extends EventTarget {
|
|
173
|
+
/**
|
|
174
|
+
* Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
|
|
175
|
+
*
|
|
176
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted)
|
|
177
|
+
*/
|
|
178
|
+
readonly aborted: boolean;
|
|
179
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */
|
|
180
|
+
onabort: ((this: AbortSignal, ev: Event) => any) | null;
|
|
181
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) */
|
|
182
|
+
readonly reason: any;
|
|
183
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) */
|
|
184
|
+
throwIfAborted(): void;
|
|
185
|
+
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
186
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
187
|
+
removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
188
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
189
|
+
}
|
|
141
190
|
/**
|
|
142
191
|
* This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).
|
|
143
192
|
* Available only in secure contexts.
|
|
@@ -148,7 +197,7 @@ export interface SubtleCrypto {
|
|
|
148
197
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt) */
|
|
149
198
|
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
150
199
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) */
|
|
151
|
-
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length
|
|
200
|
+
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length?: number | null): Promise<ArrayBuffer>;
|
|
152
201
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */
|
|
153
202
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
154
203
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest) */
|
|
@@ -160,7 +209,9 @@ export interface SubtleCrypto {
|
|
|
160
209
|
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
|
|
161
210
|
exportKey(format: KeyFormat, key: CryptoKey): Promise<ArrayBuffer | JsonWebKey>;
|
|
162
211
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
|
|
163
|
-
generateKey(algorithm: "Ed25519"
|
|
212
|
+
generateKey(algorithm: "Ed25519" | {
|
|
213
|
+
name: "Ed25519";
|
|
214
|
+
}, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
|
164
215
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
165
216
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
166
217
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
|
|
@@ -193,6 +244,177 @@ export interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
|
|
|
193
244
|
export interface PublicKeyCredentialEntity {
|
|
194
245
|
name: string;
|
|
195
246
|
}
|
|
247
|
+
export interface AuthenticationExtensionsPRFValues {
|
|
248
|
+
first: BufferSource;
|
|
249
|
+
second?: BufferSource;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them.
|
|
253
|
+
*
|
|
254
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget)
|
|
255
|
+
*/
|
|
256
|
+
export interface EventTarget {
|
|
257
|
+
/**
|
|
258
|
+
* Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
|
|
259
|
+
*
|
|
260
|
+
* The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
|
|
261
|
+
*
|
|
262
|
+
* When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
|
|
263
|
+
*
|
|
264
|
+
* When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
|
|
265
|
+
*
|
|
266
|
+
* When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
|
|
267
|
+
*
|
|
268
|
+
* If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
|
|
269
|
+
*
|
|
270
|
+
* The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
|
|
271
|
+
*
|
|
272
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
|
|
273
|
+
*/
|
|
274
|
+
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
|
|
275
|
+
/**
|
|
276
|
+
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
|
|
277
|
+
*
|
|
278
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
|
|
279
|
+
*/
|
|
280
|
+
dispatchEvent(event: Event): boolean;
|
|
281
|
+
/**
|
|
282
|
+
* Removes the event listener in target's event listener list with the same type, callback, and options.
|
|
283
|
+
*
|
|
284
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
|
|
285
|
+
*/
|
|
286
|
+
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* An event which takes place in the DOM.
|
|
290
|
+
*
|
|
291
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event)
|
|
292
|
+
*/
|
|
293
|
+
export interface Event {
|
|
294
|
+
/**
|
|
295
|
+
* Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.
|
|
296
|
+
*
|
|
297
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles)
|
|
298
|
+
*/
|
|
299
|
+
readonly bubbles: boolean;
|
|
300
|
+
/**
|
|
301
|
+
* @deprecated
|
|
302
|
+
*
|
|
303
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)
|
|
304
|
+
*/
|
|
305
|
+
cancelBubble: boolean;
|
|
306
|
+
/**
|
|
307
|
+
* Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.
|
|
308
|
+
*
|
|
309
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable)
|
|
310
|
+
*/
|
|
311
|
+
readonly cancelable: boolean;
|
|
312
|
+
/**
|
|
313
|
+
* Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.
|
|
314
|
+
*
|
|
315
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed)
|
|
316
|
+
*/
|
|
317
|
+
readonly composed: boolean;
|
|
318
|
+
/**
|
|
319
|
+
* Returns the object whose event listener's callback is currently being invoked.
|
|
320
|
+
*
|
|
321
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget)
|
|
322
|
+
*/
|
|
323
|
+
readonly currentTarget: EventTarget | null;
|
|
324
|
+
/**
|
|
325
|
+
* Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
|
|
326
|
+
*
|
|
327
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented)
|
|
328
|
+
*/
|
|
329
|
+
readonly defaultPrevented: boolean;
|
|
330
|
+
/**
|
|
331
|
+
* Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
|
|
332
|
+
*
|
|
333
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)
|
|
334
|
+
*/
|
|
335
|
+
readonly eventPhase: number;
|
|
336
|
+
/**
|
|
337
|
+
* Returns true if event was dispatched by the user agent, and false otherwise.
|
|
338
|
+
*
|
|
339
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
|
|
340
|
+
*/
|
|
341
|
+
readonly isTrusted: boolean;
|
|
342
|
+
/**
|
|
343
|
+
* @deprecated
|
|
344
|
+
*
|
|
345
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)
|
|
346
|
+
*/
|
|
347
|
+
returnValue: boolean;
|
|
348
|
+
/**
|
|
349
|
+
* @deprecated
|
|
350
|
+
*
|
|
351
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement)
|
|
352
|
+
*/
|
|
353
|
+
readonly srcElement: EventTarget | null;
|
|
354
|
+
/**
|
|
355
|
+
* Returns the object to which event is dispatched (its target).
|
|
356
|
+
*
|
|
357
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)
|
|
358
|
+
*/
|
|
359
|
+
readonly target: EventTarget | null;
|
|
360
|
+
/**
|
|
361
|
+
* Returns the event's timestamp as the number of milliseconds measured relative to the time origin.
|
|
362
|
+
*
|
|
363
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp)
|
|
364
|
+
*/
|
|
365
|
+
readonly timeStamp: DOMHighResTimeStamp;
|
|
366
|
+
/**
|
|
367
|
+
* Returns the type of event, e.g. "click", "hashchange", or "submit".
|
|
368
|
+
*
|
|
369
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type)
|
|
370
|
+
*/
|
|
371
|
+
readonly type: string;
|
|
372
|
+
readonly NONE: 0;
|
|
373
|
+
readonly CAPTURING_PHASE: 1;
|
|
374
|
+
readonly AT_TARGET: 2;
|
|
375
|
+
readonly BUBBLING_PHASE: 3;
|
|
376
|
+
/**
|
|
377
|
+
* Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.
|
|
378
|
+
*
|
|
379
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath)
|
|
380
|
+
*/
|
|
381
|
+
composedPath(): EventTarget[];
|
|
382
|
+
/**
|
|
383
|
+
* @deprecated
|
|
384
|
+
*
|
|
385
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent)
|
|
386
|
+
*/
|
|
387
|
+
initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
|
|
388
|
+
/**
|
|
389
|
+
* If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.
|
|
390
|
+
*
|
|
391
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)
|
|
392
|
+
*/
|
|
393
|
+
preventDefault(): void;
|
|
394
|
+
/**
|
|
395
|
+
* Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.
|
|
396
|
+
*
|
|
397
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)
|
|
398
|
+
*/
|
|
399
|
+
stopImmediatePropagation(): void;
|
|
400
|
+
/**
|
|
401
|
+
* When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
|
|
402
|
+
*
|
|
403
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation)
|
|
404
|
+
*/
|
|
405
|
+
stopPropagation(): void;
|
|
406
|
+
}
|
|
407
|
+
export interface AbortSignalEventMap {
|
|
408
|
+
"abort": Event;
|
|
409
|
+
}
|
|
410
|
+
export interface AddEventListenerOptions extends EventListenerOptions {
|
|
411
|
+
once?: boolean;
|
|
412
|
+
passive?: boolean;
|
|
413
|
+
signal?: AbortSignal;
|
|
414
|
+
}
|
|
415
|
+
export interface EventListenerOptions {
|
|
416
|
+
capture?: boolean;
|
|
417
|
+
}
|
|
196
418
|
export interface RsaOaepParams extends Algorithm {
|
|
197
419
|
label?: BufferSource;
|
|
198
420
|
}
|
|
@@ -296,6 +518,12 @@ export interface RsaPssParams extends Algorithm {
|
|
|
296
518
|
export interface EcdsaParams extends Algorithm {
|
|
297
519
|
hash: HashAlgorithmIdentifier;
|
|
298
520
|
}
|
|
521
|
+
export interface EventListener {
|
|
522
|
+
(evt: Event): void;
|
|
523
|
+
}
|
|
524
|
+
export interface EventListenerObject {
|
|
525
|
+
handleEvent(object: Event): void;
|
|
526
|
+
}
|
|
299
527
|
export interface Algorithm {
|
|
300
528
|
name: string;
|
|
301
529
|
}
|
|
@@ -313,15 +541,20 @@ export interface RsaKeyGenParams extends Algorithm {
|
|
|
313
541
|
}
|
|
314
542
|
export type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none";
|
|
315
543
|
export type AuthenticatorTransport = "ble" | "hybrid" | "internal" | "nfc" | "usb";
|
|
544
|
+
export type Base64URLString = string;
|
|
316
545
|
export type COSEAlgorithmIdentifier = number;
|
|
317
546
|
export type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
|
|
318
547
|
export type UserVerificationRequirement = "discouraged" | "preferred" | "required";
|
|
319
548
|
export type AuthenticatorAttachment = "cross-platform" | "platform";
|
|
549
|
+
export type CredentialMediationRequirement = "conditional" | "optional" | "required" | "silent";
|
|
550
|
+
export type PublicKeyCredentialJSON = any;
|
|
320
551
|
export type BufferSource = ArrayBufferView | ArrayBuffer;
|
|
321
552
|
export type PublicKeyCredentialType = "public-key";
|
|
553
|
+
export type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
|
322
554
|
export type AlgorithmIdentifier = Algorithm | string;
|
|
323
555
|
export type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
|
|
324
556
|
export type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
|
|
557
|
+
export type DOMHighResTimeStamp = number;
|
|
325
558
|
export type KeyType = "private" | "public" | "secret";
|
|
326
559
|
export type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
327
560
|
export type NamedCurve = string;
|
package/esm/types/dom.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/types/dom.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH;;;;GAIG;AACH;;;;GAIG;AACH,MAAM,WAAW,8BAA+B,SAAQ,qBAAqB;IACzE,mHAAmH;IACnH,QAAQ,CAAC,iBAAiB,EAAE,WAAW,CAAC;IACxC,2GAA2G;IAC3G,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC;IAChC,4GAA4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GAAG,MAAM,CAAC;AAC7C,MAAM,MAAM,sBAAsB,GAAG,aAAa,GAAG,WAAW,GAAG,UAAU,CAAC;AAC9E,MAAM,MAAM,2BAA2B,GAAG,aAAa,GAAG,WAAW,GAAG,UAAU,CAAC;AACnF,MAAM,MAAM,uBAAuB,GAAG,gBAAgB,GAAG,UAAU,CAAC;AACpE,MAAM,MAAM,8BAA8B,GAAG,aAAa,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC;AAChG,MAAM,MAAM,uBAAuB,GAAG,GAAG,CAAC;AAC1C,MAAM,MAAM,YAAY,GAAG,eAAe,GAAG,WAAW,CAAC;AACzD,MAAM,MAAM,uBAAuB,GAAG,YAAY,CAAC;AACnD,MAAM,MAAM,kCAAkC,GAAG,aAAa,GAAG,mBAAmB,CAAC;AACrF,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,MAAM,CAAC;AACrD,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC;AACxH,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;AACzD,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC;AACzC,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AACtD,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,CAAC;AAC1D,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAChC,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC"}
|
package/esm/types/index.d.ts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*
|
|
7
7
|
* deno task codegen:types
|
|
8
8
|
*/
|
|
9
|
-
import type { AttestationConveyancePreference, AuthenticationExtensionsClientInputs, AuthenticationExtensionsClientOutputs, AuthenticatorAssertionResponse, AuthenticatorAttachment, AuthenticatorAttestationResponse, AuthenticatorSelectionCriteria, COSEAlgorithmIdentifier, PublicKeyCredential, PublicKeyCredentialCreationOptions,
|
|
10
|
-
export type { AttestationConveyancePreference, AuthenticationExtensionsClientInputs, AuthenticationExtensionsClientOutputs, AuthenticatorAssertionResponse, AuthenticatorAttachment, AuthenticatorAttestationResponse, AuthenticatorSelectionCriteria, AuthenticatorTransport, COSEAlgorithmIdentifier, Crypto, PublicKeyCredential, PublicKeyCredentialCreationOptions, PublicKeyCredentialDescriptor, PublicKeyCredentialParameters, PublicKeyCredentialRequestOptions, PublicKeyCredentialRpEntity, PublicKeyCredentialType, PublicKeyCredentialUserEntity, ResidentKeyRequirement, UserVerificationRequirement, } from './dom.js';
|
|
9
|
+
import type { AlgorithmIdentifier, AttestationConveyancePreference, AuthenticationExtensionsClientInputs, AuthenticationExtensionsClientOutputs, AuthenticatorAssertionResponse, AuthenticatorAttachment, AuthenticatorAttestationResponse, AuthenticatorSelectionCriteria, Base64URLString, COSEAlgorithmIdentifier, KeyUsage, PublicKeyCredential, PublicKeyCredentialCreationOptions, PublicKeyCredentialDescriptorJSON, PublicKeyCredentialParameters, PublicKeyCredentialRequestOptions, PublicKeyCredentialRpEntity, PublicKeyCredentialType, SubtleCrypto, UserVerificationRequirement } from './dom.js';
|
|
10
|
+
export type { AlgorithmIdentifier, AttestationConveyancePreference, AuthenticationExtensionsClientInputs, AuthenticationExtensionsClientOutputs, AuthenticatorAssertionResponse, AuthenticatorAttachment, AuthenticatorAttestationResponse, AuthenticatorSelectionCriteria, AuthenticatorTransport, Base64URLString, COSEAlgorithmIdentifier, CredentialCreationOptions, CredentialRequestOptions, Crypto, PublicKeyCredential, PublicKeyCredentialCreationOptions, PublicKeyCredentialDescriptor, PublicKeyCredentialDescriptorJSON, PublicKeyCredentialParameters, PublicKeyCredentialRequestOptions, PublicKeyCredentialRpEntity, PublicKeyCredentialType, PublicKeyCredentialUserEntity, ResidentKeyRequirement, UserVerificationRequirement, } from './dom.js';
|
|
11
11
|
/**
|
|
12
12
|
* A variant of PublicKeyCredentialCreationOptions suitable for JSON transmission to the browser to
|
|
13
13
|
* (eventually) get passed into navigator.credentials.create(...) in the browser.
|
|
@@ -43,14 +43,6 @@ export interface PublicKeyCredentialRequestOptionsJSON {
|
|
|
43
43
|
hints?: PublicKeyCredentialHint[];
|
|
44
44
|
extensions?: AuthenticationExtensionsClientInputs;
|
|
45
45
|
}
|
|
46
|
-
/**
|
|
47
|
-
* https://w3c.github.io/webauthn/#dictdef-publickeycredentialdescriptorjson
|
|
48
|
-
*/
|
|
49
|
-
export interface PublicKeyCredentialDescriptorJSON {
|
|
50
|
-
id: Base64URLString;
|
|
51
|
-
type: PublicKeyCredentialType;
|
|
52
|
-
transports?: AuthenticatorTransportFuture[];
|
|
53
|
-
}
|
|
54
46
|
/**
|
|
55
47
|
* https://w3c.github.io/webauthn/#dictdef-publickeycredentialuserentityjson
|
|
56
48
|
*/
|
|
@@ -63,7 +55,7 @@ export interface PublicKeyCredentialUserEntityJSON {
|
|
|
63
55
|
* The value returned from navigator.credentials.create()
|
|
64
56
|
*/
|
|
65
57
|
export interface RegistrationCredential extends PublicKeyCredentialFuture {
|
|
66
|
-
response:
|
|
58
|
+
response: AuthenticatorAttestationResponse;
|
|
67
59
|
}
|
|
68
60
|
/**
|
|
69
61
|
* A slightly-modified RegistrationCredential to simplify working with ArrayBuffers that
|
|
@@ -109,7 +101,7 @@ export interface AuthenticatorAttestationResponseJSON {
|
|
|
109
101
|
clientDataJSON: Base64URLString;
|
|
110
102
|
attestationObject: Base64URLString;
|
|
111
103
|
authenticatorData?: Base64URLString;
|
|
112
|
-
transports?:
|
|
104
|
+
transports?: string[];
|
|
113
105
|
publicKeyAlgorithm?: COSEAlgorithmIdentifier;
|
|
114
106
|
publicKey?: Base64URLString;
|
|
115
107
|
}
|
|
@@ -132,38 +124,8 @@ export type WebAuthnCredential = {
|
|
|
132
124
|
id: Base64URLString;
|
|
133
125
|
publicKey: Uint8Array_;
|
|
134
126
|
counter: number;
|
|
135
|
-
transports?:
|
|
127
|
+
transports?: string[];
|
|
136
128
|
};
|
|
137
|
-
/**
|
|
138
|
-
* An attempt to communicate that this isn't just any string, but a Base64URL-encoded string
|
|
139
|
-
*/
|
|
140
|
-
export type Base64URLString = string;
|
|
141
|
-
/**
|
|
142
|
-
* AuthenticatorAttestationResponse in TypeScript's DOM lib is outdated (up through v3.9.7).
|
|
143
|
-
* Maintain an augmented version here so we can implement additional properties as the WebAuthn
|
|
144
|
-
* spec evolves.
|
|
145
|
-
*
|
|
146
|
-
* See https://www.w3.org/TR/webauthn-2/#iface-authenticatorattestationresponse
|
|
147
|
-
*
|
|
148
|
-
* Properties marked optional are not supported in all browsers.
|
|
149
|
-
*/
|
|
150
|
-
export interface AuthenticatorAttestationResponseFuture extends AuthenticatorAttestationResponse {
|
|
151
|
-
getTransports(): AuthenticatorTransportFuture[];
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* A super class of TypeScript's `AuthenticatorTransport` that includes support for the latest
|
|
155
|
-
* transports. Should eventually be replaced by TypeScript's when TypeScript gets updated to
|
|
156
|
-
* know about it (sometime after 4.6.3)
|
|
157
|
-
*/
|
|
158
|
-
export type AuthenticatorTransportFuture = 'ble' | 'cable' | 'hybrid' | 'internal' | 'nfc' | 'smart-card' | 'usb';
|
|
159
|
-
/**
|
|
160
|
-
* A super class of TypeScript's `PublicKeyCredentialDescriptor` that knows about the latest
|
|
161
|
-
* transports. Should eventually be replaced by TypeScript's when TypeScript gets updated to
|
|
162
|
-
* know about it (sometime after 4.6.3)
|
|
163
|
-
*/
|
|
164
|
-
export interface PublicKeyCredentialDescriptorFuture extends Omit<PublicKeyCredentialDescriptor, 'transports'> {
|
|
165
|
-
transports?: AuthenticatorTransportFuture[];
|
|
166
|
-
}
|
|
167
129
|
/** */
|
|
168
130
|
export type PublicKeyCredentialJSON = RegistrationResponseJSON | AuthenticationResponseJSON;
|
|
169
131
|
/**
|
|
@@ -174,7 +136,11 @@ export interface PublicKeyCredentialFuture extends PublicKeyCredential {
|
|
|
174
136
|
isConditionalMediationAvailable?(): Promise<boolean>;
|
|
175
137
|
parseCreationOptionsFromJSON?(options: PublicKeyCredentialCreationOptionsJSON): PublicKeyCredentialCreationOptions;
|
|
176
138
|
parseRequestOptionsFromJSON?(options: PublicKeyCredentialRequestOptionsJSON): PublicKeyCredentialRequestOptions;
|
|
177
|
-
toJSON
|
|
139
|
+
toJSON(): PublicKeyCredentialJSON;
|
|
140
|
+
getClientCapabilities?(): Promise<PublicKeyCredentialClientCapabilities>;
|
|
141
|
+
signalUnknownCredential(options: UnknownCredentialOptions): Promise<undefined>;
|
|
142
|
+
signalAllAcceptedCredentials(options: AllAcceptedCredentialsOptions): Promise<undefined>;
|
|
143
|
+
signalCurrentUserDetails(options: CurrentUserDetailsOptions): Promise<undefined>;
|
|
178
144
|
}
|
|
179
145
|
/**
|
|
180
146
|
* The two types of credentials as defined by bit 3 ("Backup Eligibility") in authenticator data:
|
|
@@ -202,6 +168,27 @@ export type PublicKeyCredentialHint = 'hybrid' | 'security-key' | 'client-device
|
|
|
202
168
|
* See https://www.iana.org/assignments/webauthn/webauthn.xhtml#webauthn-attestation-statement-format-ids
|
|
203
169
|
*/
|
|
204
170
|
export type AttestationFormat = 'fido-u2f' | 'packed' | 'android-safetynet' | 'android-key' | 'tpm' | 'apple' | 'none';
|
|
171
|
+
/**
|
|
172
|
+
* More specific values available from `PublicKeyCredential.getClientCapabilities()`.
|
|
173
|
+
*
|
|
174
|
+
* A capability with an `undefined` value does not mean the feature is unsupported. It may
|
|
175
|
+
* simply be that the browser has chosen not to divulge its support for the capability as a more
|
|
176
|
+
* specific determination may be factored into e.g. ad-tech's browser fingerprinting that violates
|
|
177
|
+
* user privacy against the goals of the browser.
|
|
178
|
+
*
|
|
179
|
+
* See https://w3c.github.io/webauthn/#typedefdef-publickeycredentialclientcapabilities
|
|
180
|
+
*/
|
|
181
|
+
export type PublicKeyCredentialClientCapabilities = {
|
|
182
|
+
conditionalCreate?: boolean;
|
|
183
|
+
conditionalGet?: boolean;
|
|
184
|
+
hybridTransport?: boolean;
|
|
185
|
+
passkeyPlatformAuthenticator?: boolean;
|
|
186
|
+
userVerifyingPlatformAuthenticator?: boolean;
|
|
187
|
+
relatedOrigins?: boolean;
|
|
188
|
+
signalAllAcceptedCredentials?: boolean;
|
|
189
|
+
signalCurrentUserDetails?: boolean;
|
|
190
|
+
signalUnknownCredential?: boolean;
|
|
191
|
+
};
|
|
205
192
|
/**
|
|
206
193
|
* Equivalent to `Uint8Array` before TypeScript 5.7, and `Uint8Array<ArrayBuffer>` in TypeScript 5.7
|
|
207
194
|
* and beyond.
|
|
@@ -217,4 +204,131 @@ export type AttestationFormat = 'fido-u2f' | 'packed' | 'android-safetynet' | 'a
|
|
|
217
204
|
* https://github.com/denoland/std/blob/b5a5fe4f96b91c1fe8dba5cc0270092dd11d3287/bytes/_types.ts#L11
|
|
218
205
|
*/
|
|
219
206
|
export type Uint8Array_ = ReturnType<Uint8Array['slice']>;
|
|
207
|
+
/**
|
|
208
|
+
* Options for `PublicKeyCredential.signalUnknownCredential()`. This signal communicates that the
|
|
209
|
+
* credential that the user just tried to register, or to authenticate with, was not one that the
|
|
210
|
+
* Relying Party recognizes. The authenticator responsible for the credential can hide or delete
|
|
211
|
+
* the credential so that the user does not see it in the future as an option to sign in with.
|
|
212
|
+
*
|
|
213
|
+
* It is a good idea for a Relying Party to send this signal immediately after the use of an
|
|
214
|
+
* unrecognized credential. For example, after rejecting the output from `startRegistration()` due
|
|
215
|
+
* to unsatisfied RP-specific authenticator registration policy; or after rejecting the output from
|
|
216
|
+
* `startAuthentication()` because the user deleted the passkey from their RP-specific user
|
|
217
|
+
* settings.
|
|
218
|
+
*
|
|
219
|
+
* See https://w3c.github.io/webauthn/#sctn-signalUnknownCredential for more info.
|
|
220
|
+
*/
|
|
221
|
+
type UnknownCredentialOptions = {
|
|
222
|
+
rpId: string;
|
|
223
|
+
credentialId: Base64URLString;
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
* Options for `PublicKeyCredential.signalAllAcceptedCredentials()`. This signal communicates the
|
|
227
|
+
* current list of passkeys the Relying Party will recognize for use by the **authenticated** user
|
|
228
|
+
* on the next login. Authenticators that have a passkey for (rpId + userId), but the passkey ID is
|
|
229
|
+
* not found in allAcceptedCredentialIds, may choose to hide or delete the passkey because it will
|
|
230
|
+
* not be accepted for use by the Relying Party.
|
|
231
|
+
*
|
|
232
|
+
* It is a good idea for a Relying Party to periodically send this signal, for example after every
|
|
233
|
+
* successful authentication.
|
|
234
|
+
*
|
|
235
|
+
* See https://w3c.github.io/webauthn/#sctn-signalAllAcceptedCredentials for more info.
|
|
236
|
+
*/
|
|
237
|
+
type AllAcceptedCredentialsOptions = {
|
|
238
|
+
rpId: string;
|
|
239
|
+
userId: Base64URLString;
|
|
240
|
+
allAcceptedCredentialIds: Base64URLString[];
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* Options for `PublicKeyCredential.signalCurrentUserDetails()`. This signal that communicates a
|
|
244
|
+
* change in the **authenticated** user's name and/or display name. This can help browsers and
|
|
245
|
+
* platforms display the most up-to-date information about the user during a passkey authentication
|
|
246
|
+
* instead of always showing whatever value was set at the time of registration.
|
|
247
|
+
*
|
|
248
|
+
* It is a good idea for a Relying Party to periodically send this signal, for example after every
|
|
249
|
+
* successful authentication and immediately after the user name and/or display name is changed.
|
|
250
|
+
*
|
|
251
|
+
* See https://w3c.github.io/webauthn/#sctn-signalCurrentUserDetails for more info.
|
|
252
|
+
*/
|
|
253
|
+
type CurrentUserDetailsOptions = {
|
|
254
|
+
rpId: string;
|
|
255
|
+
userId: Base64URLString;
|
|
256
|
+
name: string;
|
|
257
|
+
displayName: string;
|
|
258
|
+
};
|
|
259
|
+
/**
|
|
260
|
+
* Below are types for @simplewebauthn/browser's `sendSignal()` method. Shared out of here so that an RP
|
|
261
|
+
* might use these same types in @simplewebauthn/server to type an API return value that can be
|
|
262
|
+
* passed into `sendSignal()`
|
|
263
|
+
*/
|
|
264
|
+
/**
|
|
265
|
+
* A signal that communicates that the credential that the user just tried to register, or to
|
|
266
|
+
* authenticate with, was not one that the Relying Party recognizes. The authenticator responsible
|
|
267
|
+
* for the credential can hide or delete the credential so that the user does not see it in the
|
|
268
|
+
* future as an option to sign in with.
|
|
269
|
+
*
|
|
270
|
+
* It is a good idea for a Relying Party to send this signal immediately after the use of an
|
|
271
|
+
* unrecognized credential. For example, after rejecting the output from `startRegistration()` due
|
|
272
|
+
* to unsatisfied RP-specific authenticator registration policy; or after rejecting the output from
|
|
273
|
+
* `startAuthentication()` because the user deleted the passkey from their RP-specific user
|
|
274
|
+
* settings.
|
|
275
|
+
*
|
|
276
|
+
* See https://w3c.github.io/webauthn/#sctn-signalUnknownCredential for more info.
|
|
277
|
+
*/
|
|
278
|
+
export type SendSignalUnknownCredentialOpts = {
|
|
279
|
+
signalName: 'unknownCredential';
|
|
280
|
+
/** The same value used for `rpID` when calling \@simplewebauthn/server's `generateRegistrationOptions()` */
|
|
281
|
+
rpID: string;
|
|
282
|
+
/** The credential ID that the Relying Party didn't recognize for use */
|
|
283
|
+
credentialID: Base64URLString;
|
|
284
|
+
};
|
|
285
|
+
/**
|
|
286
|
+
* A signal that communicates the current list of passkeys the Relying Party will recognize for use
|
|
287
|
+
* by the **authenticated** user on the next login. Authenticators that have a passkey for
|
|
288
|
+
* (rpId + userId), but the passkey ID is not found in allAcceptedCredentialIds, may choose to hide
|
|
289
|
+
* or delete the passkey because it will not be accepted for use by the Relying Party.
|
|
290
|
+
*
|
|
291
|
+
* It is a good idea for a Relying Party to periodically send this signal, for example after every
|
|
292
|
+
* successful authentication.
|
|
293
|
+
*
|
|
294
|
+
* See https://w3c.github.io/webauthn/#sctn-signalAllAcceptedCredentials for more info.
|
|
295
|
+
*/
|
|
296
|
+
export type SendSignalAllAcceptedCredentialsOpts = {
|
|
297
|
+
signalName: 'allAcceptedCredentials';
|
|
298
|
+
/** The same value used for `rpID` when calling \@simplewebauthn/server's `generateRegistrationOptions()` */
|
|
299
|
+
rpID: string;
|
|
300
|
+
/** The base64url-encoded value used for `userID` when calling \@simplewebauthn/server's `generateRegistrationOptions()` */
|
|
301
|
+
userID: Base64URLString;
|
|
302
|
+
/** An array of base64url-encoded credential IDs for all credentials the user may use to authenticate */
|
|
303
|
+
allAcceptedCredentialIDs: Base64URLString[];
|
|
304
|
+
};
|
|
305
|
+
/**
|
|
306
|
+
* A signal that communicates a change in the **authenticated** user's name and/or display name.
|
|
307
|
+
* This can help browsers and platforms display the most up-to-date information about the user
|
|
308
|
+
* during a passkey authentication instead of always showing whatever value was set at the time of
|
|
309
|
+
* registration.
|
|
310
|
+
*
|
|
311
|
+
* It is a good idea for a Relying Party to periodically send this signal, for example after every
|
|
312
|
+
* successful authentication and immediately after the user name and/or display name is changed.
|
|
313
|
+
*
|
|
314
|
+
* See https://w3c.github.io/webauthn/#sctn-signalCurrentUserDetails for more info.
|
|
315
|
+
*/
|
|
316
|
+
export type SendSignalCurrentUserDetailsOpts = {
|
|
317
|
+
signalName: 'currentUserDetails';
|
|
318
|
+
/** The same value used for `rpID` when calling \@simplewebauthn/server's `generateRegistrationOptions()` */
|
|
319
|
+
rpID: string;
|
|
320
|
+
/** The base64url-encoded value used for `userID` when calling \@simplewebauthn/server's `generateRegistrationOptions()` */
|
|
321
|
+
userID: Base64URLString;
|
|
322
|
+
/** The primary account name, like an email address, username, etc... */
|
|
323
|
+
userName: string;
|
|
324
|
+
/** An optional, longer user identifier, like a full name, account differentiator, etc... Defaults to `""` */
|
|
325
|
+
userDisplayName?: string;
|
|
326
|
+
};
|
|
327
|
+
/**
|
|
328
|
+
* A super class of TypeScript's `SubtleCrypto` that knows about upcoming features
|
|
329
|
+
*/
|
|
330
|
+
export interface SubtleCryptoFuture extends SubtleCrypto {
|
|
331
|
+
/** https://wicg.github.io/webcrypto-modern-algos/#SubtleCrypto-method-supports */
|
|
332
|
+
supports(operation: KeyUsage, algorithm: AlgorithmIdentifier, length?: number): boolean;
|
|
333
|
+
}
|
|
220
334
|
//# sourceMappingURL=index.d.ts.map
|