webdriver-bidi-protocol 0.1.7 → 0.1.8
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 +2 -2
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +8 -0
- package/out/gen/main.d.ts +56 -6
- package/out/gen/web-bluetooth.d.ts +19 -2
- package/package.json +1 -1
- package/src/gen/main.ts +56 -6
- package/src/gen/web-bluetooth.ts +19 -2
package/.github/workflows/ci.yml
CHANGED
|
@@ -23,13 +23,13 @@ jobs:
|
|
|
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.6
|
|
27
27
|
- name: Install dependencies
|
|
28
28
|
run: npm ci
|
|
29
29
|
- name: Build and test
|
|
30
30
|
run: npm test
|
|
31
31
|
- name: Create Pull Request
|
|
32
|
-
uses: peter-evans/create-pull-request@
|
|
32
|
+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
|
|
33
33
|
with:
|
|
34
34
|
token: ${{ secrets.BROWSER_AUTOMATION_BOT_TOKEN }}
|
|
35
35
|
branch: regenerate
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.8](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.1.7...webdriver-bidi-protocol-v0.1.8) (2025-04-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* re-generate types based on specifciation updates ([#140](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/140)) ([b769928](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/b769928b05cfc936a949384cc7b345f995895b54))
|
|
9
|
+
* re-generate types based on specifciation updates ([#143](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/143)) ([946a803](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/946a80305ad8c226519667a3c4d6bfc84d7a8fe1))
|
|
10
|
+
|
|
3
11
|
## [0.1.7](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.1.6...webdriver-bidi-protocol-v0.1.7) (2025-03-06)
|
|
4
12
|
|
|
5
13
|
|
package/out/gen/main.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export type EventData =
|
|
|
20
20
|
export type CommandData =
|
|
21
21
|
| BrowserCommand
|
|
22
22
|
| BrowsingContextCommand
|
|
23
|
+
| EmulationCommand
|
|
23
24
|
| InputCommand
|
|
24
25
|
| NetworkCommand
|
|
25
26
|
| ScriptCommand
|
|
@@ -95,8 +96,7 @@ export declare namespace Session {
|
|
|
95
96
|
| Session.DirectProxyConfiguration
|
|
96
97
|
| Session.ManualProxyConfiguration
|
|
97
98
|
| Session.PacProxyConfiguration
|
|
98
|
-
| Session.SystemProxyConfiguration
|
|
99
|
-
| Record<string, never>;
|
|
99
|
+
| Session.SystemProxyConfiguration;
|
|
100
100
|
}
|
|
101
101
|
export type SessionResult =
|
|
102
102
|
| Session.NewResult
|
|
@@ -275,8 +275,7 @@ export type BrowserCommand =
|
|
|
275
275
|
| Browser.GetClientWindows
|
|
276
276
|
| Browser.GetUserContexts
|
|
277
277
|
| Browser.RemoveUserContext
|
|
278
|
-
| Browser.SetClientWindowState
|
|
279
|
-
| Record<string, never>;
|
|
278
|
+
| Browser.SetClientWindowState;
|
|
280
279
|
export type BrowserResult =
|
|
281
280
|
| Browser.CreateUserContextResult
|
|
282
281
|
| Browser.GetUserContextsResult;
|
|
@@ -477,13 +476,16 @@ export declare namespace BrowsingContext {
|
|
|
477
476
|
type Navigation = string;
|
|
478
477
|
}
|
|
479
478
|
export declare namespace BrowsingContext {
|
|
480
|
-
type
|
|
479
|
+
type BaseNavigationInfo = {
|
|
481
480
|
context: BrowsingContext.BrowsingContext;
|
|
482
481
|
navigation: BrowsingContext.Navigation | null;
|
|
483
482
|
timestamp: JsUint;
|
|
484
483
|
url: string;
|
|
485
484
|
};
|
|
486
485
|
}
|
|
486
|
+
export declare namespace BrowsingContext {
|
|
487
|
+
type NavigationInfo = BrowsingContext.BaseNavigationInfo;
|
|
488
|
+
}
|
|
487
489
|
export declare namespace BrowsingContext {
|
|
488
490
|
const enum ReadinessState {
|
|
489
491
|
None = 'none',
|
|
@@ -859,9 +861,14 @@ export declare namespace BrowsingContext {
|
|
|
859
861
|
export declare namespace BrowsingContext {
|
|
860
862
|
type DownloadWillBegin = {
|
|
861
863
|
method: 'browsingContext.downloadWillBegin';
|
|
862
|
-
params: BrowsingContext.
|
|
864
|
+
params: BrowsingContext.DownloadWillBeginParams;
|
|
863
865
|
};
|
|
864
866
|
}
|
|
867
|
+
export declare namespace BrowsingContext {
|
|
868
|
+
type DownloadWillBeginParams = {
|
|
869
|
+
suggestedFilename: string;
|
|
870
|
+
} & BrowsingContext.BaseNavigationInfo;
|
|
871
|
+
}
|
|
865
872
|
export declare namespace BrowsingContext {
|
|
866
873
|
type NavigationAborted = {
|
|
867
874
|
method: 'browsingContext.navigationAborted';
|
|
@@ -909,6 +916,49 @@ export declare namespace BrowsingContext {
|
|
|
909
916
|
defaultValue?: string;
|
|
910
917
|
};
|
|
911
918
|
}
|
|
919
|
+
export type EmulationCommand = Emulation.SetGeolocationOverride;
|
|
920
|
+
export declare namespace Emulation {
|
|
921
|
+
type SetGeolocationOverride = {
|
|
922
|
+
method: 'emulation.setGeolocationOverride';
|
|
923
|
+
params: Emulation.SetGeolocationOverrideParameters;
|
|
924
|
+
};
|
|
925
|
+
}
|
|
926
|
+
export declare namespace Emulation {
|
|
927
|
+
type SetGeolocationOverrideParameters = {
|
|
928
|
+
coordinates: Emulation.GeolocationCoordinates | null;
|
|
929
|
+
contexts?: [
|
|
930
|
+
BrowsingContext.BrowsingContext,
|
|
931
|
+
...BrowsingContext.BrowsingContext[],
|
|
932
|
+
];
|
|
933
|
+
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
|
|
934
|
+
};
|
|
935
|
+
}
|
|
936
|
+
export declare namespace Emulation {
|
|
937
|
+
type GeolocationCoordinates = {
|
|
938
|
+
latitude: number;
|
|
939
|
+
longitude: number;
|
|
940
|
+
/**
|
|
941
|
+
* @defaultValue `1`
|
|
942
|
+
*/
|
|
943
|
+
accuracy?: number;
|
|
944
|
+
/**
|
|
945
|
+
* @defaultValue `null`
|
|
946
|
+
*/
|
|
947
|
+
altitude?: number | null;
|
|
948
|
+
/**
|
|
949
|
+
* @defaultValue `null`
|
|
950
|
+
*/
|
|
951
|
+
altitudeAccuracy?: number | null;
|
|
952
|
+
/**
|
|
953
|
+
* @defaultValue `null`
|
|
954
|
+
*/
|
|
955
|
+
heading?: number | null;
|
|
956
|
+
/**
|
|
957
|
+
* @defaultValue `null`
|
|
958
|
+
*/
|
|
959
|
+
speed?: number | null;
|
|
960
|
+
};
|
|
961
|
+
}
|
|
912
962
|
export type NetworkCommand =
|
|
913
963
|
| Network.AddIntercept
|
|
914
964
|
| Network.ContinueRequest
|
|
@@ -27,6 +27,13 @@ export declare namespace Bluetooth {
|
|
|
27
27
|
manufacturerData?: [...Bluetooth.BluetoothManufacturerData[]];
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
+
export type BluetoothCommand =
|
|
31
|
+
| Bluetooth.HandleRequestDevicePrompt
|
|
32
|
+
| Bluetooth.SimulateAdapter
|
|
33
|
+
| Bluetooth.DisableSimulation
|
|
34
|
+
| Bluetooth.SimulatePreconnectedPeripheral
|
|
35
|
+
| Bluetooth.SimulateAdvertisement
|
|
36
|
+
| Record<string, never>;
|
|
30
37
|
export declare namespace Bluetooth {
|
|
31
38
|
type HandleRequestDevicePrompt = {
|
|
32
39
|
method: 'bluetooth.handleRequestDevicePrompt';
|
|
@@ -62,9 +69,19 @@ export declare namespace Bluetooth {
|
|
|
62
69
|
export declare namespace Bluetooth {
|
|
63
70
|
type SimulateAdapterParameters = {
|
|
64
71
|
context: string;
|
|
65
|
-
type: 'create' | 'update' | 'remove';
|
|
66
72
|
leSupported?: boolean;
|
|
67
|
-
state
|
|
73
|
+
state: 'absent' | 'powered-off' | 'powered-on';
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
export declare namespace Bluetooth {
|
|
77
|
+
type DisableSimulation = {
|
|
78
|
+
method: 'bluetooth.disableSimulation';
|
|
79
|
+
params: Bluetooth.DisableSimulationParameters;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
export declare namespace Bluetooth {
|
|
83
|
+
type DisableSimulationParameters = {
|
|
84
|
+
context: string;
|
|
68
85
|
};
|
|
69
86
|
}
|
|
70
87
|
export declare namespace Bluetooth {
|
package/package.json
CHANGED
package/src/gen/main.ts
CHANGED
|
@@ -20,6 +20,7 @@ export type EventData =
|
|
|
20
20
|
export type CommandData =
|
|
21
21
|
| BrowserCommand
|
|
22
22
|
| BrowsingContextCommand
|
|
23
|
+
| EmulationCommand
|
|
23
24
|
| InputCommand
|
|
24
25
|
| NetworkCommand
|
|
25
26
|
| ScriptCommand
|
|
@@ -97,8 +98,7 @@ export namespace Session {
|
|
|
97
98
|
| Session.DirectProxyConfiguration
|
|
98
99
|
| Session.ManualProxyConfiguration
|
|
99
100
|
| Session.PacProxyConfiguration
|
|
100
|
-
| Session.SystemProxyConfiguration
|
|
101
|
-
| Record<string, never>;
|
|
101
|
+
| Session.SystemProxyConfiguration;
|
|
102
102
|
}
|
|
103
103
|
export type SessionResult =
|
|
104
104
|
| Session.NewResult
|
|
@@ -277,8 +277,7 @@ export type BrowserCommand =
|
|
|
277
277
|
| Browser.GetClientWindows
|
|
278
278
|
| Browser.GetUserContexts
|
|
279
279
|
| Browser.RemoveUserContext
|
|
280
|
-
| Browser.SetClientWindowState
|
|
281
|
-
| Record<string, never>;
|
|
280
|
+
| Browser.SetClientWindowState;
|
|
282
281
|
export type BrowserResult =
|
|
283
282
|
| Browser.CreateUserContextResult
|
|
284
283
|
| Browser.GetUserContextsResult;
|
|
@@ -479,13 +478,16 @@ export namespace BrowsingContext {
|
|
|
479
478
|
export type Navigation = string;
|
|
480
479
|
}
|
|
481
480
|
export namespace BrowsingContext {
|
|
482
|
-
export type
|
|
481
|
+
export type BaseNavigationInfo = {
|
|
483
482
|
context: BrowsingContext.BrowsingContext;
|
|
484
483
|
navigation: BrowsingContext.Navigation | null;
|
|
485
484
|
timestamp: JsUint;
|
|
486
485
|
url: string;
|
|
487
486
|
};
|
|
488
487
|
}
|
|
488
|
+
export namespace BrowsingContext {
|
|
489
|
+
export type NavigationInfo = BrowsingContext.BaseNavigationInfo;
|
|
490
|
+
}
|
|
489
491
|
export namespace BrowsingContext {
|
|
490
492
|
export const enum ReadinessState {
|
|
491
493
|
None = 'none',
|
|
@@ -861,9 +863,14 @@ export namespace BrowsingContext {
|
|
|
861
863
|
export namespace BrowsingContext {
|
|
862
864
|
export type DownloadWillBegin = {
|
|
863
865
|
method: 'browsingContext.downloadWillBegin';
|
|
864
|
-
params: BrowsingContext.
|
|
866
|
+
params: BrowsingContext.DownloadWillBeginParams;
|
|
865
867
|
};
|
|
866
868
|
}
|
|
869
|
+
export namespace BrowsingContext {
|
|
870
|
+
export type DownloadWillBeginParams = {
|
|
871
|
+
suggestedFilename: string;
|
|
872
|
+
} & BrowsingContext.BaseNavigationInfo;
|
|
873
|
+
}
|
|
867
874
|
export namespace BrowsingContext {
|
|
868
875
|
export type NavigationAborted = {
|
|
869
876
|
method: 'browsingContext.navigationAborted';
|
|
@@ -911,6 +918,49 @@ export namespace BrowsingContext {
|
|
|
911
918
|
defaultValue?: string;
|
|
912
919
|
};
|
|
913
920
|
}
|
|
921
|
+
export type EmulationCommand = Emulation.SetGeolocationOverride;
|
|
922
|
+
export namespace Emulation {
|
|
923
|
+
export type SetGeolocationOverride = {
|
|
924
|
+
method: 'emulation.setGeolocationOverride';
|
|
925
|
+
params: Emulation.SetGeolocationOverrideParameters;
|
|
926
|
+
};
|
|
927
|
+
}
|
|
928
|
+
export namespace Emulation {
|
|
929
|
+
export type SetGeolocationOverrideParameters = {
|
|
930
|
+
coordinates: Emulation.GeolocationCoordinates | null;
|
|
931
|
+
contexts?: [
|
|
932
|
+
BrowsingContext.BrowsingContext,
|
|
933
|
+
...BrowsingContext.BrowsingContext[],
|
|
934
|
+
];
|
|
935
|
+
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
|
|
936
|
+
};
|
|
937
|
+
}
|
|
938
|
+
export namespace Emulation {
|
|
939
|
+
export type GeolocationCoordinates = {
|
|
940
|
+
latitude: number;
|
|
941
|
+
longitude: number;
|
|
942
|
+
/**
|
|
943
|
+
* @defaultValue `1`
|
|
944
|
+
*/
|
|
945
|
+
accuracy?: number;
|
|
946
|
+
/**
|
|
947
|
+
* @defaultValue `null`
|
|
948
|
+
*/
|
|
949
|
+
altitude?: number | null;
|
|
950
|
+
/**
|
|
951
|
+
* @defaultValue `null`
|
|
952
|
+
*/
|
|
953
|
+
altitudeAccuracy?: number | null;
|
|
954
|
+
/**
|
|
955
|
+
* @defaultValue `null`
|
|
956
|
+
*/
|
|
957
|
+
heading?: number | null;
|
|
958
|
+
/**
|
|
959
|
+
* @defaultValue `null`
|
|
960
|
+
*/
|
|
961
|
+
speed?: number | null;
|
|
962
|
+
};
|
|
963
|
+
}
|
|
914
964
|
export type NetworkCommand =
|
|
915
965
|
| Network.AddIntercept
|
|
916
966
|
| Network.ContinueRequest
|
package/src/gen/web-bluetooth.ts
CHANGED
|
@@ -27,6 +27,13 @@ export namespace Bluetooth {
|
|
|
27
27
|
manufacturerData?: [...Bluetooth.BluetoothManufacturerData[]];
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
+
export type BluetoothCommand =
|
|
31
|
+
| Bluetooth.HandleRequestDevicePrompt
|
|
32
|
+
| Bluetooth.SimulateAdapter
|
|
33
|
+
| Bluetooth.DisableSimulation
|
|
34
|
+
| Bluetooth.SimulatePreconnectedPeripheral
|
|
35
|
+
| Bluetooth.SimulateAdvertisement
|
|
36
|
+
| Record<string, never>;
|
|
30
37
|
export namespace Bluetooth {
|
|
31
38
|
export type HandleRequestDevicePrompt = {
|
|
32
39
|
method: 'bluetooth.handleRequestDevicePrompt';
|
|
@@ -62,9 +69,19 @@ export namespace Bluetooth {
|
|
|
62
69
|
export namespace Bluetooth {
|
|
63
70
|
export type SimulateAdapterParameters = {
|
|
64
71
|
context: string;
|
|
65
|
-
type: 'create' | 'update' | 'remove';
|
|
66
72
|
leSupported?: boolean;
|
|
67
|
-
state
|
|
73
|
+
state: 'absent' | 'powered-off' | 'powered-on';
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
export namespace Bluetooth {
|
|
77
|
+
export type DisableSimulation = {
|
|
78
|
+
method: 'bluetooth.disableSimulation';
|
|
79
|
+
params: Bluetooth.DisableSimulationParameters;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
export namespace Bluetooth {
|
|
83
|
+
export type DisableSimulationParameters = {
|
|
84
|
+
context: string;
|
|
68
85
|
};
|
|
69
86
|
}
|
|
70
87
|
export namespace Bluetooth {
|