webdriver-bidi-protocol 0.2.5 → 0.2.7
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/workflows/ci.yml +2 -2
- package/.github/workflows/publish.yml +1 -1
- package/.github/workflows/regenerate.yml +2 -2
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +15 -0
- package/out/gen/main.d.ts +189 -172
- package/out/index.d.ts +4 -0
- package/package.json +2 -2
- package/src/gen/main.ts +191 -174
- package/src/index.ts +4 -0
package/.github/workflows/ci.yml
CHANGED
|
@@ -21,11 +21,11 @@ jobs:
|
|
|
21
21
|
runs-on: ubuntu-latest
|
|
22
22
|
steps:
|
|
23
23
|
- name: Check out repository
|
|
24
|
-
uses: actions/checkout@
|
|
24
|
+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
25
25
|
with:
|
|
26
26
|
fetch-depth: 2
|
|
27
27
|
- name: Install cddlconv
|
|
28
|
-
run: cargo install cddlconv@0.1.
|
|
28
|
+
run: cargo install cddlconv@0.1.7
|
|
29
29
|
- name: Install dependencies
|
|
30
30
|
run: npm ci
|
|
31
31
|
- name: Build and test
|
|
@@ -16,7 +16,7 @@ jobs:
|
|
|
16
16
|
contents: read
|
|
17
17
|
steps:
|
|
18
18
|
- name: Check out repository
|
|
19
|
-
uses: actions/checkout@
|
|
19
|
+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
20
20
|
with:
|
|
21
21
|
fetch-depth: 2
|
|
22
22
|
- name: Set npm registry
|
|
@@ -19,11 +19,11 @@ jobs:
|
|
|
19
19
|
runs-on: ubuntu-latest
|
|
20
20
|
steps:
|
|
21
21
|
- name: Check out repository
|
|
22
|
-
uses: actions/checkout@
|
|
22
|
+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
23
23
|
with:
|
|
24
24
|
fetch-depth: 2
|
|
25
25
|
- name: Install cddlconv
|
|
26
|
-
run: cargo install cddlconv@0.1.
|
|
26
|
+
run: cargo install cddlconv@0.1.7
|
|
27
27
|
- name: Install dependencies
|
|
28
28
|
run: npm ci
|
|
29
29
|
- name: Build and test
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.7](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.2.6...webdriver-bidi-protocol-v0.2.7) (2025-09-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* add emulation mapping ([#226](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/226)) ([f4851fe](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/f4851fe000293cad2aa38cf6d9290d4dd3dd27b4))
|
|
9
|
+
* re-generate types based on specifciation updates ([#229](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/229)) ([fbf9511](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/fbf951111ca4eaafea5aa03c02292aa9331a6b8e))
|
|
10
|
+
|
|
11
|
+
## [0.2.6](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.2.5...webdriver-bidi-protocol-v0.2.6) (2025-08-26)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* re-generate types based on specifciation updates ([#221](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/221)) ([53d49a7](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/53d49a7ffcb5ef4de3f4f8f4828bf64e4552f599))
|
|
17
|
+
|
|
3
18
|
## [0.2.5](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.2.4...webdriver-bidi-protocol-v0.2.5) (2025-08-08)
|
|
4
19
|
|
|
5
20
|
|
package/out/gen/main.d.ts
CHANGED
|
@@ -1,22 +1,7 @@
|
|
|
1
|
-
export type Event = {
|
|
2
|
-
type: 'event';
|
|
3
|
-
} & EventData &
|
|
4
|
-
Extensible;
|
|
5
1
|
export type Command = {
|
|
6
2
|
id: JsUint;
|
|
7
3
|
} & CommandData &
|
|
8
4
|
Extensible;
|
|
9
|
-
export type CommandResponse = {
|
|
10
|
-
type: 'success';
|
|
11
|
-
id: JsUint;
|
|
12
|
-
result: ResultData;
|
|
13
|
-
} & Extensible;
|
|
14
|
-
export type EventData =
|
|
15
|
-
| BrowsingContextEvent
|
|
16
|
-
| InputEvent
|
|
17
|
-
| LogEvent
|
|
18
|
-
| NetworkEvent
|
|
19
|
-
| ScriptEvent;
|
|
20
5
|
export type CommandData =
|
|
21
6
|
| BrowserCommand
|
|
22
7
|
| BrowsingContextCommand
|
|
@@ -27,16 +12,13 @@ export type CommandData =
|
|
|
27
12
|
| SessionCommand
|
|
28
13
|
| StorageCommand
|
|
29
14
|
| WebExtensionCommand;
|
|
30
|
-
export type ResultData =
|
|
31
|
-
| BrowsingContextResult
|
|
32
|
-
| EmptyResult
|
|
33
|
-
| NetworkResult
|
|
34
|
-
| ScriptResult
|
|
35
|
-
| SessionResult
|
|
36
|
-
| StorageResult
|
|
37
|
-
| WebExtensionResult;
|
|
38
15
|
export type EmptyParams = Extensible;
|
|
39
16
|
export type Message = CommandResponse | ErrorResponse | Event;
|
|
17
|
+
export type CommandResponse = {
|
|
18
|
+
type: 'success';
|
|
19
|
+
id: JsUint;
|
|
20
|
+
result: ResultData;
|
|
21
|
+
} & Extensible;
|
|
40
22
|
export type ErrorResponse = {
|
|
41
23
|
type: 'error';
|
|
42
24
|
id: JsUint | null;
|
|
@@ -44,7 +26,25 @@ export type ErrorResponse = {
|
|
|
44
26
|
message: string;
|
|
45
27
|
stacktrace?: string;
|
|
46
28
|
} & Extensible;
|
|
29
|
+
export type ResultData =
|
|
30
|
+
| BrowsingContextResult
|
|
31
|
+
| EmptyResult
|
|
32
|
+
| NetworkResult
|
|
33
|
+
| ScriptResult
|
|
34
|
+
| SessionResult
|
|
35
|
+
| StorageResult
|
|
36
|
+
| WebExtensionResult;
|
|
47
37
|
export type EmptyResult = Extensible;
|
|
38
|
+
export type Event = {
|
|
39
|
+
type: 'event';
|
|
40
|
+
} & EventData &
|
|
41
|
+
Extensible;
|
|
42
|
+
export type EventData =
|
|
43
|
+
| BrowsingContextEvent
|
|
44
|
+
| InputEvent
|
|
45
|
+
| LogEvent
|
|
46
|
+
| NetworkEvent
|
|
47
|
+
| ScriptEvent;
|
|
48
48
|
export type Extensible = {
|
|
49
49
|
[key: string]: any;
|
|
50
50
|
};
|
|
@@ -93,14 +93,6 @@ export type SessionCommand =
|
|
|
93
93
|
| Session.Status
|
|
94
94
|
| Session.Subscribe
|
|
95
95
|
| Session.Unsubscribe;
|
|
96
|
-
export declare namespace Session {
|
|
97
|
-
type ProxyConfiguration =
|
|
98
|
-
| Session.AutodetectProxyConfiguration
|
|
99
|
-
| Session.DirectProxyConfiguration
|
|
100
|
-
| Session.ManualProxyConfiguration
|
|
101
|
-
| Session.PacProxyConfiguration
|
|
102
|
-
| Session.SystemProxyConfiguration;
|
|
103
|
-
}
|
|
104
96
|
export type SessionResult =
|
|
105
97
|
| Session.NewResult
|
|
106
98
|
| Session.StatusResult
|
|
@@ -121,6 +113,14 @@ export declare namespace Session {
|
|
|
121
113
|
unhandledPromptBehavior?: Session.UserPromptHandler;
|
|
122
114
|
} & Extensible;
|
|
123
115
|
}
|
|
116
|
+
export declare namespace Session {
|
|
117
|
+
type ProxyConfiguration =
|
|
118
|
+
| Session.AutodetectProxyConfiguration
|
|
119
|
+
| Session.DirectProxyConfiguration
|
|
120
|
+
| Session.ManualProxyConfiguration
|
|
121
|
+
| Session.PacProxyConfiguration
|
|
122
|
+
| Session.SystemProxyConfiguration;
|
|
123
|
+
}
|
|
124
124
|
export declare namespace Session {
|
|
125
125
|
type AutodetectProxyConfiguration = {
|
|
126
126
|
proxyType: 'autodetect';
|
|
@@ -396,6 +396,14 @@ export type BrowsingContextCommand =
|
|
|
396
396
|
| BrowsingContext.Reload
|
|
397
397
|
| BrowsingContext.SetViewport
|
|
398
398
|
| BrowsingContext.TraverseHistory;
|
|
399
|
+
export type BrowsingContextResult =
|
|
400
|
+
| BrowsingContext.CaptureScreenshotResult
|
|
401
|
+
| BrowsingContext.CreateResult
|
|
402
|
+
| BrowsingContext.GetTreeResult
|
|
403
|
+
| BrowsingContext.LocateNodesResult
|
|
404
|
+
| BrowsingContext.NavigateResult
|
|
405
|
+
| BrowsingContext.PrintResult
|
|
406
|
+
| BrowsingContext.TraverseHistoryResult;
|
|
399
407
|
export type BrowsingContextEvent =
|
|
400
408
|
| BrowsingContext.ContextCreated
|
|
401
409
|
| BrowsingContext.ContextDestroyed
|
|
@@ -411,14 +419,6 @@ export type BrowsingContextEvent =
|
|
|
411
419
|
| BrowsingContext.NavigationStarted
|
|
412
420
|
| BrowsingContext.UserPromptClosed
|
|
413
421
|
| BrowsingContext.UserPromptOpened;
|
|
414
|
-
export type BrowsingContextResult =
|
|
415
|
-
| BrowsingContext.CaptureScreenshotResult
|
|
416
|
-
| BrowsingContext.CreateResult
|
|
417
|
-
| BrowsingContext.GetTreeResult
|
|
418
|
-
| BrowsingContext.LocateNodesResult
|
|
419
|
-
| BrowsingContext.NavigateResult
|
|
420
|
-
| BrowsingContext.PrintResult
|
|
421
|
-
| BrowsingContext.TraverseHistoryResult;
|
|
422
422
|
export declare namespace BrowsingContext {
|
|
423
423
|
type BrowsingContext = string;
|
|
424
424
|
}
|
|
@@ -522,6 +522,12 @@ export declare namespace BrowsingContext {
|
|
|
522
522
|
context: BrowsingContext.BrowsingContext;
|
|
523
523
|
};
|
|
524
524
|
}
|
|
525
|
+
export declare namespace BrowsingContext {
|
|
526
|
+
type CaptureScreenshot = {
|
|
527
|
+
method: 'browsingContext.captureScreenshot';
|
|
528
|
+
params: BrowsingContext.CaptureScreenshotParameters;
|
|
529
|
+
};
|
|
530
|
+
}
|
|
525
531
|
export declare namespace BrowsingContext {
|
|
526
532
|
type CaptureScreenshotParameters = {
|
|
527
533
|
context: BrowsingContext.BrowsingContext;
|
|
@@ -533,12 +539,6 @@ export declare namespace BrowsingContext {
|
|
|
533
539
|
clip?: BrowsingContext.ClipRectangle;
|
|
534
540
|
};
|
|
535
541
|
}
|
|
536
|
-
export declare namespace BrowsingContext {
|
|
537
|
-
type CaptureScreenshot = {
|
|
538
|
-
method: 'browsingContext.captureScreenshot';
|
|
539
|
-
params: BrowsingContext.CaptureScreenshotParameters;
|
|
540
|
-
};
|
|
541
|
-
}
|
|
542
542
|
export declare namespace BrowsingContext {
|
|
543
543
|
type ImageFormat = {
|
|
544
544
|
type: string;
|
|
@@ -646,6 +646,12 @@ export declare namespace BrowsingContext {
|
|
|
646
646
|
userText?: string;
|
|
647
647
|
};
|
|
648
648
|
}
|
|
649
|
+
export declare namespace BrowsingContext {
|
|
650
|
+
type LocateNodes = {
|
|
651
|
+
method: 'browsingContext.locateNodes';
|
|
652
|
+
params: BrowsingContext.LocateNodesParameters;
|
|
653
|
+
};
|
|
654
|
+
}
|
|
649
655
|
export declare namespace BrowsingContext {
|
|
650
656
|
type LocateNodesParameters = {
|
|
651
657
|
context: BrowsingContext.BrowsingContext;
|
|
@@ -658,12 +664,6 @@ export declare namespace BrowsingContext {
|
|
|
658
664
|
startNodes?: [Script.SharedReference, ...Script.SharedReference[]];
|
|
659
665
|
};
|
|
660
666
|
}
|
|
661
|
-
export declare namespace BrowsingContext {
|
|
662
|
-
type LocateNodes = {
|
|
663
|
-
method: 'browsingContext.locateNodes';
|
|
664
|
-
params: BrowsingContext.LocateNodesParameters;
|
|
665
|
-
};
|
|
666
|
-
}
|
|
667
667
|
export declare namespace BrowsingContext {
|
|
668
668
|
type LocateNodesResult = {
|
|
669
669
|
nodes: [...Script.NodeRemoteValue[]];
|
|
@@ -954,6 +954,7 @@ export type EmulationCommand =
|
|
|
954
954
|
| Emulation.SetGeolocationOverride
|
|
955
955
|
| Emulation.SetLocaleOverride
|
|
956
956
|
| Emulation.SetScreenOrientationOverride
|
|
957
|
+
| Emulation.SetScriptingEnabled
|
|
957
958
|
| Emulation.SetTimezoneOverride;
|
|
958
959
|
export declare namespace Emulation {
|
|
959
960
|
type SetForcedColorsModeThemeOverride = {
|
|
@@ -1095,6 +1096,22 @@ export declare namespace Emulation {
|
|
|
1095
1096
|
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
|
|
1096
1097
|
};
|
|
1097
1098
|
}
|
|
1099
|
+
export declare namespace Emulation {
|
|
1100
|
+
type SetScriptingEnabled = {
|
|
1101
|
+
method: 'emulation.setScriptingEnabled';
|
|
1102
|
+
params: Emulation.SetScriptingEnabledParameters;
|
|
1103
|
+
};
|
|
1104
|
+
}
|
|
1105
|
+
export declare namespace Emulation {
|
|
1106
|
+
type SetScriptingEnabledParameters = {
|
|
1107
|
+
enabled: false | null;
|
|
1108
|
+
contexts?: [
|
|
1109
|
+
BrowsingContext.BrowsingContext,
|
|
1110
|
+
...BrowsingContext.BrowsingContext[],
|
|
1111
|
+
];
|
|
1112
|
+
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
|
|
1113
|
+
};
|
|
1114
|
+
}
|
|
1098
1115
|
export declare namespace Emulation {
|
|
1099
1116
|
type SetTimezoneOverride = {
|
|
1100
1117
|
method: 'emulation.setTimezoneOverride';
|
|
@@ -1125,13 +1142,13 @@ export type NetworkCommand =
|
|
|
1125
1142
|
| Network.RemoveIntercept
|
|
1126
1143
|
| Network.SetCacheBehavior
|
|
1127
1144
|
| Network.SetExtraHeaders;
|
|
1145
|
+
export type NetworkResult = Network.AddInterceptResult;
|
|
1128
1146
|
export type NetworkEvent =
|
|
1129
1147
|
| Network.AuthRequired
|
|
1130
1148
|
| Network.BeforeRequestSent
|
|
1131
1149
|
| Network.FetchError
|
|
1132
1150
|
| Network.ResponseCompleted
|
|
1133
1151
|
| Network.ResponseStarted;
|
|
1134
|
-
export type NetworkResult = Network.AddInterceptResult;
|
|
1135
1152
|
export declare namespace Network {
|
|
1136
1153
|
type AuthChallenge = {
|
|
1137
1154
|
scheme: string;
|
|
@@ -1342,6 +1359,12 @@ export declare namespace Network {
|
|
|
1342
1359
|
collector: Network.Collector;
|
|
1343
1360
|
};
|
|
1344
1361
|
}
|
|
1362
|
+
export declare namespace Network {
|
|
1363
|
+
type AddIntercept = {
|
|
1364
|
+
method: 'network.addIntercept';
|
|
1365
|
+
params: Network.AddInterceptParameters;
|
|
1366
|
+
};
|
|
1367
|
+
}
|
|
1345
1368
|
export declare namespace Network {
|
|
1346
1369
|
type AddInterceptParameters = {
|
|
1347
1370
|
phases: [Network.InterceptPhase, ...Network.InterceptPhase[]];
|
|
@@ -1352,12 +1375,6 @@ export declare namespace Network {
|
|
|
1352
1375
|
urlPatterns?: [...Network.UrlPattern[]];
|
|
1353
1376
|
};
|
|
1354
1377
|
}
|
|
1355
|
-
export declare namespace Network {
|
|
1356
|
-
type AddIntercept = {
|
|
1357
|
-
method: 'network.addIntercept';
|
|
1358
|
-
params: Network.AddInterceptParameters;
|
|
1359
|
-
};
|
|
1360
|
-
}
|
|
1361
1378
|
export declare namespace Network {
|
|
1362
1379
|
const enum InterceptPhase {
|
|
1363
1380
|
BeforeRequestSent = 'beforeRequestSent',
|
|
@@ -1542,30 +1559,56 @@ export declare namespace Network {
|
|
|
1542
1559
|
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
|
|
1543
1560
|
};
|
|
1544
1561
|
}
|
|
1545
|
-
export
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1562
|
+
export declare namespace Network {
|
|
1563
|
+
type AuthRequired = {
|
|
1564
|
+
method: 'network.authRequired';
|
|
1565
|
+
params: Network.AuthRequiredParameters;
|
|
1566
|
+
};
|
|
1567
|
+
}
|
|
1549
1568
|
export declare namespace Network {
|
|
1550
1569
|
type AuthRequiredParameters = Network.BaseParameters & {
|
|
1551
1570
|
response: Network.ResponseData;
|
|
1552
1571
|
};
|
|
1553
1572
|
}
|
|
1573
|
+
export declare namespace Network {
|
|
1574
|
+
type BeforeRequestSent = {
|
|
1575
|
+
method: 'network.beforeRequestSent';
|
|
1576
|
+
params: Network.BeforeRequestSentParameters;
|
|
1577
|
+
};
|
|
1578
|
+
}
|
|
1554
1579
|
export declare namespace Network {
|
|
1555
1580
|
type BeforeRequestSentParameters = Network.BaseParameters & {
|
|
1556
1581
|
initiator?: Network.Initiator;
|
|
1557
1582
|
};
|
|
1558
1583
|
}
|
|
1584
|
+
export declare namespace Network {
|
|
1585
|
+
type FetchError = {
|
|
1586
|
+
method: 'network.fetchError';
|
|
1587
|
+
params: Network.FetchErrorParameters;
|
|
1588
|
+
};
|
|
1589
|
+
}
|
|
1559
1590
|
export declare namespace Network {
|
|
1560
1591
|
type FetchErrorParameters = Network.BaseParameters & {
|
|
1561
1592
|
errorText: string;
|
|
1562
1593
|
};
|
|
1563
1594
|
}
|
|
1595
|
+
export declare namespace Network {
|
|
1596
|
+
type ResponseCompleted = {
|
|
1597
|
+
method: 'network.responseCompleted';
|
|
1598
|
+
params: Network.ResponseCompletedParameters;
|
|
1599
|
+
};
|
|
1600
|
+
}
|
|
1564
1601
|
export declare namespace Network {
|
|
1565
1602
|
type ResponseCompletedParameters = Network.BaseParameters & {
|
|
1566
1603
|
response: Network.ResponseData;
|
|
1567
1604
|
};
|
|
1568
1605
|
}
|
|
1606
|
+
export declare namespace Network {
|
|
1607
|
+
type ResponseStarted = {
|
|
1608
|
+
method: 'network.responseStarted';
|
|
1609
|
+
params: Network.ResponseStartedParameters;
|
|
1610
|
+
};
|
|
1611
|
+
}
|
|
1569
1612
|
export declare namespace Network {
|
|
1570
1613
|
type ResponseStartedParameters = Network.BaseParameters & {
|
|
1571
1614
|
response: Network.ResponseData;
|
|
@@ -1582,55 +1625,13 @@ export type ScriptResult =
|
|
|
1582
1625
|
| Script.AddPreloadScriptResult
|
|
1583
1626
|
| Script.EvaluateResult
|
|
1584
1627
|
| Script.GetRealmsResult;
|
|
1585
|
-
export
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
};
|
|
1590
|
-
}
|
|
1591
|
-
export declare namespace Network {
|
|
1592
|
-
type BeforeRequestSent = {
|
|
1593
|
-
method: 'network.beforeRequestSent';
|
|
1594
|
-
params: Network.BeforeRequestSentParameters;
|
|
1595
|
-
};
|
|
1596
|
-
}
|
|
1597
|
-
export declare namespace Network {
|
|
1598
|
-
type FetchError = {
|
|
1599
|
-
method: 'network.fetchError';
|
|
1600
|
-
params: Network.FetchErrorParameters;
|
|
1601
|
-
};
|
|
1602
|
-
}
|
|
1603
|
-
export declare namespace Network {
|
|
1604
|
-
type ResponseCompleted = {
|
|
1605
|
-
method: 'network.responseCompleted';
|
|
1606
|
-
params: Network.ResponseCompletedParameters;
|
|
1607
|
-
};
|
|
1608
|
-
}
|
|
1609
|
-
export declare namespace Network {
|
|
1610
|
-
type ResponseStarted = {
|
|
1611
|
-
method: 'network.responseStarted';
|
|
1612
|
-
params: Network.ResponseStartedParameters;
|
|
1613
|
-
};
|
|
1614
|
-
}
|
|
1628
|
+
export type ScriptEvent =
|
|
1629
|
+
| Script.Message
|
|
1630
|
+
| Script.RealmCreated
|
|
1631
|
+
| Script.RealmDestroyed;
|
|
1615
1632
|
export declare namespace Script {
|
|
1616
1633
|
type Channel = string;
|
|
1617
1634
|
}
|
|
1618
|
-
export declare namespace Script {
|
|
1619
|
-
type EvaluateResultSuccess = {
|
|
1620
|
-
type: 'success';
|
|
1621
|
-
result: Script.RemoteValue;
|
|
1622
|
-
realm: Script.Realm;
|
|
1623
|
-
};
|
|
1624
|
-
}
|
|
1625
|
-
export declare namespace Script {
|
|
1626
|
-
type ExceptionDetails = {
|
|
1627
|
-
columnNumber: JsUint;
|
|
1628
|
-
exception: Script.RemoteValue;
|
|
1629
|
-
lineNumber: JsUint;
|
|
1630
|
-
stackTrace: Script.StackTrace;
|
|
1631
|
-
text: string;
|
|
1632
|
-
};
|
|
1633
|
-
}
|
|
1634
1635
|
export declare namespace Script {
|
|
1635
1636
|
type ChannelValue = {
|
|
1636
1637
|
type: 'channel';
|
|
@@ -1649,6 +1650,13 @@ export declare namespace Script {
|
|
|
1649
1650
|
| Script.EvaluateResultSuccess
|
|
1650
1651
|
| Script.EvaluateResultException;
|
|
1651
1652
|
}
|
|
1653
|
+
export declare namespace Script {
|
|
1654
|
+
type EvaluateResultSuccess = {
|
|
1655
|
+
type: 'success';
|
|
1656
|
+
result: Script.RemoteValue;
|
|
1657
|
+
realm: Script.Realm;
|
|
1658
|
+
};
|
|
1659
|
+
}
|
|
1652
1660
|
export declare namespace Script {
|
|
1653
1661
|
type EvaluateResultException = {
|
|
1654
1662
|
type: 'exception';
|
|
@@ -1657,13 +1665,19 @@ export declare namespace Script {
|
|
|
1657
1665
|
};
|
|
1658
1666
|
}
|
|
1659
1667
|
export declare namespace Script {
|
|
1660
|
-
type
|
|
1668
|
+
type ExceptionDetails = {
|
|
1669
|
+
columnNumber: JsUint;
|
|
1670
|
+
exception: Script.RemoteValue;
|
|
1671
|
+
lineNumber: JsUint;
|
|
1672
|
+
stackTrace: Script.StackTrace;
|
|
1673
|
+
text: string;
|
|
1674
|
+
};
|
|
1661
1675
|
}
|
|
1662
1676
|
export declare namespace Script {
|
|
1663
|
-
type
|
|
1677
|
+
type Handle = string;
|
|
1664
1678
|
}
|
|
1665
1679
|
export declare namespace Script {
|
|
1666
|
-
type
|
|
1680
|
+
type InternalId = string;
|
|
1667
1681
|
}
|
|
1668
1682
|
export declare namespace Script {
|
|
1669
1683
|
type LocalValue =
|
|
@@ -1677,6 +1691,9 @@ export declare namespace Script {
|
|
|
1677
1691
|
| Script.RegExpLocalValue
|
|
1678
1692
|
| Script.SetLocalValue;
|
|
1679
1693
|
}
|
|
1694
|
+
export declare namespace Script {
|
|
1695
|
+
type ListLocalValue = [...Script.LocalValue[]];
|
|
1696
|
+
}
|
|
1680
1697
|
export declare namespace Script {
|
|
1681
1698
|
type ArrayLocalValue = {
|
|
1682
1699
|
type: 'array';
|
|
@@ -1848,12 +1865,19 @@ export declare namespace Script {
|
|
|
1848
1865
|
| 'worklet';
|
|
1849
1866
|
}
|
|
1850
1867
|
export declare namespace Script {
|
|
1851
|
-
type
|
|
1868
|
+
type RemoteReference = Script.SharedReference | Script.RemoteObjectReference;
|
|
1852
1869
|
}
|
|
1853
1870
|
export declare namespace Script {
|
|
1854
|
-
type
|
|
1855
|
-
|
|
1856
|
-
|
|
1871
|
+
type SharedReference = {
|
|
1872
|
+
sharedId: Script.SharedId;
|
|
1873
|
+
handle?: Script.Handle;
|
|
1874
|
+
} & Extensible;
|
|
1875
|
+
}
|
|
1876
|
+
export declare namespace Script {
|
|
1877
|
+
type RemoteObjectReference = {
|
|
1878
|
+
handle: Script.Handle;
|
|
1879
|
+
sharedId?: Script.SharedId;
|
|
1880
|
+
} & Extensible;
|
|
1857
1881
|
}
|
|
1858
1882
|
export declare namespace Script {
|
|
1859
1883
|
type RemoteValue =
|
|
@@ -1880,19 +1904,12 @@ export declare namespace Script {
|
|
|
1880
1904
|
| Script.WindowProxyRemoteValue;
|
|
1881
1905
|
}
|
|
1882
1906
|
export declare namespace Script {
|
|
1883
|
-
type
|
|
1884
|
-
}
|
|
1885
|
-
export declare namespace Script {
|
|
1886
|
-
type SharedReference = {
|
|
1887
|
-
sharedId: Script.SharedId;
|
|
1888
|
-
handle?: Script.Handle;
|
|
1889
|
-
} & Extensible;
|
|
1907
|
+
type ListRemoteValue = [...Script.RemoteValue[]];
|
|
1890
1908
|
}
|
|
1891
1909
|
export declare namespace Script {
|
|
1892
|
-
type
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
} & Extensible;
|
|
1910
|
+
type MappingRemoteValue = [
|
|
1911
|
+
...[Script.RemoteValue | string, Script.RemoteValue][],
|
|
1912
|
+
];
|
|
1896
1913
|
}
|
|
1897
1914
|
export declare namespace Script {
|
|
1898
1915
|
type SymbolRemoteValue = {
|
|
@@ -2154,6 +2171,12 @@ export declare namespace Script {
|
|
|
2154
2171
|
target: Script.Target;
|
|
2155
2172
|
};
|
|
2156
2173
|
}
|
|
2174
|
+
export declare namespace Script {
|
|
2175
|
+
type CallFunction = {
|
|
2176
|
+
method: 'script.callFunction';
|
|
2177
|
+
params: Script.CallFunctionParameters;
|
|
2178
|
+
};
|
|
2179
|
+
}
|
|
2157
2180
|
export declare namespace Script {
|
|
2158
2181
|
type CallFunctionParameters = {
|
|
2159
2182
|
functionDeclaration: string;
|
|
@@ -2169,12 +2192,6 @@ export declare namespace Script {
|
|
|
2169
2192
|
userActivation?: boolean;
|
|
2170
2193
|
};
|
|
2171
2194
|
}
|
|
2172
|
-
export declare namespace Script {
|
|
2173
|
-
type CallFunction = {
|
|
2174
|
-
method: 'script.callFunction';
|
|
2175
|
-
params: Script.CallFunctionParameters;
|
|
2176
|
-
};
|
|
2177
|
-
}
|
|
2178
2195
|
export declare namespace Script {
|
|
2179
2196
|
type Evaluate = {
|
|
2180
2197
|
method: 'script.evaluate';
|
|
@@ -2222,6 +2239,12 @@ export declare namespace Script {
|
|
|
2222
2239
|
script: Script.PreloadScript;
|
|
2223
2240
|
};
|
|
2224
2241
|
}
|
|
2242
|
+
export declare namespace Script {
|
|
2243
|
+
type Message = {
|
|
2244
|
+
method: 'script.message';
|
|
2245
|
+
params: Script.MessageParameters;
|
|
2246
|
+
};
|
|
2247
|
+
}
|
|
2225
2248
|
export declare namespace Script {
|
|
2226
2249
|
type MessageParameters = {
|
|
2227
2250
|
channel: Script.Channel;
|
|
@@ -2235,12 +2258,6 @@ export declare namespace Script {
|
|
|
2235
2258
|
params: Script.RealmInfo;
|
|
2236
2259
|
};
|
|
2237
2260
|
}
|
|
2238
|
-
export declare namespace Script {
|
|
2239
|
-
type Message = {
|
|
2240
|
-
method: 'script.message';
|
|
2241
|
-
params: Script.MessageParameters;
|
|
2242
|
-
};
|
|
2243
|
-
}
|
|
2244
2261
|
export declare namespace Script {
|
|
2245
2262
|
type RealmDestroyed = {
|
|
2246
2263
|
method: 'script.realmDestroyed';
|
|
@@ -2419,12 +2436,25 @@ export declare namespace Input {
|
|
|
2419
2436
|
element: Script.SharedReference;
|
|
2420
2437
|
};
|
|
2421
2438
|
}
|
|
2439
|
+
export declare namespace Input {
|
|
2440
|
+
type PerformActions = {
|
|
2441
|
+
method: 'input.performActions';
|
|
2442
|
+
params: Input.PerformActionsParameters;
|
|
2443
|
+
};
|
|
2444
|
+
}
|
|
2422
2445
|
export declare namespace Input {
|
|
2423
2446
|
type PerformActionsParameters = {
|
|
2424
2447
|
context: BrowsingContext.BrowsingContext;
|
|
2425
2448
|
actions: [...Input.SourceActions[]];
|
|
2426
2449
|
};
|
|
2427
2450
|
}
|
|
2451
|
+
export declare namespace Input {
|
|
2452
|
+
type SourceActions =
|
|
2453
|
+
| Input.NoneSourceActions
|
|
2454
|
+
| Input.KeySourceActions
|
|
2455
|
+
| Input.PointerSourceActions
|
|
2456
|
+
| Input.WheelSourceActions;
|
|
2457
|
+
}
|
|
2428
2458
|
export declare namespace Input {
|
|
2429
2459
|
type NoneSourceActions = {
|
|
2430
2460
|
type: 'none';
|
|
@@ -2432,6 +2462,9 @@ export declare namespace Input {
|
|
|
2432
2462
|
actions: [...Input.NoneSourceAction[]];
|
|
2433
2463
|
};
|
|
2434
2464
|
}
|
|
2465
|
+
export declare namespace Input {
|
|
2466
|
+
type NoneSourceAction = Input.PauseAction;
|
|
2467
|
+
}
|
|
2435
2468
|
export declare namespace Input {
|
|
2436
2469
|
type KeySourceActions = {
|
|
2437
2470
|
type: 'key';
|
|
@@ -2439,6 +2472,12 @@ export declare namespace Input {
|
|
|
2439
2472
|
actions: [...Input.KeySourceAction[]];
|
|
2440
2473
|
};
|
|
2441
2474
|
}
|
|
2475
|
+
export declare namespace Input {
|
|
2476
|
+
type KeySourceAction =
|
|
2477
|
+
| Input.PauseAction
|
|
2478
|
+
| Input.KeyDownAction
|
|
2479
|
+
| Input.KeyUpAction;
|
|
2480
|
+
}
|
|
2442
2481
|
export declare namespace Input {
|
|
2443
2482
|
type PointerSourceActions = {
|
|
2444
2483
|
type: 'pointer';
|
|
@@ -2447,28 +2486,6 @@ export declare namespace Input {
|
|
|
2447
2486
|
actions: [...Input.PointerSourceAction[]];
|
|
2448
2487
|
};
|
|
2449
2488
|
}
|
|
2450
|
-
export declare namespace Input {
|
|
2451
|
-
type PerformActions = {
|
|
2452
|
-
method: 'input.performActions';
|
|
2453
|
-
params: Input.PerformActionsParameters;
|
|
2454
|
-
};
|
|
2455
|
-
}
|
|
2456
|
-
export declare namespace Input {
|
|
2457
|
-
type SourceActions =
|
|
2458
|
-
| Input.NoneSourceActions
|
|
2459
|
-
| Input.KeySourceActions
|
|
2460
|
-
| Input.PointerSourceActions
|
|
2461
|
-
| Input.WheelSourceActions;
|
|
2462
|
-
}
|
|
2463
|
-
export declare namespace Input {
|
|
2464
|
-
type NoneSourceAction = Input.PauseAction;
|
|
2465
|
-
}
|
|
2466
|
-
export declare namespace Input {
|
|
2467
|
-
type KeySourceAction =
|
|
2468
|
-
| Input.PauseAction
|
|
2469
|
-
| Input.KeyDownAction
|
|
2470
|
-
| Input.KeyUpAction;
|
|
2471
|
-
}
|
|
2472
2489
|
export declare namespace Input {
|
|
2473
2490
|
const enum PointerType {
|
|
2474
2491
|
Mouse = 'mouse',
|
|
@@ -2484,13 +2501,6 @@ export declare namespace Input {
|
|
|
2484
2501
|
pointerType?: Input.PointerType;
|
|
2485
2502
|
};
|
|
2486
2503
|
}
|
|
2487
|
-
export declare namespace Input {
|
|
2488
|
-
type WheelSourceActions = {
|
|
2489
|
-
type: 'wheel';
|
|
2490
|
-
id: string;
|
|
2491
|
-
actions: [...Input.WheelSourceAction[]];
|
|
2492
|
-
};
|
|
2493
|
-
}
|
|
2494
2504
|
export declare namespace Input {
|
|
2495
2505
|
type PointerSourceAction =
|
|
2496
2506
|
| Input.PauseAction
|
|
@@ -2498,6 +2508,13 @@ export declare namespace Input {
|
|
|
2498
2508
|
| Input.PointerUpAction
|
|
2499
2509
|
| Input.PointerMoveAction;
|
|
2500
2510
|
}
|
|
2511
|
+
export declare namespace Input {
|
|
2512
|
+
type WheelSourceActions = {
|
|
2513
|
+
type: 'wheel';
|
|
2514
|
+
id: string;
|
|
2515
|
+
actions: [...Input.WheelSourceAction[]];
|
|
2516
|
+
};
|
|
2517
|
+
}
|
|
2501
2518
|
export declare namespace Input {
|
|
2502
2519
|
type WheelSourceAction = Input.PauseAction | Input.WheelScrollAction;
|
|
2503
2520
|
}
|
|
@@ -2637,17 +2654,17 @@ export type WebExtensionResult = WebExtension.InstallResult;
|
|
|
2637
2654
|
export declare namespace WebExtension {
|
|
2638
2655
|
type Extension = string;
|
|
2639
2656
|
}
|
|
2640
|
-
export declare namespace WebExtension {
|
|
2641
|
-
type InstallParameters = {
|
|
2642
|
-
extensionData: WebExtension.ExtensionData;
|
|
2643
|
-
};
|
|
2644
|
-
}
|
|
2645
2657
|
export declare namespace WebExtension {
|
|
2646
2658
|
type Install = {
|
|
2647
2659
|
method: 'webExtension.install';
|
|
2648
2660
|
params: WebExtension.InstallParameters;
|
|
2649
2661
|
};
|
|
2650
2662
|
}
|
|
2663
|
+
export declare namespace WebExtension {
|
|
2664
|
+
type InstallParameters = {
|
|
2665
|
+
extensionData: WebExtension.ExtensionData;
|
|
2666
|
+
};
|
|
2667
|
+
}
|
|
2651
2668
|
export declare namespace WebExtension {
|
|
2652
2669
|
type ExtensionData =
|
|
2653
2670
|
| WebExtension.ExtensionArchivePath
|
package/out/index.d.ts
CHANGED
|
@@ -140,6 +140,10 @@ export interface Commands {
|
|
|
140
140
|
params: Bidi.Emulation.SetGeolocationOverrideParameters;
|
|
141
141
|
returnType: Bidi.EmptyResult;
|
|
142
142
|
};
|
|
143
|
+
'emulation.setLocaleOverride': {
|
|
144
|
+
params: Bidi.Emulation.SetLocaleOverrideParameters;
|
|
145
|
+
returnType: Bidi.EmptyResult;
|
|
146
|
+
};
|
|
143
147
|
'emulation.setScreenOrientationOverride': {
|
|
144
148
|
params: Bidi.Emulation.SetScreenOrientationOverrideParameters;
|
|
145
149
|
returnType: Bidi.EmptyResult;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webdriver-bidi-protocol",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"types": "out/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"gts": "^6.0.2",
|
|
25
25
|
"parse5": "^8.0.0",
|
|
26
26
|
"prettier": "3.6.2",
|
|
27
|
-
"tsd": "0.
|
|
27
|
+
"tsd": "0.33.0",
|
|
28
28
|
"typescript": "5.9.2"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/src/gen/main.ts
CHANGED
|
@@ -1,22 +1,7 @@
|
|
|
1
|
-
export type Event = {
|
|
2
|
-
type: 'event';
|
|
3
|
-
} & EventData &
|
|
4
|
-
Extensible;
|
|
5
1
|
export type Command = {
|
|
6
2
|
id: JsUint;
|
|
7
3
|
} & CommandData &
|
|
8
4
|
Extensible;
|
|
9
|
-
export type CommandResponse = {
|
|
10
|
-
type: 'success';
|
|
11
|
-
id: JsUint;
|
|
12
|
-
result: ResultData;
|
|
13
|
-
} & Extensible;
|
|
14
|
-
export type EventData =
|
|
15
|
-
| BrowsingContextEvent
|
|
16
|
-
| InputEvent
|
|
17
|
-
| LogEvent
|
|
18
|
-
| NetworkEvent
|
|
19
|
-
| ScriptEvent;
|
|
20
5
|
export type CommandData =
|
|
21
6
|
| BrowserCommand
|
|
22
7
|
| BrowsingContextCommand
|
|
@@ -27,16 +12,13 @@ export type CommandData =
|
|
|
27
12
|
| SessionCommand
|
|
28
13
|
| StorageCommand
|
|
29
14
|
| WebExtensionCommand;
|
|
30
|
-
export type ResultData =
|
|
31
|
-
| BrowsingContextResult
|
|
32
|
-
| EmptyResult
|
|
33
|
-
| NetworkResult
|
|
34
|
-
| ScriptResult
|
|
35
|
-
| SessionResult
|
|
36
|
-
| StorageResult
|
|
37
|
-
| WebExtensionResult;
|
|
38
15
|
export type EmptyParams = Extensible;
|
|
39
16
|
export type Message = CommandResponse | ErrorResponse | Event;
|
|
17
|
+
export type CommandResponse = {
|
|
18
|
+
type: 'success';
|
|
19
|
+
id: JsUint;
|
|
20
|
+
result: ResultData;
|
|
21
|
+
} & Extensible;
|
|
40
22
|
export type ErrorResponse = {
|
|
41
23
|
type: 'error';
|
|
42
24
|
id: JsUint | null;
|
|
@@ -44,7 +26,25 @@ export type ErrorResponse = {
|
|
|
44
26
|
message: string;
|
|
45
27
|
stacktrace?: string;
|
|
46
28
|
} & Extensible;
|
|
29
|
+
export type ResultData =
|
|
30
|
+
| BrowsingContextResult
|
|
31
|
+
| EmptyResult
|
|
32
|
+
| NetworkResult
|
|
33
|
+
| ScriptResult
|
|
34
|
+
| SessionResult
|
|
35
|
+
| StorageResult
|
|
36
|
+
| WebExtensionResult;
|
|
47
37
|
export type EmptyResult = Extensible;
|
|
38
|
+
export type Event = {
|
|
39
|
+
type: 'event';
|
|
40
|
+
} & EventData &
|
|
41
|
+
Extensible;
|
|
42
|
+
export type EventData =
|
|
43
|
+
| BrowsingContextEvent
|
|
44
|
+
| InputEvent
|
|
45
|
+
| LogEvent
|
|
46
|
+
| NetworkEvent
|
|
47
|
+
| ScriptEvent;
|
|
48
48
|
export type Extensible = {
|
|
49
49
|
[key: string]: any;
|
|
50
50
|
};
|
|
@@ -95,14 +95,6 @@ export type SessionCommand =
|
|
|
95
95
|
| Session.Status
|
|
96
96
|
| Session.Subscribe
|
|
97
97
|
| Session.Unsubscribe;
|
|
98
|
-
export namespace Session {
|
|
99
|
-
export type ProxyConfiguration =
|
|
100
|
-
| Session.AutodetectProxyConfiguration
|
|
101
|
-
| Session.DirectProxyConfiguration
|
|
102
|
-
| Session.ManualProxyConfiguration
|
|
103
|
-
| Session.PacProxyConfiguration
|
|
104
|
-
| Session.SystemProxyConfiguration;
|
|
105
|
-
}
|
|
106
98
|
export type SessionResult =
|
|
107
99
|
| Session.NewResult
|
|
108
100
|
| Session.StatusResult
|
|
@@ -123,6 +115,14 @@ export namespace Session {
|
|
|
123
115
|
unhandledPromptBehavior?: Session.UserPromptHandler;
|
|
124
116
|
} & Extensible;
|
|
125
117
|
}
|
|
118
|
+
export namespace Session {
|
|
119
|
+
export type ProxyConfiguration =
|
|
120
|
+
| Session.AutodetectProxyConfiguration
|
|
121
|
+
| Session.DirectProxyConfiguration
|
|
122
|
+
| Session.ManualProxyConfiguration
|
|
123
|
+
| Session.PacProxyConfiguration
|
|
124
|
+
| Session.SystemProxyConfiguration;
|
|
125
|
+
}
|
|
126
126
|
export namespace Session {
|
|
127
127
|
export type AutodetectProxyConfiguration = {
|
|
128
128
|
proxyType: 'autodetect';
|
|
@@ -398,6 +398,14 @@ export type BrowsingContextCommand =
|
|
|
398
398
|
| BrowsingContext.Reload
|
|
399
399
|
| BrowsingContext.SetViewport
|
|
400
400
|
| BrowsingContext.TraverseHistory;
|
|
401
|
+
export type BrowsingContextResult =
|
|
402
|
+
| BrowsingContext.CaptureScreenshotResult
|
|
403
|
+
| BrowsingContext.CreateResult
|
|
404
|
+
| BrowsingContext.GetTreeResult
|
|
405
|
+
| BrowsingContext.LocateNodesResult
|
|
406
|
+
| BrowsingContext.NavigateResult
|
|
407
|
+
| BrowsingContext.PrintResult
|
|
408
|
+
| BrowsingContext.TraverseHistoryResult;
|
|
401
409
|
export type BrowsingContextEvent =
|
|
402
410
|
| BrowsingContext.ContextCreated
|
|
403
411
|
| BrowsingContext.ContextDestroyed
|
|
@@ -413,14 +421,6 @@ export type BrowsingContextEvent =
|
|
|
413
421
|
| BrowsingContext.NavigationStarted
|
|
414
422
|
| BrowsingContext.UserPromptClosed
|
|
415
423
|
| BrowsingContext.UserPromptOpened;
|
|
416
|
-
export type BrowsingContextResult =
|
|
417
|
-
| BrowsingContext.CaptureScreenshotResult
|
|
418
|
-
| BrowsingContext.CreateResult
|
|
419
|
-
| BrowsingContext.GetTreeResult
|
|
420
|
-
| BrowsingContext.LocateNodesResult
|
|
421
|
-
| BrowsingContext.NavigateResult
|
|
422
|
-
| BrowsingContext.PrintResult
|
|
423
|
-
| BrowsingContext.TraverseHistoryResult;
|
|
424
424
|
export namespace BrowsingContext {
|
|
425
425
|
export type BrowsingContext = string;
|
|
426
426
|
}
|
|
@@ -524,6 +524,12 @@ export namespace BrowsingContext {
|
|
|
524
524
|
context: BrowsingContext.BrowsingContext;
|
|
525
525
|
};
|
|
526
526
|
}
|
|
527
|
+
export namespace BrowsingContext {
|
|
528
|
+
export type CaptureScreenshot = {
|
|
529
|
+
method: 'browsingContext.captureScreenshot';
|
|
530
|
+
params: BrowsingContext.CaptureScreenshotParameters;
|
|
531
|
+
};
|
|
532
|
+
}
|
|
527
533
|
export namespace BrowsingContext {
|
|
528
534
|
export type CaptureScreenshotParameters = {
|
|
529
535
|
context: BrowsingContext.BrowsingContext;
|
|
@@ -535,12 +541,6 @@ export namespace BrowsingContext {
|
|
|
535
541
|
clip?: BrowsingContext.ClipRectangle;
|
|
536
542
|
};
|
|
537
543
|
}
|
|
538
|
-
export namespace BrowsingContext {
|
|
539
|
-
export type CaptureScreenshot = {
|
|
540
|
-
method: 'browsingContext.captureScreenshot';
|
|
541
|
-
params: BrowsingContext.CaptureScreenshotParameters;
|
|
542
|
-
};
|
|
543
|
-
}
|
|
544
544
|
export namespace BrowsingContext {
|
|
545
545
|
export type ImageFormat = {
|
|
546
546
|
type: string;
|
|
@@ -648,6 +648,12 @@ export namespace BrowsingContext {
|
|
|
648
648
|
userText?: string;
|
|
649
649
|
};
|
|
650
650
|
}
|
|
651
|
+
export namespace BrowsingContext {
|
|
652
|
+
export type LocateNodes = {
|
|
653
|
+
method: 'browsingContext.locateNodes';
|
|
654
|
+
params: BrowsingContext.LocateNodesParameters;
|
|
655
|
+
};
|
|
656
|
+
}
|
|
651
657
|
export namespace BrowsingContext {
|
|
652
658
|
export type LocateNodesParameters = {
|
|
653
659
|
context: BrowsingContext.BrowsingContext;
|
|
@@ -660,12 +666,6 @@ export namespace BrowsingContext {
|
|
|
660
666
|
startNodes?: [Script.SharedReference, ...Script.SharedReference[]];
|
|
661
667
|
};
|
|
662
668
|
}
|
|
663
|
-
export namespace BrowsingContext {
|
|
664
|
-
export type LocateNodes = {
|
|
665
|
-
method: 'browsingContext.locateNodes';
|
|
666
|
-
params: BrowsingContext.LocateNodesParameters;
|
|
667
|
-
};
|
|
668
|
-
}
|
|
669
669
|
export namespace BrowsingContext {
|
|
670
670
|
export type LocateNodesResult = {
|
|
671
671
|
nodes: [...Script.NodeRemoteValue[]];
|
|
@@ -956,6 +956,7 @@ export type EmulationCommand =
|
|
|
956
956
|
| Emulation.SetGeolocationOverride
|
|
957
957
|
| Emulation.SetLocaleOverride
|
|
958
958
|
| Emulation.SetScreenOrientationOverride
|
|
959
|
+
| Emulation.SetScriptingEnabled
|
|
959
960
|
| Emulation.SetTimezoneOverride;
|
|
960
961
|
export namespace Emulation {
|
|
961
962
|
export type SetForcedColorsModeThemeOverride = {
|
|
@@ -1097,6 +1098,22 @@ export namespace Emulation {
|
|
|
1097
1098
|
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
|
|
1098
1099
|
};
|
|
1099
1100
|
}
|
|
1101
|
+
export namespace Emulation {
|
|
1102
|
+
export type SetScriptingEnabled = {
|
|
1103
|
+
method: 'emulation.setScriptingEnabled';
|
|
1104
|
+
params: Emulation.SetScriptingEnabledParameters;
|
|
1105
|
+
};
|
|
1106
|
+
}
|
|
1107
|
+
export namespace Emulation {
|
|
1108
|
+
export type SetScriptingEnabledParameters = {
|
|
1109
|
+
enabled: false | null;
|
|
1110
|
+
contexts?: [
|
|
1111
|
+
BrowsingContext.BrowsingContext,
|
|
1112
|
+
...BrowsingContext.BrowsingContext[],
|
|
1113
|
+
];
|
|
1114
|
+
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
|
|
1115
|
+
};
|
|
1116
|
+
}
|
|
1100
1117
|
export namespace Emulation {
|
|
1101
1118
|
export type SetTimezoneOverride = {
|
|
1102
1119
|
method: 'emulation.setTimezoneOverride';
|
|
@@ -1127,13 +1144,13 @@ export type NetworkCommand =
|
|
|
1127
1144
|
| Network.RemoveIntercept
|
|
1128
1145
|
| Network.SetCacheBehavior
|
|
1129
1146
|
| Network.SetExtraHeaders;
|
|
1147
|
+
export type NetworkResult = Network.AddInterceptResult;
|
|
1130
1148
|
export type NetworkEvent =
|
|
1131
1149
|
| Network.AuthRequired
|
|
1132
1150
|
| Network.BeforeRequestSent
|
|
1133
1151
|
| Network.FetchError
|
|
1134
1152
|
| Network.ResponseCompleted
|
|
1135
1153
|
| Network.ResponseStarted;
|
|
1136
|
-
export type NetworkResult = Network.AddInterceptResult;
|
|
1137
1154
|
export namespace Network {
|
|
1138
1155
|
export type AuthChallenge = {
|
|
1139
1156
|
scheme: string;
|
|
@@ -1344,6 +1361,12 @@ export namespace Network {
|
|
|
1344
1361
|
collector: Network.Collector;
|
|
1345
1362
|
};
|
|
1346
1363
|
}
|
|
1364
|
+
export namespace Network {
|
|
1365
|
+
export type AddIntercept = {
|
|
1366
|
+
method: 'network.addIntercept';
|
|
1367
|
+
params: Network.AddInterceptParameters;
|
|
1368
|
+
};
|
|
1369
|
+
}
|
|
1347
1370
|
export namespace Network {
|
|
1348
1371
|
export type AddInterceptParameters = {
|
|
1349
1372
|
phases: [Network.InterceptPhase, ...Network.InterceptPhase[]];
|
|
@@ -1354,12 +1377,6 @@ export namespace Network {
|
|
|
1354
1377
|
urlPatterns?: [...Network.UrlPattern[]];
|
|
1355
1378
|
};
|
|
1356
1379
|
}
|
|
1357
|
-
export namespace Network {
|
|
1358
|
-
export type AddIntercept = {
|
|
1359
|
-
method: 'network.addIntercept';
|
|
1360
|
-
params: Network.AddInterceptParameters;
|
|
1361
|
-
};
|
|
1362
|
-
}
|
|
1363
1380
|
export namespace Network {
|
|
1364
1381
|
export const enum InterceptPhase {
|
|
1365
1382
|
BeforeRequestSent = 'beforeRequestSent',
|
|
@@ -1544,30 +1561,56 @@ export namespace Network {
|
|
|
1544
1561
|
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
|
|
1545
1562
|
};
|
|
1546
1563
|
}
|
|
1547
|
-
export
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1564
|
+
export namespace Network {
|
|
1565
|
+
export type AuthRequired = {
|
|
1566
|
+
method: 'network.authRequired';
|
|
1567
|
+
params: Network.AuthRequiredParameters;
|
|
1568
|
+
};
|
|
1569
|
+
}
|
|
1551
1570
|
export namespace Network {
|
|
1552
1571
|
export type AuthRequiredParameters = Network.BaseParameters & {
|
|
1553
1572
|
response: Network.ResponseData;
|
|
1554
1573
|
};
|
|
1555
1574
|
}
|
|
1575
|
+
export namespace Network {
|
|
1576
|
+
export type BeforeRequestSent = {
|
|
1577
|
+
method: 'network.beforeRequestSent';
|
|
1578
|
+
params: Network.BeforeRequestSentParameters;
|
|
1579
|
+
};
|
|
1580
|
+
}
|
|
1556
1581
|
export namespace Network {
|
|
1557
1582
|
export type BeforeRequestSentParameters = Network.BaseParameters & {
|
|
1558
1583
|
initiator?: Network.Initiator;
|
|
1559
1584
|
};
|
|
1560
1585
|
}
|
|
1586
|
+
export namespace Network {
|
|
1587
|
+
export type FetchError = {
|
|
1588
|
+
method: 'network.fetchError';
|
|
1589
|
+
params: Network.FetchErrorParameters;
|
|
1590
|
+
};
|
|
1591
|
+
}
|
|
1561
1592
|
export namespace Network {
|
|
1562
1593
|
export type FetchErrorParameters = Network.BaseParameters & {
|
|
1563
1594
|
errorText: string;
|
|
1564
1595
|
};
|
|
1565
1596
|
}
|
|
1597
|
+
export namespace Network {
|
|
1598
|
+
export type ResponseCompleted = {
|
|
1599
|
+
method: 'network.responseCompleted';
|
|
1600
|
+
params: Network.ResponseCompletedParameters;
|
|
1601
|
+
};
|
|
1602
|
+
}
|
|
1566
1603
|
export namespace Network {
|
|
1567
1604
|
export type ResponseCompletedParameters = Network.BaseParameters & {
|
|
1568
1605
|
response: Network.ResponseData;
|
|
1569
1606
|
};
|
|
1570
1607
|
}
|
|
1608
|
+
export namespace Network {
|
|
1609
|
+
export type ResponseStarted = {
|
|
1610
|
+
method: 'network.responseStarted';
|
|
1611
|
+
params: Network.ResponseStartedParameters;
|
|
1612
|
+
};
|
|
1613
|
+
}
|
|
1571
1614
|
export namespace Network {
|
|
1572
1615
|
export type ResponseStartedParameters = Network.BaseParameters & {
|
|
1573
1616
|
response: Network.ResponseData;
|
|
@@ -1584,55 +1627,13 @@ export type ScriptResult =
|
|
|
1584
1627
|
| Script.AddPreloadScriptResult
|
|
1585
1628
|
| Script.EvaluateResult
|
|
1586
1629
|
| Script.GetRealmsResult;
|
|
1587
|
-
export
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
};
|
|
1592
|
-
}
|
|
1593
|
-
export namespace Network {
|
|
1594
|
-
export type BeforeRequestSent = {
|
|
1595
|
-
method: 'network.beforeRequestSent';
|
|
1596
|
-
params: Network.BeforeRequestSentParameters;
|
|
1597
|
-
};
|
|
1598
|
-
}
|
|
1599
|
-
export namespace Network {
|
|
1600
|
-
export type FetchError = {
|
|
1601
|
-
method: 'network.fetchError';
|
|
1602
|
-
params: Network.FetchErrorParameters;
|
|
1603
|
-
};
|
|
1604
|
-
}
|
|
1605
|
-
export namespace Network {
|
|
1606
|
-
export type ResponseCompleted = {
|
|
1607
|
-
method: 'network.responseCompleted';
|
|
1608
|
-
params: Network.ResponseCompletedParameters;
|
|
1609
|
-
};
|
|
1610
|
-
}
|
|
1611
|
-
export namespace Network {
|
|
1612
|
-
export type ResponseStarted = {
|
|
1613
|
-
method: 'network.responseStarted';
|
|
1614
|
-
params: Network.ResponseStartedParameters;
|
|
1615
|
-
};
|
|
1616
|
-
}
|
|
1630
|
+
export type ScriptEvent =
|
|
1631
|
+
| Script.Message
|
|
1632
|
+
| Script.RealmCreated
|
|
1633
|
+
| Script.RealmDestroyed;
|
|
1617
1634
|
export namespace Script {
|
|
1618
1635
|
export type Channel = string;
|
|
1619
1636
|
}
|
|
1620
|
-
export namespace Script {
|
|
1621
|
-
export type EvaluateResultSuccess = {
|
|
1622
|
-
type: 'success';
|
|
1623
|
-
result: Script.RemoteValue;
|
|
1624
|
-
realm: Script.Realm;
|
|
1625
|
-
};
|
|
1626
|
-
}
|
|
1627
|
-
export namespace Script {
|
|
1628
|
-
export type ExceptionDetails = {
|
|
1629
|
-
columnNumber: JsUint;
|
|
1630
|
-
exception: Script.RemoteValue;
|
|
1631
|
-
lineNumber: JsUint;
|
|
1632
|
-
stackTrace: Script.StackTrace;
|
|
1633
|
-
text: string;
|
|
1634
|
-
};
|
|
1635
|
-
}
|
|
1636
1637
|
export namespace Script {
|
|
1637
1638
|
export type ChannelValue = {
|
|
1638
1639
|
type: 'channel';
|
|
@@ -1651,6 +1652,13 @@ export namespace Script {
|
|
|
1651
1652
|
| Script.EvaluateResultSuccess
|
|
1652
1653
|
| Script.EvaluateResultException;
|
|
1653
1654
|
}
|
|
1655
|
+
export namespace Script {
|
|
1656
|
+
export type EvaluateResultSuccess = {
|
|
1657
|
+
type: 'success';
|
|
1658
|
+
result: Script.RemoteValue;
|
|
1659
|
+
realm: Script.Realm;
|
|
1660
|
+
};
|
|
1661
|
+
}
|
|
1654
1662
|
export namespace Script {
|
|
1655
1663
|
export type EvaluateResultException = {
|
|
1656
1664
|
type: 'exception';
|
|
@@ -1659,13 +1667,19 @@ export namespace Script {
|
|
|
1659
1667
|
};
|
|
1660
1668
|
}
|
|
1661
1669
|
export namespace Script {
|
|
1662
|
-
export type
|
|
1670
|
+
export type ExceptionDetails = {
|
|
1671
|
+
columnNumber: JsUint;
|
|
1672
|
+
exception: Script.RemoteValue;
|
|
1673
|
+
lineNumber: JsUint;
|
|
1674
|
+
stackTrace: Script.StackTrace;
|
|
1675
|
+
text: string;
|
|
1676
|
+
};
|
|
1663
1677
|
}
|
|
1664
1678
|
export namespace Script {
|
|
1665
|
-
export type
|
|
1679
|
+
export type Handle = string;
|
|
1666
1680
|
}
|
|
1667
1681
|
export namespace Script {
|
|
1668
|
-
export type
|
|
1682
|
+
export type InternalId = string;
|
|
1669
1683
|
}
|
|
1670
1684
|
export namespace Script {
|
|
1671
1685
|
export type LocalValue =
|
|
@@ -1679,6 +1693,9 @@ export namespace Script {
|
|
|
1679
1693
|
| Script.RegExpLocalValue
|
|
1680
1694
|
| Script.SetLocalValue;
|
|
1681
1695
|
}
|
|
1696
|
+
export namespace Script {
|
|
1697
|
+
export type ListLocalValue = [...Script.LocalValue[]];
|
|
1698
|
+
}
|
|
1682
1699
|
export namespace Script {
|
|
1683
1700
|
export type ArrayLocalValue = {
|
|
1684
1701
|
type: 'array';
|
|
@@ -1850,12 +1867,21 @@ export namespace Script {
|
|
|
1850
1867
|
| 'worklet';
|
|
1851
1868
|
}
|
|
1852
1869
|
export namespace Script {
|
|
1853
|
-
export type
|
|
1870
|
+
export type RemoteReference =
|
|
1871
|
+
| Script.SharedReference
|
|
1872
|
+
| Script.RemoteObjectReference;
|
|
1854
1873
|
}
|
|
1855
1874
|
export namespace Script {
|
|
1856
|
-
export type
|
|
1857
|
-
|
|
1858
|
-
|
|
1875
|
+
export type SharedReference = {
|
|
1876
|
+
sharedId: Script.SharedId;
|
|
1877
|
+
handle?: Script.Handle;
|
|
1878
|
+
} & Extensible;
|
|
1879
|
+
}
|
|
1880
|
+
export namespace Script {
|
|
1881
|
+
export type RemoteObjectReference = {
|
|
1882
|
+
handle: Script.Handle;
|
|
1883
|
+
sharedId?: Script.SharedId;
|
|
1884
|
+
} & Extensible;
|
|
1859
1885
|
}
|
|
1860
1886
|
export namespace Script {
|
|
1861
1887
|
export type RemoteValue =
|
|
@@ -1882,21 +1908,12 @@ export namespace Script {
|
|
|
1882
1908
|
| Script.WindowProxyRemoteValue;
|
|
1883
1909
|
}
|
|
1884
1910
|
export namespace Script {
|
|
1885
|
-
export type
|
|
1886
|
-
| Script.SharedReference
|
|
1887
|
-
| Script.RemoteObjectReference;
|
|
1888
|
-
}
|
|
1889
|
-
export namespace Script {
|
|
1890
|
-
export type SharedReference = {
|
|
1891
|
-
sharedId: Script.SharedId;
|
|
1892
|
-
handle?: Script.Handle;
|
|
1893
|
-
} & Extensible;
|
|
1911
|
+
export type ListRemoteValue = [...Script.RemoteValue[]];
|
|
1894
1912
|
}
|
|
1895
1913
|
export namespace Script {
|
|
1896
|
-
export type
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
} & Extensible;
|
|
1914
|
+
export type MappingRemoteValue = [
|
|
1915
|
+
...[Script.RemoteValue | string, Script.RemoteValue][],
|
|
1916
|
+
];
|
|
1900
1917
|
}
|
|
1901
1918
|
export namespace Script {
|
|
1902
1919
|
export type SymbolRemoteValue = {
|
|
@@ -2158,6 +2175,12 @@ export namespace Script {
|
|
|
2158
2175
|
target: Script.Target;
|
|
2159
2176
|
};
|
|
2160
2177
|
}
|
|
2178
|
+
export namespace Script {
|
|
2179
|
+
export type CallFunction = {
|
|
2180
|
+
method: 'script.callFunction';
|
|
2181
|
+
params: Script.CallFunctionParameters;
|
|
2182
|
+
};
|
|
2183
|
+
}
|
|
2161
2184
|
export namespace Script {
|
|
2162
2185
|
export type CallFunctionParameters = {
|
|
2163
2186
|
functionDeclaration: string;
|
|
@@ -2173,12 +2196,6 @@ export namespace Script {
|
|
|
2173
2196
|
userActivation?: boolean;
|
|
2174
2197
|
};
|
|
2175
2198
|
}
|
|
2176
|
-
export namespace Script {
|
|
2177
|
-
export type CallFunction = {
|
|
2178
|
-
method: 'script.callFunction';
|
|
2179
|
-
params: Script.CallFunctionParameters;
|
|
2180
|
-
};
|
|
2181
|
-
}
|
|
2182
2199
|
export namespace Script {
|
|
2183
2200
|
export type Evaluate = {
|
|
2184
2201
|
method: 'script.evaluate';
|
|
@@ -2226,6 +2243,12 @@ export namespace Script {
|
|
|
2226
2243
|
script: Script.PreloadScript;
|
|
2227
2244
|
};
|
|
2228
2245
|
}
|
|
2246
|
+
export namespace Script {
|
|
2247
|
+
export type Message = {
|
|
2248
|
+
method: 'script.message';
|
|
2249
|
+
params: Script.MessageParameters;
|
|
2250
|
+
};
|
|
2251
|
+
}
|
|
2229
2252
|
export namespace Script {
|
|
2230
2253
|
export type MessageParameters = {
|
|
2231
2254
|
channel: Script.Channel;
|
|
@@ -2239,12 +2262,6 @@ export namespace Script {
|
|
|
2239
2262
|
params: Script.RealmInfo;
|
|
2240
2263
|
};
|
|
2241
2264
|
}
|
|
2242
|
-
export namespace Script {
|
|
2243
|
-
export type Message = {
|
|
2244
|
-
method: 'script.message';
|
|
2245
|
-
params: Script.MessageParameters;
|
|
2246
|
-
};
|
|
2247
|
-
}
|
|
2248
2265
|
export namespace Script {
|
|
2249
2266
|
export type RealmDestroyed = {
|
|
2250
2267
|
method: 'script.realmDestroyed';
|
|
@@ -2423,12 +2440,25 @@ export namespace Input {
|
|
|
2423
2440
|
element: Script.SharedReference;
|
|
2424
2441
|
};
|
|
2425
2442
|
}
|
|
2443
|
+
export namespace Input {
|
|
2444
|
+
export type PerformActions = {
|
|
2445
|
+
method: 'input.performActions';
|
|
2446
|
+
params: Input.PerformActionsParameters;
|
|
2447
|
+
};
|
|
2448
|
+
}
|
|
2426
2449
|
export namespace Input {
|
|
2427
2450
|
export type PerformActionsParameters = {
|
|
2428
2451
|
context: BrowsingContext.BrowsingContext;
|
|
2429
2452
|
actions: [...Input.SourceActions[]];
|
|
2430
2453
|
};
|
|
2431
2454
|
}
|
|
2455
|
+
export namespace Input {
|
|
2456
|
+
export type SourceActions =
|
|
2457
|
+
| Input.NoneSourceActions
|
|
2458
|
+
| Input.KeySourceActions
|
|
2459
|
+
| Input.PointerSourceActions
|
|
2460
|
+
| Input.WheelSourceActions;
|
|
2461
|
+
}
|
|
2432
2462
|
export namespace Input {
|
|
2433
2463
|
export type NoneSourceActions = {
|
|
2434
2464
|
type: 'none';
|
|
@@ -2436,6 +2466,9 @@ export namespace Input {
|
|
|
2436
2466
|
actions: [...Input.NoneSourceAction[]];
|
|
2437
2467
|
};
|
|
2438
2468
|
}
|
|
2469
|
+
export namespace Input {
|
|
2470
|
+
export type NoneSourceAction = Input.PauseAction;
|
|
2471
|
+
}
|
|
2439
2472
|
export namespace Input {
|
|
2440
2473
|
export type KeySourceActions = {
|
|
2441
2474
|
type: 'key';
|
|
@@ -2443,6 +2476,12 @@ export namespace Input {
|
|
|
2443
2476
|
actions: [...Input.KeySourceAction[]];
|
|
2444
2477
|
};
|
|
2445
2478
|
}
|
|
2479
|
+
export namespace Input {
|
|
2480
|
+
export type KeySourceAction =
|
|
2481
|
+
| Input.PauseAction
|
|
2482
|
+
| Input.KeyDownAction
|
|
2483
|
+
| Input.KeyUpAction;
|
|
2484
|
+
}
|
|
2446
2485
|
export namespace Input {
|
|
2447
2486
|
export type PointerSourceActions = {
|
|
2448
2487
|
type: 'pointer';
|
|
@@ -2451,28 +2490,6 @@ export namespace Input {
|
|
|
2451
2490
|
actions: [...Input.PointerSourceAction[]];
|
|
2452
2491
|
};
|
|
2453
2492
|
}
|
|
2454
|
-
export namespace Input {
|
|
2455
|
-
export type PerformActions = {
|
|
2456
|
-
method: 'input.performActions';
|
|
2457
|
-
params: Input.PerformActionsParameters;
|
|
2458
|
-
};
|
|
2459
|
-
}
|
|
2460
|
-
export namespace Input {
|
|
2461
|
-
export type SourceActions =
|
|
2462
|
-
| Input.NoneSourceActions
|
|
2463
|
-
| Input.KeySourceActions
|
|
2464
|
-
| Input.PointerSourceActions
|
|
2465
|
-
| Input.WheelSourceActions;
|
|
2466
|
-
}
|
|
2467
|
-
export namespace Input {
|
|
2468
|
-
export type NoneSourceAction = Input.PauseAction;
|
|
2469
|
-
}
|
|
2470
|
-
export namespace Input {
|
|
2471
|
-
export type KeySourceAction =
|
|
2472
|
-
| Input.PauseAction
|
|
2473
|
-
| Input.KeyDownAction
|
|
2474
|
-
| Input.KeyUpAction;
|
|
2475
|
-
}
|
|
2476
2493
|
export namespace Input {
|
|
2477
2494
|
export const enum PointerType {
|
|
2478
2495
|
Mouse = 'mouse',
|
|
@@ -2488,13 +2505,6 @@ export namespace Input {
|
|
|
2488
2505
|
pointerType?: Input.PointerType;
|
|
2489
2506
|
};
|
|
2490
2507
|
}
|
|
2491
|
-
export namespace Input {
|
|
2492
|
-
export type WheelSourceActions = {
|
|
2493
|
-
type: 'wheel';
|
|
2494
|
-
id: string;
|
|
2495
|
-
actions: [...Input.WheelSourceAction[]];
|
|
2496
|
-
};
|
|
2497
|
-
}
|
|
2498
2508
|
export namespace Input {
|
|
2499
2509
|
export type PointerSourceAction =
|
|
2500
2510
|
| Input.PauseAction
|
|
@@ -2502,6 +2512,13 @@ export namespace Input {
|
|
|
2502
2512
|
| Input.PointerUpAction
|
|
2503
2513
|
| Input.PointerMoveAction;
|
|
2504
2514
|
}
|
|
2515
|
+
export namespace Input {
|
|
2516
|
+
export type WheelSourceActions = {
|
|
2517
|
+
type: 'wheel';
|
|
2518
|
+
id: string;
|
|
2519
|
+
actions: [...Input.WheelSourceAction[]];
|
|
2520
|
+
};
|
|
2521
|
+
}
|
|
2505
2522
|
export namespace Input {
|
|
2506
2523
|
export type WheelSourceAction = Input.PauseAction | Input.WheelScrollAction;
|
|
2507
2524
|
}
|
|
@@ -2641,17 +2658,17 @@ export type WebExtensionResult = WebExtension.InstallResult;
|
|
|
2641
2658
|
export namespace WebExtension {
|
|
2642
2659
|
export type Extension = string;
|
|
2643
2660
|
}
|
|
2644
|
-
export namespace WebExtension {
|
|
2645
|
-
export type InstallParameters = {
|
|
2646
|
-
extensionData: WebExtension.ExtensionData;
|
|
2647
|
-
};
|
|
2648
|
-
}
|
|
2649
2661
|
export namespace WebExtension {
|
|
2650
2662
|
export type Install = {
|
|
2651
2663
|
method: 'webExtension.install';
|
|
2652
2664
|
params: WebExtension.InstallParameters;
|
|
2653
2665
|
};
|
|
2654
2666
|
}
|
|
2667
|
+
export namespace WebExtension {
|
|
2668
|
+
export type InstallParameters = {
|
|
2669
|
+
extensionData: WebExtension.ExtensionData;
|
|
2670
|
+
};
|
|
2671
|
+
}
|
|
2655
2672
|
export namespace WebExtension {
|
|
2656
2673
|
export type ExtensionData =
|
|
2657
2674
|
| WebExtension.ExtensionArchivePath
|
package/src/index.ts
CHANGED
|
@@ -148,6 +148,10 @@ export interface Commands {
|
|
|
148
148
|
params: Bidi.Emulation.SetGeolocationOverrideParameters;
|
|
149
149
|
returnType: Bidi.EmptyResult;
|
|
150
150
|
};
|
|
151
|
+
'emulation.setLocaleOverride': {
|
|
152
|
+
params: Bidi.Emulation.SetLocaleOverrideParameters;
|
|
153
|
+
returnType: Bidi.EmptyResult;
|
|
154
|
+
};
|
|
151
155
|
'emulation.setScreenOrientationOverride': {
|
|
152
156
|
params: Bidi.Emulation.SetScreenOrientationOverrideParameters;
|
|
153
157
|
returnType: Bidi.EmptyResult;
|