@@ -220,6 +220,13 @@ interface AuthenticationExtensionsClientOutputs {
220220 prf?: AuthenticationExtensionsPRFOutputs;
221221}
222222
223+ interface AuthenticationExtensionsClientOutputsJSON {
224+ appid?: boolean;
225+ credProps?: CredentialPropertiesOutput;
226+ largeBlob?: AuthenticationExtensionsLargeBlobOutputsJSON;
227+ prf?: AuthenticationExtensionsPRFOutputsJSON;
228+ }
229+
223230interface AuthenticationExtensionsLargeBlobInputs {
224231 read?: boolean;
225232 support?: string;
@@ -238,6 +245,12 @@ interface AuthenticationExtensionsLargeBlobOutputs {
238245 written?: boolean;
239246}
240247
248+ interface AuthenticationExtensionsLargeBlobOutputsJSON {
249+ blob?: Base64URLString;
250+ supported?: boolean;
251+ written?: boolean;
252+ }
253+
241254interface AuthenticationExtensionsPRFInputs {
242255 eval?: AuthenticationExtensionsPRFValues;
243256 evalByCredential?: Record<string, AuthenticationExtensionsPRFValues>;
@@ -253,6 +266,11 @@ interface AuthenticationExtensionsPRFOutputs {
253266 results?: AuthenticationExtensionsPRFValues;
254267}
255268
269+ interface AuthenticationExtensionsPRFOutputsJSON {
270+ enabled?: boolean;
271+ results?: AuthenticationExtensionsPRFValuesJSON;
272+ }
273+
256274interface AuthenticationExtensionsPRFValues {
257275 first: BufferSource;
258276 second?: BufferSource;
@@ -263,6 +281,31 @@ interface AuthenticationExtensionsPRFValuesJSON {
263281 second?: Base64URLString;
264282}
265283
284+ interface AuthenticationResponseJSON {
285+ authenticatorAttachment?: string;
286+ clientExtensionResults: AuthenticationExtensionsClientOutputsJSON;
287+ id: string;
288+ rawId: Base64URLString;
289+ response: AuthenticatorAssertionResponseJSON;
290+ type: string;
291+ }
292+
293+ interface AuthenticatorAssertionResponseJSON {
294+ authenticatorData: Base64URLString;
295+ clientDataJSON: Base64URLString;
296+ signature: Base64URLString;
297+ userHandle?: Base64URLString;
298+ }
299+
300+ interface AuthenticatorAttestationResponseJSON {
301+ attestationObject: Base64URLString;
302+ authenticatorData: Base64URLString;
303+ clientDataJSON: Base64URLString;
304+ publicKey?: Base64URLString;
305+ publicKeyAlgorithm: COSEAlgorithmIdentifier;
306+ transports: string[];
307+ }
308+
266309interface AuthenticatorSelectionCriteria {
267310 authenticatorAttachment?: AuthenticatorAttachment;
268311 requireResidentKey?: boolean;
@@ -2107,6 +2150,15 @@ interface RegistrationOptions {
21072150 updateViaCache?: ServiceWorkerUpdateViaCache;
21082151}
21092152
2153+ interface RegistrationResponseJSON {
2154+ authenticatorAttachment?: string;
2155+ clientExtensionResults: AuthenticationExtensionsClientOutputsJSON;
2156+ id: string;
2157+ rawId: Base64URLString;
2158+ response: AuthenticatorAttestationResponseJSON;
2159+ type: string;
2160+ }
2161+
21102162interface Report {
21112163 body?: ReportBody | null;
21122164 type?: string;
@@ -26974,7 +27026,7 @@ interface PublicKeyCredential extends Credential {
2697427026 *
2697527027 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/toJSON)
2697627028 */
26977- toJSON(): PublicKeyCredentialJSON ;
27029+ toJSON(): RegistrationResponseJSON | AuthenticationResponseJSON ;
2697827030}
2697927031
2698027032declare var PublicKeyCredential: {
@@ -42419,7 +42471,6 @@ type OptionalPostfixToken<T extends string> = ` ${T}` | "";
4241942471type OptionalPrefixToken<T extends string> = `${T} ` | "";
4242042472type PerformanceEntryList = PerformanceEntry[];
4242142473type PublicKeyCredentialClientCapabilities = Record<string, boolean>;
42422- type PublicKeyCredentialJSON = any;
4242342474type RTCRtpTransform = RTCRtpScriptTransform;
4242442475type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
4242542476type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
0 commit comments