@mobilerun/sdk 5.5.0 → 6.0.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 (502) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +0 -9
  3. package/client.d.mts +12 -30
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +12 -30
  6. package/client.d.ts.map +1 -1
  7. package/client.js +1 -18
  8. package/client.js.map +1 -1
  9. package/client.mjs +2 -19
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/apps.d.mts +39 -26
  13. package/resources/apps.d.mts.map +1 -1
  14. package/resources/apps.d.ts +39 -26
  15. package/resources/apps.d.ts.map +1 -1
  16. package/resources/apps.js +20 -7
  17. package/resources/apps.js.map +1 -1
  18. package/resources/apps.mjs +20 -7
  19. package/resources/apps.mjs.map +1 -1
  20. package/resources/assistant/conversations.d.mts +7 -17
  21. package/resources/assistant/conversations.d.mts.map +1 -1
  22. package/resources/assistant/conversations.d.ts +7 -17
  23. package/resources/assistant/conversations.d.ts.map +1 -1
  24. package/resources/assistant/conversations.js +4 -11
  25. package/resources/assistant/conversations.js.map +1 -1
  26. package/resources/assistant/conversations.mjs +4 -11
  27. package/resources/assistant/conversations.mjs.map +1 -1
  28. package/resources/connect/connect.d.mts +2 -2
  29. package/resources/connect/connect.d.mts.map +1 -1
  30. package/resources/connect/connect.d.ts +2 -2
  31. package/resources/connect/connect.d.ts.map +1 -1
  32. package/resources/connect/connect.js.map +1 -1
  33. package/resources/connect/connect.mjs.map +1 -1
  34. package/resources/connect/index.d.mts +1 -1
  35. package/resources/connect/index.d.mts.map +1 -1
  36. package/resources/connect/index.d.ts +1 -1
  37. package/resources/connect/index.d.ts.map +1 -1
  38. package/resources/connect/index.js.map +1 -1
  39. package/resources/connect/index.mjs.map +1 -1
  40. package/resources/connect/proxies.d.mts +102 -17
  41. package/resources/connect/proxies.d.mts.map +1 -1
  42. package/resources/connect/proxies.d.ts +102 -17
  43. package/resources/connect/proxies.d.ts.map +1 -1
  44. package/resources/connect/proxies.js +27 -14
  45. package/resources/connect/proxies.js.map +1 -1
  46. package/resources/connect/proxies.mjs +27 -14
  47. package/resources/connect/proxies.mjs.map +1 -1
  48. package/resources/connect/users.d.mts +4 -4
  49. package/resources/connect/users.d.ts +4 -4
  50. package/resources/connect/users.js +2 -2
  51. package/resources/connect/users.mjs +2 -2
  52. package/resources/devices/actions.d.mts +25 -5
  53. package/resources/devices/actions.d.mts.map +1 -1
  54. package/resources/devices/actions.d.ts +25 -5
  55. package/resources/devices/actions.d.ts.map +1 -1
  56. package/resources/devices/actions.js +5 -3
  57. package/resources/devices/actions.js.map +1 -1
  58. package/resources/devices/actions.mjs +5 -3
  59. package/resources/devices/actions.mjs.map +1 -1
  60. package/resources/devices/apps.d.mts +13 -0
  61. package/resources/devices/apps.d.mts.map +1 -1
  62. package/resources/devices/apps.d.ts +13 -0
  63. package/resources/devices/apps.d.ts.map +1 -1
  64. package/resources/devices/browser.d.mts +9 -3
  65. package/resources/devices/browser.d.mts.map +1 -1
  66. package/resources/devices/browser.d.ts +9 -3
  67. package/resources/devices/browser.d.ts.map +1 -1
  68. package/resources/devices/browser.js +9 -3
  69. package/resources/devices/browser.js.map +1 -1
  70. package/resources/devices/browser.mjs +9 -3
  71. package/resources/devices/browser.mjs.map +1 -1
  72. package/resources/devices/devices.d.mts +88 -36
  73. package/resources/devices/devices.d.mts.map +1 -1
  74. package/resources/devices/devices.d.ts +88 -36
  75. package/resources/devices/devices.d.ts.map +1 -1
  76. package/resources/devices/devices.js +30 -15
  77. package/resources/devices/devices.js.map +1 -1
  78. package/resources/devices/devices.mjs +30 -15
  79. package/resources/devices/devices.mjs.map +1 -1
  80. package/resources/devices/index.d.mts +3 -2
  81. package/resources/devices/index.d.mts.map +1 -1
  82. package/resources/devices/index.d.ts +3 -2
  83. package/resources/devices/index.d.ts.map +1 -1
  84. package/resources/devices/index.js +3 -1
  85. package/resources/devices/index.js.map +1 -1
  86. package/resources/devices/index.mjs +1 -0
  87. package/resources/devices/index.mjs.map +1 -1
  88. package/resources/devices/keyboard.d.mts +8 -2
  89. package/resources/devices/keyboard.d.mts.map +1 -1
  90. package/resources/devices/keyboard.d.ts +8 -2
  91. package/resources/devices/keyboard.d.ts.map +1 -1
  92. package/resources/devices/recordings.d.mts +29 -6
  93. package/resources/devices/recordings.d.mts.map +1 -1
  94. package/resources/devices/recordings.d.ts +29 -6
  95. package/resources/devices/recordings.d.ts.map +1 -1
  96. package/resources/devices/recordings.js +9 -0
  97. package/resources/devices/recordings.js.map +1 -1
  98. package/resources/devices/recordings.mjs +9 -0
  99. package/resources/devices/recordings.mjs.map +1 -1
  100. package/resources/devices/screenshots.d.mts +72 -0
  101. package/resources/devices/screenshots.d.mts.map +1 -0
  102. package/resources/devices/screenshots.d.ts +72 -0
  103. package/resources/devices/screenshots.d.ts.map +1 -0
  104. package/resources/devices/screenshots.js +57 -0
  105. package/resources/devices/screenshots.js.map +1 -0
  106. package/resources/devices/screenshots.mjs +53 -0
  107. package/resources/devices/screenshots.mjs.map +1 -0
  108. package/resources/devices/state.d.mts +11 -2
  109. package/resources/devices/state.d.mts.map +1 -1
  110. package/resources/devices/state.d.ts +11 -2
  111. package/resources/devices/state.d.ts.map +1 -1
  112. package/resources/devices/state.js +5 -2
  113. package/resources/devices/state.js.map +1 -1
  114. package/resources/devices/state.mjs +5 -2
  115. package/resources/devices/state.mjs.map +1 -1
  116. package/resources/devices/traffic-sessions.d.mts +1 -11
  117. package/resources/devices/traffic-sessions.d.mts.map +1 -1
  118. package/resources/devices/traffic-sessions.d.ts +1 -11
  119. package/resources/devices/traffic-sessions.d.ts.map +1 -1
  120. package/resources/devices/traffic-sessions.js +2 -8
  121. package/resources/devices/traffic-sessions.js.map +1 -1
  122. package/resources/devices/traffic-sessions.mjs +2 -8
  123. package/resources/devices/traffic-sessions.mjs.map +1 -1
  124. package/resources/files.d.mts +8 -22
  125. package/resources/files.d.mts.map +1 -1
  126. package/resources/files.d.ts +8 -22
  127. package/resources/files.d.ts.map +1 -1
  128. package/resources/files.js +5 -13
  129. package/resources/files.js.map +1 -1
  130. package/resources/files.mjs +5 -13
  131. package/resources/files.mjs.map +1 -1
  132. package/resources/index.d.mts +6 -11
  133. package/resources/index.d.mts.map +1 -1
  134. package/resources/index.d.ts +6 -11
  135. package/resources/index.d.ts.map +1 -1
  136. package/resources/index.js +1 -11
  137. package/resources/index.js.map +1 -1
  138. package/resources/index.mjs +1 -6
  139. package/resources/index.mjs.map +1 -1
  140. package/resources/mailboxes/connections.d.mts +58 -0
  141. package/resources/mailboxes/connections.d.mts.map +1 -0
  142. package/resources/mailboxes/connections.d.ts +58 -0
  143. package/resources/mailboxes/connections.d.ts.map +1 -0
  144. package/resources/mailboxes/connections.js +41 -0
  145. package/resources/mailboxes/connections.js.map +1 -0
  146. package/resources/mailboxes/connections.mjs +37 -0
  147. package/resources/mailboxes/connections.mjs.map +1 -0
  148. package/resources/mailboxes/index.d.mts +2 -1
  149. package/resources/mailboxes/index.d.mts.map +1 -1
  150. package/resources/mailboxes/index.d.ts +2 -1
  151. package/resources/mailboxes/index.d.ts.map +1 -1
  152. package/resources/mailboxes/index.js +3 -1
  153. package/resources/mailboxes/index.js.map +1 -1
  154. package/resources/mailboxes/index.mjs +1 -0
  155. package/resources/mailboxes/index.mjs.map +1 -1
  156. package/resources/mailboxes/mailboxes.d.mts +74 -24
  157. package/resources/mailboxes/mailboxes.d.mts.map +1 -1
  158. package/resources/mailboxes/mailboxes.d.ts +74 -24
  159. package/resources/mailboxes/mailboxes.d.ts.map +1 -1
  160. package/resources/mailboxes/mailboxes.js +26 -8
  161. package/resources/mailboxes/mailboxes.js.map +1 -1
  162. package/resources/mailboxes/mailboxes.mjs +26 -8
  163. package/resources/mailboxes/mailboxes.mjs.map +1 -1
  164. package/resources/messages/index.d.mts +1 -1
  165. package/resources/messages/index.d.mts.map +1 -1
  166. package/resources/messages/index.d.ts +1 -1
  167. package/resources/messages/index.d.ts.map +1 -1
  168. package/resources/messages/index.js.map +1 -1
  169. package/resources/messages/index.mjs +1 -1
  170. package/resources/messages/index.mjs.map +1 -1
  171. package/resources/messages/messages.d.mts +26 -1
  172. package/resources/messages/messages.d.mts.map +1 -1
  173. package/resources/messages/messages.d.ts +26 -1
  174. package/resources/messages/messages.d.ts.map +1 -1
  175. package/resources/messages/messages.js +9 -0
  176. package/resources/messages/messages.js.map +1 -1
  177. package/resources/messages/messages.mjs +9 -0
  178. package/resources/messages/messages.mjs.map +1 -1
  179. package/resources/models.d.mts +12 -23
  180. package/resources/models.d.mts.map +1 -1
  181. package/resources/models.d.ts +12 -23
  182. package/resources/models.d.ts.map +1 -1
  183. package/resources/models.js +3 -4
  184. package/resources/models.js.map +1 -1
  185. package/resources/models.mjs +3 -4
  186. package/resources/models.mjs.map +1 -1
  187. package/resources/numbers/index.d.mts +2 -2
  188. package/resources/numbers/index.d.mts.map +1 -1
  189. package/resources/numbers/index.d.ts +2 -2
  190. package/resources/numbers/index.d.ts.map +1 -1
  191. package/resources/numbers/index.js.map +1 -1
  192. package/resources/numbers/index.mjs +1 -1
  193. package/resources/numbers/index.mjs.map +1 -1
  194. package/resources/numbers/messages.d.mts +57 -1
  195. package/resources/numbers/messages.d.mts.map +1 -1
  196. package/resources/numbers/messages.d.ts +57 -1
  197. package/resources/numbers/messages.d.ts.map +1 -1
  198. package/resources/numbers/messages.js +23 -0
  199. package/resources/numbers/messages.js.map +1 -1
  200. package/resources/numbers/messages.mjs +23 -0
  201. package/resources/numbers/messages.mjs.map +1 -1
  202. package/resources/numbers/numbers.d.mts +148 -44
  203. package/resources/numbers/numbers.d.mts.map +1 -1
  204. package/resources/numbers/numbers.d.ts +148 -44
  205. package/resources/numbers/numbers.d.ts.map +1 -1
  206. package/resources/numbers/numbers.js +3 -23
  207. package/resources/numbers/numbers.js.map +1 -1
  208. package/resources/numbers/numbers.mjs +4 -24
  209. package/resources/numbers/numbers.mjs.map +1 -1
  210. package/resources/proxies.d.mts +1 -87
  211. package/resources/proxies.d.mts.map +1 -1
  212. package/resources/proxies.d.ts +1 -87
  213. package/resources/proxies.d.ts.map +1 -1
  214. package/resources/proxies.js +0 -6
  215. package/resources/proxies.js.map +1 -1
  216. package/resources/proxies.mjs +0 -6
  217. package/resources/proxies.mjs.map +1 -1
  218. package/resources/tasks/tasks.d.mts +51 -188
  219. package/resources/tasks/tasks.d.mts.map +1 -1
  220. package/resources/tasks/tasks.d.ts +51 -188
  221. package/resources/tasks/tasks.d.ts.map +1 -1
  222. package/resources/tasks/tasks.js +2 -10
  223. package/resources/tasks/tasks.js.map +1 -1
  224. package/resources/tasks/tasks.mjs +2 -10
  225. package/resources/tasks/tasks.mjs.map +1 -1
  226. package/resources/webhooks/deliveries.d.mts +22 -31
  227. package/resources/webhooks/deliveries.d.mts.map +1 -1
  228. package/resources/webhooks/deliveries.d.ts +22 -31
  229. package/resources/webhooks/deliveries.d.ts.map +1 -1
  230. package/resources/webhooks/deliveries.js +4 -30
  231. package/resources/webhooks/deliveries.js.map +1 -1
  232. package/resources/webhooks/deliveries.mjs +4 -30
  233. package/resources/webhooks/deliveries.mjs.map +1 -1
  234. package/resources/webhooks/index.d.mts +2 -1
  235. package/resources/webhooks/index.d.mts.map +1 -1
  236. package/resources/webhooks/index.d.ts +2 -1
  237. package/resources/webhooks/index.d.ts.map +1 -1
  238. package/resources/webhooks/index.js +3 -1
  239. package/resources/webhooks/index.js.map +1 -1
  240. package/resources/webhooks/index.mjs +1 -0
  241. package/resources/webhooks/index.mjs.map +1 -1
  242. package/resources/webhooks/integrations.d.mts +77 -0
  243. package/resources/webhooks/integrations.d.mts.map +1 -0
  244. package/resources/webhooks/integrations.d.ts +77 -0
  245. package/resources/webhooks/integrations.d.ts.map +1 -0
  246. package/resources/webhooks/integrations.js +26 -0
  247. package/resources/webhooks/integrations.js.map +1 -0
  248. package/resources/webhooks/integrations.mjs +22 -0
  249. package/resources/webhooks/integrations.mjs.map +1 -0
  250. package/resources/webhooks/webhooks.d.mts +276 -104
  251. package/resources/webhooks/webhooks.d.mts.map +1 -1
  252. package/resources/webhooks/webhooks.d.ts +276 -104
  253. package/resources/webhooks/webhooks.d.ts.map +1 -1
  254. package/resources/webhooks/webhooks.js +32 -68
  255. package/resources/webhooks/webhooks.js.map +1 -1
  256. package/resources/webhooks/webhooks.mjs +32 -68
  257. package/resources/webhooks/webhooks.mjs.map +1 -1
  258. package/resources/workflows/action-catalog.d.mts +7 -3
  259. package/resources/workflows/action-catalog.d.mts.map +1 -1
  260. package/resources/workflows/action-catalog.d.ts +7 -3
  261. package/resources/workflows/action-catalog.d.ts.map +1 -1
  262. package/resources/workflows/actions/actions.d.mts +9 -5
  263. package/resources/workflows/actions/actions.d.mts.map +1 -1
  264. package/resources/workflows/actions/actions.d.ts +9 -5
  265. package/resources/workflows/actions/actions.d.ts.map +1 -1
  266. package/resources/workflows/actions/actions.js +4 -0
  267. package/resources/workflows/actions/actions.js.map +1 -1
  268. package/resources/workflows/actions/actions.mjs +4 -0
  269. package/resources/workflows/actions/actions.mjs.map +1 -1
  270. package/resources/workflows/events.d.mts +52 -5
  271. package/resources/workflows/events.d.mts.map +1 -1
  272. package/resources/workflows/events.d.ts +52 -5
  273. package/resources/workflows/events.d.ts.map +1 -1
  274. package/resources/workflows/executions/executions.d.mts +330 -0
  275. package/resources/workflows/executions/executions.d.mts.map +1 -0
  276. package/resources/workflows/executions/executions.d.ts +330 -0
  277. package/resources/workflows/executions/executions.d.ts.map +1 -0
  278. package/resources/workflows/executions/executions.js +49 -0
  279. package/resources/workflows/executions/executions.js.map +1 -0
  280. package/resources/workflows/executions/executions.mjs +44 -0
  281. package/resources/workflows/executions/executions.mjs.map +1 -0
  282. package/resources/workflows/executions/index.d.mts +3 -0
  283. package/resources/workflows/executions/index.d.mts.map +1 -0
  284. package/resources/workflows/executions/index.d.ts +3 -0
  285. package/resources/workflows/executions/index.d.ts.map +1 -0
  286. package/resources/workflows/executions/index.js +9 -0
  287. package/resources/workflows/executions/index.js.map +1 -0
  288. package/resources/workflows/executions/index.mjs +4 -0
  289. package/resources/workflows/executions/index.mjs.map +1 -0
  290. package/resources/workflows/executions/screenshots.d.mts +18 -0
  291. package/resources/workflows/executions/screenshots.d.mts.map +1 -0
  292. package/resources/workflows/executions/screenshots.d.ts +18 -0
  293. package/resources/workflows/executions/screenshots.d.ts.map +1 -0
  294. package/resources/workflows/executions/screenshots.js +23 -0
  295. package/resources/workflows/executions/screenshots.js.map +1 -0
  296. package/resources/workflows/executions/screenshots.mjs +19 -0
  297. package/resources/workflows/executions/screenshots.mjs.map +1 -0
  298. package/resources/workflows/executions.d.mts +1 -269
  299. package/resources/workflows/executions.d.mts.map +1 -1
  300. package/resources/workflows/executions.d.ts +1 -269
  301. package/resources/workflows/executions.d.ts.map +1 -1
  302. package/resources/workflows/executions.js +2 -37
  303. package/resources/workflows/executions.js.map +1 -1
  304. package/resources/workflows/executions.mjs +1 -35
  305. package/resources/workflows/executions.mjs.map +1 -1
  306. package/resources/workflows/flows/actions.d.mts +39 -0
  307. package/resources/workflows/flows/actions.d.mts.map +1 -1
  308. package/resources/workflows/flows/actions.d.ts +39 -0
  309. package/resources/workflows/flows/actions.d.ts.map +1 -1
  310. package/resources/workflows/flows/actions.js +4 -0
  311. package/resources/workflows/flows/actions.js.map +1 -1
  312. package/resources/workflows/flows/actions.mjs +4 -0
  313. package/resources/workflows/flows/actions.mjs.map +1 -1
  314. package/resources/workflows/flows/flows.d.mts +574 -27
  315. package/resources/workflows/flows/flows.d.mts.map +1 -1
  316. package/resources/workflows/flows/flows.d.ts +574 -27
  317. package/resources/workflows/flows/flows.d.ts.map +1 -1
  318. package/resources/workflows/flows/flows.js +78 -3
  319. package/resources/workflows/flows/flows.js.map +1 -1
  320. package/resources/workflows/flows/flows.mjs +78 -3
  321. package/resources/workflows/flows/flows.mjs.map +1 -1
  322. package/resources/workflows/flows/index.d.mts +1 -1
  323. package/resources/workflows/flows/index.d.mts.map +1 -1
  324. package/resources/workflows/flows/index.d.ts +1 -1
  325. package/resources/workflows/flows/index.d.ts.map +1 -1
  326. package/resources/workflows/flows/index.js.map +1 -1
  327. package/resources/workflows/flows/index.mjs.map +1 -1
  328. package/resources/workflows/index.d.mts +2 -2
  329. package/resources/workflows/index.d.mts.map +1 -1
  330. package/resources/workflows/index.d.ts +2 -2
  331. package/resources/workflows/index.d.ts.map +1 -1
  332. package/resources/workflows/index.js +4 -4
  333. package/resources/workflows/index.js.map +1 -1
  334. package/resources/workflows/index.mjs +1 -1
  335. package/resources/workflows/index.mjs.map +1 -1
  336. package/resources/workflows/triggers.d.mts +110 -15
  337. package/resources/workflows/triggers.d.mts.map +1 -1
  338. package/resources/workflows/triggers.d.ts +110 -15
  339. package/resources/workflows/triggers.d.ts.map +1 -1
  340. package/resources/workflows/triggers.js +13 -1
  341. package/resources/workflows/triggers.js.map +1 -1
  342. package/resources/workflows/triggers.mjs +13 -1
  343. package/resources/workflows/triggers.mjs.map +1 -1
  344. package/resources/workflows/workflows.d.mts +4 -4
  345. package/resources/workflows/workflows.d.mts.map +1 -1
  346. package/resources/workflows/workflows.d.ts +4 -4
  347. package/resources/workflows/workflows.d.ts.map +1 -1
  348. package/resources/workflows/workflows.js +2 -2
  349. package/resources/workflows/workflows.js.map +1 -1
  350. package/resources/workflows/workflows.mjs +2 -2
  351. package/resources/workflows/workflows.mjs.map +1 -1
  352. package/src/client.ts +14 -103
  353. package/src/resources/apps.ts +39 -26
  354. package/src/resources/assistant/conversations.ts +12 -27
  355. package/src/resources/connect/connect.ts +6 -0
  356. package/src/resources/connect/index.ts +3 -0
  357. package/src/resources/connect/proxies.ts +127 -25
  358. package/src/resources/connect/users.ts +4 -4
  359. package/src/resources/devices/actions.ts +28 -5
  360. package/src/resources/devices/apps.ts +18 -0
  361. package/src/resources/devices/browser.ts +9 -3
  362. package/src/resources/devices/devices.ts +139 -41
  363. package/src/resources/devices/index.ts +13 -0
  364. package/src/resources/devices/keyboard.ts +9 -2
  365. package/src/resources/devices/recordings.ts +45 -5
  366. package/src/resources/devices/screenshots.ts +140 -0
  367. package/src/resources/devices/state.ts +12 -2
  368. package/src/resources/devices/traffic-sessions.ts +2 -19
  369. package/src/resources/files.ts +11 -32
  370. package/src/resources/index.ts +9 -43
  371. package/src/resources/mailboxes/connections.ts +84 -0
  372. package/src/resources/mailboxes/index.ts +7 -0
  373. package/src/resources/mailboxes/mailboxes.ts +147 -24
  374. package/src/resources/messages/index.ts +6 -1
  375. package/src/resources/messages/messages.ts +55 -1
  376. package/src/resources/models.ts +16 -23
  377. package/src/resources/numbers/index.ts +7 -2
  378. package/src/resources/numbers/messages.ts +88 -1
  379. package/src/resources/numbers/numbers.ts +171 -62
  380. package/src/resources/proxies.ts +0 -110
  381. package/src/resources/tasks/tasks.ts +57 -198
  382. package/src/resources/webhooks/deliveries.ts +26 -31
  383. package/src/resources/webhooks/index.ts +6 -1
  384. package/src/resources/webhooks/integrations.ts +107 -0
  385. package/src/resources/webhooks/webhooks.ts +315 -114
  386. package/src/resources/workflows/action-catalog.ts +11 -3
  387. package/src/resources/workflows/actions/actions.ts +9 -5
  388. package/src/resources/workflows/events.ts +66 -5
  389. package/src/resources/workflows/executions/executions.ts +510 -0
  390. package/src/resources/workflows/executions/index.ts +12 -0
  391. package/src/resources/workflows/executions/screenshots.ts +34 -0
  392. package/src/resources/workflows/executions.ts +1 -412
  393. package/src/resources/workflows/flows/actions.ts +46 -0
  394. package/src/resources/workflows/flows/flows.ts +811 -26
  395. package/src/resources/workflows/flows/index.ts +11 -0
  396. package/src/resources/workflows/index.ts +12 -1
  397. package/src/resources/workflows/triggers.ts +131 -16
  398. package/src/resources/workflows/workflows.ts +32 -10
  399. package/src/version.ts +1 -1
  400. package/version.d.mts +1 -1
  401. package/version.d.ts +1 -1
  402. package/version.js +1 -1
  403. package/version.mjs +1 -1
  404. package/resources/app-events/app-events.d.mts +0 -81
  405. package/resources/app-events/app-events.d.mts.map +0 -1
  406. package/resources/app-events/app-events.d.ts +0 -81
  407. package/resources/app-events/app-events.d.ts.map +0 -1
  408. package/resources/app-events/app-events.js +0 -33
  409. package/resources/app-events/app-events.js.map +0 -1
  410. package/resources/app-events/app-events.mjs +0 -28
  411. package/resources/app-events/app-events.mjs.map +0 -1
  412. package/resources/app-events/catalog.d.mts +0 -64
  413. package/resources/app-events/catalog.d.mts.map +0 -1
  414. package/resources/app-events/catalog.d.ts +0 -64
  415. package/resources/app-events/catalog.d.ts.map +0 -1
  416. package/resources/app-events/catalog.js +0 -25
  417. package/resources/app-events/catalog.js.map +0 -1
  418. package/resources/app-events/catalog.mjs +0 -21
  419. package/resources/app-events/catalog.mjs.map +0 -1
  420. package/resources/app-events/index.d.mts +0 -3
  421. package/resources/app-events/index.d.mts.map +0 -1
  422. package/resources/app-events/index.d.ts +0 -3
  423. package/resources/app-events/index.d.ts.map +0 -1
  424. package/resources/app-events/index.js +0 -9
  425. package/resources/app-events/index.js.map +0 -1
  426. package/resources/app-events/index.mjs +0 -4
  427. package/resources/app-events/index.mjs.map +0 -1
  428. package/resources/app-events.d.mts +0 -2
  429. package/resources/app-events.d.mts.map +0 -1
  430. package/resources/app-events.d.ts +0 -2
  431. package/resources/app-events.d.ts.map +0 -1
  432. package/resources/app-events.js +0 -6
  433. package/resources/app-events.js.map +0 -1
  434. package/resources/app-events.mjs +0 -3
  435. package/resources/app-events.mjs.map +0 -1
  436. package/resources/carriers.d.mts +0 -331
  437. package/resources/carriers.d.mts.map +0 -1
  438. package/resources/carriers.d.ts +0 -331
  439. package/resources/carriers.d.ts.map +0 -1
  440. package/resources/carriers.js +0 -46
  441. package/resources/carriers.js.map +0 -1
  442. package/resources/carriers.mjs +0 -42
  443. package/resources/carriers.mjs.map +0 -1
  444. package/resources/notifications.d.mts +0 -86
  445. package/resources/notifications.d.mts.map +0 -1
  446. package/resources/notifications.d.ts +0 -86
  447. package/resources/notifications.d.ts.map +0 -1
  448. package/resources/notifications.js +0 -55
  449. package/resources/notifications.js.map +0 -1
  450. package/resources/notifications.mjs +0 -51
  451. package/resources/notifications.mjs.map +0 -1
  452. package/resources/profiles.d.mts +0 -147
  453. package/resources/profiles.d.mts.map +0 -1
  454. package/resources/profiles.d.ts +0 -147
  455. package/resources/profiles.d.ts.map +0 -1
  456. package/resources/profiles.js +0 -40
  457. package/resources/profiles.js.map +0 -1
  458. package/resources/profiles.mjs +0 -36
  459. package/resources/profiles.mjs.map +0 -1
  460. package/resources/store/apps.d.mts +0 -119
  461. package/resources/store/apps.d.mts.map +0 -1
  462. package/resources/store/apps.d.ts +0 -119
  463. package/resources/store/apps.d.ts.map +0 -1
  464. package/resources/store/apps.js +0 -31
  465. package/resources/store/apps.js.map +0 -1
  466. package/resources/store/apps.mjs +0 -27
  467. package/resources/store/apps.mjs.map +0 -1
  468. package/resources/store/index.d.mts +0 -3
  469. package/resources/store/index.d.mts.map +0 -1
  470. package/resources/store/index.d.ts +0 -3
  471. package/resources/store/index.d.ts.map +0 -1
  472. package/resources/store/index.js +0 -9
  473. package/resources/store/index.js.map +0 -1
  474. package/resources/store/index.mjs +0 -4
  475. package/resources/store/index.mjs.map +0 -1
  476. package/resources/store/store.d.mts +0 -20
  477. package/resources/store/store.d.mts.map +0 -1
  478. package/resources/store/store.d.ts +0 -20
  479. package/resources/store/store.d.ts.map +0 -1
  480. package/resources/store/store.js +0 -23
  481. package/resources/store/store.js.map +0 -1
  482. package/resources/store/store.mjs +0 -18
  483. package/resources/store/store.mjs.map +0 -1
  484. package/resources/store.d.mts +0 -2
  485. package/resources/store.d.mts.map +0 -1
  486. package/resources/store.d.ts +0 -2
  487. package/resources/store.d.ts.map +0 -1
  488. package/resources/store.js +0 -6
  489. package/resources/store.js.map +0 -1
  490. package/resources/store.mjs +0 -3
  491. package/resources/store.mjs.map +0 -1
  492. package/src/resources/app-events/app-events.ts +0 -133
  493. package/src/resources/app-events/catalog.ts +0 -100
  494. package/src/resources/app-events/index.ts +0 -9
  495. package/src/resources/app-events.ts +0 -3
  496. package/src/resources/carriers.ts +0 -508
  497. package/src/resources/notifications.ts +0 -118
  498. package/src/resources/profiles.ts +0 -232
  499. package/src/resources/store/apps.ts +0 -704
  500. package/src/resources/store/index.ts +0 -10
  501. package/src/resources/store/store.ts +0 -36
  502. package/src/resources/store.ts +0 -3
@@ -77,6 +77,8 @@ import {
77
77
  RecordingDeleteParams,
78
78
  RecordingListParams,
79
79
  RecordingListResponse,
80
+ RecordingScreenshotsParams,
81
+ RecordingScreenshotsResponse,
80
82
  RecordingStartParams,
81
83
  RecordingStartResponse,
82
84
  RecordingStatusParams,
@@ -87,6 +89,16 @@ import {
87
89
  RecordingVideoParams,
88
90
  Recordings,
89
91
  } from './recordings';
92
+ import * as ScreenshotsAPI from './screenshots';
93
+ import {
94
+ ScreenshotCaptureParams,
95
+ ScreenshotCaptureResponse,
96
+ ScreenshotDeleteParams,
97
+ ScreenshotImageParams,
98
+ ScreenshotListParams,
99
+ ScreenshotListResponse,
100
+ Screenshots,
101
+ } from './screenshots';
90
102
  import * as StateAPI from './state';
91
103
  import {
92
104
  A11YNode,
@@ -142,6 +154,7 @@ export class Devices extends APIResource {
142
154
  packages: PackagesAPI.Packages = new PackagesAPI.Packages(this._client);
143
155
  profile: ProfileAPI.Profile = new ProfileAPI.Profile(this._client);
144
156
  proxy: ProxyAPI.Proxy = new ProxyAPI.Proxy(this._client);
157
+ screenshots: ScreenshotsAPI.Screenshots = new ScreenshotsAPI.Screenshots(this._client);
145
158
  state: StateAPI.State = new StateAPI.State(this._client);
146
159
  tasks: TasksAPI.Tasks = new TasksAPI.Tasks(this._client);
147
160
  clipboard: ClipboardAPI.Clipboard = new ClipboardAPI.Clipboard(this._client);
@@ -155,11 +168,10 @@ export class Devices extends APIResource {
155
168
  trafficSessions: TrafficSessionsAPI.TrafficSessions = new TrafficSessionsAPI.TrafficSessions(this._client);
156
169
 
157
170
  /**
158
- * Requests a new device for the authenticated user from the device spec in the
159
- * request body. Optional query parameters select the canonical device type, target
160
- * country, billing mode, and a profile to use as the base spec; deprecated
161
- * device-type aliases remain accepted only during the documented compatibility
162
- * grace period. The response returns the device and its stream token.
171
+ * Requests a new device from the specification in the request body. Optional query
172
+ * parameters select the canonical device type, country, billing mode, and base
173
+ * profile. Returns the device, its resolved billing strategy, and its stream
174
+ * token.
163
175
  */
164
176
  create(params: DeviceCreateParams, options?: RequestOptions): APIPromise<DeviceCreateResponse> {
165
177
  const { billing, query_country, deviceType, profileId, ...body } = params;
@@ -181,6 +193,10 @@ export class Devices extends APIResource {
181
193
 
182
194
  /**
183
195
  * Returns a paginated list of the user's devices along with pagination metadata.
196
+ * By default every device except terminated and unknown-state ones is listed,
197
+ * including stopped and maintenance devices; narrow with e.g. `state=ready` or
198
+ * `state=stopped,maintenance`, and pass `state=terminated` or `state=unknown` to
199
+ * see those.
184
200
  */
185
201
  list(
186
202
  query: DeviceListParams | null | undefined = {},
@@ -190,7 +206,11 @@ export class Devices extends APIResource {
190
206
  }
191
207
 
192
208
  /**
193
- * Returns the number of claimed devices for the user, broken down by device type.
209
+ * Deprecated: use GET /devices/summary instead. Returns the number of active
210
+ * claimed devices for the user, broken down by device type, in the legacy response
211
+ * shape.
212
+ *
213
+ * @deprecated
194
214
  */
195
215
  count(options?: RequestOptions): APIPromise<DeviceCountResponse> {
196
216
  return this._client.get('/devices/count', options);
@@ -256,11 +276,8 @@ export class Devices extends APIResource {
256
276
  }
257
277
 
258
278
  /**
259
- * Returns the set of capabilities supported by this device. For a legacy device
260
- * this reflects the live instance's actual tools rather than its static type; for
261
- * a core-managed device it is resolved from provider/pool configuration without
262
- * guaranteeing a live instance. Used to determine which tools and features are
263
- * available for the device.
279
+ * Returns the set of capabilities supported by this device. Used to determine
280
+ * which tools and features are available for the device.
264
281
  */
265
282
  retrieveCapabilities(
266
283
  deviceID: string,
@@ -294,11 +311,26 @@ export class Devices extends APIResource {
294
311
  }
295
312
 
296
313
  /**
297
- * Terminates the device and releases its resources. Termination can be scheduled
298
- * for a future time or chained from a previous device via the request body, in
299
- * which case a service key is required.
314
+ * Returns the total number of the user's devices and counts grouped by current
315
+ * state and device type.
300
316
  */
301
- terminate(deviceID: string, body: DeviceTerminateParams, options?: RequestOptions): APIPromise<void> {
317
+ summary(
318
+ query: DeviceSummaryParams | null | undefined = {},
319
+ options?: RequestOptions,
320
+ ): APIPromise<DeviceSummaryResponse> {
321
+ return this._client.get('/devices/summary', { query, ...options });
322
+ }
323
+
324
+ /**
325
+ * Terminates the device and releases its resources. The optional `terminateAt` and
326
+ * `previousDeviceId` body fields are not available to API-key callers; requests
327
+ * that set them are rejected with 401.
328
+ */
329
+ terminate(
330
+ deviceID: string,
331
+ body: DeviceTerminateParams | null | undefined = {},
332
+ options?: RequestOptions,
333
+ ): APIPromise<void> {
302
334
  return this._client.delete(path`/devices/${deviceID}`, {
303
335
  body,
304
336
  ...options,
@@ -639,6 +671,19 @@ export interface DeviceSetNameResponse {
639
671
  userId?: string;
640
672
  }
641
673
 
674
+ export interface DeviceSummaryResponse {
675
+ byState: { [key: string]: number };
676
+
677
+ byType: { [key: string]: number };
678
+
679
+ total: number;
680
+
681
+ /**
682
+ * A URL to the JSON Schema for this object.
683
+ */
684
+ $schema?: string;
685
+ }
686
+
642
687
  export interface DeviceWaitReadyResponse {
643
688
  id: string;
644
689
 
@@ -692,10 +737,13 @@ export interface DeviceWaitReadyResponse {
692
737
 
693
738
  export interface DeviceCreateParams {
694
739
  /**
695
- * Query param: Billing mode. 'auto' uses a subscription slot when available and
696
- * otherwise bills per minute; 'subscription' requires an available subscription
697
- * slot; 'minute' bills per minute. Only cloud phone and cloud emulator devices
698
- * support per-minute billing.
740
+ * Query param: Billing mode. 'auto' tries subscription first, then minute billing
741
+ * if no subscription entitlement exists or all subscription slots are in use,
742
+ * provided minute billing is enabled. When subscription billing is disabled, auto
743
+ * uses minutes directly. Billing-service failures never trigger fallback.
744
+ * 'subscription' requires an available subscription slot and never falls back.
745
+ * 'minute' uses minute billing only, subject to balance and concurrency checks.
746
+ * Modes depend on the device type's billing configuration.
699
747
  */
700
748
  billing?: 'auto' | 'subscription' | 'minute';
701
749
 
@@ -706,18 +754,12 @@ export interface DeviceCreateParams {
706
754
  query_country?: string;
707
755
 
708
756
  /**
709
- * Query param: Deprecated device type aliases are accepted during a compatibility
710
- * grace period: dedicated_premium_device maps to android_cloud_phone,
711
- * dedicated_physical_device maps to android_physical_phone, dedicated_ios_device
712
- * maps to ios_stealth_phone, and dedicated_emulated_device maps to
713
- * android_emulator.
757
+ * Query param: Use android*cloud_phone for a cloud Android phone. Only canonical
758
+ * identifiers are accepted. Other backends are deployment-specific; recognized but
759
+ * unavailable types return DEVICE_TYPE_UNAVAILABLE (422). Retired dedicated*\*
760
+ * aliases are rejected with a canonical replacement.
714
761
  */
715
- deviceType?:
716
- | 'android_cloud_phone'
717
- | 'dedicated_premium_device'
718
- | 'dedicated_physical_device'
719
- | 'dedicated_ios_device'
720
- | 'dedicated_emulated_device';
762
+ deviceType?: string;
721
763
 
722
764
  /**
723
765
  * Query param: Profile ID to use as device spec
@@ -820,29 +862,56 @@ export namespace DeviceCreateParams {
820
862
  export interface DeviceListParams {
821
863
  country?: string;
822
864
 
865
+ /**
866
+ * Include devices created at or after this RFC3339 timestamp.
867
+ */
868
+ createdAfter?: string;
869
+
870
+ /**
871
+ * Include devices created before this RFC3339 timestamp (exclusive). Must be later
872
+ * than createdAfter when both are set.
873
+ */
874
+ createdBefore?: string;
875
+
823
876
  /**
824
877
  * Filter to devices created by this user id. Mutually exclusive with mine.
825
878
  */
826
879
  createdBy?: string;
827
880
 
828
881
  /**
829
- * When true, only return devices created by the calling user (resolved from
830
- * X-User-ID, never a client-supplied id).
882
+ * When true, only return devices created by the authenticated caller.
831
883
  */
832
884
  mine?: boolean;
833
885
 
834
886
  name?: string;
835
887
 
836
- orderBy?: 'id' | 'createdAt' | 'updatedAt' | 'assignedAt';
888
+ orderBy?: 'id' | 'createdAt' | 'updatedAt' | 'assignedAt' | 'gridPosition';
837
889
 
838
890
  orderByDirection?: 'asc' | 'desc';
839
891
 
892
+ /**
893
+ * Filter by owner IDs. Comma-separated or repeated parameters. Restricted to
894
+ * platform administrators.
895
+ */
896
+ ownerId?: Array<string> | null;
897
+
840
898
  page?: number;
841
899
 
842
900
  pageSize?: number;
843
901
 
902
+ /**
903
+ * Filter by the device's platform as served in the platform field (runtime,
904
+ * announced, else type-derived).
905
+ */
906
+ platform?: 'android' | 'ios';
907
+
844
908
  providerId?: string;
845
909
 
910
+ /**
911
+ * Filter by current device state. Comma-separated (state=ready,stopped). Defaults
912
+ * to every state except terminated and unknown, so stopped and maintenance devices
913
+ * are listed; pass state=terminated or state=unknown to see those.
914
+ */
846
915
  state?: Array<
847
916
  | 'creating'
848
917
  | 'assigned'
@@ -857,17 +926,16 @@ export interface DeviceListParams {
857
926
  > | null;
858
927
 
859
928
  /**
860
- * Deprecated device type aliases are accepted during a compatibility grace period:
861
- * dedicated_premium_device maps to android_cloud_phone, dedicated_physical_device
862
- * maps to android_physical_phone, dedicated_ios_device maps to ios_stealth_phone,
863
- * and dedicated_emulated_device maps to android_emulator.
929
+ * Canonical device type. Retired dedicated\_\* aliases are no longer accepted.
930
+ * Availability depends on the deployment.
864
931
  */
865
932
  type?:
866
933
  | 'android_cloud_phone'
867
- | 'dedicated_premium_device'
868
- | 'dedicated_physical_device'
869
- | 'dedicated_ios_device'
870
- | 'dedicated_emulated_device';
934
+ | 'android_physical_phone'
935
+ | 'ios_stealth_phone'
936
+ | 'android_emulator'
937
+ | 'ios_simulator'
938
+ | 'device_slot';
871
939
  }
872
940
 
873
941
  export interface DeviceFingerprintParams {
@@ -878,6 +946,21 @@ export interface DeviceSetNameParams {
878
946
  name: string;
879
947
  }
880
948
 
949
+ export interface DeviceSummaryParams {
950
+ state?: Array<
951
+ | 'creating'
952
+ | 'assigned'
953
+ | 'ready'
954
+ | 'rebooting'
955
+ | 'migrating'
956
+ | 'resetting'
957
+ | 'terminated'
958
+ | 'maintenance'
959
+ | 'stopped'
960
+ | 'unknown'
961
+ > | null;
962
+ }
963
+
881
964
  export interface DeviceTerminateParams {
882
965
  previousDeviceId?: string;
883
966
 
@@ -893,6 +976,7 @@ Devices.Location = Location;
893
976
  Devices.Packages = Packages;
894
977
  Devices.Profile = Profile;
895
978
  Devices.Proxy = ProxyAPIProxy;
979
+ Devices.Screenshots = Screenshots;
896
980
  Devices.State = State;
897
981
  Devices.Tasks = Tasks;
898
982
  Devices.Clipboard = Clipboard;
@@ -914,11 +998,13 @@ export declare namespace Devices {
914
998
  type DeviceFingerprintResponse as DeviceFingerprintResponse,
915
999
  type DeviceRetrieveCapabilitiesResponse as DeviceRetrieveCapabilitiesResponse,
916
1000
  type DeviceSetNameResponse as DeviceSetNameResponse,
1001
+ type DeviceSummaryResponse as DeviceSummaryResponse,
917
1002
  type DeviceWaitReadyResponse as DeviceWaitReadyResponse,
918
1003
  type DeviceCreateParams as DeviceCreateParams,
919
1004
  type DeviceListParams as DeviceListParams,
920
1005
  type DeviceFingerprintParams as DeviceFingerprintParams,
921
1006
  type DeviceSetNameParams as DeviceSetNameParams,
1007
+ type DeviceSummaryParams as DeviceSummaryParams,
922
1008
  type DeviceTerminateParams as DeviceTerminateParams,
923
1009
  };
924
1010
 
@@ -999,6 +1085,16 @@ export declare namespace Devices {
999
1085
  type ProxyStatusParams as ProxyStatusParams,
1000
1086
  };
1001
1087
 
1088
+ export {
1089
+ Screenshots as Screenshots,
1090
+ type ScreenshotListResponse as ScreenshotListResponse,
1091
+ type ScreenshotCaptureResponse as ScreenshotCaptureResponse,
1092
+ type ScreenshotListParams as ScreenshotListParams,
1093
+ type ScreenshotDeleteParams as ScreenshotDeleteParams,
1094
+ type ScreenshotCaptureParams as ScreenshotCaptureParams,
1095
+ type ScreenshotImageParams as ScreenshotImageParams,
1096
+ };
1097
+
1002
1098
  export {
1003
1099
  State as State,
1004
1100
  type A11YNode as A11YNode,
@@ -1060,11 +1156,13 @@ export declare namespace Devices {
1060
1156
  export {
1061
1157
  Recordings as Recordings,
1062
1158
  type RecordingListResponse as RecordingListResponse,
1159
+ type RecordingScreenshotsResponse as RecordingScreenshotsResponse,
1063
1160
  type RecordingStartResponse as RecordingStartResponse,
1064
1161
  type RecordingStatusResponse as RecordingStatusResponse,
1065
1162
  type RecordingStopResponse as RecordingStopResponse,
1066
1163
  type RecordingListParams as RecordingListParams,
1067
1164
  type RecordingDeleteParams as RecordingDeleteParams,
1165
+ type RecordingScreenshotsParams as RecordingScreenshotsParams,
1068
1166
  type RecordingStartParams as RecordingStartParams,
1069
1167
  type RecordingStatusParams as RecordingStatusParams,
1070
1168
  type RecordingStopParams as RecordingStopParams,
@@ -39,11 +39,13 @@ export {
39
39
  type DeviceFingerprintResponse,
40
40
  type DeviceRetrieveCapabilitiesResponse,
41
41
  type DeviceSetNameResponse,
42
+ type DeviceSummaryResponse,
42
43
  type DeviceWaitReadyResponse,
43
44
  type DeviceCreateParams,
44
45
  type DeviceListParams,
45
46
  type DeviceFingerprintParams,
46
47
  type DeviceSetNameParams,
48
+ type DeviceSummaryParams,
47
49
  type DeviceTerminateParams,
48
50
  } from './devices';
49
51
  export {
@@ -107,17 +109,28 @@ export {
107
109
  export {
108
110
  Recordings,
109
111
  type RecordingListResponse,
112
+ type RecordingScreenshotsResponse,
110
113
  type RecordingStartResponse,
111
114
  type RecordingStatusResponse,
112
115
  type RecordingStopResponse,
113
116
  type RecordingListParams,
114
117
  type RecordingDeleteParams,
118
+ type RecordingScreenshotsParams,
115
119
  type RecordingStartParams,
116
120
  type RecordingStatusParams,
117
121
  type RecordingStopParams,
118
122
  type RecordingTrajectoryParams,
119
123
  type RecordingVideoParams,
120
124
  } from './recordings';
125
+ export {
126
+ Screenshots,
127
+ type ScreenshotListResponse,
128
+ type ScreenshotCaptureResponse,
129
+ type ScreenshotListParams,
130
+ type ScreenshotDeleteParams,
131
+ type ScreenshotCaptureParams,
132
+ type ScreenshotImageParams,
133
+ } from './screenshots';
121
134
  export {
122
135
  State,
123
136
  type A11YNode,
@@ -114,12 +114,19 @@ export interface KeyboardWriteParams {
114
114
  errorRate?: number;
115
115
 
116
116
  /**
117
- * Body param
117
+ * Body param: Request human-like input where supported by the device. Defaults to
118
+ * false.
119
+ */
120
+ humanize?: boolean;
121
+
122
+ /**
123
+ * @deprecated Body param: Deprecated: use humanize. Both names must agree when
124
+ * supplied together.
118
125
  */
119
126
  stealth?: boolean;
120
127
 
121
128
  /**
122
- * Body param: Words per minute for stealth typing. 0 uses portal default.
129
+ * Body param: Words per minute for humanized typing. 0 uses the device default.
123
130
  */
124
131
  wpm?: number;
125
132
 
@@ -29,6 +29,20 @@ export class Recordings extends APIResource {
29
29
  });
30
30
  }
31
31
 
32
+ /**
33
+ * Screenshots saved into the recording with
34
+ * `GET /devices/{deviceId}/screenshot?save=true`, oldest first, each with a
35
+ * presigned download URL.
36
+ */
37
+ screenshots(
38
+ recordingID: string,
39
+ params: RecordingScreenshotsParams,
40
+ options?: RequestOptions,
41
+ ): APIPromise<RecordingScreenshotsResponse | null> {
42
+ const { deviceId } = params;
43
+ return this._client.get(path`/devices/${deviceId}/recordings/${recordingID}/screenshots`, options);
44
+ }
45
+
32
46
  /**
33
47
  * Start a device recording
34
48
  */
@@ -148,6 +162,24 @@ export namespace RecordingListResponse {
148
162
  }
149
163
  }
150
164
 
165
+ export type RecordingScreenshotsResponse =
166
+ Array<RecordingScreenshotsResponse.RecordingScreenshotsResponseItem>;
167
+
168
+ export namespace RecordingScreenshotsResponse {
169
+ export interface RecordingScreenshotsResponseItem {
170
+ id: string;
171
+
172
+ capturedAt: string;
173
+
174
+ sizeBytes: number;
175
+
176
+ /**
177
+ * Presigned download URL, valid for 15 minutes.
178
+ */
179
+ url: string;
180
+ }
181
+ }
182
+
151
183
  export interface RecordingStartResponse {
152
184
  id: string;
153
185
 
@@ -317,22 +349,28 @@ export interface RecordingDeleteParams {
317
349
  deviceId: string;
318
350
  }
319
351
 
352
+ export interface RecordingScreenshotsParams {
353
+ deviceId: string;
354
+ }
355
+
320
356
  export interface RecordingStartParams {
321
357
  name?: string;
322
358
 
323
359
  /**
324
360
  * Capture quality from 1 (lowest) to 10 (full stream quality). Defaults to the
325
- * device's full quality. Honored by devices recording through the portal stream
326
- * bridge.
361
+ * device's full quality. Honored only by devices that support adjustable capture
362
+ * quality.
327
363
  */
328
364
  quality?: number;
329
365
 
330
366
  retentionDays?: number;
331
367
 
332
368
  /**
333
- * Artifacts to capture: trajectory (input actions), video, and audio (captured
334
- * into the video artifact, so it requires video; honored by portal stream-bridge
335
- * recorders). Defaults to trajectory and video.
369
+ * Artifacts to capture: trajectory (input actions; on some devices only when the
370
+ * device announces trajectory capture), video, and audio (captured into the video
371
+ * artifact, so it requires video; honored only by devices that support audio
372
+ * capture). Defaults to trajectory and video, narrowed to what the device
373
+ * produces.
336
374
  */
337
375
  types?: Array<string> | null;
338
376
  }
@@ -356,11 +394,13 @@ export interface RecordingVideoParams {
356
394
  export declare namespace Recordings {
357
395
  export {
358
396
  type RecordingListResponse as RecordingListResponse,
397
+ type RecordingScreenshotsResponse as RecordingScreenshotsResponse,
359
398
  type RecordingStartResponse as RecordingStartResponse,
360
399
  type RecordingStatusResponse as RecordingStatusResponse,
361
400
  type RecordingStopResponse as RecordingStopResponse,
362
401
  type RecordingListParams as RecordingListParams,
363
402
  type RecordingDeleteParams as RecordingDeleteParams,
403
+ type RecordingScreenshotsParams as RecordingScreenshotsParams,
364
404
  type RecordingStartParams as RecordingStartParams,
365
405
  type RecordingStatusParams as RecordingStatusParams,
366
406
  type RecordingStopParams as RecordingStopParams,
@@ -0,0 +1,140 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import { APIPromise } from '../../core/api-promise';
5
+ import { buildHeaders } from '../../internal/headers';
6
+ import { RequestOptions } from '../../internal/request-options';
7
+ import { path } from '../../internal/utils/path';
8
+
9
+ export class Screenshots extends APIResource {
10
+ /**
11
+ * Saved screenshots, newest first. Pass nextCursor as cursor to retrieve the next
12
+ * page.
13
+ */
14
+ list(
15
+ deviceID: string,
16
+ query: ScreenshotListParams | null | undefined = {},
17
+ options?: RequestOptions,
18
+ ): APIPromise<ScreenshotListResponse> {
19
+ return this._client.get(path`/devices/${deviceID}/screenshots`, { query, ...options });
20
+ }
21
+
22
+ /**
23
+ * Delete a device screenshot
24
+ */
25
+ delete(screenshotID: string, params: ScreenshotDeleteParams, options?: RequestOptions): APIPromise<void> {
26
+ const { deviceId } = params;
27
+ return this._client.delete(path`/devices/${deviceId}/screenshots/${screenshotID}`, {
28
+ ...options,
29
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
30
+ });
31
+ }
32
+
33
+ /**
34
+ * Captures the device screen and returns it as a PNG image. Pass save=true to
35
+ * store it as device media.
36
+ */
37
+ capture(
38
+ deviceID: string,
39
+ params: ScreenshotCaptureParams | null | undefined = {},
40
+ options?: RequestOptions,
41
+ ): APIPromise<string> {
42
+ const { hideOverlay, save, 'X-Device-Display-ID': xDeviceDisplayID } = params ?? {};
43
+ return this._client.post(path`/devices/${deviceID}/screenshots`, {
44
+ query: { hideOverlay, save },
45
+ ...options,
46
+ headers: buildHeaders([
47
+ {
48
+ ...(xDeviceDisplayID?.toString() != null ?
49
+ { 'X-Device-Display-ID': xDeviceDisplayID?.toString() }
50
+ : undefined),
51
+ },
52
+ options?.headers,
53
+ ]),
54
+ });
55
+ }
56
+
57
+ /**
58
+ * Redirects to a presigned PNG URL valid for 15 minutes.
59
+ */
60
+ image(screenshotID: string, params: ScreenshotImageParams, options?: RequestOptions): APIPromise<void> {
61
+ const { deviceId } = params;
62
+ return this._client.get(path`/devices/${deviceId}/screenshots/${screenshotID}/image`, {
63
+ ...options,
64
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
65
+ });
66
+ }
67
+ }
68
+
69
+ export interface ScreenshotListResponse {
70
+ items: Array<ScreenshotListResponse.Item> | null;
71
+
72
+ nextCursor: string;
73
+
74
+ /**
75
+ * A URL to the JSON Schema for this object.
76
+ */
77
+ $schema?: string;
78
+ }
79
+
80
+ export namespace ScreenshotListResponse {
81
+ export interface Item {
82
+ id: string;
83
+
84
+ capturedAt: string;
85
+
86
+ deviceId: string;
87
+
88
+ expiresAt: string;
89
+
90
+ recordingId: string | null;
91
+
92
+ sizeBytes: number;
93
+ }
94
+ }
95
+
96
+ export type ScreenshotCaptureResponse = string;
97
+
98
+ export interface ScreenshotListParams {
99
+ cursor?: string;
100
+
101
+ limit?: number;
102
+ }
103
+
104
+ export interface ScreenshotDeleteParams {
105
+ deviceId: string;
106
+ }
107
+
108
+ export interface ScreenshotCaptureParams {
109
+ /**
110
+ * Query param
111
+ */
112
+ hideOverlay?: boolean;
113
+
114
+ /**
115
+ * Query param: Store the screenshot as device media: in the owner's active
116
+ * recording, or standalone for 7 days. Without save=true nothing is stored. The
117
+ * PNG response is unchanged; X-Screenshot-Saved reports whether it was stored.
118
+ */
119
+ save?: boolean;
120
+
121
+ /**
122
+ * Header param
123
+ */
124
+ 'X-Device-Display-ID'?: number;
125
+ }
126
+
127
+ export interface ScreenshotImageParams {
128
+ deviceId: string;
129
+ }
130
+
131
+ export declare namespace Screenshots {
132
+ export {
133
+ type ScreenshotListResponse as ScreenshotListResponse,
134
+ type ScreenshotCaptureResponse as ScreenshotCaptureResponse,
135
+ type ScreenshotListParams as ScreenshotListParams,
136
+ type ScreenshotDeleteParams as ScreenshotDeleteParams,
137
+ type ScreenshotCaptureParams as ScreenshotCaptureParams,
138
+ type ScreenshotImageParams as ScreenshotImageParams,
139
+ };
140
+ }
@@ -8,8 +8,11 @@ import { path } from '../../internal/utils/path';
8
8
 
9
9
  export class State extends APIResource {
10
10
  /**
11
- * Captures the device screen and returns it as a PNG image. An optional
12
- * hideOverlay query parameter excludes the accessibility overlay from the capture.
11
+ * Deprecated: use POST /devices/{deviceId}/screenshots. Captures the device screen
12
+ * and returns it as a PNG image. An optional hideOverlay query parameter excludes
13
+ * the accessibility overlay from the capture.
14
+ *
15
+ * @deprecated
13
16
  */
14
17
  screenshot(
15
18
  deviceID: string,
@@ -214,6 +217,13 @@ export interface StateScreenshotParams {
214
217
  */
215
218
  hideOverlay?: boolean;
216
219
 
220
+ /**
221
+ * Query param: Store the screenshot as device media: in the owner's active
222
+ * recording, or standalone for 7 days. Without save=true nothing is stored. The
223
+ * PNG response is unchanged; X-Screenshot-Saved reports whether it was stored.
224
+ */
225
+ save?: boolean;
226
+
217
227
  /**
218
228
  * Header param
219
229
  */