webdriver-bidi-protocol 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/dependabot.yml +1 -0
- package/.github/workflows/regenerate.yml +42 -0
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +14 -0
- package/out/gen/main.d.ts +29 -7
- package/package.json +2 -2
- package/src/gen/main.ts +29 -7
- package/test-d/webdriver-bidi-protocol.test-d.ts +1 -1
package/.github/dependabot.yml
CHANGED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
name: regenerate
|
|
2
|
+
|
|
3
|
+
# Declare default permissions as read only.
|
|
4
|
+
permissions: read-all
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
push:
|
|
9
|
+
branches:
|
|
10
|
+
- main
|
|
11
|
+
|
|
12
|
+
concurrency:
|
|
13
|
+
group: regenerate-${{ github.head_ref || github.run_id }}
|
|
14
|
+
cancel-in-progress: true
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
ci:
|
|
18
|
+
name: '[Required] Regenerate'
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
steps:
|
|
21
|
+
- name: Check out repository
|
|
22
|
+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
23
|
+
with:
|
|
24
|
+
fetch-depth: 2
|
|
25
|
+
- name: Install cddlconv
|
|
26
|
+
run: cargo install cddlconv@0.1.5
|
|
27
|
+
- name: Install dependencies
|
|
28
|
+
run: npm ci
|
|
29
|
+
- name: Build and test
|
|
30
|
+
run: npm test
|
|
31
|
+
- name: Create Pull Request
|
|
32
|
+
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
|
|
33
|
+
with:
|
|
34
|
+
token: ${{ secrets.BROWSER_AUTOMATION_BOT_TOKEN }}
|
|
35
|
+
branch: regenerate
|
|
36
|
+
delete-branch: true
|
|
37
|
+
committer: Browser Automation Bot <browser-automation-bot@google.com>
|
|
38
|
+
author: Browser Automation Bot <browser-automation-bot@google.com>
|
|
39
|
+
commit-message: 'fix: re-generate types based on specifciation updates'
|
|
40
|
+
title: 'fix: re-generate types based on specifciation updates'
|
|
41
|
+
body: 'Automatically generated by https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/blob/main/.github/workflows/regenerate.yml'
|
|
42
|
+
push-to-fork: browser-automation-bot/webdriver-bidi-protocol
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.3](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.1.2...webdriver-bidi-protocol-v0.1.3) (2024-12-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* re-generate types based on specifciation updates ([#88](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/88)) ([d3c2c6f](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/d3c2c6fcf973551d4bef5cbee5291e3581ae257c))
|
|
9
|
+
|
|
10
|
+
## [0.1.2](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.1.1...webdriver-bidi-protocol-v0.1.2) (2024-12-08)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* re-generate types based on specifciation updates ([#83](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/83)) ([ac66a29](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/ac66a29bc3396c2bdabb133d5dfb63fc2b029add))
|
|
16
|
+
|
|
3
17
|
## [0.1.1](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.1.0...webdriver-bidi-protocol-v0.1.1) (2024-12-03)
|
|
4
18
|
|
|
5
19
|
|
package/out/gen/main.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export type CommandData =
|
|
|
24
24
|
| ScriptCommand
|
|
25
25
|
| SessionCommand
|
|
26
26
|
| StorageCommand
|
|
27
|
-
|
|
|
27
|
+
| WebExtensionCommand;
|
|
28
28
|
export type ResultData =
|
|
29
29
|
| BrowsingContextResult
|
|
30
30
|
| EmptyResult
|
|
@@ -32,7 +32,7 @@ export type ResultData =
|
|
|
32
32
|
| ScriptResult
|
|
33
33
|
| SessionResult
|
|
34
34
|
| StorageResult
|
|
35
|
-
|
|
|
35
|
+
| WebExtensionResult;
|
|
36
36
|
export type EmptyParams = Extensible;
|
|
37
37
|
export type Message = CommandResponse | ErrorResponse | Event;
|
|
38
38
|
export type ErrorResponse = {
|
|
@@ -170,6 +170,9 @@ export declare namespace Session {
|
|
|
170
170
|
Ignore = 'ignore',
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
+
export declare namespace Session {
|
|
174
|
+
type Subscription = string;
|
|
175
|
+
}
|
|
173
176
|
export declare namespace Session {
|
|
174
177
|
type SubscriptionRequest = {
|
|
175
178
|
events: [string, ...string[]];
|
|
@@ -179,6 +182,20 @@ export declare namespace Session {
|
|
|
179
182
|
];
|
|
180
183
|
};
|
|
181
184
|
}
|
|
185
|
+
export declare namespace Session {
|
|
186
|
+
type UnsubscribeByIdRequest = {
|
|
187
|
+
subscriptions: [Session.Subscription, ...Session.Subscription[]];
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
export declare namespace Session {
|
|
191
|
+
type UnsubscribeByAttributesRequest = {
|
|
192
|
+
events: [string, ...string[]];
|
|
193
|
+
contexts?: [
|
|
194
|
+
BrowsingContext.BrowsingContext,
|
|
195
|
+
...BrowsingContext.BrowsingContext[],
|
|
196
|
+
];
|
|
197
|
+
};
|
|
198
|
+
}
|
|
182
199
|
export declare namespace Session {
|
|
183
200
|
type Status = {
|
|
184
201
|
method: 'session.status';
|
|
@@ -230,10 +247,17 @@ export declare namespace Session {
|
|
|
230
247
|
params: Session.SubscriptionRequest;
|
|
231
248
|
};
|
|
232
249
|
}
|
|
250
|
+
export declare namespace Session {
|
|
251
|
+
type SubscriptionRequestResult = {
|
|
252
|
+
subscription: Session.Subscription;
|
|
253
|
+
};
|
|
254
|
+
}
|
|
233
255
|
export declare namespace Session {
|
|
234
256
|
type Unsubscribe = {
|
|
235
257
|
method: 'session.unsubscribe';
|
|
236
|
-
params:
|
|
258
|
+
params:
|
|
259
|
+
| Session.UnsubscribeByAttributesRequest
|
|
260
|
+
| Session.UnsubscribeByIdRequest;
|
|
237
261
|
};
|
|
238
262
|
}
|
|
239
263
|
export type BrowserCommand =
|
|
@@ -2260,10 +2284,8 @@ export declare namespace Input {
|
|
|
2260
2284
|
files: [...string[]];
|
|
2261
2285
|
};
|
|
2262
2286
|
}
|
|
2263
|
-
export type
|
|
2264
|
-
|
|
2265
|
-
| WebExtension.Uninstall;
|
|
2266
|
-
export type WebExtensionsResult = WebExtension.InstallResult;
|
|
2287
|
+
export type WebExtensionCommand = WebExtension.Install | WebExtension.Uninstall;
|
|
2288
|
+
export type WebExtensionResult = WebExtension.InstallResult;
|
|
2267
2289
|
export declare namespace WebExtension {
|
|
2268
2290
|
type Extension = string;
|
|
2269
2291
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webdriver-bidi-protocol",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"types": "out/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@types/node": "^22.5.2",
|
|
24
24
|
"gts": "^6.0.2",
|
|
25
25
|
"parse5": "^7.1.2",
|
|
26
|
-
"prettier": "3.4.
|
|
26
|
+
"prettier": "3.4.2",
|
|
27
27
|
"tsd": "0.31.2",
|
|
28
28
|
"typescript": "5.7.2"
|
|
29
29
|
}
|
package/src/gen/main.ts
CHANGED
|
@@ -24,7 +24,7 @@ export type CommandData =
|
|
|
24
24
|
| ScriptCommand
|
|
25
25
|
| SessionCommand
|
|
26
26
|
| StorageCommand
|
|
27
|
-
|
|
|
27
|
+
| WebExtensionCommand;
|
|
28
28
|
export type ResultData =
|
|
29
29
|
| BrowsingContextResult
|
|
30
30
|
| EmptyResult
|
|
@@ -32,7 +32,7 @@ export type ResultData =
|
|
|
32
32
|
| ScriptResult
|
|
33
33
|
| SessionResult
|
|
34
34
|
| StorageResult
|
|
35
|
-
|
|
|
35
|
+
| WebExtensionResult;
|
|
36
36
|
export type EmptyParams = Extensible;
|
|
37
37
|
export type Message = CommandResponse | ErrorResponse | Event;
|
|
38
38
|
export type ErrorResponse = {
|
|
@@ -172,6 +172,9 @@ export namespace Session {
|
|
|
172
172
|
Ignore = 'ignore',
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
+
export namespace Session {
|
|
176
|
+
export type Subscription = string;
|
|
177
|
+
}
|
|
175
178
|
export namespace Session {
|
|
176
179
|
export type SubscriptionRequest = {
|
|
177
180
|
events: [string, ...string[]];
|
|
@@ -181,6 +184,20 @@ export namespace Session {
|
|
|
181
184
|
];
|
|
182
185
|
};
|
|
183
186
|
}
|
|
187
|
+
export namespace Session {
|
|
188
|
+
export type UnsubscribeByIdRequest = {
|
|
189
|
+
subscriptions: [Session.Subscription, ...Session.Subscription[]];
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
export namespace Session {
|
|
193
|
+
export type UnsubscribeByAttributesRequest = {
|
|
194
|
+
events: [string, ...string[]];
|
|
195
|
+
contexts?: [
|
|
196
|
+
BrowsingContext.BrowsingContext,
|
|
197
|
+
...BrowsingContext.BrowsingContext[],
|
|
198
|
+
];
|
|
199
|
+
};
|
|
200
|
+
}
|
|
184
201
|
export namespace Session {
|
|
185
202
|
export type Status = {
|
|
186
203
|
method: 'session.status';
|
|
@@ -232,10 +249,17 @@ export namespace Session {
|
|
|
232
249
|
params: Session.SubscriptionRequest;
|
|
233
250
|
};
|
|
234
251
|
}
|
|
252
|
+
export namespace Session {
|
|
253
|
+
export type SubscriptionRequestResult = {
|
|
254
|
+
subscription: Session.Subscription;
|
|
255
|
+
};
|
|
256
|
+
}
|
|
235
257
|
export namespace Session {
|
|
236
258
|
export type Unsubscribe = {
|
|
237
259
|
method: 'session.unsubscribe';
|
|
238
|
-
params:
|
|
260
|
+
params:
|
|
261
|
+
| Session.UnsubscribeByAttributesRequest
|
|
262
|
+
| Session.UnsubscribeByIdRequest;
|
|
239
263
|
};
|
|
240
264
|
}
|
|
241
265
|
export type BrowserCommand =
|
|
@@ -2264,10 +2288,8 @@ export namespace Input {
|
|
|
2264
2288
|
files: [...string[]];
|
|
2265
2289
|
};
|
|
2266
2290
|
}
|
|
2267
|
-
export type
|
|
2268
|
-
|
|
2269
|
-
| WebExtension.Uninstall;
|
|
2270
|
-
export type WebExtensionsResult = WebExtension.InstallResult;
|
|
2291
|
+
export type WebExtensionCommand = WebExtension.Install | WebExtension.Uninstall;
|
|
2292
|
+
export type WebExtensionResult = WebExtension.InstallResult;
|
|
2271
2293
|
export namespace WebExtension {
|
|
2272
2294
|
export type Extension = string;
|
|
2273
2295
|
}
|
|
@@ -10,7 +10,7 @@ function sendCommand(command: Command) {}
|
|
|
10
10
|
function handleEvent(event: Event) {}
|
|
11
11
|
function sendCommandMultipleArgs<T extends keyof Commands>(
|
|
12
12
|
method: T,
|
|
13
|
-
params: Commands[T]['params']
|
|
13
|
+
params: Commands[T]['params'],
|
|
14
14
|
): {result: Commands[T]['returnType']} {
|
|
15
15
|
throw new Error('Not implemented');
|
|
16
16
|
}
|