webdriver-bidi-protocol 0.0.1 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/dependabot.yml +39 -0
- package/.github/workflows/ci.yml +45 -0
- package/.github/workflows/publish.yml +29 -0
- package/.github/workflows/release-please.yml +21 -0
- package/.gitmodules +6 -0
- package/.prettierrc.cjs +4 -0
- package/.release-please-manifest.json +3 -0
- package/CHANGELOG.md +23 -0
- package/LICENSE +1 -1
- package/README.md +32 -2
- package/out/gen/main.d.ts +1650 -1559
- package/out/gen/main.js +2 -2
- package/out/gen/permissions.d.ts +19 -19
- package/out/gen/permissions.js +2 -2
- package/out/index.d.ts +162 -162
- package/out/index.js +34 -18
- package/package.json +18 -5
- package/release-please-config.json +6 -0
- package/src/gen/main.ts +2175 -0
- package/src/gen/permissions.ts +27 -0
- package/src/index.ts +5 -5
- package/test-d/webdriver-bidi-protocol.test-d.ts +14 -14
- package/tools/build.sh +10 -13
package/out/gen/main.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', {value: true});
|
package/out/gen/permissions.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
export type PermissionsCommand =
|
|
1
|
+
export type PermissionsCommand = Permissions.SetPermission;
|
|
2
2
|
export declare namespace Permissions {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
type PermissionDescriptor = {
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
6
6
|
}
|
|
7
7
|
export declare namespace Permissions {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
const enum PermissionState {
|
|
9
|
+
Granted = 'granted',
|
|
10
|
+
Denied = 'denied',
|
|
11
|
+
Prompt = 'prompt',
|
|
12
|
+
}
|
|
13
13
|
}
|
|
14
14
|
export declare namespace Permissions {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
type SetPermission = {
|
|
16
|
+
method: 'permissions.setPermission';
|
|
17
|
+
params: Permissions.SetPermissionParameters;
|
|
18
|
+
};
|
|
19
19
|
}
|
|
20
20
|
export declare namespace Permissions {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
type SetPermissionParameters = {
|
|
22
|
+
descriptor: Permissions.PermissionDescriptor;
|
|
23
|
+
state: Permissions.PermissionState;
|
|
24
|
+
origin: string;
|
|
25
|
+
userContext?: string;
|
|
26
|
+
};
|
|
27
27
|
}
|
package/out/gen/permissions.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', {value: true});
|
package/out/index.d.ts
CHANGED
|
@@ -3,169 +3,169 @@
|
|
|
3
3
|
* Copyright 2024 Google Inc.
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import * as Bidi from
|
|
7
|
-
import * as BidiPermissions from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
6
|
+
import * as Bidi from './gen/main.js';
|
|
7
|
+
import * as BidiPermissions from './gen/permissions.js';
|
|
8
|
+
export * from './gen/main.js';
|
|
9
|
+
export * from './gen/permissions.js';
|
|
10
10
|
export type Command = Bidi.Command | BidiPermissions.Permissions.SetPermission;
|
|
11
11
|
export type Event = Bidi.Event;
|
|
12
12
|
export interface Commands {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
13
|
+
'script.evaluate': {
|
|
14
|
+
params: Bidi.Script.EvaluateParameters;
|
|
15
|
+
returnType: Bidi.Script.EvaluateResult;
|
|
16
|
+
};
|
|
17
|
+
'script.callFunction': {
|
|
18
|
+
params: Bidi.Script.CallFunctionParameters;
|
|
19
|
+
returnType: Bidi.Script.EvaluateResult;
|
|
20
|
+
};
|
|
21
|
+
'script.disown': {
|
|
22
|
+
params: Bidi.Script.DisownParameters;
|
|
23
|
+
returnType: Bidi.EmptyResult;
|
|
24
|
+
};
|
|
25
|
+
'script.addPreloadScript': {
|
|
26
|
+
params: Bidi.Script.AddPreloadScriptParameters;
|
|
27
|
+
returnType: Bidi.Script.AddPreloadScriptResult;
|
|
28
|
+
};
|
|
29
|
+
'script.removePreloadScript': {
|
|
30
|
+
params: Bidi.Script.RemovePreloadScriptParameters;
|
|
31
|
+
returnType: Bidi.EmptyResult;
|
|
32
|
+
};
|
|
33
|
+
'browser.close': {
|
|
34
|
+
params: Bidi.EmptyParams;
|
|
35
|
+
returnType: Bidi.EmptyResult;
|
|
36
|
+
};
|
|
37
|
+
'browser.createUserContext': {
|
|
38
|
+
params: Bidi.EmptyParams;
|
|
39
|
+
returnType: Bidi.Browser.CreateUserContextResult;
|
|
40
|
+
};
|
|
41
|
+
'browser.getUserContexts': {
|
|
42
|
+
params: Bidi.EmptyParams;
|
|
43
|
+
returnType: Bidi.Browser.GetUserContextsResult;
|
|
44
|
+
};
|
|
45
|
+
'browser.removeUserContext': {
|
|
46
|
+
params: {
|
|
47
|
+
userContext: Bidi.Browser.UserContext;
|
|
48
|
+
};
|
|
49
|
+
returnType: Bidi.Browser.RemoveUserContext;
|
|
50
|
+
};
|
|
51
|
+
'browsingContext.activate': {
|
|
52
|
+
params: Bidi.BrowsingContext.ActivateParameters;
|
|
53
|
+
returnType: Bidi.EmptyResult;
|
|
54
|
+
};
|
|
55
|
+
'browsingContext.create': {
|
|
56
|
+
params: Bidi.BrowsingContext.CreateParameters;
|
|
57
|
+
returnType: Bidi.BrowsingContext.CreateResult;
|
|
58
|
+
};
|
|
59
|
+
'browsingContext.close': {
|
|
60
|
+
params: Bidi.BrowsingContext.CloseParameters;
|
|
61
|
+
returnType: Bidi.EmptyResult;
|
|
62
|
+
};
|
|
63
|
+
'browsingContext.getTree': {
|
|
64
|
+
params: Bidi.BrowsingContext.GetTreeParameters;
|
|
65
|
+
returnType: Bidi.BrowsingContext.GetTreeResult;
|
|
66
|
+
};
|
|
67
|
+
'browsingContext.locateNodes': {
|
|
68
|
+
params: Bidi.BrowsingContext.LocateNodesParameters;
|
|
69
|
+
returnType: Bidi.BrowsingContext.LocateNodesResult;
|
|
70
|
+
};
|
|
71
|
+
'browsingContext.navigate': {
|
|
72
|
+
params: Bidi.BrowsingContext.NavigateParameters;
|
|
73
|
+
returnType: Bidi.BrowsingContext.NavigateResult;
|
|
74
|
+
};
|
|
75
|
+
'browsingContext.reload': {
|
|
76
|
+
params: Bidi.BrowsingContext.ReloadParameters;
|
|
77
|
+
returnType: Bidi.BrowsingContext.NavigateResult;
|
|
78
|
+
};
|
|
79
|
+
'browsingContext.print': {
|
|
80
|
+
params: Bidi.BrowsingContext.PrintParameters;
|
|
81
|
+
returnType: Bidi.BrowsingContext.PrintResult;
|
|
82
|
+
};
|
|
83
|
+
'browsingContext.captureScreenshot': {
|
|
84
|
+
params: Bidi.BrowsingContext.CaptureScreenshotParameters;
|
|
85
|
+
returnType: Bidi.BrowsingContext.CaptureScreenshotResult;
|
|
86
|
+
};
|
|
87
|
+
'browsingContext.handleUserPrompt': {
|
|
88
|
+
params: Bidi.BrowsingContext.HandleUserPromptParameters;
|
|
89
|
+
returnType: Bidi.EmptyResult;
|
|
90
|
+
};
|
|
91
|
+
'browsingContext.setViewport': {
|
|
92
|
+
params: Bidi.BrowsingContext.SetViewportParameters;
|
|
93
|
+
returnType: Bidi.EmptyResult;
|
|
94
|
+
};
|
|
95
|
+
'browsingContext.traverseHistory': {
|
|
96
|
+
params: Bidi.BrowsingContext.TraverseHistoryParameters;
|
|
97
|
+
returnType: Bidi.EmptyResult;
|
|
98
|
+
};
|
|
99
|
+
'input.performActions': {
|
|
100
|
+
params: Bidi.Input.PerformActionsParameters;
|
|
101
|
+
returnType: Bidi.EmptyResult;
|
|
102
|
+
};
|
|
103
|
+
'input.releaseActions': {
|
|
104
|
+
params: Bidi.Input.ReleaseActionsParameters;
|
|
105
|
+
returnType: Bidi.EmptyResult;
|
|
106
|
+
};
|
|
107
|
+
'input.setFiles': {
|
|
108
|
+
params: Bidi.Input.SetFilesParameters;
|
|
109
|
+
returnType: Bidi.EmptyResult;
|
|
110
|
+
};
|
|
111
|
+
'permissions.setPermission': {
|
|
112
|
+
params: BidiPermissions.Permissions.SetPermissionParameters;
|
|
113
|
+
returnType: Bidi.EmptyResult;
|
|
114
|
+
};
|
|
115
|
+
'session.end': {
|
|
116
|
+
params: Bidi.EmptyParams;
|
|
117
|
+
returnType: Bidi.EmptyResult;
|
|
118
|
+
};
|
|
119
|
+
'session.new': {
|
|
120
|
+
params: Bidi.Session.NewParameters;
|
|
121
|
+
returnType: Bidi.Session.NewResult;
|
|
122
|
+
};
|
|
123
|
+
'session.status': {
|
|
124
|
+
params: object;
|
|
125
|
+
returnType: Bidi.Session.StatusResult;
|
|
126
|
+
};
|
|
127
|
+
'session.subscribe': {
|
|
128
|
+
params: Bidi.Session.SubscriptionRequest;
|
|
129
|
+
returnType: Bidi.EmptyResult;
|
|
130
|
+
};
|
|
131
|
+
'session.unsubscribe': {
|
|
132
|
+
params: Bidi.Session.SubscriptionRequest;
|
|
133
|
+
returnType: Bidi.EmptyResult;
|
|
134
|
+
};
|
|
135
|
+
'storage.deleteCookies': {
|
|
136
|
+
params: Bidi.Storage.DeleteCookiesParameters;
|
|
137
|
+
returnType: Bidi.Storage.DeleteCookiesResult;
|
|
138
|
+
};
|
|
139
|
+
'storage.getCookies': {
|
|
140
|
+
params: Bidi.Storage.GetCookiesParameters;
|
|
141
|
+
returnType: Bidi.Storage.GetCookiesResult;
|
|
142
|
+
};
|
|
143
|
+
'storage.setCookie': {
|
|
144
|
+
params: Bidi.Storage.SetCookieParameters;
|
|
145
|
+
returnType: Bidi.Storage.SetCookieParameters;
|
|
146
|
+
};
|
|
147
|
+
'network.addIntercept': {
|
|
148
|
+
params: Bidi.Network.AddInterceptParameters;
|
|
149
|
+
returnType: Bidi.Network.AddInterceptResult;
|
|
150
|
+
};
|
|
151
|
+
'network.removeIntercept': {
|
|
152
|
+
params: Bidi.Network.RemoveInterceptParameters;
|
|
153
|
+
returnType: Bidi.EmptyResult;
|
|
154
|
+
};
|
|
155
|
+
'network.continueRequest': {
|
|
156
|
+
params: Bidi.Network.ContinueRequestParameters;
|
|
157
|
+
returnType: Bidi.EmptyResult;
|
|
158
|
+
};
|
|
159
|
+
'network.continueWithAuth': {
|
|
160
|
+
params: Bidi.Network.ContinueWithAuthParameters;
|
|
161
|
+
returnType: Bidi.EmptyResult;
|
|
162
|
+
};
|
|
163
|
+
'network.failRequest': {
|
|
164
|
+
params: Bidi.Network.FailRequestParameters;
|
|
165
|
+
returnType: Bidi.EmptyResult;
|
|
166
|
+
};
|
|
167
|
+
'network.provideResponse': {
|
|
168
|
+
params: Bidi.Network.ProvideResponseParameters;
|
|
169
|
+
returnType: Bidi.EmptyResult;
|
|
170
|
+
};
|
|
171
171
|
}
|
package/out/index.js
CHANGED
|
@@ -1,23 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2024 Google Inc.
|
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
*/
|
|
7
|
-
var __createBinding =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
7
|
+
var __createBinding =
|
|
8
|
+
(this && this.__createBinding) ||
|
|
9
|
+
(Object.create
|
|
10
|
+
? function (o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
13
|
+
if (
|
|
14
|
+
!desc ||
|
|
15
|
+
('get' in desc ? !m.__esModule : desc.writable || desc.configurable)
|
|
16
|
+
) {
|
|
17
|
+
desc = {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () {
|
|
20
|
+
return m[k];
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
Object.defineProperty(o, k2, desc);
|
|
25
|
+
}
|
|
26
|
+
: function (o, m, k, k2) {
|
|
27
|
+
if (k2 === undefined) k2 = k;
|
|
28
|
+
o[k2] = m[k];
|
|
29
|
+
});
|
|
30
|
+
var __exportStar =
|
|
31
|
+
(this && this.__exportStar) ||
|
|
32
|
+
function (m, exports) {
|
|
33
|
+
for (var p in m)
|
|
34
|
+
if (p !== 'default' && !Object.prototype.hasOwnProperty.call(exports, p))
|
|
35
|
+
__createBinding(exports, m, p);
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, '__esModule', {value: true});
|
|
38
|
+
__exportStar(require('./gen/main.js'), exports);
|
|
39
|
+
__exportStar(require('./gen/permissions.js'), exports);
|
package/package.json
CHANGED
|
@@ -1,17 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webdriver-bidi-protocol",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"types": "out/index.d.ts",
|
|
7
|
-
"keywords": [
|
|
7
|
+
"keywords": [
|
|
8
|
+
"webdriver",
|
|
9
|
+
"bidi",
|
|
10
|
+
"protocol"
|
|
11
|
+
],
|
|
8
12
|
"author": "The Chromium Authors",
|
|
9
13
|
"license": "Apache-2.0",
|
|
14
|
+
"scripts": {
|
|
15
|
+
"test": "./tools/build.sh",
|
|
16
|
+
"format": "prettier -w 'out/**/*' 'src/**/*' 'test-d/**/*'"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/GoogleChromeLabs/webdriver-bidi-protocol"
|
|
21
|
+
},
|
|
10
22
|
"devDependencies": {
|
|
11
23
|
"@types/node": "^20.12.12",
|
|
24
|
+
"gts": "^5.3.1",
|
|
12
25
|
"parse5": "^7.1.2",
|
|
13
|
-
"prettier": "3.2
|
|
14
|
-
"tsd": "0.31.
|
|
15
|
-
"typescript": "5.
|
|
26
|
+
"prettier": "3.3.2",
|
|
27
|
+
"tsd": "0.31.1",
|
|
28
|
+
"typescript": "5.5.2"
|
|
16
29
|
}
|
|
17
30
|
}
|