webdriver-bidi-protocol 0.1.7 → 0.1.9
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 +19 -0
- package/out/gen/main.d.ts +116 -11
- package/out/gen/web-bluetooth.d.ts +204 -5
- package/package.json +4 -4
- package/src/gen/main.ts +116 -11
- package/src/gen/web-bluetooth.ts +204 -5
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,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.9](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.1.8...webdriver-bidi-protocol-v0.1.9) (2025-06-03)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* re-generate types based on specifciation updates ([#147](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/147)) ([b568837](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/b5688371c4ce32b6d62ff6b1a08854f0c000bcbe))
|
|
9
|
+
* re-generate types based on specifciation updates ([#154](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/154)) ([5e9bfdd](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/5e9bfdde05a80e6852dbd81ac4e124702765b11c))
|
|
10
|
+
* re-generate types based on specifciation updates ([#156](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/156)) ([a917e79](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/a917e79b9abd17e312c52227310bfe8aa7e21abb))
|
|
11
|
+
* re-generate types based on specifciation updates ([#162](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/162)) ([bb92e98](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/bb92e98a232b060cc94a058fef92e10d8f8d6601))
|
|
12
|
+
* re-generate types based on specifciation updates ([#166](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/166)) ([42664dd](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/42664dd5c7401588e55dda5573c3b7096f700953))
|
|
13
|
+
|
|
14
|
+
## [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)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* 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))
|
|
20
|
+
* 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))
|
|
21
|
+
|
|
3
22
|
## [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
23
|
|
|
5
24
|
|
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;
|
|
@@ -311,7 +310,13 @@ export declare namespace Browser {
|
|
|
311
310
|
export declare namespace Browser {
|
|
312
311
|
type CreateUserContext = {
|
|
313
312
|
method: 'browser.createUserContext';
|
|
314
|
-
params:
|
|
313
|
+
params: Browser.CreateUserContextParameters;
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
export declare namespace Browser {
|
|
317
|
+
type CreateUserContextParameters = {
|
|
318
|
+
acceptInsecureCerts?: boolean;
|
|
319
|
+
proxy?: Session.ProxyConfiguration;
|
|
315
320
|
};
|
|
316
321
|
}
|
|
317
322
|
export declare namespace Browser {
|
|
@@ -392,6 +397,7 @@ export type BrowsingContextEvent =
|
|
|
392
397
|
| BrowsingContext.ContextCreated
|
|
393
398
|
| BrowsingContext.ContextDestroyed
|
|
394
399
|
| BrowsingContext.DomContentLoaded
|
|
400
|
+
| BrowsingContext.DownloadEnd
|
|
395
401
|
| BrowsingContext.DownloadWillBegin
|
|
396
402
|
| BrowsingContext.FragmentNavigated
|
|
397
403
|
| BrowsingContext.HistoryUpdated
|
|
@@ -477,13 +483,16 @@ export declare namespace BrowsingContext {
|
|
|
477
483
|
type Navigation = string;
|
|
478
484
|
}
|
|
479
485
|
export declare namespace BrowsingContext {
|
|
480
|
-
type
|
|
486
|
+
type BaseNavigationInfo = {
|
|
481
487
|
context: BrowsingContext.BrowsingContext;
|
|
482
488
|
navigation: BrowsingContext.Navigation | null;
|
|
483
489
|
timestamp: JsUint;
|
|
484
490
|
url: string;
|
|
485
491
|
};
|
|
486
492
|
}
|
|
493
|
+
export declare namespace BrowsingContext {
|
|
494
|
+
type NavigationInfo = BrowsingContext.BaseNavigationInfo;
|
|
495
|
+
}
|
|
487
496
|
export declare namespace BrowsingContext {
|
|
488
497
|
const enum ReadinessState {
|
|
489
498
|
None = 'none',
|
|
@@ -841,6 +850,7 @@ export declare namespace BrowsingContext {
|
|
|
841
850
|
export declare namespace BrowsingContext {
|
|
842
851
|
type HistoryUpdatedParameters = {
|
|
843
852
|
context: BrowsingContext.BrowsingContext;
|
|
853
|
+
timestamp: JsUint;
|
|
844
854
|
url: string;
|
|
845
855
|
};
|
|
846
856
|
}
|
|
@@ -859,9 +869,36 @@ export declare namespace BrowsingContext {
|
|
|
859
869
|
export declare namespace BrowsingContext {
|
|
860
870
|
type DownloadWillBegin = {
|
|
861
871
|
method: 'browsingContext.downloadWillBegin';
|
|
862
|
-
params: BrowsingContext.
|
|
872
|
+
params: BrowsingContext.DownloadWillBeginParams;
|
|
873
|
+
};
|
|
874
|
+
}
|
|
875
|
+
export declare namespace BrowsingContext {
|
|
876
|
+
type DownloadWillBeginParams = {
|
|
877
|
+
suggestedFilename: string;
|
|
878
|
+
} & BrowsingContext.BaseNavigationInfo;
|
|
879
|
+
}
|
|
880
|
+
export declare namespace BrowsingContext {
|
|
881
|
+
type DownloadEnd = {
|
|
882
|
+
method: 'browsingContext.downloadEnd';
|
|
883
|
+
params: BrowsingContext.DownloadEndParams;
|
|
863
884
|
};
|
|
864
885
|
}
|
|
886
|
+
export declare namespace BrowsingContext {
|
|
887
|
+
type DownloadEndParams =
|
|
888
|
+
| BrowsingContext.DownloadCanceledParams
|
|
889
|
+
| BrowsingContext.DownloadCompleteParams;
|
|
890
|
+
}
|
|
891
|
+
export declare namespace BrowsingContext {
|
|
892
|
+
type DownloadCanceledParams = {
|
|
893
|
+
status: 'canceled';
|
|
894
|
+
} & BrowsingContext.BaseNavigationInfo;
|
|
895
|
+
}
|
|
896
|
+
export declare namespace BrowsingContext {
|
|
897
|
+
type DownloadCompleteParams = {
|
|
898
|
+
status: 'complete';
|
|
899
|
+
filepath: string | null;
|
|
900
|
+
} & BrowsingContext.BaseNavigationInfo;
|
|
901
|
+
}
|
|
865
902
|
export declare namespace BrowsingContext {
|
|
866
903
|
type NavigationAborted = {
|
|
867
904
|
method: 'browsingContext.navigationAborted';
|
|
@@ -909,6 +946,74 @@ export declare namespace BrowsingContext {
|
|
|
909
946
|
defaultValue?: string;
|
|
910
947
|
};
|
|
911
948
|
}
|
|
949
|
+
export type EmulationCommand = Emulation.SetGeolocationOverride;
|
|
950
|
+
export declare namespace Emulation {
|
|
951
|
+
type SetGeolocationOverride = {
|
|
952
|
+
method: 'emulation.setGeolocationOverride';
|
|
953
|
+
params: Emulation.SetGeolocationOverrideParameters;
|
|
954
|
+
};
|
|
955
|
+
}
|
|
956
|
+
export declare namespace Emulation {
|
|
957
|
+
type SetGeolocationOverrideParameters = (
|
|
958
|
+
| {
|
|
959
|
+
coordinates: Emulation.GeolocationCoordinates | null;
|
|
960
|
+
}
|
|
961
|
+
| {
|
|
962
|
+
error: Emulation.GeolocationPositionError;
|
|
963
|
+
}
|
|
964
|
+
) & {
|
|
965
|
+
contexts?: [
|
|
966
|
+
BrowsingContext.BrowsingContext,
|
|
967
|
+
...BrowsingContext.BrowsingContext[],
|
|
968
|
+
];
|
|
969
|
+
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
|
|
970
|
+
};
|
|
971
|
+
}
|
|
972
|
+
export declare namespace Emulation {
|
|
973
|
+
type GeolocationCoordinates = {
|
|
974
|
+
/**
|
|
975
|
+
* Must be between `-90` and `90`, inclusive.
|
|
976
|
+
*/
|
|
977
|
+
latitude: number;
|
|
978
|
+
/**
|
|
979
|
+
* Must be between `-180` and `180`, inclusive.
|
|
980
|
+
*/
|
|
981
|
+
longitude: number;
|
|
982
|
+
/**
|
|
983
|
+
* Must be greater than or equal to `0`.
|
|
984
|
+
*
|
|
985
|
+
* @defaultValue `1`
|
|
986
|
+
*/
|
|
987
|
+
accuracy?: number;
|
|
988
|
+
/**
|
|
989
|
+
* @defaultValue `null`
|
|
990
|
+
*/
|
|
991
|
+
altitude?: number | null;
|
|
992
|
+
/**
|
|
993
|
+
* Must be greater than or equal to `0`.
|
|
994
|
+
*
|
|
995
|
+
* @defaultValue `null`
|
|
996
|
+
*/
|
|
997
|
+
altitudeAccuracy?: number | null;
|
|
998
|
+
/**
|
|
999
|
+
* Must be between `0` and `360`.
|
|
1000
|
+
*
|
|
1001
|
+
* @defaultValue `null`
|
|
1002
|
+
*/
|
|
1003
|
+
heading?: number | null;
|
|
1004
|
+
/**
|
|
1005
|
+
* Must be greater than or equal to `0`.
|
|
1006
|
+
*
|
|
1007
|
+
* @defaultValue `null`
|
|
1008
|
+
*/
|
|
1009
|
+
speed?: number | null;
|
|
1010
|
+
};
|
|
1011
|
+
}
|
|
1012
|
+
export declare namespace Emulation {
|
|
1013
|
+
type GeolocationPositionError = {
|
|
1014
|
+
type: 'positionUnavailable';
|
|
1015
|
+
};
|
|
1016
|
+
}
|
|
912
1017
|
export type NetworkCommand =
|
|
913
1018
|
| Network.AddIntercept
|
|
914
1019
|
| Network.ContinueRequest
|
|
@@ -1616,16 +1721,16 @@ export declare namespace Script {
|
|
|
1616
1721
|
};
|
|
1617
1722
|
}
|
|
1618
1723
|
export declare namespace Script {
|
|
1619
|
-
type RegExpRemoteValue = {
|
|
1724
|
+
type RegExpRemoteValue = Script.RegExpLocalValue & {
|
|
1620
1725
|
handle?: Script.Handle;
|
|
1621
1726
|
internalId?: Script.InternalId;
|
|
1622
|
-
}
|
|
1727
|
+
};
|
|
1623
1728
|
}
|
|
1624
1729
|
export declare namespace Script {
|
|
1625
|
-
type DateRemoteValue = {
|
|
1730
|
+
type DateRemoteValue = Script.DateLocalValue & {
|
|
1626
1731
|
handle?: Script.Handle;
|
|
1627
1732
|
internalId?: Script.InternalId;
|
|
1628
|
-
}
|
|
1733
|
+
};
|
|
1629
1734
|
}
|
|
1630
1735
|
export declare namespace Script {
|
|
1631
1736
|
type MapRemoteValue = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare namespace Bluetooth {
|
|
2
|
-
type
|
|
2
|
+
type BluetoothUuid = string;
|
|
3
3
|
}
|
|
4
4
|
export declare namespace Bluetooth {
|
|
5
5
|
type BluetoothManufacturerData = {
|
|
@@ -7,6 +7,18 @@ export declare namespace Bluetooth {
|
|
|
7
7
|
data: string;
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
+
export declare namespace Bluetooth {
|
|
11
|
+
type CharacteristicProperties = {
|
|
12
|
+
broadcast?: boolean;
|
|
13
|
+
read?: boolean;
|
|
14
|
+
writeWithoutResponse?: boolean;
|
|
15
|
+
write?: boolean;
|
|
16
|
+
notify?: boolean;
|
|
17
|
+
indicate?: boolean;
|
|
18
|
+
authenticatedSignedWrites?: boolean;
|
|
19
|
+
extendedProperties?: boolean;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
10
22
|
export declare namespace Bluetooth {
|
|
11
23
|
type RequestDevice = string;
|
|
12
24
|
}
|
|
@@ -22,11 +34,25 @@ export declare namespace Bluetooth {
|
|
|
22
34
|
export declare namespace Bluetooth {
|
|
23
35
|
type ScanRecord = {
|
|
24
36
|
name?: string;
|
|
25
|
-
uuids?: [...Bluetooth.
|
|
37
|
+
uuids?: [...Bluetooth.BluetoothUuid[]];
|
|
26
38
|
appearance?: number;
|
|
27
39
|
manufacturerData?: [...Bluetooth.BluetoothManufacturerData[]];
|
|
28
40
|
};
|
|
29
41
|
}
|
|
42
|
+
export type BluetoothCommand =
|
|
43
|
+
| Bluetooth.HandleRequestDevicePrompt
|
|
44
|
+
| Bluetooth.SimulateAdapter
|
|
45
|
+
| Bluetooth.DisableSimulation
|
|
46
|
+
| Bluetooth.SimulatePreconnectedPeripheral
|
|
47
|
+
| Bluetooth.SimulateAdvertisement
|
|
48
|
+
| Bluetooth.SimulateGattConnectionResponse
|
|
49
|
+
| Bluetooth.SimulateGattDisconnection
|
|
50
|
+
| Bluetooth.SimulateService
|
|
51
|
+
| Bluetooth.SimulateCharacteristic
|
|
52
|
+
| Bluetooth.SimulateCharacteristicResponse
|
|
53
|
+
| Bluetooth.SimulateDescriptor
|
|
54
|
+
| Bluetooth.SimulateDescriptorResponse
|
|
55
|
+
| Record<string, never>;
|
|
30
56
|
export declare namespace Bluetooth {
|
|
31
57
|
type HandleRequestDevicePrompt = {
|
|
32
58
|
method: 'bluetooth.handleRequestDevicePrompt';
|
|
@@ -62,9 +88,19 @@ export declare namespace Bluetooth {
|
|
|
62
88
|
export declare namespace Bluetooth {
|
|
63
89
|
type SimulateAdapterParameters = {
|
|
64
90
|
context: string;
|
|
65
|
-
type: 'create' | 'update' | 'remove';
|
|
66
91
|
leSupported?: boolean;
|
|
67
|
-
state
|
|
92
|
+
state: 'absent' | 'powered-off' | 'powered-on';
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
export declare namespace Bluetooth {
|
|
96
|
+
type DisableSimulation = {
|
|
97
|
+
method: 'bluetooth.disableSimulation';
|
|
98
|
+
params: Bluetooth.DisableSimulationParameters;
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
export declare namespace Bluetooth {
|
|
102
|
+
type DisableSimulationParameters = {
|
|
103
|
+
context: string;
|
|
68
104
|
};
|
|
69
105
|
}
|
|
70
106
|
export declare namespace Bluetooth {
|
|
@@ -79,7 +115,7 @@ export declare namespace Bluetooth {
|
|
|
79
115
|
address: string;
|
|
80
116
|
name: string;
|
|
81
117
|
manufacturerData: [...Bluetooth.BluetoothManufacturerData[]];
|
|
82
|
-
knownServiceUuids: [...Bluetooth.
|
|
118
|
+
knownServiceUuids: [...Bluetooth.BluetoothUuid[]];
|
|
83
119
|
};
|
|
84
120
|
}
|
|
85
121
|
export declare namespace Bluetooth {
|
|
@@ -101,6 +137,119 @@ export declare namespace Bluetooth {
|
|
|
101
137
|
scanRecord: Bluetooth.ScanRecord;
|
|
102
138
|
};
|
|
103
139
|
}
|
|
140
|
+
export declare namespace Bluetooth {
|
|
141
|
+
type SimulateGattConnectionResponse = {
|
|
142
|
+
method: 'bluetooth.simulateGattConnectionResponse';
|
|
143
|
+
params: Bluetooth.SimulateGattConnectionResponseParameters;
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
export declare namespace Bluetooth {
|
|
147
|
+
type SimulateGattConnectionResponseParameters = {
|
|
148
|
+
context: string;
|
|
149
|
+
address: string;
|
|
150
|
+
code: number;
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
export declare namespace Bluetooth {
|
|
154
|
+
type SimulateGattDisconnection = {
|
|
155
|
+
method: 'bluetooth.simulateGattDisconnection';
|
|
156
|
+
params: Bluetooth.SimulateGattDisconnectionParameters;
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
export declare namespace Bluetooth {
|
|
160
|
+
type SimulateGattDisconnectionParameters = {
|
|
161
|
+
context: string;
|
|
162
|
+
address: string;
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
export declare namespace Bluetooth {
|
|
166
|
+
type SimulateService = {
|
|
167
|
+
method: 'bluetooth.simulateService';
|
|
168
|
+
params: Bluetooth.SimulateServiceParameters;
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
export declare namespace Bluetooth {
|
|
172
|
+
type SimulateServiceParameters = {
|
|
173
|
+
context: string;
|
|
174
|
+
address: string;
|
|
175
|
+
uuid: Bluetooth.BluetoothUuid;
|
|
176
|
+
type: 'add' | 'remove';
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
export declare namespace Bluetooth {
|
|
180
|
+
type SimulateCharacteristic = {
|
|
181
|
+
method: 'bluetooth.simulateCharacteristic';
|
|
182
|
+
params: Bluetooth.SimulateCharacteristicParameters;
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
export declare namespace Bluetooth {
|
|
186
|
+
type SimulateCharacteristicParameters = {
|
|
187
|
+
context: string;
|
|
188
|
+
address: string;
|
|
189
|
+
serviceUuid: Bluetooth.BluetoothUuid;
|
|
190
|
+
characteristicUuid: Bluetooth.BluetoothUuid;
|
|
191
|
+
characteristicProperties?: Bluetooth.CharacteristicProperties;
|
|
192
|
+
type: 'add' | 'remove';
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
export declare namespace Bluetooth {
|
|
196
|
+
type SimulateCharacteristicResponse = {
|
|
197
|
+
method: 'bluetooth.simulateCharacteristicResponse';
|
|
198
|
+
params: Bluetooth.SimulateCharacteristicResponseParameters;
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
export declare namespace Bluetooth {
|
|
202
|
+
type SimulateCharacteristicResponseParameters = {
|
|
203
|
+
context: string;
|
|
204
|
+
address: string;
|
|
205
|
+
serviceUuid: Bluetooth.BluetoothUuid;
|
|
206
|
+
characteristicUuid: Bluetooth.BluetoothUuid;
|
|
207
|
+
type:
|
|
208
|
+
| 'read'
|
|
209
|
+
| 'write'
|
|
210
|
+
| 'subscribe-to-notifications'
|
|
211
|
+
| 'unsubscribe-from-notifications';
|
|
212
|
+
code: number;
|
|
213
|
+
data?: [...number[]];
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
export declare namespace Bluetooth {
|
|
217
|
+
type SimulateDescriptor = {
|
|
218
|
+
method: 'bluetooth.simulateDescriptor';
|
|
219
|
+
params: Bluetooth.SimulateDescriptorParameters;
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
export declare namespace Bluetooth {
|
|
223
|
+
type SimulateDescriptorParameters = {
|
|
224
|
+
context: string;
|
|
225
|
+
address: string;
|
|
226
|
+
serviceUuid: Bluetooth.BluetoothUuid;
|
|
227
|
+
characteristicUuid: Bluetooth.BluetoothUuid;
|
|
228
|
+
descriptorUuid: Bluetooth.BluetoothUuid;
|
|
229
|
+
type: 'add' | 'remove';
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
export declare namespace Bluetooth {
|
|
233
|
+
type SimulateDescriptorResponse = {
|
|
234
|
+
method: 'bluetooth.simulateDescriptorResponse';
|
|
235
|
+
params: Bluetooth.SimulateDescriptorResponseParameters;
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
export declare namespace Bluetooth {
|
|
239
|
+
type SimulateDescriptorResponseParameters = {
|
|
240
|
+
context: string;
|
|
241
|
+
address: string;
|
|
242
|
+
serviceUuid: Bluetooth.BluetoothUuid;
|
|
243
|
+
characteristicUuid: Bluetooth.BluetoothUuid;
|
|
244
|
+
descriptorUuid: Bluetooth.BluetoothUuid;
|
|
245
|
+
type: 'read' | 'write';
|
|
246
|
+
code: number;
|
|
247
|
+
data?: [...number[]];
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
export type BluetoothEvent =
|
|
251
|
+
| Bluetooth.RequestDevicePromptUpdated
|
|
252
|
+
| Bluetooth.GattConnectionAttempted;
|
|
104
253
|
export declare namespace Bluetooth {
|
|
105
254
|
type RequestDevicePromptUpdated = {
|
|
106
255
|
method: 'bluetooth.requestDevicePromptUpdated';
|
|
@@ -114,3 +263,53 @@ export declare namespace Bluetooth {
|
|
|
114
263
|
devices: [...Bluetooth.RequestDeviceInfo[]];
|
|
115
264
|
};
|
|
116
265
|
}
|
|
266
|
+
export declare namespace Bluetooth {
|
|
267
|
+
type GattConnectionAttempted = {
|
|
268
|
+
method: 'bluetooth.gattConnectionAttempted';
|
|
269
|
+
params: Bluetooth.GattConnectionAttemptedParameters;
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
export declare namespace Bluetooth {
|
|
273
|
+
type GattConnectionAttemptedParameters = {
|
|
274
|
+
context: string;
|
|
275
|
+
address: string;
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
export declare namespace Bluetooth {
|
|
279
|
+
type CharacteristicEventGenerated = {
|
|
280
|
+
method: 'bluetooth.characteristicEventGenerated';
|
|
281
|
+
params: Bluetooth.CharacteristicEventGeneratedParameters;
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
export declare namespace Bluetooth {
|
|
285
|
+
type CharacteristicEventGeneratedParameters = {
|
|
286
|
+
context: string;
|
|
287
|
+
address: string;
|
|
288
|
+
serviceUuid: Bluetooth.BluetoothUuid;
|
|
289
|
+
characteristicUuid: Bluetooth.BluetoothUuid;
|
|
290
|
+
type:
|
|
291
|
+
| 'read'
|
|
292
|
+
| 'write-with-response'
|
|
293
|
+
| 'write-without-response'
|
|
294
|
+
| 'subscribe-to-notifications'
|
|
295
|
+
| 'unsubscribe-from-notifications';
|
|
296
|
+
data?: [...number[]];
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
export declare namespace Bluetooth {
|
|
300
|
+
type DescriptorEventGenerated = {
|
|
301
|
+
method: 'bluetooth.descriptorEventGenerated';
|
|
302
|
+
params: Bluetooth.DescriptorEventGeneratedParameters;
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
export declare namespace Bluetooth {
|
|
306
|
+
type DescriptorEventGeneratedParameters = {
|
|
307
|
+
context: string;
|
|
308
|
+
address: string;
|
|
309
|
+
serviceUuid: Bluetooth.BluetoothUuid;
|
|
310
|
+
characteristicUuid: Bluetooth.BluetoothUuid;
|
|
311
|
+
descriptorUuid: Bluetooth.BluetoothUuid;
|
|
312
|
+
type: 'read' | 'write';
|
|
313
|
+
data?: [...number[]];
|
|
314
|
+
};
|
|
315
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webdriver-bidi-protocol",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"types": "out/index.d.ts",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"@types/node": "^22.5.2",
|
|
24
24
|
"gts": "^6.0.2",
|
|
25
25
|
"parse5": "^7.1.2",
|
|
26
|
-
"prettier": "3.
|
|
27
|
-
"tsd": "0.
|
|
28
|
-
"typescript": "5.
|
|
26
|
+
"prettier": "3.5.3",
|
|
27
|
+
"tsd": "0.32.0",
|
|
28
|
+
"typescript": "5.8.3"
|
|
29
29
|
}
|
|
30
30
|
}
|
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;
|
|
@@ -313,7 +312,13 @@ export namespace Browser {
|
|
|
313
312
|
export namespace Browser {
|
|
314
313
|
export type CreateUserContext = {
|
|
315
314
|
method: 'browser.createUserContext';
|
|
316
|
-
params:
|
|
315
|
+
params: Browser.CreateUserContextParameters;
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
export namespace Browser {
|
|
319
|
+
export type CreateUserContextParameters = {
|
|
320
|
+
acceptInsecureCerts?: boolean;
|
|
321
|
+
proxy?: Session.ProxyConfiguration;
|
|
317
322
|
};
|
|
318
323
|
}
|
|
319
324
|
export namespace Browser {
|
|
@@ -394,6 +399,7 @@ export type BrowsingContextEvent =
|
|
|
394
399
|
| BrowsingContext.ContextCreated
|
|
395
400
|
| BrowsingContext.ContextDestroyed
|
|
396
401
|
| BrowsingContext.DomContentLoaded
|
|
402
|
+
| BrowsingContext.DownloadEnd
|
|
397
403
|
| BrowsingContext.DownloadWillBegin
|
|
398
404
|
| BrowsingContext.FragmentNavigated
|
|
399
405
|
| BrowsingContext.HistoryUpdated
|
|
@@ -479,13 +485,16 @@ export namespace BrowsingContext {
|
|
|
479
485
|
export type Navigation = string;
|
|
480
486
|
}
|
|
481
487
|
export namespace BrowsingContext {
|
|
482
|
-
export type
|
|
488
|
+
export type BaseNavigationInfo = {
|
|
483
489
|
context: BrowsingContext.BrowsingContext;
|
|
484
490
|
navigation: BrowsingContext.Navigation | null;
|
|
485
491
|
timestamp: JsUint;
|
|
486
492
|
url: string;
|
|
487
493
|
};
|
|
488
494
|
}
|
|
495
|
+
export namespace BrowsingContext {
|
|
496
|
+
export type NavigationInfo = BrowsingContext.BaseNavigationInfo;
|
|
497
|
+
}
|
|
489
498
|
export namespace BrowsingContext {
|
|
490
499
|
export const enum ReadinessState {
|
|
491
500
|
None = 'none',
|
|
@@ -843,6 +852,7 @@ export namespace BrowsingContext {
|
|
|
843
852
|
export namespace BrowsingContext {
|
|
844
853
|
export type HistoryUpdatedParameters = {
|
|
845
854
|
context: BrowsingContext.BrowsingContext;
|
|
855
|
+
timestamp: JsUint;
|
|
846
856
|
url: string;
|
|
847
857
|
};
|
|
848
858
|
}
|
|
@@ -861,9 +871,36 @@ export namespace BrowsingContext {
|
|
|
861
871
|
export namespace BrowsingContext {
|
|
862
872
|
export type DownloadWillBegin = {
|
|
863
873
|
method: 'browsingContext.downloadWillBegin';
|
|
864
|
-
params: BrowsingContext.
|
|
874
|
+
params: BrowsingContext.DownloadWillBeginParams;
|
|
875
|
+
};
|
|
876
|
+
}
|
|
877
|
+
export namespace BrowsingContext {
|
|
878
|
+
export type DownloadWillBeginParams = {
|
|
879
|
+
suggestedFilename: string;
|
|
880
|
+
} & BrowsingContext.BaseNavigationInfo;
|
|
881
|
+
}
|
|
882
|
+
export namespace BrowsingContext {
|
|
883
|
+
export type DownloadEnd = {
|
|
884
|
+
method: 'browsingContext.downloadEnd';
|
|
885
|
+
params: BrowsingContext.DownloadEndParams;
|
|
865
886
|
};
|
|
866
887
|
}
|
|
888
|
+
export namespace BrowsingContext {
|
|
889
|
+
export type DownloadEndParams =
|
|
890
|
+
| BrowsingContext.DownloadCanceledParams
|
|
891
|
+
| BrowsingContext.DownloadCompleteParams;
|
|
892
|
+
}
|
|
893
|
+
export namespace BrowsingContext {
|
|
894
|
+
export type DownloadCanceledParams = {
|
|
895
|
+
status: 'canceled';
|
|
896
|
+
} & BrowsingContext.BaseNavigationInfo;
|
|
897
|
+
}
|
|
898
|
+
export namespace BrowsingContext {
|
|
899
|
+
export type DownloadCompleteParams = {
|
|
900
|
+
status: 'complete';
|
|
901
|
+
filepath: string | null;
|
|
902
|
+
} & BrowsingContext.BaseNavigationInfo;
|
|
903
|
+
}
|
|
867
904
|
export namespace BrowsingContext {
|
|
868
905
|
export type NavigationAborted = {
|
|
869
906
|
method: 'browsingContext.navigationAborted';
|
|
@@ -911,6 +948,74 @@ export namespace BrowsingContext {
|
|
|
911
948
|
defaultValue?: string;
|
|
912
949
|
};
|
|
913
950
|
}
|
|
951
|
+
export type EmulationCommand = Emulation.SetGeolocationOverride;
|
|
952
|
+
export namespace Emulation {
|
|
953
|
+
export type SetGeolocationOverride = {
|
|
954
|
+
method: 'emulation.setGeolocationOverride';
|
|
955
|
+
params: Emulation.SetGeolocationOverrideParameters;
|
|
956
|
+
};
|
|
957
|
+
}
|
|
958
|
+
export namespace Emulation {
|
|
959
|
+
export type SetGeolocationOverrideParameters = (
|
|
960
|
+
| {
|
|
961
|
+
coordinates: Emulation.GeolocationCoordinates | null;
|
|
962
|
+
}
|
|
963
|
+
| {
|
|
964
|
+
error: Emulation.GeolocationPositionError;
|
|
965
|
+
}
|
|
966
|
+
) & {
|
|
967
|
+
contexts?: [
|
|
968
|
+
BrowsingContext.BrowsingContext,
|
|
969
|
+
...BrowsingContext.BrowsingContext[],
|
|
970
|
+
];
|
|
971
|
+
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
|
|
972
|
+
};
|
|
973
|
+
}
|
|
974
|
+
export namespace Emulation {
|
|
975
|
+
export type GeolocationCoordinates = {
|
|
976
|
+
/**
|
|
977
|
+
* Must be between `-90` and `90`, inclusive.
|
|
978
|
+
*/
|
|
979
|
+
latitude: number;
|
|
980
|
+
/**
|
|
981
|
+
* Must be between `-180` and `180`, inclusive.
|
|
982
|
+
*/
|
|
983
|
+
longitude: number;
|
|
984
|
+
/**
|
|
985
|
+
* Must be greater than or equal to `0`.
|
|
986
|
+
*
|
|
987
|
+
* @defaultValue `1`
|
|
988
|
+
*/
|
|
989
|
+
accuracy?: number;
|
|
990
|
+
/**
|
|
991
|
+
* @defaultValue `null`
|
|
992
|
+
*/
|
|
993
|
+
altitude?: number | null;
|
|
994
|
+
/**
|
|
995
|
+
* Must be greater than or equal to `0`.
|
|
996
|
+
*
|
|
997
|
+
* @defaultValue `null`
|
|
998
|
+
*/
|
|
999
|
+
altitudeAccuracy?: number | null;
|
|
1000
|
+
/**
|
|
1001
|
+
* Must be between `0` and `360`.
|
|
1002
|
+
*
|
|
1003
|
+
* @defaultValue `null`
|
|
1004
|
+
*/
|
|
1005
|
+
heading?: number | null;
|
|
1006
|
+
/**
|
|
1007
|
+
* Must be greater than or equal to `0`.
|
|
1008
|
+
*
|
|
1009
|
+
* @defaultValue `null`
|
|
1010
|
+
*/
|
|
1011
|
+
speed?: number | null;
|
|
1012
|
+
};
|
|
1013
|
+
}
|
|
1014
|
+
export namespace Emulation {
|
|
1015
|
+
export type GeolocationPositionError = {
|
|
1016
|
+
type: 'positionUnavailable';
|
|
1017
|
+
};
|
|
1018
|
+
}
|
|
914
1019
|
export type NetworkCommand =
|
|
915
1020
|
| Network.AddIntercept
|
|
916
1021
|
| Network.ContinueRequest
|
|
@@ -1620,16 +1725,16 @@ export namespace Script {
|
|
|
1620
1725
|
};
|
|
1621
1726
|
}
|
|
1622
1727
|
export namespace Script {
|
|
1623
|
-
export type RegExpRemoteValue = {
|
|
1728
|
+
export type RegExpRemoteValue = Script.RegExpLocalValue & {
|
|
1624
1729
|
handle?: Script.Handle;
|
|
1625
1730
|
internalId?: Script.InternalId;
|
|
1626
|
-
}
|
|
1731
|
+
};
|
|
1627
1732
|
}
|
|
1628
1733
|
export namespace Script {
|
|
1629
|
-
export type DateRemoteValue = {
|
|
1734
|
+
export type DateRemoteValue = Script.DateLocalValue & {
|
|
1630
1735
|
handle?: Script.Handle;
|
|
1631
1736
|
internalId?: Script.InternalId;
|
|
1632
|
-
}
|
|
1737
|
+
};
|
|
1633
1738
|
}
|
|
1634
1739
|
export namespace Script {
|
|
1635
1740
|
export type MapRemoteValue = {
|
package/src/gen/web-bluetooth.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export namespace Bluetooth {
|
|
2
|
-
export type
|
|
2
|
+
export type BluetoothUuid = string;
|
|
3
3
|
}
|
|
4
4
|
export namespace Bluetooth {
|
|
5
5
|
export type BluetoothManufacturerData = {
|
|
@@ -7,6 +7,18 @@ export namespace Bluetooth {
|
|
|
7
7
|
data: string;
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
+
export namespace Bluetooth {
|
|
11
|
+
export type CharacteristicProperties = {
|
|
12
|
+
broadcast?: boolean;
|
|
13
|
+
read?: boolean;
|
|
14
|
+
writeWithoutResponse?: boolean;
|
|
15
|
+
write?: boolean;
|
|
16
|
+
notify?: boolean;
|
|
17
|
+
indicate?: boolean;
|
|
18
|
+
authenticatedSignedWrites?: boolean;
|
|
19
|
+
extendedProperties?: boolean;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
10
22
|
export namespace Bluetooth {
|
|
11
23
|
export type RequestDevice = string;
|
|
12
24
|
}
|
|
@@ -22,11 +34,25 @@ export namespace Bluetooth {
|
|
|
22
34
|
export namespace Bluetooth {
|
|
23
35
|
export type ScanRecord = {
|
|
24
36
|
name?: string;
|
|
25
|
-
uuids?: [...Bluetooth.
|
|
37
|
+
uuids?: [...Bluetooth.BluetoothUuid[]];
|
|
26
38
|
appearance?: number;
|
|
27
39
|
manufacturerData?: [...Bluetooth.BluetoothManufacturerData[]];
|
|
28
40
|
};
|
|
29
41
|
}
|
|
42
|
+
export type BluetoothCommand =
|
|
43
|
+
| Bluetooth.HandleRequestDevicePrompt
|
|
44
|
+
| Bluetooth.SimulateAdapter
|
|
45
|
+
| Bluetooth.DisableSimulation
|
|
46
|
+
| Bluetooth.SimulatePreconnectedPeripheral
|
|
47
|
+
| Bluetooth.SimulateAdvertisement
|
|
48
|
+
| Bluetooth.SimulateGattConnectionResponse
|
|
49
|
+
| Bluetooth.SimulateGattDisconnection
|
|
50
|
+
| Bluetooth.SimulateService
|
|
51
|
+
| Bluetooth.SimulateCharacteristic
|
|
52
|
+
| Bluetooth.SimulateCharacteristicResponse
|
|
53
|
+
| Bluetooth.SimulateDescriptor
|
|
54
|
+
| Bluetooth.SimulateDescriptorResponse
|
|
55
|
+
| Record<string, never>;
|
|
30
56
|
export namespace Bluetooth {
|
|
31
57
|
export type HandleRequestDevicePrompt = {
|
|
32
58
|
method: 'bluetooth.handleRequestDevicePrompt';
|
|
@@ -62,9 +88,19 @@ export namespace Bluetooth {
|
|
|
62
88
|
export namespace Bluetooth {
|
|
63
89
|
export type SimulateAdapterParameters = {
|
|
64
90
|
context: string;
|
|
65
|
-
type: 'create' | 'update' | 'remove';
|
|
66
91
|
leSupported?: boolean;
|
|
67
|
-
state
|
|
92
|
+
state: 'absent' | 'powered-off' | 'powered-on';
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
export namespace Bluetooth {
|
|
96
|
+
export type DisableSimulation = {
|
|
97
|
+
method: 'bluetooth.disableSimulation';
|
|
98
|
+
params: Bluetooth.DisableSimulationParameters;
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
export namespace Bluetooth {
|
|
102
|
+
export type DisableSimulationParameters = {
|
|
103
|
+
context: string;
|
|
68
104
|
};
|
|
69
105
|
}
|
|
70
106
|
export namespace Bluetooth {
|
|
@@ -79,7 +115,7 @@ export namespace Bluetooth {
|
|
|
79
115
|
address: string;
|
|
80
116
|
name: string;
|
|
81
117
|
manufacturerData: [...Bluetooth.BluetoothManufacturerData[]];
|
|
82
|
-
knownServiceUuids: [...Bluetooth.
|
|
118
|
+
knownServiceUuids: [...Bluetooth.BluetoothUuid[]];
|
|
83
119
|
};
|
|
84
120
|
}
|
|
85
121
|
export namespace Bluetooth {
|
|
@@ -101,6 +137,119 @@ export namespace Bluetooth {
|
|
|
101
137
|
scanRecord: Bluetooth.ScanRecord;
|
|
102
138
|
};
|
|
103
139
|
}
|
|
140
|
+
export namespace Bluetooth {
|
|
141
|
+
export type SimulateGattConnectionResponse = {
|
|
142
|
+
method: 'bluetooth.simulateGattConnectionResponse';
|
|
143
|
+
params: Bluetooth.SimulateGattConnectionResponseParameters;
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
export namespace Bluetooth {
|
|
147
|
+
export type SimulateGattConnectionResponseParameters = {
|
|
148
|
+
context: string;
|
|
149
|
+
address: string;
|
|
150
|
+
code: number;
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
export namespace Bluetooth {
|
|
154
|
+
export type SimulateGattDisconnection = {
|
|
155
|
+
method: 'bluetooth.simulateGattDisconnection';
|
|
156
|
+
params: Bluetooth.SimulateGattDisconnectionParameters;
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
export namespace Bluetooth {
|
|
160
|
+
export type SimulateGattDisconnectionParameters = {
|
|
161
|
+
context: string;
|
|
162
|
+
address: string;
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
export namespace Bluetooth {
|
|
166
|
+
export type SimulateService = {
|
|
167
|
+
method: 'bluetooth.simulateService';
|
|
168
|
+
params: Bluetooth.SimulateServiceParameters;
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
export namespace Bluetooth {
|
|
172
|
+
export type SimulateServiceParameters = {
|
|
173
|
+
context: string;
|
|
174
|
+
address: string;
|
|
175
|
+
uuid: Bluetooth.BluetoothUuid;
|
|
176
|
+
type: 'add' | 'remove';
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
export namespace Bluetooth {
|
|
180
|
+
export type SimulateCharacteristic = {
|
|
181
|
+
method: 'bluetooth.simulateCharacteristic';
|
|
182
|
+
params: Bluetooth.SimulateCharacteristicParameters;
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
export namespace Bluetooth {
|
|
186
|
+
export type SimulateCharacteristicParameters = {
|
|
187
|
+
context: string;
|
|
188
|
+
address: string;
|
|
189
|
+
serviceUuid: Bluetooth.BluetoothUuid;
|
|
190
|
+
characteristicUuid: Bluetooth.BluetoothUuid;
|
|
191
|
+
characteristicProperties?: Bluetooth.CharacteristicProperties;
|
|
192
|
+
type: 'add' | 'remove';
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
export namespace Bluetooth {
|
|
196
|
+
export type SimulateCharacteristicResponse = {
|
|
197
|
+
method: 'bluetooth.simulateCharacteristicResponse';
|
|
198
|
+
params: Bluetooth.SimulateCharacteristicResponseParameters;
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
export namespace Bluetooth {
|
|
202
|
+
export type SimulateCharacteristicResponseParameters = {
|
|
203
|
+
context: string;
|
|
204
|
+
address: string;
|
|
205
|
+
serviceUuid: Bluetooth.BluetoothUuid;
|
|
206
|
+
characteristicUuid: Bluetooth.BluetoothUuid;
|
|
207
|
+
type:
|
|
208
|
+
| 'read'
|
|
209
|
+
| 'write'
|
|
210
|
+
| 'subscribe-to-notifications'
|
|
211
|
+
| 'unsubscribe-from-notifications';
|
|
212
|
+
code: number;
|
|
213
|
+
data?: [...number[]];
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
export namespace Bluetooth {
|
|
217
|
+
export type SimulateDescriptor = {
|
|
218
|
+
method: 'bluetooth.simulateDescriptor';
|
|
219
|
+
params: Bluetooth.SimulateDescriptorParameters;
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
export namespace Bluetooth {
|
|
223
|
+
export type SimulateDescriptorParameters = {
|
|
224
|
+
context: string;
|
|
225
|
+
address: string;
|
|
226
|
+
serviceUuid: Bluetooth.BluetoothUuid;
|
|
227
|
+
characteristicUuid: Bluetooth.BluetoothUuid;
|
|
228
|
+
descriptorUuid: Bluetooth.BluetoothUuid;
|
|
229
|
+
type: 'add' | 'remove';
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
export namespace Bluetooth {
|
|
233
|
+
export type SimulateDescriptorResponse = {
|
|
234
|
+
method: 'bluetooth.simulateDescriptorResponse';
|
|
235
|
+
params: Bluetooth.SimulateDescriptorResponseParameters;
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
export namespace Bluetooth {
|
|
239
|
+
export type SimulateDescriptorResponseParameters = {
|
|
240
|
+
context: string;
|
|
241
|
+
address: string;
|
|
242
|
+
serviceUuid: Bluetooth.BluetoothUuid;
|
|
243
|
+
characteristicUuid: Bluetooth.BluetoothUuid;
|
|
244
|
+
descriptorUuid: Bluetooth.BluetoothUuid;
|
|
245
|
+
type: 'read' | 'write';
|
|
246
|
+
code: number;
|
|
247
|
+
data?: [...number[]];
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
export type BluetoothEvent =
|
|
251
|
+
| Bluetooth.RequestDevicePromptUpdated
|
|
252
|
+
| Bluetooth.GattConnectionAttempted;
|
|
104
253
|
export namespace Bluetooth {
|
|
105
254
|
export type RequestDevicePromptUpdated = {
|
|
106
255
|
method: 'bluetooth.requestDevicePromptUpdated';
|
|
@@ -114,3 +263,53 @@ export namespace Bluetooth {
|
|
|
114
263
|
devices: [...Bluetooth.RequestDeviceInfo[]];
|
|
115
264
|
};
|
|
116
265
|
}
|
|
266
|
+
export namespace Bluetooth {
|
|
267
|
+
export type GattConnectionAttempted = {
|
|
268
|
+
method: 'bluetooth.gattConnectionAttempted';
|
|
269
|
+
params: Bluetooth.GattConnectionAttemptedParameters;
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
export namespace Bluetooth {
|
|
273
|
+
export type GattConnectionAttemptedParameters = {
|
|
274
|
+
context: string;
|
|
275
|
+
address: string;
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
export namespace Bluetooth {
|
|
279
|
+
export type CharacteristicEventGenerated = {
|
|
280
|
+
method: 'bluetooth.characteristicEventGenerated';
|
|
281
|
+
params: Bluetooth.CharacteristicEventGeneratedParameters;
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
export namespace Bluetooth {
|
|
285
|
+
export type CharacteristicEventGeneratedParameters = {
|
|
286
|
+
context: string;
|
|
287
|
+
address: string;
|
|
288
|
+
serviceUuid: Bluetooth.BluetoothUuid;
|
|
289
|
+
characteristicUuid: Bluetooth.BluetoothUuid;
|
|
290
|
+
type:
|
|
291
|
+
| 'read'
|
|
292
|
+
| 'write-with-response'
|
|
293
|
+
| 'write-without-response'
|
|
294
|
+
| 'subscribe-to-notifications'
|
|
295
|
+
| 'unsubscribe-from-notifications';
|
|
296
|
+
data?: [...number[]];
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
export namespace Bluetooth {
|
|
300
|
+
export type DescriptorEventGenerated = {
|
|
301
|
+
method: 'bluetooth.descriptorEventGenerated';
|
|
302
|
+
params: Bluetooth.DescriptorEventGeneratedParameters;
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
export namespace Bluetooth {
|
|
306
|
+
export type DescriptorEventGeneratedParameters = {
|
|
307
|
+
context: string;
|
|
308
|
+
address: string;
|
|
309
|
+
serviceUuid: Bluetooth.BluetoothUuid;
|
|
310
|
+
characteristicUuid: Bluetooth.BluetoothUuid;
|
|
311
|
+
descriptorUuid: Bluetooth.BluetoothUuid;
|
|
312
|
+
type: 'read' | 'write';
|
|
313
|
+
data?: [...number[]];
|
|
314
|
+
};
|
|
315
|
+
}
|