webdriver-bidi-protocol 0.2.6 → 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 +1 -1
- package/.github/workflows/regenerate.yml +1 -1
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +8 -0
- package/out/gen/main.d.ts +172 -172
- package/out/index.d.ts +4 -0
- package/package.json +1 -1
- package/src/gen/main.ts +174 -174
- package/src/index.ts +4 -0
package/.github/workflows/ci.yml
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
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
|
+
|
|
3
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)
|
|
4
12
|
|
|
5
13
|
|
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[]];
|
|
@@ -1142,13 +1142,13 @@ export type NetworkCommand =
|
|
|
1142
1142
|
| Network.RemoveIntercept
|
|
1143
1143
|
| Network.SetCacheBehavior
|
|
1144
1144
|
| Network.SetExtraHeaders;
|
|
1145
|
+
export type NetworkResult = Network.AddInterceptResult;
|
|
1145
1146
|
export type NetworkEvent =
|
|
1146
1147
|
| Network.AuthRequired
|
|
1147
1148
|
| Network.BeforeRequestSent
|
|
1148
1149
|
| Network.FetchError
|
|
1149
1150
|
| Network.ResponseCompleted
|
|
1150
1151
|
| Network.ResponseStarted;
|
|
1151
|
-
export type NetworkResult = Network.AddInterceptResult;
|
|
1152
1152
|
export declare namespace Network {
|
|
1153
1153
|
type AuthChallenge = {
|
|
1154
1154
|
scheme: string;
|
|
@@ -1359,6 +1359,12 @@ export declare namespace Network {
|
|
|
1359
1359
|
collector: Network.Collector;
|
|
1360
1360
|
};
|
|
1361
1361
|
}
|
|
1362
|
+
export declare namespace Network {
|
|
1363
|
+
type AddIntercept = {
|
|
1364
|
+
method: 'network.addIntercept';
|
|
1365
|
+
params: Network.AddInterceptParameters;
|
|
1366
|
+
};
|
|
1367
|
+
}
|
|
1362
1368
|
export declare namespace Network {
|
|
1363
1369
|
type AddInterceptParameters = {
|
|
1364
1370
|
phases: [Network.InterceptPhase, ...Network.InterceptPhase[]];
|
|
@@ -1369,12 +1375,6 @@ export declare namespace Network {
|
|
|
1369
1375
|
urlPatterns?: [...Network.UrlPattern[]];
|
|
1370
1376
|
};
|
|
1371
1377
|
}
|
|
1372
|
-
export declare namespace Network {
|
|
1373
|
-
type AddIntercept = {
|
|
1374
|
-
method: 'network.addIntercept';
|
|
1375
|
-
params: Network.AddInterceptParameters;
|
|
1376
|
-
};
|
|
1377
|
-
}
|
|
1378
1378
|
export declare namespace Network {
|
|
1379
1379
|
const enum InterceptPhase {
|
|
1380
1380
|
BeforeRequestSent = 'beforeRequestSent',
|
|
@@ -1559,30 +1559,56 @@ export declare namespace Network {
|
|
|
1559
1559
|
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
|
|
1560
1560
|
};
|
|
1561
1561
|
}
|
|
1562
|
-
export
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1562
|
+
export declare namespace Network {
|
|
1563
|
+
type AuthRequired = {
|
|
1564
|
+
method: 'network.authRequired';
|
|
1565
|
+
params: Network.AuthRequiredParameters;
|
|
1566
|
+
};
|
|
1567
|
+
}
|
|
1566
1568
|
export declare namespace Network {
|
|
1567
1569
|
type AuthRequiredParameters = Network.BaseParameters & {
|
|
1568
1570
|
response: Network.ResponseData;
|
|
1569
1571
|
};
|
|
1570
1572
|
}
|
|
1573
|
+
export declare namespace Network {
|
|
1574
|
+
type BeforeRequestSent = {
|
|
1575
|
+
method: 'network.beforeRequestSent';
|
|
1576
|
+
params: Network.BeforeRequestSentParameters;
|
|
1577
|
+
};
|
|
1578
|
+
}
|
|
1571
1579
|
export declare namespace Network {
|
|
1572
1580
|
type BeforeRequestSentParameters = Network.BaseParameters & {
|
|
1573
1581
|
initiator?: Network.Initiator;
|
|
1574
1582
|
};
|
|
1575
1583
|
}
|
|
1584
|
+
export declare namespace Network {
|
|
1585
|
+
type FetchError = {
|
|
1586
|
+
method: 'network.fetchError';
|
|
1587
|
+
params: Network.FetchErrorParameters;
|
|
1588
|
+
};
|
|
1589
|
+
}
|
|
1576
1590
|
export declare namespace Network {
|
|
1577
1591
|
type FetchErrorParameters = Network.BaseParameters & {
|
|
1578
1592
|
errorText: string;
|
|
1579
1593
|
};
|
|
1580
1594
|
}
|
|
1595
|
+
export declare namespace Network {
|
|
1596
|
+
type ResponseCompleted = {
|
|
1597
|
+
method: 'network.responseCompleted';
|
|
1598
|
+
params: Network.ResponseCompletedParameters;
|
|
1599
|
+
};
|
|
1600
|
+
}
|
|
1581
1601
|
export declare namespace Network {
|
|
1582
1602
|
type ResponseCompletedParameters = Network.BaseParameters & {
|
|
1583
1603
|
response: Network.ResponseData;
|
|
1584
1604
|
};
|
|
1585
1605
|
}
|
|
1606
|
+
export declare namespace Network {
|
|
1607
|
+
type ResponseStarted = {
|
|
1608
|
+
method: 'network.responseStarted';
|
|
1609
|
+
params: Network.ResponseStartedParameters;
|
|
1610
|
+
};
|
|
1611
|
+
}
|
|
1586
1612
|
export declare namespace Network {
|
|
1587
1613
|
type ResponseStartedParameters = Network.BaseParameters & {
|
|
1588
1614
|
response: Network.ResponseData;
|
|
@@ -1599,55 +1625,13 @@ export type ScriptResult =
|
|
|
1599
1625
|
| Script.AddPreloadScriptResult
|
|
1600
1626
|
| Script.EvaluateResult
|
|
1601
1627
|
| Script.GetRealmsResult;
|
|
1602
|
-
export
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
};
|
|
1607
|
-
}
|
|
1608
|
-
export declare namespace Network {
|
|
1609
|
-
type BeforeRequestSent = {
|
|
1610
|
-
method: 'network.beforeRequestSent';
|
|
1611
|
-
params: Network.BeforeRequestSentParameters;
|
|
1612
|
-
};
|
|
1613
|
-
}
|
|
1614
|
-
export declare namespace Network {
|
|
1615
|
-
type FetchError = {
|
|
1616
|
-
method: 'network.fetchError';
|
|
1617
|
-
params: Network.FetchErrorParameters;
|
|
1618
|
-
};
|
|
1619
|
-
}
|
|
1620
|
-
export declare namespace Network {
|
|
1621
|
-
type ResponseCompleted = {
|
|
1622
|
-
method: 'network.responseCompleted';
|
|
1623
|
-
params: Network.ResponseCompletedParameters;
|
|
1624
|
-
};
|
|
1625
|
-
}
|
|
1626
|
-
export declare namespace Network {
|
|
1627
|
-
type ResponseStarted = {
|
|
1628
|
-
method: 'network.responseStarted';
|
|
1629
|
-
params: Network.ResponseStartedParameters;
|
|
1630
|
-
};
|
|
1631
|
-
}
|
|
1628
|
+
export type ScriptEvent =
|
|
1629
|
+
| Script.Message
|
|
1630
|
+
| Script.RealmCreated
|
|
1631
|
+
| Script.RealmDestroyed;
|
|
1632
1632
|
export declare namespace Script {
|
|
1633
1633
|
type Channel = string;
|
|
1634
1634
|
}
|
|
1635
|
-
export declare namespace Script {
|
|
1636
|
-
type EvaluateResultSuccess = {
|
|
1637
|
-
type: 'success';
|
|
1638
|
-
result: Script.RemoteValue;
|
|
1639
|
-
realm: Script.Realm;
|
|
1640
|
-
};
|
|
1641
|
-
}
|
|
1642
|
-
export declare namespace Script {
|
|
1643
|
-
type ExceptionDetails = {
|
|
1644
|
-
columnNumber: JsUint;
|
|
1645
|
-
exception: Script.RemoteValue;
|
|
1646
|
-
lineNumber: JsUint;
|
|
1647
|
-
stackTrace: Script.StackTrace;
|
|
1648
|
-
text: string;
|
|
1649
|
-
};
|
|
1650
|
-
}
|
|
1651
1635
|
export declare namespace Script {
|
|
1652
1636
|
type ChannelValue = {
|
|
1653
1637
|
type: 'channel';
|
|
@@ -1666,6 +1650,13 @@ export declare namespace Script {
|
|
|
1666
1650
|
| Script.EvaluateResultSuccess
|
|
1667
1651
|
| Script.EvaluateResultException;
|
|
1668
1652
|
}
|
|
1653
|
+
export declare namespace Script {
|
|
1654
|
+
type EvaluateResultSuccess = {
|
|
1655
|
+
type: 'success';
|
|
1656
|
+
result: Script.RemoteValue;
|
|
1657
|
+
realm: Script.Realm;
|
|
1658
|
+
};
|
|
1659
|
+
}
|
|
1669
1660
|
export declare namespace Script {
|
|
1670
1661
|
type EvaluateResultException = {
|
|
1671
1662
|
type: 'exception';
|
|
@@ -1674,13 +1665,19 @@ export declare namespace Script {
|
|
|
1674
1665
|
};
|
|
1675
1666
|
}
|
|
1676
1667
|
export declare namespace Script {
|
|
1677
|
-
type
|
|
1668
|
+
type ExceptionDetails = {
|
|
1669
|
+
columnNumber: JsUint;
|
|
1670
|
+
exception: Script.RemoteValue;
|
|
1671
|
+
lineNumber: JsUint;
|
|
1672
|
+
stackTrace: Script.StackTrace;
|
|
1673
|
+
text: string;
|
|
1674
|
+
};
|
|
1678
1675
|
}
|
|
1679
1676
|
export declare namespace Script {
|
|
1680
|
-
type
|
|
1677
|
+
type Handle = string;
|
|
1681
1678
|
}
|
|
1682
1679
|
export declare namespace Script {
|
|
1683
|
-
type
|
|
1680
|
+
type InternalId = string;
|
|
1684
1681
|
}
|
|
1685
1682
|
export declare namespace Script {
|
|
1686
1683
|
type LocalValue =
|
|
@@ -1694,6 +1691,9 @@ export declare namespace Script {
|
|
|
1694
1691
|
| Script.RegExpLocalValue
|
|
1695
1692
|
| Script.SetLocalValue;
|
|
1696
1693
|
}
|
|
1694
|
+
export declare namespace Script {
|
|
1695
|
+
type ListLocalValue = [...Script.LocalValue[]];
|
|
1696
|
+
}
|
|
1697
1697
|
export declare namespace Script {
|
|
1698
1698
|
type ArrayLocalValue = {
|
|
1699
1699
|
type: 'array';
|
|
@@ -1865,12 +1865,19 @@ export declare namespace Script {
|
|
|
1865
1865
|
| 'worklet';
|
|
1866
1866
|
}
|
|
1867
1867
|
export declare namespace Script {
|
|
1868
|
-
type
|
|
1868
|
+
type RemoteReference = Script.SharedReference | Script.RemoteObjectReference;
|
|
1869
1869
|
}
|
|
1870
1870
|
export declare namespace Script {
|
|
1871
|
-
type
|
|
1872
|
-
|
|
1873
|
-
|
|
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;
|
|
1874
1881
|
}
|
|
1875
1882
|
export declare namespace Script {
|
|
1876
1883
|
type RemoteValue =
|
|
@@ -1897,19 +1904,12 @@ export declare namespace Script {
|
|
|
1897
1904
|
| Script.WindowProxyRemoteValue;
|
|
1898
1905
|
}
|
|
1899
1906
|
export declare namespace Script {
|
|
1900
|
-
type
|
|
1901
|
-
}
|
|
1902
|
-
export declare namespace Script {
|
|
1903
|
-
type SharedReference = {
|
|
1904
|
-
sharedId: Script.SharedId;
|
|
1905
|
-
handle?: Script.Handle;
|
|
1906
|
-
} & Extensible;
|
|
1907
|
+
type ListRemoteValue = [...Script.RemoteValue[]];
|
|
1907
1908
|
}
|
|
1908
1909
|
export declare namespace Script {
|
|
1909
|
-
type
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
} & Extensible;
|
|
1910
|
+
type MappingRemoteValue = [
|
|
1911
|
+
...[Script.RemoteValue | string, Script.RemoteValue][],
|
|
1912
|
+
];
|
|
1913
1913
|
}
|
|
1914
1914
|
export declare namespace Script {
|
|
1915
1915
|
type SymbolRemoteValue = {
|
|
@@ -2171,6 +2171,12 @@ export declare namespace Script {
|
|
|
2171
2171
|
target: Script.Target;
|
|
2172
2172
|
};
|
|
2173
2173
|
}
|
|
2174
|
+
export declare namespace Script {
|
|
2175
|
+
type CallFunction = {
|
|
2176
|
+
method: 'script.callFunction';
|
|
2177
|
+
params: Script.CallFunctionParameters;
|
|
2178
|
+
};
|
|
2179
|
+
}
|
|
2174
2180
|
export declare namespace Script {
|
|
2175
2181
|
type CallFunctionParameters = {
|
|
2176
2182
|
functionDeclaration: string;
|
|
@@ -2186,12 +2192,6 @@ export declare namespace Script {
|
|
|
2186
2192
|
userActivation?: boolean;
|
|
2187
2193
|
};
|
|
2188
2194
|
}
|
|
2189
|
-
export declare namespace Script {
|
|
2190
|
-
type CallFunction = {
|
|
2191
|
-
method: 'script.callFunction';
|
|
2192
|
-
params: Script.CallFunctionParameters;
|
|
2193
|
-
};
|
|
2194
|
-
}
|
|
2195
2195
|
export declare namespace Script {
|
|
2196
2196
|
type Evaluate = {
|
|
2197
2197
|
method: 'script.evaluate';
|
|
@@ -2239,6 +2239,12 @@ export declare namespace Script {
|
|
|
2239
2239
|
script: Script.PreloadScript;
|
|
2240
2240
|
};
|
|
2241
2241
|
}
|
|
2242
|
+
export declare namespace Script {
|
|
2243
|
+
type Message = {
|
|
2244
|
+
method: 'script.message';
|
|
2245
|
+
params: Script.MessageParameters;
|
|
2246
|
+
};
|
|
2247
|
+
}
|
|
2242
2248
|
export declare namespace Script {
|
|
2243
2249
|
type MessageParameters = {
|
|
2244
2250
|
channel: Script.Channel;
|
|
@@ -2252,12 +2258,6 @@ export declare namespace Script {
|
|
|
2252
2258
|
params: Script.RealmInfo;
|
|
2253
2259
|
};
|
|
2254
2260
|
}
|
|
2255
|
-
export declare namespace Script {
|
|
2256
|
-
type Message = {
|
|
2257
|
-
method: 'script.message';
|
|
2258
|
-
params: Script.MessageParameters;
|
|
2259
|
-
};
|
|
2260
|
-
}
|
|
2261
2261
|
export declare namespace Script {
|
|
2262
2262
|
type RealmDestroyed = {
|
|
2263
2263
|
method: 'script.realmDestroyed';
|
|
@@ -2436,12 +2436,25 @@ export declare namespace Input {
|
|
|
2436
2436
|
element: Script.SharedReference;
|
|
2437
2437
|
};
|
|
2438
2438
|
}
|
|
2439
|
+
export declare namespace Input {
|
|
2440
|
+
type PerformActions = {
|
|
2441
|
+
method: 'input.performActions';
|
|
2442
|
+
params: Input.PerformActionsParameters;
|
|
2443
|
+
};
|
|
2444
|
+
}
|
|
2439
2445
|
export declare namespace Input {
|
|
2440
2446
|
type PerformActionsParameters = {
|
|
2441
2447
|
context: BrowsingContext.BrowsingContext;
|
|
2442
2448
|
actions: [...Input.SourceActions[]];
|
|
2443
2449
|
};
|
|
2444
2450
|
}
|
|
2451
|
+
export declare namespace Input {
|
|
2452
|
+
type SourceActions =
|
|
2453
|
+
| Input.NoneSourceActions
|
|
2454
|
+
| Input.KeySourceActions
|
|
2455
|
+
| Input.PointerSourceActions
|
|
2456
|
+
| Input.WheelSourceActions;
|
|
2457
|
+
}
|
|
2445
2458
|
export declare namespace Input {
|
|
2446
2459
|
type NoneSourceActions = {
|
|
2447
2460
|
type: 'none';
|
|
@@ -2449,6 +2462,9 @@ export declare namespace Input {
|
|
|
2449
2462
|
actions: [...Input.NoneSourceAction[]];
|
|
2450
2463
|
};
|
|
2451
2464
|
}
|
|
2465
|
+
export declare namespace Input {
|
|
2466
|
+
type NoneSourceAction = Input.PauseAction;
|
|
2467
|
+
}
|
|
2452
2468
|
export declare namespace Input {
|
|
2453
2469
|
type KeySourceActions = {
|
|
2454
2470
|
type: 'key';
|
|
@@ -2456,6 +2472,12 @@ export declare namespace Input {
|
|
|
2456
2472
|
actions: [...Input.KeySourceAction[]];
|
|
2457
2473
|
};
|
|
2458
2474
|
}
|
|
2475
|
+
export declare namespace Input {
|
|
2476
|
+
type KeySourceAction =
|
|
2477
|
+
| Input.PauseAction
|
|
2478
|
+
| Input.KeyDownAction
|
|
2479
|
+
| Input.KeyUpAction;
|
|
2480
|
+
}
|
|
2459
2481
|
export declare namespace Input {
|
|
2460
2482
|
type PointerSourceActions = {
|
|
2461
2483
|
type: 'pointer';
|
|
@@ -2464,28 +2486,6 @@ export declare namespace Input {
|
|
|
2464
2486
|
actions: [...Input.PointerSourceAction[]];
|
|
2465
2487
|
};
|
|
2466
2488
|
}
|
|
2467
|
-
export declare namespace Input {
|
|
2468
|
-
type PerformActions = {
|
|
2469
|
-
method: 'input.performActions';
|
|
2470
|
-
params: Input.PerformActionsParameters;
|
|
2471
|
-
};
|
|
2472
|
-
}
|
|
2473
|
-
export declare namespace Input {
|
|
2474
|
-
type SourceActions =
|
|
2475
|
-
| Input.NoneSourceActions
|
|
2476
|
-
| Input.KeySourceActions
|
|
2477
|
-
| Input.PointerSourceActions
|
|
2478
|
-
| Input.WheelSourceActions;
|
|
2479
|
-
}
|
|
2480
|
-
export declare namespace Input {
|
|
2481
|
-
type NoneSourceAction = Input.PauseAction;
|
|
2482
|
-
}
|
|
2483
|
-
export declare namespace Input {
|
|
2484
|
-
type KeySourceAction =
|
|
2485
|
-
| Input.PauseAction
|
|
2486
|
-
| Input.KeyDownAction
|
|
2487
|
-
| Input.KeyUpAction;
|
|
2488
|
-
}
|
|
2489
2489
|
export declare namespace Input {
|
|
2490
2490
|
const enum PointerType {
|
|
2491
2491
|
Mouse = 'mouse',
|
|
@@ -2501,13 +2501,6 @@ export declare namespace Input {
|
|
|
2501
2501
|
pointerType?: Input.PointerType;
|
|
2502
2502
|
};
|
|
2503
2503
|
}
|
|
2504
|
-
export declare namespace Input {
|
|
2505
|
-
type WheelSourceActions = {
|
|
2506
|
-
type: 'wheel';
|
|
2507
|
-
id: string;
|
|
2508
|
-
actions: [...Input.WheelSourceAction[]];
|
|
2509
|
-
};
|
|
2510
|
-
}
|
|
2511
2504
|
export declare namespace Input {
|
|
2512
2505
|
type PointerSourceAction =
|
|
2513
2506
|
| Input.PauseAction
|
|
@@ -2515,6 +2508,13 @@ export declare namespace Input {
|
|
|
2515
2508
|
| Input.PointerUpAction
|
|
2516
2509
|
| Input.PointerMoveAction;
|
|
2517
2510
|
}
|
|
2511
|
+
export declare namespace Input {
|
|
2512
|
+
type WheelSourceActions = {
|
|
2513
|
+
type: 'wheel';
|
|
2514
|
+
id: string;
|
|
2515
|
+
actions: [...Input.WheelSourceAction[]];
|
|
2516
|
+
};
|
|
2517
|
+
}
|
|
2518
2518
|
export declare namespace Input {
|
|
2519
2519
|
type WheelSourceAction = Input.PauseAction | Input.WheelScrollAction;
|
|
2520
2520
|
}
|
|
@@ -2654,17 +2654,17 @@ export type WebExtensionResult = WebExtension.InstallResult;
|
|
|
2654
2654
|
export declare namespace WebExtension {
|
|
2655
2655
|
type Extension = string;
|
|
2656
2656
|
}
|
|
2657
|
-
export declare namespace WebExtension {
|
|
2658
|
-
type InstallParameters = {
|
|
2659
|
-
extensionData: WebExtension.ExtensionData;
|
|
2660
|
-
};
|
|
2661
|
-
}
|
|
2662
2657
|
export declare namespace WebExtension {
|
|
2663
2658
|
type Install = {
|
|
2664
2659
|
method: 'webExtension.install';
|
|
2665
2660
|
params: WebExtension.InstallParameters;
|
|
2666
2661
|
};
|
|
2667
2662
|
}
|
|
2663
|
+
export declare namespace WebExtension {
|
|
2664
|
+
type InstallParameters = {
|
|
2665
|
+
extensionData: WebExtension.ExtensionData;
|
|
2666
|
+
};
|
|
2667
|
+
}
|
|
2668
2668
|
export declare namespace WebExtension {
|
|
2669
2669
|
type ExtensionData =
|
|
2670
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
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[]];
|
|
@@ -1144,13 +1144,13 @@ export type NetworkCommand =
|
|
|
1144
1144
|
| Network.RemoveIntercept
|
|
1145
1145
|
| Network.SetCacheBehavior
|
|
1146
1146
|
| Network.SetExtraHeaders;
|
|
1147
|
+
export type NetworkResult = Network.AddInterceptResult;
|
|
1147
1148
|
export type NetworkEvent =
|
|
1148
1149
|
| Network.AuthRequired
|
|
1149
1150
|
| Network.BeforeRequestSent
|
|
1150
1151
|
| Network.FetchError
|
|
1151
1152
|
| Network.ResponseCompleted
|
|
1152
1153
|
| Network.ResponseStarted;
|
|
1153
|
-
export type NetworkResult = Network.AddInterceptResult;
|
|
1154
1154
|
export namespace Network {
|
|
1155
1155
|
export type AuthChallenge = {
|
|
1156
1156
|
scheme: string;
|
|
@@ -1361,6 +1361,12 @@ export namespace Network {
|
|
|
1361
1361
|
collector: Network.Collector;
|
|
1362
1362
|
};
|
|
1363
1363
|
}
|
|
1364
|
+
export namespace Network {
|
|
1365
|
+
export type AddIntercept = {
|
|
1366
|
+
method: 'network.addIntercept';
|
|
1367
|
+
params: Network.AddInterceptParameters;
|
|
1368
|
+
};
|
|
1369
|
+
}
|
|
1364
1370
|
export namespace Network {
|
|
1365
1371
|
export type AddInterceptParameters = {
|
|
1366
1372
|
phases: [Network.InterceptPhase, ...Network.InterceptPhase[]];
|
|
@@ -1371,12 +1377,6 @@ export namespace Network {
|
|
|
1371
1377
|
urlPatterns?: [...Network.UrlPattern[]];
|
|
1372
1378
|
};
|
|
1373
1379
|
}
|
|
1374
|
-
export namespace Network {
|
|
1375
|
-
export type AddIntercept = {
|
|
1376
|
-
method: 'network.addIntercept';
|
|
1377
|
-
params: Network.AddInterceptParameters;
|
|
1378
|
-
};
|
|
1379
|
-
}
|
|
1380
1380
|
export namespace Network {
|
|
1381
1381
|
export const enum InterceptPhase {
|
|
1382
1382
|
BeforeRequestSent = 'beforeRequestSent',
|
|
@@ -1561,30 +1561,56 @@ export namespace Network {
|
|
|
1561
1561
|
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
|
|
1562
1562
|
};
|
|
1563
1563
|
}
|
|
1564
|
-
export
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1564
|
+
export namespace Network {
|
|
1565
|
+
export type AuthRequired = {
|
|
1566
|
+
method: 'network.authRequired';
|
|
1567
|
+
params: Network.AuthRequiredParameters;
|
|
1568
|
+
};
|
|
1569
|
+
}
|
|
1568
1570
|
export namespace Network {
|
|
1569
1571
|
export type AuthRequiredParameters = Network.BaseParameters & {
|
|
1570
1572
|
response: Network.ResponseData;
|
|
1571
1573
|
};
|
|
1572
1574
|
}
|
|
1575
|
+
export namespace Network {
|
|
1576
|
+
export type BeforeRequestSent = {
|
|
1577
|
+
method: 'network.beforeRequestSent';
|
|
1578
|
+
params: Network.BeforeRequestSentParameters;
|
|
1579
|
+
};
|
|
1580
|
+
}
|
|
1573
1581
|
export namespace Network {
|
|
1574
1582
|
export type BeforeRequestSentParameters = Network.BaseParameters & {
|
|
1575
1583
|
initiator?: Network.Initiator;
|
|
1576
1584
|
};
|
|
1577
1585
|
}
|
|
1586
|
+
export namespace Network {
|
|
1587
|
+
export type FetchError = {
|
|
1588
|
+
method: 'network.fetchError';
|
|
1589
|
+
params: Network.FetchErrorParameters;
|
|
1590
|
+
};
|
|
1591
|
+
}
|
|
1578
1592
|
export namespace Network {
|
|
1579
1593
|
export type FetchErrorParameters = Network.BaseParameters & {
|
|
1580
1594
|
errorText: string;
|
|
1581
1595
|
};
|
|
1582
1596
|
}
|
|
1597
|
+
export namespace Network {
|
|
1598
|
+
export type ResponseCompleted = {
|
|
1599
|
+
method: 'network.responseCompleted';
|
|
1600
|
+
params: Network.ResponseCompletedParameters;
|
|
1601
|
+
};
|
|
1602
|
+
}
|
|
1583
1603
|
export namespace Network {
|
|
1584
1604
|
export type ResponseCompletedParameters = Network.BaseParameters & {
|
|
1585
1605
|
response: Network.ResponseData;
|
|
1586
1606
|
};
|
|
1587
1607
|
}
|
|
1608
|
+
export namespace Network {
|
|
1609
|
+
export type ResponseStarted = {
|
|
1610
|
+
method: 'network.responseStarted';
|
|
1611
|
+
params: Network.ResponseStartedParameters;
|
|
1612
|
+
};
|
|
1613
|
+
}
|
|
1588
1614
|
export namespace Network {
|
|
1589
1615
|
export type ResponseStartedParameters = Network.BaseParameters & {
|
|
1590
1616
|
response: Network.ResponseData;
|
|
@@ -1601,55 +1627,13 @@ export type ScriptResult =
|
|
|
1601
1627
|
| Script.AddPreloadScriptResult
|
|
1602
1628
|
| Script.EvaluateResult
|
|
1603
1629
|
| Script.GetRealmsResult;
|
|
1604
|
-
export
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
};
|
|
1609
|
-
}
|
|
1610
|
-
export namespace Network {
|
|
1611
|
-
export type BeforeRequestSent = {
|
|
1612
|
-
method: 'network.beforeRequestSent';
|
|
1613
|
-
params: Network.BeforeRequestSentParameters;
|
|
1614
|
-
};
|
|
1615
|
-
}
|
|
1616
|
-
export namespace Network {
|
|
1617
|
-
export type FetchError = {
|
|
1618
|
-
method: 'network.fetchError';
|
|
1619
|
-
params: Network.FetchErrorParameters;
|
|
1620
|
-
};
|
|
1621
|
-
}
|
|
1622
|
-
export namespace Network {
|
|
1623
|
-
export type ResponseCompleted = {
|
|
1624
|
-
method: 'network.responseCompleted';
|
|
1625
|
-
params: Network.ResponseCompletedParameters;
|
|
1626
|
-
};
|
|
1627
|
-
}
|
|
1628
|
-
export namespace Network {
|
|
1629
|
-
export type ResponseStarted = {
|
|
1630
|
-
method: 'network.responseStarted';
|
|
1631
|
-
params: Network.ResponseStartedParameters;
|
|
1632
|
-
};
|
|
1633
|
-
}
|
|
1630
|
+
export type ScriptEvent =
|
|
1631
|
+
| Script.Message
|
|
1632
|
+
| Script.RealmCreated
|
|
1633
|
+
| Script.RealmDestroyed;
|
|
1634
1634
|
export namespace Script {
|
|
1635
1635
|
export type Channel = string;
|
|
1636
1636
|
}
|
|
1637
|
-
export namespace Script {
|
|
1638
|
-
export type EvaluateResultSuccess = {
|
|
1639
|
-
type: 'success';
|
|
1640
|
-
result: Script.RemoteValue;
|
|
1641
|
-
realm: Script.Realm;
|
|
1642
|
-
};
|
|
1643
|
-
}
|
|
1644
|
-
export namespace Script {
|
|
1645
|
-
export type ExceptionDetails = {
|
|
1646
|
-
columnNumber: JsUint;
|
|
1647
|
-
exception: Script.RemoteValue;
|
|
1648
|
-
lineNumber: JsUint;
|
|
1649
|
-
stackTrace: Script.StackTrace;
|
|
1650
|
-
text: string;
|
|
1651
|
-
};
|
|
1652
|
-
}
|
|
1653
1637
|
export namespace Script {
|
|
1654
1638
|
export type ChannelValue = {
|
|
1655
1639
|
type: 'channel';
|
|
@@ -1668,6 +1652,13 @@ export namespace Script {
|
|
|
1668
1652
|
| Script.EvaluateResultSuccess
|
|
1669
1653
|
| Script.EvaluateResultException;
|
|
1670
1654
|
}
|
|
1655
|
+
export namespace Script {
|
|
1656
|
+
export type EvaluateResultSuccess = {
|
|
1657
|
+
type: 'success';
|
|
1658
|
+
result: Script.RemoteValue;
|
|
1659
|
+
realm: Script.Realm;
|
|
1660
|
+
};
|
|
1661
|
+
}
|
|
1671
1662
|
export namespace Script {
|
|
1672
1663
|
export type EvaluateResultException = {
|
|
1673
1664
|
type: 'exception';
|
|
@@ -1676,13 +1667,19 @@ export namespace Script {
|
|
|
1676
1667
|
};
|
|
1677
1668
|
}
|
|
1678
1669
|
export namespace Script {
|
|
1679
|
-
export type
|
|
1670
|
+
export type ExceptionDetails = {
|
|
1671
|
+
columnNumber: JsUint;
|
|
1672
|
+
exception: Script.RemoteValue;
|
|
1673
|
+
lineNumber: JsUint;
|
|
1674
|
+
stackTrace: Script.StackTrace;
|
|
1675
|
+
text: string;
|
|
1676
|
+
};
|
|
1680
1677
|
}
|
|
1681
1678
|
export namespace Script {
|
|
1682
|
-
export type
|
|
1679
|
+
export type Handle = string;
|
|
1683
1680
|
}
|
|
1684
1681
|
export namespace Script {
|
|
1685
|
-
export type
|
|
1682
|
+
export type InternalId = string;
|
|
1686
1683
|
}
|
|
1687
1684
|
export namespace Script {
|
|
1688
1685
|
export type LocalValue =
|
|
@@ -1696,6 +1693,9 @@ export namespace Script {
|
|
|
1696
1693
|
| Script.RegExpLocalValue
|
|
1697
1694
|
| Script.SetLocalValue;
|
|
1698
1695
|
}
|
|
1696
|
+
export namespace Script {
|
|
1697
|
+
export type ListLocalValue = [...Script.LocalValue[]];
|
|
1698
|
+
}
|
|
1699
1699
|
export namespace Script {
|
|
1700
1700
|
export type ArrayLocalValue = {
|
|
1701
1701
|
type: 'array';
|
|
@@ -1867,12 +1867,21 @@ export namespace Script {
|
|
|
1867
1867
|
| 'worklet';
|
|
1868
1868
|
}
|
|
1869
1869
|
export namespace Script {
|
|
1870
|
-
export type
|
|
1870
|
+
export type RemoteReference =
|
|
1871
|
+
| Script.SharedReference
|
|
1872
|
+
| Script.RemoteObjectReference;
|
|
1871
1873
|
}
|
|
1872
1874
|
export namespace Script {
|
|
1873
|
-
export type
|
|
1874
|
-
|
|
1875
|
-
|
|
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;
|
|
1876
1885
|
}
|
|
1877
1886
|
export namespace Script {
|
|
1878
1887
|
export type RemoteValue =
|
|
@@ -1899,21 +1908,12 @@ export namespace Script {
|
|
|
1899
1908
|
| Script.WindowProxyRemoteValue;
|
|
1900
1909
|
}
|
|
1901
1910
|
export namespace Script {
|
|
1902
|
-
export type
|
|
1903
|
-
| Script.SharedReference
|
|
1904
|
-
| Script.RemoteObjectReference;
|
|
1905
|
-
}
|
|
1906
|
-
export namespace Script {
|
|
1907
|
-
export type SharedReference = {
|
|
1908
|
-
sharedId: Script.SharedId;
|
|
1909
|
-
handle?: Script.Handle;
|
|
1910
|
-
} & Extensible;
|
|
1911
|
+
export type ListRemoteValue = [...Script.RemoteValue[]];
|
|
1911
1912
|
}
|
|
1912
1913
|
export namespace Script {
|
|
1913
|
-
export type
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
} & Extensible;
|
|
1914
|
+
export type MappingRemoteValue = [
|
|
1915
|
+
...[Script.RemoteValue | string, Script.RemoteValue][],
|
|
1916
|
+
];
|
|
1917
1917
|
}
|
|
1918
1918
|
export namespace Script {
|
|
1919
1919
|
export type SymbolRemoteValue = {
|
|
@@ -2175,6 +2175,12 @@ export namespace Script {
|
|
|
2175
2175
|
target: Script.Target;
|
|
2176
2176
|
};
|
|
2177
2177
|
}
|
|
2178
|
+
export namespace Script {
|
|
2179
|
+
export type CallFunction = {
|
|
2180
|
+
method: 'script.callFunction';
|
|
2181
|
+
params: Script.CallFunctionParameters;
|
|
2182
|
+
};
|
|
2183
|
+
}
|
|
2178
2184
|
export namespace Script {
|
|
2179
2185
|
export type CallFunctionParameters = {
|
|
2180
2186
|
functionDeclaration: string;
|
|
@@ -2190,12 +2196,6 @@ export namespace Script {
|
|
|
2190
2196
|
userActivation?: boolean;
|
|
2191
2197
|
};
|
|
2192
2198
|
}
|
|
2193
|
-
export namespace Script {
|
|
2194
|
-
export type CallFunction = {
|
|
2195
|
-
method: 'script.callFunction';
|
|
2196
|
-
params: Script.CallFunctionParameters;
|
|
2197
|
-
};
|
|
2198
|
-
}
|
|
2199
2199
|
export namespace Script {
|
|
2200
2200
|
export type Evaluate = {
|
|
2201
2201
|
method: 'script.evaluate';
|
|
@@ -2243,6 +2243,12 @@ export namespace Script {
|
|
|
2243
2243
|
script: Script.PreloadScript;
|
|
2244
2244
|
};
|
|
2245
2245
|
}
|
|
2246
|
+
export namespace Script {
|
|
2247
|
+
export type Message = {
|
|
2248
|
+
method: 'script.message';
|
|
2249
|
+
params: Script.MessageParameters;
|
|
2250
|
+
};
|
|
2251
|
+
}
|
|
2246
2252
|
export namespace Script {
|
|
2247
2253
|
export type MessageParameters = {
|
|
2248
2254
|
channel: Script.Channel;
|
|
@@ -2256,12 +2262,6 @@ export namespace Script {
|
|
|
2256
2262
|
params: Script.RealmInfo;
|
|
2257
2263
|
};
|
|
2258
2264
|
}
|
|
2259
|
-
export namespace Script {
|
|
2260
|
-
export type Message = {
|
|
2261
|
-
method: 'script.message';
|
|
2262
|
-
params: Script.MessageParameters;
|
|
2263
|
-
};
|
|
2264
|
-
}
|
|
2265
2265
|
export namespace Script {
|
|
2266
2266
|
export type RealmDestroyed = {
|
|
2267
2267
|
method: 'script.realmDestroyed';
|
|
@@ -2440,12 +2440,25 @@ export namespace Input {
|
|
|
2440
2440
|
element: Script.SharedReference;
|
|
2441
2441
|
};
|
|
2442
2442
|
}
|
|
2443
|
+
export namespace Input {
|
|
2444
|
+
export type PerformActions = {
|
|
2445
|
+
method: 'input.performActions';
|
|
2446
|
+
params: Input.PerformActionsParameters;
|
|
2447
|
+
};
|
|
2448
|
+
}
|
|
2443
2449
|
export namespace Input {
|
|
2444
2450
|
export type PerformActionsParameters = {
|
|
2445
2451
|
context: BrowsingContext.BrowsingContext;
|
|
2446
2452
|
actions: [...Input.SourceActions[]];
|
|
2447
2453
|
};
|
|
2448
2454
|
}
|
|
2455
|
+
export namespace Input {
|
|
2456
|
+
export type SourceActions =
|
|
2457
|
+
| Input.NoneSourceActions
|
|
2458
|
+
| Input.KeySourceActions
|
|
2459
|
+
| Input.PointerSourceActions
|
|
2460
|
+
| Input.WheelSourceActions;
|
|
2461
|
+
}
|
|
2449
2462
|
export namespace Input {
|
|
2450
2463
|
export type NoneSourceActions = {
|
|
2451
2464
|
type: 'none';
|
|
@@ -2453,6 +2466,9 @@ export namespace Input {
|
|
|
2453
2466
|
actions: [...Input.NoneSourceAction[]];
|
|
2454
2467
|
};
|
|
2455
2468
|
}
|
|
2469
|
+
export namespace Input {
|
|
2470
|
+
export type NoneSourceAction = Input.PauseAction;
|
|
2471
|
+
}
|
|
2456
2472
|
export namespace Input {
|
|
2457
2473
|
export type KeySourceActions = {
|
|
2458
2474
|
type: 'key';
|
|
@@ -2460,6 +2476,12 @@ export namespace Input {
|
|
|
2460
2476
|
actions: [...Input.KeySourceAction[]];
|
|
2461
2477
|
};
|
|
2462
2478
|
}
|
|
2479
|
+
export namespace Input {
|
|
2480
|
+
export type KeySourceAction =
|
|
2481
|
+
| Input.PauseAction
|
|
2482
|
+
| Input.KeyDownAction
|
|
2483
|
+
| Input.KeyUpAction;
|
|
2484
|
+
}
|
|
2463
2485
|
export namespace Input {
|
|
2464
2486
|
export type PointerSourceActions = {
|
|
2465
2487
|
type: 'pointer';
|
|
@@ -2468,28 +2490,6 @@ export namespace Input {
|
|
|
2468
2490
|
actions: [...Input.PointerSourceAction[]];
|
|
2469
2491
|
};
|
|
2470
2492
|
}
|
|
2471
|
-
export namespace Input {
|
|
2472
|
-
export type PerformActions = {
|
|
2473
|
-
method: 'input.performActions';
|
|
2474
|
-
params: Input.PerformActionsParameters;
|
|
2475
|
-
};
|
|
2476
|
-
}
|
|
2477
|
-
export namespace Input {
|
|
2478
|
-
export type SourceActions =
|
|
2479
|
-
| Input.NoneSourceActions
|
|
2480
|
-
| Input.KeySourceActions
|
|
2481
|
-
| Input.PointerSourceActions
|
|
2482
|
-
| Input.WheelSourceActions;
|
|
2483
|
-
}
|
|
2484
|
-
export namespace Input {
|
|
2485
|
-
export type NoneSourceAction = Input.PauseAction;
|
|
2486
|
-
}
|
|
2487
|
-
export namespace Input {
|
|
2488
|
-
export type KeySourceAction =
|
|
2489
|
-
| Input.PauseAction
|
|
2490
|
-
| Input.KeyDownAction
|
|
2491
|
-
| Input.KeyUpAction;
|
|
2492
|
-
}
|
|
2493
2493
|
export namespace Input {
|
|
2494
2494
|
export const enum PointerType {
|
|
2495
2495
|
Mouse = 'mouse',
|
|
@@ -2505,13 +2505,6 @@ export namespace Input {
|
|
|
2505
2505
|
pointerType?: Input.PointerType;
|
|
2506
2506
|
};
|
|
2507
2507
|
}
|
|
2508
|
-
export namespace Input {
|
|
2509
|
-
export type WheelSourceActions = {
|
|
2510
|
-
type: 'wheel';
|
|
2511
|
-
id: string;
|
|
2512
|
-
actions: [...Input.WheelSourceAction[]];
|
|
2513
|
-
};
|
|
2514
|
-
}
|
|
2515
2508
|
export namespace Input {
|
|
2516
2509
|
export type PointerSourceAction =
|
|
2517
2510
|
| Input.PauseAction
|
|
@@ -2519,6 +2512,13 @@ export namespace Input {
|
|
|
2519
2512
|
| Input.PointerUpAction
|
|
2520
2513
|
| Input.PointerMoveAction;
|
|
2521
2514
|
}
|
|
2515
|
+
export namespace Input {
|
|
2516
|
+
export type WheelSourceActions = {
|
|
2517
|
+
type: 'wheel';
|
|
2518
|
+
id: string;
|
|
2519
|
+
actions: [...Input.WheelSourceAction[]];
|
|
2520
|
+
};
|
|
2521
|
+
}
|
|
2522
2522
|
export namespace Input {
|
|
2523
2523
|
export type WheelSourceAction = Input.PauseAction | Input.WheelScrollAction;
|
|
2524
2524
|
}
|
|
@@ -2658,17 +2658,17 @@ export type WebExtensionResult = WebExtension.InstallResult;
|
|
|
2658
2658
|
export namespace WebExtension {
|
|
2659
2659
|
export type Extension = string;
|
|
2660
2660
|
}
|
|
2661
|
-
export namespace WebExtension {
|
|
2662
|
-
export type InstallParameters = {
|
|
2663
|
-
extensionData: WebExtension.ExtensionData;
|
|
2664
|
-
};
|
|
2665
|
-
}
|
|
2666
2661
|
export namespace WebExtension {
|
|
2667
2662
|
export type Install = {
|
|
2668
2663
|
method: 'webExtension.install';
|
|
2669
2664
|
params: WebExtension.InstallParameters;
|
|
2670
2665
|
};
|
|
2671
2666
|
}
|
|
2667
|
+
export namespace WebExtension {
|
|
2668
|
+
export type InstallParameters = {
|
|
2669
|
+
extensionData: WebExtension.ExtensionData;
|
|
2670
|
+
};
|
|
2671
|
+
}
|
|
2672
2672
|
export namespace WebExtension {
|
|
2673
2673
|
export type ExtensionData =
|
|
2674
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;
|