appium-espresso-driver 10.0.3 → 10.2.0

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.
Files changed (457) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/lib/execute-method-map.d.ts +16 -0
  3. package/build/lib/execute-method-map.d.ts.map +1 -1
  4. package/espresso-server/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk +0 -0
  5. package/espresso-server/buildSrc/.gradle/9.7.1/executionHistory/executionHistory.bin +0 -0
  6. package/espresso-server/buildSrc/.gradle/9.7.1/executionHistory/executionHistory.lock +0 -0
  7. package/espresso-server/buildSrc/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  8. package/espresso-server/buildSrc/.gradle/buildOutputCleanup/cache.properties +1 -1
  9. package/espresso-server/buildSrc/build/kotlin/compileKotlin/cacheable/last-build.bin +0 -0
  10. package/espresso-server/gradle/libs.versions.toml +2 -0
  11. package/espresso-server/library/build.gradle.kts +3 -0
  12. package/espresso-server/library/src/composeOn/java/io/appium/espressoserver/lib/helpers/ComposeNodeFinder.kt +3 -3
  13. package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/handlers/exceptions/XPathLookupException.kt +10 -2
  14. package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/helpers/Version.kt +1 -1
  15. package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/helpers/ViewFinder.kt +3 -0
  16. package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/model/SourceDocument.kt +4 -21
  17. package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/model/XPathQuery.kt +64 -0
  18. package/espresso-server/library/src/main/java/io/appium/espressoserver/lib/viewmatcher/WithXPath.kt +3 -3
  19. package/espresso-server/library/src/test/java/io/appium/espressoserver/test/helpers/XPathQueryTests.kt +101 -0
  20. package/espresso-server/settings.gradle.kts +4 -0
  21. package/node_modules/@appium/base-driver/build/lib/basedriver/helpers/caps.js +1 -1
  22. package/node_modules/@appium/base-driver/lib/basedriver/helpers/caps.ts +1 -1
  23. package/node_modules/@appium/base-driver/package.json +4 -4
  24. package/node_modules/@appium/logger/CHANGELOG.md +37 -0
  25. package/node_modules/@appium/logger/package.json +2 -2
  26. package/node_modules/@appium/schema/package.json +2 -2
  27. package/node_modules/@appium/support/build/lib/zip.d.ts.map +1 -1
  28. package/node_modules/@appium/support/build/lib/zip.js +11 -11
  29. package/node_modules/@appium/support/build/lib/zip.js.map +1 -1
  30. package/node_modules/@appium/support/lib/zip.ts +11 -12
  31. package/node_modules/@appium/support/node_modules/teen_process/CHANGELOG.md +1122 -0
  32. package/node_modules/@appium/support/node_modules/teen_process/LICENSE +201 -0
  33. package/node_modules/@appium/support/node_modules/teen_process/README.md +270 -0
  34. package/node_modules/@appium/support/node_modules/teen_process/lib/circular-buffer.ts +60 -0
  35. package/node_modules/@appium/support/node_modules/teen_process/lib/exec.ts +176 -0
  36. package/node_modules/@appium/support/node_modules/teen_process/lib/helpers.ts +45 -0
  37. package/node_modules/@appium/support/node_modules/teen_process/lib/index.ts +4 -0
  38. package/node_modules/@appium/support/node_modules/teen_process/lib/subprocess.ts +358 -0
  39. package/node_modules/@appium/support/node_modules/teen_process/lib/types.ts +83 -0
  40. package/node_modules/@appium/support/node_modules/teen_process/package.json +81 -0
  41. package/node_modules/@appium/support/package.json +5 -5
  42. package/node_modules/@appium/types/package.json +5 -5
  43. package/node_modules/appium-adb/CHANGELOG.md +14 -0
  44. package/node_modules/appium-adb/node_modules/asyncbox/LICENSE +203 -0
  45. package/node_modules/appium-adb/node_modules/asyncbox/README.md +272 -0
  46. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts +9 -0
  47. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts.map +1 -0
  48. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/asyncfilter.js +36 -0
  49. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/asyncfilter.js.map +1 -0
  50. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts +9 -0
  51. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts.map +1 -0
  52. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/asyncmap.js +27 -0
  53. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/asyncmap.js.map +1 -0
  54. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/limit-function.d.ts +7 -0
  55. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/limit-function.d.ts.map +1 -0
  56. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/limit-function.js +35 -0
  57. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/collections/limit-function.js.map +1 -0
  58. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/index.d.ts +12 -0
  59. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/index.d.ts.map +1 -0
  60. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/index.js +10 -0
  61. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/index.js.map +1 -0
  62. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/lock/lock.d.ts +74 -0
  63. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/lock/lock.d.ts.map +1 -0
  64. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/lock/lock.js +302 -0
  65. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/lock/lock.js.map +1 -0
  66. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/shared/errors.d.ts +27 -0
  67. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/shared/errors.d.ts.map +1 -0
  68. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/shared/errors.js +46 -0
  69. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/shared/errors.js.map +1 -0
  70. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/shared/types.d.ts +84 -0
  71. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/shared/types.d.ts.map +1 -0
  72. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/shared/types.js +2 -0
  73. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/shared/types.js.map +1 -0
  74. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/long-sleep.d.ts +15 -0
  75. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/long-sleep.d.ts.map +1 -0
  76. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/long-sleep.js +33 -0
  77. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/long-sleep.js.map +1 -0
  78. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/retry.d.ts +17 -0
  79. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/retry.d.ts.map +1 -0
  80. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/retry.js +53 -0
  81. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/retry.js.map +1 -0
  82. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/sleep.d.ts +20 -0
  83. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/sleep.d.ts.map +1 -0
  84. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/sleep.js +58 -0
  85. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/sleep.js.map +1 -0
  86. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts +18 -0
  87. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts.map +1 -0
  88. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/wait-for-condition.js +48 -0
  89. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/wait-for-condition.js.map +1 -0
  90. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/with-timeout.d.ts +16 -0
  91. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/with-timeout.d.ts.map +1 -0
  92. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/with-timeout.js +42 -0
  93. package/node_modules/appium-adb/node_modules/asyncbox/build/lib/time/with-timeout.js.map +1 -0
  94. package/node_modules/appium-adb/node_modules/asyncbox/lib/collections/asyncfilter.ts +42 -0
  95. package/node_modules/appium-adb/node_modules/asyncbox/lib/collections/asyncmap.ts +33 -0
  96. package/node_modules/appium-adb/node_modules/asyncbox/lib/collections/limit-function.ts +34 -0
  97. package/node_modules/appium-adb/node_modules/asyncbox/lib/index.ts +28 -0
  98. package/node_modules/appium-adb/node_modules/asyncbox/lib/lock/lock.ts +369 -0
  99. package/node_modules/appium-adb/node_modules/asyncbox/lib/shared/errors.ts +51 -0
  100. package/node_modules/appium-adb/node_modules/asyncbox/lib/shared/types.ts +88 -0
  101. package/node_modules/appium-adb/node_modules/asyncbox/lib/time/long-sleep.ts +38 -0
  102. package/node_modules/appium-adb/node_modules/asyncbox/lib/time/retry.ts +61 -0
  103. package/node_modules/appium-adb/node_modules/asyncbox/lib/time/sleep.ts +79 -0
  104. package/node_modules/appium-adb/node_modules/asyncbox/lib/time/wait-for-condition.ts +52 -0
  105. package/node_modules/appium-adb/node_modules/asyncbox/lib/time/with-timeout.ts +43 -0
  106. package/node_modules/appium-adb/node_modules/asyncbox/package.json +60 -0
  107. package/node_modules/appium-adb/package.json +4 -4
  108. package/node_modules/appium-android-driver/CHANGELOG.md +36 -0
  109. package/node_modules/appium-android-driver/README.md +4 -0
  110. package/node_modules/appium-android-driver/build/lib/commands/media-stream/batcher.d.ts +16 -0
  111. package/node_modules/appium-android-driver/build/lib/commands/media-stream/batcher.d.ts.map +1 -0
  112. package/node_modules/appium-android-driver/build/lib/commands/media-stream/batcher.js +42 -0
  113. package/node_modules/appium-android-driver/build/lib/commands/media-stream/batcher.js.map +1 -0
  114. package/node_modules/appium-android-driver/build/lib/commands/media-stream/capabilities.d.ts +11 -0
  115. package/node_modules/appium-android-driver/build/lib/commands/media-stream/capabilities.d.ts.map +1 -0
  116. package/node_modules/appium-android-driver/build/lib/commands/media-stream/capabilities.js +96 -0
  117. package/node_modules/appium-android-driver/build/lib/commands/media-stream/capabilities.js.map +1 -0
  118. package/node_modules/appium-android-driver/build/lib/commands/media-stream/constants.d.ts +14 -0
  119. package/node_modules/appium-android-driver/build/lib/commands/media-stream/constants.d.ts.map +1 -0
  120. package/node_modules/appium-android-driver/build/lib/commands/media-stream/constants.js +16 -0
  121. package/node_modules/appium-android-driver/build/lib/commands/media-stream/constants.js.map +1 -0
  122. package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.d.ts +42 -0
  123. package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.d.ts.map +1 -0
  124. package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.js +127 -0
  125. package/node_modules/appium-android-driver/build/lib/commands/media-stream/exports.js.map +1 -0
  126. package/node_modules/appium-android-driver/build/lib/commands/media-stream/jpeg.d.ts +6 -0
  127. package/node_modules/appium-android-driver/build/lib/commands/media-stream/jpeg.d.ts.map +1 -0
  128. package/node_modules/appium-android-driver/build/lib/commands/media-stream/jpeg.js +17 -0
  129. package/node_modules/appium-android-driver/build/lib/commands/media-stream/jpeg.js.map +1 -0
  130. package/node_modules/appium-android-driver/build/lib/commands/media-stream/sps.d.ts +12 -0
  131. package/node_modules/appium-android-driver/build/lib/commands/media-stream/sps.d.ts.map +1 -0
  132. package/node_modules/appium-android-driver/build/lib/commands/media-stream/sps.js +196 -0
  133. package/node_modules/appium-android-driver/build/lib/commands/media-stream/sps.js.map +1 -0
  134. package/node_modules/appium-android-driver/build/lib/commands/media-stream/stream.d.ts +65 -0
  135. package/node_modules/appium-android-driver/build/lib/commands/media-stream/stream.d.ts.map +1 -0
  136. package/node_modules/appium-android-driver/build/lib/commands/media-stream/stream.js +339 -0
  137. package/node_modules/appium-android-driver/build/lib/commands/media-stream/stream.js.map +1 -0
  138. package/node_modules/appium-android-driver/build/lib/commands/media-stream/types.d.ts +67 -0
  139. package/node_modules/appium-android-driver/build/lib/commands/media-stream/types.d.ts.map +1 -0
  140. package/node_modules/appium-android-driver/build/lib/commands/media-stream/types.js +2 -0
  141. package/node_modules/appium-android-driver/build/lib/commands/media-stream/types.js.map +1 -0
  142. package/node_modules/appium-android-driver/build/lib/driver.d.ts +20 -0
  143. package/node_modules/appium-android-driver/build/lib/driver.d.ts.map +1 -1
  144. package/node_modules/appium-android-driver/build/lib/driver.js +9 -0
  145. package/node_modules/appium-android-driver/build/lib/driver.js.map +1 -1
  146. package/node_modules/appium-android-driver/build/lib/execute-method-map.d.ts +16 -0
  147. package/node_modules/appium-android-driver/build/lib/execute-method-map.d.ts.map +1 -1
  148. package/node_modules/appium-android-driver/build/lib/execute-method-map.js +16 -0
  149. package/node_modules/appium-android-driver/build/lib/execute-method-map.js.map +1 -1
  150. package/node_modules/appium-android-driver/lib/commands/media-stream/batcher.ts +44 -0
  151. package/node_modules/appium-android-driver/lib/commands/media-stream/capabilities.ts +101 -0
  152. package/node_modules/appium-android-driver/lib/commands/media-stream/constants.ts +15 -0
  153. package/node_modules/appium-android-driver/lib/commands/media-stream/exports.ts +182 -0
  154. package/node_modules/appium-android-driver/lib/commands/media-stream/jpeg.ts +16 -0
  155. package/node_modules/appium-android-driver/lib/commands/media-stream/sps.ts +208 -0
  156. package/node_modules/appium-android-driver/lib/commands/media-stream/stream.ts +385 -0
  157. package/node_modules/appium-android-driver/lib/commands/media-stream/types.ts +65 -0
  158. package/node_modules/appium-android-driver/lib/driver.ts +16 -0
  159. package/node_modules/appium-android-driver/lib/execute-method-map.ts +17 -0
  160. package/node_modules/appium-android-driver/node_modules/asyncbox/LICENSE +203 -0
  161. package/node_modules/appium-android-driver/node_modules/asyncbox/README.md +272 -0
  162. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts +9 -0
  163. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts.map +1 -0
  164. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncfilter.js +36 -0
  165. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncfilter.js.map +1 -0
  166. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts +9 -0
  167. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts.map +1 -0
  168. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncmap.js +27 -0
  169. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/asyncmap.js.map +1 -0
  170. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/limit-function.d.ts +7 -0
  171. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/limit-function.d.ts.map +1 -0
  172. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/limit-function.js +35 -0
  173. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/collections/limit-function.js.map +1 -0
  174. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/index.d.ts +12 -0
  175. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/index.d.ts.map +1 -0
  176. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/index.js +10 -0
  177. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/index.js.map +1 -0
  178. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/lock/lock.d.ts +74 -0
  179. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/lock/lock.d.ts.map +1 -0
  180. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/lock/lock.js +302 -0
  181. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/lock/lock.js.map +1 -0
  182. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/errors.d.ts +27 -0
  183. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/errors.d.ts.map +1 -0
  184. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/errors.js +46 -0
  185. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/errors.js.map +1 -0
  186. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/types.d.ts +84 -0
  187. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/types.d.ts.map +1 -0
  188. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/types.js +2 -0
  189. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/shared/types.js.map +1 -0
  190. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/long-sleep.d.ts +15 -0
  191. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/long-sleep.d.ts.map +1 -0
  192. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/long-sleep.js +33 -0
  193. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/long-sleep.js.map +1 -0
  194. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/retry.d.ts +17 -0
  195. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/retry.d.ts.map +1 -0
  196. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/retry.js +53 -0
  197. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/retry.js.map +1 -0
  198. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/sleep.d.ts +20 -0
  199. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/sleep.d.ts.map +1 -0
  200. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/sleep.js +58 -0
  201. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/sleep.js.map +1 -0
  202. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts +18 -0
  203. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts.map +1 -0
  204. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/wait-for-condition.js +48 -0
  205. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/wait-for-condition.js.map +1 -0
  206. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/with-timeout.d.ts +16 -0
  207. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/with-timeout.d.ts.map +1 -0
  208. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/with-timeout.js +42 -0
  209. package/node_modules/appium-android-driver/node_modules/asyncbox/build/lib/time/with-timeout.js.map +1 -0
  210. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/collections/asyncfilter.ts +42 -0
  211. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/collections/asyncmap.ts +33 -0
  212. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/collections/limit-function.ts +34 -0
  213. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/index.ts +28 -0
  214. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/lock/lock.ts +369 -0
  215. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/shared/errors.ts +51 -0
  216. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/shared/types.ts +88 -0
  217. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/time/long-sleep.ts +38 -0
  218. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/time/retry.ts +61 -0
  219. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/time/sleep.ts +79 -0
  220. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/time/wait-for-condition.ts +52 -0
  221. package/node_modules/appium-android-driver/node_modules/asyncbox/lib/time/with-timeout.ts +43 -0
  222. package/node_modules/appium-android-driver/node_modules/asyncbox/package.json +60 -0
  223. package/node_modules/appium-android-driver/package.json +7 -7
  224. package/node_modules/appium-chromedriver/CHANGELOG.md +14 -0
  225. package/node_modules/appium-chromedriver/node_modules/asyncbox/LICENSE +203 -0
  226. package/node_modules/appium-chromedriver/node_modules/asyncbox/README.md +272 -0
  227. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts +9 -0
  228. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts.map +1 -0
  229. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncfilter.js +36 -0
  230. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncfilter.js.map +1 -0
  231. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts +9 -0
  232. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts.map +1 -0
  233. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncmap.js +27 -0
  234. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/asyncmap.js.map +1 -0
  235. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/limit-function.d.ts +7 -0
  236. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/limit-function.d.ts.map +1 -0
  237. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/limit-function.js +35 -0
  238. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/collections/limit-function.js.map +1 -0
  239. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/index.d.ts +12 -0
  240. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/index.d.ts.map +1 -0
  241. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/index.js +10 -0
  242. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/index.js.map +1 -0
  243. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/lock/lock.d.ts +74 -0
  244. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/lock/lock.d.ts.map +1 -0
  245. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/lock/lock.js +302 -0
  246. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/lock/lock.js.map +1 -0
  247. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/errors.d.ts +27 -0
  248. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/errors.d.ts.map +1 -0
  249. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/errors.js +46 -0
  250. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/errors.js.map +1 -0
  251. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/types.d.ts +84 -0
  252. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/types.d.ts.map +1 -0
  253. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/types.js +2 -0
  254. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/shared/types.js.map +1 -0
  255. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/long-sleep.d.ts +15 -0
  256. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/long-sleep.d.ts.map +1 -0
  257. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/long-sleep.js +33 -0
  258. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/long-sleep.js.map +1 -0
  259. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/retry.d.ts +17 -0
  260. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/retry.d.ts.map +1 -0
  261. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/retry.js +53 -0
  262. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/retry.js.map +1 -0
  263. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/sleep.d.ts +20 -0
  264. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/sleep.d.ts.map +1 -0
  265. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/sleep.js +58 -0
  266. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/sleep.js.map +1 -0
  267. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts +18 -0
  268. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts.map +1 -0
  269. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/wait-for-condition.js +48 -0
  270. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/wait-for-condition.js.map +1 -0
  271. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/with-timeout.d.ts +16 -0
  272. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/with-timeout.d.ts.map +1 -0
  273. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/with-timeout.js +42 -0
  274. package/node_modules/appium-chromedriver/node_modules/asyncbox/build/lib/time/with-timeout.js.map +1 -0
  275. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/collections/asyncfilter.ts +42 -0
  276. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/collections/asyncmap.ts +33 -0
  277. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/collections/limit-function.ts +34 -0
  278. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/index.ts +28 -0
  279. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/lock/lock.ts +369 -0
  280. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/shared/errors.ts +51 -0
  281. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/shared/types.ts +88 -0
  282. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/time/long-sleep.ts +38 -0
  283. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/time/retry.ts +61 -0
  284. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/time/sleep.ts +79 -0
  285. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/time/wait-for-condition.ts +52 -0
  286. package/node_modules/appium-chromedriver/node_modules/asyncbox/lib/time/with-timeout.ts +43 -0
  287. package/node_modules/appium-chromedriver/node_modules/asyncbox/package.json +60 -0
  288. package/node_modules/appium-chromedriver/package.json +4 -4
  289. package/node_modules/io.appium.settings/CHANGELOG.md +21 -0
  290. package/node_modules/io.appium.settings/apks/settings_apk-debug.apk +0 -0
  291. package/node_modules/io.appium.settings/build/lib/commands/video-stream.d.ts +9 -0
  292. package/node_modules/io.appium.settings/build/lib/commands/video-stream.d.ts.map +1 -1
  293. package/node_modules/io.appium.settings/build/lib/commands/video-stream.js +16 -1
  294. package/node_modules/io.appium.settings/build/lib/commands/video-stream.js.map +1 -1
  295. package/node_modules/io.appium.settings/build/lib/constants.d.ts +2 -0
  296. package/node_modules/io.appium.settings/build/lib/constants.d.ts.map +1 -1
  297. package/node_modules/io.appium.settings/build/lib/constants.js +2 -0
  298. package/node_modules/io.appium.settings/build/lib/constants.js.map +1 -1
  299. package/node_modules/io.appium.settings/build/lib/index.d.ts +3 -0
  300. package/node_modules/io.appium.settings/build/lib/index.d.ts.map +1 -1
  301. package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.d.ts +3 -1
  302. package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.d.ts.map +1 -1
  303. package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.js +2 -0
  304. package/node_modules/io.appium.settings/build/lib/utils/streaming-protocol.js.map +1 -1
  305. package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.d.ts +11 -0
  306. package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.d.ts.map +1 -1
  307. package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.js +40 -0
  308. package/node_modules/io.appium.settings/build/lib/utils/streaming-transport.js.map +1 -1
  309. package/node_modules/io.appium.settings/lib/commands/video-stream.ts +17 -0
  310. package/node_modules/io.appium.settings/lib/constants.ts +2 -0
  311. package/node_modules/io.appium.settings/lib/index.ts +3 -0
  312. package/node_modules/io.appium.settings/lib/utils/streaming-protocol.ts +2 -0
  313. package/node_modules/io.appium.settings/lib/utils/streaming-transport.ts +43 -0
  314. package/node_modules/io.appium.settings/node_modules/asyncbox/LICENSE +203 -0
  315. package/node_modules/io.appium.settings/node_modules/asyncbox/README.md +272 -0
  316. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts +9 -0
  317. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncfilter.d.ts.map +1 -0
  318. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncfilter.js +36 -0
  319. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncfilter.js.map +1 -0
  320. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts +9 -0
  321. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncmap.d.ts.map +1 -0
  322. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncmap.js +27 -0
  323. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/asyncmap.js.map +1 -0
  324. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/limit-function.d.ts +7 -0
  325. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/limit-function.d.ts.map +1 -0
  326. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/limit-function.js +35 -0
  327. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/collections/limit-function.js.map +1 -0
  328. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/index.d.ts +12 -0
  329. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/index.d.ts.map +1 -0
  330. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/index.js +10 -0
  331. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/index.js.map +1 -0
  332. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/lock/lock.d.ts +74 -0
  333. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/lock/lock.d.ts.map +1 -0
  334. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/lock/lock.js +302 -0
  335. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/lock/lock.js.map +1 -0
  336. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/errors.d.ts +27 -0
  337. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/errors.d.ts.map +1 -0
  338. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/errors.js +46 -0
  339. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/errors.js.map +1 -0
  340. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/types.d.ts +84 -0
  341. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/types.d.ts.map +1 -0
  342. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/types.js +2 -0
  343. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/shared/types.js.map +1 -0
  344. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/long-sleep.d.ts +15 -0
  345. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/long-sleep.d.ts.map +1 -0
  346. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/long-sleep.js +33 -0
  347. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/long-sleep.js.map +1 -0
  348. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/retry.d.ts +17 -0
  349. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/retry.d.ts.map +1 -0
  350. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/retry.js +53 -0
  351. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/retry.js.map +1 -0
  352. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/sleep.d.ts +20 -0
  353. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/sleep.d.ts.map +1 -0
  354. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/sleep.js +58 -0
  355. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/sleep.js.map +1 -0
  356. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts +18 -0
  357. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/wait-for-condition.d.ts.map +1 -0
  358. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/wait-for-condition.js +48 -0
  359. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/wait-for-condition.js.map +1 -0
  360. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/with-timeout.d.ts +16 -0
  361. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/with-timeout.d.ts.map +1 -0
  362. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/with-timeout.js +42 -0
  363. package/node_modules/io.appium.settings/node_modules/asyncbox/build/lib/time/with-timeout.js.map +1 -0
  364. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/collections/asyncfilter.ts +42 -0
  365. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/collections/asyncmap.ts +33 -0
  366. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/collections/limit-function.ts +34 -0
  367. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/index.ts +28 -0
  368. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/lock/lock.ts +369 -0
  369. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/shared/errors.ts +51 -0
  370. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/shared/types.ts +88 -0
  371. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/time/long-sleep.ts +38 -0
  372. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/time/retry.ts +61 -0
  373. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/time/sleep.ts +79 -0
  374. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/time/wait-for-condition.ts +52 -0
  375. package/node_modules/io.appium.settings/node_modules/asyncbox/lib/time/with-timeout.ts +43 -0
  376. package/node_modules/io.appium.settings/node_modules/asyncbox/package.json +60 -0
  377. package/node_modules/io.appium.settings/package.json +5 -5
  378. package/node_modules/teen_process/CHANGELOG.md +17 -0
  379. package/node_modules/teen_process/README.md +2 -2
  380. package/node_modules/teen_process/build/lib/circular-buffer.d.ts +13 -0
  381. package/node_modules/teen_process/build/lib/circular-buffer.d.ts.map +1 -0
  382. package/node_modules/teen_process/build/lib/circular-buffer.js +53 -0
  383. package/node_modules/teen_process/build/lib/circular-buffer.js.map +1 -0
  384. package/node_modules/teen_process/build/lib/exec.d.ts +33 -0
  385. package/node_modules/teen_process/build/lib/exec.d.ts.map +1 -0
  386. package/node_modules/teen_process/build/lib/exec.js +164 -0
  387. package/node_modules/teen_process/build/lib/exec.js.map +1 -0
  388. package/node_modules/teen_process/build/lib/helpers.d.ts +2 -0
  389. package/node_modules/teen_process/build/lib/helpers.d.ts.map +1 -0
  390. package/node_modules/teen_process/build/lib/helpers.js +41 -0
  391. package/node_modules/teen_process/build/lib/helpers.js.map +1 -0
  392. package/node_modules/teen_process/build/lib/index.d.ts +5 -0
  393. package/node_modules/teen_process/build/lib/index.d.ts.map +1 -0
  394. package/node_modules/teen_process/build/lib/index.js +4 -0
  395. package/node_modules/teen_process/build/lib/index.js.map +1 -0
  396. package/node_modules/teen_process/build/lib/subprocess.d.ts +131 -0
  397. package/node_modules/teen_process/build/lib/subprocess.d.ts.map +1 -0
  398. package/node_modules/teen_process/build/lib/subprocess.js +336 -0
  399. package/node_modules/teen_process/build/lib/subprocess.js.map +1 -0
  400. package/node_modules/teen_process/build/lib/types.d.ts +71 -0
  401. package/node_modules/teen_process/build/lib/types.d.ts.map +1 -0
  402. package/node_modules/teen_process/build/lib/types.js +2 -0
  403. package/node_modules/teen_process/build/lib/types.js.map +1 -0
  404. package/node_modules/teen_process/lib/exec.ts +15 -2
  405. package/node_modules/teen_process/lib/subprocess.ts +146 -110
  406. package/node_modules/teen_process/package.json +14 -25
  407. package/package.json +5 -5
  408. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/circular-buffer.d.ts +0 -0
  409. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/circular-buffer.d.ts.map +0 -0
  410. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/circular-buffer.js +0 -0
  411. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/circular-buffer.js.map +0 -0
  412. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/exec.d.ts +0 -0
  413. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/exec.d.ts.map +0 -0
  414. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/exec.js +0 -0
  415. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/exec.js.map +0 -0
  416. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/helpers.d.ts +0 -0
  417. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/helpers.d.ts.map +0 -0
  418. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/helpers.js +0 -0
  419. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/helpers.js.map +0 -0
  420. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/index.d.ts +0 -0
  421. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/index.d.ts.map +0 -0
  422. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/index.js +0 -0
  423. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/index.js.map +0 -0
  424. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/subprocess.d.ts +0 -0
  425. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/subprocess.d.ts.map +0 -0
  426. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/subprocess.js +0 -0
  427. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/subprocess.js.map +0 -0
  428. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/types.d.ts +0 -0
  429. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/types.d.ts.map +0 -0
  430. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/types.js +0 -0
  431. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/lib/types.js.map +0 -0
  432. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/cjs/package.json +0 -0
  433. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/circular-buffer.d.ts +0 -0
  434. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/circular-buffer.d.ts.map +0 -0
  435. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/circular-buffer.js +0 -0
  436. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/circular-buffer.js.map +0 -0
  437. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/exec.d.ts +0 -0
  438. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/exec.d.ts.map +0 -0
  439. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/exec.js +0 -0
  440. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/exec.js.map +0 -0
  441. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/helpers.d.ts +0 -0
  442. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/helpers.d.ts.map +0 -0
  443. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/helpers.js +0 -0
  444. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/helpers.js.map +0 -0
  445. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/index.d.ts +0 -0
  446. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/index.d.ts.map +0 -0
  447. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/index.js +0 -0
  448. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/index.js.map +0 -0
  449. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/subprocess.d.ts +0 -0
  450. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/subprocess.d.ts.map +0 -0
  451. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/subprocess.js +0 -0
  452. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/subprocess.js.map +0 -0
  453. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/types.d.ts +0 -0
  454. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/types.d.ts.map +0 -0
  455. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/types.js +0 -0
  456. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/lib/types.js.map +0 -0
  457. /package/node_modules/{teen_process → @appium/support/node_modules/teen_process}/build/esm/package.json +0 -0
@@ -0,0 +1,52 @@
1
+ import {ConditionUnmetError} from '../shared/errors.js';
2
+ import type {WaitForConditionOptions} from '../shared/types.js';
3
+ import {sleep} from './sleep.js';
4
+
5
+ /**
6
+ * Takes a condition (a function returning a boolean or boolean promise), and
7
+ * waits until the condition is true.
8
+ *
9
+ * Throws a {@link ConditionUnmetError} (a {@link TimeoutError}; message matches `/Condition unmet/`) if the condition has not been satisfied
10
+ * within the allocated time, unless an error is provided in the options, as the
11
+ * `error` property, which is either thrown itself, or used as the message.
12
+ *
13
+ * The condition result is returned if it is not falsy. If the condition throws an
14
+ * error then this exception will be immediately passed through.
15
+ *
16
+ * The default options are: `{ waitMs: 5000, intervalMs: 500 }`
17
+ * @param condFn - The condition function to evaluate
18
+ * @param options - Options for controlling the wait behavior
19
+ */
20
+ export async function waitForCondition<T>(
21
+ condFn: () => Promise<T> | T,
22
+ options: WaitForConditionOptions = {},
23
+ ): Promise<T> {
24
+ const opts: WaitForConditionOptions & {waitMs: number; intervalMs: number} = {
25
+ ...options,
26
+ waitMs: typeof options.waitMs === 'number' ? options.waitMs : 5000,
27
+ intervalMs: typeof options.intervalMs === 'number' ? options.intervalMs : 500,
28
+ };
29
+ const debug = opts.logger ? opts.logger.debug.bind(opts.logger) : () => undefined;
30
+ const error = opts.error;
31
+ const begunAt = performance.now();
32
+ const endAt = begunAt + opts.waitMs;
33
+ for (;;) {
34
+ const result = await condFn();
35
+ if (result) {
36
+ return result;
37
+ }
38
+ const now = performance.now();
39
+ const waited = Math.round(now - begunAt);
40
+ const remainingTime = endAt - now;
41
+ if (now < endAt) {
42
+ debug(`Waited for ${waited} ms so far`);
43
+ await sleep(Math.min(opts.intervalMs, remainingTime));
44
+ continue;
45
+ }
46
+ // if there is an error option, it is either a string message or an error itself
47
+ if (error) {
48
+ throw typeof error === 'string' ? new ConditionUnmetError(error) : error;
49
+ }
50
+ throw new ConditionUnmetError(`Condition unmet after ${waited} ms. Timing out.`);
51
+ }
52
+ }
@@ -0,0 +1,43 @@
1
+ import {TimeoutError} from '../shared/errors.js';
2
+
3
+ /**
4
+ * Resolves with `promise` or rejects if it does not settle before `timeoutMs`.
5
+ *
6
+ * If the deadline passes first: with no third argument (or a falsy non-error value), rejects
7
+ * with {@link TimeoutError} whose message includes `timeoutMs`; with a non-empty string,
8
+ * rejects with {@link TimeoutError} using that message; with an `Error` instance, rejects
9
+ * with that same instance.
10
+ *
11
+ * @param promise - Promise to race against the timeout.
12
+ * @param timeoutMs - Maximum time in milliseconds before rejecting if `promise` has not settled.
13
+ * @param messageOrError - Optional override for the timeout rejection: custom {@link TimeoutError}
14
+ * message when the string is non-empty, or an existing `Error` to reject with verbatim.
15
+ * Omitted, `undefined`, or other falsy non-error values use the default timeout message (includes `timeoutMs`).
16
+ */
17
+ export async function withTimeout<T>(
18
+ promise: Promise<T>,
19
+ timeoutMs: number,
20
+ messageOrError?: string | Error,
21
+ ): Promise<T> {
22
+ let timer: NodeJS.Timeout | null = null;
23
+ try {
24
+ return await Promise.race([
25
+ promise,
26
+ new Promise<T>((_resolve, reject) => {
27
+ timer = setTimeout(() => {
28
+ if (typeof messageOrError === 'string' && messageOrError) {
29
+ reject(new TimeoutError(messageOrError));
30
+ } else if (!messageOrError) {
31
+ reject(new TimeoutError(`Operation timed out after ${timeoutMs}ms`));
32
+ } else {
33
+ reject(messageOrError);
34
+ }
35
+ }, timeoutMs);
36
+ }),
37
+ ]);
38
+ } finally {
39
+ if (timer) {
40
+ clearTimeout(timer);
41
+ }
42
+ }
43
+ }
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "asyncbox",
3
+ "version": "7.0.0",
4
+ "description": "A collection of small async/await utilities",
5
+ "keywords": [
6
+ "async",
7
+ "async/await",
8
+ "es7"
9
+ ],
10
+ "bugs": {
11
+ "url": "https://github.com/appium/asyncbox/issues"
12
+ },
13
+ "license": "Apache-2.0",
14
+ "author": "jlipps@gmail.com",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/appium/asyncbox.git"
18
+ },
19
+ "bin": {},
20
+ "directories": {
21
+ "lib": "./lib"
22
+ },
23
+ "files": [
24
+ "lib/**/*",
25
+ "build/lib/**/*"
26
+ ],
27
+ "type": "module",
28
+ "module": "./build/lib/index.js",
29
+ "types": "./build/lib/index.d.ts",
30
+ "exports": {
31
+ ".": {
32
+ "types": "./build/lib/index.d.ts",
33
+ "default": "./build/lib/index.js"
34
+ },
35
+ "./package.json": "./package.json"
36
+ },
37
+ "scripts": {
38
+ "build": "tsc -b",
39
+ "clean": "node -e \"require('fs').rmSync('build', {recursive: true, force: true})\"",
40
+ "rebuild": "npm run clean; npm run build",
41
+ "dev": "npm run build -- --watch",
42
+ "prepare": "npm run rebuild",
43
+ "test": "node --test --enable-source-maps --test-force-exit --test-timeout=60000 \"./build/test/**/*.spec.js\"",
44
+ "lint": "oxlint -c oxlint.config.mjs .",
45
+ "lint:fix": "oxlint -c oxlint.config.mjs --fix .",
46
+ "format": "oxfmt -c oxfmt.config.mjs .",
47
+ "format:check": "oxfmt -c oxfmt.config.mjs --check .",
48
+ "watch": "npm run dev"
49
+ },
50
+ "devDependencies": {
51
+ "@appium/oxc-config": "^2.0.0-beta.2",
52
+ "@appium/semantic-release-config": "^2.0.0-beta.1",
53
+ "@appium/tsconfig": "^2.0.0-beta.1",
54
+ "@types/node": "^26.1.0"
55
+ },
56
+ "engines": {
57
+ "node": "^22.22.2 || ^24.15.0 || >=26.0.0",
58
+ "npm": ">=10"
59
+ }
60
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appium-adb",
3
- "version": "17.0.1",
3
+ "version": "17.0.3",
4
4
  "description": "Android Debug Bridge interface",
5
5
  "homepage": "https://appium.io",
6
6
  "bugs": {
@@ -45,11 +45,11 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@appium/support": "^8.0.0-beta.7",
48
- "asyncbox": "^6.6.0",
48
+ "asyncbox": "^7.0.0",
49
49
  "ini": "^6.0.0",
50
50
  "lru-cache": "^11.1.0",
51
51
  "semver": "^7.0.0",
52
- "teen_process": "^4.2.0"
52
+ "teen_process": "^5.0.0"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@appium/tsconfig": "^2.0.0-beta.2",
@@ -64,5 +64,5 @@
64
64
  "node": "^22.22.2 || ^24.15.0 || >=26.0.0",
65
65
  "npm": ">=10"
66
66
  },
67
- "gitHead": "97a1a4c2d4d9528f6c93ec4a27c47743a2e60ca2"
67
+ "gitHead": "63cd0c757b1a2c7ca5ff05e9000ec86ed470f3b4"
68
68
  }
@@ -3,6 +3,42 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [15.2.2](https://github.com/appium/appium-android/compare/appium-android-driver@15.2.1...appium-android-driver@15.2.2) (2026-11-15)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **driver-lib:** keep stopping an ended media stream a no-op ([#124](https://github.com/appium/appium-android/issues/124)) ([037f1c8](https://github.com/appium/appium-android/commit/037f1c8d76a58c78443b483aae7bcca85516239e))
11
+
12
+
13
+ ## [15.2.1](https://github.com/appium/appium-android/compare/appium-android-driver@15.2.0...appium-android-driver@15.2.1) (2026-11-15)
14
+
15
+ **Note:** Version bump only for package appium-android-driver
16
+
17
+
18
+
19
+
20
+
21
+ ## [15.2.0](https://github.com/appium/appium-android/compare/appium-android-driver@15.1.21...appium-android-driver@15.2.0) (2026-11-14)
22
+
23
+ ### Features
24
+
25
+ * **driver-lib:** stream screen media (video, audio, JPEG) as BiDi events ([#116](https://github.com/appium/appium-android/issues/116)) ([09d3752](https://github.com/appium/appium-android/commit/09d3752edbe43168349b662b03c6083ee8296709))
26
+
27
+
28
+ ## [15.1.21](https://github.com/appium/appium-android/compare/appium-android-driver@15.1.20...appium-android-driver@15.1.21) (2026-11-14)
29
+
30
+ ### Miscellaneous Chores
31
+
32
+ * **settings:** update dependency teen_process to v5 ([#108](https://github.com/appium/appium-android/issues/108)) ([748a7ec](https://github.com/appium/appium-android/commit/748a7ecb60bc59c596a69bcf2fce14dff036a4a4))
33
+
34
+
35
+ ## [15.1.20](https://github.com/appium/appium-android/compare/appium-android-driver@15.1.19...appium-android-driver@15.1.20) (2026-11-13)
36
+
37
+ ### Miscellaneous Chores
38
+
39
+ * **settings:** update dependency asyncbox to v7 ([#112](https://github.com/appium/appium-android/issues/112)) ([010a80f](https://github.com/appium/appium-android/commit/010a80f062a767e2181f1c5f3277ac986c002794))
40
+
41
+
6
42
  ## [15.1.19](https://github.com/appium/appium-android/compare/appium-android-driver@15.1.18...appium-android-driver@15.1.19) (2026-11-13)
7
43
 
8
44
  ### Code Refactoring
@@ -5,6 +5,10 @@
5
5
 
6
6
  Appium Android Driver is the collection of common primitives used by other Android drivers, like UIA2/Espresso. This driver cannot work as a separate entity.
7
7
 
8
+ ## Examples
9
+
10
+ - [`examples/media-stream-client.mts`](examples/media-stream-client.mts): a Node.js client that decodes the `appium:mediaStream` BiDi events into a local MJPEG HTTP server or an `.mp4` file written by `ffmpeg`. See `mobile: startMediaStream` in the driver docs.
11
+
8
12
  ## Development
9
13
 
10
14
  ### Install and Compile
@@ -0,0 +1,16 @@
1
+ import type { MediaUnit } from './types.js';
2
+ /**
3
+ * Groups units into events that are homogeneous by track and cut at video
4
+ * keyframes (a keyframe always starts a new batch).
5
+ */
6
+ export declare class UnitBatcher {
7
+ private readonly batchMs;
8
+ private readonly onBatch;
9
+ private pending;
10
+ private timer?;
11
+ constructor(batchMs: number, onBatch: (units: MediaUnit[]) => void);
12
+ push(unit: MediaUnit): void;
13
+ flush(): void;
14
+ close(): void;
15
+ }
16
+ //# sourceMappingURL=batcher.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batcher.d.ts","sourceRoot":"","sources":["../../../../lib/commands/media-stream/batcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AAE1C;;;GAGG;AACH,qBAAa,WAAW;IAKpB,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAL1B,OAAO,CAAC,OAAO,CAAmB;IAClC,OAAO,CAAC,KAAK,CAAC,CAAiB;gBAGZ,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,IAAI;IAGxD,IAAI,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI;IAa3B,KAAK,IAAI,IAAI;IAUb,KAAK,IAAI,IAAI;CAKd"}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Groups units into events that are homogeneous by track and cut at video
3
+ * keyframes (a keyframe always starts a new batch).
4
+ */
5
+ export class UnitBatcher {
6
+ batchMs;
7
+ onBatch;
8
+ pending = [];
9
+ timer;
10
+ constructor(batchMs, onBatch) {
11
+ this.batchMs = batchMs;
12
+ this.onBatch = onBatch;
13
+ }
14
+ push(unit) {
15
+ const [first] = this.pending;
16
+ if (first && (first.track !== unit.track || (unit.track === 'video' && unit.key))) {
17
+ this.flush();
18
+ }
19
+ this.pending.push(unit);
20
+ if (this.batchMs <= 0 || unit.track === 'jpeg') {
21
+ this.flush();
22
+ }
23
+ else if (!this.timer) {
24
+ this.timer = setTimeout(() => this.flush(), this.batchMs);
25
+ }
26
+ }
27
+ flush() {
28
+ clearTimeout(this.timer);
29
+ this.timer = undefined;
30
+ if (this.pending.length) {
31
+ const batch = this.pending;
32
+ this.pending = [];
33
+ this.onBatch(batch);
34
+ }
35
+ }
36
+ close() {
37
+ clearTimeout(this.timer);
38
+ this.timer = undefined;
39
+ this.pending = [];
40
+ }
41
+ }
42
+ //# sourceMappingURL=batcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batcher.js","sourceRoot":"","sources":["../../../../lib/commands/media-stream/batcher.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,OAAO,WAAW;IAKH;IACA;IALX,OAAO,GAAgB,EAAE,CAAC;IAC1B,KAAK,CAAkB;IAE/B,YACmB,OAAe,EACf,OAAqC;QADrC,YAAO,GAAP,OAAO,CAAQ;QACf,YAAO,GAAP,OAAO,CAA8B;IACrD,CAAC;IAEJ,IAAI,CAAC,IAAe;QAClB,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC;QAC7B,IAAI,KAAK,IAAI,CAAC,KAAK,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,KAAK,KAAK,OAAO,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;YAClF,IAAI,CAAC,KAAK,EAAE,CAAC;QACf,CAAC;QACD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxB,IAAI,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,IAAI,CAAC,KAAK,KAAK,MAAM,EAAE,CAAC;YAC/C,IAAI,CAAC,KAAK,EAAE,CAAC;QACf,CAAC;aAAM,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;YACvB,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5D,CAAC;IACH,CAAC;IAED,KAAK;QACH,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;QACvB,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;YACxB,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC;YAC3B,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;YAClB,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACtB,CAAC;IACH,CAAC;IAED,KAAK;QACH,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;IACpB,CAAC;CACF"}
@@ -0,0 +1,11 @@
1
+ import type { ADB } from 'appium-adb';
2
+ import type { MediaStreamCapabilities, VideoEncoderInfo } from './types.js';
3
+ /**
4
+ * Extracts the video encoders from the `dumpsys media.player` codec listing
5
+ * (Android 13+). Returns null if the listing has no encoder section at all.
6
+ */
7
+ export declare function parseVideoEncoders(dump: string): VideoEncoderInfo[] | null;
8
+ /** Returns null if the device does not list its codecs. */
9
+ export declare function queryVideoEncoders(adb: ADB): Promise<VideoEncoderInfo[] | null>;
10
+ export declare function getCapabilities(adb: ADB): Promise<MediaStreamCapabilities>;
11
+ //# sourceMappingURL=capabilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../lib/commands/media-stream/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,YAAY,CAAC;AAIpC,OAAO,KAAK,EAAC,uBAAuB,EAAE,gBAAgB,EAAC,MAAM,YAAY,CAAC;AAI1E;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,EAAE,GAAG,IAAI,CAwC1E;AAED,2DAA2D;AAC3D,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,gBAAgB,EAAE,GAAG,IAAI,CAAC,CAMrF;AAED,wBAAsB,eAAe,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAqChF"}
@@ -0,0 +1,96 @@
1
+ import { SETTINGS_HELPER_ID } from 'io.appium.settings';
2
+ import { MIN_API_LEVEL } from './constants.js';
3
+ const VIDEO_MIMES = { 'video/avc': 'h264', 'video/hevc': 'hevc' };
4
+ /**
5
+ * Extracts the video encoders from the `dumpsys media.player` codec listing
6
+ * (Android 13+). Returns null if the listing has no encoder section at all.
7
+ */
8
+ export function parseVideoEncoders(dump) {
9
+ const encoders = [];
10
+ let mime;
11
+ let current;
12
+ let sawEncoder = false;
13
+ for (const line of dump.split('\n')) {
14
+ const mimeMatch = /^Media type '([^']+)':/.exec(line);
15
+ if (mimeMatch) {
16
+ mime = mimeMatch[1];
17
+ current = undefined;
18
+ continue;
19
+ }
20
+ const encoderMatch = /^\s+Encoder "([^"]+)" supports/.exec(line);
21
+ if (encoderMatch) {
22
+ sawEncoder = true;
23
+ const codec = mime && VIDEO_MIMES[mime];
24
+ current = codec ? { name: encoderMatch[1], codec, softwareOnly: false } : undefined;
25
+ if (current) {
26
+ encoders.push(current);
27
+ }
28
+ continue;
29
+ }
30
+ if (/^\s+Decoder "/.test(line)) {
31
+ current = undefined;
32
+ continue;
33
+ }
34
+ if (!current) {
35
+ continue;
36
+ }
37
+ const software = /software-only: (\d)/.exec(line);
38
+ if (software) {
39
+ current.softwareOnly = software[1] === '1';
40
+ }
41
+ const size = /size-range = "(\d+)x(\d+)-(\d+)x(\d+)"/.exec(line);
42
+ if (size) {
43
+ current.maxWidth = Number(size[3]);
44
+ current.maxHeight = Number(size[4]);
45
+ }
46
+ }
47
+ return sawEncoder ? encoders : null;
48
+ }
49
+ /** Returns null if the device does not list its codecs. */
50
+ export async function queryVideoEncoders(adb) {
51
+ try {
52
+ return parseVideoEncoders(await adb.shell(['dumpsys', 'media.player']));
53
+ }
54
+ catch {
55
+ return null;
56
+ }
57
+ }
58
+ export async function getCapabilities(adb) {
59
+ const apiLevel = await adb.getApiLevel();
60
+ if (apiLevel < MIN_API_LEVEL) {
61
+ return {
62
+ supported: false,
63
+ reason: {
64
+ code: 'api_level_too_low',
65
+ message: `Media streaming requires API Level ${MIN_API_LEVEL}+, the device has ${apiLevel}`,
66
+ },
67
+ apiLevel,
68
+ kinds: [],
69
+ };
70
+ }
71
+ if (!(await adb.isAppInstalled(SETTINGS_HELPER_ID))) {
72
+ return {
73
+ supported: false,
74
+ reason: { code: 'settings_app_missing', message: `${SETTINGS_HELPER_ID} is not installed on the device` },
75
+ apiLevel,
76
+ kinds: [],
77
+ };
78
+ }
79
+ const encoders = await queryVideoEncoders(adb);
80
+ // A listing without any video encoder means video streams cannot start
81
+ const hasVideo = !encoders || encoders.length > 0;
82
+ return {
83
+ supported: true,
84
+ apiLevel,
85
+ kinds: hasVideo ? ['video', 'jpeg'] : ['jpeg'],
86
+ audio: hasVideo,
87
+ // Without a codec listing (older Android) the codecs are assumed rather than verified
88
+ codecs: encoders
89
+ ? {
90
+ h264: encoders.filter((e) => e.codec === 'h264'),
91
+ hevc: encoders.filter((e) => e.codec === 'hevc'),
92
+ }
93
+ : null,
94
+ };
95
+ }
96
+ //# sourceMappingURL=capabilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../../../lib/commands/media-stream/capabilities.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,kBAAkB,EAAC,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAC,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAG7C,MAAM,WAAW,GAAG,EAAC,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAU,CAAC;AAEzE;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAY;IAC7C,MAAM,QAAQ,GAAuB,EAAE,CAAC;IACxC,IAAI,IAAwB,CAAC;IAC7B,IAAI,OAAqC,CAAC;IAC1C,IAAI,UAAU,GAAG,KAAK,CAAC;IACvB,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;QACpC,MAAM,SAAS,GAAG,wBAAwB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtD,IAAI,SAAS,EAAE,CAAC;YACd,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;YACpB,OAAO,GAAG,SAAS,CAAC;YACpB,SAAS;QACX,CAAC;QACD,MAAM,YAAY,GAAG,gCAAgC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjE,IAAI,YAAY,EAAE,CAAC;YACjB,UAAU,GAAG,IAAI,CAAC;YAClB,MAAM,KAAK,GAAG,IAAI,IAAI,WAAW,CAAC,IAAgC,CAAC,CAAC;YACpE,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,EAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,IAAI,OAAO,EAAE,CAAC;gBACZ,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACzB,CAAC;YACD,SAAS;QACX,CAAC;QACD,IAAI,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YAC/B,OAAO,GAAG,SAAS,CAAC;YACpB,SAAS;QACX,CAAC;QACD,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,SAAS;QACX,CAAC;QACD,MAAM,QAAQ,GAAG,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClD,IAAI,QAAQ,EAAE,CAAC;YACb,OAAO,CAAC,YAAY,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC;QAC7C,CAAC;QACD,MAAM,IAAI,GAAG,wCAAwC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjE,IAAI,IAAI,EAAE,CAAC;YACT,OAAO,CAAC,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;YACnC,OAAO,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QACtC,CAAC;IACH,CAAC;IACD,OAAO,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC;AACtC,CAAC;AAED,2DAA2D;AAC3D,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAC,GAAQ;IAC/C,IAAI,CAAC;QACH,OAAO,kBAAkB,CAAC,MAAM,GAAG,CAAC,KAAK,CAAC,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;IAC1E,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,GAAQ;IAC5C,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,WAAW,EAAE,CAAC;IACzC,IAAI,QAAQ,GAAG,aAAa,EAAE,CAAC;QAC7B,OAAO;YACL,SAAS,EAAE,KAAK;YAChB,MAAM,EAAE;gBACN,IAAI,EAAE,mBAAmB;gBACzB,OAAO,EAAE,sCAAsC,aAAa,qBAAqB,QAAQ,EAAE;aAC5F;YACD,QAAQ;YACR,KAAK,EAAE,EAAE;SACV,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC,EAAE,CAAC;QACpD,OAAO;YACL,SAAS,EAAE,KAAK;YAChB,MAAM,EAAE,EAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,EAAE,GAAG,kBAAkB,iCAAiC,EAAC;YACvG,QAAQ;YACR,KAAK,EAAE,EAAE;SACV,CAAC;IACJ,CAAC;IACD,MAAM,QAAQ,GAAG,MAAM,kBAAkB,CAAC,GAAG,CAAC,CAAC;IAC/C,uEAAuE;IACvE,MAAM,QAAQ,GAAG,CAAC,QAAQ,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;IAClD,OAAO;QACL,SAAS,EAAE,IAAI;QACf,QAAQ;QACR,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;QAC9C,KAAK,EAAE,QAAQ;QACf,sFAAsF;QACtF,MAAM,EAAE,QAAQ;YACd,CAAC,CAAC;gBACE,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,MAAM,CAAC;gBAChD,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,MAAM,CAAC;aACjD;YACH,CAAC,CAAC,IAAI;KACT,CAAC;AACJ,CAAC"}
@@ -0,0 +1,14 @@
1
+ export declare const MEDIA_STREAM_MODULE = "appium:mediaStream";
2
+ export declare const MEDIA_UNITS_EVENT = "appium:mediaStream.units";
3
+ export declare const MEDIA_STARTED_EVENT = "appium:mediaStream.started";
4
+ export declare const MEDIA_FORMAT_CHANGED_EVENT = "appium:mediaStream.formatChanged";
5
+ export declare const MEDIA_ENDED_EVENT = "appium:mediaStream.ended";
6
+ export declare const BACKPRESSURE_EVENT_NAME = "bidiBackpressure";
7
+ export declare const MIN_API_LEVEL = 29;
8
+ export declare const KEYFRAME_REQUEST_MIN_INTERVAL_MS = 1000;
9
+ export declare const FIRST_UNIT_TIMEOUT_MS = 5000;
10
+ export declare const DEFAULT_BATCH_MS = 40;
11
+ export declare const DEFAULT_IDLE_HEARTBEAT_MS = 1000;
12
+ export declare const AUDIO_SAMPLE_RATE = 44100;
13
+ export declare const AUDIO_CHANNELS = 1;
14
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../lib/commands/media-stream/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,uBAAuB,CAAC;AACxD,eAAO,MAAM,iBAAiB,6BAAiC,CAAC;AAChE,eAAO,MAAM,mBAAmB,+BAAmC,CAAC;AACpE,eAAO,MAAM,0BAA0B,qCAAyC,CAAC;AACjF,eAAO,MAAM,iBAAiB,6BAAiC,CAAC;AAChE,eAAO,MAAM,uBAAuB,qBAAqB,CAAC;AAC1D,eAAO,MAAM,aAAa,KAAK,CAAC;AAChC,eAAO,MAAM,gCAAgC,OAAO,CAAC;AAErD,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAC1C,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,yBAAyB,OAAO,CAAC;AAE9C,eAAO,MAAM,iBAAiB,QAAQ,CAAC;AACvC,eAAO,MAAM,cAAc,IAAI,CAAC"}
@@ -0,0 +1,16 @@
1
+ export const MEDIA_STREAM_MODULE = 'appium:mediaStream';
2
+ export const MEDIA_UNITS_EVENT = `${MEDIA_STREAM_MODULE}.units`;
3
+ export const MEDIA_STARTED_EVENT = `${MEDIA_STREAM_MODULE}.started`;
4
+ export const MEDIA_FORMAT_CHANGED_EVENT = `${MEDIA_STREAM_MODULE}.formatChanged`;
5
+ export const MEDIA_ENDED_EVENT = `${MEDIA_STREAM_MODULE}.ended`;
6
+ export const BACKPRESSURE_EVENT_NAME = 'bidiBackpressure';
7
+ export const MIN_API_LEVEL = 29;
8
+ export const KEYFRAME_REQUEST_MIN_INTERVAL_MS = 1000;
9
+ // The video encoder reports its config right after it starts, regardless of screen activity
10
+ export const FIRST_UNIT_TIMEOUT_MS = 5000;
11
+ export const DEFAULT_BATCH_MS = 40;
12
+ export const DEFAULT_IDLE_HEARTBEAT_MS = 1000;
13
+ // settings app defaults, reported in `started` (ADTS AAC-LC)
14
+ export const AUDIO_SAMPLE_RATE = 44100;
15
+ export const AUDIO_CHANNELS = 1;
16
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../lib/commands/media-stream/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,mBAAmB,GAAG,oBAAoB,CAAC;AACxD,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,mBAAmB,QAAQ,CAAC;AAChE,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,mBAAmB,UAAU,CAAC;AACpE,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,mBAAmB,gBAAgB,CAAC;AACjF,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,mBAAmB,QAAQ,CAAC;AAChE,MAAM,CAAC,MAAM,uBAAuB,GAAG,kBAAkB,CAAC;AAC1D,MAAM,CAAC,MAAM,aAAa,GAAG,EAAE,CAAC;AAChC,MAAM,CAAC,MAAM,gCAAgC,GAAG,IAAI,CAAC;AACrD,4FAA4F;AAC5F,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAC1C,MAAM,CAAC,MAAM,gBAAgB,GAAG,EAAE,CAAC;AACnC,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,CAAC;AAC9C,6DAA6D;AAC7D,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC;AACvC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC"}
@@ -0,0 +1,42 @@
1
+ import type { AndroidDriverConstraints } from '../../constraints.js';
2
+ import type { AndroidDriver } from '../../driver.js';
3
+ import type { MediaKind, MediaStreamCapabilities, MediaStreamInfo } from './types.js';
4
+ declare module '../../driver.js' {
5
+ interface AndroidDriver<C extends AndroidDriverConstraints> {
6
+ mobileStartMediaStream(...args: Parameters<typeof mobileStartMediaStream>): ReturnType<typeof mobileStartMediaStream>;
7
+ mobileGetMediaStreamCapabilities(...args: Parameters<typeof mobileGetMediaStreamCapabilities>): ReturnType<typeof mobileGetMediaStreamCapabilities>;
8
+ mobileStopMediaStream(...args: Parameters<typeof mobileStopMediaStream>): ReturnType<typeof mobileStopMediaStream>;
9
+ }
10
+ }
11
+ /**
12
+ * Starts streaming the screen as `appium:mediaStream.*` BiDi events.
13
+ * Subscribe to `appium:mediaStream` before calling this. The result and the `started` event of a
14
+ * video stream carry the frame size (after any scaling to the encoder's limits).
15
+ *
16
+ * @param kind 'video' (H.264/HEVC, optionally with AAC audio) or 'jpeg'.
17
+ * @param codec Video codec, 'h264' by default.
18
+ * @param fps Requested frames per second.
19
+ * @param bitrate Video bitrate in bits per second.
20
+ * @param quality JPEG quality, 1-100.
21
+ * @param scale JPEG scale in percent, 1-100.
22
+ * @param resolution Video resolution as 'WxH'.
23
+ * @param audio Whether to add an AAC audio track (video only).
24
+ * @param batchMs Units batching window for video/audio. 40 by default.
25
+ * @param idleHeartbeatMs Re-send the last JPEG after this idle time. 1000 by default, 0 disables.
26
+ */
27
+ export declare function mobileStartMediaStream(this: AndroidDriver, kind: MediaKind, codec?: 'h264' | 'hevc', fps?: number, bitrate?: number, quality?: number, scale?: number, resolution?: string, audio?: boolean, batchMs?: number, idleHeartbeatMs?: number): Promise<MediaStreamInfo>;
28
+ /**
29
+ * Reports whether media streaming works on the device, and which video codecs it can encode.
30
+ * A software-only encoder may be limited to small frame sizes, the stream is scaled down to fit.
31
+ */
32
+ export declare function mobileGetMediaStreamCapabilities(this: AndroidDriver): Promise<MediaStreamCapabilities>;
33
+ /**
34
+ * Stops a media stream started by `mobile: startMediaStream`.
35
+ * Stopping a stream that has already ended is a no-op, also after other streams were started.
36
+ *
37
+ * @param streamId The id returned by `mobile: startMediaStream`.
38
+ */
39
+ export declare function mobileStopMediaStream(this: AndroidDriver, streamId: string): Promise<void>;
40
+ /** Stops all streams of the session; used on session deletion. */
41
+ export declare function stopAllMediaStreams(this: AndroidDriver): Promise<void>;
42
+ //# sourceMappingURL=exports.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../../lib/commands/media-stream/exports.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AACnE,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAWnD,OAAO,KAAK,EAAC,SAAS,EAAE,uBAAuB,EAAE,eAAe,EAAuB,MAAM,YAAY,CAAC;AAE1G,OAAO,QAAQ,iBAAiB,CAAC;IAC/B,UAAU,aAAa,CAAC,CAAC,SAAS,wBAAwB;QACxD,sBAAsB,CACpB,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,sBAAsB,CAAC,GACjD,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;QAC7C,gCAAgC,CAC9B,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,gCAAgC,CAAC,GAC3D,UAAU,CAAC,OAAO,gCAAgC,CAAC,CAAC;QACvD,qBAAqB,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,qBAAqB,CAAC,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;KACpH;CACF;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,aAAa,EACnB,IAAI,EAAE,SAAS,EACf,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EACvB,GAAG,CAAC,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,MAAM,EAChB,KAAK,CAAC,EAAE,MAAM,EACd,UAAU,CAAC,EAAE,MAAM,EACnB,KAAK,CAAC,EAAE,OAAO,EACf,OAAO,GAAE,MAAyB,EAClC,eAAe,GAAE,MAAkC,GAClD,OAAO,CAAC,eAAe,CAAC,CAoE1B;AAED;;;GAGG;AACH,wBAAsB,gCAAgC,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAE5G;AAED;;;;;GAKG;AACH,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAOhG;AAED,kEAAkE;AAClE,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAE5E"}
@@ -0,0 +1,127 @@
1
+ import { errors } from 'appium/driver.js';
2
+ import { BIDI_EVENT_NAME } from '../bidi/constants.js';
3
+ import { getCapabilities, queryVideoEncoders } from './capabilities.js';
4
+ import { DEFAULT_BATCH_MS, DEFAULT_IDLE_HEARTBEAT_MS, MEDIA_STREAM_MODULE, MEDIA_UNITS_EVENT, MIN_API_LEVEL, } from './constants.js';
5
+ import { MediaStream } from './stream.js';
6
+ /**
7
+ * Starts streaming the screen as `appium:mediaStream.*` BiDi events.
8
+ * Subscribe to `appium:mediaStream` before calling this. The result and the `started` event of a
9
+ * video stream carry the frame size (after any scaling to the encoder's limits).
10
+ *
11
+ * @param kind 'video' (H.264/HEVC, optionally with AAC audio) or 'jpeg'.
12
+ * @param codec Video codec, 'h264' by default.
13
+ * @param fps Requested frames per second.
14
+ * @param bitrate Video bitrate in bits per second.
15
+ * @param quality JPEG quality, 1-100.
16
+ * @param scale JPEG scale in percent, 1-100.
17
+ * @param resolution Video resolution as 'WxH'.
18
+ * @param audio Whether to add an AAC audio track (video only).
19
+ * @param batchMs Units batching window for video/audio. 40 by default.
20
+ * @param idleHeartbeatMs Re-send the last JPEG after this idle time. 1000 by default, 0 disables.
21
+ */
22
+ export async function mobileStartMediaStream(kind, codec, fps, bitrate, quality, scale, resolution, audio, batchMs = DEFAULT_BATCH_MS, idleHeartbeatMs = DEFAULT_IDLE_HEARTBEAT_MS) {
23
+ const opts = {
24
+ kind,
25
+ codec,
26
+ fps,
27
+ bitrate,
28
+ quality,
29
+ scale,
30
+ resolution,
31
+ audio,
32
+ batchMs,
33
+ idleHeartbeatMs,
34
+ };
35
+ validateOpts(opts);
36
+ const apiLevel = await this.adb.getApiLevel();
37
+ if (apiLevel < MIN_API_LEVEL) {
38
+ throw new errors.InvalidArgumentError(`Media streaming is not available on API Level ${apiLevel}. Minimum required API Level is ${MIN_API_LEVEL}.`);
39
+ }
40
+ if (kind === 'video') {
41
+ const wanted = codec ?? 'h264';
42
+ const encoders = await queryVideoEncoders(this.adb);
43
+ if (encoders && !encoders.some((e) => e.codec === wanted)) {
44
+ const others = [...new Set(encoders.map((e) => e.codec))];
45
+ throw new errors.InvalidArgumentError(`This device has no ${wanted.toUpperCase()} encoder` +
46
+ (others.length ? `, use codec=${others[0]}` : ', use kind=jpeg'));
47
+ }
48
+ }
49
+ const streams = (this._mediaStreams ??= new Map());
50
+ const ended = (this._endedMediaStreamIds ??= new Set());
51
+ for (const [id, s] of streams) {
52
+ if (s.isStopped) {
53
+ streams.delete(id);
54
+ ended.add(id);
55
+ }
56
+ }
57
+ if ([...streams.values()].some((s) => s.kind === kind)) {
58
+ throw new errors.InvalidArgumentError(`A ${kind} media stream is already running in this session`);
59
+ }
60
+ // No await between the check above and the registration below, or concurrent starts could both pass
61
+ const session = kind === 'video' ? this.settingsApp.makeVideoStreamSession() : this.settingsApp.makeJpegStreamSession();
62
+ const stream = new MediaStream(session, opts, {
63
+ emit: (event) => {
64
+ if (hasSubscribers(this, event.method)) {
65
+ this.eventEmitter.emit(BIDI_EVENT_NAME, event);
66
+ }
67
+ },
68
+ emitter: this.eventEmitter,
69
+ hasSubscribers: () => hasSubscribers(this, MEDIA_UNITS_EVENT),
70
+ log: this.log,
71
+ // Ended streams are moved to the ended ids on the next start, see mobileStopMediaStream
72
+ onEnded: () => { },
73
+ });
74
+ streams.set(stream.streamId, stream);
75
+ try {
76
+ await this.settingsApp.adjustMediaProjectionServicePermissions();
77
+ return await stream.start();
78
+ }
79
+ catch (e) {
80
+ streams.delete(stream.streamId);
81
+ await stream.stop('failed to start');
82
+ throw e instanceof TypeError || e instanceof RangeError ? new errors.InvalidArgumentError(e.message) : e;
83
+ }
84
+ }
85
+ /**
86
+ * Reports whether media streaming works on the device, and which video codecs it can encode.
87
+ * A software-only encoder may be limited to small frame sizes, the stream is scaled down to fit.
88
+ */
89
+ export async function mobileGetMediaStreamCapabilities() {
90
+ return await getCapabilities(this.adb);
91
+ }
92
+ /**
93
+ * Stops a media stream started by `mobile: startMediaStream`.
94
+ * Stopping a stream that has already ended is a no-op, also after other streams were started.
95
+ *
96
+ * @param streamId The id returned by `mobile: startMediaStream`.
97
+ */
98
+ export async function mobileStopMediaStream(streamId) {
99
+ const stream = this._mediaStreams?.get(streamId);
100
+ if (stream) {
101
+ await stream.stop();
102
+ }
103
+ else if (!this._endedMediaStreamIds?.has(streamId)) {
104
+ throw new errors.InvalidArgumentError(`Unknown media stream id '${streamId}'`);
105
+ }
106
+ }
107
+ /** Stops all streams of the session; used on session deletion. */
108
+ export async function stopAllMediaStreams() {
109
+ await Promise.all([...(this._mediaStreams?.values() ?? [])].map((s) => s.stop('session ended')));
110
+ }
111
+ function hasSubscribers(driver, method) {
112
+ return [method, MEDIA_STREAM_MODULE].some((e) => (driver.bidiEventSubs[e]?.length ?? 0) > 0);
113
+ }
114
+ function validateOpts({ kind, codec, bitrate, quality, scale, audio, batchMs, idleHeartbeatMs, }) {
115
+ if (kind !== 'video' && kind !== 'jpeg') {
116
+ throw new errors.InvalidArgumentError(`'kind' must be either 'video' or 'jpeg', got '${String(kind)}'`);
117
+ }
118
+ const wrongKind = kind === 'video' ? { quality, scale } : { codec, bitrate, audio };
119
+ const offending = Object.entries(wrongKind).filter(([, v]) => v !== undefined);
120
+ if (offending.length) {
121
+ throw new errors.InvalidArgumentError(`${offending.map(([k]) => `'${k}'`).join(', ')} not supported for kind '${kind}'`);
122
+ }
123
+ if (!Number.isInteger(batchMs) || batchMs < 0 || !Number.isInteger(idleHeartbeatMs) || idleHeartbeatMs < 0) {
124
+ throw new errors.InvalidArgumentError(`'batchMs' and 'idleHeartbeatMs' must be non-negative integers`);
125
+ }
126
+ }
127
+ //# sourceMappingURL=exports.js.map