@@ -63,11 +63,13 @@ export declare const enum ErrorCode {
63
63
InvalidWebExtension = 'invalid web extension' ,
64
64
MoveTargetOutOfBounds = 'move target out of bounds' ,
65
65
NoSuchAlert = 'no such alert' ,
66
+ NoSuchNetworkCollector = 'no such network collector' ,
66
67
NoSuchElement = 'no such element' ,
67
68
NoSuchFrame = 'no such frame' ,
68
69
NoSuchHandle = 'no such handle' ,
69
70
NoSuchHistoryEntry = 'no such history entry' ,
70
71
NoSuchIntercept = 'no such intercept' ,
72
+ NoSuchNetworkData = 'no such network data' ,
71
73
NoSuchNode = 'no such node' ,
72
74
NoSuchRequest = 'no such request' ,
73
75
NoSuchScript = 'no such script' ,
@@ -79,6 +81,7 @@ export declare const enum ErrorCode {
79
81
UnableToCloseBrowser = 'unable to close browser' ,
80
82
UnableToSetCookie = 'unable to set cookie' ,
81
83
UnableToSetFileInput = 'unable to set file input' ,
84
+ UnavailableNetworkData = 'unavailable network data' ,
82
85
UnderspecifiedStoragePartition = 'underspecified storage partition' ,
83
86
UnknownCommand = 'unknown command' ,
84
87
UnknownError = 'unknown error' ,
@@ -131,7 +134,6 @@ export declare namespace Session {
131
134
export declare namespace Session {
132
135
type ManualProxyConfiguration = {
133
136
proxyType : 'manual' ;
134
- ftpProxy ?: string ;
135
137
httpProxy ?: string ;
136
138
sslProxy ?: string ;
137
139
} & ( { } | Session . SocksProxyConfiguration ) & {
@@ -946,7 +948,9 @@ export declare namespace BrowsingContext {
946
948
defaultValue ?: string ;
947
949
} ;
948
950
}
949
- export type EmulationCommand = Emulation . SetGeolocationOverride ;
951
+ export type EmulationCommand =
952
+ | Emulation . SetGeolocationOverride
953
+ | Emulation . SetScreenOrientationOverride ;
950
954
export declare namespace Emulation {
951
955
type SetGeolocationOverride = {
952
956
method : 'emulation.setGeolocationOverride' ;
@@ -1014,13 +1018,51 @@ export declare namespace Emulation {
1014
1018
type : 'positionUnavailable' ;
1015
1019
} ;
1016
1020
}
1021
+ export declare namespace Emulation {
1022
+ type SetScreenOrientationOverride = {
1023
+ method : 'emulation.setScreenOrientationOverride' ;
1024
+ params : Emulation . SetScreenOrientationOverrideParameters ;
1025
+ } ;
1026
+ }
1027
+ export declare namespace Emulation {
1028
+ const enum ScreenOrientationNatural {
1029
+ Portrait = 'portrait' ,
1030
+ Landscape = 'landscape' ,
1031
+ }
1032
+ }
1033
+ export declare namespace Emulation {
1034
+ type ScreenOrientationType =
1035
+ | 'portrait-primary'
1036
+ | 'portrait-secondary'
1037
+ | 'landscape-primary'
1038
+ | 'landscape-secondary' ;
1039
+ }
1040
+ export declare namespace Emulation {
1041
+ type ScreenOrientation = {
1042
+ natural : Emulation . ScreenOrientationNatural ;
1043
+ type : Emulation . ScreenOrientationType ;
1044
+ } ;
1045
+ }
1046
+ export declare namespace Emulation {
1047
+ type SetScreenOrientationOverrideParameters = {
1048
+ screenOrientation : Emulation . ScreenOrientation | null ;
1049
+ contexts ?: [
1050
+ BrowsingContext . BrowsingContext ,
1051
+ ...BrowsingContext . BrowsingContext [ ] ,
1052
+ ] ;
1053
+ userContexts ?: [ Browser . UserContext , ...Browser . UserContext [ ] ] ;
1054
+ } ;
1055
+ }
1017
1056
export type NetworkCommand =
1057
+ | Network . AddDataCollector
1018
1058
| Network . AddIntercept
1019
1059
| Network . ContinueRequest
1020
1060
| Network . ContinueResponse
1021
1061
| Network . ContinueWithAuth
1022
1062
| Network . FailRequest
1063
+ | Network . GetData
1023
1064
| Network . ProvideResponse
1065
+ | Network . RemoveDataCollector
1024
1066
| Network . RemoveIntercept
1025
1067
| Network . SetCacheBehavior ;
1026
1068
export type NetworkEvent =
@@ -1054,6 +1096,11 @@ export declare namespace Network {
1054
1096
intercepts ?: [ Network . Intercept , ...Network . Intercept [ ] ] ;
1055
1097
} ;
1056
1098
}
1099
+ export declare namespace Network {
1100
+ const enum DataType {
1101
+ Response = 'response' ,
1102
+ }
1103
+ }
1057
1104
export declare namespace Network {
1058
1105
type BytesValue = Network . StringValue | Network . Base64Value ;
1059
1106
}
@@ -1069,6 +1116,14 @@ export declare namespace Network {
1069
1116
value : string ;
1070
1117
} ;
1071
1118
}
1119
+ export declare namespace Network {
1120
+ type Collector = string ;
1121
+ }
1122
+ export declare namespace Network {
1123
+ const enum CollectorType {
1124
+ Blob = 'blob' ,
1125
+ }
1126
+ }
1072
1127
export declare namespace Network {
1073
1128
const enum SameSite {
1074
1129
Strict = 'strict' ,
@@ -1200,6 +1255,32 @@ export declare namespace Network {
1200
1255
pattern : string ;
1201
1256
} ;
1202
1257
}
1258
+ export declare namespace Network {
1259
+ type AddDataCollector = {
1260
+ method : 'network.addDataCollector' ;
1261
+ params : Network . AddDataCollectorParameters ;
1262
+ } ;
1263
+ }
1264
+ export declare namespace Network {
1265
+ type AddDataCollectorParameters = {
1266
+ dataTypes : [ Network . DataType , ...Network . DataType [ ] ] ;
1267
+ maxEncodedDataSize : JsUint ;
1268
+ /**
1269
+ * @defaultValue `"blob"`
1270
+ */
1271
+ collectorType ?: Network . CollectorType ;
1272
+ contexts ?: [
1273
+ BrowsingContext . BrowsingContext ,
1274
+ ...BrowsingContext . BrowsingContext [ ] ,
1275
+ ] ;
1276
+ userContexts ?: [ Browser . UserContext , ...Browser . UserContext [ ] ] ;
1277
+ } ;
1278
+ }
1279
+ export declare namespace Network {
1280
+ type AddDataCollectorResult = {
1281
+ collector : Network . Collector ;
1282
+ } ;
1283
+ }
1203
1284
export declare namespace Network {
1204
1285
type AddInterceptParameters = {
1205
1286
phases : [ Network . InterceptPhase , ...Network . InterceptPhase [ ] ] ;
@@ -1285,6 +1366,19 @@ export declare namespace Network {
1285
1366
action : 'default' | 'cancel' ;
1286
1367
} ;
1287
1368
}
1369
+ export declare namespace Network {
1370
+ type DisownData = {
1371
+ method : 'network.disownData' ;
1372
+ params : Network . DisownDataParameters ;
1373
+ } ;
1374
+ }
1375
+ export declare namespace Network {
1376
+ type DisownDataParameters = {
1377
+ dataType : Network . DataType ;
1378
+ collector : Network . Collector ;
1379
+ request : Network . Request ;
1380
+ } ;
1381
+ }
1288
1382
export declare namespace Network {
1289
1383
type FailRequest = {
1290
1384
method : 'network.failRequest' ;
@@ -1296,6 +1390,28 @@ export declare namespace Network {
1296
1390
request : Network . Request ;
1297
1391
} ;
1298
1392
}
1393
+ export declare namespace Network {
1394
+ type GetData = {
1395
+ method : 'network.getData' ;
1396
+ params : Network . GetDataParameters ;
1397
+ } ;
1398
+ }
1399
+ export declare namespace Network {
1400
+ type GetDataParameters = {
1401
+ dataType : Network . DataType ;
1402
+ collector ?: Network . Collector ;
1403
+ /**
1404
+ * @defaultValue `false`
1405
+ */
1406
+ disown ?: boolean ;
1407
+ request : Network . Request ;
1408
+ } ;
1409
+ }
1410
+ export declare namespace Script {
1411
+ type GetDataResult = {
1412
+ bytes : Network . BytesValue ;
1413
+ } ;
1414
+ }
1299
1415
export declare namespace Network {
1300
1416
type ProvideResponse = {
1301
1417
method : 'network.provideResponse' ;
@@ -1312,6 +1428,17 @@ export declare namespace Network {
1312
1428
statusCode ?: JsUint ;
1313
1429
} ;
1314
1430
}
1431
+ export declare namespace Network {
1432
+ type RemoveDataCollector = {
1433
+ method : 'network.removeDataCollector' ;
1434
+ params : Network . RemoveDataCollectorParameters ;
1435
+ } ;
1436
+ }
1437
+ export declare namespace Network {
1438
+ type RemoveDataCollectorParameters = {
1439
+ collector : Network . Collector ;
1440
+ } ;
1441
+ }
1315
1442
export declare namespace Network {
1316
1443
type RemoveIntercept = {
1317
1444
method : 'network.removeIntercept' ;
0 commit comments