appium-uiautomator2-driver 10.4.0 → 10.4.2
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/CHANGELOG.md +12 -0
- package/build/lib/driver.d.ts +32 -35
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/execute-method-map.d.ts +4 -0
- package/build/lib/execute-method-map.d.ts.map +1 -1
- package/build/lib/method-map.d.ts +28 -35
- package/build/lib/method-map.d.ts.map +1 -1
- package/node_modules/@appium/base-driver/package.json +4 -4
- package/node_modules/@appium/support/package.json +3 -3
- package/node_modules/@appium/types/build/lib/command-maps.d.ts +129 -101
- package/node_modules/@appium/types/build/lib/command-maps.d.ts.map +1 -1
- package/node_modules/@appium/types/build/lib/driver.d.ts +1 -0
- package/node_modules/@appium/types/build/lib/driver.d.ts.map +1 -1
- package/node_modules/@appium/types/build/lib/plugin.d.ts +1 -1
- package/node_modules/@appium/types/lib/command-maps.ts +316 -112
- package/node_modules/@appium/types/lib/driver.ts +1 -0
- package/node_modules/@appium/types/lib/plugin.ts +1 -1
- package/node_modules/@appium/types/package.json +5 -5
- package/node_modules/@types/body-parser/README.md +1 -1
- package/node_modules/@types/body-parser/index.d.ts +35 -3
- package/node_modules/@types/body-parser/package.json +3 -3
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/assert/strict.d.ts +1 -1
- package/node_modules/@types/node/assert.d.ts +13 -13
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/appium-adb/CHANGELOG.md +14 -0
- package/node_modules/appium-adb/build/lib/tools/keyboard-commands.d.ts.map +1 -1
- package/node_modules/appium-adb/build/lib/tools/keyboard-commands.js +20 -9
- package/node_modules/appium-adb/build/lib/tools/keyboard-commands.js.map +1 -1
- package/node_modules/appium-adb/lib/tools/keyboard-commands.ts +19 -9
- package/node_modules/appium-adb/package.json +3 -3
- package/node_modules/appium-android-driver/CHANGELOG.md +60 -0
- package/node_modules/appium-android-driver/build/lib/commands/context/exports.d.ts.map +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/context/exports.js +6 -12
- package/node_modules/appium-android-driver/build/lib/commands/context/exports.js.map +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/context/helpers.d.ts +11 -0
- package/node_modules/appium-android-driver/build/lib/commands/context/helpers.d.ts.map +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/context/helpers.js +193 -1
- package/node_modules/appium-android-driver/build/lib/commands/context/helpers.js.map +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/execute.d.ts.map +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/execute.js +2 -1
- package/node_modules/appium-android-driver/build/lib/commands/execute.js.map +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/streamscreen.d.ts +3 -0
- package/node_modules/appium-android-driver/build/lib/commands/streamscreen.d.ts.map +1 -1
- package/node_modules/appium-android-driver/build/lib/commands/streamscreen.js +3 -0
- package/node_modules/appium-android-driver/build/lib/commands/streamscreen.js.map +1 -1
- package/node_modules/appium-android-driver/build/lib/doctor/checks.d.ts.map +1 -1
- package/node_modules/appium-android-driver/build/lib/doctor/checks.js +3 -2
- package/node_modules/appium-android-driver/build/lib/doctor/checks.js.map +1 -1
- package/node_modules/appium-android-driver/build/lib/driver.d.ts +78 -81
- package/node_modules/appium-android-driver/build/lib/driver.d.ts.map +1 -1
- package/node_modules/appium-android-driver/build/lib/driver.js +3 -3
- package/node_modules/appium-android-driver/build/lib/driver.js.map +1 -1
- package/node_modules/appium-android-driver/build/lib/execute-method-map.d.ts +4 -0
- package/node_modules/appium-android-driver/build/lib/execute-method-map.d.ts.map +1 -1
- package/node_modules/appium-android-driver/build/lib/execute-method-map.js +5 -0
- package/node_modules/appium-android-driver/build/lib/execute-method-map.js.map +1 -1
- package/node_modules/appium-android-driver/build/lib/method-map.d.ts +74 -81
- package/node_modules/appium-android-driver/build/lib/method-map.d.ts.map +1 -1
- package/node_modules/appium-android-driver/build/lib/method-map.js +35 -30
- package/node_modules/appium-android-driver/build/lib/method-map.js.map +1 -1
- package/node_modules/appium-android-driver/lib/commands/context/exports.ts +7 -11
- package/node_modules/appium-android-driver/lib/commands/context/helpers.ts +222 -1
- package/node_modules/appium-android-driver/lib/commands/execute.ts +2 -2
- package/node_modules/appium-android-driver/lib/commands/streamscreen.ts +3 -0
- package/node_modules/appium-android-driver/lib/doctor/checks.ts +3 -2
- package/node_modules/appium-android-driver/lib/driver.ts +3 -3
- package/node_modules/appium-android-driver/lib/execute-method-map.ts +6 -0
- package/node_modules/appium-android-driver/lib/method-map.ts +37 -30
- package/node_modules/appium-android-driver/package.json +6 -6
- package/node_modules/appium-chromedriver/CHANGELOG.md +21 -0
- package/node_modules/appium-chromedriver/README.md +25 -0
- package/node_modules/appium-chromedriver/build/lib/archive-installer.d.ts +4 -0
- package/node_modules/appium-chromedriver/build/lib/archive-installer.d.ts.map +1 -1
- package/node_modules/appium-chromedriver/build/lib/archive-installer.js +11 -3
- package/node_modules/appium-chromedriver/build/lib/archive-installer.js.map +1 -1
- package/node_modules/appium-chromedriver/build/lib/driver-installer.d.ts +64 -0
- package/node_modules/appium-chromedriver/build/lib/driver-installer.d.ts.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/driver-installer.js +175 -0
- package/node_modules/appium-chromedriver/build/lib/driver-installer.js.map +1 -0
- package/node_modules/appium-chromedriver/build/lib/index.d.ts +2 -0
- package/node_modules/appium-chromedriver/build/lib/index.d.ts.map +1 -1
- package/node_modules/appium-chromedriver/build/lib/index.js +1 -0
- package/node_modules/appium-chromedriver/build/lib/index.js.map +1 -1
- package/node_modules/appium-chromedriver/config/checksums.json +8 -0
- package/node_modules/appium-chromedriver/config/edge-checksums.json +13 -0
- package/node_modules/appium-chromedriver/config/mapping.json +1 -0
- package/node_modules/appium-chromedriver/lib/archive-installer.ts +12 -3
- package/node_modules/appium-chromedriver/lib/driver-installer.ts +237 -0
- package/node_modules/appium-chromedriver/lib/index.ts +2 -0
- package/node_modules/appium-chromedriver/package.json +2 -2
- package/node_modules/appium-uiautomator2-server/CHANGELOG.md +16 -0
- package/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk +0 -0
- package/node_modules/appium-uiautomator2-server/apks/appium-uiautomator2-server-debug-androidTest.apk.idsig +0 -0
- package/node_modules/appium-uiautomator2-server/apks/{appium-uiautomator2-server-v11.6.1.apk → appium-uiautomator2-server-v11.6.3.apk} +0 -0
- package/node_modules/appium-uiautomator2-server/apks/{appium-uiautomator2-server-v11.6.1.apk.idsig → appium-uiautomator2-server-v11.6.3.apk.idsig} +0 -0
- package/node_modules/appium-uiautomator2-server/package.json +3 -3
- package/node_modules/bare-buffer/CMakeLists.txt +10 -20
- package/node_modules/bare-buffer/package.json +1 -1
- package/node_modules/bare-buffer/prebuilds/darwin-arm64/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/linux-arm64/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/linux-x64/bare-buffer.bare +0 -0
- package/node_modules/bare-buffer/prebuilds/win32-x64/bare-buffer.bare +0 -0
- package/node_modules/bare-events/README.md +4 -0
- package/node_modules/bare-events/index.d.ts +158 -1
- package/node_modules/bare-events/index.js +60 -34
- package/node_modules/bare-events/package.json +1 -1
- package/node_modules/bare-events/web.d.ts +29 -0
- package/node_modules/bare-fs/index.js +2 -2
- package/node_modules/bare-fs/lib/queue.js +29 -0
- package/node_modules/bare-fs/package.json +2 -3
- package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.bare +0 -0
- package/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/brace-expansion/dist/commonjs/index.js +8 -1
- package/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -1
- package/node_modules/brace-expansion/dist/esm/index.d.ts.map +1 -1
- package/node_modules/brace-expansion/dist/esm/index.js +8 -1
- package/node_modules/brace-expansion/dist/esm/index.js.map +1 -1
- package/node_modules/brace-expansion/package.json +1 -1
- package/node_modules/io.appium.settings/CHANGELOG.md +22 -0
- package/node_modules/io.appium.settings/apks/settings_apk-debug.apk +0 -0
- package/node_modules/io.appium.settings/package.json +4 -4
- package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts +10 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/browser/index.js +180 -91
- package/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/browser/index.min.js +1 -1
- package/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +3 -3
- package/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/browser/perf.js +1 -2
- package/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/index.d.ts +10 -0
- package/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/index.js +180 -91
- package/node_modules/lru-cache/dist/commonjs/index.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/index.min.js +1 -1
- package/node_modules/lru-cache/dist/commonjs/index.min.js.map +3 -3
- package/node_modules/lru-cache/dist/commonjs/node/index.d.ts +10 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/node/index.js +180 -91
- package/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/node/index.min.js +1 -1
- package/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +3 -3
- package/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/node/perf.js +1 -2
- package/node_modules/lru-cache/dist/commonjs/node/perf.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/perf.js +1 -2
- package/node_modules/lru-cache/dist/commonjs/perf.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts +10 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/react-native/index.js +180 -91
- package/node_modules/lru-cache/dist/commonjs/react-native/index.js.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/react-native/index.min.js +2 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/perf.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/commonjs/react-native/perf.js +1 -2
- package/node_modules/lru-cache/dist/commonjs/react-native/perf.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/browser/index.d.ts +10 -0
- package/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/browser/index.js +180 -91
- package/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/browser/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/browser/index.min.js.map +3 -3
- package/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/browser/perf.js +1 -2
- package/node_modules/lru-cache/dist/esm/browser/perf.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -1
- package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.mjs.map +1 -1
- package/node_modules/lru-cache/dist/esm/diagnostics-channel.js +0 -1
- package/node_modules/lru-cache/dist/esm/index.d.ts +10 -0
- package/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/index.js +180 -91
- package/node_modules/lru-cache/dist/esm/index.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/index.min.js.map +3 -3
- package/node_modules/lru-cache/dist/esm/node/index.d.ts +10 -0
- package/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/node/index.js +180 -91
- package/node_modules/lru-cache/dist/esm/node/index.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/node/index.min.js +1 -1
- package/node_modules/lru-cache/dist/esm/node/index.min.js.map +3 -3
- package/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/node/perf.js +1 -2
- package/node_modules/lru-cache/dist/esm/node/perf.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/perf.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/perf.js +1 -2
- package/node_modules/lru-cache/dist/esm/perf.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/react-native/index.d.ts +10 -0
- package/node_modules/lru-cache/dist/esm/react-native/index.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/react-native/index.js +180 -91
- package/node_modules/lru-cache/dist/esm/react-native/index.js.map +1 -1
- package/node_modules/lru-cache/dist/esm/react-native/index.min.js +2 -0
- package/node_modules/lru-cache/dist/esm/react-native/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/esm/react-native/perf.d.ts.map +1 -1
- package/node_modules/lru-cache/dist/esm/react-native/perf.js +1 -2
- package/node_modules/lru-cache/dist/esm/react-native/perf.js.map +1 -1
- package/node_modules/lru-cache/package.json +14 -8
- package/node_modules/string_decoder/package.json +4 -5
- package/node_modules/teen_process/CHANGELOG.md +6 -0
- package/node_modules/teen_process/package.json +1 -2
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [10.4.2](https://github.com/appium/appium-uiautomator2-driver/compare/v10.4.1...v10.4.2) (2026-12-02)
|
|
2
|
+
|
|
3
|
+
### Miscellaneous Chores
|
|
4
|
+
|
|
5
|
+
* bump appium-android-driver to ^16.1.9 and deprecate screen streaming docs ([#1098](https://github.com/appium/appium-uiautomator2-driver/issues/1098)) ([a5f5dc2](https://github.com/appium/appium-uiautomator2-driver/commit/a5f5dc2db9f103553c086310d4c860bff6422e15))
|
|
6
|
+
|
|
7
|
+
## [10.4.1](https://github.com/appium/appium-uiautomator2-driver/compare/v10.4.0...v10.4.1) (2026-11-27)
|
|
8
|
+
|
|
9
|
+
### Miscellaneous Chores
|
|
10
|
+
|
|
11
|
+
* bump @appium/types to v3 ([#1097](https://github.com/appium/appium-uiautomator2-driver/issues/1097)) ([5eabba0](https://github.com/appium/appium-uiautomator2-driver/commit/5eabba036f4a02de429087cb7393d124f5e3fa67))
|
|
12
|
+
|
|
1
13
|
## [10.4.0](https://github.com/appium/appium-uiautomator2-driver/compare/v10.3.0...v10.4.0) (2026-11-25)
|
|
2
14
|
|
|
3
15
|
### Features
|
package/build/lib/driver.d.ts
CHANGED
|
@@ -44,11 +44,34 @@ declare class AndroidUiautomator2Driver extends AndroidDriver<Uiautomator2Constr
|
|
|
44
44
|
readonly command: "getLogTypes";
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
|
-
readonly '/session/:sessionId/
|
|
47
|
+
readonly '/session/:sessionId/orientation': {
|
|
48
|
+
readonly GET: {
|
|
49
|
+
readonly command: "getOrientation";
|
|
50
|
+
};
|
|
51
|
+
readonly POST: {
|
|
52
|
+
readonly command: "setOrientation";
|
|
53
|
+
readonly payloadParams: {
|
|
54
|
+
readonly required: readonly ["orientation"];
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
readonly '/session/:sessionId/rotation': {
|
|
59
|
+
readonly GET: {
|
|
60
|
+
readonly command: "getRotation";
|
|
61
|
+
};
|
|
48
62
|
readonly POST: {
|
|
49
|
-
readonly command: "
|
|
63
|
+
readonly command: "setRotation";
|
|
50
64
|
readonly payloadParams: {
|
|
51
|
-
readonly required: readonly ["
|
|
65
|
+
readonly required: readonly ["x", "y", "z"];
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
readonly '/session/:sessionId/appium/device/keyevent': {
|
|
70
|
+
readonly POST: {
|
|
71
|
+
readonly command: "keyevent";
|
|
72
|
+
readonly payloadParams: {
|
|
73
|
+
readonly required: readonly ["keycode"];
|
|
74
|
+
readonly optional: readonly ["metastate"];
|
|
52
75
|
};
|
|
53
76
|
readonly deprecated: true;
|
|
54
77
|
};
|
|
@@ -87,17 +110,6 @@ declare class AndroidUiautomator2Driver extends AndroidDriver<Uiautomator2Constr
|
|
|
87
110
|
readonly deprecated: true;
|
|
88
111
|
};
|
|
89
112
|
};
|
|
90
|
-
readonly '/session/:sessionId/orientation': {
|
|
91
|
-
readonly GET: {
|
|
92
|
-
readonly command: "getOrientation";
|
|
93
|
-
};
|
|
94
|
-
readonly POST: {
|
|
95
|
-
readonly command: "setOrientation";
|
|
96
|
-
readonly payloadParams: {
|
|
97
|
-
readonly required: readonly ["orientation"];
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
113
|
readonly '/session/:sessionId/context': {
|
|
102
114
|
readonly GET: {
|
|
103
115
|
readonly command: "getCurrentContext";
|
|
@@ -114,17 +126,6 @@ declare class AndroidUiautomator2Driver extends AndroidDriver<Uiautomator2Constr
|
|
|
114
126
|
readonly command: "getContexts";
|
|
115
127
|
};
|
|
116
128
|
};
|
|
117
|
-
readonly '/session/:sessionId/rotation': {
|
|
118
|
-
readonly GET: {
|
|
119
|
-
readonly command: "getRotation";
|
|
120
|
-
};
|
|
121
|
-
readonly POST: {
|
|
122
|
-
readonly command: "setRotation";
|
|
123
|
-
readonly payloadParams: {
|
|
124
|
-
readonly required: readonly ["x", "y", "z"];
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
129
|
readonly '/session/:sessionId/keys': {
|
|
129
130
|
readonly POST: {
|
|
130
131
|
readonly command: "keys";
|
|
@@ -211,6 +212,7 @@ declare class AndroidUiautomator2Driver extends AndroidDriver<Uiautomator2Constr
|
|
|
211
212
|
readonly payloadParams: {
|
|
212
213
|
readonly required: readonly ["keycode"];
|
|
213
214
|
readonly optional: readonly ["metastate", "flags"];
|
|
215
|
+
readonly makeArgs: ({ keycode, metastate, flags }: any) => any[];
|
|
214
216
|
};
|
|
215
217
|
readonly deprecated: true;
|
|
216
218
|
};
|
|
@@ -221,6 +223,7 @@ declare class AndroidUiautomator2Driver extends AndroidDriver<Uiautomator2Constr
|
|
|
221
223
|
readonly payloadParams: {
|
|
222
224
|
readonly required: readonly ["keycode"];
|
|
223
225
|
readonly optional: readonly ["metastate", "flags"];
|
|
226
|
+
readonly makeArgs: ({ keycode, metastate, flags }: any) => any[];
|
|
224
227
|
};
|
|
225
228
|
readonly deprecated: true;
|
|
226
229
|
};
|
|
@@ -297,16 +300,6 @@ declare class AndroidUiautomator2Driver extends AndroidDriver<Uiautomator2Constr
|
|
|
297
300
|
readonly deprecated: true;
|
|
298
301
|
};
|
|
299
302
|
};
|
|
300
|
-
readonly '/session/:sessionId/appium/device/keyevent': {
|
|
301
|
-
readonly POST: {
|
|
302
|
-
readonly command: "keyevent";
|
|
303
|
-
readonly payloadParams: {
|
|
304
|
-
readonly required: readonly ["keycode"];
|
|
305
|
-
readonly optional: readonly ["metastate"];
|
|
306
|
-
};
|
|
307
|
-
readonly deprecated: true;
|
|
308
|
-
};
|
|
309
|
-
};
|
|
310
303
|
readonly '/session/:sessionId/appium/device/current_activity': {
|
|
311
304
|
readonly GET: {
|
|
312
305
|
readonly command: "getCurrentActivity";
|
|
@@ -684,12 +677,16 @@ declare class AndroidUiautomator2Driver extends AndroidDriver<Uiautomator2Constr
|
|
|
684
677
|
};
|
|
685
678
|
readonly 'mobile: startScreenStreaming': {
|
|
686
679
|
readonly command: "mobileStartScreenStreaming";
|
|
680
|
+
readonly deprecated: true;
|
|
681
|
+
readonly info: "Use 'mobile: startMediaStream' and 'mobile: stopMediaStream' (MediaProjection-based, no GStreamer required) instead.";
|
|
687
682
|
readonly params: {
|
|
688
683
|
readonly optional: readonly ["width", "height", "bitRate", "host", "port", "pathname", "tcpPort", "quality", "considerRotation", "logPipelineDetails"];
|
|
689
684
|
};
|
|
690
685
|
};
|
|
691
686
|
readonly 'mobile: stopScreenStreaming': {
|
|
692
687
|
readonly command: "mobileStopScreenStreaming";
|
|
688
|
+
readonly deprecated: true;
|
|
689
|
+
readonly info: "Use 'mobile: startMediaStream' and 'mobile: stopMediaStream' (MediaProjection-based, no GStreamer required) instead.";
|
|
693
690
|
};
|
|
694
691
|
readonly 'mobile: getNotifications': {
|
|
695
692
|
readonly command: "mobileGetNotifications";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../lib/driver.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAA6B,cAAc,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AACvH,OAAO,EAAmB,KAAK,GAAG,EAAC,MAAM,YAAY,CAAC;AACtD,OAAO,EAAC,aAAa,EAAQ,MAAM,uBAAuB,CAAC;AAuF3D,OAAiC,EAAC,KAAK,uBAAuB,EAAC,MAAM,kBAAkB,CAAC;AAIxF,OAAO,KAAK,EACV,oBAAoB,EACpB,yBAAyB,EACzB,sBAAsB,EACtB,sBAAsB,EAEtB,yBAAyB,EAC1B,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,gCAAgC,CAAC;AAavE,OAAO,EAAiB,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7D,OAAO,uBAAuB,CAAC;AAC/B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,8BAA8B,CAAC;AACtC,OAAO,mBAAmB,CAAC;AAC3B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,yBAAyB,CAAC;AACjC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,wBAAwB,CAAC;AAChC,OAAO,wBAAwB,CAAC;AAChC,OAAO,oBAAoB,CAAC;AAC5B,OAAO,0BAA0B,CAAC;AAClC,OAAO,0BAA0B,CAAC;AAClC,OAAO,wBAAwB,CAAC;AAChC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,kCAAkC,CAAC;AAuG1C,cAAM,yBACJ,SAAQ,aAAa,CAAC,uBAAuB,CAC7C,YAAW,cAAc,CAAC,uBAAuB,EAAE,MAAM,EAAE,YAAY,CAAC;IAExE,OAAgB,YAAY
|
|
1
|
+
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../lib/driver.ts"],"names":[],"mappings":"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"}
|
|
@@ -238,12 +238,16 @@ export declare const executeMethodMap: {
|
|
|
238
238
|
};
|
|
239
239
|
readonly 'mobile: startScreenStreaming': {
|
|
240
240
|
readonly command: "mobileStartScreenStreaming";
|
|
241
|
+
readonly deprecated: true;
|
|
242
|
+
readonly info: "Use 'mobile: startMediaStream' and 'mobile: stopMediaStream' (MediaProjection-based, no GStreamer required) instead.";
|
|
241
243
|
readonly params: {
|
|
242
244
|
readonly optional: readonly ["width", "height", "bitRate", "host", "port", "pathname", "tcpPort", "quality", "considerRotation", "logPipelineDetails"];
|
|
243
245
|
};
|
|
244
246
|
};
|
|
245
247
|
readonly 'mobile: stopScreenStreaming': {
|
|
246
248
|
readonly command: "mobileStopScreenStreaming";
|
|
249
|
+
readonly deprecated: true;
|
|
250
|
+
readonly info: "Use 'mobile: startMediaStream' and 'mobile: stopMediaStream' (MediaProjection-based, no GStreamer required) instead.";
|
|
247
251
|
};
|
|
248
252
|
readonly 'mobile: getNotifications': {
|
|
249
253
|
readonly command: "mobileGetNotifications";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-method-map.d.ts","sourceRoot":"","sources":["../../lib/execute-method-map.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"execute-method-map.d.ts","sourceRoot":"","sources":["../../lib/execute-method-map.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+Ma,CAAC"}
|
|
@@ -21,11 +21,34 @@ export declare const newMethodMap: {
|
|
|
21
21
|
readonly command: "getLogTypes";
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
-
readonly '/session/:sessionId/
|
|
24
|
+
readonly '/session/:sessionId/orientation': {
|
|
25
|
+
readonly GET: {
|
|
26
|
+
readonly command: "getOrientation";
|
|
27
|
+
};
|
|
25
28
|
readonly POST: {
|
|
26
|
-
readonly command: "
|
|
29
|
+
readonly command: "setOrientation";
|
|
27
30
|
readonly payloadParams: {
|
|
28
|
-
readonly required: readonly ["
|
|
31
|
+
readonly required: readonly ["orientation"];
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
readonly '/session/:sessionId/rotation': {
|
|
36
|
+
readonly GET: {
|
|
37
|
+
readonly command: "getRotation";
|
|
38
|
+
};
|
|
39
|
+
readonly POST: {
|
|
40
|
+
readonly command: "setRotation";
|
|
41
|
+
readonly payloadParams: {
|
|
42
|
+
readonly required: readonly ["x", "y", "z"];
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
readonly '/session/:sessionId/appium/device/keyevent': {
|
|
47
|
+
readonly POST: {
|
|
48
|
+
readonly command: "keyevent";
|
|
49
|
+
readonly payloadParams: {
|
|
50
|
+
readonly required: readonly ["keycode"];
|
|
51
|
+
readonly optional: readonly ["metastate"];
|
|
29
52
|
};
|
|
30
53
|
readonly deprecated: true;
|
|
31
54
|
};
|
|
@@ -64,17 +87,6 @@ export declare const newMethodMap: {
|
|
|
64
87
|
readonly deprecated: true;
|
|
65
88
|
};
|
|
66
89
|
};
|
|
67
|
-
readonly '/session/:sessionId/orientation': {
|
|
68
|
-
readonly GET: {
|
|
69
|
-
readonly command: "getOrientation";
|
|
70
|
-
};
|
|
71
|
-
readonly POST: {
|
|
72
|
-
readonly command: "setOrientation";
|
|
73
|
-
readonly payloadParams: {
|
|
74
|
-
readonly required: readonly ["orientation"];
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
90
|
readonly '/session/:sessionId/context': {
|
|
79
91
|
readonly GET: {
|
|
80
92
|
readonly command: "getCurrentContext";
|
|
@@ -91,17 +103,6 @@ export declare const newMethodMap: {
|
|
|
91
103
|
readonly command: "getContexts";
|
|
92
104
|
};
|
|
93
105
|
};
|
|
94
|
-
readonly '/session/:sessionId/rotation': {
|
|
95
|
-
readonly GET: {
|
|
96
|
-
readonly command: "getRotation";
|
|
97
|
-
};
|
|
98
|
-
readonly POST: {
|
|
99
|
-
readonly command: "setRotation";
|
|
100
|
-
readonly payloadParams: {
|
|
101
|
-
readonly required: readonly ["x", "y", "z"];
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
106
|
readonly '/session/:sessionId/keys': {
|
|
106
107
|
readonly POST: {
|
|
107
108
|
readonly command: "keys";
|
|
@@ -188,6 +189,7 @@ export declare const newMethodMap: {
|
|
|
188
189
|
readonly payloadParams: {
|
|
189
190
|
readonly required: readonly ["keycode"];
|
|
190
191
|
readonly optional: readonly ["metastate", "flags"];
|
|
192
|
+
readonly makeArgs: ({ keycode, metastate, flags }: any) => any[];
|
|
191
193
|
};
|
|
192
194
|
readonly deprecated: true;
|
|
193
195
|
};
|
|
@@ -198,6 +200,7 @@ export declare const newMethodMap: {
|
|
|
198
200
|
readonly payloadParams: {
|
|
199
201
|
readonly required: readonly ["keycode"];
|
|
200
202
|
readonly optional: readonly ["metastate", "flags"];
|
|
203
|
+
readonly makeArgs: ({ keycode, metastate, flags }: any) => any[];
|
|
201
204
|
};
|
|
202
205
|
readonly deprecated: true;
|
|
203
206
|
};
|
|
@@ -274,16 +277,6 @@ export declare const newMethodMap: {
|
|
|
274
277
|
readonly deprecated: true;
|
|
275
278
|
};
|
|
276
279
|
};
|
|
277
|
-
readonly '/session/:sessionId/appium/device/keyevent': {
|
|
278
|
-
readonly POST: {
|
|
279
|
-
readonly command: "keyevent";
|
|
280
|
-
readonly payloadParams: {
|
|
281
|
-
readonly required: readonly ["keycode"];
|
|
282
|
-
readonly optional: readonly ["metastate"];
|
|
283
|
-
};
|
|
284
|
-
readonly deprecated: true;
|
|
285
|
-
};
|
|
286
|
-
};
|
|
287
280
|
readonly '/session/:sessionId/appium/device/current_activity': {
|
|
288
281
|
readonly GET: {
|
|
289
282
|
readonly command: "getCurrentActivity";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"method-map.d.ts","sourceRoot":"","sources":["../../lib/method-map.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"method-map.d.ts","sourceRoot":"","sources":["../../lib/method-map.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBf,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appium/base-driver",
|
|
3
|
-
"version": "11.0.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "11.0.2",
|
|
4
|
+
"gitHead": "19b5d082d57bad563511d5120ef7fd8da63788b3",
|
|
5
5
|
"description": "Base driver class for Appium drivers",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"android",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"test:types": "tsd"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@appium/support": "^8.0.
|
|
57
|
-
"@appium/types": "
|
|
56
|
+
"@appium/support": "^8.0.2",
|
|
57
|
+
"@appium/types": "^3.0.0",
|
|
58
58
|
"asyncbox": "^7.0.0",
|
|
59
59
|
"axios": "^1.20.0",
|
|
60
60
|
"lru-cache": "^11.5.2",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appium/support",
|
|
3
|
-
"version": "8.0.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "8.0.2",
|
|
4
|
+
"gitHead": "19b5d082d57bad563511d5120ef7fd8da63788b3",
|
|
5
5
|
"description": "Support libs used across Appium packages",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"android",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@appium/logger": "~3.0.0",
|
|
56
|
-
"@appium/types": "
|
|
56
|
+
"@appium/types": "^3.0.0",
|
|
57
57
|
"archiver": "^8.0.0",
|
|
58
58
|
"asyncbox": "^7.0.0",
|
|
59
59
|
"axios": "^1.20.0",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Driver, DriverCommand } from './driver.js';
|
|
1
|
+
import type { Driver, DriverCommand, ExternalDriver } from './driver.js';
|
|
2
2
|
import type { Plugin, PluginCommand } from './plugin.js';
|
|
3
3
|
import type { ConditionalPick, IsAny, IsNever, MultidimensionalReadonlyArray, StringRecord } from './util.js';
|
|
4
4
|
/**
|
|
@@ -17,26 +17,28 @@ export interface PayloadParams {
|
|
|
17
17
|
*
|
|
18
18
|
* Extensions can define new methods for the Appium server to map to command names, of the same
|
|
19
19
|
* format as used in Appium's `routes.js`.
|
|
20
|
+
* Pass `true` as `Loose` to opt out of checking `command` and `payloadParams`; annotate with `MethodMap<MyDriver>` or use `as const satisfies MethodMap<MyDriver>` to preserve literals and tuple lengths (`makeArgs` skips positional-count checks when the command accepts arguments).
|
|
21
|
+
* Note: Because route keys are typed as `string`, trailing `string` parameters on a command are always treated as potentially supplied by URL `:param` segments, so omitting them from `payloadParams` is allowed even on routes without a matching `:param`.
|
|
20
22
|
*
|
|
21
23
|
* @example
|
|
22
|
-
* ```
|
|
24
|
+
* ```ts
|
|
23
25
|
* {
|
|
24
26
|
* '/session/:sessionId/new_method': {
|
|
25
27
|
* GET: {command: 'getNewThing'},
|
|
26
28
|
* POST: {command: 'setNewThing', payloadParams: {required: ['someParam']}}
|
|
27
29
|
* }
|
|
28
|
-
* }
|
|
30
|
+
* } as const satisfies MethodMap<MyDriver>
|
|
29
31
|
* ```
|
|
30
32
|
*/
|
|
31
|
-
export type MethodMap<T extends Plugin | Driver> = T extends Plugin ? Readonly<PluginMethodMap<T>> : T extends Driver ? Readonly<DriverMethodMap<T>> : never;
|
|
33
|
+
export type MethodMap<T extends Plugin | Driver, Loose extends boolean = false> = T extends Plugin ? Readonly<PluginMethodMap<T, Loose>> : T extends Driver ? Readonly<DriverMethodMap<T, Loose>> : never;
|
|
32
34
|
/**
|
|
33
35
|
* A {@linkcode MethodMap} for a {@linkcode Driver}.
|
|
34
36
|
*/
|
|
35
|
-
export interface DriverMethodMap<T extends Driver> {
|
|
37
|
+
export interface DriverMethodMap<T extends Driver, Loose extends boolean = false> {
|
|
36
38
|
[key: string]: {
|
|
37
|
-
GET?: DriverMethodDef<T>;
|
|
38
|
-
POST?: DriverMethodDef<T>;
|
|
39
|
-
DELETE?: DriverMethodDef<T>;
|
|
39
|
+
GET?: DriverMethodDef<T, Loose>;
|
|
40
|
+
POST?: DriverMethodDef<T, Loose>;
|
|
41
|
+
DELETE?: DriverMethodDef<T, Loose>;
|
|
40
42
|
};
|
|
41
43
|
}
|
|
42
44
|
/**
|
|
@@ -60,32 +62,131 @@ export interface BaseMethodDef {
|
|
|
60
62
|
*/
|
|
61
63
|
readonly info?: string;
|
|
62
64
|
}
|
|
65
|
+
type IsEqual<A, B> = (<G>() => G extends A ? 1 : 2) extends <G>() => G extends B ? 1 : 2 ? true : false;
|
|
66
|
+
type IsPureRestArray<P extends readonly unknown[]> = P extends P ? IsAny<P> extends true ? true : number extends P['length'] ? [] extends P ? [undefined] extends P ? IsEqual<P, P[number][]> extends true ? true : IsEqual<P, readonly P[number][]> : true : false : false : never;
|
|
67
|
+
type CanAcceptUndefined<T> = [undefined] extends [T] ? true : false;
|
|
68
|
+
type IsTopType<T> = unknown extends T ? true : false;
|
|
69
|
+
type CanOmitWithUrl<T, AllowUrlString extends boolean> = AllowUrlString extends true ? true extends IsTopType<T> ? true : [string] extends [T] ? true : false : false;
|
|
70
|
+
type CanOmitTrailing<P extends readonly unknown[], AllowUrlString extends boolean> = P extends readonly [] ? true : IsPureRestArray<P> extends true ? true : P extends readonly [infer H, ...infer T] ? IsTopType<H> extends true ? CanOmitTrailing<T, AllowUrlString> : CanAcceptUndefined<H> extends true ? CanOmitTrailing<T, false> : AllowUrlString extends true ? [string] extends [H] ? CanOmitTrailing<T, true> : false : false : [] extends P ? P extends readonly [(infer _)?, ...infer T] ? CanOmitTrailing<T, false> : false : P extends readonly [...infer Head, infer Last] ? true extends CanOmitWithUrl<Last, AllowUrlString> ? CanOmitTrailing<Head, true> : false : false;
|
|
71
|
+
type ParamOptionalTag = {
|
|
72
|
+
readonly kind: 'exact';
|
|
73
|
+
readonly tuple: readonly string[];
|
|
74
|
+
} | {
|
|
75
|
+
readonly kind: 'rest';
|
|
76
|
+
readonly min: readonly string[];
|
|
77
|
+
};
|
|
78
|
+
type ParamSplit = {
|
|
79
|
+
readonly r: readonly string[];
|
|
80
|
+
readonly o: ParamOptionalTag;
|
|
81
|
+
};
|
|
82
|
+
/** Collects optional tails by shifting nullable/optional args into `[...OAcc, string]` (`undefined` when omitted); `AllowUrlString` permits trailing `string` URL params before any omitted arg. */
|
|
83
|
+
type CollectOptionalSplits<CurP extends readonly unknown[], AllowUrlString extends boolean, RAcc extends string[], OAcc extends string[] = [], AllowOptional extends boolean = true> = CurP extends readonly unknown[] ? (IsPureRestArray<CurP> extends true ? {
|
|
84
|
+
readonly r: Readonly<OAcc extends [] ? [...RAcc, ...string[]] : RAcc>;
|
|
85
|
+
readonly o: AllowOptional extends true ? CanAcceptUndefined<CurP[number]> extends true ? {
|
|
86
|
+
readonly kind: 'rest';
|
|
87
|
+
readonly min: Readonly<OAcc>;
|
|
88
|
+
} : {
|
|
89
|
+
readonly kind: 'exact';
|
|
90
|
+
readonly tuple: Readonly<OAcc>;
|
|
91
|
+
} : {
|
|
92
|
+
readonly kind: 'exact';
|
|
93
|
+
readonly tuple: Readonly<OAcc>;
|
|
94
|
+
};
|
|
95
|
+
} : CanOmitTrailing<CurP, AllowUrlString> extends true ? {
|
|
96
|
+
readonly r: Readonly<RAcc>;
|
|
97
|
+
readonly o: {
|
|
98
|
+
readonly kind: 'exact';
|
|
99
|
+
readonly tuple: Readonly<OAcc>;
|
|
100
|
+
};
|
|
101
|
+
} : never) | (AllowOptional extends false ? never : CurP extends readonly [] ? never : IsPureRestArray<CurP> extends true ? never : CurP extends readonly [infer H, ...infer T] ? CanAcceptUndefined<H> extends true ? CollectOptionalSplits<T, AllowUrlString, RAcc, [...OAcc, string], AllowOptional> : never : [] extends CurP ? CurP extends readonly [(infer _)?, ...infer T] ? CollectOptionalSplits<T, AllowUrlString, RAcc, [...OAcc, string], AllowOptional> : never : never) : never;
|
|
102
|
+
/** Enumerates `(r, o)` splits across `CurP` (`AllowUrlString`: `true` for REST URL `:param`s, `false` for execute). */
|
|
103
|
+
type CollectParamSplits<CurP extends readonly unknown[], AllowUrlString extends boolean, RAcc extends string[] = [], AllowOptional extends boolean = true> = CurP extends readonly unknown[] ? CollectOptionalSplits<CurP, AllowUrlString, RAcc, [], AllowOptional> | (CurP extends readonly [] ? never : IsPureRestArray<CurP> extends true ? never : CurP extends readonly [infer _, ...infer T] ? CollectParamSplits<T, AllowUrlString, [...RAcc, string], AllowOptional> : [] extends CurP ? CurP extends readonly [(infer _)?, ...infer T] ? CollectParamSplits<T, AllowUrlString, [...RAcc, string], AllowOptional> : never : CurP extends readonly [...infer Head, infer Last] ? (CanOmitWithUrl<Last, AllowUrlString> extends true ? CollectParamSplits<Head, true, RAcc, AllowOptional> : never) | CollectParamSplits<Head, false, [
|
|
104
|
+
...RAcc,
|
|
105
|
+
string
|
|
106
|
+
], CanAcceptUndefined<Last> extends true ? AllowOptional : false> : never) : never;
|
|
107
|
+
type NonEmptyStringTuple<R extends readonly string[]> = Exclude<R, readonly []>;
|
|
108
|
+
type RequiredParamProp<R extends readonly string[], Nested extends boolean> = readonly [] extends R ? {
|
|
109
|
+
required?: R | (Nested extends true ? IsNever<NonEmptyStringTuple<R>> extends true ? never : readonly [NonEmptyStringTuple<R>, ...NonEmptyStringTuple<R>[]] : string[]);
|
|
110
|
+
} : {
|
|
111
|
+
required: R | (Nested extends true ? readonly [R, ...R[]] : string[]);
|
|
112
|
+
};
|
|
113
|
+
type OptionalParamProp<O extends ParamOptionalTag, AllowMutable extends boolean> = O extends {
|
|
114
|
+
readonly kind: 'rest';
|
|
115
|
+
readonly min: infer Min extends readonly string[];
|
|
116
|
+
} ? Min extends readonly [] ? {
|
|
117
|
+
optional?: readonly string[];
|
|
118
|
+
} : {
|
|
119
|
+
optional: Readonly<[...Min, ...string[]]> | (AllowMutable extends true ? string[] : never);
|
|
120
|
+
} : O extends {
|
|
121
|
+
readonly kind: 'exact';
|
|
122
|
+
readonly tuple: infer Tuple extends readonly string[];
|
|
123
|
+
} ? Tuple extends readonly [] ? {
|
|
124
|
+
optional?: readonly [] | (AllowMutable extends true ? string[] : never);
|
|
125
|
+
} : {
|
|
126
|
+
optional: Readonly<Tuple> | (AllowMutable extends true ? string[] : never);
|
|
127
|
+
} : never;
|
|
128
|
+
/** Groups `Splits` by `o` so valid `required` shapes form one union per `optional` rule (`Nested` is `true` for REST `payloadParams`, `false` for execute `params`). */
|
|
129
|
+
type BuildParamShapes<Splits, Nested extends boolean, OKey = Splits extends ParamSplit ? Splits['o'] : never> = OKey extends ParamOptionalTag ? Extract<Splits, {
|
|
130
|
+
readonly o: OKey;
|
|
131
|
+
}> extends infer Matched extends ParamSplit ? RequiredParamProp<Matched['r'], Nested> & OptionalParamProp<OKey, Nested extends true ? false : true> : never : never;
|
|
132
|
+
/** REST `payloadParams` shapes for `P`: runtime passes `required` first, then `optional` (`undefined` if omitted), then URL `:param` strings. */
|
|
133
|
+
type PayloadParamsFor<P extends readonly unknown[]> = BuildParamShapes<P extends readonly unknown[] ? CollectParamSplits<P, true> : never, true>;
|
|
134
|
+
type HasPositionalParams<P extends readonly unknown[]> = P extends readonly [] ? false : true;
|
|
135
|
+
type MakeArgsFn<Ret extends readonly unknown[] = readonly unknown[]> = (...args: Parameters<NonNullable<PayloadParams['makeArgs']>>) => Ret;
|
|
136
|
+
type PayloadParamsConstraint<P extends readonly unknown[]> = PayloadParams & ((PayloadParamsFor<P> & {
|
|
137
|
+
makeArgs?: MakeArgsFn<true extends HasPositionalParams<P> ? readonly unknown[] : readonly never[]>;
|
|
138
|
+
}) | (true extends HasPositionalParams<P> ? {
|
|
139
|
+
makeArgs: MakeArgsFn;
|
|
140
|
+
} : never));
|
|
141
|
+
type PayloadParamsProp<P extends readonly unknown[]> = true extends CanOmitTrailing<P, true> ? {
|
|
142
|
+
[Q in keyof Pick<BaseMethodDef, 'payloadParams'>]?: PayloadParamsConstraint<P>;
|
|
143
|
+
} : {
|
|
144
|
+
[Q in keyof Pick<BaseMethodDef, 'payloadParams'>]-?: PayloadParamsConstraint<P>;
|
|
145
|
+
};
|
|
146
|
+
/** Checks up to the last 5 overload signatures (`P1`-`P5`); earlier overloads on 6+ signature methods are dropped (`Loose = true` opts out), and a public catch-all `(...args: unknown[] | any[])` overload permits any param count. */
|
|
147
|
+
type OverloadParams<F> = IsAny<F> extends true ? any[] : F extends {
|
|
148
|
+
(...args: infer P1 extends readonly unknown[]): any;
|
|
149
|
+
(...args: infer P2 extends readonly unknown[]): any;
|
|
150
|
+
(...args: infer P3 extends readonly unknown[]): any;
|
|
151
|
+
(...args: infer P4 extends readonly unknown[]): any;
|
|
152
|
+
(...args: infer P5 extends readonly unknown[]): any;
|
|
153
|
+
} ? P1 | P2 | P3 | P4 | P5 : never;
|
|
154
|
+
type StripPluginPrefix<P extends readonly unknown[]> = P extends readonly unknown[] ? ((...args: P) => any) extends (next: any, driver: any, ...args: infer Rest extends readonly unknown[]) => any ? Rest : never : never;
|
|
155
|
+
type PluginCommandParams<F> = StripPluginPrefix<OverloadParams<F>>;
|
|
156
|
+
type CommandProp<K> = {
|
|
157
|
+
/** Name of the command. */
|
|
158
|
+
readonly command: K;
|
|
159
|
+
};
|
|
160
|
+
type LooseMethodDef = BaseMethodDef & {
|
|
161
|
+
/** Name of the command. */
|
|
162
|
+
readonly command?: string;
|
|
163
|
+
};
|
|
164
|
+
type CheckedMethodDef<Commands, Kind extends 'driver' | 'plugin'> = IsNever<Commands> extends true ? LooseMethodDef : IsNever<keyof Commands> extends true ? LooseMethodDef : [string] extends [keyof Commands] ? LooseMethodDef : (BaseMethodDef & Partial<CommandProp<never>>) | {
|
|
165
|
+
[K in keyof Commands]: Omit<BaseMethodDef, 'payloadParams'> & CommandProp<K> & PayloadParamsProp<Kind extends 'driver' ? OverloadParams<Commands[K]> : PluginCommandParams<Commands[K]>>;
|
|
166
|
+
}[keyof Commands];
|
|
167
|
+
type IsExactDriver<T> = T extends Driver<infer C, infer CArgs, infer Settings, infer CR, infer DR> ? true extends IsEqual<T, Driver<C, CArgs, Settings, CR, DR>> ? true : IsEqual<T, Driver & Driver<C, CArgs, Settings, CR, DR>> : false;
|
|
168
|
+
type IsExactExternalDriver<T> = T extends ExternalDriver<infer C, infer Ctx, infer CArgs, infer Settings, infer CR, infer DR> ? true extends IsEqual<T, ExternalDriver<C, Ctx, CArgs, Settings, CR, DR>> ? true : IsEqual<T, Driver & ExternalDriver<C, Ctx, CArgs, Settings, CR, DR>> : false;
|
|
169
|
+
type IsExactBaseDriver<T> = T extends unknown ? true extends IsExactDriver<T> ? true : IsExactExternalDriver<T> : never;
|
|
170
|
+
type IsLooseDriverCheck<T, Loose extends boolean> = [true] extends [Loose] ? true : IsAny<T> extends true ? true : IsNever<T> extends true ? false : IsExactBaseDriver<T> extends true ? true : false;
|
|
171
|
+
type IsLoosePluginCheck<T, Loose extends boolean> = [true] extends [Loose] ? true : IsAny<T> extends true ? true : IsNever<T> extends true ? false : IsEqual<T, Plugin>;
|
|
63
172
|
/**
|
|
64
173
|
* A definition of an exposed API command in a {@linkcode Driver}.
|
|
174
|
+
* Validates `command` and `payloadParams` by default; `Loose = true` opts out.
|
|
65
175
|
*/
|
|
66
|
-
export
|
|
67
|
-
/**
|
|
68
|
-
* Name of the command.
|
|
69
|
-
*/
|
|
70
|
-
readonly command?: D extends true ? string : keyof ConditionalPick<Required<T>, DriverCommand>;
|
|
71
|
-
}
|
|
176
|
+
export type DriverMethodDef<T extends Driver, Loose extends boolean = false> = LooseMethodDef & (IsLooseDriverCheck<T, Loose> extends true ? unknown : CheckedMethodDef<ConditionalPick<Required<T>, DriverCommand>, 'driver'>);
|
|
72
177
|
/**
|
|
73
178
|
* A definition of an exposed API command in a {@linkcode Plugin}.
|
|
179
|
+
* Validates `command` and `payloadParams` by default; `Loose = true` opts out.
|
|
74
180
|
*/
|
|
75
|
-
export
|
|
76
|
-
/**
|
|
77
|
-
* Name of the command.
|
|
78
|
-
*/
|
|
79
|
-
readonly command?: keyof ConditionalPick<Required<T>, PluginCommand>;
|
|
80
|
-
}
|
|
181
|
+
export type PluginMethodDef<T extends Plugin, Loose extends boolean = false> = LooseMethodDef & (IsLoosePluginCheck<T, Loose> extends true ? unknown : CheckedMethodDef<ConditionalPick<Required<T>, PluginCommand>, 'plugin'>);
|
|
81
182
|
/**
|
|
82
183
|
* A mapping of URL paths to HTTP methods to {@linkcode PluginMethodDef}.
|
|
83
184
|
*/
|
|
84
|
-
export interface PluginMethodMap<T extends Plugin> {
|
|
185
|
+
export interface PluginMethodMap<T extends Plugin, Loose extends boolean = false> {
|
|
85
186
|
[key: string]: {
|
|
86
|
-
GET?: PluginMethodDef<T>;
|
|
87
|
-
POST?: PluginMethodDef<T>;
|
|
88
|
-
DELETE?: PluginMethodDef<T>;
|
|
187
|
+
GET?: PluginMethodDef<T, Loose>;
|
|
188
|
+
POST?: PluginMethodDef<T, Loose>;
|
|
189
|
+
DELETE?: PluginMethodDef<T, Loose>;
|
|
89
190
|
};
|
|
90
191
|
}
|
|
91
192
|
export interface ExecuteMethodDef<Ext extends Plugin | Driver> {
|
|
@@ -108,73 +209,8 @@ export interface BaseExecuteMethodDef {
|
|
|
108
209
|
*/
|
|
109
210
|
readonly info?: string;
|
|
110
211
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
* accepting `P` requires.
|
|
114
|
-
*/
|
|
115
|
-
type RequiredParams<P extends readonly unknown[]> = P extends readonly [infer H, ...infer T] ? [H, ...RequiredParams<T>] : [];
|
|
116
|
-
/**
|
|
117
|
-
* Tuple of `string`s with the same length as `T`.
|
|
118
|
-
*/
|
|
119
|
-
type StringTupleLike<T extends readonly unknown[]> = {
|
|
120
|
-
[K in keyof T]: string;
|
|
121
|
-
};
|
|
122
|
-
/**
|
|
123
|
-
* Tuple of `any`s with the same length as `T`.
|
|
124
|
-
*/
|
|
125
|
-
type AnyTupleLike<T extends readonly unknown[]> = {
|
|
126
|
-
[K in keyof T]: any;
|
|
127
|
-
};
|
|
128
|
-
/**
|
|
129
|
-
* The shape of `params` declaring the given required and optional param names.
|
|
130
|
-
*
|
|
131
|
-
* Non-tuple (`string[]`) values are also accepted, since their length cannot be checked; this is
|
|
132
|
-
* the case for maps not declared `as const`.
|
|
133
|
-
*/
|
|
134
|
-
type ExecuteMethodParamsShape<R extends string[], O extends string[]> = (R extends [] ? {
|
|
135
|
-
required?: readonly [] | string[];
|
|
136
|
-
} : {
|
|
137
|
-
required: Readonly<R> | string[];
|
|
138
|
-
}) & (O extends [] ? {
|
|
139
|
-
optional?: readonly [] | string[];
|
|
140
|
-
} : {
|
|
141
|
-
optional: Readonly<O> | string[];
|
|
142
|
-
});
|
|
143
|
-
/**
|
|
144
|
-
* Union of `params` shapes with exactly `R` required params and any number of optional params up
|
|
145
|
-
* to the length of `Budget`.
|
|
146
|
-
*/
|
|
147
|
-
type ExecuteMethodParamsWithRequired<R extends string[], Budget extends unknown[], O extends string[] = []> = ExecuteMethodParamsShape<R, O> | (Budget extends [unknown, ...infer BudgetTail] ? ExecuteMethodParamsWithRequired<R, BudgetTail, [...O, string]> : never);
|
|
148
|
-
/**
|
|
149
|
-
* Union of `params` shapes with at least `R` required params, where the total number of params
|
|
150
|
-
* does not exceed the length of `R` plus the length of `Budget`.
|
|
151
|
-
*/
|
|
152
|
-
type ExecuteMethodParamsWithin<R extends string[], Budget extends unknown[]> = ExecuteMethodParamsWithRequired<R, Budget> | (Budget extends [unknown, ...infer BudgetTail] ? ExecuteMethodParamsWithin<[...R, string], BudgetTail> : never);
|
|
153
|
-
/**
|
|
154
|
-
* The shape of `params` for a method with a rest parameter: at least `R` required params, and any
|
|
155
|
-
* number of further required and optional params.
|
|
156
|
-
*/
|
|
157
|
-
type ExecuteMethodParamsShapeWithRest<R extends string[]> = (R extends [] ? {
|
|
158
|
-
required?: readonly string[];
|
|
159
|
-
} : {
|
|
160
|
-
required: Readonly<[...R, ...string[]]> | string[];
|
|
161
|
-
}) & {
|
|
162
|
-
optional?: readonly string[];
|
|
163
|
-
};
|
|
164
|
-
/**
|
|
165
|
-
* Union of all `params` shapes whose `required`/`optional` param counts are compatible with a
|
|
166
|
-
* method accepting `P`: at runtime, the values of the `required` params are passed first (in
|
|
167
|
-
* order), followed by the values of the `optional` params (in order, `undefined` if not provided).
|
|
168
|
-
* So the method must accept at least as many required parameters as there are `required` params,
|
|
169
|
-
* must not require any of the `optional` ones, and must accept all of them.
|
|
170
|
-
*/
|
|
171
|
-
type ExecuteMethodParamsFor<P extends readonly unknown[]> = number extends Required<P>['length'] ? ExecuteMethodParamsShapeWithRest<StringTupleLike<RequiredParams<P>>> : Required<P> extends readonly [...AnyTupleLike<RequiredParams<P>>, ...infer Optional] ? ExecuteMethodParamsWithin<StringTupleLike<RequiredParams<P>>, Optional> : never;
|
|
172
|
-
/**
|
|
173
|
-
* The `params` property of an execute method definition for a method accepting `P`. It is
|
|
174
|
-
* mandatory if the method has required parameters, since omitting it means the method is invoked
|
|
175
|
-
* without any arguments.
|
|
176
|
-
*/
|
|
177
|
-
type ExecuteMethodParamsProp<P extends readonly unknown[]> = RequiredParams<P> extends [] ? {
|
|
212
|
+
type ExecuteMethodParamsFor<P extends readonly unknown[]> = BuildParamShapes<P extends readonly unknown[] ? CollectParamSplits<P, false> : never, false>;
|
|
213
|
+
type ExecuteMethodParamsProp<P extends readonly unknown[]> = true extends CanOmitTrailing<P, false> ? {
|
|
178
214
|
params?: ExecuteMethodParamsFor<P>;
|
|
179
215
|
} : {
|
|
180
216
|
params: ExecuteMethodParamsFor<P>;
|
|
@@ -185,14 +221,6 @@ type ExecuteMethodParamsProp<P extends readonly unknown[]> = RequiredParams<P> e
|
|
|
185
221
|
type LooseExecuteMethodDef = BaseExecuteMethodDef & {
|
|
186
222
|
command: string;
|
|
187
223
|
};
|
|
188
|
-
/**
|
|
189
|
-
* Parameters of a {@linkcode DriverCommand}.
|
|
190
|
-
*/
|
|
191
|
-
type DriverCommandParams<F> = F extends (...args: infer P) => any ? P : never;
|
|
192
|
-
/**
|
|
193
|
-
* Parameters of a {@linkcode PluginCommand}, i.e. those following `next` and `driver`.
|
|
194
|
-
*/
|
|
195
|
-
type PluginCommandParams<F> = F extends (next: any, driver: any, ...args: infer P) => any ? P : never;
|
|
196
224
|
/**
|
|
197
225
|
* Union of execute method definitions for the given command methods (`Commands`), one per
|
|
198
226
|
* command, whose `params` are cross-checked against the signature of the command they map to.
|
|
@@ -201,7 +229,7 @@ type PluginCommandParams<F> = F extends (next: any, driver: any, ...args: infer
|
|
|
201
229
|
type CheckedExecuteMethodDef<Commands, Kind extends 'driver' | 'plugin'> = IsNever<Commands> extends true ? LooseExecuteMethodDef : IsNever<keyof Commands> extends true ? LooseExecuteMethodDef : {
|
|
202
230
|
[K in keyof Commands]: Omit<BaseExecuteMethodDef, 'params'> & {
|
|
203
231
|
command: K;
|
|
204
|
-
} & ExecuteMethodParamsProp<Kind extends 'driver' ?
|
|
232
|
+
} & ExecuteMethodParamsProp<Kind extends 'driver' ? OverloadParams<Commands[K]> : PluginCommandParams<Commands[K]>>;
|
|
205
233
|
}[keyof Commands];
|
|
206
234
|
/**
|
|
207
235
|
* A definition of an execute method in a {@linkcode Driver}.
|
|
@@ -236,7 +264,7 @@ export type PluginExecuteMethodDef<T extends Plugin> = IsAny<T> extends true ? L
|
|
|
236
264
|
/**
|
|
237
265
|
* Definition of an execute method (which overloads the behavior of the `execute` command) in a {@linkcode Driver} or {@linkcode Plugin}.
|
|
238
266
|
*/
|
|
239
|
-
export type ExecuteMethodMap<T extends Plugin | Driver> = T extends Plugin ? Readonly<StringRecord<PluginExecuteMethodDef<T>>> : T extends Driver ? Readonly<StringRecord<DriverExecuteMethodDef<T>>> : never;
|
|
267
|
+
export type ExecuteMethodMap<T extends Plugin | Driver> = T extends Plugin ? Readonly<StringRecord<IsLoosePluginCheck<T, false> extends true ? LooseExecuteMethodDef : PluginExecuteMethodDef<T>>> : T extends Driver ? Readonly<StringRecord<IsLooseDriverCheck<T, false> extends true ? LooseExecuteMethodDef : DriverExecuteMethodDef<T>>> : never;
|
|
240
268
|
export interface BidiMethodParams extends Pick<PayloadParams, 'makeArgs' | 'validate'> {
|
|
241
269
|
required?: ReadonlyArray<string> | MultidimensionalReadonlyArray<string, 2>;
|
|
242
270
|
optional?: readonly string[];
|