@mobilerun/sdk 5.4.0 → 5.6.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 (418) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/client.d.mts +10 -13
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +10 -13
  5. package/client.d.ts.map +1 -1
  6. package/client.js +1 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +2 -4
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/apps.d.mts +23 -12
  12. package/resources/apps.d.mts.map +1 -1
  13. package/resources/apps.d.ts +23 -12
  14. package/resources/apps.d.ts.map +1 -1
  15. package/resources/apps.js +8 -3
  16. package/resources/apps.js.map +1 -1
  17. package/resources/apps.mjs +8 -3
  18. package/resources/apps.mjs.map +1 -1
  19. package/resources/assistant/conversations.d.mts +33 -21
  20. package/resources/assistant/conversations.d.mts.map +1 -1
  21. package/resources/assistant/conversations.d.ts +33 -21
  22. package/resources/assistant/conversations.d.ts.map +1 -1
  23. package/resources/assistant/conversations.js +16 -15
  24. package/resources/assistant/conversations.js.map +1 -1
  25. package/resources/assistant/conversations.mjs +16 -15
  26. package/resources/assistant/conversations.mjs.map +1 -1
  27. package/resources/connect/connect.d.mts +2 -2
  28. package/resources/connect/connect.d.mts.map +1 -1
  29. package/resources/connect/connect.d.ts +2 -2
  30. package/resources/connect/connect.d.ts.map +1 -1
  31. package/resources/connect/connect.js.map +1 -1
  32. package/resources/connect/connect.mjs.map +1 -1
  33. package/resources/connect/index.d.mts +1 -1
  34. package/resources/connect/index.d.mts.map +1 -1
  35. package/resources/connect/index.d.ts +1 -1
  36. package/resources/connect/index.d.ts.map +1 -1
  37. package/resources/connect/index.js.map +1 -1
  38. package/resources/connect/index.mjs.map +1 -1
  39. package/resources/connect/proxies.d.mts +118 -19
  40. package/resources/connect/proxies.d.mts.map +1 -1
  41. package/resources/connect/proxies.d.ts +118 -19
  42. package/resources/connect/proxies.d.ts.map +1 -1
  43. package/resources/connect/proxies.js +19 -0
  44. package/resources/connect/proxies.js.map +1 -1
  45. package/resources/connect/proxies.mjs +19 -0
  46. package/resources/connect/proxies.mjs.map +1 -1
  47. package/resources/devices/apps.d.mts +37 -17
  48. package/resources/devices/apps.d.mts.map +1 -1
  49. package/resources/devices/apps.d.ts +37 -17
  50. package/resources/devices/apps.d.ts.map +1 -1
  51. package/resources/devices/apps.js +15 -14
  52. package/resources/devices/apps.js.map +1 -1
  53. package/resources/devices/apps.mjs +15 -14
  54. package/resources/devices/apps.mjs.map +1 -1
  55. package/resources/devices/browser.d.mts +9 -3
  56. package/resources/devices/browser.d.mts.map +1 -1
  57. package/resources/devices/browser.d.ts +9 -3
  58. package/resources/devices/browser.d.ts.map +1 -1
  59. package/resources/devices/browser.js +9 -3
  60. package/resources/devices/browser.js.map +1 -1
  61. package/resources/devices/browser.mjs +9 -3
  62. package/resources/devices/browser.mjs.map +1 -1
  63. package/resources/devices/devices.d.mts +81 -27
  64. package/resources/devices/devices.d.mts.map +1 -1
  65. package/resources/devices/devices.d.ts +81 -27
  66. package/resources/devices/devices.d.ts.map +1 -1
  67. package/resources/devices/devices.js +24 -11
  68. package/resources/devices/devices.js.map +1 -1
  69. package/resources/devices/devices.mjs +24 -11
  70. package/resources/devices/devices.mjs.map +1 -1
  71. package/resources/devices/index.d.mts +2 -1
  72. package/resources/devices/index.d.mts.map +1 -1
  73. package/resources/devices/index.d.ts +2 -1
  74. package/resources/devices/index.d.ts.map +1 -1
  75. package/resources/devices/index.js +3 -1
  76. package/resources/devices/index.js.map +1 -1
  77. package/resources/devices/index.mjs +1 -0
  78. package/resources/devices/index.mjs.map +1 -1
  79. package/resources/devices/keyboard.d.mts +9 -3
  80. package/resources/devices/keyboard.d.mts.map +1 -1
  81. package/resources/devices/keyboard.d.ts +9 -3
  82. package/resources/devices/keyboard.d.ts.map +1 -1
  83. package/resources/devices/keyboard.js +3 -3
  84. package/resources/devices/keyboard.mjs +3 -3
  85. package/resources/devices/recordings.d.mts +13 -0
  86. package/resources/devices/recordings.d.mts.map +1 -1
  87. package/resources/devices/recordings.d.ts +13 -0
  88. package/resources/devices/recordings.d.ts.map +1 -1
  89. package/resources/devices/traffic-sessions.d.mts +163 -0
  90. package/resources/devices/traffic-sessions.d.mts.map +1 -0
  91. package/resources/devices/traffic-sessions.d.ts +163 -0
  92. package/resources/devices/traffic-sessions.d.ts.map +1 -0
  93. package/resources/devices/traffic-sessions.js +37 -0
  94. package/resources/devices/traffic-sessions.js.map +1 -0
  95. package/resources/devices/traffic-sessions.mjs +33 -0
  96. package/resources/devices/traffic-sessions.mjs.map +1 -0
  97. package/resources/files.d.mts +77 -19
  98. package/resources/files.d.mts.map +1 -1
  99. package/resources/files.d.ts +77 -19
  100. package/resources/files.d.ts.map +1 -1
  101. package/resources/files.js +2 -10
  102. package/resources/files.js.map +1 -1
  103. package/resources/files.mjs +2 -10
  104. package/resources/files.mjs.map +1 -1
  105. package/resources/index.d.mts +5 -6
  106. package/resources/index.d.mts.map +1 -1
  107. package/resources/index.d.ts +5 -6
  108. package/resources/index.d.ts.map +1 -1
  109. package/resources/index.js +1 -3
  110. package/resources/index.js.map +1 -1
  111. package/resources/index.mjs +1 -2
  112. package/resources/index.mjs.map +1 -1
  113. package/resources/mailboxes/connections.d.mts +64 -0
  114. package/resources/mailboxes/connections.d.mts.map +1 -0
  115. package/resources/mailboxes/connections.d.ts +64 -0
  116. package/resources/mailboxes/connections.d.ts.map +1 -0
  117. package/resources/mailboxes/connections.js +42 -0
  118. package/resources/mailboxes/connections.js.map +1 -0
  119. package/resources/mailboxes/connections.mjs +38 -0
  120. package/resources/mailboxes/connections.mjs.map +1 -0
  121. package/resources/mailboxes/index.d.mts +2 -1
  122. package/resources/mailboxes/index.d.mts.map +1 -1
  123. package/resources/mailboxes/index.d.ts +2 -1
  124. package/resources/mailboxes/index.d.ts.map +1 -1
  125. package/resources/mailboxes/index.js +3 -1
  126. package/resources/mailboxes/index.js.map +1 -1
  127. package/resources/mailboxes/index.mjs +1 -0
  128. package/resources/mailboxes/index.mjs.map +1 -1
  129. package/resources/mailboxes/mailboxes.d.mts +107 -50
  130. package/resources/mailboxes/mailboxes.d.mts.map +1 -1
  131. package/resources/mailboxes/mailboxes.d.ts +107 -50
  132. package/resources/mailboxes/mailboxes.d.ts.map +1 -1
  133. package/resources/mailboxes/mailboxes.js +34 -24
  134. package/resources/mailboxes/mailboxes.js.map +1 -1
  135. package/resources/mailboxes/mailboxes.mjs +34 -24
  136. package/resources/mailboxes/mailboxes.mjs.map +1 -1
  137. package/resources/mailboxes/messages.d.mts +2 -2
  138. package/resources/mailboxes/messages.d.ts +2 -2
  139. package/resources/mailboxes/messages.js +2 -2
  140. package/resources/mailboxes/messages.mjs +2 -2
  141. package/resources/messages/conversations.d.mts +4 -15
  142. package/resources/messages/conversations.d.mts.map +1 -1
  143. package/resources/messages/conversations.d.ts +4 -15
  144. package/resources/messages/conversations.d.ts.map +1 -1
  145. package/resources/messages/conversations.js +4 -15
  146. package/resources/messages/conversations.js.map +1 -1
  147. package/resources/messages/conversations.mjs +4 -15
  148. package/resources/messages/conversations.mjs.map +1 -1
  149. package/resources/messages/index.d.mts +1 -1
  150. package/resources/messages/index.d.mts.map +1 -1
  151. package/resources/messages/index.d.ts +1 -1
  152. package/resources/messages/index.d.ts.map +1 -1
  153. package/resources/messages/index.js.map +1 -1
  154. package/resources/messages/index.mjs +1 -1
  155. package/resources/messages/index.mjs.map +1 -1
  156. package/resources/messages/messages.d.mts +28 -5
  157. package/resources/messages/messages.d.mts.map +1 -1
  158. package/resources/messages/messages.d.ts +28 -5
  159. package/resources/messages/messages.d.ts.map +1 -1
  160. package/resources/messages/messages.js +11 -4
  161. package/resources/messages/messages.js.map +1 -1
  162. package/resources/messages/messages.mjs +11 -4
  163. package/resources/messages/messages.mjs.map +1 -1
  164. package/resources/notifications.d.mts +27 -1
  165. package/resources/notifications.d.mts.map +1 -1
  166. package/resources/notifications.d.ts +27 -1
  167. package/resources/notifications.d.ts.map +1 -1
  168. package/resources/notifications.js +17 -0
  169. package/resources/notifications.js.map +1 -1
  170. package/resources/notifications.mjs +17 -0
  171. package/resources/notifications.mjs.map +1 -1
  172. package/resources/numbers/index.d.mts +2 -2
  173. package/resources/numbers/index.d.mts.map +1 -1
  174. package/resources/numbers/index.d.ts +2 -2
  175. package/resources/numbers/index.d.ts.map +1 -1
  176. package/resources/numbers/index.js.map +1 -1
  177. package/resources/numbers/index.mjs +1 -1
  178. package/resources/numbers/index.mjs.map +1 -1
  179. package/resources/numbers/messages.d.mts +60 -1
  180. package/resources/numbers/messages.d.mts.map +1 -1
  181. package/resources/numbers/messages.d.ts +60 -1
  182. package/resources/numbers/messages.d.ts.map +1 -1
  183. package/resources/numbers/messages.js +21 -0
  184. package/resources/numbers/messages.js.map +1 -1
  185. package/resources/numbers/messages.mjs +21 -0
  186. package/resources/numbers/messages.mjs.map +1 -1
  187. package/resources/numbers/numbers.d.mts +167 -46
  188. package/resources/numbers/numbers.d.mts.map +1 -1
  189. package/resources/numbers/numbers.d.ts +167 -46
  190. package/resources/numbers/numbers.d.ts.map +1 -1
  191. package/resources/numbers/numbers.js +25 -40
  192. package/resources/numbers/numbers.js.map +1 -1
  193. package/resources/numbers/numbers.mjs +26 -41
  194. package/resources/numbers/numbers.mjs.map +1 -1
  195. package/resources/store/apps.d.mts +23 -2
  196. package/resources/store/apps.d.mts.map +1 -1
  197. package/resources/store/apps.d.ts +23 -2
  198. package/resources/store/apps.d.ts.map +1 -1
  199. package/resources/tasks/tasks.d.mts +84 -75
  200. package/resources/tasks/tasks.d.mts.map +1 -1
  201. package/resources/tasks/tasks.d.ts +84 -75
  202. package/resources/tasks/tasks.d.ts.map +1 -1
  203. package/resources/tasks/tasks.js +2 -10
  204. package/resources/tasks/tasks.js.map +1 -1
  205. package/resources/tasks/tasks.mjs +2 -10
  206. package/resources/tasks/tasks.mjs.map +1 -1
  207. package/resources/webhooks/deliveries.d.mts +22 -31
  208. package/resources/webhooks/deliveries.d.mts.map +1 -1
  209. package/resources/webhooks/deliveries.d.ts +22 -31
  210. package/resources/webhooks/deliveries.d.ts.map +1 -1
  211. package/resources/webhooks/deliveries.js +4 -30
  212. package/resources/webhooks/deliveries.js.map +1 -1
  213. package/resources/webhooks/deliveries.mjs +4 -30
  214. package/resources/webhooks/deliveries.mjs.map +1 -1
  215. package/resources/webhooks/index.d.mts +1 -0
  216. package/resources/webhooks/index.d.mts.map +1 -1
  217. package/resources/webhooks/index.d.ts +1 -0
  218. package/resources/webhooks/index.d.ts.map +1 -1
  219. package/resources/webhooks/index.js +3 -1
  220. package/resources/webhooks/index.js.map +1 -1
  221. package/resources/webhooks/index.mjs +1 -0
  222. package/resources/webhooks/index.mjs.map +1 -1
  223. package/resources/webhooks/integrations.d.mts +77 -0
  224. package/resources/webhooks/integrations.d.mts.map +1 -0
  225. package/resources/webhooks/integrations.d.ts +77 -0
  226. package/resources/webhooks/integrations.d.ts.map +1 -0
  227. package/resources/webhooks/integrations.js +26 -0
  228. package/resources/webhooks/integrations.js.map +1 -0
  229. package/resources/webhooks/integrations.mjs +22 -0
  230. package/resources/webhooks/integrations.mjs.map +1 -0
  231. package/resources/webhooks/webhooks.d.mts +280 -71
  232. package/resources/webhooks/webhooks.d.mts.map +1 -1
  233. package/resources/webhooks/webhooks.d.ts +280 -71
  234. package/resources/webhooks/webhooks.d.ts.map +1 -1
  235. package/resources/webhooks/webhooks.js +27 -60
  236. package/resources/webhooks/webhooks.js.map +1 -1
  237. package/resources/webhooks/webhooks.mjs +27 -60
  238. package/resources/webhooks/webhooks.mjs.map +1 -1
  239. package/resources/workflows/action-catalog.d.mts +7 -3
  240. package/resources/workflows/action-catalog.d.mts.map +1 -1
  241. package/resources/workflows/action-catalog.d.ts +7 -3
  242. package/resources/workflows/action-catalog.d.ts.map +1 -1
  243. package/resources/workflows/actions/actions.d.mts +9 -5
  244. package/resources/workflows/actions/actions.d.mts.map +1 -1
  245. package/resources/workflows/actions/actions.d.ts +9 -5
  246. package/resources/workflows/actions/actions.d.ts.map +1 -1
  247. package/resources/workflows/actions/actions.js +4 -0
  248. package/resources/workflows/actions/actions.js.map +1 -1
  249. package/resources/workflows/actions/actions.mjs +4 -0
  250. package/resources/workflows/actions/actions.mjs.map +1 -1
  251. package/resources/workflows/events.d.mts +66 -4
  252. package/resources/workflows/events.d.mts.map +1 -1
  253. package/resources/workflows/events.d.ts +66 -4
  254. package/resources/workflows/events.d.ts.map +1 -1
  255. package/resources/workflows/executions/executions.d.mts +334 -0
  256. package/resources/workflows/executions/executions.d.mts.map +1 -0
  257. package/resources/workflows/executions/executions.d.ts +334 -0
  258. package/resources/workflows/executions/executions.d.ts.map +1 -0
  259. package/resources/workflows/executions/executions.js +49 -0
  260. package/resources/workflows/executions/executions.js.map +1 -0
  261. package/resources/workflows/executions/executions.mjs +44 -0
  262. package/resources/workflows/executions/executions.mjs.map +1 -0
  263. package/resources/workflows/executions/index.d.mts +3 -0
  264. package/resources/workflows/executions/index.d.mts.map +1 -0
  265. package/resources/workflows/executions/index.d.ts +3 -0
  266. package/resources/workflows/executions/index.d.ts.map +1 -0
  267. package/resources/workflows/executions/index.js +9 -0
  268. package/resources/workflows/executions/index.js.map +1 -0
  269. package/resources/workflows/executions/index.mjs +4 -0
  270. package/resources/workflows/executions/index.mjs.map +1 -0
  271. package/resources/workflows/executions/screenshots.d.mts +18 -0
  272. package/resources/workflows/executions/screenshots.d.mts.map +1 -0
  273. package/resources/workflows/executions/screenshots.d.ts +18 -0
  274. package/resources/workflows/executions/screenshots.d.ts.map +1 -0
  275. package/resources/workflows/executions/screenshots.js +23 -0
  276. package/resources/workflows/executions/screenshots.js.map +1 -0
  277. package/resources/workflows/executions/screenshots.mjs +19 -0
  278. package/resources/workflows/executions/screenshots.mjs.map +1 -0
  279. package/resources/workflows/executions.d.mts +1 -190
  280. package/resources/workflows/executions.d.mts.map +1 -1
  281. package/resources/workflows/executions.d.ts +1 -190
  282. package/resources/workflows/executions.d.ts.map +1 -1
  283. package/resources/workflows/executions.js +2 -36
  284. package/resources/workflows/executions.js.map +1 -1
  285. package/resources/workflows/executions.mjs +1 -34
  286. package/resources/workflows/executions.mjs.map +1 -1
  287. package/resources/workflows/flows/actions.d.mts +58 -0
  288. package/resources/workflows/flows/actions.d.mts.map +1 -1
  289. package/resources/workflows/flows/actions.d.ts +58 -0
  290. package/resources/workflows/flows/actions.d.ts.map +1 -1
  291. package/resources/workflows/flows/actions.js +4 -0
  292. package/resources/workflows/flows/actions.js.map +1 -1
  293. package/resources/workflows/flows/actions.mjs +4 -0
  294. package/resources/workflows/flows/actions.mjs.map +1 -1
  295. package/resources/workflows/flows/flows.d.mts +666 -15
  296. package/resources/workflows/flows/flows.d.mts.map +1 -1
  297. package/resources/workflows/flows/flows.d.ts +666 -15
  298. package/resources/workflows/flows/flows.d.ts.map +1 -1
  299. package/resources/workflows/flows/flows.js +86 -1
  300. package/resources/workflows/flows/flows.js.map +1 -1
  301. package/resources/workflows/flows/flows.mjs +86 -1
  302. package/resources/workflows/flows/flows.mjs.map +1 -1
  303. package/resources/workflows/flows/index.d.mts +1 -1
  304. package/resources/workflows/flows/index.d.mts.map +1 -1
  305. package/resources/workflows/flows/index.d.ts +1 -1
  306. package/resources/workflows/flows/index.d.ts.map +1 -1
  307. package/resources/workflows/flows/index.js.map +1 -1
  308. package/resources/workflows/flows/index.mjs.map +1 -1
  309. package/resources/workflows/index.d.mts +2 -2
  310. package/resources/workflows/index.d.mts.map +1 -1
  311. package/resources/workflows/index.d.ts +2 -2
  312. package/resources/workflows/index.d.ts.map +1 -1
  313. package/resources/workflows/index.js +4 -4
  314. package/resources/workflows/index.js.map +1 -1
  315. package/resources/workflows/index.mjs +1 -1
  316. package/resources/workflows/index.mjs.map +1 -1
  317. package/resources/workflows/triggers.d.mts +118 -6
  318. package/resources/workflows/triggers.d.mts.map +1 -1
  319. package/resources/workflows/triggers.d.ts +118 -6
  320. package/resources/workflows/triggers.d.ts.map +1 -1
  321. package/resources/workflows/triggers.js +14 -0
  322. package/resources/workflows/triggers.js.map +1 -1
  323. package/resources/workflows/triggers.mjs +14 -0
  324. package/resources/workflows/triggers.mjs.map +1 -1
  325. package/resources/workflows/workflows.d.mts +4 -4
  326. package/resources/workflows/workflows.d.mts.map +1 -1
  327. package/resources/workflows/workflows.d.ts +4 -4
  328. package/resources/workflows/workflows.d.ts.map +1 -1
  329. package/resources/workflows/workflows.js +2 -2
  330. package/resources/workflows/workflows.js.map +1 -1
  331. package/resources/workflows/workflows.mjs +2 -2
  332. package/resources/workflows/workflows.mjs.map +1 -1
  333. package/src/client.ts +22 -42
  334. package/src/resources/apps.ts +24 -12
  335. package/src/resources/assistant/conversations.ts +50 -31
  336. package/src/resources/connect/connect.ts +6 -0
  337. package/src/resources/connect/index.ts +3 -0
  338. package/src/resources/connect/proxies.ts +146 -18
  339. package/src/resources/devices/apps.ts +41 -17
  340. package/src/resources/devices/browser.ts +9 -3
  341. package/src/resources/devices/devices.ts +138 -34
  342. package/src/resources/devices/index.ts +13 -0
  343. package/src/resources/devices/keyboard.ts +10 -3
  344. package/src/resources/devices/recordings.ts +14 -0
  345. package/src/resources/devices/traffic-sessions.ts +282 -0
  346. package/src/resources/files.ts +122 -29
  347. package/src/resources/index.ts +13 -20
  348. package/src/resources/mailboxes/connections.ts +91 -0
  349. package/src/resources/mailboxes/index.ts +7 -0
  350. package/src/resources/mailboxes/mailboxes.ts +190 -49
  351. package/src/resources/mailboxes/messages.ts +2 -2
  352. package/src/resources/messages/conversations.ts +4 -15
  353. package/src/resources/messages/index.ts +6 -1
  354. package/src/resources/messages/messages.ts +57 -5
  355. package/src/resources/notifications.ts +37 -0
  356. package/src/resources/numbers/index.ts +9 -1
  357. package/src/resources/numbers/messages.ts +92 -1
  358. package/src/resources/numbers/numbers.ts +197 -55
  359. package/src/resources/store/apps.ts +291 -2
  360. package/src/resources/tasks/tasks.ts +126 -93
  361. package/src/resources/webhooks/deliveries.ts +26 -31
  362. package/src/resources/webhooks/index.ts +6 -0
  363. package/src/resources/webhooks/integrations.ts +107 -0
  364. package/src/resources/webhooks/webhooks.ts +328 -71
  365. package/src/resources/workflows/action-catalog.ts +11 -3
  366. package/src/resources/workflows/actions/actions.ts +9 -5
  367. package/src/resources/workflows/events.ts +86 -4
  368. package/src/resources/workflows/executions/executions.ts +514 -0
  369. package/src/resources/workflows/executions/index.ts +12 -0
  370. package/src/resources/workflows/executions/screenshots.ts +34 -0
  371. package/src/resources/workflows/executions.ts +1 -296
  372. package/src/resources/workflows/flows/actions.ts +72 -0
  373. package/src/resources/workflows/flows/flows.ts +1058 -129
  374. package/src/resources/workflows/flows/index.ts +12 -0
  375. package/src/resources/workflows/index.ts +13 -1
  376. package/src/resources/workflows/triggers.ts +140 -6
  377. package/src/resources/workflows/workflows.ts +34 -10
  378. package/src/version.ts +1 -1
  379. package/version.d.mts +1 -1
  380. package/version.d.ts +1 -1
  381. package/version.js +1 -1
  382. package/version.mjs +1 -1
  383. package/resources/esims/esims.d.mts +0 -566
  384. package/resources/esims/esims.d.mts.map +0 -1
  385. package/resources/esims/esims.d.ts +0 -566
  386. package/resources/esims/esims.d.ts.map +0 -1
  387. package/resources/esims/esims.js +0 -205
  388. package/resources/esims/esims.js.map +0 -1
  389. package/resources/esims/esims.mjs +0 -200
  390. package/resources/esims/esims.mjs.map +0 -1
  391. package/resources/esims/index.d.mts +0 -3
  392. package/resources/esims/index.d.mts.map +0 -1
  393. package/resources/esims/index.d.ts +0 -3
  394. package/resources/esims/index.d.ts.map +0 -1
  395. package/resources/esims/index.js +0 -9
  396. package/resources/esims/index.js.map +0 -1
  397. package/resources/esims/index.mjs +0 -4
  398. package/resources/esims/index.mjs.map +0 -1
  399. package/resources/esims/messages.d.mts +0 -106
  400. package/resources/esims/messages.d.mts.map +0 -1
  401. package/resources/esims/messages.d.ts +0 -106
  402. package/resources/esims/messages.d.ts.map +0 -1
  403. package/resources/esims/messages.js +0 -37
  404. package/resources/esims/messages.js.map +0 -1
  405. package/resources/esims/messages.mjs +0 -33
  406. package/resources/esims/messages.mjs.map +0 -1
  407. package/resources/esims.d.mts +0 -2
  408. package/resources/esims.d.mts.map +0 -1
  409. package/resources/esims.d.ts +0 -2
  410. package/resources/esims.d.ts.map +0 -1
  411. package/resources/esims.js +0 -6
  412. package/resources/esims.js.map +0 -1
  413. package/resources/esims.mjs +0 -3
  414. package/resources/esims.mjs.map +0 -1
  415. package/src/resources/esims/esims.ts +0 -1019
  416. package/src/resources/esims/index.ts +0 -28
  417. package/src/resources/esims/messages.ts +0 -187
  418. package/src/resources/esims.ts +0 -3
@@ -49,11 +49,17 @@ export namespace EventDryRunResponse {
49
49
  export interface Action {
50
50
  continueOnError: boolean;
51
51
 
52
+ flowActionId: string;
53
+
54
+ key: string;
55
+
52
56
  method: string;
53
57
 
54
58
  name: string;
55
59
 
56
- service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks';
60
+ recordingEnabled: boolean;
61
+
62
+ service: 'tasks_api' | 'devices_api' | 'agents_api' | 'webhooks' | 'integrations_api';
57
63
 
58
64
  /**
59
65
  * Nested child actions (loop/branch bodies), each the same shape as a
@@ -67,6 +73,8 @@ export namespace EventDryRunResponse {
67
73
  export interface Flow {
68
74
  id: string;
69
75
 
76
+ archivedAt: string | null;
77
+
70
78
  blockedAt: string | null;
71
79
 
72
80
  consecutiveFailures: number;
@@ -79,10 +87,16 @@ export namespace EventDryRunResponse {
79
87
 
80
88
  createdBy: string | null;
81
89
 
90
+ delivery: Flow.Delivery | null;
91
+
82
92
  description: string | null;
83
93
 
84
94
  deviceIds: Array<string>;
85
95
 
96
+ /**
97
+ * Compatibility projection of lifecycleStatus; true only when lifecycleStatus is
98
+ * enabled.
99
+ */
86
100
  enabled: boolean;
87
101
 
88
102
  healthMonitoringEnabled: boolean;
@@ -100,6 +114,8 @@ export namespace EventDryRunResponse {
100
114
 
101
115
  lastTriggeredAt: string | null;
102
116
 
117
+ lifecycleStatus: 'enabled' | 'disabled' | 'archived';
118
+
103
119
  name: string;
104
120
 
105
121
  notifyOnFailure: boolean;
@@ -110,8 +126,14 @@ export namespace EventDryRunResponse {
110
126
 
111
127
  ownerId: string;
112
128
 
129
+ /**
130
+ * @deprecated Deprecated: use recordingPolicy.mode ("flow" =
131
+ * recordingEnabled=true, "off" = recordingEnabled=false).
132
+ */
113
133
  recordingEnabled: boolean;
114
134
 
135
+ recordingPolicy: Flow.RecordingPolicy;
136
+
115
137
  selfHealingEnabled: boolean;
116
138
 
117
139
  selfHealingMaxAttempts: number;
@@ -121,8 +143,9 @@ export namespace EventDryRunResponse {
121
143
  /**
122
144
  * Template-resolver semantics this flow runs under (MVA-23). 1 = legacy
123
145
  * (missing/forbidden/null all resolve to ''). 2 = typed (missing/forbidden throw,
124
- * a whole-token null stays JSON null). Existing flows stay 1; new flows default
125
- * to 2.
146
+ * a whole-token null stays JSON null). 3 = typed, key-based (steps are addressed
147
+ * as {{steps.<key>...}} instead of by name; trigger.payload is not available).
148
+ * Existing flows stay 1; new flows default to the current version.
126
149
  */
127
150
  templateResolutionVersion: number;
128
151
 
@@ -136,6 +159,28 @@ export namespace EventDryRunResponse {
136
159
  userId: string;
137
160
  }
138
161
 
162
+ export namespace Flow {
163
+ export interface Delivery {
164
+ destination: 'one_drive' | 'google_drive';
165
+
166
+ folder?: string;
167
+
168
+ recording?: Delivery.Recording;
169
+
170
+ screenshots?: unknown;
171
+ }
172
+
173
+ export namespace Delivery {
174
+ export interface Recording {
175
+ filename: string;
176
+ }
177
+ }
178
+
179
+ export interface RecordingPolicy {
180
+ mode: 'off' | 'flow' | 'selected_steps';
181
+ }
182
+ }
183
+
139
184
  export interface Gates {
140
185
  blocked: boolean;
141
186
 
@@ -167,7 +212,7 @@ export namespace EventDryRunResponse {
167
212
 
168
213
  ownerId: string;
169
214
 
170
- scheduleRule: unknown;
215
+ scheduleRule: Trigger.ScheduleRule;
171
216
 
172
217
  timezone: string | null;
173
218
 
@@ -182,6 +227,43 @@ export namespace EventDryRunResponse {
182
227
 
183
228
  nextFireTime?: string | null;
184
229
  }
230
+
231
+ export namespace Trigger {
232
+ export interface ScheduleRule {
233
+ type: 'once' | 'cron' | 'recurring';
234
+
235
+ /**
236
+ * ISO 8601 datetime (for type=once)
237
+ */
238
+ dateTime?: string;
239
+
240
+ /**
241
+ * Cron expression (for type=cron)
242
+ */
243
+ expression?: string;
244
+
245
+ /**
246
+ * Optional per-occurrence random window around the nominal schedule time
247
+ */
248
+ jitter?: ScheduleRule.Jitter;
249
+
250
+ /**
251
+ * RRULE string (for type=recurring)
252
+ */
253
+ rrule?: string;
254
+ }
255
+
256
+ export namespace ScheduleRule {
257
+ /**
258
+ * Optional per-occurrence random window around the nominal schedule time
259
+ */
260
+ export interface Jitter {
261
+ afterMinutes?: number;
262
+
263
+ beforeMinutes?: number;
264
+ }
265
+ }
266
+ }
185
267
  }
186
268
 
187
269
  export interface Validation {
@@ -0,0 +1,514 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../core/resource';
4
+ import * as Shared from '../../shared';
5
+ import * as ScreenshotsAPI from './screenshots';
6
+ import { ScreenshotRetrieveParams, Screenshots } from './screenshots';
7
+ import { APIPromise } from '../../../core/api-promise';
8
+ import { RequestOptions } from '../../../internal/request-options';
9
+ import { path } from '../../../internal/utils/path';
10
+
11
+ export class Executions extends APIResource {
12
+ screenshots: ScreenshotsAPI.Screenshots = new ScreenshotsAPI.Screenshots(this._client);
13
+
14
+ /**
15
+ * Fetch a single flow execution by its ID, including its status, kind, result or
16
+ * error, and start/finish timestamps. Returns 404 if no execution matches.
17
+ */
18
+ retrieve(executionID: string, options?: RequestOptions): APIPromise<ExecutionRetrieveResponse> {
19
+ return this._client.get(path`/executions/${executionID}`, options);
20
+ }
21
+
22
+ /**
23
+ * Return a paginated history of flow executions. Supports filtering by `flowId`,
24
+ * `triggerId`, `invocationId` (the client/verify key), `status`, and a `from`/`to`
25
+ * time range, plus free-text `search` and ordering by startedAt, finishedAt, or
26
+ * status.
27
+ */
28
+ list(
29
+ query: ExecutionListParams | null | undefined = {},
30
+ options?: RequestOptions,
31
+ ): APIPromise<ExecutionListResponse> {
32
+ return this._client.get('/executions', { query, ...options });
33
+ }
34
+
35
+ /**
36
+ * Signals the worker to stop the execution between steps and marks it cancelled.
37
+ * Idempotent-ish: already-terminal executions return 409.
38
+ */
39
+ abort(executionID: string, options?: RequestOptions): APIPromise<ExecutionAbortResponse> {
40
+ return this._client.post(path`/executions/${executionID}/abort`, options);
41
+ }
42
+
43
+ /**
44
+ * Return aggregate execution metrics — total count, counts by status, average
45
+ * duration, and the last execution time. Can be scoped by `flowId`, `triggerId`,
46
+ * and a `from`/`to` time range.
47
+ */
48
+ getMetrics(
49
+ query: ExecutionGetMetricsParams | null | undefined = {},
50
+ options?: RequestOptions,
51
+ ): APIPromise<ExecutionGetMetricsResponse> {
52
+ return this._client.get('/executions/metrics', { query, ...options });
53
+ }
54
+ }
55
+
56
+ export interface ExecutionRetrieveResponse {
57
+ data: ExecutionRetrieveResponse.Data;
58
+ }
59
+
60
+ export namespace ExecutionRetrieveResponse {
61
+ export interface Data {
62
+ id: string;
63
+
64
+ createdBy: string | null;
65
+
66
+ /**
67
+ * OneDrive/Google Drive delivery lifecycle for this run's recording, file, and
68
+ * screenshot uploads, ordered by startedAt. Empty when the flow has no delivery
69
+ * configured.
70
+ */
71
+ deliveries: Array<Data.Delivery>;
72
+
73
+ /**
74
+ * Device this execution targets (the job's deviceId). Null for device-less
75
+ * (event-only) runs.
76
+ */
77
+ deviceId: string | null;
78
+
79
+ error: string | null;
80
+
81
+ eventId: string | null;
82
+
83
+ /**
84
+ * Files produced by files.upload steps, plus files an agent.run step reported on
85
+ * its terminal response (agent-created output or a workflow upload minted during
86
+ * the turn); derived server-side at read time.
87
+ */
88
+ files: Array<Data.File>;
89
+
90
+ finishedAt: string | null;
91
+
92
+ flowId: string;
93
+
94
+ flowName: string | null;
95
+
96
+ /**
97
+ * Client/verify invocation key this row belongs to. Set on live custom fires (one
98
+ * row per device fan-out) and on verification runs; null for event/schedule live
99
+ * rows.
100
+ */
101
+ invocationId: string | null;
102
+
103
+ kind: 'live' | 'dry_run' | 'verification';
104
+
105
+ /**
106
+ * Live progress read from step_progress; null for runs started before this
107
+ * feature.
108
+ */
109
+ progress: Data.Progress | null;
110
+
111
+ recordingDeviceId: string | null;
112
+
113
+ /**
114
+ * Device-recording id (devices-api) for this execution, set once the worker starts
115
+ * a recording. Null when the flow has recording disabled, no device is bound, or
116
+ * the recording failed to start.
117
+ */
118
+ recordingId: string | null;
119
+
120
+ /**
121
+ * Durable recording segments ordered by step/loop coordinate and retry attempt.
122
+ * Whole-flow recordings use -1 for every coordinate.
123
+ */
124
+ recordings: Array<Data.Recording>;
125
+
126
+ /**
127
+ * Screenshots captured by tasks.run/agent.run steps, ordered by seq. Image bytes
128
+ * are never returned here — fetch a fresh signed URL via GET
129
+ * /executions/{id}/screenshots/{screenshotId}.
130
+ */
131
+ screenshots: Array<Data.Screenshot>;
132
+
133
+ startedAt: string | null;
134
+
135
+ status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
136
+
137
+ triggerId: string;
138
+
139
+ triggerName: string | null;
140
+
141
+ /**
142
+ * Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
143
+ * `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
144
+ * step that opted into a verdict — null otherwise. Table-backed steps (current
145
+ * executions) also carry a `status` string (e.g. success/failed/stopped, see
146
+ * deriveStepStatus); it is optional and absent on legacy blob-only executions, so
147
+ * clients must not assume its presence.
148
+ */
149
+ result?: unknown;
150
+ }
151
+
152
+ export namespace Data {
153
+ export interface Delivery {
154
+ artifact: 'recording' | 'file' | 'screenshot';
155
+
156
+ destination: 'one_drive' | 'google_drive';
157
+
158
+ errorCode: string | null;
159
+
160
+ filename: string;
161
+
162
+ finishedAt: string | null;
163
+
164
+ folder: string | null;
165
+
166
+ startedAt: string | null;
167
+
168
+ status: 'waiting' | 'uploading' | 'succeeded' | 'failed' | 'unknown' | 'cancelled';
169
+
170
+ stepIndex: number | null;
171
+
172
+ webUrl: string | null;
173
+ }
174
+
175
+ export interface File {
176
+ fileId: string;
177
+
178
+ filename: string;
179
+
180
+ mimeType: string;
181
+
182
+ sizeBytes: number;
183
+ }
184
+
185
+ /**
186
+ * Live progress read from step_progress; null for runs started before this
187
+ * feature.
188
+ */
189
+ export interface Progress {
190
+ currentIndex: number | null;
191
+
192
+ steps: Array<Progress.Step>;
193
+
194
+ total: number;
195
+ }
196
+
197
+ export namespace Progress {
198
+ export interface Step {
199
+ finishedAt: string | null;
200
+
201
+ index: number;
202
+
203
+ method: string;
204
+
205
+ name: string;
206
+
207
+ service: string;
208
+
209
+ sessionId: string | null;
210
+
211
+ startedAt: string | null;
212
+
213
+ status: 'pending' | 'running' | 'success' | 'failed' | 'skipped' | 'cancelled';
214
+ }
215
+ }
216
+
217
+ export interface Recording {
218
+ id: string;
219
+
220
+ attempt: number;
221
+
222
+ childIndex: number;
223
+
224
+ flowActionId: string | null;
225
+
226
+ iterationIndex: number;
227
+
228
+ lastError: string | null;
229
+
230
+ parentIndex: number;
231
+
232
+ recordingDeviceId: string | null;
233
+
234
+ recordingId: string | null;
235
+
236
+ scope: 'flow' | 'step';
237
+
238
+ startedAt: string | null;
239
+
240
+ status: 'starting' | 'recording' | 'stopping' | 'stopped' | 'failed';
241
+
242
+ stepIndex: number;
243
+
244
+ stoppedAt: string | null;
245
+ }
246
+
247
+ export interface Screenshot {
248
+ id: string;
249
+
250
+ capturedAt: string | null;
251
+
252
+ iterationIndex: number;
253
+
254
+ mimeType: string;
255
+
256
+ seq: number;
257
+
258
+ source: 'task' | 'agent';
259
+
260
+ stepIndex: number;
261
+
262
+ stepName: string;
263
+ }
264
+ }
265
+ }
266
+
267
+ export interface ExecutionListResponse {
268
+ items: Array<ExecutionListResponse.Item>;
269
+
270
+ pagination: Shared.Pagination;
271
+ }
272
+
273
+ export namespace ExecutionListResponse {
274
+ export interface Item {
275
+ id: string;
276
+
277
+ createdBy: string | null;
278
+
279
+ /**
280
+ * Device this execution targets (the job's deviceId). Null for device-less
281
+ * (event-only) runs.
282
+ */
283
+ deviceId: string | null;
284
+
285
+ error: string | null;
286
+
287
+ eventId: string | null;
288
+
289
+ finishedAt: string | null;
290
+
291
+ flowId: string;
292
+
293
+ flowName: string | null;
294
+
295
+ /**
296
+ * Client/verify invocation key this row belongs to. Set on live custom fires (one
297
+ * row per device fan-out) and on verification runs; null for event/schedule live
298
+ * rows.
299
+ */
300
+ invocationId: string | null;
301
+
302
+ kind: 'live' | 'dry_run' | 'verification';
303
+
304
+ recordingDeviceId: string | null;
305
+
306
+ /**
307
+ * Device-recording id (devices-api) for this execution, set once the worker starts
308
+ * a recording. Null when the flow has recording disabled, no device is bound, or
309
+ * the recording failed to start.
310
+ */
311
+ recordingId: string | null;
312
+
313
+ /**
314
+ * Durable recording segments ordered by step/loop coordinate and retry attempt.
315
+ * Whole-flow recordings use -1 for every coordinate.
316
+ */
317
+ recordings: Array<Item.Recording>;
318
+
319
+ startedAt: string | null;
320
+
321
+ status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
322
+
323
+ triggerId: string;
324
+
325
+ triggerName: string | null;
326
+
327
+ /**
328
+ * Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
329
+ * `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
330
+ * step that opted into a verdict — null otherwise. Table-backed steps (current
331
+ * executions) also carry a `status` string (e.g. success/failed/stopped, see
332
+ * deriveStepStatus); it is optional and absent on legacy blob-only executions, so
333
+ * clients must not assume its presence.
334
+ */
335
+ result?: unknown;
336
+ }
337
+
338
+ export namespace Item {
339
+ export interface Recording {
340
+ id: string;
341
+
342
+ attempt: number;
343
+
344
+ childIndex: number;
345
+
346
+ flowActionId: string | null;
347
+
348
+ iterationIndex: number;
349
+
350
+ lastError: string | null;
351
+
352
+ parentIndex: number;
353
+
354
+ recordingDeviceId: string | null;
355
+
356
+ recordingId: string | null;
357
+
358
+ scope: 'flow' | 'step';
359
+
360
+ startedAt: string | null;
361
+
362
+ status: 'starting' | 'recording' | 'stopping' | 'stopped' | 'failed';
363
+
364
+ stepIndex: number;
365
+
366
+ stoppedAt: string | null;
367
+ }
368
+ }
369
+ }
370
+
371
+ export interface ExecutionAbortResponse {
372
+ data: ExecutionAbortResponse.Data;
373
+ }
374
+
375
+ export namespace ExecutionAbortResponse {
376
+ export interface Data {
377
+ id: string;
378
+
379
+ /**
380
+ * Device this execution targets (the job's deviceId). Null for device-less
381
+ * (event-only) runs.
382
+ */
383
+ deviceId: string | null;
384
+
385
+ error: string | null;
386
+
387
+ eventId: string | null;
388
+
389
+ finishedAt: string | null;
390
+
391
+ flowId: string;
392
+
393
+ flowName: string | null;
394
+
395
+ /**
396
+ * Client/verify invocation key this row belongs to. Set on live custom fires (one
397
+ * row per device fan-out) and on verification runs; null for event/schedule live
398
+ * rows.
399
+ */
400
+ invocationId: string | null;
401
+
402
+ kind: 'live' | 'dry_run' | 'verification';
403
+
404
+ recordingDeviceId: string | null;
405
+
406
+ /**
407
+ * Device-recording id (devices-api) for this execution, set once the worker starts
408
+ * a recording. Null when the flow has recording disabled, no device is bound, or
409
+ * the recording failed to start.
410
+ */
411
+ recordingId: string | null;
412
+
413
+ startedAt: string | null;
414
+
415
+ status: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid' | null;
416
+
417
+ triggerId: string;
418
+
419
+ triggerName: string | null;
420
+
421
+ /**
422
+ * Opaque per-step result blob ({ steps: [...] }). Each step additionally carries a
423
+ * `verdict` field ({ outcome, summary, reason? } | null) when it is an agent.run
424
+ * step that opted into a verdict — null otherwise. Table-backed steps (current
425
+ * executions) also carry a `status` string (e.g. success/failed/stopped, see
426
+ * deriveStepStatus); it is optional and absent on legacy blob-only executions, so
427
+ * clients must not assume its presence.
428
+ */
429
+ result?: unknown;
430
+ }
431
+ }
432
+
433
+ export interface ExecutionGetMetricsResponse {
434
+ data: ExecutionGetMetricsResponse.Data;
435
+ }
436
+
437
+ export namespace ExecutionGetMetricsResponse {
438
+ export interface Data {
439
+ avgDurationMs: number | null;
440
+
441
+ byStatus: Data.ByStatus;
442
+
443
+ lastExecutionAt: string | null;
444
+
445
+ total: number;
446
+ }
447
+
448
+ export namespace Data {
449
+ export interface ByStatus {
450
+ cancelled: number;
451
+
452
+ failed: number;
453
+
454
+ invalid: number;
455
+
456
+ pending: number;
457
+
458
+ running: number;
459
+
460
+ skipped: number;
461
+
462
+ success: number;
463
+ }
464
+ }
465
+ }
466
+
467
+ export interface ExecutionListParams {
468
+ flowId?: string;
469
+
470
+ from?: string | null;
471
+
472
+ invocationId?: string;
473
+
474
+ orderBy?: 'startedAt' | 'finishedAt' | 'status';
475
+
476
+ orderByDirection?: 'asc' | 'desc';
477
+
478
+ page?: number;
479
+
480
+ pageSize?: number;
481
+
482
+ search?: string;
483
+
484
+ status?: 'pending' | 'running' | 'success' | 'failed' | 'cancelled' | 'skipped' | 'invalid';
485
+
486
+ to?: string | null;
487
+
488
+ triggerId?: string;
489
+ }
490
+
491
+ export interface ExecutionGetMetricsParams {
492
+ flowId?: string;
493
+
494
+ from?: string | null;
495
+
496
+ to?: string | null;
497
+
498
+ triggerId?: string;
499
+ }
500
+
501
+ Executions.Screenshots = Screenshots;
502
+
503
+ export declare namespace Executions {
504
+ export {
505
+ type ExecutionRetrieveResponse as ExecutionRetrieveResponse,
506
+ type ExecutionListResponse as ExecutionListResponse,
507
+ type ExecutionAbortResponse as ExecutionAbortResponse,
508
+ type ExecutionGetMetricsResponse as ExecutionGetMetricsResponse,
509
+ type ExecutionListParams as ExecutionListParams,
510
+ type ExecutionGetMetricsParams as ExecutionGetMetricsParams,
511
+ };
512
+
513
+ export { Screenshots as Screenshots, type ScreenshotRetrieveParams as ScreenshotRetrieveParams };
514
+ }
@@ -0,0 +1,12 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export {
4
+ Executions,
5
+ type ExecutionRetrieveResponse,
6
+ type ExecutionListResponse,
7
+ type ExecutionAbortResponse,
8
+ type ExecutionGetMetricsResponse,
9
+ type ExecutionListParams,
10
+ type ExecutionGetMetricsParams,
11
+ } from './executions';
12
+ export { Screenshots, type ScreenshotRetrieveParams } from './screenshots';
@@ -0,0 +1,34 @@
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
+ * Redirects (302) to a freshly signed, time-limited image URL for a screenshot
12
+ * captured during this execution. Owner-gated: 404 if the execution or the
13
+ * screenshot does not belong to the caller.
14
+ */
15
+ retrieve(
16
+ screenshotID: string,
17
+ params: ScreenshotRetrieveParams,
18
+ options?: RequestOptions,
19
+ ): APIPromise<void> {
20
+ const { executionId } = params;
21
+ return this._client.get(path`/executions/${executionId}/screenshots/${screenshotID}`, {
22
+ ...options,
23
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
24
+ });
25
+ }
26
+ }
27
+
28
+ export interface ScreenshotRetrieveParams {
29
+ executionId: string;
30
+ }
31
+
32
+ export declare namespace Screenshots {
33
+ export { type ScreenshotRetrieveParams as ScreenshotRetrieveParams };
34
+ }