devtools-protocol 0.0.1114954 → 0.0.1115542

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.
@@ -23042,9 +23042,51 @@
23042
23042
  "domain": "FedCm",
23043
23043
  "description": "This domain allows interacting with the FedCM dialog.",
23044
23044
  "experimental": true,
23045
+ "types": [
23046
+ {
23047
+ "id": "Account",
23048
+ "description": "Corresponds to IdentityRequestAccount",
23049
+ "type": "object",
23050
+ "properties": [
23051
+ {
23052
+ "name": "accountId",
23053
+ "type": "string"
23054
+ },
23055
+ {
23056
+ "name": "email",
23057
+ "type": "string"
23058
+ },
23059
+ {
23060
+ "name": "name",
23061
+ "type": "string"
23062
+ },
23063
+ {
23064
+ "name": "givenName",
23065
+ "type": "string"
23066
+ },
23067
+ {
23068
+ "name": "pictureUrl",
23069
+ "type": "string"
23070
+ },
23071
+ {
23072
+ "name": "idpConfigUrl",
23073
+ "type": "string"
23074
+ }
23075
+ ]
23076
+ }
23077
+ ],
23045
23078
  "events": [
23046
23079
  {
23047
- "name": "dialogShown"
23080
+ "name": "dialogShown",
23081
+ "parameters": [
23082
+ {
23083
+ "name": "accounts",
23084
+ "type": "array",
23085
+ "items": {
23086
+ "$ref": "Account"
23087
+ }
23088
+ }
23089
+ ]
23048
23090
  }
23049
23091
  ],
23050
23092
  "commands": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1114954",
3
+ "version": "0.0.1115542",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -10900,7 +10900,19 @@ experimental domain Preload
10900
10900
 
10901
10901
  # This domain allows interacting with the FedCM dialog.
10902
10902
  experimental domain FedCm
10903
+ # Corresponds to IdentityRequestAccount
10904
+ type Account extends object
10905
+ properties
10906
+ string accountId
10907
+ string email
10908
+ string name
10909
+ string givenName
10910
+ string pictureUrl
10911
+ string idpConfigUrl
10912
+
10903
10913
  event dialogShown
10914
+ parameters
10915
+ array of Account accounts
10904
10916
 
10905
10917
  command enable
10906
10918
  command disable
@@ -726,7 +726,7 @@ export namespace ProtocolMapping {
726
726
  * Send a list of sources for all preloading attempts.
727
727
  */
728
728
  'Preload.preloadingAttemptSourcesUpdated': [Protocol.Preload.PreloadingAttemptSourcesUpdatedEvent];
729
- 'FedCm.dialogShown': [];
729
+ 'FedCm.dialogShown': [Protocol.FedCm.DialogShownEvent];
730
730
  }
731
731
 
732
732
  export interface Commands {
@@ -3974,7 +3974,7 @@ export namespace ProtocolProxyApi {
3974
3974
 
3975
3975
  disable(): Promise<void>;
3976
3976
 
3977
- on(event: 'dialogShown', listener: () => void): void;
3977
+ on(event: 'dialogShown', listener: (params: Protocol.FedCm.DialogShownEvent) => void): void;
3978
3978
 
3979
3979
  }
3980
3980
  }
@@ -17000,6 +17000,22 @@ export namespace Protocol {
17000
17000
  * This domain allows interacting with the FedCM dialog.
17001
17001
  */
17002
17002
  export namespace FedCm {
17003
+
17004
+ /**
17005
+ * Corresponds to IdentityRequestAccount
17006
+ */
17007
+ export interface Account {
17008
+ accountId: string;
17009
+ email: string;
17010
+ name: string;
17011
+ givenName: string;
17012
+ pictureUrl: string;
17013
+ idpConfigUrl: string;
17014
+ }
17015
+
17016
+ export interface DialogShownEvent {
17017
+ accounts: Account[];
17018
+ }
17003
17019
  }
17004
17020
  }
17005
17021