From a945eecc42477c523dcbbd938daabb63e6af73ff Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Sat, 19 Jul 2025 17:59:36 +0200 Subject: [PATCH] Restore PublicKeyCredential additions from BCD 6.0.24 --- baselines/dom.generated.d.ts | 36 ++++++++++++++++++++++++++++++ baselines/ts5.5/dom.generated.d.ts | 36 ++++++++++++++++++++++++++++++ baselines/ts5.6/dom.generated.d.ts | 36 ++++++++++++++++++++++++++++++ inputfiles/overridingTypes.jsonc | 15 ------------- 4 files changed, 108 insertions(+), 15 deletions(-) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 31ae9872c..76130d49d 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -52,6 +52,12 @@ interface Algorithm { name: string; } +interface AllAcceptedCredentialsOptions { + allAcceptedCredentialIds: Base64URLString[]; + rpId: string; + userId: Base64URLString; +} + interface AnalyserOptions extends AudioNodeOptions { fftSize?: number; maxDecibels?: number; @@ -462,6 +468,13 @@ interface CryptoKeyPair { publicKey: CryptoKey; } +interface CurrentUserDetailsOptions { + displayName: string; + name: string; + rpId: string; + userId: Base64URLString; +} + interface CustomEventInit extends EventInit { detail?: T; } @@ -2385,6 +2398,11 @@ interface UnderlyingSource { type?: ReadableStreamType; } +interface UnknownCredentialOptions { + credentialId: Base64URLString; + rpId: string; +} + interface ValidityStateFlags { badInput?: boolean; customError?: boolean; @@ -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; + /** + * 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; + /** + * 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; }; /** diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 5fc97c13e..8026268fb 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -52,6 +52,12 @@ interface Algorithm { name: string; } +interface AllAcceptedCredentialsOptions { + allAcceptedCredentialIds: Base64URLString[]; + rpId: string; + userId: Base64URLString; +} + interface AnalyserOptions extends AudioNodeOptions { fftSize?: number; maxDecibels?: number; @@ -462,6 +468,13 @@ interface CryptoKeyPair { publicKey: CryptoKey; } +interface CurrentUserDetailsOptions { + displayName: string; + name: string; + rpId: string; + userId: Base64URLString; +} + interface CustomEventInit extends EventInit { detail?: T; } @@ -2385,6 +2398,11 @@ interface UnderlyingSource { type?: ReadableStreamType; } +interface UnknownCredentialOptions { + credentialId: Base64URLString; + rpId: string; +} + interface ValidityStateFlags { badInput?: boolean; customError?: boolean; @@ -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; + /** + * 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; + /** + * 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; }; /** diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 7412dce9d..6e5cae9e1 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -52,6 +52,12 @@ interface Algorithm { name: string; } +interface AllAcceptedCredentialsOptions { + allAcceptedCredentialIds: Base64URLString[]; + rpId: string; + userId: Base64URLString; +} + interface AnalyserOptions extends AudioNodeOptions { fftSize?: number; maxDecibels?: number; @@ -462,6 +468,13 @@ interface CryptoKeyPair { publicKey: CryptoKey; } +interface CurrentUserDetailsOptions { + displayName: string; + name: string; + rpId: string; + userId: Base64URLString; +} + interface CustomEventInit extends EventInit { detail?: T; } @@ -2385,6 +2398,11 @@ interface UnderlyingSource { type?: ReadableStreamType; } +interface UnknownCredentialOptions { + credentialId: Base64URLString; + rpId: string; +} + interface ValidityStateFlags { badInput?: boolean; customError?: boolean; @@ -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; + /** + * 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; + /** + * 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; }; /** diff --git a/inputfiles/overridingTypes.jsonc b/inputfiles/overridingTypes.jsonc index f8acee220..8a5a30d30 100644 --- a/inputfiles/overridingTypes.jsonc +++ b/inputfiles/overridingTypes.jsonc @@ -3827,21 +3827,6 @@ }, "WGSLLanguageFeatures": { "exposed": "" - }, - "PublicKeyCredential": { - "methods": { - "method": { - "signalAllAcceptedCredentials": { - "exposed": "" - }, - "signalCurrentUserDetails": { - "exposed": "" - }, - "signalUnknownCredential": { - "exposed": "" - } - } - } } } },