Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 54 additions & 2 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,14 @@ interface AuthenticationExtensionsClientOutputs {
prf?: AuthenticationExtensionsPRFOutputs;
}

interface AuthenticationExtensionsClientOutputsJSON {
appid?: boolean;
appidExclude?: boolean;
credProps?: CredentialPropertiesOutput;
largeBlob?: AuthenticationExtensionsLargeBlobOutputsJSON;
prf?: AuthenticationExtensionsPRFOutputsJSON;
}

interface AuthenticationExtensionsLargeBlobInputs {
read?: boolean;
support?: string;
Expand All @@ -233,6 +241,12 @@ interface AuthenticationExtensionsLargeBlobOutputs {
written?: boolean;
}

interface AuthenticationExtensionsLargeBlobOutputsJSON {
blob?: Base64URLString;
supported?: boolean;
written?: boolean;
}

interface AuthenticationExtensionsPRFInputs {
eval?: AuthenticationExtensionsPRFValues;
evalByCredential?: Record<string, AuthenticationExtensionsPRFValues>;
Expand All @@ -248,6 +262,11 @@ interface AuthenticationExtensionsPRFOutputs {
results?: AuthenticationExtensionsPRFValues;
}

interface AuthenticationExtensionsPRFOutputsJSON {
enabled?: boolean;
results?: AuthenticationExtensionsPRFValuesJSON;
}

interface AuthenticationExtensionsPRFValues {
first: BufferSource;
second?: BufferSource;
Expand All @@ -258,6 +277,31 @@ interface AuthenticationExtensionsPRFValuesJSON {
second?: Base64URLString;
}

interface AuthenticationResponseJSON {
authenticatorAttachment?: string;
clientExtensionResults: AuthenticationExtensionsClientOutputsJSON;
id: string;
rawId: Base64URLString;
response: AuthenticatorAssertionResponseJSON;
type: string;
}

interface AuthenticatorAssertionResponseJSON {
authenticatorData: Base64URLString;
clientDataJSON: Base64URLString;
signature: Base64URLString;
userHandle?: Base64URLString;
}

interface AuthenticatorAttestationResponseJSON {
attestationObject: Base64URLString;
authenticatorData: Base64URLString;
clientDataJSON: Base64URLString;
publicKey?: Base64URLString;
publicKeyAlgorithm: COSEAlgorithmIdentifier;
transports: string[];
}

interface AuthenticatorSelectionCriteria {
authenticatorAttachment?: AuthenticatorAttachment;
requireResidentKey?: boolean;
Expand Down Expand Up @@ -2098,6 +2142,15 @@ interface RegistrationOptions {
updateViaCache?: ServiceWorkerUpdateViaCache;
}

interface RegistrationResponseJSON {
authenticatorAttachment?: string;
clientExtensionResults: AuthenticationExtensionsClientOutputsJSON;
id: string;
rawId: Base64URLString;
response: AuthenticatorAttestationResponseJSON;
type: string;
}

interface Report {
body?: ReportBody | null;
type?: string;
Expand Down Expand Up @@ -26953,7 +27006,7 @@ interface PublicKeyCredential extends Credential {
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/toJSON)
*/
toJSON(): PublicKeyCredentialJSON;
toJSON(): RegistrationResponseJSON | AuthenticationResponseJSON;
}

declare var PublicKeyCredential: {
Expand Down Expand Up @@ -42398,7 +42451,6 @@ type OptionalPostfixToken<T extends string> = ` ${T}` | "";
type OptionalPrefixToken<T extends string> = `${T} ` | "";
type PerformanceEntryList = PerformanceEntry[];
type PublicKeyCredentialClientCapabilities = Record<string, boolean>;
type PublicKeyCredentialJSON = any;
type RTCRtpTransform = RTCRtpScriptTransform;
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
Expand Down
56 changes: 54 additions & 2 deletions baselines/ts5.5/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,14 @@ interface AuthenticationExtensionsClientOutputs {
prf?: AuthenticationExtensionsPRFOutputs;
}

interface AuthenticationExtensionsClientOutputsJSON {
appid?: boolean;
appidExclude?: boolean;
credProps?: CredentialPropertiesOutput;
largeBlob?: AuthenticationExtensionsLargeBlobOutputsJSON;
prf?: AuthenticationExtensionsPRFOutputsJSON;
}

interface AuthenticationExtensionsLargeBlobInputs {
read?: boolean;
support?: string;
Expand All @@ -230,6 +238,12 @@ interface AuthenticationExtensionsLargeBlobOutputs {
written?: boolean;
}

interface AuthenticationExtensionsLargeBlobOutputsJSON {
blob?: Base64URLString;
supported?: boolean;
written?: boolean;
}

interface AuthenticationExtensionsPRFInputs {
eval?: AuthenticationExtensionsPRFValues;
evalByCredential?: Record<string, AuthenticationExtensionsPRFValues>;
Expand All @@ -245,6 +259,11 @@ interface AuthenticationExtensionsPRFOutputs {
results?: AuthenticationExtensionsPRFValues;
}

interface AuthenticationExtensionsPRFOutputsJSON {
enabled?: boolean;
results?: AuthenticationExtensionsPRFValuesJSON;
}

interface AuthenticationExtensionsPRFValues {
first: BufferSource;
second?: BufferSource;
Expand All @@ -255,6 +274,31 @@ interface AuthenticationExtensionsPRFValuesJSON {
second?: Base64URLString;
}

interface AuthenticationResponseJSON {
authenticatorAttachment?: string;
clientExtensionResults: AuthenticationExtensionsClientOutputsJSON;
id: string;
rawId: Base64URLString;
response: AuthenticatorAssertionResponseJSON;
type: string;
}

interface AuthenticatorAssertionResponseJSON {
authenticatorData: Base64URLString;
clientDataJSON: Base64URLString;
signature: Base64URLString;
userHandle?: Base64URLString;
}

interface AuthenticatorAttestationResponseJSON {
attestationObject: Base64URLString;
authenticatorData: Base64URLString;
clientDataJSON: Base64URLString;
publicKey?: Base64URLString;
publicKeyAlgorithm: COSEAlgorithmIdentifier;
transports: string[];
}

interface AuthenticatorSelectionCriteria {
authenticatorAttachment?: AuthenticatorAttachment;
requireResidentKey?: boolean;
Expand Down Expand Up @@ -2095,6 +2139,15 @@ interface RegistrationOptions {
updateViaCache?: ServiceWorkerUpdateViaCache;
}

interface RegistrationResponseJSON {
authenticatorAttachment?: string;
clientExtensionResults: AuthenticationExtensionsClientOutputsJSON;
id: string;
rawId: Base64URLString;
response: AuthenticatorAttestationResponseJSON;
type: string;
}

interface Report {
body?: ReportBody | null;
type?: string;
Expand Down Expand Up @@ -26929,7 +26982,7 @@ interface PublicKeyCredential extends Credential {
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/toJSON)
*/
toJSON(): PublicKeyCredentialJSON;
toJSON(): RegistrationResponseJSON | AuthenticationResponseJSON;
}

declare var PublicKeyCredential: {
Expand Down Expand Up @@ -42372,7 +42425,6 @@ type OptionalPostfixToken<T extends string> = ` ${T}` | "";
type OptionalPrefixToken<T extends string> = `${T} ` | "";
type PerformanceEntryList = PerformanceEntry[];
type PublicKeyCredentialClientCapabilities = Record<string, boolean>;
type PublicKeyCredentialJSON = any;
type RTCRtpTransform = RTCRtpScriptTransform;
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
Expand Down
56 changes: 54 additions & 2 deletions baselines/ts5.6/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,14 @@ interface AuthenticationExtensionsClientOutputs {
prf?: AuthenticationExtensionsPRFOutputs;
}

interface AuthenticationExtensionsClientOutputsJSON {
appid?: boolean;
appidExclude?: boolean;
credProps?: CredentialPropertiesOutput;
largeBlob?: AuthenticationExtensionsLargeBlobOutputsJSON;
prf?: AuthenticationExtensionsPRFOutputsJSON;
}

interface AuthenticationExtensionsLargeBlobInputs {
read?: boolean;
support?: string;
Expand All @@ -230,6 +238,12 @@ interface AuthenticationExtensionsLargeBlobOutputs {
written?: boolean;
}

interface AuthenticationExtensionsLargeBlobOutputsJSON {
blob?: Base64URLString;
supported?: boolean;
written?: boolean;
}

interface AuthenticationExtensionsPRFInputs {
eval?: AuthenticationExtensionsPRFValues;
evalByCredential?: Record<string, AuthenticationExtensionsPRFValues>;
Expand All @@ -245,6 +259,11 @@ interface AuthenticationExtensionsPRFOutputs {
results?: AuthenticationExtensionsPRFValues;
}

interface AuthenticationExtensionsPRFOutputsJSON {
enabled?: boolean;
results?: AuthenticationExtensionsPRFValuesJSON;
}

interface AuthenticationExtensionsPRFValues {
first: BufferSource;
second?: BufferSource;
Expand All @@ -255,6 +274,31 @@ interface AuthenticationExtensionsPRFValuesJSON {
second?: Base64URLString;
}

interface AuthenticationResponseJSON {
authenticatorAttachment?: string;
clientExtensionResults: AuthenticationExtensionsClientOutputsJSON;
id: string;
rawId: Base64URLString;
response: AuthenticatorAssertionResponseJSON;
type: string;
}

interface AuthenticatorAssertionResponseJSON {
authenticatorData: Base64URLString;
clientDataJSON: Base64URLString;
signature: Base64URLString;
userHandle?: Base64URLString;
}

interface AuthenticatorAttestationResponseJSON {
attestationObject: Base64URLString;
authenticatorData: Base64URLString;
clientDataJSON: Base64URLString;
publicKey?: Base64URLString;
publicKeyAlgorithm: COSEAlgorithmIdentifier;
transports: string[];
}

interface AuthenticatorSelectionCriteria {
authenticatorAttachment?: AuthenticatorAttachment;
requireResidentKey?: boolean;
Expand Down Expand Up @@ -2095,6 +2139,15 @@ interface RegistrationOptions {
updateViaCache?: ServiceWorkerUpdateViaCache;
}

interface RegistrationResponseJSON {
authenticatorAttachment?: string;
clientExtensionResults: AuthenticationExtensionsClientOutputsJSON;
id: string;
rawId: Base64URLString;
response: AuthenticatorAttestationResponseJSON;
type: string;
}

interface Report {
body?: ReportBody | null;
type?: string;
Expand Down Expand Up @@ -26950,7 +27003,7 @@ interface PublicKeyCredential extends Credential {
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/toJSON)
*/
toJSON(): PublicKeyCredentialJSON;
toJSON(): RegistrationResponseJSON | AuthenticationResponseJSON;
}

declare var PublicKeyCredential: {
Expand Down Expand Up @@ -42395,7 +42448,6 @@ type OptionalPostfixToken<T extends string> = ` ${T}` | "";
type OptionalPrefixToken<T extends string> = `${T} ` | "";
type PerformanceEntryList = PerformanceEntry[];
type PublicKeyCredentialClientCapabilities = Record<string, boolean>;
type PublicKeyCredentialJSON = any;
type RTCRtpTransform = RTCRtpScriptTransform;
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
Expand Down
Loading