devtools-protocol 0.0.1182435 → 0.0.1188649

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.
@@ -2029,24 +2029,119 @@
2029
2029
  },
2030
2030
  {
2031
2031
  "name": "value",
2032
- "description": "address field name, for example Jon Doe.",
2032
+ "description": "address field value, for example Jon Doe.",
2033
2033
  "type": "string"
2034
2034
  }
2035
2035
  ]
2036
2036
  },
2037
+ {
2038
+ "id": "AddressFields",
2039
+ "description": "A list of address fields.",
2040
+ "type": "object",
2041
+ "properties": [
2042
+ {
2043
+ "name": "fields",
2044
+ "type": "array",
2045
+ "items": {
2046
+ "$ref": "AddressField"
2047
+ }
2048
+ }
2049
+ ]
2050
+ },
2037
2051
  {
2038
2052
  "id": "Address",
2039
2053
  "type": "object",
2040
2054
  "properties": [
2041
2055
  {
2042
2056
  "name": "fields",
2043
- "description": "fields and values defining a test address.",
2057
+ "description": "fields and values defining an address.",
2044
2058
  "type": "array",
2045
2059
  "items": {
2046
2060
  "$ref": "AddressField"
2047
2061
  }
2048
2062
  }
2049
2063
  ]
2064
+ },
2065
+ {
2066
+ "id": "AddressUI",
2067
+ "description": "Defines how an address can be displayed like in chrome://settings/addresses.\nAddress UI is a two dimensional array, each inner array is an \"address information line\", and when rendered in a UI surface should be displayed as such.\nThe following address UI for instance:\n[[{name: \"GIVE_NAME\", value: \"Jon\"}, {name: \"FAMILY_NAME\", value: \"Doe\"}], [{name: \"CITY\", value: \"Munich\"}, {name: \"ZIP\", value: \"81456\"}]]\nshould allow the receiver to render:\nJon Doe\nMunich 81456",
2068
+ "type": "object",
2069
+ "properties": [
2070
+ {
2071
+ "name": "addressFields",
2072
+ "description": "A two dimension array containing the repesentation of values from an address profile.",
2073
+ "type": "array",
2074
+ "items": {
2075
+ "$ref": "AddressFields"
2076
+ }
2077
+ }
2078
+ ]
2079
+ },
2080
+ {
2081
+ "id": "FillingStrategy",
2082
+ "description": "Specified whether a filled field was done so by using the html autocomplete attribute or autofill heuristics.",
2083
+ "type": "string",
2084
+ "enum": [
2085
+ "autocompleteAttribute",
2086
+ "autofillInferred"
2087
+ ]
2088
+ },
2089
+ {
2090
+ "id": "FilledField",
2091
+ "type": "object",
2092
+ "properties": [
2093
+ {
2094
+ "name": "htmlType",
2095
+ "description": "The type of the field, e.g text, password etc.",
2096
+ "type": "string"
2097
+ },
2098
+ {
2099
+ "name": "id",
2100
+ "description": "the html id",
2101
+ "type": "string"
2102
+ },
2103
+ {
2104
+ "name": "name",
2105
+ "description": "the html name",
2106
+ "type": "string"
2107
+ },
2108
+ {
2109
+ "name": "value",
2110
+ "description": "the field value",
2111
+ "type": "string"
2112
+ },
2113
+ {
2114
+ "name": "autofillType",
2115
+ "description": "The actual field type, e.g FAMILY_NAME",
2116
+ "type": "string"
2117
+ },
2118
+ {
2119
+ "name": "fillingStrategy",
2120
+ "description": "The filling strategy",
2121
+ "$ref": "FillingStrategy"
2122
+ }
2123
+ ]
2124
+ }
2125
+ ],
2126
+ "events": [
2127
+ {
2128
+ "name": "addressFormFilled",
2129
+ "description": "Emitted when an address form is filled.",
2130
+ "parameters": [
2131
+ {
2132
+ "name": "filledFields",
2133
+ "description": "Information about the fields that were filled",
2134
+ "type": "array",
2135
+ "items": {
2136
+ "$ref": "FilledField"
2137
+ }
2138
+ },
2139
+ {
2140
+ "name": "addressUi",
2141
+ "description": "An UI representation of the address used to fill the form.\nConsists of a 2D array where each child represents an address/profile line.",
2142
+ "$ref": "AddressUI"
2143
+ }
2144
+ ]
2050
2145
  }
2051
2146
  ],
2052
2147
  "commands": [
@@ -2084,6 +2179,14 @@
2084
2179
  }
2085
2180
  }
2086
2181
  ]
2182
+ },
2183
+ {
2184
+ "name": "disable",
2185
+ "description": "Disables autofill domain notifications."
2186
+ },
2187
+ {
2188
+ "name": "enable",
2189
+ "description": "Enables autofill domain notifications."
2087
2190
  }
2088
2191
  ]
2089
2192
  },
@@ -24174,6 +24277,16 @@
24174
24277
  }
24175
24278
  ]
24176
24279
  },
24280
+ {
24281
+ "name": "confirmIdpSignin",
24282
+ "description": "Only valid if the dialog type is ConfirmIdpSignin. Acts as if the user had\nclicked the continue button.",
24283
+ "parameters": [
24284
+ {
24285
+ "name": "dialogId",
24286
+ "type": "string"
24287
+ }
24288
+ ]
24289
+ },
24177
24290
  {
24178
24291
  "name": "dismissDialog",
24179
24292
  "parameters": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1182435",
3
+ "version": "0.0.1188649",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -1002,14 +1002,61 @@ experimental domain Autofill
1002
1002
  properties
1003
1003
  # address field name, for example GIVEN_NAME.
1004
1004
  string name
1005
- # address field name, for example Jon Doe.
1005
+ # address field value, for example Jon Doe.
1006
1006
  string value
1007
1007
 
1008
+ # A list of address fields.
1009
+ type AddressFields extends object
1010
+ properties
1011
+ array of AddressField fields
1012
+
1008
1013
  type Address extends object
1009
1014
  properties
1010
- # fields and values defining a test address.
1015
+ # fields and values defining an address.
1011
1016
  array of AddressField fields
1012
1017
 
1018
+ # Defines how an address can be displayed like in chrome://settings/addresses.
1019
+ # Address UI is a two dimensional array, each inner array is an "address information line", and when rendered in a UI surface should be displayed as such.
1020
+ # The following address UI for instance:
1021
+ # [[{name: "GIVE_NAME", value: "Jon"}, {name: "FAMILY_NAME", value: "Doe"}], [{name: "CITY", value: "Munich"}, {name: "ZIP", value: "81456"}]]
1022
+ # should allow the receiver to render:
1023
+ # Jon Doe
1024
+ # Munich 81456
1025
+ type AddressUI extends object
1026
+ properties
1027
+ # A two dimension array containing the repesentation of values from an address profile.
1028
+ array of AddressFields addressFields
1029
+
1030
+ # Specified whether a filled field was done so by using the html autocomplete attribute or autofill heuristics.
1031
+ type FillingStrategy extends string
1032
+ enum
1033
+ autocompleteAttribute
1034
+ autofillInferred
1035
+
1036
+ type FilledField extends object
1037
+ properties
1038
+ # The type of the field, e.g text, password etc.
1039
+ string htmlType
1040
+ # the html id
1041
+ string id
1042
+ # the html name
1043
+ string name
1044
+ # the field value
1045
+ string value
1046
+ # The actual field type, e.g FAMILY_NAME
1047
+ string autofillType
1048
+ # The filling strategy
1049
+ FillingStrategy fillingStrategy
1050
+
1051
+ # Emitted when an address form is filled.
1052
+ event addressFormFilled
1053
+ parameters
1054
+ # Information about the fields that were filled
1055
+ array of FilledField filledFields
1056
+ # An UI representation of the address used to fill the form.
1057
+ # Consists of a 2D array where each child represents an address/profile line.
1058
+ AddressUI addressUi
1059
+
1013
1060
  # Trigger autofill on a form identified by the fieldId.
1014
1061
  # If the field and related form cannot be autofilled, returns an error.
1015
1062
  command trigger
@@ -1027,6 +1074,11 @@ experimental domain Autofill
1027
1074
  parameters
1028
1075
  array of Address addresses
1029
1076
 
1077
+ # Disables autofill domain notifications.
1078
+ command disable
1079
+
1080
+ # Enables autofill domain notifications.
1081
+ command enable
1030
1082
 
1031
1083
  # Defines events for background web platform features.
1032
1084
  experimental domain BackgroundService
@@ -11439,6 +11491,12 @@ experimental domain FedCm
11439
11491
  string dialogId
11440
11492
  integer accountIndex
11441
11493
 
11494
+ # Only valid if the dialog type is ConfirmIdpSignin. Acts as if the user had
11495
+ # clicked the continue button.
11496
+ command confirmIdpSignin
11497
+ parameters
11498
+ string dialogId
11499
+
11442
11500
  command dismissDialog
11443
11501
  parameters
11444
11502
  string dialogId
@@ -114,6 +114,10 @@ export namespace ProtocolMapping {
114
114
  */
115
115
  'Animation.animationStarted': [Protocol.Animation.AnimationStartedEvent];
116
116
  'Audits.issueAdded': [Protocol.Audits.IssueAddedEvent];
117
+ /**
118
+ * Emitted when an address form is filled.
119
+ */
120
+ 'Autofill.addressFormFilled': [Protocol.Autofill.AddressFormFilledEvent];
117
121
  /**
118
122
  * Called when the recording state for the service has been updated.
119
123
  */
@@ -1492,6 +1496,20 @@ export namespace ProtocolMapping {
1492
1496
  paramsType: [Protocol.Autofill.SetAddressesRequest];
1493
1497
  returnType: void;
1494
1498
  };
1499
+ /**
1500
+ * Disables autofill domain notifications.
1501
+ */
1502
+ 'Autofill.disable': {
1503
+ paramsType: [];
1504
+ returnType: void;
1505
+ };
1506
+ /**
1507
+ * Enables autofill domain notifications.
1508
+ */
1509
+ 'Autofill.enable': {
1510
+ paramsType: [];
1511
+ returnType: void;
1512
+ };
1495
1513
  /**
1496
1514
  * Enables event updates for the service.
1497
1515
  */
@@ -4768,6 +4786,14 @@ export namespace ProtocolMapping {
4768
4786
  paramsType: [Protocol.FedCm.SelectAccountRequest];
4769
4787
  returnType: void;
4770
4788
  };
4789
+ /**
4790
+ * Only valid if the dialog type is ConfirmIdpSignin. Acts as if the user had
4791
+ * clicked the continue button.
4792
+ */
4793
+ 'FedCm.confirmIdpSignin': {
4794
+ paramsType: [Protocol.FedCm.ConfirmIdpSigninRequest];
4795
+ returnType: void;
4796
+ };
4771
4797
  'FedCm.dismissDialog': {
4772
4798
  paramsType: [Protocol.FedCm.DismissDialogRequest];
4773
4799
  returnType: void;
@@ -810,6 +810,21 @@ export namespace ProtocolProxyApi {
810
810
  */
811
811
  setAddresses(params: Protocol.Autofill.SetAddressesRequest): Promise<void>;
812
812
 
813
+ /**
814
+ * Disables autofill domain notifications.
815
+ */
816
+ disable(): Promise<void>;
817
+
818
+ /**
819
+ * Enables autofill domain notifications.
820
+ */
821
+ enable(): Promise<void>;
822
+
823
+ /**
824
+ * Emitted when an address form is filled.
825
+ */
826
+ on(event: 'addressFormFilled', listener: (params: Protocol.Autofill.AddressFormFilledEvent) => void): void;
827
+
813
828
  }
814
829
 
815
830
  export interface BackgroundServiceApi {
@@ -4069,6 +4084,12 @@ export namespace ProtocolProxyApi {
4069
4084
 
4070
4085
  selectAccount(params: Protocol.FedCm.SelectAccountRequest): Promise<void>;
4071
4086
 
4087
+ /**
4088
+ * Only valid if the dialog type is ConfirmIdpSignin. Acts as if the user had
4089
+ * clicked the continue button.
4090
+ */
4091
+ confirmIdpSignin(params: Protocol.FedCm.ConfirmIdpSigninRequest): Promise<void>;
4092
+
4072
4093
  dismissDialog(params: Protocol.FedCm.DismissDialogRequest): Promise<void>;
4073
4094
 
4074
4095
  /**
@@ -3723,18 +3723,73 @@ export namespace Protocol {
3723
3723
  */
3724
3724
  name: string;
3725
3725
  /**
3726
- * address field name, for example Jon Doe.
3726
+ * address field value, for example Jon Doe.
3727
3727
  */
3728
3728
  value: string;
3729
3729
  }
3730
3730
 
3731
+ /**
3732
+ * A list of address fields.
3733
+ */
3734
+ export interface AddressFields {
3735
+ fields: AddressField[];
3736
+ }
3737
+
3731
3738
  export interface Address {
3732
3739
  /**
3733
- * fields and values defining a test address.
3740
+ * fields and values defining an address.
3734
3741
  */
3735
3742
  fields: AddressField[];
3736
3743
  }
3737
3744
 
3745
+ /**
3746
+ * Defines how an address can be displayed like in chrome://settings/addresses.
3747
+ * Address UI is a two dimensional array, each inner array is an "address information line", and when rendered in a UI surface should be displayed as such.
3748
+ * The following address UI for instance:
3749
+ * [[{name: "GIVE_NAME", value: "Jon"}, {name: "FAMILY_NAME", value: "Doe"}], [{name: "CITY", value: "Munich"}, {name: "ZIP", value: "81456"}]]
3750
+ * should allow the receiver to render:
3751
+ * Jon Doe
3752
+ * Munich 81456
3753
+ */
3754
+ export interface AddressUI {
3755
+ /**
3756
+ * A two dimension array containing the repesentation of values from an address profile.
3757
+ */
3758
+ addressFields: AddressFields[];
3759
+ }
3760
+
3761
+ /**
3762
+ * Specified whether a filled field was done so by using the html autocomplete attribute or autofill heuristics.
3763
+ */
3764
+ export type FillingStrategy = ('autocompleteAttribute' | 'autofillInferred');
3765
+
3766
+ export interface FilledField {
3767
+ /**
3768
+ * The type of the field, e.g text, password etc.
3769
+ */
3770
+ htmlType: string;
3771
+ /**
3772
+ * the html id
3773
+ */
3774
+ id: string;
3775
+ /**
3776
+ * the html name
3777
+ */
3778
+ name: string;
3779
+ /**
3780
+ * the field value
3781
+ */
3782
+ value: string;
3783
+ /**
3784
+ * The actual field type, e.g FAMILY_NAME
3785
+ */
3786
+ autofillType: string;
3787
+ /**
3788
+ * The filling strategy
3789
+ */
3790
+ fillingStrategy: FillingStrategy;
3791
+ }
3792
+
3738
3793
  export interface TriggerRequest {
3739
3794
  /**
3740
3795
  * Identifies a field that serves as an anchor for autofill.
@@ -3753,6 +3808,21 @@ export namespace Protocol {
3753
3808
  export interface SetAddressesRequest {
3754
3809
  addresses: Address[];
3755
3810
  }
3811
+
3812
+ /**
3813
+ * Emitted when an address form is filled.
3814
+ */
3815
+ export interface AddressFormFilledEvent {
3816
+ /**
3817
+ * Information about the fields that were filled
3818
+ */
3819
+ filledFields: FilledField[];
3820
+ /**
3821
+ * An UI representation of the address used to fill the form.
3822
+ * Consists of a 2D array where each child represents an address/profile line.
3823
+ */
3824
+ addressUi: AddressUI;
3825
+ }
3756
3826
  }
3757
3827
 
3758
3828
  /**
@@ -17563,6 +17633,10 @@ export namespace Protocol {
17563
17633
  accountIndex: integer;
17564
17634
  }
17565
17635
 
17636
+ export interface ConfirmIdpSigninRequest {
17637
+ dialogId: string;
17638
+ }
17639
+
17566
17640
  export interface DismissDialogRequest {
17567
17641
  dialogId: string;
17568
17642
  triggerCooldown?: boolean;