devtools-protocol 0.0.1138159 → 0.0.1139346

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.
@@ -1913,6 +1913,62 @@
1913
1913
  }
1914
1914
  ]
1915
1915
  },
1916
+ {
1917
+ "domain": "Autofill",
1918
+ "description": "Defines commands and events for Autofill.",
1919
+ "experimental": true,
1920
+ "types": [
1921
+ {
1922
+ "id": "CreditCard",
1923
+ "type": "object",
1924
+ "properties": [
1925
+ {
1926
+ "name": "number",
1927
+ "description": "16-digit credit card number.",
1928
+ "type": "string"
1929
+ },
1930
+ {
1931
+ "name": "name",
1932
+ "description": "Name of the credit card owner.",
1933
+ "type": "string"
1934
+ },
1935
+ {
1936
+ "name": "expiryMonth",
1937
+ "description": "2-digit expiry month.",
1938
+ "type": "string"
1939
+ },
1940
+ {
1941
+ "name": "expiryYear",
1942
+ "description": "4-digit expiry year.",
1943
+ "type": "string"
1944
+ },
1945
+ {
1946
+ "name": "cvc",
1947
+ "description": "3-digit card verification code.",
1948
+ "type": "string"
1949
+ }
1950
+ ]
1951
+ }
1952
+ ],
1953
+ "commands": [
1954
+ {
1955
+ "name": "trigger",
1956
+ "description": "Trigger autofill on a form identified by the fieldId.\nIf the field and related form cannot be autofilled, returns an error.",
1957
+ "parameters": [
1958
+ {
1959
+ "name": "fieldId",
1960
+ "description": "Identifies a field that serves as an anchor for autofill.",
1961
+ "$ref": "DOM.BackendNodeId"
1962
+ },
1963
+ {
1964
+ "name": "card",
1965
+ "description": "Credit card information to fill out the form. Credit card data is not saved.",
1966
+ "$ref": "CreditCard"
1967
+ }
1968
+ ]
1969
+ }
1970
+ ]
1971
+ },
1916
1972
  {
1917
1973
  "domain": "BackgroundService",
1918
1974
  "description": "Defines events for background web platform features.",
@@ -2162,8 +2162,8 @@
2162
2162
  "type": "string"
2163
2163
  },
2164
2164
  {
2165
- "id": "WebDriverValue",
2166
- "description": "Represents the value serialiazed by the WebDriver BiDi specification\nhttps://w3c.github.io/webdriver-bidi.",
2165
+ "id": "DeepSerializedValue",
2166
+ "description": "Represents the value serialiazed by the WebDriver BiDi specification\nhttps://goo.gle/browser-automation-deepserialization.",
2167
2167
  "type": "object",
2168
2168
  "properties": [
2169
2169
  {
@@ -2299,7 +2299,7 @@
2299
2299
  "description": "WebDriver BiDi representation of the value.",
2300
2300
  "experimental": true,
2301
2301
  "optional": true,
2302
- "$ref": "WebDriverValue"
2302
+ "$ref": "DeepSerializedValue"
2303
2303
  },
2304
2304
  {
2305
2305
  "name": "objectId",
@@ -2964,7 +2964,7 @@
2964
2964
  },
2965
2965
  {
2966
2966
  "name": "generateWebDriverValue",
2967
- "description": "Whether the result should contain `webDriverValue`, serialized according to\nhttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, but\nresulting `objectId` is still provided.",
2967
+ "description": "Whether the result should contain `webDriverValue`, serialized according to\nhttps://goo.gle/browser-automation-deepserialization. This is mutually\nexclusive with `returnByValue`, but resulting `objectId` is still provided.",
2968
2968
  "experimental": true,
2969
2969
  "optional": true,
2970
2970
  "type": "boolean"
@@ -3139,7 +3139,7 @@
3139
3139
  },
3140
3140
  {
3141
3141
  "name": "generateWebDriverValue",
3142
- "description": "Whether the result should be serialized according to https://w3c.github.io/webdriver-bidi.",
3142
+ "description": "Whether the result should be serialized according to https://goo.gle/browser-automation-deepserialization.",
3143
3143
  "experimental": true,
3144
3144
  "optional": true,
3145
3145
  "type": "boolean"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1138159",
3
+ "version": "0.0.1139346",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -944,6 +944,30 @@ experimental domain Audits
944
944
  parameters
945
945
  InspectorIssue issue
946
946
 
947
+ # Defines commands and events for Autofill.
948
+ experimental domain Autofill
949
+ type CreditCard extends object
950
+ properties
951
+ # 16-digit credit card number.
952
+ string number
953
+ # Name of the credit card owner.
954
+ string name
955
+ # 2-digit expiry month.
956
+ string expiryMonth
957
+ # 4-digit expiry year.
958
+ string expiryYear
959
+ # 3-digit card verification code.
960
+ string cvc
961
+
962
+ # Trigger autofill on a form identified by the fieldId.
963
+ # If the field and related form cannot be autofilled, returns an error.
964
+ command trigger
965
+ parameters
966
+ # Identifies a field that serves as an anchor for autofill.
967
+ DOM.BackendNodeId fieldId
968
+ # Credit card information to fill out the form. Credit card data is not saved.
969
+ CreditCard card
970
+
947
971
  # Defines events for background web platform features.
948
972
  experimental domain BackgroundService
949
973
  # The Background Service that will be associated with the commands/events.
@@ -1015,8 +1015,8 @@ domain Runtime
1015
1015
  type ScriptId extends string
1016
1016
 
1017
1017
  # Represents the value serialiazed by the WebDriver BiDi specification
1018
- # https://w3c.github.io/webdriver-bidi.
1019
- type WebDriverValue extends object
1018
+ # https://goo.gle/browser-automation-deepserialization.
1019
+ type DeepSerializedValue extends object
1020
1020
  properties
1021
1021
  enum type
1022
1022
  undefined
@@ -1102,7 +1102,7 @@ domain Runtime
1102
1102
  # String representation of the object.
1103
1103
  optional string description
1104
1104
  # WebDriver BiDi representation of the value.
1105
- experimental optional WebDriverValue webDriverValue
1105
+ experimental optional DeepSerializedValue webDriverValue
1106
1106
  # Unique object identifier (for non-primitive values).
1107
1107
  optional RemoteObjectId objectId
1108
1108
  # Preview containing abbreviated property values. Specified for `object` type values only.
@@ -1416,8 +1416,8 @@ domain Runtime
1416
1416
  # This is mutually exclusive with `executionContextId`.
1417
1417
  experimental optional string uniqueContextId
1418
1418
  # Whether the result should contain `webDriverValue`, serialized according to
1419
- # https://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, but
1420
- # resulting `objectId` is still provided.
1419
+ # https://goo.gle/browser-automation-deepserialization. This is mutually
1420
+ # exclusive with `returnByValue`, but resulting `objectId` is still provided.
1421
1421
  experimental optional boolean generateWebDriverValue
1422
1422
  returns
1423
1423
  # Call result.
@@ -1504,7 +1504,7 @@ domain Runtime
1504
1504
  # boundaries).
1505
1505
  # This is mutually exclusive with `contextId`.
1506
1506
  experimental optional string uniqueContextId
1507
- # Whether the result should be serialized according to https://w3c.github.io/webdriver-bidi.
1507
+ # Whether the result should be serialized according to https://goo.gle/browser-automation-deepserialization.
1508
1508
  experimental optional boolean generateWebDriverValue
1509
1509
  returns
1510
1510
  # Evaluation result.
@@ -1459,6 +1459,14 @@ export namespace ProtocolMapping {
1459
1459
  paramsType: [Protocol.Audits.CheckContrastRequest?];
1460
1460
  returnType: void;
1461
1461
  };
1462
+ /**
1463
+ * Trigger autofill on a form identified by the fieldId.
1464
+ * If the field and related form cannot be autofilled, returns an error.
1465
+ */
1466
+ 'Autofill.trigger': {
1467
+ paramsType: [Protocol.Autofill.TriggerRequest];
1468
+ returnType: void;
1469
+ };
1462
1470
  /**
1463
1471
  * Enables event updates for the service.
1464
1472
  */
@@ -28,6 +28,8 @@ export namespace ProtocolProxyApi {
28
28
 
29
29
  Audits: AuditsApi;
30
30
 
31
+ Autofill: AutofillApi;
32
+
31
33
  BackgroundService: BackgroundServiceApi;
32
34
 
33
35
  Browser: BrowserApi;
@@ -790,6 +792,15 @@ export namespace ProtocolProxyApi {
790
792
 
791
793
  }
792
794
 
795
+ export interface AutofillApi {
796
+ /**
797
+ * Trigger autofill on a form identified by the fieldId.
798
+ * If the field and related form cannot be autofilled, returns an error.
799
+ */
800
+ trigger(params: Protocol.Autofill.TriggerRequest): Promise<void>;
801
+
802
+ }
803
+
793
804
  export interface BackgroundServiceApi {
794
805
  /**
795
806
  * Enables event updates for the service.
@@ -1490,7 +1490,7 @@ export namespace Protocol {
1490
1490
  */
1491
1491
  export type ScriptId = string;
1492
1492
 
1493
- export const enum WebDriverValueType {
1493
+ export const enum DeepSerializedValueType {
1494
1494
  Undefined = 'undefined',
1495
1495
  Null = 'null',
1496
1496
  String = 'string',
@@ -1518,11 +1518,11 @@ export namespace Protocol {
1518
1518
 
1519
1519
  /**
1520
1520
  * Represents the value serialiazed by the WebDriver BiDi specification
1521
- * https://w3c.github.io/webdriver-bidi.
1521
+ * https://goo.gle/browser-automation-deepserialization.
1522
1522
  */
1523
- export interface WebDriverValue {
1523
+ export interface DeepSerializedValue {
1524
1524
  /**
1525
- * (WebDriverValueType enum)
1525
+ * (DeepSerializedValueType enum)
1526
1526
  */
1527
1527
  type: ('undefined' | 'null' | 'string' | 'number' | 'boolean' | 'bigint' | 'regexp' | 'date' | 'symbol' | 'array' | 'object' | 'function' | 'map' | 'set' | 'weakmap' | 'weakset' | 'error' | 'proxy' | 'promise' | 'typedarray' | 'arraybuffer' | 'node' | 'window');
1528
1528
  value?: any;
@@ -1613,7 +1613,7 @@ export namespace Protocol {
1613
1613
  /**
1614
1614
  * WebDriver BiDi representation of the value.
1615
1615
  */
1616
- webDriverValue?: WebDriverValue;
1616
+ webDriverValue?: DeepSerializedValue;
1617
1617
  /**
1618
1618
  * Unique object identifier (for non-primitive values).
1619
1619
  */
@@ -2121,8 +2121,8 @@ export namespace Protocol {
2121
2121
  uniqueContextId?: string;
2122
2122
  /**
2123
2123
  * Whether the result should contain `webDriverValue`, serialized according to
2124
- * https://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, but
2125
- * resulting `objectId` is still provided.
2124
+ * https://goo.gle/browser-automation-deepserialization. This is mutually
2125
+ * exclusive with `returnByValue`, but resulting `objectId` is still provided.
2126
2126
  */
2127
2127
  generateWebDriverValue?: boolean;
2128
2128
  }
@@ -2248,7 +2248,7 @@ export namespace Protocol {
2248
2248
  */
2249
2249
  uniqueContextId?: string;
2250
2250
  /**
2251
- * Whether the result should be serialized according to https://w3c.github.io/webdriver-bidi.
2251
+ * Whether the result should be serialized according to https://goo.gle/browser-automation-deepserialization.
2252
2252
  */
2253
2253
  generateWebDriverValue?: boolean;
2254
2254
  }
@@ -3615,6 +3615,46 @@ export namespace Protocol {
3615
3615
  }
3616
3616
  }
3617
3617
 
3618
+ /**
3619
+ * Defines commands and events for Autofill.
3620
+ */
3621
+ export namespace Autofill {
3622
+
3623
+ export interface CreditCard {
3624
+ /**
3625
+ * 16-digit credit card number.
3626
+ */
3627
+ number: string;
3628
+ /**
3629
+ * Name of the credit card owner.
3630
+ */
3631
+ name: string;
3632
+ /**
3633
+ * 2-digit expiry month.
3634
+ */
3635
+ expiryMonth: string;
3636
+ /**
3637
+ * 4-digit expiry year.
3638
+ */
3639
+ expiryYear: string;
3640
+ /**
3641
+ * 3-digit card verification code.
3642
+ */
3643
+ cvc: string;
3644
+ }
3645
+
3646
+ export interface TriggerRequest {
3647
+ /**
3648
+ * Identifies a field that serves as an anchor for autofill.
3649
+ */
3650
+ fieldId: DOM.BackendNodeId;
3651
+ /**
3652
+ * Credit card information to fill out the form. Credit card data is not saved.
3653
+ */
3654
+ card: CreditCard;
3655
+ }
3656
+ }
3657
+
3618
3658
  /**
3619
3659
  * Defines events for background web platform features.
3620
3660
  */