devtools-protocol 0.0.1681094 → 0.0.1683682
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 +72 -2
- package/package.json +1 -1
- package/pdl/domains/Ads.pdl +20 -0
- package/pdl/domains/Browser.pdl +14 -0
- package/pdl/domains/Network.pdl +3 -0
- package/pdl/domains/Page.pdl +9 -1
- package/types/protocol-mapping.d.ts +27 -0
- package/types/protocol-proxy-api.d.ts +21 -0
- package/types/protocol-tests-proxy-api.d.ts +21 -0
- package/types/protocol.d.ts +51 -1
|
@@ -688,6 +688,23 @@
|
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
690
|
]
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
"id": "AdScript",
|
|
694
|
+
"description": "An ad script.\nNote: when the script is a transitive ad script, we only fill in the\nimmediate ancestor script in the provenance's adScriptAncestry field (as its\nfirst entry), rather than filling in the full ancestry. This saves work for\nthe backend, and the frontend can reconstruct the full ancestry if\nnecessary.",
|
|
695
|
+
"type": "object",
|
|
696
|
+
"properties": [
|
|
697
|
+
{
|
|
698
|
+
"name": "scriptId",
|
|
699
|
+
"description": "The script ID.",
|
|
700
|
+
"$ref": "Runtime.ScriptId"
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
"name": "provenance",
|
|
704
|
+
"description": "The ad provenance.",
|
|
705
|
+
"$ref": "Network.AdProvenance"
|
|
706
|
+
}
|
|
707
|
+
]
|
|
691
708
|
}
|
|
692
709
|
],
|
|
693
710
|
"commands": [
|
|
@@ -700,6 +717,19 @@
|
|
|
700
717
|
"$ref": "AdMetrics"
|
|
701
718
|
}
|
|
702
719
|
]
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"name": "getAdScripts",
|
|
723
|
+
"description": "Retrieves ad scripts for the current page. To minimize payload size, this\nonly returns the newly tracked ad scripts since the last call to\ngetAdScripts (i.e., the delta).",
|
|
724
|
+
"returns": [
|
|
725
|
+
{
|
|
726
|
+
"name": "newScripts",
|
|
727
|
+
"type": "array",
|
|
728
|
+
"items": {
|
|
729
|
+
"$ref": "AdScript"
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
]
|
|
703
733
|
}
|
|
704
734
|
]
|
|
705
735
|
},
|
|
@@ -4183,6 +4213,34 @@
|
|
|
4183
4213
|
"type": "string"
|
|
4184
4214
|
}
|
|
4185
4215
|
]
|
|
4216
|
+
},
|
|
4217
|
+
{
|
|
4218
|
+
"name": "getGlobalPrivacyControl",
|
|
4219
|
+
"description": "Gets the current globally-applied privacy control status\nSee https://www.w3.org/TR/gpc/#get-global-privacy-control",
|
|
4220
|
+
"experimental": true,
|
|
4221
|
+
"returns": [
|
|
4222
|
+
{
|
|
4223
|
+
"name": "gpc",
|
|
4224
|
+
"type": "boolean"
|
|
4225
|
+
}
|
|
4226
|
+
]
|
|
4227
|
+
},
|
|
4228
|
+
{
|
|
4229
|
+
"name": "setGlobalPrivacyControl",
|
|
4230
|
+
"description": "Sets and then gets the current globally-applied privacy control status\nSee https://www.w3.org/TR/gpc/#set-global-privacy-control",
|
|
4231
|
+
"experimental": true,
|
|
4232
|
+
"parameters": [
|
|
4233
|
+
{
|
|
4234
|
+
"name": "gpc",
|
|
4235
|
+
"type": "boolean"
|
|
4236
|
+
}
|
|
4237
|
+
],
|
|
4238
|
+
"returns": [
|
|
4239
|
+
{
|
|
4240
|
+
"name": "gpc",
|
|
4241
|
+
"type": "boolean"
|
|
4242
|
+
}
|
|
4243
|
+
]
|
|
4186
4244
|
}
|
|
4187
4245
|
],
|
|
4188
4246
|
"events": [
|
|
@@ -17604,7 +17662,7 @@
|
|
|
17604
17662
|
},
|
|
17605
17663
|
{
|
|
17606
17664
|
"name": "adScriptAncestry",
|
|
17607
|
-
"description": "The script ancestry that created the ad, if any.",
|
|
17665
|
+
"description": "The script ancestry that created the ad, if any.\nNote: depending on the context, this may represent the full ancestry up\nto the root script, or it may contain only one script representing the\nimmediate ancestor.",
|
|
17608
17666
|
"optional": true,
|
|
17609
17667
|
"$ref": "AdAncestry"
|
|
17610
17668
|
}
|
|
@@ -24396,9 +24454,21 @@
|
|
|
24396
24454
|
},
|
|
24397
24455
|
{
|
|
24398
24456
|
"name": "everyNthFrame",
|
|
24399
|
-
"description": "Send every n-th frame.",
|
|
24457
|
+
"description": "Send every n-th frame. Must be a positive integer.",
|
|
24458
|
+
"optional": true,
|
|
24459
|
+
"type": "integer"
|
|
24460
|
+
},
|
|
24461
|
+
{
|
|
24462
|
+
"name": "maxFramesInFlight",
|
|
24463
|
+
"description": "Maximum number of frames sent until screencastFrameAck is required.\nDefaults to 3. Must be a positive integer.",
|
|
24400
24464
|
"optional": true,
|
|
24401
24465
|
"type": "integer"
|
|
24466
|
+
},
|
|
24467
|
+
{
|
|
24468
|
+
"name": "sendLastFrame",
|
|
24469
|
+
"description": "By default, after screencastFrameAck arrives, the next produced frame is sent.\nPassing this flag enables storing the last produced frame in memory, which is\nimmediately sent upon screencastFrameAck. This way, overall performance is\ntraded for a better latency.",
|
|
24470
|
+
"optional": true,
|
|
24471
|
+
"type": "boolean"
|
|
24402
24472
|
}
|
|
24403
24473
|
]
|
|
24404
24474
|
},
|
package/package.json
CHANGED
package/pdl/domains/Ads.pdl
CHANGED
|
@@ -48,3 +48,23 @@ experimental domain Ads
|
|
|
48
48
|
command getAdMetrics
|
|
49
49
|
returns
|
|
50
50
|
AdMetrics metrics
|
|
51
|
+
|
|
52
|
+
# An ad script.
|
|
53
|
+
# Note: when the script is a transitive ad script, we only fill in the
|
|
54
|
+
# immediate ancestor script in the provenance's adScriptAncestry field (as its
|
|
55
|
+
# first entry), rather than filling in the full ancestry. This saves work for
|
|
56
|
+
# the backend, and the frontend can reconstruct the full ancestry if
|
|
57
|
+
# necessary.
|
|
58
|
+
type AdScript extends object
|
|
59
|
+
properties
|
|
60
|
+
# The script ID.
|
|
61
|
+
Runtime.ScriptId scriptId
|
|
62
|
+
# The ad provenance.
|
|
63
|
+
Network.AdProvenance provenance
|
|
64
|
+
|
|
65
|
+
# Retrieves ad scripts for the current page. To minimize payload size, this
|
|
66
|
+
# only returns the newly tracked ad scripts since the last call to
|
|
67
|
+
# getAdScripts (i.e., the delta).
|
|
68
|
+
command getAdScripts
|
|
69
|
+
returns
|
|
70
|
+
array of AdScript newScripts
|
package/pdl/domains/Browser.pdl
CHANGED
|
@@ -332,3 +332,17 @@ domain Browser
|
|
|
332
332
|
command addPrivacySandboxEnrollmentOverride
|
|
333
333
|
parameters
|
|
334
334
|
string url
|
|
335
|
+
|
|
336
|
+
# Gets the current globally-applied privacy control status
|
|
337
|
+
# See https://www.w3.org/TR/gpc/#get-global-privacy-control
|
|
338
|
+
experimental command getGlobalPrivacyControl
|
|
339
|
+
returns
|
|
340
|
+
boolean gpc
|
|
341
|
+
|
|
342
|
+
# Sets and then gets the current globally-applied privacy control status
|
|
343
|
+
# See https://www.w3.org/TR/gpc/#set-global-privacy-control
|
|
344
|
+
experimental command setGlobalPrivacyControl
|
|
345
|
+
parameters
|
|
346
|
+
boolean gpc
|
|
347
|
+
returns
|
|
348
|
+
boolean gpc
|
package/pdl/domains/Network.pdl
CHANGED
|
@@ -1701,6 +1701,9 @@ domain Network
|
|
|
1701
1701
|
# The filterlist rule that matched, if any.
|
|
1702
1702
|
optional string filterlistRule
|
|
1703
1703
|
# The script ancestry that created the ad, if any.
|
|
1704
|
+
# Note: depending on the context, this may represent the full ancestry up
|
|
1705
|
+
# to the root script, or it may contain only one script representing the
|
|
1706
|
+
# immediate ancestor.
|
|
1704
1707
|
optional AdAncestry adScriptAncestry
|
|
1705
1708
|
|
|
1706
1709
|
# Fired when additional information about a requestWillBeSent event is available from the
|
package/pdl/domains/Page.pdl
CHANGED
|
@@ -1170,8 +1170,16 @@ domain Page
|
|
|
1170
1170
|
optional integer maxWidth
|
|
1171
1171
|
# Maximum screenshot height.
|
|
1172
1172
|
optional integer maxHeight
|
|
1173
|
-
# Send every n-th frame.
|
|
1173
|
+
# Send every n-th frame. Must be a positive integer.
|
|
1174
1174
|
optional integer everyNthFrame
|
|
1175
|
+
# Maximum number of frames sent until screencastFrameAck is required.
|
|
1176
|
+
# Defaults to 3. Must be a positive integer.
|
|
1177
|
+
optional integer maxFramesInFlight
|
|
1178
|
+
# By default, after screencastFrameAck arrives, the next produced frame is sent.
|
|
1179
|
+
# Passing this flag enables storing the last produced frame in memory, which is
|
|
1180
|
+
# immediately sent upon screencastFrameAck. This way, overall performance is
|
|
1181
|
+
# traded for a better latency.
|
|
1182
|
+
optional boolean sendLastFrame
|
|
1175
1183
|
|
|
1176
1184
|
# Starts screencast video recording.
|
|
1177
1185
|
experimental command startScreenRecording
|
|
@@ -1756,6 +1756,15 @@ export namespace ProtocolMapping {
|
|
|
1756
1756
|
paramsType: [];
|
|
1757
1757
|
returnType: Protocol.Ads.GetAdMetricsResponse;
|
|
1758
1758
|
};
|
|
1759
|
+
/**
|
|
1760
|
+
* Retrieves ad scripts for the current page. To minimize payload size, this
|
|
1761
|
+
* only returns the newly tracked ad scripts since the last call to
|
|
1762
|
+
* getAdScripts (i.e., the delta).
|
|
1763
|
+
*/
|
|
1764
|
+
'Ads.getAdScripts': {
|
|
1765
|
+
paramsType: [];
|
|
1766
|
+
returnType: Protocol.Ads.GetAdScriptsResponse;
|
|
1767
|
+
};
|
|
1759
1768
|
/**
|
|
1760
1769
|
* Disables animation domain notifications.
|
|
1761
1770
|
*/
|
|
@@ -2186,6 +2195,24 @@ export namespace ProtocolMapping {
|
|
|
2186
2195
|
paramsType: [Protocol.Browser.AddPrivacySandboxEnrollmentOverrideRequest];
|
|
2187
2196
|
returnType: void;
|
|
2188
2197
|
};
|
|
2198
|
+
/**
|
|
2199
|
+
* Gets the current globally-applied privacy control status
|
|
2200
|
+
* See https://www.w3.org/TR/gpc/#get-global-privacy-control
|
|
2201
|
+
* @experimental
|
|
2202
|
+
*/
|
|
2203
|
+
'Browser.getGlobalPrivacyControl': {
|
|
2204
|
+
paramsType: [];
|
|
2205
|
+
returnType: Protocol.Browser.GetGlobalPrivacyControlResponse;
|
|
2206
|
+
};
|
|
2207
|
+
/**
|
|
2208
|
+
* Sets and then gets the current globally-applied privacy control status
|
|
2209
|
+
* See https://www.w3.org/TR/gpc/#set-global-privacy-control
|
|
2210
|
+
* @experimental
|
|
2211
|
+
*/
|
|
2212
|
+
'Browser.setGlobalPrivacyControl': {
|
|
2213
|
+
paramsType: [Protocol.Browser.SetGlobalPrivacyControlRequest];
|
|
2214
|
+
returnType: Protocol.Browser.SetGlobalPrivacyControlResponse;
|
|
2215
|
+
};
|
|
2189
2216
|
/**
|
|
2190
2217
|
* Inserts a new rule with the given `ruleText` in a stylesheet with given `styleSheetId`, at the
|
|
2191
2218
|
* position specified by `location`.
|
|
@@ -761,6 +761,13 @@ export namespace ProtocolProxyApi {
|
|
|
761
761
|
*/
|
|
762
762
|
getAdMetrics(): Promise<Protocol.Ads.GetAdMetricsResponse>;
|
|
763
763
|
|
|
764
|
+
/**
|
|
765
|
+
* Retrieves ad scripts for the current page. To minimize payload size, this
|
|
766
|
+
* only returns the newly tracked ad scripts since the last call to
|
|
767
|
+
* getAdScripts (i.e., the delta).
|
|
768
|
+
*/
|
|
769
|
+
getAdScripts(): Promise<Protocol.Ads.GetAdScriptsResponse>;
|
|
770
|
+
|
|
764
771
|
}
|
|
765
772
|
|
|
766
773
|
export interface AnimationApi {
|
|
@@ -1155,6 +1162,20 @@ export namespace ProtocolProxyApi {
|
|
|
1155
1162
|
*/
|
|
1156
1163
|
addPrivacySandboxEnrollmentOverride(params: Protocol.Browser.AddPrivacySandboxEnrollmentOverrideRequest): Promise<void>;
|
|
1157
1164
|
|
|
1165
|
+
/**
|
|
1166
|
+
* Gets the current globally-applied privacy control status
|
|
1167
|
+
* See https://www.w3.org/TR/gpc/#get-global-privacy-control
|
|
1168
|
+
* @experimental
|
|
1169
|
+
*/
|
|
1170
|
+
getGlobalPrivacyControl(): Promise<Protocol.Browser.GetGlobalPrivacyControlResponse>;
|
|
1171
|
+
|
|
1172
|
+
/**
|
|
1173
|
+
* Sets and then gets the current globally-applied privacy control status
|
|
1174
|
+
* See https://www.w3.org/TR/gpc/#set-global-privacy-control
|
|
1175
|
+
* @experimental
|
|
1176
|
+
*/
|
|
1177
|
+
setGlobalPrivacyControl(params: Protocol.Browser.SetGlobalPrivacyControlRequest): Promise<Protocol.Browser.SetGlobalPrivacyControlResponse>;
|
|
1178
|
+
|
|
1158
1179
|
/**
|
|
1159
1180
|
* Fired when page is about to start a download.
|
|
1160
1181
|
* @experimental
|
|
@@ -809,6 +809,13 @@ export namespace ProtocolTestsProxyApi {
|
|
|
809
809
|
*/
|
|
810
810
|
getAdMetrics(): Promise<{id: number, result: Protocol.Ads.GetAdMetricsResponse, sessionId: string}>;
|
|
811
811
|
|
|
812
|
+
/**
|
|
813
|
+
* Retrieves ad scripts for the current page. To minimize payload size, this
|
|
814
|
+
* only returns the newly tracked ad scripts since the last call to
|
|
815
|
+
* getAdScripts (i.e., the delta).
|
|
816
|
+
*/
|
|
817
|
+
getAdScripts(): Promise<{id: number, result: Protocol.Ads.GetAdScriptsResponse, sessionId: string}>;
|
|
818
|
+
|
|
812
819
|
}
|
|
813
820
|
|
|
814
821
|
export interface AnimationApi {
|
|
@@ -1225,6 +1232,20 @@ export namespace ProtocolTestsProxyApi {
|
|
|
1225
1232
|
*/
|
|
1226
1233
|
addPrivacySandboxEnrollmentOverride(params: Protocol.Browser.AddPrivacySandboxEnrollmentOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
|
1227
1234
|
|
|
1235
|
+
/**
|
|
1236
|
+
* Gets the current globally-applied privacy control status
|
|
1237
|
+
* See https://www.w3.org/TR/gpc/#get-global-privacy-control
|
|
1238
|
+
* @experimental
|
|
1239
|
+
*/
|
|
1240
|
+
getGlobalPrivacyControl(): Promise<{id: number, result: Protocol.Browser.GetGlobalPrivacyControlResponse, sessionId: string}>;
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* Sets and then gets the current globally-applied privacy control status
|
|
1244
|
+
* See https://www.w3.org/TR/gpc/#set-global-privacy-control
|
|
1245
|
+
* @experimental
|
|
1246
|
+
*/
|
|
1247
|
+
setGlobalPrivacyControl(params: Protocol.Browser.SetGlobalPrivacyControlRequest): Promise<{id: number, result: Protocol.Browser.SetGlobalPrivacyControlResponse, sessionId: string}>;
|
|
1248
|
+
|
|
1228
1249
|
/**
|
|
1229
1250
|
* Fired when page is about to start a download.
|
|
1230
1251
|
* @experimental
|
package/types/protocol.d.ts
CHANGED
|
@@ -3193,9 +3193,32 @@ export namespace Protocol {
|
|
|
3193
3193
|
removeAdFrames: Page.FrameId[];
|
|
3194
3194
|
}
|
|
3195
3195
|
|
|
3196
|
+
/**
|
|
3197
|
+
* An ad script.
|
|
3198
|
+
* Note: when the script is a transitive ad script, we only fill in the
|
|
3199
|
+
* immediate ancestor script in the provenance's adScriptAncestry field (as its
|
|
3200
|
+
* first entry), rather than filling in the full ancestry. This saves work for
|
|
3201
|
+
* the backend, and the frontend can reconstruct the full ancestry if
|
|
3202
|
+
* necessary.
|
|
3203
|
+
*/
|
|
3204
|
+
export interface AdScript {
|
|
3205
|
+
/**
|
|
3206
|
+
* The script ID.
|
|
3207
|
+
*/
|
|
3208
|
+
scriptId: Runtime.ScriptId;
|
|
3209
|
+
/**
|
|
3210
|
+
* The ad provenance.
|
|
3211
|
+
*/
|
|
3212
|
+
provenance: Network.AdProvenance;
|
|
3213
|
+
}
|
|
3214
|
+
|
|
3196
3215
|
export interface GetAdMetricsResponse {
|
|
3197
3216
|
metrics: AdMetrics;
|
|
3198
3217
|
}
|
|
3218
|
+
|
|
3219
|
+
export interface GetAdScriptsResponse {
|
|
3220
|
+
newScripts: AdScript[];
|
|
3221
|
+
}
|
|
3199
3222
|
}
|
|
3200
3223
|
|
|
3201
3224
|
/**
|
|
@@ -4997,6 +5020,18 @@ export namespace Protocol {
|
|
|
4997
5020
|
url: string;
|
|
4998
5021
|
}
|
|
4999
5022
|
|
|
5023
|
+
export interface GetGlobalPrivacyControlResponse {
|
|
5024
|
+
gpc: boolean;
|
|
5025
|
+
}
|
|
5026
|
+
|
|
5027
|
+
export interface SetGlobalPrivacyControlRequest {
|
|
5028
|
+
gpc: boolean;
|
|
5029
|
+
}
|
|
5030
|
+
|
|
5031
|
+
export interface SetGlobalPrivacyControlResponse {
|
|
5032
|
+
gpc: boolean;
|
|
5033
|
+
}
|
|
5034
|
+
|
|
5000
5035
|
/**
|
|
5001
5036
|
* Fired when page is about to start a download.
|
|
5002
5037
|
* @experimental
|
|
@@ -13887,6 +13922,9 @@ export namespace Protocol {
|
|
|
13887
13922
|
filterlistRule?: string;
|
|
13888
13923
|
/**
|
|
13889
13924
|
* The script ancestry that created the ad, if any.
|
|
13925
|
+
* Note: depending on the context, this may represent the full ancestry up
|
|
13926
|
+
* to the root script, or it may contain only one script representing the
|
|
13927
|
+
* immediate ancestor.
|
|
13890
13928
|
*/
|
|
13891
13929
|
adScriptAncestry?: AdAncestry;
|
|
13892
13930
|
}
|
|
@@ -18167,9 +18205,21 @@ export namespace Protocol {
|
|
|
18167
18205
|
*/
|
|
18168
18206
|
maxHeight?: integer;
|
|
18169
18207
|
/**
|
|
18170
|
-
* Send every n-th frame.
|
|
18208
|
+
* Send every n-th frame. Must be a positive integer.
|
|
18171
18209
|
*/
|
|
18172
18210
|
everyNthFrame?: integer;
|
|
18211
|
+
/**
|
|
18212
|
+
* Maximum number of frames sent until screencastFrameAck is required.
|
|
18213
|
+
* Defaults to 3. Must be a positive integer.
|
|
18214
|
+
*/
|
|
18215
|
+
maxFramesInFlight?: integer;
|
|
18216
|
+
/**
|
|
18217
|
+
* By default, after screencastFrameAck arrives, the next produced frame is sent.
|
|
18218
|
+
* Passing this flag enables storing the last produced frame in memory, which is
|
|
18219
|
+
* immediately sent upon screencastFrameAck. This way, overall performance is
|
|
18220
|
+
* traded for a better latency.
|
|
18221
|
+
*/
|
|
18222
|
+
sendLastFrame?: boolean;
|
|
18173
18223
|
}
|
|
18174
18224
|
|
|
18175
18225
|
export interface StartScreenRecordingRequest {
|