webdriver-bidi-protocol 0.1.9 → 0.2.0
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/.github/dependabot.yml +1 -1
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +48 -0
- package/out/gen/main.d.ts +129 -2
- package/package.json +3 -3
- package/src/gen/main.ts +129 -2
package/.github/dependabot.yml
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.0](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.1.10...webdriver-bidi-protocol-v0.2.0) (2025-06-26)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add bluetooth ([#66](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/66)) ([e42e8d9](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/e42e8d9896540020955d81b08066bdf92ed16602))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add repository ([#19](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/19)) ([91def9d](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/91def9dd0baeab3476e7154676e40d5a709da2c3))
|
|
14
|
+
* another repository fix ([72c215c](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/72c215cbcf76c97317deff925d1ff73732ed5bab))
|
|
15
|
+
* bump specs/webdriver-bidi from `0575bf7` to `9eaa877` ([#65](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/65)) ([d0ed8ef](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/d0ed8ef0254fb7786b5e2cd7b716aa772cc49fcd))
|
|
16
|
+
* bump specs/webdriver-bidi from `05a283e` to `62b8dfe` ([#16](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/16)) ([51dac71](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/51dac71ca4ea2e4e85eee7ba82a6a8ac7ff584a4))
|
|
17
|
+
* bump specs/webdriver-bidi from `0c366b0` to `a46d71b` ([#30](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/30)) ([c926381](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/c92638156ca8cbe36e2485fde2c3eca4b6d14cd7))
|
|
18
|
+
* bump specs/webdriver-bidi from `0fa2d99` to `712c17f` ([#36](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/36)) ([5e35acb](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/5e35acb0af5663fdace139da9648a298adf4b863))
|
|
19
|
+
* bump specs/webdriver-bidi from `287e9c6` to `0575bf7` ([#59](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/59)) ([20ec66a](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/20ec66ae46acdb49211991f603826bfbab0c0762))
|
|
20
|
+
* bump specs/webdriver-bidi from `62b8dfe` to `0c366b0` ([#25](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/25)) ([e6da243](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/e6da2439e38f2c403319ce1dbed16c9b8029667d))
|
|
21
|
+
* bump specs/webdriver-bidi from `712c17f` to `287e9c6` ([#43](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/43)) ([2f378f5](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/2f378f5890cbfec58e62f466b73fda0523083216))
|
|
22
|
+
* bump specs/webdriver-bidi from `a46d71b` to `0fa2d99` ([#33](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/33)) ([596a0ab](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/596a0ab776e061bccbc67a4fc38db4d5cce84643))
|
|
23
|
+
* document usage ([#7](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/7)) ([d98a6ee](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/d98a6ee23cbaa943440e2b40831a0c56aa0d6c18))
|
|
24
|
+
* re-gen types based on the spec changes ([#75](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/75)) ([e95b00e](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/e95b00e96333781b8843325d928e75f49768f06f))
|
|
25
|
+
* re-generate types based on specifciation updates ([#101](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/101)) ([c2aa431](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/c2aa431b0e7fe5c229f51d7b549fb6eb51009087))
|
|
26
|
+
* re-generate types based on specifciation updates ([#105](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/105)) ([adec09b](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/adec09b1c6fc6a29952a9c0a641ebd5d22f7370d))
|
|
27
|
+
* re-generate types based on specifciation updates ([#108](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/108)) ([00199dc](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/00199dc6e53e35cb12e1e67ce441a2d06f87e9ae))
|
|
28
|
+
* re-generate types based on specifciation updates ([#114](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/114)) ([f1a380a](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/f1a380afeebcb5f9a2ab66732f0971336c80bb0e))
|
|
29
|
+
* re-generate types based on specifciation updates ([#125](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/125)) ([95501b6](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/95501b6d1a81516aa55cd84af1a5d3f8c060174a))
|
|
30
|
+
* re-generate types based on specifciation updates ([#128](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/128)) ([852b2ab](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/852b2abfacb13c969f82f9507cccb50a2bbfeca0))
|
|
31
|
+
* re-generate types based on specifciation updates ([#140](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/140)) ([b769928](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/b769928b05cfc936a949384cc7b345f995895b54))
|
|
32
|
+
* re-generate types based on specifciation updates ([#143](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/143)) ([946a803](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/946a80305ad8c226519667a3c4d6bfc84d7a8fe1))
|
|
33
|
+
* re-generate types based on specifciation updates ([#147](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/147)) ([b568837](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/b5688371c4ce32b6d62ff6b1a08854f0c000bcbe))
|
|
34
|
+
* re-generate types based on specifciation updates ([#154](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/154)) ([5e9bfdd](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/5e9bfdde05a80e6852dbd81ac4e124702765b11c))
|
|
35
|
+
* re-generate types based on specifciation updates ([#156](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/156)) ([a917e79](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/a917e79b9abd17e312c52227310bfe8aa7e21abb))
|
|
36
|
+
* re-generate types based on specifciation updates ([#162](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/162)) ([bb92e98](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/bb92e98a232b060cc94a058fef92e10d8f8d6601))
|
|
37
|
+
* re-generate types based on specifciation updates ([#166](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/166)) ([42664dd](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/42664dd5c7401588e55dda5573c3b7096f700953))
|
|
38
|
+
* re-generate types based on specifciation updates ([#178](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/178)) ([6ee5f05](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/6ee5f05ae9298e59ff34c4859543bebcc4ad658d))
|
|
39
|
+
* re-generate types based on specifciation updates ([#83](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/83)) ([ac66a29](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/ac66a29bc3396c2bdabb133d5dfb63fc2b029add))
|
|
40
|
+
* re-generate types based on specifciation updates ([#88](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/88)) ([d3c2c6f](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/d3c2c6fcf973551d4bef5cbee5291e3581ae257c))
|
|
41
|
+
* re-generate types based on specifciation updates ([#95](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/95)) ([64abd1d](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/64abd1d65d99e75d7ec1e885fe22c0f093323843))
|
|
42
|
+
* update repository ([28cf911](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/28cf911e59ad5b177df47d04fc012d8c9cfe7fde))
|
|
43
|
+
|
|
44
|
+
## [0.1.10](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.1.9...webdriver-bidi-protocol-v0.1.10) (2025-06-26)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Bug Fixes
|
|
48
|
+
|
|
49
|
+
* re-generate types based on specifciation updates ([#178](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/178)) ([6ee5f05](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/6ee5f05ae9298e59ff34c4859543bebcc4ad658d))
|
|
50
|
+
|
|
3
51
|
## [0.1.9](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.1.8...webdriver-bidi-protocol-v0.1.9) (2025-06-03)
|
|
4
52
|
|
|
5
53
|
|
package/out/gen/main.d.ts
CHANGED
|
@@ -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 =
|
|
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';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webdriver-bidi-protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"types": "out/index.d.ts",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"url": "git+https://github.com/GoogleChromeLabs/webdriver-bidi-protocol.git"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@types/node": "^
|
|
23
|
+
"@types/node": "^24.0.4",
|
|
24
24
|
"gts": "^6.0.2",
|
|
25
25
|
"parse5": "^7.1.2",
|
|
26
|
-
"prettier": "3.
|
|
26
|
+
"prettier": "3.6.1",
|
|
27
27
|
"tsd": "0.32.0",
|
|
28
28
|
"typescript": "5.8.3"
|
|
29
29
|
}
|
package/src/gen/main.ts
CHANGED
|
@@ -65,11 +65,13 @@ export const enum ErrorCode {
|
|
|
65
65
|
InvalidWebExtension = 'invalid web extension',
|
|
66
66
|
MoveTargetOutOfBounds = 'move target out of bounds',
|
|
67
67
|
NoSuchAlert = 'no such alert',
|
|
68
|
+
NoSuchNetworkCollector = 'no such network collector',
|
|
68
69
|
NoSuchElement = 'no such element',
|
|
69
70
|
NoSuchFrame = 'no such frame',
|
|
70
71
|
NoSuchHandle = 'no such handle',
|
|
71
72
|
NoSuchHistoryEntry = 'no such history entry',
|
|
72
73
|
NoSuchIntercept = 'no such intercept',
|
|
74
|
+
NoSuchNetworkData = 'no such network data',
|
|
73
75
|
NoSuchNode = 'no such node',
|
|
74
76
|
NoSuchRequest = 'no such request',
|
|
75
77
|
NoSuchScript = 'no such script',
|
|
@@ -81,6 +83,7 @@ export const enum ErrorCode {
|
|
|
81
83
|
UnableToCloseBrowser = 'unable to close browser',
|
|
82
84
|
UnableToSetCookie = 'unable to set cookie',
|
|
83
85
|
UnableToSetFileInput = 'unable to set file input',
|
|
86
|
+
UnavailableNetworkData = 'unavailable network data',
|
|
84
87
|
UnderspecifiedStoragePartition = 'underspecified storage partition',
|
|
85
88
|
UnknownCommand = 'unknown command',
|
|
86
89
|
UnknownError = 'unknown error',
|
|
@@ -133,7 +136,6 @@ export namespace Session {
|
|
|
133
136
|
export namespace Session {
|
|
134
137
|
export type ManualProxyConfiguration = {
|
|
135
138
|
proxyType: 'manual';
|
|
136
|
-
ftpProxy?: string;
|
|
137
139
|
httpProxy?: string;
|
|
138
140
|
sslProxy?: string;
|
|
139
141
|
} & ({} | Session.SocksProxyConfiguration) & {
|
|
@@ -948,7 +950,9 @@ export namespace BrowsingContext {
|
|
|
948
950
|
defaultValue?: string;
|
|
949
951
|
};
|
|
950
952
|
}
|
|
951
|
-
export type EmulationCommand =
|
|
953
|
+
export type EmulationCommand =
|
|
954
|
+
| Emulation.SetGeolocationOverride
|
|
955
|
+
| Emulation.SetScreenOrientationOverride;
|
|
952
956
|
export namespace Emulation {
|
|
953
957
|
export type SetGeolocationOverride = {
|
|
954
958
|
method: 'emulation.setGeolocationOverride';
|
|
@@ -1016,13 +1020,51 @@ export namespace Emulation {
|
|
|
1016
1020
|
type: 'positionUnavailable';
|
|
1017
1021
|
};
|
|
1018
1022
|
}
|
|
1023
|
+
export namespace Emulation {
|
|
1024
|
+
export type SetScreenOrientationOverride = {
|
|
1025
|
+
method: 'emulation.setScreenOrientationOverride';
|
|
1026
|
+
params: Emulation.SetScreenOrientationOverrideParameters;
|
|
1027
|
+
};
|
|
1028
|
+
}
|
|
1029
|
+
export namespace Emulation {
|
|
1030
|
+
export const enum ScreenOrientationNatural {
|
|
1031
|
+
Portrait = 'portrait',
|
|
1032
|
+
Landscape = 'landscape',
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
export namespace Emulation {
|
|
1036
|
+
export type ScreenOrientationType =
|
|
1037
|
+
| 'portrait-primary'
|
|
1038
|
+
| 'portrait-secondary'
|
|
1039
|
+
| 'landscape-primary'
|
|
1040
|
+
| 'landscape-secondary';
|
|
1041
|
+
}
|
|
1042
|
+
export namespace Emulation {
|
|
1043
|
+
export type ScreenOrientation = {
|
|
1044
|
+
natural: Emulation.ScreenOrientationNatural;
|
|
1045
|
+
type: Emulation.ScreenOrientationType;
|
|
1046
|
+
};
|
|
1047
|
+
}
|
|
1048
|
+
export namespace Emulation {
|
|
1049
|
+
export type SetScreenOrientationOverrideParameters = {
|
|
1050
|
+
screenOrientation: Emulation.ScreenOrientation | null;
|
|
1051
|
+
contexts?: [
|
|
1052
|
+
BrowsingContext.BrowsingContext,
|
|
1053
|
+
...BrowsingContext.BrowsingContext[],
|
|
1054
|
+
];
|
|
1055
|
+
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
|
|
1056
|
+
};
|
|
1057
|
+
}
|
|
1019
1058
|
export type NetworkCommand =
|
|
1059
|
+
| Network.AddDataCollector
|
|
1020
1060
|
| Network.AddIntercept
|
|
1021
1061
|
| Network.ContinueRequest
|
|
1022
1062
|
| Network.ContinueResponse
|
|
1023
1063
|
| Network.ContinueWithAuth
|
|
1024
1064
|
| Network.FailRequest
|
|
1065
|
+
| Network.GetData
|
|
1025
1066
|
| Network.ProvideResponse
|
|
1067
|
+
| Network.RemoveDataCollector
|
|
1026
1068
|
| Network.RemoveIntercept
|
|
1027
1069
|
| Network.SetCacheBehavior;
|
|
1028
1070
|
export type NetworkEvent =
|
|
@@ -1056,6 +1098,11 @@ export namespace Network {
|
|
|
1056
1098
|
intercepts?: [Network.Intercept, ...Network.Intercept[]];
|
|
1057
1099
|
};
|
|
1058
1100
|
}
|
|
1101
|
+
export namespace Network {
|
|
1102
|
+
export const enum DataType {
|
|
1103
|
+
Response = 'response',
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1059
1106
|
export namespace Network {
|
|
1060
1107
|
export type BytesValue = Network.StringValue | Network.Base64Value;
|
|
1061
1108
|
}
|
|
@@ -1071,6 +1118,14 @@ export namespace Network {
|
|
|
1071
1118
|
value: string;
|
|
1072
1119
|
};
|
|
1073
1120
|
}
|
|
1121
|
+
export namespace Network {
|
|
1122
|
+
export type Collector = string;
|
|
1123
|
+
}
|
|
1124
|
+
export namespace Network {
|
|
1125
|
+
export const enum CollectorType {
|
|
1126
|
+
Blob = 'blob',
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1074
1129
|
export namespace Network {
|
|
1075
1130
|
export const enum SameSite {
|
|
1076
1131
|
Strict = 'strict',
|
|
@@ -1202,6 +1257,32 @@ export namespace Network {
|
|
|
1202
1257
|
pattern: string;
|
|
1203
1258
|
};
|
|
1204
1259
|
}
|
|
1260
|
+
export namespace Network {
|
|
1261
|
+
export type AddDataCollector = {
|
|
1262
|
+
method: 'network.addDataCollector';
|
|
1263
|
+
params: Network.AddDataCollectorParameters;
|
|
1264
|
+
};
|
|
1265
|
+
}
|
|
1266
|
+
export namespace Network {
|
|
1267
|
+
export type AddDataCollectorParameters = {
|
|
1268
|
+
dataTypes: [Network.DataType, ...Network.DataType[]];
|
|
1269
|
+
maxEncodedDataSize: JsUint;
|
|
1270
|
+
/**
|
|
1271
|
+
* @defaultValue `"blob"`
|
|
1272
|
+
*/
|
|
1273
|
+
collectorType?: Network.CollectorType;
|
|
1274
|
+
contexts?: [
|
|
1275
|
+
BrowsingContext.BrowsingContext,
|
|
1276
|
+
...BrowsingContext.BrowsingContext[],
|
|
1277
|
+
];
|
|
1278
|
+
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
|
|
1279
|
+
};
|
|
1280
|
+
}
|
|
1281
|
+
export namespace Network {
|
|
1282
|
+
export type AddDataCollectorResult = {
|
|
1283
|
+
collector: Network.Collector;
|
|
1284
|
+
};
|
|
1285
|
+
}
|
|
1205
1286
|
export namespace Network {
|
|
1206
1287
|
export type AddInterceptParameters = {
|
|
1207
1288
|
phases: [Network.InterceptPhase, ...Network.InterceptPhase[]];
|
|
@@ -1287,6 +1368,19 @@ export namespace Network {
|
|
|
1287
1368
|
action: 'default' | 'cancel';
|
|
1288
1369
|
};
|
|
1289
1370
|
}
|
|
1371
|
+
export namespace Network {
|
|
1372
|
+
export type DisownData = {
|
|
1373
|
+
method: 'network.disownData';
|
|
1374
|
+
params: Network.DisownDataParameters;
|
|
1375
|
+
};
|
|
1376
|
+
}
|
|
1377
|
+
export namespace Network {
|
|
1378
|
+
export type DisownDataParameters = {
|
|
1379
|
+
dataType: Network.DataType;
|
|
1380
|
+
collector: Network.Collector;
|
|
1381
|
+
request: Network.Request;
|
|
1382
|
+
};
|
|
1383
|
+
}
|
|
1290
1384
|
export namespace Network {
|
|
1291
1385
|
export type FailRequest = {
|
|
1292
1386
|
method: 'network.failRequest';
|
|
@@ -1298,6 +1392,28 @@ export namespace Network {
|
|
|
1298
1392
|
request: Network.Request;
|
|
1299
1393
|
};
|
|
1300
1394
|
}
|
|
1395
|
+
export namespace Network {
|
|
1396
|
+
export type GetData = {
|
|
1397
|
+
method: 'network.getData';
|
|
1398
|
+
params: Network.GetDataParameters;
|
|
1399
|
+
};
|
|
1400
|
+
}
|
|
1401
|
+
export namespace Network {
|
|
1402
|
+
export type GetDataParameters = {
|
|
1403
|
+
dataType: Network.DataType;
|
|
1404
|
+
collector?: Network.Collector;
|
|
1405
|
+
/**
|
|
1406
|
+
* @defaultValue `false`
|
|
1407
|
+
*/
|
|
1408
|
+
disown?: boolean;
|
|
1409
|
+
request: Network.Request;
|
|
1410
|
+
};
|
|
1411
|
+
}
|
|
1412
|
+
export namespace Script {
|
|
1413
|
+
export type GetDataResult = {
|
|
1414
|
+
bytes: Network.BytesValue;
|
|
1415
|
+
};
|
|
1416
|
+
}
|
|
1301
1417
|
export namespace Network {
|
|
1302
1418
|
export type ProvideResponse = {
|
|
1303
1419
|
method: 'network.provideResponse';
|
|
@@ -1314,6 +1430,17 @@ export namespace Network {
|
|
|
1314
1430
|
statusCode?: JsUint;
|
|
1315
1431
|
};
|
|
1316
1432
|
}
|
|
1433
|
+
export namespace Network {
|
|
1434
|
+
export type RemoveDataCollector = {
|
|
1435
|
+
method: 'network.removeDataCollector';
|
|
1436
|
+
params: Network.RemoveDataCollectorParameters;
|
|
1437
|
+
};
|
|
1438
|
+
}
|
|
1439
|
+
export namespace Network {
|
|
1440
|
+
export type RemoveDataCollectorParameters = {
|
|
1441
|
+
collector: Network.Collector;
|
|
1442
|
+
};
|
|
1443
|
+
}
|
|
1317
1444
|
export namespace Network {
|
|
1318
1445
|
export type RemoveIntercept = {
|
|
1319
1446
|
method: 'network.removeIntercept';
|