devtools-protocol 0.0.1115542 → 0.0.1116775

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.
@@ -1457,7 +1457,12 @@
1457
1457
  "TooManyConcurrentRequests",
1458
1458
  "SourceAndTriggerHeaders",
1459
1459
  "SourceIgnored",
1460
- "TriggerIgnored"
1460
+ "TriggerIgnored",
1461
+ "OsSourceIgnored",
1462
+ "OsTriggerIgnored",
1463
+ "InvalidRegisterOsSourceHeader",
1464
+ "InvalidRegisterOsTriggerHeader",
1465
+ "WebAndOsHeaders"
1461
1466
  ]
1462
1467
  },
1463
1468
  {
@@ -23043,6 +23048,15 @@
23043
23048
  "description": "This domain allows interacting with the FedCM dialog.",
23044
23049
  "experimental": true,
23045
23050
  "types": [
23051
+ {
23052
+ "id": "LoginState",
23053
+ "description": "Whether this is a sign-up or sign-in action for this account, i.e.\nwhether this account has ever been used to sign in to this RP before.",
23054
+ "type": "string",
23055
+ "enum": [
23056
+ "SignIn",
23057
+ "SignUp"
23058
+ ]
23059
+ },
23046
23060
  {
23047
23061
  "id": "Account",
23048
23062
  "description": "Corresponds to IdentityRequestAccount",
@@ -23071,6 +23085,25 @@
23071
23085
  {
23072
23086
  "name": "idpConfigUrl",
23073
23087
  "type": "string"
23088
+ },
23089
+ {
23090
+ "name": "idpSigninUrl",
23091
+ "type": "string"
23092
+ },
23093
+ {
23094
+ "name": "loginState",
23095
+ "$ref": "LoginState"
23096
+ },
23097
+ {
23098
+ "name": "termsOfServiceUrl",
23099
+ "description": "These two are only set if the loginState is signUp",
23100
+ "optional": true,
23101
+ "type": "string"
23102
+ },
23103
+ {
23104
+ "name": "privacyPolicyUrl",
23105
+ "optional": true,
23106
+ "type": "string"
23074
23107
  }
23075
23108
  ]
23076
23109
  }
@@ -23079,6 +23112,10 @@
23079
23112
  {
23080
23113
  "name": "dialogShown",
23081
23114
  "parameters": [
23115
+ {
23116
+ "name": "dialogId",
23117
+ "type": "string"
23118
+ },
23082
23119
  {
23083
23120
  "name": "accounts",
23084
23121
  "type": "array",
@@ -23095,6 +23132,28 @@
23095
23132
  },
23096
23133
  {
23097
23134
  "name": "disable"
23135
+ },
23136
+ {
23137
+ "name": "selectAccount",
23138
+ "parameters": [
23139
+ {
23140
+ "name": "dialogId",
23141
+ "type": "string"
23142
+ },
23143
+ {
23144
+ "name": "accountIndex",
23145
+ "type": "integer"
23146
+ }
23147
+ ]
23148
+ },
23149
+ {
23150
+ "name": "dismissDialog",
23151
+ "parameters": [
23152
+ {
23153
+ "name": "dialogId",
23154
+ "type": "string"
23155
+ }
23156
+ ]
23098
23157
  }
23099
23158
  ]
23100
23159
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1115542",
3
+ "version": "0.0.1116775",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -712,6 +712,11 @@ experimental domain Audits
712
712
  SourceAndTriggerHeaders
713
713
  SourceIgnored
714
714
  TriggerIgnored
715
+ OsSourceIgnored
716
+ OsTriggerIgnored
717
+ InvalidRegisterOsSourceHeader
718
+ InvalidRegisterOsTriggerHeader
719
+ WebAndOsHeaders
715
720
 
716
721
  # Details for issues around "Attribution Reporting API" usage.
717
722
  # Explainer: https://github.com/WICG/attribution-reporting-api
@@ -10900,6 +10905,13 @@ experimental domain Preload
10900
10905
 
10901
10906
  # This domain allows interacting with the FedCM dialog.
10902
10907
  experimental domain FedCm
10908
+ # Whether this is a sign-up or sign-in action for this account, i.e.
10909
+ # whether this account has ever been used to sign in to this RP before.
10910
+ type LoginState extends string
10911
+ enum
10912
+ SignIn
10913
+ SignUp
10914
+
10903
10915
  # Corresponds to IdentityRequestAccount
10904
10916
  type Account extends object
10905
10917
  properties
@@ -10909,10 +10921,25 @@ experimental domain FedCm
10909
10921
  string givenName
10910
10922
  string pictureUrl
10911
10923
  string idpConfigUrl
10924
+ string idpSigninUrl
10925
+ LoginState loginState
10926
+ # These two are only set if the loginState is signUp
10927
+ optional string termsOfServiceUrl
10928
+ optional string privacyPolicyUrl
10912
10929
 
10913
10930
  event dialogShown
10914
10931
  parameters
10932
+ string dialogId
10915
10933
  array of Account accounts
10916
10934
 
10917
10935
  command enable
10918
10936
  command disable
10937
+
10938
+ command selectAccount
10939
+ parameters
10940
+ string dialogId
10941
+ integer accountIndex
10942
+
10943
+ command dismissDialog
10944
+ parameters
10945
+ string dialogId
@@ -4658,6 +4658,14 @@ export namespace ProtocolMapping {
4658
4658
  paramsType: [];
4659
4659
  returnType: void;
4660
4660
  };
4661
+ 'FedCm.selectAccount': {
4662
+ paramsType: [Protocol.FedCm.SelectAccountRequest];
4663
+ returnType: void;
4664
+ };
4665
+ 'FedCm.dismissDialog': {
4666
+ paramsType: [Protocol.FedCm.DismissDialogRequest];
4667
+ returnType: void;
4668
+ };
4661
4669
  }
4662
4670
  }
4663
4671
 
@@ -3974,6 +3974,10 @@ export namespace ProtocolProxyApi {
3974
3974
 
3975
3975
  disable(): Promise<void>;
3976
3976
 
3977
+ selectAccount(params: Protocol.FedCm.SelectAccountRequest): Promise<void>;
3978
+
3979
+ dismissDialog(params: Protocol.FedCm.DismissDialogRequest): Promise<void>;
3980
+
3977
3981
  on(event: 'dialogShown', listener: (params: Protocol.FedCm.DialogShownEvent) => void): void;
3978
3982
 
3979
3983
  }
@@ -3409,7 +3409,7 @@ export namespace Protocol {
3409
3409
  clientSecurityState?: Network.ClientSecurityState;
3410
3410
  }
3411
3411
 
3412
- export type AttributionReportingIssueType = ('PermissionPolicyDisabled' | 'UntrustworthyReportingOrigin' | 'InsecureContext' | 'InvalidHeader' | 'InvalidRegisterTriggerHeader' | 'InvalidEligibleHeader' | 'TooManyConcurrentRequests' | 'SourceAndTriggerHeaders' | 'SourceIgnored' | 'TriggerIgnored');
3412
+ export type AttributionReportingIssueType = ('PermissionPolicyDisabled' | 'UntrustworthyReportingOrigin' | 'InsecureContext' | 'InvalidHeader' | 'InvalidRegisterTriggerHeader' | 'InvalidEligibleHeader' | 'TooManyConcurrentRequests' | 'SourceAndTriggerHeaders' | 'SourceIgnored' | 'TriggerIgnored' | 'OsSourceIgnored' | 'OsTriggerIgnored' | 'InvalidRegisterOsSourceHeader' | 'InvalidRegisterOsTriggerHeader' | 'WebAndOsHeaders');
3413
3413
 
3414
3414
  /**
3415
3415
  * Details for issues around "Attribution Reporting API" usage.
@@ -17001,6 +17001,12 @@ export namespace Protocol {
17001
17001
  */
17002
17002
  export namespace FedCm {
17003
17003
 
17004
+ /**
17005
+ * Whether this is a sign-up or sign-in action for this account, i.e.
17006
+ * whether this account has ever been used to sign in to this RP before.
17007
+ */
17008
+ export type LoginState = ('SignIn' | 'SignUp');
17009
+
17004
17010
  /**
17005
17011
  * Corresponds to IdentityRequestAccount
17006
17012
  */
@@ -17011,9 +17017,26 @@ export namespace Protocol {
17011
17017
  givenName: string;
17012
17018
  pictureUrl: string;
17013
17019
  idpConfigUrl: string;
17020
+ idpSigninUrl: string;
17021
+ loginState: LoginState;
17022
+ /**
17023
+ * These two are only set if the loginState is signUp
17024
+ */
17025
+ termsOfServiceUrl?: string;
17026
+ privacyPolicyUrl?: string;
17027
+ }
17028
+
17029
+ export interface SelectAccountRequest {
17030
+ dialogId: string;
17031
+ accountIndex: integer;
17032
+ }
17033
+
17034
+ export interface DismissDialogRequest {
17035
+ dialogId: string;
17014
17036
  }
17015
17037
 
17016
17038
  export interface DialogShownEvent {
17039
+ dialogId: string;
17017
17040
  accounts: Account[];
17018
17041
  }
17019
17042
  }