Skip to content

Restore PublicKeyCredential additions from BCD 6.0.24 #2073

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 19, 2025
Merged
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
36 changes: 36 additions & 0 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ interface Algorithm {
name: string;
}

interface AllAcceptedCredentialsOptions {
allAcceptedCredentialIds: Base64URLString[];
rpId: string;
userId: Base64URLString;
}

interface AnalyserOptions extends AudioNodeOptions {
fftSize?: number;
maxDecibels?: number;
Expand Down Expand Up @@ -462,6 +468,13 @@ interface CryptoKeyPair {
publicKey: CryptoKey;
}

interface CurrentUserDetailsOptions {
displayName: string;
name: string;
rpId: string;
userId: Base64URLString;
}

interface CustomEventInit<T = any> extends EventInit {
detail?: T;
}
Expand Down Expand Up @@ -2385,6 +2398,11 @@ interface UnderlyingSource<R = any> {
type?: ReadableStreamType;
}

interface UnknownCredentialOptions {
credentialId: Base64URLString;
rpId: string;
}

interface ValidityStateFlags {
badInput?: boolean;
customError?: boolean;
Expand Down Expand Up @@ -24568,6 +24586,24 @@ declare var PublicKeyCredential: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseRequestOptionsFromJSON_static)
*/
parseRequestOptionsFromJSON(options: PublicKeyCredentialRequestOptionsJSON): PublicKeyCredentialRequestOptions;
/**
* The **`signalAllAcceptedCredentials()`** static method of the PublicKeyCredential interface signals to the authenticator all of the valid credential IDs that the relying party (RP) server still holds for a particular user.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/signalAllAcceptedCredentials_static)
*/
signalAllAcceptedCredentials(options: AllAcceptedCredentialsOptions): Promise<void>;
/**
* The **`signalCurrentUserDetails()`** static method of the PublicKeyCredential interface signals to the authenticator that a particular user has updated their user name and/or display name on the relying party (RP) server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/signalCurrentUserDetails_static)
*/
signalCurrentUserDetails(options: CurrentUserDetailsOptions): Promise<void>;
/**
* The **`signalUnknownCredential()`** static method of the PublicKeyCredential interface signals to the authenticator that a credential ID was not recognized by the relying party (RP) server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/signalUnknownCredential_static)
*/
signalUnknownCredential(options: UnknownCredentialOptions): Promise<void>;
};

/**
Expand Down
36 changes: 36 additions & 0 deletions baselines/ts5.5/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ interface Algorithm {
name: string;
}

interface AllAcceptedCredentialsOptions {
allAcceptedCredentialIds: Base64URLString[];
rpId: string;
userId: Base64URLString;
}

interface AnalyserOptions extends AudioNodeOptions {
fftSize?: number;
maxDecibels?: number;
Expand Down Expand Up @@ -462,6 +468,13 @@ interface CryptoKeyPair {
publicKey: CryptoKey;
}

interface CurrentUserDetailsOptions {
displayName: string;
name: string;
rpId: string;
userId: Base64URLString;
}

interface CustomEventInit<T = any> extends EventInit {
detail?: T;
}
Expand Down Expand Up @@ -2385,6 +2398,11 @@ interface UnderlyingSource<R = any> {
type?: ReadableStreamType;
}

interface UnknownCredentialOptions {
credentialId: Base64URLString;
rpId: string;
}

interface ValidityStateFlags {
badInput?: boolean;
customError?: boolean;
Expand Down Expand Up @@ -24547,6 +24565,24 @@ declare var PublicKeyCredential: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseRequestOptionsFromJSON_static)
*/
parseRequestOptionsFromJSON(options: PublicKeyCredentialRequestOptionsJSON): PublicKeyCredentialRequestOptions;
/**
* The **`signalAllAcceptedCredentials()`** static method of the PublicKeyCredential interface signals to the authenticator all of the valid credential IDs that the relying party (RP) server still holds for a particular user.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/signalAllAcceptedCredentials_static)
*/
signalAllAcceptedCredentials(options: AllAcceptedCredentialsOptions): Promise<void>;
/**
* The **`signalCurrentUserDetails()`** static method of the PublicKeyCredential interface signals to the authenticator that a particular user has updated their user name and/or display name on the relying party (RP) server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/signalCurrentUserDetails_static)
*/
signalCurrentUserDetails(options: CurrentUserDetailsOptions): Promise<void>;
/**
* The **`signalUnknownCredential()`** static method of the PublicKeyCredential interface signals to the authenticator that a credential ID was not recognized by the relying party (RP) server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/signalUnknownCredential_static)
*/
signalUnknownCredential(options: UnknownCredentialOptions): Promise<void>;
};

/**
Expand Down
36 changes: 36 additions & 0 deletions baselines/ts5.6/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ interface Algorithm {
name: string;
}

interface AllAcceptedCredentialsOptions {
allAcceptedCredentialIds: Base64URLString[];
rpId: string;
userId: Base64URLString;
}

interface AnalyserOptions extends AudioNodeOptions {
fftSize?: number;
maxDecibels?: number;
Expand Down Expand Up @@ -462,6 +468,13 @@ interface CryptoKeyPair {
publicKey: CryptoKey;
}

interface CurrentUserDetailsOptions {
displayName: string;
name: string;
rpId: string;
userId: Base64URLString;
}

interface CustomEventInit<T = any> extends EventInit {
detail?: T;
}
Expand Down Expand Up @@ -2385,6 +2398,11 @@ interface UnderlyingSource<R = any> {
type?: ReadableStreamType;
}

interface UnknownCredentialOptions {
credentialId: Base64URLString;
rpId: string;
}

interface ValidityStateFlags {
badInput?: boolean;
customError?: boolean;
Expand Down Expand Up @@ -24568,6 +24586,24 @@ declare var PublicKeyCredential: {
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseRequestOptionsFromJSON_static)
*/
parseRequestOptionsFromJSON(options: PublicKeyCredentialRequestOptionsJSON): PublicKeyCredentialRequestOptions;
/**
* The **`signalAllAcceptedCredentials()`** static method of the PublicKeyCredential interface signals to the authenticator all of the valid credential IDs that the relying party (RP) server still holds for a particular user.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/signalAllAcceptedCredentials_static)
*/
signalAllAcceptedCredentials(options: AllAcceptedCredentialsOptions): Promise<void>;
/**
* The **`signalCurrentUserDetails()`** static method of the PublicKeyCredential interface signals to the authenticator that a particular user has updated their user name and/or display name on the relying party (RP) server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/signalCurrentUserDetails_static)
*/
signalCurrentUserDetails(options: CurrentUserDetailsOptions): Promise<void>;
/**
* The **`signalUnknownCredential()`** static method of the PublicKeyCredential interface signals to the authenticator that a credential ID was not recognized by the relying party (RP) server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/signalUnknownCredential_static)
*/
signalUnknownCredential(options: UnknownCredentialOptions): Promise<void>;
};

/**
Expand Down
15 changes: 0 additions & 15 deletions inputfiles/overridingTypes.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -3827,21 +3827,6 @@
},
"WGSLLanguageFeatures": {
"exposed": ""
},
"PublicKeyCredential": {
"methods": {
"method": {
"signalAllAcceptedCredentials": {
"exposed": ""
},
"signalCurrentUserDetails": {
"exposed": ""
},
"signalUnknownCredential": {
"exposed": ""
}
}
}
}
}
},
Expand Down