devtools-protocol 0.0.1503134 → 0.0.1504847
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 +46 -7
- package/package.json +1 -1
- package/pdl/domains/Media.pdl +9 -4
- package/pdl/domains/Network.pdl +19 -0
- package/types/protocol-mapping.d.ts +12 -3
- package/types/protocol-proxy-api.d.ts +10 -3
- package/types/protocol-tests-proxy-api.d.ts +12 -5
- package/types/protocol.d.ts +23 -4
@@ -14435,6 +14435,21 @@
|
|
14435
14435
|
"type": "object"
|
14436
14436
|
}
|
14437
14437
|
]
|
14438
|
+
},
|
14439
|
+
{
|
14440
|
+
"id": "Player",
|
14441
|
+
"type": "object",
|
14442
|
+
"properties": [
|
14443
|
+
{
|
14444
|
+
"name": "playerId",
|
14445
|
+
"$ref": "PlayerId"
|
14446
|
+
},
|
14447
|
+
{
|
14448
|
+
"name": "domNodeId",
|
14449
|
+
"optional": true,
|
14450
|
+
"$ref": "DOM.BackendNodeId"
|
14451
|
+
}
|
14452
|
+
]
|
14438
14453
|
}
|
14439
14454
|
],
|
14440
14455
|
"events": [
|
@@ -14507,15 +14522,12 @@
|
|
14507
14522
|
]
|
14508
14523
|
},
|
14509
14524
|
{
|
14510
|
-
"name": "
|
14511
|
-
"description": "Called whenever a player is created, or when a new agent joins and receives\na list of active players. If an agent is restored, it will receive
|
14525
|
+
"name": "playerCreated",
|
14526
|
+
"description": "Called whenever a player is created, or when a new agent joins and receives\na list of active players. If an agent is restored, it will receive one\nevent for each active player.",
|
14512
14527
|
"parameters": [
|
14513
14528
|
{
|
14514
|
-
"name": "
|
14515
|
-
"
|
14516
|
-
"items": {
|
14517
|
-
"$ref": "PlayerId"
|
14518
|
-
}
|
14529
|
+
"name": "player",
|
14530
|
+
"$ref": "Player"
|
14519
14531
|
}
|
14520
14532
|
]
|
14521
14533
|
}
|
@@ -15301,6 +15313,21 @@
|
|
15301
15313
|
"sri-message-signature-mismatch"
|
15302
15314
|
]
|
15303
15315
|
},
|
15316
|
+
{
|
15317
|
+
"id": "IpProxyStatus",
|
15318
|
+
"description": "Sets Controls for IP Proxy of requests.\nPage reload is required before the new behavior will be observed.",
|
15319
|
+
"experimental": true,
|
15320
|
+
"type": "string",
|
15321
|
+
"enum": [
|
15322
|
+
"Available",
|
15323
|
+
"FeatureNotEnabled",
|
15324
|
+
"MaskedDomainListNotEnabled",
|
15325
|
+
"MaskedDomainListNotPopulated",
|
15326
|
+
"AuthTokensUnavailable",
|
15327
|
+
"Unavailable",
|
15328
|
+
"BypassedByDevTools"
|
15329
|
+
]
|
15330
|
+
},
|
15304
15331
|
{
|
15305
15332
|
"id": "CorsError",
|
15306
15333
|
"description": "The reason why request was blocked.",
|
@@ -16867,6 +16894,18 @@
|
|
16867
16894
|
}
|
16868
16895
|
],
|
16869
16896
|
"commands": [
|
16897
|
+
{
|
16898
|
+
"name": "getIPProtectionProxyStatus",
|
16899
|
+
"description": "Returns enum representing if IP Proxy of requests is available\nor reason it is not active.",
|
16900
|
+
"experimental": true,
|
16901
|
+
"returns": [
|
16902
|
+
{
|
16903
|
+
"name": "status",
|
16904
|
+
"description": "Whether IP proxy is available",
|
16905
|
+
"$ref": "IpProxyStatus"
|
16906
|
+
}
|
16907
|
+
]
|
16908
|
+
},
|
16870
16909
|
{
|
16871
16910
|
"name": "setAcceptedEncodings",
|
16872
16911
|
"description": "Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted.",
|
package/package.json
CHANGED
package/pdl/domains/Media.pdl
CHANGED
@@ -66,6 +66,11 @@ experimental domain Media
|
|
66
66
|
# Extra data attached to an error, such as an HRESULT, Video Codec, etc.
|
67
67
|
object data
|
68
68
|
|
69
|
+
type Player extends object
|
70
|
+
properties
|
71
|
+
PlayerId playerId
|
72
|
+
optional DOM.BackendNodeId domNodeId
|
73
|
+
|
69
74
|
# This can be called multiple times, and can be used to set / override /
|
70
75
|
# remove player properties. A null propValue indicates removal.
|
71
76
|
event playerPropertiesChanged
|
@@ -93,11 +98,11 @@ experimental domain Media
|
|
93
98
|
array of PlayerError errors
|
94
99
|
|
95
100
|
# Called whenever a player is created, or when a new agent joins and receives
|
96
|
-
# a list of active players. If an agent is restored, it will receive
|
97
|
-
#
|
98
|
-
event
|
101
|
+
# a list of active players. If an agent is restored, it will receive one
|
102
|
+
# event for each active player.
|
103
|
+
event playerCreated
|
99
104
|
parameters
|
100
|
-
|
105
|
+
Player player
|
101
106
|
|
102
107
|
# Enables the Media domain
|
103
108
|
command enable
|
package/pdl/domains/Network.pdl
CHANGED
@@ -296,6 +296,25 @@ domain Network
|
|
296
296
|
corp-not-same-site
|
297
297
|
sri-message-signature-mismatch
|
298
298
|
|
299
|
+
# Sets Controls for IP Proxy of requests.
|
300
|
+
# Page reload is required before the new behavior will be observed.
|
301
|
+
experimental type IpProxyStatus extends string
|
302
|
+
enum
|
303
|
+
Available
|
304
|
+
FeatureNotEnabled
|
305
|
+
MaskedDomainListNotEnabled
|
306
|
+
MaskedDomainListNotPopulated
|
307
|
+
AuthTokensUnavailable
|
308
|
+
Unavailable
|
309
|
+
BypassedByDevTools
|
310
|
+
|
311
|
+
# Returns enum representing if IP Proxy of requests is available
|
312
|
+
# or reason it is not active.
|
313
|
+
experimental command getIPProtectionProxyStatus
|
314
|
+
returns
|
315
|
+
# Whether IP proxy is available
|
316
|
+
IpProxyStatus status
|
317
|
+
|
299
318
|
# The reason why request was blocked.
|
300
319
|
type CorsError extends string
|
301
320
|
enum
|
@@ -356,10 +356,10 @@ export namespace ProtocolMapping {
|
|
356
356
|
'Media.playerErrorsRaised': [Protocol.Media.PlayerErrorsRaisedEvent];
|
357
357
|
/**
|
358
358
|
* Called whenever a player is created, or when a new agent joins and receives
|
359
|
-
* a list of active players. If an agent is restored, it will receive
|
360
|
-
*
|
359
|
+
* a list of active players. If an agent is restored, it will receive one
|
360
|
+
* event for each active player.
|
361
361
|
*/
|
362
|
-
'Media.
|
362
|
+
'Media.playerCreated': [Protocol.Media.PlayerCreatedEvent];
|
363
363
|
/**
|
364
364
|
* Fired when data chunk was received over the network.
|
365
365
|
*/
|
@@ -4056,6 +4056,15 @@ export namespace ProtocolMapping {
|
|
4056
4056
|
paramsType: [];
|
4057
4057
|
returnType: Protocol.Memory.GetSamplingProfileResponse;
|
4058
4058
|
};
|
4059
|
+
/**
|
4060
|
+
* Returns enum representing if IP Proxy of requests is available
|
4061
|
+
* or reason it is not active.
|
4062
|
+
* @experimental
|
4063
|
+
*/
|
4064
|
+
'Network.getIPProtectionProxyStatus': {
|
4065
|
+
paramsType: [];
|
4066
|
+
returnType: Protocol.Network.GetIPProtectionProxyStatusResponse;
|
4067
|
+
};
|
4059
4068
|
/**
|
4060
4069
|
* Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted.
|
4061
4070
|
* @experimental
|
@@ -2875,10 +2875,10 @@ export namespace ProtocolProxyApi {
|
|
2875
2875
|
|
2876
2876
|
/**
|
2877
2877
|
* Called whenever a player is created, or when a new agent joins and receives
|
2878
|
-
* a list of active players. If an agent is restored, it will receive
|
2879
|
-
*
|
2878
|
+
* a list of active players. If an agent is restored, it will receive one
|
2879
|
+
* event for each active player.
|
2880
2880
|
*/
|
2881
|
-
on(event: '
|
2881
|
+
on(event: 'playerCreated', listener: (params: Protocol.Media.PlayerCreatedEvent) => void): void;
|
2882
2882
|
|
2883
2883
|
}
|
2884
2884
|
|
@@ -2945,6 +2945,13 @@ export namespace ProtocolProxyApi {
|
|
2945
2945
|
}
|
2946
2946
|
|
2947
2947
|
export interface NetworkApi {
|
2948
|
+
/**
|
2949
|
+
* Returns enum representing if IP Proxy of requests is available
|
2950
|
+
* or reason it is not active.
|
2951
|
+
* @experimental
|
2952
|
+
*/
|
2953
|
+
getIPProtectionProxyStatus(): Promise<Protocol.Network.GetIPProtectionProxyStatusResponse>;
|
2954
|
+
|
2948
2955
|
/**
|
2949
2956
|
* Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted.
|
2950
2957
|
* @experimental
|
@@ -3039,12 +3039,12 @@ export namespace ProtocolTestsProxyApi {
|
|
3039
3039
|
|
3040
3040
|
/**
|
3041
3041
|
* Called whenever a player is created, or when a new agent joins and receives
|
3042
|
-
* a list of active players. If an agent is restored, it will receive
|
3043
|
-
*
|
3042
|
+
* a list of active players. If an agent is restored, it will receive one
|
3043
|
+
* event for each active player.
|
3044
3044
|
*/
|
3045
|
-
|
3046
|
-
|
3047
|
-
|
3045
|
+
onPlayerCreated(listener: (event: { params: Protocol.Media.PlayerCreatedEvent }) => void): void;
|
3046
|
+
offPlayerCreated(listener: (event: { params: Protocol.Media.PlayerCreatedEvent }) => void): void;
|
3047
|
+
oncePlayerCreated(eventMatcher?: (event: { params: Protocol.Media.PlayerCreatedEvent }) => boolean): Promise<{ params: Protocol.Media.PlayerCreatedEvent }>;
|
3048
3048
|
|
3049
3049
|
}
|
3050
3050
|
|
@@ -3111,6 +3111,13 @@ export namespace ProtocolTestsProxyApi {
|
|
3111
3111
|
}
|
3112
3112
|
|
3113
3113
|
export interface NetworkApi {
|
3114
|
+
/**
|
3115
|
+
* Returns enum representing if IP Proxy of requests is available
|
3116
|
+
* or reason it is not active.
|
3117
|
+
* @experimental
|
3118
|
+
*/
|
3119
|
+
getIPProtectionProxyStatus(): Promise<{id: number, result: Protocol.Network.GetIPProtectionProxyStatusResponse, sessionId: string}>;
|
3120
|
+
|
3114
3121
|
/**
|
3115
3122
|
* Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted.
|
3116
3123
|
* @experimental
|
package/types/protocol.d.ts
CHANGED
@@ -11762,6 +11762,11 @@ export namespace Protocol {
|
|
11762
11762
|
data: any;
|
11763
11763
|
}
|
11764
11764
|
|
11765
|
+
export interface Player {
|
11766
|
+
playerId: PlayerId;
|
11767
|
+
domNodeId?: DOM.BackendNodeId;
|
11768
|
+
}
|
11769
|
+
|
11765
11770
|
/**
|
11766
11771
|
* This can be called multiple times, and can be used to set / override /
|
11767
11772
|
* remove player properties. A null propValue indicates removal.
|
@@ -11798,11 +11803,11 @@ export namespace Protocol {
|
|
11798
11803
|
|
11799
11804
|
/**
|
11800
11805
|
* Called whenever a player is created, or when a new agent joins and receives
|
11801
|
-
* a list of active players. If an agent is restored, it will receive
|
11802
|
-
*
|
11806
|
+
* a list of active players. If an agent is restored, it will receive one
|
11807
|
+
* event for each active player.
|
11803
11808
|
*/
|
11804
|
-
export interface
|
11805
|
-
|
11809
|
+
export interface PlayerCreatedEvent {
|
11810
|
+
player: Player;
|
11806
11811
|
}
|
11807
11812
|
}
|
11808
11813
|
|
@@ -12312,6 +12317,13 @@ export namespace Protocol {
|
|
12312
12317
|
*/
|
12313
12318
|
export type BlockedReason = ('other' | 'csp' | 'mixed-content' | 'origin' | 'inspector' | 'integrity' | 'subresource-filter' | 'content-type' | 'coep-frame-resource-needs-coep-header' | 'coop-sandboxed-iframe-cannot-navigate-to-coop-page' | 'corp-not-same-origin' | 'corp-not-same-origin-after-defaulted-to-same-origin-by-coep' | 'corp-not-same-origin-after-defaulted-to-same-origin-by-dip' | 'corp-not-same-origin-after-defaulted-to-same-origin-by-coep-and-dip' | 'corp-not-same-site' | 'sri-message-signature-mismatch');
|
12314
12319
|
|
12320
|
+
/**
|
12321
|
+
* Sets Controls for IP Proxy of requests.
|
12322
|
+
* Page reload is required before the new behavior will be observed.
|
12323
|
+
* @experimental
|
12324
|
+
*/
|
12325
|
+
export type IpProxyStatus = ('Available' | 'FeatureNotEnabled' | 'MaskedDomainListNotEnabled' | 'MaskedDomainListNotPopulated' | 'AuthTokensUnavailable' | 'Unavailable' | 'BypassedByDevTools');
|
12326
|
+
|
12315
12327
|
/**
|
12316
12328
|
* The reason why request was blocked.
|
12317
12329
|
*/
|
@@ -13345,6 +13357,13 @@ export namespace Protocol {
|
|
13345
13357
|
includeCredentials: boolean;
|
13346
13358
|
}
|
13347
13359
|
|
13360
|
+
export interface GetIPProtectionProxyStatusResponse {
|
13361
|
+
/**
|
13362
|
+
* Whether IP proxy is available
|
13363
|
+
*/
|
13364
|
+
status: IpProxyStatus;
|
13365
|
+
}
|
13366
|
+
|
13348
13367
|
export interface SetAcceptedEncodingsRequest {
|
13349
13368
|
/**
|
13350
13369
|
* List of accepted content encodings.
|