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.
Files changed (55) hide show
  1. package/json/browser_protocol.json +17960 -17689
  2. package/json/js_protocol.json +6 -0
  3. package/package.json +1 -1
  4. package/pdl/browser_protocol.pdl +47 -13824
  5. package/pdl/domains/Accessibility.pdl +290 -0
  6. package/pdl/domains/Animation.pdl +195 -0
  7. package/pdl/domains/Audits.pdl +755 -0
  8. package/pdl/domains/Autofill.pdl +106 -0
  9. package/pdl/domains/BackgroundService.pdl +77 -0
  10. package/pdl/domains/BluetoothEmulation.pdl +227 -0
  11. package/pdl/domains/Browser.pdl +345 -0
  12. package/pdl/domains/CSS.pdl +996 -0
  13. package/pdl/domains/CacheStorage.pdl +125 -0
  14. package/pdl/domains/Cast.pdl +62 -0
  15. package/pdl/domains/DOM.pdl +932 -0
  16. package/pdl/domains/DOMDebugger.pdl +128 -0
  17. package/pdl/domains/DOMSnapshot.pdl +319 -0
  18. package/pdl/domains/DOMStorage.pdl +72 -0
  19. package/pdl/domains/DeviceAccess.pdl +43 -0
  20. package/pdl/domains/DeviceOrientation.pdl +20 -0
  21. package/pdl/domains/Emulation.pdl +608 -0
  22. package/pdl/domains/EventBreakpoints.pdl +24 -0
  23. package/pdl/domains/Extensions.pdl +72 -0
  24. package/pdl/domains/FedCm.pdl +100 -0
  25. package/pdl/domains/Fetch.pdl +251 -0
  26. package/pdl/domains/FileSystem.pdl +41 -0
  27. package/pdl/domains/HeadlessExperimental.pdl +56 -0
  28. package/pdl/domains/IO.pdl +45 -0
  29. package/pdl/domains/IndexedDB.pdl +226 -0
  30. package/pdl/domains/Input.pdl +336 -0
  31. package/pdl/domains/Inspector.pdl +25 -0
  32. package/pdl/domains/LayerTree.pdl +178 -0
  33. package/pdl/domains/Log.pdl +93 -0
  34. package/pdl/domains/Media.pdl +106 -0
  35. package/pdl/domains/Memory.pdl +112 -0
  36. package/pdl/domains/Network.pdl +2039 -0
  37. package/pdl/domains/Overlay.pdl +498 -0
  38. package/pdl/domains/PWA.pdl +142 -0
  39. package/pdl/domains/Page.pdl +1767 -0
  40. package/pdl/domains/Performance.pdl +54 -0
  41. package/pdl/domains/PerformanceTimeline.pdl +71 -0
  42. package/pdl/domains/Preload.pdl +290 -0
  43. package/pdl/domains/Security.pdl +196 -0
  44. package/pdl/domains/ServiceWorker.pdl +121 -0
  45. package/pdl/domains/Storage.pdl +913 -0
  46. package/pdl/domains/SystemInfo.pdl +145 -0
  47. package/pdl/domains/Target.pdl +327 -0
  48. package/pdl/domains/Tethering.pdl +28 -0
  49. package/pdl/domains/Tracing.pdl +157 -0
  50. package/pdl/domains/WebAudio.pdl +205 -0
  51. package/pdl/domains/WebAuthn.pdl +230 -0
  52. package/types/protocol-mapping.d.ts +992 -615
  53. package/types/protocol-proxy-api.d.ts +543 -522
  54. package/types/protocol-tests-proxy-api.d.ts +628 -607
  55. package/types/protocol.d.ts +8059 -7903
@@ -0,0 +1,205 @@
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 inspection of Web Audio API.
8
+ # https://webaudio.github.io/web-audio-api/
9
+ experimental domain WebAudio
10
+
11
+ # An unique ID for a graph object (AudioContext, AudioNode, AudioParam) in Web Audio API
12
+ type GraphObjectId extends string
13
+
14
+ # Enum of BaseAudioContext types
15
+ type ContextType extends string
16
+ enum
17
+ realtime
18
+ offline
19
+
20
+ # Enum of AudioContextState from the spec
21
+ type ContextState extends string
22
+ enum
23
+ suspended
24
+ running
25
+ closed
26
+ interrupted
27
+
28
+ # Enum of AudioNode types
29
+ type NodeType extends string
30
+
31
+ # Enum of AudioNode::ChannelCountMode from the spec
32
+ type ChannelCountMode extends string
33
+ enum
34
+ clamped-max
35
+ explicit
36
+ max
37
+
38
+ # Enum of AudioNode::ChannelInterpretation from the spec
39
+ type ChannelInterpretation extends string
40
+ enum
41
+ discrete
42
+ speakers
43
+
44
+ # Enum of AudioParam types
45
+ type ParamType extends string
46
+
47
+ # Enum of AudioParam::AutomationRate from the spec
48
+ type AutomationRate extends string
49
+ enum
50
+ a-rate
51
+ k-rate
52
+
53
+ # Fields in AudioContext that change in real-time.
54
+ type ContextRealtimeData extends object
55
+ properties
56
+ # The current context time in second in BaseAudioContext.
57
+ number currentTime
58
+ # The time spent on rendering graph divided by render quantum duration,
59
+ # and multiplied by 100. 100 means the audio renderer reached the full
60
+ # capacity and glitch may occur.
61
+ number renderCapacity
62
+ # A running mean of callback interval.
63
+ number callbackIntervalMean
64
+ # A running variance of callback interval.
65
+ number callbackIntervalVariance
66
+
67
+ # Protocol object for BaseAudioContext
68
+ type BaseAudioContext extends object
69
+ properties
70
+ GraphObjectId contextId
71
+ ContextType contextType
72
+ ContextState contextState
73
+ optional ContextRealtimeData realtimeData
74
+ # Platform-dependent callback buffer size.
75
+ number callbackBufferSize
76
+ # Number of output channels supported by audio hardware in use.
77
+ number maxOutputChannelCount
78
+ # Context sample rate.
79
+ number sampleRate
80
+
81
+ # Protocol object for AudioListener
82
+ type AudioListener extends object
83
+ properties
84
+ GraphObjectId listenerId
85
+ GraphObjectId contextId
86
+
87
+ # Protocol object for AudioNode
88
+ type AudioNode extends object
89
+ properties
90
+ GraphObjectId nodeId
91
+ GraphObjectId contextId
92
+ NodeType nodeType
93
+ number numberOfInputs
94
+ number numberOfOutputs
95
+ number channelCount
96
+ ChannelCountMode channelCountMode
97
+ ChannelInterpretation channelInterpretation
98
+
99
+ # Protocol object for AudioParam
100
+ type AudioParam extends object
101
+ properties
102
+ GraphObjectId paramId
103
+ GraphObjectId nodeId
104
+ GraphObjectId contextId
105
+ ParamType paramType
106
+ AutomationRate rate
107
+ number defaultValue
108
+ number minValue
109
+ number maxValue
110
+
111
+ # Enables the WebAudio domain and starts sending context lifetime events.
112
+ command enable
113
+
114
+ # Disables the WebAudio domain.
115
+ command disable
116
+
117
+ # Fetch the realtime data from the registered contexts.
118
+ command getRealtimeData
119
+ parameters
120
+ GraphObjectId contextId
121
+ returns
122
+ ContextRealtimeData realtimeData
123
+
124
+ # Notifies that a new BaseAudioContext has been created.
125
+ event contextCreated
126
+ parameters
127
+ BaseAudioContext context
128
+
129
+ # Notifies that an existing BaseAudioContext will be destroyed.
130
+ event contextWillBeDestroyed
131
+ parameters
132
+ GraphObjectId contextId
133
+
134
+ # Notifies that existing BaseAudioContext has changed some properties (id stays the same)..
135
+ event contextChanged
136
+ parameters
137
+ BaseAudioContext context
138
+
139
+ # Notifies that the construction of an AudioListener has finished.
140
+ event audioListenerCreated
141
+ parameters
142
+ AudioListener listener
143
+
144
+ # Notifies that a new AudioListener has been created.
145
+ event audioListenerWillBeDestroyed
146
+ parameters
147
+ GraphObjectId contextId
148
+ GraphObjectId listenerId
149
+
150
+ # Notifies that a new AudioNode has been created.
151
+ event audioNodeCreated
152
+ parameters
153
+ AudioNode node
154
+
155
+ # Notifies that an existing AudioNode has been destroyed.
156
+ event audioNodeWillBeDestroyed
157
+ parameters
158
+ GraphObjectId contextId
159
+ GraphObjectId nodeId
160
+
161
+ # Notifies that a new AudioParam has been created.
162
+ event audioParamCreated
163
+ parameters
164
+ AudioParam param
165
+
166
+ # Notifies that an existing AudioParam has been destroyed.
167
+ event audioParamWillBeDestroyed
168
+ parameters
169
+ GraphObjectId contextId
170
+ GraphObjectId nodeId
171
+ GraphObjectId paramId
172
+
173
+ # Notifies that two AudioNodes are connected.
174
+ event nodesConnected
175
+ parameters
176
+ GraphObjectId contextId
177
+ GraphObjectId sourceId
178
+ GraphObjectId destinationId
179
+ optional number sourceOutputIndex
180
+ optional number destinationInputIndex
181
+
182
+ # Notifies that AudioNodes are disconnected. The destination can be null, and it means all the outgoing connections from the source are disconnected.
183
+ event nodesDisconnected
184
+ parameters
185
+ GraphObjectId contextId
186
+ GraphObjectId sourceId
187
+ GraphObjectId destinationId
188
+ optional number sourceOutputIndex
189
+ optional number destinationInputIndex
190
+
191
+ # Notifies that an AudioNode is connected to an AudioParam.
192
+ event nodeParamConnected
193
+ parameters
194
+ GraphObjectId contextId
195
+ GraphObjectId sourceId
196
+ GraphObjectId destinationId
197
+ optional number sourceOutputIndex
198
+
199
+ # Notifies that an AudioNode is disconnected to an AudioParam.
200
+ event nodeParamDisconnected
201
+ parameters
202
+ GraphObjectId contextId
203
+ GraphObjectId sourceId
204
+ GraphObjectId destinationId
205
+ optional number sourceOutputIndex
@@ -0,0 +1,230 @@
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 authenticators to test the WebAuthn
8
+ # API.
9
+ experimental domain WebAuthn
10
+ type AuthenticatorId extends string
11
+
12
+ type AuthenticatorProtocol extends string
13
+ enum
14
+ # Universal 2nd Factor.
15
+ u2f
16
+ # Client To Authenticator Protocol 2.
17
+ ctap2
18
+
19
+ type Ctap2Version extends string
20
+ enum
21
+ ctap2_0
22
+ ctap2_1
23
+
24
+ type AuthenticatorTransport extends string
25
+ enum
26
+ # Cross-Platform authenticator attachments:
27
+ usb
28
+ nfc
29
+ ble
30
+ cable
31
+ # Platform authenticator attachment:
32
+ internal
33
+
34
+ type VirtualAuthenticatorOptions extends object
35
+ properties
36
+ AuthenticatorProtocol protocol
37
+ # Defaults to ctap2_0. Ignored if |protocol| == u2f.
38
+ optional Ctap2Version ctap2Version
39
+ AuthenticatorTransport transport
40
+ # Defaults to false.
41
+ optional boolean hasResidentKey
42
+ # Defaults to false.
43
+ optional boolean hasUserVerification
44
+ # If set to true, the authenticator will support the largeBlob extension.
45
+ # https://w3c.github.io/webauthn#largeBlob
46
+ # Defaults to false.
47
+ optional boolean hasLargeBlob
48
+ # If set to true, the authenticator will support the credBlob extension.
49
+ # https://fidoalliance.org/specs/fido-v2.1-rd-20201208/fido-client-to-authenticator-protocol-v2.1-rd-20201208.html#sctn-credBlob-extension
50
+ # Defaults to false.
51
+ optional boolean hasCredBlob
52
+ # If set to true, the authenticator will support the minPinLength extension.
53
+ # https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#sctn-minpinlength-extension
54
+ # Defaults to false.
55
+ optional boolean hasMinPinLength
56
+ # If set to true, the authenticator will support the prf extension.
57
+ # https://w3c.github.io/webauthn/#prf-extension
58
+ # Defaults to false.
59
+ optional boolean hasPrf
60
+ # If set to true, tests of user presence will succeed immediately.
61
+ # Otherwise, they will not be resolved. Defaults to true.
62
+ optional boolean automaticPresenceSimulation
63
+ # Sets whether User Verification succeeds or fails for an authenticator.
64
+ # Defaults to false.
65
+ optional boolean isUserVerified
66
+ # Credentials created by this authenticator will have the backup
67
+ # eligibility (BE) flag set to this value. Defaults to false.
68
+ # https://w3c.github.io/webauthn/#sctn-credential-backup
69
+ optional boolean defaultBackupEligibility
70
+ # Credentials created by this authenticator will have the backup state
71
+ # (BS) flag set to this value. Defaults to false.
72
+ # https://w3c.github.io/webauthn/#sctn-credential-backup
73
+ optional boolean defaultBackupState
74
+
75
+ type Credential extends object
76
+ properties
77
+ binary credentialId
78
+ boolean isResidentCredential
79
+ # Relying Party ID the credential is scoped to. Must be set when adding a
80
+ # credential.
81
+ optional string rpId
82
+ # The ECDSA P-256 private key in PKCS#8 format.
83
+ binary privateKey
84
+ # An opaque byte sequence with a maximum size of 64 bytes mapping the
85
+ # credential to a specific user.
86
+ optional binary userHandle
87
+ # Signature counter. This is incremented by one for each successful
88
+ # assertion.
89
+ # See https://w3c.github.io/webauthn/#signature-counter
90
+ integer signCount
91
+ # The large blob associated with the credential.
92
+ # See https://w3c.github.io/webauthn/#sctn-large-blob-extension
93
+ optional binary largeBlob
94
+ # Assertions returned by this credential will have the backup eligibility
95
+ # (BE) flag set to this value. Defaults to the authenticator's
96
+ # defaultBackupEligibility value.
97
+ optional boolean backupEligibility
98
+ # Assertions returned by this credential will have the backup state (BS)
99
+ # flag set to this value. Defaults to the authenticator's
100
+ # defaultBackupState value.
101
+ optional boolean backupState
102
+ # The credential's user.name property. Equivalent to empty if not set.
103
+ # https://w3c.github.io/webauthn/#dom-publickeycredentialentity-name
104
+ optional string userName
105
+ # The credential's user.displayName property. Equivalent to empty if
106
+ # not set.
107
+ # https://w3c.github.io/webauthn/#dom-publickeycredentialuserentity-displayname
108
+ optional string userDisplayName
109
+
110
+ # Enable the WebAuthn domain and start intercepting credential storage and
111
+ # retrieval with a virtual authenticator.
112
+ command enable
113
+ parameters
114
+ # Whether to enable the WebAuthn user interface. Enabling the UI is
115
+ # recommended for debugging and demo purposes, as it is closer to the real
116
+ # experience. Disabling the UI is recommended for automated testing.
117
+ # Supported at the embedder's discretion if UI is available.
118
+ # Defaults to false.
119
+ optional boolean enableUI
120
+
121
+ # Disable the WebAuthn domain.
122
+ command disable
123
+
124
+ # Creates and adds a virtual authenticator.
125
+ command addVirtualAuthenticator
126
+ parameters
127
+ VirtualAuthenticatorOptions options
128
+ returns
129
+ AuthenticatorId authenticatorId
130
+
131
+ # Resets parameters isBogusSignature, isBadUV, isBadUP to false if they are not present.
132
+ command setResponseOverrideBits
133
+ parameters
134
+ AuthenticatorId authenticatorId
135
+ # If isBogusSignature is set, overrides the signature in the authenticator response to be zero.
136
+ # Defaults to false.
137
+ optional boolean isBogusSignature
138
+ # If isBadUV is set, overrides the UV bit in the flags in the authenticator response to
139
+ # be zero. Defaults to false.
140
+ optional boolean isBadUV
141
+ # If isBadUP is set, overrides the UP bit in the flags in the authenticator response to
142
+ # be zero. Defaults to false.
143
+ optional boolean isBadUP
144
+
145
+ # Removes the given authenticator.
146
+ command removeVirtualAuthenticator
147
+ parameters
148
+ AuthenticatorId authenticatorId
149
+
150
+ # Adds the credential to the specified authenticator.
151
+ command addCredential
152
+ parameters
153
+ AuthenticatorId authenticatorId
154
+ Credential credential
155
+
156
+ # Returns a single credential stored in the given virtual authenticator that
157
+ # matches the credential ID.
158
+ command getCredential
159
+ parameters
160
+ AuthenticatorId authenticatorId
161
+ binary credentialId
162
+ returns
163
+ Credential credential
164
+
165
+ # Returns all the credentials stored in the given virtual authenticator.
166
+ command getCredentials
167
+ parameters
168
+ AuthenticatorId authenticatorId
169
+ returns
170
+ array of Credential credentials
171
+
172
+ # Removes a credential from the authenticator.
173
+ command removeCredential
174
+ parameters
175
+ AuthenticatorId authenticatorId
176
+ binary credentialId
177
+
178
+ # Clears all the credentials from the specified device.
179
+ command clearCredentials
180
+ parameters
181
+ AuthenticatorId authenticatorId
182
+
183
+ # Sets whether User Verification succeeds or fails for an authenticator.
184
+ # The default is true.
185
+ command setUserVerified
186
+ parameters
187
+ AuthenticatorId authenticatorId
188
+ boolean isUserVerified
189
+
190
+ # Sets whether tests of user presence will succeed immediately (if true) or fail to resolve (if false) for an authenticator.
191
+ # The default is true.
192
+ command setAutomaticPresenceSimulation
193
+ parameters
194
+ AuthenticatorId authenticatorId
195
+ boolean enabled
196
+
197
+ # Allows setting credential properties.
198
+ # https://w3c.github.io/webauthn/#sctn-automation-set-credential-properties
199
+ command setCredentialProperties
200
+ parameters
201
+ AuthenticatorId authenticatorId
202
+ binary credentialId
203
+ optional boolean backupEligibility
204
+ optional boolean backupState
205
+
206
+ # Triggered when a credential is added to an authenticator.
207
+ event credentialAdded
208
+ parameters
209
+ AuthenticatorId authenticatorId
210
+ Credential credential
211
+
212
+ # Triggered when a credential is deleted, e.g. through
213
+ # PublicKeyCredential.signalUnknownCredential().
214
+ event credentialDeleted
215
+ parameters
216
+ AuthenticatorId authenticatorId
217
+ binary credentialId
218
+
219
+ # Triggered when a credential is updated, e.g. through
220
+ # PublicKeyCredential.signalCurrentUserDetails().
221
+ event credentialUpdated
222
+ parameters
223
+ AuthenticatorId authenticatorId
224
+ Credential credential
225
+
226
+ # Triggered when a credential is used in a webauthn assertion.
227
+ event credentialAsserted
228
+ parameters
229
+ AuthenticatorId authenticatorId
230
+ Credential credential