devtools-protocol 0.0.1498597 → 0.0.1501779
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.
- package/json/browser_protocol.json +17960 -17689
- package/json/js_protocol.json +6 -0
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +47 -13824
- package/pdl/domains/Accessibility.pdl +290 -0
- package/pdl/domains/Animation.pdl +195 -0
- package/pdl/domains/Audits.pdl +755 -0
- package/pdl/domains/Autofill.pdl +106 -0
- package/pdl/domains/BackgroundService.pdl +77 -0
- package/pdl/domains/BluetoothEmulation.pdl +227 -0
- package/pdl/domains/Browser.pdl +345 -0
- package/pdl/domains/CSS.pdl +996 -0
- package/pdl/domains/CacheStorage.pdl +125 -0
- package/pdl/domains/Cast.pdl +62 -0
- package/pdl/domains/DOM.pdl +932 -0
- package/pdl/domains/DOMDebugger.pdl +128 -0
- package/pdl/domains/DOMSnapshot.pdl +319 -0
- package/pdl/domains/DOMStorage.pdl +72 -0
- package/pdl/domains/DeviceAccess.pdl +43 -0
- package/pdl/domains/DeviceOrientation.pdl +20 -0
- package/pdl/domains/Emulation.pdl +608 -0
- package/pdl/domains/EventBreakpoints.pdl +24 -0
- package/pdl/domains/Extensions.pdl +72 -0
- package/pdl/domains/FedCm.pdl +100 -0
- package/pdl/domains/Fetch.pdl +251 -0
- package/pdl/domains/FileSystem.pdl +41 -0
- package/pdl/domains/HeadlessExperimental.pdl +56 -0
- package/pdl/domains/IO.pdl +45 -0
- package/pdl/domains/IndexedDB.pdl +226 -0
- package/pdl/domains/Input.pdl +336 -0
- package/pdl/domains/Inspector.pdl +25 -0
- package/pdl/domains/LayerTree.pdl +178 -0
- package/pdl/domains/Log.pdl +93 -0
- package/pdl/domains/Media.pdl +106 -0
- package/pdl/domains/Memory.pdl +112 -0
- package/pdl/domains/Network.pdl +2039 -0
- package/pdl/domains/Overlay.pdl +498 -0
- package/pdl/domains/PWA.pdl +142 -0
- package/pdl/domains/Page.pdl +1767 -0
- package/pdl/domains/Performance.pdl +54 -0
- package/pdl/domains/PerformanceTimeline.pdl +71 -0
- package/pdl/domains/Preload.pdl +290 -0
- package/pdl/domains/Security.pdl +196 -0
- package/pdl/domains/ServiceWorker.pdl +121 -0
- package/pdl/domains/Storage.pdl +913 -0
- package/pdl/domains/SystemInfo.pdl +145 -0
- package/pdl/domains/Target.pdl +327 -0
- package/pdl/domains/Tethering.pdl +28 -0
- package/pdl/domains/Tracing.pdl +157 -0
- package/pdl/domains/WebAudio.pdl +205 -0
- package/pdl/domains/WebAuthn.pdl +230 -0
- package/types/protocol-mapping.d.ts +992 -615
- package/types/protocol-proxy-api.d.ts +543 -522
- package/types/protocol-tests-proxy-api.d.ts +628 -607
- package/types/protocol.d.ts +8059 -7903
@@ -0,0 +1,106 @@
|
|
1
|
+
# Copyright 2017 The Chromium Authors
|
2
|
+
# Use of this source code is governed by a BSD-style license that can be
|
3
|
+
# found in the LICENSE file.
|
4
|
+
#
|
5
|
+
# Contributing to Chrome DevTools Protocol: https://goo.gle/devtools-contribution-guide-cdp
|
6
|
+
|
7
|
+
# Defines commands and events for Autofill.
|
8
|
+
experimental domain Autofill
|
9
|
+
type CreditCard extends object
|
10
|
+
properties
|
11
|
+
# 16-digit credit card number.
|
12
|
+
string number
|
13
|
+
# Name of the credit card owner.
|
14
|
+
string name
|
15
|
+
# 2-digit expiry month.
|
16
|
+
string expiryMonth
|
17
|
+
# 4-digit expiry year.
|
18
|
+
string expiryYear
|
19
|
+
# 3-digit card verification code.
|
20
|
+
string cvc
|
21
|
+
|
22
|
+
type AddressField extends object
|
23
|
+
properties
|
24
|
+
# address field name, for example GIVEN_NAME.
|
25
|
+
string name
|
26
|
+
# address field value, for example Jon Doe.
|
27
|
+
string value
|
28
|
+
|
29
|
+
# A list of address fields.
|
30
|
+
type AddressFields extends object
|
31
|
+
properties
|
32
|
+
array of AddressField fields
|
33
|
+
|
34
|
+
type Address extends object
|
35
|
+
properties
|
36
|
+
# fields and values defining an address.
|
37
|
+
array of AddressField fields
|
38
|
+
|
39
|
+
# Defines how an address can be displayed like in chrome://settings/addresses.
|
40
|
+
# 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.
|
41
|
+
# The following address UI for instance:
|
42
|
+
# [[{name: "GIVE_NAME", value: "Jon"}, {name: "FAMILY_NAME", value: "Doe"}], [{name: "CITY", value: "Munich"}, {name: "ZIP", value: "81456"}]]
|
43
|
+
# should allow the receiver to render:
|
44
|
+
# Jon Doe
|
45
|
+
# Munich 81456
|
46
|
+
type AddressUI extends object
|
47
|
+
properties
|
48
|
+
# A two dimension array containing the representation of values from an address profile.
|
49
|
+
array of AddressFields addressFields
|
50
|
+
|
51
|
+
# Specified whether a filled field was done so by using the html autocomplete attribute or autofill heuristics.
|
52
|
+
type FillingStrategy extends string
|
53
|
+
enum
|
54
|
+
autocompleteAttribute
|
55
|
+
autofillInferred
|
56
|
+
|
57
|
+
type FilledField extends object
|
58
|
+
properties
|
59
|
+
# The type of the field, e.g text, password etc.
|
60
|
+
string htmlType
|
61
|
+
# the html id
|
62
|
+
string id
|
63
|
+
# the html name
|
64
|
+
string name
|
65
|
+
# the field value
|
66
|
+
string value
|
67
|
+
# The actual field type, e.g FAMILY_NAME
|
68
|
+
string autofillType
|
69
|
+
# The filling strategy
|
70
|
+
FillingStrategy fillingStrategy
|
71
|
+
# The frame the field belongs to
|
72
|
+
Page.FrameId frameId
|
73
|
+
# The form field's DOM node
|
74
|
+
DOM.BackendNodeId fieldId
|
75
|
+
|
76
|
+
# Emitted when an address form is filled.
|
77
|
+
event addressFormFilled
|
78
|
+
parameters
|
79
|
+
# Information about the fields that were filled
|
80
|
+
array of FilledField filledFields
|
81
|
+
# An UI representation of the address used to fill the form.
|
82
|
+
# Consists of a 2D array where each child represents an address/profile line.
|
83
|
+
AddressUI addressUi
|
84
|
+
|
85
|
+
# Trigger autofill on a form identified by the fieldId.
|
86
|
+
# If the field and related form cannot be autofilled, returns an error.
|
87
|
+
command trigger
|
88
|
+
parameters
|
89
|
+
# Identifies a field that serves as an anchor for autofill.
|
90
|
+
DOM.BackendNodeId fieldId
|
91
|
+
# Identifies the frame that field belongs to.
|
92
|
+
optional Page.FrameId frameId
|
93
|
+
# Credit card information to fill out the form. Credit card data is not saved.
|
94
|
+
CreditCard card
|
95
|
+
|
96
|
+
# Set addresses so that developers can verify their forms implementation.
|
97
|
+
command setAddresses
|
98
|
+
# Test addresses for the available countries.
|
99
|
+
parameters
|
100
|
+
array of Address addresses
|
101
|
+
|
102
|
+
# Disables autofill domain notifications.
|
103
|
+
command disable
|
104
|
+
|
105
|
+
# Enables autofill domain notifications.
|
106
|
+
command enable
|
@@ -0,0 +1,77 @@
|
|
1
|
+
# Copyright 2017 The Chromium Authors
|
2
|
+
# Use of this source code is governed by a BSD-style license that can be
|
3
|
+
# found in the LICENSE file.
|
4
|
+
#
|
5
|
+
# Contributing to Chrome DevTools Protocol: https://goo.gle/devtools-contribution-guide-cdp
|
6
|
+
|
7
|
+
# Defines events for background web platform features.
|
8
|
+
experimental domain BackgroundService
|
9
|
+
# The Background Service that will be associated with the commands/events.
|
10
|
+
# Every Background Service operates independently, but they share the same
|
11
|
+
# API.
|
12
|
+
type ServiceName extends string
|
13
|
+
enum
|
14
|
+
backgroundFetch
|
15
|
+
backgroundSync
|
16
|
+
pushMessaging
|
17
|
+
notifications
|
18
|
+
paymentHandler
|
19
|
+
periodicBackgroundSync
|
20
|
+
|
21
|
+
# Enables event updates for the service.
|
22
|
+
command startObserving
|
23
|
+
parameters
|
24
|
+
ServiceName service
|
25
|
+
|
26
|
+
# Disables event updates for the service.
|
27
|
+
command stopObserving
|
28
|
+
parameters
|
29
|
+
ServiceName service
|
30
|
+
|
31
|
+
# Set the recording state for the service.
|
32
|
+
command setRecording
|
33
|
+
parameters
|
34
|
+
boolean shouldRecord
|
35
|
+
ServiceName service
|
36
|
+
|
37
|
+
# Clears all stored data for the service.
|
38
|
+
command clearEvents
|
39
|
+
parameters
|
40
|
+
ServiceName service
|
41
|
+
|
42
|
+
# Called when the recording state for the service has been updated.
|
43
|
+
event recordingStateChanged
|
44
|
+
parameters
|
45
|
+
boolean isRecording
|
46
|
+
ServiceName service
|
47
|
+
|
48
|
+
# A key-value pair for additional event information to pass along.
|
49
|
+
type EventMetadata extends object
|
50
|
+
properties
|
51
|
+
string key
|
52
|
+
string value
|
53
|
+
|
54
|
+
type BackgroundServiceEvent extends object
|
55
|
+
properties
|
56
|
+
# Timestamp of the event (in seconds).
|
57
|
+
Network.TimeSinceEpoch timestamp
|
58
|
+
# The origin this event belongs to.
|
59
|
+
string origin
|
60
|
+
# The Service Worker ID that initiated the event.
|
61
|
+
ServiceWorker.RegistrationID serviceWorkerRegistrationId
|
62
|
+
# The Background Service this event belongs to.
|
63
|
+
ServiceName service
|
64
|
+
# A description of the event.
|
65
|
+
string eventName
|
66
|
+
# An identifier that groups related events together.
|
67
|
+
string instanceId
|
68
|
+
# A list of event-specific information.
|
69
|
+
array of EventMetadata eventMetadata
|
70
|
+
# Storage key this event belongs to.
|
71
|
+
string storageKey
|
72
|
+
|
73
|
+
# Called with all existing backgroundServiceEvents when enabled, and all new
|
74
|
+
# events afterwards if enabled and recording.
|
75
|
+
event backgroundServiceEventReceived
|
76
|
+
parameters
|
77
|
+
BackgroundServiceEvent backgroundServiceEvent
|
@@ -0,0 +1,227 @@
|
|
1
|
+
# Copyright 2017 The Chromium Authors
|
2
|
+
# Use of this source code is governed by a BSD-style license that can be
|
3
|
+
# found in the LICENSE file.
|
4
|
+
#
|
5
|
+
# Contributing to Chrome DevTools Protocol: https://goo.gle/devtools-contribution-guide-cdp
|
6
|
+
|
7
|
+
# This domain allows configuring virtual Bluetooth devices to test
|
8
|
+
# the web-bluetooth API.
|
9
|
+
experimental domain BluetoothEmulation
|
10
|
+
# Indicates the various states of Central.
|
11
|
+
type CentralState extends string
|
12
|
+
enum
|
13
|
+
absent
|
14
|
+
powered-off
|
15
|
+
powered-on
|
16
|
+
|
17
|
+
# Indicates the various types of GATT event.
|
18
|
+
type GATTOperationType extends string
|
19
|
+
enum
|
20
|
+
connection
|
21
|
+
discovery
|
22
|
+
|
23
|
+
# Indicates the various types of characteristic write.
|
24
|
+
type CharacteristicWriteType extends string
|
25
|
+
enum
|
26
|
+
write-default-deprecated
|
27
|
+
write-with-response
|
28
|
+
write-without-response
|
29
|
+
|
30
|
+
# Indicates the various types of characteristic operation.
|
31
|
+
type CharacteristicOperationType extends string
|
32
|
+
enum
|
33
|
+
read
|
34
|
+
write
|
35
|
+
subscribe-to-notifications
|
36
|
+
unsubscribe-from-notifications
|
37
|
+
|
38
|
+
# Indicates the various types of descriptor operation.
|
39
|
+
type DescriptorOperationType extends string
|
40
|
+
enum
|
41
|
+
read
|
42
|
+
write
|
43
|
+
|
44
|
+
# Stores the manufacturer data
|
45
|
+
type ManufacturerData extends object
|
46
|
+
properties
|
47
|
+
# Company identifier
|
48
|
+
# https://bitbucket.org/bluetooth-SIG/public/src/main/assigned_numbers/company_identifiers/company_identifiers.yaml
|
49
|
+
# https://usb.org/developers
|
50
|
+
integer key
|
51
|
+
# Manufacturer-specific data
|
52
|
+
binary data
|
53
|
+
|
54
|
+
# Stores the byte data of the advertisement packet sent by a Bluetooth device.
|
55
|
+
type ScanRecord extends object
|
56
|
+
properties
|
57
|
+
optional string name
|
58
|
+
optional array of string uuids
|
59
|
+
# Stores the external appearance description of the device.
|
60
|
+
optional integer appearance
|
61
|
+
# Stores the transmission power of a broadcasting device.
|
62
|
+
optional integer txPower
|
63
|
+
# Key is the company identifier and the value is an array of bytes of
|
64
|
+
# manufacturer specific data.
|
65
|
+
optional array of ManufacturerData manufacturerData
|
66
|
+
|
67
|
+
# Stores the advertisement packet information that is sent by a Bluetooth device.
|
68
|
+
type ScanEntry extends object
|
69
|
+
properties
|
70
|
+
string deviceAddress
|
71
|
+
integer rssi
|
72
|
+
ScanRecord scanRecord
|
73
|
+
|
74
|
+
# Describes the properties of a characteristic. This follows Bluetooth Core
|
75
|
+
# Specification BT 4.2 Vol 3 Part G 3.3.1. Characteristic Properties.
|
76
|
+
type CharacteristicProperties extends object
|
77
|
+
properties
|
78
|
+
optional boolean broadcast
|
79
|
+
optional boolean read
|
80
|
+
optional boolean writeWithoutResponse
|
81
|
+
optional boolean write
|
82
|
+
optional boolean notify
|
83
|
+
optional boolean indicate
|
84
|
+
optional boolean authenticatedSignedWrites
|
85
|
+
optional boolean extendedProperties
|
86
|
+
|
87
|
+
# Enable the BluetoothEmulation domain.
|
88
|
+
command enable
|
89
|
+
parameters
|
90
|
+
# State of the simulated central.
|
91
|
+
CentralState state
|
92
|
+
# If the simulated central supports low-energy.
|
93
|
+
boolean leSupported
|
94
|
+
|
95
|
+
# Set the state of the simulated central.
|
96
|
+
command setSimulatedCentralState
|
97
|
+
parameters
|
98
|
+
# State of the simulated central.
|
99
|
+
CentralState state
|
100
|
+
|
101
|
+
# Disable the BluetoothEmulation domain.
|
102
|
+
command disable
|
103
|
+
|
104
|
+
# Simulates a peripheral with |address|, |name| and |knownServiceUuids|
|
105
|
+
# that has already been connected to the system.
|
106
|
+
command simulatePreconnectedPeripheral
|
107
|
+
parameters
|
108
|
+
string address
|
109
|
+
string name
|
110
|
+
array of ManufacturerData manufacturerData
|
111
|
+
array of string knownServiceUuids
|
112
|
+
|
113
|
+
# Simulates an advertisement packet described in |entry| being received by
|
114
|
+
# the central.
|
115
|
+
command simulateAdvertisement
|
116
|
+
parameters
|
117
|
+
ScanEntry entry
|
118
|
+
|
119
|
+
# Simulates the response code from the peripheral with |address| for a
|
120
|
+
# GATT operation of |type|. The |code| value follows the HCI Error Codes from
|
121
|
+
# Bluetooth Core Specification Vol 2 Part D 1.3 List Of Error Codes.
|
122
|
+
command simulateGATTOperationResponse
|
123
|
+
parameters
|
124
|
+
string address
|
125
|
+
GATTOperationType type
|
126
|
+
integer code
|
127
|
+
|
128
|
+
# Simulates the response from the characteristic with |characteristicId| for a
|
129
|
+
# characteristic operation of |type|. The |code| value follows the Error
|
130
|
+
# Codes from Bluetooth Core Specification Vol 3 Part F 3.4.1.1 Error Response.
|
131
|
+
# The |data| is expected to exist when simulating a successful read operation
|
132
|
+
# response.
|
133
|
+
command simulateCharacteristicOperationResponse
|
134
|
+
parameters
|
135
|
+
string characteristicId
|
136
|
+
CharacteristicOperationType type
|
137
|
+
integer code
|
138
|
+
optional binary data
|
139
|
+
|
140
|
+
# Simulates the response from the descriptor with |descriptorId| for a
|
141
|
+
# descriptor operation of |type|. The |code| value follows the Error
|
142
|
+
# Codes from Bluetooth Core Specification Vol 3 Part F 3.4.1.1 Error Response.
|
143
|
+
# The |data| is expected to exist when simulating a successful read operation
|
144
|
+
# response.
|
145
|
+
command simulateDescriptorOperationResponse
|
146
|
+
parameters
|
147
|
+
string descriptorId
|
148
|
+
DescriptorOperationType type
|
149
|
+
integer code
|
150
|
+
optional binary data
|
151
|
+
|
152
|
+
# Adds a service with |serviceUuid| to the peripheral with |address|.
|
153
|
+
command addService
|
154
|
+
parameters
|
155
|
+
string address
|
156
|
+
string serviceUuid
|
157
|
+
returns
|
158
|
+
# An identifier that uniquely represents this service.
|
159
|
+
string serviceId
|
160
|
+
|
161
|
+
# Removes the service respresented by |serviceId| from the simulated central.
|
162
|
+
command removeService
|
163
|
+
parameters
|
164
|
+
string serviceId
|
165
|
+
|
166
|
+
# Adds a characteristic with |characteristicUuid| and |properties| to the
|
167
|
+
# service represented by |serviceId|.
|
168
|
+
command addCharacteristic
|
169
|
+
parameters
|
170
|
+
string serviceId
|
171
|
+
string characteristicUuid
|
172
|
+
CharacteristicProperties properties
|
173
|
+
returns
|
174
|
+
# An identifier that uniquely represents this characteristic.
|
175
|
+
string characteristicId
|
176
|
+
|
177
|
+
# Removes the characteristic respresented by |characteristicId| from the
|
178
|
+
# simulated central.
|
179
|
+
command removeCharacteristic
|
180
|
+
parameters
|
181
|
+
string characteristicId
|
182
|
+
|
183
|
+
# Adds a descriptor with |descriptorUuid| to the characteristic respresented
|
184
|
+
# by |characteristicId|.
|
185
|
+
command addDescriptor
|
186
|
+
parameters
|
187
|
+
string characteristicId
|
188
|
+
string descriptorUuid
|
189
|
+
returns
|
190
|
+
# An identifier that uniquely represents this descriptor.
|
191
|
+
string descriptorId
|
192
|
+
|
193
|
+
# Removes the descriptor with |descriptorId| from the simulated central.
|
194
|
+
command removeDescriptor
|
195
|
+
parameters
|
196
|
+
string descriptorId
|
197
|
+
|
198
|
+
# Simulates a GATT disconnection from the peripheral with |address|.
|
199
|
+
command simulateGATTDisconnection
|
200
|
+
parameters
|
201
|
+
string address
|
202
|
+
|
203
|
+
# Event for when a GATT operation of |type| to the peripheral with |address|
|
204
|
+
# happened.
|
205
|
+
event gattOperationReceived
|
206
|
+
parameters
|
207
|
+
string address
|
208
|
+
GATTOperationType type
|
209
|
+
|
210
|
+
# Event for when a characteristic operation of |type| to the characteristic
|
211
|
+
# respresented by |characteristicId| happened. |data| and |writeType| is
|
212
|
+
# expected to exist when |type| is write.
|
213
|
+
event characteristicOperationReceived
|
214
|
+
parameters
|
215
|
+
string characteristicId
|
216
|
+
CharacteristicOperationType type
|
217
|
+
optional binary data
|
218
|
+
optional CharacteristicWriteType writeType
|
219
|
+
|
220
|
+
# Event for when a descriptor operation of |type| to the descriptor
|
221
|
+
# respresented by |descriptorId| happened. |data| is expected to exist when
|
222
|
+
# |type| is write.
|
223
|
+
event descriptorOperationReceived
|
224
|
+
parameters
|
225
|
+
string descriptorId
|
226
|
+
DescriptorOperationType type
|
227
|
+
optional binary data
|